ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid-7.2/configure
Revision: 166
Committed: Fri Oct 21 04:20:48 2005 UTC (18 years, 5 months ago) by db
File size: 338995 byte(s)
Log Message:
Backported from HEAD

- committed configure changes by nenolod (William Pitcock)
  to check for HAVE_DLINFO
- fixed logic for picking up address for the mod_list


File Contents

# User Rev Content
1 adx 30 #! /bin/sh
2     # Guess values for system-dependent variables and create Makefiles.
3     # Generated by GNU Autoconf 2.59 for ircd-hybrid 7.2.
4     #
5 knight 31 # $Id$
6 adx 30 #
7     # Copyright (C) 2003 Free Software Foundation, Inc.
8     # This configure script is free software; the Free Software Foundation
9     # gives unlimited permission to copy, distribute and modify it.
10     ## --------------------- ##
11     ## M4sh Initialization. ##
12     ## --------------------- ##
13    
14     # Be Bourne compatible
15     if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16     emulate sh
17     NULLCMD=:
18     # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19     # is contrary to our usage. Disable this feature.
20     alias -g '${1+"$@"}'='"$@"'
21     elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22     set -o posix
23     fi
24     DUALCASE=1; export DUALCASE # for MKS sh
25    
26     # Support unset when possible.
27     if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28     as_unset=unset
29     else
30     as_unset=false
31     fi
32    
33    
34     # Work around bugs in pre-3.0 UWIN ksh.
35     $as_unset ENV MAIL MAILPATH
36     PS1='$ '
37     PS2='> '
38     PS4='+ '
39    
40     # NLS nuisances.
41     for as_var in \
42     LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43     LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44     LC_TELEPHONE LC_TIME
45     do
46     if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47     eval $as_var=C; export $as_var
48     else
49     $as_unset $as_var
50     fi
51     done
52    
53     # Required to use basename.
54     if expr a : '\(a\)' >/dev/null 2>&1; then
55     as_expr=expr
56     else
57     as_expr=false
58     fi
59    
60     if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61     as_basename=basename
62     else
63     as_basename=false
64     fi
65    
66    
67     # Name of the executable.
68     as_me=`$as_basename "$0" ||
69     $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70     X"$0" : 'X\(//\)$' \| \
71     X"$0" : 'X\(/\)$' \| \
72     . : '\(.\)' 2>/dev/null ||
73     echo X/"$0" |
74     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75     /^X\/\(\/\/\)$/{ s//\1/; q; }
76     /^X\/\(\/\).*/{ s//\1/; q; }
77     s/.*/./; q'`
78    
79    
80     # PATH needs CR, and LINENO needs CR and PATH.
81     # Avoid depending upon Character Ranges.
82     as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83     as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84     as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85     as_cr_digits='0123456789'
86     as_cr_alnum=$as_cr_Letters$as_cr_digits
87    
88     # The user is always right.
89     if test "${PATH_SEPARATOR+set}" != set; then
90     echo "#! /bin/sh" >conf$$.sh
91     echo "exit 0" >>conf$$.sh
92     chmod +x conf$$.sh
93     if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94     PATH_SEPARATOR=';'
95     else
96     PATH_SEPARATOR=:
97     fi
98     rm -f conf$$.sh
99     fi
100    
101    
102     as_lineno_1=$LINENO
103     as_lineno_2=$LINENO
104     as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105     test "x$as_lineno_1" != "x$as_lineno_2" &&
106     test "x$as_lineno_3" = "x$as_lineno_2" || {
107     # Find who we are. Look in the path if we contain no path at all
108     # relative or not.
109     case $0 in
110     *[\\/]* ) as_myself=$0 ;;
111     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112     for as_dir in $PATH
113     do
114     IFS=$as_save_IFS
115     test -z "$as_dir" && as_dir=.
116     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117     done
118    
119     ;;
120     esac
121     # We did not find ourselves, most probably we were run as `sh COMMAND'
122     # in which case we are not to be found in the path.
123     if test "x$as_myself" = x; then
124     as_myself=$0
125     fi
126     if test ! -f "$as_myself"; then
127     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128     { (exit 1); exit 1; }; }
129     fi
130     case $CONFIG_SHELL in
131     '')
132     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133     for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134     do
135     IFS=$as_save_IFS
136     test -z "$as_dir" && as_dir=.
137     for as_base in sh bash ksh sh5; do
138     case $as_dir in
139     /*)
140     if ("$as_dir/$as_base" -c '
141     as_lineno_1=$LINENO
142     as_lineno_2=$LINENO
143     as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144     test "x$as_lineno_1" != "x$as_lineno_2" &&
145     test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
146     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148     CONFIG_SHELL=$as_dir/$as_base
149     export CONFIG_SHELL
150     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151     fi;;
152     esac
153     done
154     done
155     ;;
156     esac
157    
158     # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159     # uniformly replaced by the line number. The first 'sed' inserts a
160     # line-number line before each line; the second 'sed' does the real
161     # work. The second script uses 'N' to pair each line-number line
162     # with the numbered line, and appends trailing '-' during
163     # substitution so that $LINENO is not a special case at line end.
164     # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165     # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
166     sed '=' <$as_myself |
167     sed '
168     N
169     s,$,-,
170     : loop
171     s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172     t loop
173     s,-$,,
174     s,^['$as_cr_digits']*\n,,
175     ' >$as_me.lineno &&
176     chmod +x $as_me.lineno ||
177     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178     { (exit 1); exit 1; }; }
179    
180     # Don't try to exec as it changes $[0], causing all sort of problems
181     # (the dirname of $[0] is not the place where we might find the
182     # original and so on. Autoconf is especially sensible to this).
183     . ./$as_me.lineno
184     # Exit status is that of the last command.
185     exit
186     }
187    
188    
189     case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190     *c*,-n*) ECHO_N= ECHO_C='
191     ' ECHO_T=' ' ;;
192     *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193     *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194     esac
195    
196     if expr a : '\(a\)' >/dev/null 2>&1; then
197     as_expr=expr
198     else
199     as_expr=false
200     fi
201    
202     rm -f conf$$ conf$$.exe conf$$.file
203     echo >conf$$.file
204     if ln -s conf$$.file conf$$ 2>/dev/null; then
205     # We could just check for DJGPP; but this test a) works b) is more generic
206     # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207     if test -f conf$$.exe; then
208     # Don't use ln at all; we don't have any links
209     as_ln_s='cp -p'
210     else
211     as_ln_s='ln -s'
212     fi
213     elif ln conf$$.file conf$$ 2>/dev/null; then
214     as_ln_s=ln
215     else
216     as_ln_s='cp -p'
217     fi
218     rm -f conf$$ conf$$.exe conf$$.file
219    
220     if mkdir -p . 2>/dev/null; then
221     as_mkdir_p=:
222     else
223     test -d ./-p && rmdir ./-p
224     as_mkdir_p=false
225     fi
226    
227     as_executable_p="test -f"
228    
229     # Sed expression to map a string onto a valid CPP name.
230     as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
231    
232     # Sed expression to map a string onto a valid variable name.
233     as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234    
235    
236     # IFS
237     # We need space, tab and new line, in precisely that order.
238     as_nl='
239     '
240     IFS=" $as_nl"
241    
242     # CDPATH.
243     $as_unset CDPATH
244    
245    
246     # Name of the host.
247     # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
248     # so uname gets run too.
249     ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
250    
251     exec 6>&1
252    
253     #
254     # Initializations.
255     #
256     ac_default_prefix=/usr/local
257     ac_config_libobj_dir=.
258     cross_compiling=no
259     subdirs=
260     MFLAGS=
261     MAKEFLAGS=
262     SHELL=${CONFIG_SHELL-/bin/sh}
263    
264     # Maximum number of lines to put in a shell here document.
265     # This variable seems obsolete. It should probably be removed, and
266     # only ac_max_sed_lines should be used.
267     : ${ac_max_here_lines=38}
268    
269     # Identity of this package.
270     PACKAGE_NAME='ircd-hybrid'
271     PACKAGE_TARNAME='ircd-hybrid'
272     PACKAGE_VERSION='7.2'
273     PACKAGE_STRING='ircd-hybrid 7.2'
274     PACKAGE_BUGREPORT=''
275    
276     ac_default_prefix=/usr/local/ircd
277     # Factoring default headers for most tests.
278     ac_includes_default="\
279     #include <stdio.h>
280     #if HAVE_SYS_TYPES_H
281     # include <sys/types.h>
282     #endif
283     #if HAVE_SYS_STAT_H
284     # include <sys/stat.h>
285     #endif
286     #if STDC_HEADERS
287     # include <stdlib.h>
288     # include <stddef.h>
289     #else
290     # if HAVE_STDLIB_H
291     # include <stdlib.h>
292     # endif
293     #endif
294     #if HAVE_STRING_H
295     # if !STDC_HEADERS && HAVE_MEMORY_H
296     # include <memory.h>
297     # endif
298     # include <string.h>
299     #endif
300     #if HAVE_STRINGS_H
301     # include <strings.h>
302     #endif
303     #if HAVE_INTTYPES_H
304     # include <inttypes.h>
305     #else
306     # if HAVE_STDINT_H
307     # include <stdint.h>
308     # endif
309     #endif
310     #if HAVE_UNISTD_H
311     # include <unistd.h>
312     #endif"
313    
314     ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT MKDEP MAKEDEPEND STDOUT CPP EGREP SET_MAKE INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA RM CP MV LN SED AR LD TEST INET_MISC CRYPT_C CRYPT_LIB SNPRINTF_C ENCSPEED ZLIB_LD SELECT_TYPE CLOBBER BALLOC_C EXAMPLE_CONF MODULES_LIBS MOD_TARGET SSL_SRCS_ENABLE SSL_INCLUDES SSL_LIBS PICFLAGS IRC_CFLAGS SEDOBJ DYNLINK_C LIBOBJS LTLIBOBJS'
315     ac_subst_files=''
316    
317     # Initialize some variables set by options.
318     ac_init_help=
319     ac_init_version=false
320     # The variables have the same names as the options, with
321     # dashes changed to underlines.
322     cache_file=/dev/null
323     exec_prefix=NONE
324     no_create=
325     no_recursion=
326     prefix=NONE
327     program_prefix=NONE
328     program_suffix=NONE
329     program_transform_name=s,x,x,
330     silent=
331     site=
332     srcdir=
333     verbose=
334     x_includes=NONE
335     x_libraries=NONE
336    
337     # Installation directory options.
338     # These are left unexpanded so users can "make install exec_prefix=/foo"
339     # and all the variables that are supposed to be based on exec_prefix
340     # by default will actually change.
341     # Use braces instead of parens because sh, perl, etc. also accept them.
342     bindir='${exec_prefix}/bin'
343     sbindir='${exec_prefix}/sbin'
344     libexecdir='${exec_prefix}/libexec'
345     datadir='${prefix}/share'
346     sysconfdir='${prefix}/etc'
347     sharedstatedir='${prefix}/com'
348     localstatedir='${prefix}/var'
349     libdir='${exec_prefix}/lib'
350     includedir='${prefix}/include'
351     oldincludedir='/usr/include'
352     infodir='${prefix}/info'
353     mandir='${prefix}/man'
354    
355     ac_prev=
356     for ac_option
357     do
358     # If the previous option needs an argument, assign it.
359     if test -n "$ac_prev"; then
360     eval "$ac_prev=\$ac_option"
361     ac_prev=
362     continue
363     fi
364    
365     ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
366    
367     # Accept the important Cygnus configure options, so we can diagnose typos.
368    
369     case $ac_option in
370    
371     -bindir | --bindir | --bindi | --bind | --bin | --bi)
372     ac_prev=bindir ;;
373     -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
374     bindir=$ac_optarg ;;
375    
376     -build | --build | --buil | --bui | --bu)
377     ac_prev=build_alias ;;
378     -build=* | --build=* | --buil=* | --bui=* | --bu=*)
379     build_alias=$ac_optarg ;;
380    
381     -cache-file | --cache-file | --cache-fil | --cache-fi \
382     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
383     ac_prev=cache_file ;;
384     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
385     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
386     cache_file=$ac_optarg ;;
387    
388     --config-cache | -C)
389     cache_file=config.cache ;;
390    
391     -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
392     ac_prev=datadir ;;
393     -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
394     | --da=*)
395     datadir=$ac_optarg ;;
396    
397     -disable-* | --disable-*)
398     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
399     # Reject names that are not valid shell variable names.
400     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
401     { echo "$as_me: error: invalid feature name: $ac_feature" >&2
402     { (exit 1); exit 1; }; }
403     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
404     eval "enable_$ac_feature=no" ;;
405    
406     -enable-* | --enable-*)
407     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
408     # Reject names that are not valid shell variable names.
409     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
410     { echo "$as_me: error: invalid feature name: $ac_feature" >&2
411     { (exit 1); exit 1; }; }
412     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
413     case $ac_option in
414     *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
415     *) ac_optarg=yes ;;
416     esac
417     eval "enable_$ac_feature='$ac_optarg'" ;;
418    
419     -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
420     | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
421     | --exec | --exe | --ex)
422     ac_prev=exec_prefix ;;
423     -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
424     | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
425     | --exec=* | --exe=* | --ex=*)
426     exec_prefix=$ac_optarg ;;
427    
428     -gas | --gas | --ga | --g)
429     # Obsolete; use --with-gas.
430     with_gas=yes ;;
431    
432     -help | --help | --hel | --he | -h)
433     ac_init_help=long ;;
434     -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
435     ac_init_help=recursive ;;
436     -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
437     ac_init_help=short ;;
438    
439     -host | --host | --hos | --ho)
440     ac_prev=host_alias ;;
441     -host=* | --host=* | --hos=* | --ho=*)
442     host_alias=$ac_optarg ;;
443    
444     -includedir | --includedir | --includedi | --included | --include \
445     | --includ | --inclu | --incl | --inc)
446     ac_prev=includedir ;;
447     -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
448     | --includ=* | --inclu=* | --incl=* | --inc=*)
449     includedir=$ac_optarg ;;
450    
451     -infodir | --infodir | --infodi | --infod | --info | --inf)
452     ac_prev=infodir ;;
453     -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
454     infodir=$ac_optarg ;;
455    
456     -libdir | --libdir | --libdi | --libd)
457     ac_prev=libdir ;;
458     -libdir=* | --libdir=* | --libdi=* | --libd=*)
459     libdir=$ac_optarg ;;
460    
461     -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
462     | --libexe | --libex | --libe)
463     ac_prev=libexecdir ;;
464     -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
465     | --libexe=* | --libex=* | --libe=*)
466     libexecdir=$ac_optarg ;;
467    
468     -localstatedir | --localstatedir | --localstatedi | --localstated \
469     | --localstate | --localstat | --localsta | --localst \
470     | --locals | --local | --loca | --loc | --lo)
471     ac_prev=localstatedir ;;
472     -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
473     | --localstate=* | --localstat=* | --localsta=* | --localst=* \
474     | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
475     localstatedir=$ac_optarg ;;
476    
477     -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
478     ac_prev=mandir ;;
479     -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
480     mandir=$ac_optarg ;;
481    
482     -nfp | --nfp | --nf)
483     # Obsolete; use --without-fp.
484     with_fp=no ;;
485    
486     -no-create | --no-create | --no-creat | --no-crea | --no-cre \
487     | --no-cr | --no-c | -n)
488     no_create=yes ;;
489    
490     -no-recursion | --no-recursion | --no-recursio | --no-recursi \
491     | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
492     no_recursion=yes ;;
493    
494     -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
495     | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
496     | --oldin | --oldi | --old | --ol | --o)
497     ac_prev=oldincludedir ;;
498     -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
499     | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
500     | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
501     oldincludedir=$ac_optarg ;;
502    
503     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
504     ac_prev=prefix ;;
505     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
506     prefix=$ac_optarg ;;
507    
508     -program-prefix | --program-prefix | --program-prefi | --program-pref \
509     | --program-pre | --program-pr | --program-p)
510     ac_prev=program_prefix ;;
511     -program-prefix=* | --program-prefix=* | --program-prefi=* \
512     | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
513     program_prefix=$ac_optarg ;;
514    
515     -program-suffix | --program-suffix | --program-suffi | --program-suff \
516     | --program-suf | --program-su | --program-s)
517     ac_prev=program_suffix ;;
518     -program-suffix=* | --program-suffix=* | --program-suffi=* \
519     | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
520     program_suffix=$ac_optarg ;;
521    
522     -program-transform-name | --program-transform-name \
523     | --program-transform-nam | --program-transform-na \
524     | --program-transform-n | --program-transform- \
525     | --program-transform | --program-transfor \
526     | --program-transfo | --program-transf \
527     | --program-trans | --program-tran \
528     | --progr-tra | --program-tr | --program-t)
529     ac_prev=program_transform_name ;;
530     -program-transform-name=* | --program-transform-name=* \
531     | --program-transform-nam=* | --program-transform-na=* \
532     | --program-transform-n=* | --program-transform-=* \
533     | --program-transform=* | --program-transfor=* \
534     | --program-transfo=* | --program-transf=* \
535     | --program-trans=* | --program-tran=* \
536     | --progr-tra=* | --program-tr=* | --program-t=*)
537     program_transform_name=$ac_optarg ;;
538    
539     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
540     | -silent | --silent | --silen | --sile | --sil)
541     silent=yes ;;
542    
543     -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
544     ac_prev=sbindir ;;
545     -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
546     | --sbi=* | --sb=*)
547     sbindir=$ac_optarg ;;
548    
549     -sharedstatedir | --sharedstatedir | --sharedstatedi \
550     | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
551     | --sharedst | --shareds | --shared | --share | --shar \
552     | --sha | --sh)
553     ac_prev=sharedstatedir ;;
554     -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
555     | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
556     | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
557     | --sha=* | --sh=*)
558     sharedstatedir=$ac_optarg ;;
559    
560     -site | --site | --sit)
561     ac_prev=site ;;
562     -site=* | --site=* | --sit=*)
563     site=$ac_optarg ;;
564    
565     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
566     ac_prev=srcdir ;;
567     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
568     srcdir=$ac_optarg ;;
569    
570     -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
571     | --syscon | --sysco | --sysc | --sys | --sy)
572     ac_prev=sysconfdir ;;
573     -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
574     | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
575     sysconfdir=$ac_optarg ;;
576    
577     -target | --target | --targe | --targ | --tar | --ta | --t)
578     ac_prev=target_alias ;;
579     -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
580     target_alias=$ac_optarg ;;
581    
582     -v | -verbose | --verbose | --verbos | --verbo | --verb)
583     verbose=yes ;;
584    
585     -version | --version | --versio | --versi | --vers | -V)
586     ac_init_version=: ;;
587    
588     -with-* | --with-*)
589     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
590     # Reject names that are not valid shell variable names.
591     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
592     { echo "$as_me: error: invalid package name: $ac_package" >&2
593     { (exit 1); exit 1; }; }
594     ac_package=`echo $ac_package| sed 's/-/_/g'`
595     case $ac_option in
596     *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
597     *) ac_optarg=yes ;;
598     esac
599     eval "with_$ac_package='$ac_optarg'" ;;
600    
601     -without-* | --without-*)
602     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
603     # Reject names that are not valid shell variable names.
604     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
605     { echo "$as_me: error: invalid package name: $ac_package" >&2
606     { (exit 1); exit 1; }; }
607     ac_package=`echo $ac_package | sed 's/-/_/g'`
608     eval "with_$ac_package=no" ;;
609    
610     --x)
611     # Obsolete; use --with-x.
612     with_x=yes ;;
613    
614     -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
615     | --x-incl | --x-inc | --x-in | --x-i)
616     ac_prev=x_includes ;;
617     -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
618     | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
619     x_includes=$ac_optarg ;;
620    
621     -x-libraries | --x-libraries | --x-librarie | --x-librari \
622     | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
623     ac_prev=x_libraries ;;
624     -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
625     | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
626     x_libraries=$ac_optarg ;;
627    
628     -*) { echo "$as_me: error: unrecognized option: $ac_option
629     Try \`$0 --help' for more information." >&2
630     { (exit 1); exit 1; }; }
631     ;;
632    
633     *=*)
634     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
635     # Reject names that are not valid shell variable names.
636     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
637     { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
638     { (exit 1); exit 1; }; }
639     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
640     eval "$ac_envvar='$ac_optarg'"
641     export $ac_envvar ;;
642    
643     *)
644     # FIXME: should be removed in autoconf 3.0.
645     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
646     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
647     echo "$as_me: WARNING: invalid host type: $ac_option" >&2
648     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
649     ;;
650    
651     esac
652     done
653    
654     if test -n "$ac_prev"; then
655     ac_option=--`echo $ac_prev | sed 's/_/-/g'`
656     { echo "$as_me: error: missing argument to $ac_option" >&2
657     { (exit 1); exit 1; }; }
658     fi
659    
660     # Be sure to have absolute paths.
661     for ac_var in exec_prefix prefix
662     do
663     eval ac_val=$`echo $ac_var`
664     case $ac_val in
665     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
666     *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
667     { (exit 1); exit 1; }; };;
668     esac
669     done
670    
671     # Be sure to have absolute paths.
672     for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
673     localstatedir libdir includedir oldincludedir infodir mandir
674     do
675     eval ac_val=$`echo $ac_var`
676     case $ac_val in
677     [\\/$]* | ?:[\\/]* ) ;;
678     *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
679     { (exit 1); exit 1; }; };;
680     esac
681     done
682    
683     # There might be people who depend on the old broken behavior: `$host'
684     # used to hold the argument of --host etc.
685     # FIXME: To remove some day.
686     build=$build_alias
687     host=$host_alias
688     target=$target_alias
689    
690     # FIXME: To remove some day.
691     if test "x$host_alias" != x; then
692     if test "x$build_alias" = x; then
693     cross_compiling=maybe
694     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
695     If a cross compiler is detected then cross compile mode will be used." >&2
696     elif test "x$build_alias" != "x$host_alias"; then
697     cross_compiling=yes
698     fi
699     fi
700    
701     ac_tool_prefix=
702     test -n "$host_alias" && ac_tool_prefix=$host_alias-
703    
704     test "$silent" = yes && exec 6>/dev/null
705    
706    
707     # Find the source files, if location was not specified.
708     if test -z "$srcdir"; then
709     ac_srcdir_defaulted=yes
710     # Try the directory containing this script, then its parent.
711     ac_confdir=`(dirname "$0") 2>/dev/null ||
712     $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
713     X"$0" : 'X\(//\)[^/]' \| \
714     X"$0" : 'X\(//\)$' \| \
715     X"$0" : 'X\(/\)' \| \
716     . : '\(.\)' 2>/dev/null ||
717     echo X"$0" |
718     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
719     /^X\(\/\/\)[^/].*/{ s//\1/; q; }
720     /^X\(\/\/\)$/{ s//\1/; q; }
721     /^X\(\/\).*/{ s//\1/; q; }
722     s/.*/./; q'`
723     srcdir=$ac_confdir
724     if test ! -r $srcdir/$ac_unique_file; then
725     srcdir=..
726     fi
727     else
728     ac_srcdir_defaulted=no
729     fi
730     if test ! -r $srcdir/$ac_unique_file; then
731     if test "$ac_srcdir_defaulted" = yes; then
732     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
733     { (exit 1); exit 1; }; }
734     else
735     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
736     { (exit 1); exit 1; }; }
737     fi
738     fi
739     (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
740     { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
741     { (exit 1); exit 1; }; }
742     srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
743     ac_env_build_alias_set=${build_alias+set}
744     ac_env_build_alias_value=$build_alias
745     ac_cv_env_build_alias_set=${build_alias+set}
746     ac_cv_env_build_alias_value=$build_alias
747     ac_env_host_alias_set=${host_alias+set}
748     ac_env_host_alias_value=$host_alias
749     ac_cv_env_host_alias_set=${host_alias+set}
750     ac_cv_env_host_alias_value=$host_alias
751     ac_env_target_alias_set=${target_alias+set}
752     ac_env_target_alias_value=$target_alias
753     ac_cv_env_target_alias_set=${target_alias+set}
754     ac_cv_env_target_alias_value=$target_alias
755     ac_env_CC_set=${CC+set}
756     ac_env_CC_value=$CC
757     ac_cv_env_CC_set=${CC+set}
758     ac_cv_env_CC_value=$CC
759     ac_env_CFLAGS_set=${CFLAGS+set}
760     ac_env_CFLAGS_value=$CFLAGS
761     ac_cv_env_CFLAGS_set=${CFLAGS+set}
762     ac_cv_env_CFLAGS_value=$CFLAGS
763     ac_env_LDFLAGS_set=${LDFLAGS+set}
764     ac_env_LDFLAGS_value=$LDFLAGS
765     ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
766     ac_cv_env_LDFLAGS_value=$LDFLAGS
767     ac_env_CPPFLAGS_set=${CPPFLAGS+set}
768     ac_env_CPPFLAGS_value=$CPPFLAGS
769     ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
770     ac_cv_env_CPPFLAGS_value=$CPPFLAGS
771     ac_env_CPP_set=${CPP+set}
772     ac_env_CPP_value=$CPP
773     ac_cv_env_CPP_set=${CPP+set}
774     ac_cv_env_CPP_value=$CPP
775    
776     #
777     # Report the --help message.
778     #
779     if test "$ac_init_help" = "long"; then
780     # Omit some internal or obsolete options to make the list less imposing.
781     # This message is too long to be a string in the A/UX 3.1 sh.
782     cat <<_ACEOF
783     \`configure' configures ircd-hybrid 7.2 to adapt to many kinds of systems.
784    
785     Usage: $0 [OPTION]... [VAR=VALUE]...
786    
787     To assign environment variables (e.g., CC, CFLAGS...), specify them as
788     VAR=VALUE. See below for descriptions of some of the useful variables.
789    
790     Defaults for the options are specified in brackets.
791    
792     Configuration:
793     -h, --help display this help and exit
794     --help=short display options specific to this package
795     --help=recursive display the short help of all the included packages
796     -V, --version display version information and exit
797     -q, --quiet, --silent do not print \`checking...' messages
798     --cache-file=FILE cache test results in FILE [disabled]
799     -C, --config-cache alias for \`--cache-file=config.cache'
800     -n, --no-create do not create output files
801     --srcdir=DIR find the sources in DIR [configure dir or \`..']
802    
803     _ACEOF
804    
805     cat <<_ACEOF
806     Installation directories:
807     --prefix=PREFIX install architecture-independent files in PREFIX
808     [$ac_default_prefix]
809     --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
810     [PREFIX]
811    
812     By default, \`make install' will install all the files in
813     \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
814     an installation prefix other than \`$ac_default_prefix' using \`--prefix',
815     for instance \`--prefix=\$HOME'.
816    
817     For better control, use the options below.
818    
819     Fine tuning of the installation directories:
820     --bindir=DIR user executables [EPREFIX/bin]
821     --sbindir=DIR system admin executables [EPREFIX/sbin]
822     --libexecdir=DIR program executables [EPREFIX/libexec]
823     --datadir=DIR read-only architecture-independent data [PREFIX/share]
824     --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
825     --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
826     --localstatedir=DIR modifiable single-machine data [PREFIX/var]
827     --libdir=DIR object code libraries [EPREFIX/lib]
828     --includedir=DIR C header files [PREFIX/include]
829     --oldincludedir=DIR C header files for non-gcc [/usr/include]
830     --infodir=DIR info documentation [PREFIX/info]
831     --mandir=DIR man documentation [PREFIX/man]
832     _ACEOF
833    
834     cat <<\_ACEOF
835     _ACEOF
836     fi
837    
838     if test -n "$ac_init_help"; then
839     case $ac_init_help in
840     short | recursive ) echo "Configuration of ircd-hybrid 7.2:";;
841     esac
842     cat <<\_ACEOF
843    
844     Optional Features:
845     --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
846     --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
847     --enable-openssl=DIR Enable OpenSSL support (DIR optional).
848     --disable-openssl Disable OpenSSL support.
849     --disable-zlib Disable ziplinks support
850     --enable-poll Force poll() usage.
851     --enable-select Force select() usage.
852     --enable-kqueue Force kqueue() usage.
853     --enable-devpoll Force usage of /dev/poll.
854     --enable-rtsigio Enable SIGIO with RT Signals (Linux only)
855     --enable-epoll Enable Linux epoll support.
856     --enable-clobber Don't preserve old binaries on make install
857     --enable-assert Enable assert().
858     --enable-profile Enable profiling
859     --enable-efence Enable ElectricFence (memory debugger).
860     --disable-block-alloc Disable the block allocator (Only useful with
861     ElectricFence)
862     --enable-warnings Enable all sorts of warnings for debugging.
863     --enable-small-net Enable small network support.
864     --enable-efnet For IRCDs running on EFnet.
865     --disable-gline-voting Disable G-line voting.
866     --enable-halfops Enable halfops support.
867     --enable-syslog="EVENTS"
868     Enable syslog for events: kill, squit, connect,
869     users, oper, space separated in quotes (default:
870     disabled)
871     --disable-shared-modules
872     Disable shared modules.
873    
874     Optional Packages:
875     --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
876     --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
877     --with-zlib-path=DIR Path to libz.so for ziplinks support.
878     --with-syslog-facility=LOG
879     Define the log facility to use with ircd's syslog
880     output (default LOG_LOCAL4)
881     --with-nicklen=LENGTH Set the nick length to LENGTH (default 9)
882     --with-topiclen=NUMBER Set the max topic length to NUMBER (default 160, max
883     390)
884    
885     Some influential environment variables:
886     CC C compiler command
887     CFLAGS C compiler flags
888     LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
889     nonstandard directory <lib dir>
890     CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
891     headers in a nonstandard directory <include dir>
892     CPP C preprocessor
893    
894     Use these variables to override the choices made by `configure' or to help
895     it to find libraries and programs with nonstandard names/locations.
896    
897     _ACEOF
898     fi
899    
900     if test "$ac_init_help" = "recursive"; then
901     # If there are subdirs, report their specific --help.
902     ac_popdir=`pwd`
903     for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
904     test -d $ac_dir || continue
905     ac_builddir=.
906    
907     if test "$ac_dir" != .; then
908     ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
909     # A "../" for each directory in $ac_dir_suffix.
910     ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
911     else
912     ac_dir_suffix= ac_top_builddir=
913     fi
914    
915     case $srcdir in
916     .) # No --srcdir option. We are building in place.
917     ac_srcdir=.
918     if test -z "$ac_top_builddir"; then
919     ac_top_srcdir=.
920     else
921     ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
922     fi ;;
923     [\\/]* | ?:[\\/]* ) # Absolute path.
924     ac_srcdir=$srcdir$ac_dir_suffix;
925     ac_top_srcdir=$srcdir ;;
926     *) # Relative path.
927     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
928     ac_top_srcdir=$ac_top_builddir$srcdir ;;
929     esac
930    
931     # Do not use `cd foo && pwd` to compute absolute paths, because
932     # the directories may not exist.
933     case `pwd` in
934     .) ac_abs_builddir="$ac_dir";;
935     *)
936     case "$ac_dir" in
937     .) ac_abs_builddir=`pwd`;;
938     [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
939     *) ac_abs_builddir=`pwd`/"$ac_dir";;
940     esac;;
941     esac
942     case $ac_abs_builddir in
943     .) ac_abs_top_builddir=${ac_top_builddir}.;;
944     *)
945     case ${ac_top_builddir}. in
946     .) ac_abs_top_builddir=$ac_abs_builddir;;
947     [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
948     *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
949     esac;;
950     esac
951     case $ac_abs_builddir in
952     .) ac_abs_srcdir=$ac_srcdir;;
953     *)
954     case $ac_srcdir in
955     .) ac_abs_srcdir=$ac_abs_builddir;;
956     [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
957     *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
958     esac;;
959     esac
960     case $ac_abs_builddir in
961     .) ac_abs_top_srcdir=$ac_top_srcdir;;
962     *)
963     case $ac_top_srcdir in
964     .) ac_abs_top_srcdir=$ac_abs_builddir;;
965     [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
966     *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
967     esac;;
968     esac
969    
970     cd $ac_dir
971     # Check for guested configure; otherwise get Cygnus style configure.
972     if test -f $ac_srcdir/configure.gnu; then
973     echo
974     $SHELL $ac_srcdir/configure.gnu --help=recursive
975     elif test -f $ac_srcdir/configure; then
976     echo
977     $SHELL $ac_srcdir/configure --help=recursive
978     elif test -f $ac_srcdir/configure.ac ||
979     test -f $ac_srcdir/configure.in; then
980     echo
981     $ac_configure --help
982     else
983     echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
984     fi
985     cd $ac_popdir
986     done
987     fi
988    
989     test -n "$ac_init_help" && exit 0
990     if $ac_init_version; then
991     cat <<\_ACEOF
992     ircd-hybrid configure 7.2
993     generated by GNU Autoconf 2.59
994    
995     Copyright (C) 2003 Free Software Foundation, Inc.
996     This configure script is free software; the Free Software Foundation
997     gives unlimited permission to copy, distribute and modify it.
998    
999 knight 31 $Id$
1000 adx 30 _ACEOF
1001     exit 0
1002     fi
1003     exec 5>config.log
1004     cat >&5 <<_ACEOF
1005     This file contains any messages produced by compilers while
1006     running configure, to aid debugging if configure makes a mistake.
1007    
1008     It was created by ircd-hybrid $as_me 7.2, which was
1009     generated by GNU Autoconf 2.59. Invocation command line was
1010    
1011     $ $0 $@
1012    
1013     _ACEOF
1014     {
1015     cat <<_ASUNAME
1016     ## --------- ##
1017     ## Platform. ##
1018     ## --------- ##
1019    
1020     hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1021     uname -m = `(uname -m) 2>/dev/null || echo unknown`
1022     uname -r = `(uname -r) 2>/dev/null || echo unknown`
1023     uname -s = `(uname -s) 2>/dev/null || echo unknown`
1024     uname -v = `(uname -v) 2>/dev/null || echo unknown`
1025    
1026     /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1027     /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1028    
1029     /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1030     /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1031     /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1032     hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1033     /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1034     /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1035     /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1036    
1037     _ASUNAME
1038    
1039     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1040     for as_dir in $PATH
1041     do
1042     IFS=$as_save_IFS
1043     test -z "$as_dir" && as_dir=.
1044     echo "PATH: $as_dir"
1045     done
1046    
1047     } >&5
1048    
1049     cat >&5 <<_ACEOF
1050    
1051    
1052     ## ----------- ##
1053     ## Core tests. ##
1054     ## ----------- ##
1055    
1056     _ACEOF
1057    
1058    
1059     # Keep a trace of the command line.
1060     # Strip out --no-create and --no-recursion so they do not pile up.
1061     # Strip out --silent because we don't want to record it for future runs.
1062     # Also quote any args containing shell meta-characters.
1063     # Make two passes to allow for proper duplicate-argument suppression.
1064     ac_configure_args=
1065     ac_configure_args0=
1066     ac_configure_args1=
1067     ac_sep=
1068     ac_must_keep_next=false
1069     for ac_pass in 1 2
1070     do
1071     for ac_arg
1072     do
1073     case $ac_arg in
1074     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1075     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1076     | -silent | --silent | --silen | --sile | --sil)
1077     continue ;;
1078     *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1079     ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1080     esac
1081     case $ac_pass in
1082     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1083     2)
1084     ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1085     if test $ac_must_keep_next = true; then
1086     ac_must_keep_next=false # Got value, back to normal.
1087     else
1088     case $ac_arg in
1089     *=* | --config-cache | -C | -disable-* | --disable-* \
1090     | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1091     | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1092     | -with-* | --with-* | -without-* | --without-* | --x)
1093     case "$ac_configure_args0 " in
1094     "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1095     esac
1096     ;;
1097     -* ) ac_must_keep_next=true ;;
1098     esac
1099     fi
1100     ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1101     # Get rid of the leading space.
1102     ac_sep=" "
1103     ;;
1104     esac
1105     done
1106     done
1107     $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1108     $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1109    
1110     # When interrupted or exit'd, cleanup temporary files, and complete
1111     # config.log. We remove comments because anyway the quotes in there
1112     # would cause problems or look ugly.
1113     # WARNING: Be sure not to use single quotes in there, as some shells,
1114     # such as our DU 5.0 friend, will then `close' the trap.
1115     trap 'exit_status=$?
1116     # Save into config.log some information that might help in debugging.
1117     {
1118     echo
1119    
1120     cat <<\_ASBOX
1121     ## ---------------- ##
1122     ## Cache variables. ##
1123     ## ---------------- ##
1124     _ASBOX
1125     echo
1126     # The following way of writing the cache mishandles newlines in values,
1127     {
1128     (set) 2>&1 |
1129     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1130     *ac_space=\ *)
1131     sed -n \
1132     "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1133     s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1134     ;;
1135     *)
1136     sed -n \
1137     "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1138     ;;
1139     esac;
1140     }
1141     echo
1142    
1143     cat <<\_ASBOX
1144     ## ----------------- ##
1145     ## Output variables. ##
1146     ## ----------------- ##
1147     _ASBOX
1148     echo
1149     for ac_var in $ac_subst_vars
1150     do
1151     eval ac_val=$`echo $ac_var`
1152     echo "$ac_var='"'"'$ac_val'"'"'"
1153     done | sort
1154     echo
1155    
1156     if test -n "$ac_subst_files"; then
1157     cat <<\_ASBOX
1158     ## ------------- ##
1159     ## Output files. ##
1160     ## ------------- ##
1161     _ASBOX
1162     echo
1163     for ac_var in $ac_subst_files
1164     do
1165     eval ac_val=$`echo $ac_var`
1166     echo "$ac_var='"'"'$ac_val'"'"'"
1167     done | sort
1168     echo
1169     fi
1170    
1171     if test -s confdefs.h; then
1172     cat <<\_ASBOX
1173     ## ----------- ##
1174     ## confdefs.h. ##
1175     ## ----------- ##
1176     _ASBOX
1177     echo
1178     sed "/^$/d" confdefs.h | sort
1179     echo
1180     fi
1181     test "$ac_signal" != 0 &&
1182     echo "$as_me: caught signal $ac_signal"
1183     echo "$as_me: exit $exit_status"
1184     } >&5
1185     rm -f core *.core &&
1186     rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1187     exit $exit_status
1188     ' 0
1189     for ac_signal in 1 2 13 15; do
1190     trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1191     done
1192     ac_signal=0
1193    
1194     # confdefs.h avoids OS command line length limits that DEFS can exceed.
1195     rm -rf conftest* confdefs.h
1196     # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1197     echo >confdefs.h
1198    
1199     # Predefined preprocessor variables.
1200    
1201     cat >>confdefs.h <<_ACEOF
1202     #define PACKAGE_NAME "$PACKAGE_NAME"
1203     _ACEOF
1204    
1205    
1206     cat >>confdefs.h <<_ACEOF
1207     #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1208     _ACEOF
1209    
1210    
1211     cat >>confdefs.h <<_ACEOF
1212     #define PACKAGE_VERSION "$PACKAGE_VERSION"
1213     _ACEOF
1214    
1215    
1216     cat >>confdefs.h <<_ACEOF
1217     #define PACKAGE_STRING "$PACKAGE_STRING"
1218     _ACEOF
1219    
1220    
1221     cat >>confdefs.h <<_ACEOF
1222     #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1223     _ACEOF
1224    
1225    
1226     # Let the site file select an alternate cache file if it wants to.
1227     # Prefer explicitly selected file to automatically selected ones.
1228     if test -z "$CONFIG_SITE"; then
1229     if test "x$prefix" != xNONE; then
1230     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1231     else
1232     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1233     fi
1234     fi
1235     for ac_site_file in $CONFIG_SITE; do
1236     if test -r "$ac_site_file"; then
1237     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1238     echo "$as_me: loading site script $ac_site_file" >&6;}
1239     sed 's/^/| /' "$ac_site_file" >&5
1240     . "$ac_site_file"
1241     fi
1242     done
1243    
1244     if test -r "$cache_file"; then
1245     # Some versions of bash will fail to source /dev/null (special
1246     # files actually), so we avoid doing that.
1247     if test -f "$cache_file"; then
1248     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1249     echo "$as_me: loading cache $cache_file" >&6;}
1250     case $cache_file in
1251     [\\/]* | ?:[\\/]* ) . $cache_file;;
1252     *) . ./$cache_file;;
1253     esac
1254     fi
1255     else
1256     { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1257     echo "$as_me: creating cache $cache_file" >&6;}
1258     >$cache_file
1259     fi
1260    
1261     # Check that the precious variables saved in the cache have kept the same
1262     # value.
1263     ac_cache_corrupted=false
1264     for ac_var in `(set) 2>&1 |
1265     sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1266     eval ac_old_set=\$ac_cv_env_${ac_var}_set
1267     eval ac_new_set=\$ac_env_${ac_var}_set
1268     eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1269     eval ac_new_val="\$ac_env_${ac_var}_value"
1270     case $ac_old_set,$ac_new_set in
1271     set,)
1272     { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1273     echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1274     ac_cache_corrupted=: ;;
1275     ,set)
1276     { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1277     echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1278     ac_cache_corrupted=: ;;
1279     ,);;
1280     *)
1281     if test "x$ac_old_val" != "x$ac_new_val"; then
1282     { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1283     echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1284     { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1285     echo "$as_me: former value: $ac_old_val" >&2;}
1286     { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1287     echo "$as_me: current value: $ac_new_val" >&2;}
1288     ac_cache_corrupted=:
1289     fi;;
1290     esac
1291     # Pass precious variables to config.status.
1292     if test "$ac_new_set" = set; then
1293     case $ac_new_val in
1294     *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1295     ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1296     *) ac_arg=$ac_var=$ac_new_val ;;
1297     esac
1298     case " $ac_configure_args " in
1299     *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1300     *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1301     esac
1302     fi
1303     done
1304     if $ac_cache_corrupted; then
1305     { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1306     echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1307     { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1308     echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1309     { (exit 1); exit 1; }; }
1310     fi
1311    
1312     ac_ext=c
1313     ac_cpp='$CPP $CPPFLAGS'
1314     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1315     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1316     ac_compiler_gnu=$ac_cv_c_compiler_gnu
1317    
1318    
1319    
1320    
1321    
1322    
1323    
1324    
1325    
1326    
1327    
1328    
1329    
1330    
1331    
1332    
1333    
1334    
1335    
1336    
1337    
1338    
1339    
1340    
1341    
1342    
1343    
1344    
1345     ac_config_headers="$ac_config_headers include/setup.h"
1346    
1347    
1348    
1349    
1350    
1351     cat >>confdefs.h <<\_ACEOF
1352     #define _GNU_SOURCE 1
1353     _ACEOF
1354    
1355    
1356    
1357     OLD_CFLAGS="$CFLAGS"
1358     ac_ext=c
1359     ac_cpp='$CPP $CPPFLAGS'
1360     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1361     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1362     ac_compiler_gnu=$ac_cv_c_compiler_gnu
1363     if test -n "$ac_tool_prefix"; then
1364     # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1365     set dummy ${ac_tool_prefix}gcc; ac_word=$2
1366     echo "$as_me:$LINENO: checking for $ac_word" >&5
1367     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1368     if test "${ac_cv_prog_CC+set}" = set; then
1369     echo $ECHO_N "(cached) $ECHO_C" >&6
1370     else
1371     if test -n "$CC"; then
1372     ac_cv_prog_CC="$CC" # Let the user override the test.
1373     else
1374     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1375     for as_dir in $PATH
1376     do
1377     IFS=$as_save_IFS
1378     test -z "$as_dir" && as_dir=.
1379     for ac_exec_ext in '' $ac_executable_extensions; do
1380     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1381     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1382     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1383     break 2
1384     fi
1385     done
1386     done
1387    
1388     fi
1389     fi
1390     CC=$ac_cv_prog_CC
1391     if test -n "$CC"; then
1392     echo "$as_me:$LINENO: result: $CC" >&5
1393     echo "${ECHO_T}$CC" >&6
1394     else
1395     echo "$as_me:$LINENO: result: no" >&5
1396     echo "${ECHO_T}no" >&6
1397     fi
1398    
1399     fi
1400     if test -z "$ac_cv_prog_CC"; then
1401     ac_ct_CC=$CC
1402     # Extract the first word of "gcc", so it can be a program name with args.
1403     set dummy gcc; ac_word=$2
1404     echo "$as_me:$LINENO: checking for $ac_word" >&5
1405     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1406     if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1407     echo $ECHO_N "(cached) $ECHO_C" >&6
1408     else
1409     if test -n "$ac_ct_CC"; then
1410     ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1411     else
1412     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1413     for as_dir in $PATH
1414     do
1415     IFS=$as_save_IFS
1416     test -z "$as_dir" && as_dir=.
1417     for ac_exec_ext in '' $ac_executable_extensions; do
1418     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1419     ac_cv_prog_ac_ct_CC="gcc"
1420     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1421     break 2
1422     fi
1423     done
1424     done
1425    
1426     fi
1427     fi
1428     ac_ct_CC=$ac_cv_prog_ac_ct_CC
1429     if test -n "$ac_ct_CC"; then
1430     echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1431     echo "${ECHO_T}$ac_ct_CC" >&6
1432     else
1433     echo "$as_me:$LINENO: result: no" >&5
1434     echo "${ECHO_T}no" >&6
1435     fi
1436    
1437     CC=$ac_ct_CC
1438     else
1439     CC="$ac_cv_prog_CC"
1440     fi
1441    
1442     if test -z "$CC"; then
1443     if test -n "$ac_tool_prefix"; then
1444     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1445     set dummy ${ac_tool_prefix}cc; ac_word=$2
1446     echo "$as_me:$LINENO: checking for $ac_word" >&5
1447     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1448     if test "${ac_cv_prog_CC+set}" = set; then
1449     echo $ECHO_N "(cached) $ECHO_C" >&6
1450     else
1451     if test -n "$CC"; then
1452     ac_cv_prog_CC="$CC" # Let the user override the test.
1453     else
1454     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1455     for as_dir in $PATH
1456     do
1457     IFS=$as_save_IFS
1458     test -z "$as_dir" && as_dir=.
1459     for ac_exec_ext in '' $ac_executable_extensions; do
1460     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1461     ac_cv_prog_CC="${ac_tool_prefix}cc"
1462     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1463     break 2
1464     fi
1465     done
1466     done
1467    
1468     fi
1469     fi
1470     CC=$ac_cv_prog_CC
1471     if test -n "$CC"; then
1472     echo "$as_me:$LINENO: result: $CC" >&5
1473     echo "${ECHO_T}$CC" >&6
1474     else
1475     echo "$as_me:$LINENO: result: no" >&5
1476     echo "${ECHO_T}no" >&6
1477     fi
1478    
1479     fi
1480     if test -z "$ac_cv_prog_CC"; then
1481     ac_ct_CC=$CC
1482     # Extract the first word of "cc", so it can be a program name with args.
1483     set dummy cc; ac_word=$2
1484     echo "$as_me:$LINENO: checking for $ac_word" >&5
1485     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1486     if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1487     echo $ECHO_N "(cached) $ECHO_C" >&6
1488     else
1489     if test -n "$ac_ct_CC"; then
1490     ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1491     else
1492     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1493     for as_dir in $PATH
1494     do
1495     IFS=$as_save_IFS
1496     test -z "$as_dir" && as_dir=.
1497     for ac_exec_ext in '' $ac_executable_extensions; do
1498     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1499     ac_cv_prog_ac_ct_CC="cc"
1500     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1501     break 2
1502     fi
1503     done
1504     done
1505    
1506     fi
1507     fi
1508     ac_ct_CC=$ac_cv_prog_ac_ct_CC
1509     if test -n "$ac_ct_CC"; then
1510     echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1511     echo "${ECHO_T}$ac_ct_CC" >&6
1512     else
1513     echo "$as_me:$LINENO: result: no" >&5
1514     echo "${ECHO_T}no" >&6
1515     fi
1516    
1517     CC=$ac_ct_CC
1518     else
1519     CC="$ac_cv_prog_CC"
1520     fi
1521    
1522     fi
1523     if test -z "$CC"; then
1524     # Extract the first word of "cc", so it can be a program name with args.
1525     set dummy cc; ac_word=$2
1526     echo "$as_me:$LINENO: checking for $ac_word" >&5
1527     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1528     if test "${ac_cv_prog_CC+set}" = set; then
1529     echo $ECHO_N "(cached) $ECHO_C" >&6
1530     else
1531     if test -n "$CC"; then
1532     ac_cv_prog_CC="$CC" # Let the user override the test.
1533     else
1534     ac_prog_rejected=no
1535     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1536     for as_dir in $PATH
1537     do
1538     IFS=$as_save_IFS
1539     test -z "$as_dir" && as_dir=.
1540     for ac_exec_ext in '' $ac_executable_extensions; do
1541     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1542     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1543     ac_prog_rejected=yes
1544     continue
1545     fi
1546     ac_cv_prog_CC="cc"
1547     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1548     break 2
1549     fi
1550     done
1551     done
1552    
1553     if test $ac_prog_rejected = yes; then
1554     # We found a bogon in the path, so make sure we never use it.
1555     set dummy $ac_cv_prog_CC
1556     shift
1557     if test $# != 0; then
1558     # We chose a different compiler from the bogus one.
1559     # However, it has the same basename, so the bogon will be chosen
1560     # first if we set CC to just the basename; use the full file name.
1561     shift
1562     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1563     fi
1564     fi
1565     fi
1566     fi
1567     CC=$ac_cv_prog_CC
1568     if test -n "$CC"; then
1569     echo "$as_me:$LINENO: result: $CC" >&5
1570     echo "${ECHO_T}$CC" >&6
1571     else
1572     echo "$as_me:$LINENO: result: no" >&5
1573     echo "${ECHO_T}no" >&6
1574     fi
1575    
1576     fi
1577     if test -z "$CC"; then
1578     if test -n "$ac_tool_prefix"; then
1579     for ac_prog in cl
1580     do
1581     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1582     set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1583     echo "$as_me:$LINENO: checking for $ac_word" >&5
1584     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1585     if test "${ac_cv_prog_CC+set}" = set; then
1586     echo $ECHO_N "(cached) $ECHO_C" >&6
1587     else
1588     if test -n "$CC"; then
1589     ac_cv_prog_CC="$CC" # Let the user override the test.
1590     else
1591     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1592     for as_dir in $PATH
1593     do
1594     IFS=$as_save_IFS
1595     test -z "$as_dir" && as_dir=.
1596     for ac_exec_ext in '' $ac_executable_extensions; do
1597     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1598     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1599     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1600     break 2
1601     fi
1602     done
1603     done
1604    
1605     fi
1606     fi
1607     CC=$ac_cv_prog_CC
1608     if test -n "$CC"; then
1609     echo "$as_me:$LINENO: result: $CC" >&5
1610     echo "${ECHO_T}$CC" >&6
1611     else
1612     echo "$as_me:$LINENO: result: no" >&5
1613     echo "${ECHO_T}no" >&6
1614     fi
1615    
1616     test -n "$CC" && break
1617     done
1618     fi
1619     if test -z "$CC"; then
1620     ac_ct_CC=$CC
1621     for ac_prog in cl
1622     do
1623     # Extract the first word of "$ac_prog", so it can be a program name with args.
1624     set dummy $ac_prog; ac_word=$2
1625     echo "$as_me:$LINENO: checking for $ac_word" >&5
1626     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1627     if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1628     echo $ECHO_N "(cached) $ECHO_C" >&6
1629     else
1630     if test -n "$ac_ct_CC"; then
1631     ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1632     else
1633     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1634     for as_dir in $PATH
1635     do
1636     IFS=$as_save_IFS
1637     test -z "$as_dir" && as_dir=.
1638     for ac_exec_ext in '' $ac_executable_extensions; do
1639     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1640     ac_cv_prog_ac_ct_CC="$ac_prog"
1641     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1642     break 2
1643     fi
1644     done
1645     done
1646    
1647     fi
1648     fi
1649     ac_ct_CC=$ac_cv_prog_ac_ct_CC
1650     if test -n "$ac_ct_CC"; then
1651     echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1652     echo "${ECHO_T}$ac_ct_CC" >&6
1653     else
1654     echo "$as_me:$LINENO: result: no" >&5
1655     echo "${ECHO_T}no" >&6
1656     fi
1657    
1658     test -n "$ac_ct_CC" && break
1659     done
1660    
1661     CC=$ac_ct_CC
1662     fi
1663    
1664     fi
1665    
1666    
1667     test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1668     See \`config.log' for more details." >&5
1669     echo "$as_me: error: no acceptable C compiler found in \$PATH
1670     See \`config.log' for more details." >&2;}
1671     { (exit 1); exit 1; }; }
1672    
1673     # Provide some information about the compiler.
1674     echo "$as_me:$LINENO:" \
1675     "checking for C compiler version" >&5
1676     ac_compiler=`set X $ac_compile; echo $2`
1677     { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1678     (eval $ac_compiler --version </dev/null >&5) 2>&5
1679     ac_status=$?
1680     echo "$as_me:$LINENO: \$? = $ac_status" >&5
1681     (exit $ac_status); }
1682     { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1683     (eval $ac_compiler -v </dev/null >&5) 2>&5
1684     ac_status=$?
1685     echo "$as_me:$LINENO: \$? = $ac_status" >&5
1686     (exit $ac_status); }
1687     { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1688     (eval $ac_compiler -V </dev/null >&5) 2>&5
1689     ac_status=$?
1690     echo "$as_me:$LINENO: \$? = $ac_status" >&5
1691     (exit $ac_status); }
1692    
1693     cat >conftest.$ac_ext <<_ACEOF
1694     /* confdefs.h. */
1695     _ACEOF
1696     cat confdefs.h >>conftest.$ac_ext
1697     cat >>conftest.$ac_ext <<_ACEOF
1698     /* end confdefs.h. */
1699    
1700     int
1701     main ()
1702     {
1703    
1704     ;
1705     return 0;
1706     }
1707     _ACEOF
1708     ac_clean_files_save=$ac_clean_files
1709     ac_clean_files="$ac_clean_files a.out a.exe b.out"
1710     # Try to create an executable without -o first, disregard a.out.
1711     # It will help us diagnose broken compilers, and finding out an intuition
1712     # of exeext.
1713     echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1714     echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1715     ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1716     if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1717     (eval $ac_link_default) 2>&5
1718     ac_status=$?
1719     echo "$as_me:$LINENO: \$? = $ac_status" >&5
1720     (exit $ac_status); }; then
1721     # Find the output, starting from the most likely. This scheme is
1722     # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1723     # resort.
1724    
1725     # Be careful to initialize this variable, since it used to be cached.
1726     # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1727     ac_cv_exeext=
1728     # b.out is created by i960 compilers.
1729     for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1730     do
1731     test -f "$ac_file" || continue
1732     case $ac_file in
1733     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1734     ;;
1735     conftest.$ac_ext )
1736     # This is the source file.
1737     ;;
1738     [ab].out )
1739     # We found the default executable, but exeext='' is most
1740     # certainly right.
1741     break;;
1742     *.* )
1743     ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1744     # FIXME: I believe we export ac_cv_exeext for Libtool,
1745     # but it would be cool to find out if it's true. Does anybody
1746     # maintain Libtool? --akim.
1747     export ac_cv_exeext
1748     break;;
1749     * )
1750     break;;
1751     esac
1752     done
1753     else
1754     echo "$as_me: failed program was:" >&5
1755     sed 's/^/| /' conftest.$ac_ext >&5
1756    
1757     { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1758     See \`config.log' for more details." >&5
1759     echo "$as_me: error: C compiler cannot create executables
1760     See \`config.log' for more details." >&2;}
1761     { (exit 77); exit 77; }; }
1762     fi
1763    
1764     ac_exeext=$ac_cv_exeext
1765     echo "$as_me:$LINENO: result: $ac_file" >&5
1766     echo "${ECHO_T}$ac_file" >&6
1767    
1768     # Check the compiler produces executables we can run. If not, either
1769     # the compiler is broken, or we cross compile.
1770     echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1771     echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1772     # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1773     # If not cross compiling, check that we can run a simple program.
1774     if test "$cross_compiling" != yes; then
1775     if { ac_try='./$ac_file'
1776     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1777     (eval $ac_try) 2>&5
1778     ac_status=$?
1779     echo "$as_me:$LINENO: \$? = $ac_status" >&5
1780     (exit $ac_status); }; }; then
1781     cross_compiling=no
1782     else
1783     if test "$cross_compiling" = maybe; then
1784     cross_compiling=yes
1785     else
1786     { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1787     If you meant to cross compile, use \`--host'.
1788     See \`config.log' for more details." >&5
1789     echo "$as_me: error: cannot run C compiled programs.
1790     If you meant to cross compile, use \`--host'.
1791     See \`config.log' for more details." >&2;}
1792     { (exit 1); exit 1; }; }
1793     fi
1794     fi
1795     fi
1796     echo "$as_me:$LINENO: result: yes" >&5
1797     echo "${ECHO_T}yes" >&6
1798    
1799     rm -f a.out a.exe conftest$ac_cv_exeext b.out
1800     ac_clean_files=$ac_clean_files_save
1801     # Check the compiler produces executables we can run. If not, either
1802     # the compiler is broken, or we cross compile.
1803     echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1804     echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1805     echo "$as_me:$LINENO: result: $cross_compiling" >&5
1806     echo "${ECHO_T}$cross_compiling" >&6
1807    
1808     echo "$as_me:$LINENO: checking for suffix of executables" >&5
1809     echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1810     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1811     (eval $ac_link) 2>&5
1812     ac_status=$?
1813     echo "$as_me:$LINENO: \$? = $ac_status" >&5
1814     (exit $ac_status); }; then
1815     # If both `conftest.exe' and `conftest' are `present' (well, observable)
1816     # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1817     # work properly (i.e., refer to `conftest.exe'), while it won't with
1818     # `rm'.
1819     for ac_file in conftest.exe conftest conftest.*; do
1820     test -f "$ac_file" || continue
1821     case $ac_file in
1822     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1823     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1824     export ac_cv_exeext
1825     break;;
1826     * ) break;;
1827     esac
1828     done
1829     else
1830     { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1831     See \`config.log' for more details." >&5
1832     echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1833     See \`config.log' for more details." >&2;}
1834     { (exit 1); exit 1; }; }
1835     fi
1836    
1837     rm -f conftest$ac_cv_exeext
1838     echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1839     echo "${ECHO_T}$ac_cv_exeext" >&6
1840    
1841     rm -f conftest.$ac_ext
1842     EXEEXT=$ac_cv_exeext
1843     ac_exeext=$EXEEXT
1844     echo "$as_me:$LINENO: checking for suffix of object files" >&5
1845     echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1846     if test "${ac_cv_objext+set}" = set; then
1847     echo $ECHO_N "(cached) $ECHO_C" >&6
1848     else
1849     cat >conftest.$ac_ext <<_ACEOF
1850     /* confdefs.h. */
1851     _ACEOF
1852     cat confdefs.h >>conftest.$ac_ext
1853     cat >>conftest.$ac_ext <<_ACEOF
1854     /* end confdefs.h. */
1855    
1856     int
1857     main ()
1858     {
1859    
1860     ;
1861     return 0;
1862     }
1863     _ACEOF
1864     rm -f conftest.o conftest.obj
1865     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1866     (eval $ac_compile) 2>&5
1867     ac_status=$?
1868     echo "$as_me:$LINENO: \$? = $ac_status" >&5
1869     (exit $ac_status); }; then
1870     for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1871     case $ac_file in
1872     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1873     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1874     break;;
1875     esac
1876     done
1877     else
1878     echo "$as_me: failed program was:" >&5
1879     sed 's/^/| /' conftest.$ac_ext >&5
1880    
1881     { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1882     See \`config.log' for more details." >&5
1883     echo "$as_me: error: cannot compute suffix of object files: cannot compile
1884     See \`config.log' for more details." >&2;}
1885     { (exit 1); exit 1; }; }
1886     fi
1887    
1888     rm -f conftest.$ac_cv_objext conftest.$ac_ext
1889     fi
1890     echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1891     echo "${ECHO_T}$ac_cv_objext" >&6
1892     OBJEXT=$ac_cv_objext
1893     ac_objext=$OBJEXT
1894     echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1895     echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1896     if test "${ac_cv_c_compiler_gnu+set}" = set; then
1897     echo $ECHO_N "(cached) $ECHO_C" >&6
1898     else
1899     cat >conftest.$ac_ext <<_ACEOF
1900     /* confdefs.h. */
1901     _ACEOF
1902     cat confdefs.h >>conftest.$ac_ext
1903     cat >>conftest.$ac_ext <<_ACEOF
1904     /* end confdefs.h. */
1905    
1906     int
1907     main ()
1908     {
1909     #ifndef __GNUC__
1910     choke me
1911     #endif
1912    
1913     ;
1914     return 0;
1915     }
1916     _ACEOF
1917     rm -f conftest.$ac_objext
1918     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1919     (eval $ac_compile) 2>conftest.er1
1920     ac_status=$?
1921     grep -v '^ *+' conftest.er1 >conftest.err
1922     rm -f conftest.er1
1923     cat conftest.err >&5
1924     echo "$as_me:$LINENO: \$? = $ac_status" >&5
1925     (exit $ac_status); } &&
1926     { ac_try='test -z "$ac_c_werror_flag"
1927     || test ! -s conftest.err'
1928     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1929     (eval $ac_try) 2>&5
1930     ac_status=$?
1931     echo "$as_me:$LINENO: \$? = $ac_status" >&5
1932     (exit $ac_status); }; } &&
1933     { ac_try='test -s conftest.$ac_objext'
1934     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1935     (eval $ac_try) 2>&5
1936     ac_status=$?
1937     echo "$as_me:$LINENO: \$? = $ac_status" >&5
1938     (exit $ac_status); }; }; then
1939     ac_compiler_gnu=yes
1940     else
1941     echo "$as_me: failed program was:" >&5
1942     sed 's/^/| /' conftest.$ac_ext >&5
1943    
1944     ac_compiler_gnu=no
1945     fi
1946     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1947     ac_cv_c_compiler_gnu=$ac_compiler_gnu
1948    
1949     fi
1950     echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1951     echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1952     GCC=`test $ac_compiler_gnu = yes && echo yes`
1953     ac_test_CFLAGS=${CFLAGS+set}
1954     ac_save_CFLAGS=$CFLAGS
1955     CFLAGS="-g"
1956     echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1957     echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1958     if test "${ac_cv_prog_cc_g+set}" = set; then
1959     echo $ECHO_N "(cached) $ECHO_C" >&6
1960     else
1961     cat >conftest.$ac_ext <<_ACEOF
1962     /* confdefs.h. */
1963     _ACEOF
1964     cat confdefs.h >>conftest.$ac_ext
1965     cat >>conftest.$ac_ext <<_ACEOF
1966     /* end confdefs.h. */
1967    
1968     int
1969     main ()
1970     {
1971    
1972     ;
1973     return 0;
1974     }
1975     _ACEOF
1976     rm -f conftest.$ac_objext
1977     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1978     (eval $ac_compile) 2>conftest.er1
1979     ac_status=$?
1980     grep -v '^ *+' conftest.er1 >conftest.err
1981     rm -f conftest.er1
1982     cat conftest.err >&5
1983     echo "$as_me:$LINENO: \$? = $ac_status" >&5
1984     (exit $ac_status); } &&
1985     { ac_try='test -z "$ac_c_werror_flag"
1986     || test ! -s conftest.err'
1987     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1988     (eval $ac_try) 2>&5
1989     ac_status=$?
1990     echo "$as_me:$LINENO: \$? = $ac_status" >&5
1991     (exit $ac_status); }; } &&
1992     { ac_try='test -s conftest.$ac_objext'
1993     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1994     (eval $ac_try) 2>&5
1995     ac_status=$?
1996     echo "$as_me:$LINENO: \$? = $ac_status" >&5
1997     (exit $ac_status); }; }; then
1998     ac_cv_prog_cc_g=yes
1999     else
2000     echo "$as_me: failed program was:" >&5
2001     sed 's/^/| /' conftest.$ac_ext >&5
2002    
2003     ac_cv_prog_cc_g=no
2004     fi
2005     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2006     fi
2007     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2008     echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2009     if test "$ac_test_CFLAGS" = set; then
2010     CFLAGS=$ac_save_CFLAGS
2011     elif test $ac_cv_prog_cc_g = yes; then
2012     if test "$GCC" = yes; then
2013     CFLAGS="-g -O2"
2014     else
2015     CFLAGS="-g"
2016     fi
2017     else
2018     if test "$GCC" = yes; then
2019     CFLAGS="-O2"
2020     else
2021     CFLAGS=
2022     fi
2023     fi
2024     echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2025     echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2026     if test "${ac_cv_prog_cc_stdc+set}" = set; then
2027     echo $ECHO_N "(cached) $ECHO_C" >&6
2028     else
2029     ac_cv_prog_cc_stdc=no
2030     ac_save_CC=$CC
2031     cat >conftest.$ac_ext <<_ACEOF
2032     /* confdefs.h. */
2033     _ACEOF
2034     cat confdefs.h >>conftest.$ac_ext
2035     cat >>conftest.$ac_ext <<_ACEOF
2036     /* end confdefs.h. */
2037     #include <stdarg.h>
2038     #include <stdio.h>
2039     #include <sys/types.h>
2040     #include <sys/stat.h>
2041     /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2042     struct buf { int x; };
2043     FILE * (*rcsopen) (struct buf *, struct stat *, int);
2044     static char *e (p, i)
2045     char **p;
2046     int i;
2047     {
2048     return p[i];
2049     }
2050     static char *f (char * (*g) (char **, int), char **p, ...)
2051     {
2052     char *s;
2053     va_list v;
2054     va_start (v,p);
2055     s = g (p, va_arg (v,int));
2056     va_end (v);
2057     return s;
2058     }
2059    
2060     /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2061     function prototypes and stuff, but not '\xHH' hex character constants.
2062     These don't provoke an error unfortunately, instead are silently treated
2063     as 'x'. The following induces an error, until -std1 is added to get
2064     proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2065     array size at least. It's necessary to write '\x00'==0 to get something
2066     that's true only with -std1. */
2067     int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2068    
2069     int test (int i, double x);
2070     struct s1 {int (*f) (int a);};
2071     struct s2 {int (*f) (double a);};
2072     int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2073     int argc;
2074     char **argv;
2075     int
2076     main ()
2077     {
2078     return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2079     ;
2080     return 0;
2081     }
2082     _ACEOF
2083     # Don't try gcc -ansi; that turns off useful extensions and
2084     # breaks some systems' header files.
2085     # AIX -qlanglvl=ansi
2086     # Ultrix and OSF/1 -std1
2087     # HP-UX 10.20 and later -Ae
2088     # HP-UX older versions -Aa -D_HPUX_SOURCE
2089     # SVR4 -Xc -D__EXTENSIONS__
2090     for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2091     do
2092     CC="$ac_save_CC $ac_arg"
2093     rm -f conftest.$ac_objext
2094     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2095     (eval $ac_compile) 2>conftest.er1
2096     ac_status=$?
2097     grep -v '^ *+' conftest.er1 >conftest.err
2098     rm -f conftest.er1
2099     cat conftest.err >&5
2100     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2101     (exit $ac_status); } &&
2102     { ac_try='test -z "$ac_c_werror_flag"
2103     || test ! -s conftest.err'
2104     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2105     (eval $ac_try) 2>&5
2106     ac_status=$?
2107     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2108     (exit $ac_status); }; } &&
2109     { ac_try='test -s conftest.$ac_objext'
2110     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2111     (eval $ac_try) 2>&5
2112     ac_status=$?
2113     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2114     (exit $ac_status); }; }; then
2115     ac_cv_prog_cc_stdc=$ac_arg
2116     break
2117     else
2118     echo "$as_me: failed program was:" >&5
2119     sed 's/^/| /' conftest.$ac_ext >&5
2120    
2121     fi
2122     rm -f conftest.err conftest.$ac_objext
2123     done
2124     rm -f conftest.$ac_ext conftest.$ac_objext
2125     CC=$ac_save_CC
2126    
2127     fi
2128    
2129     case "x$ac_cv_prog_cc_stdc" in
2130     x|xno)
2131     echo "$as_me:$LINENO: result: none needed" >&5
2132     echo "${ECHO_T}none needed" >&6 ;;
2133     *)
2134     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2135     echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2136     CC="$CC $ac_cv_prog_cc_stdc" ;;
2137     esac
2138    
2139     # Some people use a C++ compiler to compile C. Since we use `exit',
2140     # in C++ we need to declare it. In case someone uses the same compiler
2141     # for both compiling C and C++ we need to have the C++ compiler decide
2142     # the declaration of exit, since it's the most demanding environment.
2143     cat >conftest.$ac_ext <<_ACEOF
2144     #ifndef __cplusplus
2145     choke me
2146     #endif
2147     _ACEOF
2148     rm -f conftest.$ac_objext
2149     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2150     (eval $ac_compile) 2>conftest.er1
2151     ac_status=$?
2152     grep -v '^ *+' conftest.er1 >conftest.err
2153     rm -f conftest.er1
2154     cat conftest.err >&5
2155     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2156     (exit $ac_status); } &&
2157     { ac_try='test -z "$ac_c_werror_flag"
2158     || test ! -s conftest.err'
2159     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2160     (eval $ac_try) 2>&5
2161     ac_status=$?
2162     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2163     (exit $ac_status); }; } &&
2164     { ac_try='test -s conftest.$ac_objext'
2165     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2166     (eval $ac_try) 2>&5
2167     ac_status=$?
2168     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2169     (exit $ac_status); }; }; then
2170     for ac_declaration in \
2171     '' \
2172     'extern "C" void std::exit (int) throw (); using std::exit;' \
2173     'extern "C" void std::exit (int); using std::exit;' \
2174     'extern "C" void exit (int) throw ();' \
2175     'extern "C" void exit (int);' \
2176     'void exit (int);'
2177     do
2178     cat >conftest.$ac_ext <<_ACEOF
2179     /* confdefs.h. */
2180     _ACEOF
2181     cat confdefs.h >>conftest.$ac_ext
2182     cat >>conftest.$ac_ext <<_ACEOF
2183     /* end confdefs.h. */
2184     $ac_declaration
2185     #include <stdlib.h>
2186     int
2187     main ()
2188     {
2189     exit (42);
2190     ;
2191     return 0;
2192     }
2193     _ACEOF
2194     rm -f conftest.$ac_objext
2195     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2196     (eval $ac_compile) 2>conftest.er1
2197     ac_status=$?
2198     grep -v '^ *+' conftest.er1 >conftest.err
2199     rm -f conftest.er1
2200     cat conftest.err >&5
2201     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2202     (exit $ac_status); } &&
2203     { ac_try='test -z "$ac_c_werror_flag"
2204     || test ! -s conftest.err'
2205     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2206     (eval $ac_try) 2>&5
2207     ac_status=$?
2208     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2209     (exit $ac_status); }; } &&
2210     { ac_try='test -s conftest.$ac_objext'
2211     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2212     (eval $ac_try) 2>&5
2213     ac_status=$?
2214     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2215     (exit $ac_status); }; }; then
2216     :
2217     else
2218     echo "$as_me: failed program was:" >&5
2219     sed 's/^/| /' conftest.$ac_ext >&5
2220    
2221     continue
2222     fi
2223     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2224     cat >conftest.$ac_ext <<_ACEOF
2225     /* confdefs.h. */
2226     _ACEOF
2227     cat confdefs.h >>conftest.$ac_ext
2228     cat >>conftest.$ac_ext <<_ACEOF
2229     /* end confdefs.h. */
2230     $ac_declaration
2231     int
2232     main ()
2233     {
2234     exit (42);
2235     ;
2236     return 0;
2237     }
2238     _ACEOF
2239     rm -f conftest.$ac_objext
2240     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2241     (eval $ac_compile) 2>conftest.er1
2242     ac_status=$?
2243     grep -v '^ *+' conftest.er1 >conftest.err
2244     rm -f conftest.er1
2245     cat conftest.err >&5
2246     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2247     (exit $ac_status); } &&
2248     { ac_try='test -z "$ac_c_werror_flag"
2249     || test ! -s conftest.err'
2250     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2251     (eval $ac_try) 2>&5
2252     ac_status=$?
2253     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2254     (exit $ac_status); }; } &&
2255     { ac_try='test -s conftest.$ac_objext'
2256     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2257     (eval $ac_try) 2>&5
2258     ac_status=$?
2259     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2260     (exit $ac_status); }; }; then
2261     break
2262     else
2263     echo "$as_me: failed program was:" >&5
2264     sed 's/^/| /' conftest.$ac_ext >&5
2265    
2266     fi
2267     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2268     done
2269     rm -f conftest*
2270     if test -n "$ac_declaration"; then
2271     echo '#ifdef __cplusplus' >>confdefs.h
2272     echo $ac_declaration >>confdefs.h
2273     echo '#endif' >>confdefs.h
2274     fi
2275    
2276     else
2277     echo "$as_me: failed program was:" >&5
2278     sed 's/^/| /' conftest.$ac_ext >&5
2279    
2280     fi
2281     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2282     ac_ext=c
2283     ac_cpp='$CPP $CPPFLAGS'
2284     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2285     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2286     ac_compiler_gnu=$ac_cv_c_compiler_gnu
2287    
2288     ac_ext=c
2289     ac_cpp='$CPP $CPPFLAGS'
2290     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2291     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2292     ac_compiler_gnu=$ac_cv_c_compiler_gnu
2293    
2294    
2295     CFLAGS="$OLD_CFLAGS"
2296    
2297    
2298     if test "$ac_cv_c_compiler_gnu" != yes; then
2299    
2300     SGS=no
2301     echo "$as_me:$LINENO: checking $CC -version for TenDRA or MIPSpro" >&5
2302     echo $ECHO_N "checking $CC -version for TenDRA or MIPSpro... $ECHO_C" >&6
2303     case `$CC -version 2>&1` in
2304     *TenDRA*)
2305     echo "$as_me:$LINENO: result: yes, TenDRA" >&5
2306     echo "${ECHO_T}yes, TenDRA" >&6
2307     IRC_CFLAGS=""
2308     CPPFLAGS="$CPPFLAGS -Ylonglong -Yansi -Ysystem"
2309     SGS=yes
2310     TenDRA=yes
2311     ;;
2312     *MIPSpro*)
2313     echo "$as_me:$LINENO: result: yes, MIPSpro" >&5
2314     echo "${ECHO_T}yes, MIPSpro" >&6
2315     MIPSpro=yes
2316     SGS=yes
2317     ;;
2318     *)
2319     echo "$as_me:$LINENO: result: no" >&5
2320     echo "${ECHO_T}no" >&6
2321     TenDRA=no
2322     MIPSpro=no
2323     ;;
2324     esac
2325    
2326     echo "$as_me:$LINENO: checking $CC -V for Sun Workshop, Forte, HPUX or Tru64 cc" >&5
2327     echo $ECHO_N "checking $CC -V for Sun Workshop, Forte, HPUX or Tru64 cc... $ECHO_C" >&6
2328     case `$CC -V 2>&1` in
2329     *Sun*WorkShop* | *Forte*Developer* | *Sun*C*)
2330     echo "$as_me:$LINENO: result: Sun Workshop/Forte" >&5
2331     echo "${ECHO_T}Sun Workshop/Forte" >&6
2332     IRC_CFLAGS="-xO3 -xdepend -xinline=dlinkAdd,dlinkAddBefore,dlinkAddTail,dlinkDelete,dlink_list_length,dlink_node,dlinkMoveList,_MyMalloc,_MyRealloc,_MyFree,_DupString"
2333     SunWorkShop=yes
2334     SGS=yes
2335     ;;
2336     *Tru64*)
2337     echo "$as_me:$LINENO: result: Tru64 cc" >&5
2338     echo "${ECHO_T}Tru64 cc" >&6
2339     IRC_CFLAGS=""
2340     CPPFLAGS="-I/usr/local/include"
2341     Tru=yes
2342     ;;
2343     *HP*ANSI*)
2344     echo "$as_me:$LINENO: result: HPUX cc" >&5
2345     echo "${ECHO_T}HPUX cc" >&6
2346     HPUX=yes
2347     IRC_CFLAGS="+e"
2348     ;;
2349     *)
2350     echo "$as_me:$LINENO: result: no" >&5
2351     echo "${ECHO_T}no" >&6
2352     ;;
2353     esac
2354    
2355     fi
2356    
2357     echo "$as_me:$LINENO: checking uname -s for Cygwin, Solaris or HPUX" >&5
2358     echo $ECHO_N "checking uname -s for Cygwin, Solaris or HPUX... $ECHO_C" >&6
2359     case `uname -s` in
2360     HP-UX*)
2361    
2362     if test "$HPUX" != yes -a "$ac_cv_c_compiler_gnu" = no; then
2363     echo "$as_me:$LINENO: result: assuming old HPUX with its own cc" >&5
2364     echo "${ECHO_T}assuming old HPUX with its own cc" >&6
2365     IRC_CFLAGS="$IRC_CFLAGS +e"
2366     HPUX=yes
2367     else
2368     echo "$as_me:$LINENO: result: already using newer HPUX" >&5
2369     echo "${ECHO_T}already using newer HPUX" >&6
2370     fi
2371     ;;
2372     CYGWIN*)
2373     echo "$as_me:$LINENO: result: Cygwin" >&5
2374     echo "${ECHO_T}Cygwin" >&6
2375     CYGWIN=yes
2376     ;;
2377     SunOS*)
2378     echo "$as_me:$LINENO: result: SunOS or Solaris" >&5
2379     echo "${ECHO_T}SunOS or Solaris" >&6
2380    
2381     cat >>confdefs.h <<\_ACEOF
2382     #define __EXTENSIONS__ 1
2383     _ACEOF
2384    
2385     ;;
2386     *)
2387     echo "$as_me:$LINENO: result: no" >&5
2388     echo "${ECHO_T}no" >&6
2389     ;;
2390     esac
2391    
2392     if test "$ac_cv_c_compiler_gnu" = yes; then
2393     echo "$as_me:$LINENO: checking if $CC is Apple GCC" >&5
2394     echo $ECHO_N "checking if $CC is Apple GCC... $ECHO_C" >&6
2395    
2396     if expr "`$CC -v 2>&1 | tail -1`" : ".*Apple" >/dev/null; then
2397     AppleGCC=yes
2398     else
2399     AppleGCC=no
2400     fi
2401    
2402     echo "$as_me:$LINENO: result: $AppleGCC" >&5
2403     echo "${ECHO_T}$AppleGCC" >&6
2404    
2405     IRC_CFLAGS="$IRC_CFLAGS -Wall -O2"
2406     fi
2407    
2408     if test "$ac_cv_prog_cc_g" = yes; then
2409     if test "$Tru" = yes; then
2410     IRC_CFLAGS="$IRC_CFLAGS -g3"
2411     else
2412     IRC_CFLAGS="$IRC_CFLAGS -g"
2413     fi
2414     fi
2415    
2416     echo "$as_me:$LINENO: checking if $CC supports the SVR4 SGS interfaces" >&5
2417     echo $ECHO_N "checking if $CC supports the SVR4 SGS interfaces... $ECHO_C" >&6
2418     if test "$SGS" = "yes"; then
2419     echo "$as_me:$LINENO: result: yes" >&5
2420     echo "${ECHO_T}yes" >&6
2421     else
2422     echo "$as_me:$LINENO: result: no" >&5
2423     echo "${ECHO_T}no" >&6
2424     fi
2425    
2426     # Extract the first word of "mkdep", so it can be a program name with args.
2427     set dummy mkdep; ac_word=$2
2428     echo "$as_me:$LINENO: checking for $ac_word" >&5
2429     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2430     if test "${ac_cv_path_MKDEP+set}" = set; then
2431     echo $ECHO_N "(cached) $ECHO_C" >&6
2432     else
2433     case $MKDEP in
2434     [\\/]* | ?:[\\/]*)
2435     ac_cv_path_MKDEP="$MKDEP" # Let the user override the test with a path.
2436     ;;
2437     *)
2438     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2439     for as_dir in $PATH
2440     do
2441     IFS=$as_save_IFS
2442     test -z "$as_dir" && as_dir=.
2443     for ac_exec_ext in '' $ac_executable_extensions; do
2444     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2445     ac_cv_path_MKDEP="$as_dir/$ac_word$ac_exec_ext"
2446     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2447     break 2
2448     fi
2449     done
2450     done
2451    
2452     ;;
2453     esac
2454     fi
2455     MKDEP=$ac_cv_path_MKDEP
2456    
2457     if test -n "$MKDEP"; then
2458     echo "$as_me:$LINENO: result: $MKDEP" >&5
2459     echo "${ECHO_T}$MKDEP" >&6
2460     else
2461     echo "$as_me:$LINENO: result: no" >&5
2462     echo "${ECHO_T}no" >&6
2463     fi
2464    
2465     # Extract the first word of "makedepend", so it can be a program name with args.
2466     set dummy makedepend; ac_word=$2
2467     echo "$as_me:$LINENO: checking for $ac_word" >&5
2468     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2469     if test "${ac_cv_path_MAKEDEPEND+set}" = set; then
2470     echo $ECHO_N "(cached) $ECHO_C" >&6
2471     else
2472     case $MAKEDEPEND in
2473     [\\/]* | ?:[\\/]*)
2474     ac_cv_path_MAKEDEPEND="$MAKEDEPEND" # Let the user override the test with a path.
2475     ;;
2476     *)
2477     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2478     for as_dir in $PATH
2479     do
2480     IFS=$as_save_IFS
2481     test -z "$as_dir" && as_dir=.
2482     for ac_exec_ext in '' $ac_executable_extensions; do
2483     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2484     ac_cv_path_MAKEDEPEND="$as_dir/$ac_word$ac_exec_ext"
2485     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2486     break 2
2487     fi
2488     done
2489     done
2490    
2491     ;;
2492     esac
2493     fi
2494     MAKEDEPEND=$ac_cv_path_MAKEDEPEND
2495    
2496     if test -n "$MAKEDEPEND"; then
2497     echo "$as_me:$LINENO: result: $MAKEDEPEND" >&5
2498     echo "${ECHO_T}$MAKEDEPEND" >&6
2499     else
2500     echo "$as_me:$LINENO: result: no" >&5
2501     echo "${ECHO_T}no" >&6
2502     fi
2503    
2504    
2505     echo "$as_me:$LINENO: checking how to generate dependency info" >&5
2506     echo $ECHO_N "checking how to generate dependency info... $ECHO_C" >&6
2507    
2508     STDOUT="> .depend"
2509    
2510     if test "$ac_cv_c_compiler_gnu" = yes; then
2511     echo "$as_me:$LINENO: result: gcc -MM" >&5
2512     echo "${ECHO_T}gcc -MM" >&6
2513     MKDEP="$CC -MM"
2514     elif test ! -z "$MKDEP"; then
2515     echo "$as_me:$LINENO: result: mkdep" >&5
2516     echo "${ECHO_T}mkdep" >&6
2517    
2518     if test -z "$Tru"; then
2519     STDOUT=""
2520     else
2521     STDOUT=" 2> /dev/null"
2522     fi
2523     elif test "$SunWorkShop" = yes; then
2524     echo "$as_me:$LINENO: result: $CC -xM" >&5
2525     echo "${ECHO_T}$CC -xM" >&6
2526     MKDEP="$CC -xM"
2527     STDOUT="> .depend 2> /dev/null"
2528     elif test ! -z "$MAKEDEPEND"; then
2529     echo "$as_me:$LINENO: result: makedepend" >&5
2530     echo "${ECHO_T}makedepend" >&6
2531     MKDEP="$MAKEDEPEND -f-"
2532     else
2533     echo "$as_me:$LINENO: result: nothing suitable.. forget it!" >&5
2534     echo "${ECHO_T}nothing suitable.. forget it!" >&6
2535     MKDEP=":"
2536     fi
2537    
2538    
2539    
2540    
2541     echo "$as_me:$LINENO: checking for /dev/null" >&5
2542     echo $ECHO_N "checking for /dev/null... $ECHO_C" >&6
2543     if test -c /dev/null ; then
2544    
2545     cat >>confdefs.h <<\_ACEOF
2546     #define PATH_DEVNULL "/dev/null"
2547     _ACEOF
2548    
2549     echo "$as_me:$LINENO: result: yes" >&5
2550     echo "${ECHO_T}yes" >&6
2551     else
2552    
2553     cat >>confdefs.h <<\_ACEOF
2554     #define PATH_DEVNULL "devnull.log"
2555     _ACEOF
2556    
2557     echo "$as_me:$LINENO: result: no - using devnull.log" >&5
2558     echo "${ECHO_T}no - using devnull.log" >&6
2559     fi
2560    
2561     if test ! -z "$CFLAGS"; then
2562     IRC_CFLAGS="$IRC_CFLAGS $CFLAGS"
2563     fi
2564    
2565    
2566     echo "$as_me:$LINENO: checking for library containing strerror" >&5
2567     echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2568     if test "${ac_cv_search_strerror+set}" = set; then
2569     echo $ECHO_N "(cached) $ECHO_C" >&6
2570     else
2571     ac_func_search_save_LIBS=$LIBS
2572     ac_cv_search_strerror=no
2573     cat >conftest.$ac_ext <<_ACEOF
2574     /* confdefs.h. */
2575     _ACEOF
2576     cat confdefs.h >>conftest.$ac_ext
2577     cat >>conftest.$ac_ext <<_ACEOF
2578     /* end confdefs.h. */
2579    
2580     /* Override any gcc2 internal prototype to avoid an error. */
2581     #ifdef __cplusplus
2582     extern "C"
2583     #endif
2584     /* We use char because int might match the return type of a gcc2
2585     builtin and then its argument prototype would still apply. */
2586     char strerror ();
2587     int
2588     main ()
2589     {
2590     strerror ();
2591     ;
2592     return 0;
2593     }
2594     _ACEOF
2595     rm -f conftest.$ac_objext conftest$ac_exeext
2596     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2597     (eval $ac_link) 2>conftest.er1
2598     ac_status=$?
2599     grep -v '^ *+' conftest.er1 >conftest.err
2600     rm -f conftest.er1
2601     cat conftest.err >&5
2602     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2603     (exit $ac_status); } &&
2604     { ac_try='test -z "$ac_c_werror_flag"
2605     || test ! -s conftest.err'
2606     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2607     (eval $ac_try) 2>&5
2608     ac_status=$?
2609     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2610     (exit $ac_status); }; } &&
2611     { ac_try='test -s conftest$ac_exeext'
2612     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2613     (eval $ac_try) 2>&5
2614     ac_status=$?
2615     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2616     (exit $ac_status); }; }; then
2617     ac_cv_search_strerror="none required"
2618     else
2619     echo "$as_me: failed program was:" >&5
2620     sed 's/^/| /' conftest.$ac_ext >&5
2621    
2622     fi
2623     rm -f conftest.err conftest.$ac_objext \
2624     conftest$ac_exeext conftest.$ac_ext
2625     if test "$ac_cv_search_strerror" = no; then
2626     for ac_lib in cposix; do
2627     LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2628     cat >conftest.$ac_ext <<_ACEOF
2629     /* confdefs.h. */
2630     _ACEOF
2631     cat confdefs.h >>conftest.$ac_ext
2632     cat >>conftest.$ac_ext <<_ACEOF
2633     /* end confdefs.h. */
2634    
2635     /* Override any gcc2 internal prototype to avoid an error. */
2636     #ifdef __cplusplus
2637     extern "C"
2638     #endif
2639     /* We use char because int might match the return type of a gcc2
2640     builtin and then its argument prototype would still apply. */
2641     char strerror ();
2642     int
2643     main ()
2644     {
2645     strerror ();
2646     ;
2647     return 0;
2648     }
2649     _ACEOF
2650     rm -f conftest.$ac_objext conftest$ac_exeext
2651     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2652     (eval $ac_link) 2>conftest.er1
2653     ac_status=$?
2654     grep -v '^ *+' conftest.er1 >conftest.err
2655     rm -f conftest.er1
2656     cat conftest.err >&5
2657     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2658     (exit $ac_status); } &&
2659     { ac_try='test -z "$ac_c_werror_flag"
2660     || test ! -s conftest.err'
2661     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2662     (eval $ac_try) 2>&5
2663     ac_status=$?
2664     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2665     (exit $ac_status); }; } &&
2666     { ac_try='test -s conftest$ac_exeext'
2667     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2668     (eval $ac_try) 2>&5
2669     ac_status=$?
2670     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2671     (exit $ac_status); }; }; then
2672     ac_cv_search_strerror="-l$ac_lib"
2673     break
2674     else
2675     echo "$as_me: failed program was:" >&5
2676     sed 's/^/| /' conftest.$ac_ext >&5
2677    
2678     fi
2679     rm -f conftest.err conftest.$ac_objext \
2680     conftest$ac_exeext conftest.$ac_ext
2681     done
2682     fi
2683     LIBS=$ac_func_search_save_LIBS
2684     fi
2685     echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2686     echo "${ECHO_T}$ac_cv_search_strerror" >&6
2687     if test "$ac_cv_search_strerror" != no; then
2688     test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2689    
2690     fi
2691    
2692     echo "$as_me:$LINENO: checking for inline" >&5
2693     echo $ECHO_N "checking for inline... $ECHO_C" >&6
2694     if test "${ac_cv_c_inline+set}" = set; then
2695     echo $ECHO_N "(cached) $ECHO_C" >&6
2696     else
2697     ac_cv_c_inline=no
2698     for ac_kw in inline __inline__ __inline; do
2699     cat >conftest.$ac_ext <<_ACEOF
2700     /* confdefs.h. */
2701     _ACEOF
2702     cat confdefs.h >>conftest.$ac_ext
2703     cat >>conftest.$ac_ext <<_ACEOF
2704     /* end confdefs.h. */
2705     #ifndef __cplusplus
2706     typedef int foo_t;
2707     static $ac_kw foo_t static_foo () {return 0; }
2708     $ac_kw foo_t foo () {return 0; }
2709     #endif
2710    
2711     _ACEOF
2712     rm -f conftest.$ac_objext
2713     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2714     (eval $ac_compile) 2>conftest.er1
2715     ac_status=$?
2716     grep -v '^ *+' conftest.er1 >conftest.err
2717     rm -f conftest.er1
2718     cat conftest.err >&5
2719     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2720     (exit $ac_status); } &&
2721     { ac_try='test -z "$ac_c_werror_flag"
2722     || test ! -s conftest.err'
2723     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2724     (eval $ac_try) 2>&5
2725     ac_status=$?
2726     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2727     (exit $ac_status); }; } &&
2728     { ac_try='test -s conftest.$ac_objext'
2729     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2730     (eval $ac_try) 2>&5
2731     ac_status=$?
2732     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2733     (exit $ac_status); }; }; then
2734     ac_cv_c_inline=$ac_kw; break
2735     else
2736     echo "$as_me: failed program was:" >&5
2737     sed 's/^/| /' conftest.$ac_ext >&5
2738    
2739     fi
2740     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2741     done
2742    
2743     fi
2744     echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
2745     echo "${ECHO_T}$ac_cv_c_inline" >&6
2746    
2747    
2748     case $ac_cv_c_inline in
2749     inline | yes) ;;
2750     *)
2751     case $ac_cv_c_inline in
2752     no) ac_val=;;
2753     *) ac_val=$ac_cv_c_inline;;
2754     esac
2755     cat >>confdefs.h <<_ACEOF
2756     #ifndef __cplusplus
2757     #define inline $ac_val
2758     #endif
2759     _ACEOF
2760     ;;
2761     esac
2762    
2763     ac_ext=c
2764     ac_cpp='$CPP $CPPFLAGS'
2765     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2766     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2767     ac_compiler_gnu=$ac_cv_c_compiler_gnu
2768     echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2769     echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2770     # On Suns, sometimes $CPP names a directory.
2771     if test -n "$CPP" && test -d "$CPP"; then
2772     CPP=
2773     fi
2774     if test -z "$CPP"; then
2775     if test "${ac_cv_prog_CPP+set}" = set; then
2776     echo $ECHO_N "(cached) $ECHO_C" >&6
2777     else
2778     # Double quotes because CPP needs to be expanded
2779     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2780     do
2781     ac_preproc_ok=false
2782     for ac_c_preproc_warn_flag in '' yes
2783     do
2784     # Use a header file that comes with gcc, so configuring glibc
2785     # with a fresh cross-compiler works.
2786     # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2787     # <limits.h> exists even on freestanding compilers.
2788     # On the NeXT, cc -E runs the code through the compiler's parser,
2789     # not just through cpp. "Syntax error" is here to catch this case.
2790     cat >conftest.$ac_ext <<_ACEOF
2791     /* confdefs.h. */
2792     _ACEOF
2793     cat confdefs.h >>conftest.$ac_ext
2794     cat >>conftest.$ac_ext <<_ACEOF
2795     /* end confdefs.h. */
2796     #ifdef __STDC__
2797     # include <limits.h>
2798     #else
2799     # include <assert.h>
2800     #endif
2801     Syntax error
2802     _ACEOF
2803     if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2804     (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2805     ac_status=$?
2806     grep -v '^ *+' conftest.er1 >conftest.err
2807     rm -f conftest.er1
2808     cat conftest.err >&5
2809     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2810     (exit $ac_status); } >/dev/null; then
2811     if test -s conftest.err; then
2812     ac_cpp_err=$ac_c_preproc_warn_flag
2813     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2814     else
2815     ac_cpp_err=
2816     fi
2817     else
2818     ac_cpp_err=yes
2819     fi
2820     if test -z "$ac_cpp_err"; then
2821     :
2822     else
2823     echo "$as_me: failed program was:" >&5
2824     sed 's/^/| /' conftest.$ac_ext >&5
2825    
2826     # Broken: fails on valid input.
2827     continue
2828     fi
2829     rm -f conftest.err conftest.$ac_ext
2830    
2831     # OK, works on sane cases. Now check whether non-existent headers
2832     # can be detected and how.
2833     cat >conftest.$ac_ext <<_ACEOF
2834     /* confdefs.h. */
2835     _ACEOF
2836     cat confdefs.h >>conftest.$ac_ext
2837     cat >>conftest.$ac_ext <<_ACEOF
2838     /* end confdefs.h. */
2839     #include <ac_nonexistent.h>
2840     _ACEOF
2841     if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2842     (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2843     ac_status=$?
2844     grep -v '^ *+' conftest.er1 >conftest.err
2845     rm -f conftest.er1
2846     cat conftest.err >&5
2847     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2848     (exit $ac_status); } >/dev/null; then
2849     if test -s conftest.err; then
2850     ac_cpp_err=$ac_c_preproc_warn_flag
2851     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2852     else
2853     ac_cpp_err=
2854     fi
2855     else
2856     ac_cpp_err=yes
2857     fi
2858     if test -z "$ac_cpp_err"; then
2859     # Broken: success on invalid input.
2860     continue
2861     else
2862     echo "$as_me: failed program was:" >&5
2863     sed 's/^/| /' conftest.$ac_ext >&5
2864    
2865     # Passes both tests.
2866     ac_preproc_ok=:
2867     break
2868     fi
2869     rm -f conftest.err conftest.$ac_ext
2870    
2871     done
2872     # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2873     rm -f conftest.err conftest.$ac_ext
2874     if $ac_preproc_ok; then
2875     break
2876     fi
2877    
2878     done
2879     ac_cv_prog_CPP=$CPP
2880    
2881     fi
2882     CPP=$ac_cv_prog_CPP
2883     else
2884     ac_cv_prog_CPP=$CPP
2885     fi
2886     echo "$as_me:$LINENO: result: $CPP" >&5
2887     echo "${ECHO_T}$CPP" >&6
2888     ac_preproc_ok=false
2889     for ac_c_preproc_warn_flag in '' yes
2890     do
2891     # Use a header file that comes with gcc, so configuring glibc
2892     # with a fresh cross-compiler works.
2893     # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2894     # <limits.h> exists even on freestanding compilers.
2895     # On the NeXT, cc -E runs the code through the compiler's parser,
2896     # not just through cpp. "Syntax error" is here to catch this case.
2897     cat >conftest.$ac_ext <<_ACEOF
2898     /* confdefs.h. */
2899     _ACEOF
2900     cat confdefs.h >>conftest.$ac_ext
2901     cat >>conftest.$ac_ext <<_ACEOF
2902     /* end confdefs.h. */
2903     #ifdef __STDC__
2904     # include <limits.h>
2905     #else
2906     # include <assert.h>
2907     #endif
2908     Syntax error
2909     _ACEOF
2910     if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2911     (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2912     ac_status=$?
2913     grep -v '^ *+' conftest.er1 >conftest.err
2914     rm -f conftest.er1
2915     cat conftest.err >&5
2916     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2917     (exit $ac_status); } >/dev/null; then
2918     if test -s conftest.err; then
2919     ac_cpp_err=$ac_c_preproc_warn_flag
2920     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2921     else
2922     ac_cpp_err=
2923     fi
2924     else
2925     ac_cpp_err=yes
2926     fi
2927     if test -z "$ac_cpp_err"; then
2928     :
2929     else
2930     echo "$as_me: failed program was:" >&5
2931     sed 's/^/| /' conftest.$ac_ext >&5
2932    
2933     # Broken: fails on valid input.
2934     continue
2935     fi
2936     rm -f conftest.err conftest.$ac_ext
2937    
2938     # OK, works on sane cases. Now check whether non-existent headers
2939     # can be detected and how.
2940     cat >conftest.$ac_ext <<_ACEOF
2941     /* confdefs.h. */
2942     _ACEOF
2943     cat confdefs.h >>conftest.$ac_ext
2944     cat >>conftest.$ac_ext <<_ACEOF
2945     /* end confdefs.h. */
2946     #include <ac_nonexistent.h>
2947     _ACEOF
2948     if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2949     (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2950     ac_status=$?
2951     grep -v '^ *+' conftest.er1 >conftest.err
2952     rm -f conftest.er1
2953     cat conftest.err >&5
2954     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2955     (exit $ac_status); } >/dev/null; then
2956     if test -s conftest.err; then
2957     ac_cpp_err=$ac_c_preproc_warn_flag
2958     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2959     else
2960     ac_cpp_err=
2961     fi
2962     else
2963     ac_cpp_err=yes
2964     fi
2965     if test -z "$ac_cpp_err"; then
2966     # Broken: success on invalid input.
2967     continue
2968     else
2969     echo "$as_me: failed program was:" >&5
2970     sed 's/^/| /' conftest.$ac_ext >&5
2971    
2972     # Passes both tests.
2973     ac_preproc_ok=:
2974     break
2975     fi
2976     rm -f conftest.err conftest.$ac_ext
2977    
2978     done
2979     # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2980     rm -f conftest.err conftest.$ac_ext
2981     if $ac_preproc_ok; then
2982     :
2983     else
2984     { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2985     See \`config.log' for more details." >&5
2986     echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2987     See \`config.log' for more details." >&2;}
2988     { (exit 1); exit 1; }; }
2989     fi
2990    
2991     ac_ext=c
2992     ac_cpp='$CPP $CPPFLAGS'
2993     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2994     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2995     ac_compiler_gnu=$ac_cv_c_compiler_gnu
2996    
2997    
2998     echo "$as_me:$LINENO: checking for egrep" >&5
2999     echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3000     if test "${ac_cv_prog_egrep+set}" = set; then
3001     echo $ECHO_N "(cached) $ECHO_C" >&6
3002     else
3003     if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3004     then ac_cv_prog_egrep='grep -E'
3005     else ac_cv_prog_egrep='egrep'
3006     fi
3007     fi
3008     echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3009     echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3010     EGREP=$ac_cv_prog_egrep
3011    
3012    
3013     if test $ac_cv_c_compiler_gnu = yes; then
3014     echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3015     echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
3016     if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3017     echo $ECHO_N "(cached) $ECHO_C" >&6
3018     else
3019     ac_pattern="Autoconf.*'x'"
3020     cat >conftest.$ac_ext <<_ACEOF
3021     /* confdefs.h. */
3022     _ACEOF
3023     cat confdefs.h >>conftest.$ac_ext
3024     cat >>conftest.$ac_ext <<_ACEOF
3025     /* end confdefs.h. */
3026     #include <sgtty.h>
3027     Autoconf TIOCGETP
3028     _ACEOF
3029     if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3030     $EGREP "$ac_pattern" >/dev/null 2>&1; then
3031     ac_cv_prog_gcc_traditional=yes
3032     else
3033     ac_cv_prog_gcc_traditional=no
3034     fi
3035     rm -f conftest*
3036    
3037    
3038     if test $ac_cv_prog_gcc_traditional = no; then
3039     cat >conftest.$ac_ext <<_ACEOF
3040     /* confdefs.h. */
3041     _ACEOF
3042     cat confdefs.h >>conftest.$ac_ext
3043     cat >>conftest.$ac_ext <<_ACEOF
3044     /* end confdefs.h. */
3045     #include <termio.h>
3046     Autoconf TCGETA
3047     _ACEOF
3048     if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3049     $EGREP "$ac_pattern" >/dev/null 2>&1; then
3050     ac_cv_prog_gcc_traditional=yes
3051     fi
3052     rm -f conftest*
3053    
3054     fi
3055     fi
3056     echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3057     echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
3058     if test $ac_cv_prog_gcc_traditional = yes; then
3059     CC="$CC -traditional"
3060     fi
3061     fi
3062    
3063     echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3064     echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3065     set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3066     if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3067     echo $ECHO_N "(cached) $ECHO_C" >&6
3068     else
3069     cat >conftest.make <<\_ACEOF
3070     all:
3071     @echo 'ac_maketemp="$(MAKE)"'
3072     _ACEOF
3073     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3074     eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3075     if test -n "$ac_maketemp"; then
3076     eval ac_cv_prog_make_${ac_make}_set=yes
3077     else
3078     eval ac_cv_prog_make_${ac_make}_set=no
3079     fi
3080     rm -f conftest.make
3081     fi
3082     if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3083     echo "$as_me:$LINENO: result: yes" >&5
3084     echo "${ECHO_T}yes" >&6
3085     SET_MAKE=
3086     else
3087     echo "$as_me:$LINENO: result: no" >&5
3088     echo "${ECHO_T}no" >&6
3089     SET_MAKE="MAKE=${MAKE-make}"
3090     fi
3091    
3092     ac_aux_dir=
3093     for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
3094     if test -f $ac_dir/install-sh; then
3095     ac_aux_dir=$ac_dir
3096     ac_install_sh="$ac_aux_dir/install-sh -c"
3097     break
3098     elif test -f $ac_dir/install.sh; then
3099     ac_aux_dir=$ac_dir
3100     ac_install_sh="$ac_aux_dir/install.sh -c"
3101     break
3102     elif test -f $ac_dir/shtool; then
3103     ac_aux_dir=$ac_dir
3104     ac_install_sh="$ac_aux_dir/shtool install -c"
3105     break
3106     fi
3107     done
3108     if test -z "$ac_aux_dir"; then
3109     { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
3110     echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
3111     { (exit 1); exit 1; }; }
3112     fi
3113     ac_config_guess="$SHELL $ac_aux_dir/config.guess"
3114     ac_config_sub="$SHELL $ac_aux_dir/config.sub"
3115     ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
3116    
3117     # Find a good install program. We prefer a C program (faster),
3118     # so one script is as good as another. But avoid the broken or
3119     # incompatible versions:
3120     # SysV /etc/install, /usr/sbin/install
3121     # SunOS /usr/etc/install
3122     # IRIX /sbin/install
3123     # AIX /bin/install
3124     # AmigaOS /C/install, which installs bootblocks on floppy discs
3125     # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3126     # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3127     # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3128     # OS/2's system install, which has a completely different semantic
3129     # ./install, which can be erroneously created by make from ./install.sh.
3130     echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3131     echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3132     if test -z "$INSTALL"; then
3133     if test "${ac_cv_path_install+set}" = set; then
3134     echo $ECHO_N "(cached) $ECHO_C" >&6
3135     else
3136     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3137     for as_dir in $PATH
3138     do
3139     IFS=$as_save_IFS
3140     test -z "$as_dir" && as_dir=.
3141     # Account for people who put trailing slashes in PATH elements.
3142     case $as_dir/ in
3143     ./ | .// | /cC/* | \
3144     /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3145     ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3146     /usr/ucb/* ) ;;
3147     *)
3148     # OSF1 and SCO ODT 3.0 have their own names for install.
3149     # Don't use installbsd from OSF since it installs stuff as root
3150     # by default.
3151     for ac_prog in ginstall scoinst install; do
3152     for ac_exec_ext in '' $ac_executable_extensions; do
3153     if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3154     if test $ac_prog = install &&
3155     grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3156     # AIX install. It has an incompatible calling convention.
3157     :
3158     elif test $ac_prog = install &&
3159     grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3160     # program-specific install script used by HP pwplus--don't use.
3161     :
3162     else
3163     ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3164     break 3
3165     fi
3166     fi
3167     done
3168     done
3169     ;;
3170     esac
3171     done
3172    
3173    
3174     fi
3175     if test "${ac_cv_path_install+set}" = set; then
3176     INSTALL=$ac_cv_path_install
3177     else
3178     # As a last resort, use the slow shell script. We don't cache a
3179     # path for INSTALL within a source directory, because that will
3180     # break other packages using the cache if that directory is
3181     # removed, or if the path is relative.
3182     INSTALL=$ac_install_sh
3183     fi
3184     fi
3185     echo "$as_me:$LINENO: result: $INSTALL" >&5
3186     echo "${ECHO_T}$INSTALL" >&6
3187    
3188     # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3189     # It thinks the first close brace ends the variable substitution.
3190     test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3191    
3192     test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3193    
3194     test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3195    
3196     # Extract the first word of "rm", so it can be a program name with args.
3197     set dummy rm; ac_word=$2
3198     echo "$as_me:$LINENO: checking for $ac_word" >&5
3199     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3200     if test "${ac_cv_path_RM+set}" = set; then
3201     echo $ECHO_N "(cached) $ECHO_C" >&6
3202     else
3203     case $RM in
3204     [\\/]* | ?:[\\/]*)
3205     ac_cv_path_RM="$RM" # Let the user override the test with a path.
3206     ;;
3207     *)
3208     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3209     for as_dir in $PATH
3210     do
3211     IFS=$as_save_IFS
3212     test -z "$as_dir" && as_dir=.
3213     for ac_exec_ext in '' $ac_executable_extensions; do
3214     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3215     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
3216     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3217     break 2
3218     fi
3219     done
3220     done
3221    
3222     ;;
3223     esac
3224     fi
3225     RM=$ac_cv_path_RM
3226    
3227     if test -n "$RM"; then
3228     echo "$as_me:$LINENO: result: $RM" >&5
3229     echo "${ECHO_T}$RM" >&6
3230     else
3231     echo "$as_me:$LINENO: result: no" >&5
3232     echo "${ECHO_T}no" >&6
3233     fi
3234    
3235     # Extract the first word of "cp", so it can be a program name with args.
3236     set dummy cp; ac_word=$2
3237     echo "$as_me:$LINENO: checking for $ac_word" >&5
3238     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3239     if test "${ac_cv_path_CP+set}" = set; then
3240     echo $ECHO_N "(cached) $ECHO_C" >&6
3241     else
3242     case $CP in
3243     [\\/]* | ?:[\\/]*)
3244     ac_cv_path_CP="$CP" # Let the user override the test with a path.
3245     ;;
3246     *)
3247     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3248     for as_dir in $PATH
3249     do
3250     IFS=$as_save_IFS
3251     test -z "$as_dir" && as_dir=.
3252     for ac_exec_ext in '' $ac_executable_extensions; do
3253     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3254     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
3255     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3256     break 2
3257     fi
3258     done
3259     done
3260    
3261     ;;
3262     esac
3263     fi
3264     CP=$ac_cv_path_CP
3265    
3266     if test -n "$CP"; then
3267     echo "$as_me:$LINENO: result: $CP" >&5
3268     echo "${ECHO_T}$CP" >&6
3269     else
3270     echo "$as_me:$LINENO: result: no" >&5
3271     echo "${ECHO_T}no" >&6
3272     fi
3273    
3274     # Extract the first word of "mv", so it can be a program name with args.
3275     set dummy mv; ac_word=$2
3276     echo "$as_me:$LINENO: checking for $ac_word" >&5
3277     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3278     if test "${ac_cv_path_MV+set}" = set; then
3279     echo $ECHO_N "(cached) $ECHO_C" >&6
3280     else
3281     case $MV in
3282     [\\/]* | ?:[\\/]*)
3283     ac_cv_path_MV="$MV" # Let the user override the test with a path.
3284     ;;
3285     *)
3286     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3287     for as_dir in $PATH
3288     do
3289     IFS=$as_save_IFS
3290     test -z "$as_dir" && as_dir=.
3291     for ac_exec_ext in '' $ac_executable_extensions; do
3292     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3293     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
3294     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3295     break 2
3296     fi
3297     done
3298     done
3299    
3300     ;;
3301     esac
3302     fi
3303     MV=$ac_cv_path_MV
3304    
3305     if test -n "$MV"; then
3306     echo "$as_me:$LINENO: result: $MV" >&5
3307     echo "${ECHO_T}$MV" >&6
3308     else
3309     echo "$as_me:$LINENO: result: no" >&5
3310     echo "${ECHO_T}no" >&6
3311     fi
3312    
3313     # Extract the first word of "ln", so it can be a program name with args.
3314     set dummy ln; ac_word=$2
3315     echo "$as_me:$LINENO: checking for $ac_word" >&5
3316     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3317     if test "${ac_cv_path_LN+set}" = set; then
3318     echo $ECHO_N "(cached) $ECHO_C" >&6
3319     else
3320     case $LN in
3321     [\\/]* | ?:[\\/]*)
3322     ac_cv_path_LN="$LN" # Let the user override the test with a path.
3323     ;;
3324     *)
3325     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3326     for as_dir in $PATH
3327     do
3328     IFS=$as_save_IFS
3329     test -z "$as_dir" && as_dir=.
3330     for ac_exec_ext in '' $ac_executable_extensions; do
3331     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3332     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
3333     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3334     break 2
3335     fi
3336     done
3337     done
3338    
3339     ;;
3340     esac
3341     fi
3342     LN=$ac_cv_path_LN
3343    
3344     if test -n "$LN"; then
3345     echo "$as_me:$LINENO: result: $LN" >&5
3346     echo "${ECHO_T}$LN" >&6
3347     else
3348     echo "$as_me:$LINENO: result: no" >&5
3349     echo "${ECHO_T}no" >&6
3350     fi
3351    
3352     # Extract the first word of "sed", so it can be a program name with args.
3353     set dummy sed; ac_word=$2
3354     echo "$as_me:$LINENO: checking for $ac_word" >&5
3355     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3356     if test "${ac_cv_path_SED+set}" = set; then
3357     echo $ECHO_N "(cached) $ECHO_C" >&6
3358     else
3359     case $SED in
3360     [\\/]* | ?:[\\/]*)
3361     ac_cv_path_SED="$SED" # Let the user override the test with a path.
3362     ;;
3363     *)
3364     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3365     for as_dir in $PATH
3366     do
3367     IFS=$as_save_IFS
3368     test -z "$as_dir" && as_dir=.
3369     for ac_exec_ext in '' $ac_executable_extensions; do
3370     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3371     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
3372     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3373     break 2
3374     fi
3375     done
3376     done
3377    
3378     ;;
3379     esac
3380     fi
3381     SED=$ac_cv_path_SED
3382    
3383     if test -n "$SED"; then
3384     echo "$as_me:$LINENO: result: $SED" >&5
3385     echo "${ECHO_T}$SED" >&6
3386     else
3387     echo "$as_me:$LINENO: result: no" >&5
3388     echo "${ECHO_T}no" >&6
3389     fi
3390    
3391     # Extract the first word of "ar", so it can be a program name with args.
3392     set dummy ar; ac_word=$2
3393     echo "$as_me:$LINENO: checking for $ac_word" >&5
3394     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3395     if test "${ac_cv_path_AR+set}" = set; then
3396     echo $ECHO_N "(cached) $ECHO_C" >&6
3397     else
3398     case $AR in
3399     [\\/]* | ?:[\\/]*)
3400     ac_cv_path_AR="$AR" # Let the user override the test with a path.
3401     ;;
3402     *)
3403     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3404     for as_dir in $PATH
3405     do
3406     IFS=$as_save_IFS
3407     test -z "$as_dir" && as_dir=.
3408     for ac_exec_ext in '' $ac_executable_extensions; do
3409     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3410     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
3411     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3412     break 2
3413     fi
3414     done
3415     done
3416    
3417     ;;
3418     esac
3419     fi
3420     AR=$ac_cv_path_AR
3421    
3422     if test -n "$AR"; then
3423     echo "$as_me:$LINENO: result: $AR" >&5
3424     echo "${ECHO_T}$AR" >&6
3425     else
3426     echo "$as_me:$LINENO: result: no" >&5
3427     echo "${ECHO_T}no" >&6
3428     fi
3429    
3430     # Extract the first word of "ld", so it can be a program name with args.
3431     set dummy ld; ac_word=$2
3432     echo "$as_me:$LINENO: checking for $ac_word" >&5
3433     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3434     if test "${ac_cv_path_LD+set}" = set; then
3435     echo $ECHO_N "(cached) $ECHO_C" >&6
3436     else
3437     case $LD in
3438     [\\/]* | ?:[\\/]*)
3439     ac_cv_path_LD="$LD" # Let the user override the test with a path.
3440     ;;
3441     *)
3442     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3443     for as_dir in $PATH
3444     do
3445     IFS=$as_save_IFS
3446     test -z "$as_dir" && as_dir=.
3447     for ac_exec_ext in '' $ac_executable_extensions; do
3448     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3449     ac_cv_path_LD="$as_dir/$ac_word$ac_exec_ext"
3450     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3451     break 2
3452     fi
3453     done
3454     done
3455    
3456     ;;
3457     esac
3458     fi
3459     LD=$ac_cv_path_LD
3460    
3461     if test -n "$LD"; then
3462     echo "$as_me:$LINENO: result: $LD" >&5
3463     echo "${ECHO_T}$LD" >&6
3464     else
3465     echo "$as_me:$LINENO: result: no" >&5
3466     echo "${ECHO_T}no" >&6
3467     fi
3468    
3469     # Extract the first word of "test", so it can be a program name with args.
3470     set dummy test; ac_word=$2
3471     echo "$as_me:$LINENO: checking for $ac_word" >&5
3472     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3473     if test "${ac_cv_path_TEST+set}" = set; then
3474     echo $ECHO_N "(cached) $ECHO_C" >&6
3475     else
3476     case $TEST in
3477     [\\/]* | ?:[\\/]*)
3478     ac_cv_path_TEST="$TEST" # Let the user override the test with a path.
3479     ;;
3480     *)
3481     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3482     for as_dir in $PATH
3483     do
3484     IFS=$as_save_IFS
3485     test -z "$as_dir" && as_dir=.
3486     for ac_exec_ext in '' $ac_executable_extensions; do
3487     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3488     ac_cv_path_TEST="$as_dir/$ac_word$ac_exec_ext"
3489     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3490     break 2
3491     fi
3492     done
3493     done
3494    
3495     test -z "$ac_cv_path_TEST" && ac_cv_path_TEST="test"
3496     ;;
3497     esac
3498     fi
3499     TEST=$ac_cv_path_TEST
3500    
3501     if test -n "$TEST"; then
3502     echo "$as_me:$LINENO: result: $TEST" >&5
3503     echo "${ECHO_T}$TEST" >&6
3504     else
3505     echo "$as_me:$LINENO: result: no" >&5
3506     echo "${ECHO_T}no" >&6
3507     fi
3508    
3509    
3510     if test "$libexecdir" = '${exec_prefix}/libexec' &&
3511     test "$localstatedir" = '${prefix}/var'; then
3512     libexecdir='${bindir}'
3513     localstatedir='${prefix}'
3514     fi
3515    
3516     echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3517     echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3518     if test "${ac_cv_header_stdc+set}" = set; then
3519     echo $ECHO_N "(cached) $ECHO_C" >&6
3520     else
3521     cat >conftest.$ac_ext <<_ACEOF
3522     /* confdefs.h. */
3523     _ACEOF
3524     cat confdefs.h >>conftest.$ac_ext
3525     cat >>conftest.$ac_ext <<_ACEOF
3526     /* end confdefs.h. */
3527     #include <stdlib.h>
3528     #include <stdarg.h>
3529     #include <string.h>
3530     #include <float.h>
3531    
3532     int
3533     main ()
3534     {
3535    
3536     ;
3537     return 0;
3538     }
3539     _ACEOF
3540     rm -f conftest.$ac_objext
3541     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3542     (eval $ac_compile) 2>conftest.er1
3543     ac_status=$?
3544     grep -v '^ *+' conftest.er1 >conftest.err
3545     rm -f conftest.er1
3546     cat conftest.err >&5
3547     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3548     (exit $ac_status); } &&
3549     { ac_try='test -z "$ac_c_werror_flag"
3550     || test ! -s conftest.err'
3551     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3552     (eval $ac_try) 2>&5
3553     ac_status=$?
3554     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3555     (exit $ac_status); }; } &&
3556     { ac_try='test -s conftest.$ac_objext'
3557     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3558     (eval $ac_try) 2>&5
3559     ac_status=$?
3560     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3561     (exit $ac_status); }; }; then
3562     ac_cv_header_stdc=yes
3563     else
3564     echo "$as_me: failed program was:" >&5
3565     sed 's/^/| /' conftest.$ac_ext >&5
3566    
3567     ac_cv_header_stdc=no
3568     fi
3569     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3570    
3571     if test $ac_cv_header_stdc = yes; then
3572     # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3573     cat >conftest.$ac_ext <<_ACEOF
3574     /* confdefs.h. */
3575     _ACEOF
3576     cat confdefs.h >>conftest.$ac_ext
3577     cat >>conftest.$ac_ext <<_ACEOF
3578     /* end confdefs.h. */
3579     #include <string.h>
3580    
3581     _ACEOF
3582     if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3583     $EGREP "memchr" >/dev/null 2>&1; then
3584     :
3585     else
3586     ac_cv_header_stdc=no
3587     fi
3588     rm -f conftest*
3589    
3590     fi
3591    
3592     if test $ac_cv_header_stdc = yes; then
3593     # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3594     cat >conftest.$ac_ext <<_ACEOF
3595     /* confdefs.h. */
3596     _ACEOF
3597     cat confdefs.h >>conftest.$ac_ext
3598     cat >>conftest.$ac_ext <<_ACEOF
3599     /* end confdefs.h. */
3600     #include <stdlib.h>
3601    
3602     _ACEOF
3603     if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3604     $EGREP "free" >/dev/null 2>&1; then
3605     :
3606     else
3607     ac_cv_header_stdc=no
3608     fi
3609     rm -f conftest*
3610    
3611     fi
3612    
3613     if test $ac_cv_header_stdc = yes; then
3614     # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3615     if test "$cross_compiling" = yes; then
3616     :
3617     else
3618     cat >conftest.$ac_ext <<_ACEOF
3619     /* confdefs.h. */
3620     _ACEOF
3621     cat confdefs.h >>conftest.$ac_ext
3622     cat >>conftest.$ac_ext <<_ACEOF
3623     /* end confdefs.h. */
3624     #include <ctype.h>
3625     #if ((' ' & 0x0FF) == 0x020)
3626     # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3627     # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3628     #else
3629     # define ISLOWER(c) \
3630     (('a' <= (c) && (c) <= 'i') \
3631     || ('j' <= (c) && (c) <= 'r') \
3632     || ('s' <= (c) && (c) <= 'z'))
3633     # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3634     #endif
3635    
3636     #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3637     int
3638     main ()
3639     {
3640     int i;
3641     for (i = 0; i < 256; i++)
3642     if (XOR (islower (i), ISLOWER (i))
3643     || toupper (i) != TOUPPER (i))
3644     exit(2);
3645     exit (0);
3646     }
3647     _ACEOF
3648     rm -f conftest$ac_exeext
3649     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3650     (eval $ac_link) 2>&5
3651     ac_status=$?
3652     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3653     (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3654     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3655     (eval $ac_try) 2>&5
3656     ac_status=$?
3657     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3658     (exit $ac_status); }; }; then
3659     :
3660     else
3661     echo "$as_me: program exited with status $ac_status" >&5
3662     echo "$as_me: failed program was:" >&5
3663     sed 's/^/| /' conftest.$ac_ext >&5
3664    
3665     ( exit $ac_status )
3666     ac_cv_header_stdc=no
3667     fi
3668     rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3669     fi
3670     fi
3671     fi
3672     echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3673     echo "${ECHO_T}$ac_cv_header_stdc" >&6
3674     if test $ac_cv_header_stdc = yes; then
3675    
3676     cat >>confdefs.h <<\_ACEOF
3677     #define STDC_HEADERS 1
3678     _ACEOF
3679    
3680     fi
3681    
3682    
3683     # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3684    
3685    
3686    
3687    
3688    
3689    
3690    
3691    
3692    
3693     for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3694     inttypes.h stdint.h unistd.h
3695     do
3696     as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3697     echo "$as_me:$LINENO: checking for $ac_header" >&5
3698     echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3699     if eval "test \"\${$as_ac_Header+set}\" = set"; then
3700     echo $ECHO_N "(cached) $ECHO_C" >&6
3701     else
3702     cat >conftest.$ac_ext <<_ACEOF
3703     /* confdefs.h. */
3704     _ACEOF
3705     cat confdefs.h >>conftest.$ac_ext
3706     cat >>conftest.$ac_ext <<_ACEOF
3707     /* end confdefs.h. */
3708     $ac_includes_default
3709    
3710     #include <$ac_header>
3711     _ACEOF
3712     rm -f conftest.$ac_objext
3713     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3714     (eval $ac_compile) 2>conftest.er1
3715     ac_status=$?
3716     grep -v '^ *+' conftest.er1 >conftest.err
3717     rm -f conftest.er1
3718     cat conftest.err >&5
3719     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3720     (exit $ac_status); } &&
3721     { ac_try='test -z "$ac_c_werror_flag"
3722     || test ! -s conftest.err'
3723     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3724     (eval $ac_try) 2>&5
3725     ac_status=$?
3726     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3727     (exit $ac_status); }; } &&
3728     { ac_try='test -s conftest.$ac_objext'
3729     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3730     (eval $ac_try) 2>&5
3731     ac_status=$?
3732     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3733     (exit $ac_status); }; }; then
3734     eval "$as_ac_Header=yes"
3735     else
3736     echo "$as_me: failed program was:" >&5
3737     sed 's/^/| /' conftest.$ac_ext >&5
3738    
3739     eval "$as_ac_Header=no"
3740     fi
3741     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3742     fi
3743     echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3744     echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3745     if test `eval echo '${'$as_ac_Header'}'` = yes; then
3746     cat >>confdefs.h <<_ACEOF
3747     #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3748     _ACEOF
3749    
3750     fi
3751    
3752     done
3753    
3754    
3755    
3756    
3757    
3758    
3759    
3760    
3761    
3762    
3763    
3764    
3765    
3766 db 166
3767     for ac_header in crypt.h inttypes.h stdint.h sys/resource.h sys/param.h errno.h sys/syslog.h stddef.h libgen.h sys/wait.h wait.h link.h
3768 adx 30 do
3769     as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3770     if eval "test \"\${$as_ac_Header+set}\" = set"; then
3771     echo "$as_me:$LINENO: checking for $ac_header" >&5
3772     echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3773     if eval "test \"\${$as_ac_Header+set}\" = set"; then
3774     echo $ECHO_N "(cached) $ECHO_C" >&6
3775     fi
3776     echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3777     echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3778     else
3779     # Is the header compilable?
3780     echo "$as_me:$LINENO: checking $ac_header usability" >&5
3781     echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3782     cat >conftest.$ac_ext <<_ACEOF
3783     /* confdefs.h. */
3784     _ACEOF
3785     cat confdefs.h >>conftest.$ac_ext
3786     cat >>conftest.$ac_ext <<_ACEOF
3787     /* end confdefs.h. */
3788     $ac_includes_default
3789     #include <$ac_header>
3790     _ACEOF
3791     rm -f conftest.$ac_objext
3792     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3793     (eval $ac_compile) 2>conftest.er1
3794     ac_status=$?
3795     grep -v '^ *+' conftest.er1 >conftest.err
3796     rm -f conftest.er1
3797     cat conftest.err >&5
3798     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3799     (exit $ac_status); } &&
3800     { ac_try='test -z "$ac_c_werror_flag"
3801     || test ! -s conftest.err'
3802     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3803     (eval $ac_try) 2>&5
3804     ac_status=$?
3805     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3806     (exit $ac_status); }; } &&
3807     { ac_try='test -s conftest.$ac_objext'
3808     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3809     (eval $ac_try) 2>&5
3810     ac_status=$?
3811     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3812     (exit $ac_status); }; }; then
3813     ac_header_compiler=yes
3814     else
3815     echo "$as_me: failed program was:" >&5
3816     sed 's/^/| /' conftest.$ac_ext >&5
3817    
3818     ac_header_compiler=no
3819     fi
3820     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3821     echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3822     echo "${ECHO_T}$ac_header_compiler" >&6
3823    
3824     # Is the header present?
3825     echo "$as_me:$LINENO: checking $ac_header presence" >&5
3826     echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3827     cat >conftest.$ac_ext <<_ACEOF
3828     /* confdefs.h. */
3829     _ACEOF
3830     cat confdefs.h >>conftest.$ac_ext
3831     cat >>conftest.$ac_ext <<_ACEOF
3832     /* end confdefs.h. */
3833     #include <$ac_header>
3834     _ACEOF
3835     if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3836     (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3837     ac_status=$?
3838     grep -v '^ *+' conftest.er1 >conftest.err
3839     rm -f conftest.er1
3840     cat conftest.err >&5
3841     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3842     (exit $ac_status); } >/dev/null; then
3843     if test -s conftest.err; then
3844     ac_cpp_err=$ac_c_preproc_warn_flag
3845     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3846     else
3847     ac_cpp_err=
3848     fi
3849     else
3850     ac_cpp_err=yes
3851     fi
3852     if test -z "$ac_cpp_err"; then
3853     ac_header_preproc=yes
3854     else
3855     echo "$as_me: failed program was:" >&5
3856     sed 's/^/| /' conftest.$ac_ext >&5
3857    
3858     ac_header_preproc=no
3859     fi
3860     rm -f conftest.err conftest.$ac_ext
3861     echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3862     echo "${ECHO_T}$ac_header_preproc" >&6
3863    
3864     # So? What about this header?
3865     case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3866     yes:no: )
3867     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3868     echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3869     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3870     echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3871     ac_header_preproc=yes
3872     ;;
3873     no:yes:* )
3874     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3875     echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3876     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3877     echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3878     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3879     echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3880     { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3881     echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3882     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3883     echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3884     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3885     echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3886     (
3887     cat <<\_ASBOX
3888     ## -------------------------------------- ##
3889     ## Report this to the ircd-hybrid lists. ##
3890     ## -------------------------------------- ##
3891     _ASBOX
3892     ) |
3893     sed "s/^/$as_me: WARNING: /" >&2
3894     ;;
3895     esac
3896     echo "$as_me:$LINENO: checking for $ac_header" >&5
3897     echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3898     if eval "test \"\${$as_ac_Header+set}\" = set"; then
3899     echo $ECHO_N "(cached) $ECHO_C" >&6
3900     else
3901     eval "$as_ac_Header=\$ac_header_preproc"
3902     fi
3903     echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3904     echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3905    
3906     fi
3907     if test `eval echo '${'$as_ac_Header'}'` = yes; then
3908     cat >>confdefs.h <<_ACEOF
3909     #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3910     _ACEOF
3911    
3912     fi
3913    
3914     done
3915    
3916    
3917    
3918     echo "$as_me:$LINENO: checking for library containing socket" >&5
3919     echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6
3920     if test "${ac_cv_search_socket+set}" = set; then
3921     echo $ECHO_N "(cached) $ECHO_C" >&6
3922     else
3923     ac_func_search_save_LIBS=$LIBS
3924     ac_cv_search_socket=no
3925     cat >conftest.$ac_ext <<_ACEOF
3926     /* confdefs.h. */
3927     _ACEOF
3928     cat confdefs.h >>conftest.$ac_ext
3929     cat >>conftest.$ac_ext <<_ACEOF
3930     /* end confdefs.h. */
3931    
3932     /* Override any gcc2 internal prototype to avoid an error. */
3933     #ifdef __cplusplus
3934     extern "C"
3935     #endif
3936     /* We use char because int might match the return type of a gcc2
3937     builtin and then its argument prototype would still apply. */
3938     char socket ();
3939     int
3940     main ()
3941     {
3942     socket ();
3943     ;
3944     return 0;
3945     }
3946     _ACEOF
3947     rm -f conftest.$ac_objext conftest$ac_exeext
3948     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3949     (eval $ac_link) 2>conftest.er1
3950     ac_status=$?
3951     grep -v '^ *+' conftest.er1 >conftest.err
3952     rm -f conftest.er1
3953     cat conftest.err >&5
3954     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3955     (exit $ac_status); } &&
3956     { ac_try='test -z "$ac_c_werror_flag"
3957     || test ! -s conftest.err'
3958     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3959     (eval $ac_try) 2>&5
3960     ac_status=$?
3961     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3962     (exit $ac_status); }; } &&
3963     { ac_try='test -s conftest$ac_exeext'
3964     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3965     (eval $ac_try) 2>&5
3966     ac_status=$?
3967     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3968     (exit $ac_status); }; }; then
3969     ac_cv_search_socket="none required"
3970     else
3971     echo "$as_me: failed program was:" >&5
3972     sed 's/^/| /' conftest.$ac_ext >&5
3973    
3974     fi
3975     rm -f conftest.err conftest.$ac_objext \
3976     conftest$ac_exeext conftest.$ac_ext
3977     if test "$ac_cv_search_socket" = no; then
3978     for ac_lib in socket; do
3979     LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3980     cat >conftest.$ac_ext <<_ACEOF
3981     /* confdefs.h. */
3982     _ACEOF
3983     cat confdefs.h >>conftest.$ac_ext
3984     cat >>conftest.$ac_ext <<_ACEOF
3985     /* end confdefs.h. */
3986    
3987     /* Override any gcc2 internal prototype to avoid an error. */
3988     #ifdef __cplusplus
3989     extern "C"
3990     #endif
3991     /* We use char because int might match the return type of a gcc2
3992     builtin and then its argument prototype would still apply. */
3993     char socket ();
3994     int
3995     main ()
3996     {
3997     socket ();
3998     ;
3999     return 0;
4000     }
4001     _ACEOF
4002     rm -f conftest.$ac_objext conftest$ac_exeext
4003     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4004     (eval $ac_link) 2>conftest.er1
4005     ac_status=$?
4006     grep -v '^ *+' conftest.er1 >conftest.err
4007     rm -f conftest.er1
4008     cat conftest.err >&5
4009     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4010     (exit $ac_status); } &&
4011     { ac_try='test -z "$ac_c_werror_flag"
4012     || test ! -s conftest.err'
4013     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4014     (eval $ac_try) 2>&5
4015     ac_status=$?
4016     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4017     (exit $ac_status); }; } &&
4018     { ac_try='test -s conftest$ac_exeext'
4019     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4020     (eval $ac_try) 2>&5
4021     ac_status=$?
4022     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4023     (exit $ac_status); }; }; then
4024     ac_cv_search_socket="-l$ac_lib"
4025     break
4026     else
4027     echo "$as_me: failed program was:" >&5
4028     sed 's/^/| /' conftest.$ac_ext >&5
4029    
4030     fi
4031     rm -f conftest.err conftest.$ac_objext \
4032     conftest$ac_exeext conftest.$ac_ext
4033     done
4034     fi
4035     LIBS=$ac_func_search_save_LIBS
4036     fi
4037     echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
4038     echo "${ECHO_T}$ac_cv_search_socket" >&6
4039     if test "$ac_cv_search_socket" != no; then
4040     test "$ac_cv_search_socket" = "none required" || LIBS="$ac_cv_search_socket $LIBS"
4041    
4042     else
4043     { { echo "$as_me:$LINENO: error: You have no socket()! Aborting." >&5
4044     echo "$as_me: error: You have no socket()! Aborting." >&2;}
4045     { (exit 1); exit 1; }; }
4046     fi
4047    
4048    
4049     echo "$as_me:$LINENO: checking for library containing inet_aton" >&5
4050     echo $ECHO_N "checking for library containing inet_aton... $ECHO_C" >&6
4051     if test "${ac_cv_search_inet_aton+set}" = set; then
4052     echo $ECHO_N "(cached) $ECHO_C" >&6
4053     else
4054     ac_func_search_save_LIBS=$LIBS
4055     ac_cv_search_inet_aton=no
4056     cat >conftest.$ac_ext <<_ACEOF
4057     /* confdefs.h. */
4058     _ACEOF
4059     cat confdefs.h >>conftest.$ac_ext
4060     cat >>conftest.$ac_ext <<_ACEOF
4061     /* end confdefs.h. */
4062    
4063     /* Override any gcc2 internal prototype to avoid an error. */
4064     #ifdef __cplusplus
4065     extern "C"
4066     #endif
4067     /* We use char because int might match the return type of a gcc2
4068     builtin and then its argument prototype would still apply. */
4069     char inet_aton ();
4070     int
4071     main ()
4072     {
4073     inet_aton ();
4074     ;
4075     return 0;
4076     }
4077     _ACEOF
4078     rm -f conftest.$ac_objext conftest$ac_exeext
4079     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4080     (eval $ac_link) 2>conftest.er1
4081     ac_status=$?
4082     grep -v '^ *+' conftest.er1 >conftest.err
4083     rm -f conftest.er1
4084     cat conftest.err >&5
4085     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4086     (exit $ac_status); } &&
4087     { ac_try='test -z "$ac_c_werror_flag"
4088     || test ! -s conftest.err'
4089     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4090     (eval $ac_try) 2>&5
4091     ac_status=$?
4092     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4093     (exit $ac_status); }; } &&
4094     { ac_try='test -s conftest$ac_exeext'
4095     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4096     (eval $ac_try) 2>&5
4097     ac_status=$?
4098     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4099     (exit $ac_status); }; }; then
4100     ac_cv_search_inet_aton="none required"
4101     else
4102     echo "$as_me: failed program was:" >&5
4103     sed 's/^/| /' conftest.$ac_ext >&5
4104    
4105     fi
4106     rm -f conftest.err conftest.$ac_objext \
4107     conftest$ac_exeext conftest.$ac_ext
4108     if test "$ac_cv_search_inet_aton" = no; then
4109     for ac_lib in resolv; do
4110     LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4111     cat >conftest.$ac_ext <<_ACEOF
4112     /* confdefs.h. */
4113     _ACEOF
4114     cat confdefs.h >>conftest.$ac_ext
4115     cat >>conftest.$ac_ext <<_ACEOF
4116     /* end confdefs.h. */
4117    
4118     /* Override any gcc2 internal prototype to avoid an error. */
4119     #ifdef __cplusplus
4120     extern "C"
4121     #endif
4122     /* We use char because int might match the return type of a gcc2
4123     builtin and then its argument prototype would still apply. */
4124     char inet_aton ();
4125     int
4126     main ()
4127     {
4128     inet_aton ();
4129     ;
4130     return 0;
4131     }
4132     _ACEOF
4133     rm -f conftest.$ac_objext conftest$ac_exeext
4134     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4135     (eval $ac_link) 2>conftest.er1
4136     ac_status=$?
4137     grep -v '^ *+' conftest.er1 >conftest.err
4138     rm -f conftest.er1
4139     cat conftest.err >&5
4140     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4141     (exit $ac_status); } &&
4142     { ac_try='test -z "$ac_c_werror_flag"
4143     || test ! -s conftest.err'
4144     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4145     (eval $ac_try) 2>&5
4146     ac_status=$?
4147     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4148     (exit $ac_status); }; } &&
4149     { ac_try='test -s conftest$ac_exeext'
4150     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4151     (eval $ac_try) 2>&5
4152     ac_status=$?
4153     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4154     (exit $ac_status); }; }; then
4155     ac_cv_search_inet_aton="-l$ac_lib"
4156     break
4157     else
4158     echo "$as_me: failed program was:" >&5
4159     sed 's/^/| /' conftest.$ac_ext >&5
4160    
4161     fi
4162     rm -f conftest.err conftest.$ac_objext \
4163     conftest$ac_exeext conftest.$ac_ext
4164     done
4165     fi
4166     LIBS=$ac_func_search_save_LIBS
4167     fi
4168     echo "$as_me:$LINENO: result: $ac_cv_search_inet_aton" >&5
4169     echo "${ECHO_T}$ac_cv_search_inet_aton" >&6
4170     if test "$ac_cv_search_inet_aton" != no; then
4171     test "$ac_cv_search_inet_aton" = "none required" || LIBS="$ac_cv_search_inet_aton $LIBS"
4172    
4173     else
4174     inet_misc=1;
4175     cat >>confdefs.h <<\_ACEOF
4176     #define NO_INET_ATON 1
4177     _ACEOF
4178    
4179     fi
4180    
4181     echo "$as_me:$LINENO: checking for library containing inet_pton" >&5
4182     echo $ECHO_N "checking for library containing inet_pton... $ECHO_C" >&6
4183     if test "${ac_cv_search_inet_pton+set}" = set; then
4184     echo $ECHO_N "(cached) $ECHO_C" >&6
4185     else
4186     ac_func_search_save_LIBS=$LIBS
4187     ac_cv_search_inet_pton=no
4188     cat >conftest.$ac_ext <<_ACEOF
4189     /* confdefs.h. */
4190     _ACEOF
4191     cat confdefs.h >>conftest.$ac_ext
4192     cat >>conftest.$ac_ext <<_ACEOF
4193     /* end confdefs.h. */
4194    
4195     /* Override any gcc2 internal prototype to avoid an error. */
4196     #ifdef __cplusplus
4197     extern "C"
4198     #endif
4199     /* We use char because int might match the return type of a gcc2
4200     builtin and then its argument prototype would still apply. */
4201     char inet_pton ();
4202     int
4203     main ()
4204     {
4205     inet_pton ();
4206     ;
4207     return 0;
4208     }
4209     _ACEOF
4210     rm -f conftest.$ac_objext conftest$ac_exeext
4211     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4212     (eval $ac_link) 2>conftest.er1
4213     ac_status=$?
4214     grep -v '^ *+' conftest.er1 >conftest.err
4215     rm -f conftest.er1
4216     cat conftest.err >&5
4217     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4218     (exit $ac_status); } &&
4219     { ac_try='test -z "$ac_c_werror_flag"
4220     || test ! -s conftest.err'
4221     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4222     (eval $ac_try) 2>&5
4223     ac_status=$?
4224     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4225     (exit $ac_status); }; } &&
4226     { ac_try='test -s conftest$ac_exeext'
4227     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4228     (eval $ac_try) 2>&5
4229     ac_status=$?
4230     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4231     (exit $ac_status); }; }; then
4232     ac_cv_search_inet_pton="none required"
4233     else
4234     echo "$as_me: failed program was:" >&5
4235     sed 's/^/| /' conftest.$ac_ext >&5
4236    
4237     fi
4238     rm -f conftest.err conftest.$ac_objext \
4239     conftest$ac_exeext conftest.$ac_ext
4240     if test "$ac_cv_search_inet_pton" = no; then
4241     for ac_lib in resolv nsl; do
4242     LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4243     cat >conftest.$ac_ext <<_ACEOF
4244     /* confdefs.h. */
4245     _ACEOF
4246     cat confdefs.h >>conftest.$ac_ext
4247     cat >>conftest.$ac_ext <<_ACEOF
4248     /* end confdefs.h. */
4249    
4250     /* Override any gcc2 internal prototype to avoid an error. */
4251     #ifdef __cplusplus
4252     extern "C"
4253     #endif
4254     /* We use char because int might match the return type of a gcc2
4255     builtin and then its argument prototype would still apply. */
4256     char inet_pton ();
4257     int
4258     main ()
4259     {
4260     inet_pton ();
4261     ;
4262     return 0;
4263     }
4264     _ACEOF
4265     rm -f conftest.$ac_objext conftest$ac_exeext
4266     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4267     (eval $ac_link) 2>conftest.er1
4268     ac_status=$?
4269     grep -v '^ *+' conftest.er1 >conftest.err
4270     rm -f conftest.er1
4271     cat conftest.err >&5
4272     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4273     (exit $ac_status); } &&
4274     { ac_try='test -z "$ac_c_werror_flag"
4275     || test ! -s conftest.err'
4276     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4277     (eval $ac_try) 2>&5
4278     ac_status=$?
4279     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4280     (exit $ac_status); }; } &&
4281     { ac_try='test -s conftest$ac_exeext'
4282     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4283     (eval $ac_try) 2>&5
4284     ac_status=$?
4285     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4286     (exit $ac_status); }; }; then
4287     ac_cv_search_inet_pton="-l$ac_lib"
4288     break
4289     else
4290     echo "$as_me: failed program was:" >&5
4291     sed 's/^/| /' conftest.$ac_ext >&5
4292    
4293     fi
4294     rm -f conftest.err conftest.$ac_objext \
4295     conftest$ac_exeext conftest.$ac_ext
4296     done
4297     fi
4298     LIBS=$ac_func_search_save_LIBS
4299     fi
4300     echo "$as_me:$LINENO: result: $ac_cv_search_inet_pton" >&5
4301     echo "${ECHO_T}$ac_cv_search_inet_pton" >&6
4302     if test "$ac_cv_search_inet_pton" != no; then
4303     test "$ac_cv_search_inet_pton" = "none required" || LIBS="$ac_cv_search_inet_pton $LIBS"
4304    
4305     else
4306     inet_misc=1;
4307     cat >>confdefs.h <<\_ACEOF
4308     #define NO_INET_PTON 1
4309     _ACEOF
4310    
4311     fi
4312    
4313     echo "$as_me:$LINENO: checking for library containing inet_ntop" >&5
4314     echo $ECHO_N "checking for library containing inet_ntop... $ECHO_C" >&6
4315     if test "${ac_cv_search_inet_ntop+set}" = set; then
4316     echo $ECHO_N "(cached) $ECHO_C" >&6
4317     else
4318     ac_func_search_save_LIBS=$LIBS
4319     ac_cv_search_inet_ntop=no
4320     cat >conftest.$ac_ext <<_ACEOF
4321     /* confdefs.h. */
4322     _ACEOF
4323     cat confdefs.h >>conftest.$ac_ext
4324     cat >>conftest.$ac_ext <<_ACEOF
4325     /* end confdefs.h. */
4326    
4327     /* Override any gcc2 internal prototype to avoid an error. */
4328     #ifdef __cplusplus
4329     extern "C"
4330     #endif
4331     /* We use char because int might match the return type of a gcc2
4332     builtin and then its argument prototype would still apply. */
4333     char inet_ntop ();
4334     int
4335     main ()
4336     {
4337     inet_ntop ();
4338     ;
4339     return 0;
4340     }
4341     _ACEOF
4342     rm -f conftest.$ac_objext conftest$ac_exeext
4343     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4344     (eval $ac_link) 2>conftest.er1
4345     ac_status=$?
4346     grep -v '^ *+' conftest.er1 >conftest.err
4347     rm -f conftest.er1
4348     cat conftest.err >&5
4349     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4350     (exit $ac_status); } &&
4351     { ac_try='test -z "$ac_c_werror_flag"
4352     || test ! -s conftest.err'
4353     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4354     (eval $ac_try) 2>&5
4355     ac_status=$?
4356     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4357     (exit $ac_status); }; } &&
4358     { ac_try='test -s conftest$ac_exeext'
4359     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4360     (eval $ac_try) 2>&5
4361     ac_status=$?
4362     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4363     (exit $ac_status); }; }; then
4364     ac_cv_search_inet_ntop="none required"
4365     else
4366     echo "$as_me: failed program was:" >&5
4367     sed 's/^/| /' conftest.$ac_ext >&5
4368    
4369     fi
4370     rm -f conftest.err conftest.$ac_objext \
4371     conftest$ac_exeext conftest.$ac_ext
4372     if test "$ac_cv_search_inet_ntop" = no; then
4373     for ac_lib in resolv nsl; do
4374     LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4375     cat >conftest.$ac_ext <<_ACEOF
4376     /* confdefs.h. */
4377     _ACEOF
4378     cat confdefs.h >>conftest.$ac_ext
4379     cat >>conftest.$ac_ext <<_ACEOF
4380     /* end confdefs.h. */
4381    
4382     /* Override any gcc2 internal prototype to avoid an error. */
4383     #ifdef __cplusplus
4384     extern "C"
4385     #endif
4386     /* We use char because int might match the return type of a gcc2
4387     builtin and then its argument prototype would still apply. */
4388     char inet_ntop ();
4389     int
4390     main ()
4391     {
4392     inet_ntop ();
4393     ;
4394     return 0;
4395     }
4396     _ACEOF
4397     rm -f conftest.$ac_objext conftest$ac_exeext
4398     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4399     (eval $ac_link) 2>conftest.er1
4400     ac_status=$?
4401     grep -v '^ *+' conftest.er1 >conftest.err
4402     rm -f conftest.er1
4403     cat conftest.err >&5
4404     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4405     (exit $ac_status); } &&
4406     { ac_try='test -z "$ac_c_werror_flag"
4407     || test ! -s conftest.err'
4408     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4409     (eval $ac_try) 2>&5
4410     ac_status=$?
4411     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4412     (exit $ac_status); }; } &&
4413     { ac_try='test -s conftest$ac_exeext'
4414     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4415     (eval $ac_try) 2>&5
4416     ac_status=$?
4417     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4418     (exit $ac_status); }; }; then
4419     ac_cv_search_inet_ntop="-l$ac_lib"
4420     break
4421     else
4422     echo "$as_me: failed program was:" >&5
4423     sed 's/^/| /' conftest.$ac_ext >&5
4424    
4425     fi
4426     rm -f conftest.err conftest.$ac_objext \
4427     conftest$ac_exeext conftest.$ac_ext
4428     done
4429     fi
4430     LIBS=$ac_func_search_save_LIBS
4431     fi
4432     echo "$as_me:$LINENO: result: $ac_cv_search_inet_ntop" >&5
4433     echo "${ECHO_T}$ac_cv_search_inet_ntop" >&6
4434     if test "$ac_cv_search_inet_ntop" != no; then
4435     test "$ac_cv_search_inet_ntop" = "none required" || LIBS="$ac_cv_search_inet_ntop $LIBS"
4436    
4437     else
4438     inet_misc=1;
4439     cat >>confdefs.h <<\_ACEOF
4440     #define NO_INET_NTOP 1
4441     _ACEOF
4442    
4443     fi
4444    
4445    
4446     if test "$inet_misc" = 1; then
4447     INET_MISC=inet_misc.c
4448    
4449     fi
4450    
4451     echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
4452     echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6
4453     if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
4454     echo $ECHO_N "(cached) $ECHO_C" >&6
4455     else
4456     cat >conftest.$ac_ext <<_ACEOF
4457     /* confdefs.h. */
4458     _ACEOF
4459     cat confdefs.h >>conftest.$ac_ext
4460     cat >>conftest.$ac_ext <<_ACEOF
4461     /* end confdefs.h. */
4462     #include <sys/types.h>
4463     #include <sys/socket.h>
4464    
4465    
4466     int
4467     main ()
4468     {
4469     if ((struct sockaddr_storage *) 0)
4470     return 0;
4471     if (sizeof (struct sockaddr_storage))
4472     return 0;
4473     ;
4474     return 0;
4475     }
4476     _ACEOF
4477     rm -f conftest.$ac_objext
4478     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4479     (eval $ac_compile) 2>conftest.er1
4480     ac_status=$?
4481     grep -v '^ *+' conftest.er1 >conftest.err
4482     rm -f conftest.er1
4483     cat conftest.err >&5
4484     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4485     (exit $ac_status); } &&
4486     { ac_try='test -z "$ac_c_werror_flag"
4487     || test ! -s conftest.err'
4488     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4489     (eval $ac_try) 2>&5
4490     ac_status=$?
4491     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4492     (exit $ac_status); }; } &&
4493     { ac_try='test -s conftest.$ac_objext'
4494     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4495     (eval $ac_try) 2>&5
4496     ac_status=$?
4497     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4498     (exit $ac_status); }; }; then
4499     ac_cv_type_struct_sockaddr_storage=yes
4500     else
4501     echo "$as_me: failed program was:" >&5
4502     sed 's/^/| /' conftest.$ac_ext >&5
4503    
4504     ac_cv_type_struct_sockaddr_storage=no
4505     fi
4506     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4507     fi
4508     echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
4509     echo "${ECHO_T}$ac_cv_type_struct_sockaddr_storage" >&6
4510     if test $ac_cv_type_struct_sockaddr_storage = yes; then
4511    
4512     cat >>confdefs.h <<_ACEOF
4513     #define HAVE_STRUCT_SOCKADDR_STORAGE 1
4514     _ACEOF
4515    
4516    
4517     fi
4518    
4519    
4520     if test "$ac_cv_type_struct_sockaddr_storage" = no; then
4521     echo "$as_me:$LINENO: checking for struct sockaddr_in.sin_len" >&5
4522     echo $ECHO_N "checking for struct sockaddr_in.sin_len... $ECHO_C" >&6
4523     if test "${ac_cv_member_struct_sockaddr_in_sin_len+set}" = set; then
4524     echo $ECHO_N "(cached) $ECHO_C" >&6
4525     else
4526     cat >conftest.$ac_ext <<_ACEOF
4527     /* confdefs.h. */
4528     _ACEOF
4529     cat confdefs.h >>conftest.$ac_ext
4530     cat >>conftest.$ac_ext <<_ACEOF
4531     /* end confdefs.h. */
4532     $ac_includes_default
4533     int
4534     main ()
4535     {
4536     static struct sockaddr_in ac_aggr;
4537     if (ac_aggr.sin_len)
4538     return 0;
4539     ;
4540     return 0;
4541     }
4542     _ACEOF
4543     rm -f conftest.$ac_objext
4544     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4545     (eval $ac_compile) 2>conftest.er1
4546     ac_status=$?
4547     grep -v '^ *+' conftest.er1 >conftest.err
4548     rm -f conftest.er1
4549     cat conftest.err >&5
4550     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4551     (exit $ac_status); } &&
4552     { ac_try='test -z "$ac_c_werror_flag"
4553     || test ! -s conftest.err'
4554     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4555     (eval $ac_try) 2>&5
4556     ac_status=$?
4557     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4558     (exit $ac_status); }; } &&
4559     { ac_try='test -s conftest.$ac_objext'
4560     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4561     (eval $ac_try) 2>&5
4562     ac_status=$?
4563     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4564     (exit $ac_status); }; }; then
4565     ac_cv_member_struct_sockaddr_in_sin_len=yes
4566     else
4567     echo "$as_me: failed program was:" >&5
4568     sed 's/^/| /' conftest.$ac_ext >&5
4569    
4570     cat >conftest.$ac_ext <<_ACEOF
4571     /* confdefs.h. */
4572     _ACEOF
4573     cat confdefs.h >>conftest.$ac_ext
4574     cat >>conftest.$ac_ext <<_ACEOF
4575     /* end confdefs.h. */
4576     $ac_includes_default
4577     int
4578     main ()
4579     {
4580     static struct sockaddr_in ac_aggr;
4581     if (sizeof ac_aggr.sin_len)
4582     return 0;
4583     ;
4584     return 0;
4585     }
4586     _ACEOF
4587     rm -f conftest.$ac_objext
4588     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4589     (eval $ac_compile) 2>conftest.er1
4590     ac_status=$?
4591     grep -v '^ *+' conftest.er1 >conftest.err
4592     rm -f conftest.er1
4593     cat conftest.err >&5
4594     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4595     (exit $ac_status); } &&
4596     { ac_try='test -z "$ac_c_werror_flag"
4597     || test ! -s conftest.err'
4598     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4599     (eval $ac_try) 2>&5
4600     ac_status=$?
4601     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4602     (exit $ac_status); }; } &&
4603     { ac_try='test -s conftest.$ac_objext'
4604     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4605     (eval $ac_try) 2>&5
4606     ac_status=$?
4607     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4608     (exit $ac_status); }; }; then
4609     ac_cv_member_struct_sockaddr_in_sin_len=yes
4610     else
4611     echo "$as_me: failed program was:" >&5
4612     sed 's/^/| /' conftest.$ac_ext >&5
4613    
4614     ac_cv_member_struct_sockaddr_in_sin_len=no
4615     fi
4616     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4617     fi
4618     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4619     fi
4620     echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_in_sin_len" >&5
4621     echo "${ECHO_T}$ac_cv_member_struct_sockaddr_in_sin_len" >&6
4622     if test $ac_cv_member_struct_sockaddr_in_sin_len = yes; then
4623    
4624     cat >>confdefs.h <<\_ACEOF
4625     #define SOCKADDR_IN_HAS_LEN 1
4626     _ACEOF
4627    
4628     fi
4629    
4630     fi
4631    
4632     echo "$as_me:$LINENO: checking for struct addrinfo" >&5
4633     echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6
4634     if test "${ac_cv_type_struct_addrinfo+set}" = set; then
4635     echo $ECHO_N "(cached) $ECHO_C" >&6
4636     else
4637     cat >conftest.$ac_ext <<_ACEOF
4638     /* confdefs.h. */
4639     _ACEOF
4640     cat confdefs.h >>conftest.$ac_ext
4641     cat >>conftest.$ac_ext <<_ACEOF
4642     /* end confdefs.h. */
4643     #include <netdb.h>
4644    
4645     int
4646     main ()
4647     {
4648     if ((struct addrinfo *) 0)
4649     return 0;
4650     if (sizeof (struct addrinfo))
4651     return 0;
4652     ;
4653     return 0;
4654     }
4655     _ACEOF
4656     rm -f conftest.$ac_objext
4657     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4658     (eval $ac_compile) 2>conftest.er1
4659     ac_status=$?
4660     grep -v '^ *+' conftest.er1 >conftest.err
4661     rm -f conftest.er1
4662     cat conftest.err >&5
4663     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4664     (exit $ac_status); } &&
4665     { ac_try='test -z "$ac_c_werror_flag"
4666     || test ! -s conftest.err'
4667     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4668     (eval $ac_try) 2>&5
4669     ac_status=$?
4670     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4671     (exit $ac_status); }; } &&
4672     { ac_try='test -s conftest.$ac_objext'
4673     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4674     (eval $ac_try) 2>&5
4675     ac_status=$?
4676     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4677     (exit $ac_status); }; }; then
4678     ac_cv_type_struct_addrinfo=yes
4679     else
4680     echo "$as_me: failed program was:" >&5
4681     sed 's/^/| /' conftest.$ac_ext >&5
4682    
4683     ac_cv_type_struct_addrinfo=no
4684     fi
4685     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4686     fi
4687     echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
4688     echo "${ECHO_T}$ac_cv_type_struct_addrinfo" >&6
4689     if test $ac_cv_type_struct_addrinfo = yes; then
4690    
4691     cat >>confdefs.h <<_ACEOF
4692     #define HAVE_STRUCT_ADDRINFO 1
4693     _ACEOF
4694    
4695    
4696     fi
4697    
4698    
4699     echo "$as_me:$LINENO: checking for socklen_t" >&5
4700     echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
4701     if test "${ac_cv_type_socklen_t+set}" = set; then
4702     echo $ECHO_N "(cached) $ECHO_C" >&6
4703     else
4704     cat >conftest.$ac_ext <<_ACEOF
4705     /* confdefs.h. */
4706     _ACEOF
4707     cat confdefs.h >>conftest.$ac_ext
4708     cat >>conftest.$ac_ext <<_ACEOF
4709     /* end confdefs.h. */
4710     #include <sys/types.h>
4711     #include <sys/socket.h>
4712    
4713     int
4714     main ()
4715     {
4716     if ((socklen_t *) 0)
4717     return 0;
4718     if (sizeof (socklen_t))
4719     return 0;
4720     ;
4721     return 0;
4722     }
4723     _ACEOF
4724     rm -f conftest.$ac_objext
4725     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4726     (eval $ac_compile) 2>conftest.er1
4727     ac_status=$?
4728     grep -v '^ *+' conftest.er1 >conftest.err
4729     rm -f conftest.er1
4730     cat conftest.err >&5
4731     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4732     (exit $ac_status); } &&
4733     { ac_try='test -z "$ac_c_werror_flag"
4734     || test ! -s conftest.err'
4735     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4736     (eval $ac_try) 2>&5
4737     ac_status=$?
4738     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4739     (exit $ac_status); }; } &&
4740     { ac_try='test -s conftest.$ac_objext'
4741     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4742     (eval $ac_try) 2>&5
4743     ac_status=$?
4744     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4745     (exit $ac_status); }; }; then
4746     ac_cv_type_socklen_t=yes
4747     else
4748     echo "$as_me: failed program was:" >&5
4749     sed 's/^/| /' conftest.$ac_ext >&5
4750    
4751     ac_cv_type_socklen_t=no
4752     fi
4753     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4754     fi
4755     echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
4756     echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
4757     if test $ac_cv_type_socklen_t = yes; then
4758     :
4759     else
4760    
4761     cat >>confdefs.h <<\_ACEOF
4762     #define socklen_t unsigned int
4763     _ACEOF
4764    
4765     fi
4766    
4767    
4768     if test -z "$Tru"; then
4769    
4770     echo "$as_me:$LINENO: checking for broken glibc with __ss_family" >&5
4771     echo $ECHO_N "checking for broken glibc with __ss_family... $ECHO_C" >&6
4772     cat >conftest.$ac_ext <<_ACEOF
4773     /* confdefs.h. */
4774     _ACEOF
4775     cat confdefs.h >>conftest.$ac_ext
4776     cat >>conftest.$ac_ext <<_ACEOF
4777     /* end confdefs.h. */
4778     #include <sys/types.h>
4779     #include <sys/socket.h>
4780     int
4781     main ()
4782     {
4783     struct sockaddr_storage s; s.__ss_family = AF_INET;
4784     ;
4785     return 0;
4786     }
4787     _ACEOF
4788     rm -f conftest.$ac_objext
4789     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4790     (eval $ac_compile) 2>conftest.er1
4791     ac_status=$?
4792     grep -v '^ *+' conftest.er1 >conftest.err
4793     rm -f conftest.er1
4794     cat conftest.err >&5
4795     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4796     (exit $ac_status); } &&
4797     { ac_try='test -z "$ac_c_werror_flag"
4798     || test ! -s conftest.err'
4799     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4800     (eval $ac_try) 2>&5
4801     ac_status=$?
4802     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4803     (exit $ac_status); }; } &&
4804     { ac_try='test -s conftest.$ac_objext'
4805     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4806     (eval $ac_try) 2>&5
4807     ac_status=$?
4808     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4809     (exit $ac_status); }; }; then
4810    
4811     echo "$as_me:$LINENO: result: yes" >&5
4812     echo "${ECHO_T}yes" >&6
4813    
4814     cat >>confdefs.h <<\_ACEOF
4815     #define ss_family __ss_family
4816     _ACEOF
4817    
4818    
4819     else
4820     echo "$as_me: failed program was:" >&5
4821     sed 's/^/| /' conftest.$ac_ext >&5
4822    
4823     echo "$as_me:$LINENO: result: no" >&5
4824     echo "${ECHO_T}no" >&6
4825     fi
4826     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4827    
4828     fi
4829    
4830     echo "$as_me:$LINENO: checking for core IPv6 support" >&5
4831     echo $ECHO_N "checking for core IPv6 support... $ECHO_C" >&6
4832    
4833     cat >conftest.$ac_ext <<_ACEOF
4834     /* confdefs.h. */
4835     _ACEOF
4836     cat confdefs.h >>conftest.$ac_ext
4837     cat >>conftest.$ac_ext <<_ACEOF
4838     /* end confdefs.h. */
4839     #define IN_AUTOCONF
4840     #include "include/stdinc.h"
4841     int
4842     main ()
4843     {
4844     struct sockaddr_in6 s;
4845     struct sockaddr_storage t;
4846     s.sin6_family = 0;
4847    
4848     ;
4849     return 0;
4850     }
4851     _ACEOF
4852     rm -f conftest.$ac_objext
4853     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4854     (eval $ac_compile) 2>conftest.er1
4855     ac_status=$?
4856     grep -v '^ *+' conftest.er1 >conftest.err
4857     rm -f conftest.er1
4858     cat conftest.err >&5
4859     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4860     (exit $ac_status); } &&
4861     { ac_try='test -z "$ac_c_werror_flag"
4862     || test ! -s conftest.err'
4863     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4864     (eval $ac_try) 2>&5
4865     ac_status=$?
4866     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4867     (exit $ac_status); }; } &&
4868     { ac_try='test -s conftest.$ac_objext'
4869     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4870     (eval $ac_try) 2>&5
4871     ac_status=$?
4872     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4873     (exit $ac_status); }; }; then
4874    
4875     if test "$CYGWIN" = "yes"; then
4876     echo "$as_me:$LINENO: result: no, Cygwin's IPv6 is incomplete" >&5
4877     echo "${ECHO_T}no, Cygwin's IPv6 is incomplete" >&6
4878     have_v6=no
4879     else
4880     have_v6=yes
4881    
4882     cat >>confdefs.h <<\_ACEOF
4883     #define IPV6 1
4884     _ACEOF
4885    
4886     echo "$as_me:$LINENO: result: yes" >&5
4887     echo "${ECHO_T}yes" >&6
4888     echo "$as_me:$LINENO: checking for struct in6addr_any" >&5
4889     echo $ECHO_N "checking for struct in6addr_any... $ECHO_C" >&6
4890     cat >conftest.$ac_ext <<_ACEOF
4891     /* confdefs.h. */
4892     _ACEOF
4893     cat confdefs.h >>conftest.$ac_ext
4894     cat >>conftest.$ac_ext <<_ACEOF
4895     /* end confdefs.h. */
4896     #define IN_AUTOCONF
4897     #include "include/stdinc.h"
4898     int
4899     main ()
4900     {
4901     struct in6_addr a = in6addr_any;
4902    
4903     ;
4904     return 0;
4905     }
4906     _ACEOF
4907     rm -f conftest.$ac_objext
4908     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4909     (eval $ac_compile) 2>conftest.er1
4910     ac_status=$?
4911     grep -v '^ *+' conftest.er1 >conftest.err
4912     rm -f conftest.er1
4913     cat conftest.err >&5
4914     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4915     (exit $ac_status); } &&
4916     { ac_try='test -z "$ac_c_werror_flag"
4917     || test ! -s conftest.err'
4918     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4919     (eval $ac_try) 2>&5
4920     ac_status=$?
4921     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4922     (exit $ac_status); }; } &&
4923     { ac_try='test -s conftest.$ac_objext'
4924     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4925     (eval $ac_try) 2>&5
4926     ac_status=$?
4927     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4928     (exit $ac_status); }; }; then
4929     echo "$as_me:$LINENO: result: yes" >&5
4930     echo "${ECHO_T}yes" >&6
4931     else
4932     echo "$as_me: failed program was:" >&5
4933     sed 's/^/| /' conftest.$ac_ext >&5
4934    
4935    
4936     echo "$as_me:$LINENO: result: no" >&5
4937     echo "${ECHO_T}no" >&6
4938    
4939     cat >>confdefs.h <<\_ACEOF
4940     #define NO_IN6ADDR_ANY 1
4941     _ACEOF
4942    
4943     inet_misc=1
4944    
4945    
4946     fi
4947     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4948     fi
4949    
4950     else
4951     echo "$as_me: failed program was:" >&5
4952     sed 's/^/| /' conftest.$ac_ext >&5
4953    
4954     echo "$as_me:$LINENO: result: no" >&5
4955     echo "${ECHO_T}no" >&6
4956     have_v6="no"
4957     fi
4958     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4959    
4960     echo "$as_me:$LINENO: checking for library containing crypt" >&5
4961     echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6
4962     if test "${ac_cv_search_crypt+set}" = set; then
4963     echo $ECHO_N "(cached) $ECHO_C" >&6
4964     else
4965     ac_func_search_save_LIBS=$LIBS
4966     ac_cv_search_crypt=no
4967     cat >conftest.$ac_ext <<_ACEOF
4968     /* confdefs.h. */
4969     _ACEOF
4970     cat confdefs.h >>conftest.$ac_ext
4971     cat >>conftest.$ac_ext <<_ACEOF
4972     /* end confdefs.h. */
4973    
4974     /* Override any gcc2 internal prototype to avoid an error. */
4975     #ifdef __cplusplus
4976     extern "C"
4977     #endif
4978     /* We use char because int might match the return type of a gcc2
4979     builtin and then its argument prototype would still apply. */
4980     char crypt ();
4981     int
4982     main ()
4983     {
4984     crypt ();
4985     ;
4986     return 0;
4987     }
4988     _ACEOF
4989     rm -f conftest.$ac_objext conftest$ac_exeext
4990     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4991     (eval $ac_link) 2>conftest.er1
4992     ac_status=$?
4993     grep -v '^ *+' conftest.er1 >conftest.err
4994     rm -f conftest.er1
4995     cat conftest.err >&5
4996     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4997     (exit $ac_status); } &&
4998     { ac_try='test -z "$ac_c_werror_flag"
4999     || test ! -s conftest.err'
5000     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5001     (eval $ac_try) 2>&5
5002     ac_status=$?
5003     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5004     (exit $ac_status); }; } &&
5005     { ac_try='test -s conftest$ac_exeext'
5006     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5007     (eval $ac_try) 2>&5
5008     ac_status=$?
5009     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5010     (exit $ac_status); }; }; then
5011     ac_cv_search_crypt="none required"
5012     else
5013     echo "$as_me: failed program was:" >&5
5014     sed 's/^/| /' conftest.$ac_ext >&5
5015    
5016     fi
5017     rm -f conftest.err conftest.$ac_objext \
5018     conftest$ac_exeext conftest.$ac_ext
5019     if test "$ac_cv_search_crypt" = no; then
5020     for ac_lib in crypt descrypt; do
5021     LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5022     cat >conftest.$ac_ext <<_ACEOF
5023     /* confdefs.h. */
5024     _ACEOF
5025     cat confdefs.h >>conftest.$ac_ext
5026     cat >>conftest.$ac_ext <<_ACEOF
5027     /* end confdefs.h. */
5028    
5029     /* Override any gcc2 internal prototype to avoid an error. */
5030     #ifdef __cplusplus
5031     extern "C"
5032     #endif
5033     /* We use char because int might match the return type of a gcc2
5034     builtin and then its argument prototype would still apply. */
5035     char crypt ();
5036     int
5037     main ()
5038     {
5039     crypt ();
5040     ;
5041     return 0;
5042     }
5043     _ACEOF
5044     rm -f conftest.$ac_objext conftest$ac_exeext
5045     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5046     (eval $ac_link) 2>conftest.er1
5047     ac_status=$?
5048     grep -v '^ *+' conftest.er1 >conftest.err
5049     rm -f conftest.er1
5050     cat conftest.err >&5
5051     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5052     (exit $ac_status); } &&
5053     { ac_try='test -z "$ac_c_werror_flag"
5054     || test ! -s conftest.err'
5055     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5056     (eval $ac_try) 2>&5
5057     ac_status=$?
5058     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5059     (exit $ac_status); }; } &&
5060     { ac_try='test -s conftest$ac_exeext'
5061     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5062     (eval $ac_try) 2>&5
5063     ac_status=$?
5064     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5065     (exit $ac_status); }; }; then
5066     ac_cv_search_crypt="-l$ac_lib"
5067     break
5068     else
5069     echo "$as_me: failed program was:" >&5
5070     sed 's/^/| /' conftest.$ac_ext >&5
5071    
5072     fi
5073     rm -f conftest.err conftest.$ac_objext \
5074     conftest$ac_exeext conftest.$ac_ext
5075     done
5076     fi
5077     LIBS=$ac_func_search_save_LIBS
5078     fi
5079     echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
5080     echo "${ECHO_T}$ac_cv_search_crypt" >&6
5081     if test "$ac_cv_search_crypt" != no; then
5082     test "$ac_cv_search_crypt" = "none required" || LIBS="$ac_cv_search_crypt $LIBS"
5083    
5084     fi
5085    
5086    
5087     CRYPT_LIB=$ac_cv_search_crypt
5088    
5089     if test "$CRYPT_LIB" = "none required"; then
5090     unset CRYPT_LIB
5091     elif test "$CRYPT_LIB" = no; then
5092     CRYPT_C=crypt.c
5093     unset CRYPT_LIB
5094     fi
5095    
5096    
5097    
5098    
5099     echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
5100     echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
5101     if test "${gcc_cv_header_string+set}" = set; then
5102     echo $ECHO_N "(cached) $ECHO_C" >&6
5103     else
5104    
5105     cat >conftest.$ac_ext <<_ACEOF
5106     #include <string.h>
5107     #include <strings.h>
5108     _ACEOF
5109     rm -f conftest.$ac_objext
5110     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5111     (eval $ac_compile) 2>conftest.er1
5112     ac_status=$?
5113     grep -v '^ *+' conftest.er1 >conftest.err
5114     rm -f conftest.er1
5115     cat conftest.err >&5
5116     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5117     (exit $ac_status); } &&
5118     { ac_try='test -z "$ac_c_werror_flag"
5119     || test ! -s conftest.err'
5120     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5121     (eval $ac_try) 2>&5
5122     ac_status=$?
5123     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5124     (exit $ac_status); }; } &&
5125     { ac_try='test -s conftest.$ac_objext'
5126     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5127     (eval $ac_try) 2>&5
5128     ac_status=$?
5129     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5130     (exit $ac_status); }; }; then
5131     gcc_cv_header_string=yes
5132     else
5133     echo "$as_me: failed program was:" >&5
5134     sed 's/^/| /' conftest.$ac_ext >&5
5135    
5136     gcc_cv_header_string=no
5137     fi
5138     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5139    
5140     fi
5141     echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
5142     echo "${ECHO_T}$gcc_cv_header_string" >&6
5143    
5144     if test "$gcc_cv_header_string" = "yes"; then
5145    
5146     cat >>confdefs.h <<\_ACEOF
5147     #define STRING_WITH_STRINGS 1
5148     _ACEOF
5149    
5150     fi
5151    
5152     echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
5153     echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
5154     if test "${ac_cv_c_bigendian+set}" = set; then
5155     echo $ECHO_N "(cached) $ECHO_C" >&6
5156     else
5157     # See if sys/param.h defines the BYTE_ORDER macro.
5158     cat >conftest.$ac_ext <<_ACEOF
5159     /* confdefs.h. */
5160     _ACEOF
5161     cat confdefs.h >>conftest.$ac_ext
5162     cat >>conftest.$ac_ext <<_ACEOF
5163     /* end confdefs.h. */
5164     #include <sys/types.h>
5165     #include <sys/param.h>
5166    
5167     int
5168     main ()
5169     {
5170     #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
5171     bogus endian macros
5172     #endif
5173    
5174     ;
5175     return 0;
5176     }
5177     _ACEOF
5178     rm -f conftest.$ac_objext
5179     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5180     (eval $ac_compile) 2>conftest.er1
5181     ac_status=$?
5182     grep -v '^ *+' conftest.er1 >conftest.err
5183     rm -f conftest.er1
5184     cat conftest.err >&5
5185     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5186     (exit $ac_status); } &&
5187     { ac_try='test -z "$ac_c_werror_flag"
5188     || test ! -s conftest.err'
5189     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5190     (eval $ac_try) 2>&5
5191     ac_status=$?
5192     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5193     (exit $ac_status); }; } &&
5194     { ac_try='test -s conftest.$ac_objext'
5195     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5196     (eval $ac_try) 2>&5
5197     ac_status=$?
5198     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5199     (exit $ac_status); }; }; then
5200     # It does; now see whether it defined to BIG_ENDIAN or not.
5201     cat >conftest.$ac_ext <<_ACEOF
5202     /* confdefs.h. */
5203     _ACEOF
5204     cat confdefs.h >>conftest.$ac_ext
5205     cat >>conftest.$ac_ext <<_ACEOF
5206     /* end confdefs.h. */
5207     #include <sys/types.h>
5208     #include <sys/param.h>
5209    
5210     int
5211     main ()
5212     {
5213     #if BYTE_ORDER != BIG_ENDIAN
5214     not big endian
5215     #endif
5216    
5217     ;
5218     return 0;
5219     }
5220     _ACEOF
5221     rm -f conftest.$ac_objext
5222     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5223     (eval $ac_compile) 2>conftest.er1
5224     ac_status=$?
5225     grep -v '^ *+' conftest.er1 >conftest.err
5226     rm -f conftest.er1
5227     cat conftest.err >&5
5228     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5229     (exit $ac_status); } &&
5230     { ac_try='test -z "$ac_c_werror_flag"
5231     || test ! -s conftest.err'
5232     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5233     (eval $ac_try) 2>&5
5234     ac_status=$?
5235     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5236     (exit $ac_status); }; } &&
5237     { ac_try='test -s conftest.$ac_objext'
5238     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5239     (eval $ac_try) 2>&5
5240     ac_status=$?
5241     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5242     (exit $ac_status); }; }; then
5243     ac_cv_c_bigendian=yes
5244     else
5245     echo "$as_me: failed program was:" >&5
5246     sed 's/^/| /' conftest.$ac_ext >&5
5247    
5248     ac_cv_c_bigendian=no
5249     fi
5250     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5251     else
5252     echo "$as_me: failed program was:" >&5
5253     sed 's/^/| /' conftest.$ac_ext >&5
5254    
5255     # It does not; compile a test program.
5256     if test "$cross_compiling" = yes; then
5257     # try to guess the endianness by grepping values into an object file
5258     ac_cv_c_bigendian=unknown
5259     cat >conftest.$ac_ext <<_ACEOF
5260     /* confdefs.h. */
5261     _ACEOF
5262     cat confdefs.h >>conftest.$ac_ext
5263     cat >>conftest.$ac_ext <<_ACEOF
5264     /* end confdefs.h. */
5265     short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
5266     short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
5267     void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
5268     short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
5269     short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
5270     void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
5271     int
5272     main ()
5273     {
5274     _ascii (); _ebcdic ();
5275     ;
5276     return 0;
5277     }
5278     _ACEOF
5279     rm -f conftest.$ac_objext
5280     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5281     (eval $ac_compile) 2>conftest.er1
5282     ac_status=$?
5283     grep -v '^ *+' conftest.er1 >conftest.err
5284     rm -f conftest.er1
5285     cat conftest.err >&5
5286     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5287     (exit $ac_status); } &&
5288     { ac_try='test -z "$ac_c_werror_flag"
5289     || test ! -s conftest.err'
5290     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5291     (eval $ac_try) 2>&5
5292     ac_status=$?
5293     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5294     (exit $ac_status); }; } &&
5295     { ac_try='test -s conftest.$ac_objext'
5296     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5297     (eval $ac_try) 2>&5
5298     ac_status=$?
5299     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5300     (exit $ac_status); }; }; then
5301     if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
5302     ac_cv_c_bigendian=yes
5303     fi
5304     if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
5305     if test "$ac_cv_c_bigendian" = unknown; then
5306     ac_cv_c_bigendian=no
5307     else
5308     # finding both strings is unlikely to happen, but who knows?
5309     ac_cv_c_bigendian=unknown
5310     fi
5311     fi
5312     else
5313     echo "$as_me: failed program was:" >&5
5314     sed 's/^/| /' conftest.$ac_ext >&5
5315    
5316     fi
5317     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5318     else
5319     cat >conftest.$ac_ext <<_ACEOF
5320     /* confdefs.h. */
5321     _ACEOF
5322     cat confdefs.h >>conftest.$ac_ext
5323     cat >>conftest.$ac_ext <<_ACEOF
5324     /* end confdefs.h. */
5325     int
5326     main ()
5327     {
5328     /* Are we little or big endian? From Harbison&Steele. */
5329     union
5330     {
5331     long l;
5332     char c[sizeof (long)];
5333     } u;
5334     u.l = 1;
5335     exit (u.c[sizeof (long) - 1] == 1);
5336     }
5337     _ACEOF
5338     rm -f conftest$ac_exeext
5339     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5340     (eval $ac_link) 2>&5
5341     ac_status=$?
5342     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5343     (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5344     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5345     (eval $ac_try) 2>&5
5346     ac_status=$?
5347     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5348     (exit $ac_status); }; }; then
5349     ac_cv_c_bigendian=no
5350     else
5351     echo "$as_me: program exited with status $ac_status" >&5
5352     echo "$as_me: failed program was:" >&5
5353     sed 's/^/| /' conftest.$ac_ext >&5
5354    
5355     ( exit $ac_status )
5356     ac_cv_c_bigendian=yes
5357     fi
5358     rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5359     fi
5360     fi
5361     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5362     fi
5363     echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
5364     echo "${ECHO_T}$ac_cv_c_bigendian" >&6
5365     case $ac_cv_c_bigendian in
5366     yes)
5367    
5368     cat >>confdefs.h <<\_ACEOF
5369     #define WORDS_BIGENDIAN 1
5370     _ACEOF
5371     ;;
5372     no)
5373     ;;
5374     *)
5375     { { echo "$as_me:$LINENO: error: unknown endianness
5376     presetting ac_cv_c_bigendian=no (or yes) will help" >&5
5377     echo "$as_me: error: unknown endianness
5378     presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
5379     { (exit 1); exit 1; }; } ;;
5380     esac
5381    
5382    
5383     if test "${ac_cv_header_stdarg_h+set}" = set; then
5384     echo "$as_me:$LINENO: checking for stdarg.h" >&5
5385     echo $ECHO_N "checking for stdarg.h... $ECHO_C" >&6
5386     if test "${ac_cv_header_stdarg_h+set}" = set; then
5387     echo $ECHO_N "(cached) $ECHO_C" >&6
5388     fi
5389     echo "$as_me:$LINENO: result: $ac_cv_header_stdarg_h" >&5
5390     echo "${ECHO_T}$ac_cv_header_stdarg_h" >&6
5391     else
5392     # Is the header compilable?
5393     echo "$as_me:$LINENO: checking stdarg.h usability" >&5
5394     echo $ECHO_N "checking stdarg.h usability... $ECHO_C" >&6
5395     cat >conftest.$ac_ext <<_ACEOF
5396     /* confdefs.h. */
5397     _ACEOF
5398     cat confdefs.h >>conftest.$ac_ext
5399     cat >>conftest.$ac_ext <<_ACEOF
5400     /* end confdefs.h. */
5401     $ac_includes_default
5402     #include <stdarg.h>
5403     _ACEOF
5404     rm -f conftest.$ac_objext
5405     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5406     (eval $ac_compile) 2>conftest.er1
5407     ac_status=$?
5408     grep -v '^ *+' conftest.er1 >conftest.err
5409     rm -f conftest.er1
5410     cat conftest.err >&5
5411     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5412     (exit $ac_status); } &&
5413     { ac_try='test -z "$ac_c_werror_flag"
5414     || test ! -s conftest.err'
5415     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5416     (eval $ac_try) 2>&5
5417     ac_status=$?
5418     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5419     (exit $ac_status); }; } &&
5420     { ac_try='test -s conftest.$ac_objext'
5421     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5422     (eval $ac_try) 2>&5
5423     ac_status=$?
5424     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5425     (exit $ac_status); }; }; then
5426     ac_header_compiler=yes
5427     else
5428     echo "$as_me: failed program was:" >&5
5429     sed 's/^/| /' conftest.$ac_ext >&5
5430    
5431     ac_header_compiler=no
5432     fi
5433     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5434     echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5435     echo "${ECHO_T}$ac_header_compiler" >&6
5436    
5437     # Is the header present?
5438     echo "$as_me:$LINENO: checking stdarg.h presence" >&5
5439     echo $ECHO_N "checking stdarg.h presence... $ECHO_C" >&6
5440     cat >conftest.$ac_ext <<_ACEOF
5441     /* confdefs.h. */
5442     _ACEOF
5443     cat confdefs.h >>conftest.$ac_ext
5444     cat >>conftest.$ac_ext <<_ACEOF
5445     /* end confdefs.h. */
5446     #include <stdarg.h>
5447     _ACEOF
5448     if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5449     (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5450     ac_status=$?
5451     grep -v '^ *+' conftest.er1 >conftest.err
5452     rm -f conftest.er1
5453     cat conftest.err >&5
5454     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5455     (exit $ac_status); } >/dev/null; then
5456     if test -s conftest.err; then
5457     ac_cpp_err=$ac_c_preproc_warn_flag
5458     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5459     else
5460     ac_cpp_err=
5461     fi
5462     else
5463     ac_cpp_err=yes
5464     fi
5465     if test -z "$ac_cpp_err"; then
5466     ac_header_preproc=yes
5467     else
5468     echo "$as_me: failed program was:" >&5
5469     sed 's/^/| /' conftest.$ac_ext >&5
5470    
5471     ac_header_preproc=no
5472     fi
5473     rm -f conftest.err conftest.$ac_ext
5474     echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5475     echo "${ECHO_T}$ac_header_preproc" >&6
5476    
5477     # So? What about this header?
5478     case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5479     yes:no: )
5480     { echo "$as_me:$LINENO: WARNING: stdarg.h: accepted by the compiler, rejected by the preprocessor!" >&5
5481     echo "$as_me: WARNING: stdarg.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5482     { echo "$as_me:$LINENO: WARNING: stdarg.h: proceeding with the compiler's result" >&5
5483     echo "$as_me: WARNING: stdarg.h: proceeding with the compiler's result" >&2;}
5484     ac_header_preproc=yes
5485     ;;
5486     no:yes:* )
5487     { echo "$as_me:$LINENO: WARNING: stdarg.h: present but cannot be compiled" >&5
5488     echo "$as_me: WARNING: stdarg.h: present but cannot be compiled" >&2;}
5489     { echo "$as_me:$LINENO: WARNING: stdarg.h: check for missing prerequisite headers?" >&5
5490     echo "$as_me: WARNING: stdarg.h: check for missing prerequisite headers?" >&2;}
5491     { echo "$as_me:$LINENO: WARNING: stdarg.h: see the Autoconf documentation" >&5
5492     echo "$as_me: WARNING: stdarg.h: see the Autoconf documentation" >&2;}
5493     { echo "$as_me:$LINENO: WARNING: stdarg.h: section \"Present But Cannot Be Compiled\"" >&5
5494     echo "$as_me: WARNING: stdarg.h: section \"Present But Cannot Be Compiled\"" >&2;}
5495     { echo "$as_me:$LINENO: WARNING: stdarg.h: proceeding with the preprocessor's result" >&5
5496     echo "$as_me: WARNING: stdarg.h: proceeding with the preprocessor's result" >&2;}
5497     { echo "$as_me:$LINENO: WARNING: stdarg.h: in the future, the compiler will take precedence" >&5
5498     echo "$as_me: WARNING: stdarg.h: in the future, the compiler will take precedence" >&2;}
5499     (
5500     cat <<\_ASBOX
5501     ## -------------------------------------- ##
5502     ## Report this to the ircd-hybrid lists. ##
5503     ## -------------------------------------- ##
5504     _ASBOX
5505     ) |
5506     sed "s/^/$as_me: WARNING: /" >&2
5507     ;;
5508     esac
5509     echo "$as_me:$LINENO: checking for stdarg.h" >&5
5510     echo $ECHO_N "checking for stdarg.h... $ECHO_C" >&6
5511     if test "${ac_cv_header_stdarg_h+set}" = set; then
5512     echo $ECHO_N "(cached) $ECHO_C" >&6
5513     else
5514     ac_cv_header_stdarg_h=$ac_header_preproc
5515     fi
5516     echo "$as_me:$LINENO: result: $ac_cv_header_stdarg_h" >&5
5517     echo "${ECHO_T}$ac_cv_header_stdarg_h" >&6
5518    
5519     fi
5520     if test $ac_cv_header_stdarg_h = yes; then
5521     :
5522     else
5523     { { echo "$as_me:$LINENO: error: ** stdarg.h could not be found - ircd-hybrid will not compile without it **" >&5
5524     echo "$as_me: error: ** stdarg.h could not be found - ircd-hybrid will not compile without it **" >&2;}
5525     { (exit 1); exit 1; }; }
5526     fi
5527    
5528    
5529    
5530    
5531     if test "$ac_cv_c_compiler_gnu" = yes; then
5532    
5533     echo "$as_me:$LINENO: checking for strlcpy" >&5
5534     echo $ECHO_N "checking for strlcpy... $ECHO_C" >&6
5535     save_CFLAGS=$CFLAGS
5536     CFLAGS="$CFLAGS -Wimplicit -Werror"
5537    
5538     cat >conftest.$ac_ext <<_ACEOF
5539     /* confdefs.h. */
5540     _ACEOF
5541     cat confdefs.h >>conftest.$ac_ext
5542     cat >>conftest.$ac_ext <<_ACEOF
5543     /* end confdefs.h. */
5544     #include <string.h>
5545     #include <stdlib.h>
5546     int
5547     main ()
5548     {
5549     char *a = malloc(6), *b = strdup("hello");
5550     strlcpy(a, b, 6);
5551    
5552     ;
5553     return 0;
5554     }
5555     _ACEOF
5556     rm -f conftest.$ac_objext conftest$ac_exeext
5557     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5558     (eval $ac_link) 2>conftest.er1
5559     ac_status=$?
5560     grep -v '^ *+' conftest.er1 >conftest.err
5561     rm -f conftest.er1
5562     cat conftest.err >&5
5563     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5564     (exit $ac_status); } &&
5565     { ac_try='test -z "$ac_c_werror_flag"
5566     || test ! -s conftest.err'
5567     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5568     (eval $ac_try) 2>&5
5569     ac_status=$?
5570     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5571     (exit $ac_status); }; } &&
5572     { ac_try='test -s conftest$ac_exeext'
5573     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5574     (eval $ac_try) 2>&5
5575     ac_status=$?
5576     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5577     (exit $ac_status); }; }; then
5578     echo "$as_me:$LINENO: result: yes" >&5
5579     echo "${ECHO_T}yes" >&6
5580    
5581     cat >>confdefs.h <<\_ACEOF
5582     #define HAVE_STRLCPY 1
5583     _ACEOF
5584    
5585     else
5586     echo "$as_me: failed program was:" >&5
5587     sed 's/^/| /' conftest.$ac_ext >&5
5588    
5589     echo "$as_me:$LINENO: result: no" >&5
5590     echo "${ECHO_T}no" >&6
5591    
5592     fi
5593     rm -f conftest.err conftest.$ac_objext \
5594     conftest$ac_exeext conftest.$ac_ext
5595    
5596     echo "$as_me:$LINENO: checking for strlcat" >&5
5597     echo $ECHO_N "checking for strlcat... $ECHO_C" >&6
5598     cat >conftest.$ac_ext <<_ACEOF
5599     /* confdefs.h. */
5600     _ACEOF
5601     cat confdefs.h >>conftest.$ac_ext
5602     cat >>conftest.$ac_ext <<_ACEOF
5603     /* end confdefs.h. */
5604     #include <string.h>
5605     #include <stdlib.h>
5606     int
5607     main ()
5608     {
5609     char *a = malloc(6), *b = strdup("hello");
5610     strlcat(a, b, 6);
5611    
5612     ;
5613     return 0;
5614     }
5615     _ACEOF
5616     rm -f conftest.$ac_objext conftest$ac_exeext
5617     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5618     (eval $ac_link) 2>conftest.er1
5619     ac_status=$?
5620     grep -v '^ *+' conftest.er1 >conftest.err
5621     rm -f conftest.er1
5622     cat conftest.err >&5
5623     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5624     (exit $ac_status); } &&
5625     { ac_try='test -z "$ac_c_werror_flag"
5626     || test ! -s conftest.err'
5627     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5628     (eval $ac_try) 2>&5
5629     ac_status=$?
5630     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5631     (exit $ac_status); }; } &&
5632     { ac_try='test -s conftest$ac_exeext'
5633     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5634     (eval $ac_try) 2>&5
5635     ac_status=$?
5636     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5637     (exit $ac_status); }; }; then
5638     echo "$as_me:$LINENO: result: yes" >&5
5639     echo "${ECHO_T}yes" >&6
5640    
5641     cat >>confdefs.h <<\_ACEOF
5642     #define HAVE_STRLCAT 1
5643     _ACEOF
5644    
5645     else
5646     echo "$as_me: failed program was:" >&5
5647     sed 's/^/| /' conftest.$ac_ext >&5
5648    
5649     echo "$as_me:$LINENO: result: no" >&5
5650     echo "${ECHO_T}no" >&6
5651    
5652     fi
5653     rm -f conftest.err conftest.$ac_objext \
5654     conftest$ac_exeext conftest.$ac_ext
5655    
5656     CFLAGS=$save_CFLAGS
5657    
5658     else
5659    
5660    
5661    
5662    
5663     for ac_func in strlcat strlcpy
5664     do
5665     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5666     echo "$as_me:$LINENO: checking for $ac_func" >&5
5667     echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5668     if eval "test \"\${$as_ac_var+set}\" = set"; then
5669     echo $ECHO_N "(cached) $ECHO_C" >&6
5670     else
5671     cat >conftest.$ac_ext <<_ACEOF
5672     /* confdefs.h. */
5673     _ACEOF
5674     cat confdefs.h >>conftest.$ac_ext
5675     cat >>conftest.$ac_ext <<_ACEOF
5676     /* end confdefs.h. */
5677     /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5678     For example, HP-UX 11i <limits.h> declares gettimeofday. */
5679     #define $ac_func innocuous_$ac_func
5680    
5681     /* System header to define __stub macros and hopefully few prototypes,
5682     which can conflict with char $ac_func (); below.
5683     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5684     <limits.h> exists even on freestanding compilers. */
5685    
5686     #ifdef __STDC__
5687     # include <limits.h>
5688     #else
5689     # include <assert.h>
5690     #endif
5691    
5692     #undef $ac_func
5693    
5694     /* Override any gcc2 internal prototype to avoid an error. */
5695     #ifdef __cplusplus
5696     extern "C"
5697     {
5698     #endif
5699     /* We use char because int might match the return type of a gcc2
5700     builtin and then its argument prototype would still apply. */
5701     char $ac_func ();
5702     /* The GNU C library defines this for functions which it implements
5703     to always fail with ENOSYS. Some functions are actually named
5704     something starting with __ and the normal name is an alias. */
5705     #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5706     choke me
5707     #else
5708     char (*f) () = $ac_func;
5709     #endif
5710     #ifdef __cplusplus
5711     }
5712     #endif
5713    
5714     int
5715     main ()
5716     {
5717     return f != $ac_func;
5718     ;
5719     return 0;
5720     }
5721     _ACEOF
5722     rm -f conftest.$ac_objext conftest$ac_exeext
5723     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5724     (eval $ac_link) 2>conftest.er1
5725     ac_status=$?
5726     grep -v '^ *+' conftest.er1 >conftest.err
5727     rm -f conftest.er1
5728     cat conftest.err >&5
5729     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5730     (exit $ac_status); } &&
5731     { ac_try='test -z "$ac_c_werror_flag"
5732     || test ! -s conftest.err'
5733     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5734     (eval $ac_try) 2>&5
5735     ac_status=$?
5736     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5737     (exit $ac_status); }; } &&
5738     { ac_try='test -s conftest$ac_exeext'
5739     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5740     (eval $ac_try) 2>&5
5741     ac_status=$?
5742     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5743     (exit $ac_status); }; }; then
5744     eval "$as_ac_var=yes"
5745     else
5746     echo "$as_me: failed program was:" >&5
5747     sed 's/^/| /' conftest.$ac_ext >&5
5748    
5749     eval "$as_ac_var=no"
5750     fi
5751     rm -f conftest.err conftest.$ac_objext \
5752     conftest$ac_exeext conftest.$ac_ext
5753     fi
5754     echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5755     echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5756     if test `eval echo '${'$as_ac_var'}'` = yes; then
5757     cat >>confdefs.h <<_ACEOF
5758     #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5759     _ACEOF
5760    
5761     fi
5762     done
5763    
5764    
5765     fi
5766    
5767     echo "$as_me:$LINENO: checking for int64_t" >&5
5768     echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
5769     if test "${ac_cv_type_int64_t+set}" = set; then
5770     echo $ECHO_N "(cached) $ECHO_C" >&6
5771     else
5772     cat >conftest.$ac_ext <<_ACEOF
5773     /* confdefs.h. */
5774     _ACEOF
5775     cat confdefs.h >>conftest.$ac_ext
5776     cat >>conftest.$ac_ext <<_ACEOF
5777     /* end confdefs.h. */
5778     $ac_includes_default
5779     int
5780     main ()
5781     {
5782     if ((int64_t *) 0)
5783     return 0;
5784     if (sizeof (int64_t))
5785     return 0;
5786     ;
5787     return 0;
5788     }
5789     _ACEOF
5790     rm -f conftest.$ac_objext
5791     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5792     (eval $ac_compile) 2>conftest.er1
5793     ac_status=$?
5794     grep -v '^ *+' conftest.er1 >conftest.err
5795     rm -f conftest.er1
5796     cat conftest.err >&5
5797     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5798     (exit $ac_status); } &&
5799     { ac_try='test -z "$ac_c_werror_flag"
5800     || test ! -s conftest.err'
5801     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5802     (eval $ac_try) 2>&5
5803     ac_status=$?
5804     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5805     (exit $ac_status); }; } &&
5806     { ac_try='test -s conftest.$ac_objext'
5807     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5808     (eval $ac_try) 2>&5
5809     ac_status=$?
5810     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5811     (exit $ac_status); }; }; then
5812     ac_cv_type_int64_t=yes
5813     else
5814     echo "$as_me: failed program was:" >&5
5815     sed 's/^/| /' conftest.$ac_ext >&5
5816    
5817     ac_cv_type_int64_t=no
5818     fi
5819     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5820     fi
5821     echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
5822     echo "${ECHO_T}$ac_cv_type_int64_t" >&6
5823    
5824     echo "$as_me:$LINENO: checking size of int64_t" >&5
5825     echo $ECHO_N "checking size of int64_t... $ECHO_C" >&6
5826     if test "${ac_cv_sizeof_int64_t+set}" = set; then
5827     echo $ECHO_N "(cached) $ECHO_C" >&6
5828     else
5829     if test "$ac_cv_type_int64_t" = yes; then
5830     # The cast to unsigned long works around a bug in the HP C Compiler
5831     # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5832     # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5833     # This bug is HP SR number 8606223364.
5834     if test "$cross_compiling" = yes; then
5835     # Depending upon the size, compute the lo and hi bounds.
5836     cat >conftest.$ac_ext <<_ACEOF
5837     /* confdefs.h. */
5838     _ACEOF
5839     cat confdefs.h >>conftest.$ac_ext
5840     cat >>conftest.$ac_ext <<_ACEOF
5841     /* end confdefs.h. */
5842     $ac_includes_default
5843     int
5844     main ()
5845     {
5846     static int test_array [1 - 2 * !(((long) (sizeof (int64_t))) >= 0)];
5847     test_array [0] = 0
5848    
5849     ;
5850     return 0;
5851     }
5852     _ACEOF
5853     rm -f conftest.$ac_objext
5854     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5855     (eval $ac_compile) 2>conftest.er1
5856     ac_status=$?
5857     grep -v '^ *+' conftest.er1 >conftest.err
5858     rm -f conftest.er1
5859     cat conftest.err >&5
5860     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5861     (exit $ac_status); } &&
5862     { ac_try='test -z "$ac_c_werror_flag"
5863     || test ! -s conftest.err'
5864     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5865     (eval $ac_try) 2>&5
5866     ac_status=$?
5867     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5868     (exit $ac_status); }; } &&
5869     { ac_try='test -s conftest.$ac_objext'
5870     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5871     (eval $ac_try) 2>&5
5872     ac_status=$?
5873     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5874     (exit $ac_status); }; }; then
5875     ac_lo=0 ac_mid=0
5876     while :; do
5877     cat >conftest.$ac_ext <<_ACEOF
5878     /* confdefs.h. */
5879     _ACEOF
5880     cat confdefs.h >>conftest.$ac_ext
5881     cat >>conftest.$ac_ext <<_ACEOF
5882     /* end confdefs.h. */
5883     $ac_includes_default
5884     int
5885     main ()
5886     {
5887     static int test_array [1 - 2 * !(((long) (sizeof (int64_t))) <= $ac_mid)];
5888     test_array [0] = 0
5889    
5890     ;
5891     return 0;
5892     }
5893     _ACEOF
5894     rm -f conftest.$ac_objext
5895     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5896     (eval $ac_compile) 2>conftest.er1
5897     ac_status=$?
5898     grep -v '^ *+' conftest.er1 >conftest.err
5899     rm -f conftest.er1
5900     cat conftest.err >&5
5901     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5902     (exit $ac_status); } &&
5903     { ac_try='test -z "$ac_c_werror_flag"
5904     || test ! -s conftest.err'
5905     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5906     (eval $ac_try) 2>&5
5907     ac_status=$?
5908     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5909     (exit $ac_status); }; } &&
5910     { ac_try='test -s conftest.$ac_objext'
5911     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5912     (eval $ac_try) 2>&5
5913     ac_status=$?
5914     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5915     (exit $ac_status); }; }; then
5916     ac_hi=$ac_mid; break
5917     else
5918     echo "$as_me: failed program was:" >&5
5919     sed 's/^/| /' conftest.$ac_ext >&5
5920    
5921     ac_lo=`expr $ac_mid + 1`
5922     if test $ac_lo -le $ac_mid; then
5923     ac_lo= ac_hi=
5924     break
5925     fi
5926     ac_mid=`expr 2 '*' $ac_mid + 1`
5927     fi
5928     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5929     done
5930     else
5931     echo "$as_me: failed program was:" >&5
5932     sed 's/^/| /' conftest.$ac_ext >&5
5933    
5934     cat >conftest.$ac_ext <<_ACEOF
5935     /* confdefs.h. */
5936     _ACEOF
5937     cat confdefs.h >>conftest.$ac_ext
5938     cat >>conftest.$ac_ext <<_ACEOF
5939     /* end confdefs.h. */
5940     $ac_includes_default
5941     int
5942     main ()
5943     {
5944     static int test_array [1 - 2 * !(((long) (sizeof (int64_t))) < 0)];
5945     test_array [0] = 0
5946    
5947     ;
5948     return 0;
5949     }
5950     _ACEOF
5951     rm -f conftest.$ac_objext
5952     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5953     (eval $ac_compile) 2>conftest.er1
5954     ac_status=$?
5955     grep -v '^ *+' conftest.er1 >conftest.err
5956     rm -f conftest.er1
5957     cat conftest.err >&5
5958     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5959     (exit $ac_status); } &&
5960     { ac_try='test -z "$ac_c_werror_flag"
5961     || test ! -s conftest.err'
5962     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5963     (eval $ac_try) 2>&5
5964     ac_status=$?
5965     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5966     (exit $ac_status); }; } &&
5967     { ac_try='test -s conftest.$ac_objext'
5968     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5969     (eval $ac_try) 2>&5
5970     ac_status=$?
5971     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5972     (exit $ac_status); }; }; then
5973     ac_hi=-1 ac_mid=-1
5974     while :; do
5975     cat >conftest.$ac_ext <<_ACEOF
5976     /* confdefs.h. */
5977     _ACEOF
5978     cat confdefs.h >>conftest.$ac_ext
5979     cat >>conftest.$ac_ext <<_ACEOF
5980     /* end confdefs.h. */
5981     $ac_includes_default
5982     int
5983     main ()
5984     {
5985     static int test_array [1 - 2 * !(((long) (sizeof (int64_t))) >= $ac_mid)];
5986     test_array [0] = 0
5987    
5988     ;
5989     return 0;
5990     }
5991     _ACEOF
5992     rm -f conftest.$ac_objext
5993     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5994     (eval $ac_compile) 2>conftest.er1
5995     ac_status=$?
5996     grep -v '^ *+' conftest.er1 >conftest.err
5997     rm -f conftest.er1
5998     cat conftest.err >&5
5999     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6000     (exit $ac_status); } &&
6001     { ac_try='test -z "$ac_c_werror_flag"
6002     || test ! -s conftest.err'
6003     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6004     (eval $ac_try) 2>&5
6005     ac_status=$?
6006     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6007     (exit $ac_status); }; } &&
6008     { ac_try='test -s conftest.$ac_objext'
6009     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6010     (eval $ac_try) 2>&5
6011     ac_status=$?
6012     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6013     (exit $ac_status); }; }; then
6014     ac_lo=$ac_mid; break
6015     else
6016     echo "$as_me: failed program was:" >&5
6017     sed 's/^/| /' conftest.$ac_ext >&5
6018    
6019     ac_hi=`expr '(' $ac_mid ')' - 1`
6020     if test $ac_mid -le $ac_hi; then
6021     ac_lo= ac_hi=
6022     break
6023     fi
6024     ac_mid=`expr 2 '*' $ac_mid`
6025     fi
6026     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6027     done
6028     else
6029     echo "$as_me: failed program was:" >&5
6030     sed 's/^/| /' conftest.$ac_ext >&5
6031    
6032     ac_lo= ac_hi=
6033     fi
6034     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6035     fi
6036     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6037     # Binary search between lo and hi bounds.
6038     while test "x$ac_lo" != "x$ac_hi"; do
6039     ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6040     cat >conftest.$ac_ext <<_ACEOF
6041     /* confdefs.h. */
6042     _ACEOF
6043     cat confdefs.h >>conftest.$ac_ext
6044     cat >>conftest.$ac_ext <<_ACEOF
6045     /* end confdefs.h. */
6046     $ac_includes_default
6047     int
6048     main ()
6049     {
6050     static int test_array [1 - 2 * !(((long) (sizeof (int64_t))) <= $ac_mid)];
6051     test_array [0] = 0
6052    
6053     ;
6054     return 0;
6055     }
6056     _ACEOF
6057     rm -f conftest.$ac_objext
6058     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6059     (eval $ac_compile) 2>conftest.er1
6060     ac_status=$?
6061     grep -v '^ *+' conftest.er1 >conftest.err
6062     rm -f conftest.er1
6063     cat conftest.err >&5
6064     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6065     (exit $ac_status); } &&
6066     { ac_try='test -z "$ac_c_werror_flag"
6067     || test ! -s conftest.err'
6068     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6069     (eval $ac_try) 2>&5
6070     ac_status=$?
6071     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6072     (exit $ac_status); }; } &&
6073     { ac_try='test -s conftest.$ac_objext'
6074     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6075     (eval $ac_try) 2>&5
6076     ac_status=$?
6077     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6078     (exit $ac_status); }; }; then
6079     ac_hi=$ac_mid
6080     else
6081     echo "$as_me: failed program was:" >&5
6082     sed 's/^/| /' conftest.$ac_ext >&5
6083    
6084     ac_lo=`expr '(' $ac_mid ')' + 1`
6085     fi
6086     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6087     done
6088     case $ac_lo in
6089     ?*) ac_cv_sizeof_int64_t=$ac_lo;;
6090     '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int64_t), 77
6091     See \`config.log' for more details." >&5
6092     echo "$as_me: error: cannot compute sizeof (int64_t), 77
6093     See \`config.log' for more details." >&2;}
6094     { (exit 1); exit 1; }; } ;;
6095     esac
6096     else
6097     if test "$cross_compiling" = yes; then
6098     { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6099     See \`config.log' for more details." >&5
6100     echo "$as_me: error: cannot run test program while cross compiling
6101     See \`config.log' for more details." >&2;}
6102     { (exit 1); exit 1; }; }
6103     else
6104     cat >conftest.$ac_ext <<_ACEOF
6105     /* confdefs.h. */
6106     _ACEOF
6107     cat confdefs.h >>conftest.$ac_ext
6108     cat >>conftest.$ac_ext <<_ACEOF
6109     /* end confdefs.h. */
6110     $ac_includes_default
6111     long longval () { return (long) (sizeof (int64_t)); }
6112     unsigned long ulongval () { return (long) (sizeof (int64_t)); }
6113     #include <stdio.h>
6114     #include <stdlib.h>
6115     int
6116     main ()
6117     {
6118    
6119     FILE *f = fopen ("conftest.val", "w");
6120     if (! f)
6121     exit (1);
6122     if (((long) (sizeof (int64_t))) < 0)
6123     {
6124     long i = longval ();
6125     if (i != ((long) (sizeof (int64_t))))
6126     exit (1);
6127     fprintf (f, "%ld\n", i);
6128     }
6129     else
6130     {
6131     unsigned long i = ulongval ();
6132     if (i != ((long) (sizeof (int64_t))))
6133     exit (1);
6134     fprintf (f, "%lu\n", i);
6135     }
6136     exit (ferror (f) || fclose (f) != 0);
6137    
6138     ;
6139     return 0;
6140     }
6141     _ACEOF
6142     rm -f conftest$ac_exeext
6143     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6144     (eval $ac_link) 2>&5
6145     ac_status=$?
6146     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6147     (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6148     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6149     (eval $ac_try) 2>&5
6150     ac_status=$?
6151     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6152     (exit $ac_status); }; }; then
6153     ac_cv_sizeof_int64_t=`cat conftest.val`
6154     else
6155     echo "$as_me: program exited with status $ac_status" >&5
6156     echo "$as_me: failed program was:" >&5
6157     sed 's/^/| /' conftest.$ac_ext >&5
6158    
6159     ( exit $ac_status )
6160     { { echo "$as_me:$LINENO: error: cannot compute sizeof (int64_t), 77
6161     See \`config.log' for more details." >&5
6162     echo "$as_me: error: cannot compute sizeof (int64_t), 77
6163     See \`config.log' for more details." >&2;}
6164     { (exit 1); exit 1; }; }
6165     fi
6166     rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6167     fi
6168     fi
6169     rm -f conftest.val
6170     else
6171     ac_cv_sizeof_int64_t=0
6172     fi
6173     fi
6174     echo "$as_me:$LINENO: result: $ac_cv_sizeof_int64_t" >&5
6175     echo "${ECHO_T}$ac_cv_sizeof_int64_t" >&6
6176     cat >>confdefs.h <<_ACEOF
6177     #define SIZEOF_INT64_T $ac_cv_sizeof_int64_t
6178     _ACEOF
6179    
6180    
6181     echo "$as_me:$LINENO: checking for long long" >&5
6182     echo $ECHO_N "checking for long long... $ECHO_C" >&6
6183     if test "${ac_cv_type_long_long+set}" = set; then
6184     echo $ECHO_N "(cached) $ECHO_C" >&6
6185     else
6186     cat >conftest.$ac_ext <<_ACEOF
6187     /* confdefs.h. */
6188     _ACEOF
6189     cat confdefs.h >>conftest.$ac_ext
6190     cat >>conftest.$ac_ext <<_ACEOF
6191     /* end confdefs.h. */
6192     $ac_includes_default
6193     int
6194     main ()
6195     {
6196     if ((long long *) 0)
6197     return 0;
6198     if (sizeof (long long))
6199     return 0;
6200     ;
6201     return 0;
6202     }
6203     _ACEOF
6204     rm -f conftest.$ac_objext
6205     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6206     (eval $ac_compile) 2>conftest.er1
6207     ac_status=$?
6208     grep -v '^ *+' conftest.er1 >conftest.err
6209     rm -f conftest.er1
6210     cat conftest.err >&5
6211     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6212     (exit $ac_status); } &&
6213     { ac_try='test -z "$ac_c_werror_flag"
6214     || test ! -s conftest.err'
6215     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6216     (eval $ac_try) 2>&5
6217     ac_status=$?
6218     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6219     (exit $ac_status); }; } &&
6220     { ac_try='test -s conftest.$ac_objext'
6221     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6222     (eval $ac_try) 2>&5
6223     ac_status=$?
6224     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6225     (exit $ac_status); }; }; then
6226     ac_cv_type_long_long=yes
6227     else
6228     echo "$as_me: failed program was:" >&5
6229     sed 's/^/| /' conftest.$ac_ext >&5
6230    
6231     ac_cv_type_long_long=no
6232     fi
6233     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6234     fi
6235     echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
6236     echo "${ECHO_T}$ac_cv_type_long_long" >&6
6237    
6238     echo "$as_me:$LINENO: checking size of long long" >&5
6239     echo $ECHO_N "checking size of long long... $ECHO_C" >&6
6240     if test "${ac_cv_sizeof_long_long+set}" = set; then
6241     echo $ECHO_N "(cached) $ECHO_C" >&6
6242     else
6243     if test "$ac_cv_type_long_long" = yes; then
6244     # The cast to unsigned long works around a bug in the HP C Compiler
6245     # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6246     # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6247     # This bug is HP SR number 8606223364.
6248     if test "$cross_compiling" = yes; then
6249     # Depending upon the size, compute the lo and hi bounds.
6250     cat >conftest.$ac_ext <<_ACEOF
6251     /* confdefs.h. */
6252     _ACEOF
6253     cat confdefs.h >>conftest.$ac_ext
6254     cat >>conftest.$ac_ext <<_ACEOF
6255     /* end confdefs.h. */
6256     $ac_includes_default
6257     int
6258     main ()
6259     {
6260     static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
6261     test_array [0] = 0
6262    
6263     ;
6264     return 0;
6265     }
6266     _ACEOF
6267     rm -f conftest.$ac_objext
6268     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6269     (eval $ac_compile) 2>conftest.er1
6270     ac_status=$?
6271     grep -v '^ *+' conftest.er1 >conftest.err
6272     rm -f conftest.er1
6273     cat conftest.err >&5
6274     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6275     (exit $ac_status); } &&
6276     { ac_try='test -z "$ac_c_werror_flag"
6277     || test ! -s conftest.err'
6278     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6279     (eval $ac_try) 2>&5
6280     ac_status=$?
6281     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6282     (exit $ac_status); }; } &&
6283     { ac_try='test -s conftest.$ac_objext'
6284     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6285     (eval $ac_try) 2>&5
6286     ac_status=$?
6287     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6288     (exit $ac_status); }; }; then
6289     ac_lo=0 ac_mid=0
6290     while :; do
6291     cat >conftest.$ac_ext <<_ACEOF
6292     /* confdefs.h. */
6293     _ACEOF
6294     cat confdefs.h >>conftest.$ac_ext
6295     cat >>conftest.$ac_ext <<_ACEOF
6296     /* end confdefs.h. */
6297     $ac_includes_default
6298     int
6299     main ()
6300     {
6301     static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
6302     test_array [0] = 0
6303    
6304     ;
6305     return 0;
6306     }
6307     _ACEOF
6308     rm -f conftest.$ac_objext
6309     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6310     (eval $ac_compile) 2>conftest.er1
6311     ac_status=$?
6312     grep -v '^ *+' conftest.er1 >conftest.err
6313     rm -f conftest.er1
6314     cat conftest.err >&5
6315     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6316     (exit $ac_status); } &&
6317     { ac_try='test -z "$ac_c_werror_flag"
6318     || test ! -s conftest.err'
6319     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6320     (eval $ac_try) 2>&5
6321     ac_status=$?
6322     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6323     (exit $ac_status); }; } &&
6324     { ac_try='test -s conftest.$ac_objext'
6325     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6326     (eval $ac_try) 2>&5
6327     ac_status=$?
6328     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6329     (exit $ac_status); }; }; then
6330     ac_hi=$ac_mid; break
6331     else
6332     echo "$as_me: failed program was:" >&5
6333     sed 's/^/| /' conftest.$ac_ext >&5
6334    
6335     ac_lo=`expr $ac_mid + 1`
6336     if test $ac_lo -le $ac_mid; then
6337     ac_lo= ac_hi=
6338     break
6339     fi
6340     ac_mid=`expr 2 '*' $ac_mid + 1`
6341     fi
6342     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6343     done
6344     else
6345     echo "$as_me: failed program was:" >&5
6346     sed 's/^/| /' conftest.$ac_ext >&5
6347    
6348     cat >conftest.$ac_ext <<_ACEOF
6349     /* confdefs.h. */
6350     _ACEOF
6351     cat confdefs.h >>conftest.$ac_ext
6352     cat >>conftest.$ac_ext <<_ACEOF
6353     /* end confdefs.h. */
6354     $ac_includes_default
6355     int
6356     main ()
6357     {
6358     static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
6359     test_array [0] = 0
6360    
6361     ;
6362     return 0;
6363     }
6364     _ACEOF
6365     rm -f conftest.$ac_objext
6366     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6367     (eval $ac_compile) 2>conftest.er1
6368     ac_status=$?
6369     grep -v '^ *+' conftest.er1 >conftest.err
6370     rm -f conftest.er1
6371     cat conftest.err >&5
6372     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6373     (exit $ac_status); } &&
6374     { ac_try='test -z "$ac_c_werror_flag"
6375     || test ! -s conftest.err'
6376     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6377     (eval $ac_try) 2>&5
6378     ac_status=$?
6379     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6380     (exit $ac_status); }; } &&
6381     { ac_try='test -s conftest.$ac_objext'
6382     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6383     (eval $ac_try) 2>&5
6384     ac_status=$?
6385     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6386     (exit $ac_status); }; }; then
6387     ac_hi=-1 ac_mid=-1
6388     while :; do
6389     cat >conftest.$ac_ext <<_ACEOF
6390     /* confdefs.h. */
6391     _ACEOF
6392     cat confdefs.h >>conftest.$ac_ext
6393     cat >>conftest.$ac_ext <<_ACEOF
6394     /* end confdefs.h. */
6395     $ac_includes_default
6396     int
6397     main ()
6398     {
6399     static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
6400     test_array [0] = 0
6401    
6402     ;
6403     return 0;
6404     }
6405     _ACEOF
6406     rm -f conftest.$ac_objext
6407     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6408     (eval $ac_compile) 2>conftest.er1
6409     ac_status=$?
6410     grep -v '^ *+' conftest.er1 >conftest.err
6411     rm -f conftest.er1
6412     cat conftest.err >&5
6413     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6414     (exit $ac_status); } &&
6415     { ac_try='test -z "$ac_c_werror_flag"
6416     || test ! -s conftest.err'
6417     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6418     (eval $ac_try) 2>&5
6419     ac_status=$?
6420     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6421     (exit $ac_status); }; } &&
6422     { ac_try='test -s conftest.$ac_objext'
6423     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6424     (eval $ac_try) 2>&5
6425     ac_status=$?
6426     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6427     (exit $ac_status); }; }; then
6428     ac_lo=$ac_mid; break
6429     else
6430     echo "$as_me: failed program was:" >&5
6431     sed 's/^/| /' conftest.$ac_ext >&5
6432    
6433     ac_hi=`expr '(' $ac_mid ')' - 1`
6434     if test $ac_mid -le $ac_hi; then
6435     ac_lo= ac_hi=
6436     break
6437     fi
6438     ac_mid=`expr 2 '*' $ac_mid`
6439     fi
6440     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6441     done
6442     else
6443     echo "$as_me: failed program was:" >&5
6444     sed 's/^/| /' conftest.$ac_ext >&5
6445    
6446     ac_lo= ac_hi=
6447     fi
6448     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6449     fi
6450     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6451     # Binary search between lo and hi bounds.
6452     while test "x$ac_lo" != "x$ac_hi"; do
6453     ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6454     cat >conftest.$ac_ext <<_ACEOF
6455     /* confdefs.h. */
6456     _ACEOF
6457     cat confdefs.h >>conftest.$ac_ext
6458     cat >>conftest.$ac_ext <<_ACEOF
6459     /* end confdefs.h. */
6460     $ac_includes_default
6461     int
6462     main ()
6463     {
6464     static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
6465     test_array [0] = 0
6466    
6467     ;
6468     return 0;
6469     }
6470     _ACEOF
6471     rm -f conftest.$ac_objext
6472     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6473     (eval $ac_compile) 2>conftest.er1
6474     ac_status=$?
6475     grep -v '^ *+' conftest.er1 >conftest.err
6476     rm -f conftest.er1
6477     cat conftest.err >&5
6478     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6479     (exit $ac_status); } &&
6480     { ac_try='test -z "$ac_c_werror_flag"
6481     || test ! -s conftest.err'
6482     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6483     (eval $ac_try) 2>&5
6484     ac_status=$?
6485     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6486     (exit $ac_status); }; } &&
6487     { ac_try='test -s conftest.$ac_objext'
6488     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6489     (eval $ac_try) 2>&5
6490     ac_status=$?
6491     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6492     (exit $ac_status); }; }; then
6493     ac_hi=$ac_mid
6494     else
6495     echo "$as_me: failed program was:" >&5
6496     sed 's/^/| /' conftest.$ac_ext >&5
6497    
6498     ac_lo=`expr '(' $ac_mid ')' + 1`
6499     fi
6500     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6501     done
6502     case $ac_lo in
6503     ?*) ac_cv_sizeof_long_long=$ac_lo;;
6504     '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
6505     See \`config.log' for more details." >&5
6506     echo "$as_me: error: cannot compute sizeof (long long), 77
6507     See \`config.log' for more details." >&2;}
6508     { (exit 1); exit 1; }; } ;;
6509     esac
6510     else
6511     if test "$cross_compiling" = yes; then
6512     { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6513     See \`config.log' for more details." >&5
6514     echo "$as_me: error: cannot run test program while cross compiling
6515     See \`config.log' for more details." >&2;}
6516     { (exit 1); exit 1; }; }
6517     else
6518     cat >conftest.$ac_ext <<_ACEOF
6519     /* confdefs.h. */
6520     _ACEOF
6521     cat confdefs.h >>conftest.$ac_ext
6522     cat >>conftest.$ac_ext <<_ACEOF
6523     /* end confdefs.h. */
6524     $ac_includes_default
6525     long longval () { return (long) (sizeof (long long)); }
6526     unsigned long ulongval () { return (long) (sizeof (long long)); }
6527     #include <stdio.h>
6528     #include <stdlib.h>
6529     int
6530     main ()
6531     {
6532    
6533     FILE *f = fopen ("conftest.val", "w");
6534     if (! f)
6535     exit (1);
6536     if (((long) (sizeof (long long))) < 0)
6537     {
6538     long i = longval ();
6539     if (i != ((long) (sizeof (long long))))
6540     exit (1);
6541     fprintf (f, "%ld\n", i);
6542     }
6543     else
6544     {
6545     unsigned long i = ulongval ();
6546     if (i != ((long) (sizeof (long long))))
6547     exit (1);
6548     fprintf (f, "%lu\n", i);
6549     }
6550     exit (ferror (f) || fclose (f) != 0);
6551    
6552     ;
6553     return 0;
6554     }
6555     _ACEOF
6556     rm -f conftest$ac_exeext
6557     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6558     (eval $ac_link) 2>&5
6559     ac_status=$?
6560     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6561     (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6562     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6563     (eval $ac_try) 2>&5
6564     ac_status=$?
6565     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6566     (exit $ac_status); }; }; then
6567     ac_cv_sizeof_long_long=`cat conftest.val`
6568     else
6569     echo "$as_me: program exited with status $ac_status" >&5
6570     echo "$as_me: failed program was:" >&5
6571     sed 's/^/| /' conftest.$ac_ext >&5
6572    
6573     ( exit $ac_status )
6574     { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
6575     See \`config.log' for more details." >&5
6576     echo "$as_me: error: cannot compute sizeof (long long), 77
6577     See \`config.log' for more details." >&2;}
6578     { (exit 1); exit 1; }; }
6579     fi
6580     rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6581     fi
6582     fi
6583     rm -f conftest.val
6584     else
6585     ac_cv_sizeof_long_long=0
6586     fi
6587     fi
6588     echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
6589     echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
6590     cat >>confdefs.h <<_ACEOF
6591     #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6592     _ACEOF
6593    
6594    
6595    
6596     if test "$ac_cv_sizeof_int64_t" = 8; then
6597     echo "$as_me:$LINENO: checking for uint64_t" >&5
6598     echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
6599     if test "${ac_cv_type_uint64_t+set}" = set; then
6600     echo $ECHO_N "(cached) $ECHO_C" >&6
6601     else
6602     cat >conftest.$ac_ext <<_ACEOF
6603     /* confdefs.h. */
6604     _ACEOF
6605     cat confdefs.h >>conftest.$ac_ext
6606     cat >>conftest.$ac_ext <<_ACEOF
6607     /* end confdefs.h. */
6608     $ac_includes_default
6609     int
6610     main ()
6611     {
6612     if ((uint64_t *) 0)
6613     return 0;
6614     if (sizeof (uint64_t))
6615     return 0;
6616     ;
6617     return 0;
6618     }
6619     _ACEOF
6620     rm -f conftest.$ac_objext
6621     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6622     (eval $ac_compile) 2>conftest.er1
6623     ac_status=$?
6624     grep -v '^ *+' conftest.er1 >conftest.err
6625     rm -f conftest.er1
6626     cat conftest.err >&5
6627     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6628     (exit $ac_status); } &&
6629     { ac_try='test -z "$ac_c_werror_flag"
6630     || test ! -s conftest.err'
6631     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6632     (eval $ac_try) 2>&5
6633     ac_status=$?
6634     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6635     (exit $ac_status); }; } &&
6636     { ac_try='test -s conftest.$ac_objext'
6637     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6638     (eval $ac_try) 2>&5
6639     ac_status=$?
6640     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6641     (exit $ac_status); }; }; then
6642     ac_cv_type_uint64_t=yes
6643     else
6644     echo "$as_me: failed program was:" >&5
6645     sed 's/^/| /' conftest.$ac_ext >&5
6646    
6647     ac_cv_type_uint64_t=no
6648     fi
6649     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6650     fi
6651     echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
6652     echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
6653    
6654     echo "$as_me:$LINENO: checking for int64_t" >&5
6655     echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
6656     if test "${ac_cv_type_int64_t+set}" = set; then
6657     echo $ECHO_N "(cached) $ECHO_C" >&6
6658     else
6659     cat >conftest.$ac_ext <<_ACEOF
6660     /* confdefs.h. */
6661     _ACEOF
6662     cat confdefs.h >>conftest.$ac_ext
6663     cat >>conftest.$ac_ext <<_ACEOF
6664     /* end confdefs.h. */
6665     $ac_includes_default
6666     int
6667     main ()
6668     {
6669     if ((int64_t *) 0)
6670     return 0;
6671     if (sizeof (int64_t))
6672     return 0;
6673     ;
6674     return 0;
6675     }
6676     _ACEOF
6677     rm -f conftest.$ac_objext
6678     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6679     (eval $ac_compile) 2>conftest.er1
6680     ac_status=$?
6681     grep -v '^ *+' conftest.er1 >conftest.err
6682     rm -f conftest.er1
6683     cat conftest.err >&5
6684     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6685     (exit $ac_status); } &&
6686     { ac_try='test -z "$ac_c_werror_flag"
6687     || test ! -s conftest.err'
6688     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6689     (eval $ac_try) 2>&5
6690     ac_status=$?
6691     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6692     (exit $ac_status); }; } &&
6693     { ac_try='test -s conftest.$ac_objext'
6694     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6695     (eval $ac_try) 2>&5
6696     ac_status=$?
6697     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6698     (exit $ac_status); }; }; then
6699     ac_cv_type_int64_t=yes
6700     else
6701     echo "$as_me: failed program was:" >&5
6702     sed 's/^/| /' conftest.$ac_ext >&5
6703    
6704     ac_cv_type_int64_t=no
6705     fi
6706     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6707     fi
6708     echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
6709     echo "${ECHO_T}$ac_cv_type_int64_t" >&6
6710    
6711     elif test "$ac_cv_sizeof_long_long" = 8; then
6712     echo "$as_me:$LINENO: checking for uint64_t" >&5
6713     echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
6714     if test "${ac_cv_type_uint64_t+set}" = set; then
6715     echo $ECHO_N "(cached) $ECHO_C" >&6
6716     else
6717     cat >conftest.$ac_ext <<_ACEOF
6718     /* confdefs.h. */
6719     _ACEOF
6720     cat confdefs.h >>conftest.$ac_ext
6721     cat >>conftest.$ac_ext <<_ACEOF
6722     /* end confdefs.h. */
6723     $ac_includes_default
6724     int
6725     main ()
6726     {
6727     if ((uint64_t *) 0)
6728     return 0;
6729     if (sizeof (uint64_t))
6730     return 0;
6731     ;
6732     return 0;
6733     }
6734     _ACEOF
6735     rm -f conftest.$ac_objext
6736     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6737     (eval $ac_compile) 2>conftest.er1
6738     ac_status=$?
6739     grep -v '^ *+' conftest.er1 >conftest.err
6740     rm -f conftest.er1
6741     cat conftest.err >&5
6742     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6743     (exit $ac_status); } &&
6744     { ac_try='test -z "$ac_c_werror_flag"
6745     || test ! -s conftest.err'
6746     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6747     (eval $ac_try) 2>&5
6748     ac_status=$?
6749     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6750     (exit $ac_status); }; } &&
6751     { ac_try='test -s conftest.$ac_objext'
6752     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6753     (eval $ac_try) 2>&5
6754     ac_status=$?
6755     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6756     (exit $ac_status); }; }; then
6757     ac_cv_type_uint64_t=yes
6758     else
6759     echo "$as_me: failed program was:" >&5
6760     sed 's/^/| /' conftest.$ac_ext >&5
6761    
6762     ac_cv_type_uint64_t=no
6763     fi
6764     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6765     fi
6766     echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
6767     echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
6768     if test $ac_cv_type_uint64_t = yes; then
6769     :
6770     else
6771    
6772     cat >>confdefs.h <<_ACEOF
6773     #define uint64_t unsigned long long
6774     _ACEOF
6775    
6776     fi
6777    
6778     echo "$as_me:$LINENO: checking for int64_t" >&5
6779     echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
6780     if test "${ac_cv_type_int64_t+set}" = set; then
6781     echo $ECHO_N "(cached) $ECHO_C" >&6
6782     else
6783     cat >conftest.$ac_ext <<_ACEOF
6784     /* confdefs.h. */
6785     _ACEOF
6786     cat confdefs.h >>conftest.$ac_ext
6787     cat >>conftest.$ac_ext <<_ACEOF
6788     /* end confdefs.h. */
6789     $ac_includes_default
6790     int
6791     main ()
6792     {
6793     if ((int64_t *) 0)
6794     return 0;
6795     if (sizeof (int64_t))
6796     return 0;
6797     ;
6798     return 0;
6799     }
6800     _ACEOF
6801     rm -f conftest.$ac_objext
6802     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6803     (eval $ac_compile) 2>conftest.er1
6804     ac_status=$?
6805     grep -v '^ *+' conftest.er1 >conftest.err
6806     rm -f conftest.er1
6807     cat conftest.err >&5
6808     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6809     (exit $ac_status); } &&
6810     { ac_try='test -z "$ac_c_werror_flag"
6811     || test ! -s conftest.err'
6812     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6813     (eval $ac_try) 2>&5
6814     ac_status=$?
6815     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6816     (exit $ac_status); }; } &&
6817     { ac_try='test -s conftest.$ac_objext'
6818     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6819     (eval $ac_try) 2>&5
6820     ac_status=$?
6821     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6822     (exit $ac_status); }; }; then
6823     ac_cv_type_int64_t=yes
6824     else
6825     echo "$as_me: failed program was:" >&5
6826     sed 's/^/| /' conftest.$ac_ext >&5
6827    
6828     ac_cv_type_int64_t=no
6829     fi
6830     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6831     fi
6832     echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
6833     echo "${ECHO_T}$ac_cv_type_int64_t" >&6
6834     if test $ac_cv_type_int64_t = yes; then
6835     :
6836     else
6837    
6838     cat >>confdefs.h <<_ACEOF
6839     #define int64_t long long
6840     _ACEOF
6841    
6842     fi
6843    
6844     else
6845     { { echo "$as_me:$LINENO: error: Your system doesn't appear to have 64 bit integers. Aborting." >&5
6846     echo "$as_me: error: Your system doesn't appear to have 64 bit integers. Aborting." >&2;}
6847     { (exit 1); exit 1; }; }
6848     fi
6849    
6850     echo "$as_me:$LINENO: checking for u_int32_t" >&5
6851     echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
6852     if test "${ac_cv_type_u_int32_t+set}" = set; then
6853     echo $ECHO_N "(cached) $ECHO_C" >&6
6854     else
6855     cat >conftest.$ac_ext <<_ACEOF
6856     /* confdefs.h. */
6857     _ACEOF
6858     cat confdefs.h >>conftest.$ac_ext
6859     cat >>conftest.$ac_ext <<_ACEOF
6860     /* end confdefs.h. */
6861     $ac_includes_default
6862     int
6863     main ()
6864     {
6865     if ((u_int32_t *) 0)
6866     return 0;
6867     if (sizeof (u_int32_t))
6868     return 0;
6869     ;
6870     return 0;
6871     }
6872     _ACEOF
6873     rm -f conftest.$ac_objext
6874     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6875     (eval $ac_compile) 2>conftest.er1
6876     ac_status=$?
6877     grep -v '^ *+' conftest.er1 >conftest.err
6878     rm -f conftest.er1
6879     cat conftest.err >&5
6880     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6881     (exit $ac_status); } &&
6882     { ac_try='test -z "$ac_c_werror_flag"
6883     || test ! -s conftest.err'
6884     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6885     (eval $ac_try) 2>&5
6886     ac_status=$?
6887     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6888     (exit $ac_status); }; } &&
6889     { ac_try='test -s conftest.$ac_objext'
6890     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6891     (eval $ac_try) 2>&5
6892     ac_status=$?
6893     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6894     (exit $ac_status); }; }; then
6895     ac_cv_type_u_int32_t=yes
6896     else
6897     echo "$as_me: failed program was:" >&5
6898     sed 's/^/| /' conftest.$ac_ext >&5
6899    
6900     ac_cv_type_u_int32_t=no
6901     fi
6902     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6903     fi
6904     echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
6905     echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
6906     if test $ac_cv_type_u_int32_t = yes; then
6907     :
6908     else
6909    
6910     echo "$as_me:$LINENO: checking for uint32_t" >&5
6911     echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
6912     if test "${ac_cv_type_uint32_t+set}" = set; then
6913     echo $ECHO_N "(cached) $ECHO_C" >&6
6914     else
6915     cat >conftest.$ac_ext <<_ACEOF
6916     /* confdefs.h. */
6917     _ACEOF
6918     cat confdefs.h >>conftest.$ac_ext
6919     cat >>conftest.$ac_ext <<_ACEOF
6920     /* end confdefs.h. */
6921     $ac_includes_default
6922     int
6923     main ()
6924     {
6925     if ((uint32_t *) 0)
6926     return 0;
6927     if (sizeof (uint32_t))
6928     return 0;
6929     ;
6930     return 0;
6931     }
6932     _ACEOF
6933     rm -f conftest.$ac_objext
6934     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6935     (eval $ac_compile) 2>conftest.er1
6936     ac_status=$?
6937     grep -v '^ *+' conftest.er1 >conftest.err
6938     rm -f conftest.er1
6939     cat conftest.err >&5
6940     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6941     (exit $ac_status); } &&
6942     { ac_try='test -z "$ac_c_werror_flag"
6943     || test ! -s conftest.err'
6944     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6945     (eval $ac_try) 2>&5
6946     ac_status=$?
6947     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6948     (exit $ac_status); }; } &&
6949     { ac_try='test -s conftest.$ac_objext'
6950     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6951     (eval $ac_try) 2>&5
6952     ac_status=$?
6953     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6954     (exit $ac_status); }; }; then
6955     ac_cv_type_uint32_t=yes
6956     else
6957     echo "$as_me: failed program was:" >&5
6958     sed 's/^/| /' conftest.$ac_ext >&5
6959    
6960     ac_cv_type_uint32_t=no
6961     fi
6962     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6963     fi
6964     echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
6965     echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
6966     if test $ac_cv_type_uint32_t = yes; then
6967    
6968    
6969     cat >>confdefs.h <<\_ACEOF
6970     #define u_int32_t uint32_t
6971     _ACEOF
6972    
6973    
6974     else
6975    
6976     { echo "$as_me:$LINENO: WARNING: system has no u_int32_t or uint32_t, default to unsigned long int" >&5
6977     echo "$as_me: WARNING: system has no u_int32_t or uint32_t, default to unsigned long int" >&2;}
6978    
6979     cat >>confdefs.h <<\_ACEOF
6980     #define u_int32_t unsigned long int
6981     _ACEOF
6982    
6983    
6984     fi
6985    
6986    
6987     fi
6988    
6989    
6990     echo "$as_me:$LINENO: checking for u_int16_t" >&5
6991     echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6
6992     if test "${ac_cv_type_u_int16_t+set}" = set; then
6993     echo $ECHO_N "(cached) $ECHO_C" >&6
6994     else
6995     cat >conftest.$ac_ext <<_ACEOF
6996     /* confdefs.h. */
6997     _ACEOF
6998     cat confdefs.h >>conftest.$ac_ext
6999     cat >>conftest.$ac_ext <<_ACEOF
7000     /* end confdefs.h. */
7001     $ac_includes_default
7002     int
7003     main ()
7004     {
7005     if ((u_int16_t *) 0)
7006     return 0;
7007     if (sizeof (u_int16_t))
7008     return 0;
7009     ;
7010     return 0;
7011     }
7012     _ACEOF
7013     rm -f conftest.$ac_objext
7014     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7015     (eval $ac_compile) 2>conftest.er1
7016     ac_status=$?
7017     grep -v '^ *+' conftest.er1 >conftest.err
7018     rm -f conftest.er1
7019     cat conftest.err >&5
7020     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7021     (exit $ac_status); } &&
7022     { ac_try='test -z "$ac_c_werror_flag"
7023     || test ! -s conftest.err'
7024     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7025     (eval $ac_try) 2>&5
7026     ac_status=$?
7027     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7028     (exit $ac_status); }; } &&
7029     { ac_try='test -s conftest.$ac_objext'
7030     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7031     (eval $ac_try) 2>&5
7032     ac_status=$?
7033     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7034     (exit $ac_status); }; }; then
7035     ac_cv_type_u_int16_t=yes
7036     else
7037     echo "$as_me: failed program was:" >&5
7038     sed 's/^/| /' conftest.$ac_ext >&5
7039    
7040     ac_cv_type_u_int16_t=no
7041     fi
7042     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7043     fi
7044     echo "$as_me:$LINENO: result: $ac_cv_type_u_int16_t" >&5
7045     echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6
7046     if test $ac_cv_type_u_int16_t = yes; then
7047     :
7048     else
7049    
7050     echo "$as_me:$LINENO: checking for uint16_t" >&5
7051     echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6
7052     if test "${ac_cv_type_uint16_t+set}" = set; then
7053     echo $ECHO_N "(cached) $ECHO_C" >&6
7054     else
7055     cat >conftest.$ac_ext <<_ACEOF
7056     /* confdefs.h. */
7057     _ACEOF
7058     cat confdefs.h >>conftest.$ac_ext
7059     cat >>conftest.$ac_ext <<_ACEOF
7060     /* end confdefs.h. */
7061     $ac_includes_default
7062     int
7063     main ()
7064     {
7065     if ((uint16_t *) 0)
7066     return 0;
7067     if (sizeof (uint16_t))
7068     return 0;
7069     ;
7070     return 0;
7071     }
7072     _ACEOF
7073     rm -f conftest.$ac_objext
7074     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7075     (eval $ac_compile) 2>conftest.er1
7076     ac_status=$?
7077     grep -v '^ *+' conftest.er1 >conftest.err
7078     rm -f conftest.er1
7079     cat conftest.err >&5
7080     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7081     (exit $ac_status); } &&
7082     { ac_try='test -z "$ac_c_werror_flag"
7083     || test ! -s conftest.err'
7084     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7085     (eval $ac_try) 2>&5
7086     ac_status=$?
7087     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7088     (exit $ac_status); }; } &&
7089     { ac_try='test -s conftest.$ac_objext'
7090     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7091     (eval $ac_try) 2>&5
7092     ac_status=$?
7093     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7094     (exit $ac_status); }; }; then
7095     ac_cv_type_uint16_t=yes
7096     else
7097     echo "$as_me: failed program was:" >&5
7098     sed 's/^/| /' conftest.$ac_ext >&5
7099    
7100     ac_cv_type_uint16_t=no
7101     fi
7102     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7103     fi
7104     echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
7105     echo "${ECHO_T}$ac_cv_type_uint16_t" >&6
7106     if test $ac_cv_type_uint16_t = yes; then
7107    
7108    
7109     cat >>confdefs.h <<\_ACEOF
7110     #define u_int16_t uint16_t
7111     _ACEOF
7112    
7113    
7114     else
7115    
7116     { echo "$as_me:$LINENO: WARNING: system has no u_int16_t or uint16_t, default to unsigned short int" >&5
7117     echo "$as_me: WARNING: system has no u_int16_t or uint16_t, default to unsigned short int" >&2;}
7118    
7119     cat >>confdefs.h <<\_ACEOF
7120     #define u_int16_t unsigned short int
7121     _ACEOF
7122    
7123    
7124     fi
7125    
7126    
7127     fi
7128    
7129    
7130     echo "$as_me:$LINENO: checking for in_port_t" >&5
7131     echo $ECHO_N "checking for in_port_t... $ECHO_C" >&6
7132     if test "${ac_cv_type_in_port_t+set}" = set; then
7133     echo $ECHO_N "(cached) $ECHO_C" >&6
7134     else
7135     cat >conftest.$ac_ext <<_ACEOF
7136     /* confdefs.h. */
7137     _ACEOF
7138     cat confdefs.h >>conftest.$ac_ext
7139     cat >>conftest.$ac_ext <<_ACEOF
7140     /* end confdefs.h. */
7141     #include <sys/types.h>
7142     #include <netinet/in.h>
7143    
7144     int
7145     main ()
7146     {
7147     if ((in_port_t *) 0)
7148     return 0;
7149     if (sizeof (in_port_t))
7150     return 0;
7151     ;
7152     return 0;
7153     }
7154     _ACEOF
7155     rm -f conftest.$ac_objext
7156     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7157     (eval $ac_compile) 2>conftest.er1
7158     ac_status=$?
7159     grep -v '^ *+' conftest.er1 >conftest.err
7160     rm -f conftest.er1
7161     cat conftest.err >&5
7162     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7163     (exit $ac_status); } &&
7164     { ac_try='test -z "$ac_c_werror_flag"
7165     || test ! -s conftest.err'
7166     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7167     (eval $ac_try) 2>&5
7168     ac_status=$?
7169     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7170     (exit $ac_status); }; } &&
7171     { ac_try='test -s conftest.$ac_objext'
7172     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7173     (eval $ac_try) 2>&5
7174     ac_status=$?
7175     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7176     (exit $ac_status); }; }; then
7177     ac_cv_type_in_port_t=yes
7178     else
7179     echo "$as_me: failed program was:" >&5
7180     sed 's/^/| /' conftest.$ac_ext >&5
7181    
7182     ac_cv_type_in_port_t=no
7183     fi
7184     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7185     fi
7186     echo "$as_me:$LINENO: result: $ac_cv_type_in_port_t" >&5
7187     echo "${ECHO_T}$ac_cv_type_in_port_t" >&6
7188     if test $ac_cv_type_in_port_t = yes; then
7189     :
7190     else
7191    
7192     cat >>confdefs.h <<\_ACEOF
7193     #define in_port_t u_int16_t
7194     _ACEOF
7195    
7196     fi
7197    
7198    
7199     echo "$as_me:$LINENO: checking for sa_family_t" >&5
7200     echo $ECHO_N "checking for sa_family_t... $ECHO_C" >&6
7201     if test "${ac_cv_type_sa_family_t+set}" = set; then
7202     echo $ECHO_N "(cached) $ECHO_C" >&6
7203     else
7204     cat >conftest.$ac_ext <<_ACEOF
7205     /* confdefs.h. */
7206     _ACEOF
7207     cat confdefs.h >>conftest.$ac_ext
7208     cat >>conftest.$ac_ext <<_ACEOF
7209     /* end confdefs.h. */
7210     #include <sys/types.h>
7211     #include <sys/socket.h>
7212    
7213     int
7214     main ()
7215     {
7216     if ((sa_family_t *) 0)
7217     return 0;
7218     if (sizeof (sa_family_t))
7219     return 0;
7220     ;
7221     return 0;
7222     }
7223     _ACEOF
7224     rm -f conftest.$ac_objext
7225     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7226     (eval $ac_compile) 2>conftest.er1
7227     ac_status=$?
7228     grep -v '^ *+' conftest.er1 >conftest.err
7229     rm -f conftest.er1
7230     cat conftest.err >&5
7231     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7232     (exit $ac_status); } &&
7233     { ac_try='test -z "$ac_c_werror_flag"
7234     || test ! -s conftest.err'
7235     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7236     (eval $ac_try) 2>&5
7237     ac_status=$?
7238     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7239     (exit $ac_status); }; } &&
7240     { ac_try='test -s conftest.$ac_objext'
7241     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7242     (eval $ac_try) 2>&5
7243     ac_status=$?
7244     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7245     (exit $ac_status); }; }; then
7246     ac_cv_type_sa_family_t=yes
7247     else
7248     echo "$as_me: failed program was:" >&5
7249     sed 's/^/| /' conftest.$ac_ext >&5
7250    
7251     ac_cv_type_sa_family_t=no
7252     fi
7253     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7254     fi
7255     echo "$as_me:$LINENO: result: $ac_cv_type_sa_family_t" >&5
7256     echo "${ECHO_T}$ac_cv_type_sa_family_t" >&6
7257     if test $ac_cv_type_sa_family_t = yes; then
7258     :
7259     else
7260    
7261     cat >>confdefs.h <<\_ACEOF
7262     #define sa_family_t u_int16_t
7263     _ACEOF
7264    
7265     fi
7266    
7267    
7268    
7269    
7270    
7271    
7272    
7273    
7274    
7275    
7276    
7277     for ac_func in socketpair basename mmap snprintf vsnprintf lrand48 srand48 strtok_r usleep
7278     do
7279     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7280     echo "$as_me:$LINENO: checking for $ac_func" >&5
7281     echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7282     if eval "test \"\${$as_ac_var+set}\" = set"; then
7283     echo $ECHO_N "(cached) $ECHO_C" >&6
7284     else
7285     cat >conftest.$ac_ext <<_ACEOF
7286     /* confdefs.h. */
7287     _ACEOF
7288     cat confdefs.h >>conftest.$ac_ext
7289     cat >>conftest.$ac_ext <<_ACEOF
7290     /* end confdefs.h. */
7291     /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7292     For example, HP-UX 11i <limits.h> declares gettimeofday. */
7293     #define $ac_func innocuous_$ac_func
7294    
7295     /* System header to define __stub macros and hopefully few prototypes,
7296     which can conflict with char $ac_func (); below.
7297     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7298     <limits.h> exists even on freestanding compilers. */
7299    
7300     #ifdef __STDC__
7301     # include <limits.h>
7302     #else
7303     # include <assert.h>
7304     #endif
7305    
7306     #undef $ac_func
7307    
7308     /* Override any gcc2 internal prototype to avoid an error. */
7309     #ifdef __cplusplus
7310     extern "C"
7311     {
7312     #endif
7313     /* We use char because int might match the return type of a gcc2
7314     builtin and then its argument prototype would still apply. */
7315     char $ac_func ();
7316     /* The GNU C library defines this for functions which it implements
7317     to always fail with ENOSYS. Some functions are actually named
7318     something starting with __ and the normal name is an alias. */
7319     #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7320     choke me
7321     #else
7322     char (*f) () = $ac_func;
7323     #endif
7324     #ifdef __cplusplus
7325     }
7326     #endif
7327    
7328     int
7329     main ()
7330     {
7331     return f != $ac_func;
7332     ;
7333     return 0;
7334     }
7335     _ACEOF
7336     rm -f conftest.$ac_objext conftest$ac_exeext
7337     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7338     (eval $ac_link) 2>conftest.er1
7339     ac_status=$?
7340     grep -v '^ *+' conftest.er1 >conftest.err
7341     rm -f conftest.er1
7342     cat conftest.err >&5
7343     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7344     (exit $ac_status); } &&
7345     { ac_try='test -z "$ac_c_werror_flag"
7346     || test ! -s conftest.err'
7347     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7348     (eval $ac_try) 2>&5
7349     ac_status=$?
7350     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7351     (exit $ac_status); }; } &&
7352     { ac_try='test -s conftest$ac_exeext'
7353     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7354     (eval $ac_try) 2>&5
7355     ac_status=$?
7356     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7357     (exit $ac_status); }; }; then
7358     eval "$as_ac_var=yes"
7359     else
7360     echo "$as_me: failed program was:" >&5
7361     sed 's/^/| /' conftest.$ac_ext >&5
7362    
7363     eval "$as_ac_var=no"
7364     fi
7365     rm -f conftest.err conftest.$ac_objext \
7366     conftest$ac_exeext conftest.$ac_ext
7367     fi
7368     echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7369     echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7370     if test `eval echo '${'$as_ac_var'}'` = yes; then
7371     cat >>confdefs.h <<_ACEOF
7372     #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7373     _ACEOF
7374    
7375     fi
7376     done
7377    
7378    
7379     if test "$ac_cv_func_snprintf" = no -o "$ac_cv_func_vsnprintf" = no; then
7380     SNPRINTF_C="snprintf.c"
7381     fi
7382    
7383    
7384    
7385    
7386     echo "$as_me:$LINENO: checking for OpenSSL" >&5
7387     echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6
7388     # Check whether --enable-openssl or --disable-openssl was given.
7389     if test "${enable_openssl+set}" = set; then
7390     enableval="$enable_openssl"
7391     cf_enable_openssl=$enableval
7392     else
7393     cf_enable_openssl="auto"
7394     fi;
7395    
7396     if test "$cf_enable_openssl" != "no" ; then
7397     cf_openssl_basedir=""
7398     if test "$cf_enable_openssl" != "auto" &&
7399     test "$cf_enable_openssl" != "yes" ; then
7400     cf_openssl_basedir="`echo ${cf_enable_openssl} | sed 's/\/$//'`"
7401     else
7402     for dirs in /usr/local/ssl /usr/pkg /usr/local \
7403     /usr/local/openssl /usr/sfw; do
7404     if test -f "${dirs}/include/openssl/opensslv.h" ; then
7405     cf_openssl_basedir="${dirs}"
7406     break
7407     fi
7408     done
7409     unset dirs
7410     fi
7411     if test ! -z "$cf_openssl_basedir"; then
7412     if test -f "${cf_openssl_basedir}/include/openssl/opensslv.h" ; then
7413     SSL_INCLUDES="-I${cf_openssl_basedir}/include"
7414     SSL_LIBS="-L${cf_openssl_basedir}/lib"
7415     else
7416     cf_openssl_basedir=""
7417     fi
7418     else
7419     if test -f "/usr/include/openssl/opensslv.h" ; then
7420     cf_openssl_basedir="/usr"
7421     fi
7422     fi
7423    
7424     if test ! -z "$cf_openssl_basedir"; then
7425     echo "$as_me:$LINENO: result: $cf_openssl_basedir" >&5
7426     echo "${ECHO_T}$cf_openssl_basedir" >&6
7427     cf_enable_openssl="yes"
7428     else
7429     echo "$as_me:$LINENO: result: not found. Specify a correct path?" >&5
7430     echo "${ECHO_T}not found. Specify a correct path?" >&6
7431     cf_enable_openssl="no"
7432     fi
7433     unset cf_openssl_basedir
7434     else
7435     echo "$as_me:$LINENO: result: disabled" >&5
7436     echo "${ECHO_T}disabled" >&6
7437     fi
7438    
7439     save_CPPFLAGS="$CPPFLAGS"
7440     CPPFLAGS="$CPPFLAGS $SSL_INCLUDES"
7441     save_LIBS="$LIBS"
7442     LIBS="$LIBS $SSL_LIBS"
7443     if test "$cf_enable_openssl" != no; then
7444     echo "$as_me:$LINENO: checking for OpenSSL 0.9.6 or above" >&5
7445     echo $ECHO_N "checking for OpenSSL 0.9.6 or above... $ECHO_C" >&6
7446     if test "$cross_compiling" = yes; then
7447     cf_openssl_version_ok=no
7448     else
7449     cat >conftest.$ac_ext <<_ACEOF
7450     /* confdefs.h. */
7451     _ACEOF
7452     cat confdefs.h >>conftest.$ac_ext
7453     cat >>conftest.$ac_ext <<_ACEOF
7454     /* end confdefs.h. */
7455     #include <openssl/opensslv.h>
7456     #include <stdlib.h>
7457     int
7458     main ()
7459     {
7460     if ( (OPENSSL_VERSION_NUMBER & 0x00906000) == 0x00906000)
7461     exit(0); else exit(1);
7462     ;
7463     return 0;
7464     }
7465     _ACEOF
7466     rm -f conftest$ac_exeext
7467     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7468     (eval $ac_link) 2>&5
7469     ac_status=$?
7470     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7471     (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7472     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7473     (eval $ac_try) 2>&5
7474     ac_status=$?
7475     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7476     (exit $ac_status); }; }; then
7477     cf_openssl_version_ok=yes
7478     else
7479     echo "$as_me: program exited with status $ac_status" >&5
7480     echo "$as_me: failed program was:" >&5
7481     sed 's/^/| /' conftest.$ac_ext >&5
7482    
7483     ( exit $ac_status )
7484     cf_openssl_version_ok=no
7485     fi
7486     rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7487     fi
7488    
7489     if test "$cf_openssl_version_ok" = yes; then
7490     echo "$as_me:$LINENO: result: found" >&5
7491     echo "${ECHO_T}found" >&6
7492    
7493     ENCSPEED=encspeed
7494    
7495    
7496     CPPFLAGS="$CPPFLAGS $SSL_LIBS"
7497    
7498     echo "$as_me:$LINENO: checking for RSA_free in -lcrypto" >&5
7499     echo $ECHO_N "checking for RSA_free in -lcrypto... $ECHO_C" >&6
7500     if test "${ac_cv_lib_crypto_RSA_free+set}" = set; then
7501     echo $ECHO_N "(cached) $ECHO_C" >&6
7502     else
7503     ac_check_lib_save_LIBS=$LIBS
7504     LIBS="-lcrypto $LIBS"
7505     cat >conftest.$ac_ext <<_ACEOF
7506     /* confdefs.h. */
7507     _ACEOF
7508     cat confdefs.h >>conftest.$ac_ext
7509     cat >>conftest.$ac_ext <<_ACEOF
7510     /* end confdefs.h. */
7511    
7512     /* Override any gcc2 internal prototype to avoid an error. */
7513     #ifdef __cplusplus
7514     extern "C"
7515     #endif
7516     /* We use char because int might match the return type of a gcc2
7517     builtin and then its argument prototype would still apply. */
7518     char RSA_free ();
7519     int
7520     main ()
7521     {
7522     RSA_free ();
7523     ;
7524     return 0;
7525     }
7526     _ACEOF
7527     rm -f conftest.$ac_objext conftest$ac_exeext
7528     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7529     (eval $ac_link) 2>conftest.er1
7530     ac_status=$?
7531     grep -v '^ *+' conftest.er1 >conftest.err
7532     rm -f conftest.er1
7533     cat conftest.err >&5
7534     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7535     (exit $ac_status); } &&
7536     { ac_try='test -z "$ac_c_werror_flag"
7537     || test ! -s conftest.err'
7538     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7539     (eval $ac_try) 2>&5
7540     ac_status=$?
7541     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7542     (exit $ac_status); }; } &&
7543     { ac_try='test -s conftest$ac_exeext'
7544     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7545     (eval $ac_try) 2>&5
7546     ac_status=$?
7547     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7548     (exit $ac_status); }; }; then
7549     ac_cv_lib_crypto_RSA_free=yes
7550     else
7551     echo "$as_me: failed program was:" >&5
7552     sed 's/^/| /' conftest.$ac_ext >&5
7553    
7554     ac_cv_lib_crypto_RSA_free=no
7555     fi
7556     rm -f conftest.err conftest.$ac_objext \
7557     conftest$ac_exeext conftest.$ac_ext
7558     LIBS=$ac_check_lib_save_LIBS
7559     fi
7560     echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_RSA_free" >&5
7561     echo "${ECHO_T}$ac_cv_lib_crypto_RSA_free" >&6
7562     if test $ac_cv_lib_crypto_RSA_free = yes; then
7563     cat >>confdefs.h <<_ACEOF
7564     #define HAVE_LIBCRYPTO 1
7565     _ACEOF
7566    
7567     LIBS="-lcrypto $LIBS"
7568    
7569     fi
7570    
7571     if test "$ac_cv_lib_crypto_RSA_free" = yes; then
7572     LIBS="$LIBS -lcrypto"
7573     cf_openssl_ciphers=''
7574    
7575     for ac_func in EVP_bf_cfb
7576     do
7577     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7578     echo "$as_me:$LINENO: checking for $ac_func" >&5
7579     echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7580     if eval "test \"\${$as_ac_var+set}\" = set"; then
7581     echo $ECHO_N "(cached) $ECHO_C" >&6
7582     else
7583     cat >conftest.$ac_ext <<_ACEOF
7584     /* confdefs.h. */
7585     _ACEOF
7586     cat confdefs.h >>conftest.$ac_ext
7587     cat >>conftest.$ac_ext <<_ACEOF
7588     /* end confdefs.h. */
7589     /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7590     For example, HP-UX 11i <limits.h> declares gettimeofday. */
7591     #define $ac_func innocuous_$ac_func
7592    
7593     /* System header to define __stub macros and hopefully few prototypes,
7594     which can conflict with char $ac_func (); below.
7595     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7596     <limits.h> exists even on freestanding compilers. */
7597    
7598     #ifdef __STDC__
7599     # include <limits.h>
7600     #else
7601     # include <assert.h>
7602     #endif
7603    
7604     #undef $ac_func
7605    
7606     /* Override any gcc2 internal prototype to avoid an error. */
7607     #ifdef __cplusplus
7608     extern "C"
7609     {
7610     #endif
7611     /* We use char because int might match the return type of a gcc2
7612     builtin and then its argument prototype would still apply. */
7613     char $ac_func ();
7614     /* The GNU C library defines this for functions which it implements
7615     to always fail with ENOSYS. Some functions are actually named
7616     something starting with __ and the normal name is an alias. */
7617     #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7618     choke me
7619     #else
7620     char (*f) () = $ac_func;
7621     #endif
7622     #ifdef __cplusplus
7623     }
7624     #endif
7625    
7626     int
7627     main ()
7628     {
7629     return f != $ac_func;
7630     ;
7631     return 0;
7632     }
7633     _ACEOF
7634     rm -f conftest.$ac_objext conftest$ac_exeext
7635     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7636     (eval $ac_link) 2>conftest.er1
7637     ac_status=$?
7638     grep -v '^ *+' conftest.er1 >conftest.err
7639     rm -f conftest.er1
7640     cat conftest.err >&5
7641     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7642     (exit $ac_status); } &&
7643     { ac_try='test -z "$ac_c_werror_flag"
7644     || test ! -s conftest.err'
7645     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7646     (eval $ac_try) 2>&5
7647     ac_status=$?
7648     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7649     (exit $ac_status); }; } &&
7650     { ac_try='test -s conftest$ac_exeext'
7651     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7652     (eval $ac_try) 2>&5
7653     ac_status=$?
7654     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7655     (exit $ac_status); }; }; then
7656     eval "$as_ac_var=yes"
7657     else
7658     echo "$as_me: failed program was:" >&5
7659     sed 's/^/| /' conftest.$ac_ext >&5
7660    
7661     eval "$as_ac_var=no"
7662     fi
7663     rm -f conftest.err conftest.$ac_objext \
7664     conftest$ac_exeext conftest.$ac_ext
7665     fi
7666     echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7667     echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7668     if test `eval echo '${'$as_ac_var'}'` = yes; then
7669     cat >>confdefs.h <<_ACEOF
7670     #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7671     _ACEOF
7672     cf_openssl_ciphers="${cf_openssl_ciphers}BF/168 BF/128 "
7673     fi
7674     done
7675    
7676    
7677     for ac_func in EVP_cast5_cfb
7678     do
7679     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7680     echo "$as_me:$LINENO: checking for $ac_func" >&5
7681     echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7682     if eval "test \"\${$as_ac_var+set}\" = set"; then
7683     echo $ECHO_N "(cached) $ECHO_C" >&6
7684     else
7685     cat >conftest.$ac_ext <<_ACEOF
7686     /* confdefs.h. */
7687     _ACEOF
7688     cat confdefs.h >>conftest.$ac_ext
7689     cat >>conftest.$ac_ext <<_ACEOF
7690     /* end confdefs.h. */
7691     /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7692     For example, HP-UX 11i <limits.h> declares gettimeofday. */
7693     #define $ac_func innocuous_$ac_func
7694    
7695     /* System header to define __stub macros and hopefully few prototypes,
7696     which can conflict with char $ac_func (); below.
7697     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7698     <limits.h> exists even on freestanding compilers. */
7699    
7700     #ifdef __STDC__
7701     # include <limits.h>
7702     #else
7703     # include <assert.h>
7704     #endif
7705    
7706     #undef $ac_func
7707    
7708     /* Override any gcc2 internal prototype to avoid an error. */
7709     #ifdef __cplusplus
7710     extern "C"
7711     {
7712     #endif
7713     /* We use char because int might match the return type of a gcc2
7714     builtin and then its argument prototype would still apply. */
7715     char $ac_func ();
7716     /* The GNU C library defines this for functions which it implements
7717     to always fail with ENOSYS. Some functions are actually named
7718     something starting with __ and the normal name is an alias. */
7719     #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7720     choke me
7721     #else
7722     char (*f) () = $ac_func;
7723     #endif
7724     #ifdef __cplusplus
7725     }
7726     #endif
7727    
7728     int
7729     main ()
7730     {
7731     return f != $ac_func;
7732     ;
7733     return 0;
7734     }
7735     _ACEOF
7736     rm -f conftest.$ac_objext conftest$ac_exeext
7737     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7738     (eval $ac_link) 2>conftest.er1
7739     ac_status=$?
7740     grep -v '^ *+' conftest.er1 >conftest.err
7741     rm -f conftest.er1
7742     cat conftest.err >&5
7743     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7744     (exit $ac_status); } &&
7745     { ac_try='test -z "$ac_c_werror_flag"
7746     || test ! -s conftest.err'
7747     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7748     (eval $ac_try) 2>&5
7749     ac_status=$?
7750     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7751     (exit $ac_status); }; } &&
7752     { ac_try='test -s conftest$ac_exeext'
7753     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7754     (eval $ac_try) 2>&5
7755     ac_status=$?
7756     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7757     (exit $ac_status); }; }; then
7758     eval "$as_ac_var=yes"
7759     else
7760     echo "$as_me: failed program was:" >&5
7761     sed 's/^/| /' conftest.$ac_ext >&5
7762    
7763     eval "$as_ac_var=no"
7764     fi
7765     rm -f conftest.err conftest.$ac_objext \
7766     conftest$ac_exeext conftest.$ac_ext
7767     fi
7768     echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7769     echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7770     if test `eval echo '${'$as_ac_var'}'` = yes; then
7771     cat >>confdefs.h <<_ACEOF
7772     #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7773     _ACEOF
7774     cf_openssl_ciphers="${cf_openssl_ciphers}CAST/128 "
7775     fi
7776     done
7777    
7778    
7779     for ac_func in EVP_idea_cfb
7780     do
7781     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7782     echo "$as_me:$LINENO: checking for $ac_func" >&5
7783     echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7784     if eval "test \"\${$as_ac_var+set}\" = set"; then
7785     echo $ECHO_N "(cached) $ECHO_C" >&6
7786     else
7787     cat >conftest.$ac_ext <<_ACEOF
7788     /* confdefs.h. */
7789     _ACEOF
7790     cat confdefs.h >>conftest.$ac_ext
7791     cat >>conftest.$ac_ext <<_ACEOF
7792     /* end confdefs.h. */
7793     /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7794     For example, HP-UX 11i <limits.h> declares gettimeofday. */
7795     #define $ac_func innocuous_$ac_func
7796    
7797     /* System header to define __stub macros and hopefully few prototypes,
7798     which can conflict with char $ac_func (); below.
7799     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7800     <limits.h> exists even on freestanding compilers. */
7801    
7802     #ifdef __STDC__
7803     # include <limits.h>
7804     #else
7805     # include <assert.h>
7806     #endif
7807    
7808     #undef $ac_func
7809    
7810     /* Override any gcc2 internal prototype to avoid an error. */
7811     #ifdef __cplusplus
7812     extern "C"
7813     {
7814     #endif
7815     /* We use char because int might match the return type of a gcc2
7816     builtin and then its argument prototype would still apply. */
7817     char $ac_func ();
7818     /* The GNU C library defines this for functions which it implements
7819     to always fail with ENOSYS. Some functions are actually named
7820     something starting with __ and the normal name is an alias. */
7821     #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7822     choke me
7823     #else
7824     char (*f) () = $ac_func;
7825     #endif
7826     #ifdef __cplusplus
7827     }
7828     #endif
7829    
7830     int
7831     main ()
7832     {
7833     return f != $ac_func;
7834     ;
7835     return 0;
7836     }
7837     _ACEOF
7838     rm -f conftest.$ac_objext conftest$ac_exeext
7839     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7840     (eval $ac_link) 2>conftest.er1
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
7846     (exit $ac_status); } &&
7847     { ac_try='test -z "$ac_c_werror_flag"
7848     || test ! -s conftest.err'
7849     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7850     (eval $ac_try) 2>&5
7851     ac_status=$?
7852     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7853     (exit $ac_status); }; } &&
7854     { ac_try='test -s conftest$ac_exeext'
7855     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7856     (eval $ac_try) 2>&5
7857     ac_status=$?
7858     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7859     (exit $ac_status); }; }; then
7860     eval "$as_ac_var=yes"
7861     else
7862     echo "$as_me: failed program was:" >&5
7863     sed 's/^/| /' conftest.$ac_ext >&5
7864    
7865     eval "$as_ac_var=no"
7866     fi
7867     rm -f conftest.err conftest.$ac_objext \
7868     conftest$ac_exeext conftest.$ac_ext
7869     fi
7870     echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7871     echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7872     if test `eval echo '${'$as_ac_var'}'` = yes; then
7873     cat >>confdefs.h <<_ACEOF
7874     #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7875     _ACEOF
7876     cf_openssl_ciphers="${cf_openssl_ciphers}IDEA/128 "
7877     fi
7878     done
7879    
7880    
7881     for ac_func in EVP_rc5_32_12_16_cfb
7882     do
7883     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7884     echo "$as_me:$LINENO: checking for $ac_func" >&5
7885     echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7886     if eval "test \"\${$as_ac_var+set}\" = set"; then
7887     echo $ECHO_N "(cached) $ECHO_C" >&6
7888     else
7889     cat >conftest.$ac_ext <<_ACEOF
7890     /* confdefs.h. */
7891     _ACEOF
7892     cat confdefs.h >>conftest.$ac_ext
7893     cat >>conftest.$ac_ext <<_ACEOF
7894     /* end confdefs.h. */
7895     /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7896     For example, HP-UX 11i <limits.h> declares gettimeofday. */
7897     #define $ac_func innocuous_$ac_func
7898    
7899     /* System header to define __stub macros and hopefully few prototypes,
7900     which can conflict with char $ac_func (); below.
7901     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7902     <limits.h> exists even on freestanding compilers. */
7903    
7904     #ifdef __STDC__
7905     # include <limits.h>
7906     #else
7907     # include <assert.h>
7908     #endif
7909    
7910     #undef $ac_func
7911    
7912     /* Override any gcc2 internal prototype to avoid an error. */
7913     #ifdef __cplusplus
7914     extern "C"
7915     {
7916     #endif
7917     /* We use char because int might match the return type of a gcc2
7918     builtin and then its argument prototype would still apply. */
7919     char $ac_func ();
7920     /* The GNU C library defines this for functions which it implements
7921     to always fail with ENOSYS. Some functions are actually named
7922     something starting with __ and the normal name is an alias. */
7923     #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7924     choke me
7925     #else
7926     char (*f) () = $ac_func;
7927     #endif
7928     #ifdef __cplusplus
7929     }
7930     #endif
7931    
7932     int
7933     main ()
7934     {
7935     return f != $ac_func;
7936     ;
7937     return 0;
7938     }
7939     _ACEOF
7940     rm -f conftest.$ac_objext conftest$ac_exeext
7941     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7942     (eval $ac_link) 2>conftest.er1
7943     ac_status=$?
7944     grep -v '^ *+' conftest.er1 >conftest.err
7945     rm -f conftest.er1
7946     cat conftest.err >&5
7947     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7948     (exit $ac_status); } &&
7949     { ac_try='test -z "$ac_c_werror_flag"
7950     || test ! -s conftest.err'
7951     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7952     (eval $ac_try) 2>&5
7953     ac_status=$?
7954     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7955     (exit $ac_status); }; } &&
7956     { ac_try='test -s conftest$ac_exeext'
7957     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7958     (eval $ac_try) 2>&5
7959     ac_status=$?
7960     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7961     (exit $ac_status); }; }; then
7962     eval "$as_ac_var=yes"
7963     else
7964     echo "$as_me: failed program was:" >&5
7965     sed 's/^/| /' conftest.$ac_ext >&5
7966    
7967     eval "$as_ac_var=no"
7968     fi
7969     rm -f conftest.err conftest.$ac_objext \
7970     conftest$ac_exeext conftest.$ac_ext
7971     fi
7972     echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7973     echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7974     if test `eval echo '${'$as_ac_var'}'` = yes; then
7975     cat >>confdefs.h <<_ACEOF
7976     #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7977     _ACEOF
7978     cf_openssl_ciphers="${cf_openssl_ciphers}RC5.16/128 RC5.12/128 RC5.8/128 "
7979     fi
7980     done
7981    
7982    
7983     for ac_func in EVP_des_ede3_cfb
7984     do
7985     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7986     echo "$as_me:$LINENO: checking for $ac_func" >&5
7987     echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7988     if eval "test \"\${$as_ac_var+set}\" = set"; then
7989     echo $ECHO_N "(cached) $ECHO_C" >&6
7990     else
7991     cat >conftest.$ac_ext <<_ACEOF
7992     /* confdefs.h. */
7993     _ACEOF
7994     cat confdefs.h >>conftest.$ac_ext
7995     cat >>conftest.$ac_ext <<_ACEOF
7996     /* end confdefs.h. */
7997     /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7998     For example, HP-UX 11i <limits.h> declares gettimeofday. */
7999     #define $ac_func innocuous_$ac_func
8000    
8001     /* System header to define __stub macros and hopefully few prototypes,
8002     which can conflict with char $ac_func (); below.
8003     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8004     <limits.h> exists even on freestanding compilers. */
8005    
8006     #ifdef __STDC__
8007     # include <limits.h>
8008     #else
8009     # include <assert.h>
8010     #endif
8011    
8012     #undef $ac_func
8013    
8014     /* Override any gcc2 internal prototype to avoid an error. */
8015     #ifdef __cplusplus
8016     extern "C"
8017     {
8018     #endif
8019     /* We use char because int might match the return type of a gcc2
8020     builtin and then its argument prototype would still apply. */
8021     char $ac_func ();
8022     /* The GNU C library defines this for functions which it implements
8023     to always fail with ENOSYS. Some functions are actually named
8024     something starting with __ and the normal name is an alias. */
8025     #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8026     choke me
8027     #else
8028     char (*f) () = $ac_func;
8029     #endif
8030     #ifdef __cplusplus
8031     }
8032     #endif
8033    
8034     int
8035     main ()
8036     {
8037     return f != $ac_func;
8038     ;
8039     return 0;
8040     }
8041     _ACEOF
8042     rm -f conftest.$ac_objext conftest$ac_exeext
8043     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8044     (eval $ac_link) 2>conftest.er1
8045     ac_status=$?
8046     grep -v '^ *+' conftest.er1 >conftest.err
8047     rm -f conftest.er1
8048     cat conftest.err >&5
8049     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8050     (exit $ac_status); } &&
8051     { ac_try='test -z "$ac_c_werror_flag"
8052     || test ! -s conftest.err'
8053     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8054     (eval $ac_try) 2>&5
8055     ac_status=$?
8056     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8057     (exit $ac_status); }; } &&
8058     { ac_try='test -s conftest$ac_exeext'
8059     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8060     (eval $ac_try) 2>&5
8061     ac_status=$?
8062     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8063     (exit $ac_status); }; }; then
8064     eval "$as_ac_var=yes"
8065     else
8066     echo "$as_me: failed program was:" >&5
8067     sed 's/^/| /' conftest.$ac_ext >&5
8068    
8069     eval "$as_ac_var=no"
8070     fi
8071     rm -f conftest.err conftest.$ac_objext \
8072     conftest$ac_exeext conftest.$ac_ext
8073     fi
8074     echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8075     echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8076     if test `eval echo '${'$as_ac_var'}'` = yes; then
8077     cat >>confdefs.h <<_ACEOF
8078     #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8079     _ACEOF
8080     cf_openssl_ciphers="${cf_openssl_ciphers}3DES/168 "
8081     fi
8082     done
8083    
8084    
8085     for ac_func in EVP_des_cfb
8086     do
8087     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8088     echo "$as_me:$LINENO: checking for $ac_func" >&5
8089     echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8090     if eval "test \"\${$as_ac_var+set}\" = set"; then
8091     echo $ECHO_N "(cached) $ECHO_C" >&6
8092     else
8093     cat >conftest.$ac_ext <<_ACEOF
8094     /* confdefs.h. */
8095     _ACEOF
8096     cat confdefs.h >>conftest.$ac_ext
8097     cat >>conftest.$ac_ext <<_ACEOF
8098     /* end confdefs.h. */
8099     /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8100     For example, HP-UX 11i <limits.h> declares gettimeofday. */
8101     #define $ac_func innocuous_$ac_func
8102    
8103     /* System header to define __stub macros and hopefully few prototypes,
8104     which can conflict with char $ac_func (); below.
8105     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8106     <limits.h> exists even on freestanding compilers. */
8107    
8108     #ifdef __STDC__
8109     # include <limits.h>
8110     #else
8111     # include <assert.h>
8112     #endif
8113    
8114     #undef $ac_func
8115    
8116     /* Override any gcc2 internal prototype to avoid an error. */
8117     #ifdef __cplusplus
8118     extern "C"
8119     {
8120     #endif
8121     /* We use char because int might match the return type of a gcc2
8122     builtin and then its argument prototype would still apply. */
8123     char $ac_func ();
8124     /* The GNU C library defines this for functions which it implements
8125     to always fail with ENOSYS. Some functions are actually named
8126     something starting with __ and the normal name is an alias. */
8127     #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8128     choke me
8129     #else
8130     char (*f) () = $ac_func;
8131     #endif
8132     #ifdef __cplusplus
8133     }
8134     #endif
8135    
8136     int
8137     main ()
8138     {
8139     return f != $ac_func;
8140     ;
8141     return 0;
8142     }
8143     _ACEOF
8144     rm -f conftest.$ac_objext conftest$ac_exeext
8145     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8146     (eval $ac_link) 2>conftest.er1
8147     ac_status=$?
8148     grep -v '^ *+' conftest.er1 >conftest.err
8149     rm -f conftest.er1
8150     cat conftest.err >&5
8151     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8152     (exit $ac_status); } &&
8153     { ac_try='test -z "$ac_c_werror_flag"
8154     || test ! -s conftest.err'
8155     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8156     (eval $ac_try) 2>&5
8157     ac_status=$?
8158     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8159     (exit $ac_status); }; } &&
8160     { ac_try='test -s conftest$ac_exeext'
8161     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8162     (eval $ac_try) 2>&5
8163     ac_status=$?
8164     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8165     (exit $ac_status); }; }; then
8166     eval "$as_ac_var=yes"
8167     else
8168     echo "$as_me: failed program was:" >&5
8169     sed 's/^/| /' conftest.$ac_ext >&5
8170    
8171     eval "$as_ac_var=no"
8172     fi
8173     rm -f conftest.err conftest.$ac_objext \
8174     conftest$ac_exeext conftest.$ac_ext
8175     fi
8176     echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8177     echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8178     if test `eval echo '${'$as_ac_var'}'` = yes; then
8179     cat >>confdefs.h <<_ACEOF
8180     #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8181     _ACEOF
8182     cf_openssl_ciphers="${cf_openssl_ciphers}DES/56 "
8183     fi
8184     done
8185    
8186     fi
8187     SSL_LIBS="$SSL_LIBS -lssl -lcrypto"
8188     SSL_SRCS_ENABLE='$(SSL_SRCS)'
8189     else
8190     echo "$as_me:$LINENO: result: no - OpenSSL support disabled" >&5
8191     echo "${ECHO_T}no - OpenSSL support disabled" >&6
8192     fi
8193     fi
8194    
8195     CPPFLAGS="$save_CPPFLAGS"
8196     LIBS="$save_LIBS"
8197    
8198    
8199    
8200    
8201     # Check whether --with-zlib-path or --without-zlib-path was given.
8202     if test "${with_zlib_path+set}" = set; then
8203     withval="$with_zlib_path"
8204     LIBS="$LIBS -L$withval"
8205     fi;
8206    
8207     # Check whether --enable-zlib or --disable-zlib was given.
8208     if test "${enable_zlib+set}" = set; then
8209     enableval="$enable_zlib"
8210     zlib=$enableval
8211     else
8212     zlib=yes
8213     fi;
8214    
8215     if test "$zlib" = yes; then
8216    
8217     if test "${ac_cv_header_zlib_h+set}" = set; then
8218     echo "$as_me:$LINENO: checking for zlib.h" >&5
8219     echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
8220     if test "${ac_cv_header_zlib_h+set}" = set; then
8221     echo $ECHO_N "(cached) $ECHO_C" >&6
8222     fi
8223     echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
8224     echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
8225     else
8226     # Is the header compilable?
8227     echo "$as_me:$LINENO: checking zlib.h usability" >&5
8228     echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
8229     cat >conftest.$ac_ext <<_ACEOF
8230     /* confdefs.h. */
8231     _ACEOF
8232     cat confdefs.h >>conftest.$ac_ext
8233     cat >>conftest.$ac_ext <<_ACEOF
8234     /* end confdefs.h. */
8235     $ac_includes_default
8236     #include <zlib.h>
8237     _ACEOF
8238     rm -f conftest.$ac_objext
8239     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8240     (eval $ac_compile) 2>conftest.er1
8241     ac_status=$?
8242     grep -v '^ *+' conftest.er1 >conftest.err
8243     rm -f conftest.er1
8244     cat conftest.err >&5
8245     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8246     (exit $ac_status); } &&
8247     { ac_try='test -z "$ac_c_werror_flag"
8248     || test ! -s conftest.err'
8249     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8250     (eval $ac_try) 2>&5
8251     ac_status=$?
8252     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8253     (exit $ac_status); }; } &&
8254     { ac_try='test -s conftest.$ac_objext'
8255     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8256     (eval $ac_try) 2>&5
8257     ac_status=$?
8258     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8259     (exit $ac_status); }; }; then
8260     ac_header_compiler=yes
8261     else
8262     echo "$as_me: failed program was:" >&5
8263     sed 's/^/| /' conftest.$ac_ext >&5
8264    
8265     ac_header_compiler=no
8266     fi
8267     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8268     echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8269     echo "${ECHO_T}$ac_header_compiler" >&6
8270    
8271     # Is the header present?
8272     echo "$as_me:$LINENO: checking zlib.h presence" >&5
8273     echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
8274     cat >conftest.$ac_ext <<_ACEOF
8275     /* confdefs.h. */
8276     _ACEOF
8277     cat confdefs.h >>conftest.$ac_ext
8278     cat >>conftest.$ac_ext <<_ACEOF
8279     /* end confdefs.h. */
8280     #include <zlib.h>
8281     _ACEOF
8282     if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8283     (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8284     ac_status=$?
8285     grep -v '^ *+' conftest.er1 >conftest.err
8286     rm -f conftest.er1
8287     cat conftest.err >&5
8288     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8289     (exit $ac_status); } >/dev/null; then
8290     if test -s conftest.err; then
8291     ac_cpp_err=$ac_c_preproc_warn_flag
8292     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8293     else
8294     ac_cpp_err=
8295     fi
8296     else
8297     ac_cpp_err=yes
8298     fi
8299     if test -z "$ac_cpp_err"; then
8300     ac_header_preproc=yes
8301     else
8302     echo "$as_me: failed program was:" >&5
8303     sed 's/^/| /' conftest.$ac_ext >&5
8304    
8305     ac_header_preproc=no
8306     fi
8307     rm -f conftest.err conftest.$ac_ext
8308     echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8309     echo "${ECHO_T}$ac_header_preproc" >&6
8310    
8311     # So? What about this header?
8312     case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8313     yes:no: )
8314     { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
8315     echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8316     { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
8317     echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
8318     ac_header_preproc=yes
8319     ;;
8320     no:yes:* )
8321     { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
8322     echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
8323     { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
8324     echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
8325     { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
8326     echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
8327     { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
8328     echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
8329     { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
8330     echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
8331     { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
8332     echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
8333     (
8334     cat <<\_ASBOX
8335     ## -------------------------------------- ##
8336     ## Report this to the ircd-hybrid lists. ##
8337     ## -------------------------------------- ##
8338     _ASBOX
8339     ) |
8340     sed "s/^/$as_me: WARNING: /" >&2
8341     ;;
8342     esac
8343     echo "$as_me:$LINENO: checking for zlib.h" >&5
8344     echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
8345     if test "${ac_cv_header_zlib_h+set}" = set; then
8346     echo $ECHO_N "(cached) $ECHO_C" >&6
8347     else
8348     ac_cv_header_zlib_h=$ac_header_preproc
8349     fi
8350     echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
8351     echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
8352    
8353     fi
8354     if test $ac_cv_header_zlib_h = yes; then
8355    
8356     echo "$as_me:$LINENO: checking for zlibVersion in -lz" >&5
8357     echo $ECHO_N "checking for zlibVersion in -lz... $ECHO_C" >&6
8358     if test "${ac_cv_lib_z_zlibVersion+set}" = set; then
8359     echo $ECHO_N "(cached) $ECHO_C" >&6
8360     else
8361     ac_check_lib_save_LIBS=$LIBS
8362     LIBS="-lz $LIBS"
8363     cat >conftest.$ac_ext <<_ACEOF
8364     /* confdefs.h. */
8365     _ACEOF
8366     cat confdefs.h >>conftest.$ac_ext
8367     cat >>conftest.$ac_ext <<_ACEOF
8368     /* end confdefs.h. */
8369    
8370     /* Override any gcc2 internal prototype to avoid an error. */
8371     #ifdef __cplusplus
8372     extern "C"
8373     #endif
8374     /* We use char because int might match the return type of a gcc2
8375     builtin and then its argument prototype would still apply. */
8376     char zlibVersion ();
8377     int
8378     main ()
8379     {
8380     zlibVersion ();
8381     ;
8382     return 0;
8383     }
8384     _ACEOF
8385     rm -f conftest.$ac_objext conftest$ac_exeext
8386     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8387     (eval $ac_link) 2>conftest.er1
8388     ac_status=$?
8389     grep -v '^ *+' conftest.er1 >conftest.err
8390     rm -f conftest.er1
8391     cat conftest.err >&5
8392     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8393     (exit $ac_status); } &&
8394     { ac_try='test -z "$ac_c_werror_flag"
8395     || test ! -s conftest.err'
8396     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8397     (eval $ac_try) 2>&5
8398     ac_status=$?
8399     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8400     (exit $ac_status); }; } &&
8401     { ac_try='test -s conftest$ac_exeext'
8402     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8403     (eval $ac_try) 2>&5
8404     ac_status=$?
8405     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8406     (exit $ac_status); }; }; then
8407     ac_cv_lib_z_zlibVersion=yes
8408     else
8409     echo "$as_me: failed program was:" >&5
8410     sed 's/^/| /' conftest.$ac_ext >&5
8411    
8412     ac_cv_lib_z_zlibVersion=no
8413     fi
8414     rm -f conftest.err conftest.$ac_objext \
8415     conftest$ac_exeext conftest.$ac_ext
8416     LIBS=$ac_check_lib_save_LIBS
8417     fi
8418     echo "$as_me:$LINENO: result: $ac_cv_lib_z_zlibVersion" >&5
8419     echo "${ECHO_T}$ac_cv_lib_z_zlibVersion" >&6
8420     if test $ac_cv_lib_z_zlibVersion = yes; then
8421    
8422     ZLIB_LD=-lz
8423    
8424    
8425     cat >>confdefs.h <<\_ACEOF
8426     #define HAVE_LIBZ 1
8427     _ACEOF
8428    
8429    
8430     else
8431     zlib=no
8432     fi
8433    
8434    
8435     else
8436     zlib=no
8437     fi
8438    
8439    
8440    
8441     fi
8442    
8443    
8444     # Check whether --enable-poll or --disable-poll was given.
8445     if test "${enable_poll+set}" = set; then
8446     enableval="$enable_poll"
8447     SELECT_TYPE_EXPLICIT="poll"; echo "Forcing poll() to be enabled"
8448     fi;
8449    
8450     # Check whether --enable-select or --disable-select was given.
8451     if test "${enable_select+set}" = set; then
8452     enableval="$enable_select"
8453     SELECT_TYPE_EXPLICIT="select"; echo "Forcing select() to be enabled"
8454     fi;
8455    
8456     # Check whether --enable-kqueue or --disable-kqueue was given.
8457     if test "${enable_kqueue+set}" = set; then
8458     enableval="$enable_kqueue"
8459     SELECT_TYPE_EXPLICIT="kqueue"; echo "Forcing kqueue() to be enabled"
8460     fi;
8461    
8462     # Check whether --enable-devpoll or --disable-devpoll was given.
8463     if test "${enable_devpoll+set}" = set; then
8464     enableval="$enable_devpoll"
8465     SELECT_TYPE_EXPLICIT="devpoll"
8466     echo "Forcing /dev/poll to be enabled"
8467    
8468    
8469     for ac_header in sys/devpoll.h devpoll.h
8470     do
8471     as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8472     if eval "test \"\${$as_ac_Header+set}\" = set"; then
8473     echo "$as_me:$LINENO: checking for $ac_header" >&5
8474     echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8475     if eval "test \"\${$as_ac_Header+set}\" = set"; then
8476     echo $ECHO_N "(cached) $ECHO_C" >&6
8477     fi
8478     echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8479     echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8480     else
8481     # Is the header compilable?
8482     echo "$as_me:$LINENO: checking $ac_header usability" >&5
8483     echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8484     cat >conftest.$ac_ext <<_ACEOF
8485     /* confdefs.h. */
8486     _ACEOF
8487     cat confdefs.h >>conftest.$ac_ext
8488     cat >>conftest.$ac_ext <<_ACEOF
8489     /* end confdefs.h. */
8490     $ac_includes_default
8491     #include <$ac_header>
8492     _ACEOF
8493     rm -f conftest.$ac_objext
8494     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8495     (eval $ac_compile) 2>conftest.er1
8496     ac_status=$?
8497     grep -v '^ *+' conftest.er1 >conftest.err
8498     rm -f conftest.er1
8499     cat conftest.err >&5
8500     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8501     (exit $ac_status); } &&
8502     { ac_try='test -z "$ac_c_werror_flag"
8503     || test ! -s conftest.err'
8504     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8505     (eval $ac_try) 2>&5
8506     ac_status=$?
8507     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8508     (exit $ac_status); }; } &&
8509     { ac_try='test -s conftest.$ac_objext'
8510     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8511     (eval $ac_try) 2>&5
8512     ac_status=$?
8513     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8514     (exit $ac_status); }; }; then
8515     ac_header_compiler=yes
8516     else
8517     echo "$as_me: failed program was:" >&5
8518     sed 's/^/| /' conftest.$ac_ext >&5
8519    
8520     ac_header_compiler=no
8521     fi
8522     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8523     echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8524     echo "${ECHO_T}$ac_header_compiler" >&6
8525    
8526     # Is the header present?
8527     echo "$as_me:$LINENO: checking $ac_header presence" >&5
8528     echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8529     cat >conftest.$ac_ext <<_ACEOF
8530     /* confdefs.h. */
8531     _ACEOF
8532     cat confdefs.h >>conftest.$ac_ext
8533     cat >>conftest.$ac_ext <<_ACEOF
8534     /* end confdefs.h. */
8535     #include <$ac_header>
8536     _ACEOF
8537     if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8538     (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
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
8544     (exit $ac_status); } >/dev/null; then
8545     if test -s conftest.err; then
8546     ac_cpp_err=$ac_c_preproc_warn_flag
8547     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8548     else
8549     ac_cpp_err=
8550     fi
8551     else
8552     ac_cpp_err=yes
8553     fi
8554     if test -z "$ac_cpp_err"; then
8555     ac_header_preproc=yes
8556     else
8557     echo "$as_me: failed program was:" >&5
8558     sed 's/^/| /' conftest.$ac_ext >&5
8559    
8560     ac_header_preproc=no
8561     fi
8562     rm -f conftest.err conftest.$ac_ext
8563     echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8564     echo "${ECHO_T}$ac_header_preproc" >&6
8565    
8566     # So? What about this header?
8567     case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8568     yes:no: )
8569     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8570     echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8571     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8572     echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8573     ac_header_preproc=yes
8574     ;;
8575     no:yes:* )
8576     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8577     echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8578     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8579     echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8580     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8581     echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8582     { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8583     echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8584     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8585     echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8586     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8587     echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8588     (
8589     cat <<\_ASBOX
8590     ## -------------------------------------- ##
8591     ## Report this to the ircd-hybrid lists. ##
8592     ## -------------------------------------- ##
8593     _ASBOX
8594     ) |
8595     sed "s/^/$as_me: WARNING: /" >&2
8596     ;;
8597     esac
8598     echo "$as_me:$LINENO: checking for $ac_header" >&5
8599     echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8600     if eval "test \"\${$as_ac_Header+set}\" = set"; then
8601     echo $ECHO_N "(cached) $ECHO_C" >&6
8602     else
8603     eval "$as_ac_Header=\$ac_header_preproc"
8604     fi
8605     echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8606     echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8607    
8608     fi
8609     if test `eval echo '${'$as_ac_Header'}'` = yes; then
8610     cat >>confdefs.h <<_ACEOF
8611     #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8612     _ACEOF
8613    
8614     fi
8615    
8616     done
8617    
8618     fi;
8619    
8620     # Check whether --enable-rtsigio or --disable-rtsigio was given.
8621     if test "${enable_rtsigio+set}" = set; then
8622     enableval="$enable_rtsigio"
8623     SELECT_TYPE_EXPLICIT="sigio"; echo "Forcing Linux RT Sigio to be enabled"
8624     fi;
8625    
8626     # Check whether --enable-epoll or --disable-epoll was given.
8627     if test "${enable_epoll+set}" = set; then
8628     enableval="$enable_epoll"
8629     SELECT_TYPE_EXPLICIT="epoll"; echo "Forcing Linux epoll to be enabled"
8630     fi;
8631    
8632     if test ! -z "$SELECT_TYPE_EXPLICIT"; then
8633     SELECT_TYPE="$SELECT_TYPE_EXPLICIT"
8634     else
8635    
8636     echo "$as_me:$LINENO: checking for kevent" >&5
8637     echo $ECHO_N "checking for kevent... $ECHO_C" >&6
8638     if test "${ac_cv_func_kevent+set}" = set; then
8639     echo $ECHO_N "(cached) $ECHO_C" >&6
8640     else
8641     cat >conftest.$ac_ext <<_ACEOF
8642     /* confdefs.h. */
8643     _ACEOF
8644     cat confdefs.h >>conftest.$ac_ext
8645     cat >>conftest.$ac_ext <<_ACEOF
8646     /* end confdefs.h. */
8647     /* Define kevent to an innocuous variant, in case <limits.h> declares kevent.
8648     For example, HP-UX 11i <limits.h> declares gettimeofday. */
8649     #define kevent innocuous_kevent
8650    
8651     /* System header to define __stub macros and hopefully few prototypes,
8652     which can conflict with char kevent (); below.
8653     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8654     <limits.h> exists even on freestanding compilers. */
8655    
8656     #ifdef __STDC__
8657     # include <limits.h>
8658     #else
8659     # include <assert.h>
8660     #endif
8661    
8662     #undef kevent
8663    
8664     /* Override any gcc2 internal prototype to avoid an error. */
8665     #ifdef __cplusplus
8666     extern "C"
8667     {
8668     #endif
8669     /* We use char because int might match the return type of a gcc2
8670     builtin and then its argument prototype would still apply. */
8671     char kevent ();
8672     /* The GNU C library defines this for functions which it implements
8673     to always fail with ENOSYS. Some functions are actually named
8674     something starting with __ and the normal name is an alias. */
8675     #if defined (__stub_kevent) || defined (__stub___kevent)
8676     choke me
8677     #else
8678     char (*f) () = kevent;
8679     #endif
8680     #ifdef __cplusplus
8681     }
8682     #endif
8683    
8684     int
8685     main ()
8686     {
8687     return f != kevent;
8688     ;
8689     return 0;
8690     }
8691     _ACEOF
8692     rm -f conftest.$ac_objext conftest$ac_exeext
8693     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8694     (eval $ac_link) 2>conftest.er1
8695     ac_status=$?
8696     grep -v '^ *+' conftest.er1 >conftest.err
8697     rm -f conftest.er1
8698     cat conftest.err >&5
8699     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8700     (exit $ac_status); } &&
8701     { ac_try='test -z "$ac_c_werror_flag"
8702     || test ! -s conftest.err'
8703     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8704     (eval $ac_try) 2>&5
8705     ac_status=$?
8706     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8707     (exit $ac_status); }; } &&
8708     { ac_try='test -s conftest$ac_exeext'
8709     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8710     (eval $ac_try) 2>&5
8711     ac_status=$?
8712     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8713     (exit $ac_status); }; }; then
8714     ac_cv_func_kevent=yes
8715     else
8716     echo "$as_me: failed program was:" >&5
8717     sed 's/^/| /' conftest.$ac_ext >&5
8718    
8719     ac_cv_func_kevent=no
8720     fi
8721     rm -f conftest.err conftest.$ac_objext \
8722     conftest$ac_exeext conftest.$ac_ext
8723     fi
8724     echo "$as_me:$LINENO: result: $ac_cv_func_kevent" >&5
8725     echo "${ECHO_T}$ac_cv_func_kevent" >&6
8726     if test $ac_cv_func_kevent = yes; then
8727    
8728     SELECT_TYPE="kqueue"
8729    
8730     else
8731    
8732     if test "${ac_cv_header_sys_epoll_h+set}" = set; then
8733     echo "$as_me:$LINENO: checking for sys/epoll.h" >&5
8734     echo $ECHO_N "checking for sys/epoll.h... $ECHO_C" >&6
8735     if test "${ac_cv_header_sys_epoll_h+set}" = set; then
8736     echo $ECHO_N "(cached) $ECHO_C" >&6
8737     fi
8738     echo "$as_me:$LINENO: result: $ac_cv_header_sys_epoll_h" >&5
8739     echo "${ECHO_T}$ac_cv_header_sys_epoll_h" >&6
8740     else
8741     # Is the header compilable?
8742     echo "$as_me:$LINENO: checking sys/epoll.h usability" >&5
8743     echo $ECHO_N "checking sys/epoll.h usability... $ECHO_C" >&6
8744     cat >conftest.$ac_ext <<_ACEOF
8745     /* confdefs.h. */
8746     _ACEOF
8747     cat confdefs.h >>conftest.$ac_ext
8748     cat >>conftest.$ac_ext <<_ACEOF
8749     /* end confdefs.h. */
8750     $ac_includes_default
8751     #include <sys/epoll.h>
8752     _ACEOF
8753     rm -f conftest.$ac_objext
8754     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8755     (eval $ac_compile) 2>conftest.er1
8756     ac_status=$?
8757     grep -v '^ *+' conftest.er1 >conftest.err
8758     rm -f conftest.er1
8759     cat conftest.err >&5
8760     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8761     (exit $ac_status); } &&
8762     { ac_try='test -z "$ac_c_werror_flag"
8763     || test ! -s conftest.err'
8764     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8765     (eval $ac_try) 2>&5
8766     ac_status=$?
8767     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8768     (exit $ac_status); }; } &&
8769     { ac_try='test -s conftest.$ac_objext'
8770     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8771     (eval $ac_try) 2>&5
8772     ac_status=$?
8773     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8774     (exit $ac_status); }; }; then
8775     ac_header_compiler=yes
8776     else
8777     echo "$as_me: failed program was:" >&5
8778     sed 's/^/| /' conftest.$ac_ext >&5
8779    
8780     ac_header_compiler=no
8781     fi
8782     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8783     echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8784     echo "${ECHO_T}$ac_header_compiler" >&6
8785    
8786     # Is the header present?
8787     echo "$as_me:$LINENO: checking sys/epoll.h presence" >&5
8788     echo $ECHO_N "checking sys/epoll.h presence... $ECHO_C" >&6
8789     cat >conftest.$ac_ext <<_ACEOF
8790     /* confdefs.h. */
8791     _ACEOF
8792     cat confdefs.h >>conftest.$ac_ext
8793     cat >>conftest.$ac_ext <<_ACEOF
8794     /* end confdefs.h. */
8795     #include <sys/epoll.h>
8796     _ACEOF
8797     if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8798     (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8799     ac_status=$?
8800     grep -v '^ *+' conftest.er1 >conftest.err
8801     rm -f conftest.er1
8802     cat conftest.err >&5
8803     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8804     (exit $ac_status); } >/dev/null; then
8805     if test -s conftest.err; then
8806     ac_cpp_err=$ac_c_preproc_warn_flag
8807     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8808     else
8809     ac_cpp_err=
8810     fi
8811     else
8812     ac_cpp_err=yes
8813     fi
8814     if test -z "$ac_cpp_err"; then
8815     ac_header_preproc=yes
8816     else
8817     echo "$as_me: failed program was:" >&5
8818     sed 's/^/| /' conftest.$ac_ext >&5
8819    
8820     ac_header_preproc=no
8821     fi
8822     rm -f conftest.err conftest.$ac_ext
8823     echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8824     echo "${ECHO_T}$ac_header_preproc" >&6
8825    
8826     # So? What about this header?
8827     case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8828     yes:no: )
8829     { echo "$as_me:$LINENO: WARNING: sys/epoll.h: accepted by the compiler, rejected by the preprocessor!" >&5
8830     echo "$as_me: WARNING: sys/epoll.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8831     { echo "$as_me:$LINENO: WARNING: sys/epoll.h: proceeding with the compiler's result" >&5
8832     echo "$as_me: WARNING: sys/epoll.h: proceeding with the compiler's result" >&2;}
8833     ac_header_preproc=yes
8834     ;;
8835     no:yes:* )
8836     { echo "$as_me:$LINENO: WARNING: sys/epoll.h: present but cannot be compiled" >&5
8837     echo "$as_me: WARNING: sys/epoll.h: present but cannot be compiled" >&2;}
8838     { echo "$as_me:$LINENO: WARNING: sys/epoll.h: check for missing prerequisite headers?" >&5
8839     echo "$as_me: WARNING: sys/epoll.h: check for missing prerequisite headers?" >&2;}
8840     { echo "$as_me:$LINENO: WARNING: sys/epoll.h: see the Autoconf documentation" >&5
8841     echo "$as_me: WARNING: sys/epoll.h: see the Autoconf documentation" >&2;}
8842     { echo "$as_me:$LINENO: WARNING: sys/epoll.h: section \"Present But Cannot Be Compiled\"" >&5
8843     echo "$as_me: WARNING: sys/epoll.h: section \"Present But Cannot Be Compiled\"" >&2;}
8844     { echo "$as_me:$LINENO: WARNING: sys/epoll.h: proceeding with the preprocessor's result" >&5
8845     echo "$as_me: WARNING: sys/epoll.h: proceeding with the preprocessor's result" >&2;}
8846     { echo "$as_me:$LINENO: WARNING: sys/epoll.h: in the future, the compiler will take precedence" >&5
8847     echo "$as_me: WARNING: sys/epoll.h: in the future, the compiler will take precedence" >&2;}
8848     (
8849     cat <<\_ASBOX
8850     ## -------------------------------------- ##
8851     ## Report this to the ircd-hybrid lists. ##
8852     ## -------------------------------------- ##
8853     _ASBOX
8854     ) |
8855     sed "s/^/$as_me: WARNING: /" >&2
8856     ;;
8857     esac
8858     echo "$as_me:$LINENO: checking for sys/epoll.h" >&5
8859     echo $ECHO_N "checking for sys/epoll.h... $ECHO_C" >&6
8860     if test "${ac_cv_header_sys_epoll_h+set}" = set; then
8861     echo $ECHO_N "(cached) $ECHO_C" >&6
8862     else
8863     ac_cv_header_sys_epoll_h=$ac_header_preproc
8864     fi
8865     echo "$as_me:$LINENO: result: $ac_cv_header_sys_epoll_h" >&5
8866     echo "${ECHO_T}$ac_cv_header_sys_epoll_h" >&6
8867    
8868     fi
8869     if test $ac_cv_header_sys_epoll_h = yes; then
8870     HAS_EPOLL=1
8871     else
8872     HAS_EPOLL=0
8873     fi
8874    
8875    
8876     if test $HAS_EPOLL -eq 1; then
8877     echo "$as_me:$LINENO: checking for epoll support in kernel" >&5
8878     echo $ECHO_N "checking for epoll support in kernel... $ECHO_C" >&6
8879     if test "$cross_compiling" = yes; then
8880     echo "$as_me:$LINENO: result: no" >&5
8881     echo "${ECHO_T}no" >&6
8882     HAS_EPOLL=0
8883     else
8884     cat >conftest.$ac_ext <<_ACEOF
8885     /* confdefs.h. */
8886     _ACEOF
8887     cat confdefs.h >>conftest.$ac_ext
8888     cat >>conftest.$ac_ext <<_ACEOF
8889     /* end confdefs.h. */
8890     #include <sys/epoll.h>
8891     #include <sys/syscall.h>
8892     #if defined(__stub_epoll_create) || defined(__stub___epoll_create) || defined(EPOLL_NEED_BODY)
8893     #if !defined(__NR_epoll_create)
8894     #if defined(__ia64__)
8895     #define __NR_epoll_create 1243
8896     #elif defined(__x86_64__)
8897     #define __NR_epoll_create 214
8898     #elif defined(__sparc64__) || defined(__sparc__)
8899     #define __NR_epoll_create 193
8900     #elif defined(__s390__) || defined(__m68k__)
8901     #define __NR_epoll_create 249
8902     #elif defined(__ppc64__) || defined(__ppc__)
8903     #define __NR_epoll_create 236
8904     #elif defined(__parisc__) || defined(__arm26__) || defined(__arm__)
8905     #define __NR_epoll_create 224
8906     #elif defined(__alpha__)
8907     #define __NR_epoll_create 407
8908     #elif defined(__sh64__)
8909     #define __NR_epoll_create 282
8910     #elif defined(__i386__) || defined(__sh__) || defined(__m32r__) || defined(__h8300__) || defined(__frv__)
8911     #define __NR_epoll_create 254
8912     #else
8913     #error No system call numbers defined for epoll family.
8914     #endif
8915     #endif
8916     _syscall1(int, epoll_create, int, size)
8917     #endif
8918     main() { return epoll_create(256) == -1 ? 1 : 0; }
8919     _ACEOF
8920     rm -f conftest$ac_exeext
8921     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8922     (eval $ac_link) 2>&5
8923     ac_status=$?
8924     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8925     (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8926     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8927     (eval $ac_try) 2>&5
8928     ac_status=$?
8929     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8930     (exit $ac_status); }; }; then
8931     echo "$as_me:$LINENO: result: yes" >&5
8932     echo "${ECHO_T}yes" >&6
8933     SELECT_TYPE="epoll"
8934     else
8935     echo "$as_me: program exited with status $ac_status" >&5
8936     echo "$as_me: failed program was:" >&5
8937     sed 's/^/| /' conftest.$ac_ext >&5
8938    
8939     ( exit $ac_status )
8940     echo "$as_me:$LINENO: result: no" >&5
8941     echo "${ECHO_T}no" >&6
8942     HAS_EPOLL=0
8943     fi
8944     rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8945     fi
8946     fi
8947     if test $HAS_EPOLL -eq 0; then
8948     echo "$as_me:$LINENO: checking for /dev/poll" >&5
8949     echo $ECHO_N "checking for /dev/poll... $ECHO_C" >&6
8950     if test -c "/dev/poll"; then
8951     echo "$as_me:$LINENO: result: yes" >&5
8952     echo "${ECHO_T}yes" >&6
8953    
8954    
8955     for ac_header in devpoll.h sys/devpoll.h
8956     do
8957     as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8958     if eval "test \"\${$as_ac_Header+set}\" = set"; then
8959     echo "$as_me:$LINENO: checking for $ac_header" >&5
8960     echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8961     if eval "test \"\${$as_ac_Header+set}\" = set"; then
8962     echo $ECHO_N "(cached) $ECHO_C" >&6
8963     fi
8964     echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8965     echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8966     else
8967     # Is the header compilable?
8968     echo "$as_me:$LINENO: checking $ac_header usability" >&5
8969     echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8970     cat >conftest.$ac_ext <<_ACEOF
8971     /* confdefs.h. */
8972     _ACEOF
8973     cat confdefs.h >>conftest.$ac_ext
8974     cat >>conftest.$ac_ext <<_ACEOF
8975     /* end confdefs.h. */
8976     $ac_includes_default
8977     #include <$ac_header>
8978     _ACEOF
8979     rm -f conftest.$ac_objext
8980     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8981     (eval $ac_compile) 2>conftest.er1
8982     ac_status=$?
8983     grep -v '^ *+' conftest.er1 >conftest.err
8984     rm -f conftest.er1
8985     cat conftest.err >&5
8986     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8987     (exit $ac_status); } &&
8988     { ac_try='test -z "$ac_c_werror_flag"
8989     || test ! -s conftest.err'
8990     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8991     (eval $ac_try) 2>&5
8992     ac_status=$?
8993     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8994     (exit $ac_status); }; } &&
8995     { ac_try='test -s conftest.$ac_objext'
8996     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8997     (eval $ac_try) 2>&5
8998     ac_status=$?
8999     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9000     (exit $ac_status); }; }; then
9001     ac_header_compiler=yes
9002     else
9003     echo "$as_me: failed program was:" >&5
9004     sed 's/^/| /' conftest.$ac_ext >&5
9005    
9006     ac_header_compiler=no
9007     fi
9008     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9009     echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9010     echo "${ECHO_T}$ac_header_compiler" >&6
9011    
9012     # Is the header present?
9013     echo "$as_me:$LINENO: checking $ac_header presence" >&5
9014     echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9015     cat >conftest.$ac_ext <<_ACEOF
9016     /* confdefs.h. */
9017     _ACEOF
9018     cat confdefs.h >>conftest.$ac_ext
9019     cat >>conftest.$ac_ext <<_ACEOF
9020     /* end confdefs.h. */
9021     #include <$ac_header>
9022     _ACEOF
9023     if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9024     (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9025     ac_status=$?
9026     grep -v '^ *+' conftest.er1 >conftest.err
9027     rm -f conftest.er1
9028     cat conftest.err >&5
9029     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9030     (exit $ac_status); } >/dev/null; then
9031     if test -s conftest.err; then
9032     ac_cpp_err=$ac_c_preproc_warn_flag
9033     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9034     else
9035     ac_cpp_err=
9036     fi
9037     else
9038     ac_cpp_err=yes
9039     fi
9040     if test -z "$ac_cpp_err"; then
9041     ac_header_preproc=yes
9042     else
9043     echo "$as_me: failed program was:" >&5
9044     sed 's/^/| /' conftest.$ac_ext >&5
9045    
9046     ac_header_preproc=no
9047     fi
9048     rm -f conftest.err conftest.$ac_ext
9049     echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9050     echo "${ECHO_T}$ac_header_preproc" >&6
9051    
9052     # So? What about this header?
9053     case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9054     yes:no: )
9055     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9056     echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9057     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9058     echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9059     ac_header_preproc=yes
9060     ;;
9061     no:yes:* )
9062     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9063     echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9064     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9065     echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9066     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9067     echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9068     { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9069     echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9070     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9071     echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9072     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9073     echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9074     (
9075     cat <<\_ASBOX
9076     ## -------------------------------------- ##
9077     ## Report this to the ircd-hybrid lists. ##
9078     ## -------------------------------------- ##
9079     _ASBOX
9080     ) |
9081     sed "s/^/$as_me: WARNING: /" >&2
9082     ;;
9083     esac
9084     echo "$as_me:$LINENO: checking for $ac_header" >&5
9085     echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9086     if eval "test \"\${$as_ac_Header+set}\" = set"; then
9087     echo $ECHO_N "(cached) $ECHO_C" >&6
9088     else
9089     eval "$as_ac_Header=\$ac_header_preproc"
9090     fi
9091     echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9092     echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9093    
9094     fi
9095     if test `eval echo '${'$as_ac_Header'}'` = yes; then
9096     cat >>confdefs.h <<_ACEOF
9097     #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9098     _ACEOF
9099    
9100     fi
9101    
9102     done
9103    
9104     SELECT_TYPE="devpoll"
9105     else
9106     echo "$as_me:$LINENO: result: no" >&5
9107     echo "${ECHO_T}no" >&6
9108     echo "$as_me:$LINENO: checking for RT Signal IO" >&5
9109     echo $ECHO_N "checking for RT Signal IO... $ECHO_C" >&6
9110    
9111     cat >conftest.$ac_ext <<_ACEOF
9112     /* confdefs.h. */
9113     _ACEOF
9114     cat confdefs.h >>conftest.$ac_ext
9115     cat >>conftest.$ac_ext <<_ACEOF
9116     /* end confdefs.h. */
9117     #define _GNU_SOURCE
9118     #include <fcntl.h>
9119     #ifdef F_SETSIG
9120     YUP_HAVE_F_SETSIG
9121     #endif
9122    
9123     _ACEOF
9124     if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9125     $EGREP "YUP_HAVE_F_SETSIG" >/dev/null 2>&1; then
9126    
9127     SELECT_TYPE="sigio"
9128     echo "$as_me:$LINENO: result: yes" >&5
9129     echo "${ECHO_T}yes" >&6
9130    
9131     else
9132    
9133     echo "$as_me:$LINENO: result: no" >&5
9134     echo "${ECHO_T}no" >&6
9135     echo "$as_me:$LINENO: checking for poll" >&5
9136     echo $ECHO_N "checking for poll... $ECHO_C" >&6
9137     if test "${ac_cv_func_poll+set}" = set; then
9138     echo $ECHO_N "(cached) $ECHO_C" >&6
9139     else
9140     cat >conftest.$ac_ext <<_ACEOF
9141     /* confdefs.h. */
9142     _ACEOF
9143     cat confdefs.h >>conftest.$ac_ext
9144     cat >>conftest.$ac_ext <<_ACEOF
9145     /* end confdefs.h. */
9146     /* Define poll to an innocuous variant, in case <limits.h> declares poll.
9147     For example, HP-UX 11i <limits.h> declares gettimeofday. */
9148     #define poll innocuous_poll
9149    
9150     /* System header to define __stub macros and hopefully few prototypes,
9151     which can conflict with char poll (); below.
9152     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9153     <limits.h> exists even on freestanding compilers. */
9154    
9155     #ifdef __STDC__
9156     # include <limits.h>
9157     #else
9158     # include <assert.h>
9159     #endif
9160    
9161     #undef poll
9162    
9163     /* Override any gcc2 internal prototype to avoid an error. */
9164     #ifdef __cplusplus
9165     extern "C"
9166     {
9167     #endif
9168     /* We use char because int might match the return type of a gcc2
9169     builtin and then its argument prototype would still apply. */
9170     char poll ();
9171     /* The GNU C library defines this for functions which it implements
9172     to always fail with ENOSYS. Some functions are actually named
9173     something starting with __ and the normal name is an alias. */
9174     #if defined (__stub_poll) || defined (__stub___poll)
9175     choke me
9176     #else
9177     char (*f) () = poll;
9178     #endif
9179     #ifdef __cplusplus
9180     }
9181     #endif
9182    
9183     int
9184     main ()
9185     {
9186     return f != poll;
9187     ;
9188     return 0;
9189     }
9190     _ACEOF
9191     rm -f conftest.$ac_objext conftest$ac_exeext
9192     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9193     (eval $ac_link) 2>conftest.er1
9194     ac_status=$?
9195     grep -v '^ *+' conftest.er1 >conftest.err
9196     rm -f conftest.er1
9197     cat conftest.err >&5
9198     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9199     (exit $ac_status); } &&
9200     { ac_try='test -z "$ac_c_werror_flag"
9201     || test ! -s conftest.err'
9202     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9203     (eval $ac_try) 2>&5
9204     ac_status=$?
9205     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9206     (exit $ac_status); }; } &&
9207     { ac_try='test -s conftest$ac_exeext'
9208     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9209     (eval $ac_try) 2>&5
9210     ac_status=$?
9211     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9212     (exit $ac_status); }; }; then
9213     ac_cv_func_poll=yes
9214     else
9215     echo "$as_me: failed program was:" >&5
9216     sed 's/^/| /' conftest.$ac_ext >&5
9217    
9218     ac_cv_func_poll=no
9219     fi
9220     rm -f conftest.err conftest.$ac_objext \
9221     conftest$ac_exeext conftest.$ac_ext
9222     fi
9223     echo "$as_me:$LINENO: result: $ac_cv_func_poll" >&5
9224     echo "${ECHO_T}$ac_cv_func_poll" >&6
9225     if test $ac_cv_func_poll = yes; then
9226     SELECT_TYPE="poll"
9227     else
9228    
9229     echo "$as_me:$LINENO: checking for select" >&5
9230     echo $ECHO_N "checking for select... $ECHO_C" >&6
9231     if test "${ac_cv_func_select+set}" = set; then
9232     echo $ECHO_N "(cached) $ECHO_C" >&6
9233     else
9234     cat >conftest.$ac_ext <<_ACEOF
9235     /* confdefs.h. */
9236     _ACEOF
9237     cat confdefs.h >>conftest.$ac_ext
9238     cat >>conftest.$ac_ext <<_ACEOF
9239     /* end confdefs.h. */
9240     /* Define select to an innocuous variant, in case <limits.h> declares select.
9241     For example, HP-UX 11i <limits.h> declares gettimeofday. */
9242     #define select innocuous_select
9243    
9244     /* System header to define __stub macros and hopefully few prototypes,
9245     which can conflict with char select (); below.
9246     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9247     <limits.h> exists even on freestanding compilers. */
9248    
9249     #ifdef __STDC__
9250     # include <limits.h>
9251     #else
9252     # include <assert.h>
9253     #endif
9254    
9255     #undef select
9256    
9257     /* Override any gcc2 internal prototype to avoid an error. */
9258     #ifdef __cplusplus
9259     extern "C"
9260     {
9261     #endif
9262     /* We use char because int might match the return type of a gcc2
9263     builtin and then its argument prototype would still apply. */
9264     char select ();
9265     /* The GNU C library defines this for functions which it implements
9266     to always fail with ENOSYS. Some functions are actually named
9267     something starting with __ and the normal name is an alias. */
9268     #if defined (__stub_select) || defined (__stub___select)
9269     choke me
9270     #else
9271     char (*f) () = select;
9272     #endif
9273     #ifdef __cplusplus
9274     }
9275     #endif
9276    
9277     int
9278     main ()
9279     {
9280     return f != select;
9281     ;
9282     return 0;
9283     }
9284     _ACEOF
9285     rm -f conftest.$ac_objext conftest$ac_exeext
9286     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9287     (eval $ac_link) 2>conftest.er1
9288     ac_status=$?
9289     grep -v '^ *+' conftest.er1 >conftest.err
9290     rm -f conftest.er1
9291     cat conftest.err >&5
9292     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9293     (exit $ac_status); } &&
9294     { ac_try='test -z "$ac_c_werror_flag"
9295     || test ! -s conftest.err'
9296     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9297     (eval $ac_try) 2>&5
9298     ac_status=$?
9299     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9300     (exit $ac_status); }; } &&
9301     { ac_try='test -s conftest$ac_exeext'
9302     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9303     (eval $ac_try) 2>&5
9304     ac_status=$?
9305     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9306     (exit $ac_status); }; }; then
9307     ac_cv_func_select=yes
9308     else
9309     echo "$as_me: failed program was:" >&5
9310     sed 's/^/| /' conftest.$ac_ext >&5
9311    
9312     ac_cv_func_select=no
9313     fi
9314     rm -f conftest.err conftest.$ac_objext \
9315     conftest$ac_exeext conftest.$ac_ext
9316     fi
9317     echo "$as_me:$LINENO: result: $ac_cv_func_select" >&5
9318     echo "${ECHO_T}$ac_cv_func_select" >&6
9319     if test $ac_cv_func_select = yes; then
9320     SELECT_TYPE="select"
9321     else
9322     { { echo "$as_me:$LINENO: error: Couldn't find anything to use for IO loop. Is your C environment POSIXly sane?" >&5
9323     echo "$as_me: error: Couldn't find anything to use for IO loop. Is your C environment POSIXly sane?" >&2;}
9324     { (exit 1); exit 1; }; }
9325    
9326     fi
9327    
9328    
9329     fi
9330    
9331    
9332     fi
9333     rm -f conftest*
9334    
9335     fi
9336     fi
9337    
9338     fi
9339    
9340    
9341     fi
9342    
9343     echo "Using $SELECT_TYPE for select loop."
9344    
9345    
9346     cat >>confdefs.h <<_ACEOF
9347     #define SELECT_TYPE "$SELECT_TYPE"
9348     _ACEOF
9349    
9350    
9351    
9352    
9353    
9354     # Check whether --enable-clobber or --disable-clobber was given.
9355     if test "${enable_clobber+set}" = set; then
9356     enableval="$enable_clobber"
9357     clobber=$enableval
9358     else
9359     clobber=no
9360     fi;
9361    
9362     if test "$clobber" = yes; then
9363     CLOBBER=yes
9364    
9365     fi
9366    
9367     # Check whether --enable-assert or --disable-assert was given.
9368     if test "${enable_assert+set}" = set; then
9369     enableval="$enable_assert"
9370     assert=$enableval
9371     else
9372     assert=no
9373     fi;
9374    
9375     if test "$assert" = no; then
9376    
9377     cat >>confdefs.h <<\_ACEOF
9378     #define NDEBUG 1
9379     _ACEOF
9380    
9381     fi
9382    
9383     echo "$as_me:$LINENO: checking if you want to do a profile build" >&5
9384     echo $ECHO_N "checking if you want to do a profile build... $ECHO_C" >&6
9385     # Check whether --enable-profile or --disable-profile was given.
9386     if test "${enable_profile+set}" = set; then
9387     enableval="$enable_profile"
9388     profile=$enableval
9389     else
9390     profile=no
9391     fi;
9392    
9393     if test "$profile" = yes; then
9394     if test "$ac_cv_c_compiler_gnu" = yes; then
9395     IRC_CFLAGS="$IRC_CFLAGS -pg -static"
9396     echo "$as_me:$LINENO: result: " >&5
9397     echo "${ECHO_T}" >&6="yes, adding -pg -static"
9398     else
9399     echo "$as_me:$LINENO: result: no, profile builds only work with gcc" >&5
9400     echo "${ECHO_T}no, profile builds only work with gcc" >&6
9401     fi
9402     else
9403     echo "$as_me:$LINENO: result: no" >&5
9404     echo "${ECHO_T}no" >&6
9405     fi
9406    
9407     echo "$as_me:$LINENO: checking if you want ElectricFence" >&5
9408     echo $ECHO_N "checking if you want ElectricFence... $ECHO_C" >&6
9409     # Check whether --enable-efence or --disable-efence was given.
9410     if test "${enable_efence+set}" = set; then
9411     enableval="$enable_efence"
9412    
9413     if test "$enableval" != no; then
9414     if test ! -z "$enableval" -a "$enableval" != yes; then
9415     LIBS="$LIBS -L$enableval"
9416     fi
9417    
9418     echo "$as_me:$LINENO: checking for malloc in -lefence" >&5
9419     echo $ECHO_N "checking for malloc in -lefence... $ECHO_C" >&6
9420     if test "${ac_cv_lib_efence_malloc+set}" = set; then
9421     echo $ECHO_N "(cached) $ECHO_C" >&6
9422     else
9423     ac_check_lib_save_LIBS=$LIBS
9424     LIBS="-lefence $LIBS"
9425     cat >conftest.$ac_ext <<_ACEOF
9426     /* confdefs.h. */
9427     _ACEOF
9428     cat confdefs.h >>conftest.$ac_ext
9429     cat >>conftest.$ac_ext <<_ACEOF
9430     /* end confdefs.h. */
9431    
9432     /* Override any gcc2 internal prototype to avoid an error. */
9433     #ifdef __cplusplus
9434     extern "C"
9435     #endif
9436     /* We use char because int might match the return type of a gcc2
9437     builtin and then its argument prototype would still apply. */
9438     char malloc ();
9439     int
9440     main ()
9441     {
9442     malloc ();
9443     ;
9444     return 0;
9445     }
9446     _ACEOF
9447     rm -f conftest.$ac_objext conftest$ac_exeext
9448     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9449     (eval $ac_link) 2>conftest.er1
9450     ac_status=$?
9451     grep -v '^ *+' conftest.er1 >conftest.err
9452     rm -f conftest.er1
9453     cat conftest.err >&5
9454     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9455     (exit $ac_status); } &&
9456     { ac_try='test -z "$ac_c_werror_flag"
9457     || test ! -s conftest.err'
9458     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9459     (eval $ac_try) 2>&5
9460     ac_status=$?
9461     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9462     (exit $ac_status); }; } &&
9463     { ac_try='test -s conftest$ac_exeext'
9464     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9465     (eval $ac_try) 2>&5
9466     ac_status=$?
9467     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9468     (exit $ac_status); }; }; then
9469     ac_cv_lib_efence_malloc=yes
9470     else
9471     echo "$as_me: failed program was:" >&5
9472     sed 's/^/| /' conftest.$ac_ext >&5
9473    
9474     ac_cv_lib_efence_malloc=no
9475     fi
9476     rm -f conftest.err conftest.$ac_objext \
9477     conftest$ac_exeext conftest.$ac_ext
9478     LIBS=$ac_check_lib_save_LIBS
9479     fi
9480     echo "$as_me:$LINENO: result: $ac_cv_lib_efence_malloc" >&5
9481     echo "${ECHO_T}$ac_cv_lib_efence_malloc" >&6
9482     if test $ac_cv_lib_efence_malloc = yes; then
9483    
9484     LIBS="$LIBS -lefence"
9485     echo "$as_me:$LINENO: result: yes" >&5
9486     echo "${ECHO_T}yes" >&6
9487    
9488     else
9489     echo "$as_me:$LINENO: result: not found" >&5
9490     echo "${ECHO_T}not found" >&6
9491     fi
9492    
9493     else
9494     echo "$as_me:$LINENO: result: no" >&5
9495     echo "${ECHO_T}no" >&6
9496     fi
9497    
9498     else
9499     echo "$as_me:$LINENO: result: no" >&5
9500     echo "${ECHO_T}no" >&6
9501     fi;
9502    
9503     echo "$as_me:$LINENO: checking if you want the block allocator" >&5
9504     echo $ECHO_N "checking if you want the block allocator... $ECHO_C" >&6
9505     # Check whether --enable-block-alloc or --disable-block-alloc was given.
9506     if test "${enable_block_alloc+set}" = set; then
9507     enableval="$enable_block_alloc"
9508     balloc=$enableval
9509     else
9510     balloc=yes
9511     fi;
9512    
9513     if test "$balloc" = no; then
9514    
9515    
9516     cat >>confdefs.h <<\_ACEOF
9517     #define NOBALLOC 1
9518     _ACEOF
9519    
9520     else
9521     BALLOC_C=balloc.c
9522    
9523     fi
9524    
9525     echo "$as_me:$LINENO: result: $balloc" >&5
9526     echo "${ECHO_T}$balloc" >&6
9527    
9528     # Check whether --enable-warnings or --disable-warnings was given.
9529     if test "${enable_warnings+set}" = set; then
9530     enableval="$enable_warnings"
9531     IRC_CFLAGS="$IRC_CFLAGS -Wcast-qual -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wredundant-decls -Wshadow -Wwrite-strings -W -Wno-unused"
9532     fi;
9533    
9534    
9535     # Check whether --enable-small-net or --disable-small-net was given.
9536     if test "${enable_small_net+set}" = set; then
9537     enableval="$enable_small_net"
9538     small_net=$enableval
9539     else
9540     small_net=no
9541     fi;
9542    
9543     if test "$small_net" = yes; then
9544    
9545     cat >>confdefs.h <<\_ACEOF
9546     #define NICKNAMEHISTORYLENGTH 1500
9547     _ACEOF
9548    
9549    
9550     cat >>confdefs.h <<\_ACEOF
9551     #define CHANNEL_HEAP_SIZE 256
9552     _ACEOF
9553    
9554    
9555     cat >>confdefs.h <<\_ACEOF
9556     #define BAN_HEAP_SIZE 128
9557     _ACEOF
9558    
9559    
9560     cat >>confdefs.h <<\_ACEOF
9561     #define CLIENT_HEAP_SIZE 256
9562     _ACEOF
9563    
9564    
9565     cat >>confdefs.h <<\_ACEOF
9566     #define LCLIENT_HEAP_SIZE 128
9567     _ACEOF
9568    
9569    
9570     cat >>confdefs.h <<\_ACEOF
9571     #define DNODE_HEAP_SIZE 256
9572     _ACEOF
9573    
9574    
9575     cat >>confdefs.h <<\_ACEOF
9576     #define TOPIC_HEAP_SIZE 256
9577     _ACEOF
9578    
9579    
9580     cat >>confdefs.h <<\_ACEOF
9581     #define DBUF_HEAP_SIZE 64
9582     _ACEOF
9583    
9584     else
9585    
9586     cat >>confdefs.h <<\_ACEOF
9587     #define NICKNAMEHISTORYLENGTH 15000
9588     _ACEOF
9589    
9590    
9591     cat >>confdefs.h <<\_ACEOF
9592     #define CHANNEL_HEAP_SIZE 1024
9593     _ACEOF
9594    
9595    
9596     cat >>confdefs.h <<\_ACEOF
9597     #define BAN_HEAP_SIZE 1024
9598     _ACEOF
9599    
9600    
9601     cat >>confdefs.h <<\_ACEOF
9602     #define CLIENT_HEAP_SIZE 1024
9603     _ACEOF
9604    
9605    
9606     cat >>confdefs.h <<\_ACEOF
9607     #define LCLIENT_HEAP_SIZE 512
9608     _ACEOF
9609    
9610    
9611     cat >>confdefs.h <<\_ACEOF
9612     #define DNODE_HEAP_SIZE 2048
9613     _ACEOF
9614    
9615    
9616     cat >>confdefs.h <<\_ACEOF
9617     #define TOPIC_HEAP_SIZE 1024
9618     _ACEOF
9619    
9620    
9621     cat >>confdefs.h <<\_ACEOF
9622     #define DBUF_HEAP_SIZE 512
9623     _ACEOF
9624    
9625     fi
9626    
9627     # Check whether --enable-efnet or --disable-efnet was given.
9628     if test "${enable_efnet+set}" = set; then
9629     enableval="$enable_efnet"
9630     efnet=$enableval
9631     else
9632     efnet=no
9633     fi;
9634    
9635     if test "$efnet" = yes; then
9636    
9637     cat >>confdefs.h <<\_ACEOF
9638     #define EFNET 1
9639     _ACEOF
9640    
9641    
9642     cat >>confdefs.h <<\_ACEOF
9643     #define TS5_ONLY 1
9644     _ACEOF
9645    
9646     echo "Building ircd for use with EFnet"
9647     EXAMPLE_CONF=example.efnet.conf
9648     else
9649    
9650     cat >>confdefs.h <<\_ACEOF
9651     #define INVARIANTS 1
9652     _ACEOF
9653    
9654     EXAMPLE_CONF=example.conf
9655     fi
9656    
9657     # Check whether --enable-gline-voting or --disable-gline-voting was given.
9658     if test "${enable_gline_voting+set}" = set; then
9659     enableval="$enable_gline_voting"
9660     gline_voting=$enableval
9661     else
9662     gline_voting=yes
9663     fi;
9664    
9665     if test "$gline_voting" = yes; then
9666    
9667     cat >>confdefs.h <<\_ACEOF
9668     #define GLINE_VOTING 1
9669     _ACEOF
9670    
9671     echo "Building ircd with G-Line voting support"
9672     fi
9673    
9674     # Check whether --enable-halfops or --disable-halfops was given.
9675     if test "${enable_halfops+set}" = set; then
9676     enableval="$enable_halfops"
9677     halfops=$enableval
9678     else
9679     halfops=no
9680     fi;
9681    
9682     if test "$halfops" = yes; then
9683    
9684     cat >>confdefs.h <<\_ACEOF
9685     #define HALFOPS 1
9686     _ACEOF
9687    
9688     fi
9689    
9690    
9691    
9692     echo "$as_me:$LINENO: checking for syslog options" >&5
9693     echo $ECHO_N "checking for syslog options... $ECHO_C" >&6
9694    
9695     # Check whether --enable-syslog or --disable-syslog was given.
9696     if test "${enable_syslog+set}" = set; then
9697     enableval="$enable_syslog"
9698    
9699    
9700     if test "$ac_cv_header_sys_syslog_h" = yes -o "$ac_cv_header_syslog_h" = yes; then
9701    
9702     if test "$enableval" != no; then
9703     syslogstuff=core
9704    
9705     for option in $enableval; do
9706     case "$option" in
9707     kill)
9708     syslogstuff="$syslogstuff kill"
9709    
9710     cat >>confdefs.h <<\_ACEOF
9711     #define SYSLOG_KILL 1
9712     _ACEOF
9713    
9714     ;;
9715     squit)
9716     syslogstuff="$syslogstuff squit"
9717    
9718     cat >>confdefs.h <<\_ACEOF
9719     #define SYSLOG_SQUIT 1
9720     _ACEOF
9721    
9722     ;;
9723     connect)
9724     syslogstuff="$syslogstuff connect"
9725    
9726     cat >>confdefs.h <<\_ACEOF
9727     #define SYSLOG_CONNECT 1
9728     _ACEOF
9729    
9730     ;;
9731     users)
9732     syslogstuff="$syslogstuff users"
9733    
9734     cat >>confdefs.h <<\_ACEOF
9735     #define SYSLOG_USERS 1
9736     _ACEOF
9737    
9738     ;;
9739     oper)
9740     syslogstuff="$syslogstuff oper"
9741    
9742     cat >>confdefs.h <<\_ACEOF
9743     #define SYSLOG_OPER 1
9744     _ACEOF
9745    
9746     ;;
9747     yes)
9748     ;;
9749     *)
9750     { echo "$as_me:$LINENO: WARNING: unknown event $option" >&5
9751     echo "$as_me: WARNING: unknown event $option" >&2;}
9752     ;;
9753     esac
9754     done
9755    
9756     if test ! -z "$syslogstuff" -o "$enableval" = yes; then
9757    
9758     cat >>confdefs.h <<\_ACEOF
9759     #define USE_SYSLOG 1
9760     _ACEOF
9761    
9762     fi
9763     else syslogstuff=none
9764     fi
9765    
9766     else { echo "$as_me:$LINENO: WARNING: both syslog.h and sys/syslog.h unavailable, not enabling syslog" >&5
9767     echo "$as_me: WARNING: both syslog.h and sys/syslog.h unavailable, not enabling syslog" >&2;}
9768     syslogstuff=none
9769     fi
9770    
9771     else
9772     syslogstuff=none
9773     fi;
9774    
9775     echo "$as_me:$LINENO: result: $syslogstuff" >&5
9776     echo "${ECHO_T}$syslogstuff" >&6
9777    
9778    
9779     # Check whether --with-syslog-facility or --without-syslog-facility was given.
9780     if test "${with_syslog_facility+set}" = set; then
9781     withval="$with_syslog_facility"
9782     facility=$withval
9783     else
9784     facility="LOG_LOCAL4"
9785     fi;
9786    
9787     if test "$syslogstuff" != none; then
9788    
9789     cat >>confdefs.h <<_ACEOF
9790     #define LOG_FACILITY $facility
9791     _ACEOF
9792    
9793     fi
9794    
9795    
9796     # Check whether --with-nicklen or --without-nicklen was given.
9797     if test "${with_nicklen+set}" = set; then
9798     withval="$with_nicklen"
9799     NICKLEN="$withval"
9800     else
9801     NICKLEN="9"
9802     fi;
9803    
9804    
9805     # Check whether --with-topiclen or --without-topiclen was given.
9806     if test "${with_topiclen+set}" = set; then
9807     withval="$with_topiclen"
9808    
9809     if test $withval -ge 390; then
9810     TOPICLEN=390
9811     { echo "$as_me:$LINENO: WARNING: TOPICLEN has a hard limit of 390. Setting TOPICLEN=390" >&5
9812     echo "$as_me: WARNING: TOPICLEN has a hard limit of 390. Setting TOPICLEN=390" >&2;}
9813     else
9814     TOPICLEN=$withval
9815     fi
9816    
9817     else
9818     TOPICLEN=160
9819     fi;
9820    
9821    
9822     cat >>confdefs.h <<_ACEOF
9823     #define TOPICLEN ${TOPICLEN}
9824     _ACEOF
9825    
9826    
9827     cat >>confdefs.h <<_ACEOF
9828     #define NICKLEN (${NICKLEN}+1)
9829     _ACEOF
9830    
9831    
9832     # Check whether --enable-shared-modules or --disable-shared-modules was given.
9833     if test "${enable_shared_modules+set}" = set; then
9834     enableval="$enable_shared_modules"
9835     shared_modules=$enableval
9836     else
9837     shared_modules="yes"
9838     fi;
9839    
9840     if test "$shared_modules" = yes; then
9841    
9842     if test "$profile" = "no"; then
9843     shared_modules="yes"
9844     else
9845     { echo "$as_me:$LINENO: WARNING: disabling shared modules; cannot coexist with profile builds" >&5
9846     echo "$as_me: WARNING: disabling shared modules; cannot coexist with profile builds" >&2;}
9847     shared_modules="no"
9848     fi
9849    
9850     if test "$CYGWIN" = yes; then
9851     { echo "$as_me:$LINENO: WARNING: disabling shared modules; Cygwin is at present unable to build them." >&5
9852     echo "$as_me: WARNING: disabling shared modules; Cygwin is at present unable to build them." >&2;}
9853     shared_modules="no"
9854     fi
9855    
9856     if test "$CC" = tcc -a "$TenDRA" = "no"; then
9857     { echo "$as_me:$LINENO: WARNING: disabling shared modules: Tiny C Compiler can't create PIC" >&5
9858     echo "$as_me: WARNING: disabling shared modules: Tiny C Compiler can't create PIC" >&2;}
9859     shared_modules="no"
9860     fi
9861     fi
9862    
9863     if test "$shared_modules" = yes; then
9864     DYNLINK_C=dynlink.c
9865    
9866     for ac_header in dlfcn.h
9867     do
9868     as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9869     if eval "test \"\${$as_ac_Header+set}\" = set"; then
9870     echo "$as_me:$LINENO: checking for $ac_header" >&5
9871     echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9872     if eval "test \"\${$as_ac_Header+set}\" = set"; then
9873     echo $ECHO_N "(cached) $ECHO_C" >&6
9874     fi
9875     echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9876     echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9877     else
9878     # Is the header compilable?
9879     echo "$as_me:$LINENO: checking $ac_header usability" >&5
9880     echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9881     cat >conftest.$ac_ext <<_ACEOF
9882     /* confdefs.h. */
9883     _ACEOF
9884     cat confdefs.h >>conftest.$ac_ext
9885     cat >>conftest.$ac_ext <<_ACEOF
9886     /* end confdefs.h. */
9887     $ac_includes_default
9888     #include <$ac_header>
9889     _ACEOF
9890     rm -f conftest.$ac_objext
9891     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9892     (eval $ac_compile) 2>conftest.er1
9893     ac_status=$?
9894     grep -v '^ *+' conftest.er1 >conftest.err
9895     rm -f conftest.er1
9896     cat conftest.err >&5
9897     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9898     (exit $ac_status); } &&
9899     { ac_try='test -z "$ac_c_werror_flag"
9900     || test ! -s conftest.err'
9901     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9902     (eval $ac_try) 2>&5
9903     ac_status=$?
9904     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9905     (exit $ac_status); }; } &&
9906     { ac_try='test -s conftest.$ac_objext'
9907     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9908     (eval $ac_try) 2>&5
9909     ac_status=$?
9910     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9911     (exit $ac_status); }; }; then
9912     ac_header_compiler=yes
9913     else
9914     echo "$as_me: failed program was:" >&5
9915     sed 's/^/| /' conftest.$ac_ext >&5
9916    
9917     ac_header_compiler=no
9918     fi
9919     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9920     echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9921     echo "${ECHO_T}$ac_header_compiler" >&6
9922    
9923     # Is the header present?
9924     echo "$as_me:$LINENO: checking $ac_header presence" >&5
9925     echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9926     cat >conftest.$ac_ext <<_ACEOF
9927     /* confdefs.h. */
9928     _ACEOF
9929     cat confdefs.h >>conftest.$ac_ext
9930     cat >>conftest.$ac_ext <<_ACEOF
9931     /* end confdefs.h. */
9932     #include <$ac_header>
9933     _ACEOF
9934     if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9935     (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9936     ac_status=$?
9937     grep -v '^ *+' conftest.er1 >conftest.err
9938     rm -f conftest.er1
9939     cat conftest.err >&5
9940     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9941     (exit $ac_status); } >/dev/null; then
9942     if test -s conftest.err; then
9943     ac_cpp_err=$ac_c_preproc_warn_flag
9944     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9945     else
9946     ac_cpp_err=
9947     fi
9948     else
9949     ac_cpp_err=yes
9950     fi
9951     if test -z "$ac_cpp_err"; then
9952     ac_header_preproc=yes
9953     else
9954     echo "$as_me: failed program was:" >&5
9955     sed 's/^/| /' conftest.$ac_ext >&5
9956    
9957     ac_header_preproc=no
9958     fi
9959     rm -f conftest.err conftest.$ac_ext
9960     echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9961     echo "${ECHO_T}$ac_header_preproc" >&6
9962    
9963     # So? What about this header?
9964     case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9965     yes:no: )
9966     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9967     echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9968     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9969     echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9970     ac_header_preproc=yes
9971     ;;
9972     no:yes:* )
9973     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9974     echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9975     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9976     echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9977     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9978     echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9979     { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9980     echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9981     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9982     echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9983     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9984     echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9985     (
9986     cat <<\_ASBOX
9987     ## -------------------------------------- ##
9988     ## Report this to the ircd-hybrid lists. ##
9989     ## -------------------------------------- ##
9990     _ASBOX
9991     ) |
9992     sed "s/^/$as_me: WARNING: /" >&2
9993     ;;
9994     esac
9995     echo "$as_me:$LINENO: checking for $ac_header" >&5
9996     echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9997     if eval "test \"\${$as_ac_Header+set}\" = set"; then
9998     echo $ECHO_N "(cached) $ECHO_C" >&6
9999     else
10000     eval "$as_ac_Header=\$ac_header_preproc"
10001     fi
10002     echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10003     echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10004    
10005     fi
10006     if test `eval echo '${'$as_ac_Header'}'` = yes; then
10007     cat >>confdefs.h <<_ACEOF
10008     #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10009     _ACEOF
10010    
10011     fi
10012    
10013     done
10014    
10015     echo "$as_me:$LINENO: checking for library containing shl_load" >&5
10016     echo $ECHO_N "checking for library containing shl_load... $ECHO_C" >&6
10017     if test "${ac_cv_search_shl_load+set}" = set; then
10018     echo $ECHO_N "(cached) $ECHO_C" >&6
10019     else
10020     ac_func_search_save_LIBS=$LIBS
10021     ac_cv_search_shl_load=no
10022     cat >conftest.$ac_ext <<_ACEOF
10023     /* confdefs.h. */
10024     _ACEOF
10025     cat confdefs.h >>conftest.$ac_ext
10026     cat >>conftest.$ac_ext <<_ACEOF
10027     /* end confdefs.h. */
10028    
10029     /* Override any gcc2 internal prototype to avoid an error. */
10030     #ifdef __cplusplus
10031     extern "C"
10032     #endif
10033     /* We use char because int might match the return type of a gcc2
10034     builtin and then its argument prototype would still apply. */
10035     char shl_load ();
10036     int
10037     main ()
10038     {
10039     shl_load ();
10040     ;
10041     return 0;
10042     }
10043     _ACEOF
10044     rm -f conftest.$ac_objext conftest$ac_exeext
10045     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10046     (eval $ac_link) 2>conftest.er1
10047     ac_status=$?
10048     grep -v '^ *+' conftest.er1 >conftest.err
10049     rm -f conftest.er1
10050     cat conftest.err >&5
10051     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10052     (exit $ac_status); } &&
10053     { ac_try='test -z "$ac_c_werror_flag"
10054     || test ! -s conftest.err'
10055     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10056     (eval $ac_try) 2>&5
10057     ac_status=$?
10058     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10059     (exit $ac_status); }; } &&
10060     { ac_try='test -s conftest$ac_exeext'
10061     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10062     (eval $ac_try) 2>&5
10063     ac_status=$?
10064     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10065     (exit $ac_status); }; }; then
10066     ac_cv_search_shl_load="none required"
10067     else
10068     echo "$as_me: failed program was:" >&5
10069     sed 's/^/| /' conftest.$ac_ext >&5
10070    
10071     fi
10072     rm -f conftest.err conftest.$ac_objext \
10073     conftest$ac_exeext conftest.$ac_ext
10074     if test "$ac_cv_search_shl_load" = no; then
10075     for ac_lib in dld; do
10076     LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10077     cat >conftest.$ac_ext <<_ACEOF
10078     /* confdefs.h. */
10079     _ACEOF
10080     cat confdefs.h >>conftest.$ac_ext
10081     cat >>conftest.$ac_ext <<_ACEOF
10082     /* end confdefs.h. */
10083    
10084     /* Override any gcc2 internal prototype to avoid an error. */
10085     #ifdef __cplusplus
10086     extern "C"
10087     #endif
10088     /* We use char because int might match the return type of a gcc2
10089     builtin and then its argument prototype would still apply. */
10090     char shl_load ();
10091     int
10092     main ()
10093     {
10094     shl_load ();
10095     ;
10096     return 0;
10097     }
10098     _ACEOF
10099     rm -f conftest.$ac_objext conftest$ac_exeext
10100     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10101     (eval $ac_link) 2>conftest.er1
10102     ac_status=$?
10103     grep -v '^ *+' conftest.er1 >conftest.err
10104     rm -f conftest.er1
10105     cat conftest.err >&5
10106     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10107     (exit $ac_status); } &&
10108     { ac_try='test -z "$ac_c_werror_flag"
10109     || test ! -s conftest.err'
10110     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10111     (eval $ac_try) 2>&5
10112     ac_status=$?
10113     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10114     (exit $ac_status); }; } &&
10115     { ac_try='test -s conftest$ac_exeext'
10116     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10117     (eval $ac_try) 2>&5
10118     ac_status=$?
10119     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10120     (exit $ac_status); }; }; then
10121     ac_cv_search_shl_load="-l$ac_lib"
10122     break
10123     else
10124     echo "$as_me: failed program was:" >&5
10125     sed 's/^/| /' conftest.$ac_ext >&5
10126    
10127     fi
10128     rm -f conftest.err conftest.$ac_objext \
10129     conftest$ac_exeext conftest.$ac_ext
10130     done
10131     fi
10132     LIBS=$ac_func_search_save_LIBS
10133     fi
10134     echo "$as_me:$LINENO: result: $ac_cv_search_shl_load" >&5
10135     echo "${ECHO_T}$ac_cv_search_shl_load" >&6
10136     if test "$ac_cv_search_shl_load" != no; then
10137     test "$ac_cv_search_shl_load" = "none required" || LIBS="$ac_cv_search_shl_load $LIBS"
10138    
10139    
10140     cat >>confdefs.h <<\_ACEOF
10141     #define HAVE_SHL_LOAD 1
10142     _ACEOF
10143    
10144     SUFFIX=".sl"
10145     MOD_TARGET=hpux_shared
10146     SEDOBJ="s/\.o/.sl/g"
10147    
10148     else
10149    
10150     echo "$as_me:$LINENO: checking for library containing dlopen" >&5
10151     echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
10152     if test "${ac_cv_search_dlopen+set}" = set; then
10153     echo $ECHO_N "(cached) $ECHO_C" >&6
10154     else
10155     ac_func_search_save_LIBS=$LIBS
10156     ac_cv_search_dlopen=no
10157     cat >conftest.$ac_ext <<_ACEOF
10158     /* confdefs.h. */
10159     _ACEOF
10160     cat confdefs.h >>conftest.$ac_ext
10161     cat >>conftest.$ac_ext <<_ACEOF
10162     /* end confdefs.h. */
10163    
10164     /* Override any gcc2 internal prototype to avoid an error. */
10165     #ifdef __cplusplus
10166     extern "C"
10167     #endif
10168     /* We use char because int might match the return type of a gcc2
10169     builtin and then its argument prototype would still apply. */
10170     char dlopen ();
10171     int
10172     main ()
10173     {
10174     dlopen ();
10175     ;
10176     return 0;
10177     }
10178     _ACEOF
10179     rm -f conftest.$ac_objext conftest$ac_exeext
10180     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10181     (eval $ac_link) 2>conftest.er1
10182     ac_status=$?
10183     grep -v '^ *+' conftest.er1 >conftest.err
10184     rm -f conftest.er1
10185     cat conftest.err >&5
10186     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10187     (exit $ac_status); } &&
10188     { ac_try='test -z "$ac_c_werror_flag"
10189     || test ! -s conftest.err'
10190     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10191     (eval $ac_try) 2>&5
10192     ac_status=$?
10193     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10194     (exit $ac_status); }; } &&
10195     { ac_try='test -s conftest$ac_exeext'
10196     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10197     (eval $ac_try) 2>&5
10198     ac_status=$?
10199     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10200     (exit $ac_status); }; }; then
10201     ac_cv_search_dlopen="none required"
10202     else
10203     echo "$as_me: failed program was:" >&5
10204     sed 's/^/| /' conftest.$ac_ext >&5
10205    
10206     fi
10207     rm -f conftest.err conftest.$ac_objext \
10208     conftest$ac_exeext conftest.$ac_ext
10209     if test "$ac_cv_search_dlopen" = no; then
10210     for ac_lib in dl c_r; do
10211     LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10212     cat >conftest.$ac_ext <<_ACEOF
10213     /* confdefs.h. */
10214     _ACEOF
10215     cat confdefs.h >>conftest.$ac_ext
10216     cat >>conftest.$ac_ext <<_ACEOF
10217     /* end confdefs.h. */
10218    
10219     /* Override any gcc2 internal prototype to avoid an error. */
10220     #ifdef __cplusplus
10221     extern "C"
10222     #endif
10223     /* We use char because int might match the return type of a gcc2
10224     builtin and then its argument prototype would still apply. */
10225     char dlopen ();
10226     int
10227     main ()
10228     {
10229     dlopen ();
10230     ;
10231     return 0;
10232     }
10233     _ACEOF
10234     rm -f conftest.$ac_objext conftest$ac_exeext
10235     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10236     (eval $ac_link) 2>conftest.er1
10237     ac_status=$?
10238     grep -v '^ *+' conftest.er1 >conftest.err
10239     rm -f conftest.er1
10240     cat conftest.err >&5
10241     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10242     (exit $ac_status); } &&
10243     { ac_try='test -z "$ac_c_werror_flag"
10244     || test ! -s conftest.err'
10245     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10246     (eval $ac_try) 2>&5
10247     ac_status=$?
10248     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10249     (exit $ac_status); }; } &&
10250     { ac_try='test -s conftest$ac_exeext'
10251     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10252     (eval $ac_try) 2>&5
10253     ac_status=$?
10254     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10255     (exit $ac_status); }; }; then
10256     ac_cv_search_dlopen="-l$ac_lib"
10257     break
10258     else
10259     echo "$as_me: failed program was:" >&5
10260     sed 's/^/| /' conftest.$ac_ext >&5
10261    
10262     fi
10263     rm -f conftest.err conftest.$ac_objext \
10264     conftest$ac_exeext conftest.$ac_ext
10265     done
10266     fi
10267     LIBS=$ac_func_search_save_LIBS
10268     fi
10269     echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
10270     echo "${ECHO_T}$ac_cv_search_dlopen" >&6
10271     if test "$ac_cv_search_dlopen" != no; then
10272     test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
10273    
10274    
10275     cat >>confdefs.h <<\_ACEOF
10276     #define HAVE_DLOPEN 1
10277     _ACEOF
10278    
10279     SUFFIX=".so"
10280     MOD_TARGET=shared_modules
10281     SEDOBJ="s/\.o/.so/g"
10282     if test "$AppleGCC" = yes; then
10283    
10284     for ac_header in mach-o/dyld.h
10285     do
10286     as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10287     if eval "test \"\${$as_ac_Header+set}\" = set"; then
10288     echo "$as_me:$LINENO: checking for $ac_header" >&5
10289     echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10290     if eval "test \"\${$as_ac_Header+set}\" = set"; then
10291     echo $ECHO_N "(cached) $ECHO_C" >&6
10292     fi
10293     echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10294     echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10295     else
10296     # Is the header compilable?
10297     echo "$as_me:$LINENO: checking $ac_header usability" >&5
10298     echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10299     cat >conftest.$ac_ext <<_ACEOF
10300     /* confdefs.h. */
10301     _ACEOF
10302     cat confdefs.h >>conftest.$ac_ext
10303     cat >>conftest.$ac_ext <<_ACEOF
10304     /* end confdefs.h. */
10305     $ac_includes_default
10306     #include <$ac_header>
10307     _ACEOF
10308     rm -f conftest.$ac_objext
10309     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10310     (eval $ac_compile) 2>conftest.er1
10311     ac_status=$?
10312     grep -v '^ *+' conftest.er1 >conftest.err
10313     rm -f conftest.er1
10314     cat conftest.err >&5
10315     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10316     (exit $ac_status); } &&
10317     { ac_try='test -z "$ac_c_werror_flag"
10318     || test ! -s conftest.err'
10319     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10320     (eval $ac_try) 2>&5
10321     ac_status=$?
10322     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10323     (exit $ac_status); }; } &&
10324     { ac_try='test -s conftest.$ac_objext'
10325     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10326     (eval $ac_try) 2>&5
10327     ac_status=$?
10328     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10329     (exit $ac_status); }; }; then
10330     ac_header_compiler=yes
10331     else
10332     echo "$as_me: failed program was:" >&5
10333     sed 's/^/| /' conftest.$ac_ext >&5
10334    
10335     ac_header_compiler=no
10336     fi
10337     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10338     echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10339     echo "${ECHO_T}$ac_header_compiler" >&6
10340    
10341     # Is the header present?
10342     echo "$as_me:$LINENO: checking $ac_header presence" >&5
10343     echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10344     cat >conftest.$ac_ext <<_ACEOF
10345     /* confdefs.h. */
10346     _ACEOF
10347     cat confdefs.h >>conftest.$ac_ext
10348     cat >>conftest.$ac_ext <<_ACEOF
10349     /* end confdefs.h. */
10350     #include <$ac_header>
10351     _ACEOF
10352     if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10353     (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10354     ac_status=$?
10355     grep -v '^ *+' conftest.er1 >conftest.err
10356     rm -f conftest.er1
10357     cat conftest.err >&5
10358     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10359     (exit $ac_status); } >/dev/null; then
10360     if test -s conftest.err; then
10361     ac_cpp_err=$ac_c_preproc_warn_flag
10362     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10363     else
10364     ac_cpp_err=
10365     fi
10366     else
10367     ac_cpp_err=yes
10368     fi
10369     if test -z "$ac_cpp_err"; then
10370     ac_header_preproc=yes
10371     else
10372     echo "$as_me: failed program was:" >&5
10373     sed 's/^/| /' conftest.$ac_ext >&5
10374    
10375     ac_header_preproc=no
10376     fi
10377     rm -f conftest.err conftest.$ac_ext
10378     echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10379     echo "${ECHO_T}$ac_header_preproc" >&6
10380    
10381     # So? What about this header?
10382     case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10383     yes:no: )
10384     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10385     echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10386     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10387     echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10388     ac_header_preproc=yes
10389     ;;
10390     no:yes:* )
10391     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10392     echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10393     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10394     echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10395     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10396     echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10397     { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10398     echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10399     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10400     echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10401     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10402     echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10403     (
10404     cat <<\_ASBOX
10405     ## -------------------------------------- ##
10406     ## Report this to the ircd-hybrid lists. ##
10407     ## -------------------------------------- ##
10408     _ASBOX
10409     ) |
10410     sed "s/^/$as_me: WARNING: /" >&2
10411     ;;
10412     esac
10413     echo "$as_me:$LINENO: checking for $ac_header" >&5
10414     echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10415     if eval "test \"\${$as_ac_Header+set}\" = set"; then
10416     echo $ECHO_N "(cached) $ECHO_C" >&6
10417     else
10418     eval "$as_ac_Header=\$ac_header_preproc"
10419     fi
10420     echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10421     echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10422    
10423     fi
10424     if test `eval echo '${'$as_ac_Header'}'` = yes; then
10425     cat >>confdefs.h <<_ACEOF
10426     #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10427     _ACEOF
10428    
10429     fi
10430    
10431     done
10432    
10433     fi
10434     echo "$as_me:$LINENO: checking for dlsym" >&5
10435     echo $ECHO_N "checking for dlsym... $ECHO_C" >&6
10436     if test "${ac_cv_func_dlsym+set}" = set; then
10437     echo $ECHO_N "(cached) $ECHO_C" >&6
10438     else
10439     cat >conftest.$ac_ext <<_ACEOF
10440     /* confdefs.h. */
10441     _ACEOF
10442     cat confdefs.h >>conftest.$ac_ext
10443     cat >>conftest.$ac_ext <<_ACEOF
10444     /* end confdefs.h. */
10445     /* Define dlsym to an innocuous variant, in case <limits.h> declares dlsym.
10446     For example, HP-UX 11i <limits.h> declares gettimeofday. */
10447     #define dlsym innocuous_dlsym
10448    
10449     /* System header to define __stub macros and hopefully few prototypes,
10450     which can conflict with char dlsym (); below.
10451     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10452     <limits.h> exists even on freestanding compilers. */
10453    
10454     #ifdef __STDC__
10455     # include <limits.h>
10456     #else
10457     # include <assert.h>
10458     #endif
10459    
10460     #undef dlsym
10461    
10462     /* Override any gcc2 internal prototype to avoid an error. */
10463     #ifdef __cplusplus
10464     extern "C"
10465     {
10466     #endif
10467     /* We use char because int might match the return type of a gcc2
10468     builtin and then its argument prototype would still apply. */
10469     char dlsym ();
10470     /* The GNU C library defines this for functions which it implements
10471     to always fail with ENOSYS. Some functions are actually named
10472     something starting with __ and the normal name is an alias. */
10473     #if defined (__stub_dlsym) || defined (__stub___dlsym)
10474     choke me
10475     #else
10476     char (*f) () = dlsym;
10477     #endif
10478     #ifdef __cplusplus
10479     }
10480     #endif
10481    
10482     int
10483     main ()
10484     {
10485     return f != dlsym;
10486     ;
10487     return 0;
10488     }
10489     _ACEOF
10490     rm -f conftest.$ac_objext conftest$ac_exeext
10491     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10492     (eval $ac_link) 2>conftest.er1
10493     ac_status=$?
10494     grep -v '^ *+' conftest.er1 >conftest.err
10495     rm -f conftest.er1
10496     cat conftest.err >&5
10497     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10498     (exit $ac_status); } &&
10499     { ac_try='test -z "$ac_c_werror_flag"
10500     || test ! -s conftest.err'
10501     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10502     (eval $ac_try) 2>&5
10503     ac_status=$?
10504     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10505     (exit $ac_status); }; } &&
10506     { ac_try='test -s conftest$ac_exeext'
10507     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10508     (eval $ac_try) 2>&5
10509     ac_status=$?
10510     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10511     (exit $ac_status); }; }; then
10512     ac_cv_func_dlsym=yes
10513     else
10514     echo "$as_me: failed program was:" >&5
10515     sed 's/^/| /' conftest.$ac_ext >&5
10516    
10517     ac_cv_func_dlsym=no
10518     fi
10519     rm -f conftest.err conftest.$ac_objext \
10520     conftest$ac_exeext conftest.$ac_ext
10521     fi
10522     echo "$as_me:$LINENO: result: $ac_cv_func_dlsym" >&5
10523     echo "${ECHO_T}$ac_cv_func_dlsym" >&6
10524     if test $ac_cv_func_dlsym = yes; then
10525     :
10526     else
10527    
10528     { echo "$as_me:$LINENO: WARNING: dlsym is not available, shared modules disabled" >&5
10529     echo "$as_me: WARNING: dlsym is not available, shared modules disabled" >&2;}
10530     shared_modules=no
10531    
10532     fi
10533    
10534    
10535 db 166
10536     for ac_func in dlfunc dlinfo
10537 adx 30 do
10538     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10539     echo "$as_me:$LINENO: checking for $ac_func" >&5
10540     echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10541     if eval "test \"\${$as_ac_var+set}\" = set"; then
10542     echo $ECHO_N "(cached) $ECHO_C" >&6
10543     else
10544     cat >conftest.$ac_ext <<_ACEOF
10545     /* confdefs.h. */
10546     _ACEOF
10547     cat confdefs.h >>conftest.$ac_ext
10548     cat >>conftest.$ac_ext <<_ACEOF
10549     /* end confdefs.h. */
10550     /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10551     For example, HP-UX 11i <limits.h> declares gettimeofday. */
10552     #define $ac_func innocuous_$ac_func
10553    
10554     /* System header to define __stub macros and hopefully few prototypes,
10555     which can conflict with char $ac_func (); below.
10556     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10557     <limits.h> exists even on freestanding compilers. */
10558    
10559     #ifdef __STDC__
10560     # include <limits.h>
10561     #else
10562     # include <assert.h>
10563     #endif
10564    
10565     #undef $ac_func
10566    
10567     /* Override any gcc2 internal prototype to avoid an error. */
10568     #ifdef __cplusplus
10569     extern "C"
10570     {
10571     #endif
10572     /* We use char because int might match the return type of a gcc2
10573     builtin and then its argument prototype would still apply. */
10574     char $ac_func ();
10575     /* The GNU C library defines this for functions which it implements
10576     to always fail with ENOSYS. Some functions are actually named
10577     something starting with __ and the normal name is an alias. */
10578     #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10579     choke me
10580     #else
10581     char (*f) () = $ac_func;
10582     #endif
10583     #ifdef __cplusplus
10584     }
10585     #endif
10586    
10587     int
10588     main ()
10589     {
10590     return f != $ac_func;
10591     ;
10592     return 0;
10593     }
10594     _ACEOF
10595     rm -f conftest.$ac_objext conftest$ac_exeext
10596     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10597     (eval $ac_link) 2>conftest.er1
10598     ac_status=$?
10599     grep -v '^ *+' conftest.er1 >conftest.err
10600     rm -f conftest.er1
10601     cat conftest.err >&5
10602     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10603     (exit $ac_status); } &&
10604     { ac_try='test -z "$ac_c_werror_flag"
10605     || test ! -s conftest.err'
10606     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10607     (eval $ac_try) 2>&5
10608     ac_status=$?
10609     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10610     (exit $ac_status); }; } &&
10611     { ac_try='test -s conftest$ac_exeext'
10612     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10613     (eval $ac_try) 2>&5
10614     ac_status=$?
10615     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10616     (exit $ac_status); }; }; then
10617     eval "$as_ac_var=yes"
10618     else
10619     echo "$as_me: failed program was:" >&5
10620     sed 's/^/| /' conftest.$ac_ext >&5
10621    
10622     eval "$as_ac_var=no"
10623     fi
10624     rm -f conftest.err conftest.$ac_objext \
10625     conftest$ac_exeext conftest.$ac_ext
10626     fi
10627     echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10628     echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10629     if test `eval echo '${'$as_ac_var'}'` = yes; then
10630     cat >>confdefs.h <<_ACEOF
10631     #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10632     _ACEOF
10633    
10634     fi
10635     done
10636    
10637    
10638     else
10639    
10640     shared_modules=no
10641    
10642     fi
10643    
10644    
10645     fi
10646    
10647     fi
10648    
10649    
10650     cat >>confdefs.h <<_ACEOF
10651     #define SHARED_SUFFIX "$SUFFIX"
10652     _ACEOF
10653    
10654    
10655     if test "$shared_modules" = yes; then
10656     # The GNU linker requires the -export-dynamic option to make
10657     # all symbols visible in the dynamic symbol table.
10658     hold_ldflags=$LDFLAGS
10659     echo "$as_me:$LINENO: checking for the ld -export-dynamic flag" >&5
10660     echo $ECHO_N "checking for the ld -export-dynamic flag... $ECHO_C" >&6
10661     LDFLAGS="${LDFLAGS} -Wl,-export-dynamic"
10662     cat >conftest.$ac_ext <<_ACEOF
10663     /* confdefs.h. */
10664     _ACEOF
10665     cat confdefs.h >>conftest.$ac_ext
10666     cat >>conftest.$ac_ext <<_ACEOF
10667     /* end confdefs.h. */
10668    
10669     int
10670     main ()
10671     {
10672     int i;
10673     ;
10674     return 0;
10675     }
10676     _ACEOF
10677     rm -f conftest.$ac_objext conftest$ac_exeext
10678     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10679     (eval $ac_link) 2>conftest.er1
10680     ac_status=$?
10681     grep -v '^ *+' conftest.er1 >conftest.err
10682     rm -f conftest.er1
10683     cat conftest.err >&5
10684     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10685     (exit $ac_status); } &&
10686     { ac_try='test -z "$ac_c_werror_flag"
10687     || test ! -s conftest.err'
10688     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10689     (eval $ac_try) 2>&5
10690     ac_status=$?
10691     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10692     (exit $ac_status); }; } &&
10693     { ac_try='test -s conftest$ac_exeext'
10694     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10695     (eval $ac_try) 2>&5
10696     ac_status=$?
10697     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10698     (exit $ac_status); }; }; then
10699     found=yes
10700     else
10701     echo "$as_me: failed program was:" >&5
10702     sed 's/^/| /' conftest.$ac_ext >&5
10703    
10704     found=no
10705     fi
10706     rm -f conftest.err conftest.$ac_objext \
10707     conftest$ac_exeext conftest.$ac_ext
10708     LDFLAGS=$hold_ldflags
10709    
10710     if expr "`uname -s`" : ^IRIX >/dev/null 2>&1; then
10711     found="no, IRIX ld uses -B,dynamic"
10712     LDFLAGS="${LDFLAGS} -Wl,-B,dynamic"
10713     fi
10714    
10715     echo "$as_me:$LINENO: result: $found" >&5
10716     echo "${ECHO_T}$found" >&6
10717    
10718     if test "$found" = yes; then
10719     LDFLAGS="${LDFLAGS} -Wl,-export-dynamic"
10720     fi
10721    
10722     echo "$as_me:$LINENO: checking for compiler option to produce PIC" >&5
10723     echo $ECHO_N "checking for compiler option to produce PIC... $ECHO_C" >&6
10724     if test "$SGS" = "yes"; then
10725     echo "$as_me:$LINENO: result: SVR4 SGS interfaces: -KPIC -DPIC -G" >&5
10726     echo "${ECHO_T}SVR4 SGS interfaces: -KPIC -DPIC -G" >&6
10727     PICFLAGS="-KPIC -DPIC -G"
10728     fi
10729    
10730     if test "$AppleGCC" = "yes"; then
10731     echo "$as_me:$LINENO: result: Darwin Mach-O bundles: -fno-common -bundle -flat_namespace -undefined suppress" >&5
10732     echo "${ECHO_T}Darwin Mach-O bundles: -fno-common -bundle -flat_namespace -undefined suppress" >&6
10733     PICFLAGS="-fno-common -bundle -flat_namespace -undefined suppress"
10734     fi
10735     if test "$HPUX" = "yes" -a "$ac_cv_c_compiler_gnu" = no; then
10736     echo "$as_me:$LINENO: result: HP-UX cc: +z -r -q -n" >&5
10737     echo "${ECHO_T}HP-UX cc: +z -r -q -n" >&6
10738     PICFLAGS="+z -r -q -n -c"
10739     echo "$as_me:$LINENO: checking if +ESfic is required on this platform" >&5
10740     echo $ECHO_N "checking if +ESfic is required on this platform... $ECHO_C" >&6
10741    
10742     if expr "`$CC +ESfic 2>&1`" : ".*neither supported.*" >/dev/null; then
10743     echo "$as_me:$LINENO: result: no" >&5
10744     echo "${ECHO_T}no" >&6
10745     else
10746     echo "$as_me:$LINENO: result: yes" >&5
10747     echo "${ECHO_T}yes" >&6
10748     PICFLAGS="$PICFLAGS +ESfic"
10749     fi
10750    
10751     LDFLAGS="${LDFLAGS} -Wl,-E"
10752     fi
10753     if test "$Tru" = yes -a "$ac_cv_c_compiler_gnu" = no; then
10754     echo "$as_me:$LINENO: result: Tru64: -shared -expect_unresolved '*'" >&5
10755     echo "${ECHO_T}Tru64: -shared -expect_unresolved '*'" >&6
10756     PICFLAGS="-shared -expect_unresolved '*' "
10757     LDFLAGS="-call_shared"
10758     fi
10759     if test -z "$PICFLAGS"; then
10760     if test "$ac_cv_c_compiler_gnu" = "yes"; then
10761     echo "$as_me:$LINENO: result: gcc: -fPIC -DPIC -shared" >&5
10762     echo "${ECHO_T}gcc: -fPIC -DPIC -shared" >&6
10763     PICFLAGS="-fPIC -DPIC -shared"
10764     else
10765     echo "$as_me:$LINENO: result: no" >&5
10766     echo "${ECHO_T}no" >&6
10767     shared_modules=no
10768     fi
10769     fi
10770     fi
10771    
10772     if test "$shared_modules" = no; then
10773     DYNLINK_C=""
10774     MOD_TARGET="libmodules.a"
10775     MODULES_LIBS="../modules/libmodules.a"
10776     SEDOBJ=""
10777    
10778     cat >>confdefs.h <<\_ACEOF
10779     #define STATIC_MODULES 1
10780     _ACEOF
10781    
10782     { echo "$as_me:$LINENO: WARNING: shared module support has been disabled!" >&5
10783     echo "$as_me: WARNING: shared module support has been disabled!" >&2;}
10784     fi
10785    
10786    
10787    
10788    
10789    
10790    
10791    
10792    
10793    
10794    
10795    
10796    
10797    
10798    
10799     if test "$prefix" = "NONE"; then
10800    
10801     cat >>confdefs.h <<_ACEOF
10802     #define IRCD_PREFIX "$ac_default_prefix"
10803     _ACEOF
10804    
10805    
10806     else
10807    
10808    
10809     prefix=`echo $prefix | sed 's/\/$//'`
10810    
10811     cat >>confdefs.h <<_ACEOF
10812     #define IRCD_PREFIX "$prefix"
10813     _ACEOF
10814    
10815    
10816     fi
10817    
10818     ac_config_files="$ac_config_files Makefile etc/Makefile servlink/Makefile contrib/Makefile contrib/help/Makefile src/Makefile messages/Makefile modules/Makefile tools/Makefile doc/Makefile help/Makefile lib/Makefile lib/pcre/Makefile"
10819    
10820    
10821     cat >confcache <<\_ACEOF
10822     # This file is a shell script that caches the results of configure
10823     # tests run on this system so they can be shared between configure
10824     # scripts and configure runs, see configure's option --config-cache.
10825     # It is not useful on other systems. If it contains results you don't
10826     # want to keep, you may remove or edit it.
10827     #
10828     # config.status only pays attention to the cache file if you give it
10829     # the --recheck option to rerun configure.
10830     #
10831     # `ac_cv_env_foo' variables (set or unset) will be overridden when
10832     # loading this file, other *unset* `ac_cv_foo' will be assigned the
10833     # following values.
10834    
10835     _ACEOF
10836    
10837     # The following way of writing the cache mishandles newlines in values,
10838     # but we know of no workaround that is simple, portable, and efficient.
10839     # So, don't put newlines in cache variables' values.
10840     # Ultrix sh set writes to stderr and can't be redirected directly,
10841     # and sets the high bit in the cache file unless we assign to the vars.
10842     {
10843     (set) 2>&1 |
10844     case `(ac_space=' '; set | grep ac_space) 2>&1` in
10845     *ac_space=\ *)
10846     # `set' does not quote correctly, so add quotes (double-quote
10847     # substitution turns \\\\ into \\, and sed turns \\ into \).
10848     sed -n \
10849     "s/'/'\\\\''/g;
10850     s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10851     ;;
10852     *)
10853     # `set' quotes correctly as required by POSIX, so do not add quotes.
10854     sed -n \
10855     "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
10856     ;;
10857     esac;
10858     } |
10859     sed '
10860     t clear
10861     : clear
10862     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10863     t end
10864     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10865     : end' >>confcache
10866     if diff $cache_file confcache >/dev/null 2>&1; then :; else
10867     if test -w $cache_file; then
10868     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10869     cat confcache >$cache_file
10870     else
10871     echo "not updating unwritable cache $cache_file"
10872     fi
10873     fi
10874     rm -f confcache
10875    
10876     test "x$prefix" = xNONE && prefix=$ac_default_prefix
10877     # Let make expand exec_prefix.
10878     test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10879    
10880     # VPATH may cause trouble with some makes, so we remove $(srcdir),
10881     # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10882     # trailing colons and then remove the whole line if VPATH becomes empty
10883     # (actually we leave an empty line to preserve line numbers).
10884     if test "x$srcdir" = x.; then
10885     ac_vpsub='/^[ ]*VPATH[ ]*=/{
10886     s/:*\$(srcdir):*/:/;
10887     s/:*\${srcdir}:*/:/;
10888     s/:*@srcdir@:*/:/;
10889     s/^\([^=]*=[ ]*\):*/\1/;
10890     s/:*$//;
10891     s/^[^=]*=[ ]*$//;
10892     }'
10893     fi
10894    
10895     DEFS=-DHAVE_CONFIG_H
10896    
10897     ac_libobjs=
10898     ac_ltlibobjs=
10899     for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10900     # 1. Remove the extension, and $U if already installed.
10901     ac_i=`echo "$ac_i" |
10902     sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
10903     # 2. Add them.
10904     ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
10905     ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
10906     done
10907     LIBOBJS=$ac_libobjs
10908    
10909     LTLIBOBJS=$ac_ltlibobjs
10910    
10911    
10912    
10913     : ${CONFIG_STATUS=./config.status}
10914     ac_clean_files_save=$ac_clean_files
10915     ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10916     { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
10917     echo "$as_me: creating $CONFIG_STATUS" >&6;}
10918     cat >$CONFIG_STATUS <<_ACEOF
10919     #! $SHELL
10920     # Generated by $as_me.
10921     # Run this file to recreate the current configuration.
10922     # Compiler output produced by configure, useful for debugging
10923     # configure, is in config.log if it exists.
10924    
10925     debug=false
10926     ac_cs_recheck=false
10927     ac_cs_silent=false
10928     SHELL=\${CONFIG_SHELL-$SHELL}
10929     _ACEOF
10930    
10931     cat >>$CONFIG_STATUS <<\_ACEOF
10932     ## --------------------- ##
10933     ## M4sh Initialization. ##
10934     ## --------------------- ##
10935    
10936     # Be Bourne compatible
10937     if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
10938     emulate sh
10939     NULLCMD=:
10940     # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
10941     # is contrary to our usage. Disable this feature.
10942     alias -g '${1+"$@"}'='"$@"'
10943     elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
10944     set -o posix
10945     fi
10946     DUALCASE=1; export DUALCASE # for MKS sh
10947    
10948     # Support unset when possible.
10949     if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10950     as_unset=unset
10951     else
10952     as_unset=false
10953     fi
10954    
10955    
10956     # Work around bugs in pre-3.0 UWIN ksh.
10957     $as_unset ENV MAIL MAILPATH
10958     PS1='$ '
10959     PS2='> '
10960     PS4='+ '
10961    
10962     # NLS nuisances.
10963     for as_var in \
10964     LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
10965     LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
10966     LC_TELEPHONE LC_TIME
10967     do
10968     if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
10969     eval $as_var=C; export $as_var
10970     else
10971     $as_unset $as_var
10972     fi
10973     done
10974    
10975     # Required to use basename.
10976     if expr a : '\(a\)' >/dev/null 2>&1; then
10977     as_expr=expr
10978     else
10979     as_expr=false
10980     fi
10981    
10982     if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
10983     as_basename=basename
10984     else
10985     as_basename=false
10986     fi
10987    
10988    
10989     # Name of the executable.
10990     as_me=`$as_basename "$0" ||
10991     $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10992     X"$0" : 'X\(//\)$' \| \
10993     X"$0" : 'X\(/\)$' \| \
10994     . : '\(.\)' 2>/dev/null ||
10995     echo X/"$0" |
10996     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
10997     /^X\/\(\/\/\)$/{ s//\1/; q; }
10998     /^X\/\(\/\).*/{ s//\1/; q; }
10999     s/.*/./; q'`
11000    
11001    
11002     # PATH needs CR, and LINENO needs CR and PATH.
11003     # Avoid depending upon Character Ranges.
11004     as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11005     as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11006     as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11007     as_cr_digits='0123456789'
11008     as_cr_alnum=$as_cr_Letters$as_cr_digits
11009    
11010     # The user is always right.
11011     if test "${PATH_SEPARATOR+set}" != set; then
11012     echo "#! /bin/sh" >conf$$.sh
11013     echo "exit 0" >>conf$$.sh
11014     chmod +x conf$$.sh
11015     if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11016     PATH_SEPARATOR=';'
11017     else
11018     PATH_SEPARATOR=:
11019     fi
11020     rm -f conf$$.sh
11021     fi
11022    
11023    
11024     as_lineno_1=$LINENO
11025     as_lineno_2=$LINENO
11026     as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11027     test "x$as_lineno_1" != "x$as_lineno_2" &&
11028     test "x$as_lineno_3" = "x$as_lineno_2" || {
11029     # Find who we are. Look in the path if we contain no path at all
11030     # relative or not.
11031     case $0 in
11032     *[\\/]* ) as_myself=$0 ;;
11033     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11034     for as_dir in $PATH
11035     do
11036     IFS=$as_save_IFS
11037     test -z "$as_dir" && as_dir=.
11038     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11039     done
11040    
11041     ;;
11042     esac
11043     # We did not find ourselves, most probably we were run as `sh COMMAND'
11044     # in which case we are not to be found in the path.
11045     if test "x$as_myself" = x; then
11046     as_myself=$0
11047     fi
11048     if test ! -f "$as_myself"; then
11049     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
11050     echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
11051     { (exit 1); exit 1; }; }
11052     fi
11053     case $CONFIG_SHELL in
11054     '')
11055     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11056     for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
11057     do
11058     IFS=$as_save_IFS
11059     test -z "$as_dir" && as_dir=.
11060     for as_base in sh bash ksh sh5; do
11061     case $as_dir in
11062     /*)
11063     if ("$as_dir/$as_base" -c '
11064     as_lineno_1=$LINENO
11065     as_lineno_2=$LINENO
11066     as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11067     test "x$as_lineno_1" != "x$as_lineno_2" &&
11068     test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
11069     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
11070     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
11071     CONFIG_SHELL=$as_dir/$as_base
11072     export CONFIG_SHELL
11073     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
11074     fi;;
11075     esac
11076     done
11077     done
11078     ;;
11079     esac
11080    
11081     # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11082     # uniformly replaced by the line number. The first 'sed' inserts a
11083     # line-number line before each line; the second 'sed' does the real
11084     # work. The second script uses 'N' to pair each line-number line
11085     # with the numbered line, and appends trailing '-' during
11086     # substitution so that $LINENO is not a special case at line end.
11087     # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11088     # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
11089     sed '=' <$as_myself |
11090     sed '
11091     N
11092     s,$,-,
11093     : loop
11094     s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
11095     t loop
11096     s,-$,,
11097     s,^['$as_cr_digits']*\n,,
11098     ' >$as_me.lineno &&
11099     chmod +x $as_me.lineno ||
11100     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
11101     echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
11102     { (exit 1); exit 1; }; }
11103    
11104     # Don't try to exec as it changes $[0], causing all sort of problems
11105     # (the dirname of $[0] is not the place where we might find the
11106     # original and so on. Autoconf is especially sensible to this).
11107     . ./$as_me.lineno
11108     # Exit status is that of the last command.
11109     exit
11110     }
11111    
11112    
11113     case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
11114     *c*,-n*) ECHO_N= ECHO_C='
11115     ' ECHO_T=' ' ;;
11116     *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
11117     *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
11118     esac
11119    
11120     if expr a : '\(a\)' >/dev/null 2>&1; then
11121     as_expr=expr
11122     else
11123     as_expr=false
11124     fi
11125    
11126     rm -f conf$$ conf$$.exe conf$$.file
11127     echo >conf$$.file
11128     if ln -s conf$$.file conf$$ 2>/dev/null; then
11129     # We could just check for DJGPP; but this test a) works b) is more generic
11130     # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
11131     if test -f conf$$.exe; then
11132     # Don't use ln at all; we don't have any links
11133     as_ln_s='cp -p'
11134     else
11135     as_ln_s='ln -s'
11136     fi
11137     elif ln conf$$.file conf$$ 2>/dev/null; then
11138     as_ln_s=ln
11139     else
11140     as_ln_s='cp -p'
11141     fi
11142     rm -f conf$$ conf$$.exe conf$$.file
11143    
11144     if mkdir -p . 2>/dev/null; then
11145     as_mkdir_p=:
11146     else
11147     test -d ./-p && rmdir ./-p
11148     as_mkdir_p=false
11149     fi
11150    
11151     as_executable_p="test -f"
11152    
11153     # Sed expression to map a string onto a valid CPP name.
11154     as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11155    
11156     # Sed expression to map a string onto a valid variable name.
11157     as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11158    
11159    
11160     # IFS
11161     # We need space, tab and new line, in precisely that order.
11162     as_nl='
11163     '
11164     IFS=" $as_nl"
11165    
11166     # CDPATH.
11167     $as_unset CDPATH
11168    
11169     exec 6>&1
11170    
11171     # Open the log real soon, to keep \$[0] and so on meaningful, and to
11172     # report actual input values of CONFIG_FILES etc. instead of their
11173     # values after options handling. Logging --version etc. is OK.
11174     exec 5>>config.log
11175     {
11176     echo
11177     sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11178     ## Running $as_me. ##
11179     _ASBOX
11180     } >&5
11181     cat >&5 <<_CSEOF
11182    
11183     This file was extended by ircd-hybrid $as_me 7.2, which was
11184     generated by GNU Autoconf 2.59. Invocation command line was
11185    
11186     CONFIG_FILES = $CONFIG_FILES
11187     CONFIG_HEADERS = $CONFIG_HEADERS
11188     CONFIG_LINKS = $CONFIG_LINKS
11189     CONFIG_COMMANDS = $CONFIG_COMMANDS
11190     $ $0 $@
11191    
11192     _CSEOF
11193     echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
11194     echo >&5
11195     _ACEOF
11196    
11197     # Files that config.status was made for.
11198     if test -n "$ac_config_files"; then
11199     echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
11200     fi
11201    
11202     if test -n "$ac_config_headers"; then
11203     echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
11204     fi
11205    
11206     if test -n "$ac_config_links"; then
11207     echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
11208     fi
11209    
11210     if test -n "$ac_config_commands"; then
11211     echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
11212     fi
11213    
11214     cat >>$CONFIG_STATUS <<\_ACEOF
11215    
11216     ac_cs_usage="\
11217     \`$as_me' instantiates files from templates according to the
11218     current configuration.
11219    
11220     Usage: $0 [OPTIONS] [FILE]...
11221    
11222     -h, --help print this help, then exit
11223     -V, --version print version number, then exit
11224     -q, --quiet do not print progress messages
11225     -d, --debug don't remove temporary files
11226     --recheck update $as_me by reconfiguring in the same conditions
11227     --file=FILE[:TEMPLATE]
11228     instantiate the configuration file FILE
11229     --header=FILE[:TEMPLATE]
11230     instantiate the configuration header FILE
11231    
11232     Configuration files:
11233     $config_files
11234    
11235     Configuration headers:
11236     $config_headers
11237    
11238     Report bugs to <bug-autoconf@gnu.org>."
11239     _ACEOF
11240    
11241     cat >>$CONFIG_STATUS <<_ACEOF
11242     ac_cs_version="\\
11243     ircd-hybrid config.status 7.2
11244     configured by $0, generated by GNU Autoconf 2.59,
11245     with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
11246    
11247     Copyright (C) 2003 Free Software Foundation, Inc.
11248     This config.status script is free software; the Free Software Foundation
11249     gives unlimited permission to copy, distribute and modify it."
11250     srcdir=$srcdir
11251     INSTALL="$INSTALL"
11252     _ACEOF
11253    
11254     cat >>$CONFIG_STATUS <<\_ACEOF
11255     # If no file are specified by the user, then we need to provide default
11256     # value. By we need to know if files were specified by the user.
11257     ac_need_defaults=:
11258     while test $# != 0
11259     do
11260     case $1 in
11261     --*=*)
11262     ac_option=`expr "x$1" : 'x\([^=]*\)='`
11263     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
11264     ac_shift=:
11265     ;;
11266     -*)
11267     ac_option=$1
11268     ac_optarg=$2
11269     ac_shift=shift
11270     ;;
11271     *) # This is not an option, so the user has probably given explicit
11272     # arguments.
11273     ac_option=$1
11274     ac_need_defaults=false;;
11275     esac
11276    
11277     case $ac_option in
11278     # Handling of the options.
11279     _ACEOF
11280     cat >>$CONFIG_STATUS <<\_ACEOF
11281     -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11282     ac_cs_recheck=: ;;
11283     --version | --vers* | -V )
11284     echo "$ac_cs_version"; exit 0 ;;
11285     --he | --h)
11286     # Conflict between --help and --header
11287     { { echo "$as_me:$LINENO: error: ambiguous option: $1
11288     Try \`$0 --help' for more information." >&5
11289     echo "$as_me: error: ambiguous option: $1
11290     Try \`$0 --help' for more information." >&2;}
11291     { (exit 1); exit 1; }; };;
11292     --help | --hel | -h )
11293     echo "$ac_cs_usage"; exit 0 ;;
11294     --debug | --d* | -d )
11295     debug=: ;;
11296     --file | --fil | --fi | --f )
11297     $ac_shift
11298     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
11299     ac_need_defaults=false;;
11300     --header | --heade | --head | --hea )
11301     $ac_shift
11302     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
11303     ac_need_defaults=false;;
11304     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11305     | -silent | --silent | --silen | --sile | --sil | --si | --s)
11306     ac_cs_silent=: ;;
11307    
11308     # This is an error.
11309     -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
11310     Try \`$0 --help' for more information." >&5
11311     echo "$as_me: error: unrecognized option: $1
11312     Try \`$0 --help' for more information." >&2;}
11313     { (exit 1); exit 1; }; } ;;
11314    
11315     *) ac_config_targets="$ac_config_targets $1" ;;
11316    
11317     esac
11318     shift
11319     done
11320    
11321     ac_configure_extra_args=
11322    
11323     if $ac_cs_silent; then
11324     exec 6>/dev/null
11325     ac_configure_extra_args="$ac_configure_extra_args --silent"
11326     fi
11327    
11328     _ACEOF
11329     cat >>$CONFIG_STATUS <<_ACEOF
11330     if \$ac_cs_recheck; then
11331     echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
11332     exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11333     fi
11334    
11335     _ACEOF
11336    
11337    
11338    
11339    
11340    
11341     cat >>$CONFIG_STATUS <<\_ACEOF
11342     for ac_config_target in $ac_config_targets
11343     do
11344     case "$ac_config_target" in
11345     # Handling of arguments.
11346     "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11347     "etc/Makefile" ) CONFIG_FILES="$CONFIG_FILES etc/Makefile" ;;
11348     "servlink/Makefile" ) CONFIG_FILES="$CONFIG_FILES servlink/Makefile" ;;
11349     "contrib/Makefile" ) CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;;
11350     "contrib/help/Makefile" ) CONFIG_FILES="$CONFIG_FILES contrib/help/Makefile" ;;
11351     "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
11352     "messages/Makefile" ) CONFIG_FILES="$CONFIG_FILES messages/Makefile" ;;
11353     "modules/Makefile" ) CONFIG_FILES="$CONFIG_FILES modules/Makefile" ;;
11354     "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
11355     "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
11356     "help/Makefile" ) CONFIG_FILES="$CONFIG_FILES help/Makefile" ;;
11357     "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
11358     "lib/pcre/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/pcre/Makefile" ;;
11359     "include/setup.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/setup.h" ;;
11360     *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
11361     echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
11362     { (exit 1); exit 1; }; };;
11363     esac
11364     done
11365    
11366     # If the user did not use the arguments to specify the items to instantiate,
11367     # then the envvar interface is used. Set only those that are not.
11368     # We use the long form for the default assignment because of an extremely
11369     # bizarre bug on SunOS 4.1.3.
11370     if $ac_need_defaults; then
11371     test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11372     test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11373     fi
11374    
11375     # Have a temporary directory for convenience. Make it in the build tree
11376     # simply because there is no reason to put it here, and in addition,
11377     # creating and moving files from /tmp can sometimes cause problems.
11378     # Create a temporary directory, and hook for its removal unless debugging.
11379     $debug ||
11380     {
11381     trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
11382     trap '{ (exit 1); exit 1; }' 1 2 13 15
11383     }
11384    
11385     # Create a (secure) tmp directory for tmp files.
11386    
11387     {
11388     tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
11389     test -n "$tmp" && test -d "$tmp"
11390     } ||
11391     {
11392     tmp=./confstat$$-$RANDOM
11393     (umask 077 && mkdir $tmp)
11394     } ||
11395     {
11396     echo "$me: cannot create a temporary directory in ." >&2
11397     { (exit 1); exit 1; }
11398     }
11399    
11400     _ACEOF
11401    
11402     cat >>$CONFIG_STATUS <<_ACEOF
11403    
11404     #
11405     # CONFIG_FILES section.
11406     #
11407    
11408     # No need to generate the scripts if there are no CONFIG_FILES.
11409     # This happens for instance when ./config.status config.h
11410     if test -n "\$CONFIG_FILES"; then
11411     # Protect against being on the right side of a sed subst in config.status.
11412     sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
11413     s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
11414     s,@SHELL@,$SHELL,;t t
11415     s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
11416     s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
11417     s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
11418     s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
11419     s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
11420     s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
11421     s,@exec_prefix@,$exec_prefix,;t t
11422     s,@prefix@,$prefix,;t t
11423     s,@program_transform_name@,$program_transform_name,;t t
11424     s,@bindir@,$bindir,;t t
11425     s,@sbindir@,$sbindir,;t t
11426     s,@libexecdir@,$libexecdir,;t t
11427     s,@datadir@,$datadir,;t t
11428     s,@sysconfdir@,$sysconfdir,;t t
11429     s,@sharedstatedir@,$sharedstatedir,;t t
11430     s,@localstatedir@,$localstatedir,;t t
11431     s,@libdir@,$libdir,;t t
11432     s,@includedir@,$includedir,;t t
11433     s,@oldincludedir@,$oldincludedir,;t t
11434     s,@infodir@,$infodir,;t t
11435     s,@mandir@,$mandir,;t t
11436     s,@build_alias@,$build_alias,;t t
11437     s,@host_alias@,$host_alias,;t t
11438     s,@target_alias@,$target_alias,;t t
11439     s,@DEFS@,$DEFS,;t t
11440     s,@ECHO_C@,$ECHO_C,;t t
11441     s,@ECHO_N@,$ECHO_N,;t t
11442     s,@ECHO_T@,$ECHO_T,;t t
11443     s,@LIBS@,$LIBS,;t t
11444     s,@CC@,$CC,;t t
11445     s,@CFLAGS@,$CFLAGS,;t t
11446     s,@LDFLAGS@,$LDFLAGS,;t t
11447     s,@CPPFLAGS@,$CPPFLAGS,;t t
11448     s,@ac_ct_CC@,$ac_ct_CC,;t t
11449     s,@EXEEXT@,$EXEEXT,;t t
11450     s,@OBJEXT@,$OBJEXT,;t t
11451     s,@MKDEP@,$MKDEP,;t t
11452     s,@MAKEDEPEND@,$MAKEDEPEND,;t t
11453     s,@STDOUT@,$STDOUT,;t t
11454     s,@CPP@,$CPP,;t t
11455     s,@EGREP@,$EGREP,;t t
11456     s,@SET_MAKE@,$SET_MAKE,;t t
11457     s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
11458     s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
11459     s,@INSTALL_DATA@,$INSTALL_DATA,;t t
11460     s,@RM@,$RM,;t t
11461     s,@CP@,$CP,;t t
11462     s,@MV@,$MV,;t t
11463     s,@LN@,$LN,;t t
11464     s,@SED@,$SED,;t t
11465     s,@AR@,$AR,;t t
11466     s,@LD@,$LD,;t t
11467     s,@TEST@,$TEST,;t t
11468     s,@INET_MISC@,$INET_MISC,;t t
11469     s,@CRYPT_C@,$CRYPT_C,;t t
11470     s,@CRYPT_LIB@,$CRYPT_LIB,;t t
11471     s,@SNPRINTF_C@,$SNPRINTF_C,;t t
11472     s,@ENCSPEED@,$ENCSPEED,;t t
11473     s,@ZLIB_LD@,$ZLIB_LD,;t t
11474     s,@SELECT_TYPE@,$SELECT_TYPE,;t t
11475     s,@CLOBBER@,$CLOBBER,;t t
11476     s,@BALLOC_C@,$BALLOC_C,;t t
11477     s,@EXAMPLE_CONF@,$EXAMPLE_CONF,;t t
11478     s,@MODULES_LIBS@,$MODULES_LIBS,;t t
11479     s,@MOD_TARGET@,$MOD_TARGET,;t t
11480     s,@SSL_SRCS_ENABLE@,$SSL_SRCS_ENABLE,;t t
11481     s,@SSL_INCLUDES@,$SSL_INCLUDES,;t t
11482     s,@SSL_LIBS@,$SSL_LIBS,;t t
11483     s,@PICFLAGS@,$PICFLAGS,;t t
11484     s,@IRC_CFLAGS@,$IRC_CFLAGS,;t t
11485     s,@SEDOBJ@,$SEDOBJ,;t t
11486     s,@DYNLINK_C@,$DYNLINK_C,;t t
11487     s,@LIBOBJS@,$LIBOBJS,;t t
11488     s,@LTLIBOBJS@,$LTLIBOBJS,;t t
11489     CEOF
11490    
11491     _ACEOF
11492    
11493     cat >>$CONFIG_STATUS <<\_ACEOF
11494     # Split the substitutions into bite-sized pieces for seds with
11495     # small command number limits, like on Digital OSF/1 and HP-UX.
11496     ac_max_sed_lines=48
11497     ac_sed_frag=1 # Number of current file.
11498     ac_beg=1 # First line for current file.
11499     ac_end=$ac_max_sed_lines # Line after last line for current file.
11500     ac_more_lines=:
11501     ac_sed_cmds=
11502     while $ac_more_lines; do
11503     if test $ac_beg -gt 1; then
11504     sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11505     else
11506     sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11507     fi
11508     if test ! -s $tmp/subs.frag; then
11509     ac_more_lines=false
11510     else
11511     # The purpose of the label and of the branching condition is to
11512     # speed up the sed processing (if there are no `@' at all, there
11513     # is no need to browse any of the substitutions).
11514     # These are the two extra sed commands mentioned above.
11515     (echo ':t
11516     /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
11517     if test -z "$ac_sed_cmds"; then
11518     ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
11519     else
11520     ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
11521     fi
11522     ac_sed_frag=`expr $ac_sed_frag + 1`
11523     ac_beg=$ac_end
11524     ac_end=`expr $ac_end + $ac_max_sed_lines`
11525     fi
11526     done
11527     if test -z "$ac_sed_cmds"; then
11528     ac_sed_cmds=cat
11529     fi
11530     fi # test -n "$CONFIG_FILES"
11531    
11532     _ACEOF
11533     cat >>$CONFIG_STATUS <<\_ACEOF
11534     for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
11535     # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11536     case $ac_file in
11537     - | *:- | *:-:* ) # input from stdin
11538     cat >$tmp/stdin
11539     ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11540     ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11541     *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11542     ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11543     * ) ac_file_in=$ac_file.in ;;
11544     esac
11545    
11546     # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
11547     ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11548     $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11549     X"$ac_file" : 'X\(//\)[^/]' \| \
11550     X"$ac_file" : 'X\(//\)$' \| \
11551     X"$ac_file" : 'X\(/\)' \| \
11552     . : '\(.\)' 2>/dev/null ||
11553     echo X"$ac_file" |
11554     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11555     /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11556     /^X\(\/\/\)$/{ s//\1/; q; }
11557     /^X\(\/\).*/{ s//\1/; q; }
11558     s/.*/./; q'`
11559     { if $as_mkdir_p; then
11560     mkdir -p "$ac_dir"
11561     else
11562     as_dir="$ac_dir"
11563     as_dirs=
11564     while test ! -d "$as_dir"; do
11565     as_dirs="$as_dir $as_dirs"
11566     as_dir=`(dirname "$as_dir") 2>/dev/null ||
11567     $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11568     X"$as_dir" : 'X\(//\)[^/]' \| \
11569     X"$as_dir" : 'X\(//\)$' \| \
11570     X"$as_dir" : 'X\(/\)' \| \
11571     . : '\(.\)' 2>/dev/null ||
11572     echo X"$as_dir" |
11573     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11574     /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11575     /^X\(\/\/\)$/{ s//\1/; q; }
11576     /^X\(\/\).*/{ s//\1/; q; }
11577     s/.*/./; q'`
11578     done
11579     test ! -n "$as_dirs" || mkdir $as_dirs
11580     fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11581     echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11582     { (exit 1); exit 1; }; }; }
11583    
11584     ac_builddir=.
11585    
11586     if test "$ac_dir" != .; then
11587     ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11588     # A "../" for each directory in $ac_dir_suffix.
11589     ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
11590     else
11591     ac_dir_suffix= ac_top_builddir=
11592     fi
11593    
11594     case $srcdir in
11595     .) # No --srcdir option. We are building in place.
11596     ac_srcdir=.
11597     if test -z "$ac_top_builddir"; then
11598     ac_top_srcdir=.
11599     else
11600     ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
11601     fi ;;
11602     [\\/]* | ?:[\\/]* ) # Absolute path.
11603     ac_srcdir=$srcdir$ac_dir_suffix;
11604     ac_top_srcdir=$srcdir ;;
11605     *) # Relative path.
11606     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
11607     ac_top_srcdir=$ac_top_builddir$srcdir ;;
11608     esac
11609    
11610     # Do not use `cd foo && pwd` to compute absolute paths, because
11611     # the directories may not exist.
11612     case `pwd` in
11613     .) ac_abs_builddir="$ac_dir";;
11614     *)
11615     case "$ac_dir" in
11616     .) ac_abs_builddir=`pwd`;;
11617     [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
11618     *) ac_abs_builddir=`pwd`/"$ac_dir";;
11619     esac;;
11620     esac
11621     case $ac_abs_builddir in
11622     .) ac_abs_top_builddir=${ac_top_builddir}.;;
11623     *)
11624     case ${ac_top_builddir}. in
11625     .) ac_abs_top_builddir=$ac_abs_builddir;;
11626     [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
11627     *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
11628     esac;;
11629     esac
11630     case $ac_abs_builddir in
11631     .) ac_abs_srcdir=$ac_srcdir;;
11632     *)
11633     case $ac_srcdir in
11634     .) ac_abs_srcdir=$ac_abs_builddir;;
11635     [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
11636     *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
11637     esac;;
11638     esac
11639     case $ac_abs_builddir in
11640     .) ac_abs_top_srcdir=$ac_top_srcdir;;
11641     *)
11642     case $ac_top_srcdir in
11643     .) ac_abs_top_srcdir=$ac_abs_builddir;;
11644     [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
11645     *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
11646     esac;;
11647     esac
11648    
11649    
11650     case $INSTALL in
11651     [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11652     *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
11653     esac
11654    
11655     if test x"$ac_file" != x-; then
11656     { echo "$as_me:$LINENO: creating $ac_file" >&5
11657     echo "$as_me: creating $ac_file" >&6;}
11658     rm -f "$ac_file"
11659     fi
11660     # Let's still pretend it is `configure' which instantiates (i.e., don't
11661     # use $as_me), people would be surprised to read:
11662     # /* config.h. Generated by config.status. */
11663     if test x"$ac_file" = x-; then
11664     configure_input=
11665     else
11666     configure_input="$ac_file. "
11667     fi
11668     configure_input=$configure_input"Generated from `echo $ac_file_in |
11669     sed 's,.*/,,'` by configure."
11670    
11671     # First look for the input files in the build tree, otherwise in the
11672     # src tree.
11673     ac_file_inputs=`IFS=:
11674     for f in $ac_file_in; do
11675     case $f in
11676     -) echo $tmp/stdin ;;
11677     [\\/$]*)
11678     # Absolute (can't be DOS-style, as IFS=:)
11679     test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11680     echo "$as_me: error: cannot find input file: $f" >&2;}
11681     { (exit 1); exit 1; }; }
11682     echo "$f";;
11683     *) # Relative
11684     if test -f "$f"; then
11685     # Build tree
11686     echo "$f"
11687     elif test -f "$srcdir/$f"; then
11688     # Source tree
11689     echo "$srcdir/$f"
11690     else
11691     # /dev/null tree
11692     { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11693     echo "$as_me: error: cannot find input file: $f" >&2;}
11694     { (exit 1); exit 1; }; }
11695     fi;;
11696     esac
11697     done` || { (exit 1); exit 1; }
11698     _ACEOF
11699     cat >>$CONFIG_STATUS <<_ACEOF
11700     sed "$ac_vpsub
11701     $extrasub
11702     _ACEOF
11703     cat >>$CONFIG_STATUS <<\_ACEOF
11704     :t
11705     /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11706     s,@configure_input@,$configure_input,;t t
11707     s,@srcdir@,$ac_srcdir,;t t
11708     s,@abs_srcdir@,$ac_abs_srcdir,;t t
11709     s,@top_srcdir@,$ac_top_srcdir,;t t
11710     s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
11711     s,@builddir@,$ac_builddir,;t t
11712     s,@abs_builddir@,$ac_abs_builddir,;t t
11713     s,@top_builddir@,$ac_top_builddir,;t t
11714     s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
11715     s,@INSTALL@,$ac_INSTALL,;t t
11716     " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
11717     rm -f $tmp/stdin
11718     if test x"$ac_file" != x-; then
11719     mv $tmp/out $ac_file
11720     else
11721     cat $tmp/out
11722     rm -f $tmp/out
11723     fi
11724    
11725     done
11726     _ACEOF
11727     cat >>$CONFIG_STATUS <<\_ACEOF
11728    
11729     #
11730     # CONFIG_HEADER section.
11731     #
11732    
11733     # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
11734     # NAME is the cpp macro being defined and VALUE is the value it is being given.
11735     #
11736     # ac_d sets the value in "#define NAME VALUE" lines.
11737     ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
11738     ac_dB='[ ].*$,\1#\2'
11739     ac_dC=' '
11740     ac_dD=',;t'
11741     # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
11742     ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
11743     ac_uB='$,\1#\2define\3'
11744     ac_uC=' '
11745     ac_uD=',;t'
11746    
11747     for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
11748     # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11749     case $ac_file in
11750     - | *:- | *:-:* ) # input from stdin
11751     cat >$tmp/stdin
11752     ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11753     ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11754     *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11755     ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11756     * ) ac_file_in=$ac_file.in ;;
11757     esac
11758    
11759     test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
11760     echo "$as_me: creating $ac_file" >&6;}
11761    
11762     # First look for the input files in the build tree, otherwise in the
11763     # src tree.
11764     ac_file_inputs=`IFS=:
11765     for f in $ac_file_in; do
11766     case $f in
11767     -) echo $tmp/stdin ;;
11768     [\\/$]*)
11769     # Absolute (can't be DOS-style, as IFS=:)
11770     test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11771     echo "$as_me: error: cannot find input file: $f" >&2;}
11772     { (exit 1); exit 1; }; }
11773     # Do quote $f, to prevent DOS paths from being IFS'd.
11774     echo "$f";;
11775     *) # Relative
11776     if test -f "$f"; then
11777     # Build tree
11778     echo "$f"
11779     elif test -f "$srcdir/$f"; then
11780     # Source tree
11781     echo "$srcdir/$f"
11782     else
11783     # /dev/null tree
11784     { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11785     echo "$as_me: error: cannot find input file: $f" >&2;}
11786     { (exit 1); exit 1; }; }
11787     fi;;
11788     esac
11789     done` || { (exit 1); exit 1; }
11790     # Remove the trailing spaces.
11791     sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
11792    
11793     _ACEOF
11794    
11795     # Transform confdefs.h into two sed scripts, `conftest.defines' and
11796     # `conftest.undefs', that substitutes the proper values into
11797     # config.h.in to produce config.h. The first handles `#define'
11798     # templates, and the second `#undef' templates.
11799     # And first: Protect against being on the right side of a sed subst in
11800     # config.status. Protect against being in an unquoted here document
11801     # in config.status.
11802     rm -f conftest.defines conftest.undefs
11803     # Using a here document instead of a string reduces the quoting nightmare.
11804     # Putting comments in sed scripts is not portable.
11805     #
11806     # `end' is used to avoid that the second main sed command (meant for
11807     # 0-ary CPP macros) applies to n-ary macro definitions.
11808     # See the Autoconf documentation for `clear'.
11809     cat >confdef2sed.sed <<\_ACEOF
11810     s/[\\&,]/\\&/g
11811     s,[\\$`],\\&,g
11812     t clear
11813     : clear
11814     s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
11815     t end
11816     s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
11817     : end
11818     _ACEOF
11819     # If some macros were called several times there might be several times
11820     # the same #defines, which is useless. Nevertheless, we may not want to
11821     # sort them, since we want the *last* AC-DEFINE to be honored.
11822     uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
11823     sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
11824     rm -f confdef2sed.sed
11825    
11826     # This sed command replaces #undef with comments. This is necessary, for
11827     # example, in the case of _POSIX_SOURCE, which is predefined and required
11828     # on some systems where configure will not decide to define it.
11829     cat >>conftest.undefs <<\_ACEOF
11830     s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
11831     _ACEOF
11832    
11833     # Break up conftest.defines because some shells have a limit on the size
11834     # of here documents, and old seds have small limits too (100 cmds).
11835     echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
11836     echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
11837     echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
11838     echo ' :' >>$CONFIG_STATUS
11839     rm -f conftest.tail
11840     while grep . conftest.defines >/dev/null
11841     do
11842     # Write a limited-size here document to $tmp/defines.sed.
11843     echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
11844     # Speed up: don't consider the non `#define' lines.
11845     echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
11846     # Work around the forget-to-reset-the-flag bug.
11847     echo 't clr' >>$CONFIG_STATUS
11848     echo ': clr' >>$CONFIG_STATUS
11849     sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
11850     echo 'CEOF
11851     sed -f $tmp/defines.sed $tmp/in >$tmp/out
11852     rm -f $tmp/in
11853     mv $tmp/out $tmp/in
11854     ' >>$CONFIG_STATUS
11855     sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
11856     rm -f conftest.defines
11857     mv conftest.tail conftest.defines
11858     done
11859     rm -f conftest.defines
11860     echo ' fi # grep' >>$CONFIG_STATUS
11861     echo >>$CONFIG_STATUS
11862    
11863     # Break up conftest.undefs because some shells have a limit on the size
11864     # of here documents, and old seds have small limits too (100 cmds).
11865     echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
11866     rm -f conftest.tail
11867     while grep . conftest.undefs >/dev/null
11868     do
11869     # Write a limited-size here document to $tmp/undefs.sed.
11870     echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
11871     # Speed up: don't consider the non `#undef'
11872     echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
11873     # Work around the forget-to-reset-the-flag bug.
11874     echo 't clr' >>$CONFIG_STATUS
11875     echo ': clr' >>$CONFIG_STATUS
11876     sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
11877     echo 'CEOF
11878     sed -f $tmp/undefs.sed $tmp/in >$tmp/out
11879     rm -f $tmp/in
11880     mv $tmp/out $tmp/in
11881     ' >>$CONFIG_STATUS
11882     sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
11883     rm -f conftest.undefs
11884     mv conftest.tail conftest.undefs
11885     done
11886     rm -f conftest.undefs
11887    
11888     cat >>$CONFIG_STATUS <<\_ACEOF
11889     # Let's still pretend it is `configure' which instantiates (i.e., don't
11890     # use $as_me), people would be surprised to read:
11891     # /* config.h. Generated by config.status. */
11892     if test x"$ac_file" = x-; then
11893     echo "/* Generated by configure. */" >$tmp/config.h
11894     else
11895     echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
11896     fi
11897     cat $tmp/in >>$tmp/config.h
11898     rm -f $tmp/in
11899     if test x"$ac_file" != x-; then
11900     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
11901     { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
11902     echo "$as_me: $ac_file is unchanged" >&6;}
11903     else
11904     ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11905     $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11906     X"$ac_file" : 'X\(//\)[^/]' \| \
11907     X"$ac_file" : 'X\(//\)$' \| \
11908     X"$ac_file" : 'X\(/\)' \| \
11909     . : '\(.\)' 2>/dev/null ||
11910     echo X"$ac_file" |
11911     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11912     /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11913     /^X\(\/\/\)$/{ s//\1/; q; }
11914     /^X\(\/\).*/{ s//\1/; q; }
11915     s/.*/./; q'`
11916     { if $as_mkdir_p; then
11917     mkdir -p "$ac_dir"
11918     else
11919     as_dir="$ac_dir"
11920     as_dirs=
11921     while test ! -d "$as_dir"; do
11922     as_dirs="$as_dir $as_dirs"
11923     as_dir=`(dirname "$as_dir") 2>/dev/null ||
11924     $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11925     X"$as_dir" : 'X\(//\)[^/]' \| \
11926     X"$as_dir" : 'X\(//\)$' \| \
11927     X"$as_dir" : 'X\(/\)' \| \
11928     . : '\(.\)' 2>/dev/null ||
11929     echo X"$as_dir" |
11930     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11931     /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11932     /^X\(\/\/\)$/{ s//\1/; q; }
11933     /^X\(\/\).*/{ s//\1/; q; }
11934     s/.*/./; q'`
11935     done
11936     test ! -n "$as_dirs" || mkdir $as_dirs
11937     fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11938     echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11939     { (exit 1); exit 1; }; }; }
11940    
11941     rm -f $ac_file
11942     mv $tmp/config.h $ac_file
11943     fi
11944     else
11945     cat $tmp/config.h
11946     rm -f $tmp/config.h
11947     fi
11948     done
11949     _ACEOF
11950    
11951     cat >>$CONFIG_STATUS <<\_ACEOF
11952    
11953     { (exit 0); exit 0; }
11954     _ACEOF
11955     chmod +x $CONFIG_STATUS
11956     ac_clean_files=$ac_clean_files_save
11957    
11958    
11959     # configure is writing to config.log, and then calls config.status.
11960     # config.status does its own redirection, appending to config.log.
11961     # Unfortunately, on DOS this fails, as config.log is still kept open
11962     # by configure, so config.status won't be able to write to it; its
11963     # output is simply discarded. So we exec the FD to /dev/null,
11964     # effectively closing config.log, so it can be properly (re)opened and
11965     # appended to by config.status. When coming back to configure, we
11966     # need to make the FD available again.
11967     if test "$no_create" != yes; then
11968     ac_cs_success=:
11969     ac_config_status_args=
11970     test "$silent" = yes &&
11971     ac_config_status_args="$ac_config_status_args --quiet"
11972     exec 5>/dev/null
11973     $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11974     exec 5>>config.log
11975     # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11976     # would make configure fail if this is the last instruction.
11977     $ac_cs_success || { (exit 1); exit 1; }
11978     fi
11979    
11980    
11981     rm -f src/.depend modules/.depend servlink/.depend contrib/.depend lib/pcre/.depend
11982    
11983    
11984     echo
11985     echo "Compiling $PACKAGE_NAME $PACKAGE_VERSION"
11986     echo
11987    
11988     echo "Installing into: $prefix"
11989    
11990     echo "Ziplinks ................ $zlib"
11991    
11992     if test ! -z "$cf_openssl_ciphers"; then
11993     tmpresult="yes - ${cf_openssl_ciphers}"
11994     else
11995     tmpresult=no
11996     fi
11997    
11998     echo "OpenSSL ................. $tmpresult"
11999    
12000     if test "$shared_modules" = yes; then
12001     tmpresult=shared
12002     else
12003     tmpresult=static
12004     fi
12005    
12006     echo "Modules ................. $tmpresult"
12007     echo "IPv6 support ............ $have_v6"
12008     echo "Net I/O implementation .. $SELECT_TYPE"
12009    
12010     if test "$efnet" = "yes"; then
12011     tmpresult="yes (use example.efnet.conf)"
12012     else
12013     tmpresult="no (use example.conf)"
12014     fi
12015    
12016     echo "EFnet server ............ $tmpresult"
12017     echo "Halfops support ......... $halfops"
12018     echo "Small network ........... $small_net"
12019     echo "G-Line voting ........... $gline_voting"
12020     echo
12021     echo "Configured limits:"
12022     echo "NICKLEN ................. $NICKLEN"
12023     echo "TOPICLEN ................ $TOPICLEN"
12024     echo

Properties

Name Value
svn:eol-style native
svn:executable *
svn:keywords Id Revision