Regenerate files built from other files.
[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 RMPROG SHPROG LEX LEXLIB LEX_OUTPUT_ROOT YACC 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 10.20 and later -Ae
2370 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2371 # SVR4                  -Xc -D__EXTENSIONS__
2372 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2373 do
2374   CC="$ac_save_CC $ac_arg"
2375   cat >conftest.$ac_ext <<_ACEOF
2376 /* confdefs.h.  */
2377 _ACEOF
2378 cat confdefs.h >>conftest.$ac_ext
2379 cat >>conftest.$ac_ext <<_ACEOF
2380 /* end confdefs.h.  */
2381 #include <stdarg.h>
2382 #include <stdio.h>
2383 #include <sys/types.h>
2384 #include <sys/stat.h>
2385 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2386 struct buf { int x; };
2387 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2388 static char *e (p, i)
2389      char **p;
2390      int i;
2391 {
2392   return p[i];
2393 }
2394 static char *f (char * (*g) (char **, int), char **p, ...)
2395 {
2396   char *s;
2397   va_list v;
2398   va_start (v,p);
2399   s = g (p, va_arg (v,int));
2400   va_end (v);
2401   return s;
2402 }
2403 int test (int i, double x);
2404 struct s1 {int (*f) (int a);};
2405 struct s2 {int (*f) (double a);};
2406 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2407 int argc;
2408 char **argv;
2409
2410 int
2411 main ()
2412 {
2413
2414 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2415
2416   ;
2417   return 0;
2418 }
2419 _ACEOF
2420 rm -f conftest.$ac_objext
2421 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2422   (eval $ac_compile) 2>conftest.er1
2423   ac_status=$?
2424   grep -v '^ *+' conftest.er1 >conftest.err
2425   rm -f conftest.er1
2426   cat conftest.err >&5
2427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2428   (exit $ac_status); } &&
2429          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2430   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2431   (eval $ac_try) 2>&5
2432   ac_status=$?
2433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2434   (exit $ac_status); }; } &&
2435          { ac_try='test -s conftest.$ac_objext'
2436   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2437   (eval $ac_try) 2>&5
2438   ac_status=$?
2439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2440   (exit $ac_status); }; }; then
2441   am_cv_prog_cc_stdc="$ac_arg"; break
2442 else
2443   echo "$as_me: failed program was:" >&5
2444 sed 's/^/| /' conftest.$ac_ext >&5
2445
2446 fi
2447 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2448 done
2449 CC="$ac_save_CC"
2450
2451 fi
2452
2453 if test -z "$am_cv_prog_cc_stdc"; then
2454   echo "$as_me:$LINENO: result: none needed" >&5
2455 echo "${ECHO_T}none needed" >&6
2456 else
2457   echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
2458 echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6
2459 fi
2460 case "x$am_cv_prog_cc_stdc" in
2461   x|xno) ;;
2462   *) CC="$CC $am_cv_prog_cc_stdc" ;;
2463 esac
2464
2465 if test x"$CFLAGS" != x; then
2466     CFLAGS=`echo "$CFLAGS" | sed -e 's/-O2/-O3/'`
2467 fi
2468 if test x"$CFLAGS" != x; then
2469     CFLAGS=`echo "$CFLAGS" | sed -e 's/-pipe//g'`
2470 fi
2471 if test x"$CFLAGS" != x; then
2472     unet_old_cflags=$CFLAGS
2473     CFLAGS=`echo "$CFLAGS" | sed -e 's/-g//g'`
2474 fi
2475 if test x"$CFLAGS" != x"$unet_old_cflags"; then
2476     # If -g was already there, force symbols to be enabled
2477     unet_cv_enable_symbols=yes
2478 fi
2479 if test x"$CFLAGS" != x; then
2480     unet_old_cflags=$CFLAGS
2481     CFLAGS=`echo "$CFLAGS" | sed -e 's/-pg//g'`
2482 fi
2483 if test x"$CFLAGS" != x"$unet_old_cflags"; then
2484     # If -pg was already there, force profiling to be enabled
2485     unet_cv_enable_profile=yes
2486 fi
2487 if test x"$CFLAGS" != x; then
2488     unet_old_cflags=$CFLAGS
2489     CFLAGS=`echo "$CFLAGS" | sed -e 's/-Wall//g'`
2490 fi
2491 if test x"$CFLAGS" != x"$unet_old_cflags"; then
2492     # If -Wall was already there, force warnings to be enabled
2493     unet_cv_enable_warnings=yes
2494 fi
2495 if test x"$CFLAGS" != x; then
2496     unet_old_cflags=$CFLAGS
2497     CFLAGS=`echo "$CFLAGS" | sed -e 's/-pedantic//g'`
2498 fi
2499 if test x"$CFLAGS" != x"$unet_old_cflags"; then
2500     # If -pedantic was already there, force pedatic to be enabled
2501     unet_cv_enable_pedantic=yes
2502 fi
2503
2504
2505 echo "$as_me:$LINENO: checking for library containing crypt" >&5
2506 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6
2507 if test "${ac_cv_search_crypt+set}" = set; then
2508   echo $ECHO_N "(cached) $ECHO_C" >&6
2509 else
2510   ac_func_search_save_LIBS=$LIBS
2511 ac_cv_search_crypt=no
2512 cat >conftest.$ac_ext <<_ACEOF
2513 /* confdefs.h.  */
2514 _ACEOF
2515 cat confdefs.h >>conftest.$ac_ext
2516 cat >>conftest.$ac_ext <<_ACEOF
2517 /* end confdefs.h.  */
2518
2519 /* Override any gcc2 internal prototype to avoid an error.  */
2520 #ifdef __cplusplus
2521 extern "C"
2522 #endif
2523 /* We use char because int might match the return type of a gcc2
2524    builtin and then its argument prototype would still apply.  */
2525 char crypt ();
2526 int
2527 main ()
2528 {
2529 crypt ();
2530   ;
2531   return 0;
2532 }
2533 _ACEOF
2534 rm -f conftest.$ac_objext conftest$ac_exeext
2535 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2536   (eval $ac_link) 2>conftest.er1
2537   ac_status=$?
2538   grep -v '^ *+' conftest.er1 >conftest.err
2539   rm -f conftest.er1
2540   cat conftest.err >&5
2541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2542   (exit $ac_status); } &&
2543          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2544   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2545   (eval $ac_try) 2>&5
2546   ac_status=$?
2547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2548   (exit $ac_status); }; } &&
2549          { ac_try='test -s conftest$ac_exeext'
2550   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2551   (eval $ac_try) 2>&5
2552   ac_status=$?
2553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2554   (exit $ac_status); }; }; then
2555   ac_cv_search_crypt="none required"
2556 else
2557   echo "$as_me: failed program was:" >&5
2558 sed 's/^/| /' conftest.$ac_ext >&5
2559
2560 fi
2561 rm -f conftest.err conftest.$ac_objext \
2562       conftest$ac_exeext conftest.$ac_ext
2563 if test "$ac_cv_search_crypt" = no; then
2564   for ac_lib in descrypt crypt; do
2565     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
2566     cat >conftest.$ac_ext <<_ACEOF
2567 /* confdefs.h.  */
2568 _ACEOF
2569 cat confdefs.h >>conftest.$ac_ext
2570 cat >>conftest.$ac_ext <<_ACEOF
2571 /* end confdefs.h.  */
2572
2573 /* Override any gcc2 internal prototype to avoid an error.  */
2574 #ifdef __cplusplus
2575 extern "C"
2576 #endif
2577 /* We use char because int might match the return type of a gcc2
2578    builtin and then its argument prototype would still apply.  */
2579 char crypt ();
2580 int
2581 main ()
2582 {
2583 crypt ();
2584   ;
2585   return 0;
2586 }
2587 _ACEOF
2588 rm -f conftest.$ac_objext conftest$ac_exeext
2589 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2590   (eval $ac_link) 2>conftest.er1
2591   ac_status=$?
2592   grep -v '^ *+' conftest.er1 >conftest.err
2593   rm -f conftest.er1
2594   cat conftest.err >&5
2595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2596   (exit $ac_status); } &&
2597          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2598   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2599   (eval $ac_try) 2>&5
2600   ac_status=$?
2601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2602   (exit $ac_status); }; } &&
2603          { ac_try='test -s conftest$ac_exeext'
2604   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2605   (eval $ac_try) 2>&5
2606   ac_status=$?
2607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2608   (exit $ac_status); }; }; then
2609   ac_cv_search_crypt="-l$ac_lib"
2610 break
2611 else
2612   echo "$as_me: failed program was:" >&5
2613 sed 's/^/| /' conftest.$ac_ext >&5
2614
2615 fi
2616 rm -f conftest.err conftest.$ac_objext \
2617       conftest$ac_exeext conftest.$ac_ext
2618   done
2619 fi
2620 LIBS=$ac_func_search_save_LIBS
2621 fi
2622 echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
2623 echo "${ECHO_T}$ac_cv_search_crypt" >&6
2624 if test "$ac_cv_search_crypt" != no; then
2625   test "$ac_cv_search_crypt" = "none required" || LIBS="$ac_cv_search_crypt $LIBS"
2626
2627 else
2628   { { echo "$as_me:$LINENO: error: Unable to find library containing crypt()" >&5
2629 echo "$as_me: error: Unable to find library containing crypt()" >&2;}
2630    { (exit 1); exit 1; }; }
2631 fi
2632
2633
2634
2635    # Most operating systems have gethostbyname() in the default searched
2636    # libraries (i.e. libc):
2637    echo "$as_me:$LINENO: checking for gethostbyname" >&5
2638 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
2639 if test "${ac_cv_func_gethostbyname+set}" = set; then
2640   echo $ECHO_N "(cached) $ECHO_C" >&6
2641 else
2642   cat >conftest.$ac_ext <<_ACEOF
2643 /* confdefs.h.  */
2644 _ACEOF
2645 cat confdefs.h >>conftest.$ac_ext
2646 cat >>conftest.$ac_ext <<_ACEOF
2647 /* end confdefs.h.  */
2648 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
2649    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2650 #define gethostbyname innocuous_gethostbyname
2651
2652 /* System header to define __stub macros and hopefully few prototypes,
2653     which can conflict with char gethostbyname (); below.
2654     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2655     <limits.h> exists even on freestanding compilers.  */
2656
2657 #ifdef __STDC__
2658 # include <limits.h>
2659 #else
2660 # include <assert.h>
2661 #endif
2662
2663 #undef gethostbyname
2664
2665 /* Override any gcc2 internal prototype to avoid an error.  */
2666 #ifdef __cplusplus
2667 extern "C"
2668 {
2669 #endif
2670 /* We use char because int might match the return type of a gcc2
2671    builtin and then its argument prototype would still apply.  */
2672 char gethostbyname ();
2673 /* The GNU C library defines this for functions which it implements
2674     to always fail with ENOSYS.  Some functions are actually named
2675     something starting with __ and the normal name is an alias.  */
2676 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
2677 choke me
2678 #else
2679 char (*f) () = gethostbyname;
2680 #endif
2681 #ifdef __cplusplus
2682 }
2683 #endif
2684
2685 int
2686 main ()
2687 {
2688 return f != gethostbyname;
2689   ;
2690   return 0;
2691 }
2692 _ACEOF
2693 rm -f conftest.$ac_objext conftest$ac_exeext
2694 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2695   (eval $ac_link) 2>conftest.er1
2696   ac_status=$?
2697   grep -v '^ *+' conftest.er1 >conftest.err
2698   rm -f conftest.er1
2699   cat conftest.err >&5
2700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2701   (exit $ac_status); } &&
2702          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2703   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2704   (eval $ac_try) 2>&5
2705   ac_status=$?
2706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2707   (exit $ac_status); }; } &&
2708          { ac_try='test -s conftest$ac_exeext'
2709   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2710   (eval $ac_try) 2>&5
2711   ac_status=$?
2712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2713   (exit $ac_status); }; }; then
2714   ac_cv_func_gethostbyname=yes
2715 else
2716   echo "$as_me: failed program was:" >&5
2717 sed 's/^/| /' conftest.$ac_ext >&5
2718
2719 ac_cv_func_gethostbyname=no
2720 fi
2721 rm -f conftest.err conftest.$ac_objext \
2722       conftest$ac_exeext conftest.$ac_ext
2723 fi
2724 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
2725 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
2726 if test $ac_cv_func_gethostbyname = yes; then
2727   :
2728 else
2729   # Some OSes (eg. Solaris) place it in libnsl:
2730
2731 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
2732 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
2733 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
2734   echo $ECHO_N "(cached) $ECHO_C" >&6
2735 else
2736   ac_check_lib_save_LIBS=$LIBS
2737 LIBS="-lnsl  $LIBS"
2738 cat >conftest.$ac_ext <<_ACEOF
2739 /* confdefs.h.  */
2740 _ACEOF
2741 cat confdefs.h >>conftest.$ac_ext
2742 cat >>conftest.$ac_ext <<_ACEOF
2743 /* end confdefs.h.  */
2744
2745 /* Override any gcc2 internal prototype to avoid an error.  */
2746 #ifdef __cplusplus
2747 extern "C"
2748 #endif
2749 /* We use char because int might match the return type of a gcc2
2750    builtin and then its argument prototype would still apply.  */
2751 char gethostbyname ();
2752 int
2753 main ()
2754 {
2755 gethostbyname ();
2756   ;
2757   return 0;
2758 }
2759 _ACEOF
2760 rm -f conftest.$ac_objext conftest$ac_exeext
2761 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2762   (eval $ac_link) 2>conftest.er1
2763   ac_status=$?
2764   grep -v '^ *+' conftest.er1 >conftest.err
2765   rm -f conftest.er1
2766   cat conftest.err >&5
2767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2768   (exit $ac_status); } &&
2769          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2770   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2771   (eval $ac_try) 2>&5
2772   ac_status=$?
2773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2774   (exit $ac_status); }; } &&
2775          { ac_try='test -s conftest$ac_exeext'
2776   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2777   (eval $ac_try) 2>&5
2778   ac_status=$?
2779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2780   (exit $ac_status); }; }; then
2781   ac_cv_lib_nsl_gethostbyname=yes
2782 else
2783   echo "$as_me: failed program was:" >&5
2784 sed 's/^/| /' conftest.$ac_ext >&5
2785
2786 ac_cv_lib_nsl_gethostbyname=no
2787 fi
2788 rm -f conftest.err conftest.$ac_objext \
2789       conftest$ac_exeext conftest.$ac_ext
2790 LIBS=$ac_check_lib_save_LIBS
2791 fi
2792 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
2793 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
2794 if test $ac_cv_lib_nsl_gethostbyname = yes; then
2795   cat >>confdefs.h <<_ACEOF
2796 #define HAVE_LIBNSL 1
2797 _ACEOF
2798
2799   LIBS="-lnsl $LIBS"
2800
2801 else
2802   # Some strange OSes (SINIX) have it in libsocket:
2803
2804 echo "$as_me:$LINENO: checking for gethostbyname in -lsocket" >&5
2805 echo $ECHO_N "checking for gethostbyname in -lsocket... $ECHO_C" >&6
2806 if test "${ac_cv_lib_socket_gethostbyname+set}" = set; then
2807   echo $ECHO_N "(cached) $ECHO_C" >&6
2808 else
2809   ac_check_lib_save_LIBS=$LIBS
2810 LIBS="-lsocket  $LIBS"
2811 cat >conftest.$ac_ext <<_ACEOF
2812 /* confdefs.h.  */
2813 _ACEOF
2814 cat confdefs.h >>conftest.$ac_ext
2815 cat >>conftest.$ac_ext <<_ACEOF
2816 /* end confdefs.h.  */
2817
2818 /* Override any gcc2 internal prototype to avoid an error.  */
2819 #ifdef __cplusplus
2820 extern "C"
2821 #endif
2822 /* We use char because int might match the return type of a gcc2
2823    builtin and then its argument prototype would still apply.  */
2824 char gethostbyname ();
2825 int
2826 main ()
2827 {
2828 gethostbyname ();
2829   ;
2830   return 0;
2831 }
2832 _ACEOF
2833 rm -f conftest.$ac_objext conftest$ac_exeext
2834 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2835   (eval $ac_link) 2>conftest.er1
2836   ac_status=$?
2837   grep -v '^ *+' conftest.er1 >conftest.err
2838   rm -f conftest.er1
2839   cat conftest.err >&5
2840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2841   (exit $ac_status); } &&
2842          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2843   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2844   (eval $ac_try) 2>&5
2845   ac_status=$?
2846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2847   (exit $ac_status); }; } &&
2848          { ac_try='test -s conftest$ac_exeext'
2849   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2850   (eval $ac_try) 2>&5
2851   ac_status=$?
2852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2853   (exit $ac_status); }; }; then
2854   ac_cv_lib_socket_gethostbyname=yes
2855 else
2856   echo "$as_me: failed program was:" >&5
2857 sed 's/^/| /' conftest.$ac_ext >&5
2858
2859 ac_cv_lib_socket_gethostbyname=no
2860 fi
2861 rm -f conftest.err conftest.$ac_objext \
2862       conftest$ac_exeext conftest.$ac_ext
2863 LIBS=$ac_check_lib_save_LIBS
2864 fi
2865 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_gethostbyname" >&5
2866 echo "${ECHO_T}$ac_cv_lib_socket_gethostbyname" >&6
2867 if test $ac_cv_lib_socket_gethostbyname = yes; then
2868   cat >>confdefs.h <<_ACEOF
2869 #define HAVE_LIBSOCKET 1
2870 _ACEOF
2871
2872   LIBS="-lsocket $LIBS"
2873
2874 else
2875   # Unfortunately libsocket sometimes depends on libnsl.
2876           # AC_CHECK_LIB's API is essentially broken so the following
2877           # ugliness is necessary:
2878           echo "$as_me:$LINENO: checking for gethostbyname in -lsocket" >&5
2879 echo $ECHO_N "checking for gethostbyname in -lsocket... $ECHO_C" >&6
2880 if test "${ac_cv_lib_socket_gethostbyname+set}" = set; then
2881   echo $ECHO_N "(cached) $ECHO_C" >&6
2882 else
2883   ac_check_lib_save_LIBS=$LIBS
2884 LIBS="-lsocket -lnsl $LIBS"
2885 cat >conftest.$ac_ext <<_ACEOF
2886 /* confdefs.h.  */
2887 _ACEOF
2888 cat confdefs.h >>conftest.$ac_ext
2889 cat >>conftest.$ac_ext <<_ACEOF
2890 /* end confdefs.h.  */
2891
2892 /* Override any gcc2 internal prototype to avoid an error.  */
2893 #ifdef __cplusplus
2894 extern "C"
2895 #endif
2896 /* We use char because int might match the return type of a gcc2
2897    builtin and then its argument prototype would still apply.  */
2898 char gethostbyname ();
2899 int
2900 main ()
2901 {
2902 gethostbyname ();
2903   ;
2904   return 0;
2905 }
2906 _ACEOF
2907 rm -f conftest.$ac_objext conftest$ac_exeext
2908 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2909   (eval $ac_link) 2>conftest.er1
2910   ac_status=$?
2911   grep -v '^ *+' conftest.er1 >conftest.err
2912   rm -f conftest.er1
2913   cat conftest.err >&5
2914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2915   (exit $ac_status); } &&
2916          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2917   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2918   (eval $ac_try) 2>&5
2919   ac_status=$?
2920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2921   (exit $ac_status); }; } &&
2922          { ac_try='test -s conftest$ac_exeext'
2923   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2924   (eval $ac_try) 2>&5
2925   ac_status=$?
2926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2927   (exit $ac_status); }; }; then
2928   ac_cv_lib_socket_gethostbyname=yes
2929 else
2930   echo "$as_me: failed program was:" >&5
2931 sed 's/^/| /' conftest.$ac_ext >&5
2932
2933 ac_cv_lib_socket_gethostbyname=no
2934 fi
2935 rm -f conftest.err conftest.$ac_objext \
2936       conftest$ac_exeext conftest.$ac_ext
2937 LIBS=$ac_check_lib_save_LIBS
2938 fi
2939 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_gethostbyname" >&5
2940 echo "${ECHO_T}$ac_cv_lib_socket_gethostbyname" >&6
2941 if test $ac_cv_lib_socket_gethostbyname = yes; then
2942   LIBS="-lsocket -lnsl $LIBS"
2943 else
2944
2945 echo "$as_me:$LINENO: checking for gethostbyname in -lresolv" >&5
2946 echo $ECHO_N "checking for gethostbyname in -lresolv... $ECHO_C" >&6
2947 if test "${ac_cv_lib_resolv_gethostbyname+set}" = set; then
2948   echo $ECHO_N "(cached) $ECHO_C" >&6
2949 else
2950   ac_check_lib_save_LIBS=$LIBS
2951 LIBS="-lresolv  $LIBS"
2952 cat >conftest.$ac_ext <<_ACEOF
2953 /* confdefs.h.  */
2954 _ACEOF
2955 cat confdefs.h >>conftest.$ac_ext
2956 cat >>conftest.$ac_ext <<_ACEOF
2957 /* end confdefs.h.  */
2958
2959 /* Override any gcc2 internal prototype to avoid an error.  */
2960 #ifdef __cplusplus
2961 extern "C"
2962 #endif
2963 /* We use char because int might match the return type of a gcc2
2964    builtin and then its argument prototype would still apply.  */
2965 char gethostbyname ();
2966 int
2967 main ()
2968 {
2969 gethostbyname ();
2970   ;
2971   return 0;
2972 }
2973 _ACEOF
2974 rm -f conftest.$ac_objext conftest$ac_exeext
2975 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2976   (eval $ac_link) 2>conftest.er1
2977   ac_status=$?
2978   grep -v '^ *+' conftest.er1 >conftest.err
2979   rm -f conftest.er1
2980   cat conftest.err >&5
2981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2982   (exit $ac_status); } &&
2983          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2984   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2985   (eval $ac_try) 2>&5
2986   ac_status=$?
2987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2988   (exit $ac_status); }; } &&
2989          { ac_try='test -s conftest$ac_exeext'
2990   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2991   (eval $ac_try) 2>&5
2992   ac_status=$?
2993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2994   (exit $ac_status); }; }; then
2995   ac_cv_lib_resolv_gethostbyname=yes
2996 else
2997   echo "$as_me: failed program was:" >&5
2998 sed 's/^/| /' conftest.$ac_ext >&5
2999
3000 ac_cv_lib_resolv_gethostbyname=no
3001 fi
3002 rm -f conftest.err conftest.$ac_objext \
3003       conftest$ac_exeext conftest.$ac_ext
3004 LIBS=$ac_check_lib_save_LIBS
3005 fi
3006 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname" >&5
3007 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname" >&6
3008 if test $ac_cv_lib_resolv_gethostbyname = yes; then
3009   cat >>confdefs.h <<_ACEOF
3010 #define HAVE_LIBRESOLV 1
3011 _ACEOF
3012
3013   LIBS="-lresolv $LIBS"
3014
3015 fi
3016
3017 fi
3018
3019
3020 fi
3021
3022
3023 fi
3024
3025
3026 fi
3027
3028   echo "$as_me:$LINENO: checking for socket" >&5
3029 echo $ECHO_N "checking for socket... $ECHO_C" >&6
3030 if test "${ac_cv_func_socket+set}" = set; then
3031   echo $ECHO_N "(cached) $ECHO_C" >&6
3032 else
3033   cat >conftest.$ac_ext <<_ACEOF
3034 /* confdefs.h.  */
3035 _ACEOF
3036 cat confdefs.h >>conftest.$ac_ext
3037 cat >>conftest.$ac_ext <<_ACEOF
3038 /* end confdefs.h.  */
3039 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
3040    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
3041 #define socket innocuous_socket
3042
3043 /* System header to define __stub macros and hopefully few prototypes,
3044     which can conflict with char socket (); below.
3045     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3046     <limits.h> exists even on freestanding compilers.  */
3047
3048 #ifdef __STDC__
3049 # include <limits.h>
3050 #else
3051 # include <assert.h>
3052 #endif
3053
3054 #undef socket
3055
3056 /* Override any gcc2 internal prototype to avoid an error.  */
3057 #ifdef __cplusplus
3058 extern "C"
3059 {
3060 #endif
3061 /* We use char because int might match the return type of a gcc2
3062    builtin and then its argument prototype would still apply.  */
3063 char socket ();
3064 /* The GNU C library defines this for functions which it implements
3065     to always fail with ENOSYS.  Some functions are actually named
3066     something starting with __ and the normal name is an alias.  */
3067 #if defined (__stub_socket) || defined (__stub___socket)
3068 choke me
3069 #else
3070 char (*f) () = socket;
3071 #endif
3072 #ifdef __cplusplus
3073 }
3074 #endif
3075
3076 int
3077 main ()
3078 {
3079 return f != socket;
3080   ;
3081   return 0;
3082 }
3083 _ACEOF
3084 rm -f conftest.$ac_objext conftest$ac_exeext
3085 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3086   (eval $ac_link) 2>conftest.er1
3087   ac_status=$?
3088   grep -v '^ *+' conftest.er1 >conftest.err
3089   rm -f conftest.er1
3090   cat conftest.err >&5
3091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3092   (exit $ac_status); } &&
3093          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3094   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3095   (eval $ac_try) 2>&5
3096   ac_status=$?
3097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3098   (exit $ac_status); }; } &&
3099          { ac_try='test -s conftest$ac_exeext'
3100   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3101   (eval $ac_try) 2>&5
3102   ac_status=$?
3103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3104   (exit $ac_status); }; }; then
3105   ac_cv_func_socket=yes
3106 else
3107   echo "$as_me: failed program was:" >&5
3108 sed 's/^/| /' conftest.$ac_ext >&5
3109
3110 ac_cv_func_socket=no
3111 fi
3112 rm -f conftest.err conftest.$ac_objext \
3113       conftest$ac_exeext conftest.$ac_ext
3114 fi
3115 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
3116 echo "${ECHO_T}$ac_cv_func_socket" >&6
3117 if test $ac_cv_func_socket = yes; then
3118   :
3119 else
3120
3121 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
3122 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
3123 if test "${ac_cv_lib_socket_socket+set}" = set; then
3124   echo $ECHO_N "(cached) $ECHO_C" >&6
3125 else
3126   ac_check_lib_save_LIBS=$LIBS
3127 LIBS="-lsocket  $LIBS"
3128 cat >conftest.$ac_ext <<_ACEOF
3129 /* confdefs.h.  */
3130 _ACEOF
3131 cat confdefs.h >>conftest.$ac_ext
3132 cat >>conftest.$ac_ext <<_ACEOF
3133 /* end confdefs.h.  */
3134
3135 /* Override any gcc2 internal prototype to avoid an error.  */
3136 #ifdef __cplusplus
3137 extern "C"
3138 #endif
3139 /* We use char because int might match the return type of a gcc2
3140    builtin and then its argument prototype would still apply.  */
3141 char socket ();
3142 int
3143 main ()
3144 {
3145 socket ();
3146   ;
3147   return 0;
3148 }
3149 _ACEOF
3150 rm -f conftest.$ac_objext conftest$ac_exeext
3151 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3152   (eval $ac_link) 2>conftest.er1
3153   ac_status=$?
3154   grep -v '^ *+' conftest.er1 >conftest.err
3155   rm -f conftest.er1
3156   cat conftest.err >&5
3157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3158   (exit $ac_status); } &&
3159          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3160   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3161   (eval $ac_try) 2>&5
3162   ac_status=$?
3163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3164   (exit $ac_status); }; } &&
3165          { ac_try='test -s conftest$ac_exeext'
3166   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3167   (eval $ac_try) 2>&5
3168   ac_status=$?
3169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3170   (exit $ac_status); }; }; then
3171   ac_cv_lib_socket_socket=yes
3172 else
3173   echo "$as_me: failed program was:" >&5
3174 sed 's/^/| /' conftest.$ac_ext >&5
3175
3176 ac_cv_lib_socket_socket=no
3177 fi
3178 rm -f conftest.err conftest.$ac_objext \
3179       conftest$ac_exeext conftest.$ac_ext
3180 LIBS=$ac_check_lib_save_LIBS
3181 fi
3182 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
3183 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
3184 if test $ac_cv_lib_socket_socket = yes; then
3185   cat >>confdefs.h <<_ACEOF
3186 #define HAVE_LIBSOCKET 1
3187 _ACEOF
3188
3189   LIBS="-lsocket $LIBS"
3190
3191 else
3192   echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
3193 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
3194 if test "${ac_cv_lib_socket_socket+set}" = set; then
3195   echo $ECHO_N "(cached) $ECHO_C" >&6
3196 else
3197   ac_check_lib_save_LIBS=$LIBS
3198 LIBS="-lsocket -lnsl $LIBS"
3199 cat >conftest.$ac_ext <<_ACEOF
3200 /* confdefs.h.  */
3201 _ACEOF
3202 cat confdefs.h >>conftest.$ac_ext
3203 cat >>conftest.$ac_ext <<_ACEOF
3204 /* end confdefs.h.  */
3205
3206 /* Override any gcc2 internal prototype to avoid an error.  */
3207 #ifdef __cplusplus
3208 extern "C"
3209 #endif
3210 /* We use char because int might match the return type of a gcc2
3211    builtin and then its argument prototype would still apply.  */
3212 char socket ();
3213 int
3214 main ()
3215 {
3216 socket ();
3217   ;
3218   return 0;
3219 }
3220 _ACEOF
3221 rm -f conftest.$ac_objext conftest$ac_exeext
3222 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3223   (eval $ac_link) 2>conftest.er1
3224   ac_status=$?
3225   grep -v '^ *+' conftest.er1 >conftest.err
3226   rm -f conftest.er1
3227   cat conftest.err >&5
3228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3229   (exit $ac_status); } &&
3230          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3231   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3232   (eval $ac_try) 2>&5
3233   ac_status=$?
3234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3235   (exit $ac_status); }; } &&
3236          { ac_try='test -s conftest$ac_exeext'
3237   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3238   (eval $ac_try) 2>&5
3239   ac_status=$?
3240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3241   (exit $ac_status); }; }; then
3242   ac_cv_lib_socket_socket=yes
3243 else
3244   echo "$as_me: failed program was:" >&5
3245 sed 's/^/| /' conftest.$ac_ext >&5
3246
3247 ac_cv_lib_socket_socket=no
3248 fi
3249 rm -f conftest.err conftest.$ac_objext \
3250       conftest$ac_exeext conftest.$ac_ext
3251 LIBS=$ac_check_lib_save_LIBS
3252 fi
3253 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
3254 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
3255 if test $ac_cv_lib_socket_socket = yes; then
3256   LIBS="-lsocket -lnsl $LIBS"
3257 fi
3258
3259 fi
3260
3261 fi
3262
3263
3264
3265 ac_ext=c
3266 ac_cpp='$CPP $CPPFLAGS'
3267 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3268 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3269 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3270 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3271 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3272 # On Suns, sometimes $CPP names a directory.
3273 if test -n "$CPP" && test -d "$CPP"; then
3274   CPP=
3275 fi
3276 if test -z "$CPP"; then
3277   if test "${ac_cv_prog_CPP+set}" = set; then
3278   echo $ECHO_N "(cached) $ECHO_C" >&6
3279 else
3280       # Double quotes because CPP needs to be expanded
3281     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3282     do
3283       ac_preproc_ok=false
3284 for ac_c_preproc_warn_flag in '' yes
3285 do
3286   # Use a header file that comes with gcc, so configuring glibc
3287   # with a fresh cross-compiler works.
3288   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3289   # <limits.h> exists even on freestanding compilers.
3290   # On the NeXT, cc -E runs the code through the compiler's parser,
3291   # not just through cpp. "Syntax error" is here to catch this case.
3292   cat >conftest.$ac_ext <<_ACEOF
3293 /* confdefs.h.  */
3294 _ACEOF
3295 cat confdefs.h >>conftest.$ac_ext
3296 cat >>conftest.$ac_ext <<_ACEOF
3297 /* end confdefs.h.  */
3298 #ifdef __STDC__
3299 # include <limits.h>
3300 #else
3301 # include <assert.h>
3302 #endif
3303                      Syntax error
3304 _ACEOF
3305 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3306   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3307   ac_status=$?
3308   grep -v '^ *+' conftest.er1 >conftest.err
3309   rm -f conftest.er1
3310   cat conftest.err >&5
3311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3312   (exit $ac_status); } >/dev/null; then
3313   if test -s conftest.err; then
3314     ac_cpp_err=$ac_c_preproc_warn_flag
3315     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3316   else
3317     ac_cpp_err=
3318   fi
3319 else
3320   ac_cpp_err=yes
3321 fi
3322 if test -z "$ac_cpp_err"; then
3323   :
3324 else
3325   echo "$as_me: failed program was:" >&5
3326 sed 's/^/| /' conftest.$ac_ext >&5
3327
3328   # Broken: fails on valid input.
3329 continue
3330 fi
3331 rm -f conftest.err conftest.$ac_ext
3332
3333   # OK, works on sane cases.  Now check whether non-existent headers
3334   # can be detected and how.
3335   cat >conftest.$ac_ext <<_ACEOF
3336 /* confdefs.h.  */
3337 _ACEOF
3338 cat confdefs.h >>conftest.$ac_ext
3339 cat >>conftest.$ac_ext <<_ACEOF
3340 /* end confdefs.h.  */
3341 #include <ac_nonexistent.h>
3342 _ACEOF
3343 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3344   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3345   ac_status=$?
3346   grep -v '^ *+' conftest.er1 >conftest.err
3347   rm -f conftest.er1
3348   cat conftest.err >&5
3349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3350   (exit $ac_status); } >/dev/null; then
3351   if test -s conftest.err; then
3352     ac_cpp_err=$ac_c_preproc_warn_flag
3353     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3354   else
3355     ac_cpp_err=
3356   fi
3357 else
3358   ac_cpp_err=yes
3359 fi
3360 if test -z "$ac_cpp_err"; then
3361   # Broken: success on invalid input.
3362 continue
3363 else
3364   echo "$as_me: failed program was:" >&5
3365 sed 's/^/| /' conftest.$ac_ext >&5
3366
3367   # Passes both tests.
3368 ac_preproc_ok=:
3369 break
3370 fi
3371 rm -f conftest.err conftest.$ac_ext
3372
3373 done
3374 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3375 rm -f conftest.err conftest.$ac_ext
3376 if $ac_preproc_ok; then
3377   break
3378 fi
3379
3380     done
3381     ac_cv_prog_CPP=$CPP
3382
3383 fi
3384   CPP=$ac_cv_prog_CPP
3385 else
3386   ac_cv_prog_CPP=$CPP
3387 fi
3388 echo "$as_me:$LINENO: result: $CPP" >&5
3389 echo "${ECHO_T}$CPP" >&6
3390 ac_preproc_ok=false
3391 for ac_c_preproc_warn_flag in '' yes
3392 do
3393   # Use a header file that comes with gcc, so configuring glibc
3394   # with a fresh cross-compiler works.
3395   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3396   # <limits.h> exists even on freestanding compilers.
3397   # On the NeXT, cc -E runs the code through the compiler's parser,
3398   # not just through cpp. "Syntax error" is here to catch this case.
3399   cat >conftest.$ac_ext <<_ACEOF
3400 /* confdefs.h.  */
3401 _ACEOF
3402 cat confdefs.h >>conftest.$ac_ext
3403 cat >>conftest.$ac_ext <<_ACEOF
3404 /* end confdefs.h.  */
3405 #ifdef __STDC__
3406 # include <limits.h>
3407 #else
3408 # include <assert.h>
3409 #endif
3410                      Syntax error
3411 _ACEOF
3412 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3413   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3414   ac_status=$?
3415   grep -v '^ *+' conftest.er1 >conftest.err
3416   rm -f conftest.er1
3417   cat conftest.err >&5
3418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3419   (exit $ac_status); } >/dev/null; then
3420   if test -s conftest.err; then
3421     ac_cpp_err=$ac_c_preproc_warn_flag
3422     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3423   else
3424     ac_cpp_err=
3425   fi
3426 else
3427   ac_cpp_err=yes
3428 fi
3429 if test -z "$ac_cpp_err"; then
3430   :
3431 else
3432   echo "$as_me: failed program was:" >&5
3433 sed 's/^/| /' conftest.$ac_ext >&5
3434
3435   # Broken: fails on valid input.
3436 continue
3437 fi
3438 rm -f conftest.err conftest.$ac_ext
3439
3440   # OK, works on sane cases.  Now check whether non-existent headers
3441   # can be detected and how.
3442   cat >conftest.$ac_ext <<_ACEOF
3443 /* confdefs.h.  */
3444 _ACEOF
3445 cat confdefs.h >>conftest.$ac_ext
3446 cat >>conftest.$ac_ext <<_ACEOF
3447 /* end confdefs.h.  */
3448 #include <ac_nonexistent.h>
3449 _ACEOF
3450 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3451   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3452   ac_status=$?
3453   grep -v '^ *+' conftest.er1 >conftest.err
3454   rm -f conftest.er1
3455   cat conftest.err >&5
3456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3457   (exit $ac_status); } >/dev/null; then
3458   if test -s conftest.err; then
3459     ac_cpp_err=$ac_c_preproc_warn_flag
3460     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3461   else
3462     ac_cpp_err=
3463   fi
3464 else
3465   ac_cpp_err=yes
3466 fi
3467 if test -z "$ac_cpp_err"; then
3468   # Broken: success on invalid input.
3469 continue
3470 else
3471   echo "$as_me: failed program was:" >&5
3472 sed 's/^/| /' conftest.$ac_ext >&5
3473
3474   # Passes both tests.
3475 ac_preproc_ok=:
3476 break
3477 fi
3478 rm -f conftest.err conftest.$ac_ext
3479
3480 done
3481 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3482 rm -f conftest.err conftest.$ac_ext
3483 if $ac_preproc_ok; then
3484   :
3485 else
3486   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3487 See \`config.log' for more details." >&5
3488 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3489 See \`config.log' for more details." >&2;}
3490    { (exit 1); exit 1; }; }
3491 fi
3492
3493 ac_ext=c
3494 ac_cpp='$CPP $CPPFLAGS'
3495 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3496 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3497 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3498
3499
3500 echo "$as_me:$LINENO: checking for egrep" >&5
3501 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3502 if test "${ac_cv_prog_egrep+set}" = set; then
3503   echo $ECHO_N "(cached) $ECHO_C" >&6
3504 else
3505   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3506     then ac_cv_prog_egrep='grep -E'
3507     else ac_cv_prog_egrep='egrep'
3508     fi
3509 fi
3510 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3511 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3512  EGREP=$ac_cv_prog_egrep
3513
3514
3515 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3516 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3517 if test "${ac_cv_header_stdc+set}" = set; then
3518   echo $ECHO_N "(cached) $ECHO_C" >&6
3519 else
3520   cat >conftest.$ac_ext <<_ACEOF
3521 /* confdefs.h.  */
3522 _ACEOF
3523 cat confdefs.h >>conftest.$ac_ext
3524 cat >>conftest.$ac_ext <<_ACEOF
3525 /* end confdefs.h.  */
3526 #include <stdlib.h>
3527 #include <stdarg.h>
3528 #include <string.h>
3529 #include <float.h>
3530
3531 int
3532 main ()
3533 {
3534
3535   ;
3536   return 0;
3537 }
3538 _ACEOF
3539 rm -f conftest.$ac_objext
3540 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3541   (eval $ac_compile) 2>conftest.er1
3542   ac_status=$?
3543   grep -v '^ *+' conftest.er1 >conftest.err
3544   rm -f conftest.er1
3545   cat conftest.err >&5
3546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3547   (exit $ac_status); } &&
3548          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3549   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3550   (eval $ac_try) 2>&5
3551   ac_status=$?
3552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3553   (exit $ac_status); }; } &&
3554          { ac_try='test -s conftest.$ac_objext'
3555   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3556   (eval $ac_try) 2>&5
3557   ac_status=$?
3558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3559   (exit $ac_status); }; }; then
3560   ac_cv_header_stdc=yes
3561 else
3562   echo "$as_me: failed program was:" >&5
3563 sed 's/^/| /' conftest.$ac_ext >&5
3564
3565 ac_cv_header_stdc=no
3566 fi
3567 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3568
3569 if test $ac_cv_header_stdc = yes; then
3570   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3571   cat >conftest.$ac_ext <<_ACEOF
3572 /* confdefs.h.  */
3573 _ACEOF
3574 cat confdefs.h >>conftest.$ac_ext
3575 cat >>conftest.$ac_ext <<_ACEOF
3576 /* end confdefs.h.  */
3577 #include <string.h>
3578
3579 _ACEOF
3580 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3581   $EGREP "memchr" >/dev/null 2>&1; then
3582   :
3583 else
3584   ac_cv_header_stdc=no
3585 fi
3586 rm -f conftest*
3587
3588 fi
3589
3590 if test $ac_cv_header_stdc = yes; then
3591   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3592   cat >conftest.$ac_ext <<_ACEOF
3593 /* confdefs.h.  */
3594 _ACEOF
3595 cat confdefs.h >>conftest.$ac_ext
3596 cat >>conftest.$ac_ext <<_ACEOF
3597 /* end confdefs.h.  */
3598 #include <stdlib.h>
3599
3600 _ACEOF
3601 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3602   $EGREP "free" >/dev/null 2>&1; then
3603   :
3604 else
3605   ac_cv_header_stdc=no
3606 fi
3607 rm -f conftest*
3608
3609 fi
3610
3611 if test $ac_cv_header_stdc = yes; then
3612   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3613   if test "$cross_compiling" = yes; then
3614   :
3615 else
3616   cat >conftest.$ac_ext <<_ACEOF
3617 /* confdefs.h.  */
3618 _ACEOF
3619 cat confdefs.h >>conftest.$ac_ext
3620 cat >>conftest.$ac_ext <<_ACEOF
3621 /* end confdefs.h.  */
3622 #include <ctype.h>
3623 #if ((' ' & 0x0FF) == 0x020)
3624 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3625 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3626 #else
3627 # define ISLOWER(c) \
3628                    (('a' <= (c) && (c) <= 'i') \
3629                      || ('j' <= (c) && (c) <= 'r') \
3630                      || ('s' <= (c) && (c) <= 'z'))
3631 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3632 #endif
3633
3634 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3635 int
3636 main ()
3637 {
3638   int i;
3639   for (i = 0; i < 256; i++)
3640     if (XOR (islower (i), ISLOWER (i))
3641         || toupper (i) != TOUPPER (i))
3642       exit(2);
3643   exit (0);
3644 }
3645 _ACEOF
3646 rm -f conftest$ac_exeext
3647 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3648   (eval $ac_link) 2>&5
3649   ac_status=$?
3650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3651   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3652   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3653   (eval $ac_try) 2>&5
3654   ac_status=$?
3655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3656   (exit $ac_status); }; }; then
3657   :
3658 else
3659   echo "$as_me: program exited with status $ac_status" >&5
3660 echo "$as_me: failed program was:" >&5
3661 sed 's/^/| /' conftest.$ac_ext >&5
3662
3663 ( exit $ac_status )
3664 ac_cv_header_stdc=no
3665 fi
3666 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3667 fi
3668 fi
3669 fi
3670 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3671 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3672 if test $ac_cv_header_stdc = yes; then
3673
3674 cat >>confdefs.h <<\_ACEOF
3675 #define STDC_HEADERS 1
3676 _ACEOF
3677
3678 fi
3679
3680 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3681
3682
3683
3684
3685
3686
3687
3688
3689
3690 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3691                   inttypes.h stdint.h unistd.h
3692 do
3693 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3694 echo "$as_me:$LINENO: checking for $ac_header" >&5
3695 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3696 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3697   echo $ECHO_N "(cached) $ECHO_C" >&6
3698 else
3699   cat >conftest.$ac_ext <<_ACEOF
3700 /* confdefs.h.  */
3701 _ACEOF
3702 cat confdefs.h >>conftest.$ac_ext
3703 cat >>conftest.$ac_ext <<_ACEOF
3704 /* end confdefs.h.  */
3705 $ac_includes_default
3706
3707 #include <$ac_header>
3708 _ACEOF
3709 rm -f conftest.$ac_objext
3710 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3711   (eval $ac_compile) 2>conftest.er1
3712   ac_status=$?
3713   grep -v '^ *+' conftest.er1 >conftest.err
3714   rm -f conftest.er1
3715   cat conftest.err >&5
3716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3717   (exit $ac_status); } &&
3718          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3719   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3720   (eval $ac_try) 2>&5
3721   ac_status=$?
3722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3723   (exit $ac_status); }; } &&
3724          { ac_try='test -s conftest.$ac_objext'
3725   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3726   (eval $ac_try) 2>&5
3727   ac_status=$?
3728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3729   (exit $ac_status); }; }; then
3730   eval "$as_ac_Header=yes"
3731 else
3732   echo "$as_me: failed program was:" >&5
3733 sed 's/^/| /' conftest.$ac_ext >&5
3734
3735 eval "$as_ac_Header=no"
3736 fi
3737 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3738 fi
3739 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3740 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3741 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3742   cat >>confdefs.h <<_ACEOF
3743 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3744 _ACEOF
3745
3746 fi
3747
3748 done
3749
3750
3751
3752
3753
3754
3755
3756
3757
3758
3759
3760 for ac_header in crypt.h poll.h inttypes.h stdint.h sys/devpoll.h sys/epoll.h sys/event.h sys/param.h sys/socket.h
3761 do
3762 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3763 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3764   echo "$as_me:$LINENO: checking for $ac_header" >&5
3765 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3766 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3767   echo $ECHO_N "(cached) $ECHO_C" >&6
3768 fi
3769 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3770 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3771 else
3772   # Is the header compilable?
3773 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3774 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3775 cat >conftest.$ac_ext <<_ACEOF
3776 /* confdefs.h.  */
3777 _ACEOF
3778 cat confdefs.h >>conftest.$ac_ext
3779 cat >>conftest.$ac_ext <<_ACEOF
3780 /* end confdefs.h.  */
3781 $ac_includes_default
3782 #include <$ac_header>
3783 _ACEOF
3784 rm -f conftest.$ac_objext
3785 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3786   (eval $ac_compile) 2>conftest.er1
3787   ac_status=$?
3788   grep -v '^ *+' conftest.er1 >conftest.err
3789   rm -f conftest.er1
3790   cat conftest.err >&5
3791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3792   (exit $ac_status); } &&
3793          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3794   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3795   (eval $ac_try) 2>&5
3796   ac_status=$?
3797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3798   (exit $ac_status); }; } &&
3799          { ac_try='test -s conftest.$ac_objext'
3800   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3801   (eval $ac_try) 2>&5
3802   ac_status=$?
3803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3804   (exit $ac_status); }; }; then
3805   ac_header_compiler=yes
3806 else
3807   echo "$as_me: failed program was:" >&5
3808 sed 's/^/| /' conftest.$ac_ext >&5
3809
3810 ac_header_compiler=no
3811 fi
3812 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3813 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3814 echo "${ECHO_T}$ac_header_compiler" >&6
3815
3816 # Is the header present?
3817 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3818 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3819 cat >conftest.$ac_ext <<_ACEOF
3820 /* confdefs.h.  */
3821 _ACEOF
3822 cat confdefs.h >>conftest.$ac_ext
3823 cat >>conftest.$ac_ext <<_ACEOF
3824 /* end confdefs.h.  */
3825 #include <$ac_header>
3826 _ACEOF
3827 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3828   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3829   ac_status=$?
3830   grep -v '^ *+' conftest.er1 >conftest.err
3831   rm -f conftest.er1
3832   cat conftest.err >&5
3833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3834   (exit $ac_status); } >/dev/null; then
3835   if test -s conftest.err; then
3836     ac_cpp_err=$ac_c_preproc_warn_flag
3837     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3838   else
3839     ac_cpp_err=
3840   fi
3841 else
3842   ac_cpp_err=yes
3843 fi
3844 if test -z "$ac_cpp_err"; then
3845   ac_header_preproc=yes
3846 else
3847   echo "$as_me: failed program was:" >&5
3848 sed 's/^/| /' conftest.$ac_ext >&5
3849
3850   ac_header_preproc=no
3851 fi
3852 rm -f conftest.err conftest.$ac_ext
3853 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3854 echo "${ECHO_T}$ac_header_preproc" >&6
3855
3856 # So?  What about this header?
3857 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3858   yes:no: )
3859     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3860 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3861     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3862 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3863     ac_header_preproc=yes
3864     ;;
3865   no:yes:* )
3866     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3867 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3868     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
3869 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
3870     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3871 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3872     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
3873 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
3874     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3875 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3876     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3877 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3878     (
3879       cat <<\_ASBOX
3880 ## ------------------------------------------ ##
3881 ## Report this to the AC_PACKAGE_NAME lists.  ##
3882 ## ------------------------------------------ ##
3883 _ASBOX
3884     ) |
3885       sed "s/^/$as_me: WARNING:     /" >&2
3886     ;;
3887 esac
3888 echo "$as_me:$LINENO: checking for $ac_header" >&5
3889 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3890 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3891   echo $ECHO_N "(cached) $ECHO_C" >&6
3892 else
3893   eval "$as_ac_Header=\$ac_header_preproc"
3894 fi
3895 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3896 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3897
3898 fi
3899 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3900   cat >>confdefs.h <<_ACEOF
3901 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3902 _ACEOF
3903
3904 fi
3905
3906 done
3907
3908
3909 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
3910 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
3911 if test "${ac_cv_c_bigendian+set}" = set; then
3912   echo $ECHO_N "(cached) $ECHO_C" >&6
3913 else
3914   # See if sys/param.h defines the BYTE_ORDER macro.
3915 cat >conftest.$ac_ext <<_ACEOF
3916 /* confdefs.h.  */
3917 _ACEOF
3918 cat confdefs.h >>conftest.$ac_ext
3919 cat >>conftest.$ac_ext <<_ACEOF
3920 /* end confdefs.h.  */
3921 #include <sys/types.h>
3922 #include <sys/param.h>
3923
3924 int
3925 main ()
3926 {
3927 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3928  bogus endian macros
3929 #endif
3930
3931   ;
3932   return 0;
3933 }
3934 _ACEOF
3935 rm -f conftest.$ac_objext
3936 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3937   (eval $ac_compile) 2>conftest.er1
3938   ac_status=$?
3939   grep -v '^ *+' conftest.er1 >conftest.err
3940   rm -f conftest.er1
3941   cat conftest.err >&5
3942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3943   (exit $ac_status); } &&
3944          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3945   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3946   (eval $ac_try) 2>&5
3947   ac_status=$?
3948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3949   (exit $ac_status); }; } &&
3950          { ac_try='test -s conftest.$ac_objext'
3951   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3952   (eval $ac_try) 2>&5
3953   ac_status=$?
3954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3955   (exit $ac_status); }; }; then
3956   # It does; now see whether it defined to BIG_ENDIAN or not.
3957 cat >conftest.$ac_ext <<_ACEOF
3958 /* confdefs.h.  */
3959 _ACEOF
3960 cat confdefs.h >>conftest.$ac_ext
3961 cat >>conftest.$ac_ext <<_ACEOF
3962 /* end confdefs.h.  */
3963 #include <sys/types.h>
3964 #include <sys/param.h>
3965
3966 int
3967 main ()
3968 {
3969 #if BYTE_ORDER != BIG_ENDIAN
3970  not big endian
3971 #endif
3972
3973   ;
3974   return 0;
3975 }
3976 _ACEOF
3977 rm -f conftest.$ac_objext
3978 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3979   (eval $ac_compile) 2>conftest.er1
3980   ac_status=$?
3981   grep -v '^ *+' conftest.er1 >conftest.err
3982   rm -f conftest.er1
3983   cat conftest.err >&5
3984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3985   (exit $ac_status); } &&
3986          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3987   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3988   (eval $ac_try) 2>&5
3989   ac_status=$?
3990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3991   (exit $ac_status); }; } &&
3992          { ac_try='test -s conftest.$ac_objext'
3993   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3994   (eval $ac_try) 2>&5
3995   ac_status=$?
3996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3997   (exit $ac_status); }; }; then
3998   ac_cv_c_bigendian=yes
3999 else
4000   echo "$as_me: failed program was:" >&5
4001 sed 's/^/| /' conftest.$ac_ext >&5
4002
4003 ac_cv_c_bigendian=no
4004 fi
4005 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4006 else
4007   echo "$as_me: failed program was:" >&5
4008 sed 's/^/| /' conftest.$ac_ext >&5
4009
4010 # It does not; compile a test program.
4011 if test "$cross_compiling" = yes; then
4012   # try to guess the endianness by grepping values into an object file
4013   ac_cv_c_bigendian=unknown
4014   cat >conftest.$ac_ext <<_ACEOF
4015 /* confdefs.h.  */
4016 _ACEOF
4017 cat confdefs.h >>conftest.$ac_ext
4018 cat >>conftest.$ac_ext <<_ACEOF
4019 /* end confdefs.h.  */
4020 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4021 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4022 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4023 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4024 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4025 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4026 int
4027 main ()
4028 {
4029  _ascii (); _ebcdic ();
4030   ;
4031   return 0;
4032 }
4033 _ACEOF
4034 rm -f conftest.$ac_objext
4035 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4036   (eval $ac_compile) 2>conftest.er1
4037   ac_status=$?
4038   grep -v '^ *+' conftest.er1 >conftest.err
4039   rm -f conftest.er1
4040   cat conftest.err >&5
4041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4042   (exit $ac_status); } &&
4043          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4044   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4045   (eval $ac_try) 2>&5
4046   ac_status=$?
4047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4048   (exit $ac_status); }; } &&
4049          { ac_try='test -s conftest.$ac_objext'
4050   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4051   (eval $ac_try) 2>&5
4052   ac_status=$?
4053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4054   (exit $ac_status); }; }; then
4055   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4056   ac_cv_c_bigendian=yes
4057 fi
4058 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4059   if test "$ac_cv_c_bigendian" = unknown; then
4060     ac_cv_c_bigendian=no
4061   else
4062     # finding both strings is unlikely to happen, but who knows?
4063     ac_cv_c_bigendian=unknown
4064   fi
4065 fi
4066 else
4067   echo "$as_me: failed program was:" >&5
4068 sed 's/^/| /' conftest.$ac_ext >&5
4069
4070 fi
4071 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4072 else
4073   cat >conftest.$ac_ext <<_ACEOF
4074 /* confdefs.h.  */
4075 _ACEOF
4076 cat confdefs.h >>conftest.$ac_ext
4077 cat >>conftest.$ac_ext <<_ACEOF
4078 /* end confdefs.h.  */
4079 int
4080 main ()
4081 {
4082   /* Are we little or big endian?  From Harbison&Steele.  */
4083   union
4084   {
4085     long l;
4086     char c[sizeof (long)];
4087   } u;
4088   u.l = 1;
4089   exit (u.c[sizeof (long) - 1] == 1);
4090 }
4091 _ACEOF
4092 rm -f conftest$ac_exeext
4093 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4094   (eval $ac_link) 2>&5
4095   ac_status=$?
4096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4097   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4098   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4099   (eval $ac_try) 2>&5
4100   ac_status=$?
4101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4102   (exit $ac_status); }; }; then
4103   ac_cv_c_bigendian=no
4104 else
4105   echo "$as_me: program exited with status $ac_status" >&5
4106 echo "$as_me: failed program was:" >&5
4107 sed 's/^/| /' conftest.$ac_ext >&5
4108
4109 ( exit $ac_status )
4110 ac_cv_c_bigendian=yes
4111 fi
4112 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4113 fi
4114 fi
4115 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4116 fi
4117 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4118 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
4119 case $ac_cv_c_bigendian in
4120   yes)
4121
4122 cat >>confdefs.h <<\_ACEOF
4123 #define WORDS_BIGENDIAN 1
4124 _ACEOF
4125  ;;
4126   no)
4127      ;;
4128   *)
4129     { { echo "$as_me:$LINENO: error: unknown endianness
4130 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4131 echo "$as_me: error: unknown endianness
4132 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4133    { (exit 1); exit 1; }; } ;;
4134 esac
4135
4136 echo "$as_me:$LINENO: checking for size_t" >&5
4137 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
4138 if test "${ac_cv_type_size_t+set}" = set; then
4139   echo $ECHO_N "(cached) $ECHO_C" >&6
4140 else
4141   cat >conftest.$ac_ext <<_ACEOF
4142 /* confdefs.h.  */
4143 _ACEOF
4144 cat confdefs.h >>conftest.$ac_ext
4145 cat >>conftest.$ac_ext <<_ACEOF
4146 /* end confdefs.h.  */
4147 $ac_includes_default
4148 int
4149 main ()
4150 {
4151 if ((size_t *) 0)
4152   return 0;
4153 if (sizeof (size_t))
4154   return 0;
4155   ;
4156   return 0;
4157 }
4158 _ACEOF
4159 rm -f conftest.$ac_objext
4160 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4161   (eval $ac_compile) 2>conftest.er1
4162   ac_status=$?
4163   grep -v '^ *+' conftest.er1 >conftest.err
4164   rm -f conftest.er1
4165   cat conftest.err >&5
4166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4167   (exit $ac_status); } &&
4168          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4169   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4170   (eval $ac_try) 2>&5
4171   ac_status=$?
4172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4173   (exit $ac_status); }; } &&
4174          { ac_try='test -s conftest.$ac_objext'
4175   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4176   (eval $ac_try) 2>&5
4177   ac_status=$?
4178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4179   (exit $ac_status); }; }; then
4180   ac_cv_type_size_t=yes
4181 else
4182   echo "$as_me: failed program was:" >&5
4183 sed 's/^/| /' conftest.$ac_ext >&5
4184
4185 ac_cv_type_size_t=no
4186 fi
4187 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4188 fi
4189 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
4190 echo "${ECHO_T}$ac_cv_type_size_t" >&6
4191 if test $ac_cv_type_size_t = yes; then
4192   :
4193 else
4194
4195 cat >>confdefs.h <<_ACEOF
4196 #define size_t unsigned
4197 _ACEOF
4198
4199 fi
4200
4201 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
4202 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
4203 if test "${ac_cv_header_time+set}" = set; then
4204   echo $ECHO_N "(cached) $ECHO_C" >&6
4205 else
4206   cat >conftest.$ac_ext <<_ACEOF
4207 /* confdefs.h.  */
4208 _ACEOF
4209 cat confdefs.h >>conftest.$ac_ext
4210 cat >>conftest.$ac_ext <<_ACEOF
4211 /* end confdefs.h.  */
4212 #include <sys/types.h>
4213 #include <sys/time.h>
4214 #include <time.h>
4215
4216 int
4217 main ()
4218 {
4219 if ((struct tm *) 0)
4220 return 0;
4221   ;
4222   return 0;
4223 }
4224 _ACEOF
4225 rm -f conftest.$ac_objext
4226 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4227   (eval $ac_compile) 2>conftest.er1
4228   ac_status=$?
4229   grep -v '^ *+' conftest.er1 >conftest.err
4230   rm -f conftest.er1
4231   cat conftest.err >&5
4232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4233   (exit $ac_status); } &&
4234          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4235   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4236   (eval $ac_try) 2>&5
4237   ac_status=$?
4238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4239   (exit $ac_status); }; } &&
4240          { ac_try='test -s conftest.$ac_objext'
4241   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4242   (eval $ac_try) 2>&5
4243   ac_status=$?
4244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4245   (exit $ac_status); }; }; then
4246   ac_cv_header_time=yes
4247 else
4248   echo "$as_me: failed program was:" >&5
4249 sed 's/^/| /' conftest.$ac_ext >&5
4250
4251 ac_cv_header_time=no
4252 fi
4253 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4254 fi
4255 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
4256 echo "${ECHO_T}$ac_cv_header_time" >&6
4257 if test $ac_cv_header_time = yes; then
4258
4259 cat >>confdefs.h <<\_ACEOF
4260 #define TIME_WITH_SYS_TIME 1
4261 _ACEOF
4262
4263 fi
4264
4265 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
4266 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
4267 if test "${ac_cv_struct_tm+set}" = set; then
4268   echo $ECHO_N "(cached) $ECHO_C" >&6
4269 else
4270   cat >conftest.$ac_ext <<_ACEOF
4271 /* confdefs.h.  */
4272 _ACEOF
4273 cat confdefs.h >>conftest.$ac_ext
4274 cat >>conftest.$ac_ext <<_ACEOF
4275 /* end confdefs.h.  */
4276 #include <sys/types.h>
4277 #include <time.h>
4278
4279 int
4280 main ()
4281 {
4282 struct tm *tp; tp->tm_sec;
4283   ;
4284   return 0;
4285 }
4286 _ACEOF
4287 rm -f conftest.$ac_objext
4288 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4289   (eval $ac_compile) 2>conftest.er1
4290   ac_status=$?
4291   grep -v '^ *+' conftest.er1 >conftest.err
4292   rm -f conftest.er1
4293   cat conftest.err >&5
4294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4295   (exit $ac_status); } &&
4296          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4297   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4298   (eval $ac_try) 2>&5
4299   ac_status=$?
4300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4301   (exit $ac_status); }; } &&
4302          { ac_try='test -s conftest.$ac_objext'
4303   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4304   (eval $ac_try) 2>&5
4305   ac_status=$?
4306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4307   (exit $ac_status); }; }; then
4308   ac_cv_struct_tm=time.h
4309 else
4310   echo "$as_me: failed program was:" >&5
4311 sed 's/^/| /' conftest.$ac_ext >&5
4312
4313 ac_cv_struct_tm=sys/time.h
4314 fi
4315 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4316 fi
4317 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
4318 echo "${ECHO_T}$ac_cv_struct_tm" >&6
4319 if test $ac_cv_struct_tm = sys/time.h; then
4320
4321 cat >>confdefs.h <<\_ACEOF
4322 #define TM_IN_SYS_TIME 1
4323 _ACEOF
4324
4325 fi
4326
4327 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
4328 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
4329 if test "${ac_cv_type_uid_t+set}" = set; then
4330   echo $ECHO_N "(cached) $ECHO_C" >&6
4331 else
4332   cat >conftest.$ac_ext <<_ACEOF
4333 /* confdefs.h.  */
4334 _ACEOF
4335 cat confdefs.h >>conftest.$ac_ext
4336 cat >>conftest.$ac_ext <<_ACEOF
4337 /* end confdefs.h.  */
4338 #include <sys/types.h>
4339
4340 _ACEOF
4341 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4342   $EGREP "uid_t" >/dev/null 2>&1; then
4343   ac_cv_type_uid_t=yes
4344 else
4345   ac_cv_type_uid_t=no
4346 fi
4347 rm -f conftest*
4348
4349 fi
4350 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
4351 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
4352 if test $ac_cv_type_uid_t = no; then
4353
4354 cat >>confdefs.h <<\_ACEOF
4355 #define uid_t int
4356 _ACEOF
4357
4358
4359 cat >>confdefs.h <<\_ACEOF
4360 #define gid_t int
4361 _ACEOF
4362
4363 fi
4364
4365 echo "$as_me:$LINENO: checking for short" >&5
4366 echo $ECHO_N "checking for short... $ECHO_C" >&6
4367 if test "${ac_cv_type_short+set}" = set; then
4368   echo $ECHO_N "(cached) $ECHO_C" >&6
4369 else
4370   cat >conftest.$ac_ext <<_ACEOF
4371 /* confdefs.h.  */
4372 _ACEOF
4373 cat confdefs.h >>conftest.$ac_ext
4374 cat >>conftest.$ac_ext <<_ACEOF
4375 /* end confdefs.h.  */
4376 $ac_includes_default
4377 int
4378 main ()
4379 {
4380 if ((short *) 0)
4381   return 0;
4382 if (sizeof (short))
4383   return 0;
4384   ;
4385   return 0;
4386 }
4387 _ACEOF
4388 rm -f conftest.$ac_objext
4389 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4390   (eval $ac_compile) 2>conftest.er1
4391   ac_status=$?
4392   grep -v '^ *+' conftest.er1 >conftest.err
4393   rm -f conftest.er1
4394   cat conftest.err >&5
4395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4396   (exit $ac_status); } &&
4397          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4398   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4399   (eval $ac_try) 2>&5
4400   ac_status=$?
4401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4402   (exit $ac_status); }; } &&
4403          { ac_try='test -s conftest.$ac_objext'
4404   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4405   (eval $ac_try) 2>&5
4406   ac_status=$?
4407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4408   (exit $ac_status); }; }; then
4409   ac_cv_type_short=yes
4410 else
4411   echo "$as_me: failed program was:" >&5
4412 sed 's/^/| /' conftest.$ac_ext >&5
4413
4414 ac_cv_type_short=no
4415 fi
4416 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4417 fi
4418 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
4419 echo "${ECHO_T}$ac_cv_type_short" >&6
4420
4421 echo "$as_me:$LINENO: checking size of short" >&5
4422 echo $ECHO_N "checking size of short... $ECHO_C" >&6
4423 if test "${ac_cv_sizeof_short+set}" = set; then
4424   echo $ECHO_N "(cached) $ECHO_C" >&6
4425 else
4426   if test "$ac_cv_type_short" = yes; then
4427   # The cast to unsigned long works around a bug in the HP C Compiler
4428   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4429   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4430   # This bug is HP SR number 8606223364.
4431   if test "$cross_compiling" = yes; then
4432   # Depending upon the size, compute the lo and hi bounds.
4433 cat >conftest.$ac_ext <<_ACEOF
4434 /* confdefs.h.  */
4435 _ACEOF
4436 cat confdefs.h >>conftest.$ac_ext
4437 cat >>conftest.$ac_ext <<_ACEOF
4438 /* end confdefs.h.  */
4439 $ac_includes_default
4440 int
4441 main ()
4442 {
4443 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
4444 test_array [0] = 0
4445
4446   ;
4447   return 0;
4448 }
4449 _ACEOF
4450 rm -f conftest.$ac_objext
4451 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4452   (eval $ac_compile) 2>conftest.er1
4453   ac_status=$?
4454   grep -v '^ *+' conftest.er1 >conftest.err
4455   rm -f conftest.er1
4456   cat conftest.err >&5
4457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4458   (exit $ac_status); } &&
4459          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4460   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4461   (eval $ac_try) 2>&5
4462   ac_status=$?
4463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4464   (exit $ac_status); }; } &&
4465          { ac_try='test -s conftest.$ac_objext'
4466   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4467   (eval $ac_try) 2>&5
4468   ac_status=$?
4469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4470   (exit $ac_status); }; }; then
4471   ac_lo=0 ac_mid=0
4472   while :; do
4473     cat >conftest.$ac_ext <<_ACEOF
4474 /* confdefs.h.  */
4475 _ACEOF
4476 cat confdefs.h >>conftest.$ac_ext
4477 cat >>conftest.$ac_ext <<_ACEOF
4478 /* end confdefs.h.  */
4479 $ac_includes_default
4480 int
4481 main ()
4482 {
4483 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4484 test_array [0] = 0
4485
4486   ;
4487   return 0;
4488 }
4489 _ACEOF
4490 rm -f conftest.$ac_objext
4491 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4492   (eval $ac_compile) 2>conftest.er1
4493   ac_status=$?
4494   grep -v '^ *+' conftest.er1 >conftest.err
4495   rm -f conftest.er1
4496   cat conftest.err >&5
4497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4498   (exit $ac_status); } &&
4499          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4500   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4501   (eval $ac_try) 2>&5
4502   ac_status=$?
4503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4504   (exit $ac_status); }; } &&
4505          { ac_try='test -s conftest.$ac_objext'
4506   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4507   (eval $ac_try) 2>&5
4508   ac_status=$?
4509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4510   (exit $ac_status); }; }; then
4511   ac_hi=$ac_mid; break
4512 else
4513   echo "$as_me: failed program was:" >&5
4514 sed 's/^/| /' conftest.$ac_ext >&5
4515
4516 ac_lo=`expr $ac_mid + 1`
4517                     if test $ac_lo -le $ac_mid; then
4518                       ac_lo= ac_hi=
4519                       break
4520                     fi
4521                     ac_mid=`expr 2 '*' $ac_mid + 1`
4522 fi
4523 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4524   done
4525 else
4526   echo "$as_me: failed program was:" >&5
4527 sed 's/^/| /' conftest.$ac_ext >&5
4528
4529 cat >conftest.$ac_ext <<_ACEOF
4530 /* confdefs.h.  */
4531 _ACEOF
4532 cat confdefs.h >>conftest.$ac_ext
4533 cat >>conftest.$ac_ext <<_ACEOF
4534 /* end confdefs.h.  */
4535 $ac_includes_default
4536 int
4537 main ()
4538 {
4539 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
4540 test_array [0] = 0
4541
4542   ;
4543   return 0;
4544 }
4545 _ACEOF
4546 rm -f conftest.$ac_objext
4547 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4548   (eval $ac_compile) 2>conftest.er1
4549   ac_status=$?
4550   grep -v '^ *+' conftest.er1 >conftest.err
4551   rm -f conftest.er1
4552   cat conftest.err >&5
4553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4554   (exit $ac_status); } &&
4555          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4556   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4557   (eval $ac_try) 2>&5
4558   ac_status=$?
4559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4560   (exit $ac_status); }; } &&
4561          { ac_try='test -s conftest.$ac_objext'
4562   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4563   (eval $ac_try) 2>&5
4564   ac_status=$?
4565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4566   (exit $ac_status); }; }; then
4567   ac_hi=-1 ac_mid=-1
4568   while :; do
4569     cat >conftest.$ac_ext <<_ACEOF
4570 /* confdefs.h.  */
4571 _ACEOF
4572 cat confdefs.h >>conftest.$ac_ext
4573 cat >>conftest.$ac_ext <<_ACEOF
4574 /* end confdefs.h.  */
4575 $ac_includes_default
4576 int
4577 main ()
4578 {
4579 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
4580 test_array [0] = 0
4581
4582   ;
4583   return 0;
4584 }
4585 _ACEOF
4586 rm -f conftest.$ac_objext
4587 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4588   (eval $ac_compile) 2>conftest.er1
4589   ac_status=$?
4590   grep -v '^ *+' conftest.er1 >conftest.err
4591   rm -f conftest.er1
4592   cat conftest.err >&5
4593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4594   (exit $ac_status); } &&
4595          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4596   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4597   (eval $ac_try) 2>&5
4598   ac_status=$?
4599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4600   (exit $ac_status); }; } &&
4601          { ac_try='test -s conftest.$ac_objext'
4602   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4603   (eval $ac_try) 2>&5
4604   ac_status=$?
4605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4606   (exit $ac_status); }; }; then
4607   ac_lo=$ac_mid; break
4608 else
4609   echo "$as_me: failed program was:" >&5
4610 sed 's/^/| /' conftest.$ac_ext >&5
4611
4612 ac_hi=`expr '(' $ac_mid ')' - 1`
4613                        if test $ac_mid -le $ac_hi; then
4614                          ac_lo= ac_hi=
4615                          break
4616                        fi
4617                        ac_mid=`expr 2 '*' $ac_mid`
4618 fi
4619 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4620   done
4621 else
4622   echo "$as_me: failed program was:" >&5
4623 sed 's/^/| /' conftest.$ac_ext >&5
4624
4625 ac_lo= ac_hi=
4626 fi
4627 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4628 fi
4629 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4630 # Binary search between lo and hi bounds.
4631 while test "x$ac_lo" != "x$ac_hi"; do
4632   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4633   cat >conftest.$ac_ext <<_ACEOF
4634 /* confdefs.h.  */
4635 _ACEOF
4636 cat confdefs.h >>conftest.$ac_ext
4637 cat >>conftest.$ac_ext <<_ACEOF
4638 /* end confdefs.h.  */
4639 $ac_includes_default
4640 int
4641 main ()
4642 {
4643 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4644 test_array [0] = 0
4645
4646   ;
4647   return 0;
4648 }
4649 _ACEOF
4650 rm -f conftest.$ac_objext
4651 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4652   (eval $ac_compile) 2>conftest.er1
4653   ac_status=$?
4654   grep -v '^ *+' conftest.er1 >conftest.err
4655   rm -f conftest.er1
4656   cat conftest.err >&5
4657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4658   (exit $ac_status); } &&
4659          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4660   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4661   (eval $ac_try) 2>&5
4662   ac_status=$?
4663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4664   (exit $ac_status); }; } &&
4665          { ac_try='test -s conftest.$ac_objext'
4666   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4667   (eval $ac_try) 2>&5
4668   ac_status=$?
4669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4670   (exit $ac_status); }; }; then
4671   ac_hi=$ac_mid
4672 else
4673   echo "$as_me: failed program was:" >&5
4674 sed 's/^/| /' conftest.$ac_ext >&5
4675
4676 ac_lo=`expr '(' $ac_mid ')' + 1`
4677 fi
4678 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4679 done
4680 case $ac_lo in
4681 ?*) ac_cv_sizeof_short=$ac_lo;;
4682 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4683 See \`config.log' for more details." >&5
4684 echo "$as_me: error: cannot compute sizeof (short), 77
4685 See \`config.log' for more details." >&2;}
4686    { (exit 1); exit 1; }; } ;;
4687 esac
4688 else
4689   if test "$cross_compiling" = yes; then
4690   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
4691 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
4692    { (exit 1); exit 1; }; }
4693 else
4694   cat >conftest.$ac_ext <<_ACEOF
4695 /* confdefs.h.  */
4696 _ACEOF
4697 cat confdefs.h >>conftest.$ac_ext
4698 cat >>conftest.$ac_ext <<_ACEOF
4699 /* end confdefs.h.  */
4700 $ac_includes_default
4701 long longval () { return (long) (sizeof (short)); }
4702 unsigned long ulongval () { return (long) (sizeof (short)); }
4703 #include <stdio.h>
4704 #include <stdlib.h>
4705 int
4706 main ()
4707 {
4708
4709   FILE *f = fopen ("conftest.val", "w");
4710   if (! f)
4711     exit (1);
4712   if (((long) (sizeof (short))) < 0)
4713     {
4714       long i = longval ();
4715       if (i != ((long) (sizeof (short))))
4716         exit (1);
4717       fprintf (f, "%ld\n", i);
4718     }
4719   else
4720     {
4721       unsigned long i = ulongval ();
4722       if (i != ((long) (sizeof (short))))
4723         exit (1);
4724       fprintf (f, "%lu\n", i);
4725     }
4726   exit (ferror (f) || fclose (f) != 0);
4727
4728   ;
4729   return 0;
4730 }
4731 _ACEOF
4732 rm -f conftest$ac_exeext
4733 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4734   (eval $ac_link) 2>&5
4735   ac_status=$?
4736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4737   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4738   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4739   (eval $ac_try) 2>&5
4740   ac_status=$?
4741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4742   (exit $ac_status); }; }; then
4743   ac_cv_sizeof_short=`cat conftest.val`
4744 else
4745   echo "$as_me: program exited with status $ac_status" >&5
4746 echo "$as_me: failed program was:" >&5
4747 sed 's/^/| /' conftest.$ac_ext >&5
4748
4749 ( exit $ac_status )
4750 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4751 See \`config.log' for more details." >&5
4752 echo "$as_me: error: cannot compute sizeof (short), 77
4753 See \`config.log' for more details." >&2;}
4754    { (exit 1); exit 1; }; }
4755 fi
4756 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4757 fi
4758 fi
4759 rm -f conftest.val
4760 else
4761   ac_cv_sizeof_short=0
4762 fi
4763 fi
4764 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
4765 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
4766 cat >>confdefs.h <<_ACEOF
4767 #define SIZEOF_SHORT $ac_cv_sizeof_short
4768 _ACEOF
4769
4770
4771 echo "$as_me:$LINENO: checking for int" >&5
4772 echo $ECHO_N "checking for int... $ECHO_C" >&6
4773 if test "${ac_cv_type_int+set}" = set; then
4774   echo $ECHO_N "(cached) $ECHO_C" >&6
4775 else
4776   cat >conftest.$ac_ext <<_ACEOF
4777 /* confdefs.h.  */
4778 _ACEOF
4779 cat confdefs.h >>conftest.$ac_ext
4780 cat >>conftest.$ac_ext <<_ACEOF
4781 /* end confdefs.h.  */
4782 $ac_includes_default
4783 int
4784 main ()
4785 {
4786 if ((int *) 0)
4787   return 0;
4788 if (sizeof (int))
4789   return 0;
4790   ;
4791   return 0;
4792 }
4793 _ACEOF
4794 rm -f conftest.$ac_objext
4795 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4796   (eval $ac_compile) 2>conftest.er1
4797   ac_status=$?
4798   grep -v '^ *+' conftest.er1 >conftest.err
4799   rm -f conftest.er1
4800   cat conftest.err >&5
4801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4802   (exit $ac_status); } &&
4803          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4804   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4805   (eval $ac_try) 2>&5
4806   ac_status=$?
4807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4808   (exit $ac_status); }; } &&
4809          { ac_try='test -s conftest.$ac_objext'
4810   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4811   (eval $ac_try) 2>&5
4812   ac_status=$?
4813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4814   (exit $ac_status); }; }; then
4815   ac_cv_type_int=yes
4816 else
4817   echo "$as_me: failed program was:" >&5
4818 sed 's/^/| /' conftest.$ac_ext >&5
4819
4820 ac_cv_type_int=no
4821 fi
4822 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4823 fi
4824 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
4825 echo "${ECHO_T}$ac_cv_type_int" >&6
4826
4827 echo "$as_me:$LINENO: checking size of int" >&5
4828 echo $ECHO_N "checking size of int... $ECHO_C" >&6
4829 if test "${ac_cv_sizeof_int+set}" = set; then
4830   echo $ECHO_N "(cached) $ECHO_C" >&6
4831 else
4832   if test "$ac_cv_type_int" = yes; then
4833   # The cast to unsigned long works around a bug in the HP C Compiler
4834   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4835   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4836   # This bug is HP SR number 8606223364.
4837   if test "$cross_compiling" = yes; then
4838   # Depending upon the size, compute the lo and hi bounds.
4839 cat >conftest.$ac_ext <<_ACEOF
4840 /* confdefs.h.  */
4841 _ACEOF
4842 cat confdefs.h >>conftest.$ac_ext
4843 cat >>conftest.$ac_ext <<_ACEOF
4844 /* end confdefs.h.  */
4845 $ac_includes_default
4846 int
4847 main ()
4848 {
4849 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
4850 test_array [0] = 0
4851
4852   ;
4853   return 0;
4854 }
4855 _ACEOF
4856 rm -f conftest.$ac_objext
4857 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4858   (eval $ac_compile) 2>conftest.er1
4859   ac_status=$?
4860   grep -v '^ *+' conftest.er1 >conftest.err
4861   rm -f conftest.er1
4862   cat conftest.err >&5
4863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4864   (exit $ac_status); } &&
4865          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4866   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4867   (eval $ac_try) 2>&5
4868   ac_status=$?
4869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4870   (exit $ac_status); }; } &&
4871          { ac_try='test -s conftest.$ac_objext'
4872   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4873   (eval $ac_try) 2>&5
4874   ac_status=$?
4875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4876   (exit $ac_status); }; }; then
4877   ac_lo=0 ac_mid=0
4878   while :; do
4879     cat >conftest.$ac_ext <<_ACEOF
4880 /* confdefs.h.  */
4881 _ACEOF
4882 cat confdefs.h >>conftest.$ac_ext
4883 cat >>conftest.$ac_ext <<_ACEOF
4884 /* end confdefs.h.  */
4885 $ac_includes_default
4886 int
4887 main ()
4888 {
4889 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4890 test_array [0] = 0
4891
4892   ;
4893   return 0;
4894 }
4895 _ACEOF
4896 rm -f conftest.$ac_objext
4897 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4898   (eval $ac_compile) 2>conftest.er1
4899   ac_status=$?
4900   grep -v '^ *+' conftest.er1 >conftest.err
4901   rm -f conftest.er1
4902   cat conftest.err >&5
4903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4904   (exit $ac_status); } &&
4905          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4906   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4907   (eval $ac_try) 2>&5
4908   ac_status=$?
4909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4910   (exit $ac_status); }; } &&
4911          { ac_try='test -s conftest.$ac_objext'
4912   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4913   (eval $ac_try) 2>&5
4914   ac_status=$?
4915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4916   (exit $ac_status); }; }; then
4917   ac_hi=$ac_mid; break
4918 else
4919   echo "$as_me: failed program was:" >&5
4920 sed 's/^/| /' conftest.$ac_ext >&5
4921
4922 ac_lo=`expr $ac_mid + 1`
4923                     if test $ac_lo -le $ac_mid; then
4924                       ac_lo= ac_hi=
4925                       break
4926                     fi
4927                     ac_mid=`expr 2 '*' $ac_mid + 1`
4928 fi
4929 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4930   done
4931 else
4932   echo "$as_me: failed program was:" >&5
4933 sed 's/^/| /' conftest.$ac_ext >&5
4934
4935 cat >conftest.$ac_ext <<_ACEOF
4936 /* confdefs.h.  */
4937 _ACEOF
4938 cat confdefs.h >>conftest.$ac_ext
4939 cat >>conftest.$ac_ext <<_ACEOF
4940 /* end confdefs.h.  */
4941 $ac_includes_default
4942 int
4943 main ()
4944 {
4945 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
4946 test_array [0] = 0
4947
4948   ;
4949   return 0;
4950 }
4951 _ACEOF
4952 rm -f conftest.$ac_objext
4953 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4954   (eval $ac_compile) 2>conftest.er1
4955   ac_status=$?
4956   grep -v '^ *+' conftest.er1 >conftest.err
4957   rm -f conftest.er1
4958   cat conftest.err >&5
4959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4960   (exit $ac_status); } &&
4961          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4962   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4963   (eval $ac_try) 2>&5
4964   ac_status=$?
4965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4966   (exit $ac_status); }; } &&
4967          { ac_try='test -s conftest.$ac_objext'
4968   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4969   (eval $ac_try) 2>&5
4970   ac_status=$?
4971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4972   (exit $ac_status); }; }; then
4973   ac_hi=-1 ac_mid=-1
4974   while :; do
4975     cat >conftest.$ac_ext <<_ACEOF
4976 /* confdefs.h.  */
4977 _ACEOF
4978 cat confdefs.h >>conftest.$ac_ext
4979 cat >>conftest.$ac_ext <<_ACEOF
4980 /* end confdefs.h.  */
4981 $ac_includes_default
4982 int
4983 main ()
4984 {
4985 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
4986 test_array [0] = 0
4987
4988   ;
4989   return 0;
4990 }
4991 _ACEOF
4992 rm -f conftest.$ac_objext
4993 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4994   (eval $ac_compile) 2>conftest.er1
4995   ac_status=$?
4996   grep -v '^ *+' conftest.er1 >conftest.err
4997   rm -f conftest.er1
4998   cat conftest.err >&5
4999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5000   (exit $ac_status); } &&
5001          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5002   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5003   (eval $ac_try) 2>&5
5004   ac_status=$?
5005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5006   (exit $ac_status); }; } &&
5007          { ac_try='test -s conftest.$ac_objext'
5008   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5009   (eval $ac_try) 2>&5
5010   ac_status=$?
5011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5012   (exit $ac_status); }; }; then
5013   ac_lo=$ac_mid; break
5014 else
5015   echo "$as_me: failed program was:" >&5
5016 sed 's/^/| /' conftest.$ac_ext >&5
5017
5018 ac_hi=`expr '(' $ac_mid ')' - 1`
5019                        if test $ac_mid -le $ac_hi; then
5020                          ac_lo= ac_hi=
5021                          break
5022                        fi
5023                        ac_mid=`expr 2 '*' $ac_mid`
5024 fi
5025 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5026   done
5027 else
5028   echo "$as_me: failed program was:" >&5
5029 sed 's/^/| /' conftest.$ac_ext >&5
5030
5031 ac_lo= ac_hi=
5032 fi
5033 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5034 fi
5035 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5036 # Binary search between lo and hi bounds.
5037 while test "x$ac_lo" != "x$ac_hi"; do
5038   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5039   cat >conftest.$ac_ext <<_ACEOF
5040 /* confdefs.h.  */
5041 _ACEOF
5042 cat confdefs.h >>conftest.$ac_ext
5043 cat >>conftest.$ac_ext <<_ACEOF
5044 /* end confdefs.h.  */
5045 $ac_includes_default
5046 int
5047 main ()
5048 {
5049 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
5050 test_array [0] = 0
5051
5052   ;
5053   return 0;
5054 }
5055 _ACEOF
5056 rm -f conftest.$ac_objext
5057 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5058   (eval $ac_compile) 2>conftest.er1
5059   ac_status=$?
5060   grep -v '^ *+' conftest.er1 >conftest.err
5061   rm -f conftest.er1
5062   cat conftest.err >&5
5063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5064   (exit $ac_status); } &&
5065          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5066   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5067   (eval $ac_try) 2>&5
5068   ac_status=$?
5069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5070   (exit $ac_status); }; } &&
5071          { ac_try='test -s conftest.$ac_objext'
5072   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5073   (eval $ac_try) 2>&5
5074   ac_status=$?
5075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5076   (exit $ac_status); }; }; then
5077   ac_hi=$ac_mid
5078 else
5079   echo "$as_me: failed program was:" >&5
5080 sed 's/^/| /' conftest.$ac_ext >&5
5081
5082 ac_lo=`expr '(' $ac_mid ')' + 1`
5083 fi
5084 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5085 done
5086 case $ac_lo in
5087 ?*) ac_cv_sizeof_int=$ac_lo;;
5088 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
5089 See \`config.log' for more details." >&5
5090 echo "$as_me: error: cannot compute sizeof (int), 77
5091 See \`config.log' for more details." >&2;}
5092    { (exit 1); exit 1; }; } ;;
5093 esac
5094 else
5095   if test "$cross_compiling" = yes; then
5096   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
5097 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
5098    { (exit 1); exit 1; }; }
5099 else
5100   cat >conftest.$ac_ext <<_ACEOF
5101 /* confdefs.h.  */
5102 _ACEOF
5103 cat confdefs.h >>conftest.$ac_ext
5104 cat >>conftest.$ac_ext <<_ACEOF
5105 /* end confdefs.h.  */
5106 $ac_includes_default
5107 long longval () { return (long) (sizeof (int)); }
5108 unsigned long ulongval () { return (long) (sizeof (int)); }
5109 #include <stdio.h>
5110 #include <stdlib.h>
5111 int
5112 main ()
5113 {
5114
5115   FILE *f = fopen ("conftest.val", "w");
5116   if (! f)
5117     exit (1);
5118   if (((long) (sizeof (int))) < 0)
5119     {
5120       long i = longval ();
5121       if (i != ((long) (sizeof (int))))
5122         exit (1);
5123       fprintf (f, "%ld\n", i);
5124     }
5125   else
5126     {
5127       unsigned long i = ulongval ();
5128       if (i != ((long) (sizeof (int))))
5129         exit (1);
5130       fprintf (f, "%lu\n", i);
5131     }
5132   exit (ferror (f) || fclose (f) != 0);
5133
5134   ;
5135   return 0;
5136 }
5137 _ACEOF
5138 rm -f conftest$ac_exeext
5139 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5140   (eval $ac_link) 2>&5
5141   ac_status=$?
5142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5143   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5144   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5145   (eval $ac_try) 2>&5
5146   ac_status=$?
5147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5148   (exit $ac_status); }; }; then
5149   ac_cv_sizeof_int=`cat conftest.val`
5150 else
5151   echo "$as_me: program exited with status $ac_status" >&5
5152 echo "$as_me: failed program was:" >&5
5153 sed 's/^/| /' conftest.$ac_ext >&5
5154
5155 ( exit $ac_status )
5156 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
5157 See \`config.log' for more details." >&5
5158 echo "$as_me: error: cannot compute sizeof (int), 77
5159 See \`config.log' for more details." >&2;}
5160    { (exit 1); exit 1; }; }
5161 fi
5162 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5163 fi
5164 fi
5165 rm -f conftest.val
5166 else
5167   ac_cv_sizeof_int=0
5168 fi
5169 fi
5170 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
5171 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
5172 cat >>confdefs.h <<_ACEOF
5173 #define SIZEOF_INT $ac_cv_sizeof_int
5174 _ACEOF
5175
5176
5177 echo "$as_me:$LINENO: checking for long" >&5
5178 echo $ECHO_N "checking for long... $ECHO_C" >&6
5179 if test "${ac_cv_type_long+set}" = set; then
5180   echo $ECHO_N "(cached) $ECHO_C" >&6
5181 else
5182   cat >conftest.$ac_ext <<_ACEOF
5183 /* confdefs.h.  */
5184 _ACEOF
5185 cat confdefs.h >>conftest.$ac_ext
5186 cat >>conftest.$ac_ext <<_ACEOF
5187 /* end confdefs.h.  */
5188 $ac_includes_default
5189 int
5190 main ()
5191 {
5192 if ((long *) 0)
5193   return 0;
5194 if (sizeof (long))
5195   return 0;
5196   ;
5197   return 0;
5198 }
5199 _ACEOF
5200 rm -f conftest.$ac_objext
5201 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5202   (eval $ac_compile) 2>conftest.er1
5203   ac_status=$?
5204   grep -v '^ *+' conftest.er1 >conftest.err
5205   rm -f conftest.er1
5206   cat conftest.err >&5
5207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5208   (exit $ac_status); } &&
5209          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5210   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5211   (eval $ac_try) 2>&5
5212   ac_status=$?
5213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5214   (exit $ac_status); }; } &&
5215          { ac_try='test -s conftest.$ac_objext'
5216   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5217   (eval $ac_try) 2>&5
5218   ac_status=$?
5219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5220   (exit $ac_status); }; }; then
5221   ac_cv_type_long=yes
5222 else
5223   echo "$as_me: failed program was:" >&5
5224 sed 's/^/| /' conftest.$ac_ext >&5
5225
5226 ac_cv_type_long=no
5227 fi
5228 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5229 fi
5230 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
5231 echo "${ECHO_T}$ac_cv_type_long" >&6
5232
5233 echo "$as_me:$LINENO: checking size of long" >&5
5234 echo $ECHO_N "checking size of long... $ECHO_C" >&6
5235 if test "${ac_cv_sizeof_long+set}" = set; then
5236   echo $ECHO_N "(cached) $ECHO_C" >&6
5237 else
5238   if test "$ac_cv_type_long" = yes; then
5239   # The cast to unsigned long works around a bug in the HP C Compiler
5240   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5241   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5242   # This bug is HP SR number 8606223364.
5243   if test "$cross_compiling" = yes; then
5244   # Depending upon the size, compute the lo and hi bounds.
5245 cat >conftest.$ac_ext <<_ACEOF
5246 /* confdefs.h.  */
5247 _ACEOF
5248 cat confdefs.h >>conftest.$ac_ext
5249 cat >>conftest.$ac_ext <<_ACEOF
5250 /* end confdefs.h.  */
5251 $ac_includes_default
5252 int
5253 main ()
5254 {
5255 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
5256 test_array [0] = 0
5257
5258   ;
5259   return 0;
5260 }
5261 _ACEOF
5262 rm -f conftest.$ac_objext
5263 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5264   (eval $ac_compile) 2>conftest.er1
5265   ac_status=$?
5266   grep -v '^ *+' conftest.er1 >conftest.err
5267   rm -f conftest.er1
5268   cat conftest.err >&5
5269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5270   (exit $ac_status); } &&
5271          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5272   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5273   (eval $ac_try) 2>&5
5274   ac_status=$?
5275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5276   (exit $ac_status); }; } &&
5277          { ac_try='test -s conftest.$ac_objext'
5278   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5279   (eval $ac_try) 2>&5
5280   ac_status=$?
5281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5282   (exit $ac_status); }; }; then
5283   ac_lo=0 ac_mid=0
5284   while :; do
5285     cat >conftest.$ac_ext <<_ACEOF
5286 /* confdefs.h.  */
5287 _ACEOF
5288 cat confdefs.h >>conftest.$ac_ext
5289 cat >>conftest.$ac_ext <<_ACEOF
5290 /* end confdefs.h.  */
5291 $ac_includes_default
5292 int
5293 main ()
5294 {
5295 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5296 test_array [0] = 0
5297
5298   ;
5299   return 0;
5300 }
5301 _ACEOF
5302 rm -f conftest.$ac_objext
5303 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5304   (eval $ac_compile) 2>conftest.er1
5305   ac_status=$?
5306   grep -v '^ *+' conftest.er1 >conftest.err
5307   rm -f conftest.er1
5308   cat conftest.err >&5
5309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5310   (exit $ac_status); } &&
5311          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5312   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5313   (eval $ac_try) 2>&5
5314   ac_status=$?
5315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5316   (exit $ac_status); }; } &&
5317          { ac_try='test -s conftest.$ac_objext'
5318   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5319   (eval $ac_try) 2>&5
5320   ac_status=$?
5321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5322   (exit $ac_status); }; }; then
5323   ac_hi=$ac_mid; break
5324 else
5325   echo "$as_me: failed program was:" >&5
5326 sed 's/^/| /' conftest.$ac_ext >&5
5327
5328 ac_lo=`expr $ac_mid + 1`
5329                     if test $ac_lo -le $ac_mid; then
5330                       ac_lo= ac_hi=
5331                       break
5332                     fi
5333                     ac_mid=`expr 2 '*' $ac_mid + 1`
5334 fi
5335 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5336   done
5337 else
5338   echo "$as_me: failed program was:" >&5
5339 sed 's/^/| /' conftest.$ac_ext >&5
5340
5341 cat >conftest.$ac_ext <<_ACEOF
5342 /* confdefs.h.  */
5343 _ACEOF
5344 cat confdefs.h >>conftest.$ac_ext
5345 cat >>conftest.$ac_ext <<_ACEOF
5346 /* end confdefs.h.  */
5347 $ac_includes_default
5348 int
5349 main ()
5350 {
5351 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
5352 test_array [0] = 0
5353
5354   ;
5355   return 0;
5356 }
5357 _ACEOF
5358 rm -f conftest.$ac_objext
5359 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5360   (eval $ac_compile) 2>conftest.er1
5361   ac_status=$?
5362   grep -v '^ *+' conftest.er1 >conftest.err
5363   rm -f conftest.er1
5364   cat conftest.err >&5
5365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5366   (exit $ac_status); } &&
5367          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5368   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5369   (eval $ac_try) 2>&5
5370   ac_status=$?
5371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5372   (exit $ac_status); }; } &&
5373          { ac_try='test -s conftest.$ac_objext'
5374   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5375   (eval $ac_try) 2>&5
5376   ac_status=$?
5377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5378   (exit $ac_status); }; }; then
5379   ac_hi=-1 ac_mid=-1
5380   while :; do
5381     cat >conftest.$ac_ext <<_ACEOF
5382 /* confdefs.h.  */
5383 _ACEOF
5384 cat confdefs.h >>conftest.$ac_ext
5385 cat >>conftest.$ac_ext <<_ACEOF
5386 /* end confdefs.h.  */
5387 $ac_includes_default
5388 int
5389 main ()
5390 {
5391 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
5392 test_array [0] = 0
5393
5394   ;
5395   return 0;
5396 }
5397 _ACEOF
5398 rm -f conftest.$ac_objext
5399 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5400   (eval $ac_compile) 2>conftest.er1
5401   ac_status=$?
5402   grep -v '^ *+' conftest.er1 >conftest.err
5403   rm -f conftest.er1
5404   cat conftest.err >&5
5405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5406   (exit $ac_status); } &&
5407          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5408   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5409   (eval $ac_try) 2>&5
5410   ac_status=$?
5411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5412   (exit $ac_status); }; } &&
5413          { ac_try='test -s conftest.$ac_objext'
5414   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5415   (eval $ac_try) 2>&5
5416   ac_status=$?
5417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5418   (exit $ac_status); }; }; then
5419   ac_lo=$ac_mid; break
5420 else
5421   echo "$as_me: failed program was:" >&5
5422 sed 's/^/| /' conftest.$ac_ext >&5
5423
5424 ac_hi=`expr '(' $ac_mid ')' - 1`
5425                        if test $ac_mid -le $ac_hi; then
5426                          ac_lo= ac_hi=
5427                          break
5428                        fi
5429                        ac_mid=`expr 2 '*' $ac_mid`
5430 fi
5431 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5432   done
5433 else
5434   echo "$as_me: failed program was:" >&5
5435 sed 's/^/| /' conftest.$ac_ext >&5
5436
5437 ac_lo= ac_hi=
5438 fi
5439 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5440 fi
5441 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5442 # Binary search between lo and hi bounds.
5443 while test "x$ac_lo" != "x$ac_hi"; do
5444   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5445   cat >conftest.$ac_ext <<_ACEOF
5446 /* confdefs.h.  */
5447 _ACEOF
5448 cat confdefs.h >>conftest.$ac_ext
5449 cat >>conftest.$ac_ext <<_ACEOF
5450 /* end confdefs.h.  */
5451 $ac_includes_default
5452 int
5453 main ()
5454 {
5455 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5456 test_array [0] = 0
5457
5458   ;
5459   return 0;
5460 }
5461 _ACEOF
5462 rm -f conftest.$ac_objext
5463 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5464   (eval $ac_compile) 2>conftest.er1
5465   ac_status=$?
5466   grep -v '^ *+' conftest.er1 >conftest.err
5467   rm -f conftest.er1
5468   cat conftest.err >&5
5469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5470   (exit $ac_status); } &&
5471          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5472   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5473   (eval $ac_try) 2>&5
5474   ac_status=$?
5475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5476   (exit $ac_status); }; } &&
5477          { ac_try='test -s conftest.$ac_objext'
5478   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5479   (eval $ac_try) 2>&5
5480   ac_status=$?
5481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5482   (exit $ac_status); }; }; then
5483   ac_hi=$ac_mid
5484 else
5485   echo "$as_me: failed program was:" >&5
5486 sed 's/^/| /' conftest.$ac_ext >&5
5487
5488 ac_lo=`expr '(' $ac_mid ')' + 1`
5489 fi
5490 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5491 done
5492 case $ac_lo in
5493 ?*) ac_cv_sizeof_long=$ac_lo;;
5494 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5495 See \`config.log' for more details." >&5
5496 echo "$as_me: error: cannot compute sizeof (long), 77
5497 See \`config.log' for more details." >&2;}
5498    { (exit 1); exit 1; }; } ;;
5499 esac
5500 else
5501   if test "$cross_compiling" = yes; then
5502   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
5503 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
5504    { (exit 1); exit 1; }; }
5505 else
5506   cat >conftest.$ac_ext <<_ACEOF
5507 /* confdefs.h.  */
5508 _ACEOF
5509 cat confdefs.h >>conftest.$ac_ext
5510 cat >>conftest.$ac_ext <<_ACEOF
5511 /* end confdefs.h.  */
5512 $ac_includes_default
5513 long longval () { return (long) (sizeof (long)); }
5514 unsigned long ulongval () { return (long) (sizeof (long)); }
5515 #include <stdio.h>
5516 #include <stdlib.h>
5517 int
5518 main ()
5519 {
5520
5521   FILE *f = fopen ("conftest.val", "w");
5522   if (! f)
5523     exit (1);
5524   if (((long) (sizeof (long))) < 0)
5525     {
5526       long i = longval ();
5527       if (i != ((long) (sizeof (long))))
5528         exit (1);
5529       fprintf (f, "%ld\n", i);
5530     }
5531   else
5532     {
5533       unsigned long i = ulongval ();
5534       if (i != ((long) (sizeof (long))))
5535         exit (1);
5536       fprintf (f, "%lu\n", i);
5537     }
5538   exit (ferror (f) || fclose (f) != 0);
5539
5540   ;
5541   return 0;
5542 }
5543 _ACEOF
5544 rm -f conftest$ac_exeext
5545 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5546   (eval $ac_link) 2>&5
5547   ac_status=$?
5548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5549   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5550   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5551   (eval $ac_try) 2>&5
5552   ac_status=$?
5553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5554   (exit $ac_status); }; }; then
5555   ac_cv_sizeof_long=`cat conftest.val`
5556 else
5557   echo "$as_me: program exited with status $ac_status" >&5
5558 echo "$as_me: failed program was:" >&5
5559 sed 's/^/| /' conftest.$ac_ext >&5
5560
5561 ( exit $ac_status )
5562 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5563 See \`config.log' for more details." >&5
5564 echo "$as_me: error: cannot compute sizeof (long), 77
5565 See \`config.log' for more details." >&2;}
5566    { (exit 1); exit 1; }; }
5567 fi
5568 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5569 fi
5570 fi
5571 rm -f conftest.val
5572 else
5573   ac_cv_sizeof_long=0
5574 fi
5575 fi
5576 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
5577 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
5578 cat >>confdefs.h <<_ACEOF
5579 #define SIZEOF_LONG $ac_cv_sizeof_long
5580 _ACEOF
5581
5582
5583 echo "$as_me:$LINENO: checking for void *" >&5
5584 echo $ECHO_N "checking for void *... $ECHO_C" >&6
5585 if test "${ac_cv_type_void_p+set}" = set; then
5586   echo $ECHO_N "(cached) $ECHO_C" >&6
5587 else
5588   cat >conftest.$ac_ext <<_ACEOF
5589 /* confdefs.h.  */
5590 _ACEOF
5591 cat confdefs.h >>conftest.$ac_ext
5592 cat >>conftest.$ac_ext <<_ACEOF
5593 /* end confdefs.h.  */
5594 $ac_includes_default
5595 int
5596 main ()
5597 {
5598 if ((void * *) 0)
5599   return 0;
5600 if (sizeof (void *))
5601   return 0;
5602   ;
5603   return 0;
5604 }
5605 _ACEOF
5606 rm -f conftest.$ac_objext
5607 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5608   (eval $ac_compile) 2>conftest.er1
5609   ac_status=$?
5610   grep -v '^ *+' conftest.er1 >conftest.err
5611   rm -f conftest.er1
5612   cat conftest.err >&5
5613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5614   (exit $ac_status); } &&
5615          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5616   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5617   (eval $ac_try) 2>&5
5618   ac_status=$?
5619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5620   (exit $ac_status); }; } &&
5621          { ac_try='test -s conftest.$ac_objext'
5622   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5623   (eval $ac_try) 2>&5
5624   ac_status=$?
5625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5626   (exit $ac_status); }; }; then
5627   ac_cv_type_void_p=yes
5628 else
5629   echo "$as_me: failed program was:" >&5
5630 sed 's/^/| /' conftest.$ac_ext >&5
5631
5632 ac_cv_type_void_p=no
5633 fi
5634 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5635 fi
5636 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
5637 echo "${ECHO_T}$ac_cv_type_void_p" >&6
5638
5639 echo "$as_me:$LINENO: checking size of void *" >&5
5640 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
5641 if test "${ac_cv_sizeof_void_p+set}" = set; then
5642   echo $ECHO_N "(cached) $ECHO_C" >&6
5643 else
5644   if test "$ac_cv_type_void_p" = yes; then
5645   # The cast to unsigned long works around a bug in the HP C Compiler
5646   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5647   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5648   # This bug is HP SR number 8606223364.
5649   if test "$cross_compiling" = yes; then
5650   # Depending upon the size, compute the lo and hi bounds.
5651 cat >conftest.$ac_ext <<_ACEOF
5652 /* confdefs.h.  */
5653 _ACEOF
5654 cat confdefs.h >>conftest.$ac_ext
5655 cat >>conftest.$ac_ext <<_ACEOF
5656 /* end confdefs.h.  */
5657 $ac_includes_default
5658 int
5659 main ()
5660 {
5661 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
5662 test_array [0] = 0
5663
5664   ;
5665   return 0;
5666 }
5667 _ACEOF
5668 rm -f conftest.$ac_objext
5669 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5670   (eval $ac_compile) 2>conftest.er1
5671   ac_status=$?
5672   grep -v '^ *+' conftest.er1 >conftest.err
5673   rm -f conftest.er1
5674   cat conftest.err >&5
5675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5676   (exit $ac_status); } &&
5677          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5678   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5679   (eval $ac_try) 2>&5
5680   ac_status=$?
5681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5682   (exit $ac_status); }; } &&
5683          { ac_try='test -s conftest.$ac_objext'
5684   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5685   (eval $ac_try) 2>&5
5686   ac_status=$?
5687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5688   (exit $ac_status); }; }; then
5689   ac_lo=0 ac_mid=0
5690   while :; do
5691     cat >conftest.$ac_ext <<_ACEOF
5692 /* confdefs.h.  */
5693 _ACEOF
5694 cat confdefs.h >>conftest.$ac_ext
5695 cat >>conftest.$ac_ext <<_ACEOF
5696 /* end confdefs.h.  */
5697 $ac_includes_default
5698 int
5699 main ()
5700 {
5701 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
5702 test_array [0] = 0
5703
5704   ;
5705   return 0;
5706 }
5707 _ACEOF
5708 rm -f conftest.$ac_objext
5709 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5710   (eval $ac_compile) 2>conftest.er1
5711   ac_status=$?
5712   grep -v '^ *+' conftest.er1 >conftest.err
5713   rm -f conftest.er1
5714   cat conftest.err >&5
5715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5716   (exit $ac_status); } &&
5717          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5718   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5719   (eval $ac_try) 2>&5
5720   ac_status=$?
5721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5722   (exit $ac_status); }; } &&
5723          { ac_try='test -s conftest.$ac_objext'
5724   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5725   (eval $ac_try) 2>&5
5726   ac_status=$?
5727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5728   (exit $ac_status); }; }; then
5729   ac_hi=$ac_mid; break
5730 else
5731   echo "$as_me: failed program was:" >&5
5732 sed 's/^/| /' conftest.$ac_ext >&5
5733
5734 ac_lo=`expr $ac_mid + 1`
5735                     if test $ac_lo -le $ac_mid; then
5736                       ac_lo= ac_hi=
5737                       break
5738                     fi
5739                     ac_mid=`expr 2 '*' $ac_mid + 1`
5740 fi
5741 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5742   done
5743 else
5744   echo "$as_me: failed program was:" >&5
5745 sed 's/^/| /' conftest.$ac_ext >&5
5746
5747 cat >conftest.$ac_ext <<_ACEOF
5748 /* confdefs.h.  */
5749 _ACEOF
5750 cat confdefs.h >>conftest.$ac_ext
5751 cat >>conftest.$ac_ext <<_ACEOF
5752 /* end confdefs.h.  */
5753 $ac_includes_default
5754 int
5755 main ()
5756 {
5757 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
5758 test_array [0] = 0
5759
5760   ;
5761   return 0;
5762 }
5763 _ACEOF
5764 rm -f conftest.$ac_objext
5765 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5766   (eval $ac_compile) 2>conftest.er1
5767   ac_status=$?
5768   grep -v '^ *+' conftest.er1 >conftest.err
5769   rm -f conftest.er1
5770   cat conftest.err >&5
5771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5772   (exit $ac_status); } &&
5773          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5774   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5775   (eval $ac_try) 2>&5
5776   ac_status=$?
5777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5778   (exit $ac_status); }; } &&
5779          { ac_try='test -s conftest.$ac_objext'
5780   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5781   (eval $ac_try) 2>&5
5782   ac_status=$?
5783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5784   (exit $ac_status); }; }; then
5785   ac_hi=-1 ac_mid=-1
5786   while :; do
5787     cat >conftest.$ac_ext <<_ACEOF
5788 /* confdefs.h.  */
5789 _ACEOF
5790 cat confdefs.h >>conftest.$ac_ext
5791 cat >>conftest.$ac_ext <<_ACEOF
5792 /* end confdefs.h.  */
5793 $ac_includes_default
5794 int
5795 main ()
5796 {
5797 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
5798 test_array [0] = 0
5799
5800   ;
5801   return 0;
5802 }
5803 _ACEOF
5804 rm -f conftest.$ac_objext
5805 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5806   (eval $ac_compile) 2>conftest.er1
5807   ac_status=$?
5808   grep -v '^ *+' conftest.er1 >conftest.err
5809   rm -f conftest.er1
5810   cat conftest.err >&5
5811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5812   (exit $ac_status); } &&
5813          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5814   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5815   (eval $ac_try) 2>&5
5816   ac_status=$?
5817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5818   (exit $ac_status); }; } &&
5819          { ac_try='test -s conftest.$ac_objext'
5820   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5821   (eval $ac_try) 2>&5
5822   ac_status=$?
5823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5824   (exit $ac_status); }; }; then
5825   ac_lo=$ac_mid; break
5826 else
5827   echo "$as_me: failed program was:" >&5
5828 sed 's/^/| /' conftest.$ac_ext >&5
5829
5830 ac_hi=`expr '(' $ac_mid ')' - 1`
5831                        if test $ac_mid -le $ac_hi; then
5832                          ac_lo= ac_hi=
5833                          break
5834                        fi
5835                        ac_mid=`expr 2 '*' $ac_mid`
5836 fi
5837 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5838   done
5839 else
5840   echo "$as_me: failed program was:" >&5
5841 sed 's/^/| /' conftest.$ac_ext >&5
5842
5843 ac_lo= ac_hi=
5844 fi
5845 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5846 fi
5847 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5848 # Binary search between lo and hi bounds.
5849 while test "x$ac_lo" != "x$ac_hi"; do
5850   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5851   cat >conftest.$ac_ext <<_ACEOF
5852 /* confdefs.h.  */
5853 _ACEOF
5854 cat confdefs.h >>conftest.$ac_ext
5855 cat >>conftest.$ac_ext <<_ACEOF
5856 /* end confdefs.h.  */
5857 $ac_includes_default
5858 int
5859 main ()
5860 {
5861 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
5862 test_array [0] = 0
5863
5864   ;
5865   return 0;
5866 }
5867 _ACEOF
5868 rm -f conftest.$ac_objext
5869 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5870   (eval $ac_compile) 2>conftest.er1
5871   ac_status=$?
5872   grep -v '^ *+' conftest.er1 >conftest.err
5873   rm -f conftest.er1
5874   cat conftest.err >&5
5875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5876   (exit $ac_status); } &&
5877          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5878   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5879   (eval $ac_try) 2>&5
5880   ac_status=$?
5881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5882   (exit $ac_status); }; } &&
5883          { ac_try='test -s conftest.$ac_objext'
5884   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5885   (eval $ac_try) 2>&5
5886   ac_status=$?
5887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5888   (exit $ac_status); }; }; then
5889   ac_hi=$ac_mid
5890 else
5891   echo "$as_me: failed program was:" >&5
5892 sed 's/^/| /' conftest.$ac_ext >&5
5893
5894 ac_lo=`expr '(' $ac_mid ')' + 1`
5895 fi
5896 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5897 done
5898 case $ac_lo in
5899 ?*) ac_cv_sizeof_void_p=$ac_lo;;
5900 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
5901 See \`config.log' for more details." >&5
5902 echo "$as_me: error: cannot compute sizeof (void *), 77
5903 See \`config.log' for more details." >&2;}
5904    { (exit 1); exit 1; }; } ;;
5905 esac
5906 else
5907   if test "$cross_compiling" = yes; then
5908   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
5909 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
5910    { (exit 1); exit 1; }; }
5911 else
5912   cat >conftest.$ac_ext <<_ACEOF
5913 /* confdefs.h.  */
5914 _ACEOF
5915 cat confdefs.h >>conftest.$ac_ext
5916 cat >>conftest.$ac_ext <<_ACEOF
5917 /* end confdefs.h.  */
5918 $ac_includes_default
5919 long longval () { return (long) (sizeof (void *)); }
5920 unsigned long ulongval () { return (long) (sizeof (void *)); }
5921 #include <stdio.h>
5922 #include <stdlib.h>
5923 int
5924 main ()
5925 {
5926
5927   FILE *f = fopen ("conftest.val", "w");
5928   if (! f)
5929     exit (1);
5930   if (((long) (sizeof (void *))) < 0)
5931     {
5932       long i = longval ();
5933       if (i != ((long) (sizeof (void *))))
5934         exit (1);
5935       fprintf (f, "%ld\n", i);
5936     }
5937   else
5938     {
5939       unsigned long i = ulongval ();
5940       if (i != ((long) (sizeof (void *))))
5941         exit (1);
5942       fprintf (f, "%lu\n", i);
5943     }
5944   exit (ferror (f) || fclose (f) != 0);
5945
5946   ;
5947   return 0;
5948 }
5949 _ACEOF
5950 rm -f conftest$ac_exeext
5951 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5952   (eval $ac_link) 2>&5
5953   ac_status=$?
5954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5955   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5956   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5957   (eval $ac_try) 2>&5
5958   ac_status=$?
5959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5960   (exit $ac_status); }; }; then
5961   ac_cv_sizeof_void_p=`cat conftest.val`
5962 else
5963   echo "$as_me: program exited with status $ac_status" >&5
5964 echo "$as_me: failed program was:" >&5
5965 sed 's/^/| /' conftest.$ac_ext >&5
5966
5967 ( exit $ac_status )
5968 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
5969 See \`config.log' for more details." >&5
5970 echo "$as_me: error: cannot compute sizeof (void *), 77
5971 See \`config.log' for more details." >&2;}
5972    { (exit 1); exit 1; }; }
5973 fi
5974 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5975 fi
5976 fi
5977 rm -f conftest.val
5978 else
5979   ac_cv_sizeof_void_p=0
5980 fi
5981 fi
5982 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
5983 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
5984 cat >>confdefs.h <<_ACEOF
5985 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5986 _ACEOF
5987
5988
5989 echo "$as_me:$LINENO: checking for int64_t" >&5
5990 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
5991 if test "${ac_cv_type_int64_t+set}" = set; then
5992   echo $ECHO_N "(cached) $ECHO_C" >&6
5993 else
5994   cat >conftest.$ac_ext <<_ACEOF
5995 /* confdefs.h.  */
5996 _ACEOF
5997 cat confdefs.h >>conftest.$ac_ext
5998 cat >>conftest.$ac_ext <<_ACEOF
5999 /* end confdefs.h.  */
6000 $ac_includes_default
6001 int
6002 main ()
6003 {
6004 if ((int64_t *) 0)
6005   return 0;
6006 if (sizeof (int64_t))
6007   return 0;
6008   ;
6009   return 0;
6010 }
6011 _ACEOF
6012 rm -f conftest.$ac_objext
6013 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6014   (eval $ac_compile) 2>conftest.er1
6015   ac_status=$?
6016   grep -v '^ *+' conftest.er1 >conftest.err
6017   rm -f conftest.er1
6018   cat conftest.err >&5
6019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6020   (exit $ac_status); } &&
6021          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6022   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6023   (eval $ac_try) 2>&5
6024   ac_status=$?
6025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6026   (exit $ac_status); }; } &&
6027          { ac_try='test -s conftest.$ac_objext'
6028   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6029   (eval $ac_try) 2>&5
6030   ac_status=$?
6031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6032   (exit $ac_status); }; }; then
6033   ac_cv_type_int64_t=yes
6034 else
6035   echo "$as_me: failed program was:" >&5
6036 sed 's/^/| /' conftest.$ac_ext >&5
6037
6038 ac_cv_type_int64_t=no
6039 fi
6040 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6041 fi
6042 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
6043 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
6044
6045 echo "$as_me:$LINENO: checking size of int64_t" >&5
6046 echo $ECHO_N "checking size of int64_t... $ECHO_C" >&6
6047 if test "${ac_cv_sizeof_int64_t+set}" = set; then
6048   echo $ECHO_N "(cached) $ECHO_C" >&6
6049 else
6050   if test "$ac_cv_type_int64_t" = yes; then
6051   # The cast to unsigned long works around a bug in the HP C Compiler
6052   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6053   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6054   # This bug is HP SR number 8606223364.
6055   if test "$cross_compiling" = yes; then
6056   # Depending upon the size, compute the lo and hi bounds.
6057 cat >conftest.$ac_ext <<_ACEOF
6058 /* confdefs.h.  */
6059 _ACEOF
6060 cat confdefs.h >>conftest.$ac_ext
6061 cat >>conftest.$ac_ext <<_ACEOF
6062 /* end confdefs.h.  */
6063 $ac_includes_default
6064 int
6065 main ()
6066 {
6067 static int test_array [1 - 2 * !(((long) (sizeof (int64_t))) >= 0)];
6068 test_array [0] = 0
6069
6070   ;
6071   return 0;
6072 }
6073 _ACEOF
6074 rm -f conftest.$ac_objext
6075 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6076   (eval $ac_compile) 2>conftest.er1
6077   ac_status=$?
6078   grep -v '^ *+' conftest.er1 >conftest.err
6079   rm -f conftest.er1
6080   cat conftest.err >&5
6081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6082   (exit $ac_status); } &&
6083          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6084   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6085   (eval $ac_try) 2>&5
6086   ac_status=$?
6087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6088   (exit $ac_status); }; } &&
6089          { ac_try='test -s conftest.$ac_objext'
6090   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6091   (eval $ac_try) 2>&5
6092   ac_status=$?
6093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6094   (exit $ac_status); }; }; then
6095   ac_lo=0 ac_mid=0
6096   while :; do
6097     cat >conftest.$ac_ext <<_ACEOF
6098 /* confdefs.h.  */
6099 _ACEOF
6100 cat confdefs.h >>conftest.$ac_ext
6101 cat >>conftest.$ac_ext <<_ACEOF
6102 /* end confdefs.h.  */
6103 $ac_includes_default
6104 int
6105 main ()
6106 {
6107 static int test_array [1 - 2 * !(((long) (sizeof (int64_t))) <= $ac_mid)];
6108 test_array [0] = 0
6109
6110   ;
6111   return 0;
6112 }
6113 _ACEOF
6114 rm -f conftest.$ac_objext
6115 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6116   (eval $ac_compile) 2>conftest.er1
6117   ac_status=$?
6118   grep -v '^ *+' conftest.er1 >conftest.err
6119   rm -f conftest.er1
6120   cat conftest.err >&5
6121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6122   (exit $ac_status); } &&
6123          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6124   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6125   (eval $ac_try) 2>&5
6126   ac_status=$?
6127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6128   (exit $ac_status); }; } &&
6129          { ac_try='test -s conftest.$ac_objext'
6130   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6131   (eval $ac_try) 2>&5
6132   ac_status=$?
6133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6134   (exit $ac_status); }; }; then
6135   ac_hi=$ac_mid; break
6136 else
6137   echo "$as_me: failed program was:" >&5
6138 sed 's/^/| /' conftest.$ac_ext >&5
6139
6140 ac_lo=`expr $ac_mid + 1`
6141                     if test $ac_lo -le $ac_mid; then
6142                       ac_lo= ac_hi=
6143                       break
6144                     fi
6145                     ac_mid=`expr 2 '*' $ac_mid + 1`
6146 fi
6147 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6148   done
6149 else
6150   echo "$as_me: failed program was:" >&5
6151 sed 's/^/| /' conftest.$ac_ext >&5
6152
6153 cat >conftest.$ac_ext <<_ACEOF
6154 /* confdefs.h.  */
6155 _ACEOF
6156 cat confdefs.h >>conftest.$ac_ext
6157 cat >>conftest.$ac_ext <<_ACEOF
6158 /* end confdefs.h.  */
6159 $ac_includes_default
6160 int
6161 main ()
6162 {
6163 static int test_array [1 - 2 * !(((long) (sizeof (int64_t))) < 0)];
6164 test_array [0] = 0
6165
6166   ;
6167   return 0;
6168 }
6169 _ACEOF
6170 rm -f conftest.$ac_objext
6171 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6172   (eval $ac_compile) 2>conftest.er1
6173   ac_status=$?
6174   grep -v '^ *+' conftest.er1 >conftest.err
6175   rm -f conftest.er1
6176   cat conftest.err >&5
6177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6178   (exit $ac_status); } &&
6179          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6180   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6181   (eval $ac_try) 2>&5
6182   ac_status=$?
6183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6184   (exit $ac_status); }; } &&
6185          { ac_try='test -s conftest.$ac_objext'
6186   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6187   (eval $ac_try) 2>&5
6188   ac_status=$?
6189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6190   (exit $ac_status); }; }; then
6191   ac_hi=-1 ac_mid=-1
6192   while :; do
6193     cat >conftest.$ac_ext <<_ACEOF
6194 /* confdefs.h.  */
6195 _ACEOF
6196 cat confdefs.h >>conftest.$ac_ext
6197 cat >>conftest.$ac_ext <<_ACEOF
6198 /* end confdefs.h.  */
6199 $ac_includes_default
6200 int
6201 main ()
6202 {
6203 static int test_array [1 - 2 * !(((long) (sizeof (int64_t))) >= $ac_mid)];
6204 test_array [0] = 0
6205
6206   ;
6207   return 0;
6208 }
6209 _ACEOF
6210 rm -f conftest.$ac_objext
6211 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6212   (eval $ac_compile) 2>conftest.er1
6213   ac_status=$?
6214   grep -v '^ *+' conftest.er1 >conftest.err
6215   rm -f conftest.er1
6216   cat conftest.err >&5
6217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6218   (exit $ac_status); } &&
6219          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6220   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6221   (eval $ac_try) 2>&5
6222   ac_status=$?
6223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6224   (exit $ac_status); }; } &&
6225          { ac_try='test -s conftest.$ac_objext'
6226   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6227   (eval $ac_try) 2>&5
6228   ac_status=$?
6229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6230   (exit $ac_status); }; }; then
6231   ac_lo=$ac_mid; break
6232 else
6233   echo "$as_me: failed program was:" >&5
6234 sed 's/^/| /' conftest.$ac_ext >&5
6235
6236 ac_hi=`expr '(' $ac_mid ')' - 1`
6237                        if test $ac_mid -le $ac_hi; then
6238                          ac_lo= ac_hi=
6239                          break
6240                        fi
6241                        ac_mid=`expr 2 '*' $ac_mid`
6242 fi
6243 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6244   done
6245 else
6246   echo "$as_me: failed program was:" >&5
6247 sed 's/^/| /' conftest.$ac_ext >&5
6248
6249 ac_lo= ac_hi=
6250 fi
6251 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6252 fi
6253 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6254 # Binary search between lo and hi bounds.
6255 while test "x$ac_lo" != "x$ac_hi"; do
6256   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6257   cat >conftest.$ac_ext <<_ACEOF
6258 /* confdefs.h.  */
6259 _ACEOF
6260 cat confdefs.h >>conftest.$ac_ext
6261 cat >>conftest.$ac_ext <<_ACEOF
6262 /* end confdefs.h.  */
6263 $ac_includes_default
6264 int
6265 main ()
6266 {
6267 static int test_array [1 - 2 * !(((long) (sizeof (int64_t))) <= $ac_mid)];
6268 test_array [0] = 0
6269
6270   ;
6271   return 0;
6272 }
6273 _ACEOF
6274 rm -f conftest.$ac_objext
6275 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6276   (eval $ac_compile) 2>conftest.er1
6277   ac_status=$?
6278   grep -v '^ *+' conftest.er1 >conftest.err
6279   rm -f conftest.er1
6280   cat conftest.err >&5
6281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6282   (exit $ac_status); } &&
6283          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6284   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6285   (eval $ac_try) 2>&5
6286   ac_status=$?
6287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6288   (exit $ac_status); }; } &&
6289          { ac_try='test -s conftest.$ac_objext'
6290   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6291   (eval $ac_try) 2>&5
6292   ac_status=$?
6293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6294   (exit $ac_status); }; }; then
6295   ac_hi=$ac_mid
6296 else
6297   echo "$as_me: failed program was:" >&5
6298 sed 's/^/| /' conftest.$ac_ext >&5
6299
6300 ac_lo=`expr '(' $ac_mid ')' + 1`
6301 fi
6302 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6303 done
6304 case $ac_lo in
6305 ?*) ac_cv_sizeof_int64_t=$ac_lo;;
6306 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int64_t), 77
6307 See \`config.log' for more details." >&5
6308 echo "$as_me: error: cannot compute sizeof (int64_t), 77
6309 See \`config.log' for more details." >&2;}
6310    { (exit 1); exit 1; }; } ;;
6311 esac
6312 else
6313   if test "$cross_compiling" = yes; then
6314   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
6315 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
6316    { (exit 1); exit 1; }; }
6317 else
6318   cat >conftest.$ac_ext <<_ACEOF
6319 /* confdefs.h.  */
6320 _ACEOF
6321 cat confdefs.h >>conftest.$ac_ext
6322 cat >>conftest.$ac_ext <<_ACEOF
6323 /* end confdefs.h.  */
6324 $ac_includes_default
6325 long longval () { return (long) (sizeof (int64_t)); }
6326 unsigned long ulongval () { return (long) (sizeof (int64_t)); }
6327 #include <stdio.h>
6328 #include <stdlib.h>
6329 int
6330 main ()
6331 {
6332
6333   FILE *f = fopen ("conftest.val", "w");
6334   if (! f)
6335     exit (1);
6336   if (((long) (sizeof (int64_t))) < 0)
6337     {
6338       long i = longval ();
6339       if (i != ((long) (sizeof (int64_t))))
6340         exit (1);
6341       fprintf (f, "%ld\n", i);
6342     }
6343   else
6344     {
6345       unsigned long i = ulongval ();
6346       if (i != ((long) (sizeof (int64_t))))
6347         exit (1);
6348       fprintf (f, "%lu\n", i);
6349     }
6350   exit (ferror (f) || fclose (f) != 0);
6351
6352   ;
6353   return 0;
6354 }
6355 _ACEOF
6356 rm -f conftest$ac_exeext
6357 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6358   (eval $ac_link) 2>&5
6359   ac_status=$?
6360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6361   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6362   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6363   (eval $ac_try) 2>&5
6364   ac_status=$?
6365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6366   (exit $ac_status); }; }; then
6367   ac_cv_sizeof_int64_t=`cat conftest.val`
6368 else
6369   echo "$as_me: program exited with status $ac_status" >&5
6370 echo "$as_me: failed program was:" >&5
6371 sed 's/^/| /' conftest.$ac_ext >&5
6372
6373 ( exit $ac_status )
6374 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int64_t), 77
6375 See \`config.log' for more details." >&5
6376 echo "$as_me: error: cannot compute sizeof (int64_t), 77
6377 See \`config.log' for more details." >&2;}
6378    { (exit 1); exit 1; }; }
6379 fi
6380 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6381 fi
6382 fi
6383 rm -f conftest.val
6384 else
6385   ac_cv_sizeof_int64_t=0
6386 fi
6387 fi
6388 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int64_t" >&5
6389 echo "${ECHO_T}$ac_cv_sizeof_int64_t" >&6
6390 cat >>confdefs.h <<_ACEOF
6391 #define SIZEOF_INT64_T $ac_cv_sizeof_int64_t
6392 _ACEOF
6393
6394
6395 echo "$as_me:$LINENO: checking for long long" >&5
6396 echo $ECHO_N "checking for long long... $ECHO_C" >&6
6397 if test "${ac_cv_type_long_long+set}" = set; then
6398   echo $ECHO_N "(cached) $ECHO_C" >&6
6399 else
6400   cat >conftest.$ac_ext <<_ACEOF
6401 /* confdefs.h.  */
6402 _ACEOF
6403 cat confdefs.h >>conftest.$ac_ext
6404 cat >>conftest.$ac_ext <<_ACEOF
6405 /* end confdefs.h.  */
6406 $ac_includes_default
6407 int
6408 main ()
6409 {
6410 if ((long long *) 0)
6411   return 0;
6412 if (sizeof (long long))
6413   return 0;
6414   ;
6415   return 0;
6416 }
6417 _ACEOF
6418 rm -f conftest.$ac_objext
6419 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6420   (eval $ac_compile) 2>conftest.er1
6421   ac_status=$?
6422   grep -v '^ *+' conftest.er1 >conftest.err
6423   rm -f conftest.er1
6424   cat conftest.err >&5
6425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6426   (exit $ac_status); } &&
6427          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6428   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6429   (eval $ac_try) 2>&5
6430   ac_status=$?
6431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6432   (exit $ac_status); }; } &&
6433          { ac_try='test -s conftest.$ac_objext'
6434   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6435   (eval $ac_try) 2>&5
6436   ac_status=$?
6437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6438   (exit $ac_status); }; }; then
6439   ac_cv_type_long_long=yes
6440 else
6441   echo "$as_me: failed program was:" >&5
6442 sed 's/^/| /' conftest.$ac_ext >&5
6443
6444 ac_cv_type_long_long=no
6445 fi
6446 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6447 fi
6448 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
6449 echo "${ECHO_T}$ac_cv_type_long_long" >&6
6450
6451 echo "$as_me:$LINENO: checking size of long long" >&5
6452 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
6453 if test "${ac_cv_sizeof_long_long+set}" = set; then
6454   echo $ECHO_N "(cached) $ECHO_C" >&6
6455 else
6456   if test "$ac_cv_type_long_long" = yes; then
6457   # The cast to unsigned long works around a bug in the HP C Compiler
6458   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6459   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6460   # This bug is HP SR number 8606223364.
6461   if test "$cross_compiling" = yes; then
6462   # Depending upon the size, compute the lo and hi bounds.
6463 cat >conftest.$ac_ext <<_ACEOF
6464 /* confdefs.h.  */
6465 _ACEOF
6466 cat confdefs.h >>conftest.$ac_ext
6467 cat >>conftest.$ac_ext <<_ACEOF
6468 /* end confdefs.h.  */
6469 $ac_includes_default
6470 int
6471 main ()
6472 {
6473 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
6474 test_array [0] = 0
6475
6476   ;
6477   return 0;
6478 }
6479 _ACEOF
6480 rm -f conftest.$ac_objext
6481 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6482   (eval $ac_compile) 2>conftest.er1
6483   ac_status=$?
6484   grep -v '^ *+' conftest.er1 >conftest.err
6485   rm -f conftest.er1
6486   cat conftest.err >&5
6487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6488   (exit $ac_status); } &&
6489          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
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); }; } &&
6495          { ac_try='test -s conftest.$ac_objext'
6496   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6497   (eval $ac_try) 2>&5
6498   ac_status=$?
6499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6500   (exit $ac_status); }; }; then
6501   ac_lo=0 ac_mid=0
6502   while :; do
6503     cat >conftest.$ac_ext <<_ACEOF
6504 /* confdefs.h.  */
6505 _ACEOF
6506 cat confdefs.h >>conftest.$ac_ext
6507 cat >>conftest.$ac_ext <<_ACEOF
6508 /* end confdefs.h.  */
6509 $ac_includes_default
6510 int
6511 main ()
6512 {
6513 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
6514 test_array [0] = 0
6515
6516   ;
6517   return 0;
6518 }
6519 _ACEOF
6520 rm -f conftest.$ac_objext
6521 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6522   (eval $ac_compile) 2>conftest.er1
6523   ac_status=$?
6524   grep -v '^ *+' conftest.er1 >conftest.err
6525   rm -f conftest.er1
6526   cat conftest.err >&5
6527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6528   (exit $ac_status); } &&
6529          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6530   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6531   (eval $ac_try) 2>&5
6532   ac_status=$?
6533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6534   (exit $ac_status); }; } &&
6535          { ac_try='test -s conftest.$ac_objext'
6536   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6537   (eval $ac_try) 2>&5
6538   ac_status=$?
6539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6540   (exit $ac_status); }; }; then
6541   ac_hi=$ac_mid; break
6542 else
6543   echo "$as_me: failed program was:" >&5
6544 sed 's/^/| /' conftest.$ac_ext >&5
6545
6546 ac_lo=`expr $ac_mid + 1`
6547                     if test $ac_lo -le $ac_mid; then
6548                       ac_lo= ac_hi=
6549                       break
6550                     fi
6551                     ac_mid=`expr 2 '*' $ac_mid + 1`
6552 fi
6553 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6554   done
6555 else
6556   echo "$as_me: failed program was:" >&5
6557 sed 's/^/| /' conftest.$ac_ext >&5
6558
6559 cat >conftest.$ac_ext <<_ACEOF
6560 /* confdefs.h.  */
6561 _ACEOF
6562 cat confdefs.h >>conftest.$ac_ext
6563 cat >>conftest.$ac_ext <<_ACEOF
6564 /* end confdefs.h.  */
6565 $ac_includes_default
6566 int
6567 main ()
6568 {
6569 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
6570 test_array [0] = 0
6571
6572   ;
6573   return 0;
6574 }
6575 _ACEOF
6576 rm -f conftest.$ac_objext
6577 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6578   (eval $ac_compile) 2>conftest.er1
6579   ac_status=$?
6580   grep -v '^ *+' conftest.er1 >conftest.err
6581   rm -f conftest.er1
6582   cat conftest.err >&5
6583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6584   (exit $ac_status); } &&
6585          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6586   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6587   (eval $ac_try) 2>&5
6588   ac_status=$?
6589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6590   (exit $ac_status); }; } &&
6591          { ac_try='test -s conftest.$ac_objext'
6592   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6593   (eval $ac_try) 2>&5
6594   ac_status=$?
6595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6596   (exit $ac_status); }; }; then
6597   ac_hi=-1 ac_mid=-1
6598   while :; do
6599     cat >conftest.$ac_ext <<_ACEOF
6600 /* confdefs.h.  */
6601 _ACEOF
6602 cat confdefs.h >>conftest.$ac_ext
6603 cat >>conftest.$ac_ext <<_ACEOF
6604 /* end confdefs.h.  */
6605 $ac_includes_default
6606 int
6607 main ()
6608 {
6609 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
6610 test_array [0] = 0
6611
6612   ;
6613   return 0;
6614 }
6615 _ACEOF
6616 rm -f conftest.$ac_objext
6617 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6618   (eval $ac_compile) 2>conftest.er1
6619   ac_status=$?
6620   grep -v '^ *+' conftest.er1 >conftest.err
6621   rm -f conftest.er1
6622   cat conftest.err >&5
6623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6624   (exit $ac_status); } &&
6625          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6626   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6627   (eval $ac_try) 2>&5
6628   ac_status=$?
6629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6630   (exit $ac_status); }; } &&
6631          { ac_try='test -s conftest.$ac_objext'
6632   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6633   (eval $ac_try) 2>&5
6634   ac_status=$?
6635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6636   (exit $ac_status); }; }; then
6637   ac_lo=$ac_mid; break
6638 else
6639   echo "$as_me: failed program was:" >&5
6640 sed 's/^/| /' conftest.$ac_ext >&5
6641
6642 ac_hi=`expr '(' $ac_mid ')' - 1`
6643                        if test $ac_mid -le $ac_hi; then
6644                          ac_lo= ac_hi=
6645                          break
6646                        fi
6647                        ac_mid=`expr 2 '*' $ac_mid`
6648 fi
6649 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6650   done
6651 else
6652   echo "$as_me: failed program was:" >&5
6653 sed 's/^/| /' conftest.$ac_ext >&5
6654
6655 ac_lo= ac_hi=
6656 fi
6657 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6658 fi
6659 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6660 # Binary search between lo and hi bounds.
6661 while test "x$ac_lo" != "x$ac_hi"; do
6662   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6663   cat >conftest.$ac_ext <<_ACEOF
6664 /* confdefs.h.  */
6665 _ACEOF
6666 cat confdefs.h >>conftest.$ac_ext
6667 cat >>conftest.$ac_ext <<_ACEOF
6668 /* end confdefs.h.  */
6669 $ac_includes_default
6670 int
6671 main ()
6672 {
6673 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
6674 test_array [0] = 0
6675
6676   ;
6677   return 0;
6678 }
6679 _ACEOF
6680 rm -f conftest.$ac_objext
6681 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6682   (eval $ac_compile) 2>conftest.er1
6683   ac_status=$?
6684   grep -v '^ *+' conftest.er1 >conftest.err
6685   rm -f conftest.er1
6686   cat conftest.err >&5
6687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6688   (exit $ac_status); } &&
6689          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6690   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6691   (eval $ac_try) 2>&5
6692   ac_status=$?
6693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6694   (exit $ac_status); }; } &&
6695          { ac_try='test -s conftest.$ac_objext'
6696   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6697   (eval $ac_try) 2>&5
6698   ac_status=$?
6699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6700   (exit $ac_status); }; }; then
6701   ac_hi=$ac_mid
6702 else
6703   echo "$as_me: failed program was:" >&5
6704 sed 's/^/| /' conftest.$ac_ext >&5
6705
6706 ac_lo=`expr '(' $ac_mid ')' + 1`
6707 fi
6708 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6709 done
6710 case $ac_lo in
6711 ?*) ac_cv_sizeof_long_long=$ac_lo;;
6712 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
6713 See \`config.log' for more details." >&5
6714 echo "$as_me: error: cannot compute sizeof (long long), 77
6715 See \`config.log' for more details." >&2;}
6716    { (exit 1); exit 1; }; } ;;
6717 esac
6718 else
6719   if test "$cross_compiling" = yes; then
6720   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
6721 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
6722    { (exit 1); exit 1; }; }
6723 else
6724   cat >conftest.$ac_ext <<_ACEOF
6725 /* confdefs.h.  */
6726 _ACEOF
6727 cat confdefs.h >>conftest.$ac_ext
6728 cat >>conftest.$ac_ext <<_ACEOF
6729 /* end confdefs.h.  */
6730 $ac_includes_default
6731 long longval () { return (long) (sizeof (long long)); }
6732 unsigned long ulongval () { return (long) (sizeof (long long)); }
6733 #include <stdio.h>
6734 #include <stdlib.h>
6735 int
6736 main ()
6737 {
6738
6739   FILE *f = fopen ("conftest.val", "w");
6740   if (! f)
6741     exit (1);
6742   if (((long) (sizeof (long long))) < 0)
6743     {
6744       long i = longval ();
6745       if (i != ((long) (sizeof (long long))))
6746         exit (1);
6747       fprintf (f, "%ld\n", i);
6748     }
6749   else
6750     {
6751       unsigned long i = ulongval ();
6752       if (i != ((long) (sizeof (long long))))
6753         exit (1);
6754       fprintf (f, "%lu\n", i);
6755     }
6756   exit (ferror (f) || fclose (f) != 0);
6757
6758   ;
6759   return 0;
6760 }
6761 _ACEOF
6762 rm -f conftest$ac_exeext
6763 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6764   (eval $ac_link) 2>&5
6765   ac_status=$?
6766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6767   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6768   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6769   (eval $ac_try) 2>&5
6770   ac_status=$?
6771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6772   (exit $ac_status); }; }; then
6773   ac_cv_sizeof_long_long=`cat conftest.val`
6774 else
6775   echo "$as_me: program exited with status $ac_status" >&5
6776 echo "$as_me: failed program was:" >&5
6777 sed 's/^/| /' conftest.$ac_ext >&5
6778
6779 ( exit $ac_status )
6780 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
6781 See \`config.log' for more details." >&5
6782 echo "$as_me: error: cannot compute sizeof (long long), 77
6783 See \`config.log' for more details." >&2;}
6784    { (exit 1); exit 1; }; }
6785 fi
6786 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6787 fi
6788 fi
6789 rm -f conftest.val
6790 else
6791   ac_cv_sizeof_long_long=0
6792 fi
6793 fi
6794 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
6795 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
6796 cat >>confdefs.h <<_ACEOF
6797 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6798 _ACEOF
6799
6800
6801 if test "$ac_cv_sizeof_int" = 2 ; then
6802   echo "$as_me:$LINENO: checking for int16_t" >&5
6803 echo $ECHO_N "checking for int16_t... $ECHO_C" >&6
6804 if test "${ac_cv_type_int16_t+set}" = set; then
6805   echo $ECHO_N "(cached) $ECHO_C" >&6
6806 else
6807   cat >conftest.$ac_ext <<_ACEOF
6808 /* confdefs.h.  */
6809 _ACEOF
6810 cat confdefs.h >>conftest.$ac_ext
6811 cat >>conftest.$ac_ext <<_ACEOF
6812 /* end confdefs.h.  */
6813 $ac_includes_default
6814 int
6815 main ()
6816 {
6817 if ((int16_t *) 0)
6818   return 0;
6819 if (sizeof (int16_t))
6820   return 0;
6821   ;
6822   return 0;
6823 }
6824 _ACEOF
6825 rm -f conftest.$ac_objext
6826 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6827   (eval $ac_compile) 2>conftest.er1
6828   ac_status=$?
6829   grep -v '^ *+' conftest.er1 >conftest.err
6830   rm -f conftest.er1
6831   cat conftest.err >&5
6832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6833   (exit $ac_status); } &&
6834          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6835   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6836   (eval $ac_try) 2>&5
6837   ac_status=$?
6838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6839   (exit $ac_status); }; } &&
6840          { ac_try='test -s conftest.$ac_objext'
6841   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6842   (eval $ac_try) 2>&5
6843   ac_status=$?
6844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6845   (exit $ac_status); }; }; then
6846   ac_cv_type_int16_t=yes
6847 else
6848   echo "$as_me: failed program was:" >&5
6849 sed 's/^/| /' conftest.$ac_ext >&5
6850
6851 ac_cv_type_int16_t=no
6852 fi
6853 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6854 fi
6855 echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
6856 echo "${ECHO_T}$ac_cv_type_int16_t" >&6
6857 if test $ac_cv_type_int16_t = yes; then
6858   :
6859 else
6860
6861 cat >>confdefs.h <<_ACEOF
6862 #define int16_t int
6863 _ACEOF
6864
6865 fi
6866
6867   echo "$as_me:$LINENO: checking for uint16_t" >&5
6868 echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6
6869 if test "${ac_cv_type_uint16_t+set}" = set; then
6870   echo $ECHO_N "(cached) $ECHO_C" >&6
6871 else
6872   cat >conftest.$ac_ext <<_ACEOF
6873 /* confdefs.h.  */
6874 _ACEOF
6875 cat confdefs.h >>conftest.$ac_ext
6876 cat >>conftest.$ac_ext <<_ACEOF
6877 /* end confdefs.h.  */
6878 $ac_includes_default
6879 int
6880 main ()
6881 {
6882 if ((uint16_t *) 0)
6883   return 0;
6884 if (sizeof (uint16_t))
6885   return 0;
6886   ;
6887   return 0;
6888 }
6889 _ACEOF
6890 rm -f conftest.$ac_objext
6891 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6892   (eval $ac_compile) 2>conftest.er1
6893   ac_status=$?
6894   grep -v '^ *+' conftest.er1 >conftest.err
6895   rm -f conftest.er1
6896   cat conftest.err >&5
6897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6898   (exit $ac_status); } &&
6899          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6900   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6901   (eval $ac_try) 2>&5
6902   ac_status=$?
6903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6904   (exit $ac_status); }; } &&
6905          { ac_try='test -s conftest.$ac_objext'
6906   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6907   (eval $ac_try) 2>&5
6908   ac_status=$?
6909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6910   (exit $ac_status); }; }; then
6911   ac_cv_type_uint16_t=yes
6912 else
6913   echo "$as_me: failed program was:" >&5
6914 sed 's/^/| /' conftest.$ac_ext >&5
6915
6916 ac_cv_type_uint16_t=no
6917 fi
6918 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6919 fi
6920 echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
6921 echo "${ECHO_T}$ac_cv_type_uint16_t" >&6
6922 if test $ac_cv_type_uint16_t = yes; then
6923   :
6924 else
6925
6926 cat >>confdefs.h <<_ACEOF
6927 #define uint16_t unsigned int
6928 _ACEOF
6929
6930 fi
6931
6932 elif test "$ac_cv_sizeof_short" = 2 ; then
6933   echo "$as_me:$LINENO: checking for int16_t" >&5
6934 echo $ECHO_N "checking for int16_t... $ECHO_C" >&6
6935 if test "${ac_cv_type_int16_t+set}" = set; then
6936   echo $ECHO_N "(cached) $ECHO_C" >&6
6937 else
6938   cat >conftest.$ac_ext <<_ACEOF
6939 /* confdefs.h.  */
6940 _ACEOF
6941 cat confdefs.h >>conftest.$ac_ext
6942 cat >>conftest.$ac_ext <<_ACEOF
6943 /* end confdefs.h.  */
6944 $ac_includes_default
6945 int
6946 main ()
6947 {
6948 if ((int16_t *) 0)
6949   return 0;
6950 if (sizeof (int16_t))
6951   return 0;
6952   ;
6953   return 0;
6954 }
6955 _ACEOF
6956 rm -f conftest.$ac_objext
6957 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6958   (eval $ac_compile) 2>conftest.er1
6959   ac_status=$?
6960   grep -v '^ *+' conftest.er1 >conftest.err
6961   rm -f conftest.er1
6962   cat conftest.err >&5
6963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6964   (exit $ac_status); } &&
6965          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6966   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6967   (eval $ac_try) 2>&5
6968   ac_status=$?
6969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6970   (exit $ac_status); }; } &&
6971          { ac_try='test -s conftest.$ac_objext'
6972   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6973   (eval $ac_try) 2>&5
6974   ac_status=$?
6975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6976   (exit $ac_status); }; }; then
6977   ac_cv_type_int16_t=yes
6978 else
6979   echo "$as_me: failed program was:" >&5
6980 sed 's/^/| /' conftest.$ac_ext >&5
6981
6982 ac_cv_type_int16_t=no
6983 fi
6984 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6985 fi
6986 echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
6987 echo "${ECHO_T}$ac_cv_type_int16_t" >&6
6988 if test $ac_cv_type_int16_t = yes; then
6989   :
6990 else
6991
6992 cat >>confdefs.h <<_ACEOF
6993 #define int16_t short
6994 _ACEOF
6995
6996 fi
6997
6998   echo "$as_me:$LINENO: checking for uint16_t" >&5
6999 echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6
7000 if test "${ac_cv_type_uint16_t+set}" = set; then
7001   echo $ECHO_N "(cached) $ECHO_C" >&6
7002 else
7003   cat >conftest.$ac_ext <<_ACEOF
7004 /* confdefs.h.  */
7005 _ACEOF
7006 cat confdefs.h >>conftest.$ac_ext
7007 cat >>conftest.$ac_ext <<_ACEOF
7008 /* end confdefs.h.  */
7009 $ac_includes_default
7010 int
7011 main ()
7012 {
7013 if ((uint16_t *) 0)
7014   return 0;
7015 if (sizeof (uint16_t))
7016   return 0;
7017   ;
7018   return 0;
7019 }
7020 _ACEOF
7021 rm -f conftest.$ac_objext
7022 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7023   (eval $ac_compile) 2>conftest.er1
7024   ac_status=$?
7025   grep -v '^ *+' conftest.er1 >conftest.err
7026   rm -f conftest.er1
7027   cat conftest.err >&5
7028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7029   (exit $ac_status); } &&
7030          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7031   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7032   (eval $ac_try) 2>&5
7033   ac_status=$?
7034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7035   (exit $ac_status); }; } &&
7036          { ac_try='test -s conftest.$ac_objext'
7037   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7038   (eval $ac_try) 2>&5
7039   ac_status=$?
7040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7041   (exit $ac_status); }; }; then
7042   ac_cv_type_uint16_t=yes
7043 else
7044   echo "$as_me: failed program was:" >&5
7045 sed 's/^/| /' conftest.$ac_ext >&5
7046
7047 ac_cv_type_uint16_t=no
7048 fi
7049 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7050 fi
7051 echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
7052 echo "${ECHO_T}$ac_cv_type_uint16_t" >&6
7053 if test $ac_cv_type_uint16_t = yes; then
7054   :
7055 else
7056
7057 cat >>confdefs.h <<_ACEOF
7058 #define uint16_t unsigned short
7059 _ACEOF
7060
7061 fi
7062
7063 else
7064   { { echo "$as_me:$LINENO: error: Cannot find a type with size of 16 bits" >&5
7065 echo "$as_me: error: Cannot find a type with size of 16 bits" >&2;}
7066    { (exit 1); exit 1; }; }
7067 fi
7068 if test "$ac_cv_sizeof_int" = 4 ; then
7069   echo "$as_me:$LINENO: checking for int32_t" >&5
7070 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6
7071 if test "${ac_cv_type_int32_t+set}" = set; then
7072   echo $ECHO_N "(cached) $ECHO_C" >&6
7073 else
7074   cat >conftest.$ac_ext <<_ACEOF
7075 /* confdefs.h.  */
7076 _ACEOF
7077 cat confdefs.h >>conftest.$ac_ext
7078 cat >>conftest.$ac_ext <<_ACEOF
7079 /* end confdefs.h.  */
7080 $ac_includes_default
7081 int
7082 main ()
7083 {
7084 if ((int32_t *) 0)
7085   return 0;
7086 if (sizeof (int32_t))
7087   return 0;
7088   ;
7089   return 0;
7090 }
7091 _ACEOF
7092 rm -f conftest.$ac_objext
7093 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7094   (eval $ac_compile) 2>conftest.er1
7095   ac_status=$?
7096   grep -v '^ *+' conftest.er1 >conftest.err
7097   rm -f conftest.er1
7098   cat conftest.err >&5
7099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7100   (exit $ac_status); } &&
7101          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7102   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7103   (eval $ac_try) 2>&5
7104   ac_status=$?
7105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7106   (exit $ac_status); }; } &&
7107          { ac_try='test -s conftest.$ac_objext'
7108   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7109   (eval $ac_try) 2>&5
7110   ac_status=$?
7111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7112   (exit $ac_status); }; }; then
7113   ac_cv_type_int32_t=yes
7114 else
7115   echo "$as_me: failed program was:" >&5
7116 sed 's/^/| /' conftest.$ac_ext >&5
7117
7118 ac_cv_type_int32_t=no
7119 fi
7120 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7121 fi
7122 echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
7123 echo "${ECHO_T}$ac_cv_type_int32_t" >&6
7124 if test $ac_cv_type_int32_t = yes; then
7125   :
7126 else
7127
7128 cat >>confdefs.h <<_ACEOF
7129 #define int32_t int
7130 _ACEOF
7131
7132 fi
7133
7134   echo "$as_me:$LINENO: checking for uint32_t" >&5
7135 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
7136 if test "${ac_cv_type_uint32_t+set}" = set; then
7137   echo $ECHO_N "(cached) $ECHO_C" >&6
7138 else
7139   cat >conftest.$ac_ext <<_ACEOF
7140 /* confdefs.h.  */
7141 _ACEOF
7142 cat confdefs.h >>conftest.$ac_ext
7143 cat >>conftest.$ac_ext <<_ACEOF
7144 /* end confdefs.h.  */
7145 $ac_includes_default
7146 int
7147 main ()
7148 {
7149 if ((uint32_t *) 0)
7150   return 0;
7151 if (sizeof (uint32_t))
7152   return 0;
7153   ;
7154   return 0;
7155 }
7156 _ACEOF
7157 rm -f conftest.$ac_objext
7158 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7159   (eval $ac_compile) 2>conftest.er1
7160   ac_status=$?
7161   grep -v '^ *+' conftest.er1 >conftest.err
7162   rm -f conftest.er1
7163   cat conftest.err >&5
7164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7165   (exit $ac_status); } &&
7166          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7167   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7168   (eval $ac_try) 2>&5
7169   ac_status=$?
7170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7171   (exit $ac_status); }; } &&
7172          { ac_try='test -s conftest.$ac_objext'
7173   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7174   (eval $ac_try) 2>&5
7175   ac_status=$?
7176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7177   (exit $ac_status); }; }; then
7178   ac_cv_type_uint32_t=yes
7179 else
7180   echo "$as_me: failed program was:" >&5
7181 sed 's/^/| /' conftest.$ac_ext >&5
7182
7183 ac_cv_type_uint32_t=no
7184 fi
7185 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7186 fi
7187 echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
7188 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
7189 if test $ac_cv_type_uint32_t = yes; then
7190   :
7191 else
7192
7193 cat >>confdefs.h <<_ACEOF
7194 #define uint32_t unsigned int
7195 _ACEOF
7196
7197 fi
7198
7199 elif test "$ac_cv_sizeof_short" = 4 ; then
7200   echo "$as_me:$LINENO: checking for int32_t" >&5
7201 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6
7202 if test "${ac_cv_type_int32_t+set}" = set; then
7203   echo $ECHO_N "(cached) $ECHO_C" >&6
7204 else
7205   cat >conftest.$ac_ext <<_ACEOF
7206 /* confdefs.h.  */
7207 _ACEOF
7208 cat confdefs.h >>conftest.$ac_ext
7209 cat >>conftest.$ac_ext <<_ACEOF
7210 /* end confdefs.h.  */
7211 $ac_includes_default
7212 int
7213 main ()
7214 {
7215 if ((int32_t *) 0)
7216   return 0;
7217 if (sizeof (int32_t))
7218   return 0;
7219   ;
7220   return 0;
7221 }
7222 _ACEOF
7223 rm -f conftest.$ac_objext
7224 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7225   (eval $ac_compile) 2>conftest.er1
7226   ac_status=$?
7227   grep -v '^ *+' conftest.er1 >conftest.err
7228   rm -f conftest.er1
7229   cat conftest.err >&5
7230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7231   (exit $ac_status); } &&
7232          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7233   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7234   (eval $ac_try) 2>&5
7235   ac_status=$?
7236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7237   (exit $ac_status); }; } &&
7238          { ac_try='test -s conftest.$ac_objext'
7239   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7240   (eval $ac_try) 2>&5
7241   ac_status=$?
7242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7243   (exit $ac_status); }; }; then
7244   ac_cv_type_int32_t=yes
7245 else
7246   echo "$as_me: failed program was:" >&5
7247 sed 's/^/| /' conftest.$ac_ext >&5
7248
7249 ac_cv_type_int32_t=no
7250 fi
7251 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7252 fi
7253 echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
7254 echo "${ECHO_T}$ac_cv_type_int32_t" >&6
7255 if test $ac_cv_type_int32_t = yes; then
7256   :
7257 else
7258
7259 cat >>confdefs.h <<_ACEOF
7260 #define int32_t short
7261 _ACEOF
7262
7263 fi
7264
7265   echo "$as_me:$LINENO: checking for uint32_t" >&5
7266 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
7267 if test "${ac_cv_type_uint32_t+set}" = set; then
7268   echo $ECHO_N "(cached) $ECHO_C" >&6
7269 else
7270   cat >conftest.$ac_ext <<_ACEOF
7271 /* confdefs.h.  */
7272 _ACEOF
7273 cat confdefs.h >>conftest.$ac_ext
7274 cat >>conftest.$ac_ext <<_ACEOF
7275 /* end confdefs.h.  */
7276 $ac_includes_default
7277 int
7278 main ()
7279 {
7280 if ((uint32_t *) 0)
7281   return 0;
7282 if (sizeof (uint32_t))
7283   return 0;
7284   ;
7285   return 0;
7286 }
7287 _ACEOF
7288 rm -f conftest.$ac_objext
7289 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7290   (eval $ac_compile) 2>conftest.er1
7291   ac_status=$?
7292   grep -v '^ *+' conftest.er1 >conftest.err
7293   rm -f conftest.er1
7294   cat conftest.err >&5
7295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7296   (exit $ac_status); } &&
7297          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7298   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7299   (eval $ac_try) 2>&5
7300   ac_status=$?
7301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7302   (exit $ac_status); }; } &&
7303          { ac_try='test -s conftest.$ac_objext'
7304   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7305   (eval $ac_try) 2>&5
7306   ac_status=$?
7307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7308   (exit $ac_status); }; }; then
7309   ac_cv_type_uint32_t=yes
7310 else
7311   echo "$as_me: failed program was:" >&5
7312 sed 's/^/| /' conftest.$ac_ext >&5
7313
7314 ac_cv_type_uint32_t=no
7315 fi
7316 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7317 fi
7318 echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
7319 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
7320 if test $ac_cv_type_uint32_t = yes; then
7321   :
7322 else
7323
7324 cat >>confdefs.h <<_ACEOF
7325 #define uint32_t unsigned short
7326 _ACEOF
7327
7328 fi
7329
7330 elif test "$ac_cv_sizeof_long" = 4 ; then
7331   echo "$as_me:$LINENO: checking for int32_t" >&5
7332 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6
7333 if test "${ac_cv_type_int32_t+set}" = set; then
7334   echo $ECHO_N "(cached) $ECHO_C" >&6
7335 else
7336   cat >conftest.$ac_ext <<_ACEOF
7337 /* confdefs.h.  */
7338 _ACEOF
7339 cat confdefs.h >>conftest.$ac_ext
7340 cat >>conftest.$ac_ext <<_ACEOF
7341 /* end confdefs.h.  */
7342 $ac_includes_default
7343 int
7344 main ()
7345 {
7346 if ((int32_t *) 0)
7347   return 0;
7348 if (sizeof (int32_t))
7349   return 0;
7350   ;
7351   return 0;
7352 }
7353 _ACEOF
7354 rm -f conftest.$ac_objext
7355 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7356   (eval $ac_compile) 2>conftest.er1
7357   ac_status=$?
7358   grep -v '^ *+' conftest.er1 >conftest.err
7359   rm -f conftest.er1
7360   cat conftest.err >&5
7361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7362   (exit $ac_status); } &&
7363          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7364   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7365   (eval $ac_try) 2>&5
7366   ac_status=$?
7367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7368   (exit $ac_status); }; } &&
7369          { ac_try='test -s conftest.$ac_objext'
7370   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7371   (eval $ac_try) 2>&5
7372   ac_status=$?
7373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7374   (exit $ac_status); }; }; then
7375   ac_cv_type_int32_t=yes
7376 else
7377   echo "$as_me: failed program was:" >&5
7378 sed 's/^/| /' conftest.$ac_ext >&5
7379
7380 ac_cv_type_int32_t=no
7381 fi
7382 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7383 fi
7384 echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
7385 echo "${ECHO_T}$ac_cv_type_int32_t" >&6
7386 if test $ac_cv_type_int32_t = yes; then
7387   :
7388 else
7389
7390 cat >>confdefs.h <<_ACEOF
7391 #define int32_t long
7392 _ACEOF
7393
7394 fi
7395
7396   echo "$as_me:$LINENO: checking for uint32_t" >&5
7397 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
7398 if test "${ac_cv_type_uint32_t+set}" = set; then
7399   echo $ECHO_N "(cached) $ECHO_C" >&6
7400 else
7401   cat >conftest.$ac_ext <<_ACEOF
7402 /* confdefs.h.  */
7403 _ACEOF
7404 cat confdefs.h >>conftest.$ac_ext
7405 cat >>conftest.$ac_ext <<_ACEOF
7406 /* end confdefs.h.  */
7407 $ac_includes_default
7408 int
7409 main ()
7410 {
7411 if ((uint32_t *) 0)
7412   return 0;
7413 if (sizeof (uint32_t))
7414   return 0;
7415   ;
7416   return 0;
7417 }
7418 _ACEOF
7419 rm -f conftest.$ac_objext
7420 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7421   (eval $ac_compile) 2>conftest.er1
7422   ac_status=$?
7423   grep -v '^ *+' conftest.er1 >conftest.err
7424   rm -f conftest.er1
7425   cat conftest.err >&5
7426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7427   (exit $ac_status); } &&
7428          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7429   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7430   (eval $ac_try) 2>&5
7431   ac_status=$?
7432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7433   (exit $ac_status); }; } &&
7434          { ac_try='test -s conftest.$ac_objext'
7435   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7436   (eval $ac_try) 2>&5
7437   ac_status=$?
7438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7439   (exit $ac_status); }; }; then
7440   ac_cv_type_uint32_t=yes
7441 else
7442   echo "$as_me: failed program was:" >&5
7443 sed 's/^/| /' conftest.$ac_ext >&5
7444
7445 ac_cv_type_uint32_t=no
7446 fi
7447 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7448 fi
7449 echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
7450 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
7451 if test $ac_cv_type_uint32_t = yes; then
7452   :
7453 else
7454
7455 cat >>confdefs.h <<_ACEOF
7456 #define uint32_t unsigned long
7457 _ACEOF
7458
7459 fi
7460
7461 else
7462   { { echo "$as_me:$LINENO: error: Cannot find a type with size of 32 bits" >&5
7463 echo "$as_me: error: Cannot find a type with size of 32 bits" >&2;}
7464    { (exit 1); exit 1; }; }
7465 fi
7466 if test "$ac_cv_sizeof_int64_t" = 8 ; then
7467   echo "$as_me:$LINENO: checking for int64_t" >&5
7468 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
7469 if test "${ac_cv_type_int64_t+set}" = set; then
7470   echo $ECHO_N "(cached) $ECHO_C" >&6
7471 else
7472   cat >conftest.$ac_ext <<_ACEOF
7473 /* confdefs.h.  */
7474 _ACEOF
7475 cat confdefs.h >>conftest.$ac_ext
7476 cat >>conftest.$ac_ext <<_ACEOF
7477 /* end confdefs.h.  */
7478 $ac_includes_default
7479 int
7480 main ()
7481 {
7482 if ((int64_t *) 0)
7483   return 0;
7484 if (sizeof (int64_t))
7485   return 0;
7486   ;
7487   return 0;
7488 }
7489 _ACEOF
7490 rm -f conftest.$ac_objext
7491 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7492   (eval $ac_compile) 2>conftest.er1
7493   ac_status=$?
7494   grep -v '^ *+' conftest.er1 >conftest.err
7495   rm -f conftest.er1
7496   cat conftest.err >&5
7497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7498   (exit $ac_status); } &&
7499          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7500   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7501   (eval $ac_try) 2>&5
7502   ac_status=$?
7503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7504   (exit $ac_status); }; } &&
7505          { ac_try='test -s conftest.$ac_objext'
7506   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7507   (eval $ac_try) 2>&5
7508   ac_status=$?
7509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7510   (exit $ac_status); }; }; then
7511   ac_cv_type_int64_t=yes
7512 else
7513   echo "$as_me: failed program was:" >&5
7514 sed 's/^/| /' conftest.$ac_ext >&5
7515
7516 ac_cv_type_int64_t=no
7517 fi
7518 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7519 fi
7520 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
7521 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
7522
7523   echo "$as_me:$LINENO: checking for uint64_t" >&5
7524 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
7525 if test "${ac_cv_type_uint64_t+set}" = set; then
7526   echo $ECHO_N "(cached) $ECHO_C" >&6
7527 else
7528   cat >conftest.$ac_ext <<_ACEOF
7529 /* confdefs.h.  */
7530 _ACEOF
7531 cat confdefs.h >>conftest.$ac_ext
7532 cat >>conftest.$ac_ext <<_ACEOF
7533 /* end confdefs.h.  */
7534 $ac_includes_default
7535 int
7536 main ()
7537 {
7538 if ((uint64_t *) 0)
7539   return 0;
7540 if (sizeof (uint64_t))
7541   return 0;
7542   ;
7543   return 0;
7544 }
7545 _ACEOF
7546 rm -f conftest.$ac_objext
7547 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7548   (eval $ac_compile) 2>conftest.er1
7549   ac_status=$?
7550   grep -v '^ *+' conftest.er1 >conftest.err
7551   rm -f conftest.er1
7552   cat conftest.err >&5
7553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7554   (exit $ac_status); } &&
7555          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7556   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7557   (eval $ac_try) 2>&5
7558   ac_status=$?
7559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7560   (exit $ac_status); }; } &&
7561          { ac_try='test -s conftest.$ac_objext'
7562   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7563   (eval $ac_try) 2>&5
7564   ac_status=$?
7565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7566   (exit $ac_status); }; }; then
7567   ac_cv_type_uint64_t=yes
7568 else
7569   echo "$as_me: failed program was:" >&5
7570 sed 's/^/| /' conftest.$ac_ext >&5
7571
7572 ac_cv_type_uint64_t=no
7573 fi
7574 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7575 fi
7576 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
7577 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
7578
7579 elif test "$ac_cv_sizeof_long_long" = 8 ; then
7580   echo "$as_me:$LINENO: checking for int64_t" >&5
7581 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
7582 if test "${ac_cv_type_int64_t+set}" = set; then
7583   echo $ECHO_N "(cached) $ECHO_C" >&6
7584 else
7585   cat >conftest.$ac_ext <<_ACEOF
7586 /* confdefs.h.  */
7587 _ACEOF
7588 cat confdefs.h >>conftest.$ac_ext
7589 cat >>conftest.$ac_ext <<_ACEOF
7590 /* end confdefs.h.  */
7591 $ac_includes_default
7592 int
7593 main ()
7594 {
7595 if ((int64_t *) 0)
7596   return 0;
7597 if (sizeof (int64_t))
7598   return 0;
7599   ;
7600   return 0;
7601 }
7602 _ACEOF
7603 rm -f conftest.$ac_objext
7604 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7605   (eval $ac_compile) 2>conftest.er1
7606   ac_status=$?
7607   grep -v '^ *+' conftest.er1 >conftest.err
7608   rm -f conftest.er1
7609   cat conftest.err >&5
7610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7611   (exit $ac_status); } &&
7612          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7613   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7614   (eval $ac_try) 2>&5
7615   ac_status=$?
7616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7617   (exit $ac_status); }; } &&
7618          { ac_try='test -s conftest.$ac_objext'
7619   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7620   (eval $ac_try) 2>&5
7621   ac_status=$?
7622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7623   (exit $ac_status); }; }; then
7624   ac_cv_type_int64_t=yes
7625 else
7626   echo "$as_me: failed program was:" >&5
7627 sed 's/^/| /' conftest.$ac_ext >&5
7628
7629 ac_cv_type_int64_t=no
7630 fi
7631 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7632 fi
7633 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
7634 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
7635 if test $ac_cv_type_int64_t = yes; then
7636   :
7637 else
7638
7639 cat >>confdefs.h <<_ACEOF
7640 #define int64_t long long
7641 _ACEOF
7642
7643 fi
7644
7645   echo "$as_me:$LINENO: checking for uint64_t" >&5
7646 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
7647 if test "${ac_cv_type_uint64_t+set}" = set; then
7648   echo $ECHO_N "(cached) $ECHO_C" >&6
7649 else
7650   cat >conftest.$ac_ext <<_ACEOF
7651 /* confdefs.h.  */
7652 _ACEOF
7653 cat confdefs.h >>conftest.$ac_ext
7654 cat >>conftest.$ac_ext <<_ACEOF
7655 /* end confdefs.h.  */
7656 $ac_includes_default
7657 int
7658 main ()
7659 {
7660 if ((uint64_t *) 0)
7661   return 0;
7662 if (sizeof (uint64_t))
7663   return 0;
7664   ;
7665   return 0;
7666 }
7667 _ACEOF
7668 rm -f conftest.$ac_objext
7669 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7670   (eval $ac_compile) 2>conftest.er1
7671   ac_status=$?
7672   grep -v '^ *+' conftest.er1 >conftest.err
7673   rm -f conftest.er1
7674   cat conftest.err >&5
7675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7676   (exit $ac_status); } &&
7677          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7678   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7679   (eval $ac_try) 2>&5
7680   ac_status=$?
7681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7682   (exit $ac_status); }; } &&
7683          { ac_try='test -s conftest.$ac_objext'
7684   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7685   (eval $ac_try) 2>&5
7686   ac_status=$?
7687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7688   (exit $ac_status); }; }; then
7689   ac_cv_type_uint64_t=yes
7690 else
7691   echo "$as_me: failed program was:" >&5
7692 sed 's/^/| /' conftest.$ac_ext >&5
7693
7694 ac_cv_type_uint64_t=no
7695 fi
7696 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7697 fi
7698 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
7699 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
7700 if test $ac_cv_type_uint64_t = yes; then
7701   :
7702 else
7703
7704 cat >>confdefs.h <<_ACEOF
7705 #define uint64_t unsigned long long
7706 _ACEOF
7707
7708 fi
7709
7710 else
7711   { { echo "$as_me:$LINENO: error: Cannot find a type with size of 64 bits" >&5
7712 echo "$as_me: error: Cannot find a type with size of 64 bits" >&2;}
7713    { (exit 1); exit 1; }; }
7714 fi
7715 echo "$as_me:$LINENO: checking for socklen_t" >&5
7716 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
7717 if test "${ac_cv_type_socklen_t+set}" = set; then
7718   echo $ECHO_N "(cached) $ECHO_C" >&6
7719 else
7720   cat >conftest.$ac_ext <<_ACEOF
7721 /* confdefs.h.  */
7722 _ACEOF
7723 cat confdefs.h >>conftest.$ac_ext
7724 cat >>conftest.$ac_ext <<_ACEOF
7725 /* end confdefs.h.  */
7726 $ac_includes_default
7727 int
7728 main ()
7729 {
7730 if ((socklen_t *) 0)
7731   return 0;
7732 if (sizeof (socklen_t))
7733   return 0;
7734   ;
7735   return 0;
7736 }
7737 _ACEOF
7738 rm -f conftest.$ac_objext
7739 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7740   (eval $ac_compile) 2>conftest.er1
7741   ac_status=$?
7742   grep -v '^ *+' conftest.er1 >conftest.err
7743   rm -f conftest.er1
7744   cat conftest.err >&5
7745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7746   (exit $ac_status); } &&
7747          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7748   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7749   (eval $ac_try) 2>&5
7750   ac_status=$?
7751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7752   (exit $ac_status); }; } &&
7753          { ac_try='test -s conftest.$ac_objext'
7754   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7755   (eval $ac_try) 2>&5
7756   ac_status=$?
7757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7758   (exit $ac_status); }; }; then
7759   ac_cv_type_socklen_t=yes
7760 else
7761   echo "$as_me: failed program was:" >&5
7762 sed 's/^/| /' conftest.$ac_ext >&5
7763
7764 ac_cv_type_socklen_t=no
7765 fi
7766 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7767 fi
7768 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
7769 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
7770 if test $ac_cv_type_socklen_t = yes; then
7771   :
7772 else
7773
7774 cat >>confdefs.h <<_ACEOF
7775 #define socklen_t unsigned int
7776 _ACEOF
7777
7778 fi
7779
7780 echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
7781 echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6
7782 if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
7783   echo $ECHO_N "(cached) $ECHO_C" >&6
7784 else
7785   cat >conftest.$ac_ext <<_ACEOF
7786 /* confdefs.h.  */
7787 _ACEOF
7788 cat confdefs.h >>conftest.$ac_ext
7789 cat >>conftest.$ac_ext <<_ACEOF
7790 /* end confdefs.h.  */
7791 #include <sys/types.h>
7792 #include <netinet/in.h>
7793
7794 int
7795 main ()
7796 {
7797 if ((struct sockaddr_in6 *) 0)
7798   return 0;
7799 if (sizeof (struct sockaddr_in6))
7800   return 0;
7801   ;
7802   return 0;
7803 }
7804 _ACEOF
7805 rm -f conftest.$ac_objext
7806 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7807   (eval $ac_compile) 2>conftest.er1
7808   ac_status=$?
7809   grep -v '^ *+' conftest.er1 >conftest.err
7810   rm -f conftest.er1
7811   cat conftest.err >&5
7812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7813   (exit $ac_status); } &&
7814          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7815   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7816   (eval $ac_try) 2>&5
7817   ac_status=$?
7818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7819   (exit $ac_status); }; } &&
7820          { ac_try='test -s conftest.$ac_objext'
7821   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7822   (eval $ac_try) 2>&5
7823   ac_status=$?
7824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7825   (exit $ac_status); }; }; then
7826   ac_cv_type_struct_sockaddr_in6=yes
7827 else
7828   echo "$as_me: failed program was:" >&5
7829 sed 's/^/| /' conftest.$ac_ext >&5
7830
7831 ac_cv_type_struct_sockaddr_in6=no
7832 fi
7833 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7834 fi
7835 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
7836 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_in6" >&6
7837 if test $ac_cv_type_struct_sockaddr_in6 = yes; then
7838   unet_have_sockaddr_in6="yes"
7839 else
7840   unet_have_sockaddr_in6="no"
7841 fi
7842
7843
7844
7845
7846
7847
7848 for ac_func in kqueue setrlimit getrusage times
7849 do
7850 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7851 echo "$as_me:$LINENO: checking for $ac_func" >&5
7852 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7853 if eval "test \"\${$as_ac_var+set}\" = set"; then
7854   echo $ECHO_N "(cached) $ECHO_C" >&6
7855 else
7856   cat >conftest.$ac_ext <<_ACEOF
7857 /* confdefs.h.  */
7858 _ACEOF
7859 cat confdefs.h >>conftest.$ac_ext
7860 cat >>conftest.$ac_ext <<_ACEOF
7861 /* end confdefs.h.  */
7862 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7863    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7864 #define $ac_func innocuous_$ac_func
7865
7866 /* System header to define __stub macros and hopefully few prototypes,
7867     which can conflict with char $ac_func (); below.
7868     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7869     <limits.h> exists even on freestanding compilers.  */
7870
7871 #ifdef __STDC__
7872 # include <limits.h>
7873 #else
7874 # include <assert.h>
7875 #endif
7876
7877 #undef $ac_func
7878
7879 /* Override any gcc2 internal prototype to avoid an error.  */
7880 #ifdef __cplusplus
7881 extern "C"
7882 {
7883 #endif
7884 /* We use char because int might match the return type of a gcc2
7885    builtin and then its argument prototype would still apply.  */
7886 char $ac_func ();
7887 /* The GNU C library defines this for functions which it implements
7888     to always fail with ENOSYS.  Some functions are actually named
7889     something starting with __ and the normal name is an alias.  */
7890 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7891 choke me
7892 #else
7893 char (*f) () = $ac_func;
7894 #endif
7895 #ifdef __cplusplus
7896 }
7897 #endif
7898
7899 int
7900 main ()
7901 {
7902 return f != $ac_func;
7903   ;
7904   return 0;
7905 }
7906 _ACEOF
7907 rm -f conftest.$ac_objext conftest$ac_exeext
7908 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7909   (eval $ac_link) 2>conftest.er1
7910   ac_status=$?
7911   grep -v '^ *+' conftest.er1 >conftest.err
7912   rm -f conftest.er1
7913   cat conftest.err >&5
7914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7915   (exit $ac_status); } &&
7916          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7917   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7918   (eval $ac_try) 2>&5
7919   ac_status=$?
7920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7921   (exit $ac_status); }; } &&
7922          { ac_try='test -s conftest$ac_exeext'
7923   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7924   (eval $ac_try) 2>&5
7925   ac_status=$?
7926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7927   (exit $ac_status); }; }; then
7928   eval "$as_ac_var=yes"
7929 else
7930   echo "$as_me: failed program was:" >&5
7931 sed 's/^/| /' conftest.$ac_ext >&5
7932
7933 eval "$as_ac_var=no"
7934 fi
7935 rm -f conftest.err conftest.$ac_objext \
7936       conftest$ac_exeext conftest.$ac_ext
7937 fi
7938 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7939 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7940 if test `eval echo '${'$as_ac_var'}'` = yes; then
7941   cat >>confdefs.h <<_ACEOF
7942 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7943 _ACEOF
7944
7945 fi
7946 done
7947
7948
7949 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7950 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
7951 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7952   echo $ECHO_N "(cached) $ECHO_C" >&6
7953 else
7954   cat >conftest.$ac_ext <<_ACEOF
7955 /* confdefs.h.  */
7956 _ACEOF
7957 cat confdefs.h >>conftest.$ac_ext
7958 cat >>conftest.$ac_ext <<_ACEOF
7959 /* end confdefs.h.  */
7960 #include <sys/types.h>
7961 #include <sys/wait.h>
7962 #ifndef WEXITSTATUS
7963 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
7964 #endif
7965 #ifndef WIFEXITED
7966 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7967 #endif
7968
7969 int
7970 main ()
7971 {
7972   int s;
7973   wait (&s);
7974   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7975   ;
7976   return 0;
7977 }
7978 _ACEOF
7979 rm -f conftest.$ac_objext
7980 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7981   (eval $ac_compile) 2>conftest.er1
7982   ac_status=$?
7983   grep -v '^ *+' conftest.er1 >conftest.err
7984   rm -f conftest.er1
7985   cat conftest.err >&5
7986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7987   (exit $ac_status); } &&
7988          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7989   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7990   (eval $ac_try) 2>&5
7991   ac_status=$?
7992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7993   (exit $ac_status); }; } &&
7994          { ac_try='test -s conftest.$ac_objext'
7995   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7996   (eval $ac_try) 2>&5
7997   ac_status=$?
7998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7999   (exit $ac_status); }; }; then
8000   ac_cv_header_sys_wait_h=yes
8001 else
8002   echo "$as_me: failed program was:" >&5
8003 sed 's/^/| /' conftest.$ac_ext >&5
8004
8005 ac_cv_header_sys_wait_h=no
8006 fi
8007 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8008 fi
8009 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
8010 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
8011 if test $ac_cv_header_sys_wait_h = yes; then
8012
8013 cat >>confdefs.h <<\_ACEOF
8014 #define HAVE_SYS_WAIT_H 1
8015 _ACEOF
8016
8017 fi
8018
8019
8020 for ac_header in unistd.h
8021 do
8022 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8023 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8024   echo "$as_me:$LINENO: checking for $ac_header" >&5
8025 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8026 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8027   echo $ECHO_N "(cached) $ECHO_C" >&6
8028 fi
8029 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8030 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8031 else
8032   # Is the header compilable?
8033 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8034 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8035 cat >conftest.$ac_ext <<_ACEOF
8036 /* confdefs.h.  */
8037 _ACEOF
8038 cat confdefs.h >>conftest.$ac_ext
8039 cat >>conftest.$ac_ext <<_ACEOF
8040 /* end confdefs.h.  */
8041 $ac_includes_default
8042 #include <$ac_header>
8043 _ACEOF
8044 rm -f conftest.$ac_objext
8045 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8046   (eval $ac_compile) 2>conftest.er1
8047   ac_status=$?
8048   grep -v '^ *+' conftest.er1 >conftest.err
8049   rm -f conftest.er1
8050   cat conftest.err >&5
8051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8052   (exit $ac_status); } &&
8053          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8054   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8055   (eval $ac_try) 2>&5
8056   ac_status=$?
8057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8058   (exit $ac_status); }; } &&
8059          { ac_try='test -s conftest.$ac_objext'
8060   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8061   (eval $ac_try) 2>&5
8062   ac_status=$?
8063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8064   (exit $ac_status); }; }; then
8065   ac_header_compiler=yes
8066 else
8067   echo "$as_me: failed program was:" >&5
8068 sed 's/^/| /' conftest.$ac_ext >&5
8069
8070 ac_header_compiler=no
8071 fi
8072 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8073 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8074 echo "${ECHO_T}$ac_header_compiler" >&6
8075
8076 # Is the header present?
8077 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8078 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8079 cat >conftest.$ac_ext <<_ACEOF
8080 /* confdefs.h.  */
8081 _ACEOF
8082 cat confdefs.h >>conftest.$ac_ext
8083 cat >>conftest.$ac_ext <<_ACEOF
8084 /* end confdefs.h.  */
8085 #include <$ac_header>
8086 _ACEOF
8087 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8088   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8089   ac_status=$?
8090   grep -v '^ *+' conftest.er1 >conftest.err
8091   rm -f conftest.er1
8092   cat conftest.err >&5
8093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8094   (exit $ac_status); } >/dev/null; then
8095   if test -s conftest.err; then
8096     ac_cpp_err=$ac_c_preproc_warn_flag
8097     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8098   else
8099     ac_cpp_err=
8100   fi
8101 else
8102   ac_cpp_err=yes
8103 fi
8104 if test -z "$ac_cpp_err"; then
8105   ac_header_preproc=yes
8106 else
8107   echo "$as_me: failed program was:" >&5
8108 sed 's/^/| /' conftest.$ac_ext >&5
8109
8110   ac_header_preproc=no
8111 fi
8112 rm -f conftest.err conftest.$ac_ext
8113 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8114 echo "${ECHO_T}$ac_header_preproc" >&6
8115
8116 # So?  What about this header?
8117 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8118   yes:no: )
8119     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8120 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8121     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8122 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8123     ac_header_preproc=yes
8124     ;;
8125   no:yes:* )
8126     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8127 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8128     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8129 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8130     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8131 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8132     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8133 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8134     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8135 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8136     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8137 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8138     (
8139       cat <<\_ASBOX
8140 ## ------------------------------------------ ##
8141 ## Report this to the AC_PACKAGE_NAME lists.  ##
8142 ## ------------------------------------------ ##
8143 _ASBOX
8144     ) |
8145       sed "s/^/$as_me: WARNING:     /" >&2
8146     ;;
8147 esac
8148 echo "$as_me:$LINENO: checking for $ac_header" >&5
8149 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8150 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8151   echo $ECHO_N "(cached) $ECHO_C" >&6
8152 else
8153   eval "$as_ac_Header=\$ac_header_preproc"
8154 fi
8155 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8156 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8157
8158 fi
8159 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8160   cat >>confdefs.h <<_ACEOF
8161 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8162 _ACEOF
8163
8164 fi
8165
8166 done
8167
8168 echo "$as_me:$LINENO: checking for restartable system calls" >&5
8169 echo $ECHO_N "checking for restartable system calls... $ECHO_C" >&6
8170 if test "${ac_cv_sys_restartable_syscalls+set}" = set; then
8171   echo $ECHO_N "(cached) $ECHO_C" >&6
8172 else
8173   if test "$cross_compiling" = yes; then
8174   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
8175 See \`config.log' for more details." >&5
8176 echo "$as_me: error: cannot run test program while cross compiling
8177 See \`config.log' for more details." >&2;}
8178    { (exit 1); exit 1; }; }
8179 else
8180   cat >conftest.$ac_ext <<_ACEOF
8181 /* confdefs.h.  */
8182 _ACEOF
8183 cat confdefs.h >>conftest.$ac_ext
8184 cat >>conftest.$ac_ext <<_ACEOF
8185 /* end confdefs.h.  */
8186 /* Exit 0 (true) if wait returns something other than -1,
8187    i.e. the pid of the child, which means that wait was restarted
8188    after getting the signal.  */
8189
8190 #include <sys/types.h>
8191 #include <signal.h>
8192 #if HAVE_UNISTD_H
8193 # include <unistd.h>
8194 #endif
8195 #if HAVE_SYS_WAIT_H
8196 # include <sys/wait.h>
8197 #endif
8198
8199 /* Some platforms explicitly require an extern "C" signal handler
8200    when using C++. */
8201 #ifdef __cplusplus
8202 extern "C" void ucatch (int dummy) { }
8203 #else
8204 void ucatch (dummy) int dummy; { }
8205 #endif
8206
8207 int
8208 main ()
8209 {
8210   int i = fork (), status;
8211
8212   if (i == 0)
8213     {
8214       sleep (3);
8215       kill (getppid (), SIGINT);
8216       sleep (3);
8217       exit (0);
8218     }
8219
8220   signal (SIGINT, ucatch);
8221
8222   status = wait (&i);
8223   if (status == -1)
8224     wait (&i);
8225
8226   exit (status == -1);
8227 }
8228 _ACEOF
8229 rm -f conftest$ac_exeext
8230 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8231   (eval $ac_link) 2>&5
8232   ac_status=$?
8233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8234   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8235   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8236   (eval $ac_try) 2>&5
8237   ac_status=$?
8238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8239   (exit $ac_status); }; }; then
8240   ac_cv_sys_restartable_syscalls=yes
8241 else
8242   echo "$as_me: program exited with status $ac_status" >&5
8243 echo "$as_me: failed program was:" >&5
8244 sed 's/^/| /' conftest.$ac_ext >&5
8245
8246 ( exit $ac_status )
8247 ac_cv_sys_restartable_syscalls=no
8248 fi
8249 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8250 fi
8251 fi
8252 echo "$as_me:$LINENO: result: $ac_cv_sys_restartable_syscalls" >&5
8253 echo "${ECHO_T}$ac_cv_sys_restartable_syscalls" >&6
8254 if test $ac_cv_sys_restartable_syscalls = yes; then
8255
8256 cat >>confdefs.h <<\_ACEOF
8257 #define HAVE_RESTARTABLE_SYSCALLS 1
8258 _ACEOF
8259
8260 fi
8261
8262
8263 echo "$as_me:$LINENO: checking for donuts" >&5
8264 echo $ECHO_N "checking for donuts... $ECHO_C" >&6
8265 echo "$as_me:$LINENO: result: yes" >&5
8266 echo "${ECHO_T}yes" >&6
8267
8268 for ac_prog in gawk mawk nawk awk
8269 do
8270   # Extract the first word of "$ac_prog", so it can be a program name with args.
8271 set dummy $ac_prog; ac_word=$2
8272 echo "$as_me:$LINENO: checking for $ac_word" >&5
8273 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8274 if test "${ac_cv_prog_AWK+set}" = set; then
8275   echo $ECHO_N "(cached) $ECHO_C" >&6
8276 else
8277   if test -n "$AWK"; then
8278   ac_cv_prog_AWK="$AWK" # Let the user override the test.
8279 else
8280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8281 for as_dir in $PATH
8282 do
8283   IFS=$as_save_IFS
8284   test -z "$as_dir" && as_dir=.
8285   for ac_exec_ext in '' $ac_executable_extensions; do
8286   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8287     ac_cv_prog_AWK="$ac_prog"
8288     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8289     break 2
8290   fi
8291 done
8292 done
8293
8294 fi
8295 fi
8296 AWK=$ac_cv_prog_AWK
8297 if test -n "$AWK"; then
8298   echo "$as_me:$LINENO: result: $AWK" >&5
8299 echo "${ECHO_T}$AWK" >&6
8300 else
8301   echo "$as_me:$LINENO: result: no" >&5
8302 echo "${ECHO_T}no" >&6
8303 fi
8304
8305   test -n "$AWK" && break
8306 done
8307
8308 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8309 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
8310 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
8311 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
8312   echo $ECHO_N "(cached) $ECHO_C" >&6
8313 else
8314   cat >conftest.make <<\_ACEOF
8315 all:
8316         @echo 'ac_maketemp="$(MAKE)"'
8317 _ACEOF
8318 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8319 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
8320 if test -n "$ac_maketemp"; then
8321   eval ac_cv_prog_make_${ac_make}_set=yes
8322 else
8323   eval ac_cv_prog_make_${ac_make}_set=no
8324 fi
8325 rm -f conftest.make
8326 fi
8327 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
8328   echo "$as_me:$LINENO: result: yes" >&5
8329 echo "${ECHO_T}yes" >&6
8330   SET_MAKE=
8331 else
8332   echo "$as_me:$LINENO: result: no" >&5
8333 echo "${ECHO_T}no" >&6
8334   SET_MAKE="MAKE=${MAKE-make}"
8335 fi
8336
8337 # Find a good install program.  We prefer a C program (faster),
8338 # so one script is as good as another.  But avoid the broken or
8339 # incompatible versions:
8340 # SysV /etc/install, /usr/sbin/install
8341 # SunOS /usr/etc/install
8342 # IRIX /sbin/install
8343 # AIX /bin/install
8344 # AmigaOS /C/install, which installs bootblocks on floppy discs
8345 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8346 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8347 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8348 # OS/2's system install, which has a completely different semantic
8349 # ./install, which can be erroneously created by make from ./install.sh.
8350 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
8351 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
8352 if test -z "$INSTALL"; then
8353 if test "${ac_cv_path_install+set}" = set; then
8354   echo $ECHO_N "(cached) $ECHO_C" >&6
8355 else
8356   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8357 for as_dir in $PATH
8358 do
8359   IFS=$as_save_IFS
8360   test -z "$as_dir" && as_dir=.
8361   # Account for people who put trailing slashes in PATH elements.
8362 case $as_dir/ in
8363   ./ | .// | /cC/* | \
8364   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
8365   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
8366   /usr/ucb/* ) ;;
8367   *)
8368     # OSF1 and SCO ODT 3.0 have their own names for install.
8369     # Don't use installbsd from OSF since it installs stuff as root
8370     # by default.
8371     for ac_prog in ginstall scoinst install; do
8372       for ac_exec_ext in '' $ac_executable_extensions; do
8373         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
8374           if test $ac_prog = install &&
8375             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8376             # AIX install.  It has an incompatible calling convention.
8377             :
8378           elif test $ac_prog = install &&
8379             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8380             # program-specific install script used by HP pwplus--don't use.
8381             :
8382           else
8383             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
8384             break 3
8385           fi
8386         fi
8387       done
8388     done
8389     ;;
8390 esac
8391 done
8392
8393
8394 fi
8395   if test "${ac_cv_path_install+set}" = set; then
8396     INSTALL=$ac_cv_path_install
8397   else
8398     # As a last resort, use the slow shell script.  We don't cache a
8399     # path for INSTALL within a source directory, because that will
8400     # break other packages using the cache if that directory is
8401     # removed, or if the path is relative.
8402     INSTALL=$ac_install_sh
8403   fi
8404 fi
8405 echo "$as_me:$LINENO: result: $INSTALL" >&5
8406 echo "${ECHO_T}$INSTALL" >&6
8407
8408 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8409 # It thinks the first close brace ends the variable substitution.
8410 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8411
8412 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
8413
8414 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8415
8416 echo "$as_me:$LINENO: checking whether ln -s works" >&5
8417 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
8418 LN_S=$as_ln_s
8419 if test "$LN_S" = "ln -s"; then
8420   echo "$as_me:$LINENO: result: yes" >&5
8421 echo "${ECHO_T}yes" >&6
8422 else
8423   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
8424 echo "${ECHO_T}no, using $LN_S" >&6
8425 fi
8426
8427 for ac_prog in rm
8428 do
8429   # Extract the first word of "$ac_prog", so it can be a program name with args.
8430 set dummy $ac_prog; ac_word=$2
8431 echo "$as_me:$LINENO: checking for $ac_word" >&5
8432 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8433 if test "${ac_cv_path_RMPROG+set}" = set; then
8434   echo $ECHO_N "(cached) $ECHO_C" >&6
8435 else
8436   case $RMPROG in
8437   [\\/]* | ?:[\\/]*)
8438   ac_cv_path_RMPROG="$RMPROG" # Let the user override the test with a path.
8439   ;;
8440   *)
8441   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8442 for as_dir in $PATH
8443 do
8444   IFS=$as_save_IFS
8445   test -z "$as_dir" && as_dir=.
8446   for ac_exec_ext in '' $ac_executable_extensions; do
8447   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8448     ac_cv_path_RMPROG="$as_dir/$ac_word$ac_exec_ext"
8449     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8450     break 2
8451   fi
8452 done
8453 done
8454
8455   ;;
8456 esac
8457 fi
8458 RMPROG=$ac_cv_path_RMPROG
8459
8460 if test -n "$RMPROG"; then
8461   echo "$as_me:$LINENO: result: $RMPROG" >&5
8462 echo "${ECHO_T}$RMPROG" >&6
8463 else
8464   echo "$as_me:$LINENO: result: no" >&5
8465 echo "${ECHO_T}no" >&6
8466 fi
8467
8468   test -n "$RMPROG" && break
8469 done
8470 test -n "$RMPROG" || RMPROG="/bin/rm"
8471
8472 for ac_prog in sh
8473 do
8474   # Extract the first word of "$ac_prog", so it can be a program name with args.
8475 set dummy $ac_prog; ac_word=$2
8476 echo "$as_me:$LINENO: checking for $ac_word" >&5
8477 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8478 if test "${ac_cv_path_SHPROG+set}" = set; then
8479   echo $ECHO_N "(cached) $ECHO_C" >&6
8480 else
8481   case $SHPROG in
8482   [\\/]* | ?:[\\/]*)
8483   ac_cv_path_SHPROG="$SHPROG" # Let the user override the test with a path.
8484   ;;
8485   *)
8486   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8487 for as_dir in $PATH
8488 do
8489   IFS=$as_save_IFS
8490   test -z "$as_dir" && as_dir=.
8491   for ac_exec_ext in '' $ac_executable_extensions; do
8492   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8493     ac_cv_path_SHPROG="$as_dir/$ac_word$ac_exec_ext"
8494     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8495     break 2
8496   fi
8497 done
8498 done
8499
8500   ;;
8501 esac
8502 fi
8503 SHPROG=$ac_cv_path_SHPROG
8504
8505 if test -n "$SHPROG"; then
8506   echo "$as_me:$LINENO: result: $SHPROG" >&5
8507 echo "${ECHO_T}$SHPROG" >&6
8508 else
8509   echo "$as_me:$LINENO: result: no" >&5
8510 echo "${ECHO_T}no" >&6
8511 fi
8512
8513   test -n "$SHPROG" && break
8514 done
8515 test -n "$SHPROG" || SHPROG="/bin/sh"
8516
8517
8518 for ac_prog in flex lex
8519 do
8520   # Extract the first word of "$ac_prog", so it can be a program name with args.
8521 set dummy $ac_prog; ac_word=$2
8522 echo "$as_me:$LINENO: checking for $ac_word" >&5
8523 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8524 if test "${ac_cv_prog_LEX+set}" = set; then
8525   echo $ECHO_N "(cached) $ECHO_C" >&6
8526 else
8527   if test -n "$LEX"; then
8528   ac_cv_prog_LEX="$LEX" # Let the user override the test.
8529 else
8530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8531 for as_dir in $PATH
8532 do
8533   IFS=$as_save_IFS
8534   test -z "$as_dir" && as_dir=.
8535   for ac_exec_ext in '' $ac_executable_extensions; do
8536   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8537     ac_cv_prog_LEX="$ac_prog"
8538     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8539     break 2
8540   fi
8541 done
8542 done
8543
8544 fi
8545 fi
8546 LEX=$ac_cv_prog_LEX
8547 if test -n "$LEX"; then
8548   echo "$as_me:$LINENO: result: $LEX" >&5
8549 echo "${ECHO_T}$LEX" >&6
8550 else
8551   echo "$as_me:$LINENO: result: no" >&5
8552 echo "${ECHO_T}no" >&6
8553 fi
8554
8555   test -n "$LEX" && break
8556 done
8557 test -n "$LEX" || LEX=":"
8558
8559 if test -z "$LEXLIB"
8560 then
8561   echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
8562 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
8563 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
8564   echo $ECHO_N "(cached) $ECHO_C" >&6
8565 else
8566   ac_check_lib_save_LIBS=$LIBS
8567 LIBS="-lfl  $LIBS"
8568 cat >conftest.$ac_ext <<_ACEOF
8569 /* confdefs.h.  */
8570 _ACEOF
8571 cat confdefs.h >>conftest.$ac_ext
8572 cat >>conftest.$ac_ext <<_ACEOF
8573 /* end confdefs.h.  */
8574
8575 /* Override any gcc2 internal prototype to avoid an error.  */
8576 #ifdef __cplusplus
8577 extern "C"
8578 #endif
8579 /* We use char because int might match the return type of a gcc2
8580    builtin and then its argument prototype would still apply.  */
8581 char yywrap ();
8582 int
8583 main ()
8584 {
8585 yywrap ();
8586   ;
8587   return 0;
8588 }
8589 _ACEOF
8590 rm -f conftest.$ac_objext conftest$ac_exeext
8591 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8592   (eval $ac_link) 2>conftest.er1
8593   ac_status=$?
8594   grep -v '^ *+' conftest.er1 >conftest.err
8595   rm -f conftest.er1
8596   cat conftest.err >&5
8597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8598   (exit $ac_status); } &&
8599          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
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); }; } &&
8605          { ac_try='test -s conftest$ac_exeext'
8606   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8607   (eval $ac_try) 2>&5
8608   ac_status=$?
8609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8610   (exit $ac_status); }; }; then
8611   ac_cv_lib_fl_yywrap=yes
8612 else
8613   echo "$as_me: failed program was:" >&5
8614 sed 's/^/| /' conftest.$ac_ext >&5
8615
8616 ac_cv_lib_fl_yywrap=no
8617 fi
8618 rm -f conftest.err conftest.$ac_objext \
8619       conftest$ac_exeext conftest.$ac_ext
8620 LIBS=$ac_check_lib_save_LIBS
8621 fi
8622 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
8623 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
8624 if test $ac_cv_lib_fl_yywrap = yes; then
8625   LEXLIB="-lfl"
8626 else
8627   echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
8628 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
8629 if test "${ac_cv_lib_l_yywrap+set}" = set; then
8630   echo $ECHO_N "(cached) $ECHO_C" >&6
8631 else
8632   ac_check_lib_save_LIBS=$LIBS
8633 LIBS="-ll  $LIBS"
8634 cat >conftest.$ac_ext <<_ACEOF
8635 /* confdefs.h.  */
8636 _ACEOF
8637 cat confdefs.h >>conftest.$ac_ext
8638 cat >>conftest.$ac_ext <<_ACEOF
8639 /* end confdefs.h.  */
8640
8641 /* Override any gcc2 internal prototype to avoid an error.  */
8642 #ifdef __cplusplus
8643 extern "C"
8644 #endif
8645 /* We use char because int might match the return type of a gcc2
8646    builtin and then its argument prototype would still apply.  */
8647 char yywrap ();
8648 int
8649 main ()
8650 {
8651 yywrap ();
8652   ;
8653   return 0;
8654 }
8655 _ACEOF
8656 rm -f conftest.$ac_objext conftest$ac_exeext
8657 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8658   (eval $ac_link) 2>conftest.er1
8659   ac_status=$?
8660   grep -v '^ *+' conftest.er1 >conftest.err
8661   rm -f conftest.er1
8662   cat conftest.err >&5
8663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8664   (exit $ac_status); } &&
8665          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8666   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8667   (eval $ac_try) 2>&5
8668   ac_status=$?
8669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8670   (exit $ac_status); }; } &&
8671          { ac_try='test -s conftest$ac_exeext'
8672   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8673   (eval $ac_try) 2>&5
8674   ac_status=$?
8675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8676   (exit $ac_status); }; }; then
8677   ac_cv_lib_l_yywrap=yes
8678 else
8679   echo "$as_me: failed program was:" >&5
8680 sed 's/^/| /' conftest.$ac_ext >&5
8681
8682 ac_cv_lib_l_yywrap=no
8683 fi
8684 rm -f conftest.err conftest.$ac_objext \
8685       conftest$ac_exeext conftest.$ac_ext
8686 LIBS=$ac_check_lib_save_LIBS
8687 fi
8688 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
8689 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
8690 if test $ac_cv_lib_l_yywrap = yes; then
8691   LEXLIB="-ll"
8692 fi
8693
8694 fi
8695
8696 fi
8697
8698 if test "x$LEX" != "x:"; then
8699   echo "$as_me:$LINENO: checking lex output file root" >&5
8700 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
8701 if test "${ac_cv_prog_lex_root+set}" = set; then
8702   echo $ECHO_N "(cached) $ECHO_C" >&6
8703 else
8704   # The minimal lex program is just a single line: %%.  But some broken lexes
8705 # (Solaris, I think it was) want two %% lines, so accommodate them.
8706 cat >conftest.l <<_ACEOF
8707 %%
8708 %%
8709 _ACEOF
8710 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
8711   (eval $LEX conftest.l) 2>&5
8712   ac_status=$?
8713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8714   (exit $ac_status); }
8715 if test -f lex.yy.c; then
8716   ac_cv_prog_lex_root=lex.yy
8717 elif test -f lexyy.c; then
8718   ac_cv_prog_lex_root=lexyy
8719 else
8720   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
8721 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
8722    { (exit 1); exit 1; }; }
8723 fi
8724 fi
8725 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
8726 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
8727 rm -f conftest.l
8728 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
8729
8730 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
8731 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
8732 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
8733   echo $ECHO_N "(cached) $ECHO_C" >&6
8734 else
8735   # POSIX says lex can declare yytext either as a pointer or an array; the
8736 # default is implementation-dependent. Figure out which it is, since
8737 # not all implementations provide the %pointer and %array declarations.
8738 ac_cv_prog_lex_yytext_pointer=no
8739 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
8740 ac_save_LIBS=$LIBS
8741 LIBS="$LIBS $LEXLIB"
8742 cat >conftest.$ac_ext <<_ACEOF
8743 `cat $LEX_OUTPUT_ROOT.c`
8744 _ACEOF
8745 rm -f conftest.$ac_objext conftest$ac_exeext
8746 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8747   (eval $ac_link) 2>conftest.er1
8748   ac_status=$?
8749   grep -v '^ *+' conftest.er1 >conftest.err
8750   rm -f conftest.er1
8751   cat conftest.err >&5
8752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8753   (exit $ac_status); } &&
8754          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8755   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8756   (eval $ac_try) 2>&5
8757   ac_status=$?
8758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8759   (exit $ac_status); }; } &&
8760          { ac_try='test -s conftest$ac_exeext'
8761   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8762   (eval $ac_try) 2>&5
8763   ac_status=$?
8764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8765   (exit $ac_status); }; }; then
8766   ac_cv_prog_lex_yytext_pointer=yes
8767 else
8768   echo "$as_me: failed program was:" >&5
8769 sed 's/^/| /' conftest.$ac_ext >&5
8770
8771 fi
8772 rm -f conftest.err conftest.$ac_objext \
8773       conftest$ac_exeext conftest.$ac_ext
8774 LIBS=$ac_save_LIBS
8775 rm -f "${LEX_OUTPUT_ROOT}.c"
8776
8777 fi
8778 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
8779 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
8780 if test $ac_cv_prog_lex_yytext_pointer = yes; then
8781
8782 cat >>confdefs.h <<\_ACEOF
8783 #define YYTEXT_POINTER 1
8784 _ACEOF
8785
8786 fi
8787
8788 fi
8789 if test -x "$LEX"
8790 then
8791   { { echo "$as_me:$LINENO: error: Cannot find flex." >&5
8792 echo "$as_me: error: Cannot find flex." >&2;}
8793    { (exit 1); exit 1; }; }
8794 fi
8795
8796 if test -z "$LEXLIB"
8797 then
8798   { { echo "$as_me:$LINENO: error:
8799   Cannot find a library with yywrap() in, but flex was found.
8800   It's possible the compiler you're using ($CC) is incompatible with the
8801   installed library.
8802 See \`config.log' for more details." >&5
8803 echo "$as_me: error:
8804   Cannot find a library with yywrap() in, but flex was found.
8805   It's possible the compiler you're using ($CC) is incompatible with the
8806   installed library.
8807 See \`config.log' for more details." >&2;}
8808    { (exit 1); exit 1; }; }
8809 fi
8810
8811 LIBS="$LEXLIB $LIBS"
8812
8813 for ac_prog in 'bison -y' byacc
8814 do
8815   # Extract the first word of "$ac_prog", so it can be a program name with args.
8816 set dummy $ac_prog; ac_word=$2
8817 echo "$as_me:$LINENO: checking for $ac_word" >&5
8818 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8819 if test "${ac_cv_prog_YACC+set}" = set; then
8820   echo $ECHO_N "(cached) $ECHO_C" >&6
8821 else
8822   if test -n "$YACC"; then
8823   ac_cv_prog_YACC="$YACC" # Let the user override the test.
8824 else
8825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8826 for as_dir in $PATH
8827 do
8828   IFS=$as_save_IFS
8829   test -z "$as_dir" && as_dir=.
8830   for ac_exec_ext in '' $ac_executable_extensions; do
8831   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8832     ac_cv_prog_YACC="$ac_prog"
8833     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8834     break 2
8835   fi
8836 done
8837 done
8838
8839 fi
8840 fi
8841 YACC=$ac_cv_prog_YACC
8842 if test -n "$YACC"; then
8843   echo "$as_me:$LINENO: result: $YACC" >&5
8844 echo "${ECHO_T}$YACC" >&6
8845 else
8846   echo "$as_me:$LINENO: result: no" >&5
8847 echo "${ECHO_T}no" >&6
8848 fi
8849
8850   test -n "$YACC" && break
8851 done
8852 test -n "$YACC" || YACC="yacc"
8853
8854 if test -z "$YACC"
8855 then
8856   { { echo "$as_me:$LINENO: error: Cannot find yacc." >&5
8857 echo "$as_me: error: Cannot find yacc." >&2;}
8858    { (exit 1); exit 1; }; }
8859 fi
8860
8861
8862 echo "$as_me:$LINENO: checking for posix non-blocking" >&5
8863 echo $ECHO_N "checking for posix non-blocking... $ECHO_C" >&6
8864 if test "${unet_cv_sys_nonblocking_posix+set}" = set; then
8865   echo $ECHO_N "(cached) $ECHO_C" >&6
8866 else
8867   if test "$cross_compiling" = yes; then
8868   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
8869 See \`config.log' for more details." >&5
8870 echo "$as_me: error: cannot run test program while cross compiling
8871 See \`config.log' for more details." >&2;}
8872    { (exit 1); exit 1; }; }
8873 else
8874   cat >conftest.$ac_ext <<_ACEOF
8875 /* confdefs.h.  */
8876 _ACEOF
8877 cat confdefs.h >>conftest.$ac_ext
8878 cat >>conftest.$ac_ext <<_ACEOF
8879 /* end confdefs.h.  */
8880 #include <sys/types.h>
8881 #include <sys/socket.h>
8882 #include <fcntl.h>
8883 #include <sys/ioctl.h>
8884 #include <sys/file.h>
8885 #include <signal.h>
8886 $ac_cv_type_signal alarmed() { exit(1); }
8887 int main(void)
8888 {
8889   char b[12];
8890   struct sockaddr x;
8891   size_t l = sizeof(x);
8892   int f = socket(AF_INET, SOCK_DGRAM, 0);
8893   if (f >= 0 && !(fcntl(f, F_SETFL, O_NONBLOCK)))
8894   {
8895     signal(SIGALRM, alarmed);
8896     alarm(2);
8897     recvfrom(f, b, 12, 0, &x, &l);
8898     alarm(0);
8899     exit(0);
8900   }
8901   exit(1);
8902 }
8903 _ACEOF
8904 rm -f conftest$ac_exeext
8905 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8906   (eval $ac_link) 2>&5
8907   ac_status=$?
8908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8909   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8910   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8911   (eval $ac_try) 2>&5
8912   ac_status=$?
8913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8914   (exit $ac_status); }; }; then
8915   unet_cv_sys_nonblocking_posix=yes
8916 else
8917   echo "$as_me: program exited with status $ac_status" >&5
8918 echo "$as_me: failed program was:" >&5
8919 sed 's/^/| /' conftest.$ac_ext >&5
8920
8921 ( exit $ac_status )
8922 unet_cv_sys_nonblocking_posix=no
8923 fi
8924 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8925 fi
8926 fi
8927 echo "$as_me:$LINENO: result: $unet_cv_sys_nonblocking_posix" >&5
8928 echo "${ECHO_T}$unet_cv_sys_nonblocking_posix" >&6
8929 if test $unet_cv_sys_nonblocking_posix = yes; then
8930
8931 cat >>confdefs.h <<\_ACEOF
8932 #define NBLOCK_POSIX
8933 _ACEOF
8934
8935 else
8936 echo "$as_me:$LINENO: checking for bsd non-blocking" >&5
8937 echo $ECHO_N "checking for bsd non-blocking... $ECHO_C" >&6
8938 if test "${unet_cv_sys_nonblocking_bsd+set}" = set; then
8939   echo $ECHO_N "(cached) $ECHO_C" >&6
8940 else
8941   if test "$cross_compiling" = yes; then
8942   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
8943 See \`config.log' for more details." >&5
8944 echo "$as_me: error: cannot run test program while cross compiling
8945 See \`config.log' for more details." >&2;}
8946    { (exit 1); exit 1; }; }
8947 else
8948   cat >conftest.$ac_ext <<_ACEOF
8949 /* confdefs.h.  */
8950 _ACEOF
8951 cat confdefs.h >>conftest.$ac_ext
8952 cat >>conftest.$ac_ext <<_ACEOF
8953 /* end confdefs.h.  */
8954 #include <sys/types.h>
8955 #include <sys/socket.h>
8956 #include <fcntl.h>
8957 #include <sys/ioctl.h>
8958 #include <sys/file.h>
8959 #include <signal.h>
8960 $ac_cv_type_signal alarmed() { exit(1); }
8961 int main(void)
8962 {
8963   char b[12];
8964   struct sockaddr x;
8965   size_t l = sizeof(x);
8966   int f = socket(AF_INET, SOCK_DGRAM, 0);
8967   if (f >= 0 && !(fcntl(f, F_SETFL, O_NDELAY)))
8968   {
8969     signal(SIGALRM, alarmed);
8970     alarm(2);
8971     recvfrom(f, b, 12, 0, &x, &l);
8972     alarm(0);
8973     exit(0);
8974   }
8975   exit(1);
8976 }
8977 _ACEOF
8978 rm -f conftest$ac_exeext
8979 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8980   (eval $ac_link) 2>&5
8981   ac_status=$?
8982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8983   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8984   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8985   (eval $ac_try) 2>&5
8986   ac_status=$?
8987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8988   (exit $ac_status); }; }; then
8989   unet_cv_sys_nonblocking_bsd=yes
8990 else
8991   echo "$as_me: program exited with status $ac_status" >&5
8992 echo "$as_me: failed program was:" >&5
8993 sed 's/^/| /' conftest.$ac_ext >&5
8994
8995 ( exit $ac_status )
8996 unet_cv_sys_nonblocking_bsd=no
8997 fi
8998 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8999 fi
9000 fi
9001 echo "$as_me:$LINENO: result: $unet_cv_sys_nonblocking_bsd" >&5
9002 echo "${ECHO_T}$unet_cv_sys_nonblocking_bsd" >&6
9003 if test $unet_cv_sys_nonblocking_bsd = yes; then
9004
9005 cat >>confdefs.h <<\_ACEOF
9006 #define NBLOCK_BSD
9007 _ACEOF
9008
9009 else
9010
9011 cat >>confdefs.h <<\_ACEOF
9012 #define NBLOCK_SYSV
9013 _ACEOF
9014
9015 fi
9016 fi
9017 echo "$as_me:$LINENO: checking for posix signals" >&5
9018 echo $ECHO_N "checking for posix signals... $ECHO_C" >&6
9019 if test "${unet_cv_sys_signal_posix+set}" = set; then
9020   echo $ECHO_N "(cached) $ECHO_C" >&6
9021 else
9022   cat >conftest.$ac_ext <<_ACEOF
9023 /* confdefs.h.  */
9024 _ACEOF
9025 cat confdefs.h >>conftest.$ac_ext
9026 cat >>conftest.$ac_ext <<_ACEOF
9027 /* end confdefs.h.  */
9028 #include <signal.h>
9029 int
9030 main ()
9031 {
9032 sigaction(SIGTERM, (struct sigaction *)0L, (struct sigaction *)0L)
9033   ;
9034   return 0;
9035 }
9036 _ACEOF
9037 rm -f conftest.$ac_objext
9038 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9039   (eval $ac_compile) 2>conftest.er1
9040   ac_status=$?
9041   grep -v '^ *+' conftest.er1 >conftest.err
9042   rm -f conftest.er1
9043   cat conftest.err >&5
9044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9045   (exit $ac_status); } &&
9046          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9047   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9048   (eval $ac_try) 2>&5
9049   ac_status=$?
9050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9051   (exit $ac_status); }; } &&
9052          { ac_try='test -s conftest.$ac_objext'
9053   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9054   (eval $ac_try) 2>&5
9055   ac_status=$?
9056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9057   (exit $ac_status); }; }; then
9058   unet_cv_sys_signal_posix=yes
9059 else
9060   echo "$as_me: failed program was:" >&5
9061 sed 's/^/| /' conftest.$ac_ext >&5
9062
9063 unet_cv_sys_signal_posix=no
9064 fi
9065 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9066 fi
9067 echo "$as_me:$LINENO: result: $unet_cv_sys_signal_posix" >&5
9068 echo "${ECHO_T}$unet_cv_sys_signal_posix" >&6
9069 if test $unet_cv_sys_signal_posix = yes; then
9070
9071 cat >>confdefs.h <<\_ACEOF
9072 #define POSIX_SIGNALS
9073 _ACEOF
9074
9075 else
9076 echo "$as_me:$LINENO: checking for bsd reliable signals" >&5
9077 echo $ECHO_N "checking for bsd reliable signals... $ECHO_C" >&6
9078 if test "${unet_cv_sys_signal_bsd+set}" = set; then
9079   echo $ECHO_N "(cached) $ECHO_C" >&6
9080 else
9081   if test "$cross_compiling" = yes; then
9082   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9083 See \`config.log' for more details." >&5
9084 echo "$as_me: error: cannot run test program while cross compiling
9085 See \`config.log' for more details." >&2;}
9086    { (exit 1); exit 1; }; }
9087 else
9088   cat >conftest.$ac_ext <<_ACEOF
9089 /* confdefs.h.  */
9090 _ACEOF
9091 cat confdefs.h >>conftest.$ac_ext
9092 cat >>conftest.$ac_ext <<_ACEOF
9093 /* end confdefs.h.  */
9094 #include <signal.h>
9095 int calls = 0;
9096 $ac_cv_type_signal handler()
9097 {
9098   if (calls) return;
9099   calls++;
9100   kill(getpid(), SIGTERM);
9101   sleep(1);
9102 }
9103 int main(void)
9104 {
9105   signal(SIGTERM, handler);
9106   kill(getpid(), SIGTERM);
9107   exit (0);
9108 }
9109 _ACEOF
9110 rm -f conftest$ac_exeext
9111 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9112   (eval $ac_link) 2>&5
9113   ac_status=$?
9114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9115   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9116   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9117   (eval $ac_try) 2>&5
9118   ac_status=$?
9119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9120   (exit $ac_status); }; }; then
9121   unet_cv_sys_signal_bsd=yes
9122 else
9123   echo "$as_me: program exited with status $ac_status" >&5
9124 echo "$as_me: failed program was:" >&5
9125 sed 's/^/| /' conftest.$ac_ext >&5
9126
9127 ( exit $ac_status )
9128 unet_cv_sys_signal_bsd=no
9129 fi
9130 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9131 fi
9132 fi
9133 echo "$as_me:$LINENO: result: $unet_cv_sys_signal_bsd" >&5
9134 echo "${ECHO_T}$unet_cv_sys_signal_bsd" >&6
9135 if test $unet_cv_sys_signal_bsd = yes; then
9136
9137 cat >>confdefs.h <<\_ACEOF
9138 #define BSD_RELIABLE_SIGNALS
9139 _ACEOF
9140
9141 else
9142
9143 cat >>confdefs.h <<\_ACEOF
9144 #define SYSV_UNRELIABLE_SIGNALS
9145 _ACEOF
9146
9147 fi
9148 fi
9149
9150 echo "$as_me:$LINENO: checking if the compiler understands -pipe" >&5
9151 echo $ECHO_N "checking if the compiler understands -pipe... $ECHO_C" >&6
9152 unet_cv_pipe_flags="$ac_cv_c_compiler_gnu"
9153 if test "$ac_cv_c_compiler_gnu" = no; then
9154   OLDCFLAGS="$CFLAGS"
9155   CFLAGS="$CFLAGS -pipe"
9156   cat >conftest.$ac_ext <<_ACEOF
9157 /* confdefs.h.  */
9158 _ACEOF
9159 cat confdefs.h >>conftest.$ac_ext
9160 cat >>conftest.$ac_ext <<_ACEOF
9161 /* end confdefs.h.  */
9162
9163 int
9164 main ()
9165 {
9166
9167   ;
9168   return 0;
9169 }
9170 _ACEOF
9171 rm -f conftest.$ac_objext
9172 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9173   (eval $ac_compile) 2>conftest.er1
9174   ac_status=$?
9175   grep -v '^ *+' conftest.er1 >conftest.err
9176   rm -f conftest.er1
9177   cat conftest.err >&5
9178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9179   (exit $ac_status); } &&
9180          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9181   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9182   (eval $ac_try) 2>&5
9183   ac_status=$?
9184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9185   (exit $ac_status); }; } &&
9186          { ac_try='test -s conftest.$ac_objext'
9187   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9188   (eval $ac_try) 2>&5
9189   ac_status=$?
9190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9191   (exit $ac_status); }; }; then
9192   unet_cv_pipe_flags=yes
9193 else
9194   echo "$as_me: failed program was:" >&5
9195 sed 's/^/| /' conftest.$ac_ext >&5
9196
9197 fi
9198 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9199   CFLAGS="$OLDCFLAGS"
9200 fi
9201 echo "$as_me:$LINENO: result: $unet_cv_pipe_flags" >&5
9202 echo "${ECHO_T}$unet_cv_pipe_flags" >&6
9203 if test "$unet_cv_pipe_flags" = yes ; then
9204   x=`echo $CFLAGS | grep 'pipe' 2>/dev/null`
9205   if test "$x" = "" ; then
9206     CFLAGS="$CFLAGS -pipe"
9207   fi
9208 fi
9209
9210
9211 echo "$as_me:$LINENO: checking for OS-dependent information" >&5
9212 echo $ECHO_N "checking for OS-dependent information... $ECHO_C" >&6
9213 case "$host" in
9214     *-linux*)
9215         echo "$as_me:$LINENO: result: Linux ($host) found." >&5
9216 echo "${ECHO_T}Linux ($host) found." >&6
9217         unet_poll_syscall=yes
9218         ;;
9219
9220     *-solaris*)
9221         echo "$as_me:$LINENO: result: Solaris ($host) found." >&5
9222 echo "${ECHO_T}Solaris ($host) found." >&6
9223         if test x"$ac_cv_header_poll_h" = xyes; then
9224             unet_poll_syscall=yes
9225         else
9226             unet_poll_syscall=no
9227         fi
9228         ;;
9229
9230     *-sunos*)
9231         echo "$as_me:$LINENO: result: Solaris ($host) found." >&5
9232 echo "${ECHO_T}Solaris ($host) found." >&6
9233         unet_poll_syscall=no
9234         ;;
9235
9236     *-openbsd*)
9237         echo "$as_me:$LINENO: result: OpenBSD ($host) found." >&5
9238 echo "${ECHO_T}OpenBSD ($host) found." >&6
9239         if test x"$ac_cv_header_poll_h" = xyes; then
9240             unet_poll_syscall=yes
9241         else
9242             unet_poll_syscall=no
9243         fi
9244         ;;
9245
9246     *-*bsd*)
9247         echo "$as_me:$LINENO: result: Generic BSD ($host) found." >&5
9248 echo "${ECHO_T}Generic BSD ($host) found." >&6
9249         if test x"$ac_cv_header_poll_h" = xyes; then
9250             unet_poll_syscall=yes
9251         else
9252             unet_poll_syscall=no
9253         fi
9254         ;;
9255
9256     *-darwin*)
9257         echo "$as_me:$LINENO: result: Darwin (Mac OS X) ($host) found." >&5
9258 echo "${ECHO_T}Darwin (Mac OS X) ($host) found." >&6
9259         unet_poll_syscall=no
9260         ;;
9261
9262     *)
9263         echo "$as_me:$LINENO: result: Unknown system type $host found." >&5
9264 echo "${ECHO_T}Unknown system type $host found." >&6
9265         { echo "$as_me:$LINENO: WARNING: Unknown OS type; using generic routines." >&5
9266 echo "$as_me: WARNING: Unknown OS type; using generic routines." >&2;}
9267         unet_poll_syscall=no
9268         ;;
9269 esac
9270
9271 echo "$as_me:$LINENO: checking whether to enable use of poll()" >&5
9272 echo $ECHO_N "checking whether to enable use of poll()... $ECHO_C" >&6
9273 # Check whether --enable-poll or --disable-poll was given.
9274 if test "${enable_poll+set}" = set; then
9275   enableval="$enable_poll"
9276   unet_cv_enable_poll=$enable_poll
9277 else
9278   if test "${unet_cv_enable_poll+set}" = set; then
9279   echo $ECHO_N "(cached) $ECHO_C" >&6
9280 else
9281   unet_cv_enable_poll=$unet_poll_syscall
9282 fi
9283
9284 fi;
9285
9286 # Force poll to be disabled if there is no poll.h
9287 if test x"$ac_cv_header_poll_h" != xyes; then
9288     unet_cv_enable_poll=no
9289 fi
9290
9291 echo "$as_me:$LINENO: result: $unet_cv_enable_poll" >&5
9292 echo "${ECHO_T}$unet_cv_enable_poll" >&6
9293
9294 if test x"$unet_cv_enable_poll" = xyes; then
9295
9296 cat >>confdefs.h <<\_ACEOF
9297 #define USE_POLL
9298 _ACEOF
9299
9300     ENGINE_C=engine_poll.c
9301 else
9302     ENGINE_C=engine_select.c
9303 fi
9304
9305
9306 echo "$as_me:$LINENO: checking whether to enable debug mode" >&5
9307 echo $ECHO_N "checking whether to enable debug mode... $ECHO_C" >&6
9308 # Check whether --enable-debug or --disable-debug was given.
9309 if test "${enable_debug+set}" = set; then
9310   enableval="$enable_debug"
9311   unet_cv_enable_debug=$enable_debug
9312 else
9313   if test "${unet_cv_enable_debug+set}" = set; then
9314   echo $ECHO_N "(cached) $ECHO_C" >&6
9315 else
9316   unet_cv_enable_debug=no
9317 fi
9318
9319 fi;
9320 echo "$as_me:$LINENO: result: $unet_cv_enable_debug" >&5
9321 echo "${ECHO_T}$unet_cv_enable_debug" >&6
9322
9323 if test x"$unet_cv_enable_debug" = xyes; then
9324
9325 cat >>confdefs.h <<\_ACEOF
9326 #define DEBUGMODE
9327 _ACEOF
9328
9329 fi
9330
9331 echo "$as_me:$LINENO: checking whether to enable leak detection" >&5
9332 echo $ECHO_N "checking whether to enable leak detection... $ECHO_C" >&6
9333
9334 # Check whether --with-leak-detect or --without-leak-detect was given.
9335 if test "${with_leak_detect+set}" = set; then
9336   withval="$with_leak_detect"
9337   unet_cv_with_leak_detect=$with_leak_detect
9338 else
9339   if test "${unet_cv_with_leak_detect+set}" = set; then
9340   echo $ECHO_N "(cached) $ECHO_C" >&6
9341 else
9342   unet_cv_with_leak_detect=no
9343 fi
9344
9345 fi;
9346 echo "$as_me:$LINENO: result: $unet_cv_enable_leak_detect" >&5
9347 echo "${ECHO_T}$unet_cv_enable_leak_detect" >&6
9348
9349 if test x"$unet_cv_with_leak_detect" != xno; then
9350     LIBS="-lgc $LIBS"
9351     CFLAGS="-DMDEBUG $CFLAGS"
9352     if test x"$unet_cv_with_leak_detect" != xyes; then
9353        LIBS="-L$unet_cv_with_leak_detect $LIBS"
9354     fi
9355 fi
9356
9357
9358 # Check whether --with-ipv6 or --without-ipv6 was given.
9359 if test "${with_ipv6+set}" = set; then
9360   withval="$with_ipv6"
9361   ac_cv_use_ipv6=$withval
9362 else
9363   ac_cv_use_ipv6=$unet_have_sockaddr_in6
9364 fi;
9365 echo "$as_me:$LINENO: checking whether to use IPv6" >&5
9366 echo $ECHO_N "checking whether to use IPv6... $ECHO_C" >&6
9367 if test "${ac_cv_use_ipv6+set}" = set; then
9368   echo $ECHO_N "(cached) $ECHO_C" >&6
9369 else
9370   ac_cv_use_ipv6=no
9371 fi
9372 echo "$as_me:$LINENO: result: $ac_cv_use_ipv6" >&5
9373 echo "${ECHO_T}$ac_cv_use_ipv6" >&6
9374 if test x"$ac_cv_use_ipv6" != "xno" ; then
9375
9376 cat >>confdefs.h <<\_ACEOF
9377 #define IPV6
9378 _ACEOF
9379
9380 fi
9381
9382 echo "$as_me:$LINENO: checking whether to enable asserts" >&5
9383 echo $ECHO_N "checking whether to enable asserts... $ECHO_C" >&6
9384 # Check whether --enable-asserts or --disable-asserts was given.
9385 if test "${enable_asserts+set}" = set; then
9386   enableval="$enable_asserts"
9387   unet_cv_enable_asserts=$enable_asserts
9388 else
9389   if test "${unet_cv_enable_asserts+set}" = set; then
9390   echo $ECHO_N "(cached) $ECHO_C" >&6
9391 else
9392   unet_cv_enable_asserts=yes
9393 fi
9394
9395 fi;
9396 echo "$as_me:$LINENO: result: $unet_cv_enable_asserts" >&5
9397 echo "${ECHO_T}$unet_cv_enable_asserts" >&6
9398
9399 if test x"$unet_cv_enable_asserts" = xno; then
9400
9401 cat >>confdefs.h <<\_ACEOF
9402 #define NDEBUG
9403 _ACEOF
9404
9405 fi
9406
9407 echo "$as_me:$LINENO: checking whether to enable debugging symbols" >&5
9408 echo $ECHO_N "checking whether to enable debugging symbols... $ECHO_C" >&6
9409 # Check whether --enable-symbols or --disable-symbols was given.
9410 if test "${enable_symbols+set}" = set; then
9411   enableval="$enable_symbols"
9412   unet_cv_enable_symbols=$enable_symbols
9413 else
9414   if test "${unet_cv_enable_symbols+set}" = set; then
9415   echo $ECHO_N "(cached) $ECHO_C" >&6
9416 else
9417   unet_cv_enable_symbols=yes
9418 fi
9419
9420 fi;
9421 echo "$as_me:$LINENO: result: $unet_cv_enable_symbols" >&5
9422 echo "${ECHO_T}$unet_cv_enable_symbols" >&6
9423
9424 if test x"$unet_cv_enable_symbols" = xyes; then
9425     CFLAGS="-g $CFLAGS"
9426 fi
9427
9428 echo "$as_me:$LINENO: checking whether to enable profiling support (gprof)" >&5
9429 echo $ECHO_N "checking whether to enable profiling support (gprof)... $ECHO_C" >&6
9430 # Check whether --enable-profile or --disable-profile was given.
9431 if test "${enable_profile+set}" = set; then
9432   enableval="$enable_profile"
9433   unet_cv_enable_profile=$enable_profile
9434 else
9435   if test "${unet_cv_enable_profile+set}" = set; then
9436   echo $ECHO_N "(cached) $ECHO_C" >&6
9437 else
9438   unet_cv_enable_profile=no
9439 fi
9440
9441 fi;
9442 echo "$as_me:$LINENO: result: $unet_cv_enable_profile" >&5
9443 echo "${ECHO_T}$unet_cv_enable_profile" >&6
9444
9445 if test x"$unet_cv_enable_profile" = xyes; then
9446     CFLAGS="-pg $CFLAGS"
9447 fi
9448
9449 echo "$as_me:$LINENO: checking whether to enable pedantic compiler warnings" >&5
9450 echo $ECHO_N "checking whether to enable pedantic compiler warnings... $ECHO_C" >&6
9451 # Check whether --enable-pedantic or --disable-pedantic was given.
9452 if test "${enable_pedantic+set}" = set; then
9453   enableval="$enable_pedantic"
9454   unet_cv_enable_pedantic=$enable_pedantic
9455 else
9456   if test "${unet_cv_enable_pedantic+set}" = set; then
9457   echo $ECHO_N "(cached) $ECHO_C" >&6
9458 else
9459   unet_cv_enable_pedantic=no
9460 fi
9461
9462 fi;
9463 echo "$as_me:$LINENO: result: $unet_cv_enable_pedantic" >&5
9464 echo "${ECHO_T}$unet_cv_enable_pedantic" >&6
9465
9466 if test x"$unet_cv_enable_pedantic" = xyes; then
9467     CFLAGS="-pedantic $CFLAGS"
9468 fi
9469
9470 echo "$as_me:$LINENO: checking whether to enable compiler warnings" >&5
9471 echo $ECHO_N "checking whether to enable compiler warnings... $ECHO_C" >&6
9472 # Check whether --enable-warnings or --disable-warnings was given.
9473 if test "${enable_warnings+set}" = set; then
9474   enableval="$enable_warnings"
9475   unet_cv_enable_warnings=$enable_warnings
9476 else
9477   if test "${unet_cv_enable_warnings+set}" = set; then
9478   echo $ECHO_N "(cached) $ECHO_C" >&6
9479 else
9480   unet_cv_enable_warnings=no
9481 fi
9482
9483 fi;
9484 echo "$as_me:$LINENO: result: $unet_cv_enable_warnings" >&5
9485 echo "${ECHO_T}$unet_cv_enable_warnings" >&6
9486
9487 if test x"$unet_cv_enable_warnings" = xyes; then
9488     CFLAGS="-Wall $CFLAGS"
9489 fi
9490
9491 echo "$as_me:$LINENO: checking whether to enable inlining for a few critical functions" >&5
9492 echo $ECHO_N "checking whether to enable inlining for a few critical functions... $ECHO_C" >&6
9493 # Check whether --enable-inlines or --disable-inlines was given.
9494 if test "${enable_inlines+set}" = set; then
9495   enableval="$enable_inlines"
9496   unet_cv_enable_inlines=$enable_inlines
9497 else
9498   if test "${unet_cv_enable_inlines+set}" = set; then
9499   echo $ECHO_N "(cached) $ECHO_C" >&6
9500 else
9501   unet_cv_enable_inlines=yes
9502 fi
9503
9504 fi;
9505 echo "$as_me:$LINENO: result: $unet_cv_enable_inlines" >&5
9506 echo "${ECHO_T}$unet_cv_enable_inlines" >&6
9507
9508 if test x"$unet_cv_enable_inlines" = xyes; then
9509
9510 cat >>confdefs.h <<\_ACEOF
9511 #define FORCEINLINE
9512 _ACEOF
9513
9514 fi
9515
9516 echo "$as_me:$LINENO: checking whether to enable the /dev/poll event engine" >&5
9517 echo $ECHO_N "checking whether to enable the /dev/poll event engine... $ECHO_C" >&6
9518 # Check whether --enable-devpoll or --disable-devpoll was given.
9519 if test "${enable_devpoll+set}" = set; then
9520   enableval="$enable_devpoll"
9521   unet_cv_enable_devpoll=$enable_devpoll
9522 else
9523   if test "${unet_cv_enable_devpoll+set}" = set; then
9524   echo $ECHO_N "(cached) $ECHO_C" >&6
9525 else
9526   unet_cv_enable_devpoll=yes
9527 fi
9528
9529 fi;
9530
9531 if test x"$ac_cv_header_sys_devpoll_h" = xno; then
9532     unet_cv_enable_devpoll=no
9533 fi
9534
9535 echo "$as_me:$LINENO: result: $unet_cv_enable_devpoll" >&5
9536 echo "${ECHO_T}$unet_cv_enable_devpoll" >&6
9537
9538 if test x"$unet_cv_enable_devpoll" != xno; then
9539
9540 cat >>confdefs.h <<\_ACEOF
9541 #define USE_DEVPOLL
9542 _ACEOF
9543
9544     ENGINE_C="engine_devpoll.c $ENGINE_C"
9545 fi
9546
9547 echo "$as_me:$LINENO: checking whether to enable the kqueue event engine" >&5
9548 echo $ECHO_N "checking whether to enable the kqueue event engine... $ECHO_C" >&6
9549 # Check whether --enable-kqueue or --disable-kqueue was given.
9550 if test "${enable_kqueue+set}" = set; then
9551   enableval="$enable_kqueue"
9552   unet_cv_enable_kqueue=$enable_kqueue
9553 else
9554   if test "${unet_cv_enable_kqueue+set}" = set; then
9555   echo $ECHO_N "(cached) $ECHO_C" >&6
9556 else
9557   unet_cv_enable_kqueue=yes
9558 fi
9559
9560 fi;
9561
9562 if test x"$ac_cv_header_sys_event_h" = xno -o x"$ac_cv_func_kqueue" = xno; then
9563     unet_cv_enable_kqueue=no
9564 fi
9565
9566 echo "$as_me:$LINENO: result: $unet_cv_enable_kqueue" >&5
9567 echo "${ECHO_T}$unet_cv_enable_kqueue" >&6
9568
9569 if test x"$unet_cv_enable_kqueue" != xno; then
9570
9571 cat >>confdefs.h <<\_ACEOF
9572 #define USE_KQUEUE
9573 _ACEOF
9574
9575     ENGINE_C="engine_kqueue.c $ENGINE_C"
9576 fi
9577
9578 echo "$as_me:$LINENO: checking whether to enable the epoll event engine" >&5
9579 echo $ECHO_N "checking whether to enable the epoll event engine... $ECHO_C" >&6
9580 # Check whether --enable-epoll or --disable-epoll was given.
9581 if test "${enable_epoll+set}" = set; then
9582   enableval="$enable_epoll"
9583   unet_cv_enable_epoll=$enable_epoll
9584 else
9585   if test "${unet_cv_enable_epoll+set}" = set; then
9586   echo $ECHO_N "(cached) $ECHO_C" >&6
9587 else
9588   unet_cv_enable_epoll=yes
9589 fi
9590
9591 fi;
9592
9593 if test x"$ac_cv_header_sys_epoll_h" = xno -o x"$ac_cv_func_epoll" = xno; then
9594     unet_cv_enable_epoll=no
9595 fi
9596
9597 echo "$as_me:$LINENO: result: $unet_cv_enable_epoll" >&5
9598 echo "${ECHO_T}$unet_cv_enable_epoll" >&6
9599
9600 if test x"$unet_cv_enable_epoll" != xno; then
9601     echo "$as_me:$LINENO: checking whether epoll functions are properly defined" >&5
9602 echo $ECHO_N "checking whether epoll functions are properly defined... $ECHO_C" >&6
9603     cat >conftest.$ac_ext <<_ACEOF
9604 /* confdefs.h.  */
9605 _ACEOF
9606 cat confdefs.h >>conftest.$ac_ext
9607 cat >>conftest.$ac_ext <<_ACEOF
9608 /* end confdefs.h.  */
9609 #include <sys/epoll.h>
9610 int
9611 main ()
9612 {
9613 epoll_create(10);
9614   ;
9615   return 0;
9616 }
9617 _ACEOF
9618 rm -f conftest.$ac_objext conftest$ac_exeext
9619 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9620   (eval $ac_link) 2>conftest.er1
9621   ac_status=$?
9622   grep -v '^ *+' conftest.er1 >conftest.err
9623   rm -f conftest.er1
9624   cat conftest.err >&5
9625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9626   (exit $ac_status); } &&
9627          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9628   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9629   (eval $ac_try) 2>&5
9630   ac_status=$?
9631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9632   (exit $ac_status); }; } &&
9633          { ac_try='test -s conftest$ac_exeext'
9634   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9635   (eval $ac_try) 2>&5
9636   ac_status=$?
9637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9638   (exit $ac_status); }; }; then
9639   echo "$as_me:$LINENO: result: yes" >&5
9640 echo "${ECHO_T}yes" >&6
9641 else
9642   echo "$as_me: failed program was:" >&5
9643 sed 's/^/| /' conftest.$ac_ext >&5
9644
9645 echo "$as_me:$LINENO: result: no" >&5
9646 echo "${ECHO_T}no" >&6
9647
9648 cat >>confdefs.h <<\_ACEOF
9649 #define EPOLL_NEED_BODY
9650 _ACEOF
9651
9652 fi
9653 rm -f conftest.err conftest.$ac_objext \
9654       conftest$ac_exeext conftest.$ac_ext
9655
9656 cat >>confdefs.h <<\_ACEOF
9657 #define USE_EPOLL
9658 _ACEOF
9659
9660     ENGINE_C="engine_epoll.c $ENGINE_C"
9661 fi
9662
9663 echo "$as_me:$LINENO: checking for va_copy" >&5
9664 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
9665 if test "${unet_cv_c_va_copy+set}" = set; then
9666   echo $ECHO_N "(cached) $ECHO_C" >&6
9667 else
9668   cat >conftest.$ac_ext <<_ACEOF
9669 /* confdefs.h.  */
9670 _ACEOF
9671 cat confdefs.h >>conftest.$ac_ext
9672 cat >>conftest.$ac_ext <<_ACEOF
9673 /* end confdefs.h.  */
9674 #include <stdarg.h>
9675 int
9676 main ()
9677 {
9678 va_list ap1, ap2; va_copy(ap1, ap2);
9679   ;
9680   return 0;
9681 }
9682 _ACEOF
9683 rm -f conftest.$ac_objext conftest$ac_exeext
9684 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9685   (eval $ac_link) 2>conftest.er1
9686   ac_status=$?
9687   grep -v '^ *+' conftest.er1 >conftest.err
9688   rm -f conftest.er1
9689   cat conftest.err >&5
9690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9691   (exit $ac_status); } &&
9692          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9693   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9694   (eval $ac_try) 2>&5
9695   ac_status=$?
9696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9697   (exit $ac_status); }; } &&
9698          { ac_try='test -s conftest$ac_exeext'
9699   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9700   (eval $ac_try) 2>&5
9701   ac_status=$?
9702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9703   (exit $ac_status); }; }; then
9704   unet_cv_c_va_copy="yes"
9705 else
9706   echo "$as_me: failed program was:" >&5
9707 sed 's/^/| /' conftest.$ac_ext >&5
9708
9709 unet_cv_c_va_copy="no"
9710
9711 fi
9712 rm -f conftest.err conftest.$ac_objext \
9713       conftest$ac_exeext conftest.$ac_ext
9714 fi
9715 echo "$as_me:$LINENO: result: $unet_cv_c_va_copy" >&5
9716 echo "${ECHO_T}$unet_cv_c_va_copy" >&6
9717 if test "$unet_cv_c_va_copy" = "yes" ; then
9718
9719 cat >>confdefs.h <<\_ACEOF
9720 #define HAVE_VA_COPY 1
9721 _ACEOF
9722
9723 fi
9724
9725 echo "$as_me:$LINENO: checking for __va_copy" >&5
9726 echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6
9727 if test "${unet_cv_c___va_copy+set}" = set; then
9728   echo $ECHO_N "(cached) $ECHO_C" >&6
9729 else
9730   cat >conftest.$ac_ext <<_ACEOF
9731 /* confdefs.h.  */
9732 _ACEOF
9733 cat confdefs.h >>conftest.$ac_ext
9734 cat >>conftest.$ac_ext <<_ACEOF
9735 /* end confdefs.h.  */
9736 #include <stdarg.h>
9737 int
9738 main ()
9739 {
9740 va_list ap1, ap2; __va_copy(ap1, ap2);
9741   ;
9742   return 0;
9743 }
9744 _ACEOF
9745 rm -f conftest.$ac_objext conftest$ac_exeext
9746 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9747   (eval $ac_link) 2>conftest.er1
9748   ac_status=$?
9749   grep -v '^ *+' conftest.er1 >conftest.err
9750   rm -f conftest.er1
9751   cat conftest.err >&5
9752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9753   (exit $ac_status); } &&
9754          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9755   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9756   (eval $ac_try) 2>&5
9757   ac_status=$?
9758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9759   (exit $ac_status); }; } &&
9760          { ac_try='test -s conftest$ac_exeext'
9761   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9762   (eval $ac_try) 2>&5
9763   ac_status=$?
9764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9765   (exit $ac_status); }; }; then
9766   unet_cv_c___va_copy="yes"
9767 else
9768   echo "$as_me: failed program was:" >&5
9769 sed 's/^/| /' conftest.$ac_ext >&5
9770
9771 unet_cv_c___va_copy="no"
9772
9773 fi
9774 rm -f conftest.err conftest.$ac_objext \
9775       conftest$ac_exeext conftest.$ac_ext
9776 fi
9777 echo "$as_me:$LINENO: result: $unet_cv_c___va_copy" >&5
9778 echo "${ECHO_T}$unet_cv_c___va_copy" >&6
9779 if test "$unet_cv_c___va_copy" = "yes" ; then
9780
9781 cat >>confdefs.h <<\_ACEOF
9782 #define HAVE___VA_COPY 1
9783 _ACEOF
9784
9785 fi
9786
9787 echo "$as_me:$LINENO: checking what name to give the symlink" >&5
9788 echo $ECHO_N "checking what name to give the symlink... $ECHO_C" >&6
9789
9790 # Check whether --with-symlink or --without-symlink was given.
9791 if test "${with_symlink+set}" = set; then
9792   withval="$with_symlink"
9793   unet_cv_with_symlink=$with_symlink
9794 else
9795   if test "${unet_cv_with_symlink+set}" = set; then
9796   echo $ECHO_N "(cached) $ECHO_C" >&6
9797 else
9798   unet_cv_with_symlink="ircd"
9799 fi
9800
9801 fi;
9802
9803 if test x"$unet_cv_with_symlink" = xyes; then
9804     unet_cv_with_symlink="ircd"
9805 fi
9806
9807 echo "$as_me:$LINENO: result: $unet_cv_with_symlink" >&5
9808 echo "${ECHO_T}$unet_cv_with_symlink" >&6
9809
9810 if test x"$unet_cv_with_symlink" = xno; then
9811     INSTALL_RULE=install-no-symlink
9812     SYMLINK=
9813 else
9814     INSTALL_RULE=install-with-symlink
9815     SYMLINK=$unet_cv_with_symlink
9816 fi
9817
9818
9819
9820 echo "$as_me:$LINENO: checking what permissions to set on the installed binary" >&5
9821 echo $ECHO_N "checking what permissions to set on the installed binary... $ECHO_C" >&6
9822
9823 # Check whether --with-mode or --without-mode was given.
9824 if test "${with_mode+set}" = set; then
9825   withval="$with_mode"
9826   unet_cv_with_mode=$with_mode
9827 else
9828   if test "${unet_cv_with_mode+set}" = set; then
9829   echo $ECHO_N "(cached) $ECHO_C" >&6
9830 else
9831   unet_cv_with_mode=711
9832 fi
9833
9834 fi;
9835
9836 if test x"$unet_cv_with_mode" = xyes -o x"$unet_cv_with_mode" = xno; then
9837     unet_cv_with_mode=711
9838 fi
9839
9840 echo "$as_me:$LINENO: result: $unet_cv_with_mode" >&5
9841 echo "${ECHO_T}$unet_cv_with_mode" >&6
9842
9843 IRCDMODE=$unet_cv_with_mode
9844
9845
9846 unet_uid=`id | sed -e 's/.*uid=[0-9]*(//' -e 's/).*//' 2> /dev/null`
9847 echo "$as_me:$LINENO: checking which user should own the installed binary" >&5
9848 echo $ECHO_N "checking which user should own the installed binary... $ECHO_C" >&6
9849
9850 # Check whether --with-owner or --without-owner was given.
9851 if test "${with_owner+set}" = set; then
9852   withval="$with_owner"
9853   unet_cv_with_owner=$with_owner
9854 else
9855   if test "${unet_cv_with_owner+set}" = set; then
9856   echo $ECHO_N "(cached) $ECHO_C" >&6
9857 else
9858   unet_cv_with_owner=$unet_uid
9859 fi
9860
9861 fi;
9862
9863 if test x"$unet_cv_with_owner" = xyes -o x"$unet_cv_with_owner" = xno; then
9864     unet_cv_with_owner=$unet_uid
9865 fi
9866
9867 echo "$as_me:$LINENO: result: $unet_cv_with_owner" >&5
9868 echo "${ECHO_T}$unet_cv_with_owner" >&6
9869
9870 IRCDOWN=$unet_cv_with_owner
9871
9872
9873 unet_gid=`id | sed -e 's/.*gid=[0-9]*(//' -e 's/).*//' 2> /dev/null`
9874 echo "$as_me:$LINENO: checking which group should own the installed binary" >&5
9875 echo $ECHO_N "checking which group should own the installed binary... $ECHO_C" >&6
9876
9877 # Check whether --with-group or --without-group was given.
9878 if test "${with_group+set}" = set; then
9879   withval="$with_group"
9880   unet_cv_with_group=$with_group
9881 else
9882   if test "${unet_cv_with_group+set}" = set; then
9883   echo $ECHO_N "(cached) $ECHO_C" >&6
9884 else
9885   unet_cv_with_group=$unet_gid
9886 fi
9887
9888 fi;
9889
9890 if test x"$unet_cv_with_group" = xyes -o x"$unet_cv_with_group" = xno; then
9891     unet_cv_with_group=$unet_gid
9892 fi
9893
9894 echo "$as_me:$LINENO: result: $unet_cv_with_group" >&5
9895 echo "${ECHO_T}$unet_cv_with_group" >&6
9896
9897 IRCDGRP=$unet_cv_with_group
9898
9899
9900 unet_domain=
9901 if test -f /etc/resolv.conf; then
9902     unet_domain=`awk '/^domain/ { print $2; exit }' /etc/resolv.conf`
9903     if test x"$unet_domain" = x; then
9904         unet_domain=`awk '/^search/ { print $2; exit }' /etc/resolv.conf`
9905     fi
9906 fi
9907 echo "$as_me:$LINENO: checking for site domain name" >&5
9908 echo $ECHO_N "checking for site domain name... $ECHO_C" >&6
9909
9910 # Check whether --with-domain or --without-domain was given.
9911 if test "${with_domain+set}" = set; then
9912   withval="$with_domain"
9913   unet_cv_with_domain=$with_domain
9914 else
9915   if test "${unet_cv_with_domain+set}" = set; then
9916   echo $ECHO_N "(cached) $ECHO_C" >&6
9917 else
9918   unet_cv_with_domain=$unet_domain
9919 fi
9920
9921 fi;
9922
9923 if test x"$unet_cv_with_domain" = xyes -o x"$unet_cv_with_domain" = xno; then
9924     unet_cv_with_domain=$unet_domain
9925 fi
9926 if test x"$unet_cv_with_domain" = xno; then
9927     { { echo "$as_me:$LINENO: error: Unable to determine server DNS domain; use --with-domain to set it" >&5
9928 echo "$as_me: error: Unable to determine server DNS domain; use --with-domain to set it" >&2;}
9929    { (exit 1); exit 1; }; }
9930 fi
9931
9932 echo "$as_me:$LINENO: result: $unet_cv_with_domain" >&5
9933 echo "${ECHO_T}$unet_cv_with_domain" >&6
9934
9935
9936 cat >>confdefs.h <<_ACEOF
9937 #define DOMAINNAME "*$unet_cv_with_domain"
9938 _ACEOF
9939
9940
9941 echo "$as_me:$LINENO: checking if chroot operation is desired" >&5
9942 echo $ECHO_N "checking if chroot operation is desired... $ECHO_C" >&6
9943
9944 # Check whether --with-chroot or --without-chroot was given.
9945 if test "${with_chroot+set}" = set; then
9946   withval="$with_chroot"
9947   unet_cv_with_chroot=$with_chroot
9948 else
9949   if test "${unet_cv_with_chroot+set}" = set; then
9950   echo $ECHO_N "(cached) $ECHO_C" >&6
9951 else
9952   unet_cv_with_chroot=no
9953 fi
9954
9955 fi;
9956
9957 if test x"$unet_cv_with_chroot" = xyes; then
9958     { { echo "$as_me:$LINENO: error: --with-chroot given with no directory.  See doc/readme.chroot." >&5
9959 echo "$as_me: error: --with-chroot given with no directory.  See doc/readme.chroot." >&2;}
9960    { (exit 1); exit 1; }; }
9961 fi
9962
9963 # Ensure there are no trailing /'s to mess us up
9964 unet_cv_with_chroot=`echo "$unet_cv_with_chroot" | sed 's%/*$%%'`
9965
9966 echo "$as_me:$LINENO: result: $unet_cv_with_chroot" >&5
9967 echo "${ECHO_T}$unet_cv_with_chroot" >&6
9968
9969 # Deal with the annoying value "NONE" here
9970 unet_save_prefix=$prefix
9971 if test x"$prefix" = xNONE; then
9972     prefix=$ac_default_prefix
9973 else
9974     prefix=$prefix
9975 fi
9976
9977 unet_save_exec_prefix=$exec_prefix
9978 if test x"$exec_prefix" = xNONE; then
9979     exec_prefix=$prefix
9980 else
9981     exec_prefix=$exec_prefix
9982 fi
9983
9984 # Obtain the actual interesting directories
9985 unet_bindir=`eval echo "$bindir"`
9986 unet_libdir=`eval echo "$libdir"`
9987
9988 # Restore the original settings of $prefix and $exec_prefix
9989 prefix=$unet_save_prefix
9990 exec_prefix=$unet_save_exec_prefix
9991
9992 echo "$as_me:$LINENO: checking where the binary will be for /restart" >&5
9993 echo $ECHO_N "checking where the binary will be for /restart... $ECHO_C" >&6
9994 if test x"$unet_cv_with_symlink" = xno; then
9995     unet_spath="$unet_bindir/ircd"
9996 else
9997     unet_spath="$unet_bindir/$unet_cv_with_symlink"
9998 fi
9999 echo "$as_me:$LINENO: result: $unet_spath" >&5
10000 echo "${ECHO_T}$unet_spath" >&6
10001
10002 if test x"$unet_cv_with_chroot" != xno; then
10003     if echo "$unet_spath" | grep "^$unet_cv_with_chroot" > /dev/null 2>&1; then
10004         unet_spath=`echo "$unet_spath" | sed "s%^$unet_cv_with_chroot%%"`
10005     else
10006         { echo "$as_me:$LINENO: WARNING: Binary $unet_spath not relative to root directory $unet_cv_with_chroot; restarts will probably fail" >&5
10007 echo "$as_me: WARNING: Binary $unet_spath not relative to root directory $unet_cv_with_chroot; restarts will probably fail" >&2;}
10008     fi
10009 fi
10010
10011
10012 cat >>confdefs.h <<_ACEOF
10013 #define SPATH "$unet_spath"
10014 _ACEOF
10015
10016
10017 echo "$as_me:$LINENO: checking what the data directory should be" >&5
10018 echo $ECHO_N "checking what the data directory should be... $ECHO_C" >&6
10019
10020 # Check whether --with-dpath or --without-dpath was given.
10021 if test "${with_dpath+set}" = set; then
10022   withval="$with_dpath"
10023   unet_cv_with_dpath=$with_dpath
10024 else
10025   if test "${unet_cv_with_dpath+set}" = set; then
10026   echo $ECHO_N "(cached) $ECHO_C" >&6
10027 else
10028   unet_cv_with_dpath=$unet_libdir
10029 fi
10030
10031 fi;
10032
10033 if test x"$unet_cv_with_dpath" = xyes -o x"$unet_cv_with_dpath" = xno; then
10034     unet_cv_with_dpath=$unet_libdir
10035 fi
10036
10037 # Ensure there are no trailing /'s to mess us up
10038 unet_cv_with_dpath=`echo "$unet_cv_with_dpath" | sed 's%/*$%%'`
10039
10040 echo "$as_me:$LINENO: result: $unet_cv_with_dpath" >&5
10041 echo "${ECHO_T}$unet_cv_with_dpath" >&6
10042
10043 if test x"$unet_cv_with_chroot" != xno; then
10044     if echo "$unet_cv_with_dpath" | grep "^$unet_cv_with_chroot" > /dev/null 2>&1; then
10045         unet_dpath=`echo "$unet_cv_with_dpath" | sed "s%^$unet_cv_with_chroot%%"`
10046     else
10047         { { echo "$as_me:$LINENO: error: Data directory $unet_cv_with_dpath not relative to root directory $unet_cv_with_chroot" >&5
10048 echo "$as_me: error: Data directory $unet_cv_with_dpath not relative to root directory $unet_cv_with_chroot" >&2;}
10049    { (exit 1); exit 1; }; }
10050     fi
10051 else
10052     unet_dpath=$unet_cv_with_dpath
10053 fi
10054
10055
10056 cat >>confdefs.h <<_ACEOF
10057 #define DPATH "$unet_dpath"
10058 _ACEOF
10059
10060
10061 DPATH=$unet_cv_with_dpath
10062
10063
10064 echo "$as_me:$LINENO: checking where the default configuration file resides" >&5
10065 echo $ECHO_N "checking where the default configuration file resides... $ECHO_C" >&6
10066
10067 # Check whether --with-cpath or --without-cpath was given.
10068 if test "${with_cpath+set}" = set; then
10069   withval="$with_cpath"
10070   unet_cv_with_cpath=$with_cpath
10071 else
10072   if test "${unet_cv_with_cpath+set}" = set; then
10073   echo $ECHO_N "(cached) $ECHO_C" >&6
10074 else
10075   unet_cv_with_cpath="ircd.conf"
10076 fi
10077
10078 fi;
10079
10080 if test x"$unet_cv_with_cpath" = xyes -o x"$unet_cv_with_cpath" = xno; then
10081     unet_cv_with_cpath="ircd.conf"
10082 fi
10083
10084 echo "$as_me:$LINENO: result: $unet_cv_with_cpath" >&5
10085 echo "${ECHO_T}$unet_cv_with_cpath" >&6
10086
10087 if echo "$unet_cv_with_cpath" | grep '^/' > /dev/null 2>&1; then
10088     # Absolute path; check against chroot stuff
10089     if test x"$unet_cv_with_chroot" != xno; then
10090         if echo "$unet_cv_with_cpath" | grep "^$unet_cv_with_chroot" > /dev/null 2>&1; then
10091             unet_cpath=`echo "$unet_cv_with_cpath" | sed "s%^$unet_cv_with_chroot%%"`
10092         else
10093             { { echo "$as_me:$LINENO: error: Configuration file $unet_cv_with_cpath not relative to root directory $unet_cv_with_chroot" >&5
10094 echo "$as_me: error: Configuration file $unet_cv_with_cpath not relative to root directory $unet_cv_with_chroot" >&2;}
10095    { (exit 1); exit 1; }; }
10096         fi
10097     else
10098         unet_cpath=$unet_cv_with_cpath
10099     fi
10100 else
10101     unet_cpath=$unet_cv_with_cpath
10102 fi
10103
10104
10105 cat >>confdefs.h <<_ACEOF
10106 #define CPATH "$unet_cpath"
10107 _ACEOF
10108
10109
10110 echo "$as_me:$LINENO: checking where to put the debugging log if debugging enabled" >&5
10111 echo $ECHO_N "checking where to put the debugging log if debugging enabled... $ECHO_C" >&6
10112
10113 # Check whether --with-lpath or --without-lpath was given.
10114 if test "${with_lpath+set}" = set; then
10115   withval="$with_lpath"
10116   unet_cv_with_lpath=$with_lpath
10117 else
10118   if test "${unet_cv_with_lpath+set}" = set; then
10119   echo $ECHO_N "(cached) $ECHO_C" >&6
10120 else
10121   unet_cv_with_lpath="ircd.log"
10122 fi
10123
10124 fi;
10125
10126 if test x"$unet_cv_with_lpath" = xyes -o x"$unet_cv_with_lpath" = xno; then
10127     unet_cv_with_lpath="ircd.log"
10128 fi
10129
10130 echo "$as_me:$LINENO: result: $unet_cv_with_lpath" >&5
10131 echo "${ECHO_T}$unet_cv_with_lpath" >&6
10132
10133 if echo "$unet_cv_with_lpath" | grep '^/' > /dev/null 2>&1; then
10134     # Absolute path; check against chroot stuff
10135     if test x"$unet_cv_with_chroot" != xno; then
10136         if echo "$unet_cv_with_lpath" | grep "^$unet_cv_with_chroot" > /dev/null 2>&1; then
10137             unet_lpath=`echo "$unet_cv_with_lpath" | sed "s%^$unet_cv_with_chroot%%"`
10138         else
10139             { 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
10140 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;}
10141             unet_cv_with_lpath="ircd.log"
10142             unet_lpath="ircd.log"
10143         fi
10144     else
10145         unet_lpath=$unet_cv_with_lpath
10146     fi
10147 else
10148     unet_lpath=$unet_cv_with_lpath
10149 fi
10150
10151
10152 cat >>confdefs.h <<_ACEOF
10153 #define LPATH "$unet_lpath"
10154 _ACEOF
10155
10156
10157 unet_maxcon=`ulimit -Hn`
10158 if test x"$unet_maxcon" = xunlimited; then
10159     unet_maxcon=`ulimit -Sn`
10160 fi
10161 unet_maxcon=`expr $unet_maxcon - 4`
10162 echo "$as_me:$LINENO: checking max connections" >&5
10163 echo $ECHO_N "checking max connections... $ECHO_C" >&6
10164
10165 # Check whether --with-maxcon or --without-maxcon was given.
10166 if test "${with_maxcon+set}" = set; then
10167   withval="$with_maxcon"
10168   unet_cv_with_maxcon=$with_maxcon
10169 else
10170   if test "${unet_cv_with_maxcon+set}" = set; then
10171   echo $ECHO_N "(cached) $ECHO_C" >&6
10172 else
10173   unet_cv_with_maxcon=$unet_maxcon
10174 fi
10175
10176 fi;
10177
10178 if test x"$unet_cv_with_maxcon" = xyes -o x"$unet_cv_with_maxcon" = xno; then
10179     unet_cv_with_maxcon=$unet_maxcon
10180 fi
10181
10182 echo "$as_me:$LINENO: result: $unet_cv_with_maxcon" >&5
10183 echo "${ECHO_T}$unet_cv_with_maxcon" >&6
10184
10185
10186 cat >>confdefs.h <<_ACEOF
10187 #define MAXCONNECTIONS $unet_cv_with_maxcon
10188 _ACEOF
10189
10190
10191                               ac_config_files="$ac_config_files Makefile ircd/Makefile doc/Makefile"
10192           ac_config_commands="$ac_config_commands default"
10193 cat >confcache <<\_ACEOF
10194 # This file is a shell script that caches the results of configure
10195 # tests run on this system so they can be shared between configure
10196 # scripts and configure runs, see configure's option --config-cache.
10197 # It is not useful on other systems.  If it contains results you don't
10198 # want to keep, you may remove or edit it.
10199 #
10200 # config.status only pays attention to the cache file if you give it
10201 # the --recheck option to rerun configure.
10202 #
10203 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10204 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10205 # following values.
10206
10207 _ACEOF
10208
10209 # The following way of writing the cache mishandles newlines in values,
10210 # but we know of no workaround that is simple, portable, and efficient.
10211 # So, don't put newlines in cache variables' values.
10212 # Ultrix sh set writes to stderr and can't be redirected directly,
10213 # and sets the high bit in the cache file unless we assign to the vars.
10214 {
10215   (set) 2>&1 |
10216     case `(ac_space=' '; set | grep ac_space) 2>&1` in
10217     *ac_space=\ *)
10218       # `set' does not quote correctly, so add quotes (double-quote
10219       # substitution turns \\\\ into \\, and sed turns \\ into \).
10220       sed -n \
10221         "s/'/'\\\\''/g;
10222           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10223       ;;
10224     *)
10225       # `set' quotes correctly as required by POSIX, so do not add quotes.
10226       sed -n \
10227         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
10228       ;;
10229     esac;
10230 } |
10231   sed '
10232      t clear
10233      : clear
10234      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10235      t end
10236      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10237      : end' >>confcache
10238 if diff $cache_file confcache >/dev/null 2>&1; then :; else
10239   if test -w $cache_file; then
10240     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10241     cat confcache >$cache_file
10242   else
10243     echo "not updating unwritable cache $cache_file"
10244   fi
10245 fi
10246 rm -f confcache
10247
10248 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10249 # Let make expand exec_prefix.
10250 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10251
10252 # VPATH may cause trouble with some makes, so we remove $(srcdir),
10253 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10254 # trailing colons and then remove the whole line if VPATH becomes empty
10255 # (actually we leave an empty line to preserve line numbers).
10256 if test "x$srcdir" = x.; then
10257   ac_vpsub='/^[  ]*VPATH[        ]*=/{
10258 s/:*\$(srcdir):*/:/;
10259 s/:*\${srcdir}:*/:/;
10260 s/:*@srcdir@:*/:/;
10261 s/^\([^=]*=[     ]*\):*/\1/;
10262 s/:*$//;
10263 s/^[^=]*=[       ]*$//;
10264 }'
10265 fi
10266
10267 DEFS=-DHAVE_CONFIG_H
10268
10269 ac_libobjs=
10270 ac_ltlibobjs=
10271 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10272   # 1. Remove the extension, and $U if already installed.
10273   ac_i=`echo "$ac_i" |
10274          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
10275   # 2. Add them.
10276   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
10277   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
10278 done
10279 LIBOBJS=$ac_libobjs
10280
10281 LTLIBOBJS=$ac_ltlibobjs
10282
10283
10284
10285 : ${CONFIG_STATUS=./config.status}
10286 ac_clean_files_save=$ac_clean_files
10287 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10288 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
10289 echo "$as_me: creating $CONFIG_STATUS" >&6;}
10290 cat >$CONFIG_STATUS <<_ACEOF
10291 #! $SHELL
10292 # Generated by $as_me.
10293 # Run this file to recreate the current configuration.
10294 # Compiler output produced by configure, useful for debugging
10295 # configure, is in config.log if it exists.
10296
10297 debug=false
10298 ac_cs_recheck=false
10299 ac_cs_silent=false
10300 SHELL=\${CONFIG_SHELL-$SHELL}
10301 _ACEOF
10302
10303 cat >>$CONFIG_STATUS <<\_ACEOF
10304 ## --------------------- ##
10305 ## M4sh Initialization.  ##
10306 ## --------------------- ##
10307
10308 # Be Bourne compatible
10309 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
10310   emulate sh
10311   NULLCMD=:
10312   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
10313   # is contrary to our usage.  Disable this feature.
10314   alias -g '${1+"$@"}'='"$@"'
10315 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
10316   set -o posix
10317 fi
10318 DUALCASE=1; export DUALCASE # for MKS sh
10319
10320 # Support unset when possible.
10321 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10322   as_unset=unset
10323 else
10324   as_unset=false
10325 fi
10326
10327
10328 # Work around bugs in pre-3.0 UWIN ksh.
10329 $as_unset ENV MAIL MAILPATH
10330 PS1='$ '
10331 PS2='> '
10332 PS4='+ '
10333
10334 # NLS nuisances.
10335 for as_var in \
10336   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
10337   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
10338   LC_TELEPHONE LC_TIME
10339 do
10340   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
10341     eval $as_var=C; export $as_var
10342   else
10343     $as_unset $as_var
10344   fi
10345 done
10346
10347 # Required to use basename.
10348 if expr a : '\(a\)' >/dev/null 2>&1; then
10349   as_expr=expr
10350 else
10351   as_expr=false
10352 fi
10353
10354 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
10355   as_basename=basename
10356 else
10357   as_basename=false
10358 fi
10359
10360
10361 # Name of the executable.
10362 as_me=`$as_basename "$0" ||
10363 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10364          X"$0" : 'X\(//\)$' \| \
10365          X"$0" : 'X\(/\)$' \| \
10366          .     : '\(.\)' 2>/dev/null ||
10367 echo X/"$0" |
10368     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
10369           /^X\/\(\/\/\)$/{ s//\1/; q; }
10370           /^X\/\(\/\).*/{ s//\1/; q; }
10371           s/.*/./; q'`
10372
10373
10374 # PATH needs CR, and LINENO needs CR and PATH.
10375 # Avoid depending upon Character Ranges.
10376 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10377 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10378 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10379 as_cr_digits='0123456789'
10380 as_cr_alnum=$as_cr_Letters$as_cr_digits
10381
10382 # The user is always right.
10383 if test "${PATH_SEPARATOR+set}" != set; then
10384   echo "#! /bin/sh" >conf$$.sh
10385   echo  "exit 0"   >>conf$$.sh
10386   chmod +x conf$$.sh
10387   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10388     PATH_SEPARATOR=';'
10389   else
10390     PATH_SEPARATOR=:
10391   fi
10392   rm -f conf$$.sh
10393 fi
10394
10395
10396   as_lineno_1=$LINENO
10397   as_lineno_2=$LINENO
10398   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
10399   test "x$as_lineno_1" != "x$as_lineno_2" &&
10400   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
10401   # Find who we are.  Look in the path if we contain no path at all
10402   # relative or not.
10403   case $0 in
10404     *[\\/]* ) as_myself=$0 ;;
10405     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10406 for as_dir in $PATH
10407 do
10408   IFS=$as_save_IFS
10409   test -z "$as_dir" && as_dir=.
10410   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10411 done
10412
10413        ;;
10414   esac
10415   # We did not find ourselves, most probably we were run as `sh COMMAND'
10416   # in which case we are not to be found in the path.
10417   if test "x$as_myself" = x; then
10418     as_myself=$0
10419   fi
10420   if test ! -f "$as_myself"; then
10421     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
10422 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
10423    { (exit 1); exit 1; }; }
10424   fi
10425   case $CONFIG_SHELL in
10426   '')
10427     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10428 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
10429 do
10430   IFS=$as_save_IFS
10431   test -z "$as_dir" && as_dir=.
10432   for as_base in sh bash ksh sh5; do
10433          case $as_dir in
10434          /*)
10435            if ("$as_dir/$as_base" -c '
10436   as_lineno_1=$LINENO
10437   as_lineno_2=$LINENO
10438   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
10439   test "x$as_lineno_1" != "x$as_lineno_2" &&
10440   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
10441              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
10442              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
10443              CONFIG_SHELL=$as_dir/$as_base
10444              export CONFIG_SHELL
10445              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
10446            fi;;
10447          esac
10448        done
10449 done
10450 ;;
10451   esac
10452
10453   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
10454   # uniformly replaced by the line number.  The first 'sed' inserts a
10455   # line-number line before each line; the second 'sed' does the real
10456   # work.  The second script uses 'N' to pair each line-number line
10457   # with the numbered line, and appends trailing '-' during
10458   # substitution so that $LINENO is not a special case at line end.
10459   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
10460   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
10461   sed '=' <$as_myself |
10462     sed '
10463       N
10464       s,$,-,
10465       : loop
10466       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
10467       t loop
10468       s,-$,,
10469       s,^['$as_cr_digits']*\n,,
10470     ' >$as_me.lineno &&
10471   chmod +x $as_me.lineno ||
10472     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
10473 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
10474    { (exit 1); exit 1; }; }
10475
10476   # Don't try to exec as it changes $[0], causing all sort of problems
10477   # (the dirname of $[0] is not the place where we might find the
10478   # original and so on.  Autoconf is especially sensible to this).
10479   . ./$as_me.lineno
10480   # Exit status is that of the last command.
10481   exit
10482 }
10483
10484
10485 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
10486   *c*,-n*) ECHO_N= ECHO_C='
10487 ' ECHO_T='      ' ;;
10488   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
10489   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
10490 esac
10491
10492 if expr a : '\(a\)' >/dev/null 2>&1; then
10493   as_expr=expr
10494 else
10495   as_expr=false
10496 fi
10497
10498 rm -f conf$$ conf$$.exe conf$$.file
10499 echo >conf$$.file
10500 if ln -s conf$$.file conf$$ 2>/dev/null; then
10501   # We could just check for DJGPP; but this test a) works b) is more generic
10502   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
10503   if test -f conf$$.exe; then
10504     # Don't use ln at all; we don't have any links
10505     as_ln_s='cp -p'
10506   else
10507     as_ln_s='ln -s'
10508   fi
10509 elif ln conf$$.file conf$$ 2>/dev/null; then
10510   as_ln_s=ln
10511 else
10512   as_ln_s='cp -p'
10513 fi
10514 rm -f conf$$ conf$$.exe conf$$.file
10515
10516 if mkdir -p . 2>/dev/null; then
10517   as_mkdir_p=:
10518 else
10519   test -d ./-p && rmdir ./-p
10520   as_mkdir_p=false
10521 fi
10522
10523 as_executable_p="test -f"
10524
10525 # Sed expression to map a string onto a valid CPP name.
10526 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10527
10528 # Sed expression to map a string onto a valid variable name.
10529 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10530
10531
10532 # IFS
10533 # We need space, tab and new line, in precisely that order.
10534 as_nl='
10535 '
10536 IFS="   $as_nl"
10537
10538 # CDPATH.
10539 $as_unset CDPATH
10540
10541 exec 6>&1
10542
10543 # Open the log real soon, to keep \$[0] and so on meaningful, and to
10544 # report actual input values of CONFIG_FILES etc. instead of their
10545 # values after options handling.  Logging --version etc. is OK.
10546 exec 5>>config.log
10547 {
10548   echo
10549   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10550 ## Running $as_me. ##
10551 _ASBOX
10552 } >&5
10553 cat >&5 <<_CSEOF
10554
10555 This file was extended by $as_me, which was
10556 generated by GNU Autoconf 2.59.  Invocation command line was
10557
10558   CONFIG_FILES    = $CONFIG_FILES
10559   CONFIG_HEADERS  = $CONFIG_HEADERS
10560   CONFIG_LINKS    = $CONFIG_LINKS
10561   CONFIG_COMMANDS = $CONFIG_COMMANDS
10562   $ $0 $@
10563
10564 _CSEOF
10565 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
10566 echo >&5
10567 _ACEOF
10568
10569 # Files that config.status was made for.
10570 if test -n "$ac_config_files"; then
10571   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
10572 fi
10573
10574 if test -n "$ac_config_headers"; then
10575   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
10576 fi
10577
10578 if test -n "$ac_config_links"; then
10579   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
10580 fi
10581
10582 if test -n "$ac_config_commands"; then
10583   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
10584 fi
10585
10586 cat >>$CONFIG_STATUS <<\_ACEOF
10587
10588 ac_cs_usage="\
10589 \`$as_me' instantiates files from templates according to the
10590 current configuration.
10591
10592 Usage: $0 [OPTIONS] [FILE]...
10593
10594   -h, --help       print this help, then exit
10595   -V, --version    print version number, then exit
10596   -q, --quiet      do not print progress messages
10597   -d, --debug      don't remove temporary files
10598       --recheck    update $as_me by reconfiguring in the same conditions
10599   --file=FILE[:TEMPLATE]
10600                    instantiate the configuration file FILE
10601   --header=FILE[:TEMPLATE]
10602                    instantiate the configuration header FILE
10603
10604 Configuration files:
10605 $config_files
10606
10607 Configuration headers:
10608 $config_headers
10609
10610 Configuration commands:
10611 $config_commands
10612
10613 Report bugs to <bug-autoconf@gnu.org>."
10614 _ACEOF
10615
10616 cat >>$CONFIG_STATUS <<_ACEOF
10617 ac_cs_version="\\
10618 config.status
10619 configured by $0, generated by GNU Autoconf 2.59,
10620   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
10621
10622 Copyright (C) 2003 Free Software Foundation, Inc.
10623 This config.status script is free software; the Free Software Foundation
10624 gives unlimited permission to copy, distribute and modify it."
10625 srcdir=$srcdir
10626 INSTALL="$INSTALL"
10627 _ACEOF
10628
10629 cat >>$CONFIG_STATUS <<\_ACEOF
10630 # If no file are specified by the user, then we need to provide default
10631 # value.  By we need to know if files were specified by the user.
10632 ac_need_defaults=:
10633 while test $# != 0
10634 do
10635   case $1 in
10636   --*=*)
10637     ac_option=`expr "x$1" : 'x\([^=]*\)='`
10638     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
10639     ac_shift=:
10640     ;;
10641   -*)
10642     ac_option=$1
10643     ac_optarg=$2
10644     ac_shift=shift
10645     ;;
10646   *) # This is not an option, so the user has probably given explicit
10647      # arguments.
10648      ac_option=$1
10649      ac_need_defaults=false;;
10650   esac
10651
10652   case $ac_option in
10653   # Handling of the options.
10654 _ACEOF
10655 cat >>$CONFIG_STATUS <<\_ACEOF
10656   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10657     ac_cs_recheck=: ;;
10658   --version | --vers* | -V )
10659     echo "$ac_cs_version"; exit 0 ;;
10660   --he | --h)
10661     # Conflict between --help and --header
10662     { { echo "$as_me:$LINENO: error: ambiguous option: $1
10663 Try \`$0 --help' for more information." >&5
10664 echo "$as_me: error: ambiguous option: $1
10665 Try \`$0 --help' for more information." >&2;}
10666    { (exit 1); exit 1; }; };;
10667   --help | --hel | -h )
10668     echo "$ac_cs_usage"; exit 0 ;;
10669   --debug | --d* | -d )
10670     debug=: ;;
10671   --file | --fil | --fi | --f )
10672     $ac_shift
10673     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
10674     ac_need_defaults=false;;
10675   --header | --heade | --head | --hea )
10676     $ac_shift
10677     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
10678     ac_need_defaults=false;;
10679   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10680   | -silent | --silent | --silen | --sile | --sil | --si | --s)
10681     ac_cs_silent=: ;;
10682
10683   # This is an error.
10684   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
10685 Try \`$0 --help' for more information." >&5
10686 echo "$as_me: error: unrecognized option: $1
10687 Try \`$0 --help' for more information." >&2;}
10688    { (exit 1); exit 1; }; } ;;
10689
10690   *) ac_config_targets="$ac_config_targets $1" ;;
10691
10692   esac
10693   shift
10694 done
10695
10696 ac_configure_extra_args=
10697
10698 if $ac_cs_silent; then
10699   exec 6>/dev/null
10700   ac_configure_extra_args="$ac_configure_extra_args --silent"
10701 fi
10702
10703 _ACEOF
10704 cat >>$CONFIG_STATUS <<_ACEOF
10705 if \$ac_cs_recheck; then
10706   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
10707   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10708 fi
10709
10710 _ACEOF
10711
10712
10713
10714
10715
10716 cat >>$CONFIG_STATUS <<\_ACEOF
10717 for ac_config_target in $ac_config_targets
10718 do
10719   case "$ac_config_target" in
10720   # Handling of arguments.
10721   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
10722   "ircd/Makefile" ) CONFIG_FILES="$CONFIG_FILES ircd/Makefile" ;;
10723   "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
10724   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
10725   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
10726   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
10727 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
10728    { (exit 1); exit 1; }; };;
10729   esac
10730 done
10731
10732 # If the user did not use the arguments to specify the items to instantiate,
10733 # then the envvar interface is used.  Set only those that are not.
10734 # We use the long form for the default assignment because of an extremely
10735 # bizarre bug on SunOS 4.1.3.
10736 if $ac_need_defaults; then
10737   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10738   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10739   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
10740 fi
10741
10742 # Have a temporary directory for convenience.  Make it in the build tree
10743 # simply because there is no reason to put it here, and in addition,
10744 # creating and moving files from /tmp can sometimes cause problems.
10745 # Create a temporary directory, and hook for its removal unless debugging.
10746 $debug ||
10747 {
10748   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
10749   trap '{ (exit 1); exit 1; }' 1 2 13 15
10750 }
10751
10752 # Create a (secure) tmp directory for tmp files.
10753
10754 {
10755   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
10756   test -n "$tmp" && test -d "$tmp"
10757 }  ||
10758 {
10759   tmp=./confstat$$-$RANDOM
10760   (umask 077 && mkdir $tmp)
10761 } ||
10762 {
10763    echo "$me: cannot create a temporary directory in ." >&2
10764    { (exit 1); exit 1; }
10765 }
10766
10767 _ACEOF
10768
10769 cat >>$CONFIG_STATUS <<_ACEOF
10770
10771 #
10772 # CONFIG_FILES section.
10773 #
10774
10775 # No need to generate the scripts if there are no CONFIG_FILES.
10776 # This happens for instance when ./config.status config.h
10777 if test -n "\$CONFIG_FILES"; then
10778   # Protect against being on the right side of a sed subst in config.status.
10779   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
10780    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
10781 s,@SHELL@,$SHELL,;t t
10782 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
10783 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
10784 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
10785 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
10786 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
10787 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
10788 s,@exec_prefix@,$exec_prefix,;t t
10789 s,@prefix@,$prefix,;t t
10790 s,@program_transform_name@,$program_transform_name,;t t
10791 s,@bindir@,$bindir,;t t
10792 s,@sbindir@,$sbindir,;t t
10793 s,@libexecdir@,$libexecdir,;t t
10794 s,@datadir@,$datadir,;t t
10795 s,@sysconfdir@,$sysconfdir,;t t
10796 s,@sharedstatedir@,$sharedstatedir,;t t
10797 s,@localstatedir@,$localstatedir,;t t
10798 s,@libdir@,$libdir,;t t
10799 s,@includedir@,$includedir,;t t
10800 s,@oldincludedir@,$oldincludedir,;t t
10801 s,@infodir@,$infodir,;t t
10802 s,@mandir@,$mandir,;t t
10803 s,@build_alias@,$build_alias,;t t
10804 s,@host_alias@,$host_alias,;t t
10805 s,@target_alias@,$target_alias,;t t
10806 s,@DEFS@,$DEFS,;t t
10807 s,@ECHO_C@,$ECHO_C,;t t
10808 s,@ECHO_N@,$ECHO_N,;t t
10809 s,@ECHO_T@,$ECHO_T,;t t
10810 s,@LIBS@,$LIBS,;t t
10811 s,@build@,$build,;t t
10812 s,@build_cpu@,$build_cpu,;t t
10813 s,@build_vendor@,$build_vendor,;t t
10814 s,@build_os@,$build_os,;t t
10815 s,@host@,$host,;t t
10816 s,@host_cpu@,$host_cpu,;t t
10817 s,@host_vendor@,$host_vendor,;t t
10818 s,@host_os@,$host_os,;t t
10819 s,@CC@,$CC,;t t
10820 s,@CFLAGS@,$CFLAGS,;t t
10821 s,@LDFLAGS@,$LDFLAGS,;t t
10822 s,@CPPFLAGS@,$CPPFLAGS,;t t
10823 s,@ac_ct_CC@,$ac_ct_CC,;t t
10824 s,@EXEEXT@,$EXEEXT,;t t
10825 s,@OBJEXT@,$OBJEXT,;t t
10826 s,@CPP@,$CPP,;t t
10827 s,@EGREP@,$EGREP,;t t
10828 s,@AWK@,$AWK,;t t
10829 s,@SET_MAKE@,$SET_MAKE,;t t
10830 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
10831 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
10832 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
10833 s,@LN_S@,$LN_S,;t t
10834 s,@RMPROG@,$RMPROG,;t t
10835 s,@SHPROG@,$SHPROG,;t t
10836 s,@LEX@,$LEX,;t t
10837 s,@LEXLIB@,$LEXLIB,;t t
10838 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
10839 s,@YACC@,$YACC,;t t
10840 s,@ENGINE_C@,$ENGINE_C,;t t
10841 s,@INSTALL_RULE@,$INSTALL_RULE,;t t
10842 s,@SYMLINK@,$SYMLINK,;t t
10843 s,@IRCDMODE@,$IRCDMODE,;t t
10844 s,@IRCDOWN@,$IRCDOWN,;t t
10845 s,@IRCDGRP@,$IRCDGRP,;t t
10846 s,@DPATH@,$DPATH,;t t
10847 s,@LIBOBJS@,$LIBOBJS,;t t
10848 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
10849 CEOF
10850
10851 _ACEOF
10852
10853   cat >>$CONFIG_STATUS <<\_ACEOF
10854   # Split the substitutions into bite-sized pieces for seds with
10855   # small command number limits, like on Digital OSF/1 and HP-UX.
10856   ac_max_sed_lines=48
10857   ac_sed_frag=1 # Number of current file.
10858   ac_beg=1 # First line for current file.
10859   ac_end=$ac_max_sed_lines # Line after last line for current file.
10860   ac_more_lines=:
10861   ac_sed_cmds=
10862   while $ac_more_lines; do
10863     if test $ac_beg -gt 1; then
10864       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10865     else
10866       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10867     fi
10868     if test ! -s $tmp/subs.frag; then
10869       ac_more_lines=false
10870     else
10871       # The purpose of the label and of the branching condition is to
10872       # speed up the sed processing (if there are no `@' at all, there
10873       # is no need to browse any of the substitutions).
10874       # These are the two extra sed commands mentioned above.
10875       (echo ':t
10876   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
10877       if test -z "$ac_sed_cmds"; then
10878         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
10879       else
10880         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
10881       fi
10882       ac_sed_frag=`expr $ac_sed_frag + 1`
10883       ac_beg=$ac_end
10884       ac_end=`expr $ac_end + $ac_max_sed_lines`
10885     fi
10886   done
10887   if test -z "$ac_sed_cmds"; then
10888     ac_sed_cmds=cat
10889   fi
10890 fi # test -n "$CONFIG_FILES"
10891
10892 _ACEOF
10893 cat >>$CONFIG_STATUS <<\_ACEOF
10894 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
10895   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10896   case $ac_file in
10897   - | *:- | *:-:* ) # input from stdin
10898         cat >$tmp/stdin
10899         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10900         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10901   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10902         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10903   * )   ac_file_in=$ac_file.in ;;
10904   esac
10905
10906   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
10907   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10908 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10909          X"$ac_file" : 'X\(//\)[^/]' \| \
10910          X"$ac_file" : 'X\(//\)$' \| \
10911          X"$ac_file" : 'X\(/\)' \| \
10912          .     : '\(.\)' 2>/dev/null ||
10913 echo X"$ac_file" |
10914     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10915           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10916           /^X\(\/\/\)$/{ s//\1/; q; }
10917           /^X\(\/\).*/{ s//\1/; q; }
10918           s/.*/./; q'`
10919   { if $as_mkdir_p; then
10920     mkdir -p "$ac_dir"
10921   else
10922     as_dir="$ac_dir"
10923     as_dirs=
10924     while test ! -d "$as_dir"; do
10925       as_dirs="$as_dir $as_dirs"
10926       as_dir=`(dirname "$as_dir") 2>/dev/null ||
10927 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10928          X"$as_dir" : 'X\(//\)[^/]' \| \
10929          X"$as_dir" : 'X\(//\)$' \| \
10930          X"$as_dir" : 'X\(/\)' \| \
10931          .     : '\(.\)' 2>/dev/null ||
10932 echo X"$as_dir" |
10933     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10934           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10935           /^X\(\/\/\)$/{ s//\1/; q; }
10936           /^X\(\/\).*/{ s//\1/; q; }
10937           s/.*/./; q'`
10938     done
10939     test ! -n "$as_dirs" || mkdir $as_dirs
10940   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10941 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10942    { (exit 1); exit 1; }; }; }
10943
10944   ac_builddir=.
10945
10946 if test "$ac_dir" != .; then
10947   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10948   # A "../" for each directory in $ac_dir_suffix.
10949   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10950 else
10951   ac_dir_suffix= ac_top_builddir=
10952 fi
10953
10954 case $srcdir in
10955   .)  # No --srcdir option.  We are building in place.
10956     ac_srcdir=.
10957     if test -z "$ac_top_builddir"; then
10958        ac_top_srcdir=.
10959     else
10960        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10961     fi ;;
10962   [\\/]* | ?:[\\/]* )  # Absolute path.
10963     ac_srcdir=$srcdir$ac_dir_suffix;
10964     ac_top_srcdir=$srcdir ;;
10965   *) # Relative path.
10966     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10967     ac_top_srcdir=$ac_top_builddir$srcdir ;;
10968 esac
10969
10970 # Do not use `cd foo && pwd` to compute absolute paths, because
10971 # the directories may not exist.
10972 case `pwd` in
10973 .) ac_abs_builddir="$ac_dir";;
10974 *)
10975   case "$ac_dir" in
10976   .) ac_abs_builddir=`pwd`;;
10977   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
10978   *) ac_abs_builddir=`pwd`/"$ac_dir";;
10979   esac;;
10980 esac
10981 case $ac_abs_builddir in
10982 .) ac_abs_top_builddir=${ac_top_builddir}.;;
10983 *)
10984   case ${ac_top_builddir}. in
10985   .) ac_abs_top_builddir=$ac_abs_builddir;;
10986   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
10987   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
10988   esac;;
10989 esac
10990 case $ac_abs_builddir in
10991 .) ac_abs_srcdir=$ac_srcdir;;
10992 *)
10993   case $ac_srcdir in
10994   .) ac_abs_srcdir=$ac_abs_builddir;;
10995   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
10996   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
10997   esac;;
10998 esac
10999 case $ac_abs_builddir in
11000 .) ac_abs_top_srcdir=$ac_top_srcdir;;
11001 *)
11002   case $ac_top_srcdir in
11003   .) ac_abs_top_srcdir=$ac_abs_builddir;;
11004   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
11005   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
11006   esac;;
11007 esac
11008
11009
11010   case $INSTALL in
11011   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11012   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
11013   esac
11014
11015   # Let's still pretend it is `configure' which instantiates (i.e., don't
11016   # use $as_me), people would be surprised to read:
11017   #    /* config.h.  Generated by config.status.  */
11018   if test x"$ac_file" = x-; then
11019     configure_input=
11020   else
11021     configure_input="$ac_file.  "
11022   fi
11023   configure_input=$configure_input"Generated from `echo $ac_file_in |
11024                                      sed 's,.*/,,'` by configure."
11025
11026   # First look for the input files in the build tree, otherwise in the
11027   # src tree.
11028   ac_file_inputs=`IFS=:
11029     for f in $ac_file_in; do
11030       case $f in
11031       -) echo $tmp/stdin ;;
11032       [\\/$]*)
11033          # Absolute (can't be DOS-style, as IFS=:)
11034          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11035 echo "$as_me: error: cannot find input file: $f" >&2;}
11036    { (exit 1); exit 1; }; }
11037          echo "$f";;
11038       *) # Relative
11039          if test -f "$f"; then
11040            # Build tree
11041            echo "$f"
11042          elif test -f "$srcdir/$f"; then
11043            # Source tree
11044            echo "$srcdir/$f"
11045          else
11046            # /dev/null tree
11047            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11048 echo "$as_me: error: cannot find input file: $f" >&2;}
11049    { (exit 1); exit 1; }; }
11050          fi;;
11051       esac
11052     done` || { (exit 1); exit 1; }
11053
11054   if test x"$ac_file" != x-; then
11055     { echo "$as_me:$LINENO: creating $ac_file" >&5
11056 echo "$as_me: creating $ac_file" >&6;}
11057     rm -f "$ac_file"
11058   fi
11059 _ACEOF
11060 cat >>$CONFIG_STATUS <<_ACEOF
11061   sed "$ac_vpsub
11062 $extrasub
11063 _ACEOF
11064 cat >>$CONFIG_STATUS <<\_ACEOF
11065 :t
11066 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11067 s,@configure_input@,$configure_input,;t t
11068 s,@srcdir@,$ac_srcdir,;t t
11069 s,@abs_srcdir@,$ac_abs_srcdir,;t t
11070 s,@top_srcdir@,$ac_top_srcdir,;t t
11071 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
11072 s,@builddir@,$ac_builddir,;t t
11073 s,@abs_builddir@,$ac_abs_builddir,;t t
11074 s,@top_builddir@,$ac_top_builddir,;t t
11075 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
11076 s,@INSTALL@,$ac_INSTALL,;t t
11077 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
11078   rm -f $tmp/stdin
11079   if test x"$ac_file" != x-; then
11080     mv $tmp/out $ac_file
11081   else
11082     cat $tmp/out
11083     rm -f $tmp/out
11084   fi
11085
11086 done
11087 _ACEOF
11088 cat >>$CONFIG_STATUS <<\_ACEOF
11089
11090 #
11091 # CONFIG_HEADER section.
11092 #
11093
11094 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
11095 # NAME is the cpp macro being defined and VALUE is the value it is being given.
11096 #
11097 # ac_d sets the value in "#define NAME VALUE" lines.
11098 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
11099 ac_dB='[         ].*$,\1#\2'
11100 ac_dC=' '
11101 ac_dD=',;t'
11102 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
11103 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
11104 ac_uB='$,\1#\2define\3'
11105 ac_uC=' '
11106 ac_uD=',;t'
11107
11108 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
11109   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11110   case $ac_file in
11111   - | *:- | *:-:* ) # input from stdin
11112         cat >$tmp/stdin
11113         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11114         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11115   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11116         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11117   * )   ac_file_in=$ac_file.in ;;
11118   esac
11119
11120   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
11121 echo "$as_me: creating $ac_file" >&6;}
11122
11123   # First look for the input files in the build tree, otherwise in the
11124   # src tree.
11125   ac_file_inputs=`IFS=:
11126     for f in $ac_file_in; do
11127       case $f in
11128       -) echo $tmp/stdin ;;
11129       [\\/$]*)
11130          # Absolute (can't be DOS-style, as IFS=:)
11131          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11132 echo "$as_me: error: cannot find input file: $f" >&2;}
11133    { (exit 1); exit 1; }; }
11134          # Do quote $f, to prevent DOS paths from being IFS'd.
11135          echo "$f";;
11136       *) # Relative
11137          if test -f "$f"; then
11138            # Build tree
11139            echo "$f"
11140          elif test -f "$srcdir/$f"; then
11141            # Source tree
11142            echo "$srcdir/$f"
11143          else
11144            # /dev/null tree
11145            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11146 echo "$as_me: error: cannot find input file: $f" >&2;}
11147    { (exit 1); exit 1; }; }
11148          fi;;
11149       esac
11150     done` || { (exit 1); exit 1; }
11151   # Remove the trailing spaces.
11152   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
11153
11154 _ACEOF
11155
11156 # Transform confdefs.h into two sed scripts, `conftest.defines' and
11157 # `conftest.undefs', that substitutes the proper values into
11158 # config.h.in to produce config.h.  The first handles `#define'
11159 # templates, and the second `#undef' templates.
11160 # And first: Protect against being on the right side of a sed subst in
11161 # config.status.  Protect against being in an unquoted here document
11162 # in config.status.
11163 rm -f conftest.defines conftest.undefs
11164 # Using a here document instead of a string reduces the quoting nightmare.
11165 # Putting comments in sed scripts is not portable.
11166 #
11167 # `end' is used to avoid that the second main sed command (meant for
11168 # 0-ary CPP macros) applies to n-ary macro definitions.
11169 # See the Autoconf documentation for `clear'.
11170 cat >confdef2sed.sed <<\_ACEOF
11171 s/[\\&,]/\\&/g
11172 s,[\\$`],\\&,g
11173 t clear
11174 : clear
11175 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
11176 t end
11177 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
11178 : end
11179 _ACEOF
11180 # If some macros were called several times there might be several times
11181 # the same #defines, which is useless.  Nevertheless, we may not want to
11182 # sort them, since we want the *last* AC-DEFINE to be honored.
11183 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
11184 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
11185 rm -f confdef2sed.sed
11186
11187 # This sed command replaces #undef with comments.  This is necessary, for
11188 # example, in the case of _POSIX_SOURCE, which is predefined and required
11189 # on some systems where configure will not decide to define it.
11190 cat >>conftest.undefs <<\_ACEOF
11191 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
11192 _ACEOF
11193
11194 # Break up conftest.defines because some shells have a limit on the size
11195 # of here documents, and old seds have small limits too (100 cmds).
11196 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
11197 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
11198 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
11199 echo '  :' >>$CONFIG_STATUS
11200 rm -f conftest.tail
11201 while grep . conftest.defines >/dev/null
11202 do
11203   # Write a limited-size here document to $tmp/defines.sed.
11204   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
11205   # Speed up: don't consider the non `#define' lines.
11206   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
11207   # Work around the forget-to-reset-the-flag bug.
11208   echo 't clr' >>$CONFIG_STATUS
11209   echo ': clr' >>$CONFIG_STATUS
11210   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
11211   echo 'CEOF
11212   sed -f $tmp/defines.sed $tmp/in >$tmp/out
11213   rm -f $tmp/in
11214   mv $tmp/out $tmp/in
11215 ' >>$CONFIG_STATUS
11216   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
11217   rm -f conftest.defines
11218   mv conftest.tail conftest.defines
11219 done
11220 rm -f conftest.defines
11221 echo '  fi # grep' >>$CONFIG_STATUS
11222 echo >>$CONFIG_STATUS
11223
11224 # Break up conftest.undefs because some shells have a limit on the size
11225 # of here documents, and old seds have small limits too (100 cmds).
11226 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
11227 rm -f conftest.tail
11228 while grep . conftest.undefs >/dev/null
11229 do
11230   # Write a limited-size here document to $tmp/undefs.sed.
11231   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
11232   # Speed up: don't consider the non `#undef'
11233   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
11234   # Work around the forget-to-reset-the-flag bug.
11235   echo 't clr' >>$CONFIG_STATUS
11236   echo ': clr' >>$CONFIG_STATUS
11237   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
11238   echo 'CEOF
11239   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
11240   rm -f $tmp/in
11241   mv $tmp/out $tmp/in
11242 ' >>$CONFIG_STATUS
11243   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
11244   rm -f conftest.undefs
11245   mv conftest.tail conftest.undefs
11246 done
11247 rm -f conftest.undefs
11248
11249 cat >>$CONFIG_STATUS <<\_ACEOF
11250   # Let's still pretend it is `configure' which instantiates (i.e., don't
11251   # use $as_me), people would be surprised to read:
11252   #    /* config.h.  Generated by config.status.  */
11253   if test x"$ac_file" = x-; then
11254     echo "/* Generated by configure.  */" >$tmp/config.h
11255   else
11256     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
11257   fi
11258   cat $tmp/in >>$tmp/config.h
11259   rm -f $tmp/in
11260   if test x"$ac_file" != x-; then
11261     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
11262       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
11263 echo "$as_me: $ac_file is unchanged" >&6;}
11264     else
11265       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11266 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11267          X"$ac_file" : 'X\(//\)[^/]' \| \
11268          X"$ac_file" : 'X\(//\)$' \| \
11269          X"$ac_file" : 'X\(/\)' \| \
11270          .     : '\(.\)' 2>/dev/null ||
11271 echo X"$ac_file" |
11272     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11273           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11274           /^X\(\/\/\)$/{ s//\1/; q; }
11275           /^X\(\/\).*/{ s//\1/; q; }
11276           s/.*/./; q'`
11277       { if $as_mkdir_p; then
11278     mkdir -p "$ac_dir"
11279   else
11280     as_dir="$ac_dir"
11281     as_dirs=
11282     while test ! -d "$as_dir"; do
11283       as_dirs="$as_dir $as_dirs"
11284       as_dir=`(dirname "$as_dir") 2>/dev/null ||
11285 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11286          X"$as_dir" : 'X\(//\)[^/]' \| \
11287          X"$as_dir" : 'X\(//\)$' \| \
11288          X"$as_dir" : 'X\(/\)' \| \
11289          .     : '\(.\)' 2>/dev/null ||
11290 echo X"$as_dir" |
11291     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11292           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11293           /^X\(\/\/\)$/{ s//\1/; q; }
11294           /^X\(\/\).*/{ s//\1/; q; }
11295           s/.*/./; q'`
11296     done
11297     test ! -n "$as_dirs" || mkdir $as_dirs
11298   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11299 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11300    { (exit 1); exit 1; }; }; }
11301
11302       rm -f $ac_file
11303       mv $tmp/config.h $ac_file
11304     fi
11305   else
11306     cat $tmp/config.h
11307     rm -f $tmp/config.h
11308   fi
11309 done
11310 _ACEOF
11311 cat >>$CONFIG_STATUS <<\_ACEOF
11312
11313 #
11314 # CONFIG_COMMANDS section.
11315 #
11316 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
11317   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
11318   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
11319   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
11320 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11321          X"$ac_dest" : 'X\(//\)[^/]' \| \
11322          X"$ac_dest" : 'X\(//\)$' \| \
11323          X"$ac_dest" : 'X\(/\)' \| \
11324          .     : '\(.\)' 2>/dev/null ||
11325 echo X"$ac_dest" |
11326     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11327           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11328           /^X\(\/\/\)$/{ s//\1/; q; }
11329           /^X\(\/\).*/{ s//\1/; q; }
11330           s/.*/./; q'`
11331   { if $as_mkdir_p; then
11332     mkdir -p "$ac_dir"
11333   else
11334     as_dir="$ac_dir"
11335     as_dirs=
11336     while test ! -d "$as_dir"; do
11337       as_dirs="$as_dir $as_dirs"
11338       as_dir=`(dirname "$as_dir") 2>/dev/null ||
11339 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11340          X"$as_dir" : 'X\(//\)[^/]' \| \
11341          X"$as_dir" : 'X\(//\)$' \| \
11342          X"$as_dir" : 'X\(/\)' \| \
11343          .     : '\(.\)' 2>/dev/null ||
11344 echo X"$as_dir" |
11345     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11346           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11347           /^X\(\/\/\)$/{ s//\1/; q; }
11348           /^X\(\/\).*/{ s//\1/; q; }
11349           s/.*/./; q'`
11350     done
11351     test ! -n "$as_dirs" || mkdir $as_dirs
11352   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11353 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11354    { (exit 1); exit 1; }; }; }
11355
11356   ac_builddir=.
11357
11358 if test "$ac_dir" != .; then
11359   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11360   # A "../" for each directory in $ac_dir_suffix.
11361   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
11362 else
11363   ac_dir_suffix= ac_top_builddir=
11364 fi
11365
11366 case $srcdir in
11367   .)  # No --srcdir option.  We are building in place.
11368     ac_srcdir=.
11369     if test -z "$ac_top_builddir"; then
11370        ac_top_srcdir=.
11371     else
11372        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
11373     fi ;;
11374   [\\/]* | ?:[\\/]* )  # Absolute path.
11375     ac_srcdir=$srcdir$ac_dir_suffix;
11376     ac_top_srcdir=$srcdir ;;
11377   *) # Relative path.
11378     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
11379     ac_top_srcdir=$ac_top_builddir$srcdir ;;
11380 esac
11381
11382 # Do not use `cd foo && pwd` to compute absolute paths, because
11383 # the directories may not exist.
11384 case `pwd` in
11385 .) ac_abs_builddir="$ac_dir";;
11386 *)
11387   case "$ac_dir" in
11388   .) ac_abs_builddir=`pwd`;;
11389   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
11390   *) ac_abs_builddir=`pwd`/"$ac_dir";;
11391   esac;;
11392 esac
11393 case $ac_abs_builddir in
11394 .) ac_abs_top_builddir=${ac_top_builddir}.;;
11395 *)
11396   case ${ac_top_builddir}. in
11397   .) ac_abs_top_builddir=$ac_abs_builddir;;
11398   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
11399   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
11400   esac;;
11401 esac
11402 case $ac_abs_builddir in
11403 .) ac_abs_srcdir=$ac_srcdir;;
11404 *)
11405   case $ac_srcdir in
11406   .) ac_abs_srcdir=$ac_abs_builddir;;
11407   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
11408   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
11409   esac;;
11410 esac
11411 case $ac_abs_builddir in
11412 .) ac_abs_top_srcdir=$ac_top_srcdir;;
11413 *)
11414   case $ac_top_srcdir in
11415   .) ac_abs_top_srcdir=$ac_abs_builddir;;
11416   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
11417   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
11418   esac;;
11419 esac
11420
11421
11422   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
11423 echo "$as_me: executing $ac_dest commands" >&6;}
11424   case $ac_dest in
11425     default ) echo timestamp > stamp-h ;;
11426   esac
11427 done
11428 _ACEOF
11429
11430 cat >>$CONFIG_STATUS <<\_ACEOF
11431
11432 { (exit 0); exit 0; }
11433 _ACEOF
11434 chmod +x $CONFIG_STATUS
11435 ac_clean_files=$ac_clean_files_save
11436
11437
11438 # configure is writing to config.log, and then calls config.status.
11439 # config.status does its own redirection, appending to config.log.
11440 # Unfortunately, on DOS this fails, as config.log is still kept open
11441 # by configure, so config.status won't be able to write to it; its
11442 # output is simply discarded.  So we exec the FD to /dev/null,
11443 # effectively closing config.log, so it can be properly (re)opened and
11444 # appended to by config.status.  When coming back to configure, we
11445 # need to make the FD available again.
11446 if test "$no_create" != yes; then
11447   ac_cs_success=:
11448   ac_config_status_args=
11449   test "$silent" = yes &&
11450     ac_config_status_args="$ac_config_status_args --quiet"
11451   exec 5>/dev/null
11452   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11453   exec 5>>config.log
11454   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11455   # would make configure fail if this is the last instruction.
11456   $ac_cs_success || { (exit 1); exit 1; }
11457 fi
11458
11459
11460           ac_config_commands="$ac_config_commands default-1"
11461