IPv6 support (hopefully with fewer future transition pains)
[ircu2.10.12-pk.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
4 #
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization.  ##
10 ## --------------------- ##
11
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14   emulate sh
15   NULLCMD=:
16   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17   # is contrary to our usage.  Disable this feature.
18   alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20   set -o posix
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26   as_unset=unset
27 else
28   as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42   LC_TELEPHONE LC_TIME
43 do
44   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45     eval $as_var=C; export $as_var
46   else
47     $as_unset $as_var
48   fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53   as_expr=expr
54 else
55   as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59   as_basename=basename
60 else
61   as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68          X"$0" : 'X\(//\)$' \| \
69          X"$0" : 'X\(/\)$' \| \
70          .     : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73           /^X\/\(\/\/\)$/{ s//\1/; q; }
74           /^X\/\(\/\).*/{ s//\1/; q; }
75           s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88   echo "#! /bin/sh" >conf$$.sh
89   echo  "exit 0"   >>conf$$.sh
90   chmod +x conf$$.sh
91   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92     PATH_SEPARATOR=';'
93   else
94     PATH_SEPARATOR=:
95   fi
96   rm -f conf$$.sh
97 fi
98
99
100   as_lineno_1=$LINENO
101   as_lineno_2=$LINENO
102   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103   test "x$as_lineno_1" != "x$as_lineno_2" &&
104   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105   # Find who we are.  Look in the path if we contain no path at all
106   # relative or not.
107   case $0 in
108     *[\\/]* ) as_myself=$0 ;;
109     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112   IFS=$as_save_IFS
113   test -z "$as_dir" && as_dir=.
114   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117        ;;
118   esac
119   # We did not find ourselves, most probably we were run as `sh COMMAND'
120   # in which case we are not to be found in the path.
121   if test "x$as_myself" = x; then
122     as_myself=$0
123   fi
124   if test ! -f "$as_myself"; then
125     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126    { (exit 1); exit 1; }; }
127   fi
128   case $CONFIG_SHELL in
129   '')
130     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133   IFS=$as_save_IFS
134   test -z "$as_dir" && as_dir=.
135   for as_base in sh bash ksh sh5; do
136          case $as_dir in
137          /*)
138            if ("$as_dir/$as_base" -c '
139   as_lineno_1=$LINENO
140   as_lineno_2=$LINENO
141   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142   test "x$as_lineno_1" != "x$as_lineno_2" &&
143   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146              CONFIG_SHELL=$as_dir/$as_base
147              export CONFIG_SHELL
148              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149            fi;;
150          esac
151        done
152 done
153 ;;
154   esac
155
156   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157   # uniformly replaced by the line number.  The first 'sed' inserts a
158   # line-number line before each line; the second 'sed' does the real
159   # work.  The second script uses 'N' to pair each line-number line
160   # with the numbered line, and appends trailing '-' during
161   # substitution so that $LINENO is not a special case at line end.
162   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164   sed '=' <$as_myself |
165     sed '
166       N
167       s,$,-,
168       : loop
169       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170       t loop
171       s,-$,,
172       s,^['$as_cr_digits']*\n,,
173     ' >$as_me.lineno &&
174   chmod +x $as_me.lineno ||
175     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176    { (exit 1); exit 1; }; }
177
178   # Don't try to exec as it changes $[0], causing all sort of problems
179   # (the dirname of $[0] is not the place where we might find the
180   # original and so on.  Autoconf is especially sensible to this).
181   . ./$as_me.lineno
182   # Exit status is that of the last command.
183   exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188   *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T='      ' ;;
190   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195   as_expr=expr
196 else
197   as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203   # We could just check for DJGPP; but this test a) works b) is more generic
204   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205   if test -f conf$$.exe; then
206     # Don't use ln at all; we don't have any links
207     as_ln_s='cp -p'
208   else
209     as_ln_s='ln -s'
210   fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212   as_ln_s=ln
213 else
214   as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219   as_mkdir_p=:
220 else
221   test -d ./-p && rmdir ./-p
222   as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS="   $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249 exec 6>&1
250
251 #
252 # Initializations.
253 #
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
261
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete.  It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
266
267 # Identity of this package.
268 PACKAGE_NAME=
269 PACKAGE_TARNAME=
270 PACKAGE_VERSION=
271 PACKAGE_STRING=
272 PACKAGE_BUGREPORT=
273
274 ac_unique_file="ircd/ircd.c"
275 ac_default_prefix=$HOME
276 # Factoring default headers for most tests.
277 ac_includes_default="\
278 #include <stdio.h>
279 #if HAVE_SYS_TYPES_H
280 # include <sys/types.h>
281 #endif
282 #if HAVE_SYS_STAT_H
283 # include <sys/stat.h>
284 #endif
285 #if STDC_HEADERS
286 # include <stdlib.h>
287 # include <stddef.h>
288 #else
289 # if HAVE_STDLIB_H
290 #  include <stdlib.h>
291 # endif
292 #endif
293 #if HAVE_STRING_H
294 # if !STDC_HEADERS && HAVE_MEMORY_H
295 #  include <memory.h>
296 # endif
297 # include <string.h>
298 #endif
299 #if HAVE_STRINGS_H
300 # include <strings.h>
301 #endif
302 #if HAVE_INTTYPES_H
303 # include <inttypes.h>
304 #else
305 # if HAVE_STDINT_H
306 #  include <stdint.h>
307 # endif
308 #endif
309 #if HAVE_UNISTD_H
310 # include <unistd.h>
311 #endif"
312
313 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 build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP AWK SET_MAKE INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S LEX LEXLIB LEX_OUTPUT_ROOT YACC RMPROG SHPROG ENGINE_C INSTALL_RULE SYMLINK IRCDMODE IRCDOWN IRCDGRP DPATH LIBOBJS LTLIBOBJS'
314 ac_subst_files=''
315
316 # Initialize some variables set by options.
317 ac_init_help=
318 ac_init_version=false
319 # The variables have the same names as the options, with
320 # dashes changed to underlines.
321 cache_file=/dev/null
322 exec_prefix=NONE
323 no_create=
324 no_recursion=
325 prefix=NONE
326 program_prefix=NONE
327 program_suffix=NONE
328 program_transform_name=s,x,x,
329 silent=
330 site=
331 srcdir=
332 verbose=
333 x_includes=NONE
334 x_libraries=NONE
335
336 # Installation directory options.
337 # These are left unexpanded so users can "make install exec_prefix=/foo"
338 # and all the variables that are supposed to be based on exec_prefix
339 # by default will actually change.
340 # Use braces instead of parens because sh, perl, etc. also accept them.
341 bindir='${exec_prefix}/bin'
342 sbindir='${exec_prefix}/sbin'
343 libexecdir='${exec_prefix}/libexec'
344 datadir='${prefix}/share'
345 sysconfdir='${prefix}/etc'
346 sharedstatedir='${prefix}/com'
347 localstatedir='${prefix}/var'
348 libdir='${exec_prefix}/lib'
349 includedir='${prefix}/include'
350 oldincludedir='/usr/include'
351 infodir='${prefix}/info'
352 mandir='${prefix}/man'
353
354 ac_prev=
355 for ac_option
356 do
357   # If the previous option needs an argument, assign it.
358   if test -n "$ac_prev"; then
359     eval "$ac_prev=\$ac_option"
360     ac_prev=
361     continue
362   fi
363
364   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365
366   # Accept the important Cygnus configure options, so we can diagnose typos.
367
368   case $ac_option in
369
370   -bindir | --bindir | --bindi | --bind | --bin | --bi)
371     ac_prev=bindir ;;
372   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
373     bindir=$ac_optarg ;;
374
375   -build | --build | --buil | --bui | --bu)
376     ac_prev=build_alias ;;
377   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
378     build_alias=$ac_optarg ;;
379
380   -cache-file | --cache-file | --cache-fil | --cache-fi \
381   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
382     ac_prev=cache_file ;;
383   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
384   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
385     cache_file=$ac_optarg ;;
386
387   --config-cache | -C)
388     cache_file=config.cache ;;
389
390   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
391     ac_prev=datadir ;;
392   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
393   | --da=*)
394     datadir=$ac_optarg ;;
395
396   -disable-* | --disable-*)
397     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
398     # Reject names that are not valid shell variable names.
399     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
400       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
401    { (exit 1); exit 1; }; }
402     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
403     eval "enable_$ac_feature=no" ;;
404
405   -enable-* | --enable-*)
406     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
407     # Reject names that are not valid shell variable names.
408     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
409       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
410    { (exit 1); exit 1; }; }
411     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
412     case $ac_option in
413       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
414       *) ac_optarg=yes ;;
415     esac
416     eval "enable_$ac_feature='$ac_optarg'" ;;
417
418   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
419   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
420   | --exec | --exe | --ex)
421     ac_prev=exec_prefix ;;
422   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
423   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
424   | --exec=* | --exe=* | --ex=*)
425     exec_prefix=$ac_optarg ;;
426
427   -gas | --gas | --ga | --g)
428     # Obsolete; use --with-gas.
429     with_gas=yes ;;
430
431   -help | --help | --hel | --he | -h)
432     ac_init_help=long ;;
433   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
434     ac_init_help=recursive ;;
435   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
436     ac_init_help=short ;;
437
438   -host | --host | --hos | --ho)
439     ac_prev=host_alias ;;
440   -host=* | --host=* | --hos=* | --ho=*)
441     host_alias=$ac_optarg ;;
442
443   -includedir | --includedir | --includedi | --included | --include \
444   | --includ | --inclu | --incl | --inc)
445     ac_prev=includedir ;;
446   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
447   | --includ=* | --inclu=* | --incl=* | --inc=*)
448     includedir=$ac_optarg ;;
449
450   -infodir | --infodir | --infodi | --infod | --info | --inf)
451     ac_prev=infodir ;;
452   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
453     infodir=$ac_optarg ;;
454
455   -libdir | --libdir | --libdi | --libd)
456     ac_prev=libdir ;;
457   -libdir=* | --libdir=* | --libdi=* | --libd=*)
458     libdir=$ac_optarg ;;
459
460   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
461   | --libexe | --libex | --libe)
462     ac_prev=libexecdir ;;
463   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
464   | --libexe=* | --libex=* | --libe=*)
465     libexecdir=$ac_optarg ;;
466
467   -localstatedir | --localstatedir | --localstatedi | --localstated \
468   | --localstate | --localstat | --localsta | --localst \
469   | --locals | --local | --loca | --loc | --lo)
470     ac_prev=localstatedir ;;
471   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
472   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
473   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
474     localstatedir=$ac_optarg ;;
475
476   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
477     ac_prev=mandir ;;
478   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
479     mandir=$ac_optarg ;;
480
481   -nfp | --nfp | --nf)
482     # Obsolete; use --without-fp.
483     with_fp=no ;;
484
485   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
486   | --no-cr | --no-c | -n)
487     no_create=yes ;;
488
489   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
490   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
491     no_recursion=yes ;;
492
493   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
494   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
495   | --oldin | --oldi | --old | --ol | --o)
496     ac_prev=oldincludedir ;;
497   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
498   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
499   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
500     oldincludedir=$ac_optarg ;;
501
502   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
503     ac_prev=prefix ;;
504   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
505     prefix=$ac_optarg ;;
506
507   -program-prefix | --program-prefix | --program-prefi | --program-pref \
508   | --program-pre | --program-pr | --program-p)
509     ac_prev=program_prefix ;;
510   -program-prefix=* | --program-prefix=* | --program-prefi=* \
511   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
512     program_prefix=$ac_optarg ;;
513
514   -program-suffix | --program-suffix | --program-suffi | --program-suff \
515   | --program-suf | --program-su | --program-s)
516     ac_prev=program_suffix ;;
517   -program-suffix=* | --program-suffix=* | --program-suffi=* \
518   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
519     program_suffix=$ac_optarg ;;
520
521   -program-transform-name | --program-transform-name \
522   | --program-transform-nam | --program-transform-na \
523   | --program-transform-n | --program-transform- \
524   | --program-transform | --program-transfor \
525   | --program-transfo | --program-transf \
526   | --program-trans | --program-tran \
527   | --progr-tra | --program-tr | --program-t)
528     ac_prev=program_transform_name ;;
529   -program-transform-name=* | --program-transform-name=* \
530   | --program-transform-nam=* | --program-transform-na=* \
531   | --program-transform-n=* | --program-transform-=* \
532   | --program-transform=* | --program-transfor=* \
533   | --program-transfo=* | --program-transf=* \
534   | --program-trans=* | --program-tran=* \
535   | --progr-tra=* | --program-tr=* | --program-t=*)
536     program_transform_name=$ac_optarg ;;
537
538   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
539   | -silent | --silent | --silen | --sile | --sil)
540     silent=yes ;;
541
542   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
543     ac_prev=sbindir ;;
544   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
545   | --sbi=* | --sb=*)
546     sbindir=$ac_optarg ;;
547
548   -sharedstatedir | --sharedstatedir | --sharedstatedi \
549   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
550   | --sharedst | --shareds | --shared | --share | --shar \
551   | --sha | --sh)
552     ac_prev=sharedstatedir ;;
553   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
554   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
555   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
556   | --sha=* | --sh=*)
557     sharedstatedir=$ac_optarg ;;
558
559   -site | --site | --sit)
560     ac_prev=site ;;
561   -site=* | --site=* | --sit=*)
562     site=$ac_optarg ;;
563
564   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
565     ac_prev=srcdir ;;
566   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
567     srcdir=$ac_optarg ;;
568
569   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
570   | --syscon | --sysco | --sysc | --sys | --sy)
571     ac_prev=sysconfdir ;;
572   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
573   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
574     sysconfdir=$ac_optarg ;;
575
576   -target | --target | --targe | --targ | --tar | --ta | --t)
577     ac_prev=target_alias ;;
578   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
579     target_alias=$ac_optarg ;;
580
581   -v | -verbose | --verbose | --verbos | --verbo | --verb)
582     verbose=yes ;;
583
584   -version | --version | --versio | --versi | --vers | -V)
585     ac_init_version=: ;;
586
587   -with-* | --with-*)
588     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
589     # Reject names that are not valid shell variable names.
590     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
591       { echo "$as_me: error: invalid package name: $ac_package" >&2
592    { (exit 1); exit 1; }; }
593     ac_package=`echo $ac_package| sed 's/-/_/g'`
594     case $ac_option in
595       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
596       *) ac_optarg=yes ;;
597     esac
598     eval "with_$ac_package='$ac_optarg'" ;;
599
600   -without-* | --without-*)
601     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
602     # Reject names that are not valid shell variable names.
603     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
604       { echo "$as_me: error: invalid package name: $ac_package" >&2
605    { (exit 1); exit 1; }; }
606     ac_package=`echo $ac_package | sed 's/-/_/g'`
607     eval "with_$ac_package=no" ;;
608
609   --x)
610     # Obsolete; use --with-x.
611     with_x=yes ;;
612
613   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
614   | --x-incl | --x-inc | --x-in | --x-i)
615     ac_prev=x_includes ;;
616   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
617   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
618     x_includes=$ac_optarg ;;
619
620   -x-libraries | --x-libraries | --x-librarie | --x-librari \
621   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
622     ac_prev=x_libraries ;;
623   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
624   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
625     x_libraries=$ac_optarg ;;
626
627   -*) { echo "$as_me: error: unrecognized option: $ac_option
628 Try \`$0 --help' for more information." >&2
629    { (exit 1); exit 1; }; }
630     ;;
631
632   *=*)
633     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
634     # Reject names that are not valid shell variable names.
635     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
636       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
637    { (exit 1); exit 1; }; }
638     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
639     eval "$ac_envvar='$ac_optarg'"
640     export $ac_envvar ;;
641
642   *)
643     # FIXME: should be removed in autoconf 3.0.
644     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
645     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
646       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
647     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
648     ;;
649
650   esac
651 done
652
653 if test -n "$ac_prev"; then
654   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
655   { echo "$as_me: error: missing argument to $ac_option" >&2
656    { (exit 1); exit 1; }; }
657 fi
658
659 # Be sure to have absolute paths.
660 for ac_var in exec_prefix prefix
661 do
662   eval ac_val=$`echo $ac_var`
663   case $ac_val in
664     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
665     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
666    { (exit 1); exit 1; }; };;
667   esac
668 done
669
670 # Be sure to have absolute paths.
671 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
672               localstatedir libdir includedir oldincludedir infodir mandir
673 do
674   eval ac_val=$`echo $ac_var`
675   case $ac_val in
676     [\\/$]* | ?:[\\/]* ) ;;
677     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
678    { (exit 1); exit 1; }; };;
679   esac
680 done
681
682 # There might be people who depend on the old broken behavior: `$host'
683 # used to hold the argument of --host etc.
684 # FIXME: To remove some day.
685 build=$build_alias
686 host=$host_alias
687 target=$target_alias
688
689 # FIXME: To remove some day.
690 if test "x$host_alias" != x; then
691   if test "x$build_alias" = x; then
692     cross_compiling=maybe
693     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
694     If a cross compiler is detected then cross compile mode will be used." >&2
695   elif test "x$build_alias" != "x$host_alias"; then
696     cross_compiling=yes
697   fi
698 fi
699
700 ac_tool_prefix=
701 test -n "$host_alias" && ac_tool_prefix=$host_alias-
702
703 test "$silent" = yes && exec 6>/dev/null
704
705
706 # Find the source files, if location was not specified.
707 if test -z "$srcdir"; then
708   ac_srcdir_defaulted=yes
709   # Try the directory containing this script, then its parent.
710   ac_confdir=`(dirname "$0") 2>/dev/null ||
711 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
712          X"$0" : 'X\(//\)[^/]' \| \
713          X"$0" : 'X\(//\)$' \| \
714          X"$0" : 'X\(/\)' \| \
715          .     : '\(.\)' 2>/dev/null ||
716 echo X"$0" |
717     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
718           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
719           /^X\(\/\/\)$/{ s//\1/; q; }
720           /^X\(\/\).*/{ s//\1/; q; }
721           s/.*/./; q'`
722   srcdir=$ac_confdir
723   if test ! -r $srcdir/$ac_unique_file; then
724     srcdir=..
725   fi
726 else
727   ac_srcdir_defaulted=no
728 fi
729 if test ! -r $srcdir/$ac_unique_file; then
730   if test "$ac_srcdir_defaulted" = yes; then
731     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
732    { (exit 1); exit 1; }; }
733   else
734     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
735    { (exit 1); exit 1; }; }
736   fi
737 fi
738 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
739   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
740    { (exit 1); exit 1; }; }
741 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
742 ac_env_build_alias_set=${build_alias+set}
743 ac_env_build_alias_value=$build_alias
744 ac_cv_env_build_alias_set=${build_alias+set}
745 ac_cv_env_build_alias_value=$build_alias
746 ac_env_host_alias_set=${host_alias+set}
747 ac_env_host_alias_value=$host_alias
748 ac_cv_env_host_alias_set=${host_alias+set}
749 ac_cv_env_host_alias_value=$host_alias
750 ac_env_target_alias_set=${target_alias+set}
751 ac_env_target_alias_value=$target_alias
752 ac_cv_env_target_alias_set=${target_alias+set}
753 ac_cv_env_target_alias_value=$target_alias
754 ac_env_CC_set=${CC+set}
755 ac_env_CC_value=$CC
756 ac_cv_env_CC_set=${CC+set}
757 ac_cv_env_CC_value=$CC
758 ac_env_CFLAGS_set=${CFLAGS+set}
759 ac_env_CFLAGS_value=$CFLAGS
760 ac_cv_env_CFLAGS_set=${CFLAGS+set}
761 ac_cv_env_CFLAGS_value=$CFLAGS
762 ac_env_LDFLAGS_set=${LDFLAGS+set}
763 ac_env_LDFLAGS_value=$LDFLAGS
764 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
765 ac_cv_env_LDFLAGS_value=$LDFLAGS
766 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
767 ac_env_CPPFLAGS_value=$CPPFLAGS
768 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
769 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
770 ac_env_CPP_set=${CPP+set}
771 ac_env_CPP_value=$CPP
772 ac_cv_env_CPP_set=${CPP+set}
773 ac_cv_env_CPP_value=$CPP
774
775 #
776 # Report the --help message.
777 #
778 if test "$ac_init_help" = "long"; then
779   # Omit some internal or obsolete options to make the list less imposing.
780   # This message is too long to be a string in the A/UX 3.1 sh.
781   cat <<_ACEOF
782 \`configure' configures this package to adapt to many kinds of systems.
783
784 Usage: $0 [OPTION]... [VAR=VALUE]...
785
786 To assign environment variables (e.g., CC, CFLAGS...), specify them as
787 VAR=VALUE.  See below for descriptions of some of the useful variables.
788
789 Defaults for the options are specified in brackets.
790
791 Configuration:
792   -h, --help              display this help and exit
793       --help=short        display options specific to this package
794       --help=recursive    display the short help of all the included packages
795   -V, --version           display version information and exit
796   -q, --quiet, --silent   do not print \`checking...' messages
797       --cache-file=FILE   cache test results in FILE [disabled]
798   -C, --config-cache      alias for \`--cache-file=config.cache'
799   -n, --no-create         do not create output files
800       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
801
802 _ACEOF
803
804   cat <<_ACEOF
805 Installation directories:
806   --prefix=PREFIX         install architecture-independent files in PREFIX
807                           [$ac_default_prefix]
808   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
809                           [PREFIX]
810
811 By default, \`make install' will install all the files in
812 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
813 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
814 for instance \`--prefix=\$HOME'.
815
816 For better control, use the options below.
817
818 Fine tuning of the installation directories:
819   --bindir=DIR           user executables [EPREFIX/bin]
820   --sbindir=DIR          system admin executables [EPREFIX/sbin]
821   --libexecdir=DIR       program executables [EPREFIX/libexec]
822   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
823   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
824   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
825   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
826   --libdir=DIR           object code libraries [EPREFIX/lib]
827   --includedir=DIR       C header files [PREFIX/include]
828   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
829   --infodir=DIR          info documentation [PREFIX/info]
830   --mandir=DIR           man documentation [PREFIX/man]
831 _ACEOF
832
833   cat <<\_ACEOF
834
835 System types:
836   --build=BUILD     configure for building on BUILD [guessed]
837   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
838 _ACEOF
839 fi
840
841 if test -n "$ac_init_help"; then
842
843   cat <<\_ACEOF
844
845 Optional Features:
846   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
847   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
848   --enable-poll           Force poll to be used regardless of whether or not
849                           it is a system call
850   --enable-debug          Turn on debugging mode
851   --disable-asserts       Disable assertion checking
852   --disable-symbols       Disable debugging symbols (remove -g from CFLAGS)
853   --enable-profile        Enable profiling support (add -pg to CFLAGS)
854   --enable-pedantic       Enable pedantic warnings (add -pedantic to CFLAGS)
855   --enable-warnings       Enable warnings (add -Wall to CFLAGS)
856   --disable-inlines       Disable inlining for a few critical functions
857   --disable-devpoll       Disable the /dev/poll-based engine
858   --disable-kqueue        Disable the kqueue-based engine
859   --disable-epoll         Disable the epoll-based engine
860
861 Optional Packages:
862   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
863   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
864   --with-leak-detect          Turn on the leak detector(requires patched boehm)
865   --without-ipv6          disable IPv6 support (default is autodetect)
866   --with-symlink=name     Name to give the symlink; if name is "no," no
867                           symlink will be created.
868   --with-mode=mode        Permissions (in octal) to give the binary
869   --with-owner=owner      Specify owner of the installed binary
870   --with-group=group      Specify group owner of the installed binary
871   --with-domain=domain    Domain name to use in local statistics gathering
872   --with-chroot=dir       Specify that the server will be operated under
873                           a different root directory given by dir.  See
874                           doc/readme.chroot for more information.
875   --with-dpath=dir        Directory for all server data files
876   --with-cpath=file       Set server configuration file
877   --with-lpath=file       Set the debugging log file
878   --with-maxcon=maxcon    Maximum number of connections server will accept
879
880 Some influential environment variables:
881   CC          C compiler command
882   CFLAGS      C compiler flags
883   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
884               nonstandard directory <lib dir>
885   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
886               headers in a nonstandard directory <include dir>
887   CPP         C preprocessor
888
889 Use these variables to override the choices made by `configure' or to help
890 it to find libraries and programs with nonstandard names/locations.
891
892 _ACEOF
893 fi
894
895 if test "$ac_init_help" = "recursive"; then
896   # If there are subdirs, report their specific --help.
897   ac_popdir=`pwd`
898   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
899     test -d $ac_dir || continue
900     ac_builddir=.
901
902 if test "$ac_dir" != .; then
903   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
904   # A "../" for each directory in $ac_dir_suffix.
905   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
906 else
907   ac_dir_suffix= ac_top_builddir=
908 fi
909
910 case $srcdir in
911   .)  # No --srcdir option.  We are building in place.
912     ac_srcdir=.
913     if test -z "$ac_top_builddir"; then
914        ac_top_srcdir=.
915     else
916        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
917     fi ;;
918   [\\/]* | ?:[\\/]* )  # Absolute path.
919     ac_srcdir=$srcdir$ac_dir_suffix;
920     ac_top_srcdir=$srcdir ;;
921   *) # Relative path.
922     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
923     ac_top_srcdir=$ac_top_builddir$srcdir ;;
924 esac
925
926 # Do not use `cd foo && pwd` to compute absolute paths, because
927 # the directories may not exist.
928 case `pwd` in
929 .) ac_abs_builddir="$ac_dir";;
930 *)
931   case "$ac_dir" in
932   .) ac_abs_builddir=`pwd`;;
933   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
934   *) ac_abs_builddir=`pwd`/"$ac_dir";;
935   esac;;
936 esac
937 case $ac_abs_builddir in
938 .) ac_abs_top_builddir=${ac_top_builddir}.;;
939 *)
940   case ${ac_top_builddir}. in
941   .) ac_abs_top_builddir=$ac_abs_builddir;;
942   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
943   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
944   esac;;
945 esac
946 case $ac_abs_builddir in
947 .) ac_abs_srcdir=$ac_srcdir;;
948 *)
949   case $ac_srcdir in
950   .) ac_abs_srcdir=$ac_abs_builddir;;
951   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
952   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
953   esac;;
954 esac
955 case $ac_abs_builddir in
956 .) ac_abs_top_srcdir=$ac_top_srcdir;;
957 *)
958   case $ac_top_srcdir in
959   .) ac_abs_top_srcdir=$ac_abs_builddir;;
960   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
961   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
962   esac;;
963 esac
964
965     cd $ac_dir
966     # Check for guested configure; otherwise get Cygnus style configure.
967     if test -f $ac_srcdir/configure.gnu; then
968       echo
969       $SHELL $ac_srcdir/configure.gnu  --help=recursive
970     elif test -f $ac_srcdir/configure; then
971       echo
972       $SHELL $ac_srcdir/configure  --help=recursive
973     elif test -f $ac_srcdir/configure.ac ||
974            test -f $ac_srcdir/configure.in; then
975       echo
976       $ac_configure --help
977     else
978       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
979     fi
980     cd "$ac_popdir"
981   done
982 fi
983
984 test -n "$ac_init_help" && exit 0
985 if $ac_init_version; then
986   cat <<\_ACEOF
987
988 Copyright (C) 2003 Free Software Foundation, Inc.
989 This configure script is free software; the Free Software Foundation
990 gives unlimited permission to copy, distribute and modify it.
991 _ACEOF
992   exit 0
993 fi
994 exec 5>config.log
995 cat >&5 <<_ACEOF
996 This file contains any messages produced by compilers while
997 running configure, to aid debugging if configure makes a mistake.
998
999 It was created by $as_me, which was
1000 generated by GNU Autoconf 2.59.  Invocation command line was
1001
1002   $ $0 $@
1003
1004 _ACEOF
1005 {
1006 cat <<_ASUNAME
1007 ## --------- ##
1008 ## Platform. ##
1009 ## --------- ##
1010
1011 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1012 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1013 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1014 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1015 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1016
1017 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1018 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1019
1020 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1021 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1022 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1023 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1024 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1025 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1026 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1027
1028 _ASUNAME
1029
1030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1031 for as_dir in $PATH
1032 do
1033   IFS=$as_save_IFS
1034   test -z "$as_dir" && as_dir=.
1035   echo "PATH: $as_dir"
1036 done
1037
1038 } >&5
1039
1040 cat >&5 <<_ACEOF
1041
1042
1043 ## ----------- ##
1044 ## Core tests. ##
1045 ## ----------- ##
1046
1047 _ACEOF
1048
1049
1050 # Keep a trace of the command line.
1051 # Strip out --no-create and --no-recursion so they do not pile up.
1052 # Strip out --silent because we don't want to record it for future runs.
1053 # Also quote any args containing shell meta-characters.
1054 # Make two passes to allow for proper duplicate-argument suppression.
1055 ac_configure_args=
1056 ac_configure_args0=
1057 ac_configure_args1=
1058 ac_sep=
1059 ac_must_keep_next=false
1060 for ac_pass in 1 2
1061 do
1062   for ac_arg
1063   do
1064     case $ac_arg in
1065     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1066     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1067     | -silent | --silent | --silen | --sile | --sil)
1068       continue ;;
1069     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1070       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1071     esac
1072     case $ac_pass in
1073     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1074     2)
1075       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1076       if test $ac_must_keep_next = true; then
1077         ac_must_keep_next=false # Got value, back to normal.
1078       else
1079         case $ac_arg in
1080           *=* | --config-cache | -C | -disable-* | --disable-* \
1081           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1082           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1083           | -with-* | --with-* | -without-* | --without-* | --x)
1084             case "$ac_configure_args0 " in
1085               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1086             esac
1087             ;;
1088           -* ) ac_must_keep_next=true ;;
1089         esac
1090       fi
1091       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1092       # Get rid of the leading space.
1093       ac_sep=" "
1094       ;;
1095     esac
1096   done
1097 done
1098 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1099 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1100
1101 # When interrupted or exit'd, cleanup temporary files, and complete
1102 # config.log.  We remove comments because anyway the quotes in there
1103 # would cause problems or look ugly.
1104 # WARNING: Be sure not to use single quotes in there, as some shells,
1105 # such as our DU 5.0 friend, will then `close' the trap.
1106 trap 'exit_status=$?
1107   # Save into config.log some information that might help in debugging.
1108   {
1109     echo
1110
1111     cat <<\_ASBOX
1112 ## ---------------- ##
1113 ## Cache variables. ##
1114 ## ---------------- ##
1115 _ASBOX
1116     echo
1117     # The following way of writing the cache mishandles newlines in values,
1118 {
1119   (set) 2>&1 |
1120     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1121     *ac_space=\ *)
1122       sed -n \
1123         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1124           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1125       ;;
1126     *)
1127       sed -n \
1128         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1129       ;;
1130     esac;
1131 }
1132     echo
1133
1134     cat <<\_ASBOX
1135 ## ----------------- ##
1136 ## Output variables. ##
1137 ## ----------------- ##
1138 _ASBOX
1139     echo
1140     for ac_var in $ac_subst_vars
1141     do
1142       eval ac_val=$`echo $ac_var`
1143       echo "$ac_var='"'"'$ac_val'"'"'"
1144     done | sort
1145     echo
1146
1147     if test -n "$ac_subst_files"; then
1148       cat <<\_ASBOX
1149 ## ------------- ##
1150 ## Output files. ##
1151 ## ------------- ##
1152 _ASBOX
1153       echo
1154       for ac_var in $ac_subst_files
1155       do
1156         eval ac_val=$`echo $ac_var`
1157         echo "$ac_var='"'"'$ac_val'"'"'"
1158       done | sort
1159       echo
1160     fi
1161
1162     if test -s confdefs.h; then
1163       cat <<\_ASBOX
1164 ## ----------- ##
1165 ## confdefs.h. ##
1166 ## ----------- ##
1167 _ASBOX
1168       echo
1169       sed "/^$/d" confdefs.h | sort
1170       echo
1171     fi
1172     test "$ac_signal" != 0 &&
1173       echo "$as_me: caught signal $ac_signal"
1174     echo "$as_me: exit $exit_status"
1175   } >&5
1176   rm -f core *.core &&
1177   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1178     exit $exit_status
1179      ' 0
1180 for ac_signal in 1 2 13 15; do
1181   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1182 done
1183 ac_signal=0
1184
1185 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1186 rm -rf conftest* confdefs.h
1187 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1188 echo >confdefs.h
1189
1190 # Predefined preprocessor variables.
1191
1192 cat >>confdefs.h <<_ACEOF
1193 #define PACKAGE_NAME "$PACKAGE_NAME"
1194 _ACEOF
1195
1196
1197 cat >>confdefs.h <<_ACEOF
1198 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1199 _ACEOF
1200
1201
1202 cat >>confdefs.h <<_ACEOF
1203 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1204 _ACEOF
1205
1206
1207 cat >>confdefs.h <<_ACEOF
1208 #define PACKAGE_STRING "$PACKAGE_STRING"
1209 _ACEOF
1210
1211
1212 cat >>confdefs.h <<_ACEOF
1213 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1214 _ACEOF
1215
1216
1217 # Let the site file select an alternate cache file if it wants to.
1218 # Prefer explicitly selected file to automatically selected ones.
1219 if test -z "$CONFIG_SITE"; then
1220   if test "x$prefix" != xNONE; then
1221     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1222   else
1223     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1224   fi
1225 fi
1226 for ac_site_file in $CONFIG_SITE; do
1227   if test -r "$ac_site_file"; then
1228     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1229 echo "$as_me: loading site script $ac_site_file" >&6;}
1230     sed 's/^/| /' "$ac_site_file" >&5
1231     . "$ac_site_file"
1232   fi
1233 done
1234
1235 if test -r "$cache_file"; then
1236   # Some versions of bash will fail to source /dev/null (special
1237   # files actually), so we avoid doing that.
1238   if test -f "$cache_file"; then
1239     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1240 echo "$as_me: loading cache $cache_file" >&6;}
1241     case $cache_file in
1242       [\\/]* | ?:[\\/]* ) . $cache_file;;
1243       *)                      . ./$cache_file;;
1244     esac
1245   fi
1246 else
1247   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1248 echo "$as_me: creating cache $cache_file" >&6;}
1249   >$cache_file
1250 fi
1251
1252 # Check that the precious variables saved in the cache have kept the same
1253 # value.
1254 ac_cache_corrupted=false
1255 for ac_var in `(set) 2>&1 |
1256                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1257   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1258   eval ac_new_set=\$ac_env_${ac_var}_set
1259   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1260   eval ac_new_val="\$ac_env_${ac_var}_value"
1261   case $ac_old_set,$ac_new_set in
1262     set,)
1263       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1264 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1265       ac_cache_corrupted=: ;;
1266     ,set)
1267       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1268 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1269       ac_cache_corrupted=: ;;
1270     ,);;
1271     *)
1272       if test "x$ac_old_val" != "x$ac_new_val"; then
1273         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1274 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1275         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1276 echo "$as_me:   former value:  $ac_old_val" >&2;}
1277         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1278 echo "$as_me:   current value: $ac_new_val" >&2;}
1279         ac_cache_corrupted=:
1280       fi;;
1281   esac
1282   # Pass precious variables to config.status.
1283   if test "$ac_new_set" = set; then
1284     case $ac_new_val in
1285     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1286       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1287     *) ac_arg=$ac_var=$ac_new_val ;;
1288     esac
1289     case " $ac_configure_args " in
1290       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1291       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1292     esac
1293   fi
1294 done
1295 if $ac_cache_corrupted; then
1296   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1297 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1298   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1299 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1300    { (exit 1); exit 1; }; }
1301 fi
1302
1303 ac_ext=c
1304 ac_cpp='$CPP $CPPFLAGS'
1305 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1306 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1307 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329 echo "$as_me:$LINENO: checking for installation prefix" >&5
1330 echo $ECHO_N "checking for installation prefix... $ECHO_C" >&6
1331 if test "${unet_cv_prefix+set}" = set; then
1332   echo $ECHO_N "(cached) $ECHO_C" >&6
1333 else
1334   unet_cv_prefix=$HOME
1335 fi
1336
1337 if test x"$prefix" != xNONE; then
1338     unet_cv_prefix=$prefix
1339 fi
1340 echo "$as_me:$LINENO: result: $unet_cv_prefix" >&5
1341 echo "${ECHO_T}$unet_cv_prefix" >&6
1342 ac_default_prefix=$unet_cv_prefix
1343
1344           ac_config_headers="$ac_config_headers config.h"
1345
1346
1347
1348
1349 ac_aux_dir=
1350 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1351   if test -f $ac_dir/install-sh; then
1352     ac_aux_dir=$ac_dir
1353     ac_install_sh="$ac_aux_dir/install-sh -c"
1354     break
1355   elif test -f $ac_dir/install.sh; then
1356     ac_aux_dir=$ac_dir
1357     ac_install_sh="$ac_aux_dir/install.sh -c"
1358     break
1359   elif test -f $ac_dir/shtool; then
1360     ac_aux_dir=$ac_dir
1361     ac_install_sh="$ac_aux_dir/shtool install -c"
1362     break
1363   fi
1364 done
1365 if test -z "$ac_aux_dir"; then
1366   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1367 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1368    { (exit 1); exit 1; }; }
1369 fi
1370 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1371 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1372 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1373
1374 # Make sure we can run config.sub.
1375 $ac_config_sub sun4 >/dev/null 2>&1 ||
1376   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1377 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1378    { (exit 1); exit 1; }; }
1379
1380 echo "$as_me:$LINENO: checking build system type" >&5
1381 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1382 if test "${ac_cv_build+set}" = set; then
1383   echo $ECHO_N "(cached) $ECHO_C" >&6
1384 else
1385   ac_cv_build_alias=$build_alias
1386 test -z "$ac_cv_build_alias" &&
1387   ac_cv_build_alias=`$ac_config_guess`
1388 test -z "$ac_cv_build_alias" &&
1389   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1390 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1391    { (exit 1); exit 1; }; }
1392 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1393   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1394 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1395    { (exit 1); exit 1; }; }
1396
1397 fi
1398 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1399 echo "${ECHO_T}$ac_cv_build" >&6
1400 build=$ac_cv_build
1401 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1402 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1403 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1404
1405
1406 echo "$as_me:$LINENO: checking host system type" >&5
1407 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1408 if test "${ac_cv_host+set}" = set; then
1409   echo $ECHO_N "(cached) $ECHO_C" >&6
1410 else
1411   ac_cv_host_alias=$host_alias
1412 test -z "$ac_cv_host_alias" &&
1413   ac_cv_host_alias=$ac_cv_build_alias
1414 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1415   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1416 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1417    { (exit 1); exit 1; }; }
1418
1419 fi
1420 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1421 echo "${ECHO_T}$ac_cv_host" >&6
1422 host=$ac_cv_host
1423 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1424 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1425 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1426
1427
1428
1429 ac_ext=c
1430 ac_cpp='$CPP $CPPFLAGS'
1431 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1432 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1433 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1434 if test -n "$ac_tool_prefix"; then
1435   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1436 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1437 echo "$as_me:$LINENO: checking for $ac_word" >&5
1438 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1439 if test "${ac_cv_prog_CC+set}" = set; then
1440   echo $ECHO_N "(cached) $ECHO_C" >&6
1441 else
1442   if test -n "$CC"; then
1443   ac_cv_prog_CC="$CC" # Let the user override the test.
1444 else
1445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1446 for as_dir in $PATH
1447 do
1448   IFS=$as_save_IFS
1449   test -z "$as_dir" && as_dir=.
1450   for ac_exec_ext in '' $ac_executable_extensions; do
1451   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1452     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1453     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1454     break 2
1455   fi
1456 done
1457 done
1458
1459 fi
1460 fi
1461 CC=$ac_cv_prog_CC
1462 if test -n "$CC"; then
1463   echo "$as_me:$LINENO: result: $CC" >&5
1464 echo "${ECHO_T}$CC" >&6
1465 else
1466   echo "$as_me:$LINENO: result: no" >&5
1467 echo "${ECHO_T}no" >&6
1468 fi
1469
1470 fi
1471 if test -z "$ac_cv_prog_CC"; then
1472   ac_ct_CC=$CC
1473   # Extract the first word of "gcc", so it can be a program name with args.
1474 set dummy gcc; ac_word=$2
1475 echo "$as_me:$LINENO: checking for $ac_word" >&5
1476 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1477 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1478   echo $ECHO_N "(cached) $ECHO_C" >&6
1479 else
1480   if test -n "$ac_ct_CC"; then
1481   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1482 else
1483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1484 for as_dir in $PATH
1485 do
1486   IFS=$as_save_IFS
1487   test -z "$as_dir" && as_dir=.
1488   for ac_exec_ext in '' $ac_executable_extensions; do
1489   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1490     ac_cv_prog_ac_ct_CC="gcc"
1491     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1492     break 2
1493   fi
1494 done
1495 done
1496
1497 fi
1498 fi
1499 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1500 if test -n "$ac_ct_CC"; then
1501   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1502 echo "${ECHO_T}$ac_ct_CC" >&6
1503 else
1504   echo "$as_me:$LINENO: result: no" >&5
1505 echo "${ECHO_T}no" >&6
1506 fi
1507
1508   CC=$ac_ct_CC
1509 else
1510   CC="$ac_cv_prog_CC"
1511 fi
1512
1513 if test -z "$CC"; then
1514   if test -n "$ac_tool_prefix"; then
1515   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1516 set dummy ${ac_tool_prefix}cc; ac_word=$2
1517 echo "$as_me:$LINENO: checking for $ac_word" >&5
1518 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1519 if test "${ac_cv_prog_CC+set}" = set; then
1520   echo $ECHO_N "(cached) $ECHO_C" >&6
1521 else
1522   if test -n "$CC"; then
1523   ac_cv_prog_CC="$CC" # Let the user override the test.
1524 else
1525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1526 for as_dir in $PATH
1527 do
1528   IFS=$as_save_IFS
1529   test -z "$as_dir" && as_dir=.
1530   for ac_exec_ext in '' $ac_executable_extensions; do
1531   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1532     ac_cv_prog_CC="${ac_tool_prefix}cc"
1533     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1534     break 2
1535   fi
1536 done
1537 done
1538
1539 fi
1540 fi
1541 CC=$ac_cv_prog_CC
1542 if test -n "$CC"; then
1543   echo "$as_me:$LINENO: result: $CC" >&5
1544 echo "${ECHO_T}$CC" >&6
1545 else
1546   echo "$as_me:$LINENO: result: no" >&5
1547 echo "${ECHO_T}no" >&6
1548 fi
1549
1550 fi
1551 if test -z "$ac_cv_prog_CC"; then
1552   ac_ct_CC=$CC
1553   # Extract the first word of "cc", so it can be a program name with args.
1554 set dummy cc; ac_word=$2
1555 echo "$as_me:$LINENO: checking for $ac_word" >&5
1556 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1557 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1558   echo $ECHO_N "(cached) $ECHO_C" >&6
1559 else
1560   if test -n "$ac_ct_CC"; then
1561   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1562 else
1563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1564 for as_dir in $PATH
1565 do
1566   IFS=$as_save_IFS
1567   test -z "$as_dir" && as_dir=.
1568   for ac_exec_ext in '' $ac_executable_extensions; do
1569   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1570     ac_cv_prog_ac_ct_CC="cc"
1571     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1572     break 2
1573   fi
1574 done
1575 done
1576
1577 fi
1578 fi
1579 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1580 if test -n "$ac_ct_CC"; then
1581   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1582 echo "${ECHO_T}$ac_ct_CC" >&6
1583 else
1584   echo "$as_me:$LINENO: result: no" >&5
1585 echo "${ECHO_T}no" >&6
1586 fi
1587
1588   CC=$ac_ct_CC
1589 else
1590   CC="$ac_cv_prog_CC"
1591 fi
1592
1593 fi
1594 if test -z "$CC"; then
1595   # Extract the first word of "cc", so it can be a program name with args.
1596 set dummy cc; ac_word=$2
1597 echo "$as_me:$LINENO: checking for $ac_word" >&5
1598 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1599 if test "${ac_cv_prog_CC+set}" = set; then
1600   echo $ECHO_N "(cached) $ECHO_C" >&6
1601 else
1602   if test -n "$CC"; then
1603   ac_cv_prog_CC="$CC" # Let the user override the test.
1604 else
1605   ac_prog_rejected=no
1606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1607 for as_dir in $PATH
1608 do
1609   IFS=$as_save_IFS
1610   test -z "$as_dir" && as_dir=.
1611   for ac_exec_ext in '' $ac_executable_extensions; do
1612   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1613     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1614        ac_prog_rejected=yes
1615        continue
1616      fi
1617     ac_cv_prog_CC="cc"
1618     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1619     break 2
1620   fi
1621 done
1622 done
1623
1624 if test $ac_prog_rejected = yes; then
1625   # We found a bogon in the path, so make sure we never use it.
1626   set dummy $ac_cv_prog_CC
1627   shift
1628   if test $# != 0; then
1629     # We chose a different compiler from the bogus one.
1630     # However, it has the same basename, so the bogon will be chosen
1631     # first if we set CC to just the basename; use the full file name.
1632     shift
1633     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1634   fi
1635 fi
1636 fi
1637 fi
1638 CC=$ac_cv_prog_CC
1639 if test -n "$CC"; then
1640   echo "$as_me:$LINENO: result: $CC" >&5
1641 echo "${ECHO_T}$CC" >&6
1642 else
1643   echo "$as_me:$LINENO: result: no" >&5
1644 echo "${ECHO_T}no" >&6
1645 fi
1646
1647 fi
1648 if test -z "$CC"; then
1649   if test -n "$ac_tool_prefix"; then
1650   for ac_prog in cl
1651   do
1652     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1653 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1654 echo "$as_me:$LINENO: checking for $ac_word" >&5
1655 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1656 if test "${ac_cv_prog_CC+set}" = set; then
1657   echo $ECHO_N "(cached) $ECHO_C" >&6
1658 else
1659   if test -n "$CC"; then
1660   ac_cv_prog_CC="$CC" # Let the user override the test.
1661 else
1662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1663 for as_dir in $PATH
1664 do
1665   IFS=$as_save_IFS
1666   test -z "$as_dir" && as_dir=.
1667   for ac_exec_ext in '' $ac_executable_extensions; do
1668   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1669     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1670     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1671     break 2
1672   fi
1673 done
1674 done
1675
1676 fi
1677 fi
1678 CC=$ac_cv_prog_CC
1679 if test -n "$CC"; then
1680   echo "$as_me:$LINENO: result: $CC" >&5
1681 echo "${ECHO_T}$CC" >&6
1682 else
1683   echo "$as_me:$LINENO: result: no" >&5
1684 echo "${ECHO_T}no" >&6
1685 fi
1686
1687     test -n "$CC" && break
1688   done
1689 fi
1690 if test -z "$CC"; then
1691   ac_ct_CC=$CC
1692   for ac_prog in cl
1693 do
1694   # Extract the first word of "$ac_prog", so it can be a program name with args.
1695 set dummy $ac_prog; ac_word=$2
1696 echo "$as_me:$LINENO: checking for $ac_word" >&5
1697 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1698 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1699   echo $ECHO_N "(cached) $ECHO_C" >&6
1700 else
1701   if test -n "$ac_ct_CC"; then
1702   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1703 else
1704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1705 for as_dir in $PATH
1706 do
1707   IFS=$as_save_IFS
1708   test -z "$as_dir" && as_dir=.
1709   for ac_exec_ext in '' $ac_executable_extensions; do
1710   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1711     ac_cv_prog_ac_ct_CC="$ac_prog"
1712     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1713     break 2
1714   fi
1715 done
1716 done
1717
1718 fi
1719 fi
1720 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1721 if test -n "$ac_ct_CC"; then
1722   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1723 echo "${ECHO_T}$ac_ct_CC" >&6
1724 else
1725   echo "$as_me:$LINENO: result: no" >&5
1726 echo "${ECHO_T}no" >&6
1727 fi
1728
1729   test -n "$ac_ct_CC" && break
1730 done
1731
1732   CC=$ac_ct_CC
1733 fi
1734
1735 fi
1736
1737
1738 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1739 See \`config.log' for more details." >&5
1740 echo "$as_me: error: no acceptable C compiler found in \$PATH
1741 See \`config.log' for more details." >&2;}
1742    { (exit 1); exit 1; }; }
1743
1744 # Provide some information about the compiler.
1745 echo "$as_me:$LINENO:" \
1746      "checking for C compiler version" >&5
1747 ac_compiler=`set X $ac_compile; echo $2`
1748 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1749   (eval $ac_compiler --version </dev/null >&5) 2>&5
1750   ac_status=$?
1751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1752   (exit $ac_status); }
1753 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1754   (eval $ac_compiler -v </dev/null >&5) 2>&5
1755   ac_status=$?
1756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1757   (exit $ac_status); }
1758 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1759   (eval $ac_compiler -V </dev/null >&5) 2>&5
1760   ac_status=$?
1761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1762   (exit $ac_status); }
1763
1764 cat >conftest.$ac_ext <<_ACEOF
1765 /* confdefs.h.  */
1766 _ACEOF
1767 cat confdefs.h >>conftest.$ac_ext
1768 cat >>conftest.$ac_ext <<_ACEOF
1769 /* end confdefs.h.  */
1770
1771 int
1772 main ()
1773 {
1774
1775   ;
1776   return 0;
1777 }
1778 _ACEOF
1779 ac_clean_files_save=$ac_clean_files
1780 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1781 # Try to create an executable without -o first, disregard a.out.
1782 # It will help us diagnose broken compilers, and finding out an intuition
1783 # of exeext.
1784 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1785 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1786 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1787 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1788   (eval $ac_link_default) 2>&5
1789   ac_status=$?
1790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1791   (exit $ac_status); }; then
1792   # Find the output, starting from the most likely.  This scheme is
1793 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1794 # resort.
1795
1796 # Be careful to initialize this variable, since it used to be cached.
1797 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1798 ac_cv_exeext=
1799 # b.out is created by i960 compilers.
1800 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1801 do
1802   test -f "$ac_file" || continue
1803   case $ac_file in
1804     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1805         ;;
1806     conftest.$ac_ext )
1807         # This is the source file.
1808         ;;
1809     [ab].out )
1810         # We found the default executable, but exeext='' is most
1811         # certainly right.
1812         break;;
1813     *.* )
1814         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1815         # FIXME: I believe we export ac_cv_exeext for Libtool,
1816         # but it would be cool to find out if it's true.  Does anybody
1817         # maintain Libtool? --akim.
1818         export ac_cv_exeext
1819         break;;
1820     * )
1821         break;;
1822   esac
1823 done
1824 else
1825   echo "$as_me: failed program was:" >&5
1826 sed 's/^/| /' conftest.$ac_ext >&5
1827
1828 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1829 See \`config.log' for more details." >&5
1830 echo "$as_me: error: C compiler cannot create executables
1831 See \`config.log' for more details." >&2;}
1832    { (exit 77); exit 77; }; }
1833 fi
1834
1835 ac_exeext=$ac_cv_exeext
1836 echo "$as_me:$LINENO: result: $ac_file" >&5
1837 echo "${ECHO_T}$ac_file" >&6
1838
1839 # Check the compiler produces executables we can run.  If not, either
1840 # the compiler is broken, or we cross compile.
1841 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1842 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1843 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1844 # If not cross compiling, check that we can run a simple program.
1845 if test "$cross_compiling" != yes; then
1846   if { ac_try='./$ac_file'
1847   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1848   (eval $ac_try) 2>&5
1849   ac_status=$?
1850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1851   (exit $ac_status); }; }; then
1852     cross_compiling=no
1853   else
1854     if test "$cross_compiling" = maybe; then
1855         cross_compiling=yes
1856     else
1857         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1858 If you meant to cross compile, use \`--host'.
1859 See \`config.log' for more details." >&5
1860 echo "$as_me: error: cannot run C compiled programs.
1861 If you meant to cross compile, use \`--host'.
1862 See \`config.log' for more details." >&2;}
1863    { (exit 1); exit 1; }; }
1864     fi
1865   fi
1866 fi
1867 echo "$as_me:$LINENO: result: yes" >&5
1868 echo "${ECHO_T}yes" >&6
1869
1870 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1871 ac_clean_files=$ac_clean_files_save
1872 # Check the compiler produces executables we can run.  If not, either
1873 # the compiler is broken, or we cross compile.
1874 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1875 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1876 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1877 echo "${ECHO_T}$cross_compiling" >&6
1878
1879 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1880 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1881 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1882   (eval $ac_link) 2>&5
1883   ac_status=$?
1884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1885   (exit $ac_status); }; then
1886   # If both `conftest.exe' and `conftest' are `present' (well, observable)
1887 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1888 # work properly (i.e., refer to `conftest.exe'), while it won't with
1889 # `rm'.
1890 for ac_file in conftest.exe conftest conftest.*; do
1891   test -f "$ac_file" || continue
1892   case $ac_file in
1893     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1894     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1895           export ac_cv_exeext
1896           break;;
1897     * ) break;;
1898   esac
1899 done
1900 else
1901   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1902 See \`config.log' for more details." >&5
1903 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1904 See \`config.log' for more details." >&2;}
1905    { (exit 1); exit 1; }; }
1906 fi
1907
1908 rm -f conftest$ac_cv_exeext
1909 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1910 echo "${ECHO_T}$ac_cv_exeext" >&6
1911
1912 rm -f conftest.$ac_ext
1913 EXEEXT=$ac_cv_exeext
1914 ac_exeext=$EXEEXT
1915 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1916 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1917 if test "${ac_cv_objext+set}" = set; then
1918   echo $ECHO_N "(cached) $ECHO_C" >&6
1919 else
1920   cat >conftest.$ac_ext <<_ACEOF
1921 /* confdefs.h.  */
1922 _ACEOF
1923 cat confdefs.h >>conftest.$ac_ext
1924 cat >>conftest.$ac_ext <<_ACEOF
1925 /* end confdefs.h.  */
1926
1927 int
1928 main ()
1929 {
1930
1931   ;
1932   return 0;
1933 }
1934 _ACEOF
1935 rm -f conftest.o conftest.obj
1936 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1937   (eval $ac_compile) 2>&5
1938   ac_status=$?
1939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1940   (exit $ac_status); }; then
1941   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1942   case $ac_file in
1943     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1944     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1945        break;;
1946   esac
1947 done
1948 else
1949   echo "$as_me: failed program was:" >&5
1950 sed 's/^/| /' conftest.$ac_ext >&5
1951
1952 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1953 See \`config.log' for more details." >&5
1954 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1955 See \`config.log' for more details." >&2;}
1956    { (exit 1); exit 1; }; }
1957 fi
1958
1959 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1960 fi
1961 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1962 echo "${ECHO_T}$ac_cv_objext" >&6
1963 OBJEXT=$ac_cv_objext
1964 ac_objext=$OBJEXT
1965 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1966 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1967 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1968   echo $ECHO_N "(cached) $ECHO_C" >&6
1969 else
1970   cat >conftest.$ac_ext <<_ACEOF
1971 /* confdefs.h.  */
1972 _ACEOF
1973 cat confdefs.h >>conftest.$ac_ext
1974 cat >>conftest.$ac_ext <<_ACEOF
1975 /* end confdefs.h.  */
1976
1977 int
1978 main ()
1979 {
1980 #ifndef __GNUC__
1981        choke me
1982 #endif
1983
1984   ;
1985   return 0;
1986 }
1987 _ACEOF
1988 rm -f conftest.$ac_objext
1989 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1990   (eval $ac_compile) 2>conftest.er1
1991   ac_status=$?
1992   grep -v '^ *+' conftest.er1 >conftest.err
1993   rm -f conftest.er1
1994   cat conftest.err >&5
1995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1996   (exit $ac_status); } &&
1997          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
1998   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1999   (eval $ac_try) 2>&5
2000   ac_status=$?
2001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2002   (exit $ac_status); }; } &&
2003          { ac_try='test -s conftest.$ac_objext'
2004   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2005   (eval $ac_try) 2>&5
2006   ac_status=$?
2007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2008   (exit $ac_status); }; }; then
2009   ac_compiler_gnu=yes
2010 else
2011   echo "$as_me: failed program was:" >&5
2012 sed 's/^/| /' conftest.$ac_ext >&5
2013
2014 ac_compiler_gnu=no
2015 fi
2016 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2017 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2018
2019 fi
2020 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2021 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2022 GCC=`test $ac_compiler_gnu = yes && echo yes`
2023 ac_test_CFLAGS=${CFLAGS+set}
2024 ac_save_CFLAGS=$CFLAGS
2025 CFLAGS="-g"
2026 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2027 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2028 if test "${ac_cv_prog_cc_g+set}" = set; then
2029   echo $ECHO_N "(cached) $ECHO_C" >&6
2030 else
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
2038 int
2039 main ()
2040 {
2041
2042   ;
2043   return 0;
2044 }
2045 _ACEOF
2046 rm -f conftest.$ac_objext
2047 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2048   (eval $ac_compile) 2>conftest.er1
2049   ac_status=$?
2050   grep -v '^ *+' conftest.er1 >conftest.err
2051   rm -f conftest.er1
2052   cat conftest.err >&5
2053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2054   (exit $ac_status); } &&
2055          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2056   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2057   (eval $ac_try) 2>&5
2058   ac_status=$?
2059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2060   (exit $ac_status); }; } &&
2061          { ac_try='test -s conftest.$ac_objext'
2062   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2063   (eval $ac_try) 2>&5
2064   ac_status=$?
2065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2066   (exit $ac_status); }; }; then
2067   ac_cv_prog_cc_g=yes
2068 else
2069   echo "$as_me: failed program was:" >&5
2070 sed 's/^/| /' conftest.$ac_ext >&5
2071
2072 ac_cv_prog_cc_g=no
2073 fi
2074 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2075 fi
2076 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2077 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2078 if test "$ac_test_CFLAGS" = set; then
2079   CFLAGS=$ac_save_CFLAGS
2080 elif test $ac_cv_prog_cc_g = yes; then
2081   if test "$GCC" = yes; then
2082     CFLAGS="-g -O2"
2083   else
2084     CFLAGS="-g"
2085   fi
2086 else
2087   if test "$GCC" = yes; then
2088     CFLAGS="-O2"
2089   else
2090     CFLAGS=
2091   fi
2092 fi
2093 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2094 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2095 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2096   echo $ECHO_N "(cached) $ECHO_C" >&6
2097 else
2098   ac_cv_prog_cc_stdc=no
2099 ac_save_CC=$CC
2100 cat >conftest.$ac_ext <<_ACEOF
2101 /* confdefs.h.  */
2102 _ACEOF
2103 cat confdefs.h >>conftest.$ac_ext
2104 cat >>conftest.$ac_ext <<_ACEOF
2105 /* end confdefs.h.  */
2106 #include <stdarg.h>
2107 #include <stdio.h>
2108 #include <sys/types.h>
2109 #include <sys/stat.h>
2110 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2111 struct buf { int x; };
2112 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2113 static char *e (p, i)
2114      char **p;
2115      int i;
2116 {
2117   return p[i];
2118 }
2119 static char *f (char * (*g) (char **, int), char **p, ...)
2120 {
2121   char *s;
2122   va_list v;
2123   va_start (v,p);
2124   s = g (p, va_arg (v,int));
2125   va_end (v);
2126   return s;
2127 }
2128
2129 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2130    function prototypes and stuff, but not '\xHH' hex character constants.
2131    These don't provoke an error unfortunately, instead are silently treated
2132    as 'x'.  The following induces an error, until -std1 is added to get
2133    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2134    array size at least.  It's necessary to write '\x00'==0 to get something
2135    that's true only with -std1.  */
2136 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2137
2138 int test (int i, double x);
2139 struct s1 {int (*f) (int a);};
2140 struct s2 {int (*f) (double a);};
2141 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2142 int argc;
2143 char **argv;
2144 int
2145 main ()
2146 {
2147 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2148   ;
2149   return 0;
2150 }
2151 _ACEOF
2152 # Don't try gcc -ansi; that turns off useful extensions and
2153 # breaks some systems' header files.
2154 # AIX                   -qlanglvl=ansi
2155 # Ultrix and OSF/1      -std1
2156 # HP-UX 10.20 and later -Ae
2157 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2158 # SVR4                  -Xc -D__EXTENSIONS__
2159 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2160 do
2161   CC="$ac_save_CC $ac_arg"
2162   rm -f conftest.$ac_objext
2163 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2164   (eval $ac_compile) 2>conftest.er1
2165   ac_status=$?
2166   grep -v '^ *+' conftest.er1 >conftest.err
2167   rm -f conftest.er1
2168   cat conftest.err >&5
2169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2170   (exit $ac_status); } &&
2171          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2172   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2173   (eval $ac_try) 2>&5
2174   ac_status=$?
2175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2176   (exit $ac_status); }; } &&
2177          { ac_try='test -s conftest.$ac_objext'
2178   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2179   (eval $ac_try) 2>&5
2180   ac_status=$?
2181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2182   (exit $ac_status); }; }; then
2183   ac_cv_prog_cc_stdc=$ac_arg
2184 break
2185 else
2186   echo "$as_me: failed program was:" >&5
2187 sed 's/^/| /' conftest.$ac_ext >&5
2188
2189 fi
2190 rm -f conftest.err conftest.$ac_objext
2191 done
2192 rm -f conftest.$ac_ext conftest.$ac_objext
2193 CC=$ac_save_CC
2194
2195 fi
2196
2197 case "x$ac_cv_prog_cc_stdc" in
2198   x|xno)
2199     echo "$as_me:$LINENO: result: none needed" >&5
2200 echo "${ECHO_T}none needed" >&6 ;;
2201   *)
2202     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2203 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2204     CC="$CC $ac_cv_prog_cc_stdc" ;;
2205 esac
2206
2207 # Some people use a C++ compiler to compile C.  Since we use `exit',
2208 # in C++ we need to declare it.  In case someone uses the same compiler
2209 # for both compiling C and C++ we need to have the C++ compiler decide
2210 # the declaration of exit, since it's the most demanding environment.
2211 cat >conftest.$ac_ext <<_ACEOF
2212 #ifndef __cplusplus
2213   choke me
2214 #endif
2215 _ACEOF
2216 rm -f conftest.$ac_objext
2217 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2218   (eval $ac_compile) 2>conftest.er1
2219   ac_status=$?
2220   grep -v '^ *+' conftest.er1 >conftest.err
2221   rm -f conftest.er1
2222   cat conftest.err >&5
2223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2224   (exit $ac_status); } &&
2225          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2226   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2227   (eval $ac_try) 2>&5
2228   ac_status=$?
2229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2230   (exit $ac_status); }; } &&
2231          { ac_try='test -s conftest.$ac_objext'
2232   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2233   (eval $ac_try) 2>&5
2234   ac_status=$?
2235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2236   (exit $ac_status); }; }; then
2237   for ac_declaration in \
2238    '' \
2239    'extern "C" void std::exit (int) throw (); using std::exit;' \
2240    'extern "C" void std::exit (int); using std::exit;' \
2241    'extern "C" void exit (int) throw ();' \
2242    'extern "C" void exit (int);' \
2243    'void exit (int);'
2244 do
2245   cat >conftest.$ac_ext <<_ACEOF
2246 /* confdefs.h.  */
2247 _ACEOF
2248 cat confdefs.h >>conftest.$ac_ext
2249 cat >>conftest.$ac_ext <<_ACEOF
2250 /* end confdefs.h.  */
2251 $ac_declaration
2252 #include <stdlib.h>
2253 int
2254 main ()
2255 {
2256 exit (42);
2257   ;
2258   return 0;
2259 }
2260 _ACEOF
2261 rm -f conftest.$ac_objext
2262 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2263   (eval $ac_compile) 2>conftest.er1
2264   ac_status=$?
2265   grep -v '^ *+' conftest.er1 >conftest.err
2266   rm -f conftest.er1
2267   cat conftest.err >&5
2268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2269   (exit $ac_status); } &&
2270          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2271   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2272   (eval $ac_try) 2>&5
2273   ac_status=$?
2274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2275   (exit $ac_status); }; } &&
2276          { ac_try='test -s conftest.$ac_objext'
2277   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2278   (eval $ac_try) 2>&5
2279   ac_status=$?
2280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2281   (exit $ac_status); }; }; then
2282   :
2283 else
2284   echo "$as_me: failed program was:" >&5
2285 sed 's/^/| /' conftest.$ac_ext >&5
2286
2287 continue
2288 fi
2289 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2290   cat >conftest.$ac_ext <<_ACEOF
2291 /* confdefs.h.  */
2292 _ACEOF
2293 cat confdefs.h >>conftest.$ac_ext
2294 cat >>conftest.$ac_ext <<_ACEOF
2295 /* end confdefs.h.  */
2296 $ac_declaration
2297 int
2298 main ()
2299 {
2300 exit (42);
2301   ;
2302   return 0;
2303 }
2304 _ACEOF
2305 rm -f conftest.$ac_objext
2306 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2307   (eval $ac_compile) 2>conftest.er1
2308   ac_status=$?
2309   grep -v '^ *+' conftest.er1 >conftest.err
2310   rm -f conftest.er1
2311   cat conftest.err >&5
2312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2313   (exit $ac_status); } &&
2314          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2315   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2316   (eval $ac_try) 2>&5
2317   ac_status=$?
2318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2319   (exit $ac_status); }; } &&
2320          { ac_try='test -s conftest.$ac_objext'
2321   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2322   (eval $ac_try) 2>&5
2323   ac_status=$?
2324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2325   (exit $ac_status); }; }; then
2326   break
2327 else
2328   echo "$as_me: failed program was:" >&5
2329 sed 's/^/| /' conftest.$ac_ext >&5
2330
2331 fi
2332 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2333 done
2334 rm -f conftest*
2335 if test -n "$ac_declaration"; then
2336   echo '#ifdef __cplusplus' >>confdefs.h
2337   echo $ac_declaration      >>confdefs.h
2338   echo '#endif'             >>confdefs.h
2339 fi
2340
2341 else
2342   echo "$as_me: failed program was:" >&5
2343 sed 's/^/| /' conftest.$ac_ext >&5
2344
2345 fi
2346 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2347 ac_ext=c
2348 ac_cpp='$CPP $CPPFLAGS'
2349 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2350 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2351 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2352
2353
2354
2355
2356
2357
2358 echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
2359 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
2360 if test "${am_cv_prog_cc_stdc+set}" = set; then
2361   echo $ECHO_N "(cached) $ECHO_C" >&6
2362 else
2363   am_cv_prog_cc_stdc=no
2364 ac_save_CC="$CC"
2365 # Don't try gcc -ansi; that turns off useful extensions and
2366 # breaks some systems' header files.
2367 # AIX                   -qlanglvl=ansi
2368 # Ultrix and OSF/1      -std1
2369 # HP-UX                 -Aa -D_HPUX_SOURCE
2370 # SVR4                  -Xc -D__EXTENSIONS__
2371 for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2372 do
2373   CC="$ac_save_CC $ac_arg"
2374   cat >conftest.$ac_ext <<_ACEOF
2375 /* confdefs.h.  */
2376 _ACEOF
2377 cat confdefs.h >>conftest.$ac_ext
2378 cat >>conftest.$ac_ext <<_ACEOF
2379 /* end confdefs.h.  */
2380 #include <stdarg.h>
2381 #include <stdio.h>
2382 #include <sys/types.h>
2383 #include <sys/stat.h>
2384 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2385 struct buf { int x; };
2386 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2387 static char *e (p, i)
2388      char **p;
2389      int i;
2390 {
2391   return p[i];
2392 }
2393 static char *f (char * (*g) (char **, int), char **p, ...)
2394 {
2395   char *s;
2396   va_list v;
2397   va_start (v,p);
2398   s = g (p, va_arg (v,int));
2399   va_end (v);
2400   return s;
2401 }
2402 int test (int i, double x);
2403 struct s1 {int (*f) (int a);};
2404 struct s2 {int (*f) (double a);};
2405 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2406 int argc;
2407 char **argv;
2408
2409 int
2410 main ()
2411 {
2412
2413 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2414
2415   ;
2416   return 0;
2417 }
2418 _ACEOF
2419 rm -f conftest.$ac_objext
2420 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2421   (eval $ac_compile) 2>conftest.er1
2422   ac_status=$?
2423   grep -v '^ *+' conftest.er1 >conftest.err
2424   rm -f conftest.er1
2425   cat conftest.err >&5
2426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2427   (exit $ac_status); } &&
2428          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2429   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2430   (eval $ac_try) 2>&5
2431   ac_status=$?
2432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2433   (exit $ac_status); }; } &&
2434          { ac_try='test -s conftest.$ac_objext'
2435   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2436   (eval $ac_try) 2>&5
2437   ac_status=$?
2438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2439   (exit $ac_status); }; }; then
2440   am_cv_prog_cc_stdc="$ac_arg"; break
2441 else
2442   echo "$as_me: failed program was:" >&5
2443 sed 's/^/| /' conftest.$ac_ext >&5
2444
2445 fi
2446 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2447 done
2448 CC="$ac_save_CC"
2449
2450 fi
2451
2452 if test -z "$am_cv_prog_cc_stdc"; then
2453   echo "$as_me:$LINENO: result: none needed" >&5
2454 echo "${ECHO_T}none needed" >&6
2455 else
2456   echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
2457 echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6
2458 fi
2459 case "x$am_cv_prog_cc_stdc" in
2460   x|xno) ;;
2461   *) CC="$CC $am_cv_prog_cc_stdc" ;;
2462 esac
2463
2464 if test x"$CFLAGS" != x; then
2465     CFLAGS=`echo "$CFLAGS" | sed -e 's/-O2/-O3/'`
2466 fi
2467 if test x"$CFLAGS" != x; then
2468     CFLAGS=`echo "$CFLAGS" | sed -e 's/-pipe//g'`
2469 fi
2470 if test x"$CFLAGS" != x; then
2471     unet_old_cflags=$CFLAGS
2472     CFLAGS=`echo "$CFLAGS" | sed -e 's/-g//g'`
2473 fi
2474 if test x"$CFLAGS" != x"$unet_old_cflags"; then
2475     # If -g was already there, force symbols to be enabled
2476     unet_cv_enable_symbols=yes
2477 fi
2478 if test x"$CFLAGS" != x; then
2479     unet_old_cflags=$CFLAGS
2480     CFLAGS=`echo "$CFLAGS" | sed -e 's/-pg//g'`
2481 fi
2482 if test x"$CFLAGS" != x"$unet_old_cflags"; then
2483     # If -pg was already there, force profiling to be enabled
2484     unet_cv_enable_profile=yes
2485 fi
2486 if test x"$CFLAGS" != x; then
2487     unet_old_cflags=$CFLAGS
2488     CFLAGS=`echo "$CFLAGS" | sed -e 's/-Wall//g'`
2489 fi
2490 if test x"$CFLAGS" != x"$unet_old_cflags"; then
2491     # If -Wall was already there, force warnings to be enabled
2492     unet_cv_enable_warnings=yes
2493 fi
2494 if test x"$CFLAGS" != x; then
2495     unet_old_cflags=$CFLAGS
2496     CFLAGS=`echo "$CFLAGS" | sed -e 's/-pedantic//g'`
2497 fi
2498 if test x"$CFLAGS" != x"$unet_old_cflags"; then
2499     # If -pedantic was already there, force pedatic to be enabled
2500     unet_cv_enable_pedantic=yes
2501 fi
2502
2503
2504 echo "$as_me:$LINENO: checking for library containing crypt" >&5
2505 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6
2506 if test "${ac_cv_search_crypt+set}" = set; then
2507   echo $ECHO_N "(cached) $ECHO_C" >&6
2508 else
2509   ac_func_search_save_LIBS=$LIBS
2510 ac_cv_search_crypt=no
2511 cat >conftest.$ac_ext <<_ACEOF
2512 /* confdefs.h.  */
2513 _ACEOF
2514 cat confdefs.h >>conftest.$ac_ext
2515 cat >>conftest.$ac_ext <<_ACEOF
2516 /* end confdefs.h.  */
2517
2518 /* Override any gcc2 internal prototype to avoid an error.  */
2519 #ifdef __cplusplus
2520 extern "C"
2521 #endif
2522 /* We use char because int might match the return type of a gcc2
2523    builtin and then its argument prototype would still apply.  */
2524 char crypt ();
2525 int
2526 main ()
2527 {
2528 crypt ();
2529   ;
2530   return 0;
2531 }
2532 _ACEOF
2533 rm -f conftest.$ac_objext conftest$ac_exeext
2534 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2535   (eval $ac_link) 2>conftest.er1
2536   ac_status=$?
2537   grep -v '^ *+' conftest.er1 >conftest.err
2538   rm -f conftest.er1
2539   cat conftest.err >&5
2540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2541   (exit $ac_status); } &&
2542          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2543   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2544   (eval $ac_try) 2>&5
2545   ac_status=$?
2546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2547   (exit $ac_status); }; } &&
2548          { ac_try='test -s conftest$ac_exeext'
2549   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2550   (eval $ac_try) 2>&5
2551   ac_status=$?
2552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2553   (exit $ac_status); }; }; then
2554   ac_cv_search_crypt="none required"
2555 else
2556   echo "$as_me: failed program was:" >&5
2557 sed 's/^/| /' conftest.$ac_ext >&5
2558
2559 fi
2560 rm -f conftest.err conftest.$ac_objext \
2561       conftest$ac_exeext conftest.$ac_ext
2562 if test "$ac_cv_search_crypt" = no; then
2563   for ac_lib in descrypt crypt; do
2564     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
2565     cat >conftest.$ac_ext <<_ACEOF
2566 /* confdefs.h.  */
2567 _ACEOF
2568 cat confdefs.h >>conftest.$ac_ext
2569 cat >>conftest.$ac_ext <<_ACEOF
2570 /* end confdefs.h.  */
2571
2572 /* Override any gcc2 internal prototype to avoid an error.  */
2573 #ifdef __cplusplus
2574 extern "C"
2575 #endif
2576 /* We use char because int might match the return type of a gcc2
2577    builtin and then its argument prototype would still apply.  */
2578 char crypt ();
2579 int
2580 main ()
2581 {
2582 crypt ();
2583   ;
2584   return 0;
2585 }
2586 _ACEOF
2587 rm -f conftest.$ac_objext conftest$ac_exeext
2588 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2589   (eval $ac_link) 2>conftest.er1
2590   ac_status=$?
2591   grep -v '^ *+' conftest.er1 >conftest.err
2592   rm -f conftest.er1
2593   cat conftest.err >&5
2594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2595   (exit $ac_status); } &&
2596          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2597   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2598   (eval $ac_try) 2>&5
2599   ac_status=$?
2600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2601   (exit $ac_status); }; } &&
2602          { ac_try='test -s conftest$ac_exeext'
2603   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2604   (eval $ac_try) 2>&5
2605   ac_status=$?
2606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2607   (exit $ac_status); }; }; then
2608   ac_cv_search_crypt="-l$ac_lib"
2609 break
2610 else
2611   echo "$as_me: failed program was:" >&5
2612 sed 's/^/| /' conftest.$ac_ext >&5
2613
2614 fi
2615 rm -f conftest.err conftest.$ac_objext \
2616       conftest$ac_exeext conftest.$ac_ext
2617   done
2618 fi
2619 LIBS=$ac_func_search_save_LIBS
2620 fi
2621 echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
2622 echo "${ECHO_T}$ac_cv_search_crypt" >&6
2623 if test "$ac_cv_search_crypt" != no; then
2624   test "$ac_cv_search_crypt" = "none required" || LIBS="$ac_cv_search_crypt $LIBS"
2625
2626 else
2627   { { echo "$as_me:$LINENO: error: Unable to find library containing crypt()" >&5
2628 echo "$as_me: error: Unable to find library containing crypt()" >&2;}
2629    { (exit 1); exit 1; }; }
2630 fi
2631
2632
2633
2634    # Most operating systems have gethostbyname() in the default searched
2635    # libraries (i.e. libc):
2636    echo "$as_me:$LINENO: checking for gethostbyname" >&5
2637 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
2638 if test "${ac_cv_func_gethostbyname+set}" = set; then
2639   echo $ECHO_N "(cached) $ECHO_C" >&6
2640 else
2641   cat >conftest.$ac_ext <<_ACEOF
2642 /* confdefs.h.  */
2643 _ACEOF
2644 cat confdefs.h >>conftest.$ac_ext
2645 cat >>conftest.$ac_ext <<_ACEOF
2646 /* end confdefs.h.  */
2647 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
2648    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2649 #define gethostbyname innocuous_gethostbyname
2650
2651 /* System header to define __stub macros and hopefully few prototypes,
2652     which can conflict with char gethostbyname (); below.
2653     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2654     <limits.h> exists even on freestanding compilers.  */
2655
2656 #ifdef __STDC__
2657 # include <limits.h>
2658 #else
2659 # include <assert.h>
2660 #endif
2661
2662 #undef gethostbyname
2663
2664 /* Override any gcc2 internal prototype to avoid an error.  */
2665 #ifdef __cplusplus
2666 extern "C"
2667 {
2668 #endif
2669 /* We use char because int might match the return type of a gcc2
2670    builtin and then its argument prototype would still apply.  */
2671 char gethostbyname ();
2672 /* The GNU C library defines this for functions which it implements
2673     to always fail with ENOSYS.  Some functions are actually named
2674     something starting with __ and the normal name is an alias.  */
2675 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
2676 choke me
2677 #else
2678 char (*f) () = gethostbyname;
2679 #endif
2680 #ifdef __cplusplus
2681 }
2682 #endif
2683
2684 int
2685 main ()
2686 {
2687 return f != gethostbyname;
2688   ;
2689   return 0;
2690 }
2691 _ACEOF
2692 rm -f conftest.$ac_objext conftest$ac_exeext
2693 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2694   (eval $ac_link) 2>conftest.er1
2695   ac_status=$?
2696   grep -v '^ *+' conftest.er1 >conftest.err
2697   rm -f conftest.er1
2698   cat conftest.err >&5
2699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2700   (exit $ac_status); } &&
2701          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2702   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2703   (eval $ac_try) 2>&5
2704   ac_status=$?
2705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2706   (exit $ac_status); }; } &&
2707          { ac_try='test -s conftest$ac_exeext'
2708   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2709   (eval $ac_try) 2>&5
2710   ac_status=$?
2711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2712   (exit $ac_status); }; }; then
2713   ac_cv_func_gethostbyname=yes
2714 else
2715   echo "$as_me: failed program was:" >&5
2716 sed 's/^/| /' conftest.$ac_ext >&5
2717
2718 ac_cv_func_gethostbyname=no
2719 fi
2720 rm -f conftest.err conftest.$ac_objext \
2721       conftest$ac_exeext conftest.$ac_ext
2722 fi
2723 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
2724 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
2725 if test $ac_cv_func_gethostbyname = yes; then
2726   :
2727 else
2728   # Some OSes (eg. Solaris) place it in libnsl:
2729
2730 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
2731 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
2732 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
2733   echo $ECHO_N "(cached) $ECHO_C" >&6
2734 else
2735   ac_check_lib_save_LIBS=$LIBS
2736 LIBS="-lnsl  $LIBS"
2737 cat >conftest.$ac_ext <<_ACEOF
2738 /* confdefs.h.  */
2739 _ACEOF
2740 cat confdefs.h >>conftest.$ac_ext
2741 cat >>conftest.$ac_ext <<_ACEOF
2742 /* end confdefs.h.  */
2743
2744 /* Override any gcc2 internal prototype to avoid an error.  */
2745 #ifdef __cplusplus
2746 extern "C"
2747 #endif
2748 /* We use char because int might match the return type of a gcc2
2749    builtin and then its argument prototype would still apply.  */
2750 char gethostbyname ();
2751 int
2752 main ()
2753 {
2754 gethostbyname ();
2755   ;
2756   return 0;
2757 }
2758 _ACEOF
2759 rm -f conftest.$ac_objext conftest$ac_exeext
2760 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2761   (eval $ac_link) 2>conftest.er1
2762   ac_status=$?
2763   grep -v '^ *+' conftest.er1 >conftest.err
2764   rm -f conftest.er1
2765   cat conftest.err >&5
2766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2767   (exit $ac_status); } &&
2768          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2769   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2770   (eval $ac_try) 2>&5
2771   ac_status=$?
2772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2773   (exit $ac_status); }; } &&
2774          { ac_try='test -s conftest$ac_exeext'
2775   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2776   (eval $ac_try) 2>&5
2777   ac_status=$?
2778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2779   (exit $ac_status); }; }; then
2780   ac_cv_lib_nsl_gethostbyname=yes
2781 else
2782   echo "$as_me: failed program was:" >&5
2783 sed 's/^/| /' conftest.$ac_ext >&5
2784
2785 ac_cv_lib_nsl_gethostbyname=no
2786 fi
2787 rm -f conftest.err conftest.$ac_objext \
2788       conftest$ac_exeext conftest.$ac_ext
2789 LIBS=$ac_check_lib_save_LIBS
2790 fi
2791 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
2792 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
2793 if test $ac_cv_lib_nsl_gethostbyname = yes; then
2794   cat >>confdefs.h <<_ACEOF
2795 #define HAVE_LIBNSL 1
2796 _ACEOF
2797
2798   LIBS="-lnsl $LIBS"
2799
2800 else
2801   # Some strange OSes (SINIX) have it in libsocket:
2802
2803 echo "$as_me:$LINENO: checking for gethostbyname in -lsocket" >&5
2804 echo $ECHO_N "checking for gethostbyname in -lsocket... $ECHO_C" >&6
2805 if test "${ac_cv_lib_socket_gethostbyname+set}" = set; then
2806   echo $ECHO_N "(cached) $ECHO_C" >&6
2807 else
2808   ac_check_lib_save_LIBS=$LIBS
2809 LIBS="-lsocket  $LIBS"
2810 cat >conftest.$ac_ext <<_ACEOF
2811 /* confdefs.h.  */
2812 _ACEOF
2813 cat confdefs.h >>conftest.$ac_ext
2814 cat >>conftest.$ac_ext <<_ACEOF
2815 /* end confdefs.h.  */
2816
2817 /* Override any gcc2 internal prototype to avoid an error.  */
2818 #ifdef __cplusplus
2819 extern "C"
2820 #endif
2821 /* We use char because int might match the return type of a gcc2
2822    builtin and then its argument prototype would still apply.  */
2823 char gethostbyname ();
2824 int
2825 main ()
2826 {
2827 gethostbyname ();
2828   ;
2829   return 0;
2830 }
2831 _ACEOF
2832 rm -f conftest.$ac_objext conftest$ac_exeext
2833 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2834   (eval $ac_link) 2>conftest.er1
2835   ac_status=$?
2836   grep -v '^ *+' conftest.er1 >conftest.err
2837   rm -f conftest.er1
2838   cat conftest.err >&5
2839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2840   (exit $ac_status); } &&
2841          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2842   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2843   (eval $ac_try) 2>&5
2844   ac_status=$?
2845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2846   (exit $ac_status); }; } &&
2847          { ac_try='test -s conftest$ac_exeext'
2848   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2849   (eval $ac_try) 2>&5
2850   ac_status=$?
2851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2852   (exit $ac_status); }; }; then
2853   ac_cv_lib_socket_gethostbyname=yes
2854 else
2855   echo "$as_me: failed program was:" >&5
2856 sed 's/^/| /' conftest.$ac_ext >&5
2857
2858 ac_cv_lib_socket_gethostbyname=no
2859 fi
2860 rm -f conftest.err conftest.$ac_objext \
2861       conftest$ac_exeext conftest.$ac_ext
2862 LIBS=$ac_check_lib_save_LIBS
2863 fi
2864 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_gethostbyname" >&5
2865 echo "${ECHO_T}$ac_cv_lib_socket_gethostbyname" >&6
2866 if test $ac_cv_lib_socket_gethostbyname = yes; then
2867   cat >>confdefs.h <<_ACEOF
2868 #define HAVE_LIBSOCKET 1
2869 _ACEOF
2870
2871   LIBS="-lsocket $LIBS"
2872
2873 else
2874   # Unfortunately libsocket sometimes depends on libnsl.
2875           # AC_CHECK_LIB's API is essentially broken so the following
2876           # ugliness is necessary:
2877           echo "$as_me:$LINENO: checking for gethostbyname in -lsocket" >&5
2878 echo $ECHO_N "checking for gethostbyname in -lsocket... $ECHO_C" >&6
2879 if test "${ac_cv_lib_socket_gethostbyname+set}" = set; then
2880   echo $ECHO_N "(cached) $ECHO_C" >&6
2881 else
2882   ac_check_lib_save_LIBS=$LIBS
2883 LIBS="-lsocket -lnsl $LIBS"
2884 cat >conftest.$ac_ext <<_ACEOF
2885 /* confdefs.h.  */
2886 _ACEOF
2887 cat confdefs.h >>conftest.$ac_ext
2888 cat >>conftest.$ac_ext <<_ACEOF
2889 /* end confdefs.h.  */
2890
2891 /* Override any gcc2 internal prototype to avoid an error.  */
2892 #ifdef __cplusplus
2893 extern "C"
2894 #endif
2895 /* We use char because int might match the return type of a gcc2
2896    builtin and then its argument prototype would still apply.  */
2897 char gethostbyname ();
2898 int
2899 main ()
2900 {
2901 gethostbyname ();
2902   ;
2903   return 0;
2904 }
2905 _ACEOF
2906 rm -f conftest.$ac_objext conftest$ac_exeext
2907 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2908   (eval $ac_link) 2>conftest.er1
2909   ac_status=$?
2910   grep -v '^ *+' conftest.er1 >conftest.err
2911   rm -f conftest.er1
2912   cat conftest.err >&5
2913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2914   (exit $ac_status); } &&
2915          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2916   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2917   (eval $ac_try) 2>&5
2918   ac_status=$?
2919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2920   (exit $ac_status); }; } &&
2921          { ac_try='test -s conftest$ac_exeext'
2922   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2923   (eval $ac_try) 2>&5
2924   ac_status=$?
2925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2926   (exit $ac_status); }; }; then
2927   ac_cv_lib_socket_gethostbyname=yes
2928 else
2929   echo "$as_me: failed program was:" >&5
2930 sed 's/^/| /' conftest.$ac_ext >&5
2931
2932 ac_cv_lib_socket_gethostbyname=no
2933 fi
2934 rm -f conftest.err conftest.$ac_objext \
2935       conftest$ac_exeext conftest.$ac_ext
2936 LIBS=$ac_check_lib_save_LIBS
2937 fi
2938 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_gethostbyname" >&5
2939 echo "${ECHO_T}$ac_cv_lib_socket_gethostbyname" >&6
2940 if test $ac_cv_lib_socket_gethostbyname = yes; then
2941   LIBS="-lsocket -lnsl $LIBS"
2942 else
2943
2944 echo "$as_me:$LINENO: checking for gethostbyname in -lresolv" >&5
2945 echo $ECHO_N "checking for gethostbyname in -lresolv... $ECHO_C" >&6
2946 if test "${ac_cv_lib_resolv_gethostbyname+set}" = set; then
2947   echo $ECHO_N "(cached) $ECHO_C" >&6
2948 else
2949   ac_check_lib_save_LIBS=$LIBS
2950 LIBS="-lresolv  $LIBS"
2951 cat >conftest.$ac_ext <<_ACEOF
2952 /* confdefs.h.  */
2953 _ACEOF
2954 cat confdefs.h >>conftest.$ac_ext
2955 cat >>conftest.$ac_ext <<_ACEOF
2956 /* end confdefs.h.  */
2957
2958 /* Override any gcc2 internal prototype to avoid an error.  */
2959 #ifdef __cplusplus
2960 extern "C"
2961 #endif
2962 /* We use char because int might match the return type of a gcc2
2963    builtin and then its argument prototype would still apply.  */
2964 char gethostbyname ();
2965 int
2966 main ()
2967 {
2968 gethostbyname ();
2969   ;
2970   return 0;
2971 }
2972 _ACEOF
2973 rm -f conftest.$ac_objext conftest$ac_exeext
2974 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2975   (eval $ac_link) 2>conftest.er1
2976   ac_status=$?
2977   grep -v '^ *+' conftest.er1 >conftest.err
2978   rm -f conftest.er1
2979   cat conftest.err >&5
2980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2981   (exit $ac_status); } &&
2982          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2983   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2984   (eval $ac_try) 2>&5
2985   ac_status=$?
2986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2987   (exit $ac_status); }; } &&
2988          { ac_try='test -s conftest$ac_exeext'
2989   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2990   (eval $ac_try) 2>&5
2991   ac_status=$?
2992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2993   (exit $ac_status); }; }; then
2994   ac_cv_lib_resolv_gethostbyname=yes
2995 else
2996   echo "$as_me: failed program was:" >&5
2997 sed 's/^/| /' conftest.$ac_ext >&5
2998
2999 ac_cv_lib_resolv_gethostbyname=no
3000 fi
3001 rm -f conftest.err conftest.$ac_objext \
3002       conftest$ac_exeext conftest.$ac_ext
3003 LIBS=$ac_check_lib_save_LIBS
3004 fi
3005 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname" >&5
3006 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname" >&6
3007 if test $ac_cv_lib_resolv_gethostbyname = yes; then
3008   cat >>confdefs.h <<_ACEOF
3009 #define HAVE_LIBRESOLV 1
3010 _ACEOF
3011
3012   LIBS="-lresolv $LIBS"
3013
3014 fi
3015
3016 fi
3017
3018
3019 fi
3020
3021
3022 fi
3023
3024
3025 fi
3026
3027   echo "$as_me:$LINENO: checking for socket" >&5
3028 echo $ECHO_N "checking for socket... $ECHO_C" >&6
3029 if test "${ac_cv_func_socket+set}" = set; then
3030   echo $ECHO_N "(cached) $ECHO_C" >&6
3031 else
3032   cat >conftest.$ac_ext <<_ACEOF
3033 /* confdefs.h.  */
3034 _ACEOF
3035 cat confdefs.h >>conftest.$ac_ext
3036 cat >>conftest.$ac_ext <<_ACEOF
3037 /* end confdefs.h.  */
3038 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
3039    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
3040 #define socket innocuous_socket
3041
3042 /* System header to define __stub macros and hopefully few prototypes,
3043     which can conflict with char socket (); below.
3044     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3045     <limits.h> exists even on freestanding compilers.  */
3046
3047 #ifdef __STDC__
3048 # include <limits.h>
3049 #else
3050 # include <assert.h>
3051 #endif
3052
3053 #undef socket
3054
3055 /* Override any gcc2 internal prototype to avoid an error.  */
3056 #ifdef __cplusplus
3057 extern "C"
3058 {
3059 #endif
3060 /* We use char because int might match the return type of a gcc2
3061    builtin and then its argument prototype would still apply.  */
3062 char socket ();
3063 /* The GNU C library defines this for functions which it implements
3064     to always fail with ENOSYS.  Some functions are actually named
3065     something starting with __ and the normal name is an alias.  */
3066 #if defined (__stub_socket) || defined (__stub___socket)
3067 choke me
3068 #else
3069 char (*f) () = socket;
3070 #endif
3071 #ifdef __cplusplus
3072 }
3073 #endif
3074
3075 int
3076 main ()
3077 {
3078 return f != socket;
3079   ;
3080   return 0;
3081 }
3082 _ACEOF
3083 rm -f conftest.$ac_objext conftest$ac_exeext
3084 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3085   (eval $ac_link) 2>conftest.er1
3086   ac_status=$?
3087   grep -v '^ *+' conftest.er1 >conftest.err
3088   rm -f conftest.er1
3089   cat conftest.err >&5
3090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3091   (exit $ac_status); } &&
3092          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3093   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3094   (eval $ac_try) 2>&5
3095   ac_status=$?
3096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3097   (exit $ac_status); }; } &&
3098          { ac_try='test -s conftest$ac_exeext'
3099   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3100   (eval $ac_try) 2>&5
3101   ac_status=$?
3102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3103   (exit $ac_status); }; }; then
3104   ac_cv_func_socket=yes
3105 else
3106   echo "$as_me: failed program was:" >&5
3107 sed 's/^/| /' conftest.$ac_ext >&5
3108
3109 ac_cv_func_socket=no
3110 fi
3111 rm -f conftest.err conftest.$ac_objext \
3112       conftest$ac_exeext conftest.$ac_ext
3113 fi
3114 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
3115 echo "${ECHO_T}$ac_cv_func_socket" >&6
3116 if test $ac_cv_func_socket = yes; then
3117   :
3118 else
3119
3120 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
3121 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
3122 if test "${ac_cv_lib_socket_socket+set}" = set; then
3123   echo $ECHO_N "(cached) $ECHO_C" >&6
3124 else
3125   ac_check_lib_save_LIBS=$LIBS
3126 LIBS="-lsocket  $LIBS"
3127 cat >conftest.$ac_ext <<_ACEOF
3128 /* confdefs.h.  */
3129 _ACEOF
3130 cat confdefs.h >>conftest.$ac_ext
3131 cat >>conftest.$ac_ext <<_ACEOF
3132 /* end confdefs.h.  */
3133
3134 /* Override any gcc2 internal prototype to avoid an error.  */
3135 #ifdef __cplusplus
3136 extern "C"
3137 #endif
3138 /* We use char because int might match the return type of a gcc2
3139    builtin and then its argument prototype would still apply.  */
3140 char socket ();
3141 int
3142 main ()
3143 {
3144 socket ();
3145   ;
3146   return 0;
3147 }
3148 _ACEOF
3149 rm -f conftest.$ac_objext conftest$ac_exeext
3150 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3151   (eval $ac_link) 2>conftest.er1
3152   ac_status=$?
3153   grep -v '^ *+' conftest.er1 >conftest.err
3154   rm -f conftest.er1
3155   cat conftest.err >&5
3156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3157   (exit $ac_status); } &&
3158          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3159   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3160   (eval $ac_try) 2>&5
3161   ac_status=$?
3162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3163   (exit $ac_status); }; } &&
3164          { ac_try='test -s conftest$ac_exeext'
3165   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3166   (eval $ac_try) 2>&5
3167   ac_status=$?
3168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3169   (exit $ac_status); }; }; then
3170   ac_cv_lib_socket_socket=yes
3171 else
3172   echo "$as_me: failed program was:" >&5
3173 sed 's/^/| /' conftest.$ac_ext >&5
3174
3175 ac_cv_lib_socket_socket=no
3176 fi
3177 rm -f conftest.err conftest.$ac_objext \
3178       conftest$ac_exeext conftest.$ac_ext
3179 LIBS=$ac_check_lib_save_LIBS
3180 fi
3181 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
3182 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
3183 if test $ac_cv_lib_socket_socket = yes; then
3184   cat >>confdefs.h <<_ACEOF
3185 #define HAVE_LIBSOCKET 1
3186 _ACEOF
3187
3188   LIBS="-lsocket $LIBS"
3189
3190 else
3191   echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
3192 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
3193 if test "${ac_cv_lib_socket_socket+set}" = set; then
3194   echo $ECHO_N "(cached) $ECHO_C" >&6
3195 else
3196   ac_check_lib_save_LIBS=$LIBS
3197 LIBS="-lsocket -lnsl $LIBS"
3198 cat >conftest.$ac_ext <<_ACEOF
3199 /* confdefs.h.  */
3200 _ACEOF
3201 cat confdefs.h >>conftest.$ac_ext
3202 cat >>conftest.$ac_ext <<_ACEOF
3203 /* end confdefs.h.  */
3204
3205 /* Override any gcc2 internal prototype to avoid an error.  */
3206 #ifdef __cplusplus
3207 extern "C"
3208 #endif
3209 /* We use char because int might match the return type of a gcc2
3210    builtin and then its argument prototype would still apply.  */
3211 char socket ();
3212 int
3213 main ()
3214 {
3215 socket ();
3216   ;
3217   return 0;
3218 }
3219 _ACEOF
3220 rm -f conftest.$ac_objext conftest$ac_exeext
3221 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3222   (eval $ac_link) 2>conftest.er1
3223   ac_status=$?
3224   grep -v '^ *+' conftest.er1 >conftest.err
3225   rm -f conftest.er1
3226   cat conftest.err >&5
3227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3228   (exit $ac_status); } &&
3229          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3230   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3231   (eval $ac_try) 2>&5
3232   ac_status=$?
3233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3234   (exit $ac_status); }; } &&
3235          { ac_try='test -s conftest$ac_exeext'
3236   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3237   (eval $ac_try) 2>&5
3238   ac_status=$?
3239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3240   (exit $ac_status); }; }; then
3241   ac_cv_lib_socket_socket=yes
3242 else
3243   echo "$as_me: failed program was:" >&5
3244 sed 's/^/| /' conftest.$ac_ext >&5
3245
3246 ac_cv_lib_socket_socket=no
3247 fi
3248 rm -f conftest.err conftest.$ac_objext \
3249       conftest$ac_exeext conftest.$ac_ext
3250 LIBS=$ac_check_lib_save_LIBS
3251 fi
3252 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
3253 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
3254 if test $ac_cv_lib_socket_socket = yes; then
3255   LIBS="-lsocket -lnsl $LIBS"
3256 fi
3257
3258 fi
3259
3260 fi
3261
3262
3263
3264 ac_ext=c
3265 ac_cpp='$CPP $CPPFLAGS'
3266 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3267 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3268 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3269 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3270 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3271 # On Suns, sometimes $CPP names a directory.
3272 if test -n "$CPP" && test -d "$CPP"; then
3273   CPP=
3274 fi
3275 if test -z "$CPP"; then
3276   if test "${ac_cv_prog_CPP+set}" = set; then
3277   echo $ECHO_N "(cached) $ECHO_C" >&6
3278 else
3279       # Double quotes because CPP needs to be expanded
3280     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3281     do
3282       ac_preproc_ok=false
3283 for ac_c_preproc_warn_flag in '' yes
3284 do
3285   # Use a header file that comes with gcc, so configuring glibc
3286   # with a fresh cross-compiler works.
3287   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3288   # <limits.h> exists even on freestanding compilers.
3289   # On the NeXT, cc -E runs the code through the compiler's parser,
3290   # not just through cpp. "Syntax error" is here to catch this case.
3291   cat >conftest.$ac_ext <<_ACEOF
3292 /* confdefs.h.  */
3293 _ACEOF
3294 cat confdefs.h >>conftest.$ac_ext
3295 cat >>conftest.$ac_ext <<_ACEOF
3296 /* end confdefs.h.  */
3297 #ifdef __STDC__
3298 # include <limits.h>
3299 #else
3300 # include <assert.h>
3301 #endif
3302                      Syntax error
3303 _ACEOF
3304 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3305   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3306   ac_status=$?
3307   grep -v '^ *+' conftest.er1 >conftest.err
3308   rm -f conftest.er1
3309   cat conftest.err >&5
3310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3311   (exit $ac_status); } >/dev/null; then
3312   if test -s conftest.err; then
3313     ac_cpp_err=$ac_c_preproc_warn_flag
3314     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3315   else
3316     ac_cpp_err=
3317   fi
3318 else
3319   ac_cpp_err=yes
3320 fi
3321 if test -z "$ac_cpp_err"; then
3322   :
3323 else
3324   echo "$as_me: failed program was:" >&5
3325 sed 's/^/| /' conftest.$ac_ext >&5
3326
3327   # Broken: fails on valid input.
3328 continue
3329 fi
3330 rm -f conftest.err conftest.$ac_ext
3331
3332   # OK, works on sane cases.  Now check whether non-existent headers
3333   # can be detected and how.
3334   cat >conftest.$ac_ext <<_ACEOF
3335 /* confdefs.h.  */
3336 _ACEOF
3337 cat confdefs.h >>conftest.$ac_ext
3338 cat >>conftest.$ac_ext <<_ACEOF
3339 /* end confdefs.h.  */
3340 #include <ac_nonexistent.h>
3341 _ACEOF
3342 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3343   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3344   ac_status=$?
3345   grep -v '^ *+' conftest.er1 >conftest.err
3346   rm -f conftest.er1
3347   cat conftest.err >&5
3348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3349   (exit $ac_status); } >/dev/null; then
3350   if test -s conftest.err; then
3351     ac_cpp_err=$ac_c_preproc_warn_flag
3352     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3353   else
3354     ac_cpp_err=
3355   fi
3356 else
3357   ac_cpp_err=yes
3358 fi
3359 if test -z "$ac_cpp_err"; then
3360   # Broken: success on invalid input.
3361 continue
3362 else
3363   echo "$as_me: failed program was:" >&5
3364 sed 's/^/| /' conftest.$ac_ext >&5
3365
3366   # Passes both tests.
3367 ac_preproc_ok=:
3368 break
3369 fi
3370 rm -f conftest.err conftest.$ac_ext
3371
3372 done
3373 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3374 rm -f conftest.err conftest.$ac_ext
3375 if $ac_preproc_ok; then
3376   break
3377 fi
3378
3379     done
3380     ac_cv_prog_CPP=$CPP
3381
3382 fi
3383   CPP=$ac_cv_prog_CPP
3384 else
3385   ac_cv_prog_CPP=$CPP
3386 fi
3387 echo "$as_me:$LINENO: result: $CPP" >&5
3388 echo "${ECHO_T}$CPP" >&6
3389 ac_preproc_ok=false
3390 for ac_c_preproc_warn_flag in '' yes
3391 do
3392   # Use a header file that comes with gcc, so configuring glibc
3393   # with a fresh cross-compiler works.
3394   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3395   # <limits.h> exists even on freestanding compilers.
3396   # On the NeXT, cc -E runs the code through the compiler's parser,
3397   # not just through cpp. "Syntax error" is here to catch this case.
3398   cat >conftest.$ac_ext <<_ACEOF
3399 /* confdefs.h.  */
3400 _ACEOF
3401 cat confdefs.h >>conftest.$ac_ext
3402 cat >>conftest.$ac_ext <<_ACEOF
3403 /* end confdefs.h.  */
3404 #ifdef __STDC__
3405 # include <limits.h>
3406 #else
3407 # include <assert.h>
3408 #endif
3409                      Syntax error
3410 _ACEOF
3411 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3412   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3413   ac_status=$?
3414   grep -v '^ *+' conftest.er1 >conftest.err
3415   rm -f conftest.er1
3416   cat conftest.err >&5
3417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3418   (exit $ac_status); } >/dev/null; then
3419   if test -s conftest.err; then
3420     ac_cpp_err=$ac_c_preproc_warn_flag
3421     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3422   else
3423     ac_cpp_err=
3424   fi
3425 else
3426   ac_cpp_err=yes
3427 fi
3428 if test -z "$ac_cpp_err"; then
3429   :
3430 else
3431   echo "$as_me: failed program was:" >&5
3432 sed 's/^/| /' conftest.$ac_ext >&5
3433
3434   # Broken: fails on valid input.
3435 continue
3436 fi
3437 rm -f conftest.err conftest.$ac_ext
3438
3439   # OK, works on sane cases.  Now check whether non-existent headers
3440   # can be detected and how.
3441   cat >conftest.$ac_ext <<_ACEOF
3442 /* confdefs.h.  */
3443 _ACEOF
3444 cat confdefs.h >>conftest.$ac_ext
3445 cat >>conftest.$ac_ext <<_ACEOF
3446 /* end confdefs.h.  */
3447 #include <ac_nonexistent.h>
3448 _ACEOF
3449 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3450   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3451   ac_status=$?
3452   grep -v '^ *+' conftest.er1 >conftest.err
3453   rm -f conftest.er1
3454   cat conftest.err >&5
3455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3456   (exit $ac_status); } >/dev/null; then
3457   if test -s conftest.err; then
3458     ac_cpp_err=$ac_c_preproc_warn_flag
3459     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3460   else
3461     ac_cpp_err=
3462   fi
3463 else
3464   ac_cpp_err=yes
3465 fi
3466 if test -z "$ac_cpp_err"; then
3467   # Broken: success on invalid input.
3468 continue
3469 else
3470   echo "$as_me: failed program was:" >&5
3471 sed 's/^/| /' conftest.$ac_ext >&5
3472
3473   # Passes both tests.
3474 ac_preproc_ok=:
3475 break
3476 fi
3477 rm -f conftest.err conftest.$ac_ext
3478
3479 done
3480 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3481 rm -f conftest.err conftest.$ac_ext
3482 if $ac_preproc_ok; then
3483   :
3484 else
3485   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3486 See \`config.log' for more details." >&5
3487 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3488 See \`config.log' for more details." >&2;}
3489    { (exit 1); exit 1; }; }
3490 fi
3491
3492 ac_ext=c
3493 ac_cpp='$CPP $CPPFLAGS'
3494 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3495 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3496 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3497
3498
3499 echo "$as_me:$LINENO: checking for egrep" >&5
3500 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3501 if test "${ac_cv_prog_egrep+set}" = set; then
3502   echo $ECHO_N "(cached) $ECHO_C" >&6
3503 else
3504   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3505     then ac_cv_prog_egrep='grep -E'
3506     else ac_cv_prog_egrep='egrep'
3507     fi
3508 fi
3509 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3510 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3511  EGREP=$ac_cv_prog_egrep
3512
3513
3514 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3515 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3516 if test "${ac_cv_header_stdc+set}" = set; then
3517   echo $ECHO_N "(cached) $ECHO_C" >&6
3518 else
3519   cat >conftest.$ac_ext <<_ACEOF
3520 /* confdefs.h.  */
3521 _ACEOF
3522 cat confdefs.h >>conftest.$ac_ext
3523 cat >>conftest.$ac_ext <<_ACEOF
3524 /* end confdefs.h.  */
3525 #include <stdlib.h>
3526 #include <stdarg.h>
3527 #include <string.h>
3528 #include <float.h>
3529
3530 int
3531 main ()
3532 {
3533
3534   ;
3535   return 0;
3536 }
3537 _ACEOF
3538 rm -f conftest.$ac_objext
3539 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3540   (eval $ac_compile) 2>conftest.er1
3541   ac_status=$?
3542   grep -v '^ *+' conftest.er1 >conftest.err
3543   rm -f conftest.er1
3544   cat conftest.err >&5
3545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3546   (exit $ac_status); } &&
3547          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3548   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3549   (eval $ac_try) 2>&5
3550   ac_status=$?
3551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3552   (exit $ac_status); }; } &&
3553          { ac_try='test -s conftest.$ac_objext'
3554   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3555   (eval $ac_try) 2>&5
3556   ac_status=$?
3557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3558   (exit $ac_status); }; }; then
3559   ac_cv_header_stdc=yes
3560 else
3561   echo "$as_me: failed program was:" >&5
3562 sed 's/^/| /' conftest.$ac_ext >&5
3563
3564 ac_cv_header_stdc=no
3565 fi
3566 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3567
3568 if test $ac_cv_header_stdc = yes; then
3569   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3570   cat >conftest.$ac_ext <<_ACEOF
3571 /* confdefs.h.  */
3572 _ACEOF
3573 cat confdefs.h >>conftest.$ac_ext
3574 cat >>conftest.$ac_ext <<_ACEOF
3575 /* end confdefs.h.  */
3576 #include <string.h>
3577
3578 _ACEOF
3579 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3580   $EGREP "memchr" >/dev/null 2>&1; then
3581   :
3582 else
3583   ac_cv_header_stdc=no
3584 fi
3585 rm -f conftest*
3586
3587 fi
3588
3589 if test $ac_cv_header_stdc = yes; then
3590   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3591   cat >conftest.$ac_ext <<_ACEOF
3592 /* confdefs.h.  */
3593 _ACEOF
3594 cat confdefs.h >>conftest.$ac_ext
3595 cat >>conftest.$ac_ext <<_ACEOF
3596 /* end confdefs.h.  */
3597 #include <stdlib.h>
3598
3599 _ACEOF
3600 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3601   $EGREP "free" >/dev/null 2>&1; then
3602   :
3603 else
3604   ac_cv_header_stdc=no
3605 fi
3606 rm -f conftest*
3607
3608 fi
3609
3610 if test $ac_cv_header_stdc = yes; then
3611   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3612   if test "$cross_compiling" = yes; then
3613   :
3614 else
3615   cat >conftest.$ac_ext <<_ACEOF
3616 /* confdefs.h.  */
3617 _ACEOF
3618 cat confdefs.h >>conftest.$ac_ext
3619 cat >>conftest.$ac_ext <<_ACEOF
3620 /* end confdefs.h.  */
3621 #include <ctype.h>
3622 #if ((' ' & 0x0FF) == 0x020)
3623 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3624 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3625 #else
3626 # define ISLOWER(c) \
3627                    (('a' <= (c) && (c) <= 'i') \
3628                      || ('j' <= (c) && (c) <= 'r') \
3629                      || ('s' <= (c) && (c) <= 'z'))
3630 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3631 #endif
3632
3633 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3634 int
3635 main ()
3636 {
3637   int i;
3638   for (i = 0; i < 256; i++)
3639     if (XOR (islower (i), ISLOWER (i))
3640         || toupper (i) != TOUPPER (i))
3641       exit(2);
3642   exit (0);
3643 }
3644 _ACEOF
3645 rm -f conftest$ac_exeext
3646 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3647   (eval $ac_link) 2>&5
3648   ac_status=$?
3649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3650   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3651   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3652   (eval $ac_try) 2>&5
3653   ac_status=$?
3654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3655   (exit $ac_status); }; }; then
3656   :
3657 else
3658   echo "$as_me: program exited with status $ac_status" >&5
3659 echo "$as_me: failed program was:" >&5
3660 sed 's/^/| /' conftest.$ac_ext >&5
3661
3662 ( exit $ac_status )
3663 ac_cv_header_stdc=no
3664 fi
3665 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3666 fi
3667 fi
3668 fi
3669 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3670 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3671 if test $ac_cv_header_stdc = yes; then
3672
3673 cat >>confdefs.h <<\_ACEOF
3674 #define STDC_HEADERS 1
3675 _ACEOF
3676
3677 fi
3678
3679 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3680
3681
3682
3683
3684
3685
3686
3687
3688
3689 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3690                   inttypes.h stdint.h unistd.h
3691 do
3692 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3693 echo "$as_me:$LINENO: checking for $ac_header" >&5
3694 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3695 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3696   echo $ECHO_N "(cached) $ECHO_C" >&6
3697 else
3698   cat >conftest.$ac_ext <<_ACEOF
3699 /* confdefs.h.  */
3700 _ACEOF
3701 cat confdefs.h >>conftest.$ac_ext
3702 cat >>conftest.$ac_ext <<_ACEOF
3703 /* end confdefs.h.  */
3704 $ac_includes_default
3705
3706 #include <$ac_header>
3707 _ACEOF
3708 rm -f conftest.$ac_objext
3709 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3710   (eval $ac_compile) 2>conftest.er1
3711   ac_status=$?
3712   grep -v '^ *+' conftest.er1 >conftest.err
3713   rm -f conftest.er1
3714   cat conftest.err >&5
3715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3716   (exit $ac_status); } &&
3717          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3718   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3719   (eval $ac_try) 2>&5
3720   ac_status=$?
3721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3722   (exit $ac_status); }; } &&
3723          { ac_try='test -s conftest.$ac_objext'
3724   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3725   (eval $ac_try) 2>&5
3726   ac_status=$?
3727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3728   (exit $ac_status); }; }; then
3729   eval "$as_ac_Header=yes"
3730 else
3731   echo "$as_me: failed program was:" >&5
3732 sed 's/^/| /' conftest.$ac_ext >&5
3733
3734 eval "$as_ac_Header=no"
3735 fi
3736 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3737 fi
3738 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3739 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3740 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3741   cat >>confdefs.h <<_ACEOF
3742 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3743 _ACEOF
3744
3745 fi
3746
3747 done
3748
3749
3750
3751
3752
3753
3754
3755
3756
3757
3758 for ac_header in crypt.h poll.h stdint.h sys/devpoll.h sys/epoll.h sys/event.h sys/param.h sys/socket.h
3759 do
3760 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3761 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3762   echo "$as_me:$LINENO: checking for $ac_header" >&5
3763 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3764 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3765   echo $ECHO_N "(cached) $ECHO_C" >&6
3766 fi
3767 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3768 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3769 else
3770   # Is the header compilable?
3771 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3772 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3773 cat >conftest.$ac_ext <<_ACEOF
3774 /* confdefs.h.  */
3775 _ACEOF
3776 cat confdefs.h >>conftest.$ac_ext
3777 cat >>conftest.$ac_ext <<_ACEOF
3778 /* end confdefs.h.  */
3779 $ac_includes_default
3780 #include <$ac_header>
3781 _ACEOF
3782 rm -f conftest.$ac_objext
3783 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3784   (eval $ac_compile) 2>conftest.er1
3785   ac_status=$?
3786   grep -v '^ *+' conftest.er1 >conftest.err
3787   rm -f conftest.er1
3788   cat conftest.err >&5
3789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3790   (exit $ac_status); } &&
3791          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3792   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3793   (eval $ac_try) 2>&5
3794   ac_status=$?
3795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3796   (exit $ac_status); }; } &&
3797          { ac_try='test -s conftest.$ac_objext'
3798   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3799   (eval $ac_try) 2>&5
3800   ac_status=$?
3801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3802   (exit $ac_status); }; }; then
3803   ac_header_compiler=yes
3804 else
3805   echo "$as_me: failed program was:" >&5
3806 sed 's/^/| /' conftest.$ac_ext >&5
3807
3808 ac_header_compiler=no
3809 fi
3810 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3811 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3812 echo "${ECHO_T}$ac_header_compiler" >&6
3813
3814 # Is the header present?
3815 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3816 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3817 cat >conftest.$ac_ext <<_ACEOF
3818 /* confdefs.h.  */
3819 _ACEOF
3820 cat confdefs.h >>conftest.$ac_ext
3821 cat >>conftest.$ac_ext <<_ACEOF
3822 /* end confdefs.h.  */
3823 #include <$ac_header>
3824 _ACEOF
3825 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3826   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3827   ac_status=$?
3828   grep -v '^ *+' conftest.er1 >conftest.err
3829   rm -f conftest.er1
3830   cat conftest.err >&5
3831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3832   (exit $ac_status); } >/dev/null; then
3833   if test -s conftest.err; then
3834     ac_cpp_err=$ac_c_preproc_warn_flag
3835     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3836   else
3837     ac_cpp_err=
3838   fi
3839 else
3840   ac_cpp_err=yes
3841 fi
3842 if test -z "$ac_cpp_err"; then
3843   ac_header_preproc=yes
3844 else
3845   echo "$as_me: failed program was:" >&5
3846 sed 's/^/| /' conftest.$ac_ext >&5
3847
3848   ac_header_preproc=no
3849 fi
3850 rm -f conftest.err conftest.$ac_ext
3851 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3852 echo "${ECHO_T}$ac_header_preproc" >&6
3853
3854 # So?  What about this header?
3855 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3856   yes:no: )
3857     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3858 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3859     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3860 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3861     ac_header_preproc=yes
3862     ;;
3863   no:yes:* )
3864     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3865 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3866     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
3867 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
3868     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3869 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3870     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
3871 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
3872     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3873 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3874     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3875 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3876     (
3877       cat <<\_ASBOX
3878 ## ------------------------------------------ ##
3879 ## Report this to the AC_PACKAGE_NAME lists.  ##
3880 ## ------------------------------------------ ##
3881 _ASBOX
3882     ) |
3883       sed "s/^/$as_me: WARNING:     /" >&2
3884     ;;
3885 esac
3886 echo "$as_me:$LINENO: checking for $ac_header" >&5
3887 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3888 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3889   echo $ECHO_N "(cached) $ECHO_C" >&6
3890 else
3891   eval "$as_ac_Header=\$ac_header_preproc"
3892 fi
3893 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3894 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3895
3896 fi
3897 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3898   cat >>confdefs.h <<_ACEOF
3899 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3900 _ACEOF
3901
3902 fi
3903
3904 done
3905
3906
3907 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
3908 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
3909 if test "${ac_cv_c_bigendian+set}" = set; then
3910   echo $ECHO_N "(cached) $ECHO_C" >&6
3911 else
3912   # See if sys/param.h defines the BYTE_ORDER macro.
3913 cat >conftest.$ac_ext <<_ACEOF
3914 /* confdefs.h.  */
3915 _ACEOF
3916 cat confdefs.h >>conftest.$ac_ext
3917 cat >>conftest.$ac_ext <<_ACEOF
3918 /* end confdefs.h.  */
3919 #include <sys/types.h>
3920 #include <sys/param.h>
3921
3922 int
3923 main ()
3924 {
3925 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3926  bogus endian macros
3927 #endif
3928
3929   ;
3930   return 0;
3931 }
3932 _ACEOF
3933 rm -f conftest.$ac_objext
3934 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3935   (eval $ac_compile) 2>conftest.er1
3936   ac_status=$?
3937   grep -v '^ *+' conftest.er1 >conftest.err
3938   rm -f conftest.er1
3939   cat conftest.err >&5
3940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3941   (exit $ac_status); } &&
3942          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3943   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3944   (eval $ac_try) 2>&5
3945   ac_status=$?
3946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3947   (exit $ac_status); }; } &&
3948          { ac_try='test -s conftest.$ac_objext'
3949   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3950   (eval $ac_try) 2>&5
3951   ac_status=$?
3952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3953   (exit $ac_status); }; }; then
3954   # It does; now see whether it defined to BIG_ENDIAN or not.
3955 cat >conftest.$ac_ext <<_ACEOF
3956 /* confdefs.h.  */
3957 _ACEOF
3958 cat confdefs.h >>conftest.$ac_ext
3959 cat >>conftest.$ac_ext <<_ACEOF
3960 /* end confdefs.h.  */
3961 #include <sys/types.h>
3962 #include <sys/param.h>
3963
3964 int
3965 main ()
3966 {
3967 #if BYTE_ORDER != BIG_ENDIAN
3968  not big endian
3969 #endif
3970
3971   ;
3972   return 0;
3973 }
3974 _ACEOF
3975 rm -f conftest.$ac_objext
3976 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3977   (eval $ac_compile) 2>conftest.er1
3978   ac_status=$?
3979   grep -v '^ *+' conftest.er1 >conftest.err
3980   rm -f conftest.er1
3981   cat conftest.err >&5
3982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3983   (exit $ac_status); } &&
3984          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3985   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3986   (eval $ac_try) 2>&5
3987   ac_status=$?
3988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3989   (exit $ac_status); }; } &&
3990          { ac_try='test -s conftest.$ac_objext'
3991   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3992   (eval $ac_try) 2>&5
3993   ac_status=$?
3994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3995   (exit $ac_status); }; }; then
3996   ac_cv_c_bigendian=yes
3997 else
3998   echo "$as_me: failed program was:" >&5
3999 sed 's/^/| /' conftest.$ac_ext >&5
4000
4001 ac_cv_c_bigendian=no
4002 fi
4003 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4004 else
4005   echo "$as_me: failed program was:" >&5
4006 sed 's/^/| /' conftest.$ac_ext >&5
4007
4008 # It does not; compile a test program.
4009 if test "$cross_compiling" = yes; then
4010   # try to guess the endianness by grepping values into an object file
4011   ac_cv_c_bigendian=unknown
4012   cat >conftest.$ac_ext <<_ACEOF
4013 /* confdefs.h.  */
4014 _ACEOF
4015 cat confdefs.h >>conftest.$ac_ext
4016 cat >>conftest.$ac_ext <<_ACEOF
4017 /* end confdefs.h.  */
4018 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4019 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4020 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4021 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4022 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4023 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4024 int
4025 main ()
4026 {
4027  _ascii (); _ebcdic ();
4028   ;
4029   return 0;
4030 }
4031 _ACEOF
4032 rm -f conftest.$ac_objext
4033 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4034   (eval $ac_compile) 2>conftest.er1
4035   ac_status=$?
4036   grep -v '^ *+' conftest.er1 >conftest.err
4037   rm -f conftest.er1
4038   cat conftest.err >&5
4039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4040   (exit $ac_status); } &&
4041          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4042   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4043   (eval $ac_try) 2>&5
4044   ac_status=$?
4045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4046   (exit $ac_status); }; } &&
4047          { ac_try='test -s conftest.$ac_objext'
4048   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4049   (eval $ac_try) 2>&5
4050   ac_status=$?
4051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4052   (exit $ac_status); }; }; then
4053   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4054   ac_cv_c_bigendian=yes
4055 fi
4056 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4057   if test "$ac_cv_c_bigendian" = unknown; then
4058     ac_cv_c_bigendian=no
4059   else
4060     # finding both strings is unlikely to happen, but who knows?
4061     ac_cv_c_bigendian=unknown
4062   fi
4063 fi
4064 else
4065   echo "$as_me: failed program was:" >&5
4066 sed 's/^/| /' conftest.$ac_ext >&5
4067
4068 fi
4069 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4070 else
4071   cat >conftest.$ac_ext <<_ACEOF
4072 /* confdefs.h.  */
4073 _ACEOF
4074 cat confdefs.h >>conftest.$ac_ext
4075 cat >>conftest.$ac_ext <<_ACEOF
4076 /* end confdefs.h.  */
4077 int
4078 main ()
4079 {
4080   /* Are we little or big endian?  From Harbison&Steele.  */
4081   union
4082   {
4083     long l;
4084     char c[sizeof (long)];
4085   } u;
4086   u.l = 1;
4087   exit (u.c[sizeof (long) - 1] == 1);
4088 }
4089 _ACEOF
4090 rm -f conftest$ac_exeext
4091 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4092   (eval $ac_link) 2>&5
4093   ac_status=$?
4094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4095   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4096   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4097   (eval $ac_try) 2>&5
4098   ac_status=$?
4099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4100   (exit $ac_status); }; }; then
4101   ac_cv_c_bigendian=no
4102 else
4103   echo "$as_me: program exited with status $ac_status" >&5
4104 echo "$as_me: failed program was:" >&5
4105 sed 's/^/| /' conftest.$ac_ext >&5
4106
4107 ( exit $ac_status )
4108 ac_cv_c_bigendian=yes
4109 fi
4110 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4111 fi
4112 fi
4113 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4114 fi
4115 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4116 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
4117 case $ac_cv_c_bigendian in
4118   yes)
4119
4120 cat >>confdefs.h <<\_ACEOF
4121 #define WORDS_BIGENDIAN 1
4122 _ACEOF
4123  ;;
4124   no)
4125      ;;
4126   *)
4127     { { echo "$as_me:$LINENO: error: unknown endianness
4128 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4129 echo "$as_me: error: unknown endianness
4130 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4131    { (exit 1); exit 1; }; } ;;
4132 esac
4133
4134 echo "$as_me:$LINENO: checking for size_t" >&5
4135 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
4136 if test "${ac_cv_type_size_t+set}" = set; then
4137   echo $ECHO_N "(cached) $ECHO_C" >&6
4138 else
4139   cat >conftest.$ac_ext <<_ACEOF
4140 /* confdefs.h.  */
4141 _ACEOF
4142 cat confdefs.h >>conftest.$ac_ext
4143 cat >>conftest.$ac_ext <<_ACEOF
4144 /* end confdefs.h.  */
4145 $ac_includes_default
4146 int
4147 main ()
4148 {
4149 if ((size_t *) 0)
4150   return 0;
4151 if (sizeof (size_t))
4152   return 0;
4153   ;
4154   return 0;
4155 }
4156 _ACEOF
4157 rm -f conftest.$ac_objext
4158 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4159   (eval $ac_compile) 2>conftest.er1
4160   ac_status=$?
4161   grep -v '^ *+' conftest.er1 >conftest.err
4162   rm -f conftest.er1
4163   cat conftest.err >&5
4164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4165   (exit $ac_status); } &&
4166          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4167   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4168   (eval $ac_try) 2>&5
4169   ac_status=$?
4170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4171   (exit $ac_status); }; } &&
4172          { ac_try='test -s conftest.$ac_objext'
4173   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4174   (eval $ac_try) 2>&5
4175   ac_status=$?
4176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4177   (exit $ac_status); }; }; then
4178   ac_cv_type_size_t=yes
4179 else
4180   echo "$as_me: failed program was:" >&5
4181 sed 's/^/| /' conftest.$ac_ext >&5
4182
4183 ac_cv_type_size_t=no
4184 fi
4185 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4186 fi
4187 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
4188 echo "${ECHO_T}$ac_cv_type_size_t" >&6
4189 if test $ac_cv_type_size_t = yes; then
4190   :
4191 else
4192
4193 cat >>confdefs.h <<_ACEOF
4194 #define size_t unsigned
4195 _ACEOF
4196
4197 fi
4198
4199 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
4200 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
4201 if test "${ac_cv_header_time+set}" = set; then
4202   echo $ECHO_N "(cached) $ECHO_C" >&6
4203 else
4204   cat >conftest.$ac_ext <<_ACEOF
4205 /* confdefs.h.  */
4206 _ACEOF
4207 cat confdefs.h >>conftest.$ac_ext
4208 cat >>conftest.$ac_ext <<_ACEOF
4209 /* end confdefs.h.  */
4210 #include <sys/types.h>
4211 #include <sys/time.h>
4212 #include <time.h>
4213
4214 int
4215 main ()
4216 {
4217 if ((struct tm *) 0)
4218 return 0;
4219   ;
4220   return 0;
4221 }
4222 _ACEOF
4223 rm -f conftest.$ac_objext
4224 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4225   (eval $ac_compile) 2>conftest.er1
4226   ac_status=$?
4227   grep -v '^ *+' conftest.er1 >conftest.err
4228   rm -f conftest.er1
4229   cat conftest.err >&5
4230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4231   (exit $ac_status); } &&
4232          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4233   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4234   (eval $ac_try) 2>&5
4235   ac_status=$?
4236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4237   (exit $ac_status); }; } &&
4238          { ac_try='test -s conftest.$ac_objext'
4239   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4240   (eval $ac_try) 2>&5
4241   ac_status=$?
4242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4243   (exit $ac_status); }; }; then
4244   ac_cv_header_time=yes
4245 else
4246   echo "$as_me: failed program was:" >&5
4247 sed 's/^/| /' conftest.$ac_ext >&5
4248
4249 ac_cv_header_time=no
4250 fi
4251 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4252 fi
4253 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
4254 echo "${ECHO_T}$ac_cv_header_time" >&6
4255 if test $ac_cv_header_time = yes; then
4256
4257 cat >>confdefs.h <<\_ACEOF
4258 #define TIME_WITH_SYS_TIME 1
4259 _ACEOF
4260
4261 fi
4262
4263 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
4264 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
4265 if test "${ac_cv_struct_tm+set}" = set; then
4266   echo $ECHO_N "(cached) $ECHO_C" >&6
4267 else
4268   cat >conftest.$ac_ext <<_ACEOF
4269 /* confdefs.h.  */
4270 _ACEOF
4271 cat confdefs.h >>conftest.$ac_ext
4272 cat >>conftest.$ac_ext <<_ACEOF
4273 /* end confdefs.h.  */
4274 #include <sys/types.h>
4275 #include <time.h>
4276
4277 int
4278 main ()
4279 {
4280 struct tm *tp; tp->tm_sec;
4281   ;
4282   return 0;
4283 }
4284 _ACEOF
4285 rm -f conftest.$ac_objext
4286 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4287   (eval $ac_compile) 2>conftest.er1
4288   ac_status=$?
4289   grep -v '^ *+' conftest.er1 >conftest.err
4290   rm -f conftest.er1
4291   cat conftest.err >&5
4292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4293   (exit $ac_status); } &&
4294          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4295   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4296   (eval $ac_try) 2>&5
4297   ac_status=$?
4298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4299   (exit $ac_status); }; } &&
4300          { ac_try='test -s conftest.$ac_objext'
4301   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4302   (eval $ac_try) 2>&5
4303   ac_status=$?
4304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4305   (exit $ac_status); }; }; then
4306   ac_cv_struct_tm=time.h
4307 else
4308   echo "$as_me: failed program was:" >&5
4309 sed 's/^/| /' conftest.$ac_ext >&5
4310
4311 ac_cv_struct_tm=sys/time.h
4312 fi
4313 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4314 fi
4315 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
4316 echo "${ECHO_T}$ac_cv_struct_tm" >&6
4317 if test $ac_cv_struct_tm = sys/time.h; then
4318
4319 cat >>confdefs.h <<\_ACEOF
4320 #define TM_IN_SYS_TIME 1
4321 _ACEOF
4322
4323 fi
4324
4325 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
4326 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
4327 if test "${ac_cv_type_uid_t+set}" = set; then
4328   echo $ECHO_N "(cached) $ECHO_C" >&6
4329 else
4330   cat >conftest.$ac_ext <<_ACEOF
4331 /* confdefs.h.  */
4332 _ACEOF
4333 cat confdefs.h >>conftest.$ac_ext
4334 cat >>conftest.$ac_ext <<_ACEOF
4335 /* end confdefs.h.  */
4336 #include <sys/types.h>
4337
4338 _ACEOF
4339 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4340   $EGREP "uid_t" >/dev/null 2>&1; then
4341   ac_cv_type_uid_t=yes
4342 else
4343   ac_cv_type_uid_t=no
4344 fi
4345 rm -f conftest*
4346
4347 fi
4348 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
4349 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
4350 if test $ac_cv_type_uid_t = no; then
4351
4352 cat >>confdefs.h <<\_ACEOF
4353 #define uid_t int
4354 _ACEOF
4355
4356
4357 cat >>confdefs.h <<\_ACEOF
4358 #define gid_t int
4359 _ACEOF
4360
4361 fi
4362
4363 echo "$as_me:$LINENO: checking for short" >&5
4364 echo $ECHO_N "checking for short... $ECHO_C" >&6
4365 if test "${ac_cv_type_short+set}" = set; then
4366   echo $ECHO_N "(cached) $ECHO_C" >&6
4367 else
4368   cat >conftest.$ac_ext <<_ACEOF
4369 /* confdefs.h.  */
4370 _ACEOF
4371 cat confdefs.h >>conftest.$ac_ext
4372 cat >>conftest.$ac_ext <<_ACEOF
4373 /* end confdefs.h.  */
4374 $ac_includes_default
4375 int
4376 main ()
4377 {
4378 if ((short *) 0)
4379   return 0;
4380 if (sizeof (short))
4381   return 0;
4382   ;
4383   return 0;
4384 }
4385 _ACEOF
4386 rm -f conftest.$ac_objext
4387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4388   (eval $ac_compile) 2>conftest.er1
4389   ac_status=$?
4390   grep -v '^ *+' conftest.er1 >conftest.err
4391   rm -f conftest.er1
4392   cat conftest.err >&5
4393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4394   (exit $ac_status); } &&
4395          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4396   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4397   (eval $ac_try) 2>&5
4398   ac_status=$?
4399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4400   (exit $ac_status); }; } &&
4401          { ac_try='test -s conftest.$ac_objext'
4402   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4403   (eval $ac_try) 2>&5
4404   ac_status=$?
4405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4406   (exit $ac_status); }; }; then
4407   ac_cv_type_short=yes
4408 else
4409   echo "$as_me: failed program was:" >&5
4410 sed 's/^/| /' conftest.$ac_ext >&5
4411
4412 ac_cv_type_short=no
4413 fi
4414 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4415 fi
4416 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
4417 echo "${ECHO_T}$ac_cv_type_short" >&6
4418
4419 echo "$as_me:$LINENO: checking size of short" >&5
4420 echo $ECHO_N "checking size of short... $ECHO_C" >&6
4421 if test "${ac_cv_sizeof_short+set}" = set; then
4422   echo $ECHO_N "(cached) $ECHO_C" >&6
4423 else
4424   if test "$ac_cv_type_short" = yes; then
4425   # The cast to unsigned long works around a bug in the HP C Compiler
4426   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4427   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4428   # This bug is HP SR number 8606223364.
4429   if test "$cross_compiling" = yes; then
4430   # Depending upon the size, compute the lo and hi bounds.
4431 cat >conftest.$ac_ext <<_ACEOF
4432 /* confdefs.h.  */
4433 _ACEOF
4434 cat confdefs.h >>conftest.$ac_ext
4435 cat >>conftest.$ac_ext <<_ACEOF
4436 /* end confdefs.h.  */
4437 $ac_includes_default
4438 int
4439 main ()
4440 {
4441 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
4442 test_array [0] = 0
4443
4444   ;
4445   return 0;
4446 }
4447 _ACEOF
4448 rm -f conftest.$ac_objext
4449 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4450   (eval $ac_compile) 2>conftest.er1
4451   ac_status=$?
4452   grep -v '^ *+' conftest.er1 >conftest.err
4453   rm -f conftest.er1
4454   cat conftest.err >&5
4455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4456   (exit $ac_status); } &&
4457          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4458   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4459   (eval $ac_try) 2>&5
4460   ac_status=$?
4461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4462   (exit $ac_status); }; } &&
4463          { ac_try='test -s conftest.$ac_objext'
4464   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4465   (eval $ac_try) 2>&5
4466   ac_status=$?
4467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4468   (exit $ac_status); }; }; then
4469   ac_lo=0 ac_mid=0
4470   while :; do
4471     cat >conftest.$ac_ext <<_ACEOF
4472 /* confdefs.h.  */
4473 _ACEOF
4474 cat confdefs.h >>conftest.$ac_ext
4475 cat >>conftest.$ac_ext <<_ACEOF
4476 /* end confdefs.h.  */
4477 $ac_includes_default
4478 int
4479 main ()
4480 {
4481 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4482 test_array [0] = 0
4483
4484   ;
4485   return 0;
4486 }
4487 _ACEOF
4488 rm -f conftest.$ac_objext
4489 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4490   (eval $ac_compile) 2>conftest.er1
4491   ac_status=$?
4492   grep -v '^ *+' conftest.er1 >conftest.err
4493   rm -f conftest.er1
4494   cat conftest.err >&5
4495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4496   (exit $ac_status); } &&
4497          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4498   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4499   (eval $ac_try) 2>&5
4500   ac_status=$?
4501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4502   (exit $ac_status); }; } &&
4503          { ac_try='test -s conftest.$ac_objext'
4504   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4505   (eval $ac_try) 2>&5
4506   ac_status=$?
4507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4508   (exit $ac_status); }; }; then
4509   ac_hi=$ac_mid; break
4510 else
4511   echo "$as_me: failed program was:" >&5
4512 sed 's/^/| /' conftest.$ac_ext >&5
4513
4514 ac_lo=`expr $ac_mid + 1`
4515                     if test $ac_lo -le $ac_mid; then
4516                       ac_lo= ac_hi=
4517                       break
4518                     fi
4519                     ac_mid=`expr 2 '*' $ac_mid + 1`
4520 fi
4521 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4522   done
4523 else
4524   echo "$as_me: failed program was:" >&5
4525 sed 's/^/| /' conftest.$ac_ext >&5
4526
4527 cat >conftest.$ac_ext <<_ACEOF
4528 /* confdefs.h.  */
4529 _ACEOF
4530 cat confdefs.h >>conftest.$ac_ext
4531 cat >>conftest.$ac_ext <<_ACEOF
4532 /* end confdefs.h.  */
4533 $ac_includes_default
4534 int
4535 main ()
4536 {
4537 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
4538 test_array [0] = 0
4539
4540   ;
4541   return 0;
4542 }
4543 _ACEOF
4544 rm -f conftest.$ac_objext
4545 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4546   (eval $ac_compile) 2>conftest.er1
4547   ac_status=$?
4548   grep -v '^ *+' conftest.er1 >conftest.err
4549   rm -f conftest.er1
4550   cat conftest.err >&5
4551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4552   (exit $ac_status); } &&
4553          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4554   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4555   (eval $ac_try) 2>&5
4556   ac_status=$?
4557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4558   (exit $ac_status); }; } &&
4559          { ac_try='test -s conftest.$ac_objext'
4560   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4561   (eval $ac_try) 2>&5
4562   ac_status=$?
4563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4564   (exit $ac_status); }; }; then
4565   ac_hi=-1 ac_mid=-1
4566   while :; do
4567     cat >conftest.$ac_ext <<_ACEOF
4568 /* confdefs.h.  */
4569 _ACEOF
4570 cat confdefs.h >>conftest.$ac_ext
4571 cat >>conftest.$ac_ext <<_ACEOF
4572 /* end confdefs.h.  */
4573 $ac_includes_default
4574 int
4575 main ()
4576 {
4577 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
4578 test_array [0] = 0
4579
4580   ;
4581   return 0;
4582 }
4583 _ACEOF
4584 rm -f conftest.$ac_objext
4585 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4586   (eval $ac_compile) 2>conftest.er1
4587   ac_status=$?
4588   grep -v '^ *+' conftest.er1 >conftest.err
4589   rm -f conftest.er1
4590   cat conftest.err >&5
4591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4592   (exit $ac_status); } &&
4593          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4594   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4595   (eval $ac_try) 2>&5
4596   ac_status=$?
4597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4598   (exit $ac_status); }; } &&
4599          { ac_try='test -s conftest.$ac_objext'
4600   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4601   (eval $ac_try) 2>&5
4602   ac_status=$?
4603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4604   (exit $ac_status); }; }; then
4605   ac_lo=$ac_mid; break
4606 else
4607   echo "$as_me: failed program was:" >&5
4608 sed 's/^/| /' conftest.$ac_ext >&5
4609
4610 ac_hi=`expr '(' $ac_mid ')' - 1`
4611                        if test $ac_mid -le $ac_hi; then
4612                          ac_lo= ac_hi=
4613                          break
4614                        fi
4615                        ac_mid=`expr 2 '*' $ac_mid`
4616 fi
4617 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4618   done
4619 else
4620   echo "$as_me: failed program was:" >&5
4621 sed 's/^/| /' conftest.$ac_ext >&5
4622
4623 ac_lo= ac_hi=
4624 fi
4625 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4626 fi
4627 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4628 # Binary search between lo and hi bounds.
4629 while test "x$ac_lo" != "x$ac_hi"; do
4630   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4631   cat >conftest.$ac_ext <<_ACEOF
4632 /* confdefs.h.  */
4633 _ACEOF
4634 cat confdefs.h >>conftest.$ac_ext
4635 cat >>conftest.$ac_ext <<_ACEOF
4636 /* end confdefs.h.  */
4637 $ac_includes_default
4638 int
4639 main ()
4640 {
4641 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4642 test_array [0] = 0
4643
4644   ;
4645   return 0;
4646 }
4647 _ACEOF
4648 rm -f conftest.$ac_objext
4649 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4650   (eval $ac_compile) 2>conftest.er1
4651   ac_status=$?
4652   grep -v '^ *+' conftest.er1 >conftest.err
4653   rm -f conftest.er1
4654   cat conftest.err >&5
4655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4656   (exit $ac_status); } &&
4657          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4658   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4659   (eval $ac_try) 2>&5
4660   ac_status=$?
4661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4662   (exit $ac_status); }; } &&
4663          { ac_try='test -s conftest.$ac_objext'
4664   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4665   (eval $ac_try) 2>&5
4666   ac_status=$?
4667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4668   (exit $ac_status); }; }; then
4669   ac_hi=$ac_mid
4670 else
4671   echo "$as_me: failed program was:" >&5
4672 sed 's/^/| /' conftest.$ac_ext >&5
4673
4674 ac_lo=`expr '(' $ac_mid ')' + 1`
4675 fi
4676 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4677 done
4678 case $ac_lo in
4679 ?*) ac_cv_sizeof_short=$ac_lo;;
4680 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4681 See \`config.log' for more details." >&5
4682 echo "$as_me: error: cannot compute sizeof (short), 77
4683 See \`config.log' for more details." >&2;}
4684    { (exit 1); exit 1; }; } ;;
4685 esac
4686 else
4687   if test "$cross_compiling" = yes; then
4688   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
4689 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
4690    { (exit 1); exit 1; }; }
4691 else
4692   cat >conftest.$ac_ext <<_ACEOF
4693 /* confdefs.h.  */
4694 _ACEOF
4695 cat confdefs.h >>conftest.$ac_ext
4696 cat >>conftest.$ac_ext <<_ACEOF
4697 /* end confdefs.h.  */
4698 $ac_includes_default
4699 long longval () { return (long) (sizeof (short)); }
4700 unsigned long ulongval () { return (long) (sizeof (short)); }
4701 #include <stdio.h>
4702 #include <stdlib.h>
4703 int
4704 main ()
4705 {
4706
4707   FILE *f = fopen ("conftest.val", "w");
4708   if (! f)
4709     exit (1);
4710   if (((long) (sizeof (short))) < 0)
4711     {
4712       long i = longval ();
4713       if (i != ((long) (sizeof (short))))
4714         exit (1);
4715       fprintf (f, "%ld\n", i);
4716     }
4717   else
4718     {
4719       unsigned long i = ulongval ();
4720       if (i != ((long) (sizeof (short))))
4721         exit (1);
4722       fprintf (f, "%lu\n", i);
4723     }
4724   exit (ferror (f) || fclose (f) != 0);
4725
4726   ;
4727   return 0;
4728 }
4729 _ACEOF
4730 rm -f conftest$ac_exeext
4731 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4732   (eval $ac_link) 2>&5
4733   ac_status=$?
4734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4735   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4736   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4737   (eval $ac_try) 2>&5
4738   ac_status=$?
4739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4740   (exit $ac_status); }; }; then
4741   ac_cv_sizeof_short=`cat conftest.val`
4742 else
4743   echo "$as_me: program exited with status $ac_status" >&5
4744 echo "$as_me: failed program was:" >&5
4745 sed 's/^/| /' conftest.$ac_ext >&5
4746
4747 ( exit $ac_status )
4748 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4749 See \`config.log' for more details." >&5
4750 echo "$as_me: error: cannot compute sizeof (short), 77
4751 See \`config.log' for more details." >&2;}
4752    { (exit 1); exit 1; }; }
4753 fi
4754 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4755 fi
4756 fi
4757 rm -f conftest.val
4758 else
4759   ac_cv_sizeof_short=0
4760 fi
4761 fi
4762 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
4763 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
4764 cat >>confdefs.h <<_ACEOF
4765 #define SIZEOF_SHORT $ac_cv_sizeof_short
4766 _ACEOF
4767
4768
4769 echo "$as_me:$LINENO: checking for int" >&5
4770 echo $ECHO_N "checking for int... $ECHO_C" >&6
4771 if test "${ac_cv_type_int+set}" = set; then
4772   echo $ECHO_N "(cached) $ECHO_C" >&6
4773 else
4774   cat >conftest.$ac_ext <<_ACEOF
4775 /* confdefs.h.  */
4776 _ACEOF
4777 cat confdefs.h >>conftest.$ac_ext
4778 cat >>conftest.$ac_ext <<_ACEOF
4779 /* end confdefs.h.  */
4780 $ac_includes_default
4781 int
4782 main ()
4783 {
4784 if ((int *) 0)
4785   return 0;
4786 if (sizeof (int))
4787   return 0;
4788   ;
4789   return 0;
4790 }
4791 _ACEOF
4792 rm -f conftest.$ac_objext
4793 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4794   (eval $ac_compile) 2>conftest.er1
4795   ac_status=$?
4796   grep -v '^ *+' conftest.er1 >conftest.err
4797   rm -f conftest.er1
4798   cat conftest.err >&5
4799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4800   (exit $ac_status); } &&
4801          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4802   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4803   (eval $ac_try) 2>&5
4804   ac_status=$?
4805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4806   (exit $ac_status); }; } &&
4807          { ac_try='test -s conftest.$ac_objext'
4808   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4809   (eval $ac_try) 2>&5
4810   ac_status=$?
4811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4812   (exit $ac_status); }; }; then
4813   ac_cv_type_int=yes
4814 else
4815   echo "$as_me: failed program was:" >&5
4816 sed 's/^/| /' conftest.$ac_ext >&5
4817
4818 ac_cv_type_int=no
4819 fi
4820 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4821 fi
4822 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
4823 echo "${ECHO_T}$ac_cv_type_int" >&6
4824
4825 echo "$as_me:$LINENO: checking size of int" >&5
4826 echo $ECHO_N "checking size of int... $ECHO_C" >&6
4827 if test "${ac_cv_sizeof_int+set}" = set; then
4828   echo $ECHO_N "(cached) $ECHO_C" >&6
4829 else
4830   if test "$ac_cv_type_int" = yes; then
4831   # The cast to unsigned long works around a bug in the HP C Compiler
4832   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4833   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4834   # This bug is HP SR number 8606223364.
4835   if test "$cross_compiling" = yes; then
4836   # Depending upon the size, compute the lo and hi bounds.
4837 cat >conftest.$ac_ext <<_ACEOF
4838 /* confdefs.h.  */
4839 _ACEOF
4840 cat confdefs.h >>conftest.$ac_ext
4841 cat >>conftest.$ac_ext <<_ACEOF
4842 /* end confdefs.h.  */
4843 $ac_includes_default
4844 int
4845 main ()
4846 {
4847 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
4848 test_array [0] = 0
4849
4850   ;
4851   return 0;
4852 }
4853 _ACEOF
4854 rm -f conftest.$ac_objext
4855 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4856   (eval $ac_compile) 2>conftest.er1
4857   ac_status=$?
4858   grep -v '^ *+' conftest.er1 >conftest.err
4859   rm -f conftest.er1
4860   cat conftest.err >&5
4861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4862   (exit $ac_status); } &&
4863          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4864   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4865   (eval $ac_try) 2>&5
4866   ac_status=$?
4867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4868   (exit $ac_status); }; } &&
4869          { ac_try='test -s conftest.$ac_objext'
4870   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4871   (eval $ac_try) 2>&5
4872   ac_status=$?
4873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4874   (exit $ac_status); }; }; then
4875   ac_lo=0 ac_mid=0
4876   while :; do
4877     cat >conftest.$ac_ext <<_ACEOF
4878 /* confdefs.h.  */
4879 _ACEOF
4880 cat confdefs.h >>conftest.$ac_ext
4881 cat >>conftest.$ac_ext <<_ACEOF
4882 /* end confdefs.h.  */
4883 $ac_includes_default
4884 int
4885 main ()
4886 {
4887 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4888 test_array [0] = 0
4889
4890   ;
4891   return 0;
4892 }
4893 _ACEOF
4894 rm -f conftest.$ac_objext
4895 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4896   (eval $ac_compile) 2>conftest.er1
4897   ac_status=$?
4898   grep -v '^ *+' conftest.er1 >conftest.err
4899   rm -f conftest.er1
4900   cat conftest.err >&5
4901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4902   (exit $ac_status); } &&
4903          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4904   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4905   (eval $ac_try) 2>&5
4906   ac_status=$?
4907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4908   (exit $ac_status); }; } &&
4909          { ac_try='test -s conftest.$ac_objext'
4910   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4911   (eval $ac_try) 2>&5
4912   ac_status=$?
4913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4914   (exit $ac_status); }; }; then
4915   ac_hi=$ac_mid; break
4916 else
4917   echo "$as_me: failed program was:" >&5
4918 sed 's/^/| /' conftest.$ac_ext >&5
4919
4920 ac_lo=`expr $ac_mid + 1`
4921                     if test $ac_lo -le $ac_mid; then
4922                       ac_lo= ac_hi=
4923                       break
4924                     fi
4925                     ac_mid=`expr 2 '*' $ac_mid + 1`
4926 fi
4927 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4928   done
4929 else
4930   echo "$as_me: failed program was:" >&5
4931 sed 's/^/| /' conftest.$ac_ext >&5
4932
4933 cat >conftest.$ac_ext <<_ACEOF
4934 /* confdefs.h.  */
4935 _ACEOF
4936 cat confdefs.h >>conftest.$ac_ext
4937 cat >>conftest.$ac_ext <<_ACEOF
4938 /* end confdefs.h.  */
4939 $ac_includes_default
4940 int
4941 main ()
4942 {
4943 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
4944 test_array [0] = 0
4945
4946   ;
4947   return 0;
4948 }
4949 _ACEOF
4950 rm -f conftest.$ac_objext
4951 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4952   (eval $ac_compile) 2>conftest.er1
4953   ac_status=$?
4954   grep -v '^ *+' conftest.er1 >conftest.err
4955   rm -f conftest.er1
4956   cat conftest.err >&5
4957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4958   (exit $ac_status); } &&
4959          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4960   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4961   (eval $ac_try) 2>&5
4962   ac_status=$?
4963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4964   (exit $ac_status); }; } &&
4965          { ac_try='test -s conftest.$ac_objext'
4966   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4967   (eval $ac_try) 2>&5
4968   ac_status=$?
4969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4970   (exit $ac_status); }; }; then
4971   ac_hi=-1 ac_mid=-1
4972   while :; do
4973     cat >conftest.$ac_ext <<_ACEOF
4974 /* confdefs.h.  */
4975 _ACEOF
4976 cat confdefs.h >>conftest.$ac_ext
4977 cat >>conftest.$ac_ext <<_ACEOF
4978 /* end confdefs.h.  */
4979 $ac_includes_default
4980 int
4981 main ()
4982 {
4983 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
4984 test_array [0] = 0
4985
4986   ;
4987   return 0;
4988 }
4989 _ACEOF
4990 rm -f conftest.$ac_objext
4991 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4992   (eval $ac_compile) 2>conftest.er1
4993   ac_status=$?
4994   grep -v '^ *+' conftest.er1 >conftest.err
4995   rm -f conftest.er1
4996   cat conftest.err >&5
4997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4998   (exit $ac_status); } &&
4999          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5000   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5001   (eval $ac_try) 2>&5
5002   ac_status=$?
5003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5004   (exit $ac_status); }; } &&
5005          { ac_try='test -s conftest.$ac_objext'
5006   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5007   (eval $ac_try) 2>&5
5008   ac_status=$?
5009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5010   (exit $ac_status); }; }; then
5011   ac_lo=$ac_mid; break
5012 else
5013   echo "$as_me: failed program was:" >&5
5014 sed 's/^/| /' conftest.$ac_ext >&5
5015
5016 ac_hi=`expr '(' $ac_mid ')' - 1`
5017                        if test $ac_mid -le $ac_hi; then
5018                          ac_lo= ac_hi=
5019                          break
5020                        fi
5021                        ac_mid=`expr 2 '*' $ac_mid`
5022 fi
5023 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5024   done
5025 else
5026   echo "$as_me: failed program was:" >&5
5027 sed 's/^/| /' conftest.$ac_ext >&5
5028
5029 ac_lo= ac_hi=
5030 fi
5031 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5032 fi
5033 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5034 # Binary search between lo and hi bounds.
5035 while test "x$ac_lo" != "x$ac_hi"; do
5036   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5037   cat >conftest.$ac_ext <<_ACEOF
5038 /* confdefs.h.  */
5039 _ACEOF
5040 cat confdefs.h >>conftest.$ac_ext
5041 cat >>conftest.$ac_ext <<_ACEOF
5042 /* end confdefs.h.  */
5043 $ac_includes_default
5044 int
5045 main ()
5046 {
5047 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
5048 test_array [0] = 0
5049
5050   ;
5051   return 0;
5052 }
5053 _ACEOF
5054 rm -f conftest.$ac_objext
5055 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5056   (eval $ac_compile) 2>conftest.er1
5057   ac_status=$?
5058   grep -v '^ *+' conftest.er1 >conftest.err
5059   rm -f conftest.er1
5060   cat conftest.err >&5
5061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5062   (exit $ac_status); } &&
5063          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5064   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5065   (eval $ac_try) 2>&5
5066   ac_status=$?
5067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5068   (exit $ac_status); }; } &&
5069          { ac_try='test -s conftest.$ac_objext'
5070   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5071   (eval $ac_try) 2>&5
5072   ac_status=$?
5073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5074   (exit $ac_status); }; }; then
5075   ac_hi=$ac_mid
5076 else
5077   echo "$as_me: failed program was:" >&5
5078 sed 's/^/| /' conftest.$ac_ext >&5
5079
5080 ac_lo=`expr '(' $ac_mid ')' + 1`
5081 fi
5082 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5083 done
5084 case $ac_lo in
5085 ?*) ac_cv_sizeof_int=$ac_lo;;
5086 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
5087 See \`config.log' for more details." >&5
5088 echo "$as_me: error: cannot compute sizeof (int), 77
5089 See \`config.log' for more details." >&2;}
5090    { (exit 1); exit 1; }; } ;;
5091 esac
5092 else
5093   if test "$cross_compiling" = yes; then
5094   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
5095 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
5096    { (exit 1); exit 1; }; }
5097 else
5098   cat >conftest.$ac_ext <<_ACEOF
5099 /* confdefs.h.  */
5100 _ACEOF
5101 cat confdefs.h >>conftest.$ac_ext
5102 cat >>conftest.$ac_ext <<_ACEOF
5103 /* end confdefs.h.  */
5104 $ac_includes_default
5105 long longval () { return (long) (sizeof (int)); }
5106 unsigned long ulongval () { return (long) (sizeof (int)); }
5107 #include <stdio.h>
5108 #include <stdlib.h>
5109 int
5110 main ()
5111 {
5112
5113   FILE *f = fopen ("conftest.val", "w");
5114   if (! f)
5115     exit (1);
5116   if (((long) (sizeof (int))) < 0)
5117     {
5118       long i = longval ();
5119       if (i != ((long) (sizeof (int))))
5120         exit (1);
5121       fprintf (f, "%ld\n", i);
5122     }
5123   else
5124     {
5125       unsigned long i = ulongval ();
5126       if (i != ((long) (sizeof (int))))
5127         exit (1);
5128       fprintf (f, "%lu\n", i);
5129     }
5130   exit (ferror (f) || fclose (f) != 0);
5131
5132   ;
5133   return 0;
5134 }
5135 _ACEOF
5136 rm -f conftest$ac_exeext
5137 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5138   (eval $ac_link) 2>&5
5139   ac_status=$?
5140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5141   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5142   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5143   (eval $ac_try) 2>&5
5144   ac_status=$?
5145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5146   (exit $ac_status); }; }; then
5147   ac_cv_sizeof_int=`cat conftest.val`
5148 else
5149   echo "$as_me: program exited with status $ac_status" >&5
5150 echo "$as_me: failed program was:" >&5
5151 sed 's/^/| /' conftest.$ac_ext >&5
5152
5153 ( exit $ac_status )
5154 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
5155 See \`config.log' for more details." >&5
5156 echo "$as_me: error: cannot compute sizeof (int), 77
5157 See \`config.log' for more details." >&2;}
5158    { (exit 1); exit 1; }; }
5159 fi
5160 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5161 fi
5162 fi
5163 rm -f conftest.val
5164 else
5165   ac_cv_sizeof_int=0
5166 fi
5167 fi
5168 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
5169 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
5170 cat >>confdefs.h <<_ACEOF
5171 #define SIZEOF_INT $ac_cv_sizeof_int
5172 _ACEOF
5173
5174
5175 echo "$as_me:$LINENO: checking for long" >&5
5176 echo $ECHO_N "checking for long... $ECHO_C" >&6
5177 if test "${ac_cv_type_long+set}" = set; then
5178   echo $ECHO_N "(cached) $ECHO_C" >&6
5179 else
5180   cat >conftest.$ac_ext <<_ACEOF
5181 /* confdefs.h.  */
5182 _ACEOF
5183 cat confdefs.h >>conftest.$ac_ext
5184 cat >>conftest.$ac_ext <<_ACEOF
5185 /* end confdefs.h.  */
5186 $ac_includes_default
5187 int
5188 main ()
5189 {
5190 if ((long *) 0)
5191   return 0;
5192 if (sizeof (long))
5193   return 0;
5194   ;
5195   return 0;
5196 }
5197 _ACEOF
5198 rm -f conftest.$ac_objext
5199 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5200   (eval $ac_compile) 2>conftest.er1
5201   ac_status=$?
5202   grep -v '^ *+' conftest.er1 >conftest.err
5203   rm -f conftest.er1
5204   cat conftest.err >&5
5205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5206   (exit $ac_status); } &&
5207          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5208   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5209   (eval $ac_try) 2>&5
5210   ac_status=$?
5211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5212   (exit $ac_status); }; } &&
5213          { ac_try='test -s conftest.$ac_objext'
5214   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5215   (eval $ac_try) 2>&5
5216   ac_status=$?
5217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5218   (exit $ac_status); }; }; then
5219   ac_cv_type_long=yes
5220 else
5221   echo "$as_me: failed program was:" >&5
5222 sed 's/^/| /' conftest.$ac_ext >&5
5223
5224 ac_cv_type_long=no
5225 fi
5226 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5227 fi
5228 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
5229 echo "${ECHO_T}$ac_cv_type_long" >&6
5230
5231 echo "$as_me:$LINENO: checking size of long" >&5
5232 echo $ECHO_N "checking size of long... $ECHO_C" >&6
5233 if test "${ac_cv_sizeof_long+set}" = set; then
5234   echo $ECHO_N "(cached) $ECHO_C" >&6
5235 else
5236   if test "$ac_cv_type_long" = yes; then
5237   # The cast to unsigned long works around a bug in the HP C Compiler
5238   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5239   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5240   # This bug is HP SR number 8606223364.
5241   if test "$cross_compiling" = yes; then
5242   # Depending upon the size, compute the lo and hi bounds.
5243 cat >conftest.$ac_ext <<_ACEOF
5244 /* confdefs.h.  */
5245 _ACEOF
5246 cat confdefs.h >>conftest.$ac_ext
5247 cat >>conftest.$ac_ext <<_ACEOF
5248 /* end confdefs.h.  */
5249 $ac_includes_default
5250 int
5251 main ()
5252 {
5253 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
5254 test_array [0] = 0
5255
5256   ;
5257   return 0;
5258 }
5259 _ACEOF
5260 rm -f conftest.$ac_objext
5261 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5262   (eval $ac_compile) 2>conftest.er1
5263   ac_status=$?
5264   grep -v '^ *+' conftest.er1 >conftest.err
5265   rm -f conftest.er1
5266   cat conftest.err >&5
5267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5268   (exit $ac_status); } &&
5269          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5270   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5271   (eval $ac_try) 2>&5
5272   ac_status=$?
5273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5274   (exit $ac_status); }; } &&
5275          { ac_try='test -s conftest.$ac_objext'
5276   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5277   (eval $ac_try) 2>&5
5278   ac_status=$?
5279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5280   (exit $ac_status); }; }; then
5281   ac_lo=0 ac_mid=0
5282   while :; do
5283     cat >conftest.$ac_ext <<_ACEOF
5284 /* confdefs.h.  */
5285 _ACEOF
5286 cat confdefs.h >>conftest.$ac_ext
5287 cat >>conftest.$ac_ext <<_ACEOF
5288 /* end confdefs.h.  */
5289 $ac_includes_default
5290 int
5291 main ()
5292 {
5293 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5294 test_array [0] = 0
5295
5296   ;
5297   return 0;
5298 }
5299 _ACEOF
5300 rm -f conftest.$ac_objext
5301 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5302   (eval $ac_compile) 2>conftest.er1
5303   ac_status=$?
5304   grep -v '^ *+' conftest.er1 >conftest.err
5305   rm -f conftest.er1
5306   cat conftest.err >&5
5307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5308   (exit $ac_status); } &&
5309          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5310   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5311   (eval $ac_try) 2>&5
5312   ac_status=$?
5313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5314   (exit $ac_status); }; } &&
5315          { ac_try='test -s conftest.$ac_objext'
5316   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5317   (eval $ac_try) 2>&5
5318   ac_status=$?
5319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5320   (exit $ac_status); }; }; then
5321   ac_hi=$ac_mid; break
5322 else
5323   echo "$as_me: failed program was:" >&5
5324 sed 's/^/| /' conftest.$ac_ext >&5
5325
5326 ac_lo=`expr $ac_mid + 1`
5327                     if test $ac_lo -le $ac_mid; then
5328                       ac_lo= ac_hi=
5329                       break
5330                     fi
5331                     ac_mid=`expr 2 '*' $ac_mid + 1`
5332 fi
5333 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5334   done
5335 else
5336   echo "$as_me: failed program was:" >&5
5337 sed 's/^/| /' conftest.$ac_ext >&5
5338
5339 cat >conftest.$ac_ext <<_ACEOF
5340 /* confdefs.h.  */
5341 _ACEOF
5342 cat confdefs.h >>conftest.$ac_ext
5343 cat >>conftest.$ac_ext <<_ACEOF
5344 /* end confdefs.h.  */
5345 $ac_includes_default
5346 int
5347 main ()
5348 {
5349 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
5350 test_array [0] = 0
5351
5352   ;
5353   return 0;
5354 }
5355 _ACEOF
5356 rm -f conftest.$ac_objext
5357 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5358   (eval $ac_compile) 2>conftest.er1
5359   ac_status=$?
5360   grep -v '^ *+' conftest.er1 >conftest.err
5361   rm -f conftest.er1
5362   cat conftest.err >&5
5363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5364   (exit $ac_status); } &&
5365          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5366   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5367   (eval $ac_try) 2>&5
5368   ac_status=$?
5369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5370   (exit $ac_status); }; } &&
5371          { ac_try='test -s conftest.$ac_objext'
5372   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5373   (eval $ac_try) 2>&5
5374   ac_status=$?
5375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5376   (exit $ac_status); }; }; then
5377   ac_hi=-1 ac_mid=-1
5378   while :; do
5379     cat >conftest.$ac_ext <<_ACEOF
5380 /* confdefs.h.  */
5381 _ACEOF
5382 cat confdefs.h >>conftest.$ac_ext
5383 cat >>conftest.$ac_ext <<_ACEOF
5384 /* end confdefs.h.  */
5385 $ac_includes_default
5386 int
5387 main ()
5388 {
5389 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
5390 test_array [0] = 0
5391
5392   ;
5393   return 0;
5394 }
5395 _ACEOF
5396 rm -f conftest.$ac_objext
5397 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5398   (eval $ac_compile) 2>conftest.er1
5399   ac_status=$?
5400   grep -v '^ *+' conftest.er1 >conftest.err
5401   rm -f conftest.er1
5402   cat conftest.err >&5
5403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5404   (exit $ac_status); } &&
5405          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5406   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5407   (eval $ac_try) 2>&5
5408   ac_status=$?
5409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5410   (exit $ac_status); }; } &&
5411          { ac_try='test -s conftest.$ac_objext'
5412   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5413   (eval $ac_try) 2>&5
5414   ac_status=$?
5415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5416   (exit $ac_status); }; }; then
5417   ac_lo=$ac_mid; break
5418 else
5419   echo "$as_me: failed program was:" >&5
5420 sed 's/^/| /' conftest.$ac_ext >&5
5421
5422 ac_hi=`expr '(' $ac_mid ')' - 1`
5423                        if test $ac_mid -le $ac_hi; then
5424                          ac_lo= ac_hi=
5425                          break
5426                        fi
5427                        ac_mid=`expr 2 '*' $ac_mid`
5428 fi
5429 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5430   done
5431 else
5432   echo "$as_me: failed program was:" >&5
5433 sed 's/^/| /' conftest.$ac_ext >&5
5434
5435 ac_lo= ac_hi=
5436 fi
5437 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5438 fi
5439 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5440 # Binary search between lo and hi bounds.
5441 while test "x$ac_lo" != "x$ac_hi"; do
5442   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5443   cat >conftest.$ac_ext <<_ACEOF
5444 /* confdefs.h.  */
5445 _ACEOF
5446 cat confdefs.h >>conftest.$ac_ext
5447 cat >>conftest.$ac_ext <<_ACEOF
5448 /* end confdefs.h.  */
5449 $ac_includes_default
5450 int
5451 main ()
5452 {
5453 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5454 test_array [0] = 0
5455
5456   ;
5457   return 0;
5458 }
5459 _ACEOF
5460 rm -f conftest.$ac_objext
5461 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5462   (eval $ac_compile) 2>conftest.er1
5463   ac_status=$?
5464   grep -v '^ *+' conftest.er1 >conftest.err
5465   rm -f conftest.er1
5466   cat conftest.err >&5
5467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5468   (exit $ac_status); } &&
5469          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5470   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5471   (eval $ac_try) 2>&5
5472   ac_status=$?
5473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5474   (exit $ac_status); }; } &&
5475          { ac_try='test -s conftest.$ac_objext'
5476   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5477   (eval $ac_try) 2>&5
5478   ac_status=$?
5479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5480   (exit $ac_status); }; }; then
5481   ac_hi=$ac_mid
5482 else
5483   echo "$as_me: failed program was:" >&5
5484 sed 's/^/| /' conftest.$ac_ext >&5
5485
5486 ac_lo=`expr '(' $ac_mid ')' + 1`
5487 fi
5488 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5489 done
5490 case $ac_lo in
5491 ?*) ac_cv_sizeof_long=$ac_lo;;
5492 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5493 See \`config.log' for more details." >&5
5494 echo "$as_me: error: cannot compute sizeof (long), 77
5495 See \`config.log' for more details." >&2;}
5496    { (exit 1); exit 1; }; } ;;
5497 esac
5498 else
5499   if test "$cross_compiling" = yes; then
5500   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
5501 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
5502    { (exit 1); exit 1; }; }
5503 else
5504   cat >conftest.$ac_ext <<_ACEOF
5505 /* confdefs.h.  */
5506 _ACEOF
5507 cat confdefs.h >>conftest.$ac_ext
5508 cat >>conftest.$ac_ext <<_ACEOF
5509 /* end confdefs.h.  */
5510 $ac_includes_default
5511 long longval () { return (long) (sizeof (long)); }
5512 unsigned long ulongval () { return (long) (sizeof (long)); }
5513 #include <stdio.h>
5514 #include <stdlib.h>
5515 int
5516 main ()
5517 {
5518
5519   FILE *f = fopen ("conftest.val", "w");
5520   if (! f)
5521     exit (1);
5522   if (((long) (sizeof (long))) < 0)
5523     {
5524       long i = longval ();
5525       if (i != ((long) (sizeof (long))))
5526         exit (1);
5527       fprintf (f, "%ld\n", i);
5528     }
5529   else
5530     {
5531       unsigned long i = ulongval ();
5532       if (i != ((long) (sizeof (long))))
5533         exit (1);
5534       fprintf (f, "%lu\n", i);
5535     }
5536   exit (ferror (f) || fclose (f) != 0);
5537
5538   ;
5539   return 0;
5540 }
5541 _ACEOF
5542 rm -f conftest$ac_exeext
5543 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5544   (eval $ac_link) 2>&5
5545   ac_status=$?
5546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5547   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5548   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5549   (eval $ac_try) 2>&5
5550   ac_status=$?
5551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5552   (exit $ac_status); }; }; then
5553   ac_cv_sizeof_long=`cat conftest.val`
5554 else
5555   echo "$as_me: program exited with status $ac_status" >&5
5556 echo "$as_me: failed program was:" >&5
5557 sed 's/^/| /' conftest.$ac_ext >&5
5558
5559 ( exit $ac_status )
5560 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5561 See \`config.log' for more details." >&5
5562 echo "$as_me: error: cannot compute sizeof (long), 77
5563 See \`config.log' for more details." >&2;}
5564    { (exit 1); exit 1; }; }
5565 fi
5566 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5567 fi
5568 fi
5569 rm -f conftest.val
5570 else
5571   ac_cv_sizeof_long=0
5572 fi
5573 fi
5574 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
5575 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
5576 cat >>confdefs.h <<_ACEOF
5577 #define SIZEOF_LONG $ac_cv_sizeof_long
5578 _ACEOF
5579
5580
5581 echo "$as_me:$LINENO: checking for void *" >&5
5582 echo $ECHO_N "checking for void *... $ECHO_C" >&6
5583 if test "${ac_cv_type_void_p+set}" = set; then
5584   echo $ECHO_N "(cached) $ECHO_C" >&6
5585 else
5586   cat >conftest.$ac_ext <<_ACEOF
5587 /* confdefs.h.  */
5588 _ACEOF
5589 cat confdefs.h >>conftest.$ac_ext
5590 cat >>conftest.$ac_ext <<_ACEOF
5591 /* end confdefs.h.  */
5592 $ac_includes_default
5593 int
5594 main ()
5595 {
5596 if ((void * *) 0)
5597   return 0;
5598 if (sizeof (void *))
5599   return 0;
5600   ;
5601   return 0;
5602 }
5603 _ACEOF
5604 rm -f conftest.$ac_objext
5605 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5606   (eval $ac_compile) 2>conftest.er1
5607   ac_status=$?
5608   grep -v '^ *+' conftest.er1 >conftest.err
5609   rm -f conftest.er1
5610   cat conftest.err >&5
5611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5612   (exit $ac_status); } &&
5613          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5614   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5615   (eval $ac_try) 2>&5
5616   ac_status=$?
5617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5618   (exit $ac_status); }; } &&
5619          { ac_try='test -s conftest.$ac_objext'
5620   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5621   (eval $ac_try) 2>&5
5622   ac_status=$?
5623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5624   (exit $ac_status); }; }; then
5625   ac_cv_type_void_p=yes
5626 else
5627   echo "$as_me: failed program was:" >&5
5628 sed 's/^/| /' conftest.$ac_ext >&5
5629
5630 ac_cv_type_void_p=no
5631 fi
5632 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5633 fi
5634 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
5635 echo "${ECHO_T}$ac_cv_type_void_p" >&6
5636
5637 echo "$as_me:$LINENO: checking size of void *" >&5
5638 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
5639 if test "${ac_cv_sizeof_void_p+set}" = set; then
5640   echo $ECHO_N "(cached) $ECHO_C" >&6
5641 else
5642   if test "$ac_cv_type_void_p" = yes; then
5643   # The cast to unsigned long works around a bug in the HP C Compiler
5644   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5645   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5646   # This bug is HP SR number 8606223364.
5647   if test "$cross_compiling" = yes; then
5648   # Depending upon the size, compute the lo and hi bounds.
5649 cat >conftest.$ac_ext <<_ACEOF
5650 /* confdefs.h.  */
5651 _ACEOF
5652 cat confdefs.h >>conftest.$ac_ext
5653 cat >>conftest.$ac_ext <<_ACEOF
5654 /* end confdefs.h.  */
5655 $ac_includes_default
5656 int
5657 main ()
5658 {
5659 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
5660 test_array [0] = 0
5661
5662   ;
5663   return 0;
5664 }
5665 _ACEOF
5666 rm -f conftest.$ac_objext
5667 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5668   (eval $ac_compile) 2>conftest.er1
5669   ac_status=$?
5670   grep -v '^ *+' conftest.er1 >conftest.err
5671   rm -f conftest.er1
5672   cat conftest.err >&5
5673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5674   (exit $ac_status); } &&
5675          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5676   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5677   (eval $ac_try) 2>&5
5678   ac_status=$?
5679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5680   (exit $ac_status); }; } &&
5681          { ac_try='test -s conftest.$ac_objext'
5682   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5683   (eval $ac_try) 2>&5
5684   ac_status=$?
5685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5686   (exit $ac_status); }; }; then
5687   ac_lo=0 ac_mid=0
5688   while :; do
5689     cat >conftest.$ac_ext <<_ACEOF
5690 /* confdefs.h.  */
5691 _ACEOF
5692 cat confdefs.h >>conftest.$ac_ext
5693 cat >>conftest.$ac_ext <<_ACEOF
5694 /* end confdefs.h.  */
5695 $ac_includes_default
5696 int
5697 main ()
5698 {
5699 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
5700 test_array [0] = 0
5701
5702   ;
5703   return 0;
5704 }
5705 _ACEOF
5706 rm -f conftest.$ac_objext
5707 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5708   (eval $ac_compile) 2>conftest.er1
5709   ac_status=$?
5710   grep -v '^ *+' conftest.er1 >conftest.err
5711   rm -f conftest.er1
5712   cat conftest.err >&5
5713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5714   (exit $ac_status); } &&
5715          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5716   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5717   (eval $ac_try) 2>&5
5718   ac_status=$?
5719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5720   (exit $ac_status); }; } &&
5721          { ac_try='test -s conftest.$ac_objext'
5722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5723   (eval $ac_try) 2>&5
5724   ac_status=$?
5725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5726   (exit $ac_status); }; }; then
5727   ac_hi=$ac_mid; break
5728 else
5729   echo "$as_me: failed program was:" >&5
5730 sed 's/^/| /' conftest.$ac_ext >&5
5731
5732 ac_lo=`expr $ac_mid + 1`
5733                     if test $ac_lo -le $ac_mid; then
5734                       ac_lo= ac_hi=
5735                       break
5736                     fi
5737                     ac_mid=`expr 2 '*' $ac_mid + 1`
5738 fi
5739 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5740   done
5741 else
5742   echo "$as_me: failed program was:" >&5
5743 sed 's/^/| /' conftest.$ac_ext >&5
5744
5745 cat >conftest.$ac_ext <<_ACEOF
5746 /* confdefs.h.  */
5747 _ACEOF
5748 cat confdefs.h >>conftest.$ac_ext
5749 cat >>conftest.$ac_ext <<_ACEOF
5750 /* end confdefs.h.  */
5751 $ac_includes_default
5752 int
5753 main ()
5754 {
5755 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
5756 test_array [0] = 0
5757
5758   ;
5759   return 0;
5760 }
5761 _ACEOF
5762 rm -f conftest.$ac_objext
5763 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5764   (eval $ac_compile) 2>conftest.er1
5765   ac_status=$?
5766   grep -v '^ *+' conftest.er1 >conftest.err
5767   rm -f conftest.er1
5768   cat conftest.err >&5
5769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5770   (exit $ac_status); } &&
5771          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5772   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5773   (eval $ac_try) 2>&5
5774   ac_status=$?
5775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5776   (exit $ac_status); }; } &&
5777          { ac_try='test -s conftest.$ac_objext'
5778   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5779   (eval $ac_try) 2>&5
5780   ac_status=$?
5781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5782   (exit $ac_status); }; }; then
5783   ac_hi=-1 ac_mid=-1
5784   while :; do
5785     cat >conftest.$ac_ext <<_ACEOF
5786 /* confdefs.h.  */
5787 _ACEOF
5788 cat confdefs.h >>conftest.$ac_ext
5789 cat >>conftest.$ac_ext <<_ACEOF
5790 /* end confdefs.h.  */
5791 $ac_includes_default
5792 int
5793 main ()
5794 {
5795 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
5796 test_array [0] = 0
5797
5798   ;
5799   return 0;
5800 }
5801 _ACEOF
5802 rm -f conftest.$ac_objext
5803 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5804   (eval $ac_compile) 2>conftest.er1
5805   ac_status=$?
5806   grep -v '^ *+' conftest.er1 >conftest.err
5807   rm -f conftest.er1
5808   cat conftest.err >&5
5809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5810   (exit $ac_status); } &&
5811          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5812   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5813   (eval $ac_try) 2>&5
5814   ac_status=$?
5815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5816   (exit $ac_status); }; } &&
5817          { ac_try='test -s conftest.$ac_objext'
5818   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5819   (eval $ac_try) 2>&5
5820   ac_status=$?
5821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5822   (exit $ac_status); }; }; then
5823   ac_lo=$ac_mid; break
5824 else
5825   echo "$as_me: failed program was:" >&5
5826 sed 's/^/| /' conftest.$ac_ext >&5
5827
5828 ac_hi=`expr '(' $ac_mid ')' - 1`
5829                        if test $ac_mid -le $ac_hi; then
5830                          ac_lo= ac_hi=
5831                          break
5832                        fi
5833                        ac_mid=`expr 2 '*' $ac_mid`
5834 fi
5835 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5836   done
5837 else
5838   echo "$as_me: failed program was:" >&5
5839 sed 's/^/| /' conftest.$ac_ext >&5
5840
5841 ac_lo= ac_hi=
5842 fi
5843 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5844 fi
5845 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5846 # Binary search between lo and hi bounds.
5847 while test "x$ac_lo" != "x$ac_hi"; do
5848   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5849   cat >conftest.$ac_ext <<_ACEOF
5850 /* confdefs.h.  */
5851 _ACEOF
5852 cat confdefs.h >>conftest.$ac_ext
5853 cat >>conftest.$ac_ext <<_ACEOF
5854 /* end confdefs.h.  */
5855 $ac_includes_default
5856 int
5857 main ()
5858 {
5859 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
5860 test_array [0] = 0
5861
5862   ;
5863   return 0;
5864 }
5865 _ACEOF
5866 rm -f conftest.$ac_objext
5867 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5868   (eval $ac_compile) 2>conftest.er1
5869   ac_status=$?
5870   grep -v '^ *+' conftest.er1 >conftest.err
5871   rm -f conftest.er1
5872   cat conftest.err >&5
5873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5874   (exit $ac_status); } &&
5875          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5876   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5877   (eval $ac_try) 2>&5
5878   ac_status=$?
5879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5880   (exit $ac_status); }; } &&
5881          { ac_try='test -s conftest.$ac_objext'
5882   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5883   (eval $ac_try) 2>&5
5884   ac_status=$?
5885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5886   (exit $ac_status); }; }; then
5887   ac_hi=$ac_mid
5888 else
5889   echo "$as_me: failed program was:" >&5
5890 sed 's/^/| /' conftest.$ac_ext >&5
5891
5892 ac_lo=`expr '(' $ac_mid ')' + 1`
5893 fi
5894 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5895 done
5896 case $ac_lo in
5897 ?*) ac_cv_sizeof_void_p=$ac_lo;;
5898 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
5899 See \`config.log' for more details." >&5
5900 echo "$as_me: error: cannot compute sizeof (void *), 77
5901 See \`config.log' for more details." >&2;}
5902    { (exit 1); exit 1; }; } ;;
5903 esac
5904 else
5905   if test "$cross_compiling" = yes; then
5906   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
5907 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
5908    { (exit 1); exit 1; }; }
5909 else
5910   cat >conftest.$ac_ext <<_ACEOF
5911 /* confdefs.h.  */
5912 _ACEOF
5913 cat confdefs.h >>conftest.$ac_ext
5914 cat >>conftest.$ac_ext <<_ACEOF
5915 /* end confdefs.h.  */
5916 $ac_includes_default
5917 long longval () { return (long) (sizeof (void *)); }
5918 unsigned long ulongval () { return (long) (sizeof (void *)); }
5919 #include <stdio.h>
5920 #include <stdlib.h>
5921 int
5922 main ()
5923 {
5924
5925   FILE *f = fopen ("conftest.val", "w");
5926   if (! f)
5927     exit (1);
5928   if (((long) (sizeof (void *))) < 0)
5929     {
5930       long i = longval ();
5931       if (i != ((long) (sizeof (void *))))
5932         exit (1);
5933       fprintf (f, "%ld\n", i);
5934     }
5935   else
5936     {
5937       unsigned long i = ulongval ();
5938       if (i != ((long) (sizeof (void *))))
5939         exit (1);
5940       fprintf (f, "%lu\n", i);
5941     }
5942   exit (ferror (f) || fclose (f) != 0);
5943
5944   ;
5945   return 0;
5946 }
5947 _ACEOF
5948 rm -f conftest$ac_exeext
5949 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5950   (eval $ac_link) 2>&5
5951   ac_status=$?
5952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5953   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5954   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5955   (eval $ac_try) 2>&5
5956   ac_status=$?
5957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5958   (exit $ac_status); }; }; then
5959   ac_cv_sizeof_void_p=`cat conftest.val`
5960 else
5961   echo "$as_me: program exited with status $ac_status" >&5
5962 echo "$as_me: failed program was:" >&5
5963 sed 's/^/| /' conftest.$ac_ext >&5
5964
5965 ( exit $ac_status )
5966 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
5967 See \`config.log' for more details." >&5
5968 echo "$as_me: error: cannot compute sizeof (void *), 77
5969 See \`config.log' for more details." >&2;}
5970    { (exit 1); exit 1; }; }
5971 fi
5972 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5973 fi
5974 fi
5975 rm -f conftest.val
5976 else
5977   ac_cv_sizeof_void_p=0
5978 fi
5979 fi
5980 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
5981 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
5982 cat >>confdefs.h <<_ACEOF
5983 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5984 _ACEOF
5985
5986
5987 if test "$ac_cv_sizeof_int" = 2 ; then
5988   echo "$as_me:$LINENO: checking for int16_t" >&5
5989 echo $ECHO_N "checking for int16_t... $ECHO_C" >&6
5990 if test "${ac_cv_type_int16_t+set}" = set; then
5991   echo $ECHO_N "(cached) $ECHO_C" >&6
5992 else
5993   cat >conftest.$ac_ext <<_ACEOF
5994 /* confdefs.h.  */
5995 _ACEOF
5996 cat confdefs.h >>conftest.$ac_ext
5997 cat >>conftest.$ac_ext <<_ACEOF
5998 /* end confdefs.h.  */
5999 $ac_includes_default
6000 int
6001 main ()
6002 {
6003 if ((int16_t *) 0)
6004   return 0;
6005 if (sizeof (int16_t))
6006   return 0;
6007   ;
6008   return 0;
6009 }
6010 _ACEOF
6011 rm -f conftest.$ac_objext
6012 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6013   (eval $ac_compile) 2>conftest.er1
6014   ac_status=$?
6015   grep -v '^ *+' conftest.er1 >conftest.err
6016   rm -f conftest.er1
6017   cat conftest.err >&5
6018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6019   (exit $ac_status); } &&
6020          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6021   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6022   (eval $ac_try) 2>&5
6023   ac_status=$?
6024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6025   (exit $ac_status); }; } &&
6026          { ac_try='test -s conftest.$ac_objext'
6027   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6028   (eval $ac_try) 2>&5
6029   ac_status=$?
6030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6031   (exit $ac_status); }; }; then
6032   ac_cv_type_int16_t=yes
6033 else
6034   echo "$as_me: failed program was:" >&5
6035 sed 's/^/| /' conftest.$ac_ext >&5
6036
6037 ac_cv_type_int16_t=no
6038 fi
6039 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6040 fi
6041 echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
6042 echo "${ECHO_T}$ac_cv_type_int16_t" >&6
6043 if test $ac_cv_type_int16_t = yes; then
6044   :
6045 else
6046
6047 cat >>confdefs.h <<_ACEOF
6048 #define int16_t int
6049 _ACEOF
6050
6051 fi
6052
6053   echo "$as_me:$LINENO: checking for uint16_t" >&5
6054 echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6
6055 if test "${ac_cv_type_uint16_t+set}" = set; then
6056   echo $ECHO_N "(cached) $ECHO_C" >&6
6057 else
6058   cat >conftest.$ac_ext <<_ACEOF
6059 /* confdefs.h.  */
6060 _ACEOF
6061 cat confdefs.h >>conftest.$ac_ext
6062 cat >>conftest.$ac_ext <<_ACEOF
6063 /* end confdefs.h.  */
6064 $ac_includes_default
6065 int
6066 main ()
6067 {
6068 if ((uint16_t *) 0)
6069   return 0;
6070 if (sizeof (uint16_t))
6071   return 0;
6072   ;
6073   return 0;
6074 }
6075 _ACEOF
6076 rm -f conftest.$ac_objext
6077 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6078   (eval $ac_compile) 2>conftest.er1
6079   ac_status=$?
6080   grep -v '^ *+' conftest.er1 >conftest.err
6081   rm -f conftest.er1
6082   cat conftest.err >&5
6083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6084   (exit $ac_status); } &&
6085          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6086   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6087   (eval $ac_try) 2>&5
6088   ac_status=$?
6089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6090   (exit $ac_status); }; } &&
6091          { ac_try='test -s conftest.$ac_objext'
6092   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6093   (eval $ac_try) 2>&5
6094   ac_status=$?
6095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6096   (exit $ac_status); }; }; then
6097   ac_cv_type_uint16_t=yes
6098 else
6099   echo "$as_me: failed program was:" >&5
6100 sed 's/^/| /' conftest.$ac_ext >&5
6101
6102 ac_cv_type_uint16_t=no
6103 fi
6104 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6105 fi
6106 echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
6107 echo "${ECHO_T}$ac_cv_type_uint16_t" >&6
6108 if test $ac_cv_type_uint16_t = yes; then
6109   :
6110 else
6111
6112 cat >>confdefs.h <<_ACEOF
6113 #define uint16_t unsigned int
6114 _ACEOF
6115
6116 fi
6117
6118 elif test "$ac_cv_sizeof_short" = 2 ; then
6119   echo "$as_me:$LINENO: checking for int16_t" >&5
6120 echo $ECHO_N "checking for int16_t... $ECHO_C" >&6
6121 if test "${ac_cv_type_int16_t+set}" = set; then
6122   echo $ECHO_N "(cached) $ECHO_C" >&6
6123 else
6124   cat >conftest.$ac_ext <<_ACEOF
6125 /* confdefs.h.  */
6126 _ACEOF
6127 cat confdefs.h >>conftest.$ac_ext
6128 cat >>conftest.$ac_ext <<_ACEOF
6129 /* end confdefs.h.  */
6130 $ac_includes_default
6131 int
6132 main ()
6133 {
6134 if ((int16_t *) 0)
6135   return 0;
6136 if (sizeof (int16_t))
6137   return 0;
6138   ;
6139   return 0;
6140 }
6141 _ACEOF
6142 rm -f conftest.$ac_objext
6143 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6144   (eval $ac_compile) 2>conftest.er1
6145   ac_status=$?
6146   grep -v '^ *+' conftest.er1 >conftest.err
6147   rm -f conftest.er1
6148   cat conftest.err >&5
6149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6150   (exit $ac_status); } &&
6151          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6152   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6153   (eval $ac_try) 2>&5
6154   ac_status=$?
6155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6156   (exit $ac_status); }; } &&
6157          { ac_try='test -s conftest.$ac_objext'
6158   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6159   (eval $ac_try) 2>&5
6160   ac_status=$?
6161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6162   (exit $ac_status); }; }; then
6163   ac_cv_type_int16_t=yes
6164 else
6165   echo "$as_me: failed program was:" >&5
6166 sed 's/^/| /' conftest.$ac_ext >&5
6167
6168 ac_cv_type_int16_t=no
6169 fi
6170 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6171 fi
6172 echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
6173 echo "${ECHO_T}$ac_cv_type_int16_t" >&6
6174 if test $ac_cv_type_int16_t = yes; then
6175   :
6176 else
6177
6178 cat >>confdefs.h <<_ACEOF
6179 #define int16_t short
6180 _ACEOF
6181
6182 fi
6183
6184   echo "$as_me:$LINENO: checking for uint16_t" >&5
6185 echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6
6186 if test "${ac_cv_type_uint16_t+set}" = set; then
6187   echo $ECHO_N "(cached) $ECHO_C" >&6
6188 else
6189   cat >conftest.$ac_ext <<_ACEOF
6190 /* confdefs.h.  */
6191 _ACEOF
6192 cat confdefs.h >>conftest.$ac_ext
6193 cat >>conftest.$ac_ext <<_ACEOF
6194 /* end confdefs.h.  */
6195 $ac_includes_default
6196 int
6197 main ()
6198 {
6199 if ((uint16_t *) 0)
6200   return 0;
6201 if (sizeof (uint16_t))
6202   return 0;
6203   ;
6204   return 0;
6205 }
6206 _ACEOF
6207 rm -f conftest.$ac_objext
6208 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6209   (eval $ac_compile) 2>conftest.er1
6210   ac_status=$?
6211   grep -v '^ *+' conftest.er1 >conftest.err
6212   rm -f conftest.er1
6213   cat conftest.err >&5
6214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6215   (exit $ac_status); } &&
6216          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6217   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6218   (eval $ac_try) 2>&5
6219   ac_status=$?
6220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6221   (exit $ac_status); }; } &&
6222          { ac_try='test -s conftest.$ac_objext'
6223   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6224   (eval $ac_try) 2>&5
6225   ac_status=$?
6226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6227   (exit $ac_status); }; }; then
6228   ac_cv_type_uint16_t=yes
6229 else
6230   echo "$as_me: failed program was:" >&5
6231 sed 's/^/| /' conftest.$ac_ext >&5
6232
6233 ac_cv_type_uint16_t=no
6234 fi
6235 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6236 fi
6237 echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
6238 echo "${ECHO_T}$ac_cv_type_uint16_t" >&6
6239 if test $ac_cv_type_uint16_t = yes; then
6240   :
6241 else
6242
6243 cat >>confdefs.h <<_ACEOF
6244 #define uint16_t unsigned short
6245 _ACEOF
6246
6247 fi
6248
6249 else
6250   { { echo "$as_me:$LINENO: error: Cannot find a type with size of 16 bits" >&5
6251 echo "$as_me: error: Cannot find a type with size of 16 bits" >&2;}
6252    { (exit 1); exit 1; }; }
6253 fi
6254 if test "$ac_cv_sizeof_int" = 4 ; then
6255   echo "$as_me:$LINENO: checking for int32_t" >&5
6256 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6
6257 if test "${ac_cv_type_int32_t+set}" = set; then
6258   echo $ECHO_N "(cached) $ECHO_C" >&6
6259 else
6260   cat >conftest.$ac_ext <<_ACEOF
6261 /* confdefs.h.  */
6262 _ACEOF
6263 cat confdefs.h >>conftest.$ac_ext
6264 cat >>conftest.$ac_ext <<_ACEOF
6265 /* end confdefs.h.  */
6266 $ac_includes_default
6267 int
6268 main ()
6269 {
6270 if ((int32_t *) 0)
6271   return 0;
6272 if (sizeof (int32_t))
6273   return 0;
6274   ;
6275   return 0;
6276 }
6277 _ACEOF
6278 rm -f conftest.$ac_objext
6279 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6280   (eval $ac_compile) 2>conftest.er1
6281   ac_status=$?
6282   grep -v '^ *+' conftest.er1 >conftest.err
6283   rm -f conftest.er1
6284   cat conftest.err >&5
6285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6286   (exit $ac_status); } &&
6287          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6288   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6289   (eval $ac_try) 2>&5
6290   ac_status=$?
6291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6292   (exit $ac_status); }; } &&
6293          { ac_try='test -s conftest.$ac_objext'
6294   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6295   (eval $ac_try) 2>&5
6296   ac_status=$?
6297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6298   (exit $ac_status); }; }; then
6299   ac_cv_type_int32_t=yes
6300 else
6301   echo "$as_me: failed program was:" >&5
6302 sed 's/^/| /' conftest.$ac_ext >&5
6303
6304 ac_cv_type_int32_t=no
6305 fi
6306 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6307 fi
6308 echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
6309 echo "${ECHO_T}$ac_cv_type_int32_t" >&6
6310 if test $ac_cv_type_int32_t = yes; then
6311   :
6312 else
6313
6314 cat >>confdefs.h <<_ACEOF
6315 #define int32_t int
6316 _ACEOF
6317
6318 fi
6319
6320   echo "$as_me:$LINENO: checking for uint32_t" >&5
6321 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
6322 if test "${ac_cv_type_uint32_t+set}" = set; then
6323   echo $ECHO_N "(cached) $ECHO_C" >&6
6324 else
6325   cat >conftest.$ac_ext <<_ACEOF
6326 /* confdefs.h.  */
6327 _ACEOF
6328 cat confdefs.h >>conftest.$ac_ext
6329 cat >>conftest.$ac_ext <<_ACEOF
6330 /* end confdefs.h.  */
6331 $ac_includes_default
6332 int
6333 main ()
6334 {
6335 if ((uint32_t *) 0)
6336   return 0;
6337 if (sizeof (uint32_t))
6338   return 0;
6339   ;
6340   return 0;
6341 }
6342 _ACEOF
6343 rm -f conftest.$ac_objext
6344 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6345   (eval $ac_compile) 2>conftest.er1
6346   ac_status=$?
6347   grep -v '^ *+' conftest.er1 >conftest.err
6348   rm -f conftest.er1
6349   cat conftest.err >&5
6350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6351   (exit $ac_status); } &&
6352          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6353   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6354   (eval $ac_try) 2>&5
6355   ac_status=$?
6356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6357   (exit $ac_status); }; } &&
6358          { ac_try='test -s conftest.$ac_objext'
6359   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6360   (eval $ac_try) 2>&5
6361   ac_status=$?
6362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6363   (exit $ac_status); }; }; then
6364   ac_cv_type_uint32_t=yes
6365 else
6366   echo "$as_me: failed program was:" >&5
6367 sed 's/^/| /' conftest.$ac_ext >&5
6368
6369 ac_cv_type_uint32_t=no
6370 fi
6371 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6372 fi
6373 echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
6374 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
6375 if test $ac_cv_type_uint32_t = yes; then
6376   :
6377 else
6378
6379 cat >>confdefs.h <<_ACEOF
6380 #define uint32_t unsigned int
6381 _ACEOF
6382
6383 fi
6384
6385 elif test "$ac_cv_sizeof_short" = 4 ; then
6386   echo "$as_me:$LINENO: checking for int32_t" >&5
6387 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6
6388 if test "${ac_cv_type_int32_t+set}" = set; then
6389   echo $ECHO_N "(cached) $ECHO_C" >&6
6390 else
6391   cat >conftest.$ac_ext <<_ACEOF
6392 /* confdefs.h.  */
6393 _ACEOF
6394 cat confdefs.h >>conftest.$ac_ext
6395 cat >>conftest.$ac_ext <<_ACEOF
6396 /* end confdefs.h.  */
6397 $ac_includes_default
6398 int
6399 main ()
6400 {
6401 if ((int32_t *) 0)
6402   return 0;
6403 if (sizeof (int32_t))
6404   return 0;
6405   ;
6406   return 0;
6407 }
6408 _ACEOF
6409 rm -f conftest.$ac_objext
6410 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6411   (eval $ac_compile) 2>conftest.er1
6412   ac_status=$?
6413   grep -v '^ *+' conftest.er1 >conftest.err
6414   rm -f conftest.er1
6415   cat conftest.err >&5
6416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6417   (exit $ac_status); } &&
6418          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6419   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6420   (eval $ac_try) 2>&5
6421   ac_status=$?
6422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6423   (exit $ac_status); }; } &&
6424          { ac_try='test -s conftest.$ac_objext'
6425   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6426   (eval $ac_try) 2>&5
6427   ac_status=$?
6428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6429   (exit $ac_status); }; }; then
6430   ac_cv_type_int32_t=yes
6431 else
6432   echo "$as_me: failed program was:" >&5
6433 sed 's/^/| /' conftest.$ac_ext >&5
6434
6435 ac_cv_type_int32_t=no
6436 fi
6437 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6438 fi
6439 echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
6440 echo "${ECHO_T}$ac_cv_type_int32_t" >&6
6441 if test $ac_cv_type_int32_t = yes; then
6442   :
6443 else
6444
6445 cat >>confdefs.h <<_ACEOF
6446 #define int32_t short
6447 _ACEOF
6448
6449 fi
6450
6451   echo "$as_me:$LINENO: checking for uint32_t" >&5
6452 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
6453 if test "${ac_cv_type_uint32_t+set}" = set; then
6454   echo $ECHO_N "(cached) $ECHO_C" >&6
6455 else
6456   cat >conftest.$ac_ext <<_ACEOF
6457 /* confdefs.h.  */
6458 _ACEOF
6459 cat confdefs.h >>conftest.$ac_ext
6460 cat >>conftest.$ac_ext <<_ACEOF
6461 /* end confdefs.h.  */
6462 $ac_includes_default
6463 int
6464 main ()
6465 {
6466 if ((uint32_t *) 0)
6467   return 0;
6468 if (sizeof (uint32_t))
6469   return 0;
6470   ;
6471   return 0;
6472 }
6473 _ACEOF
6474 rm -f conftest.$ac_objext
6475 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6476   (eval $ac_compile) 2>conftest.er1
6477   ac_status=$?
6478   grep -v '^ *+' conftest.er1 >conftest.err
6479   rm -f conftest.er1
6480   cat conftest.err >&5
6481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6482   (exit $ac_status); } &&
6483          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6484   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6485   (eval $ac_try) 2>&5
6486   ac_status=$?
6487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6488   (exit $ac_status); }; } &&
6489          { ac_try='test -s conftest.$ac_objext'
6490   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6491   (eval $ac_try) 2>&5
6492   ac_status=$?
6493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6494   (exit $ac_status); }; }; then
6495   ac_cv_type_uint32_t=yes
6496 else
6497   echo "$as_me: failed program was:" >&5
6498 sed 's/^/| /' conftest.$ac_ext >&5
6499
6500 ac_cv_type_uint32_t=no
6501 fi
6502 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6503 fi
6504 echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
6505 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
6506 if test $ac_cv_type_uint32_t = yes; then
6507   :
6508 else
6509
6510 cat >>confdefs.h <<_ACEOF
6511 #define uint32_t unsigned short
6512 _ACEOF
6513
6514 fi
6515
6516 elif test "$ac_cv_sizeof_long" = 4 ; then
6517   echo "$as_me:$LINENO: checking for int32_t" >&5
6518 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6
6519 if test "${ac_cv_type_int32_t+set}" = set; then
6520   echo $ECHO_N "(cached) $ECHO_C" >&6
6521 else
6522   cat >conftest.$ac_ext <<_ACEOF
6523 /* confdefs.h.  */
6524 _ACEOF
6525 cat confdefs.h >>conftest.$ac_ext
6526 cat >>conftest.$ac_ext <<_ACEOF
6527 /* end confdefs.h.  */
6528 $ac_includes_default
6529 int
6530 main ()
6531 {
6532 if ((int32_t *) 0)
6533   return 0;
6534 if (sizeof (int32_t))
6535   return 0;
6536   ;
6537   return 0;
6538 }
6539 _ACEOF
6540 rm -f conftest.$ac_objext
6541 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6542   (eval $ac_compile) 2>conftest.er1
6543   ac_status=$?
6544   grep -v '^ *+' conftest.er1 >conftest.err
6545   rm -f conftest.er1
6546   cat conftest.err >&5
6547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6548   (exit $ac_status); } &&
6549          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6550   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6551   (eval $ac_try) 2>&5
6552   ac_status=$?
6553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6554   (exit $ac_status); }; } &&
6555          { ac_try='test -s conftest.$ac_objext'
6556   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6557   (eval $ac_try) 2>&5
6558   ac_status=$?
6559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6560   (exit $ac_status); }; }; then
6561   ac_cv_type_int32_t=yes
6562 else
6563   echo "$as_me: failed program was:" >&5
6564 sed 's/^/| /' conftest.$ac_ext >&5
6565
6566 ac_cv_type_int32_t=no
6567 fi
6568 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6569 fi
6570 echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
6571 echo "${ECHO_T}$ac_cv_type_int32_t" >&6
6572 if test $ac_cv_type_int32_t = yes; then
6573   :
6574 else
6575
6576 cat >>confdefs.h <<_ACEOF
6577 #define int32_t long
6578 _ACEOF
6579
6580 fi
6581
6582   echo "$as_me:$LINENO: checking for uint32_t" >&5
6583 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
6584 if test "${ac_cv_type_uint32_t+set}" = set; then
6585   echo $ECHO_N "(cached) $ECHO_C" >&6
6586 else
6587   cat >conftest.$ac_ext <<_ACEOF
6588 /* confdefs.h.  */
6589 _ACEOF
6590 cat confdefs.h >>conftest.$ac_ext
6591 cat >>conftest.$ac_ext <<_ACEOF
6592 /* end confdefs.h.  */
6593 $ac_includes_default
6594 int
6595 main ()
6596 {
6597 if ((uint32_t *) 0)
6598   return 0;
6599 if (sizeof (uint32_t))
6600   return 0;
6601   ;
6602   return 0;
6603 }
6604 _ACEOF
6605 rm -f conftest.$ac_objext
6606 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6607   (eval $ac_compile) 2>conftest.er1
6608   ac_status=$?
6609   grep -v '^ *+' conftest.er1 >conftest.err
6610   rm -f conftest.er1
6611   cat conftest.err >&5
6612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6613   (exit $ac_status); } &&
6614          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6615   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6616   (eval $ac_try) 2>&5
6617   ac_status=$?
6618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6619   (exit $ac_status); }; } &&
6620          { ac_try='test -s conftest.$ac_objext'
6621   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6622   (eval $ac_try) 2>&5
6623   ac_status=$?
6624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6625   (exit $ac_status); }; }; then
6626   ac_cv_type_uint32_t=yes
6627 else
6628   echo "$as_me: failed program was:" >&5
6629 sed 's/^/| /' conftest.$ac_ext >&5
6630
6631 ac_cv_type_uint32_t=no
6632 fi
6633 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6634 fi
6635 echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
6636 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
6637 if test $ac_cv_type_uint32_t = yes; then
6638   :
6639 else
6640
6641 cat >>confdefs.h <<_ACEOF
6642 #define uint32_t unsigned long
6643 _ACEOF
6644
6645 fi
6646
6647 else
6648   { { echo "$as_me:$LINENO: error: Cannot find a type with size of 32 bits" >&5
6649 echo "$as_me: error: Cannot find a type with size of 32 bits" >&2;}
6650    { (exit 1); exit 1; }; }
6651 fi
6652 echo "$as_me:$LINENO: checking for socklen_t" >&5
6653 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
6654 if test "${ac_cv_type_socklen_t+set}" = set; then
6655   echo $ECHO_N "(cached) $ECHO_C" >&6
6656 else
6657   cat >conftest.$ac_ext <<_ACEOF
6658 /* confdefs.h.  */
6659 _ACEOF
6660 cat confdefs.h >>conftest.$ac_ext
6661 cat >>conftest.$ac_ext <<_ACEOF
6662 /* end confdefs.h.  */
6663 $ac_includes_default
6664 int
6665 main ()
6666 {
6667 if ((socklen_t *) 0)
6668   return 0;
6669 if (sizeof (socklen_t))
6670   return 0;
6671   ;
6672   return 0;
6673 }
6674 _ACEOF
6675 rm -f conftest.$ac_objext
6676 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6677   (eval $ac_compile) 2>conftest.er1
6678   ac_status=$?
6679   grep -v '^ *+' conftest.er1 >conftest.err
6680   rm -f conftest.er1
6681   cat conftest.err >&5
6682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6683   (exit $ac_status); } &&
6684          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6685   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6686   (eval $ac_try) 2>&5
6687   ac_status=$?
6688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6689   (exit $ac_status); }; } &&
6690          { ac_try='test -s conftest.$ac_objext'
6691   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6692   (eval $ac_try) 2>&5
6693   ac_status=$?
6694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6695   (exit $ac_status); }; }; then
6696   ac_cv_type_socklen_t=yes
6697 else
6698   echo "$as_me: failed program was:" >&5
6699 sed 's/^/| /' conftest.$ac_ext >&5
6700
6701 ac_cv_type_socklen_t=no
6702 fi
6703 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6704 fi
6705 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
6706 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
6707 if test $ac_cv_type_socklen_t = yes; then
6708   :
6709 else
6710
6711 cat >>confdefs.h <<_ACEOF
6712 #define socklen_t unsigned int
6713 _ACEOF
6714
6715 fi
6716
6717 echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
6718 echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6
6719 if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
6720   echo $ECHO_N "(cached) $ECHO_C" >&6
6721 else
6722   cat >conftest.$ac_ext <<_ACEOF
6723 /* confdefs.h.  */
6724 _ACEOF
6725 cat confdefs.h >>conftest.$ac_ext
6726 cat >>conftest.$ac_ext <<_ACEOF
6727 /* end confdefs.h.  */
6728 #include <sys/types.h>
6729 #include <netinet/in.h>
6730
6731 int
6732 main ()
6733 {
6734 if ((struct sockaddr_in6 *) 0)
6735   return 0;
6736 if (sizeof (struct sockaddr_in6))
6737   return 0;
6738   ;
6739   return 0;
6740 }
6741 _ACEOF
6742 rm -f conftest.$ac_objext
6743 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6744   (eval $ac_compile) 2>conftest.er1
6745   ac_status=$?
6746   grep -v '^ *+' conftest.er1 >conftest.err
6747   rm -f conftest.er1
6748   cat conftest.err >&5
6749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6750   (exit $ac_status); } &&
6751          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6752   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6753   (eval $ac_try) 2>&5
6754   ac_status=$?
6755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6756   (exit $ac_status); }; } &&
6757          { ac_try='test -s conftest.$ac_objext'
6758   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6759   (eval $ac_try) 2>&5
6760   ac_status=$?
6761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6762   (exit $ac_status); }; }; then
6763   ac_cv_type_struct_sockaddr_in6=yes
6764 else
6765   echo "$as_me: failed program was:" >&5
6766 sed 's/^/| /' conftest.$ac_ext >&5
6767
6768 ac_cv_type_struct_sockaddr_in6=no
6769 fi
6770 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6771 fi
6772 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
6773 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_in6" >&6
6774 if test $ac_cv_type_struct_sockaddr_in6 = yes; then
6775   unet_have_sockaddr_in6="yes"
6776 else
6777   unet_have_sockaddr_in6="no"
6778 fi
6779
6780
6781
6782
6783
6784
6785 for ac_func in kqueue setrlimit getrusage times
6786 do
6787 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6788 echo "$as_me:$LINENO: checking for $ac_func" >&5
6789 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6790 if eval "test \"\${$as_ac_var+set}\" = set"; then
6791   echo $ECHO_N "(cached) $ECHO_C" >&6
6792 else
6793   cat >conftest.$ac_ext <<_ACEOF
6794 /* confdefs.h.  */
6795 _ACEOF
6796 cat confdefs.h >>conftest.$ac_ext
6797 cat >>conftest.$ac_ext <<_ACEOF
6798 /* end confdefs.h.  */
6799 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6800    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6801 #define $ac_func innocuous_$ac_func
6802
6803 /* System header to define __stub macros and hopefully few prototypes,
6804     which can conflict with char $ac_func (); below.
6805     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6806     <limits.h> exists even on freestanding compilers.  */
6807
6808 #ifdef __STDC__
6809 # include <limits.h>
6810 #else
6811 # include <assert.h>
6812 #endif
6813
6814 #undef $ac_func
6815
6816 /* Override any gcc2 internal prototype to avoid an error.  */
6817 #ifdef __cplusplus
6818 extern "C"
6819 {
6820 #endif
6821 /* We use char because int might match the return type of a gcc2
6822    builtin and then its argument prototype would still apply.  */
6823 char $ac_func ();
6824 /* The GNU C library defines this for functions which it implements
6825     to always fail with ENOSYS.  Some functions are actually named
6826     something starting with __ and the normal name is an alias.  */
6827 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6828 choke me
6829 #else
6830 char (*f) () = $ac_func;
6831 #endif
6832 #ifdef __cplusplus
6833 }
6834 #endif
6835
6836 int
6837 main ()
6838 {
6839 return f != $ac_func;
6840   ;
6841   return 0;
6842 }
6843 _ACEOF
6844 rm -f conftest.$ac_objext conftest$ac_exeext
6845 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6846   (eval $ac_link) 2>conftest.er1
6847   ac_status=$?
6848   grep -v '^ *+' conftest.er1 >conftest.err
6849   rm -f conftest.er1
6850   cat conftest.err >&5
6851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6852   (exit $ac_status); } &&
6853          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6854   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6855   (eval $ac_try) 2>&5
6856   ac_status=$?
6857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6858   (exit $ac_status); }; } &&
6859          { ac_try='test -s conftest$ac_exeext'
6860   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6861   (eval $ac_try) 2>&5
6862   ac_status=$?
6863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6864   (exit $ac_status); }; }; then
6865   eval "$as_ac_var=yes"
6866 else
6867   echo "$as_me: failed program was:" >&5
6868 sed 's/^/| /' conftest.$ac_ext >&5
6869
6870 eval "$as_ac_var=no"
6871 fi
6872 rm -f conftest.err conftest.$ac_objext \
6873       conftest$ac_exeext conftest.$ac_ext
6874 fi
6875 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6876 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6877 if test `eval echo '${'$as_ac_var'}'` = yes; then
6878   cat >>confdefs.h <<_ACEOF
6879 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6880 _ACEOF
6881
6882 fi
6883 done
6884
6885
6886 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
6887 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
6888 if test "${ac_cv_header_sys_wait_h+set}" = set; then
6889   echo $ECHO_N "(cached) $ECHO_C" >&6
6890 else
6891   cat >conftest.$ac_ext <<_ACEOF
6892 /* confdefs.h.  */
6893 _ACEOF
6894 cat confdefs.h >>conftest.$ac_ext
6895 cat >>conftest.$ac_ext <<_ACEOF
6896 /* end confdefs.h.  */
6897 #include <sys/types.h>
6898 #include <sys/wait.h>
6899 #ifndef WEXITSTATUS
6900 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
6901 #endif
6902 #ifndef WIFEXITED
6903 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6904 #endif
6905
6906 int
6907 main ()
6908 {
6909   int s;
6910   wait (&s);
6911   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6912   ;
6913   return 0;
6914 }
6915 _ACEOF
6916 rm -f conftest.$ac_objext
6917 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6918   (eval $ac_compile) 2>conftest.er1
6919   ac_status=$?
6920   grep -v '^ *+' conftest.er1 >conftest.err
6921   rm -f conftest.er1
6922   cat conftest.err >&5
6923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6924   (exit $ac_status); } &&
6925          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6926   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6927   (eval $ac_try) 2>&5
6928   ac_status=$?
6929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6930   (exit $ac_status); }; } &&
6931          { ac_try='test -s conftest.$ac_objext'
6932   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6933   (eval $ac_try) 2>&5
6934   ac_status=$?
6935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6936   (exit $ac_status); }; }; then
6937   ac_cv_header_sys_wait_h=yes
6938 else
6939   echo "$as_me: failed program was:" >&5
6940 sed 's/^/| /' conftest.$ac_ext >&5
6941
6942 ac_cv_header_sys_wait_h=no
6943 fi
6944 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6945 fi
6946 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
6947 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
6948 if test $ac_cv_header_sys_wait_h = yes; then
6949
6950 cat >>confdefs.h <<\_ACEOF
6951 #define HAVE_SYS_WAIT_H 1
6952 _ACEOF
6953
6954 fi
6955
6956
6957 for ac_header in unistd.h
6958 do
6959 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6960 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6961   echo "$as_me:$LINENO: checking for $ac_header" >&5
6962 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6963 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6964   echo $ECHO_N "(cached) $ECHO_C" >&6
6965 fi
6966 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6967 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6968 else
6969   # Is the header compilable?
6970 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6971 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6972 cat >conftest.$ac_ext <<_ACEOF
6973 /* confdefs.h.  */
6974 _ACEOF
6975 cat confdefs.h >>conftest.$ac_ext
6976 cat >>conftest.$ac_ext <<_ACEOF
6977 /* end confdefs.h.  */
6978 $ac_includes_default
6979 #include <$ac_header>
6980 _ACEOF
6981 rm -f conftest.$ac_objext
6982 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6983   (eval $ac_compile) 2>conftest.er1
6984   ac_status=$?
6985   grep -v '^ *+' conftest.er1 >conftest.err
6986   rm -f conftest.er1
6987   cat conftest.err >&5
6988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6989   (exit $ac_status); } &&
6990          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6991   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6992   (eval $ac_try) 2>&5
6993   ac_status=$?
6994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6995   (exit $ac_status); }; } &&
6996          { ac_try='test -s conftest.$ac_objext'
6997   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6998   (eval $ac_try) 2>&5
6999   ac_status=$?
7000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7001   (exit $ac_status); }; }; then
7002   ac_header_compiler=yes
7003 else
7004   echo "$as_me: failed program was:" >&5
7005 sed 's/^/| /' conftest.$ac_ext >&5
7006
7007 ac_header_compiler=no
7008 fi
7009 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7010 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7011 echo "${ECHO_T}$ac_header_compiler" >&6
7012
7013 # Is the header present?
7014 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7015 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7016 cat >conftest.$ac_ext <<_ACEOF
7017 /* confdefs.h.  */
7018 _ACEOF
7019 cat confdefs.h >>conftest.$ac_ext
7020 cat >>conftest.$ac_ext <<_ACEOF
7021 /* end confdefs.h.  */
7022 #include <$ac_header>
7023 _ACEOF
7024 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7025   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7026   ac_status=$?
7027   grep -v '^ *+' conftest.er1 >conftest.err
7028   rm -f conftest.er1
7029   cat conftest.err >&5
7030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7031   (exit $ac_status); } >/dev/null; then
7032   if test -s conftest.err; then
7033     ac_cpp_err=$ac_c_preproc_warn_flag
7034     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7035   else
7036     ac_cpp_err=
7037   fi
7038 else
7039   ac_cpp_err=yes
7040 fi
7041 if test -z "$ac_cpp_err"; then
7042   ac_header_preproc=yes
7043 else
7044   echo "$as_me: failed program was:" >&5
7045 sed 's/^/| /' conftest.$ac_ext >&5
7046
7047   ac_header_preproc=no
7048 fi
7049 rm -f conftest.err conftest.$ac_ext
7050 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7051 echo "${ECHO_T}$ac_header_preproc" >&6
7052
7053 # So?  What about this header?
7054 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7055   yes:no: )
7056     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7057 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7058     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7059 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7060     ac_header_preproc=yes
7061     ;;
7062   no:yes:* )
7063     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7064 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7065     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7066 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7067     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7068 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7069     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7070 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7071     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7072 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7073     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7074 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7075     (
7076       cat <<\_ASBOX
7077 ## ------------------------------------------ ##
7078 ## Report this to the AC_PACKAGE_NAME lists.  ##
7079 ## ------------------------------------------ ##
7080 _ASBOX
7081     ) |
7082       sed "s/^/$as_me: WARNING:     /" >&2
7083     ;;
7084 esac
7085 echo "$as_me:$LINENO: checking for $ac_header" >&5
7086 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7087 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7088   echo $ECHO_N "(cached) $ECHO_C" >&6
7089 else
7090   eval "$as_ac_Header=\$ac_header_preproc"
7091 fi
7092 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7093 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7094
7095 fi
7096 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7097   cat >>confdefs.h <<_ACEOF
7098 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7099 _ACEOF
7100
7101 fi
7102
7103 done
7104
7105 echo "$as_me:$LINENO: checking for restartable system calls" >&5
7106 echo $ECHO_N "checking for restartable system calls... $ECHO_C" >&6
7107 if test "${ac_cv_sys_restartable_syscalls+set}" = set; then
7108   echo $ECHO_N "(cached) $ECHO_C" >&6
7109 else
7110   if test "$cross_compiling" = yes; then
7111   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7112 See \`config.log' for more details." >&5
7113 echo "$as_me: error: cannot run test program while cross compiling
7114 See \`config.log' for more details." >&2;}
7115    { (exit 1); exit 1; }; }
7116 else
7117   cat >conftest.$ac_ext <<_ACEOF
7118 /* confdefs.h.  */
7119 _ACEOF
7120 cat confdefs.h >>conftest.$ac_ext
7121 cat >>conftest.$ac_ext <<_ACEOF
7122 /* end confdefs.h.  */
7123 /* Exit 0 (true) if wait returns something other than -1,
7124    i.e. the pid of the child, which means that wait was restarted
7125    after getting the signal.  */
7126
7127 #include <sys/types.h>
7128 #include <signal.h>
7129 #if HAVE_UNISTD_H
7130 # include <unistd.h>
7131 #endif
7132 #if HAVE_SYS_WAIT_H
7133 # include <sys/wait.h>
7134 #endif
7135
7136 /* Some platforms explicitly require an extern "C" signal handler
7137    when using C++. */
7138 #ifdef __cplusplus
7139 extern "C" void ucatch (int dummy) { }
7140 #else
7141 void ucatch (dummy) int dummy; { }
7142 #endif
7143
7144 int
7145 main ()
7146 {
7147   int i = fork (), status;
7148
7149   if (i == 0)
7150     {
7151       sleep (3);
7152       kill (getppid (), SIGINT);
7153       sleep (3);
7154       exit (0);
7155     }
7156
7157   signal (SIGINT, ucatch);
7158
7159   status = wait (&i);
7160   if (status == -1)
7161     wait (&i);
7162
7163   exit (status == -1);
7164 }
7165 _ACEOF
7166 rm -f conftest$ac_exeext
7167 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7168   (eval $ac_link) 2>&5
7169   ac_status=$?
7170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7171   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7172   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7173   (eval $ac_try) 2>&5
7174   ac_status=$?
7175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7176   (exit $ac_status); }; }; then
7177   ac_cv_sys_restartable_syscalls=yes
7178 else
7179   echo "$as_me: program exited with status $ac_status" >&5
7180 echo "$as_me: failed program was:" >&5
7181 sed 's/^/| /' conftest.$ac_ext >&5
7182
7183 ( exit $ac_status )
7184 ac_cv_sys_restartable_syscalls=no
7185 fi
7186 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7187 fi
7188 fi
7189 echo "$as_me:$LINENO: result: $ac_cv_sys_restartable_syscalls" >&5
7190 echo "${ECHO_T}$ac_cv_sys_restartable_syscalls" >&6
7191 if test $ac_cv_sys_restartable_syscalls = yes; then
7192
7193 cat >>confdefs.h <<\_ACEOF
7194 #define HAVE_RESTARTABLE_SYSCALLS 1
7195 _ACEOF
7196
7197 fi
7198
7199
7200 echo "$as_me:$LINENO: checking for donuts" >&5
7201 echo $ECHO_N "checking for donuts... $ECHO_C" >&6
7202 echo "$as_me:$LINENO: result: yes" >&5
7203 echo "${ECHO_T}yes" >&6
7204
7205 for ac_prog in gawk mawk nawk awk
7206 do
7207   # Extract the first word of "$ac_prog", so it can be a program name with args.
7208 set dummy $ac_prog; ac_word=$2
7209 echo "$as_me:$LINENO: checking for $ac_word" >&5
7210 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7211 if test "${ac_cv_prog_AWK+set}" = set; then
7212   echo $ECHO_N "(cached) $ECHO_C" >&6
7213 else
7214   if test -n "$AWK"; then
7215   ac_cv_prog_AWK="$AWK" # Let the user override the test.
7216 else
7217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7218 for as_dir in $PATH
7219 do
7220   IFS=$as_save_IFS
7221   test -z "$as_dir" && as_dir=.
7222   for ac_exec_ext in '' $ac_executable_extensions; do
7223   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7224     ac_cv_prog_AWK="$ac_prog"
7225     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7226     break 2
7227   fi
7228 done
7229 done
7230
7231 fi
7232 fi
7233 AWK=$ac_cv_prog_AWK
7234 if test -n "$AWK"; then
7235   echo "$as_me:$LINENO: result: $AWK" >&5
7236 echo "${ECHO_T}$AWK" >&6
7237 else
7238   echo "$as_me:$LINENO: result: no" >&5
7239 echo "${ECHO_T}no" >&6
7240 fi
7241
7242   test -n "$AWK" && break
7243 done
7244
7245 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7246 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
7247 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
7248 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
7249   echo $ECHO_N "(cached) $ECHO_C" >&6
7250 else
7251   cat >conftest.make <<\_ACEOF
7252 all:
7253         @echo 'ac_maketemp="$(MAKE)"'
7254 _ACEOF
7255 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7256 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
7257 if test -n "$ac_maketemp"; then
7258   eval ac_cv_prog_make_${ac_make}_set=yes
7259 else
7260   eval ac_cv_prog_make_${ac_make}_set=no
7261 fi
7262 rm -f conftest.make
7263 fi
7264 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
7265   echo "$as_me:$LINENO: result: yes" >&5
7266 echo "${ECHO_T}yes" >&6
7267   SET_MAKE=
7268 else
7269   echo "$as_me:$LINENO: result: no" >&5
7270 echo "${ECHO_T}no" >&6
7271   SET_MAKE="MAKE=${MAKE-make}"
7272 fi
7273
7274 # Find a good install program.  We prefer a C program (faster),
7275 # so one script is as good as another.  But avoid the broken or
7276 # incompatible versions:
7277 # SysV /etc/install, /usr/sbin/install
7278 # SunOS /usr/etc/install
7279 # IRIX /sbin/install
7280 # AIX /bin/install
7281 # AmigaOS /C/install, which installs bootblocks on floppy discs
7282 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7283 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7284 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7285 # OS/2's system install, which has a completely different semantic
7286 # ./install, which can be erroneously created by make from ./install.sh.
7287 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7288 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
7289 if test -z "$INSTALL"; then
7290 if test "${ac_cv_path_install+set}" = set; then
7291   echo $ECHO_N "(cached) $ECHO_C" >&6
7292 else
7293   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7294 for as_dir in $PATH
7295 do
7296   IFS=$as_save_IFS
7297   test -z "$as_dir" && as_dir=.
7298   # Account for people who put trailing slashes in PATH elements.
7299 case $as_dir/ in
7300   ./ | .// | /cC/* | \
7301   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7302   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7303   /usr/ucb/* ) ;;
7304   *)
7305     # OSF1 and SCO ODT 3.0 have their own names for install.
7306     # Don't use installbsd from OSF since it installs stuff as root
7307     # by default.
7308     for ac_prog in ginstall scoinst install; do
7309       for ac_exec_ext in '' $ac_executable_extensions; do
7310         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
7311           if test $ac_prog = install &&
7312             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7313             # AIX install.  It has an incompatible calling convention.
7314             :
7315           elif test $ac_prog = install &&
7316             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7317             # program-specific install script used by HP pwplus--don't use.
7318             :
7319           else
7320             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7321             break 3
7322           fi
7323         fi
7324       done
7325     done
7326     ;;
7327 esac
7328 done
7329
7330
7331 fi
7332   if test "${ac_cv_path_install+set}" = set; then
7333     INSTALL=$ac_cv_path_install
7334   else
7335     # As a last resort, use the slow shell script.  We don't cache a
7336     # path for INSTALL within a source directory, because that will
7337     # break other packages using the cache if that directory is
7338     # removed, or if the path is relative.
7339     INSTALL=$ac_install_sh
7340   fi
7341 fi
7342 echo "$as_me:$LINENO: result: $INSTALL" >&5
7343 echo "${ECHO_T}$INSTALL" >&6
7344
7345 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7346 # It thinks the first close brace ends the variable substitution.
7347 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7348
7349 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7350
7351 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7352
7353 echo "$as_me:$LINENO: checking whether ln -s works" >&5
7354 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
7355 LN_S=$as_ln_s
7356 if test "$LN_S" = "ln -s"; then
7357   echo "$as_me:$LINENO: result: yes" >&5
7358 echo "${ECHO_T}yes" >&6
7359 else
7360   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
7361 echo "${ECHO_T}no, using $LN_S" >&6
7362 fi
7363
7364 for ac_prog in flex lex
7365 do
7366   # Extract the first word of "$ac_prog", so it can be a program name with args.
7367 set dummy $ac_prog; ac_word=$2
7368 echo "$as_me:$LINENO: checking for $ac_word" >&5
7369 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7370 if test "${ac_cv_prog_LEX+set}" = set; then
7371   echo $ECHO_N "(cached) $ECHO_C" >&6
7372 else
7373   if test -n "$LEX"; then
7374   ac_cv_prog_LEX="$LEX" # Let the user override the test.
7375 else
7376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7377 for as_dir in $PATH
7378 do
7379   IFS=$as_save_IFS
7380   test -z "$as_dir" && as_dir=.
7381   for ac_exec_ext in '' $ac_executable_extensions; do
7382   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7383     ac_cv_prog_LEX="$ac_prog"
7384     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7385     break 2
7386   fi
7387 done
7388 done
7389
7390 fi
7391 fi
7392 LEX=$ac_cv_prog_LEX
7393 if test -n "$LEX"; then
7394   echo "$as_me:$LINENO: result: $LEX" >&5
7395 echo "${ECHO_T}$LEX" >&6
7396 else
7397   echo "$as_me:$LINENO: result: no" >&5
7398 echo "${ECHO_T}no" >&6
7399 fi
7400
7401   test -n "$LEX" && break
7402 done
7403 test -n "$LEX" || LEX=":"
7404
7405 if test -z "$LEXLIB"
7406 then
7407   echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
7408 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
7409 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
7410   echo $ECHO_N "(cached) $ECHO_C" >&6
7411 else
7412   ac_check_lib_save_LIBS=$LIBS
7413 LIBS="-lfl  $LIBS"
7414 cat >conftest.$ac_ext <<_ACEOF
7415 /* confdefs.h.  */
7416 _ACEOF
7417 cat confdefs.h >>conftest.$ac_ext
7418 cat >>conftest.$ac_ext <<_ACEOF
7419 /* end confdefs.h.  */
7420
7421 /* Override any gcc2 internal prototype to avoid an error.  */
7422 #ifdef __cplusplus
7423 extern "C"
7424 #endif
7425 /* We use char because int might match the return type of a gcc2
7426    builtin and then its argument prototype would still apply.  */
7427 char yywrap ();
7428 int
7429 main ()
7430 {
7431 yywrap ();
7432   ;
7433   return 0;
7434 }
7435 _ACEOF
7436 rm -f conftest.$ac_objext conftest$ac_exeext
7437 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7438   (eval $ac_link) 2>conftest.er1
7439   ac_status=$?
7440   grep -v '^ *+' conftest.er1 >conftest.err
7441   rm -f conftest.er1
7442   cat conftest.err >&5
7443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7444   (exit $ac_status); } &&
7445          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7446   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7447   (eval $ac_try) 2>&5
7448   ac_status=$?
7449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7450   (exit $ac_status); }; } &&
7451          { ac_try='test -s conftest$ac_exeext'
7452   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7453   (eval $ac_try) 2>&5
7454   ac_status=$?
7455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7456   (exit $ac_status); }; }; then
7457   ac_cv_lib_fl_yywrap=yes
7458 else
7459   echo "$as_me: failed program was:" >&5
7460 sed 's/^/| /' conftest.$ac_ext >&5
7461
7462 ac_cv_lib_fl_yywrap=no
7463 fi
7464 rm -f conftest.err conftest.$ac_objext \
7465       conftest$ac_exeext conftest.$ac_ext
7466 LIBS=$ac_check_lib_save_LIBS
7467 fi
7468 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
7469 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
7470 if test $ac_cv_lib_fl_yywrap = yes; then
7471   LEXLIB="-lfl"
7472 else
7473   echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
7474 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
7475 if test "${ac_cv_lib_l_yywrap+set}" = set; then
7476   echo $ECHO_N "(cached) $ECHO_C" >&6
7477 else
7478   ac_check_lib_save_LIBS=$LIBS
7479 LIBS="-ll  $LIBS"
7480 cat >conftest.$ac_ext <<_ACEOF
7481 /* confdefs.h.  */
7482 _ACEOF
7483 cat confdefs.h >>conftest.$ac_ext
7484 cat >>conftest.$ac_ext <<_ACEOF
7485 /* end confdefs.h.  */
7486
7487 /* Override any gcc2 internal prototype to avoid an error.  */
7488 #ifdef __cplusplus
7489 extern "C"
7490 #endif
7491 /* We use char because int might match the return type of a gcc2
7492    builtin and then its argument prototype would still apply.  */
7493 char yywrap ();
7494 int
7495 main ()
7496 {
7497 yywrap ();
7498   ;
7499   return 0;
7500 }
7501 _ACEOF
7502 rm -f conftest.$ac_objext conftest$ac_exeext
7503 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7504   (eval $ac_link) 2>conftest.er1
7505   ac_status=$?
7506   grep -v '^ *+' conftest.er1 >conftest.err
7507   rm -f conftest.er1
7508   cat conftest.err >&5
7509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7510   (exit $ac_status); } &&
7511          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7512   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7513   (eval $ac_try) 2>&5
7514   ac_status=$?
7515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7516   (exit $ac_status); }; } &&
7517          { ac_try='test -s conftest$ac_exeext'
7518   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7519   (eval $ac_try) 2>&5
7520   ac_status=$?
7521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7522   (exit $ac_status); }; }; then
7523   ac_cv_lib_l_yywrap=yes
7524 else
7525   echo "$as_me: failed program was:" >&5
7526 sed 's/^/| /' conftest.$ac_ext >&5
7527
7528 ac_cv_lib_l_yywrap=no
7529 fi
7530 rm -f conftest.err conftest.$ac_objext \
7531       conftest$ac_exeext conftest.$ac_ext
7532 LIBS=$ac_check_lib_save_LIBS
7533 fi
7534 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
7535 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
7536 if test $ac_cv_lib_l_yywrap = yes; then
7537   LEXLIB="-ll"
7538 fi
7539
7540 fi
7541
7542 fi
7543
7544 if test "x$LEX" != "x:"; then
7545   echo "$as_me:$LINENO: checking lex output file root" >&5
7546 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
7547 if test "${ac_cv_prog_lex_root+set}" = set; then
7548   echo $ECHO_N "(cached) $ECHO_C" >&6
7549 else
7550   # The minimal lex program is just a single line: %%.  But some broken lexes
7551 # (Solaris, I think it was) want two %% lines, so accommodate them.
7552 cat >conftest.l <<_ACEOF
7553 %%
7554 %%
7555 _ACEOF
7556 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
7557   (eval $LEX conftest.l) 2>&5
7558   ac_status=$?
7559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7560   (exit $ac_status); }
7561 if test -f lex.yy.c; then
7562   ac_cv_prog_lex_root=lex.yy
7563 elif test -f lexyy.c; then
7564   ac_cv_prog_lex_root=lexyy
7565 else
7566   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
7567 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
7568    { (exit 1); exit 1; }; }
7569 fi
7570 fi
7571 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
7572 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
7573 rm -f conftest.l
7574 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
7575
7576 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
7577 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
7578 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
7579   echo $ECHO_N "(cached) $ECHO_C" >&6
7580 else
7581   # POSIX says lex can declare yytext either as a pointer or an array; the
7582 # default is implementation-dependent. Figure out which it is, since
7583 # not all implementations provide the %pointer and %array declarations.
7584 ac_cv_prog_lex_yytext_pointer=no
7585 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
7586 ac_save_LIBS=$LIBS
7587 LIBS="$LIBS $LEXLIB"
7588 cat >conftest.$ac_ext <<_ACEOF
7589 `cat $LEX_OUTPUT_ROOT.c`
7590 _ACEOF
7591 rm -f conftest.$ac_objext conftest$ac_exeext
7592 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7593   (eval $ac_link) 2>conftest.er1
7594   ac_status=$?
7595   grep -v '^ *+' conftest.er1 >conftest.err
7596   rm -f conftest.er1
7597   cat conftest.err >&5
7598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7599   (exit $ac_status); } &&
7600          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7601   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7602   (eval $ac_try) 2>&5
7603   ac_status=$?
7604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7605   (exit $ac_status); }; } &&
7606          { ac_try='test -s conftest$ac_exeext'
7607   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7608   (eval $ac_try) 2>&5
7609   ac_status=$?
7610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7611   (exit $ac_status); }; }; then
7612   ac_cv_prog_lex_yytext_pointer=yes
7613 else
7614   echo "$as_me: failed program was:" >&5
7615 sed 's/^/| /' conftest.$ac_ext >&5
7616
7617 fi
7618 rm -f conftest.err conftest.$ac_objext \
7619       conftest$ac_exeext conftest.$ac_ext
7620 LIBS=$ac_save_LIBS
7621 rm -f "${LEX_OUTPUT_ROOT}.c"
7622
7623 fi
7624 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
7625 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
7626 if test $ac_cv_prog_lex_yytext_pointer = yes; then
7627
7628 cat >>confdefs.h <<\_ACEOF
7629 #define YYTEXT_POINTER 1
7630 _ACEOF
7631
7632 fi
7633
7634 fi
7635 for ac_prog in 'bison -y' byacc
7636 do
7637   # Extract the first word of "$ac_prog", so it can be a program name with args.
7638 set dummy $ac_prog; ac_word=$2
7639 echo "$as_me:$LINENO: checking for $ac_word" >&5
7640 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7641 if test "${ac_cv_prog_YACC+set}" = set; then
7642   echo $ECHO_N "(cached) $ECHO_C" >&6
7643 else
7644   if test -n "$YACC"; then
7645   ac_cv_prog_YACC="$YACC" # Let the user override the test.
7646 else
7647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7648 for as_dir in $PATH
7649 do
7650   IFS=$as_save_IFS
7651   test -z "$as_dir" && as_dir=.
7652   for ac_exec_ext in '' $ac_executable_extensions; do
7653   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7654     ac_cv_prog_YACC="$ac_prog"
7655     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7656     break 2
7657   fi
7658 done
7659 done
7660
7661 fi
7662 fi
7663 YACC=$ac_cv_prog_YACC
7664 if test -n "$YACC"; then
7665   echo "$as_me:$LINENO: result: $YACC" >&5
7666 echo "${ECHO_T}$YACC" >&6
7667 else
7668   echo "$as_me:$LINENO: result: no" >&5
7669 echo "${ECHO_T}no" >&6
7670 fi
7671
7672   test -n "$YACC" && break
7673 done
7674 test -n "$YACC" || YACC="yacc"
7675
7676 for ac_prog in rm
7677 do
7678   # Extract the first word of "$ac_prog", so it can be a program name with args.
7679 set dummy $ac_prog; ac_word=$2
7680 echo "$as_me:$LINENO: checking for $ac_word" >&5
7681 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7682 if test "${ac_cv_path_RMPROG+set}" = set; then
7683   echo $ECHO_N "(cached) $ECHO_C" >&6
7684 else
7685   case $RMPROG in
7686   [\\/]* | ?:[\\/]*)
7687   ac_cv_path_RMPROG="$RMPROG" # Let the user override the test with a path.
7688   ;;
7689   *)
7690   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7691 for as_dir in $PATH
7692 do
7693   IFS=$as_save_IFS
7694   test -z "$as_dir" && as_dir=.
7695   for ac_exec_ext in '' $ac_executable_extensions; do
7696   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7697     ac_cv_path_RMPROG="$as_dir/$ac_word$ac_exec_ext"
7698     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7699     break 2
7700   fi
7701 done
7702 done
7703
7704   ;;
7705 esac
7706 fi
7707 RMPROG=$ac_cv_path_RMPROG
7708
7709 if test -n "$RMPROG"; then
7710   echo "$as_me:$LINENO: result: $RMPROG" >&5
7711 echo "${ECHO_T}$RMPROG" >&6
7712 else
7713   echo "$as_me:$LINENO: result: no" >&5
7714 echo "${ECHO_T}no" >&6
7715 fi
7716
7717   test -n "$RMPROG" && break
7718 done
7719 test -n "$RMPROG" || RMPROG="/bin/rm"
7720
7721 for ac_prog in sh
7722 do
7723   # Extract the first word of "$ac_prog", so it can be a program name with args.
7724 set dummy $ac_prog; ac_word=$2
7725 echo "$as_me:$LINENO: checking for $ac_word" >&5
7726 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7727 if test "${ac_cv_path_SHPROG+set}" = set; then
7728   echo $ECHO_N "(cached) $ECHO_C" >&6
7729 else
7730   case $SHPROG in
7731   [\\/]* | ?:[\\/]*)
7732   ac_cv_path_SHPROG="$SHPROG" # Let the user override the test with a path.
7733   ;;
7734   *)
7735   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7736 for as_dir in $PATH
7737 do
7738   IFS=$as_save_IFS
7739   test -z "$as_dir" && as_dir=.
7740   for ac_exec_ext in '' $ac_executable_extensions; do
7741   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7742     ac_cv_path_SHPROG="$as_dir/$ac_word$ac_exec_ext"
7743     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7744     break 2
7745   fi
7746 done
7747 done
7748
7749   ;;
7750 esac
7751 fi
7752 SHPROG=$ac_cv_path_SHPROG
7753
7754 if test -n "$SHPROG"; then
7755   echo "$as_me:$LINENO: result: $SHPROG" >&5
7756 echo "${ECHO_T}$SHPROG" >&6
7757 else
7758   echo "$as_me:$LINENO: result: no" >&5
7759 echo "${ECHO_T}no" >&6
7760 fi
7761
7762   test -n "$SHPROG" && break
7763 done
7764 test -n "$SHPROG" || SHPROG="/bin/sh"
7765
7766
7767 LIBS="$LEXLIB $LIBS"
7768
7769 echo "$as_me:$LINENO: checking for posix non-blocking" >&5
7770 echo $ECHO_N "checking for posix non-blocking... $ECHO_C" >&6
7771 if test "${unet_cv_sys_nonblocking_posix+set}" = set; then
7772   echo $ECHO_N "(cached) $ECHO_C" >&6
7773 else
7774   if test "$cross_compiling" = yes; then
7775   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7776 See \`config.log' for more details." >&5
7777 echo "$as_me: error: cannot run test program while cross compiling
7778 See \`config.log' for more details." >&2;}
7779    { (exit 1); exit 1; }; }
7780 else
7781   cat >conftest.$ac_ext <<_ACEOF
7782 /* confdefs.h.  */
7783 _ACEOF
7784 cat confdefs.h >>conftest.$ac_ext
7785 cat >>conftest.$ac_ext <<_ACEOF
7786 /* end confdefs.h.  */
7787 #include <sys/types.h>
7788 #include <sys/socket.h>
7789 #include <fcntl.h>
7790 #include <sys/ioctl.h>
7791 #include <sys/file.h>
7792 #include <signal.h>
7793 $ac_cv_type_signal alarmed() { exit(1); }
7794 int main(void)
7795 {
7796   char b[12];
7797   struct sockaddr x;
7798   size_t l = sizeof(x);
7799   int f = socket(AF_INET, SOCK_DGRAM, 0);
7800   if (f >= 0 && !(fcntl(f, F_SETFL, O_NONBLOCK)))
7801   {
7802     signal(SIGALRM, alarmed);
7803     alarm(2);
7804     recvfrom(f, b, 12, 0, &x, &l);
7805     alarm(0);
7806     exit(0);
7807   }
7808   exit(1);
7809 }
7810 _ACEOF
7811 rm -f conftest$ac_exeext
7812 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7813   (eval $ac_link) 2>&5
7814   ac_status=$?
7815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7816   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7817   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7818   (eval $ac_try) 2>&5
7819   ac_status=$?
7820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7821   (exit $ac_status); }; }; then
7822   unet_cv_sys_nonblocking_posix=yes
7823 else
7824   echo "$as_me: program exited with status $ac_status" >&5
7825 echo "$as_me: failed program was:" >&5
7826 sed 's/^/| /' conftest.$ac_ext >&5
7827
7828 ( exit $ac_status )
7829 unet_cv_sys_nonblocking_posix=no
7830 fi
7831 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7832 fi
7833 fi
7834 echo "$as_me:$LINENO: result: $unet_cv_sys_nonblocking_posix" >&5
7835 echo "${ECHO_T}$unet_cv_sys_nonblocking_posix" >&6
7836 if test $unet_cv_sys_nonblocking_posix = yes; then
7837   cat >>confdefs.h <<\_ACEOF
7838 #define NBLOCK_POSIX 1
7839 _ACEOF
7840
7841 else
7842 echo "$as_me:$LINENO: checking for bsd non-blocking" >&5
7843 echo $ECHO_N "checking for bsd non-blocking... $ECHO_C" >&6
7844 if test "${unet_cv_sys_nonblocking_bsd+set}" = set; then
7845   echo $ECHO_N "(cached) $ECHO_C" >&6
7846 else
7847   if test "$cross_compiling" = yes; then
7848   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7849 See \`config.log' for more details." >&5
7850 echo "$as_me: error: cannot run test program while cross compiling
7851 See \`config.log' for more details." >&2;}
7852    { (exit 1); exit 1; }; }
7853 else
7854   cat >conftest.$ac_ext <<_ACEOF
7855 /* confdefs.h.  */
7856 _ACEOF
7857 cat confdefs.h >>conftest.$ac_ext
7858 cat >>conftest.$ac_ext <<_ACEOF
7859 /* end confdefs.h.  */
7860 #include <sys/types.h>
7861 #include <sys/socket.h>
7862 #include <fcntl.h>
7863 #include <sys/ioctl.h>
7864 #include <sys/file.h>
7865 #include <signal.h>
7866 $ac_cv_type_signal alarmed() { exit(1); }
7867 int main(void)
7868 {
7869   char b[12];
7870   struct sockaddr x;
7871   size_t l = sizeof(x);
7872   int f = socket(AF_INET, SOCK_DGRAM, 0);
7873   if (f >= 0 && !(fcntl(f, F_SETFL, O_NDELAY)))
7874   {
7875     signal(SIGALRM, alarmed);
7876     alarm(2);
7877     recvfrom(f, b, 12, 0, &x, &l);
7878     alarm(0);
7879     exit(0);
7880   }
7881   exit(1);
7882 }
7883 _ACEOF
7884 rm -f conftest$ac_exeext
7885 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7886   (eval $ac_link) 2>&5
7887   ac_status=$?
7888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7889   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7890   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7891   (eval $ac_try) 2>&5
7892   ac_status=$?
7893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7894   (exit $ac_status); }; }; then
7895   unet_cv_sys_nonblocking_bsd=yes
7896 else
7897   echo "$as_me: program exited with status $ac_status" >&5
7898 echo "$as_me: failed program was:" >&5
7899 sed 's/^/| /' conftest.$ac_ext >&5
7900
7901 ( exit $ac_status )
7902 unet_cv_sys_nonblocking_bsd=no
7903 fi
7904 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7905 fi
7906 fi
7907 echo "$as_me:$LINENO: result: $unet_cv_sys_nonblocking_bsd" >&5
7908 echo "${ECHO_T}$unet_cv_sys_nonblocking_bsd" >&6
7909 if test $unet_cv_sys_nonblocking_bsd = yes; then
7910   cat >>confdefs.h <<\_ACEOF
7911 #define NBLOCK_BSD 1
7912 _ACEOF
7913
7914 else
7915   cat >>confdefs.h <<\_ACEOF
7916 #define NBLOCK_SYSV 1
7917 _ACEOF
7918
7919 fi
7920 fi
7921 echo "$as_me:$LINENO: checking for posix signals" >&5
7922 echo $ECHO_N "checking for posix signals... $ECHO_C" >&6
7923 if test "${unet_cv_sys_signal_posix+set}" = set; then
7924   echo $ECHO_N "(cached) $ECHO_C" >&6
7925 else
7926   cat >conftest.$ac_ext <<_ACEOF
7927 /* confdefs.h.  */
7928 _ACEOF
7929 cat confdefs.h >>conftest.$ac_ext
7930 cat >>conftest.$ac_ext <<_ACEOF
7931 /* end confdefs.h.  */
7932 #include <signal.h>
7933 int
7934 main ()
7935 {
7936 sigaction(SIGTERM, (struct sigaction *)0L, (struct sigaction *)0L)
7937   ;
7938   return 0;
7939 }
7940 _ACEOF
7941 rm -f conftest.$ac_objext
7942 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7943   (eval $ac_compile) 2>conftest.er1
7944   ac_status=$?
7945   grep -v '^ *+' conftest.er1 >conftest.err
7946   rm -f conftest.er1
7947   cat conftest.err >&5
7948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7949   (exit $ac_status); } &&
7950          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7951   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7952   (eval $ac_try) 2>&5
7953   ac_status=$?
7954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7955   (exit $ac_status); }; } &&
7956          { ac_try='test -s conftest.$ac_objext'
7957   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7958   (eval $ac_try) 2>&5
7959   ac_status=$?
7960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7961   (exit $ac_status); }; }; then
7962   unet_cv_sys_signal_posix=yes
7963 else
7964   echo "$as_me: failed program was:" >&5
7965 sed 's/^/| /' conftest.$ac_ext >&5
7966
7967 unet_cv_sys_signal_posix=no
7968 fi
7969 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7970 fi
7971 echo "$as_me:$LINENO: result: $unet_cv_sys_signal_posix" >&5
7972 echo "${ECHO_T}$unet_cv_sys_signal_posix" >&6
7973 if test $unet_cv_sys_signal_posix = yes; then
7974   cat >>confdefs.h <<\_ACEOF
7975 #define POSIX_SIGNALS 1
7976 _ACEOF
7977
7978 else
7979 echo "$as_me:$LINENO: checking for bsd reliable signals" >&5
7980 echo $ECHO_N "checking for bsd reliable signals... $ECHO_C" >&6
7981 if test "${unet_cv_sys_signal_bsd+set}" = set; then
7982   echo $ECHO_N "(cached) $ECHO_C" >&6
7983 else
7984   if test "$cross_compiling" = yes; then
7985   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7986 See \`config.log' for more details." >&5
7987 echo "$as_me: error: cannot run test program while cross compiling
7988 See \`config.log' for more details." >&2;}
7989    { (exit 1); exit 1; }; }
7990 else
7991   cat >conftest.$ac_ext <<_ACEOF
7992 /* confdefs.h.  */
7993 _ACEOF
7994 cat confdefs.h >>conftest.$ac_ext
7995 cat >>conftest.$ac_ext <<_ACEOF
7996 /* end confdefs.h.  */
7997 #include <signal.h>
7998 int calls = 0;
7999 $ac_cv_type_signal handler()
8000 {
8001   if (calls) return;
8002   calls++;
8003   kill(getpid(), SIGTERM);
8004   sleep(1);
8005 }
8006 int main(void)
8007 {
8008   signal(SIGTERM, handler);
8009   kill(getpid(), SIGTERM);
8010   exit (0);
8011 }
8012 _ACEOF
8013 rm -f conftest$ac_exeext
8014 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8015   (eval $ac_link) 2>&5
8016   ac_status=$?
8017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8018   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8019   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8020   (eval $ac_try) 2>&5
8021   ac_status=$?
8022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8023   (exit $ac_status); }; }; then
8024   unet_cv_sys_signal_bsd=yes
8025 else
8026   echo "$as_me: program exited with status $ac_status" >&5
8027 echo "$as_me: failed program was:" >&5
8028 sed 's/^/| /' conftest.$ac_ext >&5
8029
8030 ( exit $ac_status )
8031 unet_cv_sys_signal_bsd=no
8032 fi
8033 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8034 fi
8035 fi
8036 echo "$as_me:$LINENO: result: $unet_cv_sys_signal_bsd" >&5
8037 echo "${ECHO_T}$unet_cv_sys_signal_bsd" >&6
8038 if test $unet_cv_sys_signal_bsd = yes; then
8039   cat >>confdefs.h <<\_ACEOF
8040 #define BSD_RELIABLE_SIGNALS 1
8041 _ACEOF
8042
8043 else
8044   cat >>confdefs.h <<\_ACEOF
8045 #define SYSV_UNRELIABLE_SIGNALS 1
8046 _ACEOF
8047
8048 fi
8049 fi
8050
8051 echo "$as_me:$LINENO: checking if the compiler understands -pipe" >&5
8052 echo $ECHO_N "checking if the compiler understands -pipe... $ECHO_C" >&6
8053 unet_cv_pipe_flags="$ac_cv_c_compiler_gnu"
8054 if test "$ac_cv_c_compiler_gnu" = no; then
8055   OLDCFLAGS="$CFLAGS"
8056   CFLAGS="$CFLAGS -pipe"
8057   cat >conftest.$ac_ext <<_ACEOF
8058 /* confdefs.h.  */
8059 _ACEOF
8060 cat confdefs.h >>conftest.$ac_ext
8061 cat >>conftest.$ac_ext <<_ACEOF
8062 /* end confdefs.h.  */
8063
8064 int
8065 main ()
8066 {
8067
8068   ;
8069   return 0;
8070 }
8071 _ACEOF
8072 rm -f conftest.$ac_objext
8073 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8074   (eval $ac_compile) 2>conftest.er1
8075   ac_status=$?
8076   grep -v '^ *+' conftest.er1 >conftest.err
8077   rm -f conftest.er1
8078   cat conftest.err >&5
8079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8080   (exit $ac_status); } &&
8081          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8082   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8083   (eval $ac_try) 2>&5
8084   ac_status=$?
8085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8086   (exit $ac_status); }; } &&
8087          { ac_try='test -s conftest.$ac_objext'
8088   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8089   (eval $ac_try) 2>&5
8090   ac_status=$?
8091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8092   (exit $ac_status); }; }; then
8093   unet_cv_pipe_flags=yes
8094 else
8095   echo "$as_me: failed program was:" >&5
8096 sed 's/^/| /' conftest.$ac_ext >&5
8097
8098 fi
8099 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8100   CFLAGS="$OLDCFLAGS"
8101 fi
8102 echo "$as_me:$LINENO: result: $unet_cv_pipe_flags" >&5
8103 echo "${ECHO_T}$unet_cv_pipe_flags" >&6
8104 if test "$unet_cv_pipe_flags" = yes ; then
8105   x=`echo $CFLAGS | grep 'pipe' 2>/dev/null`
8106   if test "$x" = "" ; then
8107     CFLAGS="$CFLAGS -pipe"
8108   fi
8109 fi
8110
8111
8112 echo "$as_me:$LINENO: checking for OS-dependent information" >&5
8113 echo $ECHO_N "checking for OS-dependent information... $ECHO_C" >&6
8114 case "$host" in
8115     *-linux*)
8116         echo "$as_me:$LINENO: result: Linux ($host) found." >&5
8117 echo "${ECHO_T}Linux ($host) found." >&6
8118         unet_poll_syscall=yes
8119         ;;
8120
8121     *-solaris*)
8122         echo "$as_me:$LINENO: result: Solaris ($host) found." >&5
8123 echo "${ECHO_T}Solaris ($host) found." >&6
8124         if test x"$ac_cv_header_poll_h" = xyes; then
8125             unet_poll_syscall=yes
8126         else
8127             unet_poll_syscall=no
8128         fi
8129         ;;
8130
8131     *-sunos*)
8132         echo "$as_me:$LINENO: result: Solaris ($host) found." >&5
8133 echo "${ECHO_T}Solaris ($host) found." >&6
8134         unet_poll_syscall=no
8135         ;;
8136
8137     *-openbsd*)
8138         echo "$as_me:$LINENO: result: OpenBSD ($host) found." >&5
8139 echo "${ECHO_T}OpenBSD ($host) found." >&6
8140         if test x"$ac_cv_header_poll_h" = xyes; then
8141             unet_poll_syscall=yes
8142         else
8143             unet_poll_syscall=no
8144         fi
8145         ;;
8146
8147     *-*bsd*)
8148         echo "$as_me:$LINENO: result: Generic BSD ($host) found." >&5
8149 echo "${ECHO_T}Generic BSD ($host) found." >&6
8150         if test x"$ac_cv_header_poll_h" = xyes; then
8151             unet_poll_syscall=yes
8152         else
8153             unet_poll_syscall=no
8154         fi
8155         ;;
8156
8157     *-darwin*)
8158         echo "$as_me:$LINENO: result: Darwin (Mac OS X) ($host) found." >&5
8159 echo "${ECHO_T}Darwin (Mac OS X) ($host) found." >&6
8160         unet_poll_syscall=no
8161         ;;
8162
8163     *)
8164         echo "$as_me:$LINENO: result: Unknown system type $host found." >&5
8165 echo "${ECHO_T}Unknown system type $host found." >&6
8166         { echo "$as_me:$LINENO: WARNING: Unknown OS type; using generic routines." >&5
8167 echo "$as_me: WARNING: Unknown OS type; using generic routines." >&2;}
8168         unet_poll_syscall=no
8169         ;;
8170 esac
8171
8172 echo "$as_me:$LINENO: checking whether to enable use of poll()" >&5
8173 echo $ECHO_N "checking whether to enable use of poll()... $ECHO_C" >&6
8174 # Check whether --enable-poll or --disable-poll was given.
8175 if test "${enable_poll+set}" = set; then
8176   enableval="$enable_poll"
8177   unet_cv_enable_poll=$enable_poll
8178 else
8179   if test "${unet_cv_enable_poll+set}" = set; then
8180   echo $ECHO_N "(cached) $ECHO_C" >&6
8181 else
8182   unet_cv_enable_poll=$unet_poll_syscall
8183 fi
8184
8185 fi;
8186
8187 # Force poll to be disabled if there is no poll.h
8188 if test x"$ac_cv_header_poll_h" != xyes; then
8189     unet_cv_enable_poll=no
8190 fi
8191
8192 echo "$as_me:$LINENO: result: $unet_cv_enable_poll" >&5
8193 echo "${ECHO_T}$unet_cv_enable_poll" >&6
8194
8195 if test x"$unet_cv_enable_poll" = xyes; then
8196
8197 cat >>confdefs.h <<\_ACEOF
8198 #define USE_POLL
8199 _ACEOF
8200
8201     ENGINE_C=engine_poll.c
8202 else
8203     ENGINE_C=engine_select.c
8204 fi
8205
8206
8207 echo "$as_me:$LINENO: checking whether to enable debug mode" >&5
8208 echo $ECHO_N "checking whether to enable debug mode... $ECHO_C" >&6
8209 # Check whether --enable-debug or --disable-debug was given.
8210 if test "${enable_debug+set}" = set; then
8211   enableval="$enable_debug"
8212   unet_cv_enable_debug=$enable_debug
8213 else
8214   if test "${unet_cv_enable_debug+set}" = set; then
8215   echo $ECHO_N "(cached) $ECHO_C" >&6
8216 else
8217   unet_cv_enable_debug=no
8218 fi
8219
8220 fi;
8221 echo "$as_me:$LINENO: result: $unet_cv_enable_debug" >&5
8222 echo "${ECHO_T}$unet_cv_enable_debug" >&6
8223
8224 if test x"$unet_cv_enable_debug" = xyes; then
8225
8226 cat >>confdefs.h <<\_ACEOF
8227 #define DEBUGMODE
8228 _ACEOF
8229
8230 fi
8231
8232 echo "$as_me:$LINENO: checking whether to enable leak detection" >&5
8233 echo $ECHO_N "checking whether to enable leak detection... $ECHO_C" >&6
8234
8235 # Check whether --with-leak-detect or --without-leak-detect was given.
8236 if test "${with_leak_detect+set}" = set; then
8237   withval="$with_leak_detect"
8238   unet_cv_with_leak_detect=$with_leak_detect
8239 else
8240   if test "${unet_cv_with_leak_detect+set}" = set; then
8241   echo $ECHO_N "(cached) $ECHO_C" >&6
8242 else
8243   unet_cv_with_leak_detect=no
8244 fi
8245
8246 fi;
8247 echo "$as_me:$LINENO: result: $unet_cv_enable_leak_detect" >&5
8248 echo "${ECHO_T}$unet_cv_enable_leak_detect" >&6
8249
8250 if test x"$unet_cv_with_leak_detect" != xno; then
8251     LIBS="-lgc $LIBS"
8252     CFLAGS="-DMDEBUG $CFLAGS"
8253     if test x"$unet_cv_with_leak_detect" != xyes; then
8254        LIBS="-L$unet_cv_with_leak_detect $LIBS"
8255     fi
8256 fi
8257
8258
8259 # Check whether --with-ipv6 or --without-ipv6 was given.
8260 if test "${with_ipv6+set}" = set; then
8261   withval="$with_ipv6"
8262   ac_cv_use_ipv6=$withval
8263 else
8264   ac_cv_use_ipv6=$unet_have_sockaddr_in6
8265 fi;
8266 echo "$as_me:$LINENO: checking whether to use IPv6" >&5
8267 echo $ECHO_N "checking whether to use IPv6... $ECHO_C" >&6
8268 if test "${ac_cv_use_ipv6+set}" = set; then
8269   echo $ECHO_N "(cached) $ECHO_C" >&6
8270 else
8271   ac_cv_use_ipv6=no
8272 fi
8273 echo "$as_me:$LINENO: result: $ac_cv_use_ipv6" >&5
8274 echo "${ECHO_T}$ac_cv_use_ipv6" >&6
8275 if test x"$ac_cv_use_ipv6" != "xno" ; then
8276
8277 cat >>confdefs.h <<\_ACEOF
8278 #define IPV6
8279 _ACEOF
8280
8281 fi
8282
8283 echo "$as_me:$LINENO: checking whether to enable asserts" >&5
8284 echo $ECHO_N "checking whether to enable asserts... $ECHO_C" >&6
8285 # Check whether --enable-asserts or --disable-asserts was given.
8286 if test "${enable_asserts+set}" = set; then
8287   enableval="$enable_asserts"
8288   unet_cv_enable_asserts=$enable_asserts
8289 else
8290   if test "${unet_cv_enable_asserts+set}" = set; then
8291   echo $ECHO_N "(cached) $ECHO_C" >&6
8292 else
8293   unet_cv_enable_asserts=yes
8294 fi
8295
8296 fi;
8297 echo "$as_me:$LINENO: result: $unet_cv_enable_asserts" >&5
8298 echo "${ECHO_T}$unet_cv_enable_asserts" >&6
8299
8300 if test x"$unet_cv_enable_asserts" = xno; then
8301
8302 cat >>confdefs.h <<\_ACEOF
8303 #define NDEBUG
8304 _ACEOF
8305
8306 fi
8307
8308 echo "$as_me:$LINENO: checking whether to enable debugging symbols" >&5
8309 echo $ECHO_N "checking whether to enable debugging symbols... $ECHO_C" >&6
8310 # Check whether --enable-symbols or --disable-symbols was given.
8311 if test "${enable_symbols+set}" = set; then
8312   enableval="$enable_symbols"
8313   unet_cv_enable_symbols=$enable_symbols
8314 else
8315   if test "${unet_cv_enable_symbols+set}" = set; then
8316   echo $ECHO_N "(cached) $ECHO_C" >&6
8317 else
8318   unet_cv_enable_symbols=yes
8319 fi
8320
8321 fi;
8322 echo "$as_me:$LINENO: result: $unet_cv_enable_symbols" >&5
8323 echo "${ECHO_T}$unet_cv_enable_symbols" >&6
8324
8325 if test x"$unet_cv_enable_symbols" = xyes; then
8326     CFLAGS="-g $CFLAGS"
8327 fi
8328
8329 echo "$as_me:$LINENO: checking whether to enable profiling support (gprof)" >&5
8330 echo $ECHO_N "checking whether to enable profiling support (gprof)... $ECHO_C" >&6
8331 # Check whether --enable-profile or --disable-profile was given.
8332 if test "${enable_profile+set}" = set; then
8333   enableval="$enable_profile"
8334   unet_cv_enable_profile=$enable_profile
8335 else
8336   if test "${unet_cv_enable_profile+set}" = set; then
8337   echo $ECHO_N "(cached) $ECHO_C" >&6
8338 else
8339   unet_cv_enable_profile=no
8340 fi
8341
8342 fi;
8343 echo "$as_me:$LINENO: result: $unet_cv_enable_profile" >&5
8344 echo "${ECHO_T}$unet_cv_enable_profile" >&6
8345
8346 if test x"$unet_cv_enable_profile" = xyes; then
8347     CFLAGS="-pg $CFLAGS"
8348 fi
8349
8350 echo "$as_me:$LINENO: checking whether to enable pedantic compiler warnings" >&5
8351 echo $ECHO_N "checking whether to enable pedantic compiler warnings... $ECHO_C" >&6
8352 # Check whether --enable-pedantic or --disable-pedantic was given.
8353 if test "${enable_pedantic+set}" = set; then
8354   enableval="$enable_pedantic"
8355   unet_cv_enable_pedantic=$enable_pedantic
8356 else
8357   if test "${unet_cv_enable_pedantic+set}" = set; then
8358   echo $ECHO_N "(cached) $ECHO_C" >&6
8359 else
8360   unet_cv_enable_pedantic=no
8361 fi
8362
8363 fi;
8364 echo "$as_me:$LINENO: result: $unet_cv_enable_pedantic" >&5
8365 echo "${ECHO_T}$unet_cv_enable_pedantic" >&6
8366
8367 if test x"$unet_cv_enable_pedantic" = xyes; then
8368     CFLAGS="-pedantic $CFLAGS"
8369 fi
8370
8371 echo "$as_me:$LINENO: checking whether to enable compiler warnings" >&5
8372 echo $ECHO_N "checking whether to enable compiler warnings... $ECHO_C" >&6
8373 # Check whether --enable-warnings or --disable-warnings was given.
8374 if test "${enable_warnings+set}" = set; then
8375   enableval="$enable_warnings"
8376   unet_cv_enable_warnings=$enable_warnings
8377 else
8378   if test "${unet_cv_enable_warnings+set}" = set; then
8379   echo $ECHO_N "(cached) $ECHO_C" >&6
8380 else
8381   unet_cv_enable_warnings=no
8382 fi
8383
8384 fi;
8385 echo "$as_me:$LINENO: result: $unet_cv_enable_warnings" >&5
8386 echo "${ECHO_T}$unet_cv_enable_warnings" >&6
8387
8388 if test x"$unet_cv_enable_warnings" = xyes; then
8389     CFLAGS="-Wall $CFLAGS"
8390 fi
8391
8392 echo "$as_me:$LINENO: checking whether to enable inlining for a few critical functions" >&5
8393 echo $ECHO_N "checking whether to enable inlining for a few critical functions... $ECHO_C" >&6
8394 # Check whether --enable-inlines or --disable-inlines was given.
8395 if test "${enable_inlines+set}" = set; then
8396   enableval="$enable_inlines"
8397   unet_cv_enable_inlines=$enable_inlines
8398 else
8399   if test "${unet_cv_enable_inlines+set}" = set; then
8400   echo $ECHO_N "(cached) $ECHO_C" >&6
8401 else
8402   unet_cv_enable_inlines=yes
8403 fi
8404
8405 fi;
8406 echo "$as_me:$LINENO: result: $unet_cv_enable_inlines" >&5
8407 echo "${ECHO_T}$unet_cv_enable_inlines" >&6
8408
8409 if test x"$unet_cv_enable_inlines" = xyes; then
8410
8411 cat >>confdefs.h <<\_ACEOF
8412 #define FORCEINLINE
8413 _ACEOF
8414
8415 fi
8416
8417 echo "$as_me:$LINENO: checking whether to enable the /dev/poll event engine" >&5
8418 echo $ECHO_N "checking whether to enable the /dev/poll event engine... $ECHO_C" >&6
8419 # Check whether --enable-devpoll or --disable-devpoll was given.
8420 if test "${enable_devpoll+set}" = set; then
8421   enableval="$enable_devpoll"
8422   unet_cv_enable_devpoll=$enable_devpoll
8423 else
8424   if test "${unet_cv_enable_devpoll+set}" = set; then
8425   echo $ECHO_N "(cached) $ECHO_C" >&6
8426 else
8427   unet_cv_enable_devpoll=yes
8428 fi
8429
8430 fi;
8431
8432 if test x"$ac_cv_header_sys_devpoll_h" = xno; then
8433     unet_cv_enable_devpoll=no
8434 fi
8435
8436 echo "$as_me:$LINENO: result: $unet_cv_enable_devpoll" >&5
8437 echo "${ECHO_T}$unet_cv_enable_devpoll" >&6
8438
8439 if test x"$unet_cv_enable_devpoll" != xno; then
8440
8441 cat >>confdefs.h <<\_ACEOF
8442 #define USE_DEVPOLL
8443 _ACEOF
8444
8445     ENGINE_C="engine_devpoll.c $ENGINE_C"
8446 fi
8447
8448 echo "$as_me:$LINENO: checking whether to enable the kqueue event engine" >&5
8449 echo $ECHO_N "checking whether to enable the kqueue event engine... $ECHO_C" >&6
8450 # Check whether --enable-kqueue or --disable-kqueue was given.
8451 if test "${enable_kqueue+set}" = set; then
8452   enableval="$enable_kqueue"
8453   unet_cv_enable_kqueue=$enable_kqueue
8454 else
8455   if test "${unet_cv_enable_kqueue+set}" = set; then
8456   echo $ECHO_N "(cached) $ECHO_C" >&6
8457 else
8458   unet_cv_enable_kqueue=yes
8459 fi
8460
8461 fi;
8462
8463 if test x"$ac_cv_header_sys_event_h" = xno -o x"$ac_cv_func_kqueue" = xno; then
8464     unet_cv_enable_kqueue=no
8465 fi
8466
8467 echo "$as_me:$LINENO: result: $unet_cv_enable_kqueue" >&5
8468 echo "${ECHO_T}$unet_cv_enable_kqueue" >&6
8469
8470 if test x"$unet_cv_enable_kqueue" != xno; then
8471
8472 cat >>confdefs.h <<\_ACEOF
8473 #define USE_KQUEUE
8474 _ACEOF
8475
8476     ENGINE_C="engine_kqueue.c $ENGINE_C"
8477 fi
8478
8479 echo "$as_me:$LINENO: checking whether to enable the epoll event engine" >&5
8480 echo $ECHO_N "checking whether to enable the epoll event engine... $ECHO_C" >&6
8481 # Check whether --enable-epoll or --disable-epoll was given.
8482 if test "${enable_epoll+set}" = set; then
8483   enableval="$enable_epoll"
8484   unet_cv_enable_epoll=$enable_epoll
8485 else
8486   if test "${unet_cv_enable_epoll+set}" = set; then
8487   echo $ECHO_N "(cached) $ECHO_C" >&6
8488 else
8489   unet_cv_enable_epoll=yes
8490 fi
8491
8492 fi;
8493
8494 if test x"$ac_cv_header_sys_epoll_h" = xno -o x"$ac_cv_func_epoll" = xno; then
8495     unet_cv_enable_epoll=no
8496 fi
8497
8498 echo "$as_me:$LINENO: result: $unet_cv_enable_epoll" >&5
8499 echo "${ECHO_T}$unet_cv_enable_epoll" >&6
8500
8501 if test x"$unet_cv_enable_epoll" != xno; then
8502     echo "$as_me:$LINENO: checking whether epoll functions are properly defined" >&5
8503 echo $ECHO_N "checking whether epoll functions are properly defined... $ECHO_C" >&6
8504     cat >conftest.$ac_ext <<_ACEOF
8505 /* confdefs.h.  */
8506 _ACEOF
8507 cat confdefs.h >>conftest.$ac_ext
8508 cat >>conftest.$ac_ext <<_ACEOF
8509 /* end confdefs.h.  */
8510 #include <sys/epoll.h>
8511 int
8512 main ()
8513 {
8514 epoll_create(10);
8515   ;
8516   return 0;
8517 }
8518 _ACEOF
8519 rm -f conftest.$ac_objext conftest$ac_exeext
8520 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8521   (eval $ac_link) 2>conftest.er1
8522   ac_status=$?
8523   grep -v '^ *+' conftest.er1 >conftest.err
8524   rm -f conftest.er1
8525   cat conftest.err >&5
8526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8527   (exit $ac_status); } &&
8528          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8529   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8530   (eval $ac_try) 2>&5
8531   ac_status=$?
8532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8533   (exit $ac_status); }; } &&
8534          { ac_try='test -s conftest$ac_exeext'
8535   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8536   (eval $ac_try) 2>&5
8537   ac_status=$?
8538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8539   (exit $ac_status); }; }; then
8540   echo "$as_me:$LINENO: result: yes" >&5
8541 echo "${ECHO_T}yes" >&6
8542 else
8543   echo "$as_me: failed program was:" >&5
8544 sed 's/^/| /' conftest.$ac_ext >&5
8545
8546 echo "$as_me:$LINENO: result: no" >&5
8547 echo "${ECHO_T}no" >&6
8548
8549 cat >>confdefs.h <<\_ACEOF
8550 #define EPOLL_NEED_BODY
8551 _ACEOF
8552
8553 fi
8554 rm -f conftest.err conftest.$ac_objext \
8555       conftest$ac_exeext conftest.$ac_ext
8556
8557 cat >>confdefs.h <<\_ACEOF
8558 #define USE_EPOLL
8559 _ACEOF
8560
8561     ENGINE_C="engine_epoll.c $ENGINE_C"
8562 fi
8563
8564 echo "$as_me:$LINENO: checking for va_copy" >&5
8565 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
8566 if test "${unet_cv_c_va_copy+set}" = set; then
8567   echo $ECHO_N "(cached) $ECHO_C" >&6
8568 else
8569   cat >conftest.$ac_ext <<_ACEOF
8570 /* confdefs.h.  */
8571 _ACEOF
8572 cat confdefs.h >>conftest.$ac_ext
8573 cat >>conftest.$ac_ext <<_ACEOF
8574 /* end confdefs.h.  */
8575 #include <stdarg.h>
8576 int
8577 main ()
8578 {
8579 va_list ap1, ap2; va_copy(ap1, ap2);
8580   ;
8581   return 0;
8582 }
8583 _ACEOF
8584 rm -f conftest.$ac_objext conftest$ac_exeext
8585 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8586   (eval $ac_link) 2>conftest.er1
8587   ac_status=$?
8588   grep -v '^ *+' conftest.er1 >conftest.err
8589   rm -f conftest.er1
8590   cat conftest.err >&5
8591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8592   (exit $ac_status); } &&
8593          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8594   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8595   (eval $ac_try) 2>&5
8596   ac_status=$?
8597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8598   (exit $ac_status); }; } &&
8599          { ac_try='test -s conftest$ac_exeext'
8600   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8601   (eval $ac_try) 2>&5
8602   ac_status=$?
8603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8604   (exit $ac_status); }; }; then
8605   unet_cv_c_va_copy="yes"
8606 else
8607   echo "$as_me: failed program was:" >&5
8608 sed 's/^/| /' conftest.$ac_ext >&5
8609
8610 unet_cv_c_va_copy="no"
8611
8612 fi
8613 rm -f conftest.err conftest.$ac_objext \
8614       conftest$ac_exeext conftest.$ac_ext
8615 fi
8616 echo "$as_me:$LINENO: result: $unet_cv_c_va_copy" >&5
8617 echo "${ECHO_T}$unet_cv_c_va_copy" >&6
8618 if test "$unet_cv_c_va_copy" = "yes" ; then
8619
8620 cat >>confdefs.h <<\_ACEOF
8621 #define HAVE_VA_COPY 1
8622 _ACEOF
8623
8624 fi
8625
8626 echo "$as_me:$LINENO: checking for __va_copy" >&5
8627 echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6
8628 if test "${unet_cv_c___va_copy+set}" = set; then
8629   echo $ECHO_N "(cached) $ECHO_C" >&6
8630 else
8631   cat >conftest.$ac_ext <<_ACEOF
8632 /* confdefs.h.  */
8633 _ACEOF
8634 cat confdefs.h >>conftest.$ac_ext
8635 cat >>conftest.$ac_ext <<_ACEOF
8636 /* end confdefs.h.  */
8637 #include <stdarg.h>
8638 int
8639 main ()
8640 {
8641 va_list ap1, ap2; __va_copy(ap1, ap2);
8642   ;
8643   return 0;
8644 }
8645 _ACEOF
8646 rm -f conftest.$ac_objext conftest$ac_exeext
8647 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8648   (eval $ac_link) 2>conftest.er1
8649   ac_status=$?
8650   grep -v '^ *+' conftest.er1 >conftest.err
8651   rm -f conftest.er1
8652   cat conftest.err >&5
8653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8654   (exit $ac_status); } &&
8655          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8656   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8657   (eval $ac_try) 2>&5
8658   ac_status=$?
8659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8660   (exit $ac_status); }; } &&
8661          { ac_try='test -s conftest$ac_exeext'
8662   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8663   (eval $ac_try) 2>&5
8664   ac_status=$?
8665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8666   (exit $ac_status); }; }; then
8667   unet_cv_c___va_copy="yes"
8668 else
8669   echo "$as_me: failed program was:" >&5
8670 sed 's/^/| /' conftest.$ac_ext >&5
8671
8672 unet_cv_c___va_copy="no"
8673
8674 fi
8675 rm -f conftest.err conftest.$ac_objext \
8676       conftest$ac_exeext conftest.$ac_ext
8677 fi
8678 echo "$as_me:$LINENO: result: $unet_cv_c___va_copy" >&5
8679 echo "${ECHO_T}$unet_cv_c___va_copy" >&6
8680 if test "$unet_cv_c___va_copy" = "yes" ; then
8681
8682 cat >>confdefs.h <<\_ACEOF
8683 #define HAVE___VA_COPY 1
8684 _ACEOF
8685
8686 fi
8687
8688 echo "$as_me:$LINENO: checking what name to give the symlink" >&5
8689 echo $ECHO_N "checking what name to give the symlink... $ECHO_C" >&6
8690
8691 # Check whether --with-symlink or --without-symlink was given.
8692 if test "${with_symlink+set}" = set; then
8693   withval="$with_symlink"
8694   unet_cv_with_symlink=$with_symlink
8695 else
8696   if test "${unet_cv_with_symlink+set}" = set; then
8697   echo $ECHO_N "(cached) $ECHO_C" >&6
8698 else
8699   unet_cv_with_symlink="ircd"
8700 fi
8701
8702 fi;
8703
8704 if test x"$unet_cv_with_symlink" = xyes; then
8705     unet_cv_with_symlink="ircd"
8706 fi
8707
8708 echo "$as_me:$LINENO: result: $unet_cv_with_symlink" >&5
8709 echo "${ECHO_T}$unet_cv_with_symlink" >&6
8710
8711 if test x"$unet_cv_with_symlink" = xno; then
8712     INSTALL_RULE=install-no-symlink
8713     SYMLINK=
8714 else
8715     INSTALL_RULE=install-with-symlink
8716     SYMLINK=$unet_cv_with_symlink
8717 fi
8718
8719
8720
8721 echo "$as_me:$LINENO: checking what permissions to set on the installed binary" >&5
8722 echo $ECHO_N "checking what permissions to set on the installed binary... $ECHO_C" >&6
8723
8724 # Check whether --with-mode or --without-mode was given.
8725 if test "${with_mode+set}" = set; then
8726   withval="$with_mode"
8727   unet_cv_with_mode=$with_mode
8728 else
8729   if test "${unet_cv_with_mode+set}" = set; then
8730   echo $ECHO_N "(cached) $ECHO_C" >&6
8731 else
8732   unet_cv_with_mode=711
8733 fi
8734
8735 fi;
8736
8737 if test x"$unet_cv_with_mode" = xyes -o x"$unet_cv_with_mode" = xno; then
8738     unet_cv_with_mode=711
8739 fi
8740
8741 echo "$as_me:$LINENO: result: $unet_cv_with_mode" >&5
8742 echo "${ECHO_T}$unet_cv_with_mode" >&6
8743
8744 IRCDMODE=$unet_cv_with_mode
8745
8746
8747 unet_uid=`id | sed -e 's/.*uid=[0-9]*(//' -e 's/).*//' 2> /dev/null`
8748 echo "$as_me:$LINENO: checking which user should own the installed binary" >&5
8749 echo $ECHO_N "checking which user should own the installed binary... $ECHO_C" >&6
8750
8751 # Check whether --with-owner or --without-owner was given.
8752 if test "${with_owner+set}" = set; then
8753   withval="$with_owner"
8754   unet_cv_with_owner=$with_owner
8755 else
8756   if test "${unet_cv_with_owner+set}" = set; then
8757   echo $ECHO_N "(cached) $ECHO_C" >&6
8758 else
8759   unet_cv_with_owner=$unet_uid
8760 fi
8761
8762 fi;
8763
8764 if test x"$unet_cv_with_owner" = xyes -o x"$unet_cv_with_owner" = xno; then
8765     unet_cv_with_owner=$unet_uid
8766 fi
8767
8768 echo "$as_me:$LINENO: result: $unet_cv_with_owner" >&5
8769 echo "${ECHO_T}$unet_cv_with_owner" >&6
8770
8771 IRCDOWN=$unet_cv_with_owner
8772
8773
8774 unet_gid=`id | sed -e 's/.*gid=[0-9]*(//' -e 's/).*//' 2> /dev/null`
8775 echo "$as_me:$LINENO: checking which group should own the installed binary" >&5
8776 echo $ECHO_N "checking which group should own the installed binary... $ECHO_C" >&6
8777
8778 # Check whether --with-group or --without-group was given.
8779 if test "${with_group+set}" = set; then
8780   withval="$with_group"
8781   unet_cv_with_group=$with_group
8782 else
8783   if test "${unet_cv_with_group+set}" = set; then
8784   echo $ECHO_N "(cached) $ECHO_C" >&6
8785 else
8786   unet_cv_with_group=$unet_gid
8787 fi
8788
8789 fi;
8790
8791 if test x"$unet_cv_with_group" = xyes -o x"$unet_cv_with_group" = xno; then
8792     unet_cv_with_group=$unet_gid
8793 fi
8794
8795 echo "$as_me:$LINENO: result: $unet_cv_with_group" >&5
8796 echo "${ECHO_T}$unet_cv_with_group" >&6
8797
8798 IRCDGRP=$unet_cv_with_group
8799
8800
8801 unet_domain=
8802 if test -f /etc/resolv.conf; then
8803     unet_domain=`awk '/^domain/ { print $2; exit }' /etc/resolv.conf`
8804     if test x"$unet_domain" = x; then
8805         unet_domain=`awk '/^search/ { print $2; exit }' /etc/resolv.conf`
8806     fi
8807 fi
8808 echo "$as_me:$LINENO: checking for site domain name" >&5
8809 echo $ECHO_N "checking for site domain name... $ECHO_C" >&6
8810
8811 # Check whether --with-domain or --without-domain was given.
8812 if test "${with_domain+set}" = set; then
8813   withval="$with_domain"
8814   unet_cv_with_domain=$with_domain
8815 else
8816   if test "${unet_cv_with_domain+set}" = set; then
8817   echo $ECHO_N "(cached) $ECHO_C" >&6
8818 else
8819   unet_cv_with_domain=$unet_domain
8820 fi
8821
8822 fi;
8823
8824 if test x"$unet_cv_with_domain" = xyes -o x"$unet_cv_with_domain" = xno; then
8825     unet_cv_with_domain=$unet_domain
8826 fi
8827 if test x"$unet_cv_with_domain" = xno; then
8828     { { echo "$as_me:$LINENO: error: Unable to determine server DNS domain; use --with-domain to set it" >&5
8829 echo "$as_me: error: Unable to determine server DNS domain; use --with-domain to set it" >&2;}
8830    { (exit 1); exit 1; }; }
8831 fi
8832
8833 echo "$as_me:$LINENO: result: $unet_cv_with_domain" >&5
8834 echo "${ECHO_T}$unet_cv_with_domain" >&6
8835
8836
8837 cat >>confdefs.h <<_ACEOF
8838 #define DOMAINNAME "*$unet_cv_with_domain"
8839 _ACEOF
8840
8841
8842 echo "$as_me:$LINENO: checking if chroot operation is desired" >&5
8843 echo $ECHO_N "checking if chroot operation is desired... $ECHO_C" >&6
8844
8845 # Check whether --with-chroot or --without-chroot was given.
8846 if test "${with_chroot+set}" = set; then
8847   withval="$with_chroot"
8848   unet_cv_with_chroot=$with_chroot
8849 else
8850   if test "${unet_cv_with_chroot+set}" = set; then
8851   echo $ECHO_N "(cached) $ECHO_C" >&6
8852 else
8853   unet_cv_with_chroot=no
8854 fi
8855
8856 fi;
8857
8858 if test x"$unet_cv_with_chroot" = xyes; then
8859     { { echo "$as_me:$LINENO: error: --with-chroot given with no directory.  See doc/readme.chroot." >&5
8860 echo "$as_me: error: --with-chroot given with no directory.  See doc/readme.chroot." >&2;}
8861    { (exit 1); exit 1; }; }
8862 fi
8863
8864 # Ensure there are no trailing /'s to mess us up
8865 unet_cv_with_chroot=`echo "$unet_cv_with_chroot" | sed 's%/*$%%'`
8866
8867 echo "$as_me:$LINENO: result: $unet_cv_with_chroot" >&5
8868 echo "${ECHO_T}$unet_cv_with_chroot" >&6
8869
8870 # Deal with the annoying value "NONE" here
8871 unet_save_prefix=$prefix
8872 if test x"$prefix" = xNONE; then
8873     prefix=$ac_default_prefix
8874 else
8875     prefix=$prefix
8876 fi
8877
8878 unet_save_exec_prefix=$exec_prefix
8879 if test x"$exec_prefix" = xNONE; then
8880     exec_prefix=$prefix
8881 else
8882     exec_prefix=$exec_prefix
8883 fi
8884
8885 # Obtain the actual interesting directories
8886 unet_bindir=`eval echo "$bindir"`
8887 unet_libdir=`eval echo "$libdir"`
8888
8889 # Restore the original settings of $prefix and $exec_prefix
8890 prefix=$unet_save_prefix
8891 exec_prefix=$unet_save_exec_prefix
8892
8893 echo "$as_me:$LINENO: checking where the binary will be for /restart" >&5
8894 echo $ECHO_N "checking where the binary will be for /restart... $ECHO_C" >&6
8895 if test x"$unet_cv_with_symlink" = xno; then
8896     unet_spath="$unet_bindir/ircd"
8897 else
8898     unet_spath="$unet_bindir/$unet_cv_with_symlink"
8899 fi
8900 echo "$as_me:$LINENO: result: $unet_spath" >&5
8901 echo "${ECHO_T}$unet_spath" >&6
8902
8903 if test x"$unet_cv_with_chroot" != xno; then
8904     if echo "$unet_spath" | grep "^$unet_cv_with_chroot" > /dev/null 2>&1; then
8905         unet_spath=`echo "$unet_spath" | sed "s%^$unet_cv_with_chroot%%"`
8906     else
8907         { echo "$as_me:$LINENO: WARNING: Binary $unet_spath not relative to root directory $unet_cv_with_chroot; restarts will probably fail" >&5
8908 echo "$as_me: WARNING: Binary $unet_spath not relative to root directory $unet_cv_with_chroot; restarts will probably fail" >&2;}
8909     fi
8910 fi
8911
8912
8913 cat >>confdefs.h <<_ACEOF
8914 #define SPATH "$unet_spath"
8915 _ACEOF
8916
8917
8918 echo "$as_me:$LINENO: checking what the data directory should be" >&5
8919 echo $ECHO_N "checking what the data directory should be... $ECHO_C" >&6
8920
8921 # Check whether --with-dpath or --without-dpath was given.
8922 if test "${with_dpath+set}" = set; then
8923   withval="$with_dpath"
8924   unet_cv_with_dpath=$with_dpath
8925 else
8926   if test "${unet_cv_with_dpath+set}" = set; then
8927   echo $ECHO_N "(cached) $ECHO_C" >&6
8928 else
8929   unet_cv_with_dpath=$unet_libdir
8930 fi
8931
8932 fi;
8933
8934 if test x"$unet_cv_with_dpath" = xyes -o x"$unet_cv_with_dpath" = xno; then
8935     unet_cv_with_dpath=$unet_libdir
8936 fi
8937
8938 # Ensure there are no trailing /'s to mess us up
8939 unet_cv_with_dpath=`echo "$unet_cv_with_dpath" | sed 's%/*$%%'`
8940
8941 echo "$as_me:$LINENO: result: $unet_cv_with_dpath" >&5
8942 echo "${ECHO_T}$unet_cv_with_dpath" >&6
8943
8944 if test x"$unet_cv_with_chroot" != xno; then
8945     if echo "$unet_cv_with_dpath" | grep "^$unet_cv_with_chroot" > /dev/null 2>&1; then
8946         unet_dpath=`echo "$unet_cv_with_dpath" | sed "s%^$unet_cv_with_chroot%%"`
8947     else
8948         { { echo "$as_me:$LINENO: error: Data directory $unet_cv_with_dpath not relative to root directory $unet_cv_with_chroot" >&5
8949 echo "$as_me: error: Data directory $unet_cv_with_dpath not relative to root directory $unet_cv_with_chroot" >&2;}
8950    { (exit 1); exit 1; }; }
8951     fi
8952 else
8953     unet_dpath=$unet_cv_with_dpath
8954 fi
8955
8956
8957 cat >>confdefs.h <<_ACEOF
8958 #define DPATH "$unet_dpath"
8959 _ACEOF
8960
8961
8962 DPATH=$unet_cv_with_dpath
8963
8964
8965 echo "$as_me:$LINENO: checking where the default configuration file resides" >&5
8966 echo $ECHO_N "checking where the default configuration file resides... $ECHO_C" >&6
8967
8968 # Check whether --with-cpath or --without-cpath was given.
8969 if test "${with_cpath+set}" = set; then
8970   withval="$with_cpath"
8971   unet_cv_with_cpath=$with_cpath
8972 else
8973   if test "${unet_cv_with_cpath+set}" = set; then
8974   echo $ECHO_N "(cached) $ECHO_C" >&6
8975 else
8976   unet_cv_with_cpath="ircd.conf"
8977 fi
8978
8979 fi;
8980
8981 if test x"$unet_cv_with_cpath" = xyes -o x"$unet_cv_with_cpath" = xno; then
8982     unet_cv_with_cpath="ircd.conf"
8983 fi
8984
8985 echo "$as_me:$LINENO: result: $unet_cv_with_cpath" >&5
8986 echo "${ECHO_T}$unet_cv_with_cpath" >&6
8987
8988 if echo "$unet_cv_with_cpath" | grep '^/' > /dev/null 2>&1; then
8989     # Absolute path; check against chroot stuff
8990     if test x"$unet_cv_with_chroot" != xno; then
8991         if echo "$unet_cv_with_cpath" | grep "^$unet_cv_with_chroot" > /dev/null 2>&1; then
8992             unet_cpath=`echo "$unet_cv_with_cpath" | sed "s%^$unet_cv_with_chroot%%"`
8993         else
8994             { { echo "$as_me:$LINENO: error: Configuration file $unet_cv_with_cpath not relative to root directory $unet_cv_with_chroot" >&5
8995 echo "$as_me: error: Configuration file $unet_cv_with_cpath not relative to root directory $unet_cv_with_chroot" >&2;}
8996    { (exit 1); exit 1; }; }
8997         fi
8998     else
8999         unet_cpath=$unet_cv_with_cpath
9000     fi
9001 else
9002     unet_cpath=$unet_cv_with_cpath
9003 fi
9004
9005
9006 cat >>confdefs.h <<_ACEOF
9007 #define CPATH "$unet_cpath"
9008 _ACEOF
9009
9010
9011 echo "$as_me:$LINENO: checking where to put the debugging log if debugging enabled" >&5
9012 echo $ECHO_N "checking where to put the debugging log if debugging enabled... $ECHO_C" >&6
9013
9014 # Check whether --with-lpath or --without-lpath was given.
9015 if test "${with_lpath+set}" = set; then
9016   withval="$with_lpath"
9017   unet_cv_with_lpath=$with_lpath
9018 else
9019   if test "${unet_cv_with_lpath+set}" = set; then
9020   echo $ECHO_N "(cached) $ECHO_C" >&6
9021 else
9022   unet_cv_with_lpath="ircd.log"
9023 fi
9024
9025 fi;
9026
9027 if test x"$unet_cv_with_lpath" = xyes -o x"$unet_cv_with_lpath" = xno; then
9028     unet_cv_with_lpath="ircd.log"
9029 fi
9030
9031 echo "$as_me:$LINENO: result: $unet_cv_with_lpath" >&5
9032 echo "${ECHO_T}$unet_cv_with_lpath" >&6
9033
9034 if echo "$unet_cv_with_lpath" | grep '^/' > /dev/null 2>&1; then
9035     # Absolute path; check against chroot stuff
9036     if test x"$unet_cv_with_chroot" != xno; then
9037         if echo "$unet_cv_with_lpath" | grep "^$unet_cv_with_chroot" > /dev/null 2>&1; then
9038             unet_lpath=`echo "$unet_cv_with_lpath" | sed "s%^$unet_cv_with_chroot%%"`
9039         else
9040             { echo "$as_me:$LINENO: WARNING: Log file $unet_cv_with_lpath not relative to root directory $unet_cv_with_chroot; using default ircd.log instead" >&5
9041 echo "$as_me: WARNING: Log file $unet_cv_with_lpath not relative to root directory $unet_cv_with_chroot; using default ircd.log instead" >&2;}
9042             unet_cv_with_lpath="ircd.log"
9043             unet_lpath="ircd.log"
9044         fi
9045     else
9046         unet_lpath=$unet_cv_with_lpath
9047     fi
9048 else
9049     unet_lpath=$unet_cv_with_lpath
9050 fi
9051
9052
9053 cat >>confdefs.h <<_ACEOF
9054 #define LPATH "$unet_lpath"
9055 _ACEOF
9056
9057
9058 unet_maxcon=`ulimit -Hn`
9059 if test x"$unet_maxcon" = xunlimited; then
9060     unet_maxcon=`ulimit -Sn`
9061 fi
9062 unet_maxcon=`expr $unet_maxcon - 4`
9063 echo "$as_me:$LINENO: checking max connections" >&5
9064 echo $ECHO_N "checking max connections... $ECHO_C" >&6
9065
9066 # Check whether --with-maxcon or --without-maxcon was given.
9067 if test "${with_maxcon+set}" = set; then
9068   withval="$with_maxcon"
9069   unet_cv_with_maxcon=$with_maxcon
9070 else
9071   if test "${unet_cv_with_maxcon+set}" = set; then
9072   echo $ECHO_N "(cached) $ECHO_C" >&6
9073 else
9074   unet_cv_with_maxcon=$unet_maxcon
9075 fi
9076
9077 fi;
9078
9079 if test x"$unet_cv_with_maxcon" = xyes -o x"$unet_cv_with_maxcon" = xno; then
9080     unet_cv_with_maxcon=$unet_maxcon
9081 fi
9082
9083 echo "$as_me:$LINENO: result: $unet_cv_with_maxcon" >&5
9084 echo "${ECHO_T}$unet_cv_with_maxcon" >&6
9085
9086
9087 cat >>confdefs.h <<_ACEOF
9088 #define MAXCONNECTIONS $unet_cv_with_maxcon
9089 _ACEOF
9090
9091
9092                               ac_config_files="$ac_config_files Makefile ircd/Makefile doc/Makefile"
9093           ac_config_commands="$ac_config_commands default"
9094 cat >confcache <<\_ACEOF
9095 # This file is a shell script that caches the results of configure
9096 # tests run on this system so they can be shared between configure
9097 # scripts and configure runs, see configure's option --config-cache.
9098 # It is not useful on other systems.  If it contains results you don't
9099 # want to keep, you may remove or edit it.
9100 #
9101 # config.status only pays attention to the cache file if you give it
9102 # the --recheck option to rerun configure.
9103 #
9104 # `ac_cv_env_foo' variables (set or unset) will be overridden when
9105 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9106 # following values.
9107
9108 _ACEOF
9109
9110 # The following way of writing the cache mishandles newlines in values,
9111 # but we know of no workaround that is simple, portable, and efficient.
9112 # So, don't put newlines in cache variables' values.
9113 # Ultrix sh set writes to stderr and can't be redirected directly,
9114 # and sets the high bit in the cache file unless we assign to the vars.
9115 {
9116   (set) 2>&1 |
9117     case `(ac_space=' '; set | grep ac_space) 2>&1` in
9118     *ac_space=\ *)
9119       # `set' does not quote correctly, so add quotes (double-quote
9120       # substitution turns \\\\ into \\, and sed turns \\ into \).
9121       sed -n \
9122         "s/'/'\\\\''/g;
9123           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9124       ;;
9125     *)
9126       # `set' quotes correctly as required by POSIX, so do not add quotes.
9127       sed -n \
9128         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
9129       ;;
9130     esac;
9131 } |
9132   sed '
9133      t clear
9134      : clear
9135      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9136      t end
9137      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9138      : end' >>confcache
9139 if diff $cache_file confcache >/dev/null 2>&1; then :; else
9140   if test -w $cache_file; then
9141     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
9142     cat confcache >$cache_file
9143   else
9144     echo "not updating unwritable cache $cache_file"
9145   fi
9146 fi
9147 rm -f confcache
9148
9149 test "x$prefix" = xNONE && prefix=$ac_default_prefix
9150 # Let make expand exec_prefix.
9151 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9152
9153 # VPATH may cause trouble with some makes, so we remove $(srcdir),
9154 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
9155 # trailing colons and then remove the whole line if VPATH becomes empty
9156 # (actually we leave an empty line to preserve line numbers).
9157 if test "x$srcdir" = x.; then
9158   ac_vpsub='/^[  ]*VPATH[        ]*=/{
9159 s/:*\$(srcdir):*/:/;
9160 s/:*\${srcdir}:*/:/;
9161 s/:*@srcdir@:*/:/;
9162 s/^\([^=]*=[     ]*\):*/\1/;
9163 s/:*$//;
9164 s/^[^=]*=[       ]*$//;
9165 }'
9166 fi
9167
9168 DEFS=-DHAVE_CONFIG_H
9169
9170 ac_libobjs=
9171 ac_ltlibobjs=
9172 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9173   # 1. Remove the extension, and $U if already installed.
9174   ac_i=`echo "$ac_i" |
9175          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
9176   # 2. Add them.
9177   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
9178   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
9179 done
9180 LIBOBJS=$ac_libobjs
9181
9182 LTLIBOBJS=$ac_ltlibobjs
9183
9184
9185
9186 : ${CONFIG_STATUS=./config.status}
9187 ac_clean_files_save=$ac_clean_files
9188 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9189 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
9190 echo "$as_me: creating $CONFIG_STATUS" >&6;}
9191 cat >$CONFIG_STATUS <<_ACEOF
9192 #! $SHELL
9193 # Generated by $as_me.
9194 # Run this file to recreate the current configuration.
9195 # Compiler output produced by configure, useful for debugging
9196 # configure, is in config.log if it exists.
9197
9198 debug=false
9199 ac_cs_recheck=false
9200 ac_cs_silent=false
9201 SHELL=\${CONFIG_SHELL-$SHELL}
9202 _ACEOF
9203
9204 cat >>$CONFIG_STATUS <<\_ACEOF
9205 ## --------------------- ##
9206 ## M4sh Initialization.  ##
9207 ## --------------------- ##
9208
9209 # Be Bourne compatible
9210 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
9211   emulate sh
9212   NULLCMD=:
9213   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
9214   # is contrary to our usage.  Disable this feature.
9215   alias -g '${1+"$@"}'='"$@"'
9216 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
9217   set -o posix
9218 fi
9219 DUALCASE=1; export DUALCASE # for MKS sh
9220
9221 # Support unset when possible.
9222 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9223   as_unset=unset
9224 else
9225   as_unset=false
9226 fi
9227
9228
9229 # Work around bugs in pre-3.0 UWIN ksh.
9230 $as_unset ENV MAIL MAILPATH
9231 PS1='$ '
9232 PS2='> '
9233 PS4='+ '
9234
9235 # NLS nuisances.
9236 for as_var in \
9237   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
9238   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
9239   LC_TELEPHONE LC_TIME
9240 do
9241   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
9242     eval $as_var=C; export $as_var
9243   else
9244     $as_unset $as_var
9245   fi
9246 done
9247
9248 # Required to use basename.
9249 if expr a : '\(a\)' >/dev/null 2>&1; then
9250   as_expr=expr
9251 else
9252   as_expr=false
9253 fi
9254
9255 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
9256   as_basename=basename
9257 else
9258   as_basename=false
9259 fi
9260
9261
9262 # Name of the executable.
9263 as_me=`$as_basename "$0" ||
9264 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9265          X"$0" : 'X\(//\)$' \| \
9266          X"$0" : 'X\(/\)$' \| \
9267          .     : '\(.\)' 2>/dev/null ||
9268 echo X/"$0" |
9269     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
9270           /^X\/\(\/\/\)$/{ s//\1/; q; }
9271           /^X\/\(\/\).*/{ s//\1/; q; }
9272           s/.*/./; q'`
9273
9274
9275 # PATH needs CR, and LINENO needs CR and PATH.
9276 # Avoid depending upon Character Ranges.
9277 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9278 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9279 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9280 as_cr_digits='0123456789'
9281 as_cr_alnum=$as_cr_Letters$as_cr_digits
9282
9283 # The user is always right.
9284 if test "${PATH_SEPARATOR+set}" != set; then
9285   echo "#! /bin/sh" >conf$$.sh
9286   echo  "exit 0"   >>conf$$.sh
9287   chmod +x conf$$.sh
9288   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9289     PATH_SEPARATOR=';'
9290   else
9291     PATH_SEPARATOR=:
9292   fi
9293   rm -f conf$$.sh
9294 fi
9295
9296
9297   as_lineno_1=$LINENO
9298   as_lineno_2=$LINENO
9299   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9300   test "x$as_lineno_1" != "x$as_lineno_2" &&
9301   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
9302   # Find who we are.  Look in the path if we contain no path at all
9303   # relative or not.
9304   case $0 in
9305     *[\\/]* ) as_myself=$0 ;;
9306     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9307 for as_dir in $PATH
9308 do
9309   IFS=$as_save_IFS
9310   test -z "$as_dir" && as_dir=.
9311   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9312 done
9313
9314        ;;
9315   esac
9316   # We did not find ourselves, most probably we were run as `sh COMMAND'
9317   # in which case we are not to be found in the path.
9318   if test "x$as_myself" = x; then
9319     as_myself=$0
9320   fi
9321   if test ! -f "$as_myself"; then
9322     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
9323 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
9324    { (exit 1); exit 1; }; }
9325   fi
9326   case $CONFIG_SHELL in
9327   '')
9328     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9329 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
9330 do
9331   IFS=$as_save_IFS
9332   test -z "$as_dir" && as_dir=.
9333   for as_base in sh bash ksh sh5; do
9334          case $as_dir in
9335          /*)
9336            if ("$as_dir/$as_base" -c '
9337   as_lineno_1=$LINENO
9338   as_lineno_2=$LINENO
9339   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9340   test "x$as_lineno_1" != "x$as_lineno_2" &&
9341   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
9342              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
9343              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
9344              CONFIG_SHELL=$as_dir/$as_base
9345              export CONFIG_SHELL
9346              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
9347            fi;;
9348          esac
9349        done
9350 done
9351 ;;
9352   esac
9353
9354   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
9355   # uniformly replaced by the line number.  The first 'sed' inserts a
9356   # line-number line before each line; the second 'sed' does the real
9357   # work.  The second script uses 'N' to pair each line-number line
9358   # with the numbered line, and appends trailing '-' during
9359   # substitution so that $LINENO is not a special case at line end.
9360   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
9361   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
9362   sed '=' <$as_myself |
9363     sed '
9364       N
9365       s,$,-,
9366       : loop
9367       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
9368       t loop
9369       s,-$,,
9370       s,^['$as_cr_digits']*\n,,
9371     ' >$as_me.lineno &&
9372   chmod +x $as_me.lineno ||
9373     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
9374 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
9375    { (exit 1); exit 1; }; }
9376
9377   # Don't try to exec as it changes $[0], causing all sort of problems
9378   # (the dirname of $[0] is not the place where we might find the
9379   # original and so on.  Autoconf is especially sensible to this).
9380   . ./$as_me.lineno
9381   # Exit status is that of the last command.
9382   exit
9383 }
9384
9385
9386 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
9387   *c*,-n*) ECHO_N= ECHO_C='
9388 ' ECHO_T='      ' ;;
9389   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
9390   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
9391 esac
9392
9393 if expr a : '\(a\)' >/dev/null 2>&1; then
9394   as_expr=expr
9395 else
9396   as_expr=false
9397 fi
9398
9399 rm -f conf$$ conf$$.exe conf$$.file
9400 echo >conf$$.file
9401 if ln -s conf$$.file conf$$ 2>/dev/null; then
9402   # We could just check for DJGPP; but this test a) works b) is more generic
9403   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
9404   if test -f conf$$.exe; then
9405     # Don't use ln at all; we don't have any links
9406     as_ln_s='cp -p'
9407   else
9408     as_ln_s='ln -s'
9409   fi
9410 elif ln conf$$.file conf$$ 2>/dev/null; then
9411   as_ln_s=ln
9412 else
9413   as_ln_s='cp -p'
9414 fi
9415 rm -f conf$$ conf$$.exe conf$$.file
9416
9417 if mkdir -p . 2>/dev/null; then
9418   as_mkdir_p=:
9419 else
9420   test -d ./-p && rmdir ./-p
9421   as_mkdir_p=false
9422 fi
9423
9424 as_executable_p="test -f"
9425
9426 # Sed expression to map a string onto a valid CPP name.
9427 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9428
9429 # Sed expression to map a string onto a valid variable name.
9430 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9431
9432
9433 # IFS
9434 # We need space, tab and new line, in precisely that order.
9435 as_nl='
9436 '
9437 IFS="   $as_nl"
9438
9439 # CDPATH.
9440 $as_unset CDPATH
9441
9442 exec 6>&1
9443
9444 # Open the log real soon, to keep \$[0] and so on meaningful, and to
9445 # report actual input values of CONFIG_FILES etc. instead of their
9446 # values after options handling.  Logging --version etc. is OK.
9447 exec 5>>config.log
9448 {
9449   echo
9450   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9451 ## Running $as_me. ##
9452 _ASBOX
9453 } >&5
9454 cat >&5 <<_CSEOF
9455
9456 This file was extended by $as_me, which was
9457 generated by GNU Autoconf 2.59.  Invocation command line was
9458
9459   CONFIG_FILES    = $CONFIG_FILES
9460   CONFIG_HEADERS  = $CONFIG_HEADERS
9461   CONFIG_LINKS    = $CONFIG_LINKS
9462   CONFIG_COMMANDS = $CONFIG_COMMANDS
9463   $ $0 $@
9464
9465 _CSEOF
9466 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
9467 echo >&5
9468 _ACEOF
9469
9470 # Files that config.status was made for.
9471 if test -n "$ac_config_files"; then
9472   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
9473 fi
9474
9475 if test -n "$ac_config_headers"; then
9476   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
9477 fi
9478
9479 if test -n "$ac_config_links"; then
9480   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
9481 fi
9482
9483 if test -n "$ac_config_commands"; then
9484   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
9485 fi
9486
9487 cat >>$CONFIG_STATUS <<\_ACEOF
9488
9489 ac_cs_usage="\
9490 \`$as_me' instantiates files from templates according to the
9491 current configuration.
9492
9493 Usage: $0 [OPTIONS] [FILE]...
9494
9495   -h, --help       print this help, then exit
9496   -V, --version    print version number, then exit
9497   -q, --quiet      do not print progress messages
9498   -d, --debug      don't remove temporary files
9499       --recheck    update $as_me by reconfiguring in the same conditions
9500   --file=FILE[:TEMPLATE]
9501                    instantiate the configuration file FILE
9502   --header=FILE[:TEMPLATE]
9503                    instantiate the configuration header FILE
9504
9505 Configuration files:
9506 $config_files
9507
9508 Configuration headers:
9509 $config_headers
9510
9511 Configuration commands:
9512 $config_commands
9513
9514 Report bugs to <bug-autoconf@gnu.org>."
9515 _ACEOF
9516
9517 cat >>$CONFIG_STATUS <<_ACEOF
9518 ac_cs_version="\\
9519 config.status
9520 configured by $0, generated by GNU Autoconf 2.59,
9521   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
9522
9523 Copyright (C) 2003 Free Software Foundation, Inc.
9524 This config.status script is free software; the Free Software Foundation
9525 gives unlimited permission to copy, distribute and modify it."
9526 srcdir=$srcdir
9527 INSTALL="$INSTALL"
9528 _ACEOF
9529
9530 cat >>$CONFIG_STATUS <<\_ACEOF
9531 # If no file are specified by the user, then we need to provide default
9532 # value.  By we need to know if files were specified by the user.
9533 ac_need_defaults=:
9534 while test $# != 0
9535 do
9536   case $1 in
9537   --*=*)
9538     ac_option=`expr "x$1" : 'x\([^=]*\)='`
9539     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
9540     ac_shift=:
9541     ;;
9542   -*)
9543     ac_option=$1
9544     ac_optarg=$2
9545     ac_shift=shift
9546     ;;
9547   *) # This is not an option, so the user has probably given explicit
9548      # arguments.
9549      ac_option=$1
9550      ac_need_defaults=false;;
9551   esac
9552
9553   case $ac_option in
9554   # Handling of the options.
9555 _ACEOF
9556 cat >>$CONFIG_STATUS <<\_ACEOF
9557   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9558     ac_cs_recheck=: ;;
9559   --version | --vers* | -V )
9560     echo "$ac_cs_version"; exit 0 ;;
9561   --he | --h)
9562     # Conflict between --help and --header
9563     { { echo "$as_me:$LINENO: error: ambiguous option: $1
9564 Try \`$0 --help' for more information." >&5
9565 echo "$as_me: error: ambiguous option: $1
9566 Try \`$0 --help' for more information." >&2;}
9567    { (exit 1); exit 1; }; };;
9568   --help | --hel | -h )
9569     echo "$ac_cs_usage"; exit 0 ;;
9570   --debug | --d* | -d )
9571     debug=: ;;
9572   --file | --fil | --fi | --f )
9573     $ac_shift
9574     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
9575     ac_need_defaults=false;;
9576   --header | --heade | --head | --hea )
9577     $ac_shift
9578     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
9579     ac_need_defaults=false;;
9580   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9581   | -silent | --silent | --silen | --sile | --sil | --si | --s)
9582     ac_cs_silent=: ;;
9583
9584   # This is an error.
9585   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
9586 Try \`$0 --help' for more information." >&5
9587 echo "$as_me: error: unrecognized option: $1
9588 Try \`$0 --help' for more information." >&2;}
9589    { (exit 1); exit 1; }; } ;;
9590
9591   *) ac_config_targets="$ac_config_targets $1" ;;
9592
9593   esac
9594   shift
9595 done
9596
9597 ac_configure_extra_args=
9598
9599 if $ac_cs_silent; then
9600   exec 6>/dev/null
9601   ac_configure_extra_args="$ac_configure_extra_args --silent"
9602 fi
9603
9604 _ACEOF
9605 cat >>$CONFIG_STATUS <<_ACEOF
9606 if \$ac_cs_recheck; then
9607   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
9608   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9609 fi
9610
9611 _ACEOF
9612
9613
9614
9615
9616
9617 cat >>$CONFIG_STATUS <<\_ACEOF
9618 for ac_config_target in $ac_config_targets
9619 do
9620   case "$ac_config_target" in
9621   # Handling of arguments.
9622   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9623   "ircd/Makefile" ) CONFIG_FILES="$CONFIG_FILES ircd/Makefile" ;;
9624   "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
9625   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
9626   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
9627   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
9628 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
9629    { (exit 1); exit 1; }; };;
9630   esac
9631 done
9632
9633 # If the user did not use the arguments to specify the items to instantiate,
9634 # then the envvar interface is used.  Set only those that are not.
9635 # We use the long form for the default assignment because of an extremely
9636 # bizarre bug on SunOS 4.1.3.
9637 if $ac_need_defaults; then
9638   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9639   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9640   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
9641 fi
9642
9643 # Have a temporary directory for convenience.  Make it in the build tree
9644 # simply because there is no reason to put it here, and in addition,
9645 # creating and moving files from /tmp can sometimes cause problems.
9646 # Create a temporary directory, and hook for its removal unless debugging.
9647 $debug ||
9648 {
9649   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
9650   trap '{ (exit 1); exit 1; }' 1 2 13 15
9651 }
9652
9653 # Create a (secure) tmp directory for tmp files.
9654
9655 {
9656   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
9657   test -n "$tmp" && test -d "$tmp"
9658 }  ||
9659 {
9660   tmp=./confstat$$-$RANDOM
9661   (umask 077 && mkdir $tmp)
9662 } ||
9663 {
9664    echo "$me: cannot create a temporary directory in ." >&2
9665    { (exit 1); exit 1; }
9666 }
9667
9668 _ACEOF
9669
9670 cat >>$CONFIG_STATUS <<_ACEOF
9671
9672 #
9673 # CONFIG_FILES section.
9674 #
9675
9676 # No need to generate the scripts if there are no CONFIG_FILES.
9677 # This happens for instance when ./config.status config.h
9678 if test -n "\$CONFIG_FILES"; then
9679   # Protect against being on the right side of a sed subst in config.status.
9680   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
9681    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
9682 s,@SHELL@,$SHELL,;t t
9683 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
9684 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
9685 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
9686 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
9687 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
9688 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
9689 s,@exec_prefix@,$exec_prefix,;t t
9690 s,@prefix@,$prefix,;t t
9691 s,@program_transform_name@,$program_transform_name,;t t
9692 s,@bindir@,$bindir,;t t
9693 s,@sbindir@,$sbindir,;t t
9694 s,@libexecdir@,$libexecdir,;t t
9695 s,@datadir@,$datadir,;t t
9696 s,@sysconfdir@,$sysconfdir,;t t
9697 s,@sharedstatedir@,$sharedstatedir,;t t
9698 s,@localstatedir@,$localstatedir,;t t
9699 s,@libdir@,$libdir,;t t
9700 s,@includedir@,$includedir,;t t
9701 s,@oldincludedir@,$oldincludedir,;t t
9702 s,@infodir@,$infodir,;t t
9703 s,@mandir@,$mandir,;t t
9704 s,@build_alias@,$build_alias,;t t
9705 s,@host_alias@,$host_alias,;t t
9706 s,@target_alias@,$target_alias,;t t
9707 s,@DEFS@,$DEFS,;t t
9708 s,@ECHO_C@,$ECHO_C,;t t
9709 s,@ECHO_N@,$ECHO_N,;t t
9710 s,@ECHO_T@,$ECHO_T,;t t
9711 s,@LIBS@,$LIBS,;t t
9712 s,@build@,$build,;t t
9713 s,@build_cpu@,$build_cpu,;t t
9714 s,@build_vendor@,$build_vendor,;t t
9715 s,@build_os@,$build_os,;t t
9716 s,@host@,$host,;t t
9717 s,@host_cpu@,$host_cpu,;t t
9718 s,@host_vendor@,$host_vendor,;t t
9719 s,@host_os@,$host_os,;t t
9720 s,@CC@,$CC,;t t
9721 s,@CFLAGS@,$CFLAGS,;t t
9722 s,@LDFLAGS@,$LDFLAGS,;t t
9723 s,@CPPFLAGS@,$CPPFLAGS,;t t
9724 s,@ac_ct_CC@,$ac_ct_CC,;t t
9725 s,@EXEEXT@,$EXEEXT,;t t
9726 s,@OBJEXT@,$OBJEXT,;t t
9727 s,@CPP@,$CPP,;t t
9728 s,@EGREP@,$EGREP,;t t
9729 s,@AWK@,$AWK,;t t
9730 s,@SET_MAKE@,$SET_MAKE,;t t
9731 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
9732 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
9733 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
9734 s,@LN_S@,$LN_S,;t t
9735 s,@LEX@,$LEX,;t t
9736 s,@LEXLIB@,$LEXLIB,;t t
9737 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
9738 s,@YACC@,$YACC,;t t
9739 s,@RMPROG@,$RMPROG,;t t
9740 s,@SHPROG@,$SHPROG,;t t
9741 s,@ENGINE_C@,$ENGINE_C,;t t
9742 s,@INSTALL_RULE@,$INSTALL_RULE,;t t
9743 s,@SYMLINK@,$SYMLINK,;t t
9744 s,@IRCDMODE@,$IRCDMODE,;t t
9745 s,@IRCDOWN@,$IRCDOWN,;t t
9746 s,@IRCDGRP@,$IRCDGRP,;t t
9747 s,@DPATH@,$DPATH,;t t
9748 s,@LIBOBJS@,$LIBOBJS,;t t
9749 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
9750 CEOF
9751
9752 _ACEOF
9753
9754   cat >>$CONFIG_STATUS <<\_ACEOF
9755   # Split the substitutions into bite-sized pieces for seds with
9756   # small command number limits, like on Digital OSF/1 and HP-UX.
9757   ac_max_sed_lines=48
9758   ac_sed_frag=1 # Number of current file.
9759   ac_beg=1 # First line for current file.
9760   ac_end=$ac_max_sed_lines # Line after last line for current file.
9761   ac_more_lines=:
9762   ac_sed_cmds=
9763   while $ac_more_lines; do
9764     if test $ac_beg -gt 1; then
9765       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9766     else
9767       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9768     fi
9769     if test ! -s $tmp/subs.frag; then
9770       ac_more_lines=false
9771     else
9772       # The purpose of the label and of the branching condition is to
9773       # speed up the sed processing (if there are no `@' at all, there
9774       # is no need to browse any of the substitutions).
9775       # These are the two extra sed commands mentioned above.
9776       (echo ':t
9777   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
9778       if test -z "$ac_sed_cmds"; then
9779         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
9780       else
9781         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
9782       fi
9783       ac_sed_frag=`expr $ac_sed_frag + 1`
9784       ac_beg=$ac_end
9785       ac_end=`expr $ac_end + $ac_max_sed_lines`
9786     fi
9787   done
9788   if test -z "$ac_sed_cmds"; then
9789     ac_sed_cmds=cat
9790   fi
9791 fi # test -n "$CONFIG_FILES"
9792
9793 _ACEOF
9794 cat >>$CONFIG_STATUS <<\_ACEOF
9795 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
9796   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9797   case $ac_file in
9798   - | *:- | *:-:* ) # input from stdin
9799         cat >$tmp/stdin
9800         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9801         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9802   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9803         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9804   * )   ac_file_in=$ac_file.in ;;
9805   esac
9806
9807   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
9808   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
9809 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9810          X"$ac_file" : 'X\(//\)[^/]' \| \
9811          X"$ac_file" : 'X\(//\)$' \| \
9812          X"$ac_file" : 'X\(/\)' \| \
9813          .     : '\(.\)' 2>/dev/null ||
9814 echo X"$ac_file" |
9815     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9816           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9817           /^X\(\/\/\)$/{ s//\1/; q; }
9818           /^X\(\/\).*/{ s//\1/; q; }
9819           s/.*/./; q'`
9820   { if $as_mkdir_p; then
9821     mkdir -p "$ac_dir"
9822   else
9823     as_dir="$ac_dir"
9824     as_dirs=
9825     while test ! -d "$as_dir"; do
9826       as_dirs="$as_dir $as_dirs"
9827       as_dir=`(dirname "$as_dir") 2>/dev/null ||
9828 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9829          X"$as_dir" : 'X\(//\)[^/]' \| \
9830          X"$as_dir" : 'X\(//\)$' \| \
9831          X"$as_dir" : 'X\(/\)' \| \
9832          .     : '\(.\)' 2>/dev/null ||
9833 echo X"$as_dir" |
9834     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9835           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9836           /^X\(\/\/\)$/{ s//\1/; q; }
9837           /^X\(\/\).*/{ s//\1/; q; }
9838           s/.*/./; q'`
9839     done
9840     test ! -n "$as_dirs" || mkdir $as_dirs
9841   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9842 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9843    { (exit 1); exit 1; }; }; }
9844
9845   ac_builddir=.
9846
9847 if test "$ac_dir" != .; then
9848   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9849   # A "../" for each directory in $ac_dir_suffix.
9850   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9851 else
9852   ac_dir_suffix= ac_top_builddir=
9853 fi
9854
9855 case $srcdir in
9856   .)  # No --srcdir option.  We are building in place.
9857     ac_srcdir=.
9858     if test -z "$ac_top_builddir"; then
9859        ac_top_srcdir=.
9860     else
9861        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
9862     fi ;;
9863   [\\/]* | ?:[\\/]* )  # Absolute path.
9864     ac_srcdir=$srcdir$ac_dir_suffix;
9865     ac_top_srcdir=$srcdir ;;
9866   *) # Relative path.
9867     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9868     ac_top_srcdir=$ac_top_builddir$srcdir ;;
9869 esac
9870
9871 # Do not use `cd foo && pwd` to compute absolute paths, because
9872 # the directories may not exist.
9873 case `pwd` in
9874 .) ac_abs_builddir="$ac_dir";;
9875 *)
9876   case "$ac_dir" in
9877   .) ac_abs_builddir=`pwd`;;
9878   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
9879   *) ac_abs_builddir=`pwd`/"$ac_dir";;
9880   esac;;
9881 esac
9882 case $ac_abs_builddir in
9883 .) ac_abs_top_builddir=${ac_top_builddir}.;;
9884 *)
9885   case ${ac_top_builddir}. in
9886   .) ac_abs_top_builddir=$ac_abs_builddir;;
9887   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
9888   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
9889   esac;;
9890 esac
9891 case $ac_abs_builddir in
9892 .) ac_abs_srcdir=$ac_srcdir;;
9893 *)
9894   case $ac_srcdir in
9895   .) ac_abs_srcdir=$ac_abs_builddir;;
9896   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
9897   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
9898   esac;;
9899 esac
9900 case $ac_abs_builddir in
9901 .) ac_abs_top_srcdir=$ac_top_srcdir;;
9902 *)
9903   case $ac_top_srcdir in
9904   .) ac_abs_top_srcdir=$ac_abs_builddir;;
9905   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
9906   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
9907   esac;;
9908 esac
9909
9910
9911   case $INSTALL in
9912   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9913   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
9914   esac
9915
9916   # Let's still pretend it is `configure' which instantiates (i.e., don't
9917   # use $as_me), people would be surprised to read:
9918   #    /* config.h.  Generated by config.status.  */
9919   if test x"$ac_file" = x-; then
9920     configure_input=
9921   else
9922     configure_input="$ac_file.  "
9923   fi
9924   configure_input=$configure_input"Generated from `echo $ac_file_in |
9925                                      sed 's,.*/,,'` by configure."
9926
9927   # First look for the input files in the build tree, otherwise in the
9928   # src tree.
9929   ac_file_inputs=`IFS=:
9930     for f in $ac_file_in; do
9931       case $f in
9932       -) echo $tmp/stdin ;;
9933       [\\/$]*)
9934          # Absolute (can't be DOS-style, as IFS=:)
9935          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9936 echo "$as_me: error: cannot find input file: $f" >&2;}
9937    { (exit 1); exit 1; }; }
9938          echo "$f";;
9939       *) # Relative
9940          if test -f "$f"; then
9941            # Build tree
9942            echo "$f"
9943          elif test -f "$srcdir/$f"; then
9944            # Source tree
9945            echo "$srcdir/$f"
9946          else
9947            # /dev/null tree
9948            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9949 echo "$as_me: error: cannot find input file: $f" >&2;}
9950    { (exit 1); exit 1; }; }
9951          fi;;
9952       esac
9953     done` || { (exit 1); exit 1; }
9954
9955   if test x"$ac_file" != x-; then
9956     { echo "$as_me:$LINENO: creating $ac_file" >&5
9957 echo "$as_me: creating $ac_file" >&6;}
9958     rm -f "$ac_file"
9959   fi
9960 _ACEOF
9961 cat >>$CONFIG_STATUS <<_ACEOF
9962   sed "$ac_vpsub
9963 $extrasub
9964 _ACEOF
9965 cat >>$CONFIG_STATUS <<\_ACEOF
9966 :t
9967 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9968 s,@configure_input@,$configure_input,;t t
9969 s,@srcdir@,$ac_srcdir,;t t
9970 s,@abs_srcdir@,$ac_abs_srcdir,;t t
9971 s,@top_srcdir@,$ac_top_srcdir,;t t
9972 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
9973 s,@builddir@,$ac_builddir,;t t
9974 s,@abs_builddir@,$ac_abs_builddir,;t t
9975 s,@top_builddir@,$ac_top_builddir,;t t
9976 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
9977 s,@INSTALL@,$ac_INSTALL,;t t
9978 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
9979   rm -f $tmp/stdin
9980   if test x"$ac_file" != x-; then
9981     mv $tmp/out $ac_file
9982   else
9983     cat $tmp/out
9984     rm -f $tmp/out
9985   fi
9986
9987 done
9988 _ACEOF
9989 cat >>$CONFIG_STATUS <<\_ACEOF
9990
9991 #
9992 # CONFIG_HEADER section.
9993 #
9994
9995 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9996 # NAME is the cpp macro being defined and VALUE is the value it is being given.
9997 #
9998 # ac_d sets the value in "#define NAME VALUE" lines.
9999 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
10000 ac_dB='[         ].*$,\1#\2'
10001 ac_dC=' '
10002 ac_dD=',;t'
10003 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
10004 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
10005 ac_uB='$,\1#\2define\3'
10006 ac_uC=' '
10007 ac_uD=',;t'
10008
10009 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
10010   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10011   case $ac_file in
10012   - | *:- | *:-:* ) # input from stdin
10013         cat >$tmp/stdin
10014         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10015         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10016   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10017         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10018   * )   ac_file_in=$ac_file.in ;;
10019   esac
10020
10021   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
10022 echo "$as_me: creating $ac_file" >&6;}
10023
10024   # First look for the input files in the build tree, otherwise in the
10025   # src tree.
10026   ac_file_inputs=`IFS=:
10027     for f in $ac_file_in; do
10028       case $f in
10029       -) echo $tmp/stdin ;;
10030       [\\/$]*)
10031          # Absolute (can't be DOS-style, as IFS=:)
10032          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10033 echo "$as_me: error: cannot find input file: $f" >&2;}
10034    { (exit 1); exit 1; }; }
10035          # Do quote $f, to prevent DOS paths from being IFS'd.
10036          echo "$f";;
10037       *) # Relative
10038          if test -f "$f"; then
10039            # Build tree
10040            echo "$f"
10041          elif test -f "$srcdir/$f"; then
10042            # Source tree
10043            echo "$srcdir/$f"
10044          else
10045            # /dev/null tree
10046            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10047 echo "$as_me: error: cannot find input file: $f" >&2;}
10048    { (exit 1); exit 1; }; }
10049          fi;;
10050       esac
10051     done` || { (exit 1); exit 1; }
10052   # Remove the trailing spaces.
10053   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
10054
10055 _ACEOF
10056
10057 # Transform confdefs.h into two sed scripts, `conftest.defines' and
10058 # `conftest.undefs', that substitutes the proper values into
10059 # config.h.in to produce config.h.  The first handles `#define'
10060 # templates, and the second `#undef' templates.
10061 # And first: Protect against being on the right side of a sed subst in
10062 # config.status.  Protect against being in an unquoted here document
10063 # in config.status.
10064 rm -f conftest.defines conftest.undefs
10065 # Using a here document instead of a string reduces the quoting nightmare.
10066 # Putting comments in sed scripts is not portable.
10067 #
10068 # `end' is used to avoid that the second main sed command (meant for
10069 # 0-ary CPP macros) applies to n-ary macro definitions.
10070 # See the Autoconf documentation for `clear'.
10071 cat >confdef2sed.sed <<\_ACEOF
10072 s/[\\&,]/\\&/g
10073 s,[\\$`],\\&,g
10074 t clear
10075 : clear
10076 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
10077 t end
10078 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
10079 : end
10080 _ACEOF
10081 # If some macros were called several times there might be several times
10082 # the same #defines, which is useless.  Nevertheless, we may not want to
10083 # sort them, since we want the *last* AC-DEFINE to be honored.
10084 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
10085 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
10086 rm -f confdef2sed.sed
10087
10088 # This sed command replaces #undef with comments.  This is necessary, for
10089 # example, in the case of _POSIX_SOURCE, which is predefined and required
10090 # on some systems where configure will not decide to define it.
10091 cat >>conftest.undefs <<\_ACEOF
10092 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
10093 _ACEOF
10094
10095 # Break up conftest.defines because some shells have a limit on the size
10096 # of here documents, and old seds have small limits too (100 cmds).
10097 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
10098 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
10099 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
10100 echo '  :' >>$CONFIG_STATUS
10101 rm -f conftest.tail
10102 while grep . conftest.defines >/dev/null
10103 do
10104   # Write a limited-size here document to $tmp/defines.sed.
10105   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
10106   # Speed up: don't consider the non `#define' lines.
10107   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
10108   # Work around the forget-to-reset-the-flag bug.
10109   echo 't clr' >>$CONFIG_STATUS
10110   echo ': clr' >>$CONFIG_STATUS
10111   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
10112   echo 'CEOF
10113   sed -f $tmp/defines.sed $tmp/in >$tmp/out
10114   rm -f $tmp/in
10115   mv $tmp/out $tmp/in
10116 ' >>$CONFIG_STATUS
10117   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
10118   rm -f conftest.defines
10119   mv conftest.tail conftest.defines
10120 done
10121 rm -f conftest.defines
10122 echo '  fi # grep' >>$CONFIG_STATUS
10123 echo >>$CONFIG_STATUS
10124
10125 # Break up conftest.undefs because some shells have a limit on the size
10126 # of here documents, and old seds have small limits too (100 cmds).
10127 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
10128 rm -f conftest.tail
10129 while grep . conftest.undefs >/dev/null
10130 do
10131   # Write a limited-size here document to $tmp/undefs.sed.
10132   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
10133   # Speed up: don't consider the non `#undef'
10134   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
10135   # Work around the forget-to-reset-the-flag bug.
10136   echo 't clr' >>$CONFIG_STATUS
10137   echo ': clr' >>$CONFIG_STATUS
10138   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
10139   echo 'CEOF
10140   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
10141   rm -f $tmp/in
10142   mv $tmp/out $tmp/in
10143 ' >>$CONFIG_STATUS
10144   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
10145   rm -f conftest.undefs
10146   mv conftest.tail conftest.undefs
10147 done
10148 rm -f conftest.undefs
10149
10150 cat >>$CONFIG_STATUS <<\_ACEOF
10151   # Let's still pretend it is `configure' which instantiates (i.e., don't
10152   # use $as_me), people would be surprised to read:
10153   #    /* config.h.  Generated by config.status.  */
10154   if test x"$ac_file" = x-; then
10155     echo "/* Generated by configure.  */" >$tmp/config.h
10156   else
10157     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
10158   fi
10159   cat $tmp/in >>$tmp/config.h
10160   rm -f $tmp/in
10161   if test x"$ac_file" != x-; then
10162     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
10163       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
10164 echo "$as_me: $ac_file is unchanged" >&6;}
10165     else
10166       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10167 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10168          X"$ac_file" : 'X\(//\)[^/]' \| \
10169          X"$ac_file" : 'X\(//\)$' \| \
10170          X"$ac_file" : 'X\(/\)' \| \
10171          .     : '\(.\)' 2>/dev/null ||
10172 echo X"$ac_file" |
10173     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10174           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10175           /^X\(\/\/\)$/{ s//\1/; q; }
10176           /^X\(\/\).*/{ s//\1/; q; }
10177           s/.*/./; q'`
10178       { if $as_mkdir_p; then
10179     mkdir -p "$ac_dir"
10180   else
10181     as_dir="$ac_dir"
10182     as_dirs=
10183     while test ! -d "$as_dir"; do
10184       as_dirs="$as_dir $as_dirs"
10185       as_dir=`(dirname "$as_dir") 2>/dev/null ||
10186 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10187          X"$as_dir" : 'X\(//\)[^/]' \| \
10188          X"$as_dir" : 'X\(//\)$' \| \
10189          X"$as_dir" : 'X\(/\)' \| \
10190          .     : '\(.\)' 2>/dev/null ||
10191 echo X"$as_dir" |
10192     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10193           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10194           /^X\(\/\/\)$/{ s//\1/; q; }
10195           /^X\(\/\).*/{ s//\1/; q; }
10196           s/.*/./; q'`
10197     done
10198     test ! -n "$as_dirs" || mkdir $as_dirs
10199   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10200 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10201    { (exit 1); exit 1; }; }; }
10202
10203       rm -f $ac_file
10204       mv $tmp/config.h $ac_file
10205     fi
10206   else
10207     cat $tmp/config.h
10208     rm -f $tmp/config.h
10209   fi
10210 done
10211 _ACEOF
10212 cat >>$CONFIG_STATUS <<\_ACEOF
10213
10214 #
10215 # CONFIG_COMMANDS section.
10216 #
10217 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
10218   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
10219   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
10220   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
10221 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10222          X"$ac_dest" : 'X\(//\)[^/]' \| \
10223          X"$ac_dest" : 'X\(//\)$' \| \
10224          X"$ac_dest" : 'X\(/\)' \| \
10225          .     : '\(.\)' 2>/dev/null ||
10226 echo X"$ac_dest" |
10227     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10228           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10229           /^X\(\/\/\)$/{ s//\1/; q; }
10230           /^X\(\/\).*/{ s//\1/; q; }
10231           s/.*/./; q'`
10232   { if $as_mkdir_p; then
10233     mkdir -p "$ac_dir"
10234   else
10235     as_dir="$ac_dir"
10236     as_dirs=
10237     while test ! -d "$as_dir"; do
10238       as_dirs="$as_dir $as_dirs"
10239       as_dir=`(dirname "$as_dir") 2>/dev/null ||
10240 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10241          X"$as_dir" : 'X\(//\)[^/]' \| \
10242          X"$as_dir" : 'X\(//\)$' \| \
10243          X"$as_dir" : 'X\(/\)' \| \
10244          .     : '\(.\)' 2>/dev/null ||
10245 echo X"$as_dir" |
10246     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10247           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10248           /^X\(\/\/\)$/{ s//\1/; q; }
10249           /^X\(\/\).*/{ s//\1/; q; }
10250           s/.*/./; q'`
10251     done
10252     test ! -n "$as_dirs" || mkdir $as_dirs
10253   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10254 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10255    { (exit 1); exit 1; }; }; }
10256
10257   ac_builddir=.
10258
10259 if test "$ac_dir" != .; then
10260   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10261   # A "../" for each directory in $ac_dir_suffix.
10262   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10263 else
10264   ac_dir_suffix= ac_top_builddir=
10265 fi
10266
10267 case $srcdir in
10268   .)  # No --srcdir option.  We are building in place.
10269     ac_srcdir=.
10270     if test -z "$ac_top_builddir"; then
10271        ac_top_srcdir=.
10272     else
10273        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10274     fi ;;
10275   [\\/]* | ?:[\\/]* )  # Absolute path.
10276     ac_srcdir=$srcdir$ac_dir_suffix;
10277     ac_top_srcdir=$srcdir ;;
10278   *) # Relative path.
10279     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10280     ac_top_srcdir=$ac_top_builddir$srcdir ;;
10281 esac
10282
10283 # Do not use `cd foo && pwd` to compute absolute paths, because
10284 # the directories may not exist.
10285 case `pwd` in
10286 .) ac_abs_builddir="$ac_dir";;
10287 *)
10288   case "$ac_dir" in
10289   .) ac_abs_builddir=`pwd`;;
10290   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
10291   *) ac_abs_builddir=`pwd`/"$ac_dir";;
10292   esac;;
10293 esac
10294 case $ac_abs_builddir in
10295 .) ac_abs_top_builddir=${ac_top_builddir}.;;
10296 *)
10297   case ${ac_top_builddir}. in
10298   .) ac_abs_top_builddir=$ac_abs_builddir;;
10299   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
10300   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
10301   esac;;
10302 esac
10303 case $ac_abs_builddir in
10304 .) ac_abs_srcdir=$ac_srcdir;;
10305 *)
10306   case $ac_srcdir in
10307   .) ac_abs_srcdir=$ac_abs_builddir;;
10308   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
10309   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
10310   esac;;
10311 esac
10312 case $ac_abs_builddir in
10313 .) ac_abs_top_srcdir=$ac_top_srcdir;;
10314 *)
10315   case $ac_top_srcdir in
10316   .) ac_abs_top_srcdir=$ac_abs_builddir;;
10317   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
10318   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
10319   esac;;
10320 esac
10321
10322
10323   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
10324 echo "$as_me: executing $ac_dest commands" >&6;}
10325   case $ac_dest in
10326     default ) echo timestamp > stamp-h ;;
10327   esac
10328 done
10329 _ACEOF
10330
10331 cat >>$CONFIG_STATUS <<\_ACEOF
10332
10333 { (exit 0); exit 0; }
10334 _ACEOF
10335 chmod +x $CONFIG_STATUS
10336 ac_clean_files=$ac_clean_files_save
10337
10338
10339 # configure is writing to config.log, and then calls config.status.
10340 # config.status does its own redirection, appending to config.log.
10341 # Unfortunately, on DOS this fails, as config.log is still kept open
10342 # by configure, so config.status won't be able to write to it; its
10343 # output is simply discarded.  So we exec the FD to /dev/null,
10344 # effectively closing config.log, so it can be properly (re)opened and
10345 # appended to by config.status.  When coming back to configure, we
10346 # need to make the FD available again.
10347 if test "$no_create" != yes; then
10348   ac_cs_success=:
10349   ac_config_status_args=
10350   test "$silent" = yes &&
10351     ac_config_status_args="$ac_config_status_args --quiet"
10352   exec 5>/dev/null
10353   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10354   exec 5>>config.log
10355   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10356   # would make configure fail if this is the last instruction.
10357   $ac_cs_success || { (exit 1); exit 1; }
10358 fi
10359
10360
10361           ac_config_commands="$ac_config_commands default-1"
10362