ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid-7.2/configure
Revision: 34
Committed: Sun Oct 2 21:05:51 2005 UTC (18 years, 5 months ago) by lusky
File size: 338979 byte(s)
Log Message:
create 7.2 branch, we can move/rename it as needed.


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     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
3767     do
3768     as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3769     if eval "test \"\${$as_ac_Header+set}\" = set"; then
3770     echo "$as_me:$LINENO: checking for $ac_header" >&5
3771     echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3772     if eval "test \"\${$as_ac_Header+set}\" = set"; then
3773     echo $ECHO_N "(cached) $ECHO_C" >&6
3774     fi
3775     echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3776     echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3777     else
3778     # Is the header compilable?
3779     echo "$as_me:$LINENO: checking $ac_header usability" >&5
3780     echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3781     cat >conftest.$ac_ext <<_ACEOF
3782     /* confdefs.h. */
3783     _ACEOF
3784     cat confdefs.h >>conftest.$ac_ext
3785     cat >>conftest.$ac_ext <<_ACEOF
3786     /* end confdefs.h. */
3787     $ac_includes_default
3788     #include <$ac_header>
3789     _ACEOF
3790     rm -f conftest.$ac_objext
3791     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3792     (eval $ac_compile) 2>conftest.er1
3793     ac_status=$?
3794     grep -v '^ *+' conftest.er1 >conftest.err
3795     rm -f conftest.er1
3796     cat conftest.err >&5
3797     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3798     (exit $ac_status); } &&
3799     { ac_try='test -z "$ac_c_werror_flag"
3800     || test ! -s conftest.err'
3801     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3802     (eval $ac_try) 2>&5
3803     ac_status=$?
3804     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3805     (exit $ac_status); }; } &&
3806     { ac_try='test -s conftest.$ac_objext'
3807     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3808     (eval $ac_try) 2>&5
3809     ac_status=$?
3810     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3811     (exit $ac_status); }; }; then
3812     ac_header_compiler=yes
3813     else
3814     echo "$as_me: failed program was:" >&5
3815     sed 's/^/| /' conftest.$ac_ext >&5
3816    
3817     ac_header_compiler=no
3818     fi
3819     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3820     echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3821     echo "${ECHO_T}$ac_header_compiler" >&6
3822    
3823     # Is the header present?
3824     echo "$as_me:$LINENO: checking $ac_header presence" >&5
3825     echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3826     cat >conftest.$ac_ext <<_ACEOF
3827     /* confdefs.h. */
3828     _ACEOF
3829     cat confdefs.h >>conftest.$ac_ext
3830     cat >>conftest.$ac_ext <<_ACEOF
3831     /* end confdefs.h. */
3832     #include <$ac_header>
3833     _ACEOF
3834     if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3835     (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3836     ac_status=$?
3837     grep -v '^ *+' conftest.er1 >conftest.err
3838     rm -f conftest.er1
3839     cat conftest.err >&5
3840     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3841     (exit $ac_status); } >/dev/null; then
3842     if test -s conftest.err; then
3843     ac_cpp_err=$ac_c_preproc_warn_flag
3844     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3845     else
3846     ac_cpp_err=
3847     fi
3848     else
3849     ac_cpp_err=yes
3850     fi
3851     if test -z "$ac_cpp_err"; then
3852     ac_header_preproc=yes
3853     else
3854     echo "$as_me: failed program was:" >&5
3855     sed 's/^/| /' conftest.$ac_ext >&5
3856    
3857     ac_header_preproc=no
3858     fi
3859     rm -f conftest.err conftest.$ac_ext
3860     echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3861     echo "${ECHO_T}$ac_header_preproc" >&6
3862    
3863     # So? What about this header?
3864     case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3865     yes:no: )
3866     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3867     echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3868     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3869     echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3870     ac_header_preproc=yes
3871     ;;
3872     no:yes:* )
3873     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3874     echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3875     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3876     echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3877     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3878     echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3879     { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3880     echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3881     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3882     echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3883     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3884     echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3885     (
3886     cat <<\_ASBOX
3887     ## -------------------------------------- ##
3888     ## Report this to the ircd-hybrid lists. ##
3889     ## -------------------------------------- ##
3890     _ASBOX
3891     ) |
3892     sed "s/^/$as_me: WARNING: /" >&2
3893     ;;
3894     esac
3895     echo "$as_me:$LINENO: checking for $ac_header" >&5
3896     echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3897     if eval "test \"\${$as_ac_Header+set}\" = set"; then
3898     echo $ECHO_N "(cached) $ECHO_C" >&6
3899     else
3900     eval "$as_ac_Header=\$ac_header_preproc"
3901     fi
3902     echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3903     echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3904    
3905     fi
3906     if test `eval echo '${'$as_ac_Header'}'` = yes; then
3907     cat >>confdefs.h <<_ACEOF
3908     #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3909     _ACEOF
3910    
3911     fi
3912    
3913     done
3914    
3915    
3916    
3917     echo "$as_me:$LINENO: checking for library containing socket" >&5
3918     echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6
3919     if test "${ac_cv_search_socket+set}" = set; then
3920     echo $ECHO_N "(cached) $ECHO_C" >&6
3921     else
3922     ac_func_search_save_LIBS=$LIBS
3923     ac_cv_search_socket=no
3924     cat >conftest.$ac_ext <<_ACEOF
3925     /* confdefs.h. */
3926     _ACEOF
3927     cat confdefs.h >>conftest.$ac_ext
3928     cat >>conftest.$ac_ext <<_ACEOF
3929     /* end confdefs.h. */
3930    
3931     /* Override any gcc2 internal prototype to avoid an error. */
3932     #ifdef __cplusplus
3933     extern "C"
3934     #endif
3935     /* We use char because int might match the return type of a gcc2
3936     builtin and then its argument prototype would still apply. */
3937     char socket ();
3938     int
3939     main ()
3940     {
3941     socket ();
3942     ;
3943     return 0;
3944     }
3945     _ACEOF
3946     rm -f conftest.$ac_objext conftest$ac_exeext
3947     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3948     (eval $ac_link) 2>conftest.er1
3949     ac_status=$?
3950     grep -v '^ *+' conftest.er1 >conftest.err
3951     rm -f conftest.er1
3952     cat conftest.err >&5
3953     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3954     (exit $ac_status); } &&
3955     { ac_try='test -z "$ac_c_werror_flag"
3956     || test ! -s conftest.err'
3957     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3958     (eval $ac_try) 2>&5
3959     ac_status=$?
3960     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3961     (exit $ac_status); }; } &&
3962     { ac_try='test -s conftest$ac_exeext'
3963     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3964     (eval $ac_try) 2>&5
3965     ac_status=$?
3966     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3967     (exit $ac_status); }; }; then
3968     ac_cv_search_socket="none required"
3969     else
3970     echo "$as_me: failed program was:" >&5
3971     sed 's/^/| /' conftest.$ac_ext >&5
3972    
3973     fi
3974     rm -f conftest.err conftest.$ac_objext \
3975     conftest$ac_exeext conftest.$ac_ext
3976     if test "$ac_cv_search_socket" = no; then
3977     for ac_lib in socket; do
3978     LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3979     cat >conftest.$ac_ext <<_ACEOF
3980     /* confdefs.h. */
3981     _ACEOF
3982     cat confdefs.h >>conftest.$ac_ext
3983     cat >>conftest.$ac_ext <<_ACEOF
3984     /* end confdefs.h. */
3985    
3986     /* Override any gcc2 internal prototype to avoid an error. */
3987     #ifdef __cplusplus
3988     extern "C"
3989     #endif
3990     /* We use char because int might match the return type of a gcc2
3991     builtin and then its argument prototype would still apply. */
3992     char socket ();
3993     int
3994     main ()
3995     {
3996     socket ();
3997     ;
3998     return 0;
3999     }
4000     _ACEOF
4001     rm -f conftest.$ac_objext conftest$ac_exeext
4002     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4003     (eval $ac_link) 2>conftest.er1
4004     ac_status=$?
4005     grep -v '^ *+' conftest.er1 >conftest.err
4006     rm -f conftest.er1
4007     cat conftest.err >&5
4008     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4009     (exit $ac_status); } &&
4010     { ac_try='test -z "$ac_c_werror_flag"
4011     || test ! -s conftest.err'
4012     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4013     (eval $ac_try) 2>&5
4014     ac_status=$?
4015     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4016     (exit $ac_status); }; } &&
4017     { ac_try='test -s conftest$ac_exeext'
4018     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4019     (eval $ac_try) 2>&5
4020     ac_status=$?
4021     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4022     (exit $ac_status); }; }; then
4023     ac_cv_search_socket="-l$ac_lib"
4024     break
4025     else
4026     echo "$as_me: failed program was:" >&5
4027     sed 's/^/| /' conftest.$ac_ext >&5
4028    
4029     fi
4030     rm -f conftest.err conftest.$ac_objext \
4031     conftest$ac_exeext conftest.$ac_ext
4032     done
4033     fi
4034     LIBS=$ac_func_search_save_LIBS
4035     fi
4036     echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
4037     echo "${ECHO_T}$ac_cv_search_socket" >&6
4038     if test "$ac_cv_search_socket" != no; then
4039     test "$ac_cv_search_socket" = "none required" || LIBS="$ac_cv_search_socket $LIBS"
4040    
4041     else
4042     { { echo "$as_me:$LINENO: error: You have no socket()! Aborting." >&5
4043     echo "$as_me: error: You have no socket()! Aborting." >&2;}
4044     { (exit 1); exit 1; }; }
4045     fi
4046    
4047    
4048     echo "$as_me:$LINENO: checking for library containing inet_aton" >&5
4049     echo $ECHO_N "checking for library containing inet_aton... $ECHO_C" >&6
4050     if test "${ac_cv_search_inet_aton+set}" = set; then
4051     echo $ECHO_N "(cached) $ECHO_C" >&6
4052     else
4053     ac_func_search_save_LIBS=$LIBS
4054     ac_cv_search_inet_aton=no
4055     cat >conftest.$ac_ext <<_ACEOF
4056     /* confdefs.h. */
4057     _ACEOF
4058     cat confdefs.h >>conftest.$ac_ext
4059     cat >>conftest.$ac_ext <<_ACEOF
4060     /* end confdefs.h. */
4061    
4062     /* Override any gcc2 internal prototype to avoid an error. */
4063     #ifdef __cplusplus
4064     extern "C"
4065     #endif
4066     /* We use char because int might match the return type of a gcc2
4067     builtin and then its argument prototype would still apply. */
4068     char inet_aton ();
4069     int
4070     main ()
4071     {
4072     inet_aton ();
4073     ;
4074     return 0;
4075     }
4076     _ACEOF
4077     rm -f conftest.$ac_objext conftest$ac_exeext
4078     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4079     (eval $ac_link) 2>conftest.er1
4080     ac_status=$?
4081     grep -v '^ *+' conftest.er1 >conftest.err
4082     rm -f conftest.er1
4083     cat conftest.err >&5
4084     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4085     (exit $ac_status); } &&
4086     { ac_try='test -z "$ac_c_werror_flag"
4087     || test ! -s conftest.err'
4088     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4089     (eval $ac_try) 2>&5
4090     ac_status=$?
4091     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4092     (exit $ac_status); }; } &&
4093     { ac_try='test -s conftest$ac_exeext'
4094     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4095     (eval $ac_try) 2>&5
4096     ac_status=$?
4097     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4098     (exit $ac_status); }; }; then
4099     ac_cv_search_inet_aton="none required"
4100     else
4101     echo "$as_me: failed program was:" >&5
4102     sed 's/^/| /' conftest.$ac_ext >&5
4103    
4104     fi
4105     rm -f conftest.err conftest.$ac_objext \
4106     conftest$ac_exeext conftest.$ac_ext
4107     if test "$ac_cv_search_inet_aton" = no; then
4108     for ac_lib in resolv; do
4109     LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4110     cat >conftest.$ac_ext <<_ACEOF
4111     /* confdefs.h. */
4112     _ACEOF
4113     cat confdefs.h >>conftest.$ac_ext
4114     cat >>conftest.$ac_ext <<_ACEOF
4115     /* end confdefs.h. */
4116    
4117     /* Override any gcc2 internal prototype to avoid an error. */
4118     #ifdef __cplusplus
4119     extern "C"
4120     #endif
4121     /* We use char because int might match the return type of a gcc2
4122     builtin and then its argument prototype would still apply. */
4123     char inet_aton ();
4124     int
4125     main ()
4126     {
4127     inet_aton ();
4128     ;
4129     return 0;
4130     }
4131     _ACEOF
4132     rm -f conftest.$ac_objext conftest$ac_exeext
4133     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4134     (eval $ac_link) 2>conftest.er1
4135     ac_status=$?
4136     grep -v '^ *+' conftest.er1 >conftest.err
4137     rm -f conftest.er1
4138     cat conftest.err >&5
4139     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4140     (exit $ac_status); } &&
4141     { ac_try='test -z "$ac_c_werror_flag"
4142     || test ! -s conftest.err'
4143     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4144     (eval $ac_try) 2>&5
4145     ac_status=$?
4146     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4147     (exit $ac_status); }; } &&
4148     { ac_try='test -s conftest$ac_exeext'
4149     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4150     (eval $ac_try) 2>&5
4151     ac_status=$?
4152     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4153     (exit $ac_status); }; }; then
4154     ac_cv_search_inet_aton="-l$ac_lib"
4155     break
4156     else
4157     echo "$as_me: failed program was:" >&5
4158     sed 's/^/| /' conftest.$ac_ext >&5
4159    
4160     fi
4161     rm -f conftest.err conftest.$ac_objext \
4162     conftest$ac_exeext conftest.$ac_ext
4163     done
4164     fi
4165     LIBS=$ac_func_search_save_LIBS
4166     fi
4167     echo "$as_me:$LINENO: result: $ac_cv_search_inet_aton" >&5
4168     echo "${ECHO_T}$ac_cv_search_inet_aton" >&6
4169     if test "$ac_cv_search_inet_aton" != no; then
4170     test "$ac_cv_search_inet_aton" = "none required" || LIBS="$ac_cv_search_inet_aton $LIBS"
4171    
4172     else
4173     inet_misc=1;
4174     cat >>confdefs.h <<\_ACEOF
4175     #define NO_INET_ATON 1
4176     _ACEOF
4177    
4178     fi
4179    
4180     echo "$as_me:$LINENO: checking for library containing inet_pton" >&5
4181     echo $ECHO_N "checking for library containing inet_pton... $ECHO_C" >&6
4182     if test "${ac_cv_search_inet_pton+set}" = set; then
4183     echo $ECHO_N "(cached) $ECHO_C" >&6
4184     else
4185     ac_func_search_save_LIBS=$LIBS
4186     ac_cv_search_inet_pton=no
4187     cat >conftest.$ac_ext <<_ACEOF
4188     /* confdefs.h. */
4189     _ACEOF
4190     cat confdefs.h >>conftest.$ac_ext
4191     cat >>conftest.$ac_ext <<_ACEOF
4192     /* end confdefs.h. */
4193    
4194     /* Override any gcc2 internal prototype to avoid an error. */
4195     #ifdef __cplusplus
4196     extern "C"
4197     #endif
4198     /* We use char because int might match the return type of a gcc2
4199     builtin and then its argument prototype would still apply. */
4200     char inet_pton ();
4201     int
4202     main ()
4203     {
4204     inet_pton ();
4205     ;
4206     return 0;
4207     }
4208     _ACEOF
4209     rm -f conftest.$ac_objext conftest$ac_exeext
4210     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4211     (eval $ac_link) 2>conftest.er1
4212     ac_status=$?
4213     grep -v '^ *+' conftest.er1 >conftest.err
4214     rm -f conftest.er1
4215     cat conftest.err >&5
4216     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4217     (exit $ac_status); } &&
4218     { ac_try='test -z "$ac_c_werror_flag"
4219     || test ! -s conftest.err'
4220     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4221     (eval $ac_try) 2>&5
4222     ac_status=$?
4223     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4224     (exit $ac_status); }; } &&
4225     { ac_try='test -s conftest$ac_exeext'
4226     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4227     (eval $ac_try) 2>&5
4228     ac_status=$?
4229     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4230     (exit $ac_status); }; }; then
4231     ac_cv_search_inet_pton="none required"
4232     else
4233     echo "$as_me: failed program was:" >&5
4234     sed 's/^/| /' conftest.$ac_ext >&5
4235    
4236     fi
4237     rm -f conftest.err conftest.$ac_objext \
4238     conftest$ac_exeext conftest.$ac_ext
4239     if test "$ac_cv_search_inet_pton" = no; then
4240     for ac_lib in resolv nsl; do
4241     LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4242     cat >conftest.$ac_ext <<_ACEOF
4243     /* confdefs.h. */
4244     _ACEOF
4245     cat confdefs.h >>conftest.$ac_ext
4246     cat >>conftest.$ac_ext <<_ACEOF
4247     /* end confdefs.h. */
4248    
4249     /* Override any gcc2 internal prototype to avoid an error. */
4250     #ifdef __cplusplus
4251     extern "C"
4252     #endif
4253     /* We use char because int might match the return type of a gcc2
4254     builtin and then its argument prototype would still apply. */
4255     char inet_pton ();
4256     int
4257     main ()
4258     {
4259     inet_pton ();
4260     ;
4261     return 0;
4262     }
4263     _ACEOF
4264     rm -f conftest.$ac_objext conftest$ac_exeext
4265     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4266     (eval $ac_link) 2>conftest.er1
4267     ac_status=$?
4268     grep -v '^ *+' conftest.er1 >conftest.err
4269     rm -f conftest.er1
4270     cat conftest.err >&5
4271     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4272     (exit $ac_status); } &&
4273     { ac_try='test -z "$ac_c_werror_flag"
4274     || test ! -s conftest.err'
4275     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4276     (eval $ac_try) 2>&5
4277     ac_status=$?
4278     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4279     (exit $ac_status); }; } &&
4280     { ac_try='test -s conftest$ac_exeext'
4281     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4282     (eval $ac_try) 2>&5
4283     ac_status=$?
4284     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4285     (exit $ac_status); }; }; then
4286     ac_cv_search_inet_pton="-l$ac_lib"
4287     break
4288     else
4289     echo "$as_me: failed program was:" >&5
4290     sed 's/^/| /' conftest.$ac_ext >&5
4291    
4292     fi
4293     rm -f conftest.err conftest.$ac_objext \
4294     conftest$ac_exeext conftest.$ac_ext
4295     done
4296     fi
4297     LIBS=$ac_func_search_save_LIBS
4298     fi
4299     echo "$as_me:$LINENO: result: $ac_cv_search_inet_pton" >&5
4300     echo "${ECHO_T}$ac_cv_search_inet_pton" >&6
4301     if test "$ac_cv_search_inet_pton" != no; then
4302     test "$ac_cv_search_inet_pton" = "none required" || LIBS="$ac_cv_search_inet_pton $LIBS"
4303    
4304     else
4305     inet_misc=1;
4306     cat >>confdefs.h <<\_ACEOF
4307     #define NO_INET_PTON 1
4308     _ACEOF
4309    
4310     fi
4311    
4312     echo "$as_me:$LINENO: checking for library containing inet_ntop" >&5
4313     echo $ECHO_N "checking for library containing inet_ntop... $ECHO_C" >&6
4314     if test "${ac_cv_search_inet_ntop+set}" = set; then
4315     echo $ECHO_N "(cached) $ECHO_C" >&6
4316     else
4317     ac_func_search_save_LIBS=$LIBS
4318     ac_cv_search_inet_ntop=no
4319     cat >conftest.$ac_ext <<_ACEOF
4320     /* confdefs.h. */
4321     _ACEOF
4322     cat confdefs.h >>conftest.$ac_ext
4323     cat >>conftest.$ac_ext <<_ACEOF
4324     /* end confdefs.h. */
4325    
4326     /* Override any gcc2 internal prototype to avoid an error. */
4327     #ifdef __cplusplus
4328     extern "C"
4329     #endif
4330     /* We use char because int might match the return type of a gcc2
4331     builtin and then its argument prototype would still apply. */
4332     char inet_ntop ();
4333     int
4334     main ()
4335     {
4336     inet_ntop ();
4337     ;
4338     return 0;
4339     }
4340     _ACEOF
4341     rm -f conftest.$ac_objext conftest$ac_exeext
4342     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4343     (eval $ac_link) 2>conftest.er1
4344     ac_status=$?
4345     grep -v '^ *+' conftest.er1 >conftest.err
4346     rm -f conftest.er1
4347     cat conftest.err >&5
4348     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4349     (exit $ac_status); } &&
4350     { ac_try='test -z "$ac_c_werror_flag"
4351     || test ! -s conftest.err'
4352     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4353     (eval $ac_try) 2>&5
4354     ac_status=$?
4355     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4356     (exit $ac_status); }; } &&
4357     { ac_try='test -s conftest$ac_exeext'
4358     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4359     (eval $ac_try) 2>&5
4360     ac_status=$?
4361     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4362     (exit $ac_status); }; }; then
4363     ac_cv_search_inet_ntop="none required"
4364     else
4365     echo "$as_me: failed program was:" >&5
4366     sed 's/^/| /' conftest.$ac_ext >&5
4367    
4368     fi
4369     rm -f conftest.err conftest.$ac_objext \
4370     conftest$ac_exeext conftest.$ac_ext
4371     if test "$ac_cv_search_inet_ntop" = no; then
4372     for ac_lib in resolv nsl; do
4373     LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4374     cat >conftest.$ac_ext <<_ACEOF
4375     /* confdefs.h. */
4376     _ACEOF
4377     cat confdefs.h >>conftest.$ac_ext
4378     cat >>conftest.$ac_ext <<_ACEOF
4379     /* end confdefs.h. */
4380    
4381     /* Override any gcc2 internal prototype to avoid an error. */
4382     #ifdef __cplusplus
4383     extern "C"
4384     #endif
4385     /* We use char because int might match the return type of a gcc2
4386     builtin and then its argument prototype would still apply. */
4387     char inet_ntop ();
4388     int
4389     main ()
4390     {
4391     inet_ntop ();
4392     ;
4393     return 0;
4394     }
4395     _ACEOF
4396     rm -f conftest.$ac_objext conftest$ac_exeext
4397     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4398     (eval $ac_link) 2>conftest.er1
4399     ac_status=$?
4400     grep -v '^ *+' conftest.er1 >conftest.err
4401     rm -f conftest.er1
4402     cat conftest.err >&5
4403     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4404     (exit $ac_status); } &&
4405     { ac_try='test -z "$ac_c_werror_flag"
4406     || test ! -s conftest.err'
4407     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4408     (eval $ac_try) 2>&5
4409     ac_status=$?
4410     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4411     (exit $ac_status); }; } &&
4412     { ac_try='test -s conftest$ac_exeext'
4413     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4414     (eval $ac_try) 2>&5
4415     ac_status=$?
4416     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4417     (exit $ac_status); }; }; then
4418     ac_cv_search_inet_ntop="-l$ac_lib"
4419     break
4420     else
4421     echo "$as_me: failed program was:" >&5
4422     sed 's/^/| /' conftest.$ac_ext >&5
4423    
4424     fi
4425     rm -f conftest.err conftest.$ac_objext \
4426     conftest$ac_exeext conftest.$ac_ext
4427     done
4428     fi
4429     LIBS=$ac_func_search_save_LIBS
4430     fi
4431     echo "$as_me:$LINENO: result: $ac_cv_search_inet_ntop" >&5
4432     echo "${ECHO_T}$ac_cv_search_inet_ntop" >&6
4433     if test "$ac_cv_search_inet_ntop" != no; then
4434     test "$ac_cv_search_inet_ntop" = "none required" || LIBS="$ac_cv_search_inet_ntop $LIBS"
4435    
4436     else
4437     inet_misc=1;
4438     cat >>confdefs.h <<\_ACEOF
4439     #define NO_INET_NTOP 1
4440     _ACEOF
4441    
4442     fi
4443    
4444    
4445     if test "$inet_misc" = 1; then
4446     INET_MISC=inet_misc.c
4447    
4448     fi
4449    
4450     echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
4451     echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6
4452     if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
4453     echo $ECHO_N "(cached) $ECHO_C" >&6
4454     else
4455     cat >conftest.$ac_ext <<_ACEOF
4456     /* confdefs.h. */
4457     _ACEOF
4458     cat confdefs.h >>conftest.$ac_ext
4459     cat >>conftest.$ac_ext <<_ACEOF
4460     /* end confdefs.h. */
4461     #include <sys/types.h>
4462     #include <sys/socket.h>
4463    
4464    
4465     int
4466     main ()
4467     {
4468     if ((struct sockaddr_storage *) 0)
4469     return 0;
4470     if (sizeof (struct sockaddr_storage))
4471     return 0;
4472     ;
4473     return 0;
4474     }
4475     _ACEOF
4476     rm -f conftest.$ac_objext
4477     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4478     (eval $ac_compile) 2>conftest.er1
4479     ac_status=$?
4480     grep -v '^ *+' conftest.er1 >conftest.err
4481     rm -f conftest.er1
4482     cat conftest.err >&5
4483     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4484     (exit $ac_status); } &&
4485     { ac_try='test -z "$ac_c_werror_flag"
4486     || test ! -s conftest.err'
4487     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4488     (eval $ac_try) 2>&5
4489     ac_status=$?
4490     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4491     (exit $ac_status); }; } &&
4492     { ac_try='test -s conftest.$ac_objext'
4493     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4494     (eval $ac_try) 2>&5
4495     ac_status=$?
4496     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4497     (exit $ac_status); }; }; then
4498     ac_cv_type_struct_sockaddr_storage=yes
4499     else
4500     echo "$as_me: failed program was:" >&5
4501     sed 's/^/| /' conftest.$ac_ext >&5
4502    
4503     ac_cv_type_struct_sockaddr_storage=no
4504     fi
4505     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4506     fi
4507     echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
4508     echo "${ECHO_T}$ac_cv_type_struct_sockaddr_storage" >&6
4509     if test $ac_cv_type_struct_sockaddr_storage = yes; then
4510    
4511     cat >>confdefs.h <<_ACEOF
4512     #define HAVE_STRUCT_SOCKADDR_STORAGE 1
4513     _ACEOF
4514    
4515    
4516     fi
4517    
4518    
4519     if test "$ac_cv_type_struct_sockaddr_storage" = no; then
4520     echo "$as_me:$LINENO: checking for struct sockaddr_in.sin_len" >&5
4521     echo $ECHO_N "checking for struct sockaddr_in.sin_len... $ECHO_C" >&6
4522     if test "${ac_cv_member_struct_sockaddr_in_sin_len+set}" = set; then
4523     echo $ECHO_N "(cached) $ECHO_C" >&6
4524     else
4525     cat >conftest.$ac_ext <<_ACEOF
4526     /* confdefs.h. */
4527     _ACEOF
4528     cat confdefs.h >>conftest.$ac_ext
4529     cat >>conftest.$ac_ext <<_ACEOF
4530     /* end confdefs.h. */
4531     $ac_includes_default
4532     int
4533     main ()
4534     {
4535     static struct sockaddr_in ac_aggr;
4536     if (ac_aggr.sin_len)
4537     return 0;
4538     ;
4539     return 0;
4540     }
4541     _ACEOF
4542     rm -f conftest.$ac_objext
4543     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4544     (eval $ac_compile) 2>conftest.er1
4545     ac_status=$?
4546     grep -v '^ *+' conftest.er1 >conftest.err
4547     rm -f conftest.er1
4548     cat conftest.err >&5
4549     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4550     (exit $ac_status); } &&
4551     { ac_try='test -z "$ac_c_werror_flag"
4552     || test ! -s conftest.err'
4553     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4554     (eval $ac_try) 2>&5
4555     ac_status=$?
4556     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4557     (exit $ac_status); }; } &&
4558     { ac_try='test -s conftest.$ac_objext'
4559     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4560     (eval $ac_try) 2>&5
4561     ac_status=$?
4562     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4563     (exit $ac_status); }; }; then
4564     ac_cv_member_struct_sockaddr_in_sin_len=yes
4565     else
4566     echo "$as_me: failed program was:" >&5
4567     sed 's/^/| /' conftest.$ac_ext >&5
4568    
4569     cat >conftest.$ac_ext <<_ACEOF
4570     /* confdefs.h. */
4571     _ACEOF
4572     cat confdefs.h >>conftest.$ac_ext
4573     cat >>conftest.$ac_ext <<_ACEOF
4574     /* end confdefs.h. */
4575     $ac_includes_default
4576     int
4577     main ()
4578     {
4579     static struct sockaddr_in ac_aggr;
4580     if (sizeof ac_aggr.sin_len)
4581     return 0;
4582     ;
4583     return 0;
4584     }
4585     _ACEOF
4586     rm -f conftest.$ac_objext
4587     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4588     (eval $ac_compile) 2>conftest.er1
4589     ac_status=$?
4590     grep -v '^ *+' conftest.er1 >conftest.err
4591     rm -f conftest.er1
4592     cat conftest.err >&5
4593     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4594     (exit $ac_status); } &&
4595     { ac_try='test -z "$ac_c_werror_flag"
4596     || test ! -s conftest.err'
4597     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4598     (eval $ac_try) 2>&5
4599     ac_status=$?
4600     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4601     (exit $ac_status); }; } &&
4602     { ac_try='test -s conftest.$ac_objext'
4603     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4604     (eval $ac_try) 2>&5
4605     ac_status=$?
4606     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4607     (exit $ac_status); }; }; then
4608     ac_cv_member_struct_sockaddr_in_sin_len=yes
4609     else
4610     echo "$as_me: failed program was:" >&5
4611     sed 's/^/| /' conftest.$ac_ext >&5
4612    
4613     ac_cv_member_struct_sockaddr_in_sin_len=no
4614     fi
4615     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4616     fi
4617     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4618     fi
4619     echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_in_sin_len" >&5
4620     echo "${ECHO_T}$ac_cv_member_struct_sockaddr_in_sin_len" >&6
4621     if test $ac_cv_member_struct_sockaddr_in_sin_len = yes; then
4622    
4623     cat >>confdefs.h <<\_ACEOF
4624     #define SOCKADDR_IN_HAS_LEN 1
4625     _ACEOF
4626    
4627     fi
4628    
4629     fi
4630    
4631     echo "$as_me:$LINENO: checking for struct addrinfo" >&5
4632     echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6
4633     if test "${ac_cv_type_struct_addrinfo+set}" = set; then
4634     echo $ECHO_N "(cached) $ECHO_C" >&6
4635     else
4636     cat >conftest.$ac_ext <<_ACEOF
4637     /* confdefs.h. */
4638     _ACEOF
4639     cat confdefs.h >>conftest.$ac_ext
4640     cat >>conftest.$ac_ext <<_ACEOF
4641     /* end confdefs.h. */
4642     #include <netdb.h>
4643    
4644     int
4645     main ()
4646     {
4647     if ((struct addrinfo *) 0)
4648     return 0;
4649     if (sizeof (struct addrinfo))
4650     return 0;
4651     ;
4652     return 0;
4653     }
4654     _ACEOF
4655     rm -f conftest.$ac_objext
4656     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4657     (eval $ac_compile) 2>conftest.er1
4658     ac_status=$?
4659     grep -v '^ *+' conftest.er1 >conftest.err
4660     rm -f conftest.er1
4661     cat conftest.err >&5
4662     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4663     (exit $ac_status); } &&
4664     { ac_try='test -z "$ac_c_werror_flag"
4665     || test ! -s conftest.err'
4666     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4667     (eval $ac_try) 2>&5
4668     ac_status=$?
4669     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4670     (exit $ac_status); }; } &&
4671     { ac_try='test -s conftest.$ac_objext'
4672     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4673     (eval $ac_try) 2>&5
4674     ac_status=$?
4675     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4676     (exit $ac_status); }; }; then
4677     ac_cv_type_struct_addrinfo=yes
4678     else
4679     echo "$as_me: failed program was:" >&5
4680     sed 's/^/| /' conftest.$ac_ext >&5
4681    
4682     ac_cv_type_struct_addrinfo=no
4683     fi
4684     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4685     fi
4686     echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
4687     echo "${ECHO_T}$ac_cv_type_struct_addrinfo" >&6
4688     if test $ac_cv_type_struct_addrinfo = yes; then
4689    
4690     cat >>confdefs.h <<_ACEOF
4691     #define HAVE_STRUCT_ADDRINFO 1
4692     _ACEOF
4693    
4694    
4695     fi
4696    
4697    
4698     echo "$as_me:$LINENO: checking for socklen_t" >&5
4699     echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
4700     if test "${ac_cv_type_socklen_t+set}" = set; then
4701     echo $ECHO_N "(cached) $ECHO_C" >&6
4702     else
4703     cat >conftest.$ac_ext <<_ACEOF
4704     /* confdefs.h. */
4705     _ACEOF
4706     cat confdefs.h >>conftest.$ac_ext
4707     cat >>conftest.$ac_ext <<_ACEOF
4708     /* end confdefs.h. */
4709     #include <sys/types.h>
4710     #include <sys/socket.h>
4711    
4712     int
4713     main ()
4714     {
4715     if ((socklen_t *) 0)
4716     return 0;
4717     if (sizeof (socklen_t))
4718     return 0;
4719     ;
4720     return 0;
4721     }
4722     _ACEOF
4723     rm -f conftest.$ac_objext
4724     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4725     (eval $ac_compile) 2>conftest.er1
4726     ac_status=$?
4727     grep -v '^ *+' conftest.er1 >conftest.err
4728     rm -f conftest.er1
4729     cat conftest.err >&5
4730     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4731     (exit $ac_status); } &&
4732     { ac_try='test -z "$ac_c_werror_flag"
4733     || test ! -s conftest.err'
4734     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4735     (eval $ac_try) 2>&5
4736     ac_status=$?
4737     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4738     (exit $ac_status); }; } &&
4739     { ac_try='test -s conftest.$ac_objext'
4740     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4741     (eval $ac_try) 2>&5
4742     ac_status=$?
4743     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4744     (exit $ac_status); }; }; then
4745     ac_cv_type_socklen_t=yes
4746     else
4747     echo "$as_me: failed program was:" >&5
4748     sed 's/^/| /' conftest.$ac_ext >&5
4749    
4750     ac_cv_type_socklen_t=no
4751     fi
4752     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4753     fi
4754     echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
4755     echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
4756     if test $ac_cv_type_socklen_t = yes; then
4757     :
4758     else
4759    
4760     cat >>confdefs.h <<\_ACEOF
4761     #define socklen_t unsigned int
4762     _ACEOF
4763    
4764     fi
4765    
4766    
4767     if test -z "$Tru"; then
4768    
4769     echo "$as_me:$LINENO: checking for broken glibc with __ss_family" >&5
4770     echo $ECHO_N "checking for broken glibc with __ss_family... $ECHO_C" >&6
4771     cat >conftest.$ac_ext <<_ACEOF
4772     /* confdefs.h. */
4773     _ACEOF
4774     cat confdefs.h >>conftest.$ac_ext
4775     cat >>conftest.$ac_ext <<_ACEOF
4776     /* end confdefs.h. */
4777     #include <sys/types.h>
4778     #include <sys/socket.h>
4779     int
4780     main ()
4781     {
4782     struct sockaddr_storage s; s.__ss_family = AF_INET;
4783     ;
4784     return 0;
4785     }
4786     _ACEOF
4787     rm -f conftest.$ac_objext
4788     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4789     (eval $ac_compile) 2>conftest.er1
4790     ac_status=$?
4791     grep -v '^ *+' conftest.er1 >conftest.err
4792     rm -f conftest.er1
4793     cat conftest.err >&5
4794     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4795     (exit $ac_status); } &&
4796     { ac_try='test -z "$ac_c_werror_flag"
4797     || test ! -s conftest.err'
4798     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4799     (eval $ac_try) 2>&5
4800     ac_status=$?
4801     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4802     (exit $ac_status); }; } &&
4803     { ac_try='test -s conftest.$ac_objext'
4804     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4805     (eval $ac_try) 2>&5
4806     ac_status=$?
4807     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4808     (exit $ac_status); }; }; then
4809    
4810     echo "$as_me:$LINENO: result: yes" >&5
4811     echo "${ECHO_T}yes" >&6
4812    
4813     cat >>confdefs.h <<\_ACEOF
4814     #define ss_family __ss_family
4815     _ACEOF
4816    
4817    
4818     else
4819     echo "$as_me: failed program was:" >&5
4820     sed 's/^/| /' conftest.$ac_ext >&5
4821    
4822     echo "$as_me:$LINENO: result: no" >&5
4823     echo "${ECHO_T}no" >&6
4824     fi
4825     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4826    
4827     fi
4828    
4829     echo "$as_me:$LINENO: checking for core IPv6 support" >&5
4830     echo $ECHO_N "checking for core IPv6 support... $ECHO_C" >&6
4831    
4832     cat >conftest.$ac_ext <<_ACEOF
4833     /* confdefs.h. */
4834     _ACEOF
4835     cat confdefs.h >>conftest.$ac_ext
4836     cat >>conftest.$ac_ext <<_ACEOF
4837     /* end confdefs.h. */
4838     #define IN_AUTOCONF
4839     #include "include/stdinc.h"
4840     int
4841     main ()
4842     {
4843     struct sockaddr_in6 s;
4844     struct sockaddr_storage t;
4845     s.sin6_family = 0;
4846    
4847     ;
4848     return 0;
4849     }
4850     _ACEOF
4851     rm -f conftest.$ac_objext
4852     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4853     (eval $ac_compile) 2>conftest.er1
4854     ac_status=$?
4855     grep -v '^ *+' conftest.er1 >conftest.err
4856     rm -f conftest.er1
4857     cat conftest.err >&5
4858     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4859     (exit $ac_status); } &&
4860     { ac_try='test -z "$ac_c_werror_flag"
4861     || test ! -s conftest.err'
4862     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4863     (eval $ac_try) 2>&5
4864     ac_status=$?
4865     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4866     (exit $ac_status); }; } &&
4867     { ac_try='test -s conftest.$ac_objext'
4868     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4869     (eval $ac_try) 2>&5
4870     ac_status=$?
4871     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4872     (exit $ac_status); }; }; then
4873    
4874     if test "$CYGWIN" = "yes"; then
4875     echo "$as_me:$LINENO: result: no, Cygwin's IPv6 is incomplete" >&5
4876     echo "${ECHO_T}no, Cygwin's IPv6 is incomplete" >&6
4877     have_v6=no
4878     else
4879     have_v6=yes
4880    
4881     cat >>confdefs.h <<\_ACEOF
4882     #define IPV6 1
4883     _ACEOF
4884    
4885     echo "$as_me:$LINENO: result: yes" >&5
4886     echo "${ECHO_T}yes" >&6
4887     echo "$as_me:$LINENO: checking for struct in6addr_any" >&5
4888     echo $ECHO_N "checking for struct in6addr_any... $ECHO_C" >&6
4889     cat >conftest.$ac_ext <<_ACEOF
4890     /* confdefs.h. */
4891     _ACEOF
4892     cat confdefs.h >>conftest.$ac_ext
4893     cat >>conftest.$ac_ext <<_ACEOF
4894     /* end confdefs.h. */
4895     #define IN_AUTOCONF
4896     #include "include/stdinc.h"
4897     int
4898     main ()
4899     {
4900     struct in6_addr a = in6addr_any;
4901    
4902     ;
4903     return 0;
4904     }
4905     _ACEOF
4906     rm -f conftest.$ac_objext
4907     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4908     (eval $ac_compile) 2>conftest.er1
4909     ac_status=$?
4910     grep -v '^ *+' conftest.er1 >conftest.err
4911     rm -f conftest.er1
4912     cat conftest.err >&5
4913     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4914     (exit $ac_status); } &&
4915     { ac_try='test -z "$ac_c_werror_flag"
4916     || test ! -s conftest.err'
4917     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4918     (eval $ac_try) 2>&5
4919     ac_status=$?
4920     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4921     (exit $ac_status); }; } &&
4922     { ac_try='test -s conftest.$ac_objext'
4923     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4924     (eval $ac_try) 2>&5
4925     ac_status=$?
4926     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4927     (exit $ac_status); }; }; then
4928     echo "$as_me:$LINENO: result: yes" >&5
4929     echo "${ECHO_T}yes" >&6
4930     else
4931     echo "$as_me: failed program was:" >&5
4932     sed 's/^/| /' conftest.$ac_ext >&5
4933    
4934    
4935     echo "$as_me:$LINENO: result: no" >&5
4936     echo "${ECHO_T}no" >&6
4937    
4938     cat >>confdefs.h <<\_ACEOF
4939     #define NO_IN6ADDR_ANY 1
4940     _ACEOF
4941    
4942     inet_misc=1
4943    
4944    
4945     fi
4946     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4947     fi
4948    
4949     else
4950     echo "$as_me: failed program was:" >&5
4951     sed 's/^/| /' conftest.$ac_ext >&5
4952    
4953     echo "$as_me:$LINENO: result: no" >&5
4954     echo "${ECHO_T}no" >&6
4955     have_v6="no"
4956     fi
4957     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4958    
4959     echo "$as_me:$LINENO: checking for library containing crypt" >&5
4960     echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6
4961     if test "${ac_cv_search_crypt+set}" = set; then
4962     echo $ECHO_N "(cached) $ECHO_C" >&6
4963     else
4964     ac_func_search_save_LIBS=$LIBS
4965     ac_cv_search_crypt=no
4966     cat >conftest.$ac_ext <<_ACEOF
4967     /* confdefs.h. */
4968     _ACEOF
4969     cat confdefs.h >>conftest.$ac_ext
4970     cat >>conftest.$ac_ext <<_ACEOF
4971     /* end confdefs.h. */
4972    
4973     /* Override any gcc2 internal prototype to avoid an error. */
4974     #ifdef __cplusplus
4975     extern "C"
4976     #endif
4977     /* We use char because int might match the return type of a gcc2
4978     builtin and then its argument prototype would still apply. */
4979     char crypt ();
4980     int
4981     main ()
4982     {
4983     crypt ();
4984     ;
4985     return 0;
4986     }
4987     _ACEOF
4988     rm -f conftest.$ac_objext conftest$ac_exeext
4989     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4990     (eval $ac_link) 2>conftest.er1
4991     ac_status=$?
4992     grep -v '^ *+' conftest.er1 >conftest.err
4993     rm -f conftest.er1
4994     cat conftest.err >&5
4995     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4996     (exit $ac_status); } &&
4997     { ac_try='test -z "$ac_c_werror_flag"
4998     || test ! -s conftest.err'
4999     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5000     (eval $ac_try) 2>&5
5001     ac_status=$?
5002     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5003     (exit $ac_status); }; } &&
5004     { ac_try='test -s conftest$ac_exeext'
5005     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5006     (eval $ac_try) 2>&5
5007     ac_status=$?
5008     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5009     (exit $ac_status); }; }; then
5010     ac_cv_search_crypt="none required"
5011     else
5012     echo "$as_me: failed program was:" >&5
5013     sed 's/^/| /' conftest.$ac_ext >&5
5014    
5015     fi
5016     rm -f conftest.err conftest.$ac_objext \
5017     conftest$ac_exeext conftest.$ac_ext
5018     if test "$ac_cv_search_crypt" = no; then
5019     for ac_lib in crypt descrypt; do
5020     LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5021     cat >conftest.$ac_ext <<_ACEOF
5022     /* confdefs.h. */
5023     _ACEOF
5024     cat confdefs.h >>conftest.$ac_ext
5025     cat >>conftest.$ac_ext <<_ACEOF
5026     /* end confdefs.h. */
5027    
5028     /* Override any gcc2 internal prototype to avoid an error. */
5029     #ifdef __cplusplus
5030     extern "C"
5031     #endif
5032     /* We use char because int might match the return type of a gcc2
5033     builtin and then its argument prototype would still apply. */
5034     char crypt ();
5035     int
5036     main ()
5037     {
5038     crypt ();
5039     ;
5040     return 0;
5041     }
5042     _ACEOF
5043     rm -f conftest.$ac_objext conftest$ac_exeext
5044     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5045     (eval $ac_link) 2>conftest.er1
5046     ac_status=$?
5047     grep -v '^ *+' conftest.er1 >conftest.err
5048     rm -f conftest.er1
5049     cat conftest.err >&5
5050     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5051     (exit $ac_status); } &&
5052     { ac_try='test -z "$ac_c_werror_flag"
5053     || test ! -s conftest.err'
5054     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5055     (eval $ac_try) 2>&5
5056     ac_status=$?
5057     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5058     (exit $ac_status); }; } &&
5059     { ac_try='test -s conftest$ac_exeext'
5060     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5061     (eval $ac_try) 2>&5
5062     ac_status=$?
5063     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5064     (exit $ac_status); }; }; then
5065     ac_cv_search_crypt="-l$ac_lib"
5066     break
5067     else
5068     echo "$as_me: failed program was:" >&5
5069     sed 's/^/| /' conftest.$ac_ext >&5
5070    
5071     fi
5072     rm -f conftest.err conftest.$ac_objext \
5073     conftest$ac_exeext conftest.$ac_ext
5074     done
5075     fi
5076     LIBS=$ac_func_search_save_LIBS
5077     fi
5078     echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
5079     echo "${ECHO_T}$ac_cv_search_crypt" >&6
5080     if test "$ac_cv_search_crypt" != no; then
5081     test "$ac_cv_search_crypt" = "none required" || LIBS="$ac_cv_search_crypt $LIBS"
5082    
5083     fi
5084    
5085    
5086     CRYPT_LIB=$ac_cv_search_crypt
5087    
5088     if test "$CRYPT_LIB" = "none required"; then
5089     unset CRYPT_LIB
5090     elif test "$CRYPT_LIB" = no; then
5091     CRYPT_C=crypt.c
5092     unset CRYPT_LIB
5093     fi
5094    
5095    
5096    
5097    
5098     echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
5099     echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
5100     if test "${gcc_cv_header_string+set}" = set; then
5101     echo $ECHO_N "(cached) $ECHO_C" >&6
5102     else
5103    
5104     cat >conftest.$ac_ext <<_ACEOF
5105     #include <string.h>
5106     #include <strings.h>
5107     _ACEOF
5108     rm -f conftest.$ac_objext
5109     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5110     (eval $ac_compile) 2>conftest.er1
5111     ac_status=$?
5112     grep -v '^ *+' conftest.er1 >conftest.err
5113     rm -f conftest.er1
5114     cat conftest.err >&5
5115     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5116     (exit $ac_status); } &&
5117     { ac_try='test -z "$ac_c_werror_flag"
5118     || test ! -s conftest.err'
5119     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5120     (eval $ac_try) 2>&5
5121     ac_status=$?
5122     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5123     (exit $ac_status); }; } &&
5124     { ac_try='test -s conftest.$ac_objext'
5125     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5126     (eval $ac_try) 2>&5
5127     ac_status=$?
5128     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5129     (exit $ac_status); }; }; then
5130     gcc_cv_header_string=yes
5131     else
5132     echo "$as_me: failed program was:" >&5
5133     sed 's/^/| /' conftest.$ac_ext >&5
5134    
5135     gcc_cv_header_string=no
5136     fi
5137     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5138    
5139     fi
5140     echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
5141     echo "${ECHO_T}$gcc_cv_header_string" >&6
5142    
5143     if test "$gcc_cv_header_string" = "yes"; then
5144    
5145     cat >>confdefs.h <<\_ACEOF
5146     #define STRING_WITH_STRINGS 1
5147     _ACEOF
5148    
5149     fi
5150    
5151     echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
5152     echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
5153     if test "${ac_cv_c_bigendian+set}" = set; then
5154     echo $ECHO_N "(cached) $ECHO_C" >&6
5155     else
5156     # See if sys/param.h defines the BYTE_ORDER macro.
5157     cat >conftest.$ac_ext <<_ACEOF
5158     /* confdefs.h. */
5159     _ACEOF
5160     cat confdefs.h >>conftest.$ac_ext
5161     cat >>conftest.$ac_ext <<_ACEOF
5162     /* end confdefs.h. */
5163     #include <sys/types.h>
5164     #include <sys/param.h>
5165    
5166     int
5167     main ()
5168     {
5169     #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
5170     bogus endian macros
5171     #endif
5172    
5173     ;
5174     return 0;
5175     }
5176     _ACEOF
5177     rm -f conftest.$ac_objext
5178     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5179     (eval $ac_compile) 2>conftest.er1
5180     ac_status=$?
5181     grep -v '^ *+' conftest.er1 >conftest.err
5182     rm -f conftest.er1
5183     cat conftest.err >&5
5184     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5185     (exit $ac_status); } &&
5186     { ac_try='test -z "$ac_c_werror_flag"
5187     || test ! -s conftest.err'
5188     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5189     (eval $ac_try) 2>&5
5190     ac_status=$?
5191     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5192     (exit $ac_status); }; } &&
5193     { ac_try='test -s conftest.$ac_objext'
5194     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5195     (eval $ac_try) 2>&5
5196     ac_status=$?
5197     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5198     (exit $ac_status); }; }; then
5199     # It does; now see whether it defined to BIG_ENDIAN or not.
5200     cat >conftest.$ac_ext <<_ACEOF
5201     /* confdefs.h. */
5202     _ACEOF
5203     cat confdefs.h >>conftest.$ac_ext
5204     cat >>conftest.$ac_ext <<_ACEOF
5205     /* end confdefs.h. */
5206     #include <sys/types.h>
5207     #include <sys/param.h>
5208    
5209     int
5210     main ()
5211     {
5212     #if BYTE_ORDER != BIG_ENDIAN
5213     not big endian
5214     #endif
5215    
5216     ;
5217     return 0;
5218     }
5219     _ACEOF
5220     rm -f conftest.$ac_objext
5221     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5222     (eval $ac_compile) 2>conftest.er1
5223     ac_status=$?
5224     grep -v '^ *+' conftest.er1 >conftest.err
5225     rm -f conftest.er1
5226     cat conftest.err >&5
5227     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5228     (exit $ac_status); } &&
5229     { ac_try='test -z "$ac_c_werror_flag"
5230     || test ! -s conftest.err'
5231     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5232     (eval $ac_try) 2>&5
5233     ac_status=$?
5234     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5235     (exit $ac_status); }; } &&
5236     { ac_try='test -s conftest.$ac_objext'
5237     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5238     (eval $ac_try) 2>&5
5239     ac_status=$?
5240     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5241     (exit $ac_status); }; }; then
5242     ac_cv_c_bigendian=yes
5243     else
5244     echo "$as_me: failed program was:" >&5
5245     sed 's/^/| /' conftest.$ac_ext >&5
5246    
5247     ac_cv_c_bigendian=no
5248     fi
5249     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5250     else
5251     echo "$as_me: failed program was:" >&5
5252     sed 's/^/| /' conftest.$ac_ext >&5
5253    
5254     # It does not; compile a test program.
5255     if test "$cross_compiling" = yes; then
5256     # try to guess the endianness by grepping values into an object file
5257     ac_cv_c_bigendian=unknown
5258     cat >conftest.$ac_ext <<_ACEOF
5259     /* confdefs.h. */
5260     _ACEOF
5261     cat confdefs.h >>conftest.$ac_ext
5262     cat >>conftest.$ac_ext <<_ACEOF
5263     /* end confdefs.h. */
5264     short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
5265     short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
5266     void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
5267     short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
5268     short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
5269     void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
5270     int
5271     main ()
5272     {
5273     _ascii (); _ebcdic ();
5274     ;
5275     return 0;
5276     }
5277     _ACEOF
5278     rm -f conftest.$ac_objext
5279     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5280     (eval $ac_compile) 2>conftest.er1
5281     ac_status=$?
5282     grep -v '^ *+' conftest.er1 >conftest.err
5283     rm -f conftest.er1
5284     cat conftest.err >&5
5285     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5286     (exit $ac_status); } &&
5287     { ac_try='test -z "$ac_c_werror_flag"
5288     || test ! -s conftest.err'
5289     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5290     (eval $ac_try) 2>&5
5291     ac_status=$?
5292     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5293     (exit $ac_status); }; } &&
5294     { ac_try='test -s conftest.$ac_objext'
5295     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5296     (eval $ac_try) 2>&5
5297     ac_status=$?
5298     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5299     (exit $ac_status); }; }; then
5300     if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
5301     ac_cv_c_bigendian=yes
5302     fi
5303     if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
5304     if test "$ac_cv_c_bigendian" = unknown; then
5305     ac_cv_c_bigendian=no
5306     else
5307     # finding both strings is unlikely to happen, but who knows?
5308     ac_cv_c_bigendian=unknown
5309     fi
5310     fi
5311     else
5312     echo "$as_me: failed program was:" >&5
5313     sed 's/^/| /' conftest.$ac_ext >&5
5314    
5315     fi
5316     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5317     else
5318     cat >conftest.$ac_ext <<_ACEOF
5319     /* confdefs.h. */
5320     _ACEOF
5321     cat confdefs.h >>conftest.$ac_ext
5322     cat >>conftest.$ac_ext <<_ACEOF
5323     /* end confdefs.h. */
5324     int
5325     main ()
5326     {
5327     /* Are we little or big endian? From Harbison&Steele. */
5328     union
5329     {
5330     long l;
5331     char c[sizeof (long)];
5332     } u;
5333     u.l = 1;
5334     exit (u.c[sizeof (long) - 1] == 1);
5335     }
5336     _ACEOF
5337     rm -f conftest$ac_exeext
5338     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5339     (eval $ac_link) 2>&5
5340     ac_status=$?
5341     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5342     (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5343     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5344     (eval $ac_try) 2>&5
5345     ac_status=$?
5346     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5347     (exit $ac_status); }; }; then
5348     ac_cv_c_bigendian=no
5349     else
5350     echo "$as_me: program exited with status $ac_status" >&5
5351     echo "$as_me: failed program was:" >&5
5352     sed 's/^/| /' conftest.$ac_ext >&5
5353    
5354     ( exit $ac_status )
5355     ac_cv_c_bigendian=yes
5356     fi
5357     rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5358     fi
5359     fi
5360     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5361     fi
5362     echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
5363     echo "${ECHO_T}$ac_cv_c_bigendian" >&6
5364     case $ac_cv_c_bigendian in
5365     yes)
5366    
5367     cat >>confdefs.h <<\_ACEOF
5368     #define WORDS_BIGENDIAN 1
5369     _ACEOF
5370     ;;
5371     no)
5372     ;;
5373     *)
5374     { { echo "$as_me:$LINENO: error: unknown endianness
5375     presetting ac_cv_c_bigendian=no (or yes) will help" >&5
5376     echo "$as_me: error: unknown endianness
5377     presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
5378     { (exit 1); exit 1; }; } ;;
5379     esac
5380    
5381    
5382     if test "${ac_cv_header_stdarg_h+set}" = set; then
5383     echo "$as_me:$LINENO: checking for stdarg.h" >&5
5384     echo $ECHO_N "checking for stdarg.h... $ECHO_C" >&6
5385     if test "${ac_cv_header_stdarg_h+set}" = set; then
5386     echo $ECHO_N "(cached) $ECHO_C" >&6
5387     fi
5388     echo "$as_me:$LINENO: result: $ac_cv_header_stdarg_h" >&5
5389     echo "${ECHO_T}$ac_cv_header_stdarg_h" >&6
5390     else
5391     # Is the header compilable?
5392     echo "$as_me:$LINENO: checking stdarg.h usability" >&5
5393     echo $ECHO_N "checking stdarg.h usability... $ECHO_C" >&6
5394     cat >conftest.$ac_ext <<_ACEOF
5395     /* confdefs.h. */
5396     _ACEOF
5397     cat confdefs.h >>conftest.$ac_ext
5398     cat >>conftest.$ac_ext <<_ACEOF
5399     /* end confdefs.h. */
5400     $ac_includes_default
5401     #include <stdarg.h>
5402     _ACEOF
5403     rm -f conftest.$ac_objext
5404     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5405     (eval $ac_compile) 2>conftest.er1
5406     ac_status=$?
5407     grep -v '^ *+' conftest.er1 >conftest.err
5408     rm -f conftest.er1
5409     cat conftest.err >&5
5410     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5411     (exit $ac_status); } &&
5412     { ac_try='test -z "$ac_c_werror_flag"
5413     || test ! -s conftest.err'
5414     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5415     (eval $ac_try) 2>&5
5416     ac_status=$?
5417     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5418     (exit $ac_status); }; } &&
5419     { ac_try='test -s conftest.$ac_objext'
5420     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5421     (eval $ac_try) 2>&5
5422     ac_status=$?
5423     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5424     (exit $ac_status); }; }; then
5425     ac_header_compiler=yes
5426     else
5427     echo "$as_me: failed program was:" >&5
5428     sed 's/^/| /' conftest.$ac_ext >&5
5429    
5430     ac_header_compiler=no
5431     fi
5432     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5433     echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5434     echo "${ECHO_T}$ac_header_compiler" >&6
5435    
5436     # Is the header present?
5437     echo "$as_me:$LINENO: checking stdarg.h presence" >&5
5438     echo $ECHO_N "checking stdarg.h presence... $ECHO_C" >&6
5439     cat >conftest.$ac_ext <<_ACEOF
5440     /* confdefs.h. */
5441     _ACEOF
5442     cat confdefs.h >>conftest.$ac_ext
5443     cat >>conftest.$ac_ext <<_ACEOF
5444     /* end confdefs.h. */
5445     #include <stdarg.h>
5446     _ACEOF
5447     if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5448     (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5449     ac_status=$?
5450     grep -v '^ *+' conftest.er1 >conftest.err
5451     rm -f conftest.er1
5452     cat conftest.err >&5
5453     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5454     (exit $ac_status); } >/dev/null; then
5455     if test -s conftest.err; then
5456     ac_cpp_err=$ac_c_preproc_warn_flag
5457     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5458     else
5459     ac_cpp_err=
5460     fi
5461     else
5462     ac_cpp_err=yes
5463     fi
5464     if test -z "$ac_cpp_err"; then
5465     ac_header_preproc=yes
5466     else
5467     echo "$as_me: failed program was:" >&5
5468     sed 's/^/| /' conftest.$ac_ext >&5
5469    
5470     ac_header_preproc=no
5471     fi
5472     rm -f conftest.err conftest.$ac_ext
5473     echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5474     echo "${ECHO_T}$ac_header_preproc" >&6
5475    
5476     # So? What about this header?
5477     case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5478     yes:no: )
5479     { echo "$as_me:$LINENO: WARNING: stdarg.h: accepted by the compiler, rejected by the preprocessor!" >&5
5480     echo "$as_me: WARNING: stdarg.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5481     { echo "$as_me:$LINENO: WARNING: stdarg.h: proceeding with the compiler's result" >&5
5482     echo "$as_me: WARNING: stdarg.h: proceeding with the compiler's result" >&2;}
5483     ac_header_preproc=yes
5484     ;;
5485     no:yes:* )
5486     { echo "$as_me:$LINENO: WARNING: stdarg.h: present but cannot be compiled" >&5
5487     echo "$as_me: WARNING: stdarg.h: present but cannot be compiled" >&2;}
5488     { echo "$as_me:$LINENO: WARNING: stdarg.h: check for missing prerequisite headers?" >&5
5489     echo "$as_me: WARNING: stdarg.h: check for missing prerequisite headers?" >&2;}
5490     { echo "$as_me:$LINENO: WARNING: stdarg.h: see the Autoconf documentation" >&5
5491     echo "$as_me: WARNING: stdarg.h: see the Autoconf documentation" >&2;}
5492     { echo "$as_me:$LINENO: WARNING: stdarg.h: section \"Present But Cannot Be Compiled\"" >&5
5493     echo "$as_me: WARNING: stdarg.h: section \"Present But Cannot Be Compiled\"" >&2;}
5494     { echo "$as_me:$LINENO: WARNING: stdarg.h: proceeding with the preprocessor's result" >&5
5495     echo "$as_me: WARNING: stdarg.h: proceeding with the preprocessor's result" >&2;}
5496     { echo "$as_me:$LINENO: WARNING: stdarg.h: in the future, the compiler will take precedence" >&5
5497     echo "$as_me: WARNING: stdarg.h: in the future, the compiler will take precedence" >&2;}
5498     (
5499     cat <<\_ASBOX
5500     ## -------------------------------------- ##
5501     ## Report this to the ircd-hybrid lists. ##
5502     ## -------------------------------------- ##
5503     _ASBOX
5504     ) |
5505     sed "s/^/$as_me: WARNING: /" >&2
5506     ;;
5507     esac
5508     echo "$as_me:$LINENO: checking for stdarg.h" >&5
5509     echo $ECHO_N "checking for stdarg.h... $ECHO_C" >&6
5510     if test "${ac_cv_header_stdarg_h+set}" = set; then
5511     echo $ECHO_N "(cached) $ECHO_C" >&6
5512     else
5513     ac_cv_header_stdarg_h=$ac_header_preproc
5514     fi
5515     echo "$as_me:$LINENO: result: $ac_cv_header_stdarg_h" >&5
5516     echo "${ECHO_T}$ac_cv_header_stdarg_h" >&6
5517    
5518     fi
5519     if test $ac_cv_header_stdarg_h = yes; then
5520     :
5521     else
5522     { { echo "$as_me:$LINENO: error: ** stdarg.h could not be found - ircd-hybrid will not compile without it **" >&5
5523     echo "$as_me: error: ** stdarg.h could not be found - ircd-hybrid will not compile without it **" >&2;}
5524     { (exit 1); exit 1; }; }
5525     fi
5526    
5527    
5528    
5529    
5530     if test "$ac_cv_c_compiler_gnu" = yes; then
5531    
5532     echo "$as_me:$LINENO: checking for strlcpy" >&5
5533     echo $ECHO_N "checking for strlcpy... $ECHO_C" >&6
5534     save_CFLAGS=$CFLAGS
5535     CFLAGS="$CFLAGS -Wimplicit -Werror"
5536    
5537     cat >conftest.$ac_ext <<_ACEOF
5538     /* confdefs.h. */
5539     _ACEOF
5540     cat confdefs.h >>conftest.$ac_ext
5541     cat >>conftest.$ac_ext <<_ACEOF
5542     /* end confdefs.h. */
5543     #include <string.h>
5544     #include <stdlib.h>
5545     int
5546     main ()
5547     {
5548     char *a = malloc(6), *b = strdup("hello");
5549     strlcpy(a, b, 6);
5550    
5551     ;
5552     return 0;
5553     }
5554     _ACEOF
5555     rm -f conftest.$ac_objext conftest$ac_exeext
5556     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5557     (eval $ac_link) 2>conftest.er1
5558     ac_status=$?
5559     grep -v '^ *+' conftest.er1 >conftest.err
5560     rm -f conftest.er1
5561     cat conftest.err >&5
5562     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5563     (exit $ac_status); } &&
5564     { ac_try='test -z "$ac_c_werror_flag"
5565     || test ! -s conftest.err'
5566     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5567     (eval $ac_try) 2>&5
5568     ac_status=$?
5569     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5570     (exit $ac_status); }; } &&
5571     { ac_try='test -s conftest$ac_exeext'
5572     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5573     (eval $ac_try) 2>&5
5574     ac_status=$?
5575     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5576     (exit $ac_status); }; }; then
5577     echo "$as_me:$LINENO: result: yes" >&5
5578     echo "${ECHO_T}yes" >&6
5579    
5580     cat >>confdefs.h <<\_ACEOF
5581     #define HAVE_STRLCPY 1
5582     _ACEOF
5583    
5584     else
5585     echo "$as_me: failed program was:" >&5
5586     sed 's/^/| /' conftest.$ac_ext >&5
5587    
5588     echo "$as_me:$LINENO: result: no" >&5
5589     echo "${ECHO_T}no" >&6
5590    
5591     fi
5592     rm -f conftest.err conftest.$ac_objext \
5593     conftest$ac_exeext conftest.$ac_ext
5594    
5595     echo "$as_me:$LINENO: checking for strlcat" >&5
5596     echo $ECHO_N "checking for strlcat... $ECHO_C" >&6
5597     cat >conftest.$ac_ext <<_ACEOF
5598     /* confdefs.h. */
5599     _ACEOF
5600     cat confdefs.h >>conftest.$ac_ext
5601     cat >>conftest.$ac_ext <<_ACEOF
5602     /* end confdefs.h. */
5603     #include <string.h>
5604     #include <stdlib.h>
5605     int
5606     main ()
5607     {
5608     char *a = malloc(6), *b = strdup("hello");
5609     strlcat(a, b, 6);
5610    
5611     ;
5612     return 0;
5613     }
5614     _ACEOF
5615     rm -f conftest.$ac_objext conftest$ac_exeext
5616     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5617     (eval $ac_link) 2>conftest.er1
5618     ac_status=$?
5619     grep -v '^ *+' conftest.er1 >conftest.err
5620     rm -f conftest.er1
5621     cat conftest.err >&5
5622     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5623     (exit $ac_status); } &&
5624     { ac_try='test -z "$ac_c_werror_flag"
5625     || test ! -s conftest.err'
5626     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5627     (eval $ac_try) 2>&5
5628     ac_status=$?
5629     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5630     (exit $ac_status); }; } &&
5631     { ac_try='test -s conftest$ac_exeext'
5632     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5633     (eval $ac_try) 2>&5
5634     ac_status=$?
5635     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5636     (exit $ac_status); }; }; then
5637     echo "$as_me:$LINENO: result: yes" >&5
5638     echo "${ECHO_T}yes" >&6
5639    
5640     cat >>confdefs.h <<\_ACEOF
5641     #define HAVE_STRLCAT 1
5642     _ACEOF
5643    
5644     else
5645     echo "$as_me: failed program was:" >&5
5646     sed 's/^/| /' conftest.$ac_ext >&5
5647    
5648     echo "$as_me:$LINENO: result: no" >&5
5649     echo "${ECHO_T}no" >&6
5650    
5651     fi
5652     rm -f conftest.err conftest.$ac_objext \
5653     conftest$ac_exeext conftest.$ac_ext
5654    
5655     CFLAGS=$save_CFLAGS
5656    
5657     else
5658    
5659    
5660    
5661    
5662     for ac_func in strlcat strlcpy
5663     do
5664     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5665     echo "$as_me:$LINENO: checking for $ac_func" >&5
5666     echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5667     if eval "test \"\${$as_ac_var+set}\" = set"; then
5668     echo $ECHO_N "(cached) $ECHO_C" >&6
5669     else
5670     cat >conftest.$ac_ext <<_ACEOF
5671     /* confdefs.h. */
5672     _ACEOF
5673     cat confdefs.h >>conftest.$ac_ext
5674     cat >>conftest.$ac_ext <<_ACEOF
5675     /* end confdefs.h. */
5676     /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5677     For example, HP-UX 11i <limits.h> declares gettimeofday. */
5678     #define $ac_func innocuous_$ac_func
5679    
5680     /* System header to define __stub macros and hopefully few prototypes,
5681     which can conflict with char $ac_func (); below.
5682     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5683     <limits.h> exists even on freestanding compilers. */
5684    
5685     #ifdef __STDC__
5686     # include <limits.h>
5687     #else
5688     # include <assert.h>
5689     #endif
5690    
5691     #undef $ac_func
5692    
5693     /* Override any gcc2 internal prototype to avoid an error. */
5694     #ifdef __cplusplus
5695     extern "C"
5696     {
5697     #endif
5698     /* We use char because int might match the return type of a gcc2
5699     builtin and then its argument prototype would still apply. */
5700     char $ac_func ();
5701     /* The GNU C library defines this for functions which it implements
5702     to always fail with ENOSYS. Some functions are actually named
5703     something starting with __ and the normal name is an alias. */
5704     #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5705     choke me
5706     #else
5707     char (*f) () = $ac_func;
5708     #endif
5709     #ifdef __cplusplus
5710     }
5711     #endif
5712    
5713     int
5714     main ()
5715     {
5716     return f != $ac_func;
5717     ;
5718     return 0;
5719     }
5720     _ACEOF
5721     rm -f conftest.$ac_objext conftest$ac_exeext
5722     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5723     (eval $ac_link) 2>conftest.er1
5724     ac_status=$?
5725     grep -v '^ *+' conftest.er1 >conftest.err
5726     rm -f conftest.er1
5727     cat conftest.err >&5
5728     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5729     (exit $ac_status); } &&
5730     { ac_try='test -z "$ac_c_werror_flag"
5731     || test ! -s conftest.err'
5732     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5733     (eval $ac_try) 2>&5
5734     ac_status=$?
5735     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5736     (exit $ac_status); }; } &&
5737     { ac_try='test -s conftest$ac_exeext'
5738     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5739     (eval $ac_try) 2>&5
5740     ac_status=$?
5741     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5742     (exit $ac_status); }; }; then
5743     eval "$as_ac_var=yes"
5744     else
5745     echo "$as_me: failed program was:" >&5
5746     sed 's/^/| /' conftest.$ac_ext >&5
5747    
5748     eval "$as_ac_var=no"
5749     fi
5750     rm -f conftest.err conftest.$ac_objext \
5751     conftest$ac_exeext conftest.$ac_ext
5752     fi
5753     echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5754     echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5755     if test `eval echo '${'$as_ac_var'}'` = yes; then
5756     cat >>confdefs.h <<_ACEOF
5757     #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5758     _ACEOF
5759    
5760     fi
5761     done
5762    
5763    
5764     fi
5765    
5766     echo "$as_me:$LINENO: checking for int64_t" >&5
5767     echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
5768     if test "${ac_cv_type_int64_t+set}" = set; then
5769     echo $ECHO_N "(cached) $ECHO_C" >&6
5770     else
5771     cat >conftest.$ac_ext <<_ACEOF
5772     /* confdefs.h. */
5773     _ACEOF
5774     cat confdefs.h >>conftest.$ac_ext
5775     cat >>conftest.$ac_ext <<_ACEOF
5776     /* end confdefs.h. */
5777     $ac_includes_default
5778     int
5779     main ()
5780     {
5781     if ((int64_t *) 0)
5782     return 0;
5783     if (sizeof (int64_t))
5784     return 0;
5785     ;
5786     return 0;
5787     }
5788     _ACEOF
5789     rm -f conftest.$ac_objext
5790     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5791     (eval $ac_compile) 2>conftest.er1
5792     ac_status=$?
5793     grep -v '^ *+' conftest.er1 >conftest.err
5794     rm -f conftest.er1
5795     cat conftest.err >&5
5796     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5797     (exit $ac_status); } &&
5798     { ac_try='test -z "$ac_c_werror_flag"
5799     || test ! -s conftest.err'
5800     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5801     (eval $ac_try) 2>&5
5802     ac_status=$?
5803     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5804     (exit $ac_status); }; } &&
5805     { ac_try='test -s conftest.$ac_objext'
5806     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5807     (eval $ac_try) 2>&5
5808     ac_status=$?
5809     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5810     (exit $ac_status); }; }; then
5811     ac_cv_type_int64_t=yes
5812     else
5813     echo "$as_me: failed program was:" >&5
5814     sed 's/^/| /' conftest.$ac_ext >&5
5815    
5816     ac_cv_type_int64_t=no
5817     fi
5818     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5819     fi
5820     echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
5821     echo "${ECHO_T}$ac_cv_type_int64_t" >&6
5822    
5823     echo "$as_me:$LINENO: checking size of int64_t" >&5
5824     echo $ECHO_N "checking size of int64_t... $ECHO_C" >&6
5825     if test "${ac_cv_sizeof_int64_t+set}" = set; then
5826     echo $ECHO_N "(cached) $ECHO_C" >&6
5827     else
5828     if test "$ac_cv_type_int64_t" = yes; then
5829     # The cast to unsigned long works around a bug in the HP C Compiler
5830     # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5831     # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5832     # This bug is HP SR number 8606223364.
5833     if test "$cross_compiling" = yes; then
5834     # Depending upon the size, compute the lo and hi bounds.
5835     cat >conftest.$ac_ext <<_ACEOF
5836     /* confdefs.h. */
5837     _ACEOF
5838     cat confdefs.h >>conftest.$ac_ext
5839     cat >>conftest.$ac_ext <<_ACEOF
5840     /* end confdefs.h. */
5841     $ac_includes_default
5842     int
5843     main ()
5844     {
5845     static int test_array [1 - 2 * !(((long) (sizeof (int64_t))) >= 0)];
5846     test_array [0] = 0
5847    
5848     ;
5849     return 0;
5850     }
5851     _ACEOF
5852     rm -f conftest.$ac_objext
5853     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5854     (eval $ac_compile) 2>conftest.er1
5855     ac_status=$?
5856     grep -v '^ *+' conftest.er1 >conftest.err
5857     rm -f conftest.er1
5858     cat conftest.err >&5
5859     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5860     (exit $ac_status); } &&
5861     { ac_try='test -z "$ac_c_werror_flag"
5862     || test ! -s conftest.err'
5863     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5864     (eval $ac_try) 2>&5
5865     ac_status=$?
5866     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5867     (exit $ac_status); }; } &&
5868     { ac_try='test -s conftest.$ac_objext'
5869     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5870     (eval $ac_try) 2>&5
5871     ac_status=$?
5872     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5873     (exit $ac_status); }; }; then
5874     ac_lo=0 ac_mid=0
5875     while :; do
5876     cat >conftest.$ac_ext <<_ACEOF
5877     /* confdefs.h. */
5878     _ACEOF
5879     cat confdefs.h >>conftest.$ac_ext
5880     cat >>conftest.$ac_ext <<_ACEOF
5881     /* end confdefs.h. */
5882     $ac_includes_default
5883     int
5884     main ()
5885     {
5886     static int test_array [1 - 2 * !(((long) (sizeof (int64_t))) <= $ac_mid)];
5887     test_array [0] = 0
5888    
5889     ;
5890     return 0;
5891     }
5892     _ACEOF
5893     rm -f conftest.$ac_objext
5894     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5895     (eval $ac_compile) 2>conftest.er1
5896     ac_status=$?
5897     grep -v '^ *+' conftest.er1 >conftest.err
5898     rm -f conftest.er1
5899     cat conftest.err >&5
5900     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5901     (exit $ac_status); } &&
5902     { ac_try='test -z "$ac_c_werror_flag"
5903     || test ! -s conftest.err'
5904     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5905     (eval $ac_try) 2>&5
5906     ac_status=$?
5907     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5908     (exit $ac_status); }; } &&
5909     { ac_try='test -s conftest.$ac_objext'
5910     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5911     (eval $ac_try) 2>&5
5912     ac_status=$?
5913     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5914     (exit $ac_status); }; }; then
5915     ac_hi=$ac_mid; break
5916     else
5917     echo "$as_me: failed program was:" >&5
5918     sed 's/^/| /' conftest.$ac_ext >&5
5919    
5920     ac_lo=`expr $ac_mid + 1`
5921     if test $ac_lo -le $ac_mid; then
5922     ac_lo= ac_hi=
5923     break
5924     fi
5925     ac_mid=`expr 2 '*' $ac_mid + 1`
5926     fi
5927     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5928     done
5929     else
5930     echo "$as_me: failed program was:" >&5
5931     sed 's/^/| /' conftest.$ac_ext >&5
5932    
5933     cat >conftest.$ac_ext <<_ACEOF
5934     /* confdefs.h. */
5935     _ACEOF
5936     cat confdefs.h >>conftest.$ac_ext
5937     cat >>conftest.$ac_ext <<_ACEOF
5938     /* end confdefs.h. */
5939     $ac_includes_default
5940     int
5941     main ()
5942     {
5943     static int test_array [1 - 2 * !(((long) (sizeof (int64_t))) < 0)];
5944     test_array [0] = 0
5945    
5946     ;
5947     return 0;
5948     }
5949     _ACEOF
5950     rm -f conftest.$ac_objext
5951     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5952     (eval $ac_compile) 2>conftest.er1
5953     ac_status=$?
5954     grep -v '^ *+' conftest.er1 >conftest.err
5955     rm -f conftest.er1
5956     cat conftest.err >&5
5957     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5958     (exit $ac_status); } &&
5959     { ac_try='test -z "$ac_c_werror_flag"
5960     || test ! -s conftest.err'
5961     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5962     (eval $ac_try) 2>&5
5963     ac_status=$?
5964     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5965     (exit $ac_status); }; } &&
5966     { ac_try='test -s conftest.$ac_objext'
5967     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5968     (eval $ac_try) 2>&5
5969     ac_status=$?
5970     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5971     (exit $ac_status); }; }; then
5972     ac_hi=-1 ac_mid=-1
5973     while :; do
5974     cat >conftest.$ac_ext <<_ACEOF
5975     /* confdefs.h. */
5976     _ACEOF
5977     cat confdefs.h >>conftest.$ac_ext
5978     cat >>conftest.$ac_ext <<_ACEOF
5979     /* end confdefs.h. */
5980     $ac_includes_default
5981     int
5982     main ()
5983     {
5984     static int test_array [1 - 2 * !(((long) (sizeof (int64_t))) >= $ac_mid)];
5985     test_array [0] = 0
5986    
5987     ;
5988     return 0;
5989     }
5990     _ACEOF
5991     rm -f conftest.$ac_objext
5992     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5993     (eval $ac_compile) 2>conftest.er1
5994     ac_status=$?
5995     grep -v '^ *+' conftest.er1 >conftest.err
5996     rm -f conftest.er1
5997     cat conftest.err >&5
5998     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5999     (exit $ac_status); } &&
6000     { ac_try='test -z "$ac_c_werror_flag"
6001     || test ! -s conftest.err'
6002     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6003     (eval $ac_try) 2>&5
6004     ac_status=$?
6005     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6006     (exit $ac_status); }; } &&
6007     { ac_try='test -s conftest.$ac_objext'
6008     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6009     (eval $ac_try) 2>&5
6010     ac_status=$?
6011     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6012     (exit $ac_status); }; }; then
6013     ac_lo=$ac_mid; break
6014     else
6015     echo "$as_me: failed program was:" >&5
6016     sed 's/^/| /' conftest.$ac_ext >&5
6017    
6018     ac_hi=`expr '(' $ac_mid ')' - 1`
6019     if test $ac_mid -le $ac_hi; then
6020     ac_lo= ac_hi=
6021     break
6022     fi
6023     ac_mid=`expr 2 '*' $ac_mid`
6024     fi
6025     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6026     done
6027     else
6028     echo "$as_me: failed program was:" >&5
6029     sed 's/^/| /' conftest.$ac_ext >&5
6030    
6031     ac_lo= ac_hi=
6032     fi
6033     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6034     fi
6035     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6036     # Binary search between lo and hi bounds.
6037     while test "x$ac_lo" != "x$ac_hi"; do
6038     ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6039     cat >conftest.$ac_ext <<_ACEOF
6040     /* confdefs.h. */
6041     _ACEOF
6042     cat confdefs.h >>conftest.$ac_ext
6043     cat >>conftest.$ac_ext <<_ACEOF
6044     /* end confdefs.h. */
6045     $ac_includes_default
6046     int
6047     main ()
6048     {
6049     static int test_array [1 - 2 * !(((long) (sizeof (int64_t))) <= $ac_mid)];
6050     test_array [0] = 0
6051    
6052     ;
6053     return 0;
6054     }
6055     _ACEOF
6056     rm -f conftest.$ac_objext
6057     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6058     (eval $ac_compile) 2>conftest.er1
6059     ac_status=$?
6060     grep -v '^ *+' conftest.er1 >conftest.err
6061     rm -f conftest.er1
6062     cat conftest.err >&5
6063     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6064     (exit $ac_status); } &&
6065     { ac_try='test -z "$ac_c_werror_flag"
6066     || test ! -s conftest.err'
6067     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6068     (eval $ac_try) 2>&5
6069     ac_status=$?
6070     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6071     (exit $ac_status); }; } &&
6072     { ac_try='test -s conftest.$ac_objext'
6073     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6074     (eval $ac_try) 2>&5
6075     ac_status=$?
6076     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6077     (exit $ac_status); }; }; then
6078     ac_hi=$ac_mid
6079     else
6080     echo "$as_me: failed program was:" >&5
6081     sed 's/^/| /' conftest.$ac_ext >&5
6082    
6083     ac_lo=`expr '(' $ac_mid ')' + 1`
6084     fi
6085     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6086     done
6087     case $ac_lo in
6088     ?*) ac_cv_sizeof_int64_t=$ac_lo;;
6089     '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int64_t), 77
6090     See \`config.log' for more details." >&5
6091     echo "$as_me: error: cannot compute sizeof (int64_t), 77
6092     See \`config.log' for more details." >&2;}
6093     { (exit 1); exit 1; }; } ;;
6094     esac
6095     else
6096     if test "$cross_compiling" = yes; then
6097     { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6098     See \`config.log' for more details." >&5
6099     echo "$as_me: error: cannot run test program while cross compiling
6100     See \`config.log' for more details." >&2;}
6101     { (exit 1); exit 1; }; }
6102     else
6103     cat >conftest.$ac_ext <<_ACEOF
6104     /* confdefs.h. */
6105     _ACEOF
6106     cat confdefs.h >>conftest.$ac_ext
6107     cat >>conftest.$ac_ext <<_ACEOF
6108     /* end confdefs.h. */
6109     $ac_includes_default
6110     long longval () { return (long) (sizeof (int64_t)); }
6111     unsigned long ulongval () { return (long) (sizeof (int64_t)); }
6112     #include <stdio.h>
6113     #include <stdlib.h>
6114     int
6115     main ()
6116     {
6117    
6118     FILE *f = fopen ("conftest.val", "w");
6119     if (! f)
6120     exit (1);
6121     if (((long) (sizeof (int64_t))) < 0)
6122     {
6123     long i = longval ();
6124     if (i != ((long) (sizeof (int64_t))))
6125     exit (1);
6126     fprintf (f, "%ld\n", i);
6127     }
6128     else
6129     {
6130     unsigned long i = ulongval ();
6131     if (i != ((long) (sizeof (int64_t))))
6132     exit (1);
6133     fprintf (f, "%lu\n", i);
6134     }
6135     exit (ferror (f) || fclose (f) != 0);
6136    
6137     ;
6138     return 0;
6139     }
6140     _ACEOF
6141     rm -f conftest$ac_exeext
6142     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6143     (eval $ac_link) 2>&5
6144     ac_status=$?
6145     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6146     (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6147     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6148     (eval $ac_try) 2>&5
6149     ac_status=$?
6150     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6151     (exit $ac_status); }; }; then
6152     ac_cv_sizeof_int64_t=`cat conftest.val`
6153     else
6154     echo "$as_me: program exited with status $ac_status" >&5
6155     echo "$as_me: failed program was:" >&5
6156     sed 's/^/| /' conftest.$ac_ext >&5
6157    
6158     ( exit $ac_status )
6159     { { echo "$as_me:$LINENO: error: cannot compute sizeof (int64_t), 77
6160     See \`config.log' for more details." >&5
6161     echo "$as_me: error: cannot compute sizeof (int64_t), 77
6162     See \`config.log' for more details." >&2;}
6163     { (exit 1); exit 1; }; }
6164     fi
6165     rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6166     fi
6167     fi
6168     rm -f conftest.val
6169     else
6170     ac_cv_sizeof_int64_t=0
6171     fi
6172     fi
6173     echo "$as_me:$LINENO: result: $ac_cv_sizeof_int64_t" >&5
6174     echo "${ECHO_T}$ac_cv_sizeof_int64_t" >&6
6175     cat >>confdefs.h <<_ACEOF
6176     #define SIZEOF_INT64_T $ac_cv_sizeof_int64_t
6177     _ACEOF
6178    
6179    
6180     echo "$as_me:$LINENO: checking for long long" >&5
6181     echo $ECHO_N "checking for long long... $ECHO_C" >&6
6182     if test "${ac_cv_type_long_long+set}" = set; then
6183     echo $ECHO_N "(cached) $ECHO_C" >&6
6184     else
6185     cat >conftest.$ac_ext <<_ACEOF
6186     /* confdefs.h. */
6187     _ACEOF
6188     cat confdefs.h >>conftest.$ac_ext
6189     cat >>conftest.$ac_ext <<_ACEOF
6190     /* end confdefs.h. */
6191     $ac_includes_default
6192     int
6193     main ()
6194     {
6195     if ((long long *) 0)
6196     return 0;
6197     if (sizeof (long long))
6198     return 0;
6199     ;
6200     return 0;
6201     }
6202     _ACEOF
6203     rm -f conftest.$ac_objext
6204     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6205     (eval $ac_compile) 2>conftest.er1
6206     ac_status=$?
6207     grep -v '^ *+' conftest.er1 >conftest.err
6208     rm -f conftest.er1
6209     cat conftest.err >&5
6210     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6211     (exit $ac_status); } &&
6212     { ac_try='test -z "$ac_c_werror_flag"
6213     || test ! -s conftest.err'
6214     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6215     (eval $ac_try) 2>&5
6216     ac_status=$?
6217     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6218     (exit $ac_status); }; } &&
6219     { ac_try='test -s conftest.$ac_objext'
6220     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6221     (eval $ac_try) 2>&5
6222     ac_status=$?
6223     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6224     (exit $ac_status); }; }; then
6225     ac_cv_type_long_long=yes
6226     else
6227     echo "$as_me: failed program was:" >&5
6228     sed 's/^/| /' conftest.$ac_ext >&5
6229    
6230     ac_cv_type_long_long=no
6231     fi
6232     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6233     fi
6234     echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
6235     echo "${ECHO_T}$ac_cv_type_long_long" >&6
6236    
6237     echo "$as_me:$LINENO: checking size of long long" >&5
6238     echo $ECHO_N "checking size of long long... $ECHO_C" >&6
6239     if test "${ac_cv_sizeof_long_long+set}" = set; then
6240     echo $ECHO_N "(cached) $ECHO_C" >&6
6241     else
6242     if test "$ac_cv_type_long_long" = yes; then
6243     # The cast to unsigned long works around a bug in the HP C Compiler
6244     # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6245     # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6246     # This bug is HP SR number 8606223364.
6247     if test "$cross_compiling" = yes; then
6248     # Depending upon the size, compute the lo and hi bounds.
6249     cat >conftest.$ac_ext <<_ACEOF
6250     /* confdefs.h. */
6251     _ACEOF
6252     cat confdefs.h >>conftest.$ac_ext
6253     cat >>conftest.$ac_ext <<_ACEOF
6254     /* end confdefs.h. */
6255     $ac_includes_default
6256     int
6257     main ()
6258     {
6259     static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
6260     test_array [0] = 0
6261    
6262     ;
6263     return 0;
6264     }
6265     _ACEOF
6266     rm -f conftest.$ac_objext
6267     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6268     (eval $ac_compile) 2>conftest.er1
6269     ac_status=$?
6270     grep -v '^ *+' conftest.er1 >conftest.err
6271     rm -f conftest.er1
6272     cat conftest.err >&5
6273     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6274     (exit $ac_status); } &&
6275     { ac_try='test -z "$ac_c_werror_flag"
6276     || test ! -s conftest.err'
6277     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6278     (eval $ac_try) 2>&5
6279     ac_status=$?
6280     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6281     (exit $ac_status); }; } &&
6282     { ac_try='test -s conftest.$ac_objext'
6283     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6284     (eval $ac_try) 2>&5
6285     ac_status=$?
6286     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6287     (exit $ac_status); }; }; then
6288     ac_lo=0 ac_mid=0
6289     while :; do
6290     cat >conftest.$ac_ext <<_ACEOF
6291     /* confdefs.h. */
6292     _ACEOF
6293     cat confdefs.h >>conftest.$ac_ext
6294     cat >>conftest.$ac_ext <<_ACEOF
6295     /* end confdefs.h. */
6296     $ac_includes_default
6297     int
6298     main ()
6299     {
6300     static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
6301     test_array [0] = 0
6302    
6303     ;
6304     return 0;
6305     }
6306     _ACEOF
6307     rm -f conftest.$ac_objext
6308     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6309     (eval $ac_compile) 2>conftest.er1
6310     ac_status=$?
6311     grep -v '^ *+' conftest.er1 >conftest.err
6312     rm -f conftest.er1
6313     cat conftest.err >&5
6314     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6315     (exit $ac_status); } &&
6316     { ac_try='test -z "$ac_c_werror_flag"
6317     || test ! -s conftest.err'
6318     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6319     (eval $ac_try) 2>&5
6320     ac_status=$?
6321     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6322     (exit $ac_status); }; } &&
6323     { ac_try='test -s conftest.$ac_objext'
6324     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6325     (eval $ac_try) 2>&5
6326     ac_status=$?
6327     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6328     (exit $ac_status); }; }; then
6329     ac_hi=$ac_mid; break
6330     else
6331     echo "$as_me: failed program was:" >&5
6332     sed 's/^/| /' conftest.$ac_ext >&5
6333    
6334     ac_lo=`expr $ac_mid + 1`
6335     if test $ac_lo -le $ac_mid; then
6336     ac_lo= ac_hi=
6337     break
6338     fi
6339     ac_mid=`expr 2 '*' $ac_mid + 1`
6340     fi
6341     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6342     done
6343     else
6344     echo "$as_me: failed program was:" >&5
6345     sed 's/^/| /' conftest.$ac_ext >&5
6346    
6347     cat >conftest.$ac_ext <<_ACEOF
6348     /* confdefs.h. */
6349     _ACEOF
6350     cat confdefs.h >>conftest.$ac_ext
6351     cat >>conftest.$ac_ext <<_ACEOF
6352     /* end confdefs.h. */
6353     $ac_includes_default
6354     int
6355     main ()
6356     {
6357     static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
6358     test_array [0] = 0
6359    
6360     ;
6361     return 0;
6362     }
6363     _ACEOF
6364     rm -f conftest.$ac_objext
6365     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6366     (eval $ac_compile) 2>conftest.er1
6367     ac_status=$?
6368     grep -v '^ *+' conftest.er1 >conftest.err
6369     rm -f conftest.er1
6370     cat conftest.err >&5
6371     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6372     (exit $ac_status); } &&
6373     { ac_try='test -z "$ac_c_werror_flag"
6374     || test ! -s conftest.err'
6375     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6376     (eval $ac_try) 2>&5
6377     ac_status=$?
6378     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6379     (exit $ac_status); }; } &&
6380     { ac_try='test -s conftest.$ac_objext'
6381     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6382     (eval $ac_try) 2>&5
6383     ac_status=$?
6384     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6385     (exit $ac_status); }; }; then
6386     ac_hi=-1 ac_mid=-1
6387     while :; do
6388     cat >conftest.$ac_ext <<_ACEOF
6389     /* confdefs.h. */
6390     _ACEOF
6391     cat confdefs.h >>conftest.$ac_ext
6392     cat >>conftest.$ac_ext <<_ACEOF
6393     /* end confdefs.h. */
6394     $ac_includes_default
6395     int
6396     main ()
6397     {
6398     static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
6399     test_array [0] = 0
6400    
6401     ;
6402     return 0;
6403     }
6404     _ACEOF
6405     rm -f conftest.$ac_objext
6406     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6407     (eval $ac_compile) 2>conftest.er1
6408     ac_status=$?
6409     grep -v '^ *+' conftest.er1 >conftest.err
6410     rm -f conftest.er1
6411     cat conftest.err >&5
6412     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6413     (exit $ac_status); } &&
6414     { ac_try='test -z "$ac_c_werror_flag"
6415     || test ! -s conftest.err'
6416     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6417     (eval $ac_try) 2>&5
6418     ac_status=$?
6419     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6420     (exit $ac_status); }; } &&
6421     { ac_try='test -s conftest.$ac_objext'
6422     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6423     (eval $ac_try) 2>&5
6424     ac_status=$?
6425     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6426     (exit $ac_status); }; }; then
6427     ac_lo=$ac_mid; break
6428     else
6429     echo "$as_me: failed program was:" >&5
6430     sed 's/^/| /' conftest.$ac_ext >&5
6431    
6432     ac_hi=`expr '(' $ac_mid ')' - 1`
6433     if test $ac_mid -le $ac_hi; then
6434     ac_lo= ac_hi=
6435     break
6436     fi
6437     ac_mid=`expr 2 '*' $ac_mid`
6438     fi
6439     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6440     done
6441     else
6442     echo "$as_me: failed program was:" >&5
6443     sed 's/^/| /' conftest.$ac_ext >&5
6444    
6445     ac_lo= ac_hi=
6446     fi
6447     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6448     fi
6449     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6450     # Binary search between lo and hi bounds.
6451     while test "x$ac_lo" != "x$ac_hi"; do
6452     ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6453     cat >conftest.$ac_ext <<_ACEOF
6454     /* confdefs.h. */
6455     _ACEOF
6456     cat confdefs.h >>conftest.$ac_ext
6457     cat >>conftest.$ac_ext <<_ACEOF
6458     /* end confdefs.h. */
6459     $ac_includes_default
6460     int
6461     main ()
6462     {
6463     static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
6464     test_array [0] = 0
6465    
6466     ;
6467     return 0;
6468     }
6469     _ACEOF
6470     rm -f conftest.$ac_objext
6471     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6472     (eval $ac_compile) 2>conftest.er1
6473     ac_status=$?
6474     grep -v '^ *+' conftest.er1 >conftest.err
6475     rm -f conftest.er1
6476     cat conftest.err >&5
6477     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6478     (exit $ac_status); } &&
6479     { ac_try='test -z "$ac_c_werror_flag"
6480     || test ! -s conftest.err'
6481     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6482     (eval $ac_try) 2>&5
6483     ac_status=$?
6484     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6485     (exit $ac_status); }; } &&
6486     { ac_try='test -s conftest.$ac_objext'
6487     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6488     (eval $ac_try) 2>&5
6489     ac_status=$?
6490     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6491     (exit $ac_status); }; }; then
6492     ac_hi=$ac_mid
6493     else
6494     echo "$as_me: failed program was:" >&5
6495     sed 's/^/| /' conftest.$ac_ext >&5
6496    
6497     ac_lo=`expr '(' $ac_mid ')' + 1`
6498     fi
6499     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6500     done
6501     case $ac_lo in
6502     ?*) ac_cv_sizeof_long_long=$ac_lo;;
6503     '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
6504     See \`config.log' for more details." >&5
6505     echo "$as_me: error: cannot compute sizeof (long long), 77
6506     See \`config.log' for more details." >&2;}
6507     { (exit 1); exit 1; }; } ;;
6508     esac
6509     else
6510     if test "$cross_compiling" = yes; then
6511     { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6512     See \`config.log' for more details." >&5
6513     echo "$as_me: error: cannot run test program while cross compiling
6514     See \`config.log' for more details." >&2;}
6515     { (exit 1); exit 1; }; }
6516     else
6517     cat >conftest.$ac_ext <<_ACEOF
6518     /* confdefs.h. */
6519     _ACEOF
6520     cat confdefs.h >>conftest.$ac_ext
6521     cat >>conftest.$ac_ext <<_ACEOF
6522     /* end confdefs.h. */
6523     $ac_includes_default
6524     long longval () { return (long) (sizeof (long long)); }
6525     unsigned long ulongval () { return (long) (sizeof (long long)); }
6526     #include <stdio.h>
6527     #include <stdlib.h>
6528     int
6529     main ()
6530     {
6531    
6532     FILE *f = fopen ("conftest.val", "w");
6533     if (! f)
6534     exit (1);
6535     if (((long) (sizeof (long long))) < 0)
6536     {
6537     long i = longval ();
6538     if (i != ((long) (sizeof (long long))))
6539     exit (1);
6540     fprintf (f, "%ld\n", i);
6541     }
6542     else
6543     {
6544     unsigned long i = ulongval ();
6545     if (i != ((long) (sizeof (long long))))
6546     exit (1);
6547     fprintf (f, "%lu\n", i);
6548     }
6549     exit (ferror (f) || fclose (f) != 0);
6550    
6551     ;
6552     return 0;
6553     }
6554     _ACEOF
6555     rm -f conftest$ac_exeext
6556     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6557     (eval $ac_link) 2>&5
6558     ac_status=$?
6559     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6560     (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6561     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6562     (eval $ac_try) 2>&5
6563     ac_status=$?
6564     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6565     (exit $ac_status); }; }; then
6566     ac_cv_sizeof_long_long=`cat conftest.val`
6567     else
6568     echo "$as_me: program exited with status $ac_status" >&5
6569     echo "$as_me: failed program was:" >&5
6570     sed 's/^/| /' conftest.$ac_ext >&5
6571    
6572     ( exit $ac_status )
6573     { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
6574     See \`config.log' for more details." >&5
6575     echo "$as_me: error: cannot compute sizeof (long long), 77
6576     See \`config.log' for more details." >&2;}
6577     { (exit 1); exit 1; }; }
6578     fi
6579     rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6580     fi
6581     fi
6582     rm -f conftest.val
6583     else
6584     ac_cv_sizeof_long_long=0
6585     fi
6586     fi
6587     echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
6588     echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
6589     cat >>confdefs.h <<_ACEOF
6590     #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6591     _ACEOF
6592    
6593    
6594    
6595     if test "$ac_cv_sizeof_int64_t" = 8; then
6596     echo "$as_me:$LINENO: checking for uint64_t" >&5
6597     echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
6598     if test "${ac_cv_type_uint64_t+set}" = set; then
6599     echo $ECHO_N "(cached) $ECHO_C" >&6
6600     else
6601     cat >conftest.$ac_ext <<_ACEOF
6602     /* confdefs.h. */
6603     _ACEOF
6604     cat confdefs.h >>conftest.$ac_ext
6605     cat >>conftest.$ac_ext <<_ACEOF
6606     /* end confdefs.h. */
6607     $ac_includes_default
6608     int
6609     main ()
6610     {
6611     if ((uint64_t *) 0)
6612     return 0;
6613     if (sizeof (uint64_t))
6614     return 0;
6615     ;
6616     return 0;
6617     }
6618     _ACEOF
6619     rm -f conftest.$ac_objext
6620     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6621     (eval $ac_compile) 2>conftest.er1
6622     ac_status=$?
6623     grep -v '^ *+' conftest.er1 >conftest.err
6624     rm -f conftest.er1
6625     cat conftest.err >&5
6626     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6627     (exit $ac_status); } &&
6628     { ac_try='test -z "$ac_c_werror_flag"
6629     || test ! -s conftest.err'
6630     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6631     (eval $ac_try) 2>&5
6632     ac_status=$?
6633     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6634     (exit $ac_status); }; } &&
6635     { ac_try='test -s conftest.$ac_objext'
6636     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6637     (eval $ac_try) 2>&5
6638     ac_status=$?
6639     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6640     (exit $ac_status); }; }; then
6641     ac_cv_type_uint64_t=yes
6642     else
6643     echo "$as_me: failed program was:" >&5
6644     sed 's/^/| /' conftest.$ac_ext >&5
6645    
6646     ac_cv_type_uint64_t=no
6647     fi
6648     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6649     fi
6650     echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
6651     echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
6652    
6653     echo "$as_me:$LINENO: checking for int64_t" >&5
6654     echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
6655     if test "${ac_cv_type_int64_t+set}" = set; then
6656     echo $ECHO_N "(cached) $ECHO_C" >&6
6657     else
6658     cat >conftest.$ac_ext <<_ACEOF
6659     /* confdefs.h. */
6660     _ACEOF
6661     cat confdefs.h >>conftest.$ac_ext
6662     cat >>conftest.$ac_ext <<_ACEOF
6663     /* end confdefs.h. */
6664     $ac_includes_default
6665     int
6666     main ()
6667     {
6668     if ((int64_t *) 0)
6669     return 0;
6670     if (sizeof (int64_t))
6671     return 0;
6672     ;
6673     return 0;
6674     }
6675     _ACEOF
6676     rm -f conftest.$ac_objext
6677     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6678     (eval $ac_compile) 2>conftest.er1
6679     ac_status=$?
6680     grep -v '^ *+' conftest.er1 >conftest.err
6681     rm -f conftest.er1
6682     cat conftest.err >&5
6683     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6684     (exit $ac_status); } &&
6685     { ac_try='test -z "$ac_c_werror_flag"
6686     || test ! -s conftest.err'
6687     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6688     (eval $ac_try) 2>&5
6689     ac_status=$?
6690     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6691     (exit $ac_status); }; } &&
6692     { ac_try='test -s conftest.$ac_objext'
6693     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6694     (eval $ac_try) 2>&5
6695     ac_status=$?
6696     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6697     (exit $ac_status); }; }; then
6698     ac_cv_type_int64_t=yes
6699     else
6700     echo "$as_me: failed program was:" >&5
6701     sed 's/^/| /' conftest.$ac_ext >&5
6702    
6703     ac_cv_type_int64_t=no
6704     fi
6705     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6706     fi
6707     echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
6708     echo "${ECHO_T}$ac_cv_type_int64_t" >&6
6709    
6710     elif test "$ac_cv_sizeof_long_long" = 8; then
6711     echo "$as_me:$LINENO: checking for uint64_t" >&5
6712     echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
6713     if test "${ac_cv_type_uint64_t+set}" = set; then
6714     echo $ECHO_N "(cached) $ECHO_C" >&6
6715     else
6716     cat >conftest.$ac_ext <<_ACEOF
6717     /* confdefs.h. */
6718     _ACEOF
6719     cat confdefs.h >>conftest.$ac_ext
6720     cat >>conftest.$ac_ext <<_ACEOF
6721     /* end confdefs.h. */
6722     $ac_includes_default
6723     int
6724     main ()
6725     {
6726     if ((uint64_t *) 0)
6727     return 0;
6728     if (sizeof (uint64_t))
6729     return 0;
6730     ;
6731     return 0;
6732     }
6733     _ACEOF
6734     rm -f conftest.$ac_objext
6735     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6736     (eval $ac_compile) 2>conftest.er1
6737     ac_status=$?
6738     grep -v '^ *+' conftest.er1 >conftest.err
6739     rm -f conftest.er1
6740     cat conftest.err >&5
6741     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6742     (exit $ac_status); } &&
6743     { ac_try='test -z "$ac_c_werror_flag"
6744     || test ! -s conftest.err'
6745     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6746     (eval $ac_try) 2>&5
6747     ac_status=$?
6748     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6749     (exit $ac_status); }; } &&
6750     { ac_try='test -s conftest.$ac_objext'
6751     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6752     (eval $ac_try) 2>&5
6753     ac_status=$?
6754     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6755     (exit $ac_status); }; }; then
6756     ac_cv_type_uint64_t=yes
6757     else
6758     echo "$as_me: failed program was:" >&5
6759     sed 's/^/| /' conftest.$ac_ext >&5
6760    
6761     ac_cv_type_uint64_t=no
6762     fi
6763     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6764     fi
6765     echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
6766     echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
6767     if test $ac_cv_type_uint64_t = yes; then
6768     :
6769     else
6770    
6771     cat >>confdefs.h <<_ACEOF
6772     #define uint64_t unsigned long long
6773     _ACEOF
6774    
6775     fi
6776    
6777     echo "$as_me:$LINENO: checking for int64_t" >&5
6778     echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
6779     if test "${ac_cv_type_int64_t+set}" = set; then
6780     echo $ECHO_N "(cached) $ECHO_C" >&6
6781     else
6782     cat >conftest.$ac_ext <<_ACEOF
6783     /* confdefs.h. */
6784     _ACEOF
6785     cat confdefs.h >>conftest.$ac_ext
6786     cat >>conftest.$ac_ext <<_ACEOF
6787     /* end confdefs.h. */
6788     $ac_includes_default
6789     int
6790     main ()
6791     {
6792     if ((int64_t *) 0)
6793     return 0;
6794     if (sizeof (int64_t))
6795     return 0;
6796     ;
6797     return 0;
6798     }
6799     _ACEOF
6800     rm -f conftest.$ac_objext
6801     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6802     (eval $ac_compile) 2>conftest.er1
6803     ac_status=$?
6804     grep -v '^ *+' conftest.er1 >conftest.err
6805     rm -f conftest.er1
6806     cat conftest.err >&5
6807     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6808     (exit $ac_status); } &&
6809     { ac_try='test -z "$ac_c_werror_flag"
6810     || test ! -s conftest.err'
6811     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6812     (eval $ac_try) 2>&5
6813     ac_status=$?
6814     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6815     (exit $ac_status); }; } &&
6816     { ac_try='test -s conftest.$ac_objext'
6817     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6818     (eval $ac_try) 2>&5
6819     ac_status=$?
6820     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6821     (exit $ac_status); }; }; then
6822     ac_cv_type_int64_t=yes
6823     else
6824     echo "$as_me: failed program was:" >&5
6825     sed 's/^/| /' conftest.$ac_ext >&5
6826    
6827     ac_cv_type_int64_t=no
6828     fi
6829     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6830     fi
6831     echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
6832     echo "${ECHO_T}$ac_cv_type_int64_t" >&6
6833     if test $ac_cv_type_int64_t = yes; then
6834     :
6835     else
6836    
6837     cat >>confdefs.h <<_ACEOF
6838     #define int64_t long long
6839     _ACEOF
6840    
6841     fi
6842    
6843     else
6844     { { echo "$as_me:$LINENO: error: Your system doesn't appear to have 64 bit integers. Aborting." >&5
6845     echo "$as_me: error: Your system doesn't appear to have 64 bit integers. Aborting." >&2;}
6846     { (exit 1); exit 1; }; }
6847     fi
6848    
6849     echo "$as_me:$LINENO: checking for u_int32_t" >&5
6850     echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
6851     if test "${ac_cv_type_u_int32_t+set}" = set; then
6852     echo $ECHO_N "(cached) $ECHO_C" >&6
6853     else
6854     cat >conftest.$ac_ext <<_ACEOF
6855     /* confdefs.h. */
6856     _ACEOF
6857     cat confdefs.h >>conftest.$ac_ext
6858     cat >>conftest.$ac_ext <<_ACEOF
6859     /* end confdefs.h. */
6860     $ac_includes_default
6861     int
6862     main ()
6863     {
6864     if ((u_int32_t *) 0)
6865     return 0;
6866     if (sizeof (u_int32_t))
6867     return 0;
6868     ;
6869     return 0;
6870     }
6871     _ACEOF
6872     rm -f conftest.$ac_objext
6873     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6874     (eval $ac_compile) 2>conftest.er1
6875     ac_status=$?
6876     grep -v '^ *+' conftest.er1 >conftest.err
6877     rm -f conftest.er1
6878     cat conftest.err >&5
6879     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6880     (exit $ac_status); } &&
6881     { ac_try='test -z "$ac_c_werror_flag"
6882     || test ! -s conftest.err'
6883     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6884     (eval $ac_try) 2>&5
6885     ac_status=$?
6886     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6887     (exit $ac_status); }; } &&
6888     { ac_try='test -s conftest.$ac_objext'
6889     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6890     (eval $ac_try) 2>&5
6891     ac_status=$?
6892     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6893     (exit $ac_status); }; }; then
6894     ac_cv_type_u_int32_t=yes
6895     else
6896     echo "$as_me: failed program was:" >&5
6897     sed 's/^/| /' conftest.$ac_ext >&5
6898    
6899     ac_cv_type_u_int32_t=no
6900     fi
6901     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6902     fi
6903     echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
6904     echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
6905     if test $ac_cv_type_u_int32_t = yes; then
6906     :
6907     else
6908    
6909     echo "$as_me:$LINENO: checking for uint32_t" >&5
6910     echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
6911     if test "${ac_cv_type_uint32_t+set}" = set; then
6912     echo $ECHO_N "(cached) $ECHO_C" >&6
6913     else
6914     cat >conftest.$ac_ext <<_ACEOF
6915     /* confdefs.h. */
6916     _ACEOF
6917     cat confdefs.h >>conftest.$ac_ext
6918     cat >>conftest.$ac_ext <<_ACEOF
6919     /* end confdefs.h. */
6920     $ac_includes_default
6921     int
6922     main ()
6923     {
6924     if ((uint32_t *) 0)
6925     return 0;
6926     if (sizeof (uint32_t))
6927     return 0;
6928     ;
6929     return 0;
6930     }
6931     _ACEOF
6932     rm -f conftest.$ac_objext
6933     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6934     (eval $ac_compile) 2>conftest.er1
6935     ac_status=$?
6936     grep -v '^ *+' conftest.er1 >conftest.err
6937     rm -f conftest.er1
6938     cat conftest.err >&5
6939     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6940     (exit $ac_status); } &&
6941     { ac_try='test -z "$ac_c_werror_flag"
6942     || test ! -s conftest.err'
6943     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6944     (eval $ac_try) 2>&5
6945     ac_status=$?
6946     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6947     (exit $ac_status); }; } &&
6948     { ac_try='test -s conftest.$ac_objext'
6949     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6950     (eval $ac_try) 2>&5
6951     ac_status=$?
6952     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6953     (exit $ac_status); }; }; then
6954     ac_cv_type_uint32_t=yes
6955     else
6956     echo "$as_me: failed program was:" >&5
6957     sed 's/^/| /' conftest.$ac_ext >&5
6958    
6959     ac_cv_type_uint32_t=no
6960     fi
6961     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6962     fi
6963     echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
6964     echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
6965     if test $ac_cv_type_uint32_t = yes; then
6966    
6967    
6968     cat >>confdefs.h <<\_ACEOF
6969     #define u_int32_t uint32_t
6970     _ACEOF
6971    
6972    
6973     else
6974    
6975     { echo "$as_me:$LINENO: WARNING: system has no u_int32_t or uint32_t, default to unsigned long int" >&5
6976     echo "$as_me: WARNING: system has no u_int32_t or uint32_t, default to unsigned long int" >&2;}
6977    
6978     cat >>confdefs.h <<\_ACEOF
6979     #define u_int32_t unsigned long int
6980     _ACEOF
6981    
6982    
6983     fi
6984    
6985    
6986     fi
6987    
6988    
6989     echo "$as_me:$LINENO: checking for u_int16_t" >&5
6990     echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6
6991     if test "${ac_cv_type_u_int16_t+set}" = set; then
6992     echo $ECHO_N "(cached) $ECHO_C" >&6
6993     else
6994     cat >conftest.$ac_ext <<_ACEOF
6995     /* confdefs.h. */
6996     _ACEOF
6997     cat confdefs.h >>conftest.$ac_ext
6998     cat >>conftest.$ac_ext <<_ACEOF
6999     /* end confdefs.h. */
7000     $ac_includes_default
7001     int
7002     main ()
7003     {
7004     if ((u_int16_t *) 0)
7005     return 0;
7006     if (sizeof (u_int16_t))
7007     return 0;
7008     ;
7009     return 0;
7010     }
7011     _ACEOF
7012     rm -f conftest.$ac_objext
7013     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7014     (eval $ac_compile) 2>conftest.er1
7015     ac_status=$?
7016     grep -v '^ *+' conftest.er1 >conftest.err
7017     rm -f conftest.er1
7018     cat conftest.err >&5
7019     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7020     (exit $ac_status); } &&
7021     { ac_try='test -z "$ac_c_werror_flag"
7022     || test ! -s conftest.err'
7023     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7024     (eval $ac_try) 2>&5
7025     ac_status=$?
7026     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7027     (exit $ac_status); }; } &&
7028     { ac_try='test -s conftest.$ac_objext'
7029     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7030     (eval $ac_try) 2>&5
7031     ac_status=$?
7032     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7033     (exit $ac_status); }; }; then
7034     ac_cv_type_u_int16_t=yes
7035     else
7036     echo "$as_me: failed program was:" >&5
7037     sed 's/^/| /' conftest.$ac_ext >&5
7038    
7039     ac_cv_type_u_int16_t=no
7040     fi
7041     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7042     fi
7043     echo "$as_me:$LINENO: result: $ac_cv_type_u_int16_t" >&5
7044     echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6
7045     if test $ac_cv_type_u_int16_t = yes; then
7046     :
7047     else
7048    
7049     echo "$as_me:$LINENO: checking for uint16_t" >&5
7050     echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6
7051     if test "${ac_cv_type_uint16_t+set}" = set; then
7052     echo $ECHO_N "(cached) $ECHO_C" >&6
7053     else
7054     cat >conftest.$ac_ext <<_ACEOF
7055     /* confdefs.h. */
7056     _ACEOF
7057     cat confdefs.h >>conftest.$ac_ext
7058     cat >>conftest.$ac_ext <<_ACEOF
7059     /* end confdefs.h. */
7060     $ac_includes_default
7061     int
7062     main ()
7063     {
7064     if ((uint16_t *) 0)
7065     return 0;
7066     if (sizeof (uint16_t))
7067     return 0;
7068     ;
7069     return 0;
7070     }
7071     _ACEOF
7072     rm -f conftest.$ac_objext
7073     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7074     (eval $ac_compile) 2>conftest.er1
7075     ac_status=$?
7076     grep -v '^ *+' conftest.er1 >conftest.err
7077     rm -f conftest.er1
7078     cat conftest.err >&5
7079     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7080     (exit $ac_status); } &&
7081     { ac_try='test -z "$ac_c_werror_flag"
7082     || test ! -s conftest.err'
7083     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7084     (eval $ac_try) 2>&5
7085     ac_status=$?
7086     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7087     (exit $ac_status); }; } &&
7088     { ac_try='test -s conftest.$ac_objext'
7089     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7090     (eval $ac_try) 2>&5
7091     ac_status=$?
7092     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7093     (exit $ac_status); }; }; then
7094     ac_cv_type_uint16_t=yes
7095     else
7096     echo "$as_me: failed program was:" >&5
7097     sed 's/^/| /' conftest.$ac_ext >&5
7098    
7099     ac_cv_type_uint16_t=no
7100     fi
7101     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7102     fi
7103     echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
7104     echo "${ECHO_T}$ac_cv_type_uint16_t" >&6
7105     if test $ac_cv_type_uint16_t = yes; then
7106    
7107    
7108     cat >>confdefs.h <<\_ACEOF
7109     #define u_int16_t uint16_t
7110     _ACEOF
7111    
7112    
7113     else
7114    
7115     { echo "$as_me:$LINENO: WARNING: system has no u_int16_t or uint16_t, default to unsigned short int" >&5
7116     echo "$as_me: WARNING: system has no u_int16_t or uint16_t, default to unsigned short int" >&2;}
7117    
7118     cat >>confdefs.h <<\_ACEOF
7119     #define u_int16_t unsigned short int
7120     _ACEOF
7121    
7122    
7123     fi
7124    
7125    
7126     fi
7127    
7128    
7129     echo "$as_me:$LINENO: checking for in_port_t" >&5
7130     echo $ECHO_N "checking for in_port_t... $ECHO_C" >&6
7131     if test "${ac_cv_type_in_port_t+set}" = set; then
7132     echo $ECHO_N "(cached) $ECHO_C" >&6
7133     else
7134     cat >conftest.$ac_ext <<_ACEOF
7135     /* confdefs.h. */
7136     _ACEOF
7137     cat confdefs.h >>conftest.$ac_ext
7138     cat >>conftest.$ac_ext <<_ACEOF
7139     /* end confdefs.h. */
7140     #include <sys/types.h>
7141     #include <netinet/in.h>
7142    
7143     int
7144     main ()
7145     {
7146     if ((in_port_t *) 0)
7147     return 0;
7148     if (sizeof (in_port_t))
7149     return 0;
7150     ;
7151     return 0;
7152     }
7153     _ACEOF
7154     rm -f conftest.$ac_objext
7155     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7156     (eval $ac_compile) 2>conftest.er1
7157     ac_status=$?
7158     grep -v '^ *+' conftest.er1 >conftest.err
7159     rm -f conftest.er1
7160     cat conftest.err >&5
7161     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7162     (exit $ac_status); } &&
7163     { ac_try='test -z "$ac_c_werror_flag"
7164     || test ! -s conftest.err'
7165     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7166     (eval $ac_try) 2>&5
7167     ac_status=$?
7168     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7169     (exit $ac_status); }; } &&
7170     { ac_try='test -s conftest.$ac_objext'
7171     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7172     (eval $ac_try) 2>&5
7173     ac_status=$?
7174     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7175     (exit $ac_status); }; }; then
7176     ac_cv_type_in_port_t=yes
7177     else
7178     echo "$as_me: failed program was:" >&5
7179     sed 's/^/| /' conftest.$ac_ext >&5
7180    
7181     ac_cv_type_in_port_t=no
7182     fi
7183     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7184     fi
7185     echo "$as_me:$LINENO: result: $ac_cv_type_in_port_t" >&5
7186     echo "${ECHO_T}$ac_cv_type_in_port_t" >&6
7187     if test $ac_cv_type_in_port_t = yes; then
7188     :
7189     else
7190    
7191     cat >>confdefs.h <<\_ACEOF
7192     #define in_port_t u_int16_t
7193     _ACEOF
7194    
7195     fi
7196    
7197    
7198     echo "$as_me:$LINENO: checking for sa_family_t" >&5
7199     echo $ECHO_N "checking for sa_family_t... $ECHO_C" >&6
7200     if test "${ac_cv_type_sa_family_t+set}" = set; then
7201     echo $ECHO_N "(cached) $ECHO_C" >&6
7202     else
7203     cat >conftest.$ac_ext <<_ACEOF
7204     /* confdefs.h. */
7205     _ACEOF
7206     cat confdefs.h >>conftest.$ac_ext
7207     cat >>conftest.$ac_ext <<_ACEOF
7208     /* end confdefs.h. */
7209     #include <sys/types.h>
7210     #include <sys/socket.h>
7211    
7212     int
7213     main ()
7214     {
7215     if ((sa_family_t *) 0)
7216     return 0;
7217     if (sizeof (sa_family_t))
7218     return 0;
7219     ;
7220     return 0;
7221     }
7222     _ACEOF
7223     rm -f conftest.$ac_objext
7224     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7225     (eval $ac_compile) 2>conftest.er1
7226     ac_status=$?
7227     grep -v '^ *+' conftest.er1 >conftest.err
7228     rm -f conftest.er1
7229     cat conftest.err >&5
7230     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7231     (exit $ac_status); } &&
7232     { ac_try='test -z "$ac_c_werror_flag"
7233     || test ! -s conftest.err'
7234     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7235     (eval $ac_try) 2>&5
7236     ac_status=$?
7237     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7238     (exit $ac_status); }; } &&
7239     { ac_try='test -s conftest.$ac_objext'
7240     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7241     (eval $ac_try) 2>&5
7242     ac_status=$?
7243     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7244     (exit $ac_status); }; }; then
7245     ac_cv_type_sa_family_t=yes
7246     else
7247     echo "$as_me: failed program was:" >&5
7248     sed 's/^/| /' conftest.$ac_ext >&5
7249    
7250     ac_cv_type_sa_family_t=no
7251     fi
7252     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7253     fi
7254     echo "$as_me:$LINENO: result: $ac_cv_type_sa_family_t" >&5
7255     echo "${ECHO_T}$ac_cv_type_sa_family_t" >&6
7256     if test $ac_cv_type_sa_family_t = yes; then
7257     :
7258     else
7259    
7260     cat >>confdefs.h <<\_ACEOF
7261     #define sa_family_t u_int16_t
7262     _ACEOF
7263    
7264     fi
7265    
7266    
7267    
7268    
7269    
7270    
7271    
7272    
7273    
7274    
7275    
7276     for ac_func in socketpair basename mmap snprintf vsnprintf lrand48 srand48 strtok_r usleep
7277     do
7278     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7279     echo "$as_me:$LINENO: checking for $ac_func" >&5
7280     echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7281     if eval "test \"\${$as_ac_var+set}\" = set"; then
7282     echo $ECHO_N "(cached) $ECHO_C" >&6
7283     else
7284     cat >conftest.$ac_ext <<_ACEOF
7285     /* confdefs.h. */
7286     _ACEOF
7287     cat confdefs.h >>conftest.$ac_ext
7288     cat >>conftest.$ac_ext <<_ACEOF
7289     /* end confdefs.h. */
7290     /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7291     For example, HP-UX 11i <limits.h> declares gettimeofday. */
7292     #define $ac_func innocuous_$ac_func
7293    
7294     /* System header to define __stub macros and hopefully few prototypes,
7295     which can conflict with char $ac_func (); below.
7296     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7297     <limits.h> exists even on freestanding compilers. */
7298    
7299     #ifdef __STDC__
7300     # include <limits.h>
7301     #else
7302     # include <assert.h>
7303     #endif
7304    
7305     #undef $ac_func
7306    
7307     /* Override any gcc2 internal prototype to avoid an error. */
7308     #ifdef __cplusplus
7309     extern "C"
7310     {
7311     #endif
7312     /* We use char because int might match the return type of a gcc2
7313     builtin and then its argument prototype would still apply. */
7314     char $ac_func ();
7315     /* The GNU C library defines this for functions which it implements
7316     to always fail with ENOSYS. Some functions are actually named
7317     something starting with __ and the normal name is an alias. */
7318     #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7319     choke me
7320     #else
7321     char (*f) () = $ac_func;
7322     #endif
7323     #ifdef __cplusplus
7324     }
7325     #endif
7326    
7327     int
7328     main ()
7329     {
7330     return f != $ac_func;
7331     ;
7332     return 0;
7333     }
7334     _ACEOF
7335     rm -f conftest.$ac_objext conftest$ac_exeext
7336     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7337     (eval $ac_link) 2>conftest.er1
7338     ac_status=$?
7339     grep -v '^ *+' conftest.er1 >conftest.err
7340     rm -f conftest.er1
7341     cat conftest.err >&5
7342     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7343     (exit $ac_status); } &&
7344     { ac_try='test -z "$ac_c_werror_flag"
7345     || test ! -s conftest.err'
7346     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7347     (eval $ac_try) 2>&5
7348     ac_status=$?
7349     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7350     (exit $ac_status); }; } &&
7351     { ac_try='test -s conftest$ac_exeext'
7352     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7353     (eval $ac_try) 2>&5
7354     ac_status=$?
7355     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7356     (exit $ac_status); }; }; then
7357     eval "$as_ac_var=yes"
7358     else
7359     echo "$as_me: failed program was:" >&5
7360     sed 's/^/| /' conftest.$ac_ext >&5
7361    
7362     eval "$as_ac_var=no"
7363     fi
7364     rm -f conftest.err conftest.$ac_objext \
7365     conftest$ac_exeext conftest.$ac_ext
7366     fi
7367     echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7368     echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7369     if test `eval echo '${'$as_ac_var'}'` = yes; then
7370     cat >>confdefs.h <<_ACEOF
7371     #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7372     _ACEOF
7373    
7374     fi
7375     done
7376    
7377    
7378     if test "$ac_cv_func_snprintf" = no -o "$ac_cv_func_vsnprintf" = no; then
7379     SNPRINTF_C="snprintf.c"
7380     fi
7381    
7382    
7383    
7384    
7385     echo "$as_me:$LINENO: checking for OpenSSL" >&5
7386     echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6
7387     # Check whether --enable-openssl or --disable-openssl was given.
7388     if test "${enable_openssl+set}" = set; then
7389     enableval="$enable_openssl"
7390     cf_enable_openssl=$enableval
7391     else
7392     cf_enable_openssl="auto"
7393     fi;
7394    
7395     if test "$cf_enable_openssl" != "no" ; then
7396     cf_openssl_basedir=""
7397     if test "$cf_enable_openssl" != "auto" &&
7398     test "$cf_enable_openssl" != "yes" ; then
7399     cf_openssl_basedir="`echo ${cf_enable_openssl} | sed 's/\/$//'`"
7400     else
7401     for dirs in /usr/local/ssl /usr/pkg /usr/local \
7402     /usr/local/openssl /usr/sfw; do
7403     if test -f "${dirs}/include/openssl/opensslv.h" ; then
7404     cf_openssl_basedir="${dirs}"
7405     break
7406     fi
7407     done
7408     unset dirs
7409     fi
7410     if test ! -z "$cf_openssl_basedir"; then
7411     if test -f "${cf_openssl_basedir}/include/openssl/opensslv.h" ; then
7412     SSL_INCLUDES="-I${cf_openssl_basedir}/include"
7413     SSL_LIBS="-L${cf_openssl_basedir}/lib"
7414     else
7415     cf_openssl_basedir=""
7416     fi
7417     else
7418     if test -f "/usr/include/openssl/opensslv.h" ; then
7419     cf_openssl_basedir="/usr"
7420     fi
7421     fi
7422    
7423     if test ! -z "$cf_openssl_basedir"; then
7424     echo "$as_me:$LINENO: result: $cf_openssl_basedir" >&5
7425     echo "${ECHO_T}$cf_openssl_basedir" >&6
7426     cf_enable_openssl="yes"
7427     else
7428     echo "$as_me:$LINENO: result: not found. Specify a correct path?" >&5
7429     echo "${ECHO_T}not found. Specify a correct path?" >&6
7430     cf_enable_openssl="no"
7431     fi
7432     unset cf_openssl_basedir
7433     else
7434     echo "$as_me:$LINENO: result: disabled" >&5
7435     echo "${ECHO_T}disabled" >&6
7436     fi
7437    
7438     save_CPPFLAGS="$CPPFLAGS"
7439     CPPFLAGS="$CPPFLAGS $SSL_INCLUDES"
7440     save_LIBS="$LIBS"
7441     LIBS="$LIBS $SSL_LIBS"
7442     if test "$cf_enable_openssl" != no; then
7443     echo "$as_me:$LINENO: checking for OpenSSL 0.9.6 or above" >&5
7444     echo $ECHO_N "checking for OpenSSL 0.9.6 or above... $ECHO_C" >&6
7445     if test "$cross_compiling" = yes; then
7446     cf_openssl_version_ok=no
7447     else
7448     cat >conftest.$ac_ext <<_ACEOF
7449     /* confdefs.h. */
7450     _ACEOF
7451     cat confdefs.h >>conftest.$ac_ext
7452     cat >>conftest.$ac_ext <<_ACEOF
7453     /* end confdefs.h. */
7454     #include <openssl/opensslv.h>
7455     #include <stdlib.h>
7456     int
7457     main ()
7458     {
7459     if ( (OPENSSL_VERSION_NUMBER & 0x00906000) == 0x00906000)
7460     exit(0); else exit(1);
7461     ;
7462     return 0;
7463     }
7464     _ACEOF
7465     rm -f conftest$ac_exeext
7466     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7467     (eval $ac_link) 2>&5
7468     ac_status=$?
7469     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7470     (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7471     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7472     (eval $ac_try) 2>&5
7473     ac_status=$?
7474     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7475     (exit $ac_status); }; }; then
7476     cf_openssl_version_ok=yes
7477     else
7478     echo "$as_me: program exited with status $ac_status" >&5
7479     echo "$as_me: failed program was:" >&5
7480     sed 's/^/| /' conftest.$ac_ext >&5
7481    
7482     ( exit $ac_status )
7483     cf_openssl_version_ok=no
7484     fi
7485     rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7486     fi
7487    
7488     if test "$cf_openssl_version_ok" = yes; then
7489     echo "$as_me:$LINENO: result: found" >&5
7490     echo "${ECHO_T}found" >&6
7491    
7492     ENCSPEED=encspeed
7493    
7494    
7495     CPPFLAGS="$CPPFLAGS $SSL_LIBS"
7496    
7497     echo "$as_me:$LINENO: checking for RSA_free in -lcrypto" >&5
7498     echo $ECHO_N "checking for RSA_free in -lcrypto... $ECHO_C" >&6
7499     if test "${ac_cv_lib_crypto_RSA_free+set}" = set; then
7500     echo $ECHO_N "(cached) $ECHO_C" >&6
7501     else
7502     ac_check_lib_save_LIBS=$LIBS
7503     LIBS="-lcrypto $LIBS"
7504     cat >conftest.$ac_ext <<_ACEOF
7505     /* confdefs.h. */
7506     _ACEOF
7507     cat confdefs.h >>conftest.$ac_ext
7508     cat >>conftest.$ac_ext <<_ACEOF
7509     /* end confdefs.h. */
7510    
7511     /* Override any gcc2 internal prototype to avoid an error. */
7512     #ifdef __cplusplus
7513     extern "C"
7514     #endif
7515     /* We use char because int might match the return type of a gcc2
7516     builtin and then its argument prototype would still apply. */
7517     char RSA_free ();
7518     int
7519     main ()
7520     {
7521     RSA_free ();
7522     ;
7523     return 0;
7524     }
7525     _ACEOF
7526     rm -f conftest.$ac_objext conftest$ac_exeext
7527     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7528     (eval $ac_link) 2>conftest.er1
7529     ac_status=$?
7530     grep -v '^ *+' conftest.er1 >conftest.err
7531     rm -f conftest.er1
7532     cat conftest.err >&5
7533     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7534     (exit $ac_status); } &&
7535     { ac_try='test -z "$ac_c_werror_flag"
7536     || test ! -s conftest.err'
7537     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7538     (eval $ac_try) 2>&5
7539     ac_status=$?
7540     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7541     (exit $ac_status); }; } &&
7542     { ac_try='test -s conftest$ac_exeext'
7543     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7544     (eval $ac_try) 2>&5
7545     ac_status=$?
7546     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7547     (exit $ac_status); }; }; then
7548     ac_cv_lib_crypto_RSA_free=yes
7549     else
7550     echo "$as_me: failed program was:" >&5
7551     sed 's/^/| /' conftest.$ac_ext >&5
7552    
7553     ac_cv_lib_crypto_RSA_free=no
7554     fi
7555     rm -f conftest.err conftest.$ac_objext \
7556     conftest$ac_exeext conftest.$ac_ext
7557     LIBS=$ac_check_lib_save_LIBS
7558     fi
7559     echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_RSA_free" >&5
7560     echo "${ECHO_T}$ac_cv_lib_crypto_RSA_free" >&6
7561     if test $ac_cv_lib_crypto_RSA_free = yes; then
7562     cat >>confdefs.h <<_ACEOF
7563     #define HAVE_LIBCRYPTO 1
7564     _ACEOF
7565    
7566     LIBS="-lcrypto $LIBS"
7567    
7568     fi
7569    
7570     if test "$ac_cv_lib_crypto_RSA_free" = yes; then
7571     LIBS="$LIBS -lcrypto"
7572     cf_openssl_ciphers=''
7573    
7574     for ac_func in EVP_bf_cfb
7575     do
7576     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7577     echo "$as_me:$LINENO: checking for $ac_func" >&5
7578     echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7579     if eval "test \"\${$as_ac_var+set}\" = set"; then
7580     echo $ECHO_N "(cached) $ECHO_C" >&6
7581     else
7582     cat >conftest.$ac_ext <<_ACEOF
7583     /* confdefs.h. */
7584     _ACEOF
7585     cat confdefs.h >>conftest.$ac_ext
7586     cat >>conftest.$ac_ext <<_ACEOF
7587     /* end confdefs.h. */
7588     /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7589     For example, HP-UX 11i <limits.h> declares gettimeofday. */
7590     #define $ac_func innocuous_$ac_func
7591    
7592     /* System header to define __stub macros and hopefully few prototypes,
7593     which can conflict with char $ac_func (); below.
7594     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7595     <limits.h> exists even on freestanding compilers. */
7596    
7597     #ifdef __STDC__
7598     # include <limits.h>
7599     #else
7600     # include <assert.h>
7601     #endif
7602    
7603     #undef $ac_func
7604    
7605     /* Override any gcc2 internal prototype to avoid an error. */
7606     #ifdef __cplusplus
7607     extern "C"
7608     {
7609     #endif
7610     /* We use char because int might match the return type of a gcc2
7611     builtin and then its argument prototype would still apply. */
7612     char $ac_func ();
7613     /* The GNU C library defines this for functions which it implements
7614     to always fail with ENOSYS. Some functions are actually named
7615     something starting with __ and the normal name is an alias. */
7616     #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7617     choke me
7618     #else
7619     char (*f) () = $ac_func;
7620     #endif
7621     #ifdef __cplusplus
7622     }
7623     #endif
7624    
7625     int
7626     main ()
7627     {
7628     return f != $ac_func;
7629     ;
7630     return 0;
7631     }
7632     _ACEOF
7633     rm -f conftest.$ac_objext conftest$ac_exeext
7634     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7635     (eval $ac_link) 2>conftest.er1
7636     ac_status=$?
7637     grep -v '^ *+' conftest.er1 >conftest.err
7638     rm -f conftest.er1
7639     cat conftest.err >&5
7640     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7641     (exit $ac_status); } &&
7642     { ac_try='test -z "$ac_c_werror_flag"
7643     || test ! -s conftest.err'
7644     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7645     (eval $ac_try) 2>&5
7646     ac_status=$?
7647     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7648     (exit $ac_status); }; } &&
7649     { ac_try='test -s conftest$ac_exeext'
7650     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7651     (eval $ac_try) 2>&5
7652     ac_status=$?
7653     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7654     (exit $ac_status); }; }; then
7655     eval "$as_ac_var=yes"
7656     else
7657     echo "$as_me: failed program was:" >&5
7658     sed 's/^/| /' conftest.$ac_ext >&5
7659    
7660     eval "$as_ac_var=no"
7661     fi
7662     rm -f conftest.err conftest.$ac_objext \
7663     conftest$ac_exeext conftest.$ac_ext
7664     fi
7665     echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7666     echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7667     if test `eval echo '${'$as_ac_var'}'` = yes; then
7668     cat >>confdefs.h <<_ACEOF
7669     #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7670     _ACEOF
7671     cf_openssl_ciphers="${cf_openssl_ciphers}BF/168 BF/128 "
7672     fi
7673     done
7674    
7675    
7676     for ac_func in EVP_cast5_cfb
7677     do
7678     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7679     echo "$as_me:$LINENO: checking for $ac_func" >&5
7680     echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7681     if eval "test \"\${$as_ac_var+set}\" = set"; then
7682     echo $ECHO_N "(cached) $ECHO_C" >&6
7683     else
7684     cat >conftest.$ac_ext <<_ACEOF
7685     /* confdefs.h. */
7686     _ACEOF
7687     cat confdefs.h >>conftest.$ac_ext
7688     cat >>conftest.$ac_ext <<_ACEOF
7689     /* end confdefs.h. */
7690     /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7691     For example, HP-UX 11i <limits.h> declares gettimeofday. */
7692     #define $ac_func innocuous_$ac_func
7693    
7694     /* System header to define __stub macros and hopefully few prototypes,
7695     which can conflict with char $ac_func (); below.
7696     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7697     <limits.h> exists even on freestanding compilers. */
7698    
7699     #ifdef __STDC__
7700     # include <limits.h>
7701     #else
7702     # include <assert.h>
7703     #endif
7704    
7705     #undef $ac_func
7706    
7707     /* Override any gcc2 internal prototype to avoid an error. */
7708     #ifdef __cplusplus
7709     extern "C"
7710     {
7711     #endif
7712     /* We use char because int might match the return type of a gcc2
7713     builtin and then its argument prototype would still apply. */
7714     char $ac_func ();
7715     /* The GNU C library defines this for functions which it implements
7716     to always fail with ENOSYS. Some functions are actually named
7717     something starting with __ and the normal name is an alias. */
7718     #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7719     choke me
7720     #else
7721     char (*f) () = $ac_func;
7722     #endif
7723     #ifdef __cplusplus
7724     }
7725     #endif
7726    
7727     int
7728     main ()
7729     {
7730     return f != $ac_func;
7731     ;
7732     return 0;
7733     }
7734     _ACEOF
7735     rm -f conftest.$ac_objext conftest$ac_exeext
7736     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7737     (eval $ac_link) 2>conftest.er1
7738     ac_status=$?
7739     grep -v '^ *+' conftest.er1 >conftest.err
7740     rm -f conftest.er1
7741     cat conftest.err >&5
7742     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7743     (exit $ac_status); } &&
7744     { ac_try='test -z "$ac_c_werror_flag"
7745     || test ! -s conftest.err'
7746     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7747     (eval $ac_try) 2>&5
7748     ac_status=$?
7749     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7750     (exit $ac_status); }; } &&
7751     { ac_try='test -s conftest$ac_exeext'
7752     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7753     (eval $ac_try) 2>&5
7754     ac_status=$?
7755     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7756     (exit $ac_status); }; }; then
7757     eval "$as_ac_var=yes"
7758     else
7759     echo "$as_me: failed program was:" >&5
7760     sed 's/^/| /' conftest.$ac_ext >&5
7761    
7762     eval "$as_ac_var=no"
7763     fi
7764     rm -f conftest.err conftest.$ac_objext \
7765     conftest$ac_exeext conftest.$ac_ext
7766     fi
7767     echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7768     echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7769     if test `eval echo '${'$as_ac_var'}'` = yes; then
7770     cat >>confdefs.h <<_ACEOF
7771     #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7772     _ACEOF
7773     cf_openssl_ciphers="${cf_openssl_ciphers}CAST/128 "
7774     fi
7775     done
7776    
7777    
7778     for ac_func in EVP_idea_cfb
7779     do
7780     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7781     echo "$as_me:$LINENO: checking for $ac_func" >&5
7782     echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7783     if eval "test \"\${$as_ac_var+set}\" = set"; then
7784     echo $ECHO_N "(cached) $ECHO_C" >&6
7785     else
7786     cat >conftest.$ac_ext <<_ACEOF
7787     /* confdefs.h. */
7788     _ACEOF
7789     cat confdefs.h >>conftest.$ac_ext
7790     cat >>conftest.$ac_ext <<_ACEOF
7791     /* end confdefs.h. */
7792     /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7793     For example, HP-UX 11i <limits.h> declares gettimeofday. */
7794     #define $ac_func innocuous_$ac_func
7795    
7796     /* System header to define __stub macros and hopefully few prototypes,
7797     which can conflict with char $ac_func (); below.
7798     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7799     <limits.h> exists even on freestanding compilers. */
7800    
7801     #ifdef __STDC__
7802     # include <limits.h>
7803     #else
7804     # include <assert.h>
7805     #endif
7806    
7807     #undef $ac_func
7808    
7809     /* Override any gcc2 internal prototype to avoid an error. */
7810     #ifdef __cplusplus
7811     extern "C"
7812     {
7813     #endif
7814     /* We use char because int might match the return type of a gcc2
7815     builtin and then its argument prototype would still apply. */
7816     char $ac_func ();
7817     /* The GNU C library defines this for functions which it implements
7818     to always fail with ENOSYS. Some functions are actually named
7819     something starting with __ and the normal name is an alias. */
7820     #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7821     choke me
7822     #else
7823     char (*f) () = $ac_func;
7824     #endif
7825     #ifdef __cplusplus
7826     }
7827     #endif
7828    
7829     int
7830     main ()
7831     {
7832     return f != $ac_func;
7833     ;
7834     return 0;
7835     }
7836     _ACEOF
7837     rm -f conftest.$ac_objext conftest$ac_exeext
7838     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7839     (eval $ac_link) 2>conftest.er1
7840     ac_status=$?
7841     grep -v '^ *+' conftest.er1 >conftest.err
7842     rm -f conftest.er1
7843     cat conftest.err >&5
7844     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7845     (exit $ac_status); } &&
7846     { ac_try='test -z "$ac_c_werror_flag"
7847     || test ! -s conftest.err'
7848     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7849     (eval $ac_try) 2>&5
7850     ac_status=$?
7851     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7852     (exit $ac_status); }; } &&
7853     { ac_try='test -s conftest$ac_exeext'
7854     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7855     (eval $ac_try) 2>&5
7856     ac_status=$?
7857     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7858     (exit $ac_status); }; }; then
7859     eval "$as_ac_var=yes"
7860     else
7861     echo "$as_me: failed program was:" >&5
7862     sed 's/^/| /' conftest.$ac_ext >&5
7863    
7864     eval "$as_ac_var=no"
7865     fi
7866     rm -f conftest.err conftest.$ac_objext \
7867     conftest$ac_exeext conftest.$ac_ext
7868     fi
7869     echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7870     echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7871     if test `eval echo '${'$as_ac_var'}'` = yes; then
7872     cat >>confdefs.h <<_ACEOF
7873     #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7874     _ACEOF
7875     cf_openssl_ciphers="${cf_openssl_ciphers}IDEA/128 "
7876     fi
7877     done
7878    
7879    
7880     for ac_func in EVP_rc5_32_12_16_cfb
7881     do
7882     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7883     echo "$as_me:$LINENO: checking for $ac_func" >&5
7884     echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7885     if eval "test \"\${$as_ac_var+set}\" = set"; then
7886     echo $ECHO_N "(cached) $ECHO_C" >&6
7887     else
7888     cat >conftest.$ac_ext <<_ACEOF
7889     /* confdefs.h. */
7890     _ACEOF
7891     cat confdefs.h >>conftest.$ac_ext
7892     cat >>conftest.$ac_ext <<_ACEOF
7893     /* end confdefs.h. */
7894     /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7895     For example, HP-UX 11i <limits.h> declares gettimeofday. */
7896     #define $ac_func innocuous_$ac_func
7897    
7898     /* System header to define __stub macros and hopefully few prototypes,
7899     which can conflict with char $ac_func (); below.
7900     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7901     <limits.h> exists even on freestanding compilers. */
7902    
7903     #ifdef __STDC__
7904     # include <limits.h>
7905     #else
7906     # include <assert.h>
7907     #endif
7908    
7909     #undef $ac_func
7910    
7911     /* Override any gcc2 internal prototype to avoid an error. */
7912     #ifdef __cplusplus
7913     extern "C"
7914     {
7915     #endif
7916     /* We use char because int might match the return type of a gcc2
7917     builtin and then its argument prototype would still apply. */
7918     char $ac_func ();
7919     /* The GNU C library defines this for functions which it implements
7920     to always fail with ENOSYS. Some functions are actually named
7921     something starting with __ and the normal name is an alias. */
7922     #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7923     choke me
7924     #else
7925     char (*f) () = $ac_func;
7926     #endif
7927     #ifdef __cplusplus
7928     }
7929     #endif
7930    
7931     int
7932     main ()
7933     {
7934     return f != $ac_func;
7935     ;
7936     return 0;
7937     }
7938     _ACEOF
7939     rm -f conftest.$ac_objext conftest$ac_exeext
7940     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7941     (eval $ac_link) 2>conftest.er1
7942     ac_status=$?
7943     grep -v '^ *+' conftest.er1 >conftest.err
7944     rm -f conftest.er1
7945     cat conftest.err >&5
7946     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7947     (exit $ac_status); } &&
7948     { ac_try='test -z "$ac_c_werror_flag"
7949     || test ! -s conftest.err'
7950     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7951     (eval $ac_try) 2>&5
7952     ac_status=$?
7953     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7954     (exit $ac_status); }; } &&
7955     { ac_try='test -s conftest$ac_exeext'
7956     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7957     (eval $ac_try) 2>&5
7958     ac_status=$?
7959     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7960     (exit $ac_status); }; }; then
7961     eval "$as_ac_var=yes"
7962     else
7963     echo "$as_me: failed program was:" >&5
7964     sed 's/^/| /' conftest.$ac_ext >&5
7965    
7966     eval "$as_ac_var=no"
7967     fi
7968     rm -f conftest.err conftest.$ac_objext \
7969     conftest$ac_exeext conftest.$ac_ext
7970     fi
7971     echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7972     echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7973     if test `eval echo '${'$as_ac_var'}'` = yes; then
7974     cat >>confdefs.h <<_ACEOF
7975     #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7976     _ACEOF
7977     cf_openssl_ciphers="${cf_openssl_ciphers}RC5.16/128 RC5.12/128 RC5.8/128 "
7978     fi
7979     done
7980    
7981    
7982     for ac_func in EVP_des_ede3_cfb
7983     do
7984     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7985     echo "$as_me:$LINENO: checking for $ac_func" >&5
7986     echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7987     if eval "test \"\${$as_ac_var+set}\" = set"; then
7988     echo $ECHO_N "(cached) $ECHO_C" >&6
7989     else
7990     cat >conftest.$ac_ext <<_ACEOF
7991     /* confdefs.h. */
7992     _ACEOF
7993     cat confdefs.h >>conftest.$ac_ext
7994     cat >>conftest.$ac_ext <<_ACEOF
7995     /* end confdefs.h. */
7996     /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7997     For example, HP-UX 11i <limits.h> declares gettimeofday. */
7998     #define $ac_func innocuous_$ac_func
7999    
8000     /* System header to define __stub macros and hopefully few prototypes,
8001     which can conflict with char $ac_func (); below.
8002     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8003     <limits.h> exists even on freestanding compilers. */
8004    
8005     #ifdef __STDC__
8006     # include <limits.h>
8007     #else
8008     # include <assert.h>
8009     #endif
8010    
8011     #undef $ac_func
8012    
8013     /* Override any gcc2 internal prototype to avoid an error. */
8014     #ifdef __cplusplus
8015     extern "C"
8016     {
8017     #endif
8018     /* We use char because int might match the return type of a gcc2
8019     builtin and then its argument prototype would still apply. */
8020     char $ac_func ();
8021     /* The GNU C library defines this for functions which it implements
8022     to always fail with ENOSYS. Some functions are actually named
8023     something starting with __ and the normal name is an alias. */
8024     #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8025     choke me
8026     #else
8027     char (*f) () = $ac_func;
8028     #endif
8029     #ifdef __cplusplus
8030     }
8031     #endif
8032    
8033     int
8034     main ()
8035     {
8036     return f != $ac_func;
8037     ;
8038     return 0;
8039     }
8040     _ACEOF
8041     rm -f conftest.$ac_objext conftest$ac_exeext
8042     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8043     (eval $ac_link) 2>conftest.er1
8044     ac_status=$?
8045     grep -v '^ *+' conftest.er1 >conftest.err
8046     rm -f conftest.er1
8047     cat conftest.err >&5
8048     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8049     (exit $ac_status); } &&
8050     { ac_try='test -z "$ac_c_werror_flag"
8051     || test ! -s conftest.err'
8052     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8053     (eval $ac_try) 2>&5
8054     ac_status=$?
8055     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8056     (exit $ac_status); }; } &&
8057     { ac_try='test -s conftest$ac_exeext'
8058     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8059     (eval $ac_try) 2>&5
8060     ac_status=$?
8061     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8062     (exit $ac_status); }; }; then
8063     eval "$as_ac_var=yes"
8064     else
8065     echo "$as_me: failed program was:" >&5
8066     sed 's/^/| /' conftest.$ac_ext >&5
8067    
8068     eval "$as_ac_var=no"
8069     fi
8070     rm -f conftest.err conftest.$ac_objext \
8071     conftest$ac_exeext conftest.$ac_ext
8072     fi
8073     echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8074     echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8075     if test `eval echo '${'$as_ac_var'}'` = yes; then
8076     cat >>confdefs.h <<_ACEOF
8077     #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8078     _ACEOF
8079     cf_openssl_ciphers="${cf_openssl_ciphers}3DES/168 "
8080     fi
8081     done
8082    
8083    
8084     for ac_func in EVP_des_cfb
8085     do
8086     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8087     echo "$as_me:$LINENO: checking for $ac_func" >&5
8088     echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8089     if eval "test \"\${$as_ac_var+set}\" = set"; then
8090     echo $ECHO_N "(cached) $ECHO_C" >&6
8091     else
8092     cat >conftest.$ac_ext <<_ACEOF
8093     /* confdefs.h. */
8094     _ACEOF
8095     cat confdefs.h >>conftest.$ac_ext
8096     cat >>conftest.$ac_ext <<_ACEOF
8097     /* end confdefs.h. */
8098     /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8099     For example, HP-UX 11i <limits.h> declares gettimeofday. */
8100     #define $ac_func innocuous_$ac_func
8101    
8102     /* System header to define __stub macros and hopefully few prototypes,
8103     which can conflict with char $ac_func (); below.
8104     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8105     <limits.h> exists even on freestanding compilers. */
8106    
8107     #ifdef __STDC__
8108     # include <limits.h>
8109     #else
8110     # include <assert.h>
8111     #endif
8112    
8113     #undef $ac_func
8114    
8115     /* Override any gcc2 internal prototype to avoid an error. */
8116     #ifdef __cplusplus
8117     extern "C"
8118     {
8119     #endif
8120     /* We use char because int might match the return type of a gcc2
8121     builtin and then its argument prototype would still apply. */
8122     char $ac_func ();
8123     /* The GNU C library defines this for functions which it implements
8124     to always fail with ENOSYS. Some functions are actually named
8125     something starting with __ and the normal name is an alias. */
8126     #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8127     choke me
8128     #else
8129     char (*f) () = $ac_func;
8130     #endif
8131     #ifdef __cplusplus
8132     }
8133     #endif
8134    
8135     int
8136     main ()
8137     {
8138     return f != $ac_func;
8139     ;
8140     return 0;
8141     }
8142     _ACEOF
8143     rm -f conftest.$ac_objext conftest$ac_exeext
8144     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8145     (eval $ac_link) 2>conftest.er1
8146     ac_status=$?
8147     grep -v '^ *+' conftest.er1 >conftest.err
8148     rm -f conftest.er1
8149     cat conftest.err >&5
8150     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8151     (exit $ac_status); } &&
8152     { ac_try='test -z "$ac_c_werror_flag"
8153     || test ! -s conftest.err'
8154     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8155     (eval $ac_try) 2>&5
8156     ac_status=$?
8157     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8158     (exit $ac_status); }; } &&
8159     { ac_try='test -s conftest$ac_exeext'
8160     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8161     (eval $ac_try) 2>&5
8162     ac_status=$?
8163     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8164     (exit $ac_status); }; }; then
8165     eval "$as_ac_var=yes"
8166     else
8167     echo "$as_me: failed program was:" >&5
8168     sed 's/^/| /' conftest.$ac_ext >&5
8169    
8170     eval "$as_ac_var=no"
8171     fi
8172     rm -f conftest.err conftest.$ac_objext \
8173     conftest$ac_exeext conftest.$ac_ext
8174     fi
8175     echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8176     echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8177     if test `eval echo '${'$as_ac_var'}'` = yes; then
8178     cat >>confdefs.h <<_ACEOF
8179     #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8180     _ACEOF
8181     cf_openssl_ciphers="${cf_openssl_ciphers}DES/56 "
8182     fi
8183     done
8184    
8185     fi
8186     SSL_LIBS="$SSL_LIBS -lssl -lcrypto"
8187     SSL_SRCS_ENABLE='$(SSL_SRCS)'
8188     else
8189     echo "$as_me:$LINENO: result: no - OpenSSL support disabled" >&5
8190     echo "${ECHO_T}no - OpenSSL support disabled" >&6
8191     fi
8192     fi
8193    
8194     CPPFLAGS="$save_CPPFLAGS"
8195     LIBS="$save_LIBS"
8196    
8197    
8198    
8199    
8200     # Check whether --with-zlib-path or --without-zlib-path was given.
8201     if test "${with_zlib_path+set}" = set; then
8202     withval="$with_zlib_path"
8203     LIBS="$LIBS -L$withval"
8204     fi;
8205    
8206     # Check whether --enable-zlib or --disable-zlib was given.
8207     if test "${enable_zlib+set}" = set; then
8208     enableval="$enable_zlib"
8209     zlib=$enableval
8210     else
8211     zlib=yes
8212     fi;
8213    
8214     if test "$zlib" = yes; then
8215    
8216     if test "${ac_cv_header_zlib_h+set}" = set; then
8217     echo "$as_me:$LINENO: checking for zlib.h" >&5
8218     echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
8219     if test "${ac_cv_header_zlib_h+set}" = set; then
8220     echo $ECHO_N "(cached) $ECHO_C" >&6
8221     fi
8222     echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
8223     echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
8224     else
8225     # Is the header compilable?
8226     echo "$as_me:$LINENO: checking zlib.h usability" >&5
8227     echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
8228     cat >conftest.$ac_ext <<_ACEOF
8229     /* confdefs.h. */
8230     _ACEOF
8231     cat confdefs.h >>conftest.$ac_ext
8232     cat >>conftest.$ac_ext <<_ACEOF
8233     /* end confdefs.h. */
8234     $ac_includes_default
8235     #include <zlib.h>
8236     _ACEOF
8237     rm -f conftest.$ac_objext
8238     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8239     (eval $ac_compile) 2>conftest.er1
8240     ac_status=$?
8241     grep -v '^ *+' conftest.er1 >conftest.err
8242     rm -f conftest.er1
8243     cat conftest.err >&5
8244     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8245     (exit $ac_status); } &&
8246     { ac_try='test -z "$ac_c_werror_flag"
8247     || test ! -s conftest.err'
8248     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8249     (eval $ac_try) 2>&5
8250     ac_status=$?
8251     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8252     (exit $ac_status); }; } &&
8253     { ac_try='test -s conftest.$ac_objext'
8254     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8255     (eval $ac_try) 2>&5
8256     ac_status=$?
8257     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8258     (exit $ac_status); }; }; then
8259     ac_header_compiler=yes
8260     else
8261     echo "$as_me: failed program was:" >&5
8262     sed 's/^/| /' conftest.$ac_ext >&5
8263    
8264     ac_header_compiler=no
8265     fi
8266     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8267     echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8268     echo "${ECHO_T}$ac_header_compiler" >&6
8269    
8270     # Is the header present?
8271     echo "$as_me:$LINENO: checking zlib.h presence" >&5
8272     echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
8273     cat >conftest.$ac_ext <<_ACEOF
8274     /* confdefs.h. */
8275     _ACEOF
8276     cat confdefs.h >>conftest.$ac_ext
8277     cat >>conftest.$ac_ext <<_ACEOF
8278     /* end confdefs.h. */
8279     #include <zlib.h>
8280     _ACEOF
8281     if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8282     (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8283     ac_status=$?
8284     grep -v '^ *+' conftest.er1 >conftest.err
8285     rm -f conftest.er1
8286     cat conftest.err >&5
8287     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8288     (exit $ac_status); } >/dev/null; then
8289     if test -s conftest.err; then
8290     ac_cpp_err=$ac_c_preproc_warn_flag
8291     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8292     else
8293     ac_cpp_err=
8294     fi
8295     else
8296     ac_cpp_err=yes
8297     fi
8298     if test -z "$ac_cpp_err"; then
8299     ac_header_preproc=yes
8300     else
8301     echo "$as_me: failed program was:" >&5
8302     sed 's/^/| /' conftest.$ac_ext >&5
8303    
8304     ac_header_preproc=no
8305     fi
8306     rm -f conftest.err conftest.$ac_ext
8307     echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8308     echo "${ECHO_T}$ac_header_preproc" >&6
8309    
8310     # So? What about this header?
8311     case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8312     yes:no: )
8313     { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
8314     echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8315     { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
8316     echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
8317     ac_header_preproc=yes
8318     ;;
8319     no:yes:* )
8320     { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
8321     echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
8322     { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
8323     echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
8324     { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
8325     echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
8326     { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
8327     echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
8328     { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
8329     echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
8330     { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
8331     echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
8332     (
8333     cat <<\_ASBOX
8334     ## -------------------------------------- ##
8335     ## Report this to the ircd-hybrid lists. ##
8336     ## -------------------------------------- ##
8337     _ASBOX
8338     ) |
8339     sed "s/^/$as_me: WARNING: /" >&2
8340     ;;
8341     esac
8342     echo "$as_me:$LINENO: checking for zlib.h" >&5
8343     echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
8344     if test "${ac_cv_header_zlib_h+set}" = set; then
8345     echo $ECHO_N "(cached) $ECHO_C" >&6
8346     else
8347     ac_cv_header_zlib_h=$ac_header_preproc
8348     fi
8349     echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
8350     echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
8351    
8352     fi
8353     if test $ac_cv_header_zlib_h = yes; then
8354    
8355     echo "$as_me:$LINENO: checking for zlibVersion in -lz" >&5
8356     echo $ECHO_N "checking for zlibVersion in -lz... $ECHO_C" >&6
8357     if test "${ac_cv_lib_z_zlibVersion+set}" = set; then
8358     echo $ECHO_N "(cached) $ECHO_C" >&6
8359     else
8360     ac_check_lib_save_LIBS=$LIBS
8361     LIBS="-lz $LIBS"
8362     cat >conftest.$ac_ext <<_ACEOF
8363     /* confdefs.h. */
8364     _ACEOF
8365     cat confdefs.h >>conftest.$ac_ext
8366     cat >>conftest.$ac_ext <<_ACEOF
8367     /* end confdefs.h. */
8368    
8369     /* Override any gcc2 internal prototype to avoid an error. */
8370     #ifdef __cplusplus
8371     extern "C"
8372     #endif
8373     /* We use char because int might match the return type of a gcc2
8374     builtin and then its argument prototype would still apply. */
8375     char zlibVersion ();
8376     int
8377     main ()
8378     {
8379     zlibVersion ();
8380     ;
8381     return 0;
8382     }
8383     _ACEOF
8384     rm -f conftest.$ac_objext conftest$ac_exeext
8385     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8386     (eval $ac_link) 2>conftest.er1
8387     ac_status=$?
8388     grep -v '^ *+' conftest.er1 >conftest.err
8389     rm -f conftest.er1
8390     cat conftest.err >&5
8391     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8392     (exit $ac_status); } &&
8393     { ac_try='test -z "$ac_c_werror_flag"
8394     || test ! -s conftest.err'
8395     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8396     (eval $ac_try) 2>&5
8397     ac_status=$?
8398     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8399     (exit $ac_status); }; } &&
8400     { ac_try='test -s conftest$ac_exeext'
8401     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8402     (eval $ac_try) 2>&5
8403     ac_status=$?
8404     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8405     (exit $ac_status); }; }; then
8406     ac_cv_lib_z_zlibVersion=yes
8407     else
8408     echo "$as_me: failed program was:" >&5
8409     sed 's/^/| /' conftest.$ac_ext >&5
8410    
8411     ac_cv_lib_z_zlibVersion=no
8412     fi
8413     rm -f conftest.err conftest.$ac_objext \
8414     conftest$ac_exeext conftest.$ac_ext
8415     LIBS=$ac_check_lib_save_LIBS
8416     fi
8417     echo "$as_me:$LINENO: result: $ac_cv_lib_z_zlibVersion" >&5
8418     echo "${ECHO_T}$ac_cv_lib_z_zlibVersion" >&6
8419     if test $ac_cv_lib_z_zlibVersion = yes; then
8420    
8421     ZLIB_LD=-lz
8422    
8423    
8424     cat >>confdefs.h <<\_ACEOF
8425     #define HAVE_LIBZ 1
8426     _ACEOF
8427    
8428    
8429     else
8430     zlib=no
8431     fi
8432    
8433    
8434     else
8435     zlib=no
8436     fi
8437    
8438    
8439    
8440     fi
8441    
8442    
8443     # Check whether --enable-poll or --disable-poll was given.
8444     if test "${enable_poll+set}" = set; then
8445     enableval="$enable_poll"
8446     SELECT_TYPE_EXPLICIT="poll"; echo "Forcing poll() to be enabled"
8447     fi;
8448    
8449     # Check whether --enable-select or --disable-select was given.
8450     if test "${enable_select+set}" = set; then
8451     enableval="$enable_select"
8452     SELECT_TYPE_EXPLICIT="select"; echo "Forcing select() to be enabled"
8453     fi;
8454    
8455     # Check whether --enable-kqueue or --disable-kqueue was given.
8456     if test "${enable_kqueue+set}" = set; then
8457     enableval="$enable_kqueue"
8458     SELECT_TYPE_EXPLICIT="kqueue"; echo "Forcing kqueue() to be enabled"
8459     fi;
8460    
8461     # Check whether --enable-devpoll or --disable-devpoll was given.
8462     if test "${enable_devpoll+set}" = set; then
8463     enableval="$enable_devpoll"
8464     SELECT_TYPE_EXPLICIT="devpoll"
8465     echo "Forcing /dev/poll to be enabled"
8466    
8467    
8468     for ac_header in sys/devpoll.h devpoll.h
8469     do
8470     as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8471     if eval "test \"\${$as_ac_Header+set}\" = set"; then
8472     echo "$as_me:$LINENO: checking for $ac_header" >&5
8473     echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8474     if eval "test \"\${$as_ac_Header+set}\" = set"; then
8475     echo $ECHO_N "(cached) $ECHO_C" >&6
8476     fi
8477     echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8478     echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8479     else
8480     # Is the header compilable?
8481     echo "$as_me:$LINENO: checking $ac_header usability" >&5
8482     echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8483     cat >conftest.$ac_ext <<_ACEOF
8484     /* confdefs.h. */
8485     _ACEOF
8486     cat confdefs.h >>conftest.$ac_ext
8487     cat >>conftest.$ac_ext <<_ACEOF
8488     /* end confdefs.h. */
8489     $ac_includes_default
8490     #include <$ac_header>
8491     _ACEOF
8492     rm -f conftest.$ac_objext
8493     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8494     (eval $ac_compile) 2>conftest.er1
8495     ac_status=$?
8496     grep -v '^ *+' conftest.er1 >conftest.err
8497     rm -f conftest.er1
8498     cat conftest.err >&5
8499     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8500     (exit $ac_status); } &&
8501     { ac_try='test -z "$ac_c_werror_flag"
8502     || test ! -s conftest.err'
8503     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8504     (eval $ac_try) 2>&5
8505     ac_status=$?
8506     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8507     (exit $ac_status); }; } &&
8508     { ac_try='test -s conftest.$ac_objext'
8509     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8510     (eval $ac_try) 2>&5
8511     ac_status=$?
8512     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8513     (exit $ac_status); }; }; then
8514     ac_header_compiler=yes
8515     else
8516     echo "$as_me: failed program was:" >&5
8517     sed 's/^/| /' conftest.$ac_ext >&5
8518    
8519     ac_header_compiler=no
8520     fi
8521     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8522     echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8523     echo "${ECHO_T}$ac_header_compiler" >&6
8524    
8525     # Is the header present?
8526     echo "$as_me:$LINENO: checking $ac_header presence" >&5
8527     echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8528     cat >conftest.$ac_ext <<_ACEOF
8529     /* confdefs.h. */
8530     _ACEOF
8531     cat confdefs.h >>conftest.$ac_ext
8532     cat >>conftest.$ac_ext <<_ACEOF
8533     /* end confdefs.h. */
8534     #include <$ac_header>
8535     _ACEOF
8536     if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8537     (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8538     ac_status=$?
8539     grep -v '^ *+' conftest.er1 >conftest.err
8540     rm -f conftest.er1
8541     cat conftest.err >&5
8542     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8543     (exit $ac_status); } >/dev/null; then
8544     if test -s conftest.err; then
8545     ac_cpp_err=$ac_c_preproc_warn_flag
8546     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8547     else
8548     ac_cpp_err=
8549     fi
8550     else
8551     ac_cpp_err=yes
8552     fi
8553     if test -z "$ac_cpp_err"; then
8554     ac_header_preproc=yes
8555     else
8556     echo "$as_me: failed program was:" >&5
8557     sed 's/^/| /' conftest.$ac_ext >&5
8558    
8559     ac_header_preproc=no
8560     fi
8561     rm -f conftest.err conftest.$ac_ext
8562     echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8563     echo "${ECHO_T}$ac_header_preproc" >&6
8564    
8565     # So? What about this header?
8566     case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8567     yes:no: )
8568     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8569     echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8570     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8571     echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8572     ac_header_preproc=yes
8573     ;;
8574     no:yes:* )
8575     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8576     echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8577     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8578     echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8579     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8580     echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8581     { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8582     echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8583     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8584     echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8585     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8586     echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8587     (
8588     cat <<\_ASBOX
8589     ## -------------------------------------- ##
8590     ## Report this to the ircd-hybrid lists. ##
8591     ## -------------------------------------- ##
8592     _ASBOX
8593     ) |
8594     sed "s/^/$as_me: WARNING: /" >&2
8595     ;;
8596     esac
8597     echo "$as_me:$LINENO: checking for $ac_header" >&5
8598     echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8599     if eval "test \"\${$as_ac_Header+set}\" = set"; then
8600     echo $ECHO_N "(cached) $ECHO_C" >&6
8601     else
8602     eval "$as_ac_Header=\$ac_header_preproc"
8603     fi
8604     echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8605     echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8606    
8607     fi
8608     if test `eval echo '${'$as_ac_Header'}'` = yes; then
8609     cat >>confdefs.h <<_ACEOF
8610     #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8611     _ACEOF
8612    
8613     fi
8614    
8615     done
8616    
8617     fi;
8618    
8619     # Check whether --enable-rtsigio or --disable-rtsigio was given.
8620     if test "${enable_rtsigio+set}" = set; then
8621     enableval="$enable_rtsigio"
8622     SELECT_TYPE_EXPLICIT="sigio"; echo "Forcing Linux RT Sigio to be enabled"
8623     fi;
8624    
8625     # Check whether --enable-epoll or --disable-epoll was given.
8626     if test "${enable_epoll+set}" = set; then
8627     enableval="$enable_epoll"
8628     SELECT_TYPE_EXPLICIT="epoll"; echo "Forcing Linux epoll to be enabled"
8629     fi;
8630    
8631     if test ! -z "$SELECT_TYPE_EXPLICIT"; then
8632     SELECT_TYPE="$SELECT_TYPE_EXPLICIT"
8633     else
8634    
8635     echo "$as_me:$LINENO: checking for kevent" >&5
8636     echo $ECHO_N "checking for kevent... $ECHO_C" >&6
8637     if test "${ac_cv_func_kevent+set}" = set; then
8638     echo $ECHO_N "(cached) $ECHO_C" >&6
8639     else
8640     cat >conftest.$ac_ext <<_ACEOF
8641     /* confdefs.h. */
8642     _ACEOF
8643     cat confdefs.h >>conftest.$ac_ext
8644     cat >>conftest.$ac_ext <<_ACEOF
8645     /* end confdefs.h. */
8646     /* Define kevent to an innocuous variant, in case <limits.h> declares kevent.
8647     For example, HP-UX 11i <limits.h> declares gettimeofday. */
8648     #define kevent innocuous_kevent
8649    
8650     /* System header to define __stub macros and hopefully few prototypes,
8651     which can conflict with char kevent (); below.
8652     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8653     <limits.h> exists even on freestanding compilers. */
8654    
8655     #ifdef __STDC__
8656     # include <limits.h>
8657     #else
8658     # include <assert.h>
8659     #endif
8660    
8661     #undef kevent
8662    
8663     /* Override any gcc2 internal prototype to avoid an error. */
8664     #ifdef __cplusplus
8665     extern "C"
8666     {
8667     #endif
8668     /* We use char because int might match the return type of a gcc2
8669     builtin and then its argument prototype would still apply. */
8670     char kevent ();
8671     /* The GNU C library defines this for functions which it implements
8672     to always fail with ENOSYS. Some functions are actually named
8673     something starting with __ and the normal name is an alias. */
8674     #if defined (__stub_kevent) || defined (__stub___kevent)
8675     choke me
8676     #else
8677     char (*f) () = kevent;
8678     #endif
8679     #ifdef __cplusplus
8680     }
8681     #endif
8682    
8683     int
8684     main ()
8685     {
8686     return f != kevent;
8687     ;
8688     return 0;
8689     }
8690     _ACEOF
8691     rm -f conftest.$ac_objext conftest$ac_exeext
8692     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8693     (eval $ac_link) 2>conftest.er1
8694     ac_status=$?
8695     grep -v '^ *+' conftest.er1 >conftest.err
8696     rm -f conftest.er1
8697     cat conftest.err >&5
8698     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8699     (exit $ac_status); } &&
8700     { ac_try='test -z "$ac_c_werror_flag"
8701     || test ! -s conftest.err'
8702     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8703     (eval $ac_try) 2>&5
8704     ac_status=$?
8705     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8706     (exit $ac_status); }; } &&
8707     { ac_try='test -s conftest$ac_exeext'
8708     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8709     (eval $ac_try) 2>&5
8710     ac_status=$?
8711     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8712     (exit $ac_status); }; }; then
8713     ac_cv_func_kevent=yes
8714     else
8715     echo "$as_me: failed program was:" >&5
8716     sed 's/^/| /' conftest.$ac_ext >&5
8717    
8718     ac_cv_func_kevent=no
8719     fi
8720     rm -f conftest.err conftest.$ac_objext \
8721     conftest$ac_exeext conftest.$ac_ext
8722     fi
8723     echo "$as_me:$LINENO: result: $ac_cv_func_kevent" >&5
8724     echo "${ECHO_T}$ac_cv_func_kevent" >&6
8725     if test $ac_cv_func_kevent = yes; then
8726    
8727     SELECT_TYPE="kqueue"
8728    
8729     else
8730    
8731     if test "${ac_cv_header_sys_epoll_h+set}" = set; then
8732     echo "$as_me:$LINENO: checking for sys/epoll.h" >&5
8733     echo $ECHO_N "checking for sys/epoll.h... $ECHO_C" >&6
8734     if test "${ac_cv_header_sys_epoll_h+set}" = set; then
8735     echo $ECHO_N "(cached) $ECHO_C" >&6
8736     fi
8737     echo "$as_me:$LINENO: result: $ac_cv_header_sys_epoll_h" >&5
8738     echo "${ECHO_T}$ac_cv_header_sys_epoll_h" >&6
8739     else
8740     # Is the header compilable?
8741     echo "$as_me:$LINENO: checking sys/epoll.h usability" >&5
8742     echo $ECHO_N "checking sys/epoll.h usability... $ECHO_C" >&6
8743     cat >conftest.$ac_ext <<_ACEOF
8744     /* confdefs.h. */
8745     _ACEOF
8746     cat confdefs.h >>conftest.$ac_ext
8747     cat >>conftest.$ac_ext <<_ACEOF
8748     /* end confdefs.h. */
8749     $ac_includes_default
8750     #include <sys/epoll.h>
8751     _ACEOF
8752     rm -f conftest.$ac_objext
8753     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8754     (eval $ac_compile) 2>conftest.er1
8755     ac_status=$?
8756     grep -v '^ *+' conftest.er1 >conftest.err
8757     rm -f conftest.er1
8758     cat conftest.err >&5
8759     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8760     (exit $ac_status); } &&
8761     { ac_try='test -z "$ac_c_werror_flag"
8762     || test ! -s conftest.err'
8763     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8764     (eval $ac_try) 2>&5
8765     ac_status=$?
8766     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8767     (exit $ac_status); }; } &&
8768     { ac_try='test -s conftest.$ac_objext'
8769     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8770     (eval $ac_try) 2>&5
8771     ac_status=$?
8772     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8773     (exit $ac_status); }; }; then
8774     ac_header_compiler=yes
8775     else
8776     echo "$as_me: failed program was:" >&5
8777     sed 's/^/| /' conftest.$ac_ext >&5
8778    
8779     ac_header_compiler=no
8780     fi
8781     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8782     echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8783     echo "${ECHO_T}$ac_header_compiler" >&6
8784    
8785     # Is the header present?
8786     echo "$as_me:$LINENO: checking sys/epoll.h presence" >&5
8787     echo $ECHO_N "checking sys/epoll.h presence... $ECHO_C" >&6
8788     cat >conftest.$ac_ext <<_ACEOF
8789     /* confdefs.h. */
8790     _ACEOF
8791     cat confdefs.h >>conftest.$ac_ext
8792     cat >>conftest.$ac_ext <<_ACEOF
8793     /* end confdefs.h. */
8794     #include <sys/epoll.h>
8795     _ACEOF
8796     if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8797     (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8798     ac_status=$?
8799     grep -v '^ *+' conftest.er1 >conftest.err
8800     rm -f conftest.er1
8801     cat conftest.err >&5
8802     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8803     (exit $ac_status); } >/dev/null; then
8804     if test -s conftest.err; then
8805     ac_cpp_err=$ac_c_preproc_warn_flag
8806     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8807     else
8808     ac_cpp_err=
8809     fi
8810     else
8811     ac_cpp_err=yes
8812     fi
8813     if test -z "$ac_cpp_err"; then
8814     ac_header_preproc=yes
8815     else
8816     echo "$as_me: failed program was:" >&5
8817     sed 's/^/| /' conftest.$ac_ext >&5
8818    
8819     ac_header_preproc=no
8820     fi
8821     rm -f conftest.err conftest.$ac_ext
8822     echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8823     echo "${ECHO_T}$ac_header_preproc" >&6
8824    
8825     # So? What about this header?
8826     case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8827     yes:no: )
8828     { echo "$as_me:$LINENO: WARNING: sys/epoll.h: accepted by the compiler, rejected by the preprocessor!" >&5
8829     echo "$as_me: WARNING: sys/epoll.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8830     { echo "$as_me:$LINENO: WARNING: sys/epoll.h: proceeding with the compiler's result" >&5
8831     echo "$as_me: WARNING: sys/epoll.h: proceeding with the compiler's result" >&2;}
8832     ac_header_preproc=yes
8833     ;;
8834     no:yes:* )
8835     { echo "$as_me:$LINENO: WARNING: sys/epoll.h: present but cannot be compiled" >&5
8836     echo "$as_me: WARNING: sys/epoll.h: present but cannot be compiled" >&2;}
8837     { echo "$as_me:$LINENO: WARNING: sys/epoll.h: check for missing prerequisite headers?" >&5
8838     echo "$as_me: WARNING: sys/epoll.h: check for missing prerequisite headers?" >&2;}
8839     { echo "$as_me:$LINENO: WARNING: sys/epoll.h: see the Autoconf documentation" >&5
8840     echo "$as_me: WARNING: sys/epoll.h: see the Autoconf documentation" >&2;}
8841     { echo "$as_me:$LINENO: WARNING: sys/epoll.h: section \"Present But Cannot Be Compiled\"" >&5
8842     echo "$as_me: WARNING: sys/epoll.h: section \"Present But Cannot Be Compiled\"" >&2;}
8843     { echo "$as_me:$LINENO: WARNING: sys/epoll.h: proceeding with the preprocessor's result" >&5
8844     echo "$as_me: WARNING: sys/epoll.h: proceeding with the preprocessor's result" >&2;}
8845     { echo "$as_me:$LINENO: WARNING: sys/epoll.h: in the future, the compiler will take precedence" >&5
8846     echo "$as_me: WARNING: sys/epoll.h: in the future, the compiler will take precedence" >&2;}
8847     (
8848     cat <<\_ASBOX
8849     ## -------------------------------------- ##
8850     ## Report this to the ircd-hybrid lists. ##
8851     ## -------------------------------------- ##
8852     _ASBOX
8853     ) |
8854     sed "s/^/$as_me: WARNING: /" >&2
8855     ;;
8856     esac
8857     echo "$as_me:$LINENO: checking for sys/epoll.h" >&5
8858     echo $ECHO_N "checking for sys/epoll.h... $ECHO_C" >&6
8859     if test "${ac_cv_header_sys_epoll_h+set}" = set; then
8860     echo $ECHO_N "(cached) $ECHO_C" >&6
8861     else
8862     ac_cv_header_sys_epoll_h=$ac_header_preproc
8863     fi
8864     echo "$as_me:$LINENO: result: $ac_cv_header_sys_epoll_h" >&5
8865     echo "${ECHO_T}$ac_cv_header_sys_epoll_h" >&6
8866    
8867     fi
8868     if test $ac_cv_header_sys_epoll_h = yes; then
8869     HAS_EPOLL=1
8870     else
8871     HAS_EPOLL=0
8872     fi
8873    
8874    
8875     if test $HAS_EPOLL -eq 1; then
8876     echo "$as_me:$LINENO: checking for epoll support in kernel" >&5
8877     echo $ECHO_N "checking for epoll support in kernel... $ECHO_C" >&6
8878     if test "$cross_compiling" = yes; then
8879     echo "$as_me:$LINENO: result: no" >&5
8880     echo "${ECHO_T}no" >&6
8881     HAS_EPOLL=0
8882     else
8883     cat >conftest.$ac_ext <<_ACEOF
8884     /* confdefs.h. */
8885     _ACEOF
8886     cat confdefs.h >>conftest.$ac_ext
8887     cat >>conftest.$ac_ext <<_ACEOF
8888     /* end confdefs.h. */
8889     #include <sys/epoll.h>
8890     #include <sys/syscall.h>
8891     #if defined(__stub_epoll_create) || defined(__stub___epoll_create) || defined(EPOLL_NEED_BODY)
8892     #if !defined(__NR_epoll_create)
8893     #if defined(__ia64__)
8894     #define __NR_epoll_create 1243
8895     #elif defined(__x86_64__)
8896     #define __NR_epoll_create 214
8897     #elif defined(__sparc64__) || defined(__sparc__)
8898     #define __NR_epoll_create 193
8899     #elif defined(__s390__) || defined(__m68k__)
8900     #define __NR_epoll_create 249
8901     #elif defined(__ppc64__) || defined(__ppc__)
8902     #define __NR_epoll_create 236
8903     #elif defined(__parisc__) || defined(__arm26__) || defined(__arm__)
8904     #define __NR_epoll_create 224
8905     #elif defined(__alpha__)
8906     #define __NR_epoll_create 407
8907     #elif defined(__sh64__)
8908     #define __NR_epoll_create 282
8909     #elif defined(__i386__) || defined(__sh__) || defined(__m32r__) || defined(__h8300__) || defined(__frv__)
8910     #define __NR_epoll_create 254
8911     #else
8912     #error No system call numbers defined for epoll family.
8913     #endif
8914     #endif
8915     _syscall1(int, epoll_create, int, size)
8916     #endif
8917     main() { return epoll_create(256) == -1 ? 1 : 0; }
8918     _ACEOF
8919     rm -f conftest$ac_exeext
8920     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8921     (eval $ac_link) 2>&5
8922     ac_status=$?
8923     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8924     (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8925     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8926     (eval $ac_try) 2>&5
8927     ac_status=$?
8928     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8929     (exit $ac_status); }; }; then
8930     echo "$as_me:$LINENO: result: yes" >&5
8931     echo "${ECHO_T}yes" >&6
8932     SELECT_TYPE="epoll"
8933     else
8934     echo "$as_me: program exited with status $ac_status" >&5
8935     echo "$as_me: failed program was:" >&5
8936     sed 's/^/| /' conftest.$ac_ext >&5
8937    
8938     ( exit $ac_status )
8939     echo "$as_me:$LINENO: result: no" >&5
8940     echo "${ECHO_T}no" >&6
8941     HAS_EPOLL=0
8942     fi
8943     rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8944     fi
8945     fi
8946     if test $HAS_EPOLL -eq 0; then
8947     echo "$as_me:$LINENO: checking for /dev/poll" >&5
8948     echo $ECHO_N "checking for /dev/poll... $ECHO_C" >&6
8949     if test -c "/dev/poll"; then
8950     echo "$as_me:$LINENO: result: yes" >&5
8951     echo "${ECHO_T}yes" >&6
8952    
8953    
8954     for ac_header in devpoll.h sys/devpoll.h
8955     do
8956     as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8957     if eval "test \"\${$as_ac_Header+set}\" = set"; then
8958     echo "$as_me:$LINENO: checking for $ac_header" >&5
8959     echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8960     if eval "test \"\${$as_ac_Header+set}\" = set"; then
8961     echo $ECHO_N "(cached) $ECHO_C" >&6
8962     fi
8963     echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8964     echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8965     else
8966     # Is the header compilable?
8967     echo "$as_me:$LINENO: checking $ac_header usability" >&5
8968     echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8969     cat >conftest.$ac_ext <<_ACEOF
8970     /* confdefs.h. */
8971     _ACEOF
8972     cat confdefs.h >>conftest.$ac_ext
8973     cat >>conftest.$ac_ext <<_ACEOF
8974     /* end confdefs.h. */
8975     $ac_includes_default
8976     #include <$ac_header>
8977     _ACEOF
8978     rm -f conftest.$ac_objext
8979     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8980     (eval $ac_compile) 2>conftest.er1
8981     ac_status=$?
8982     grep -v '^ *+' conftest.er1 >conftest.err
8983     rm -f conftest.er1
8984     cat conftest.err >&5
8985     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8986     (exit $ac_status); } &&
8987     { ac_try='test -z "$ac_c_werror_flag"
8988     || test ! -s conftest.err'
8989     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8990     (eval $ac_try) 2>&5
8991     ac_status=$?
8992     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8993     (exit $ac_status); }; } &&
8994     { ac_try='test -s conftest.$ac_objext'
8995     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8996     (eval $ac_try) 2>&5
8997     ac_status=$?
8998     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8999     (exit $ac_status); }; }; then
9000     ac_header_compiler=yes
9001     else
9002     echo "$as_me: failed program was:" >&5
9003     sed 's/^/| /' conftest.$ac_ext >&5
9004    
9005     ac_header_compiler=no
9006     fi
9007     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9008     echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9009     echo "${ECHO_T}$ac_header_compiler" >&6
9010    
9011     # Is the header present?
9012     echo "$as_me:$LINENO: checking $ac_header presence" >&5
9013     echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9014     cat >conftest.$ac_ext <<_ACEOF
9015     /* confdefs.h. */
9016     _ACEOF
9017     cat confdefs.h >>conftest.$ac_ext
9018     cat >>conftest.$ac_ext <<_ACEOF
9019     /* end confdefs.h. */
9020     #include <$ac_header>
9021     _ACEOF
9022     if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9023     (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9024     ac_status=$?
9025     grep -v '^ *+' conftest.er1 >conftest.err
9026     rm -f conftest.er1
9027     cat conftest.err >&5
9028     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9029     (exit $ac_status); } >/dev/null; then
9030     if test -s conftest.err; then
9031     ac_cpp_err=$ac_c_preproc_warn_flag
9032     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9033     else
9034     ac_cpp_err=
9035     fi
9036     else
9037     ac_cpp_err=yes
9038     fi
9039     if test -z "$ac_cpp_err"; then
9040     ac_header_preproc=yes
9041     else
9042     echo "$as_me: failed program was:" >&5
9043     sed 's/^/| /' conftest.$ac_ext >&5
9044    
9045     ac_header_preproc=no
9046     fi
9047     rm -f conftest.err conftest.$ac_ext
9048     echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9049     echo "${ECHO_T}$ac_header_preproc" >&6
9050    
9051     # So? What about this header?
9052     case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9053     yes:no: )
9054     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9055     echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9056     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9057     echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9058     ac_header_preproc=yes
9059     ;;
9060     no:yes:* )
9061     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9062     echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9063     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9064     echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9065     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9066     echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9067     { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9068     echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9069     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9070     echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9071     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9072     echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9073     (
9074     cat <<\_ASBOX
9075     ## -------------------------------------- ##
9076     ## Report this to the ircd-hybrid lists. ##
9077     ## -------------------------------------- ##
9078     _ASBOX
9079     ) |
9080     sed "s/^/$as_me: WARNING: /" >&2
9081     ;;
9082     esac
9083     echo "$as_me:$LINENO: checking for $ac_header" >&5
9084     echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9085     if eval "test \"\${$as_ac_Header+set}\" = set"; then
9086     echo $ECHO_N "(cached) $ECHO_C" >&6
9087     else
9088     eval "$as_ac_Header=\$ac_header_preproc"
9089     fi
9090     echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9091     echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9092    
9093     fi
9094     if test `eval echo '${'$as_ac_Header'}'` = yes; then
9095     cat >>confdefs.h <<_ACEOF
9096     #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9097     _ACEOF
9098    
9099     fi
9100    
9101     done
9102    
9103     SELECT_TYPE="devpoll"
9104     else
9105     echo "$as_me:$LINENO: result: no" >&5
9106     echo "${ECHO_T}no" >&6
9107     echo "$as_me:$LINENO: checking for RT Signal IO" >&5
9108     echo $ECHO_N "checking for RT Signal IO... $ECHO_C" >&6
9109    
9110     cat >conftest.$ac_ext <<_ACEOF
9111     /* confdefs.h. */
9112     _ACEOF
9113     cat confdefs.h >>conftest.$ac_ext
9114     cat >>conftest.$ac_ext <<_ACEOF
9115     /* end confdefs.h. */
9116     #define _GNU_SOURCE
9117     #include <fcntl.h>
9118     #ifdef F_SETSIG
9119     YUP_HAVE_F_SETSIG
9120     #endif
9121    
9122     _ACEOF
9123     if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9124     $EGREP "YUP_HAVE_F_SETSIG" >/dev/null 2>&1; then
9125    
9126     SELECT_TYPE="sigio"
9127     echo "$as_me:$LINENO: result: yes" >&5
9128     echo "${ECHO_T}yes" >&6
9129    
9130     else
9131    
9132     echo "$as_me:$LINENO: result: no" >&5
9133     echo "${ECHO_T}no" >&6
9134     echo "$as_me:$LINENO: checking for poll" >&5
9135     echo $ECHO_N "checking for poll... $ECHO_C" >&6
9136     if test "${ac_cv_func_poll+set}" = set; then
9137     echo $ECHO_N "(cached) $ECHO_C" >&6
9138     else
9139     cat >conftest.$ac_ext <<_ACEOF
9140     /* confdefs.h. */
9141     _ACEOF
9142     cat confdefs.h >>conftest.$ac_ext
9143     cat >>conftest.$ac_ext <<_ACEOF
9144     /* end confdefs.h. */
9145     /* Define poll to an innocuous variant, in case <limits.h> declares poll.
9146     For example, HP-UX 11i <limits.h> declares gettimeofday. */
9147     #define poll innocuous_poll
9148    
9149     /* System header to define __stub macros and hopefully few prototypes,
9150     which can conflict with char poll (); below.
9151     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9152     <limits.h> exists even on freestanding compilers. */
9153    
9154     #ifdef __STDC__
9155     # include <limits.h>
9156     #else
9157     # include <assert.h>
9158     #endif
9159    
9160     #undef poll
9161    
9162     /* Override any gcc2 internal prototype to avoid an error. */
9163     #ifdef __cplusplus
9164     extern "C"
9165     {
9166     #endif
9167     /* We use char because int might match the return type of a gcc2
9168     builtin and then its argument prototype would still apply. */
9169     char poll ();
9170     /* The GNU C library defines this for functions which it implements
9171     to always fail with ENOSYS. Some functions are actually named
9172     something starting with __ and the normal name is an alias. */
9173     #if defined (__stub_poll) || defined (__stub___poll)
9174     choke me
9175     #else
9176     char (*f) () = poll;
9177     #endif
9178     #ifdef __cplusplus
9179     }
9180     #endif
9181    
9182     int
9183     main ()
9184     {
9185     return f != poll;
9186     ;
9187     return 0;
9188     }
9189     _ACEOF
9190     rm -f conftest.$ac_objext conftest$ac_exeext
9191     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9192     (eval $ac_link) 2>conftest.er1
9193     ac_status=$?
9194     grep -v '^ *+' conftest.er1 >conftest.err
9195     rm -f conftest.er1
9196     cat conftest.err >&5
9197     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9198     (exit $ac_status); } &&
9199     { ac_try='test -z "$ac_c_werror_flag"
9200     || test ! -s conftest.err'
9201     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9202     (eval $ac_try) 2>&5
9203     ac_status=$?
9204     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9205     (exit $ac_status); }; } &&
9206     { ac_try='test -s conftest$ac_exeext'
9207     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9208     (eval $ac_try) 2>&5
9209     ac_status=$?
9210     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9211     (exit $ac_status); }; }; then
9212     ac_cv_func_poll=yes
9213     else
9214     echo "$as_me: failed program was:" >&5
9215     sed 's/^/| /' conftest.$ac_ext >&5
9216    
9217     ac_cv_func_poll=no
9218     fi
9219     rm -f conftest.err conftest.$ac_objext \
9220     conftest$ac_exeext conftest.$ac_ext
9221     fi
9222     echo "$as_me:$LINENO: result: $ac_cv_func_poll" >&5
9223     echo "${ECHO_T}$ac_cv_func_poll" >&6
9224     if test $ac_cv_func_poll = yes; then
9225     SELECT_TYPE="poll"
9226     else
9227    
9228     echo "$as_me:$LINENO: checking for select" >&5
9229     echo $ECHO_N "checking for select... $ECHO_C" >&6
9230     if test "${ac_cv_func_select+set}" = set; then
9231     echo $ECHO_N "(cached) $ECHO_C" >&6
9232     else
9233     cat >conftest.$ac_ext <<_ACEOF
9234     /* confdefs.h. */
9235     _ACEOF
9236     cat confdefs.h >>conftest.$ac_ext
9237     cat >>conftest.$ac_ext <<_ACEOF
9238     /* end confdefs.h. */
9239     /* Define select to an innocuous variant, in case <limits.h> declares select.
9240     For example, HP-UX 11i <limits.h> declares gettimeofday. */
9241     #define select innocuous_select
9242    
9243     /* System header to define __stub macros and hopefully few prototypes,
9244     which can conflict with char select (); below.
9245     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9246     <limits.h> exists even on freestanding compilers. */
9247    
9248     #ifdef __STDC__
9249     # include <limits.h>
9250     #else
9251     # include <assert.h>
9252     #endif
9253    
9254     #undef select
9255    
9256     /* Override any gcc2 internal prototype to avoid an error. */
9257     #ifdef __cplusplus
9258     extern "C"
9259     {
9260     #endif
9261     /* We use char because int might match the return type of a gcc2
9262     builtin and then its argument prototype would still apply. */
9263     char select ();
9264     /* The GNU C library defines this for functions which it implements
9265     to always fail with ENOSYS. Some functions are actually named
9266     something starting with __ and the normal name is an alias. */
9267     #if defined (__stub_select) || defined (__stub___select)
9268     choke me
9269     #else
9270     char (*f) () = select;
9271     #endif
9272     #ifdef __cplusplus
9273     }
9274     #endif
9275    
9276     int
9277     main ()
9278     {
9279     return f != select;
9280     ;
9281     return 0;
9282     }
9283     _ACEOF
9284     rm -f conftest.$ac_objext conftest$ac_exeext
9285     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9286     (eval $ac_link) 2>conftest.er1
9287     ac_status=$?
9288     grep -v '^ *+' conftest.er1 >conftest.err
9289     rm -f conftest.er1
9290     cat conftest.err >&5
9291     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9292     (exit $ac_status); } &&
9293     { ac_try='test -z "$ac_c_werror_flag"
9294     || test ! -s conftest.err'
9295     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9296     (eval $ac_try) 2>&5
9297     ac_status=$?
9298     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9299     (exit $ac_status); }; } &&
9300     { ac_try='test -s conftest$ac_exeext'
9301     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9302     (eval $ac_try) 2>&5
9303     ac_status=$?
9304     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9305     (exit $ac_status); }; }; then
9306     ac_cv_func_select=yes
9307     else
9308     echo "$as_me: failed program was:" >&5
9309     sed 's/^/| /' conftest.$ac_ext >&5
9310    
9311     ac_cv_func_select=no
9312     fi
9313     rm -f conftest.err conftest.$ac_objext \
9314     conftest$ac_exeext conftest.$ac_ext
9315     fi
9316     echo "$as_me:$LINENO: result: $ac_cv_func_select" >&5
9317     echo "${ECHO_T}$ac_cv_func_select" >&6
9318     if test $ac_cv_func_select = yes; then
9319     SELECT_TYPE="select"
9320     else
9321     { { echo "$as_me:$LINENO: error: Couldn't find anything to use for IO loop. Is your C environment POSIXly sane?" >&5
9322     echo "$as_me: error: Couldn't find anything to use for IO loop. Is your C environment POSIXly sane?" >&2;}
9323     { (exit 1); exit 1; }; }
9324    
9325     fi
9326    
9327    
9328     fi
9329    
9330    
9331     fi
9332     rm -f conftest*
9333    
9334     fi
9335     fi
9336    
9337     fi
9338    
9339    
9340     fi
9341    
9342     echo "Using $SELECT_TYPE for select loop."
9343    
9344    
9345     cat >>confdefs.h <<_ACEOF
9346     #define SELECT_TYPE "$SELECT_TYPE"
9347     _ACEOF
9348    
9349    
9350    
9351    
9352    
9353     # Check whether --enable-clobber or --disable-clobber was given.
9354     if test "${enable_clobber+set}" = set; then
9355     enableval="$enable_clobber"
9356     clobber=$enableval
9357     else
9358     clobber=no
9359     fi;
9360    
9361     if test "$clobber" = yes; then
9362     CLOBBER=yes
9363    
9364     fi
9365    
9366     # Check whether --enable-assert or --disable-assert was given.
9367     if test "${enable_assert+set}" = set; then
9368     enableval="$enable_assert"
9369     assert=$enableval
9370     else
9371     assert=no
9372     fi;
9373    
9374     if test "$assert" = no; then
9375    
9376     cat >>confdefs.h <<\_ACEOF
9377     #define NDEBUG 1
9378     _ACEOF
9379    
9380     fi
9381    
9382     echo "$as_me:$LINENO: checking if you want to do a profile build" >&5
9383     echo $ECHO_N "checking if you want to do a profile build... $ECHO_C" >&6
9384     # Check whether --enable-profile or --disable-profile was given.
9385     if test "${enable_profile+set}" = set; then
9386     enableval="$enable_profile"
9387     profile=$enableval
9388     else
9389     profile=no
9390     fi;
9391    
9392     if test "$profile" = yes; then
9393     if test "$ac_cv_c_compiler_gnu" = yes; then
9394     IRC_CFLAGS="$IRC_CFLAGS -pg -static"
9395     echo "$as_me:$LINENO: result: " >&5
9396     echo "${ECHO_T}" >&6="yes, adding -pg -static"
9397     else
9398     echo "$as_me:$LINENO: result: no, profile builds only work with gcc" >&5
9399     echo "${ECHO_T}no, profile builds only work with gcc" >&6
9400     fi
9401     else
9402     echo "$as_me:$LINENO: result: no" >&5
9403     echo "${ECHO_T}no" >&6
9404     fi
9405    
9406     echo "$as_me:$LINENO: checking if you want ElectricFence" >&5
9407     echo $ECHO_N "checking if you want ElectricFence... $ECHO_C" >&6
9408     # Check whether --enable-efence or --disable-efence was given.
9409     if test "${enable_efence+set}" = set; then
9410     enableval="$enable_efence"
9411    
9412     if test "$enableval" != no; then
9413     if test ! -z "$enableval" -a "$enableval" != yes; then
9414     LIBS="$LIBS -L$enableval"
9415     fi
9416    
9417     echo "$as_me:$LINENO: checking for malloc in -lefence" >&5
9418     echo $ECHO_N "checking for malloc in -lefence... $ECHO_C" >&6
9419     if test "${ac_cv_lib_efence_malloc+set}" = set; then
9420     echo $ECHO_N "(cached) $ECHO_C" >&6
9421     else
9422     ac_check_lib_save_LIBS=$LIBS
9423     LIBS="-lefence $LIBS"
9424     cat >conftest.$ac_ext <<_ACEOF
9425     /* confdefs.h. */
9426     _ACEOF
9427     cat confdefs.h >>conftest.$ac_ext
9428     cat >>conftest.$ac_ext <<_ACEOF
9429     /* end confdefs.h. */
9430    
9431     /* Override any gcc2 internal prototype to avoid an error. */
9432     #ifdef __cplusplus
9433     extern "C"
9434     #endif
9435     /* We use char because int might match the return type of a gcc2
9436     builtin and then its argument prototype would still apply. */
9437     char malloc ();
9438     int
9439     main ()
9440     {
9441     malloc ();
9442     ;
9443     return 0;
9444     }
9445     _ACEOF
9446     rm -f conftest.$ac_objext conftest$ac_exeext
9447     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9448     (eval $ac_link) 2>conftest.er1
9449     ac_status=$?
9450     grep -v '^ *+' conftest.er1 >conftest.err
9451     rm -f conftest.er1
9452     cat conftest.err >&5
9453     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9454     (exit $ac_status); } &&
9455     { ac_try='test -z "$ac_c_werror_flag"
9456     || test ! -s conftest.err'
9457     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9458     (eval $ac_try) 2>&5
9459     ac_status=$?
9460     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9461     (exit $ac_status); }; } &&
9462     { ac_try='test -s conftest$ac_exeext'
9463     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9464     (eval $ac_try) 2>&5
9465     ac_status=$?
9466     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9467     (exit $ac_status); }; }; then
9468     ac_cv_lib_efence_malloc=yes
9469     else
9470     echo "$as_me: failed program was:" >&5
9471     sed 's/^/| /' conftest.$ac_ext >&5
9472    
9473     ac_cv_lib_efence_malloc=no
9474     fi
9475     rm -f conftest.err conftest.$ac_objext \
9476     conftest$ac_exeext conftest.$ac_ext
9477     LIBS=$ac_check_lib_save_LIBS
9478     fi
9479     echo "$as_me:$LINENO: result: $ac_cv_lib_efence_malloc" >&5
9480     echo "${ECHO_T}$ac_cv_lib_efence_malloc" >&6
9481     if test $ac_cv_lib_efence_malloc = yes; then
9482    
9483     LIBS="$LIBS -lefence"
9484     echo "$as_me:$LINENO: result: yes" >&5
9485     echo "${ECHO_T}yes" >&6
9486    
9487     else
9488     echo "$as_me:$LINENO: result: not found" >&5
9489     echo "${ECHO_T}not found" >&6
9490     fi
9491    
9492     else
9493     echo "$as_me:$LINENO: result: no" >&5
9494     echo "${ECHO_T}no" >&6
9495     fi
9496    
9497     else
9498     echo "$as_me:$LINENO: result: no" >&5
9499     echo "${ECHO_T}no" >&6
9500     fi;
9501    
9502     echo "$as_me:$LINENO: checking if you want the block allocator" >&5
9503     echo $ECHO_N "checking if you want the block allocator... $ECHO_C" >&6
9504     # Check whether --enable-block-alloc or --disable-block-alloc was given.
9505     if test "${enable_block_alloc+set}" = set; then
9506     enableval="$enable_block_alloc"
9507     balloc=$enableval
9508     else
9509     balloc=yes
9510     fi;
9511    
9512     if test "$balloc" = no; then
9513    
9514    
9515     cat >>confdefs.h <<\_ACEOF
9516     #define NOBALLOC 1
9517     _ACEOF
9518    
9519     else
9520     BALLOC_C=balloc.c
9521    
9522     fi
9523    
9524     echo "$as_me:$LINENO: result: $balloc" >&5
9525     echo "${ECHO_T}$balloc" >&6
9526    
9527     # Check whether --enable-warnings or --disable-warnings was given.
9528     if test "${enable_warnings+set}" = set; then
9529     enableval="$enable_warnings"
9530     IRC_CFLAGS="$IRC_CFLAGS -Wcast-qual -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wredundant-decls -Wshadow -Wwrite-strings -W -Wno-unused"
9531     fi;
9532    
9533    
9534     # Check whether --enable-small-net or --disable-small-net was given.
9535     if test "${enable_small_net+set}" = set; then
9536     enableval="$enable_small_net"
9537     small_net=$enableval
9538     else
9539     small_net=no
9540     fi;
9541    
9542     if test "$small_net" = yes; then
9543    
9544     cat >>confdefs.h <<\_ACEOF
9545     #define NICKNAMEHISTORYLENGTH 1500
9546     _ACEOF
9547    
9548    
9549     cat >>confdefs.h <<\_ACEOF
9550     #define CHANNEL_HEAP_SIZE 256
9551     _ACEOF
9552    
9553    
9554     cat >>confdefs.h <<\_ACEOF
9555     #define BAN_HEAP_SIZE 128
9556     _ACEOF
9557    
9558    
9559     cat >>confdefs.h <<\_ACEOF
9560     #define CLIENT_HEAP_SIZE 256
9561     _ACEOF
9562    
9563    
9564     cat >>confdefs.h <<\_ACEOF
9565     #define LCLIENT_HEAP_SIZE 128
9566     _ACEOF
9567    
9568    
9569     cat >>confdefs.h <<\_ACEOF
9570     #define DNODE_HEAP_SIZE 256
9571     _ACEOF
9572    
9573    
9574     cat >>confdefs.h <<\_ACEOF
9575     #define TOPIC_HEAP_SIZE 256
9576     _ACEOF
9577    
9578    
9579     cat >>confdefs.h <<\_ACEOF
9580     #define DBUF_HEAP_SIZE 64
9581     _ACEOF
9582    
9583     else
9584    
9585     cat >>confdefs.h <<\_ACEOF
9586     #define NICKNAMEHISTORYLENGTH 15000
9587     _ACEOF
9588    
9589    
9590     cat >>confdefs.h <<\_ACEOF
9591     #define CHANNEL_HEAP_SIZE 1024
9592     _ACEOF
9593    
9594    
9595     cat >>confdefs.h <<\_ACEOF
9596     #define BAN_HEAP_SIZE 1024
9597     _ACEOF
9598    
9599    
9600     cat >>confdefs.h <<\_ACEOF
9601     #define CLIENT_HEAP_SIZE 1024
9602     _ACEOF
9603    
9604    
9605     cat >>confdefs.h <<\_ACEOF
9606     #define LCLIENT_HEAP_SIZE 512
9607     _ACEOF
9608    
9609    
9610     cat >>confdefs.h <<\_ACEOF
9611     #define DNODE_HEAP_SIZE 2048
9612     _ACEOF
9613    
9614    
9615     cat >>confdefs.h <<\_ACEOF
9616     #define TOPIC_HEAP_SIZE 1024
9617     _ACEOF
9618    
9619    
9620     cat >>confdefs.h <<\_ACEOF
9621     #define DBUF_HEAP_SIZE 512
9622     _ACEOF
9623    
9624     fi
9625    
9626     # Check whether --enable-efnet or --disable-efnet was given.
9627     if test "${enable_efnet+set}" = set; then
9628     enableval="$enable_efnet"
9629     efnet=$enableval
9630     else
9631     efnet=no
9632     fi;
9633    
9634     if test "$efnet" = yes; then
9635    
9636     cat >>confdefs.h <<\_ACEOF
9637     #define EFNET 1
9638     _ACEOF
9639    
9640    
9641     cat >>confdefs.h <<\_ACEOF
9642     #define TS5_ONLY 1
9643     _ACEOF
9644    
9645     echo "Building ircd for use with EFnet"
9646     EXAMPLE_CONF=example.efnet.conf
9647     else
9648    
9649     cat >>confdefs.h <<\_ACEOF
9650     #define INVARIANTS 1
9651     _ACEOF
9652    
9653     EXAMPLE_CONF=example.conf
9654     fi
9655    
9656     # Check whether --enable-gline-voting or --disable-gline-voting was given.
9657     if test "${enable_gline_voting+set}" = set; then
9658     enableval="$enable_gline_voting"
9659     gline_voting=$enableval
9660     else
9661     gline_voting=yes
9662     fi;
9663    
9664     if test "$gline_voting" = yes; then
9665    
9666     cat >>confdefs.h <<\_ACEOF
9667     #define GLINE_VOTING 1
9668     _ACEOF
9669    
9670     echo "Building ircd with G-Line voting support"
9671     fi
9672    
9673     # Check whether --enable-halfops or --disable-halfops was given.
9674     if test "${enable_halfops+set}" = set; then
9675     enableval="$enable_halfops"
9676     halfops=$enableval
9677     else
9678     halfops=no
9679     fi;
9680    
9681     if test "$halfops" = yes; then
9682    
9683     cat >>confdefs.h <<\_ACEOF
9684     #define HALFOPS 1
9685     _ACEOF
9686    
9687     fi
9688    
9689    
9690    
9691     echo "$as_me:$LINENO: checking for syslog options" >&5
9692     echo $ECHO_N "checking for syslog options... $ECHO_C" >&6
9693    
9694     # Check whether --enable-syslog or --disable-syslog was given.
9695     if test "${enable_syslog+set}" = set; then
9696     enableval="$enable_syslog"
9697    
9698    
9699     if test "$ac_cv_header_sys_syslog_h" = yes -o "$ac_cv_header_syslog_h" = yes; then
9700    
9701     if test "$enableval" != no; then
9702     syslogstuff=core
9703    
9704     for option in $enableval; do
9705     case "$option" in
9706     kill)
9707     syslogstuff="$syslogstuff kill"
9708    
9709     cat >>confdefs.h <<\_ACEOF
9710     #define SYSLOG_KILL 1
9711     _ACEOF
9712    
9713     ;;
9714     squit)
9715     syslogstuff="$syslogstuff squit"
9716    
9717     cat >>confdefs.h <<\_ACEOF
9718     #define SYSLOG_SQUIT 1
9719     _ACEOF
9720    
9721     ;;
9722     connect)
9723     syslogstuff="$syslogstuff connect"
9724    
9725     cat >>confdefs.h <<\_ACEOF
9726     #define SYSLOG_CONNECT 1
9727     _ACEOF
9728    
9729     ;;
9730     users)
9731     syslogstuff="$syslogstuff users"
9732    
9733     cat >>confdefs.h <<\_ACEOF
9734     #define SYSLOG_USERS 1
9735     _ACEOF
9736    
9737     ;;
9738     oper)
9739     syslogstuff="$syslogstuff oper"
9740    
9741     cat >>confdefs.h <<\_ACEOF
9742     #define SYSLOG_OPER 1
9743     _ACEOF
9744    
9745     ;;
9746     yes)
9747     ;;
9748     *)
9749     { echo "$as_me:$LINENO: WARNING: unknown event $option" >&5
9750     echo "$as_me: WARNING: unknown event $option" >&2;}
9751     ;;
9752     esac
9753     done
9754    
9755     if test ! -z "$syslogstuff" -o "$enableval" = yes; then
9756    
9757     cat >>confdefs.h <<\_ACEOF
9758     #define USE_SYSLOG 1
9759     _ACEOF
9760    
9761     fi
9762     else syslogstuff=none
9763     fi
9764    
9765     else { echo "$as_me:$LINENO: WARNING: both syslog.h and sys/syslog.h unavailable, not enabling syslog" >&5
9766     echo "$as_me: WARNING: both syslog.h and sys/syslog.h unavailable, not enabling syslog" >&2;}
9767     syslogstuff=none
9768     fi
9769    
9770     else
9771     syslogstuff=none
9772     fi;
9773    
9774     echo "$as_me:$LINENO: result: $syslogstuff" >&5
9775     echo "${ECHO_T}$syslogstuff" >&6
9776    
9777    
9778     # Check whether --with-syslog-facility or --without-syslog-facility was given.
9779     if test "${with_syslog_facility+set}" = set; then
9780     withval="$with_syslog_facility"
9781     facility=$withval
9782     else
9783     facility="LOG_LOCAL4"
9784     fi;
9785    
9786     if test "$syslogstuff" != none; then
9787    
9788     cat >>confdefs.h <<_ACEOF
9789     #define LOG_FACILITY $facility
9790     _ACEOF
9791    
9792     fi
9793    
9794    
9795     # Check whether --with-nicklen or --without-nicklen was given.
9796     if test "${with_nicklen+set}" = set; then
9797     withval="$with_nicklen"
9798     NICKLEN="$withval"
9799     else
9800     NICKLEN="9"
9801     fi;
9802    
9803    
9804     # Check whether --with-topiclen or --without-topiclen was given.
9805     if test "${with_topiclen+set}" = set; then
9806     withval="$with_topiclen"
9807    
9808     if test $withval -ge 390; then
9809     TOPICLEN=390
9810     { echo "$as_me:$LINENO: WARNING: TOPICLEN has a hard limit of 390. Setting TOPICLEN=390" >&5
9811     echo "$as_me: WARNING: TOPICLEN has a hard limit of 390. Setting TOPICLEN=390" >&2;}
9812     else
9813     TOPICLEN=$withval
9814     fi
9815    
9816     else
9817     TOPICLEN=160
9818     fi;
9819    
9820    
9821     cat >>confdefs.h <<_ACEOF
9822     #define TOPICLEN ${TOPICLEN}
9823     _ACEOF
9824    
9825    
9826     cat >>confdefs.h <<_ACEOF
9827     #define NICKLEN (${NICKLEN}+1)
9828     _ACEOF
9829    
9830    
9831     # Check whether --enable-shared-modules or --disable-shared-modules was given.
9832     if test "${enable_shared_modules+set}" = set; then
9833     enableval="$enable_shared_modules"
9834     shared_modules=$enableval
9835     else
9836     shared_modules="yes"
9837     fi;
9838    
9839     if test "$shared_modules" = yes; then
9840    
9841     if test "$profile" = "no"; then
9842     shared_modules="yes"
9843     else
9844     { echo "$as_me:$LINENO: WARNING: disabling shared modules; cannot coexist with profile builds" >&5
9845     echo "$as_me: WARNING: disabling shared modules; cannot coexist with profile builds" >&2;}
9846     shared_modules="no"
9847     fi
9848    
9849     if test "$CYGWIN" = yes; then
9850     { echo "$as_me:$LINENO: WARNING: disabling shared modules; Cygwin is at present unable to build them." >&5
9851     echo "$as_me: WARNING: disabling shared modules; Cygwin is at present unable to build them." >&2;}
9852     shared_modules="no"
9853     fi
9854    
9855     if test "$CC" = tcc -a "$TenDRA" = "no"; then
9856     { echo "$as_me:$LINENO: WARNING: disabling shared modules: Tiny C Compiler can't create PIC" >&5
9857     echo "$as_me: WARNING: disabling shared modules: Tiny C Compiler can't create PIC" >&2;}
9858     shared_modules="no"
9859     fi
9860     fi
9861    
9862     if test "$shared_modules" = yes; then
9863     DYNLINK_C=dynlink.c
9864    
9865     for ac_header in dlfcn.h
9866     do
9867     as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9868     if eval "test \"\${$as_ac_Header+set}\" = set"; then
9869     echo "$as_me:$LINENO: checking for $ac_header" >&5
9870     echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9871     if eval "test \"\${$as_ac_Header+set}\" = set"; then
9872     echo $ECHO_N "(cached) $ECHO_C" >&6
9873     fi
9874     echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9875     echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9876     else
9877     # Is the header compilable?
9878     echo "$as_me:$LINENO: checking $ac_header usability" >&5
9879     echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9880     cat >conftest.$ac_ext <<_ACEOF
9881     /* confdefs.h. */
9882     _ACEOF
9883     cat confdefs.h >>conftest.$ac_ext
9884     cat >>conftest.$ac_ext <<_ACEOF
9885     /* end confdefs.h. */
9886     $ac_includes_default
9887     #include <$ac_header>
9888     _ACEOF
9889     rm -f conftest.$ac_objext
9890     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9891     (eval $ac_compile) 2>conftest.er1
9892     ac_status=$?
9893     grep -v '^ *+' conftest.er1 >conftest.err
9894     rm -f conftest.er1
9895     cat conftest.err >&5
9896     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9897     (exit $ac_status); } &&
9898     { ac_try='test -z "$ac_c_werror_flag"
9899     || test ! -s conftest.err'
9900     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9901     (eval $ac_try) 2>&5
9902     ac_status=$?
9903     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9904     (exit $ac_status); }; } &&
9905     { ac_try='test -s conftest.$ac_objext'
9906     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9907     (eval $ac_try) 2>&5
9908     ac_status=$?
9909     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9910     (exit $ac_status); }; }; then
9911     ac_header_compiler=yes
9912     else
9913     echo "$as_me: failed program was:" >&5
9914     sed 's/^/| /' conftest.$ac_ext >&5
9915    
9916     ac_header_compiler=no
9917     fi
9918     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9919     echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9920     echo "${ECHO_T}$ac_header_compiler" >&6
9921    
9922     # Is the header present?
9923     echo "$as_me:$LINENO: checking $ac_header presence" >&5
9924     echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9925     cat >conftest.$ac_ext <<_ACEOF
9926     /* confdefs.h. */
9927     _ACEOF
9928     cat confdefs.h >>conftest.$ac_ext
9929     cat >>conftest.$ac_ext <<_ACEOF
9930     /* end confdefs.h. */
9931     #include <$ac_header>
9932     _ACEOF
9933     if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9934     (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9935     ac_status=$?
9936     grep -v '^ *+' conftest.er1 >conftest.err
9937     rm -f conftest.er1
9938     cat conftest.err >&5
9939     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9940     (exit $ac_status); } >/dev/null; then
9941     if test -s conftest.err; then
9942     ac_cpp_err=$ac_c_preproc_warn_flag
9943     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9944     else
9945     ac_cpp_err=
9946     fi
9947     else
9948     ac_cpp_err=yes
9949     fi
9950     if test -z "$ac_cpp_err"; then
9951     ac_header_preproc=yes
9952     else
9953     echo "$as_me: failed program was:" >&5
9954     sed 's/^/| /' conftest.$ac_ext >&5
9955    
9956     ac_header_preproc=no
9957     fi
9958     rm -f conftest.err conftest.$ac_ext
9959     echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9960     echo "${ECHO_T}$ac_header_preproc" >&6
9961    
9962     # So? What about this header?
9963     case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9964     yes:no: )
9965     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9966     echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9967     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9968     echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9969     ac_header_preproc=yes
9970     ;;
9971     no:yes:* )
9972     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9973     echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9974     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9975     echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9976     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9977     echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9978     { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9979     echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9980     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9981     echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9982     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9983     echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9984     (
9985     cat <<\_ASBOX
9986     ## -------------------------------------- ##
9987     ## Report this to the ircd-hybrid lists. ##
9988     ## -------------------------------------- ##
9989     _ASBOX
9990     ) |
9991     sed "s/^/$as_me: WARNING: /" >&2
9992     ;;
9993     esac
9994     echo "$as_me:$LINENO: checking for $ac_header" >&5
9995     echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9996     if eval "test \"\${$as_ac_Header+set}\" = set"; then
9997     echo $ECHO_N "(cached) $ECHO_C" >&6
9998     else
9999     eval "$as_ac_Header=\$ac_header_preproc"
10000     fi
10001     echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10002     echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10003    
10004     fi
10005     if test `eval echo '${'$as_ac_Header'}'` = yes; then
10006     cat >>confdefs.h <<_ACEOF
10007     #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10008     _ACEOF
10009    
10010     fi
10011    
10012     done
10013    
10014     echo "$as_me:$LINENO: checking for library containing shl_load" >&5
10015     echo $ECHO_N "checking for library containing shl_load... $ECHO_C" >&6
10016     if test "${ac_cv_search_shl_load+set}" = set; then
10017     echo $ECHO_N "(cached) $ECHO_C" >&6
10018     else
10019     ac_func_search_save_LIBS=$LIBS
10020     ac_cv_search_shl_load=no
10021     cat >conftest.$ac_ext <<_ACEOF
10022     /* confdefs.h. */
10023     _ACEOF
10024     cat confdefs.h >>conftest.$ac_ext
10025     cat >>conftest.$ac_ext <<_ACEOF
10026     /* end confdefs.h. */
10027    
10028     /* Override any gcc2 internal prototype to avoid an error. */
10029     #ifdef __cplusplus
10030     extern "C"
10031     #endif
10032     /* We use char because int might match the return type of a gcc2
10033     builtin and then its argument prototype would still apply. */
10034     char shl_load ();
10035     int
10036     main ()
10037     {
10038     shl_load ();
10039     ;
10040     return 0;
10041     }
10042     _ACEOF
10043     rm -f conftest.$ac_objext conftest$ac_exeext
10044     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10045     (eval $ac_link) 2>conftest.er1
10046     ac_status=$?
10047     grep -v '^ *+' conftest.er1 >conftest.err
10048     rm -f conftest.er1
10049     cat conftest.err >&5
10050     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10051     (exit $ac_status); } &&
10052     { ac_try='test -z "$ac_c_werror_flag"
10053     || test ! -s conftest.err'
10054     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10055     (eval $ac_try) 2>&5
10056     ac_status=$?
10057     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10058     (exit $ac_status); }; } &&
10059     { ac_try='test -s conftest$ac_exeext'
10060     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10061     (eval $ac_try) 2>&5
10062     ac_status=$?
10063     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10064     (exit $ac_status); }; }; then
10065     ac_cv_search_shl_load="none required"
10066     else
10067     echo "$as_me: failed program was:" >&5
10068     sed 's/^/| /' conftest.$ac_ext >&5
10069    
10070     fi
10071     rm -f conftest.err conftest.$ac_objext \
10072     conftest$ac_exeext conftest.$ac_ext
10073     if test "$ac_cv_search_shl_load" = no; then
10074     for ac_lib in dld; do
10075     LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10076     cat >conftest.$ac_ext <<_ACEOF
10077     /* confdefs.h. */
10078     _ACEOF
10079     cat confdefs.h >>conftest.$ac_ext
10080     cat >>conftest.$ac_ext <<_ACEOF
10081     /* end confdefs.h. */
10082    
10083     /* Override any gcc2 internal prototype to avoid an error. */
10084     #ifdef __cplusplus
10085     extern "C"
10086     #endif
10087     /* We use char because int might match the return type of a gcc2
10088     builtin and then its argument prototype would still apply. */
10089     char shl_load ();
10090     int
10091     main ()
10092     {
10093     shl_load ();
10094     ;
10095     return 0;
10096     }
10097     _ACEOF
10098     rm -f conftest.$ac_objext conftest$ac_exeext
10099     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10100     (eval $ac_link) 2>conftest.er1
10101     ac_status=$?
10102     grep -v '^ *+' conftest.er1 >conftest.err
10103     rm -f conftest.er1
10104     cat conftest.err >&5
10105     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10106     (exit $ac_status); } &&
10107     { ac_try='test -z "$ac_c_werror_flag"
10108     || test ! -s conftest.err'
10109     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10110     (eval $ac_try) 2>&5
10111     ac_status=$?
10112     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10113     (exit $ac_status); }; } &&
10114     { ac_try='test -s conftest$ac_exeext'
10115     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10116     (eval $ac_try) 2>&5
10117     ac_status=$?
10118     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10119     (exit $ac_status); }; }; then
10120     ac_cv_search_shl_load="-l$ac_lib"
10121     break
10122     else
10123     echo "$as_me: failed program was:" >&5
10124     sed 's/^/| /' conftest.$ac_ext >&5
10125    
10126     fi
10127     rm -f conftest.err conftest.$ac_objext \
10128     conftest$ac_exeext conftest.$ac_ext
10129     done
10130     fi
10131     LIBS=$ac_func_search_save_LIBS
10132     fi
10133     echo "$as_me:$LINENO: result: $ac_cv_search_shl_load" >&5
10134     echo "${ECHO_T}$ac_cv_search_shl_load" >&6
10135     if test "$ac_cv_search_shl_load" != no; then
10136     test "$ac_cv_search_shl_load" = "none required" || LIBS="$ac_cv_search_shl_load $LIBS"
10137    
10138    
10139     cat >>confdefs.h <<\_ACEOF
10140     #define HAVE_SHL_LOAD 1
10141     _ACEOF
10142    
10143     SUFFIX=".sl"
10144     MOD_TARGET=hpux_shared
10145     SEDOBJ="s/\.o/.sl/g"
10146    
10147     else
10148    
10149     echo "$as_me:$LINENO: checking for library containing dlopen" >&5
10150     echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
10151     if test "${ac_cv_search_dlopen+set}" = set; then
10152     echo $ECHO_N "(cached) $ECHO_C" >&6
10153     else
10154     ac_func_search_save_LIBS=$LIBS
10155     ac_cv_search_dlopen=no
10156     cat >conftest.$ac_ext <<_ACEOF
10157     /* confdefs.h. */
10158     _ACEOF
10159     cat confdefs.h >>conftest.$ac_ext
10160     cat >>conftest.$ac_ext <<_ACEOF
10161     /* end confdefs.h. */
10162    
10163     /* Override any gcc2 internal prototype to avoid an error. */
10164     #ifdef __cplusplus
10165     extern "C"
10166     #endif
10167     /* We use char because int might match the return type of a gcc2
10168     builtin and then its argument prototype would still apply. */
10169     char dlopen ();
10170     int
10171     main ()
10172     {
10173     dlopen ();
10174     ;
10175     return 0;
10176     }
10177     _ACEOF
10178     rm -f conftest.$ac_objext conftest$ac_exeext
10179     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10180     (eval $ac_link) 2>conftest.er1
10181     ac_status=$?
10182     grep -v '^ *+' conftest.er1 >conftest.err
10183     rm -f conftest.er1
10184     cat conftest.err >&5
10185     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10186     (exit $ac_status); } &&
10187     { ac_try='test -z "$ac_c_werror_flag"
10188     || test ! -s conftest.err'
10189     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10190     (eval $ac_try) 2>&5
10191     ac_status=$?
10192     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10193     (exit $ac_status); }; } &&
10194     { ac_try='test -s conftest$ac_exeext'
10195     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10196     (eval $ac_try) 2>&5
10197     ac_status=$?
10198     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10199     (exit $ac_status); }; }; then
10200     ac_cv_search_dlopen="none required"
10201     else
10202     echo "$as_me: failed program was:" >&5
10203     sed 's/^/| /' conftest.$ac_ext >&5
10204    
10205     fi
10206     rm -f conftest.err conftest.$ac_objext \
10207     conftest$ac_exeext conftest.$ac_ext
10208     if test "$ac_cv_search_dlopen" = no; then
10209     for ac_lib in dl c_r; do
10210     LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10211     cat >conftest.$ac_ext <<_ACEOF
10212     /* confdefs.h. */
10213     _ACEOF
10214     cat confdefs.h >>conftest.$ac_ext
10215     cat >>conftest.$ac_ext <<_ACEOF
10216     /* end confdefs.h. */
10217    
10218     /* Override any gcc2 internal prototype to avoid an error. */
10219     #ifdef __cplusplus
10220     extern "C"
10221     #endif
10222     /* We use char because int might match the return type of a gcc2
10223     builtin and then its argument prototype would still apply. */
10224     char dlopen ();
10225     int
10226     main ()
10227     {
10228     dlopen ();
10229     ;
10230     return 0;
10231     }
10232     _ACEOF
10233     rm -f conftest.$ac_objext conftest$ac_exeext
10234     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10235     (eval $ac_link) 2>conftest.er1
10236     ac_status=$?
10237     grep -v '^ *+' conftest.er1 >conftest.err
10238     rm -f conftest.er1
10239     cat conftest.err >&5
10240     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10241     (exit $ac_status); } &&
10242     { ac_try='test -z "$ac_c_werror_flag"
10243     || test ! -s conftest.err'
10244     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10245     (eval $ac_try) 2>&5
10246     ac_status=$?
10247     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10248     (exit $ac_status); }; } &&
10249     { ac_try='test -s conftest$ac_exeext'
10250     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10251     (eval $ac_try) 2>&5
10252     ac_status=$?
10253     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10254     (exit $ac_status); }; }; then
10255     ac_cv_search_dlopen="-l$ac_lib"
10256     break
10257     else
10258     echo "$as_me: failed program was:" >&5
10259     sed 's/^/| /' conftest.$ac_ext >&5
10260    
10261     fi
10262     rm -f conftest.err conftest.$ac_objext \
10263     conftest$ac_exeext conftest.$ac_ext
10264     done
10265     fi
10266     LIBS=$ac_func_search_save_LIBS
10267     fi
10268     echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
10269     echo "${ECHO_T}$ac_cv_search_dlopen" >&6
10270     if test "$ac_cv_search_dlopen" != no; then
10271     test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
10272    
10273    
10274     cat >>confdefs.h <<\_ACEOF
10275     #define HAVE_DLOPEN 1
10276     _ACEOF
10277    
10278     SUFFIX=".so"
10279     MOD_TARGET=shared_modules
10280     SEDOBJ="s/\.o/.so/g"
10281     if test "$AppleGCC" = yes; then
10282    
10283     for ac_header in mach-o/dyld.h
10284     do
10285     as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10286     if eval "test \"\${$as_ac_Header+set}\" = set"; then
10287     echo "$as_me:$LINENO: checking for $ac_header" >&5
10288     echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10289     if eval "test \"\${$as_ac_Header+set}\" = set"; then
10290     echo $ECHO_N "(cached) $ECHO_C" >&6
10291     fi
10292     echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10293     echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10294     else
10295     # Is the header compilable?
10296     echo "$as_me:$LINENO: checking $ac_header usability" >&5
10297     echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10298     cat >conftest.$ac_ext <<_ACEOF
10299     /* confdefs.h. */
10300     _ACEOF
10301     cat confdefs.h >>conftest.$ac_ext
10302     cat >>conftest.$ac_ext <<_ACEOF
10303     /* end confdefs.h. */
10304     $ac_includes_default
10305     #include <$ac_header>
10306     _ACEOF
10307     rm -f conftest.$ac_objext
10308     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10309     (eval $ac_compile) 2>conftest.er1
10310     ac_status=$?
10311     grep -v '^ *+' conftest.er1 >conftest.err
10312     rm -f conftest.er1
10313     cat conftest.err >&5
10314     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10315     (exit $ac_status); } &&
10316     { ac_try='test -z "$ac_c_werror_flag"
10317     || test ! -s conftest.err'
10318     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10319     (eval $ac_try) 2>&5
10320     ac_status=$?
10321     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10322     (exit $ac_status); }; } &&
10323     { ac_try='test -s conftest.$ac_objext'
10324     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10325     (eval $ac_try) 2>&5
10326     ac_status=$?
10327     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10328     (exit $ac_status); }; }; then
10329     ac_header_compiler=yes
10330     else
10331     echo "$as_me: failed program was:" >&5
10332     sed 's/^/| /' conftest.$ac_ext >&5
10333    
10334     ac_header_compiler=no
10335     fi
10336     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10337     echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10338     echo "${ECHO_T}$ac_header_compiler" >&6
10339    
10340     # Is the header present?
10341     echo "$as_me:$LINENO: checking $ac_header presence" >&5
10342     echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10343     cat >conftest.$ac_ext <<_ACEOF
10344     /* confdefs.h. */
10345     _ACEOF
10346     cat confdefs.h >>conftest.$ac_ext
10347     cat >>conftest.$ac_ext <<_ACEOF
10348     /* end confdefs.h. */
10349     #include <$ac_header>
10350     _ACEOF
10351     if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10352     (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10353     ac_status=$?
10354     grep -v '^ *+' conftest.er1 >conftest.err
10355     rm -f conftest.er1
10356     cat conftest.err >&5
10357     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10358     (exit $ac_status); } >/dev/null; then
10359     if test -s conftest.err; then
10360     ac_cpp_err=$ac_c_preproc_warn_flag
10361     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10362     else
10363     ac_cpp_err=
10364     fi
10365     else
10366     ac_cpp_err=yes
10367     fi
10368     if test -z "$ac_cpp_err"; then
10369     ac_header_preproc=yes
10370     else
10371     echo "$as_me: failed program was:" >&5
10372     sed 's/^/| /' conftest.$ac_ext >&5
10373    
10374     ac_header_preproc=no
10375     fi
10376     rm -f conftest.err conftest.$ac_ext
10377     echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10378     echo "${ECHO_T}$ac_header_preproc" >&6
10379    
10380     # So? What about this header?
10381     case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10382     yes:no: )
10383     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10384     echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10385     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10386     echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10387     ac_header_preproc=yes
10388     ;;
10389     no:yes:* )
10390     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10391     echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10392     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10393     echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10394     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10395     echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10396     { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10397     echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10398     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10399     echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10400     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10401     echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10402     (
10403     cat <<\_ASBOX
10404     ## -------------------------------------- ##
10405     ## Report this to the ircd-hybrid lists. ##
10406     ## -------------------------------------- ##
10407     _ASBOX
10408     ) |
10409     sed "s/^/$as_me: WARNING: /" >&2
10410     ;;
10411     esac
10412     echo "$as_me:$LINENO: checking for $ac_header" >&5
10413     echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10414     if eval "test \"\${$as_ac_Header+set}\" = set"; then
10415     echo $ECHO_N "(cached) $ECHO_C" >&6
10416     else
10417     eval "$as_ac_Header=\$ac_header_preproc"
10418     fi
10419     echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10420     echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10421    
10422     fi
10423     if test `eval echo '${'$as_ac_Header'}'` = yes; then
10424     cat >>confdefs.h <<_ACEOF
10425     #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10426     _ACEOF
10427    
10428     fi
10429    
10430     done
10431    
10432     fi
10433     echo "$as_me:$LINENO: checking for dlsym" >&5
10434     echo $ECHO_N "checking for dlsym... $ECHO_C" >&6
10435     if test "${ac_cv_func_dlsym+set}" = set; then
10436     echo $ECHO_N "(cached) $ECHO_C" >&6
10437     else
10438     cat >conftest.$ac_ext <<_ACEOF
10439     /* confdefs.h. */
10440     _ACEOF
10441     cat confdefs.h >>conftest.$ac_ext
10442     cat >>conftest.$ac_ext <<_ACEOF
10443     /* end confdefs.h. */
10444     /* Define dlsym to an innocuous variant, in case <limits.h> declares dlsym.
10445     For example, HP-UX 11i <limits.h> declares gettimeofday. */
10446     #define dlsym innocuous_dlsym
10447    
10448     /* System header to define __stub macros and hopefully few prototypes,
10449     which can conflict with char dlsym (); below.
10450     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10451     <limits.h> exists even on freestanding compilers. */
10452    
10453     #ifdef __STDC__
10454     # include <limits.h>
10455     #else
10456     # include <assert.h>
10457     #endif
10458    
10459     #undef dlsym
10460    
10461     /* Override any gcc2 internal prototype to avoid an error. */
10462     #ifdef __cplusplus
10463     extern "C"
10464     {
10465     #endif
10466     /* We use char because int might match the return type of a gcc2
10467     builtin and then its argument prototype would still apply. */
10468     char dlsym ();
10469     /* The GNU C library defines this for functions which it implements
10470     to always fail with ENOSYS. Some functions are actually named
10471     something starting with __ and the normal name is an alias. */
10472     #if defined (__stub_dlsym) || defined (__stub___dlsym)
10473     choke me
10474     #else
10475     char (*f) () = dlsym;
10476     #endif
10477     #ifdef __cplusplus
10478     }
10479     #endif
10480    
10481     int
10482     main ()
10483     {
10484     return f != dlsym;
10485     ;
10486     return 0;
10487     }
10488     _ACEOF
10489     rm -f conftest.$ac_objext conftest$ac_exeext
10490     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10491     (eval $ac_link) 2>conftest.er1
10492     ac_status=$?
10493     grep -v '^ *+' conftest.er1 >conftest.err
10494     rm -f conftest.er1
10495     cat conftest.err >&5
10496     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10497     (exit $ac_status); } &&
10498     { ac_try='test -z "$ac_c_werror_flag"
10499     || test ! -s conftest.err'
10500     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10501     (eval $ac_try) 2>&5
10502     ac_status=$?
10503     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10504     (exit $ac_status); }; } &&
10505     { ac_try='test -s conftest$ac_exeext'
10506     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10507     (eval $ac_try) 2>&5
10508     ac_status=$?
10509     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10510     (exit $ac_status); }; }; then
10511     ac_cv_func_dlsym=yes
10512     else
10513     echo "$as_me: failed program was:" >&5
10514     sed 's/^/| /' conftest.$ac_ext >&5
10515    
10516     ac_cv_func_dlsym=no
10517     fi
10518     rm -f conftest.err conftest.$ac_objext \
10519     conftest$ac_exeext conftest.$ac_ext
10520     fi
10521     echo "$as_me:$LINENO: result: $ac_cv_func_dlsym" >&5
10522     echo "${ECHO_T}$ac_cv_func_dlsym" >&6
10523     if test $ac_cv_func_dlsym = yes; then
10524     :
10525     else
10526    
10527     { echo "$as_me:$LINENO: WARNING: dlsym is not available, shared modules disabled" >&5
10528     echo "$as_me: WARNING: dlsym is not available, shared modules disabled" >&2;}
10529     shared_modules=no
10530    
10531     fi
10532    
10533    
10534     for ac_func in dlfunc
10535     do
10536     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10537     echo "$as_me:$LINENO: checking for $ac_func" >&5
10538     echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10539     if eval "test \"\${$as_ac_var+set}\" = set"; then
10540     echo $ECHO_N "(cached) $ECHO_C" >&6
10541     else
10542     cat >conftest.$ac_ext <<_ACEOF
10543     /* confdefs.h. */
10544     _ACEOF
10545     cat confdefs.h >>conftest.$ac_ext
10546     cat >>conftest.$ac_ext <<_ACEOF
10547     /* end confdefs.h. */
10548     /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10549     For example, HP-UX 11i <limits.h> declares gettimeofday. */
10550     #define $ac_func innocuous_$ac_func
10551    
10552     /* System header to define __stub macros and hopefully few prototypes,
10553     which can conflict with char $ac_func (); below.
10554     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10555     <limits.h> exists even on freestanding compilers. */
10556    
10557     #ifdef __STDC__
10558     # include <limits.h>
10559     #else
10560     # include <assert.h>
10561     #endif
10562    
10563     #undef $ac_func
10564    
10565     /* Override any gcc2 internal prototype to avoid an error. */
10566     #ifdef __cplusplus
10567     extern "C"
10568     {
10569     #endif
10570     /* We use char because int might match the return type of a gcc2
10571     builtin and then its argument prototype would still apply. */
10572     char $ac_func ();
10573     /* The GNU C library defines this for functions which it implements
10574     to always fail with ENOSYS. Some functions are actually named
10575     something starting with __ and the normal name is an alias. */
10576     #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10577     choke me
10578     #else
10579     char (*f) () = $ac_func;
10580     #endif
10581     #ifdef __cplusplus
10582     }
10583     #endif
10584    
10585     int
10586     main ()
10587     {
10588     return f != $ac_func;
10589     ;
10590     return 0;
10591     }
10592     _ACEOF
10593     rm -f conftest.$ac_objext conftest$ac_exeext
10594     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10595     (eval $ac_link) 2>conftest.er1
10596     ac_status=$?
10597     grep -v '^ *+' conftest.er1 >conftest.err
10598     rm -f conftest.er1
10599     cat conftest.err >&5
10600     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10601     (exit $ac_status); } &&
10602     { ac_try='test -z "$ac_c_werror_flag"
10603     || test ! -s conftest.err'
10604     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10605     (eval $ac_try) 2>&5
10606     ac_status=$?
10607     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10608     (exit $ac_status); }; } &&
10609     { ac_try='test -s conftest$ac_exeext'
10610     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10611     (eval $ac_try) 2>&5
10612     ac_status=$?
10613     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10614     (exit $ac_status); }; }; then
10615     eval "$as_ac_var=yes"
10616     else
10617     echo "$as_me: failed program was:" >&5
10618     sed 's/^/| /' conftest.$ac_ext >&5
10619    
10620     eval "$as_ac_var=no"
10621     fi
10622     rm -f conftest.err conftest.$ac_objext \
10623     conftest$ac_exeext conftest.$ac_ext
10624     fi
10625     echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10626     echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10627     if test `eval echo '${'$as_ac_var'}'` = yes; then
10628     cat >>confdefs.h <<_ACEOF
10629     #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10630     _ACEOF
10631    
10632     fi
10633     done
10634    
10635    
10636     else
10637    
10638     shared_modules=no
10639    
10640     fi
10641    
10642    
10643     fi
10644    
10645     fi
10646    
10647    
10648     cat >>confdefs.h <<_ACEOF
10649     #define SHARED_SUFFIX "$SUFFIX"
10650     _ACEOF
10651    
10652    
10653     if test "$shared_modules" = yes; then
10654     # The GNU linker requires the -export-dynamic option to make
10655     # all symbols visible in the dynamic symbol table.
10656     hold_ldflags=$LDFLAGS
10657     echo "$as_me:$LINENO: checking for the ld -export-dynamic flag" >&5
10658     echo $ECHO_N "checking for the ld -export-dynamic flag... $ECHO_C" >&6
10659     LDFLAGS="${LDFLAGS} -Wl,-export-dynamic"
10660     cat >conftest.$ac_ext <<_ACEOF
10661     /* confdefs.h. */
10662     _ACEOF
10663     cat confdefs.h >>conftest.$ac_ext
10664     cat >>conftest.$ac_ext <<_ACEOF
10665     /* end confdefs.h. */
10666    
10667     int
10668     main ()
10669     {
10670     int i;
10671     ;
10672     return 0;
10673     }
10674     _ACEOF
10675     rm -f conftest.$ac_objext conftest$ac_exeext
10676     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10677     (eval $ac_link) 2>conftest.er1
10678     ac_status=$?
10679     grep -v '^ *+' conftest.er1 >conftest.err
10680     rm -f conftest.er1
10681     cat conftest.err >&5
10682     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10683     (exit $ac_status); } &&
10684     { ac_try='test -z "$ac_c_werror_flag"
10685     || test ! -s conftest.err'
10686     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10687     (eval $ac_try) 2>&5
10688     ac_status=$?
10689     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10690     (exit $ac_status); }; } &&
10691     { ac_try='test -s conftest$ac_exeext'
10692     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10693     (eval $ac_try) 2>&5
10694     ac_status=$?
10695     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10696     (exit $ac_status); }; }; then
10697     found=yes
10698     else
10699     echo "$as_me: failed program was:" >&5
10700     sed 's/^/| /' conftest.$ac_ext >&5
10701    
10702     found=no
10703     fi
10704     rm -f conftest.err conftest.$ac_objext \
10705     conftest$ac_exeext conftest.$ac_ext
10706     LDFLAGS=$hold_ldflags
10707    
10708     if expr "`uname -s`" : ^IRIX >/dev/null 2>&1; then
10709     found="no, IRIX ld uses -B,dynamic"
10710     LDFLAGS="${LDFLAGS} -Wl,-B,dynamic"
10711     fi
10712    
10713     echo "$as_me:$LINENO: result: $found" >&5
10714     echo "${ECHO_T}$found" >&6
10715    
10716     if test "$found" = yes; then
10717     LDFLAGS="${LDFLAGS} -Wl,-export-dynamic"
10718     fi
10719    
10720     echo "$as_me:$LINENO: checking for compiler option to produce PIC" >&5
10721     echo $ECHO_N "checking for compiler option to produce PIC... $ECHO_C" >&6
10722     if test "$SGS" = "yes"; then
10723     echo "$as_me:$LINENO: result: SVR4 SGS interfaces: -KPIC -DPIC -G" >&5
10724     echo "${ECHO_T}SVR4 SGS interfaces: -KPIC -DPIC -G" >&6
10725     PICFLAGS="-KPIC -DPIC -G"
10726     fi
10727    
10728     if test "$AppleGCC" = "yes"; then
10729     echo "$as_me:$LINENO: result: Darwin Mach-O bundles: -fno-common -bundle -flat_namespace -undefined suppress" >&5
10730     echo "${ECHO_T}Darwin Mach-O bundles: -fno-common -bundle -flat_namespace -undefined suppress" >&6
10731     PICFLAGS="-fno-common -bundle -flat_namespace -undefined suppress"
10732     fi
10733     if test "$HPUX" = "yes" -a "$ac_cv_c_compiler_gnu" = no; then
10734     echo "$as_me:$LINENO: result: HP-UX cc: +z -r -q -n" >&5
10735     echo "${ECHO_T}HP-UX cc: +z -r -q -n" >&6
10736     PICFLAGS="+z -r -q -n -c"
10737     echo "$as_me:$LINENO: checking if +ESfic is required on this platform" >&5
10738     echo $ECHO_N "checking if +ESfic is required on this platform... $ECHO_C" >&6
10739    
10740     if expr "`$CC +ESfic 2>&1`" : ".*neither supported.*" >/dev/null; then
10741     echo "$as_me:$LINENO: result: no" >&5
10742     echo "${ECHO_T}no" >&6
10743     else
10744     echo "$as_me:$LINENO: result: yes" >&5
10745     echo "${ECHO_T}yes" >&6
10746     PICFLAGS="$PICFLAGS +ESfic"
10747     fi
10748    
10749     LDFLAGS="${LDFLAGS} -Wl,-E"
10750     fi
10751     if test "$Tru" = yes -a "$ac_cv_c_compiler_gnu" = no; then
10752     echo "$as_me:$LINENO: result: Tru64: -shared -expect_unresolved '*'" >&5
10753     echo "${ECHO_T}Tru64: -shared -expect_unresolved '*'" >&6
10754     PICFLAGS="-shared -expect_unresolved '*' "
10755     LDFLAGS="-call_shared"
10756     fi
10757     if test -z "$PICFLAGS"; then
10758     if test "$ac_cv_c_compiler_gnu" = "yes"; then
10759     echo "$as_me:$LINENO: result: gcc: -fPIC -DPIC -shared" >&5
10760     echo "${ECHO_T}gcc: -fPIC -DPIC -shared" >&6
10761     PICFLAGS="-fPIC -DPIC -shared"
10762     else
10763     echo "$as_me:$LINENO: result: no" >&5
10764     echo "${ECHO_T}no" >&6
10765     shared_modules=no
10766     fi
10767     fi
10768     fi
10769    
10770     if test "$shared_modules" = no; then
10771     DYNLINK_C=""
10772     MOD_TARGET="libmodules.a"
10773     MODULES_LIBS="../modules/libmodules.a"
10774     SEDOBJ=""
10775    
10776     cat >>confdefs.h <<\_ACEOF
10777     #define STATIC_MODULES 1
10778     _ACEOF
10779    
10780     { echo "$as_me:$LINENO: WARNING: shared module support has been disabled!" >&5
10781     echo "$as_me: WARNING: shared module support has been disabled!" >&2;}
10782     fi
10783    
10784    
10785    
10786    
10787    
10788    
10789    
10790    
10791    
10792    
10793    
10794    
10795    
10796    
10797     if test "$prefix" = "NONE"; then
10798    
10799     cat >>confdefs.h <<_ACEOF
10800     #define IRCD_PREFIX "$ac_default_prefix"
10801     _ACEOF
10802    
10803    
10804     else
10805    
10806    
10807     prefix=`echo $prefix | sed 's/\/$//'`
10808    
10809     cat >>confdefs.h <<_ACEOF
10810     #define IRCD_PREFIX "$prefix"
10811     _ACEOF
10812    
10813    
10814     fi
10815    
10816     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"
10817    
10818    
10819     cat >confcache <<\_ACEOF
10820     # This file is a shell script that caches the results of configure
10821     # tests run on this system so they can be shared between configure
10822     # scripts and configure runs, see configure's option --config-cache.
10823     # It is not useful on other systems. If it contains results you don't
10824     # want to keep, you may remove or edit it.
10825     #
10826     # config.status only pays attention to the cache file if you give it
10827     # the --recheck option to rerun configure.
10828     #
10829     # `ac_cv_env_foo' variables (set or unset) will be overridden when
10830     # loading this file, other *unset* `ac_cv_foo' will be assigned the
10831     # following values.
10832    
10833     _ACEOF
10834    
10835     # The following way of writing the cache mishandles newlines in values,
10836     # but we know of no workaround that is simple, portable, and efficient.
10837     # So, don't put newlines in cache variables' values.
10838     # Ultrix sh set writes to stderr and can't be redirected directly,
10839     # and sets the high bit in the cache file unless we assign to the vars.
10840     {
10841     (set) 2>&1 |
10842     case `(ac_space=' '; set | grep ac_space) 2>&1` in
10843     *ac_space=\ *)
10844     # `set' does not quote correctly, so add quotes (double-quote
10845     # substitution turns \\\\ into \\, and sed turns \\ into \).
10846     sed -n \
10847     "s/'/'\\\\''/g;
10848     s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10849     ;;
10850     *)
10851     # `set' quotes correctly as required by POSIX, so do not add quotes.
10852     sed -n \
10853     "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
10854     ;;
10855     esac;
10856     } |
10857     sed '
10858     t clear
10859     : clear
10860     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10861     t end
10862     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10863     : end' >>confcache
10864     if diff $cache_file confcache >/dev/null 2>&1; then :; else
10865     if test -w $cache_file; then
10866     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10867     cat confcache >$cache_file
10868     else
10869     echo "not updating unwritable cache $cache_file"
10870     fi
10871     fi
10872     rm -f confcache
10873    
10874     test "x$prefix" = xNONE && prefix=$ac_default_prefix
10875     # Let make expand exec_prefix.
10876     test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10877    
10878     # VPATH may cause trouble with some makes, so we remove $(srcdir),
10879     # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10880     # trailing colons and then remove the whole line if VPATH becomes empty
10881     # (actually we leave an empty line to preserve line numbers).
10882     if test "x$srcdir" = x.; then
10883     ac_vpsub='/^[ ]*VPATH[ ]*=/{
10884     s/:*\$(srcdir):*/:/;
10885     s/:*\${srcdir}:*/:/;
10886     s/:*@srcdir@:*/:/;
10887     s/^\([^=]*=[ ]*\):*/\1/;
10888     s/:*$//;
10889     s/^[^=]*=[ ]*$//;
10890     }'
10891     fi
10892    
10893     DEFS=-DHAVE_CONFIG_H
10894    
10895     ac_libobjs=
10896     ac_ltlibobjs=
10897     for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10898     # 1. Remove the extension, and $U if already installed.
10899     ac_i=`echo "$ac_i" |
10900     sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
10901     # 2. Add them.
10902     ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
10903     ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
10904     done
10905     LIBOBJS=$ac_libobjs
10906    
10907     LTLIBOBJS=$ac_ltlibobjs
10908    
10909    
10910    
10911     : ${CONFIG_STATUS=./config.status}
10912     ac_clean_files_save=$ac_clean_files
10913     ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10914     { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
10915     echo "$as_me: creating $CONFIG_STATUS" >&6;}
10916     cat >$CONFIG_STATUS <<_ACEOF
10917     #! $SHELL
10918     # Generated by $as_me.
10919     # Run this file to recreate the current configuration.
10920     # Compiler output produced by configure, useful for debugging
10921     # configure, is in config.log if it exists.
10922    
10923     debug=false
10924     ac_cs_recheck=false
10925     ac_cs_silent=false
10926     SHELL=\${CONFIG_SHELL-$SHELL}
10927     _ACEOF
10928    
10929     cat >>$CONFIG_STATUS <<\_ACEOF
10930     ## --------------------- ##
10931     ## M4sh Initialization. ##
10932     ## --------------------- ##
10933    
10934     # Be Bourne compatible
10935     if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
10936     emulate sh
10937     NULLCMD=:
10938     # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
10939     # is contrary to our usage. Disable this feature.
10940     alias -g '${1+"$@"}'='"$@"'
10941     elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
10942     set -o posix
10943     fi
10944     DUALCASE=1; export DUALCASE # for MKS sh
10945    
10946     # Support unset when possible.
10947     if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10948     as_unset=unset
10949     else
10950     as_unset=false
10951     fi
10952    
10953    
10954     # Work around bugs in pre-3.0 UWIN ksh.
10955     $as_unset ENV MAIL MAILPATH
10956     PS1='$ '
10957     PS2='> '
10958     PS4='+ '
10959    
10960     # NLS nuisances.
10961     for as_var in \
10962     LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
10963     LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
10964     LC_TELEPHONE LC_TIME
10965     do
10966     if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
10967     eval $as_var=C; export $as_var
10968     else
10969     $as_unset $as_var
10970     fi
10971     done
10972    
10973     # Required to use basename.
10974     if expr a : '\(a\)' >/dev/null 2>&1; then
10975     as_expr=expr
10976     else
10977     as_expr=false
10978     fi
10979    
10980     if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
10981     as_basename=basename
10982     else
10983     as_basename=false
10984     fi
10985    
10986    
10987     # Name of the executable.
10988     as_me=`$as_basename "$0" ||
10989     $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10990     X"$0" : 'X\(//\)$' \| \
10991     X"$0" : 'X\(/\)$' \| \
10992     . : '\(.\)' 2>/dev/null ||
10993     echo X/"$0" |
10994     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
10995     /^X\/\(\/\/\)$/{ s//\1/; q; }
10996     /^X\/\(\/\).*/{ s//\1/; q; }
10997     s/.*/./; q'`
10998    
10999    
11000     # PATH needs CR, and LINENO needs CR and PATH.
11001     # Avoid depending upon Character Ranges.
11002     as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11003     as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11004     as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11005     as_cr_digits='0123456789'
11006     as_cr_alnum=$as_cr_Letters$as_cr_digits
11007    
11008     # The user is always right.
11009     if test "${PATH_SEPARATOR+set}" != set; then
11010     echo "#! /bin/sh" >conf$$.sh
11011     echo "exit 0" >>conf$$.sh
11012     chmod +x conf$$.sh
11013     if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11014     PATH_SEPARATOR=';'
11015     else
11016     PATH_SEPARATOR=:
11017     fi
11018     rm -f conf$$.sh
11019     fi
11020    
11021    
11022     as_lineno_1=$LINENO
11023     as_lineno_2=$LINENO
11024     as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11025     test "x$as_lineno_1" != "x$as_lineno_2" &&
11026     test "x$as_lineno_3" = "x$as_lineno_2" || {
11027     # Find who we are. Look in the path if we contain no path at all
11028     # relative or not.
11029     case $0 in
11030     *[\\/]* ) as_myself=$0 ;;
11031     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11032     for as_dir in $PATH
11033     do
11034     IFS=$as_save_IFS
11035     test -z "$as_dir" && as_dir=.
11036     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11037     done
11038    
11039     ;;
11040     esac
11041     # We did not find ourselves, most probably we were run as `sh COMMAND'
11042     # in which case we are not to be found in the path.
11043     if test "x$as_myself" = x; then
11044     as_myself=$0
11045     fi
11046     if test ! -f "$as_myself"; then
11047     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
11048     echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
11049     { (exit 1); exit 1; }; }
11050     fi
11051     case $CONFIG_SHELL in
11052     '')
11053     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11054     for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
11055     do
11056     IFS=$as_save_IFS
11057     test -z "$as_dir" && as_dir=.
11058     for as_base in sh bash ksh sh5; do
11059     case $as_dir in
11060     /*)
11061     if ("$as_dir/$as_base" -c '
11062     as_lineno_1=$LINENO
11063     as_lineno_2=$LINENO
11064     as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11065     test "x$as_lineno_1" != "x$as_lineno_2" &&
11066     test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
11067     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
11068     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
11069     CONFIG_SHELL=$as_dir/$as_base
11070     export CONFIG_SHELL
11071     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
11072     fi;;
11073     esac
11074     done
11075     done
11076     ;;
11077     esac
11078    
11079     # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11080     # uniformly replaced by the line number. The first 'sed' inserts a
11081     # line-number line before each line; the second 'sed' does the real
11082     # work. The second script uses 'N' to pair each line-number line
11083     # with the numbered line, and appends trailing '-' during
11084     # substitution so that $LINENO is not a special case at line end.
11085     # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11086     # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
11087     sed '=' <$as_myself |
11088     sed '
11089     N
11090     s,$,-,
11091     : loop
11092     s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
11093     t loop
11094     s,-$,,
11095     s,^['$as_cr_digits']*\n,,
11096     ' >$as_me.lineno &&
11097     chmod +x $as_me.lineno ||
11098     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
11099     echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
11100     { (exit 1); exit 1; }; }
11101    
11102     # Don't try to exec as it changes $[0], causing all sort of problems
11103     # (the dirname of $[0] is not the place where we might find the
11104     # original and so on. Autoconf is especially sensible to this).
11105     . ./$as_me.lineno
11106     # Exit status is that of the last command.
11107     exit
11108     }
11109    
11110    
11111     case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
11112     *c*,-n*) ECHO_N= ECHO_C='
11113     ' ECHO_T=' ' ;;
11114     *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
11115     *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
11116     esac
11117    
11118     if expr a : '\(a\)' >/dev/null 2>&1; then
11119     as_expr=expr
11120     else
11121     as_expr=false
11122     fi
11123    
11124     rm -f conf$$ conf$$.exe conf$$.file
11125     echo >conf$$.file
11126     if ln -s conf$$.file conf$$ 2>/dev/null; then
11127     # We could just check for DJGPP; but this test a) works b) is more generic
11128     # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
11129     if test -f conf$$.exe; then
11130     # Don't use ln at all; we don't have any links
11131     as_ln_s='cp -p'
11132     else
11133     as_ln_s='ln -s'
11134     fi
11135     elif ln conf$$.file conf$$ 2>/dev/null; then
11136     as_ln_s=ln
11137     else
11138     as_ln_s='cp -p'
11139     fi
11140     rm -f conf$$ conf$$.exe conf$$.file
11141    
11142     if mkdir -p . 2>/dev/null; then
11143     as_mkdir_p=:
11144     else
11145     test -d ./-p && rmdir ./-p
11146     as_mkdir_p=false
11147     fi
11148    
11149     as_executable_p="test -f"
11150    
11151     # Sed expression to map a string onto a valid CPP name.
11152     as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11153    
11154     # Sed expression to map a string onto a valid variable name.
11155     as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11156    
11157    
11158     # IFS
11159     # We need space, tab and new line, in precisely that order.
11160     as_nl='
11161     '
11162     IFS=" $as_nl"
11163    
11164     # CDPATH.
11165     $as_unset CDPATH
11166    
11167     exec 6>&1
11168    
11169     # Open the log real soon, to keep \$[0] and so on meaningful, and to
11170     # report actual input values of CONFIG_FILES etc. instead of their
11171     # values after options handling. Logging --version etc. is OK.
11172     exec 5>>config.log
11173     {
11174     echo
11175     sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11176     ## Running $as_me. ##
11177     _ASBOX
11178     } >&5
11179     cat >&5 <<_CSEOF
11180    
11181     This file was extended by ircd-hybrid $as_me 7.2, which was
11182     generated by GNU Autoconf 2.59. Invocation command line was
11183    
11184     CONFIG_FILES = $CONFIG_FILES
11185     CONFIG_HEADERS = $CONFIG_HEADERS
11186     CONFIG_LINKS = $CONFIG_LINKS
11187     CONFIG_COMMANDS = $CONFIG_COMMANDS
11188     $ $0 $@
11189    
11190     _CSEOF
11191     echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
11192     echo >&5
11193     _ACEOF
11194    
11195     # Files that config.status was made for.
11196     if test -n "$ac_config_files"; then
11197     echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
11198     fi
11199    
11200     if test -n "$ac_config_headers"; then
11201     echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
11202     fi
11203    
11204     if test -n "$ac_config_links"; then
11205     echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
11206     fi
11207    
11208     if test -n "$ac_config_commands"; then
11209     echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
11210     fi
11211    
11212     cat >>$CONFIG_STATUS <<\_ACEOF
11213    
11214     ac_cs_usage="\
11215     \`$as_me' instantiates files from templates according to the
11216     current configuration.
11217    
11218     Usage: $0 [OPTIONS] [FILE]...
11219    
11220     -h, --help print this help, then exit
11221     -V, --version print version number, then exit
11222     -q, --quiet do not print progress messages
11223     -d, --debug don't remove temporary files
11224     --recheck update $as_me by reconfiguring in the same conditions
11225     --file=FILE[:TEMPLATE]
11226     instantiate the configuration file FILE
11227     --header=FILE[:TEMPLATE]
11228     instantiate the configuration header FILE
11229    
11230     Configuration files:
11231     $config_files
11232    
11233     Configuration headers:
11234     $config_headers
11235    
11236     Report bugs to <bug-autoconf@gnu.org>."
11237     _ACEOF
11238    
11239     cat >>$CONFIG_STATUS <<_ACEOF
11240     ac_cs_version="\\
11241     ircd-hybrid config.status 7.2
11242     configured by $0, generated by GNU Autoconf 2.59,
11243     with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
11244    
11245     Copyright (C) 2003 Free Software Foundation, Inc.
11246     This config.status script is free software; the Free Software Foundation
11247     gives unlimited permission to copy, distribute and modify it."
11248     srcdir=$srcdir
11249     INSTALL="$INSTALL"
11250     _ACEOF
11251    
11252     cat >>$CONFIG_STATUS <<\_ACEOF
11253     # If no file are specified by the user, then we need to provide default
11254     # value. By we need to know if files were specified by the user.
11255     ac_need_defaults=:
11256     while test $# != 0
11257     do
11258     case $1 in
11259     --*=*)
11260     ac_option=`expr "x$1" : 'x\([^=]*\)='`
11261     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
11262     ac_shift=:
11263     ;;
11264     -*)
11265     ac_option=$1
11266     ac_optarg=$2
11267     ac_shift=shift
11268     ;;
11269     *) # This is not an option, so the user has probably given explicit
11270     # arguments.
11271     ac_option=$1
11272     ac_need_defaults=false;;
11273     esac
11274    
11275     case $ac_option in
11276     # Handling of the options.
11277     _ACEOF
11278     cat >>$CONFIG_STATUS <<\_ACEOF
11279     -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11280     ac_cs_recheck=: ;;
11281     --version | --vers* | -V )
11282     echo "$ac_cs_version"; exit 0 ;;
11283     --he | --h)
11284     # Conflict between --help and --header
11285     { { echo "$as_me:$LINENO: error: ambiguous option: $1
11286     Try \`$0 --help' for more information." >&5
11287     echo "$as_me: error: ambiguous option: $1
11288     Try \`$0 --help' for more information." >&2;}
11289     { (exit 1); exit 1; }; };;
11290     --help | --hel | -h )
11291     echo "$ac_cs_usage"; exit 0 ;;
11292     --debug | --d* | -d )
11293     debug=: ;;
11294     --file | --fil | --fi | --f )
11295     $ac_shift
11296     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
11297     ac_need_defaults=false;;
11298     --header | --heade | --head | --hea )
11299     $ac_shift
11300     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
11301     ac_need_defaults=false;;
11302     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11303     | -silent | --silent | --silen | --sile | --sil | --si | --s)
11304     ac_cs_silent=: ;;
11305    
11306     # This is an error.
11307     -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
11308     Try \`$0 --help' for more information." >&5
11309     echo "$as_me: error: unrecognized option: $1
11310     Try \`$0 --help' for more information." >&2;}
11311     { (exit 1); exit 1; }; } ;;
11312    
11313     *) ac_config_targets="$ac_config_targets $1" ;;
11314    
11315     esac
11316     shift
11317     done
11318    
11319     ac_configure_extra_args=
11320    
11321     if $ac_cs_silent; then
11322     exec 6>/dev/null
11323     ac_configure_extra_args="$ac_configure_extra_args --silent"
11324     fi
11325    
11326     _ACEOF
11327     cat >>$CONFIG_STATUS <<_ACEOF
11328     if \$ac_cs_recheck; then
11329     echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
11330     exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11331     fi
11332    
11333     _ACEOF
11334    
11335    
11336    
11337    
11338    
11339     cat >>$CONFIG_STATUS <<\_ACEOF
11340     for ac_config_target in $ac_config_targets
11341     do
11342     case "$ac_config_target" in
11343     # Handling of arguments.
11344     "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11345     "etc/Makefile" ) CONFIG_FILES="$CONFIG_FILES etc/Makefile" ;;
11346     "servlink/Makefile" ) CONFIG_FILES="$CONFIG_FILES servlink/Makefile" ;;
11347     "contrib/Makefile" ) CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;;
11348     "contrib/help/Makefile" ) CONFIG_FILES="$CONFIG_FILES contrib/help/Makefile" ;;
11349     "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
11350     "messages/Makefile" ) CONFIG_FILES="$CONFIG_FILES messages/Makefile" ;;
11351     "modules/Makefile" ) CONFIG_FILES="$CONFIG_FILES modules/Makefile" ;;
11352     "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
11353     "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
11354     "help/Makefile" ) CONFIG_FILES="$CONFIG_FILES help/Makefile" ;;
11355     "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
11356     "lib/pcre/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/pcre/Makefile" ;;
11357     "include/setup.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/setup.h" ;;
11358     *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
11359     echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
11360     { (exit 1); exit 1; }; };;
11361     esac
11362     done
11363    
11364     # If the user did not use the arguments to specify the items to instantiate,
11365     # then the envvar interface is used. Set only those that are not.
11366     # We use the long form for the default assignment because of an extremely
11367     # bizarre bug on SunOS 4.1.3.
11368     if $ac_need_defaults; then
11369     test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11370     test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11371     fi
11372    
11373     # Have a temporary directory for convenience. Make it in the build tree
11374     # simply because there is no reason to put it here, and in addition,
11375     # creating and moving files from /tmp can sometimes cause problems.
11376     # Create a temporary directory, and hook for its removal unless debugging.
11377     $debug ||
11378     {
11379     trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
11380     trap '{ (exit 1); exit 1; }' 1 2 13 15
11381     }
11382    
11383     # Create a (secure) tmp directory for tmp files.
11384    
11385     {
11386     tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
11387     test -n "$tmp" && test -d "$tmp"
11388     } ||
11389     {
11390     tmp=./confstat$$-$RANDOM
11391     (umask 077 && mkdir $tmp)
11392     } ||
11393     {
11394     echo "$me: cannot create a temporary directory in ." >&2
11395     { (exit 1); exit 1; }
11396     }
11397    
11398     _ACEOF
11399    
11400     cat >>$CONFIG_STATUS <<_ACEOF
11401    
11402     #
11403     # CONFIG_FILES section.
11404     #
11405    
11406     # No need to generate the scripts if there are no CONFIG_FILES.
11407     # This happens for instance when ./config.status config.h
11408     if test -n "\$CONFIG_FILES"; then
11409     # Protect against being on the right side of a sed subst in config.status.
11410     sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
11411     s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
11412     s,@SHELL@,$SHELL,;t t
11413     s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
11414     s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
11415     s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
11416     s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
11417     s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
11418     s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
11419     s,@exec_prefix@,$exec_prefix,;t t
11420     s,@prefix@,$prefix,;t t
11421     s,@program_transform_name@,$program_transform_name,;t t
11422     s,@bindir@,$bindir,;t t
11423     s,@sbindir@,$sbindir,;t t
11424     s,@libexecdir@,$libexecdir,;t t
11425     s,@datadir@,$datadir,;t t
11426     s,@sysconfdir@,$sysconfdir,;t t
11427     s,@sharedstatedir@,$sharedstatedir,;t t
11428     s,@localstatedir@,$localstatedir,;t t
11429     s,@libdir@,$libdir,;t t
11430     s,@includedir@,$includedir,;t t
11431     s,@oldincludedir@,$oldincludedir,;t t
11432     s,@infodir@,$infodir,;t t
11433     s,@mandir@,$mandir,;t t
11434     s,@build_alias@,$build_alias,;t t
11435     s,@host_alias@,$host_alias,;t t
11436     s,@target_alias@,$target_alias,;t t
11437     s,@DEFS@,$DEFS,;t t
11438     s,@ECHO_C@,$ECHO_C,;t t
11439     s,@ECHO_N@,$ECHO_N,;t t
11440     s,@ECHO_T@,$ECHO_T,;t t
11441     s,@LIBS@,$LIBS,;t t
11442     s,@CC@,$CC,;t t
11443     s,@CFLAGS@,$CFLAGS,;t t
11444     s,@LDFLAGS@,$LDFLAGS,;t t
11445     s,@CPPFLAGS@,$CPPFLAGS,;t t
11446     s,@ac_ct_CC@,$ac_ct_CC,;t t
11447     s,@EXEEXT@,$EXEEXT,;t t
11448     s,@OBJEXT@,$OBJEXT,;t t
11449     s,@MKDEP@,$MKDEP,;t t
11450     s,@MAKEDEPEND@,$MAKEDEPEND,;t t
11451     s,@STDOUT@,$STDOUT,;t t
11452     s,@CPP@,$CPP,;t t
11453     s,@EGREP@,$EGREP,;t t
11454     s,@SET_MAKE@,$SET_MAKE,;t t
11455     s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
11456     s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
11457     s,@INSTALL_DATA@,$INSTALL_DATA,;t t
11458     s,@RM@,$RM,;t t
11459     s,@CP@,$CP,;t t
11460     s,@MV@,$MV,;t t
11461     s,@LN@,$LN,;t t
11462     s,@SED@,$SED,;t t
11463     s,@AR@,$AR,;t t
11464     s,@LD@,$LD,;t t
11465     s,@TEST@,$TEST,;t t
11466     s,@INET_MISC@,$INET_MISC,;t t
11467     s,@CRYPT_C@,$CRYPT_C,;t t
11468     s,@CRYPT_LIB@,$CRYPT_LIB,;t t
11469     s,@SNPRINTF_C@,$SNPRINTF_C,;t t
11470     s,@ENCSPEED@,$ENCSPEED,;t t
11471     s,@ZLIB_LD@,$ZLIB_LD,;t t
11472     s,@SELECT_TYPE@,$SELECT_TYPE,;t t
11473     s,@CLOBBER@,$CLOBBER,;t t
11474     s,@BALLOC_C@,$BALLOC_C,;t t
11475     s,@EXAMPLE_CONF@,$EXAMPLE_CONF,;t t
11476     s,@MODULES_LIBS@,$MODULES_LIBS,;t t
11477     s,@MOD_TARGET@,$MOD_TARGET,;t t
11478     s,@SSL_SRCS_ENABLE@,$SSL_SRCS_ENABLE,;t t
11479     s,@SSL_INCLUDES@,$SSL_INCLUDES,;t t
11480     s,@SSL_LIBS@,$SSL_LIBS,;t t
11481     s,@PICFLAGS@,$PICFLAGS,;t t
11482     s,@IRC_CFLAGS@,$IRC_CFLAGS,;t t
11483     s,@SEDOBJ@,$SEDOBJ,;t t
11484     s,@DYNLINK_C@,$DYNLINK_C,;t t
11485     s,@LIBOBJS@,$LIBOBJS,;t t
11486     s,@LTLIBOBJS@,$LTLIBOBJS,;t t
11487     CEOF
11488    
11489     _ACEOF
11490    
11491     cat >>$CONFIG_STATUS <<\_ACEOF
11492     # Split the substitutions into bite-sized pieces for seds with
11493     # small command number limits, like on Digital OSF/1 and HP-UX.
11494     ac_max_sed_lines=48
11495     ac_sed_frag=1 # Number of current file.
11496     ac_beg=1 # First line for current file.
11497     ac_end=$ac_max_sed_lines # Line after last line for current file.
11498     ac_more_lines=:
11499     ac_sed_cmds=
11500     while $ac_more_lines; do
11501     if test $ac_beg -gt 1; then
11502     sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11503     else
11504     sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11505     fi
11506     if test ! -s $tmp/subs.frag; then
11507     ac_more_lines=false
11508     else
11509     # The purpose of the label and of the branching condition is to
11510     # speed up the sed processing (if there are no `@' at all, there
11511     # is no need to browse any of the substitutions).
11512     # These are the two extra sed commands mentioned above.
11513     (echo ':t
11514     /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
11515     if test -z "$ac_sed_cmds"; then
11516     ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
11517     else
11518     ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
11519     fi
11520     ac_sed_frag=`expr $ac_sed_frag + 1`
11521     ac_beg=$ac_end
11522     ac_end=`expr $ac_end + $ac_max_sed_lines`
11523     fi
11524     done
11525     if test -z "$ac_sed_cmds"; then
11526     ac_sed_cmds=cat
11527     fi
11528     fi # test -n "$CONFIG_FILES"
11529    
11530     _ACEOF
11531     cat >>$CONFIG_STATUS <<\_ACEOF
11532     for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
11533     # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11534     case $ac_file in
11535     - | *:- | *:-:* ) # input from stdin
11536     cat >$tmp/stdin
11537     ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11538     ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11539     *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11540     ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11541     * ) ac_file_in=$ac_file.in ;;
11542     esac
11543    
11544     # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
11545     ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11546     $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11547     X"$ac_file" : 'X\(//\)[^/]' \| \
11548     X"$ac_file" : 'X\(//\)$' \| \
11549     X"$ac_file" : 'X\(/\)' \| \
11550     . : '\(.\)' 2>/dev/null ||
11551     echo X"$ac_file" |
11552     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11553     /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11554     /^X\(\/\/\)$/{ s//\1/; q; }
11555     /^X\(\/\).*/{ s//\1/; q; }
11556     s/.*/./; q'`
11557     { if $as_mkdir_p; then
11558     mkdir -p "$ac_dir"
11559     else
11560     as_dir="$ac_dir"
11561     as_dirs=
11562     while test ! -d "$as_dir"; do
11563     as_dirs="$as_dir $as_dirs"
11564     as_dir=`(dirname "$as_dir") 2>/dev/null ||
11565     $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11566     X"$as_dir" : 'X\(//\)[^/]' \| \
11567     X"$as_dir" : 'X\(//\)$' \| \
11568     X"$as_dir" : 'X\(/\)' \| \
11569     . : '\(.\)' 2>/dev/null ||
11570     echo X"$as_dir" |
11571     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11572     /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11573     /^X\(\/\/\)$/{ s//\1/; q; }
11574     /^X\(\/\).*/{ s//\1/; q; }
11575     s/.*/./; q'`
11576     done
11577     test ! -n "$as_dirs" || mkdir $as_dirs
11578     fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11579     echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11580     { (exit 1); exit 1; }; }; }
11581    
11582     ac_builddir=.
11583    
11584     if test "$ac_dir" != .; then
11585     ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11586     # A "../" for each directory in $ac_dir_suffix.
11587     ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
11588     else
11589     ac_dir_suffix= ac_top_builddir=
11590     fi
11591    
11592     case $srcdir in
11593     .) # No --srcdir option. We are building in place.
11594     ac_srcdir=.
11595     if test -z "$ac_top_builddir"; then
11596     ac_top_srcdir=.
11597     else
11598     ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
11599     fi ;;
11600     [\\/]* | ?:[\\/]* ) # Absolute path.
11601     ac_srcdir=$srcdir$ac_dir_suffix;
11602     ac_top_srcdir=$srcdir ;;
11603     *) # Relative path.
11604     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
11605     ac_top_srcdir=$ac_top_builddir$srcdir ;;
11606     esac
11607    
11608     # Do not use `cd foo && pwd` to compute absolute paths, because
11609     # the directories may not exist.
11610     case `pwd` in
11611     .) ac_abs_builddir="$ac_dir";;
11612     *)
11613     case "$ac_dir" in
11614     .) ac_abs_builddir=`pwd`;;
11615     [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
11616     *) ac_abs_builddir=`pwd`/"$ac_dir";;
11617     esac;;
11618     esac
11619     case $ac_abs_builddir in
11620     .) ac_abs_top_builddir=${ac_top_builddir}.;;
11621     *)
11622     case ${ac_top_builddir}. in
11623     .) ac_abs_top_builddir=$ac_abs_builddir;;
11624     [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
11625     *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
11626     esac;;
11627     esac
11628     case $ac_abs_builddir in
11629     .) ac_abs_srcdir=$ac_srcdir;;
11630     *)
11631     case $ac_srcdir in
11632     .) ac_abs_srcdir=$ac_abs_builddir;;
11633     [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
11634     *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
11635     esac;;
11636     esac
11637     case $ac_abs_builddir in
11638     .) ac_abs_top_srcdir=$ac_top_srcdir;;
11639     *)
11640     case $ac_top_srcdir in
11641     .) ac_abs_top_srcdir=$ac_abs_builddir;;
11642     [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
11643     *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
11644     esac;;
11645     esac
11646    
11647    
11648     case $INSTALL in
11649     [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11650     *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
11651     esac
11652    
11653     if test x"$ac_file" != x-; then
11654     { echo "$as_me:$LINENO: creating $ac_file" >&5
11655     echo "$as_me: creating $ac_file" >&6;}
11656     rm -f "$ac_file"
11657     fi
11658     # Let's still pretend it is `configure' which instantiates (i.e., don't
11659     # use $as_me), people would be surprised to read:
11660     # /* config.h. Generated by config.status. */
11661     if test x"$ac_file" = x-; then
11662     configure_input=
11663     else
11664     configure_input="$ac_file. "
11665     fi
11666     configure_input=$configure_input"Generated from `echo $ac_file_in |
11667     sed 's,.*/,,'` by configure."
11668    
11669     # First look for the input files in the build tree, otherwise in the
11670     # src tree.
11671     ac_file_inputs=`IFS=:
11672     for f in $ac_file_in; do
11673     case $f in
11674     -) echo $tmp/stdin ;;
11675     [\\/$]*)
11676     # Absolute (can't be DOS-style, as IFS=:)
11677     test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11678     echo "$as_me: error: cannot find input file: $f" >&2;}
11679     { (exit 1); exit 1; }; }
11680     echo "$f";;
11681     *) # Relative
11682     if test -f "$f"; then
11683     # Build tree
11684     echo "$f"
11685     elif test -f "$srcdir/$f"; then
11686     # Source tree
11687     echo "$srcdir/$f"
11688     else
11689     # /dev/null tree
11690     { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11691     echo "$as_me: error: cannot find input file: $f" >&2;}
11692     { (exit 1); exit 1; }; }
11693     fi;;
11694     esac
11695     done` || { (exit 1); exit 1; }
11696     _ACEOF
11697     cat >>$CONFIG_STATUS <<_ACEOF
11698     sed "$ac_vpsub
11699     $extrasub
11700     _ACEOF
11701     cat >>$CONFIG_STATUS <<\_ACEOF
11702     :t
11703     /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11704     s,@configure_input@,$configure_input,;t t
11705     s,@srcdir@,$ac_srcdir,;t t
11706     s,@abs_srcdir@,$ac_abs_srcdir,;t t
11707     s,@top_srcdir@,$ac_top_srcdir,;t t
11708     s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
11709     s,@builddir@,$ac_builddir,;t t
11710     s,@abs_builddir@,$ac_abs_builddir,;t t
11711     s,@top_builddir@,$ac_top_builddir,;t t
11712     s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
11713     s,@INSTALL@,$ac_INSTALL,;t t
11714     " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
11715     rm -f $tmp/stdin
11716     if test x"$ac_file" != x-; then
11717     mv $tmp/out $ac_file
11718     else
11719     cat $tmp/out
11720     rm -f $tmp/out
11721     fi
11722    
11723     done
11724     _ACEOF
11725     cat >>$CONFIG_STATUS <<\_ACEOF
11726    
11727     #
11728     # CONFIG_HEADER section.
11729     #
11730    
11731     # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
11732     # NAME is the cpp macro being defined and VALUE is the value it is being given.
11733     #
11734     # ac_d sets the value in "#define NAME VALUE" lines.
11735     ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
11736     ac_dB='[ ].*$,\1#\2'
11737     ac_dC=' '
11738     ac_dD=',;t'
11739     # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
11740     ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
11741     ac_uB='$,\1#\2define\3'
11742     ac_uC=' '
11743     ac_uD=',;t'
11744    
11745     for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
11746     # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11747     case $ac_file in
11748     - | *:- | *:-:* ) # input from stdin
11749     cat >$tmp/stdin
11750     ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11751     ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11752     *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11753     ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11754     * ) ac_file_in=$ac_file.in ;;
11755     esac
11756    
11757     test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
11758     echo "$as_me: creating $ac_file" >&6;}
11759    
11760     # First look for the input files in the build tree, otherwise in the
11761     # src tree.
11762     ac_file_inputs=`IFS=:
11763     for f in $ac_file_in; do
11764     case $f in
11765     -) echo $tmp/stdin ;;
11766     [\\/$]*)
11767     # Absolute (can't be DOS-style, as IFS=:)
11768     test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11769     echo "$as_me: error: cannot find input file: $f" >&2;}
11770     { (exit 1); exit 1; }; }
11771     # Do quote $f, to prevent DOS paths from being IFS'd.
11772     echo "$f";;
11773     *) # Relative
11774     if test -f "$f"; then
11775     # Build tree
11776     echo "$f"
11777     elif test -f "$srcdir/$f"; then
11778     # Source tree
11779     echo "$srcdir/$f"
11780     else
11781     # /dev/null tree
11782     { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11783     echo "$as_me: error: cannot find input file: $f" >&2;}
11784     { (exit 1); exit 1; }; }
11785     fi;;
11786     esac
11787     done` || { (exit 1); exit 1; }
11788     # Remove the trailing spaces.
11789     sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
11790    
11791     _ACEOF
11792    
11793     # Transform confdefs.h into two sed scripts, `conftest.defines' and
11794     # `conftest.undefs', that substitutes the proper values into
11795     # config.h.in to produce config.h. The first handles `#define'
11796     # templates, and the second `#undef' templates.
11797     # And first: Protect against being on the right side of a sed subst in
11798     # config.status. Protect against being in an unquoted here document
11799     # in config.status.
11800     rm -f conftest.defines conftest.undefs
11801     # Using a here document instead of a string reduces the quoting nightmare.
11802     # Putting comments in sed scripts is not portable.
11803     #
11804     # `end' is used to avoid that the second main sed command (meant for
11805     # 0-ary CPP macros) applies to n-ary macro definitions.
11806     # See the Autoconf documentation for `clear'.
11807     cat >confdef2sed.sed <<\_ACEOF
11808     s/[\\&,]/\\&/g
11809     s,[\\$`],\\&,g
11810     t clear
11811     : clear
11812     s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
11813     t end
11814     s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
11815     : end
11816     _ACEOF
11817     # If some macros were called several times there might be several times
11818     # the same #defines, which is useless. Nevertheless, we may not want to
11819     # sort them, since we want the *last* AC-DEFINE to be honored.
11820     uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
11821     sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
11822     rm -f confdef2sed.sed
11823    
11824     # This sed command replaces #undef with comments. This is necessary, for
11825     # example, in the case of _POSIX_SOURCE, which is predefined and required
11826     # on some systems where configure will not decide to define it.
11827     cat >>conftest.undefs <<\_ACEOF
11828     s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
11829     _ACEOF
11830    
11831     # Break up conftest.defines because some shells have a limit on the size
11832     # of here documents, and old seds have small limits too (100 cmds).
11833     echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
11834     echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
11835     echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
11836     echo ' :' >>$CONFIG_STATUS
11837     rm -f conftest.tail
11838     while grep . conftest.defines >/dev/null
11839     do
11840     # Write a limited-size here document to $tmp/defines.sed.
11841     echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
11842     # Speed up: don't consider the non `#define' lines.
11843     echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
11844     # Work around the forget-to-reset-the-flag bug.
11845     echo 't clr' >>$CONFIG_STATUS
11846     echo ': clr' >>$CONFIG_STATUS
11847     sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
11848     echo 'CEOF
11849     sed -f $tmp/defines.sed $tmp/in >$tmp/out
11850     rm -f $tmp/in
11851     mv $tmp/out $tmp/in
11852     ' >>$CONFIG_STATUS
11853     sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
11854     rm -f conftest.defines
11855     mv conftest.tail conftest.defines
11856     done
11857     rm -f conftest.defines
11858     echo ' fi # grep' >>$CONFIG_STATUS
11859     echo >>$CONFIG_STATUS
11860    
11861     # Break up conftest.undefs because some shells have a limit on the size
11862     # of here documents, and old seds have small limits too (100 cmds).
11863     echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
11864     rm -f conftest.tail
11865     while grep . conftest.undefs >/dev/null
11866     do
11867     # Write a limited-size here document to $tmp/undefs.sed.
11868     echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
11869     # Speed up: don't consider the non `#undef'
11870     echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
11871     # Work around the forget-to-reset-the-flag bug.
11872     echo 't clr' >>$CONFIG_STATUS
11873     echo ': clr' >>$CONFIG_STATUS
11874     sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
11875     echo 'CEOF
11876     sed -f $tmp/undefs.sed $tmp/in >$tmp/out
11877     rm -f $tmp/in
11878     mv $tmp/out $tmp/in
11879     ' >>$CONFIG_STATUS
11880     sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
11881     rm -f conftest.undefs
11882     mv conftest.tail conftest.undefs
11883     done
11884     rm -f conftest.undefs
11885    
11886     cat >>$CONFIG_STATUS <<\_ACEOF
11887     # Let's still pretend it is `configure' which instantiates (i.e., don't
11888     # use $as_me), people would be surprised to read:
11889     # /* config.h. Generated by config.status. */
11890     if test x"$ac_file" = x-; then
11891     echo "/* Generated by configure. */" >$tmp/config.h
11892     else
11893     echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
11894     fi
11895     cat $tmp/in >>$tmp/config.h
11896     rm -f $tmp/in
11897     if test x"$ac_file" != x-; then
11898     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
11899     { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
11900     echo "$as_me: $ac_file is unchanged" >&6;}
11901     else
11902     ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11903     $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11904     X"$ac_file" : 'X\(//\)[^/]' \| \
11905     X"$ac_file" : 'X\(//\)$' \| \
11906     X"$ac_file" : 'X\(/\)' \| \
11907     . : '\(.\)' 2>/dev/null ||
11908     echo X"$ac_file" |
11909     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11910     /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11911     /^X\(\/\/\)$/{ s//\1/; q; }
11912     /^X\(\/\).*/{ s//\1/; q; }
11913     s/.*/./; q'`
11914     { if $as_mkdir_p; then
11915     mkdir -p "$ac_dir"
11916     else
11917     as_dir="$ac_dir"
11918     as_dirs=
11919     while test ! -d "$as_dir"; do
11920     as_dirs="$as_dir $as_dirs"
11921     as_dir=`(dirname "$as_dir") 2>/dev/null ||
11922     $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11923     X"$as_dir" : 'X\(//\)[^/]' \| \
11924     X"$as_dir" : 'X\(//\)$' \| \
11925     X"$as_dir" : 'X\(/\)' \| \
11926     . : '\(.\)' 2>/dev/null ||
11927     echo X"$as_dir" |
11928     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11929     /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11930     /^X\(\/\/\)$/{ s//\1/; q; }
11931     /^X\(\/\).*/{ s//\1/; q; }
11932     s/.*/./; q'`
11933     done
11934     test ! -n "$as_dirs" || mkdir $as_dirs
11935     fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11936     echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11937     { (exit 1); exit 1; }; }; }
11938    
11939     rm -f $ac_file
11940     mv $tmp/config.h $ac_file
11941     fi
11942     else
11943     cat $tmp/config.h
11944     rm -f $tmp/config.h
11945     fi
11946     done
11947     _ACEOF
11948    
11949     cat >>$CONFIG_STATUS <<\_ACEOF
11950    
11951     { (exit 0); exit 0; }
11952     _ACEOF
11953     chmod +x $CONFIG_STATUS
11954     ac_clean_files=$ac_clean_files_save
11955    
11956    
11957     # configure is writing to config.log, and then calls config.status.
11958     # config.status does its own redirection, appending to config.log.
11959     # Unfortunately, on DOS this fails, as config.log is still kept open
11960     # by configure, so config.status won't be able to write to it; its
11961     # output is simply discarded. So we exec the FD to /dev/null,
11962     # effectively closing config.log, so it can be properly (re)opened and
11963     # appended to by config.status. When coming back to configure, we
11964     # need to make the FD available again.
11965     if test "$no_create" != yes; then
11966     ac_cs_success=:
11967     ac_config_status_args=
11968     test "$silent" = yes &&
11969     ac_config_status_args="$ac_config_status_args --quiet"
11970     exec 5>/dev/null
11971     $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11972     exec 5>>config.log
11973     # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11974     # would make configure fail if this is the last instruction.
11975     $ac_cs_success || { (exit 1); exit 1; }
11976     fi
11977    
11978    
11979     rm -f src/.depend modules/.depend servlink/.depend contrib/.depend lib/pcre/.depend
11980    
11981    
11982     echo
11983     echo "Compiling $PACKAGE_NAME $PACKAGE_VERSION"
11984     echo
11985    
11986     echo "Installing into: $prefix"
11987    
11988     echo "Ziplinks ................ $zlib"
11989    
11990     if test ! -z "$cf_openssl_ciphers"; then
11991     tmpresult="yes - ${cf_openssl_ciphers}"
11992     else
11993     tmpresult=no
11994     fi
11995    
11996     echo "OpenSSL ................. $tmpresult"
11997    
11998     if test "$shared_modules" = yes; then
11999     tmpresult=shared
12000     else
12001     tmpresult=static
12002     fi
12003    
12004     echo "Modules ................. $tmpresult"
12005     echo "IPv6 support ............ $have_v6"
12006     echo "Net I/O implementation .. $SELECT_TYPE"
12007    
12008     if test "$efnet" = "yes"; then
12009     tmpresult="yes (use example.efnet.conf)"
12010     else
12011     tmpresult="no (use example.conf)"
12012     fi
12013    
12014     echo "EFnet server ............ $tmpresult"
12015     echo "Halfops support ......... $halfops"
12016     echo "Small network ........... $small_net"
12017     echo "G-Line voting ........... $gline_voting"
12018     echo
12019     echo "Configured limits:"
12020     echo "NICKLEN ................. $NICKLEN"
12021     echo "TOPICLEN ................ $TOPICLEN"
12022     echo

Properties

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