Author: Kev <klmitch@mit.edu>
[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-optimization=-O2 Explicitly set the compiler optimization flags
865                           (default: -O3)
866   --with-leak-detect          Turn on the leak detector(requires patched boehm)
867   --without-ipv6          disable IPv6 support (default is autodetect)
868   --with-symlink=name     Name to give the symlink; if name is "no," no
869                           symlink will be created.
870   --with-mode=mode        Permissions (in octal) to give the binary
871   --with-owner=owner      Specify owner of the installed binary
872   --with-group=group      Specify group owner of the installed binary
873   --with-domain=domain    Domain name to use in local statistics gathering
874   --with-chroot=dir       Specify that the server will be operated under
875                           a different root directory given by dir.  See
876                           doc/readme.chroot for more information.
877   --with-dpath=dir        Directory for all server data files
878   --with-cpath=file       Set server configuration file
879   --with-lpath=file       Set the debugging log file
880   --with-maxcon=maxcon    Maximum number of connections server will accept
881
882 Some influential environment variables:
883   CC          C compiler command
884   CFLAGS      C compiler flags
885   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
886               nonstandard directory <lib dir>
887   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
888               headers in a nonstandard directory <include dir>
889   CPP         C preprocessor
890
891 Use these variables to override the choices made by `configure' or to help
892 it to find libraries and programs with nonstandard names/locations.
893
894 _ACEOF
895 fi
896
897 if test "$ac_init_help" = "recursive"; then
898   # If there are subdirs, report their specific --help.
899   ac_popdir=`pwd`
900   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
901     test -d $ac_dir || continue
902     ac_builddir=.
903
904 if test "$ac_dir" != .; then
905   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
906   # A "../" for each directory in $ac_dir_suffix.
907   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
908 else
909   ac_dir_suffix= ac_top_builddir=
910 fi
911
912 case $srcdir in
913   .)  # No --srcdir option.  We are building in place.
914     ac_srcdir=.
915     if test -z "$ac_top_builddir"; then
916        ac_top_srcdir=.
917     else
918        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
919     fi ;;
920   [\\/]* | ?:[\\/]* )  # Absolute path.
921     ac_srcdir=$srcdir$ac_dir_suffix;
922     ac_top_srcdir=$srcdir ;;
923   *) # Relative path.
924     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
925     ac_top_srcdir=$ac_top_builddir$srcdir ;;
926 esac
927
928 # Do not use `cd foo && pwd` to compute absolute paths, because
929 # the directories may not exist.
930 case `pwd` in
931 .) ac_abs_builddir="$ac_dir";;
932 *)
933   case "$ac_dir" in
934   .) ac_abs_builddir=`pwd`;;
935   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
936   *) ac_abs_builddir=`pwd`/"$ac_dir";;
937   esac;;
938 esac
939 case $ac_abs_builddir in
940 .) ac_abs_top_builddir=${ac_top_builddir}.;;
941 *)
942   case ${ac_top_builddir}. in
943   .) ac_abs_top_builddir=$ac_abs_builddir;;
944   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
945   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
946   esac;;
947 esac
948 case $ac_abs_builddir in
949 .) ac_abs_srcdir=$ac_srcdir;;
950 *)
951   case $ac_srcdir in
952   .) ac_abs_srcdir=$ac_abs_builddir;;
953   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
954   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
955   esac;;
956 esac
957 case $ac_abs_builddir in
958 .) ac_abs_top_srcdir=$ac_top_srcdir;;
959 *)
960   case $ac_top_srcdir in
961   .) ac_abs_top_srcdir=$ac_abs_builddir;;
962   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
963   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
964   esac;;
965 esac
966
967     cd $ac_dir
968     # Check for guested configure; otherwise get Cygnus style configure.
969     if test -f $ac_srcdir/configure.gnu; then
970       echo
971       $SHELL $ac_srcdir/configure.gnu  --help=recursive
972     elif test -f $ac_srcdir/configure; then
973       echo
974       $SHELL $ac_srcdir/configure  --help=recursive
975     elif test -f $ac_srcdir/configure.ac ||
976            test -f $ac_srcdir/configure.in; then
977       echo
978       $ac_configure --help
979     else
980       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
981     fi
982     cd $ac_popdir
983   done
984 fi
985
986 test -n "$ac_init_help" && exit 0
987 if $ac_init_version; then
988   cat <<\_ACEOF
989
990 Copyright (C) 2003 Free Software Foundation, Inc.
991 This configure script is free software; the Free Software Foundation
992 gives unlimited permission to copy, distribute and modify it.
993 _ACEOF
994   exit 0
995 fi
996 exec 5>config.log
997 cat >&5 <<_ACEOF
998 This file contains any messages produced by compilers while
999 running configure, to aid debugging if configure makes a mistake.
1000
1001 It was created by $as_me, which was
1002 generated by GNU Autoconf 2.59.  Invocation command line was
1003
1004   $ $0 $@
1005
1006 _ACEOF
1007 {
1008 cat <<_ASUNAME
1009 ## --------- ##
1010 ## Platform. ##
1011 ## --------- ##
1012
1013 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1014 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1015 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1016 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1017 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1018
1019 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1020 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1021
1022 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1023 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1024 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1025 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1026 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1027 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1028 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1029
1030 _ASUNAME
1031
1032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1033 for as_dir in $PATH
1034 do
1035   IFS=$as_save_IFS
1036   test -z "$as_dir" && as_dir=.
1037   echo "PATH: $as_dir"
1038 done
1039
1040 } >&5
1041
1042 cat >&5 <<_ACEOF
1043
1044
1045 ## ----------- ##
1046 ## Core tests. ##
1047 ## ----------- ##
1048
1049 _ACEOF
1050
1051
1052 # Keep a trace of the command line.
1053 # Strip out --no-create and --no-recursion so they do not pile up.
1054 # Strip out --silent because we don't want to record it for future runs.
1055 # Also quote any args containing shell meta-characters.
1056 # Make two passes to allow for proper duplicate-argument suppression.
1057 ac_configure_args=
1058 ac_configure_args0=
1059 ac_configure_args1=
1060 ac_sep=
1061 ac_must_keep_next=false
1062 for ac_pass in 1 2
1063 do
1064   for ac_arg
1065   do
1066     case $ac_arg in
1067     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1068     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1069     | -silent | --silent | --silen | --sile | --sil)
1070       continue ;;
1071     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1072       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1073     esac
1074     case $ac_pass in
1075     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1076     2)
1077       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1078       if test $ac_must_keep_next = true; then
1079         ac_must_keep_next=false # Got value, back to normal.
1080       else
1081         case $ac_arg in
1082           *=* | --config-cache | -C | -disable-* | --disable-* \
1083           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1084           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1085           | -with-* | --with-* | -without-* | --without-* | --x)
1086             case "$ac_configure_args0 " in
1087               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1088             esac
1089             ;;
1090           -* ) ac_must_keep_next=true ;;
1091         esac
1092       fi
1093       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1094       # Get rid of the leading space.
1095       ac_sep=" "
1096       ;;
1097     esac
1098   done
1099 done
1100 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1101 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1102
1103 # When interrupted or exit'd, cleanup temporary files, and complete
1104 # config.log.  We remove comments because anyway the quotes in there
1105 # would cause problems or look ugly.
1106 # WARNING: Be sure not to use single quotes in there, as some shells,
1107 # such as our DU 5.0 friend, will then `close' the trap.
1108 trap 'exit_status=$?
1109   # Save into config.log some information that might help in debugging.
1110   {
1111     echo
1112
1113     cat <<\_ASBOX
1114 ## ---------------- ##
1115 ## Cache variables. ##
1116 ## ---------------- ##
1117 _ASBOX
1118     echo
1119     # The following way of writing the cache mishandles newlines in values,
1120 {
1121   (set) 2>&1 |
1122     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1123     *ac_space=\ *)
1124       sed -n \
1125         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1126           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1127       ;;
1128     *)
1129       sed -n \
1130         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1131       ;;
1132     esac;
1133 }
1134     echo
1135
1136     cat <<\_ASBOX
1137 ## ----------------- ##
1138 ## Output variables. ##
1139 ## ----------------- ##
1140 _ASBOX
1141     echo
1142     for ac_var in $ac_subst_vars
1143     do
1144       eval ac_val=$`echo $ac_var`
1145       echo "$ac_var='"'"'$ac_val'"'"'"
1146     done | sort
1147     echo
1148
1149     if test -n "$ac_subst_files"; then
1150       cat <<\_ASBOX
1151 ## ------------- ##
1152 ## Output files. ##
1153 ## ------------- ##
1154 _ASBOX
1155       echo
1156       for ac_var in $ac_subst_files
1157       do
1158         eval ac_val=$`echo $ac_var`
1159         echo "$ac_var='"'"'$ac_val'"'"'"
1160       done | sort
1161       echo
1162     fi
1163
1164     if test -s confdefs.h; then
1165       cat <<\_ASBOX
1166 ## ----------- ##
1167 ## confdefs.h. ##
1168 ## ----------- ##
1169 _ASBOX
1170       echo
1171       sed "/^$/d" confdefs.h | sort
1172       echo
1173     fi
1174     test "$ac_signal" != 0 &&
1175       echo "$as_me: caught signal $ac_signal"
1176     echo "$as_me: exit $exit_status"
1177   } >&5
1178   rm -f core *.core &&
1179   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1180     exit $exit_status
1181      ' 0
1182 for ac_signal in 1 2 13 15; do
1183   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1184 done
1185 ac_signal=0
1186
1187 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1188 rm -rf conftest* confdefs.h
1189 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1190 echo >confdefs.h
1191
1192 # Predefined preprocessor variables.
1193
1194 cat >>confdefs.h <<_ACEOF
1195 #define PACKAGE_NAME "$PACKAGE_NAME"
1196 _ACEOF
1197
1198
1199 cat >>confdefs.h <<_ACEOF
1200 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1201 _ACEOF
1202
1203
1204 cat >>confdefs.h <<_ACEOF
1205 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1206 _ACEOF
1207
1208
1209 cat >>confdefs.h <<_ACEOF
1210 #define PACKAGE_STRING "$PACKAGE_STRING"
1211 _ACEOF
1212
1213
1214 cat >>confdefs.h <<_ACEOF
1215 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1216 _ACEOF
1217
1218
1219 # Let the site file select an alternate cache file if it wants to.
1220 # Prefer explicitly selected file to automatically selected ones.
1221 if test -z "$CONFIG_SITE"; then
1222   if test "x$prefix" != xNONE; then
1223     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1224   else
1225     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1226   fi
1227 fi
1228 for ac_site_file in $CONFIG_SITE; do
1229   if test -r "$ac_site_file"; then
1230     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1231 echo "$as_me: loading site script $ac_site_file" >&6;}
1232     sed 's/^/| /' "$ac_site_file" >&5
1233     . "$ac_site_file"
1234   fi
1235 done
1236
1237 if test -r "$cache_file"; then
1238   # Some versions of bash will fail to source /dev/null (special
1239   # files actually), so we avoid doing that.
1240   if test -f "$cache_file"; then
1241     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1242 echo "$as_me: loading cache $cache_file" >&6;}
1243     case $cache_file in
1244       [\\/]* | ?:[\\/]* ) . $cache_file;;
1245       *)                      . ./$cache_file;;
1246     esac
1247   fi
1248 else
1249   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1250 echo "$as_me: creating cache $cache_file" >&6;}
1251   >$cache_file
1252 fi
1253
1254 # Check that the precious variables saved in the cache have kept the same
1255 # value.
1256 ac_cache_corrupted=false
1257 for ac_var in `(set) 2>&1 |
1258                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1259   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1260   eval ac_new_set=\$ac_env_${ac_var}_set
1261   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1262   eval ac_new_val="\$ac_env_${ac_var}_value"
1263   case $ac_old_set,$ac_new_set in
1264     set,)
1265       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1266 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1267       ac_cache_corrupted=: ;;
1268     ,set)
1269       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1270 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1271       ac_cache_corrupted=: ;;
1272     ,);;
1273     *)
1274       if test "x$ac_old_val" != "x$ac_new_val"; then
1275         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1276 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1277         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1278 echo "$as_me:   former value:  $ac_old_val" >&2;}
1279         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1280 echo "$as_me:   current value: $ac_new_val" >&2;}
1281         ac_cache_corrupted=:
1282       fi;;
1283   esac
1284   # Pass precious variables to config.status.
1285   if test "$ac_new_set" = set; then
1286     case $ac_new_val in
1287     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1288       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1289     *) ac_arg=$ac_var=$ac_new_val ;;
1290     esac
1291     case " $ac_configure_args " in
1292       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1293       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1294     esac
1295   fi
1296 done
1297 if $ac_cache_corrupted; then
1298   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1299 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1300   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1301 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1302    { (exit 1); exit 1; }; }
1303 fi
1304
1305 ac_ext=c
1306 ac_cpp='$CPP $CPPFLAGS'
1307 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1308 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1309 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331 echo "$as_me:$LINENO: checking for installation prefix" >&5
1332 echo $ECHO_N "checking for installation prefix... $ECHO_C" >&6
1333 if test "${unet_cv_prefix+set}" = set; then
1334   echo $ECHO_N "(cached) $ECHO_C" >&6
1335 else
1336   unet_cv_prefix=$HOME
1337 fi
1338
1339 if test x"$prefix" != xNONE; then
1340     unet_cv_prefix=$prefix
1341 fi
1342 echo "$as_me:$LINENO: result: $unet_cv_prefix" >&5
1343 echo "${ECHO_T}$unet_cv_prefix" >&6
1344 ac_default_prefix=$unet_cv_prefix
1345
1346           ac_config_headers="$ac_config_headers config.h"
1347
1348
1349
1350
1351 ac_aux_dir=
1352 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1353   if test -f $ac_dir/install-sh; then
1354     ac_aux_dir=$ac_dir
1355     ac_install_sh="$ac_aux_dir/install-sh -c"
1356     break
1357   elif test -f $ac_dir/install.sh; then
1358     ac_aux_dir=$ac_dir
1359     ac_install_sh="$ac_aux_dir/install.sh -c"
1360     break
1361   elif test -f $ac_dir/shtool; then
1362     ac_aux_dir=$ac_dir
1363     ac_install_sh="$ac_aux_dir/shtool install -c"
1364     break
1365   fi
1366 done
1367 if test -z "$ac_aux_dir"; then
1368   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1369 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1370    { (exit 1); exit 1; }; }
1371 fi
1372 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1373 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1374 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1375
1376 # Make sure we can run config.sub.
1377 $ac_config_sub sun4 >/dev/null 2>&1 ||
1378   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1379 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1380    { (exit 1); exit 1; }; }
1381
1382 echo "$as_me:$LINENO: checking build system type" >&5
1383 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1384 if test "${ac_cv_build+set}" = set; then
1385   echo $ECHO_N "(cached) $ECHO_C" >&6
1386 else
1387   ac_cv_build_alias=$build_alias
1388 test -z "$ac_cv_build_alias" &&
1389   ac_cv_build_alias=`$ac_config_guess`
1390 test -z "$ac_cv_build_alias" &&
1391   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1392 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1393    { (exit 1); exit 1; }; }
1394 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1395   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1396 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1397    { (exit 1); exit 1; }; }
1398
1399 fi
1400 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1401 echo "${ECHO_T}$ac_cv_build" >&6
1402 build=$ac_cv_build
1403 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1404 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1405 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1406
1407
1408 echo "$as_me:$LINENO: checking host system type" >&5
1409 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1410 if test "${ac_cv_host+set}" = set; then
1411   echo $ECHO_N "(cached) $ECHO_C" >&6
1412 else
1413   ac_cv_host_alias=$host_alias
1414 test -z "$ac_cv_host_alias" &&
1415   ac_cv_host_alias=$ac_cv_build_alias
1416 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1417   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1418 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1419    { (exit 1); exit 1; }; }
1420
1421 fi
1422 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1423 echo "${ECHO_T}$ac_cv_host" >&6
1424 host=$ac_cv_host
1425 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1426 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1427 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1428
1429
1430
1431 ac_ext=c
1432 ac_cpp='$CPP $CPPFLAGS'
1433 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1434 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1435 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1436 if test -n "$ac_tool_prefix"; then
1437   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1438 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1439 echo "$as_me:$LINENO: checking for $ac_word" >&5
1440 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1441 if test "${ac_cv_prog_CC+set}" = set; then
1442   echo $ECHO_N "(cached) $ECHO_C" >&6
1443 else
1444   if test -n "$CC"; then
1445   ac_cv_prog_CC="$CC" # Let the user override the test.
1446 else
1447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1448 for as_dir in $PATH
1449 do
1450   IFS=$as_save_IFS
1451   test -z "$as_dir" && as_dir=.
1452   for ac_exec_ext in '' $ac_executable_extensions; do
1453   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1454     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1455     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1456     break 2
1457   fi
1458 done
1459 done
1460
1461 fi
1462 fi
1463 CC=$ac_cv_prog_CC
1464 if test -n "$CC"; then
1465   echo "$as_me:$LINENO: result: $CC" >&5
1466 echo "${ECHO_T}$CC" >&6
1467 else
1468   echo "$as_me:$LINENO: result: no" >&5
1469 echo "${ECHO_T}no" >&6
1470 fi
1471
1472 fi
1473 if test -z "$ac_cv_prog_CC"; then
1474   ac_ct_CC=$CC
1475   # Extract the first word of "gcc", so it can be a program name with args.
1476 set dummy gcc; ac_word=$2
1477 echo "$as_me:$LINENO: checking for $ac_word" >&5
1478 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1479 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1480   echo $ECHO_N "(cached) $ECHO_C" >&6
1481 else
1482   if test -n "$ac_ct_CC"; then
1483   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1484 else
1485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1486 for as_dir in $PATH
1487 do
1488   IFS=$as_save_IFS
1489   test -z "$as_dir" && as_dir=.
1490   for ac_exec_ext in '' $ac_executable_extensions; do
1491   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1492     ac_cv_prog_ac_ct_CC="gcc"
1493     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1494     break 2
1495   fi
1496 done
1497 done
1498
1499 fi
1500 fi
1501 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1502 if test -n "$ac_ct_CC"; then
1503   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1504 echo "${ECHO_T}$ac_ct_CC" >&6
1505 else
1506   echo "$as_me:$LINENO: result: no" >&5
1507 echo "${ECHO_T}no" >&6
1508 fi
1509
1510   CC=$ac_ct_CC
1511 else
1512   CC="$ac_cv_prog_CC"
1513 fi
1514
1515 if test -z "$CC"; then
1516   if test -n "$ac_tool_prefix"; then
1517   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1518 set dummy ${ac_tool_prefix}cc; ac_word=$2
1519 echo "$as_me:$LINENO: checking for $ac_word" >&5
1520 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1521 if test "${ac_cv_prog_CC+set}" = set; then
1522   echo $ECHO_N "(cached) $ECHO_C" >&6
1523 else
1524   if test -n "$CC"; then
1525   ac_cv_prog_CC="$CC" # Let the user override the test.
1526 else
1527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1528 for as_dir in $PATH
1529 do
1530   IFS=$as_save_IFS
1531   test -z "$as_dir" && as_dir=.
1532   for ac_exec_ext in '' $ac_executable_extensions; do
1533   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1534     ac_cv_prog_CC="${ac_tool_prefix}cc"
1535     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1536     break 2
1537   fi
1538 done
1539 done
1540
1541 fi
1542 fi
1543 CC=$ac_cv_prog_CC
1544 if test -n "$CC"; then
1545   echo "$as_me:$LINENO: result: $CC" >&5
1546 echo "${ECHO_T}$CC" >&6
1547 else
1548   echo "$as_me:$LINENO: result: no" >&5
1549 echo "${ECHO_T}no" >&6
1550 fi
1551
1552 fi
1553 if test -z "$ac_cv_prog_CC"; then
1554   ac_ct_CC=$CC
1555   # Extract the first word of "cc", so it can be a program name with args.
1556 set dummy cc; ac_word=$2
1557 echo "$as_me:$LINENO: checking for $ac_word" >&5
1558 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1559 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1560   echo $ECHO_N "(cached) $ECHO_C" >&6
1561 else
1562   if test -n "$ac_ct_CC"; then
1563   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1564 else
1565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1566 for as_dir in $PATH
1567 do
1568   IFS=$as_save_IFS
1569   test -z "$as_dir" && as_dir=.
1570   for ac_exec_ext in '' $ac_executable_extensions; do
1571   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1572     ac_cv_prog_ac_ct_CC="cc"
1573     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1574     break 2
1575   fi
1576 done
1577 done
1578
1579 fi
1580 fi
1581 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1582 if test -n "$ac_ct_CC"; then
1583   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1584 echo "${ECHO_T}$ac_ct_CC" >&6
1585 else
1586   echo "$as_me:$LINENO: result: no" >&5
1587 echo "${ECHO_T}no" >&6
1588 fi
1589
1590   CC=$ac_ct_CC
1591 else
1592   CC="$ac_cv_prog_CC"
1593 fi
1594
1595 fi
1596 if test -z "$CC"; then
1597   # Extract the first word of "cc", so it can be a program name with args.
1598 set dummy cc; ac_word=$2
1599 echo "$as_me:$LINENO: checking for $ac_word" >&5
1600 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1601 if test "${ac_cv_prog_CC+set}" = set; then
1602   echo $ECHO_N "(cached) $ECHO_C" >&6
1603 else
1604   if test -n "$CC"; then
1605   ac_cv_prog_CC="$CC" # Let the user override the test.
1606 else
1607   ac_prog_rejected=no
1608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1609 for as_dir in $PATH
1610 do
1611   IFS=$as_save_IFS
1612   test -z "$as_dir" && as_dir=.
1613   for ac_exec_ext in '' $ac_executable_extensions; do
1614   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1615     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1616        ac_prog_rejected=yes
1617        continue
1618      fi
1619     ac_cv_prog_CC="cc"
1620     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1621     break 2
1622   fi
1623 done
1624 done
1625
1626 if test $ac_prog_rejected = yes; then
1627   # We found a bogon in the path, so make sure we never use it.
1628   set dummy $ac_cv_prog_CC
1629   shift
1630   if test $# != 0; then
1631     # We chose a different compiler from the bogus one.
1632     # However, it has the same basename, so the bogon will be chosen
1633     # first if we set CC to just the basename; use the full file name.
1634     shift
1635     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1636   fi
1637 fi
1638 fi
1639 fi
1640 CC=$ac_cv_prog_CC
1641 if test -n "$CC"; then
1642   echo "$as_me:$LINENO: result: $CC" >&5
1643 echo "${ECHO_T}$CC" >&6
1644 else
1645   echo "$as_me:$LINENO: result: no" >&5
1646 echo "${ECHO_T}no" >&6
1647 fi
1648
1649 fi
1650 if test -z "$CC"; then
1651   if test -n "$ac_tool_prefix"; then
1652   for ac_prog in cl
1653   do
1654     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1655 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1656 echo "$as_me:$LINENO: checking for $ac_word" >&5
1657 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1658 if test "${ac_cv_prog_CC+set}" = set; then
1659   echo $ECHO_N "(cached) $ECHO_C" >&6
1660 else
1661   if test -n "$CC"; then
1662   ac_cv_prog_CC="$CC" # Let the user override the test.
1663 else
1664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1665 for as_dir in $PATH
1666 do
1667   IFS=$as_save_IFS
1668   test -z "$as_dir" && as_dir=.
1669   for ac_exec_ext in '' $ac_executable_extensions; do
1670   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1671     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1672     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1673     break 2
1674   fi
1675 done
1676 done
1677
1678 fi
1679 fi
1680 CC=$ac_cv_prog_CC
1681 if test -n "$CC"; then
1682   echo "$as_me:$LINENO: result: $CC" >&5
1683 echo "${ECHO_T}$CC" >&6
1684 else
1685   echo "$as_me:$LINENO: result: no" >&5
1686 echo "${ECHO_T}no" >&6
1687 fi
1688
1689     test -n "$CC" && break
1690   done
1691 fi
1692 if test -z "$CC"; then
1693   ac_ct_CC=$CC
1694   for ac_prog in cl
1695 do
1696   # Extract the first word of "$ac_prog", so it can be a program name with args.
1697 set dummy $ac_prog; ac_word=$2
1698 echo "$as_me:$LINENO: checking for $ac_word" >&5
1699 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1700 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1701   echo $ECHO_N "(cached) $ECHO_C" >&6
1702 else
1703   if test -n "$ac_ct_CC"; then
1704   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1705 else
1706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1707 for as_dir in $PATH
1708 do
1709   IFS=$as_save_IFS
1710   test -z "$as_dir" && as_dir=.
1711   for ac_exec_ext in '' $ac_executable_extensions; do
1712   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1713     ac_cv_prog_ac_ct_CC="$ac_prog"
1714     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1715     break 2
1716   fi
1717 done
1718 done
1719
1720 fi
1721 fi
1722 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1723 if test -n "$ac_ct_CC"; then
1724   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1725 echo "${ECHO_T}$ac_ct_CC" >&6
1726 else
1727   echo "$as_me:$LINENO: result: no" >&5
1728 echo "${ECHO_T}no" >&6
1729 fi
1730
1731   test -n "$ac_ct_CC" && break
1732 done
1733
1734   CC=$ac_ct_CC
1735 fi
1736
1737 fi
1738
1739
1740 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1741 See \`config.log' for more details." >&5
1742 echo "$as_me: error: no acceptable C compiler found in \$PATH
1743 See \`config.log' for more details." >&2;}
1744    { (exit 1); exit 1; }; }
1745
1746 # Provide some information about the compiler.
1747 echo "$as_me:$LINENO:" \
1748      "checking for C compiler version" >&5
1749 ac_compiler=`set X $ac_compile; echo $2`
1750 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1751   (eval $ac_compiler --version </dev/null >&5) 2>&5
1752   ac_status=$?
1753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1754   (exit $ac_status); }
1755 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1756   (eval $ac_compiler -v </dev/null >&5) 2>&5
1757   ac_status=$?
1758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1759   (exit $ac_status); }
1760 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1761   (eval $ac_compiler -V </dev/null >&5) 2>&5
1762   ac_status=$?
1763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1764   (exit $ac_status); }
1765
1766 cat >conftest.$ac_ext <<_ACEOF
1767 /* confdefs.h.  */
1768 _ACEOF
1769 cat confdefs.h >>conftest.$ac_ext
1770 cat >>conftest.$ac_ext <<_ACEOF
1771 /* end confdefs.h.  */
1772
1773 int
1774 main ()
1775 {
1776
1777   ;
1778   return 0;
1779 }
1780 _ACEOF
1781 ac_clean_files_save=$ac_clean_files
1782 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1783 # Try to create an executable without -o first, disregard a.out.
1784 # It will help us diagnose broken compilers, and finding out an intuition
1785 # of exeext.
1786 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1787 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1788 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1789 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1790   (eval $ac_link_default) 2>&5
1791   ac_status=$?
1792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1793   (exit $ac_status); }; then
1794   # Find the output, starting from the most likely.  This scheme is
1795 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1796 # resort.
1797
1798 # Be careful to initialize this variable, since it used to be cached.
1799 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1800 ac_cv_exeext=
1801 # b.out is created by i960 compilers.
1802 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1803 do
1804   test -f "$ac_file" || continue
1805   case $ac_file in
1806     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1807         ;;
1808     conftest.$ac_ext )
1809         # This is the source file.
1810         ;;
1811     [ab].out )
1812         # We found the default executable, but exeext='' is most
1813         # certainly right.
1814         break;;
1815     *.* )
1816         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1817         # FIXME: I believe we export ac_cv_exeext for Libtool,
1818         # but it would be cool to find out if it's true.  Does anybody
1819         # maintain Libtool? --akim.
1820         export ac_cv_exeext
1821         break;;
1822     * )
1823         break;;
1824   esac
1825 done
1826 else
1827   echo "$as_me: failed program was:" >&5
1828 sed 's/^/| /' conftest.$ac_ext >&5
1829
1830 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1831 See \`config.log' for more details." >&5
1832 echo "$as_me: error: C compiler cannot create executables
1833 See \`config.log' for more details." >&2;}
1834    { (exit 77); exit 77; }; }
1835 fi
1836
1837 ac_exeext=$ac_cv_exeext
1838 echo "$as_me:$LINENO: result: $ac_file" >&5
1839 echo "${ECHO_T}$ac_file" >&6
1840
1841 # Check the compiler produces executables we can run.  If not, either
1842 # the compiler is broken, or we cross compile.
1843 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1844 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1845 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1846 # If not cross compiling, check that we can run a simple program.
1847 if test "$cross_compiling" != yes; then
1848   if { ac_try='./$ac_file'
1849   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1850   (eval $ac_try) 2>&5
1851   ac_status=$?
1852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1853   (exit $ac_status); }; }; then
1854     cross_compiling=no
1855   else
1856     if test "$cross_compiling" = maybe; then
1857         cross_compiling=yes
1858     else
1859         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1860 If you meant to cross compile, use \`--host'.
1861 See \`config.log' for more details." >&5
1862 echo "$as_me: error: cannot run C compiled programs.
1863 If you meant to cross compile, use \`--host'.
1864 See \`config.log' for more details." >&2;}
1865    { (exit 1); exit 1; }; }
1866     fi
1867   fi
1868 fi
1869 echo "$as_me:$LINENO: result: yes" >&5
1870 echo "${ECHO_T}yes" >&6
1871
1872 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1873 ac_clean_files=$ac_clean_files_save
1874 # Check the compiler produces executables we can run.  If not, either
1875 # the compiler is broken, or we cross compile.
1876 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1877 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1878 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1879 echo "${ECHO_T}$cross_compiling" >&6
1880
1881 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1882 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1883 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1884   (eval $ac_link) 2>&5
1885   ac_status=$?
1886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1887   (exit $ac_status); }; then
1888   # If both `conftest.exe' and `conftest' are `present' (well, observable)
1889 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1890 # work properly (i.e., refer to `conftest.exe'), while it won't with
1891 # `rm'.
1892 for ac_file in conftest.exe conftest conftest.*; do
1893   test -f "$ac_file" || continue
1894   case $ac_file in
1895     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1896     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1897           export ac_cv_exeext
1898           break;;
1899     * ) break;;
1900   esac
1901 done
1902 else
1903   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1904 See \`config.log' for more details." >&5
1905 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1906 See \`config.log' for more details." >&2;}
1907    { (exit 1); exit 1; }; }
1908 fi
1909
1910 rm -f conftest$ac_cv_exeext
1911 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1912 echo "${ECHO_T}$ac_cv_exeext" >&6
1913
1914 rm -f conftest.$ac_ext
1915 EXEEXT=$ac_cv_exeext
1916 ac_exeext=$EXEEXT
1917 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1918 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1919 if test "${ac_cv_objext+set}" = set; then
1920   echo $ECHO_N "(cached) $ECHO_C" >&6
1921 else
1922   cat >conftest.$ac_ext <<_ACEOF
1923 /* confdefs.h.  */
1924 _ACEOF
1925 cat confdefs.h >>conftest.$ac_ext
1926 cat >>conftest.$ac_ext <<_ACEOF
1927 /* end confdefs.h.  */
1928
1929 int
1930 main ()
1931 {
1932
1933   ;
1934   return 0;
1935 }
1936 _ACEOF
1937 rm -f conftest.o conftest.obj
1938 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1939   (eval $ac_compile) 2>&5
1940   ac_status=$?
1941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1942   (exit $ac_status); }; then
1943   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1944   case $ac_file in
1945     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1946     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1947        break;;
1948   esac
1949 done
1950 else
1951   echo "$as_me: failed program was:" >&5
1952 sed 's/^/| /' conftest.$ac_ext >&5
1953
1954 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1955 See \`config.log' for more details." >&5
1956 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1957 See \`config.log' for more details." >&2;}
1958    { (exit 1); exit 1; }; }
1959 fi
1960
1961 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1962 fi
1963 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1964 echo "${ECHO_T}$ac_cv_objext" >&6
1965 OBJEXT=$ac_cv_objext
1966 ac_objext=$OBJEXT
1967 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1968 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1969 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1970   echo $ECHO_N "(cached) $ECHO_C" >&6
1971 else
1972   cat >conftest.$ac_ext <<_ACEOF
1973 /* confdefs.h.  */
1974 _ACEOF
1975 cat confdefs.h >>conftest.$ac_ext
1976 cat >>conftest.$ac_ext <<_ACEOF
1977 /* end confdefs.h.  */
1978
1979 int
1980 main ()
1981 {
1982 #ifndef __GNUC__
1983        choke me
1984 #endif
1985
1986   ;
1987   return 0;
1988 }
1989 _ACEOF
1990 rm -f conftest.$ac_objext
1991 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1992   (eval $ac_compile) 2>conftest.er1
1993   ac_status=$?
1994   grep -v '^ *+' conftest.er1 >conftest.err
1995   rm -f conftest.er1
1996   cat conftest.err >&5
1997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1998   (exit $ac_status); } &&
1999          { ac_try='test -z "$ac_c_werror_flag"
2000                          || test ! -s conftest.err'
2001   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2002   (eval $ac_try) 2>&5
2003   ac_status=$?
2004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2005   (exit $ac_status); }; } &&
2006          { ac_try='test -s conftest.$ac_objext'
2007   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2008   (eval $ac_try) 2>&5
2009   ac_status=$?
2010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2011   (exit $ac_status); }; }; then
2012   ac_compiler_gnu=yes
2013 else
2014   echo "$as_me: failed program was:" >&5
2015 sed 's/^/| /' conftest.$ac_ext >&5
2016
2017 ac_compiler_gnu=no
2018 fi
2019 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2020 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2021
2022 fi
2023 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2024 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2025 GCC=`test $ac_compiler_gnu = yes && echo yes`
2026 ac_test_CFLAGS=${CFLAGS+set}
2027 ac_save_CFLAGS=$CFLAGS
2028 CFLAGS="-g"
2029 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2030 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2031 if test "${ac_cv_prog_cc_g+set}" = set; then
2032   echo $ECHO_N "(cached) $ECHO_C" >&6
2033 else
2034   cat >conftest.$ac_ext <<_ACEOF
2035 /* confdefs.h.  */
2036 _ACEOF
2037 cat confdefs.h >>conftest.$ac_ext
2038 cat >>conftest.$ac_ext <<_ACEOF
2039 /* end confdefs.h.  */
2040
2041 int
2042 main ()
2043 {
2044
2045   ;
2046   return 0;
2047 }
2048 _ACEOF
2049 rm -f conftest.$ac_objext
2050 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2051   (eval $ac_compile) 2>conftest.er1
2052   ac_status=$?
2053   grep -v '^ *+' conftest.er1 >conftest.err
2054   rm -f conftest.er1
2055   cat conftest.err >&5
2056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2057   (exit $ac_status); } &&
2058          { ac_try='test -z "$ac_c_werror_flag"
2059                          || test ! -s conftest.err'
2060   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2061   (eval $ac_try) 2>&5
2062   ac_status=$?
2063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2064   (exit $ac_status); }; } &&
2065          { ac_try='test -s conftest.$ac_objext'
2066   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2067   (eval $ac_try) 2>&5
2068   ac_status=$?
2069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2070   (exit $ac_status); }; }; then
2071   ac_cv_prog_cc_g=yes
2072 else
2073   echo "$as_me: failed program was:" >&5
2074 sed 's/^/| /' conftest.$ac_ext >&5
2075
2076 ac_cv_prog_cc_g=no
2077 fi
2078 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2079 fi
2080 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2081 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2082 if test "$ac_test_CFLAGS" = set; then
2083   CFLAGS=$ac_save_CFLAGS
2084 elif test $ac_cv_prog_cc_g = yes; then
2085   if test "$GCC" = yes; then
2086     CFLAGS="-g -O2"
2087   else
2088     CFLAGS="-g"
2089   fi
2090 else
2091   if test "$GCC" = yes; then
2092     CFLAGS="-O2"
2093   else
2094     CFLAGS=
2095   fi
2096 fi
2097 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2098 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2099 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2100   echo $ECHO_N "(cached) $ECHO_C" >&6
2101 else
2102   ac_cv_prog_cc_stdc=no
2103 ac_save_CC=$CC
2104 cat >conftest.$ac_ext <<_ACEOF
2105 /* confdefs.h.  */
2106 _ACEOF
2107 cat confdefs.h >>conftest.$ac_ext
2108 cat >>conftest.$ac_ext <<_ACEOF
2109 /* end confdefs.h.  */
2110 #include <stdarg.h>
2111 #include <stdio.h>
2112 #include <sys/types.h>
2113 #include <sys/stat.h>
2114 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2115 struct buf { int x; };
2116 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2117 static char *e (p, i)
2118      char **p;
2119      int i;
2120 {
2121   return p[i];
2122 }
2123 static char *f (char * (*g) (char **, int), char **p, ...)
2124 {
2125   char *s;
2126   va_list v;
2127   va_start (v,p);
2128   s = g (p, va_arg (v,int));
2129   va_end (v);
2130   return s;
2131 }
2132
2133 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2134    function prototypes and stuff, but not '\xHH' hex character constants.
2135    These don't provoke an error unfortunately, instead are silently treated
2136    as 'x'.  The following induces an error, until -std1 is added to get
2137    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2138    array size at least.  It's necessary to write '\x00'==0 to get something
2139    that's true only with -std1.  */
2140 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2141
2142 int test (int i, double x);
2143 struct s1 {int (*f) (int a);};
2144 struct s2 {int (*f) (double a);};
2145 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2146 int argc;
2147 char **argv;
2148 int
2149 main ()
2150 {
2151 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2152   ;
2153   return 0;
2154 }
2155 _ACEOF
2156 # Don't try gcc -ansi; that turns off useful extensions and
2157 # breaks some systems' header files.
2158 # AIX                   -qlanglvl=ansi
2159 # Ultrix and OSF/1      -std1
2160 # HP-UX 10.20 and later -Ae
2161 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2162 # SVR4                  -Xc -D__EXTENSIONS__
2163 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2164 do
2165   CC="$ac_save_CC $ac_arg"
2166   rm -f conftest.$ac_objext
2167 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2168   (eval $ac_compile) 2>conftest.er1
2169   ac_status=$?
2170   grep -v '^ *+' conftest.er1 >conftest.err
2171   rm -f conftest.er1
2172   cat conftest.err >&5
2173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2174   (exit $ac_status); } &&
2175          { ac_try='test -z "$ac_c_werror_flag"
2176                          || test ! -s conftest.err'
2177   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2178   (eval $ac_try) 2>&5
2179   ac_status=$?
2180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2181   (exit $ac_status); }; } &&
2182          { ac_try='test -s conftest.$ac_objext'
2183   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2184   (eval $ac_try) 2>&5
2185   ac_status=$?
2186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2187   (exit $ac_status); }; }; then
2188   ac_cv_prog_cc_stdc=$ac_arg
2189 break
2190 else
2191   echo "$as_me: failed program was:" >&5
2192 sed 's/^/| /' conftest.$ac_ext >&5
2193
2194 fi
2195 rm -f conftest.err conftest.$ac_objext
2196 done
2197 rm -f conftest.$ac_ext conftest.$ac_objext
2198 CC=$ac_save_CC
2199
2200 fi
2201
2202 case "x$ac_cv_prog_cc_stdc" in
2203   x|xno)
2204     echo "$as_me:$LINENO: result: none needed" >&5
2205 echo "${ECHO_T}none needed" >&6 ;;
2206   *)
2207     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2208 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2209     CC="$CC $ac_cv_prog_cc_stdc" ;;
2210 esac
2211
2212 # Some people use a C++ compiler to compile C.  Since we use `exit',
2213 # in C++ we need to declare it.  In case someone uses the same compiler
2214 # for both compiling C and C++ we need to have the C++ compiler decide
2215 # the declaration of exit, since it's the most demanding environment.
2216 cat >conftest.$ac_ext <<_ACEOF
2217 #ifndef __cplusplus
2218   choke me
2219 #endif
2220 _ACEOF
2221 rm -f conftest.$ac_objext
2222 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2223   (eval $ac_compile) 2>conftest.er1
2224   ac_status=$?
2225   grep -v '^ *+' conftest.er1 >conftest.err
2226   rm -f conftest.er1
2227   cat conftest.err >&5
2228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2229   (exit $ac_status); } &&
2230          { ac_try='test -z "$ac_c_werror_flag"
2231                          || test ! -s conftest.err'
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); }; } &&
2237          { ac_try='test -s conftest.$ac_objext'
2238   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2239   (eval $ac_try) 2>&5
2240   ac_status=$?
2241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2242   (exit $ac_status); }; }; then
2243   for ac_declaration in \
2244    '' \
2245    'extern "C" void std::exit (int) throw (); using std::exit;' \
2246    'extern "C" void std::exit (int); using std::exit;' \
2247    'extern "C" void exit (int) throw ();' \
2248    'extern "C" void exit (int);' \
2249    'void exit (int);'
2250 do
2251   cat >conftest.$ac_ext <<_ACEOF
2252 /* confdefs.h.  */
2253 _ACEOF
2254 cat confdefs.h >>conftest.$ac_ext
2255 cat >>conftest.$ac_ext <<_ACEOF
2256 /* end confdefs.h.  */
2257 $ac_declaration
2258 #include <stdlib.h>
2259 int
2260 main ()
2261 {
2262 exit (42);
2263   ;
2264   return 0;
2265 }
2266 _ACEOF
2267 rm -f conftest.$ac_objext
2268 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2269   (eval $ac_compile) 2>conftest.er1
2270   ac_status=$?
2271   grep -v '^ *+' conftest.er1 >conftest.err
2272   rm -f conftest.er1
2273   cat conftest.err >&5
2274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2275   (exit $ac_status); } &&
2276          { ac_try='test -z "$ac_c_werror_flag"
2277                          || test ! -s conftest.err'
2278   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2279   (eval $ac_try) 2>&5
2280   ac_status=$?
2281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2282   (exit $ac_status); }; } &&
2283          { ac_try='test -s conftest.$ac_objext'
2284   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2285   (eval $ac_try) 2>&5
2286   ac_status=$?
2287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2288   (exit $ac_status); }; }; then
2289   :
2290 else
2291   echo "$as_me: failed program was:" >&5
2292 sed 's/^/| /' conftest.$ac_ext >&5
2293
2294 continue
2295 fi
2296 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2297   cat >conftest.$ac_ext <<_ACEOF
2298 /* confdefs.h.  */
2299 _ACEOF
2300 cat confdefs.h >>conftest.$ac_ext
2301 cat >>conftest.$ac_ext <<_ACEOF
2302 /* end confdefs.h.  */
2303 $ac_declaration
2304 int
2305 main ()
2306 {
2307 exit (42);
2308   ;
2309   return 0;
2310 }
2311 _ACEOF
2312 rm -f conftest.$ac_objext
2313 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2314   (eval $ac_compile) 2>conftest.er1
2315   ac_status=$?
2316   grep -v '^ *+' conftest.er1 >conftest.err
2317   rm -f conftest.er1
2318   cat conftest.err >&5
2319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2320   (exit $ac_status); } &&
2321          { ac_try='test -z "$ac_c_werror_flag"
2322                          || test ! -s conftest.err'
2323   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2324   (eval $ac_try) 2>&5
2325   ac_status=$?
2326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2327   (exit $ac_status); }; } &&
2328          { ac_try='test -s conftest.$ac_objext'
2329   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2330   (eval $ac_try) 2>&5
2331   ac_status=$?
2332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2333   (exit $ac_status); }; }; then
2334   break
2335 else
2336   echo "$as_me: failed program was:" >&5
2337 sed 's/^/| /' conftest.$ac_ext >&5
2338
2339 fi
2340 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2341 done
2342 rm -f conftest*
2343 if test -n "$ac_declaration"; then
2344   echo '#ifdef __cplusplus' >>confdefs.h
2345   echo $ac_declaration      >>confdefs.h
2346   echo '#endif'             >>confdefs.h
2347 fi
2348
2349 else
2350   echo "$as_me: failed program was:" >&5
2351 sed 's/^/| /' conftest.$ac_ext >&5
2352
2353 fi
2354 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2355 ac_ext=c
2356 ac_cpp='$CPP $CPPFLAGS'
2357 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2358 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2359 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2360
2361
2362 ac_ext=c
2363 ac_cpp='$CPP $CPPFLAGS'
2364 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2365 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2366 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2367 if test -n "$ac_tool_prefix"; then
2368   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2369 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2370 echo "$as_me:$LINENO: checking for $ac_word" >&5
2371 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2372 if test "${ac_cv_prog_CC+set}" = set; then
2373   echo $ECHO_N "(cached) $ECHO_C" >&6
2374 else
2375   if test -n "$CC"; then
2376   ac_cv_prog_CC="$CC" # Let the user override the test.
2377 else
2378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2379 for as_dir in $PATH
2380 do
2381   IFS=$as_save_IFS
2382   test -z "$as_dir" && as_dir=.
2383   for ac_exec_ext in '' $ac_executable_extensions; do
2384   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2385     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2386     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2387     break 2
2388   fi
2389 done
2390 done
2391
2392 fi
2393 fi
2394 CC=$ac_cv_prog_CC
2395 if test -n "$CC"; then
2396   echo "$as_me:$LINENO: result: $CC" >&5
2397 echo "${ECHO_T}$CC" >&6
2398 else
2399   echo "$as_me:$LINENO: result: no" >&5
2400 echo "${ECHO_T}no" >&6
2401 fi
2402
2403 fi
2404 if test -z "$ac_cv_prog_CC"; then
2405   ac_ct_CC=$CC
2406   # Extract the first word of "gcc", so it can be a program name with args.
2407 set dummy gcc; ac_word=$2
2408 echo "$as_me:$LINENO: checking for $ac_word" >&5
2409 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2410 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2411   echo $ECHO_N "(cached) $ECHO_C" >&6
2412 else
2413   if test -n "$ac_ct_CC"; then
2414   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2415 else
2416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2417 for as_dir in $PATH
2418 do
2419   IFS=$as_save_IFS
2420   test -z "$as_dir" && as_dir=.
2421   for ac_exec_ext in '' $ac_executable_extensions; do
2422   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2423     ac_cv_prog_ac_ct_CC="gcc"
2424     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2425     break 2
2426   fi
2427 done
2428 done
2429
2430 fi
2431 fi
2432 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2433 if test -n "$ac_ct_CC"; then
2434   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2435 echo "${ECHO_T}$ac_ct_CC" >&6
2436 else
2437   echo "$as_me:$LINENO: result: no" >&5
2438 echo "${ECHO_T}no" >&6
2439 fi
2440
2441   CC=$ac_ct_CC
2442 else
2443   CC="$ac_cv_prog_CC"
2444 fi
2445
2446 if test -z "$CC"; then
2447   if test -n "$ac_tool_prefix"; then
2448   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2449 set dummy ${ac_tool_prefix}cc; ac_word=$2
2450 echo "$as_me:$LINENO: checking for $ac_word" >&5
2451 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2452 if test "${ac_cv_prog_CC+set}" = set; then
2453   echo $ECHO_N "(cached) $ECHO_C" >&6
2454 else
2455   if test -n "$CC"; then
2456   ac_cv_prog_CC="$CC" # Let the user override the test.
2457 else
2458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2459 for as_dir in $PATH
2460 do
2461   IFS=$as_save_IFS
2462   test -z "$as_dir" && as_dir=.
2463   for ac_exec_ext in '' $ac_executable_extensions; do
2464   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2465     ac_cv_prog_CC="${ac_tool_prefix}cc"
2466     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2467     break 2
2468   fi
2469 done
2470 done
2471
2472 fi
2473 fi
2474 CC=$ac_cv_prog_CC
2475 if test -n "$CC"; then
2476   echo "$as_me:$LINENO: result: $CC" >&5
2477 echo "${ECHO_T}$CC" >&6
2478 else
2479   echo "$as_me:$LINENO: result: no" >&5
2480 echo "${ECHO_T}no" >&6
2481 fi
2482
2483 fi
2484 if test -z "$ac_cv_prog_CC"; then
2485   ac_ct_CC=$CC
2486   # Extract the first word of "cc", so it can be a program name with args.
2487 set dummy cc; ac_word=$2
2488 echo "$as_me:$LINENO: checking for $ac_word" >&5
2489 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2490 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2491   echo $ECHO_N "(cached) $ECHO_C" >&6
2492 else
2493   if test -n "$ac_ct_CC"; then
2494   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2495 else
2496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2497 for as_dir in $PATH
2498 do
2499   IFS=$as_save_IFS
2500   test -z "$as_dir" && as_dir=.
2501   for ac_exec_ext in '' $ac_executable_extensions; do
2502   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2503     ac_cv_prog_ac_ct_CC="cc"
2504     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2505     break 2
2506   fi
2507 done
2508 done
2509
2510 fi
2511 fi
2512 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2513 if test -n "$ac_ct_CC"; then
2514   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2515 echo "${ECHO_T}$ac_ct_CC" >&6
2516 else
2517   echo "$as_me:$LINENO: result: no" >&5
2518 echo "${ECHO_T}no" >&6
2519 fi
2520
2521   CC=$ac_ct_CC
2522 else
2523   CC="$ac_cv_prog_CC"
2524 fi
2525
2526 fi
2527 if test -z "$CC"; then
2528   # Extract the first word of "cc", so it can be a program name with args.
2529 set dummy cc; ac_word=$2
2530 echo "$as_me:$LINENO: checking for $ac_word" >&5
2531 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2532 if test "${ac_cv_prog_CC+set}" = set; then
2533   echo $ECHO_N "(cached) $ECHO_C" >&6
2534 else
2535   if test -n "$CC"; then
2536   ac_cv_prog_CC="$CC" # Let the user override the test.
2537 else
2538   ac_prog_rejected=no
2539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2540 for as_dir in $PATH
2541 do
2542   IFS=$as_save_IFS
2543   test -z "$as_dir" && as_dir=.
2544   for ac_exec_ext in '' $ac_executable_extensions; do
2545   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2546     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2547        ac_prog_rejected=yes
2548        continue
2549      fi
2550     ac_cv_prog_CC="cc"
2551     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2552     break 2
2553   fi
2554 done
2555 done
2556
2557 if test $ac_prog_rejected = yes; then
2558   # We found a bogon in the path, so make sure we never use it.
2559   set dummy $ac_cv_prog_CC
2560   shift
2561   if test $# != 0; then
2562     # We chose a different compiler from the bogus one.
2563     # However, it has the same basename, so the bogon will be chosen
2564     # first if we set CC to just the basename; use the full file name.
2565     shift
2566     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2567   fi
2568 fi
2569 fi
2570 fi
2571 CC=$ac_cv_prog_CC
2572 if test -n "$CC"; then
2573   echo "$as_me:$LINENO: result: $CC" >&5
2574 echo "${ECHO_T}$CC" >&6
2575 else
2576   echo "$as_me:$LINENO: result: no" >&5
2577 echo "${ECHO_T}no" >&6
2578 fi
2579
2580 fi
2581 if test -z "$CC"; then
2582   if test -n "$ac_tool_prefix"; then
2583   for ac_prog in cl
2584   do
2585     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2586 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2587 echo "$as_me:$LINENO: checking for $ac_word" >&5
2588 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2589 if test "${ac_cv_prog_CC+set}" = set; then
2590   echo $ECHO_N "(cached) $ECHO_C" >&6
2591 else
2592   if test -n "$CC"; then
2593   ac_cv_prog_CC="$CC" # Let the user override the test.
2594 else
2595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2596 for as_dir in $PATH
2597 do
2598   IFS=$as_save_IFS
2599   test -z "$as_dir" && as_dir=.
2600   for ac_exec_ext in '' $ac_executable_extensions; do
2601   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2602     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2603     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2604     break 2
2605   fi
2606 done
2607 done
2608
2609 fi
2610 fi
2611 CC=$ac_cv_prog_CC
2612 if test -n "$CC"; then
2613   echo "$as_me:$LINENO: result: $CC" >&5
2614 echo "${ECHO_T}$CC" >&6
2615 else
2616   echo "$as_me:$LINENO: result: no" >&5
2617 echo "${ECHO_T}no" >&6
2618 fi
2619
2620     test -n "$CC" && break
2621   done
2622 fi
2623 if test -z "$CC"; then
2624   ac_ct_CC=$CC
2625   for ac_prog in cl
2626 do
2627   # Extract the first word of "$ac_prog", so it can be a program name with args.
2628 set dummy $ac_prog; ac_word=$2
2629 echo "$as_me:$LINENO: checking for $ac_word" >&5
2630 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2631 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2632   echo $ECHO_N "(cached) $ECHO_C" >&6
2633 else
2634   if test -n "$ac_ct_CC"; then
2635   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2636 else
2637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2638 for as_dir in $PATH
2639 do
2640   IFS=$as_save_IFS
2641   test -z "$as_dir" && as_dir=.
2642   for ac_exec_ext in '' $ac_executable_extensions; do
2643   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2644     ac_cv_prog_ac_ct_CC="$ac_prog"
2645     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2646     break 2
2647   fi
2648 done
2649 done
2650
2651 fi
2652 fi
2653 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2654 if test -n "$ac_ct_CC"; then
2655   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2656 echo "${ECHO_T}$ac_ct_CC" >&6
2657 else
2658   echo "$as_me:$LINENO: result: no" >&5
2659 echo "${ECHO_T}no" >&6
2660 fi
2661
2662   test -n "$ac_ct_CC" && break
2663 done
2664
2665   CC=$ac_ct_CC
2666 fi
2667
2668 fi
2669
2670
2671 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2672 See \`config.log' for more details." >&5
2673 echo "$as_me: error: no acceptable C compiler found in \$PATH
2674 See \`config.log' for more details." >&2;}
2675    { (exit 1); exit 1; }; }
2676
2677 # Provide some information about the compiler.
2678 echo "$as_me:$LINENO:" \
2679      "checking for C compiler version" >&5
2680 ac_compiler=`set X $ac_compile; echo $2`
2681 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2682   (eval $ac_compiler --version </dev/null >&5) 2>&5
2683   ac_status=$?
2684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2685   (exit $ac_status); }
2686 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2687   (eval $ac_compiler -v </dev/null >&5) 2>&5
2688   ac_status=$?
2689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2690   (exit $ac_status); }
2691 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2692   (eval $ac_compiler -V </dev/null >&5) 2>&5
2693   ac_status=$?
2694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2695   (exit $ac_status); }
2696
2697 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2698 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2699 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2700   echo $ECHO_N "(cached) $ECHO_C" >&6
2701 else
2702   cat >conftest.$ac_ext <<_ACEOF
2703 /* confdefs.h.  */
2704 _ACEOF
2705 cat confdefs.h >>conftest.$ac_ext
2706 cat >>conftest.$ac_ext <<_ACEOF
2707 /* end confdefs.h.  */
2708
2709 int
2710 main ()
2711 {
2712 #ifndef __GNUC__
2713        choke me
2714 #endif
2715
2716   ;
2717   return 0;
2718 }
2719 _ACEOF
2720 rm -f conftest.$ac_objext
2721 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2722   (eval $ac_compile) 2>conftest.er1
2723   ac_status=$?
2724   grep -v '^ *+' conftest.er1 >conftest.err
2725   rm -f conftest.er1
2726   cat conftest.err >&5
2727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2728   (exit $ac_status); } &&
2729          { ac_try='test -z "$ac_c_werror_flag"
2730                          || test ! -s conftest.err'
2731   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2732   (eval $ac_try) 2>&5
2733   ac_status=$?
2734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2735   (exit $ac_status); }; } &&
2736          { ac_try='test -s conftest.$ac_objext'
2737   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2738   (eval $ac_try) 2>&5
2739   ac_status=$?
2740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2741   (exit $ac_status); }; }; then
2742   ac_compiler_gnu=yes
2743 else
2744   echo "$as_me: failed program was:" >&5
2745 sed 's/^/| /' conftest.$ac_ext >&5
2746
2747 ac_compiler_gnu=no
2748 fi
2749 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2750 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2751
2752 fi
2753 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2754 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2755 GCC=`test $ac_compiler_gnu = yes && echo yes`
2756 ac_test_CFLAGS=${CFLAGS+set}
2757 ac_save_CFLAGS=$CFLAGS
2758 CFLAGS="-g"
2759 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2760 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2761 if test "${ac_cv_prog_cc_g+set}" = set; then
2762   echo $ECHO_N "(cached) $ECHO_C" >&6
2763 else
2764   cat >conftest.$ac_ext <<_ACEOF
2765 /* confdefs.h.  */
2766 _ACEOF
2767 cat confdefs.h >>conftest.$ac_ext
2768 cat >>conftest.$ac_ext <<_ACEOF
2769 /* end confdefs.h.  */
2770
2771 int
2772 main ()
2773 {
2774
2775   ;
2776   return 0;
2777 }
2778 _ACEOF
2779 rm -f conftest.$ac_objext
2780 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2781   (eval $ac_compile) 2>conftest.er1
2782   ac_status=$?
2783   grep -v '^ *+' conftest.er1 >conftest.err
2784   rm -f conftest.er1
2785   cat conftest.err >&5
2786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2787   (exit $ac_status); } &&
2788          { ac_try='test -z "$ac_c_werror_flag"
2789                          || test ! -s conftest.err'
2790   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2791   (eval $ac_try) 2>&5
2792   ac_status=$?
2793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2794   (exit $ac_status); }; } &&
2795          { ac_try='test -s conftest.$ac_objext'
2796   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2797   (eval $ac_try) 2>&5
2798   ac_status=$?
2799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2800   (exit $ac_status); }; }; then
2801   ac_cv_prog_cc_g=yes
2802 else
2803   echo "$as_me: failed program was:" >&5
2804 sed 's/^/| /' conftest.$ac_ext >&5
2805
2806 ac_cv_prog_cc_g=no
2807 fi
2808 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2809 fi
2810 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2811 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2812 if test "$ac_test_CFLAGS" = set; then
2813   CFLAGS=$ac_save_CFLAGS
2814 elif test $ac_cv_prog_cc_g = yes; then
2815   if test "$GCC" = yes; then
2816     CFLAGS="-g -O2"
2817   else
2818     CFLAGS="-g"
2819   fi
2820 else
2821   if test "$GCC" = yes; then
2822     CFLAGS="-O2"
2823   else
2824     CFLAGS=
2825   fi
2826 fi
2827 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2828 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2829 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2830   echo $ECHO_N "(cached) $ECHO_C" >&6
2831 else
2832   ac_cv_prog_cc_stdc=no
2833 ac_save_CC=$CC
2834 cat >conftest.$ac_ext <<_ACEOF
2835 /* confdefs.h.  */
2836 _ACEOF
2837 cat confdefs.h >>conftest.$ac_ext
2838 cat >>conftest.$ac_ext <<_ACEOF
2839 /* end confdefs.h.  */
2840 #include <stdarg.h>
2841 #include <stdio.h>
2842 #include <sys/types.h>
2843 #include <sys/stat.h>
2844 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2845 struct buf { int x; };
2846 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2847 static char *e (p, i)
2848      char **p;
2849      int i;
2850 {
2851   return p[i];
2852 }
2853 static char *f (char * (*g) (char **, int), char **p, ...)
2854 {
2855   char *s;
2856   va_list v;
2857   va_start (v,p);
2858   s = g (p, va_arg (v,int));
2859   va_end (v);
2860   return s;
2861 }
2862
2863 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2864    function prototypes and stuff, but not '\xHH' hex character constants.
2865    These don't provoke an error unfortunately, instead are silently treated
2866    as 'x'.  The following induces an error, until -std1 is added to get
2867    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2868    array size at least.  It's necessary to write '\x00'==0 to get something
2869    that's true only with -std1.  */
2870 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2871
2872 int test (int i, double x);
2873 struct s1 {int (*f) (int a);};
2874 struct s2 {int (*f) (double a);};
2875 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2876 int argc;
2877 char **argv;
2878 int
2879 main ()
2880 {
2881 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2882   ;
2883   return 0;
2884 }
2885 _ACEOF
2886 # Don't try gcc -ansi; that turns off useful extensions and
2887 # breaks some systems' header files.
2888 # AIX                   -qlanglvl=ansi
2889 # Ultrix and OSF/1      -std1
2890 # HP-UX 10.20 and later -Ae
2891 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2892 # SVR4                  -Xc -D__EXTENSIONS__
2893 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2894 do
2895   CC="$ac_save_CC $ac_arg"
2896   rm -f conftest.$ac_objext
2897 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2898   (eval $ac_compile) 2>conftest.er1
2899   ac_status=$?
2900   grep -v '^ *+' conftest.er1 >conftest.err
2901   rm -f conftest.er1
2902   cat conftest.err >&5
2903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2904   (exit $ac_status); } &&
2905          { ac_try='test -z "$ac_c_werror_flag"
2906                          || test ! -s conftest.err'
2907   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2908   (eval $ac_try) 2>&5
2909   ac_status=$?
2910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2911   (exit $ac_status); }; } &&
2912          { ac_try='test -s conftest.$ac_objext'
2913   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2914   (eval $ac_try) 2>&5
2915   ac_status=$?
2916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2917   (exit $ac_status); }; }; then
2918   ac_cv_prog_cc_stdc=$ac_arg
2919 break
2920 else
2921   echo "$as_me: failed program was:" >&5
2922 sed 's/^/| /' conftest.$ac_ext >&5
2923
2924 fi
2925 rm -f conftest.err conftest.$ac_objext
2926 done
2927 rm -f conftest.$ac_ext conftest.$ac_objext
2928 CC=$ac_save_CC
2929
2930 fi
2931
2932 case "x$ac_cv_prog_cc_stdc" in
2933   x|xno)
2934     echo "$as_me:$LINENO: result: none needed" >&5
2935 echo "${ECHO_T}none needed" >&6 ;;
2936   *)
2937     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2938 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2939     CC="$CC $ac_cv_prog_cc_stdc" ;;
2940 esac
2941
2942 # Some people use a C++ compiler to compile C.  Since we use `exit',
2943 # in C++ we need to declare it.  In case someone uses the same compiler
2944 # for both compiling C and C++ we need to have the C++ compiler decide
2945 # the declaration of exit, since it's the most demanding environment.
2946 cat >conftest.$ac_ext <<_ACEOF
2947 #ifndef __cplusplus
2948   choke me
2949 #endif
2950 _ACEOF
2951 rm -f conftest.$ac_objext
2952 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2953   (eval $ac_compile) 2>conftest.er1
2954   ac_status=$?
2955   grep -v '^ *+' conftest.er1 >conftest.err
2956   rm -f conftest.er1
2957   cat conftest.err >&5
2958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2959   (exit $ac_status); } &&
2960          { ac_try='test -z "$ac_c_werror_flag"
2961                          || test ! -s conftest.err'
2962   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2963   (eval $ac_try) 2>&5
2964   ac_status=$?
2965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2966   (exit $ac_status); }; } &&
2967          { ac_try='test -s conftest.$ac_objext'
2968   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2969   (eval $ac_try) 2>&5
2970   ac_status=$?
2971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2972   (exit $ac_status); }; }; then
2973   for ac_declaration in \
2974    '' \
2975    'extern "C" void std::exit (int) throw (); using std::exit;' \
2976    'extern "C" void std::exit (int); using std::exit;' \
2977    'extern "C" void exit (int) throw ();' \
2978    'extern "C" void exit (int);' \
2979    'void exit (int);'
2980 do
2981   cat >conftest.$ac_ext <<_ACEOF
2982 /* confdefs.h.  */
2983 _ACEOF
2984 cat confdefs.h >>conftest.$ac_ext
2985 cat >>conftest.$ac_ext <<_ACEOF
2986 /* end confdefs.h.  */
2987 $ac_declaration
2988 #include <stdlib.h>
2989 int
2990 main ()
2991 {
2992 exit (42);
2993   ;
2994   return 0;
2995 }
2996 _ACEOF
2997 rm -f conftest.$ac_objext
2998 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2999   (eval $ac_compile) 2>conftest.er1
3000   ac_status=$?
3001   grep -v '^ *+' conftest.er1 >conftest.err
3002   rm -f conftest.er1
3003   cat conftest.err >&5
3004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3005   (exit $ac_status); } &&
3006          { ac_try='test -z "$ac_c_werror_flag"
3007                          || test ! -s conftest.err'
3008   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3009   (eval $ac_try) 2>&5
3010   ac_status=$?
3011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3012   (exit $ac_status); }; } &&
3013          { ac_try='test -s conftest.$ac_objext'
3014   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3015   (eval $ac_try) 2>&5
3016   ac_status=$?
3017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3018   (exit $ac_status); }; }; then
3019   :
3020 else
3021   echo "$as_me: failed program was:" >&5
3022 sed 's/^/| /' conftest.$ac_ext >&5
3023
3024 continue
3025 fi
3026 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3027   cat >conftest.$ac_ext <<_ACEOF
3028 /* confdefs.h.  */
3029 _ACEOF
3030 cat confdefs.h >>conftest.$ac_ext
3031 cat >>conftest.$ac_ext <<_ACEOF
3032 /* end confdefs.h.  */
3033 $ac_declaration
3034 int
3035 main ()
3036 {
3037 exit (42);
3038   ;
3039   return 0;
3040 }
3041 _ACEOF
3042 rm -f conftest.$ac_objext
3043 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3044   (eval $ac_compile) 2>conftest.er1
3045   ac_status=$?
3046   grep -v '^ *+' conftest.er1 >conftest.err
3047   rm -f conftest.er1
3048   cat conftest.err >&5
3049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3050   (exit $ac_status); } &&
3051          { ac_try='test -z "$ac_c_werror_flag"
3052                          || test ! -s conftest.err'
3053   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3054   (eval $ac_try) 2>&5
3055   ac_status=$?
3056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3057   (exit $ac_status); }; } &&
3058          { ac_try='test -s conftest.$ac_objext'
3059   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3060   (eval $ac_try) 2>&5
3061   ac_status=$?
3062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3063   (exit $ac_status); }; }; then
3064   break
3065 else
3066   echo "$as_me: failed program was:" >&5
3067 sed 's/^/| /' conftest.$ac_ext >&5
3068
3069 fi
3070 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3071 done
3072 rm -f conftest*
3073 if test -n "$ac_declaration"; then
3074   echo '#ifdef __cplusplus' >>confdefs.h
3075   echo $ac_declaration      >>confdefs.h
3076   echo '#endif'             >>confdefs.h
3077 fi
3078
3079 else
3080   echo "$as_me: failed program was:" >&5
3081 sed 's/^/| /' conftest.$ac_ext >&5
3082
3083 fi
3084 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3085 ac_ext=c
3086 ac_cpp='$CPP $CPPFLAGS'
3087 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3088 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3089 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3090
3091
3092 am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
3093
3094
3095 # Check whether --with-optimization or --without-optimization was given.
3096 if test "${with_optimization+set}" = set; then
3097   withval="$with_optimization"
3098   unet_cv_optimization=$withval
3099 else
3100   unet_cv_optimization='-O3'
3101 fi;
3102 echo "$as_me:$LINENO: checking optimization level" >&5
3103 echo $ECHO_N "checking optimization level... $ECHO_C" >&6
3104 if test "${unet_cv_optimization+set}" = set; then
3105   echo $ECHO_N "(cached) $ECHO_C" >&6
3106 else
3107   unet_cv_optimization='-O3'
3108 fi
3109 echo "$as_me:$LINENO: result: $unet_cv_optimization" >&5
3110 echo "${ECHO_T}$unet_cv_optimization" >&6
3111 if test "x$unet_cv_optimization" = "xno" ; then
3112     unet_cv_optimization=""
3113 fi
3114 if test x"$CFLAGS" != x; then
3115     CFLAGS=`echo "$CFLAGS" | sed -e s/-O2/$unet_cv_optimization/`
3116 fi
3117 if test x"$CFLAGS" != x; then
3118     unet_old_cflags=$CFLAGS
3119     CFLAGS=`echo "$CFLAGS" | sed -e 's/-g//g'`
3120 fi
3121 if test x"$CFLAGS" != x"$unet_old_cflags"; then
3122     # If -g was already there, force symbols to be enabled
3123     unet_cv_enable_symbols=yes
3124 fi
3125 if test x"$CFLAGS" != x; then
3126     unet_old_cflags=$CFLAGS
3127     CFLAGS=`echo "$CFLAGS" | sed -e 's/-pg//g'`
3128 fi
3129 if test x"$CFLAGS" != x"$unet_old_cflags"; then
3130     # If -pg was already there, force profiling to be enabled
3131     unet_cv_enable_profile=yes
3132 fi
3133 if test x"$CFLAGS" != x; then
3134     unet_old_cflags=$CFLAGS
3135     CFLAGS=`echo "$CFLAGS" | sed -e 's/-Wall//g'`
3136 fi
3137 if test x"$CFLAGS" != x"$unet_old_cflags"; then
3138     # If -Wall was already there, force warnings to be enabled
3139     unet_cv_enable_warnings=yes
3140 fi
3141 if test x"$CFLAGS" != x; then
3142     unet_old_cflags=$CFLAGS
3143     CFLAGS=`echo "$CFLAGS" | sed -e 's/-pedantic//g'`
3144 fi
3145 if test x"$CFLAGS" != x"$unet_old_cflags"; then
3146     # If -pedantic was already there, force pedatic to be enabled
3147     unet_cv_enable_pedantic=yes
3148 fi
3149
3150
3151
3152 echo "$as_me:$LINENO: checking for library containing crypt" >&5
3153 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6
3154 if test "${ac_cv_search_crypt+set}" = set; then
3155   echo $ECHO_N "(cached) $ECHO_C" >&6
3156 else
3157   ac_func_search_save_LIBS=$LIBS
3158 ac_cv_search_crypt=no
3159 cat >conftest.$ac_ext <<_ACEOF
3160 /* confdefs.h.  */
3161 _ACEOF
3162 cat confdefs.h >>conftest.$ac_ext
3163 cat >>conftest.$ac_ext <<_ACEOF
3164 /* end confdefs.h.  */
3165
3166 /* Override any gcc2 internal prototype to avoid an error.  */
3167 #ifdef __cplusplus
3168 extern "C"
3169 #endif
3170 /* We use char because int might match the return type of a gcc2
3171    builtin and then its argument prototype would still apply.  */
3172 char crypt ();
3173 int
3174 main ()
3175 {
3176 crypt ();
3177   ;
3178   return 0;
3179 }
3180 _ACEOF
3181 rm -f conftest.$ac_objext conftest$ac_exeext
3182 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3183   (eval $ac_link) 2>conftest.er1
3184   ac_status=$?
3185   grep -v '^ *+' conftest.er1 >conftest.err
3186   rm -f conftest.er1
3187   cat conftest.err >&5
3188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3189   (exit $ac_status); } &&
3190          { ac_try='test -z "$ac_c_werror_flag"
3191                          || test ! -s conftest.err'
3192   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3193   (eval $ac_try) 2>&5
3194   ac_status=$?
3195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3196   (exit $ac_status); }; } &&
3197          { ac_try='test -s conftest$ac_exeext'
3198   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3199   (eval $ac_try) 2>&5
3200   ac_status=$?
3201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3202   (exit $ac_status); }; }; then
3203   ac_cv_search_crypt="none required"
3204 else
3205   echo "$as_me: failed program was:" >&5
3206 sed 's/^/| /' conftest.$ac_ext >&5
3207
3208 fi
3209 rm -f conftest.err conftest.$ac_objext \
3210       conftest$ac_exeext conftest.$ac_ext
3211 if test "$ac_cv_search_crypt" = no; then
3212   for ac_lib in descrypt crypt; do
3213     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
3214     cat >conftest.$ac_ext <<_ACEOF
3215 /* confdefs.h.  */
3216 _ACEOF
3217 cat confdefs.h >>conftest.$ac_ext
3218 cat >>conftest.$ac_ext <<_ACEOF
3219 /* end confdefs.h.  */
3220
3221 /* Override any gcc2 internal prototype to avoid an error.  */
3222 #ifdef __cplusplus
3223 extern "C"
3224 #endif
3225 /* We use char because int might match the return type of a gcc2
3226    builtin and then its argument prototype would still apply.  */
3227 char crypt ();
3228 int
3229 main ()
3230 {
3231 crypt ();
3232   ;
3233   return 0;
3234 }
3235 _ACEOF
3236 rm -f conftest.$ac_objext conftest$ac_exeext
3237 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3238   (eval $ac_link) 2>conftest.er1
3239   ac_status=$?
3240   grep -v '^ *+' conftest.er1 >conftest.err
3241   rm -f conftest.er1
3242   cat conftest.err >&5
3243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3244   (exit $ac_status); } &&
3245          { ac_try='test -z "$ac_c_werror_flag"
3246                          || test ! -s conftest.err'
3247   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3248   (eval $ac_try) 2>&5
3249   ac_status=$?
3250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3251   (exit $ac_status); }; } &&
3252          { ac_try='test -s conftest$ac_exeext'
3253   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3254   (eval $ac_try) 2>&5
3255   ac_status=$?
3256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3257   (exit $ac_status); }; }; then
3258   ac_cv_search_crypt="-l$ac_lib"
3259 break
3260 else
3261   echo "$as_me: failed program was:" >&5
3262 sed 's/^/| /' conftest.$ac_ext >&5
3263
3264 fi
3265 rm -f conftest.err conftest.$ac_objext \
3266       conftest$ac_exeext conftest.$ac_ext
3267   done
3268 fi
3269 LIBS=$ac_func_search_save_LIBS
3270 fi
3271 echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
3272 echo "${ECHO_T}$ac_cv_search_crypt" >&6
3273 if test "$ac_cv_search_crypt" != no; then
3274   test "$ac_cv_search_crypt" = "none required" || LIBS="$ac_cv_search_crypt $LIBS"
3275
3276 else
3277   { { echo "$as_me:$LINENO: error: Unable to find library containing crypt()" >&5
3278 echo "$as_me: error: Unable to find library containing crypt()" >&2;}
3279    { (exit 1); exit 1; }; }
3280 fi
3281
3282
3283
3284    # Most operating systems have gethostbyname() in the default searched
3285    # libraries (i.e. libc):
3286    echo "$as_me:$LINENO: checking for gethostbyname" >&5
3287 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
3288 if test "${ac_cv_func_gethostbyname+set}" = set; then
3289   echo $ECHO_N "(cached) $ECHO_C" >&6
3290 else
3291   cat >conftest.$ac_ext <<_ACEOF
3292 /* confdefs.h.  */
3293 _ACEOF
3294 cat confdefs.h >>conftest.$ac_ext
3295 cat >>conftest.$ac_ext <<_ACEOF
3296 /* end confdefs.h.  */
3297 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
3298    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
3299 #define gethostbyname innocuous_gethostbyname
3300
3301 /* System header to define __stub macros and hopefully few prototypes,
3302     which can conflict with char gethostbyname (); below.
3303     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3304     <limits.h> exists even on freestanding compilers.  */
3305
3306 #ifdef __STDC__
3307 # include <limits.h>
3308 #else
3309 # include <assert.h>
3310 #endif
3311
3312 #undef gethostbyname
3313
3314 /* Override any gcc2 internal prototype to avoid an error.  */
3315 #ifdef __cplusplus
3316 extern "C"
3317 {
3318 #endif
3319 /* We use char because int might match the return type of a gcc2
3320    builtin and then its argument prototype would still apply.  */
3321 char gethostbyname ();
3322 /* The GNU C library defines this for functions which it implements
3323     to always fail with ENOSYS.  Some functions are actually named
3324     something starting with __ and the normal name is an alias.  */
3325 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3326 choke me
3327 #else
3328 char (*f) () = gethostbyname;
3329 #endif
3330 #ifdef __cplusplus
3331 }
3332 #endif
3333
3334 int
3335 main ()
3336 {
3337 return f != gethostbyname;
3338   ;
3339   return 0;
3340 }
3341 _ACEOF
3342 rm -f conftest.$ac_objext conftest$ac_exeext
3343 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3344   (eval $ac_link) 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); } &&
3351          { ac_try='test -z "$ac_c_werror_flag"
3352                          || test ! -s conftest.err'
3353   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3354   (eval $ac_try) 2>&5
3355   ac_status=$?
3356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3357   (exit $ac_status); }; } &&
3358          { ac_try='test -s conftest$ac_exeext'
3359   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3360   (eval $ac_try) 2>&5
3361   ac_status=$?
3362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3363   (exit $ac_status); }; }; then
3364   ac_cv_func_gethostbyname=yes
3365 else
3366   echo "$as_me: failed program was:" >&5
3367 sed 's/^/| /' conftest.$ac_ext >&5
3368
3369 ac_cv_func_gethostbyname=no
3370 fi
3371 rm -f conftest.err conftest.$ac_objext \
3372       conftest$ac_exeext conftest.$ac_ext
3373 fi
3374 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
3375 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
3376 if test $ac_cv_func_gethostbyname = yes; then
3377   :
3378 else
3379   # Some OSes (eg. Solaris) place it in libnsl:
3380
3381 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
3382 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
3383 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
3384   echo $ECHO_N "(cached) $ECHO_C" >&6
3385 else
3386   ac_check_lib_save_LIBS=$LIBS
3387 LIBS="-lnsl  $LIBS"
3388 cat >conftest.$ac_ext <<_ACEOF
3389 /* confdefs.h.  */
3390 _ACEOF
3391 cat confdefs.h >>conftest.$ac_ext
3392 cat >>conftest.$ac_ext <<_ACEOF
3393 /* end confdefs.h.  */
3394
3395 /* Override any gcc2 internal prototype to avoid an error.  */
3396 #ifdef __cplusplus
3397 extern "C"
3398 #endif
3399 /* We use char because int might match the return type of a gcc2
3400    builtin and then its argument prototype would still apply.  */
3401 char gethostbyname ();
3402 int
3403 main ()
3404 {
3405 gethostbyname ();
3406   ;
3407   return 0;
3408 }
3409 _ACEOF
3410 rm -f conftest.$ac_objext conftest$ac_exeext
3411 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3412   (eval $ac_link) 2>conftest.er1
3413   ac_status=$?
3414   grep -v '^ *+' conftest.er1 >conftest.err
3415   rm -f conftest.er1
3416   cat conftest.err >&5
3417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3418   (exit $ac_status); } &&
3419          { ac_try='test -z "$ac_c_werror_flag"
3420                          || test ! -s conftest.err'
3421   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3422   (eval $ac_try) 2>&5
3423   ac_status=$?
3424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3425   (exit $ac_status); }; } &&
3426          { ac_try='test -s conftest$ac_exeext'
3427   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3428   (eval $ac_try) 2>&5
3429   ac_status=$?
3430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3431   (exit $ac_status); }; }; then
3432   ac_cv_lib_nsl_gethostbyname=yes
3433 else
3434   echo "$as_me: failed program was:" >&5
3435 sed 's/^/| /' conftest.$ac_ext >&5
3436
3437 ac_cv_lib_nsl_gethostbyname=no
3438 fi
3439 rm -f conftest.err conftest.$ac_objext \
3440       conftest$ac_exeext conftest.$ac_ext
3441 LIBS=$ac_check_lib_save_LIBS
3442 fi
3443 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
3444 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
3445 if test $ac_cv_lib_nsl_gethostbyname = yes; then
3446   cat >>confdefs.h <<_ACEOF
3447 #define HAVE_LIBNSL 1
3448 _ACEOF
3449
3450   LIBS="-lnsl $LIBS"
3451
3452 else
3453   # Some strange OSes (SINIX) have it in libsocket:
3454
3455 echo "$as_me:$LINENO: checking for gethostbyname in -lsocket" >&5
3456 echo $ECHO_N "checking for gethostbyname in -lsocket... $ECHO_C" >&6
3457 if test "${ac_cv_lib_socket_gethostbyname+set}" = set; then
3458   echo $ECHO_N "(cached) $ECHO_C" >&6
3459 else
3460   ac_check_lib_save_LIBS=$LIBS
3461 LIBS="-lsocket  $LIBS"
3462 cat >conftest.$ac_ext <<_ACEOF
3463 /* confdefs.h.  */
3464 _ACEOF
3465 cat confdefs.h >>conftest.$ac_ext
3466 cat >>conftest.$ac_ext <<_ACEOF
3467 /* end confdefs.h.  */
3468
3469 /* Override any gcc2 internal prototype to avoid an error.  */
3470 #ifdef __cplusplus
3471 extern "C"
3472 #endif
3473 /* We use char because int might match the return type of a gcc2
3474    builtin and then its argument prototype would still apply.  */
3475 char gethostbyname ();
3476 int
3477 main ()
3478 {
3479 gethostbyname ();
3480   ;
3481   return 0;
3482 }
3483 _ACEOF
3484 rm -f conftest.$ac_objext conftest$ac_exeext
3485 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3486   (eval $ac_link) 2>conftest.er1
3487   ac_status=$?
3488   grep -v '^ *+' conftest.er1 >conftest.err
3489   rm -f conftest.er1
3490   cat conftest.err >&5
3491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3492   (exit $ac_status); } &&
3493          { ac_try='test -z "$ac_c_werror_flag"
3494                          || test ! -s conftest.err'
3495   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3496   (eval $ac_try) 2>&5
3497   ac_status=$?
3498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3499   (exit $ac_status); }; } &&
3500          { ac_try='test -s conftest$ac_exeext'
3501   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3502   (eval $ac_try) 2>&5
3503   ac_status=$?
3504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3505   (exit $ac_status); }; }; then
3506   ac_cv_lib_socket_gethostbyname=yes
3507 else
3508   echo "$as_me: failed program was:" >&5
3509 sed 's/^/| /' conftest.$ac_ext >&5
3510
3511 ac_cv_lib_socket_gethostbyname=no
3512 fi
3513 rm -f conftest.err conftest.$ac_objext \
3514       conftest$ac_exeext conftest.$ac_ext
3515 LIBS=$ac_check_lib_save_LIBS
3516 fi
3517 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_gethostbyname" >&5
3518 echo "${ECHO_T}$ac_cv_lib_socket_gethostbyname" >&6
3519 if test $ac_cv_lib_socket_gethostbyname = yes; then
3520   cat >>confdefs.h <<_ACEOF
3521 #define HAVE_LIBSOCKET 1
3522 _ACEOF
3523
3524   LIBS="-lsocket $LIBS"
3525
3526 else
3527   # Unfortunately libsocket sometimes depends on libnsl.
3528           # AC_CHECK_LIB's API is essentially broken so the following
3529           # ugliness is necessary:
3530           echo "$as_me:$LINENO: checking for gethostbyname in -lsocket" >&5
3531 echo $ECHO_N "checking for gethostbyname in -lsocket... $ECHO_C" >&6
3532 if test "${ac_cv_lib_socket_gethostbyname+set}" = set; then
3533   echo $ECHO_N "(cached) $ECHO_C" >&6
3534 else
3535   ac_check_lib_save_LIBS=$LIBS
3536 LIBS="-lsocket -lnsl $LIBS"
3537 cat >conftest.$ac_ext <<_ACEOF
3538 /* confdefs.h.  */
3539 _ACEOF
3540 cat confdefs.h >>conftest.$ac_ext
3541 cat >>conftest.$ac_ext <<_ACEOF
3542 /* end confdefs.h.  */
3543
3544 /* Override any gcc2 internal prototype to avoid an error.  */
3545 #ifdef __cplusplus
3546 extern "C"
3547 #endif
3548 /* We use char because int might match the return type of a gcc2
3549    builtin and then its argument prototype would still apply.  */
3550 char gethostbyname ();
3551 int
3552 main ()
3553 {
3554 gethostbyname ();
3555   ;
3556   return 0;
3557 }
3558 _ACEOF
3559 rm -f conftest.$ac_objext conftest$ac_exeext
3560 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3561   (eval $ac_link) 2>conftest.er1
3562   ac_status=$?
3563   grep -v '^ *+' conftest.er1 >conftest.err
3564   rm -f conftest.er1
3565   cat conftest.err >&5
3566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3567   (exit $ac_status); } &&
3568          { ac_try='test -z "$ac_c_werror_flag"
3569                          || test ! -s conftest.err'
3570   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3571   (eval $ac_try) 2>&5
3572   ac_status=$?
3573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3574   (exit $ac_status); }; } &&
3575          { ac_try='test -s conftest$ac_exeext'
3576   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3577   (eval $ac_try) 2>&5
3578   ac_status=$?
3579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3580   (exit $ac_status); }; }; then
3581   ac_cv_lib_socket_gethostbyname=yes
3582 else
3583   echo "$as_me: failed program was:" >&5
3584 sed 's/^/| /' conftest.$ac_ext >&5
3585
3586 ac_cv_lib_socket_gethostbyname=no
3587 fi
3588 rm -f conftest.err conftest.$ac_objext \
3589       conftest$ac_exeext conftest.$ac_ext
3590 LIBS=$ac_check_lib_save_LIBS
3591 fi
3592 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_gethostbyname" >&5
3593 echo "${ECHO_T}$ac_cv_lib_socket_gethostbyname" >&6
3594 if test $ac_cv_lib_socket_gethostbyname = yes; then
3595   LIBS="-lsocket -lnsl $LIBS"
3596 else
3597
3598 echo "$as_me:$LINENO: checking for gethostbyname in -lresolv" >&5
3599 echo $ECHO_N "checking for gethostbyname in -lresolv... $ECHO_C" >&6
3600 if test "${ac_cv_lib_resolv_gethostbyname+set}" = set; then
3601   echo $ECHO_N "(cached) $ECHO_C" >&6
3602 else
3603   ac_check_lib_save_LIBS=$LIBS
3604 LIBS="-lresolv  $LIBS"
3605 cat >conftest.$ac_ext <<_ACEOF
3606 /* confdefs.h.  */
3607 _ACEOF
3608 cat confdefs.h >>conftest.$ac_ext
3609 cat >>conftest.$ac_ext <<_ACEOF
3610 /* end confdefs.h.  */
3611
3612 /* Override any gcc2 internal prototype to avoid an error.  */
3613 #ifdef __cplusplus
3614 extern "C"
3615 #endif
3616 /* We use char because int might match the return type of a gcc2
3617    builtin and then its argument prototype would still apply.  */
3618 char gethostbyname ();
3619 int
3620 main ()
3621 {
3622 gethostbyname ();
3623   ;
3624   return 0;
3625 }
3626 _ACEOF
3627 rm -f conftest.$ac_objext conftest$ac_exeext
3628 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3629   (eval $ac_link) 2>conftest.er1
3630   ac_status=$?
3631   grep -v '^ *+' conftest.er1 >conftest.err
3632   rm -f conftest.er1
3633   cat conftest.err >&5
3634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3635   (exit $ac_status); } &&
3636          { ac_try='test -z "$ac_c_werror_flag"
3637                          || test ! -s conftest.err'
3638   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3639   (eval $ac_try) 2>&5
3640   ac_status=$?
3641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3642   (exit $ac_status); }; } &&
3643          { ac_try='test -s conftest$ac_exeext'
3644   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3645   (eval $ac_try) 2>&5
3646   ac_status=$?
3647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3648   (exit $ac_status); }; }; then
3649   ac_cv_lib_resolv_gethostbyname=yes
3650 else
3651   echo "$as_me: failed program was:" >&5
3652 sed 's/^/| /' conftest.$ac_ext >&5
3653
3654 ac_cv_lib_resolv_gethostbyname=no
3655 fi
3656 rm -f conftest.err conftest.$ac_objext \
3657       conftest$ac_exeext conftest.$ac_ext
3658 LIBS=$ac_check_lib_save_LIBS
3659 fi
3660 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname" >&5
3661 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname" >&6
3662 if test $ac_cv_lib_resolv_gethostbyname = yes; then
3663   cat >>confdefs.h <<_ACEOF
3664 #define HAVE_LIBRESOLV 1
3665 _ACEOF
3666
3667   LIBS="-lresolv $LIBS"
3668
3669 fi
3670
3671 fi
3672
3673
3674 fi
3675
3676
3677 fi
3678
3679
3680 fi
3681
3682   echo "$as_me:$LINENO: checking for socket" >&5
3683 echo $ECHO_N "checking for socket... $ECHO_C" >&6
3684 if test "${ac_cv_func_socket+set}" = set; then
3685   echo $ECHO_N "(cached) $ECHO_C" >&6
3686 else
3687   cat >conftest.$ac_ext <<_ACEOF
3688 /* confdefs.h.  */
3689 _ACEOF
3690 cat confdefs.h >>conftest.$ac_ext
3691 cat >>conftest.$ac_ext <<_ACEOF
3692 /* end confdefs.h.  */
3693 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
3694    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
3695 #define socket innocuous_socket
3696
3697 /* System header to define __stub macros and hopefully few prototypes,
3698     which can conflict with char socket (); below.
3699     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3700     <limits.h> exists even on freestanding compilers.  */
3701
3702 #ifdef __STDC__
3703 # include <limits.h>
3704 #else
3705 # include <assert.h>
3706 #endif
3707
3708 #undef socket
3709
3710 /* Override any gcc2 internal prototype to avoid an error.  */
3711 #ifdef __cplusplus
3712 extern "C"
3713 {
3714 #endif
3715 /* We use char because int might match the return type of a gcc2
3716    builtin and then its argument prototype would still apply.  */
3717 char socket ();
3718 /* The GNU C library defines this for functions which it implements
3719     to always fail with ENOSYS.  Some functions are actually named
3720     something starting with __ and the normal name is an alias.  */
3721 #if defined (__stub_socket) || defined (__stub___socket)
3722 choke me
3723 #else
3724 char (*f) () = socket;
3725 #endif
3726 #ifdef __cplusplus
3727 }
3728 #endif
3729
3730 int
3731 main ()
3732 {
3733 return f != socket;
3734   ;
3735   return 0;
3736 }
3737 _ACEOF
3738 rm -f conftest.$ac_objext conftest$ac_exeext
3739 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3740   (eval $ac_link) 2>conftest.er1
3741   ac_status=$?
3742   grep -v '^ *+' conftest.er1 >conftest.err
3743   rm -f conftest.er1
3744   cat conftest.err >&5
3745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3746   (exit $ac_status); } &&
3747          { ac_try='test -z "$ac_c_werror_flag"
3748                          || test ! -s conftest.err'
3749   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3750   (eval $ac_try) 2>&5
3751   ac_status=$?
3752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3753   (exit $ac_status); }; } &&
3754          { ac_try='test -s conftest$ac_exeext'
3755   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3756   (eval $ac_try) 2>&5
3757   ac_status=$?
3758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3759   (exit $ac_status); }; }; then
3760   ac_cv_func_socket=yes
3761 else
3762   echo "$as_me: failed program was:" >&5
3763 sed 's/^/| /' conftest.$ac_ext >&5
3764
3765 ac_cv_func_socket=no
3766 fi
3767 rm -f conftest.err conftest.$ac_objext \
3768       conftest$ac_exeext conftest.$ac_ext
3769 fi
3770 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
3771 echo "${ECHO_T}$ac_cv_func_socket" >&6
3772 if test $ac_cv_func_socket = yes; then
3773   :
3774 else
3775
3776 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
3777 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
3778 if test "${ac_cv_lib_socket_socket+set}" = set; then
3779   echo $ECHO_N "(cached) $ECHO_C" >&6
3780 else
3781   ac_check_lib_save_LIBS=$LIBS
3782 LIBS="-lsocket  $LIBS"
3783 cat >conftest.$ac_ext <<_ACEOF
3784 /* confdefs.h.  */
3785 _ACEOF
3786 cat confdefs.h >>conftest.$ac_ext
3787 cat >>conftest.$ac_ext <<_ACEOF
3788 /* end confdefs.h.  */
3789
3790 /* Override any gcc2 internal prototype to avoid an error.  */
3791 #ifdef __cplusplus
3792 extern "C"
3793 #endif
3794 /* We use char because int might match the return type of a gcc2
3795    builtin and then its argument prototype would still apply.  */
3796 char socket ();
3797 int
3798 main ()
3799 {
3800 socket ();
3801   ;
3802   return 0;
3803 }
3804 _ACEOF
3805 rm -f conftest.$ac_objext conftest$ac_exeext
3806 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3807   (eval $ac_link) 2>conftest.er1
3808   ac_status=$?
3809   grep -v '^ *+' conftest.er1 >conftest.err
3810   rm -f conftest.er1
3811   cat conftest.err >&5
3812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3813   (exit $ac_status); } &&
3814          { ac_try='test -z "$ac_c_werror_flag"
3815                          || test ! -s conftest.err'
3816   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3817   (eval $ac_try) 2>&5
3818   ac_status=$?
3819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3820   (exit $ac_status); }; } &&
3821          { ac_try='test -s conftest$ac_exeext'
3822   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3823   (eval $ac_try) 2>&5
3824   ac_status=$?
3825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3826   (exit $ac_status); }; }; then
3827   ac_cv_lib_socket_socket=yes
3828 else
3829   echo "$as_me: failed program was:" >&5
3830 sed 's/^/| /' conftest.$ac_ext >&5
3831
3832 ac_cv_lib_socket_socket=no
3833 fi
3834 rm -f conftest.err conftest.$ac_objext \
3835       conftest$ac_exeext conftest.$ac_ext
3836 LIBS=$ac_check_lib_save_LIBS
3837 fi
3838 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
3839 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
3840 if test $ac_cv_lib_socket_socket = yes; then
3841   cat >>confdefs.h <<_ACEOF
3842 #define HAVE_LIBSOCKET 1
3843 _ACEOF
3844
3845   LIBS="-lsocket $LIBS"
3846
3847 else
3848   echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
3849 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
3850 if test "${ac_cv_lib_socket_socket+set}" = set; then
3851   echo $ECHO_N "(cached) $ECHO_C" >&6
3852 else
3853   ac_check_lib_save_LIBS=$LIBS
3854 LIBS="-lsocket -lnsl $LIBS"
3855 cat >conftest.$ac_ext <<_ACEOF
3856 /* confdefs.h.  */
3857 _ACEOF
3858 cat confdefs.h >>conftest.$ac_ext
3859 cat >>conftest.$ac_ext <<_ACEOF
3860 /* end confdefs.h.  */
3861
3862 /* Override any gcc2 internal prototype to avoid an error.  */
3863 #ifdef __cplusplus
3864 extern "C"
3865 #endif
3866 /* We use char because int might match the return type of a gcc2
3867    builtin and then its argument prototype would still apply.  */
3868 char socket ();
3869 int
3870 main ()
3871 {
3872 socket ();
3873   ;
3874   return 0;
3875 }
3876 _ACEOF
3877 rm -f conftest.$ac_objext conftest$ac_exeext
3878 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3879   (eval $ac_link) 2>conftest.er1
3880   ac_status=$?
3881   grep -v '^ *+' conftest.er1 >conftest.err
3882   rm -f conftest.er1
3883   cat conftest.err >&5
3884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3885   (exit $ac_status); } &&
3886          { ac_try='test -z "$ac_c_werror_flag"
3887                          || test ! -s conftest.err'
3888   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3889   (eval $ac_try) 2>&5
3890   ac_status=$?
3891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3892   (exit $ac_status); }; } &&
3893          { ac_try='test -s conftest$ac_exeext'
3894   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3895   (eval $ac_try) 2>&5
3896   ac_status=$?
3897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3898   (exit $ac_status); }; }; then
3899   ac_cv_lib_socket_socket=yes
3900 else
3901   echo "$as_me: failed program was:" >&5
3902 sed 's/^/| /' conftest.$ac_ext >&5
3903
3904 ac_cv_lib_socket_socket=no
3905 fi
3906 rm -f conftest.err conftest.$ac_objext \
3907       conftest$ac_exeext conftest.$ac_ext
3908 LIBS=$ac_check_lib_save_LIBS
3909 fi
3910 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
3911 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
3912 if test $ac_cv_lib_socket_socket = yes; then
3913   LIBS="-lsocket -lnsl $LIBS"
3914 fi
3915
3916 fi
3917
3918 fi
3919
3920
3921
3922 ac_ext=c
3923 ac_cpp='$CPP $CPPFLAGS'
3924 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3925 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3926 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3927 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3928 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3929 # On Suns, sometimes $CPP names a directory.
3930 if test -n "$CPP" && test -d "$CPP"; then
3931   CPP=
3932 fi
3933 if test -z "$CPP"; then
3934   if test "${ac_cv_prog_CPP+set}" = set; then
3935   echo $ECHO_N "(cached) $ECHO_C" >&6
3936 else
3937       # Double quotes because CPP needs to be expanded
3938     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3939     do
3940       ac_preproc_ok=false
3941 for ac_c_preproc_warn_flag in '' yes
3942 do
3943   # Use a header file that comes with gcc, so configuring glibc
3944   # with a fresh cross-compiler works.
3945   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3946   # <limits.h> exists even on freestanding compilers.
3947   # On the NeXT, cc -E runs the code through the compiler's parser,
3948   # not just through cpp. "Syntax error" is here to catch this case.
3949   cat >conftest.$ac_ext <<_ACEOF
3950 /* confdefs.h.  */
3951 _ACEOF
3952 cat confdefs.h >>conftest.$ac_ext
3953 cat >>conftest.$ac_ext <<_ACEOF
3954 /* end confdefs.h.  */
3955 #ifdef __STDC__
3956 # include <limits.h>
3957 #else
3958 # include <assert.h>
3959 #endif
3960                      Syntax error
3961 _ACEOF
3962 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3963   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3964   ac_status=$?
3965   grep -v '^ *+' conftest.er1 >conftest.err
3966   rm -f conftest.er1
3967   cat conftest.err >&5
3968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3969   (exit $ac_status); } >/dev/null; then
3970   if test -s conftest.err; then
3971     ac_cpp_err=$ac_c_preproc_warn_flag
3972     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3973   else
3974     ac_cpp_err=
3975   fi
3976 else
3977   ac_cpp_err=yes
3978 fi
3979 if test -z "$ac_cpp_err"; then
3980   :
3981 else
3982   echo "$as_me: failed program was:" >&5
3983 sed 's/^/| /' conftest.$ac_ext >&5
3984
3985   # Broken: fails on valid input.
3986 continue
3987 fi
3988 rm -f conftest.err conftest.$ac_ext
3989
3990   # OK, works on sane cases.  Now check whether non-existent headers
3991   # can be detected and how.
3992   cat >conftest.$ac_ext <<_ACEOF
3993 /* confdefs.h.  */
3994 _ACEOF
3995 cat confdefs.h >>conftest.$ac_ext
3996 cat >>conftest.$ac_ext <<_ACEOF
3997 /* end confdefs.h.  */
3998 #include <ac_nonexistent.h>
3999 _ACEOF
4000 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4001   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4002   ac_status=$?
4003   grep -v '^ *+' conftest.er1 >conftest.err
4004   rm -f conftest.er1
4005   cat conftest.err >&5
4006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4007   (exit $ac_status); } >/dev/null; then
4008   if test -s conftest.err; then
4009     ac_cpp_err=$ac_c_preproc_warn_flag
4010     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4011   else
4012     ac_cpp_err=
4013   fi
4014 else
4015   ac_cpp_err=yes
4016 fi
4017 if test -z "$ac_cpp_err"; then
4018   # Broken: success on invalid input.
4019 continue
4020 else
4021   echo "$as_me: failed program was:" >&5
4022 sed 's/^/| /' conftest.$ac_ext >&5
4023
4024   # Passes both tests.
4025 ac_preproc_ok=:
4026 break
4027 fi
4028 rm -f conftest.err conftest.$ac_ext
4029
4030 done
4031 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4032 rm -f conftest.err conftest.$ac_ext
4033 if $ac_preproc_ok; then
4034   break
4035 fi
4036
4037     done
4038     ac_cv_prog_CPP=$CPP
4039
4040 fi
4041   CPP=$ac_cv_prog_CPP
4042 else
4043   ac_cv_prog_CPP=$CPP
4044 fi
4045 echo "$as_me:$LINENO: result: $CPP" >&5
4046 echo "${ECHO_T}$CPP" >&6
4047 ac_preproc_ok=false
4048 for ac_c_preproc_warn_flag in '' yes
4049 do
4050   # Use a header file that comes with gcc, so configuring glibc
4051   # with a fresh cross-compiler works.
4052   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4053   # <limits.h> exists even on freestanding compilers.
4054   # On the NeXT, cc -E runs the code through the compiler's parser,
4055   # not just through cpp. "Syntax error" is here to catch this case.
4056   cat >conftest.$ac_ext <<_ACEOF
4057 /* confdefs.h.  */
4058 _ACEOF
4059 cat confdefs.h >>conftest.$ac_ext
4060 cat >>conftest.$ac_ext <<_ACEOF
4061 /* end confdefs.h.  */
4062 #ifdef __STDC__
4063 # include <limits.h>
4064 #else
4065 # include <assert.h>
4066 #endif
4067                      Syntax error
4068 _ACEOF
4069 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4070   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4071   ac_status=$?
4072   grep -v '^ *+' conftest.er1 >conftest.err
4073   rm -f conftest.er1
4074   cat conftest.err >&5
4075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4076   (exit $ac_status); } >/dev/null; then
4077   if test -s conftest.err; then
4078     ac_cpp_err=$ac_c_preproc_warn_flag
4079     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4080   else
4081     ac_cpp_err=
4082   fi
4083 else
4084   ac_cpp_err=yes
4085 fi
4086 if test -z "$ac_cpp_err"; then
4087   :
4088 else
4089   echo "$as_me: failed program was:" >&5
4090 sed 's/^/| /' conftest.$ac_ext >&5
4091
4092   # Broken: fails on valid input.
4093 continue
4094 fi
4095 rm -f conftest.err conftest.$ac_ext
4096
4097   # OK, works on sane cases.  Now check whether non-existent headers
4098   # can be detected and how.
4099   cat >conftest.$ac_ext <<_ACEOF
4100 /* confdefs.h.  */
4101 _ACEOF
4102 cat confdefs.h >>conftest.$ac_ext
4103 cat >>conftest.$ac_ext <<_ACEOF
4104 /* end confdefs.h.  */
4105 #include <ac_nonexistent.h>
4106 _ACEOF
4107 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4108   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4109   ac_status=$?
4110   grep -v '^ *+' conftest.er1 >conftest.err
4111   rm -f conftest.er1
4112   cat conftest.err >&5
4113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4114   (exit $ac_status); } >/dev/null; then
4115   if test -s conftest.err; then
4116     ac_cpp_err=$ac_c_preproc_warn_flag
4117     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4118   else
4119     ac_cpp_err=
4120   fi
4121 else
4122   ac_cpp_err=yes
4123 fi
4124 if test -z "$ac_cpp_err"; then
4125   # Broken: success on invalid input.
4126 continue
4127 else
4128   echo "$as_me: failed program was:" >&5
4129 sed 's/^/| /' conftest.$ac_ext >&5
4130
4131   # Passes both tests.
4132 ac_preproc_ok=:
4133 break
4134 fi
4135 rm -f conftest.err conftest.$ac_ext
4136
4137 done
4138 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4139 rm -f conftest.err conftest.$ac_ext
4140 if $ac_preproc_ok; then
4141   :
4142 else
4143   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4144 See \`config.log' for more details." >&5
4145 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4146 See \`config.log' for more details." >&2;}
4147    { (exit 1); exit 1; }; }
4148 fi
4149
4150 ac_ext=c
4151 ac_cpp='$CPP $CPPFLAGS'
4152 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4153 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4154 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4155
4156
4157 echo "$as_me:$LINENO: checking for egrep" >&5
4158 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4159 if test "${ac_cv_prog_egrep+set}" = set; then
4160   echo $ECHO_N "(cached) $ECHO_C" >&6
4161 else
4162   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4163     then ac_cv_prog_egrep='grep -E'
4164     else ac_cv_prog_egrep='egrep'
4165     fi
4166 fi
4167 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4168 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4169  EGREP=$ac_cv_prog_egrep
4170
4171
4172 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4173 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4174 if test "${ac_cv_header_stdc+set}" = set; then
4175   echo $ECHO_N "(cached) $ECHO_C" >&6
4176 else
4177   cat >conftest.$ac_ext <<_ACEOF
4178 /* confdefs.h.  */
4179 _ACEOF
4180 cat confdefs.h >>conftest.$ac_ext
4181 cat >>conftest.$ac_ext <<_ACEOF
4182 /* end confdefs.h.  */
4183 #include <stdlib.h>
4184 #include <stdarg.h>
4185 #include <string.h>
4186 #include <float.h>
4187
4188 int
4189 main ()
4190 {
4191
4192   ;
4193   return 0;
4194 }
4195 _ACEOF
4196 rm -f conftest.$ac_objext
4197 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4198   (eval $ac_compile) 2>conftest.er1
4199   ac_status=$?
4200   grep -v '^ *+' conftest.er1 >conftest.err
4201   rm -f conftest.er1
4202   cat conftest.err >&5
4203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4204   (exit $ac_status); } &&
4205          { ac_try='test -z "$ac_c_werror_flag"
4206                          || test ! -s conftest.err'
4207   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4208   (eval $ac_try) 2>&5
4209   ac_status=$?
4210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4211   (exit $ac_status); }; } &&
4212          { ac_try='test -s conftest.$ac_objext'
4213   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4214   (eval $ac_try) 2>&5
4215   ac_status=$?
4216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4217   (exit $ac_status); }; }; then
4218   ac_cv_header_stdc=yes
4219 else
4220   echo "$as_me: failed program was:" >&5
4221 sed 's/^/| /' conftest.$ac_ext >&5
4222
4223 ac_cv_header_stdc=no
4224 fi
4225 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4226
4227 if test $ac_cv_header_stdc = yes; then
4228   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4229   cat >conftest.$ac_ext <<_ACEOF
4230 /* confdefs.h.  */
4231 _ACEOF
4232 cat confdefs.h >>conftest.$ac_ext
4233 cat >>conftest.$ac_ext <<_ACEOF
4234 /* end confdefs.h.  */
4235 #include <string.h>
4236
4237 _ACEOF
4238 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4239   $EGREP "memchr" >/dev/null 2>&1; then
4240   :
4241 else
4242   ac_cv_header_stdc=no
4243 fi
4244 rm -f conftest*
4245
4246 fi
4247
4248 if test $ac_cv_header_stdc = yes; then
4249   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4250   cat >conftest.$ac_ext <<_ACEOF
4251 /* confdefs.h.  */
4252 _ACEOF
4253 cat confdefs.h >>conftest.$ac_ext
4254 cat >>conftest.$ac_ext <<_ACEOF
4255 /* end confdefs.h.  */
4256 #include <stdlib.h>
4257
4258 _ACEOF
4259 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4260   $EGREP "free" >/dev/null 2>&1; then
4261   :
4262 else
4263   ac_cv_header_stdc=no
4264 fi
4265 rm -f conftest*
4266
4267 fi
4268
4269 if test $ac_cv_header_stdc = yes; then
4270   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4271   if test "$cross_compiling" = yes; then
4272   :
4273 else
4274   cat >conftest.$ac_ext <<_ACEOF
4275 /* confdefs.h.  */
4276 _ACEOF
4277 cat confdefs.h >>conftest.$ac_ext
4278 cat >>conftest.$ac_ext <<_ACEOF
4279 /* end confdefs.h.  */
4280 #include <ctype.h>
4281 #if ((' ' & 0x0FF) == 0x020)
4282 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4283 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4284 #else
4285 # define ISLOWER(c) \
4286                    (('a' <= (c) && (c) <= 'i') \
4287                      || ('j' <= (c) && (c) <= 'r') \
4288                      || ('s' <= (c) && (c) <= 'z'))
4289 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4290 #endif
4291
4292 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4293 int
4294 main ()
4295 {
4296   int i;
4297   for (i = 0; i < 256; i++)
4298     if (XOR (islower (i), ISLOWER (i))
4299         || toupper (i) != TOUPPER (i))
4300       exit(2);
4301   exit (0);
4302 }
4303 _ACEOF
4304 rm -f conftest$ac_exeext
4305 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4306   (eval $ac_link) 2>&5
4307   ac_status=$?
4308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4309   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4310   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4311   (eval $ac_try) 2>&5
4312   ac_status=$?
4313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4314   (exit $ac_status); }; }; then
4315   :
4316 else
4317   echo "$as_me: program exited with status $ac_status" >&5
4318 echo "$as_me: failed program was:" >&5
4319 sed 's/^/| /' conftest.$ac_ext >&5
4320
4321 ( exit $ac_status )
4322 ac_cv_header_stdc=no
4323 fi
4324 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4325 fi
4326 fi
4327 fi
4328 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4329 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4330 if test $ac_cv_header_stdc = yes; then
4331
4332 cat >>confdefs.h <<\_ACEOF
4333 #define STDC_HEADERS 1
4334 _ACEOF
4335
4336 fi
4337
4338 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4339
4340
4341
4342
4343
4344
4345
4346
4347
4348 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4349                   inttypes.h stdint.h unistd.h
4350 do
4351 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4352 echo "$as_me:$LINENO: checking for $ac_header" >&5
4353 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4354 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4355   echo $ECHO_N "(cached) $ECHO_C" >&6
4356 else
4357   cat >conftest.$ac_ext <<_ACEOF
4358 /* confdefs.h.  */
4359 _ACEOF
4360 cat confdefs.h >>conftest.$ac_ext
4361 cat >>conftest.$ac_ext <<_ACEOF
4362 /* end confdefs.h.  */
4363 $ac_includes_default
4364
4365 #include <$ac_header>
4366 _ACEOF
4367 rm -f conftest.$ac_objext
4368 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4369   (eval $ac_compile) 2>conftest.er1
4370   ac_status=$?
4371   grep -v '^ *+' conftest.er1 >conftest.err
4372   rm -f conftest.er1
4373   cat conftest.err >&5
4374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4375   (exit $ac_status); } &&
4376          { ac_try='test -z "$ac_c_werror_flag"
4377                          || test ! -s conftest.err'
4378   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4379   (eval $ac_try) 2>&5
4380   ac_status=$?
4381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4382   (exit $ac_status); }; } &&
4383          { ac_try='test -s conftest.$ac_objext'
4384   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4385   (eval $ac_try) 2>&5
4386   ac_status=$?
4387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4388   (exit $ac_status); }; }; then
4389   eval "$as_ac_Header=yes"
4390 else
4391   echo "$as_me: failed program was:" >&5
4392 sed 's/^/| /' conftest.$ac_ext >&5
4393
4394 eval "$as_ac_Header=no"
4395 fi
4396 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4397 fi
4398 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4399 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4400 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4401   cat >>confdefs.h <<_ACEOF
4402 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4403 _ACEOF
4404
4405 fi
4406
4407 done
4408
4409
4410
4411
4412
4413
4414
4415
4416
4417
4418
4419
4420 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/resource.h sys/socket.h
4421 do
4422 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4423 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4424   echo "$as_me:$LINENO: checking for $ac_header" >&5
4425 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4426 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4427   echo $ECHO_N "(cached) $ECHO_C" >&6
4428 fi
4429 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4430 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4431 else
4432   # Is the header compilable?
4433 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4434 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4435 cat >conftest.$ac_ext <<_ACEOF
4436 /* confdefs.h.  */
4437 _ACEOF
4438 cat confdefs.h >>conftest.$ac_ext
4439 cat >>conftest.$ac_ext <<_ACEOF
4440 /* end confdefs.h.  */
4441 $ac_includes_default
4442 #include <$ac_header>
4443 _ACEOF
4444 rm -f conftest.$ac_objext
4445 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4446   (eval $ac_compile) 2>conftest.er1
4447   ac_status=$?
4448   grep -v '^ *+' conftest.er1 >conftest.err
4449   rm -f conftest.er1
4450   cat conftest.err >&5
4451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4452   (exit $ac_status); } &&
4453          { ac_try='test -z "$ac_c_werror_flag"
4454                          || test ! -s conftest.err'
4455   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4456   (eval $ac_try) 2>&5
4457   ac_status=$?
4458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4459   (exit $ac_status); }; } &&
4460          { ac_try='test -s conftest.$ac_objext'
4461   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4462   (eval $ac_try) 2>&5
4463   ac_status=$?
4464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4465   (exit $ac_status); }; }; then
4466   ac_header_compiler=yes
4467 else
4468   echo "$as_me: failed program was:" >&5
4469 sed 's/^/| /' conftest.$ac_ext >&5
4470
4471 ac_header_compiler=no
4472 fi
4473 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4474 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4475 echo "${ECHO_T}$ac_header_compiler" >&6
4476
4477 # Is the header present?
4478 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4479 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4480 cat >conftest.$ac_ext <<_ACEOF
4481 /* confdefs.h.  */
4482 _ACEOF
4483 cat confdefs.h >>conftest.$ac_ext
4484 cat >>conftest.$ac_ext <<_ACEOF
4485 /* end confdefs.h.  */
4486 #include <$ac_header>
4487 _ACEOF
4488 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4489   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4490   ac_status=$?
4491   grep -v '^ *+' conftest.er1 >conftest.err
4492   rm -f conftest.er1
4493   cat conftest.err >&5
4494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4495   (exit $ac_status); } >/dev/null; then
4496   if test -s conftest.err; then
4497     ac_cpp_err=$ac_c_preproc_warn_flag
4498     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4499   else
4500     ac_cpp_err=
4501   fi
4502 else
4503   ac_cpp_err=yes
4504 fi
4505 if test -z "$ac_cpp_err"; then
4506   ac_header_preproc=yes
4507 else
4508   echo "$as_me: failed program was:" >&5
4509 sed 's/^/| /' conftest.$ac_ext >&5
4510
4511   ac_header_preproc=no
4512 fi
4513 rm -f conftest.err conftest.$ac_ext
4514 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4515 echo "${ECHO_T}$ac_header_preproc" >&6
4516
4517 # So?  What about this header?
4518 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4519   yes:no: )
4520     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4521 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4522     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4523 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4524     ac_header_preproc=yes
4525     ;;
4526   no:yes:* )
4527     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4528 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4529     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4530 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4531     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4532 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4533     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4534 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4535     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4536 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4537     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4538 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4539     (
4540       cat <<\_ASBOX
4541 ## ------------------------------------------ ##
4542 ## Report this to the AC_PACKAGE_NAME lists.  ##
4543 ## ------------------------------------------ ##
4544 _ASBOX
4545     ) |
4546       sed "s/^/$as_me: WARNING:     /" >&2
4547     ;;
4548 esac
4549 echo "$as_me:$LINENO: checking for $ac_header" >&5
4550 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4551 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4552   echo $ECHO_N "(cached) $ECHO_C" >&6
4553 else
4554   eval "$as_ac_Header=\$ac_header_preproc"
4555 fi
4556 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4557 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4558
4559 fi
4560 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4561   cat >>confdefs.h <<_ACEOF
4562 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4563 _ACEOF
4564
4565 fi
4566
4567 done
4568
4569
4570 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4571 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
4572 if test "${ac_cv_c_bigendian+set}" = set; then
4573   echo $ECHO_N "(cached) $ECHO_C" >&6
4574 else
4575   # See if sys/param.h defines the BYTE_ORDER macro.
4576 cat >conftest.$ac_ext <<_ACEOF
4577 /* confdefs.h.  */
4578 _ACEOF
4579 cat confdefs.h >>conftest.$ac_ext
4580 cat >>conftest.$ac_ext <<_ACEOF
4581 /* end confdefs.h.  */
4582 #include <sys/types.h>
4583 #include <sys/param.h>
4584
4585 int
4586 main ()
4587 {
4588 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4589  bogus endian macros
4590 #endif
4591
4592   ;
4593   return 0;
4594 }
4595 _ACEOF
4596 rm -f conftest.$ac_objext
4597 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4598   (eval $ac_compile) 2>conftest.er1
4599   ac_status=$?
4600   grep -v '^ *+' conftest.er1 >conftest.err
4601   rm -f conftest.er1
4602   cat conftest.err >&5
4603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4604   (exit $ac_status); } &&
4605          { ac_try='test -z "$ac_c_werror_flag"
4606                          || test ! -s conftest.err'
4607   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4608   (eval $ac_try) 2>&5
4609   ac_status=$?
4610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4611   (exit $ac_status); }; } &&
4612          { ac_try='test -s conftest.$ac_objext'
4613   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4614   (eval $ac_try) 2>&5
4615   ac_status=$?
4616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4617   (exit $ac_status); }; }; then
4618   # It does; now see whether it defined to BIG_ENDIAN or not.
4619 cat >conftest.$ac_ext <<_ACEOF
4620 /* confdefs.h.  */
4621 _ACEOF
4622 cat confdefs.h >>conftest.$ac_ext
4623 cat >>conftest.$ac_ext <<_ACEOF
4624 /* end confdefs.h.  */
4625 #include <sys/types.h>
4626 #include <sys/param.h>
4627
4628 int
4629 main ()
4630 {
4631 #if BYTE_ORDER != BIG_ENDIAN
4632  not big endian
4633 #endif
4634
4635   ;
4636   return 0;
4637 }
4638 _ACEOF
4639 rm -f conftest.$ac_objext
4640 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4641   (eval $ac_compile) 2>conftest.er1
4642   ac_status=$?
4643   grep -v '^ *+' conftest.er1 >conftest.err
4644   rm -f conftest.er1
4645   cat conftest.err >&5
4646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4647   (exit $ac_status); } &&
4648          { ac_try='test -z "$ac_c_werror_flag"
4649                          || test ! -s conftest.err'
4650   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4651   (eval $ac_try) 2>&5
4652   ac_status=$?
4653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4654   (exit $ac_status); }; } &&
4655          { ac_try='test -s conftest.$ac_objext'
4656   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4657   (eval $ac_try) 2>&5
4658   ac_status=$?
4659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4660   (exit $ac_status); }; }; then
4661   ac_cv_c_bigendian=yes
4662 else
4663   echo "$as_me: failed program was:" >&5
4664 sed 's/^/| /' conftest.$ac_ext >&5
4665
4666 ac_cv_c_bigendian=no
4667 fi
4668 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4669 else
4670   echo "$as_me: failed program was:" >&5
4671 sed 's/^/| /' conftest.$ac_ext >&5
4672
4673 # It does not; compile a test program.
4674 if test "$cross_compiling" = yes; then
4675   # try to guess the endianness by grepping values into an object file
4676   ac_cv_c_bigendian=unknown
4677   cat >conftest.$ac_ext <<_ACEOF
4678 /* confdefs.h.  */
4679 _ACEOF
4680 cat confdefs.h >>conftest.$ac_ext
4681 cat >>conftest.$ac_ext <<_ACEOF
4682 /* end confdefs.h.  */
4683 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4684 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4685 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4686 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4687 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4688 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4689 int
4690 main ()
4691 {
4692  _ascii (); _ebcdic ();
4693   ;
4694   return 0;
4695 }
4696 _ACEOF
4697 rm -f conftest.$ac_objext
4698 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4699   (eval $ac_compile) 2>conftest.er1
4700   ac_status=$?
4701   grep -v '^ *+' conftest.er1 >conftest.err
4702   rm -f conftest.er1
4703   cat conftest.err >&5
4704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4705   (exit $ac_status); } &&
4706          { ac_try='test -z "$ac_c_werror_flag"
4707                          || test ! -s conftest.err'
4708   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4709   (eval $ac_try) 2>&5
4710   ac_status=$?
4711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4712   (exit $ac_status); }; } &&
4713          { ac_try='test -s conftest.$ac_objext'
4714   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4715   (eval $ac_try) 2>&5
4716   ac_status=$?
4717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4718   (exit $ac_status); }; }; then
4719   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4720   ac_cv_c_bigendian=yes
4721 fi
4722 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4723   if test "$ac_cv_c_bigendian" = unknown; then
4724     ac_cv_c_bigendian=no
4725   else
4726     # finding both strings is unlikely to happen, but who knows?
4727     ac_cv_c_bigendian=unknown
4728   fi
4729 fi
4730 else
4731   echo "$as_me: failed program was:" >&5
4732 sed 's/^/| /' conftest.$ac_ext >&5
4733
4734 fi
4735 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4736 else
4737   cat >conftest.$ac_ext <<_ACEOF
4738 /* confdefs.h.  */
4739 _ACEOF
4740 cat confdefs.h >>conftest.$ac_ext
4741 cat >>conftest.$ac_ext <<_ACEOF
4742 /* end confdefs.h.  */
4743 int
4744 main ()
4745 {
4746   /* Are we little or big endian?  From Harbison&Steele.  */
4747   union
4748   {
4749     long l;
4750     char c[sizeof (long)];
4751   } u;
4752   u.l = 1;
4753   exit (u.c[sizeof (long) - 1] == 1);
4754 }
4755 _ACEOF
4756 rm -f conftest$ac_exeext
4757 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4758   (eval $ac_link) 2>&5
4759   ac_status=$?
4760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4761   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4762   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4763   (eval $ac_try) 2>&5
4764   ac_status=$?
4765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4766   (exit $ac_status); }; }; then
4767   ac_cv_c_bigendian=no
4768 else
4769   echo "$as_me: program exited with status $ac_status" >&5
4770 echo "$as_me: failed program was:" >&5
4771 sed 's/^/| /' conftest.$ac_ext >&5
4772
4773 ( exit $ac_status )
4774 ac_cv_c_bigendian=yes
4775 fi
4776 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4777 fi
4778 fi
4779 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4780 fi
4781 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4782 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
4783 case $ac_cv_c_bigendian in
4784   yes)
4785
4786 cat >>confdefs.h <<\_ACEOF
4787 #define WORDS_BIGENDIAN 1
4788 _ACEOF
4789  ;;
4790   no)
4791      ;;
4792   *)
4793     { { echo "$as_me:$LINENO: error: unknown endianness
4794 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4795 echo "$as_me: error: unknown endianness
4796 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4797    { (exit 1); exit 1; }; } ;;
4798 esac
4799
4800 echo "$as_me:$LINENO: checking for size_t" >&5
4801 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
4802 if test "${ac_cv_type_size_t+set}" = set; then
4803   echo $ECHO_N "(cached) $ECHO_C" >&6
4804 else
4805   cat >conftest.$ac_ext <<_ACEOF
4806 /* confdefs.h.  */
4807 _ACEOF
4808 cat confdefs.h >>conftest.$ac_ext
4809 cat >>conftest.$ac_ext <<_ACEOF
4810 /* end confdefs.h.  */
4811 $ac_includes_default
4812 int
4813 main ()
4814 {
4815 if ((size_t *) 0)
4816   return 0;
4817 if (sizeof (size_t))
4818   return 0;
4819   ;
4820   return 0;
4821 }
4822 _ACEOF
4823 rm -f conftest.$ac_objext
4824 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4825   (eval $ac_compile) 2>conftest.er1
4826   ac_status=$?
4827   grep -v '^ *+' conftest.er1 >conftest.err
4828   rm -f conftest.er1
4829   cat conftest.err >&5
4830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4831   (exit $ac_status); } &&
4832          { ac_try='test -z "$ac_c_werror_flag"
4833                          || test ! -s conftest.err'
4834   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4835   (eval $ac_try) 2>&5
4836   ac_status=$?
4837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4838   (exit $ac_status); }; } &&
4839          { ac_try='test -s conftest.$ac_objext'
4840   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4841   (eval $ac_try) 2>&5
4842   ac_status=$?
4843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4844   (exit $ac_status); }; }; then
4845   ac_cv_type_size_t=yes
4846 else
4847   echo "$as_me: failed program was:" >&5
4848 sed 's/^/| /' conftest.$ac_ext >&5
4849
4850 ac_cv_type_size_t=no
4851 fi
4852 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4853 fi
4854 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
4855 echo "${ECHO_T}$ac_cv_type_size_t" >&6
4856 if test $ac_cv_type_size_t = yes; then
4857   :
4858 else
4859
4860 cat >>confdefs.h <<_ACEOF
4861 #define size_t unsigned
4862 _ACEOF
4863
4864 fi
4865
4866 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
4867 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
4868 if test "${ac_cv_header_time+set}" = set; then
4869   echo $ECHO_N "(cached) $ECHO_C" >&6
4870 else
4871   cat >conftest.$ac_ext <<_ACEOF
4872 /* confdefs.h.  */
4873 _ACEOF
4874 cat confdefs.h >>conftest.$ac_ext
4875 cat >>conftest.$ac_ext <<_ACEOF
4876 /* end confdefs.h.  */
4877 #include <sys/types.h>
4878 #include <sys/time.h>
4879 #include <time.h>
4880
4881 int
4882 main ()
4883 {
4884 if ((struct tm *) 0)
4885 return 0;
4886   ;
4887   return 0;
4888 }
4889 _ACEOF
4890 rm -f conftest.$ac_objext
4891 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4892   (eval $ac_compile) 2>conftest.er1
4893   ac_status=$?
4894   grep -v '^ *+' conftest.er1 >conftest.err
4895   rm -f conftest.er1
4896   cat conftest.err >&5
4897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4898   (exit $ac_status); } &&
4899          { ac_try='test -z "$ac_c_werror_flag"
4900                          || test ! -s conftest.err'
4901   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4902   (eval $ac_try) 2>&5
4903   ac_status=$?
4904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4905   (exit $ac_status); }; } &&
4906          { ac_try='test -s conftest.$ac_objext'
4907   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4908   (eval $ac_try) 2>&5
4909   ac_status=$?
4910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4911   (exit $ac_status); }; }; then
4912   ac_cv_header_time=yes
4913 else
4914   echo "$as_me: failed program was:" >&5
4915 sed 's/^/| /' conftest.$ac_ext >&5
4916
4917 ac_cv_header_time=no
4918 fi
4919 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4920 fi
4921 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
4922 echo "${ECHO_T}$ac_cv_header_time" >&6
4923 if test $ac_cv_header_time = yes; then
4924
4925 cat >>confdefs.h <<\_ACEOF
4926 #define TIME_WITH_SYS_TIME 1
4927 _ACEOF
4928
4929 fi
4930
4931 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
4932 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
4933 if test "${ac_cv_struct_tm+set}" = set; then
4934   echo $ECHO_N "(cached) $ECHO_C" >&6
4935 else
4936   cat >conftest.$ac_ext <<_ACEOF
4937 /* confdefs.h.  */
4938 _ACEOF
4939 cat confdefs.h >>conftest.$ac_ext
4940 cat >>conftest.$ac_ext <<_ACEOF
4941 /* end confdefs.h.  */
4942 #include <sys/types.h>
4943 #include <time.h>
4944
4945 int
4946 main ()
4947 {
4948 struct tm *tp; tp->tm_sec;
4949   ;
4950   return 0;
4951 }
4952 _ACEOF
4953 rm -f conftest.$ac_objext
4954 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4955   (eval $ac_compile) 2>conftest.er1
4956   ac_status=$?
4957   grep -v '^ *+' conftest.er1 >conftest.err
4958   rm -f conftest.er1
4959   cat conftest.err >&5
4960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4961   (exit $ac_status); } &&
4962          { ac_try='test -z "$ac_c_werror_flag"
4963                          || test ! -s conftest.err'
4964   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4965   (eval $ac_try) 2>&5
4966   ac_status=$?
4967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4968   (exit $ac_status); }; } &&
4969          { ac_try='test -s conftest.$ac_objext'
4970   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4971   (eval $ac_try) 2>&5
4972   ac_status=$?
4973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4974   (exit $ac_status); }; }; then
4975   ac_cv_struct_tm=time.h
4976 else
4977   echo "$as_me: failed program was:" >&5
4978 sed 's/^/| /' conftest.$ac_ext >&5
4979
4980 ac_cv_struct_tm=sys/time.h
4981 fi
4982 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4983 fi
4984 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
4985 echo "${ECHO_T}$ac_cv_struct_tm" >&6
4986 if test $ac_cv_struct_tm = sys/time.h; then
4987
4988 cat >>confdefs.h <<\_ACEOF
4989 #define TM_IN_SYS_TIME 1
4990 _ACEOF
4991
4992 fi
4993
4994 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
4995 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
4996 if test "${ac_cv_type_uid_t+set}" = set; then
4997   echo $ECHO_N "(cached) $ECHO_C" >&6
4998 else
4999   cat >conftest.$ac_ext <<_ACEOF
5000 /* confdefs.h.  */
5001 _ACEOF
5002 cat confdefs.h >>conftest.$ac_ext
5003 cat >>conftest.$ac_ext <<_ACEOF
5004 /* end confdefs.h.  */
5005 #include <sys/types.h>
5006
5007 _ACEOF
5008 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5009   $EGREP "uid_t" >/dev/null 2>&1; then
5010   ac_cv_type_uid_t=yes
5011 else
5012   ac_cv_type_uid_t=no
5013 fi
5014 rm -f conftest*
5015
5016 fi
5017 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
5018 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
5019 if test $ac_cv_type_uid_t = no; then
5020
5021 cat >>confdefs.h <<\_ACEOF
5022 #define uid_t int
5023 _ACEOF
5024
5025
5026 cat >>confdefs.h <<\_ACEOF
5027 #define gid_t int
5028 _ACEOF
5029
5030 fi
5031
5032 echo "$as_me:$LINENO: checking for short" >&5
5033 echo $ECHO_N "checking for short... $ECHO_C" >&6
5034 if test "${ac_cv_type_short+set}" = set; then
5035   echo $ECHO_N "(cached) $ECHO_C" >&6
5036 else
5037   cat >conftest.$ac_ext <<_ACEOF
5038 /* confdefs.h.  */
5039 _ACEOF
5040 cat confdefs.h >>conftest.$ac_ext
5041 cat >>conftest.$ac_ext <<_ACEOF
5042 /* end confdefs.h.  */
5043 $ac_includes_default
5044 int
5045 main ()
5046 {
5047 if ((short *) 0)
5048   return 0;
5049 if (sizeof (short))
5050   return 0;
5051   ;
5052   return 0;
5053 }
5054 _ACEOF
5055 rm -f conftest.$ac_objext
5056 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5057   (eval $ac_compile) 2>conftest.er1
5058   ac_status=$?
5059   grep -v '^ *+' conftest.er1 >conftest.err
5060   rm -f conftest.er1
5061   cat conftest.err >&5
5062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5063   (exit $ac_status); } &&
5064          { ac_try='test -z "$ac_c_werror_flag"
5065                          || 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_cv_type_short=yes
5078 else
5079   echo "$as_me: failed program was:" >&5
5080 sed 's/^/| /' conftest.$ac_ext >&5
5081
5082 ac_cv_type_short=no
5083 fi
5084 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5085 fi
5086 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
5087 echo "${ECHO_T}$ac_cv_type_short" >&6
5088
5089 echo "$as_me:$LINENO: checking size of short" >&5
5090 echo $ECHO_N "checking size of short... $ECHO_C" >&6
5091 if test "${ac_cv_sizeof_short+set}" = set; then
5092   echo $ECHO_N "(cached) $ECHO_C" >&6
5093 else
5094   if test "$ac_cv_type_short" = yes; then
5095   # The cast to unsigned long works around a bug in the HP C Compiler
5096   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5097   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5098   # This bug is HP SR number 8606223364.
5099   if test "$cross_compiling" = yes; then
5100   # Depending upon the size, compute the lo and hi bounds.
5101 cat >conftest.$ac_ext <<_ACEOF
5102 /* confdefs.h.  */
5103 _ACEOF
5104 cat confdefs.h >>conftest.$ac_ext
5105 cat >>conftest.$ac_ext <<_ACEOF
5106 /* end confdefs.h.  */
5107 $ac_includes_default
5108 int
5109 main ()
5110 {
5111 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
5112 test_array [0] = 0
5113
5114   ;
5115   return 0;
5116 }
5117 _ACEOF
5118 rm -f conftest.$ac_objext
5119 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5120   (eval $ac_compile) 2>conftest.er1
5121   ac_status=$?
5122   grep -v '^ *+' conftest.er1 >conftest.err
5123   rm -f conftest.er1
5124   cat conftest.err >&5
5125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5126   (exit $ac_status); } &&
5127          { ac_try='test -z "$ac_c_werror_flag"
5128                          || test ! -s conftest.err'
5129   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5130   (eval $ac_try) 2>&5
5131   ac_status=$?
5132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5133   (exit $ac_status); }; } &&
5134          { ac_try='test -s conftest.$ac_objext'
5135   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5136   (eval $ac_try) 2>&5
5137   ac_status=$?
5138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5139   (exit $ac_status); }; }; then
5140   ac_lo=0 ac_mid=0
5141   while :; do
5142     cat >conftest.$ac_ext <<_ACEOF
5143 /* confdefs.h.  */
5144 _ACEOF
5145 cat confdefs.h >>conftest.$ac_ext
5146 cat >>conftest.$ac_ext <<_ACEOF
5147 /* end confdefs.h.  */
5148 $ac_includes_default
5149 int
5150 main ()
5151 {
5152 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
5153 test_array [0] = 0
5154
5155   ;
5156   return 0;
5157 }
5158 _ACEOF
5159 rm -f conftest.$ac_objext
5160 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5161   (eval $ac_compile) 2>conftest.er1
5162   ac_status=$?
5163   grep -v '^ *+' conftest.er1 >conftest.err
5164   rm -f conftest.er1
5165   cat conftest.err >&5
5166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5167   (exit $ac_status); } &&
5168          { ac_try='test -z "$ac_c_werror_flag"
5169                          || test ! -s conftest.err'
5170   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5171   (eval $ac_try) 2>&5
5172   ac_status=$?
5173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5174   (exit $ac_status); }; } &&
5175          { ac_try='test -s conftest.$ac_objext'
5176   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5177   (eval $ac_try) 2>&5
5178   ac_status=$?
5179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5180   (exit $ac_status); }; }; then
5181   ac_hi=$ac_mid; break
5182 else
5183   echo "$as_me: failed program was:" >&5
5184 sed 's/^/| /' conftest.$ac_ext >&5
5185
5186 ac_lo=`expr $ac_mid + 1`
5187                     if test $ac_lo -le $ac_mid; then
5188                       ac_lo= ac_hi=
5189                       break
5190                     fi
5191                     ac_mid=`expr 2 '*' $ac_mid + 1`
5192 fi
5193 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5194   done
5195 else
5196   echo "$as_me: failed program was:" >&5
5197 sed 's/^/| /' conftest.$ac_ext >&5
5198
5199 cat >conftest.$ac_ext <<_ACEOF
5200 /* confdefs.h.  */
5201 _ACEOF
5202 cat confdefs.h >>conftest.$ac_ext
5203 cat >>conftest.$ac_ext <<_ACEOF
5204 /* end confdefs.h.  */
5205 $ac_includes_default
5206 int
5207 main ()
5208 {
5209 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
5210 test_array [0] = 0
5211
5212   ;
5213   return 0;
5214 }
5215 _ACEOF
5216 rm -f conftest.$ac_objext
5217 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5218   (eval $ac_compile) 2>conftest.er1
5219   ac_status=$?
5220   grep -v '^ *+' conftest.er1 >conftest.err
5221   rm -f conftest.er1
5222   cat conftest.err >&5
5223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5224   (exit $ac_status); } &&
5225          { ac_try='test -z "$ac_c_werror_flag"
5226                          || test ! -s conftest.err'
5227   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5228   (eval $ac_try) 2>&5
5229   ac_status=$?
5230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5231   (exit $ac_status); }; } &&
5232          { ac_try='test -s conftest.$ac_objext'
5233   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5234   (eval $ac_try) 2>&5
5235   ac_status=$?
5236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5237   (exit $ac_status); }; }; then
5238   ac_hi=-1 ac_mid=-1
5239   while :; do
5240     cat >conftest.$ac_ext <<_ACEOF
5241 /* confdefs.h.  */
5242 _ACEOF
5243 cat confdefs.h >>conftest.$ac_ext
5244 cat >>conftest.$ac_ext <<_ACEOF
5245 /* end confdefs.h.  */
5246 $ac_includes_default
5247 int
5248 main ()
5249 {
5250 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
5251 test_array [0] = 0
5252
5253   ;
5254   return 0;
5255 }
5256 _ACEOF
5257 rm -f conftest.$ac_objext
5258 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5259   (eval $ac_compile) 2>conftest.er1
5260   ac_status=$?
5261   grep -v '^ *+' conftest.er1 >conftest.err
5262   rm -f conftest.er1
5263   cat conftest.err >&5
5264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5265   (exit $ac_status); } &&
5266          { ac_try='test -z "$ac_c_werror_flag"
5267                          || test ! -s conftest.err'
5268   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5269   (eval $ac_try) 2>&5
5270   ac_status=$?
5271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5272   (exit $ac_status); }; } &&
5273          { ac_try='test -s conftest.$ac_objext'
5274   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5275   (eval $ac_try) 2>&5
5276   ac_status=$?
5277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5278   (exit $ac_status); }; }; then
5279   ac_lo=$ac_mid; break
5280 else
5281   echo "$as_me: failed program was:" >&5
5282 sed 's/^/| /' conftest.$ac_ext >&5
5283
5284 ac_hi=`expr '(' $ac_mid ')' - 1`
5285                        if test $ac_mid -le $ac_hi; then
5286                          ac_lo= ac_hi=
5287                          break
5288                        fi
5289                        ac_mid=`expr 2 '*' $ac_mid`
5290 fi
5291 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5292   done
5293 else
5294   echo "$as_me: failed program was:" >&5
5295 sed 's/^/| /' conftest.$ac_ext >&5
5296
5297 ac_lo= ac_hi=
5298 fi
5299 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5300 fi
5301 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5302 # Binary search between lo and hi bounds.
5303 while test "x$ac_lo" != "x$ac_hi"; do
5304   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5305   cat >conftest.$ac_ext <<_ACEOF
5306 /* confdefs.h.  */
5307 _ACEOF
5308 cat confdefs.h >>conftest.$ac_ext
5309 cat >>conftest.$ac_ext <<_ACEOF
5310 /* end confdefs.h.  */
5311 $ac_includes_default
5312 int
5313 main ()
5314 {
5315 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
5316 test_array [0] = 0
5317
5318   ;
5319   return 0;
5320 }
5321 _ACEOF
5322 rm -f conftest.$ac_objext
5323 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5324   (eval $ac_compile) 2>conftest.er1
5325   ac_status=$?
5326   grep -v '^ *+' conftest.er1 >conftest.err
5327   rm -f conftest.er1
5328   cat conftest.err >&5
5329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5330   (exit $ac_status); } &&
5331          { ac_try='test -z "$ac_c_werror_flag"
5332                          || test ! -s conftest.err'
5333   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5334   (eval $ac_try) 2>&5
5335   ac_status=$?
5336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5337   (exit $ac_status); }; } &&
5338          { ac_try='test -s conftest.$ac_objext'
5339   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5340   (eval $ac_try) 2>&5
5341   ac_status=$?
5342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5343   (exit $ac_status); }; }; then
5344   ac_hi=$ac_mid
5345 else
5346   echo "$as_me: failed program was:" >&5
5347 sed 's/^/| /' conftest.$ac_ext >&5
5348
5349 ac_lo=`expr '(' $ac_mid ')' + 1`
5350 fi
5351 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5352 done
5353 case $ac_lo in
5354 ?*) ac_cv_sizeof_short=$ac_lo;;
5355 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
5356 See \`config.log' for more details." >&5
5357 echo "$as_me: error: cannot compute sizeof (short), 77
5358 See \`config.log' for more details." >&2;}
5359    { (exit 1); exit 1; }; } ;;
5360 esac
5361 else
5362   if test "$cross_compiling" = yes; then
5363   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5364 See \`config.log' for more details." >&5
5365 echo "$as_me: error: cannot run test program while cross compiling
5366 See \`config.log' for more details." >&2;}
5367    { (exit 1); exit 1; }; }
5368 else
5369   cat >conftest.$ac_ext <<_ACEOF
5370 /* confdefs.h.  */
5371 _ACEOF
5372 cat confdefs.h >>conftest.$ac_ext
5373 cat >>conftest.$ac_ext <<_ACEOF
5374 /* end confdefs.h.  */
5375 $ac_includes_default
5376 long longval () { return (long) (sizeof (short)); }
5377 unsigned long ulongval () { return (long) (sizeof (short)); }
5378 #include <stdio.h>
5379 #include <stdlib.h>
5380 int
5381 main ()
5382 {
5383
5384   FILE *f = fopen ("conftest.val", "w");
5385   if (! f)
5386     exit (1);
5387   if (((long) (sizeof (short))) < 0)
5388     {
5389       long i = longval ();
5390       if (i != ((long) (sizeof (short))))
5391         exit (1);
5392       fprintf (f, "%ld\n", i);
5393     }
5394   else
5395     {
5396       unsigned long i = ulongval ();
5397       if (i != ((long) (sizeof (short))))
5398         exit (1);
5399       fprintf (f, "%lu\n", i);
5400     }
5401   exit (ferror (f) || fclose (f) != 0);
5402
5403   ;
5404   return 0;
5405 }
5406 _ACEOF
5407 rm -f conftest$ac_exeext
5408 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5409   (eval $ac_link) 2>&5
5410   ac_status=$?
5411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5412   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5413   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5414   (eval $ac_try) 2>&5
5415   ac_status=$?
5416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5417   (exit $ac_status); }; }; then
5418   ac_cv_sizeof_short=`cat conftest.val`
5419 else
5420   echo "$as_me: program exited with status $ac_status" >&5
5421 echo "$as_me: failed program was:" >&5
5422 sed 's/^/| /' conftest.$ac_ext >&5
5423
5424 ( exit $ac_status )
5425 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
5426 See \`config.log' for more details." >&5
5427 echo "$as_me: error: cannot compute sizeof (short), 77
5428 See \`config.log' for more details." >&2;}
5429    { (exit 1); exit 1; }; }
5430 fi
5431 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5432 fi
5433 fi
5434 rm -f conftest.val
5435 else
5436   ac_cv_sizeof_short=0
5437 fi
5438 fi
5439 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
5440 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
5441 cat >>confdefs.h <<_ACEOF
5442 #define SIZEOF_SHORT $ac_cv_sizeof_short
5443 _ACEOF
5444
5445
5446 echo "$as_me:$LINENO: checking for int" >&5
5447 echo $ECHO_N "checking for int... $ECHO_C" >&6
5448 if test "${ac_cv_type_int+set}" = set; then
5449   echo $ECHO_N "(cached) $ECHO_C" >&6
5450 else
5451   cat >conftest.$ac_ext <<_ACEOF
5452 /* confdefs.h.  */
5453 _ACEOF
5454 cat confdefs.h >>conftest.$ac_ext
5455 cat >>conftest.$ac_ext <<_ACEOF
5456 /* end confdefs.h.  */
5457 $ac_includes_default
5458 int
5459 main ()
5460 {
5461 if ((int *) 0)
5462   return 0;
5463 if (sizeof (int))
5464   return 0;
5465   ;
5466   return 0;
5467 }
5468 _ACEOF
5469 rm -f conftest.$ac_objext
5470 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5471   (eval $ac_compile) 2>conftest.er1
5472   ac_status=$?
5473   grep -v '^ *+' conftest.er1 >conftest.err
5474   rm -f conftest.er1
5475   cat conftest.err >&5
5476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5477   (exit $ac_status); } &&
5478          { ac_try='test -z "$ac_c_werror_flag"
5479                          || test ! -s conftest.err'
5480   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5481   (eval $ac_try) 2>&5
5482   ac_status=$?
5483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5484   (exit $ac_status); }; } &&
5485          { ac_try='test -s conftest.$ac_objext'
5486   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5487   (eval $ac_try) 2>&5
5488   ac_status=$?
5489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5490   (exit $ac_status); }; }; then
5491   ac_cv_type_int=yes
5492 else
5493   echo "$as_me: failed program was:" >&5
5494 sed 's/^/| /' conftest.$ac_ext >&5
5495
5496 ac_cv_type_int=no
5497 fi
5498 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5499 fi
5500 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
5501 echo "${ECHO_T}$ac_cv_type_int" >&6
5502
5503 echo "$as_me:$LINENO: checking size of int" >&5
5504 echo $ECHO_N "checking size of int... $ECHO_C" >&6
5505 if test "${ac_cv_sizeof_int+set}" = set; then
5506   echo $ECHO_N "(cached) $ECHO_C" >&6
5507 else
5508   if test "$ac_cv_type_int" = yes; then
5509   # The cast to unsigned long works around a bug in the HP C Compiler
5510   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5511   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5512   # This bug is HP SR number 8606223364.
5513   if test "$cross_compiling" = yes; then
5514   # Depending upon the size, compute the lo and hi bounds.
5515 cat >conftest.$ac_ext <<_ACEOF
5516 /* confdefs.h.  */
5517 _ACEOF
5518 cat confdefs.h >>conftest.$ac_ext
5519 cat >>conftest.$ac_ext <<_ACEOF
5520 /* end confdefs.h.  */
5521 $ac_includes_default
5522 int
5523 main ()
5524 {
5525 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
5526 test_array [0] = 0
5527
5528   ;
5529   return 0;
5530 }
5531 _ACEOF
5532 rm -f conftest.$ac_objext
5533 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5534   (eval $ac_compile) 2>conftest.er1
5535   ac_status=$?
5536   grep -v '^ *+' conftest.er1 >conftest.err
5537   rm -f conftest.er1
5538   cat conftest.err >&5
5539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5540   (exit $ac_status); } &&
5541          { ac_try='test -z "$ac_c_werror_flag"
5542                          || test ! -s conftest.err'
5543   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5544   (eval $ac_try) 2>&5
5545   ac_status=$?
5546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5547   (exit $ac_status); }; } &&
5548          { ac_try='test -s conftest.$ac_objext'
5549   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5550   (eval $ac_try) 2>&5
5551   ac_status=$?
5552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5553   (exit $ac_status); }; }; then
5554   ac_lo=0 ac_mid=0
5555   while :; do
5556     cat >conftest.$ac_ext <<_ACEOF
5557 /* confdefs.h.  */
5558 _ACEOF
5559 cat confdefs.h >>conftest.$ac_ext
5560 cat >>conftest.$ac_ext <<_ACEOF
5561 /* end confdefs.h.  */
5562 $ac_includes_default
5563 int
5564 main ()
5565 {
5566 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
5567 test_array [0] = 0
5568
5569   ;
5570   return 0;
5571 }
5572 _ACEOF
5573 rm -f conftest.$ac_objext
5574 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5575   (eval $ac_compile) 2>conftest.er1
5576   ac_status=$?
5577   grep -v '^ *+' conftest.er1 >conftest.err
5578   rm -f conftest.er1
5579   cat conftest.err >&5
5580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5581   (exit $ac_status); } &&
5582          { ac_try='test -z "$ac_c_werror_flag"
5583                          || test ! -s conftest.err'
5584   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5585   (eval $ac_try) 2>&5
5586   ac_status=$?
5587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5588   (exit $ac_status); }; } &&
5589          { ac_try='test -s conftest.$ac_objext'
5590   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5591   (eval $ac_try) 2>&5
5592   ac_status=$?
5593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5594   (exit $ac_status); }; }; then
5595   ac_hi=$ac_mid; break
5596 else
5597   echo "$as_me: failed program was:" >&5
5598 sed 's/^/| /' conftest.$ac_ext >&5
5599
5600 ac_lo=`expr $ac_mid + 1`
5601                     if test $ac_lo -le $ac_mid; then
5602                       ac_lo= ac_hi=
5603                       break
5604                     fi
5605                     ac_mid=`expr 2 '*' $ac_mid + 1`
5606 fi
5607 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5608   done
5609 else
5610   echo "$as_me: failed program was:" >&5
5611 sed 's/^/| /' conftest.$ac_ext >&5
5612
5613 cat >conftest.$ac_ext <<_ACEOF
5614 /* confdefs.h.  */
5615 _ACEOF
5616 cat confdefs.h >>conftest.$ac_ext
5617 cat >>conftest.$ac_ext <<_ACEOF
5618 /* end confdefs.h.  */
5619 $ac_includes_default
5620 int
5621 main ()
5622 {
5623 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
5624 test_array [0] = 0
5625
5626   ;
5627   return 0;
5628 }
5629 _ACEOF
5630 rm -f conftest.$ac_objext
5631 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5632   (eval $ac_compile) 2>conftest.er1
5633   ac_status=$?
5634   grep -v '^ *+' conftest.er1 >conftest.err
5635   rm -f conftest.er1
5636   cat conftest.err >&5
5637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5638   (exit $ac_status); } &&
5639          { ac_try='test -z "$ac_c_werror_flag"
5640                          || test ! -s conftest.err'
5641   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5642   (eval $ac_try) 2>&5
5643   ac_status=$?
5644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5645   (exit $ac_status); }; } &&
5646          { ac_try='test -s conftest.$ac_objext'
5647   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5648   (eval $ac_try) 2>&5
5649   ac_status=$?
5650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5651   (exit $ac_status); }; }; then
5652   ac_hi=-1 ac_mid=-1
5653   while :; do
5654     cat >conftest.$ac_ext <<_ACEOF
5655 /* confdefs.h.  */
5656 _ACEOF
5657 cat confdefs.h >>conftest.$ac_ext
5658 cat >>conftest.$ac_ext <<_ACEOF
5659 /* end confdefs.h.  */
5660 $ac_includes_default
5661 int
5662 main ()
5663 {
5664 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
5665 test_array [0] = 0
5666
5667   ;
5668   return 0;
5669 }
5670 _ACEOF
5671 rm -f conftest.$ac_objext
5672 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5673   (eval $ac_compile) 2>conftest.er1
5674   ac_status=$?
5675   grep -v '^ *+' conftest.er1 >conftest.err
5676   rm -f conftest.er1
5677   cat conftest.err >&5
5678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5679   (exit $ac_status); } &&
5680          { ac_try='test -z "$ac_c_werror_flag"
5681                          || test ! -s conftest.err'
5682   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5683   (eval $ac_try) 2>&5
5684   ac_status=$?
5685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5686   (exit $ac_status); }; } &&
5687          { ac_try='test -s conftest.$ac_objext'
5688   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5689   (eval $ac_try) 2>&5
5690   ac_status=$?
5691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5692   (exit $ac_status); }; }; then
5693   ac_lo=$ac_mid; break
5694 else
5695   echo "$as_me: failed program was:" >&5
5696 sed 's/^/| /' conftest.$ac_ext >&5
5697
5698 ac_hi=`expr '(' $ac_mid ')' - 1`
5699                        if test $ac_mid -le $ac_hi; then
5700                          ac_lo= ac_hi=
5701                          break
5702                        fi
5703                        ac_mid=`expr 2 '*' $ac_mid`
5704 fi
5705 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5706   done
5707 else
5708   echo "$as_me: failed program was:" >&5
5709 sed 's/^/| /' conftest.$ac_ext >&5
5710
5711 ac_lo= ac_hi=
5712 fi
5713 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5714 fi
5715 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5716 # Binary search between lo and hi bounds.
5717 while test "x$ac_lo" != "x$ac_hi"; do
5718   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5719   cat >conftest.$ac_ext <<_ACEOF
5720 /* confdefs.h.  */
5721 _ACEOF
5722 cat confdefs.h >>conftest.$ac_ext
5723 cat >>conftest.$ac_ext <<_ACEOF
5724 /* end confdefs.h.  */
5725 $ac_includes_default
5726 int
5727 main ()
5728 {
5729 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
5730 test_array [0] = 0
5731
5732   ;
5733   return 0;
5734 }
5735 _ACEOF
5736 rm -f conftest.$ac_objext
5737 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5738   (eval $ac_compile) 2>conftest.er1
5739   ac_status=$?
5740   grep -v '^ *+' conftest.er1 >conftest.err
5741   rm -f conftest.er1
5742   cat conftest.err >&5
5743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5744   (exit $ac_status); } &&
5745          { ac_try='test -z "$ac_c_werror_flag"
5746                          || test ! -s conftest.err'
5747   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5748   (eval $ac_try) 2>&5
5749   ac_status=$?
5750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5751   (exit $ac_status); }; } &&
5752          { ac_try='test -s conftest.$ac_objext'
5753   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5754   (eval $ac_try) 2>&5
5755   ac_status=$?
5756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5757   (exit $ac_status); }; }; then
5758   ac_hi=$ac_mid
5759 else
5760   echo "$as_me: failed program was:" >&5
5761 sed 's/^/| /' conftest.$ac_ext >&5
5762
5763 ac_lo=`expr '(' $ac_mid ')' + 1`
5764 fi
5765 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5766 done
5767 case $ac_lo in
5768 ?*) ac_cv_sizeof_int=$ac_lo;;
5769 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
5770 See \`config.log' for more details." >&5
5771 echo "$as_me: error: cannot compute sizeof (int), 77
5772 See \`config.log' for more details." >&2;}
5773    { (exit 1); exit 1; }; } ;;
5774 esac
5775 else
5776   if test "$cross_compiling" = yes; then
5777   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5778 See \`config.log' for more details." >&5
5779 echo "$as_me: error: cannot run test program while cross compiling
5780 See \`config.log' for more details." >&2;}
5781    { (exit 1); exit 1; }; }
5782 else
5783   cat >conftest.$ac_ext <<_ACEOF
5784 /* confdefs.h.  */
5785 _ACEOF
5786 cat confdefs.h >>conftest.$ac_ext
5787 cat >>conftest.$ac_ext <<_ACEOF
5788 /* end confdefs.h.  */
5789 $ac_includes_default
5790 long longval () { return (long) (sizeof (int)); }
5791 unsigned long ulongval () { return (long) (sizeof (int)); }
5792 #include <stdio.h>
5793 #include <stdlib.h>
5794 int
5795 main ()
5796 {
5797
5798   FILE *f = fopen ("conftest.val", "w");
5799   if (! f)
5800     exit (1);
5801   if (((long) (sizeof (int))) < 0)
5802     {
5803       long i = longval ();
5804       if (i != ((long) (sizeof (int))))
5805         exit (1);
5806       fprintf (f, "%ld\n", i);
5807     }
5808   else
5809     {
5810       unsigned long i = ulongval ();
5811       if (i != ((long) (sizeof (int))))
5812         exit (1);
5813       fprintf (f, "%lu\n", i);
5814     }
5815   exit (ferror (f) || fclose (f) != 0);
5816
5817   ;
5818   return 0;
5819 }
5820 _ACEOF
5821 rm -f conftest$ac_exeext
5822 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5823   (eval $ac_link) 2>&5
5824   ac_status=$?
5825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5826   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5827   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5828   (eval $ac_try) 2>&5
5829   ac_status=$?
5830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5831   (exit $ac_status); }; }; then
5832   ac_cv_sizeof_int=`cat conftest.val`
5833 else
5834   echo "$as_me: program exited with status $ac_status" >&5
5835 echo "$as_me: failed program was:" >&5
5836 sed 's/^/| /' conftest.$ac_ext >&5
5837
5838 ( exit $ac_status )
5839 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
5840 See \`config.log' for more details." >&5
5841 echo "$as_me: error: cannot compute sizeof (int), 77
5842 See \`config.log' for more details." >&2;}
5843    { (exit 1); exit 1; }; }
5844 fi
5845 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5846 fi
5847 fi
5848 rm -f conftest.val
5849 else
5850   ac_cv_sizeof_int=0
5851 fi
5852 fi
5853 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
5854 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
5855 cat >>confdefs.h <<_ACEOF
5856 #define SIZEOF_INT $ac_cv_sizeof_int
5857 _ACEOF
5858
5859
5860 echo "$as_me:$LINENO: checking for long" >&5
5861 echo $ECHO_N "checking for long... $ECHO_C" >&6
5862 if test "${ac_cv_type_long+set}" = set; then
5863   echo $ECHO_N "(cached) $ECHO_C" >&6
5864 else
5865   cat >conftest.$ac_ext <<_ACEOF
5866 /* confdefs.h.  */
5867 _ACEOF
5868 cat confdefs.h >>conftest.$ac_ext
5869 cat >>conftest.$ac_ext <<_ACEOF
5870 /* end confdefs.h.  */
5871 $ac_includes_default
5872 int
5873 main ()
5874 {
5875 if ((long *) 0)
5876   return 0;
5877 if (sizeof (long))
5878   return 0;
5879   ;
5880   return 0;
5881 }
5882 _ACEOF
5883 rm -f conftest.$ac_objext
5884 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5885   (eval $ac_compile) 2>conftest.er1
5886   ac_status=$?
5887   grep -v '^ *+' conftest.er1 >conftest.err
5888   rm -f conftest.er1
5889   cat conftest.err >&5
5890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5891   (exit $ac_status); } &&
5892          { ac_try='test -z "$ac_c_werror_flag"
5893                          || test ! -s conftest.err'
5894   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5895   (eval $ac_try) 2>&5
5896   ac_status=$?
5897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5898   (exit $ac_status); }; } &&
5899          { ac_try='test -s conftest.$ac_objext'
5900   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5901   (eval $ac_try) 2>&5
5902   ac_status=$?
5903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5904   (exit $ac_status); }; }; then
5905   ac_cv_type_long=yes
5906 else
5907   echo "$as_me: failed program was:" >&5
5908 sed 's/^/| /' conftest.$ac_ext >&5
5909
5910 ac_cv_type_long=no
5911 fi
5912 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5913 fi
5914 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
5915 echo "${ECHO_T}$ac_cv_type_long" >&6
5916
5917 echo "$as_me:$LINENO: checking size of long" >&5
5918 echo $ECHO_N "checking size of long... $ECHO_C" >&6
5919 if test "${ac_cv_sizeof_long+set}" = set; then
5920   echo $ECHO_N "(cached) $ECHO_C" >&6
5921 else
5922   if test "$ac_cv_type_long" = yes; then
5923   # The cast to unsigned long works around a bug in the HP C Compiler
5924   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5925   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5926   # This bug is HP SR number 8606223364.
5927   if test "$cross_compiling" = yes; then
5928   # Depending upon the size, compute the lo and hi bounds.
5929 cat >conftest.$ac_ext <<_ACEOF
5930 /* confdefs.h.  */
5931 _ACEOF
5932 cat confdefs.h >>conftest.$ac_ext
5933 cat >>conftest.$ac_ext <<_ACEOF
5934 /* end confdefs.h.  */
5935 $ac_includes_default
5936 int
5937 main ()
5938 {
5939 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
5940 test_array [0] = 0
5941
5942   ;
5943   return 0;
5944 }
5945 _ACEOF
5946 rm -f conftest.$ac_objext
5947 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5948   (eval $ac_compile) 2>conftest.er1
5949   ac_status=$?
5950   grep -v '^ *+' conftest.er1 >conftest.err
5951   rm -f conftest.er1
5952   cat conftest.err >&5
5953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5954   (exit $ac_status); } &&
5955          { ac_try='test -z "$ac_c_werror_flag"
5956                          || test ! -s conftest.err'
5957   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5958   (eval $ac_try) 2>&5
5959   ac_status=$?
5960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5961   (exit $ac_status); }; } &&
5962          { ac_try='test -s conftest.$ac_objext'
5963   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5964   (eval $ac_try) 2>&5
5965   ac_status=$?
5966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5967   (exit $ac_status); }; }; then
5968   ac_lo=0 ac_mid=0
5969   while :; do
5970     cat >conftest.$ac_ext <<_ACEOF
5971 /* confdefs.h.  */
5972 _ACEOF
5973 cat confdefs.h >>conftest.$ac_ext
5974 cat >>conftest.$ac_ext <<_ACEOF
5975 /* end confdefs.h.  */
5976 $ac_includes_default
5977 int
5978 main ()
5979 {
5980 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5981 test_array [0] = 0
5982
5983   ;
5984   return 0;
5985 }
5986 _ACEOF
5987 rm -f conftest.$ac_objext
5988 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5989   (eval $ac_compile) 2>conftest.er1
5990   ac_status=$?
5991   grep -v '^ *+' conftest.er1 >conftest.err
5992   rm -f conftest.er1
5993   cat conftest.err >&5
5994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5995   (exit $ac_status); } &&
5996          { ac_try='test -z "$ac_c_werror_flag"
5997                          || test ! -s conftest.err'
5998   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5999   (eval $ac_try) 2>&5
6000   ac_status=$?
6001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6002   (exit $ac_status); }; } &&
6003          { ac_try='test -s conftest.$ac_objext'
6004   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6005   (eval $ac_try) 2>&5
6006   ac_status=$?
6007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6008   (exit $ac_status); }; }; then
6009   ac_hi=$ac_mid; break
6010 else
6011   echo "$as_me: failed program was:" >&5
6012 sed 's/^/| /' conftest.$ac_ext >&5
6013
6014 ac_lo=`expr $ac_mid + 1`
6015                     if test $ac_lo -le $ac_mid; then
6016                       ac_lo= ac_hi=
6017                       break
6018                     fi
6019                     ac_mid=`expr 2 '*' $ac_mid + 1`
6020 fi
6021 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6022   done
6023 else
6024   echo "$as_me: failed program was:" >&5
6025 sed 's/^/| /' conftest.$ac_ext >&5
6026
6027 cat >conftest.$ac_ext <<_ACEOF
6028 /* confdefs.h.  */
6029 _ACEOF
6030 cat confdefs.h >>conftest.$ac_ext
6031 cat >>conftest.$ac_ext <<_ACEOF
6032 /* end confdefs.h.  */
6033 $ac_includes_default
6034 int
6035 main ()
6036 {
6037 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
6038 test_array [0] = 0
6039
6040   ;
6041   return 0;
6042 }
6043 _ACEOF
6044 rm -f conftest.$ac_objext
6045 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6046   (eval $ac_compile) 2>conftest.er1
6047   ac_status=$?
6048   grep -v '^ *+' conftest.er1 >conftest.err
6049   rm -f conftest.er1
6050   cat conftest.err >&5
6051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6052   (exit $ac_status); } &&
6053          { ac_try='test -z "$ac_c_werror_flag"
6054                          || test ! -s conftest.err'
6055   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6056   (eval $ac_try) 2>&5
6057   ac_status=$?
6058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6059   (exit $ac_status); }; } &&
6060          { ac_try='test -s conftest.$ac_objext'
6061   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6062   (eval $ac_try) 2>&5
6063   ac_status=$?
6064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6065   (exit $ac_status); }; }; then
6066   ac_hi=-1 ac_mid=-1
6067   while :; do
6068     cat >conftest.$ac_ext <<_ACEOF
6069 /* confdefs.h.  */
6070 _ACEOF
6071 cat confdefs.h >>conftest.$ac_ext
6072 cat >>conftest.$ac_ext <<_ACEOF
6073 /* end confdefs.h.  */
6074 $ac_includes_default
6075 int
6076 main ()
6077 {
6078 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
6079 test_array [0] = 0
6080
6081   ;
6082   return 0;
6083 }
6084 _ACEOF
6085 rm -f conftest.$ac_objext
6086 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6087   (eval $ac_compile) 2>conftest.er1
6088   ac_status=$?
6089   grep -v '^ *+' conftest.er1 >conftest.err
6090   rm -f conftest.er1
6091   cat conftest.err >&5
6092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6093   (exit $ac_status); } &&
6094          { ac_try='test -z "$ac_c_werror_flag"
6095                          || test ! -s conftest.err'
6096   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6097   (eval $ac_try) 2>&5
6098   ac_status=$?
6099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6100   (exit $ac_status); }; } &&
6101          { ac_try='test -s conftest.$ac_objext'
6102   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6103   (eval $ac_try) 2>&5
6104   ac_status=$?
6105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6106   (exit $ac_status); }; }; then
6107   ac_lo=$ac_mid; break
6108 else
6109   echo "$as_me: failed program was:" >&5
6110 sed 's/^/| /' conftest.$ac_ext >&5
6111
6112 ac_hi=`expr '(' $ac_mid ')' - 1`
6113                        if test $ac_mid -le $ac_hi; then
6114                          ac_lo= ac_hi=
6115                          break
6116                        fi
6117                        ac_mid=`expr 2 '*' $ac_mid`
6118 fi
6119 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6120   done
6121 else
6122   echo "$as_me: failed program was:" >&5
6123 sed 's/^/| /' conftest.$ac_ext >&5
6124
6125 ac_lo= ac_hi=
6126 fi
6127 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6128 fi
6129 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6130 # Binary search between lo and hi bounds.
6131 while test "x$ac_lo" != "x$ac_hi"; do
6132   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6133   cat >conftest.$ac_ext <<_ACEOF
6134 /* confdefs.h.  */
6135 _ACEOF
6136 cat confdefs.h >>conftest.$ac_ext
6137 cat >>conftest.$ac_ext <<_ACEOF
6138 /* end confdefs.h.  */
6139 $ac_includes_default
6140 int
6141 main ()
6142 {
6143 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
6144 test_array [0] = 0
6145
6146   ;
6147   return 0;
6148 }
6149 _ACEOF
6150 rm -f conftest.$ac_objext
6151 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6152   (eval $ac_compile) 2>conftest.er1
6153   ac_status=$?
6154   grep -v '^ *+' conftest.er1 >conftest.err
6155   rm -f conftest.er1
6156   cat conftest.err >&5
6157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6158   (exit $ac_status); } &&
6159          { ac_try='test -z "$ac_c_werror_flag"
6160                          || test ! -s conftest.err'
6161   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6162   (eval $ac_try) 2>&5
6163   ac_status=$?
6164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6165   (exit $ac_status); }; } &&
6166          { ac_try='test -s conftest.$ac_objext'
6167   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6168   (eval $ac_try) 2>&5
6169   ac_status=$?
6170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6171   (exit $ac_status); }; }; then
6172   ac_hi=$ac_mid
6173 else
6174   echo "$as_me: failed program was:" >&5
6175 sed 's/^/| /' conftest.$ac_ext >&5
6176
6177 ac_lo=`expr '(' $ac_mid ')' + 1`
6178 fi
6179 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6180 done
6181 case $ac_lo in
6182 ?*) ac_cv_sizeof_long=$ac_lo;;
6183 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
6184 See \`config.log' for more details." >&5
6185 echo "$as_me: error: cannot compute sizeof (long), 77
6186 See \`config.log' for more details." >&2;}
6187    { (exit 1); exit 1; }; } ;;
6188 esac
6189 else
6190   if test "$cross_compiling" = yes; then
6191   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6192 See \`config.log' for more details." >&5
6193 echo "$as_me: error: cannot run test program while cross compiling
6194 See \`config.log' for more details." >&2;}
6195    { (exit 1); exit 1; }; }
6196 else
6197   cat >conftest.$ac_ext <<_ACEOF
6198 /* confdefs.h.  */
6199 _ACEOF
6200 cat confdefs.h >>conftest.$ac_ext
6201 cat >>conftest.$ac_ext <<_ACEOF
6202 /* end confdefs.h.  */
6203 $ac_includes_default
6204 long longval () { return (long) (sizeof (long)); }
6205 unsigned long ulongval () { return (long) (sizeof (long)); }
6206 #include <stdio.h>
6207 #include <stdlib.h>
6208 int
6209 main ()
6210 {
6211
6212   FILE *f = fopen ("conftest.val", "w");
6213   if (! f)
6214     exit (1);
6215   if (((long) (sizeof (long))) < 0)
6216     {
6217       long i = longval ();
6218       if (i != ((long) (sizeof (long))))
6219         exit (1);
6220       fprintf (f, "%ld\n", i);
6221     }
6222   else
6223     {
6224       unsigned long i = ulongval ();
6225       if (i != ((long) (sizeof (long))))
6226         exit (1);
6227       fprintf (f, "%lu\n", i);
6228     }
6229   exit (ferror (f) || fclose (f) != 0);
6230
6231   ;
6232   return 0;
6233 }
6234 _ACEOF
6235 rm -f conftest$ac_exeext
6236 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6237   (eval $ac_link) 2>&5
6238   ac_status=$?
6239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6240   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6241   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6242   (eval $ac_try) 2>&5
6243   ac_status=$?
6244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6245   (exit $ac_status); }; }; then
6246   ac_cv_sizeof_long=`cat conftest.val`
6247 else
6248   echo "$as_me: program exited with status $ac_status" >&5
6249 echo "$as_me: failed program was:" >&5
6250 sed 's/^/| /' conftest.$ac_ext >&5
6251
6252 ( exit $ac_status )
6253 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
6254 See \`config.log' for more details." >&5
6255 echo "$as_me: error: cannot compute sizeof (long), 77
6256 See \`config.log' for more details." >&2;}
6257    { (exit 1); exit 1; }; }
6258 fi
6259 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6260 fi
6261 fi
6262 rm -f conftest.val
6263 else
6264   ac_cv_sizeof_long=0
6265 fi
6266 fi
6267 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
6268 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
6269 cat >>confdefs.h <<_ACEOF
6270 #define SIZEOF_LONG $ac_cv_sizeof_long
6271 _ACEOF
6272
6273
6274 echo "$as_me:$LINENO: checking for void *" >&5
6275 echo $ECHO_N "checking for void *... $ECHO_C" >&6
6276 if test "${ac_cv_type_void_p+set}" = set; then
6277   echo $ECHO_N "(cached) $ECHO_C" >&6
6278 else
6279   cat >conftest.$ac_ext <<_ACEOF
6280 /* confdefs.h.  */
6281 _ACEOF
6282 cat confdefs.h >>conftest.$ac_ext
6283 cat >>conftest.$ac_ext <<_ACEOF
6284 /* end confdefs.h.  */
6285 $ac_includes_default
6286 int
6287 main ()
6288 {
6289 if ((void * *) 0)
6290   return 0;
6291 if (sizeof (void *))
6292   return 0;
6293   ;
6294   return 0;
6295 }
6296 _ACEOF
6297 rm -f conftest.$ac_objext
6298 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6299   (eval $ac_compile) 2>conftest.er1
6300   ac_status=$?
6301   grep -v '^ *+' conftest.er1 >conftest.err
6302   rm -f conftest.er1
6303   cat conftest.err >&5
6304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6305   (exit $ac_status); } &&
6306          { ac_try='test -z "$ac_c_werror_flag"
6307                          || test ! -s conftest.err'
6308   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6309   (eval $ac_try) 2>&5
6310   ac_status=$?
6311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6312   (exit $ac_status); }; } &&
6313          { ac_try='test -s conftest.$ac_objext'
6314   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6315   (eval $ac_try) 2>&5
6316   ac_status=$?
6317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6318   (exit $ac_status); }; }; then
6319   ac_cv_type_void_p=yes
6320 else
6321   echo "$as_me: failed program was:" >&5
6322 sed 's/^/| /' conftest.$ac_ext >&5
6323
6324 ac_cv_type_void_p=no
6325 fi
6326 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6327 fi
6328 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
6329 echo "${ECHO_T}$ac_cv_type_void_p" >&6
6330
6331 echo "$as_me:$LINENO: checking size of void *" >&5
6332 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
6333 if test "${ac_cv_sizeof_void_p+set}" = set; then
6334   echo $ECHO_N "(cached) $ECHO_C" >&6
6335 else
6336   if test "$ac_cv_type_void_p" = yes; then
6337   # The cast to unsigned long works around a bug in the HP C Compiler
6338   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6339   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6340   # This bug is HP SR number 8606223364.
6341   if test "$cross_compiling" = yes; then
6342   # Depending upon the size, compute the lo and hi bounds.
6343 cat >conftest.$ac_ext <<_ACEOF
6344 /* confdefs.h.  */
6345 _ACEOF
6346 cat confdefs.h >>conftest.$ac_ext
6347 cat >>conftest.$ac_ext <<_ACEOF
6348 /* end confdefs.h.  */
6349 $ac_includes_default
6350 int
6351 main ()
6352 {
6353 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
6354 test_array [0] = 0
6355
6356   ;
6357   return 0;
6358 }
6359 _ACEOF
6360 rm -f conftest.$ac_objext
6361 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6362   (eval $ac_compile) 2>conftest.er1
6363   ac_status=$?
6364   grep -v '^ *+' conftest.er1 >conftest.err
6365   rm -f conftest.er1
6366   cat conftest.err >&5
6367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6368   (exit $ac_status); } &&
6369          { ac_try='test -z "$ac_c_werror_flag"
6370                          || test ! -s conftest.err'
6371   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6372   (eval $ac_try) 2>&5
6373   ac_status=$?
6374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6375   (exit $ac_status); }; } &&
6376          { ac_try='test -s conftest.$ac_objext'
6377   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6378   (eval $ac_try) 2>&5
6379   ac_status=$?
6380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6381   (exit $ac_status); }; }; then
6382   ac_lo=0 ac_mid=0
6383   while :; do
6384     cat >conftest.$ac_ext <<_ACEOF
6385 /* confdefs.h.  */
6386 _ACEOF
6387 cat confdefs.h >>conftest.$ac_ext
6388 cat >>conftest.$ac_ext <<_ACEOF
6389 /* end confdefs.h.  */
6390 $ac_includes_default
6391 int
6392 main ()
6393 {
6394 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
6395 test_array [0] = 0
6396
6397   ;
6398   return 0;
6399 }
6400 _ACEOF
6401 rm -f conftest.$ac_objext
6402 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6403   (eval $ac_compile) 2>conftest.er1
6404   ac_status=$?
6405   grep -v '^ *+' conftest.er1 >conftest.err
6406   rm -f conftest.er1
6407   cat conftest.err >&5
6408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6409   (exit $ac_status); } &&
6410          { ac_try='test -z "$ac_c_werror_flag"
6411                          || test ! -s conftest.err'
6412   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6413   (eval $ac_try) 2>&5
6414   ac_status=$?
6415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6416   (exit $ac_status); }; } &&
6417          { ac_try='test -s conftest.$ac_objext'
6418   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6419   (eval $ac_try) 2>&5
6420   ac_status=$?
6421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6422   (exit $ac_status); }; }; then
6423   ac_hi=$ac_mid; break
6424 else
6425   echo "$as_me: failed program was:" >&5
6426 sed 's/^/| /' conftest.$ac_ext >&5
6427
6428 ac_lo=`expr $ac_mid + 1`
6429                     if test $ac_lo -le $ac_mid; then
6430                       ac_lo= ac_hi=
6431                       break
6432                     fi
6433                     ac_mid=`expr 2 '*' $ac_mid + 1`
6434 fi
6435 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6436   done
6437 else
6438   echo "$as_me: failed program was:" >&5
6439 sed 's/^/| /' conftest.$ac_ext >&5
6440
6441 cat >conftest.$ac_ext <<_ACEOF
6442 /* confdefs.h.  */
6443 _ACEOF
6444 cat confdefs.h >>conftest.$ac_ext
6445 cat >>conftest.$ac_ext <<_ACEOF
6446 /* end confdefs.h.  */
6447 $ac_includes_default
6448 int
6449 main ()
6450 {
6451 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
6452 test_array [0] = 0
6453
6454   ;
6455   return 0;
6456 }
6457 _ACEOF
6458 rm -f conftest.$ac_objext
6459 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6460   (eval $ac_compile) 2>conftest.er1
6461   ac_status=$?
6462   grep -v '^ *+' conftest.er1 >conftest.err
6463   rm -f conftest.er1
6464   cat conftest.err >&5
6465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6466   (exit $ac_status); } &&
6467          { ac_try='test -z "$ac_c_werror_flag"
6468                          || test ! -s conftest.err'
6469   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6470   (eval $ac_try) 2>&5
6471   ac_status=$?
6472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6473   (exit $ac_status); }; } &&
6474          { ac_try='test -s conftest.$ac_objext'
6475   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6476   (eval $ac_try) 2>&5
6477   ac_status=$?
6478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6479   (exit $ac_status); }; }; then
6480   ac_hi=-1 ac_mid=-1
6481   while :; do
6482     cat >conftest.$ac_ext <<_ACEOF
6483 /* confdefs.h.  */
6484 _ACEOF
6485 cat confdefs.h >>conftest.$ac_ext
6486 cat >>conftest.$ac_ext <<_ACEOF
6487 /* end confdefs.h.  */
6488 $ac_includes_default
6489 int
6490 main ()
6491 {
6492 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
6493 test_array [0] = 0
6494
6495   ;
6496   return 0;
6497 }
6498 _ACEOF
6499 rm -f conftest.$ac_objext
6500 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6501   (eval $ac_compile) 2>conftest.er1
6502   ac_status=$?
6503   grep -v '^ *+' conftest.er1 >conftest.err
6504   rm -f conftest.er1
6505   cat conftest.err >&5
6506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6507   (exit $ac_status); } &&
6508          { ac_try='test -z "$ac_c_werror_flag"
6509                          || test ! -s conftest.err'
6510   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6511   (eval $ac_try) 2>&5
6512   ac_status=$?
6513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6514   (exit $ac_status); }; } &&
6515          { ac_try='test -s conftest.$ac_objext'
6516   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6517   (eval $ac_try) 2>&5
6518   ac_status=$?
6519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6520   (exit $ac_status); }; }; then
6521   ac_lo=$ac_mid; break
6522 else
6523   echo "$as_me: failed program was:" >&5
6524 sed 's/^/| /' conftest.$ac_ext >&5
6525
6526 ac_hi=`expr '(' $ac_mid ')' - 1`
6527                        if test $ac_mid -le $ac_hi; then
6528                          ac_lo= ac_hi=
6529                          break
6530                        fi
6531                        ac_mid=`expr 2 '*' $ac_mid`
6532 fi
6533 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6534   done
6535 else
6536   echo "$as_me: failed program was:" >&5
6537 sed 's/^/| /' conftest.$ac_ext >&5
6538
6539 ac_lo= ac_hi=
6540 fi
6541 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6542 fi
6543 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6544 # Binary search between lo and hi bounds.
6545 while test "x$ac_lo" != "x$ac_hi"; do
6546   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6547   cat >conftest.$ac_ext <<_ACEOF
6548 /* confdefs.h.  */
6549 _ACEOF
6550 cat confdefs.h >>conftest.$ac_ext
6551 cat >>conftest.$ac_ext <<_ACEOF
6552 /* end confdefs.h.  */
6553 $ac_includes_default
6554 int
6555 main ()
6556 {
6557 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
6558 test_array [0] = 0
6559
6560   ;
6561   return 0;
6562 }
6563 _ACEOF
6564 rm -f conftest.$ac_objext
6565 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6566   (eval $ac_compile) 2>conftest.er1
6567   ac_status=$?
6568   grep -v '^ *+' conftest.er1 >conftest.err
6569   rm -f conftest.er1
6570   cat conftest.err >&5
6571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6572   (exit $ac_status); } &&
6573          { ac_try='test -z "$ac_c_werror_flag"
6574                          || test ! -s conftest.err'
6575   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6576   (eval $ac_try) 2>&5
6577   ac_status=$?
6578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6579   (exit $ac_status); }; } &&
6580          { ac_try='test -s conftest.$ac_objext'
6581   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6582   (eval $ac_try) 2>&5
6583   ac_status=$?
6584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6585   (exit $ac_status); }; }; then
6586   ac_hi=$ac_mid
6587 else
6588   echo "$as_me: failed program was:" >&5
6589 sed 's/^/| /' conftest.$ac_ext >&5
6590
6591 ac_lo=`expr '(' $ac_mid ')' + 1`
6592 fi
6593 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6594 done
6595 case $ac_lo in
6596 ?*) ac_cv_sizeof_void_p=$ac_lo;;
6597 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
6598 See \`config.log' for more details." >&5
6599 echo "$as_me: error: cannot compute sizeof (void *), 77
6600 See \`config.log' for more details." >&2;}
6601    { (exit 1); exit 1; }; } ;;
6602 esac
6603 else
6604   if test "$cross_compiling" = yes; then
6605   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6606 See \`config.log' for more details." >&5
6607 echo "$as_me: error: cannot run test program while cross compiling
6608 See \`config.log' for more details." >&2;}
6609    { (exit 1); exit 1; }; }
6610 else
6611   cat >conftest.$ac_ext <<_ACEOF
6612 /* confdefs.h.  */
6613 _ACEOF
6614 cat confdefs.h >>conftest.$ac_ext
6615 cat >>conftest.$ac_ext <<_ACEOF
6616 /* end confdefs.h.  */
6617 $ac_includes_default
6618 long longval () { return (long) (sizeof (void *)); }
6619 unsigned long ulongval () { return (long) (sizeof (void *)); }
6620 #include <stdio.h>
6621 #include <stdlib.h>
6622 int
6623 main ()
6624 {
6625
6626   FILE *f = fopen ("conftest.val", "w");
6627   if (! f)
6628     exit (1);
6629   if (((long) (sizeof (void *))) < 0)
6630     {
6631       long i = longval ();
6632       if (i != ((long) (sizeof (void *))))
6633         exit (1);
6634       fprintf (f, "%ld\n", i);
6635     }
6636   else
6637     {
6638       unsigned long i = ulongval ();
6639       if (i != ((long) (sizeof (void *))))
6640         exit (1);
6641       fprintf (f, "%lu\n", i);
6642     }
6643   exit (ferror (f) || fclose (f) != 0);
6644
6645   ;
6646   return 0;
6647 }
6648 _ACEOF
6649 rm -f conftest$ac_exeext
6650 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6651   (eval $ac_link) 2>&5
6652   ac_status=$?
6653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6654   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6655   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6656   (eval $ac_try) 2>&5
6657   ac_status=$?
6658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6659   (exit $ac_status); }; }; then
6660   ac_cv_sizeof_void_p=`cat conftest.val`
6661 else
6662   echo "$as_me: program exited with status $ac_status" >&5
6663 echo "$as_me: failed program was:" >&5
6664 sed 's/^/| /' conftest.$ac_ext >&5
6665
6666 ( exit $ac_status )
6667 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
6668 See \`config.log' for more details." >&5
6669 echo "$as_me: error: cannot compute sizeof (void *), 77
6670 See \`config.log' for more details." >&2;}
6671    { (exit 1); exit 1; }; }
6672 fi
6673 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6674 fi
6675 fi
6676 rm -f conftest.val
6677 else
6678   ac_cv_sizeof_void_p=0
6679 fi
6680 fi
6681 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
6682 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
6683 cat >>confdefs.h <<_ACEOF
6684 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
6685 _ACEOF
6686
6687
6688 echo "$as_me:$LINENO: checking for int64_t" >&5
6689 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
6690 if test "${ac_cv_type_int64_t+set}" = set; then
6691   echo $ECHO_N "(cached) $ECHO_C" >&6
6692 else
6693   cat >conftest.$ac_ext <<_ACEOF
6694 /* confdefs.h.  */
6695 _ACEOF
6696 cat confdefs.h >>conftest.$ac_ext
6697 cat >>conftest.$ac_ext <<_ACEOF
6698 /* end confdefs.h.  */
6699 $ac_includes_default
6700 int
6701 main ()
6702 {
6703 if ((int64_t *) 0)
6704   return 0;
6705 if (sizeof (int64_t))
6706   return 0;
6707   ;
6708   return 0;
6709 }
6710 _ACEOF
6711 rm -f conftest.$ac_objext
6712 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6713   (eval $ac_compile) 2>conftest.er1
6714   ac_status=$?
6715   grep -v '^ *+' conftest.er1 >conftest.err
6716   rm -f conftest.er1
6717   cat conftest.err >&5
6718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6719   (exit $ac_status); } &&
6720          { ac_try='test -z "$ac_c_werror_flag"
6721                          || test ! -s conftest.err'
6722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6723   (eval $ac_try) 2>&5
6724   ac_status=$?
6725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6726   (exit $ac_status); }; } &&
6727          { ac_try='test -s conftest.$ac_objext'
6728   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6729   (eval $ac_try) 2>&5
6730   ac_status=$?
6731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6732   (exit $ac_status); }; }; then
6733   ac_cv_type_int64_t=yes
6734 else
6735   echo "$as_me: failed program was:" >&5
6736 sed 's/^/| /' conftest.$ac_ext >&5
6737
6738 ac_cv_type_int64_t=no
6739 fi
6740 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6741 fi
6742 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
6743 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
6744
6745 echo "$as_me:$LINENO: checking size of int64_t" >&5
6746 echo $ECHO_N "checking size of int64_t... $ECHO_C" >&6
6747 if test "${ac_cv_sizeof_int64_t+set}" = set; then
6748   echo $ECHO_N "(cached) $ECHO_C" >&6
6749 else
6750   if test "$ac_cv_type_int64_t" = yes; then
6751   # The cast to unsigned long works around a bug in the HP C Compiler
6752   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6753   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6754   # This bug is HP SR number 8606223364.
6755   if test "$cross_compiling" = yes; then
6756   # Depending upon the size, compute the lo and hi bounds.
6757 cat >conftest.$ac_ext <<_ACEOF
6758 /* confdefs.h.  */
6759 _ACEOF
6760 cat confdefs.h >>conftest.$ac_ext
6761 cat >>conftest.$ac_ext <<_ACEOF
6762 /* end confdefs.h.  */
6763 $ac_includes_default
6764 int
6765 main ()
6766 {
6767 static int test_array [1 - 2 * !(((long) (sizeof (int64_t))) >= 0)];
6768 test_array [0] = 0
6769
6770   ;
6771   return 0;
6772 }
6773 _ACEOF
6774 rm -f conftest.$ac_objext
6775 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6776   (eval $ac_compile) 2>conftest.er1
6777   ac_status=$?
6778   grep -v '^ *+' conftest.er1 >conftest.err
6779   rm -f conftest.er1
6780   cat conftest.err >&5
6781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6782   (exit $ac_status); } &&
6783          { ac_try='test -z "$ac_c_werror_flag"
6784                          || test ! -s conftest.err'
6785   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6786   (eval $ac_try) 2>&5
6787   ac_status=$?
6788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6789   (exit $ac_status); }; } &&
6790          { ac_try='test -s conftest.$ac_objext'
6791   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6792   (eval $ac_try) 2>&5
6793   ac_status=$?
6794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6795   (exit $ac_status); }; }; then
6796   ac_lo=0 ac_mid=0
6797   while :; do
6798     cat >conftest.$ac_ext <<_ACEOF
6799 /* confdefs.h.  */
6800 _ACEOF
6801 cat confdefs.h >>conftest.$ac_ext
6802 cat >>conftest.$ac_ext <<_ACEOF
6803 /* end confdefs.h.  */
6804 $ac_includes_default
6805 int
6806 main ()
6807 {
6808 static int test_array [1 - 2 * !(((long) (sizeof (int64_t))) <= $ac_mid)];
6809 test_array [0] = 0
6810
6811   ;
6812   return 0;
6813 }
6814 _ACEOF
6815 rm -f conftest.$ac_objext
6816 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6817   (eval $ac_compile) 2>conftest.er1
6818   ac_status=$?
6819   grep -v '^ *+' conftest.er1 >conftest.err
6820   rm -f conftest.er1
6821   cat conftest.err >&5
6822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6823   (exit $ac_status); } &&
6824          { ac_try='test -z "$ac_c_werror_flag"
6825                          || test ! -s conftest.err'
6826   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6827   (eval $ac_try) 2>&5
6828   ac_status=$?
6829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6830   (exit $ac_status); }; } &&
6831          { ac_try='test -s conftest.$ac_objext'
6832   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6833   (eval $ac_try) 2>&5
6834   ac_status=$?
6835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6836   (exit $ac_status); }; }; then
6837   ac_hi=$ac_mid; break
6838 else
6839   echo "$as_me: failed program was:" >&5
6840 sed 's/^/| /' conftest.$ac_ext >&5
6841
6842 ac_lo=`expr $ac_mid + 1`
6843                     if test $ac_lo -le $ac_mid; then
6844                       ac_lo= ac_hi=
6845                       break
6846                     fi
6847                     ac_mid=`expr 2 '*' $ac_mid + 1`
6848 fi
6849 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6850   done
6851 else
6852   echo "$as_me: failed program was:" >&5
6853 sed 's/^/| /' conftest.$ac_ext >&5
6854
6855 cat >conftest.$ac_ext <<_ACEOF
6856 /* confdefs.h.  */
6857 _ACEOF
6858 cat confdefs.h >>conftest.$ac_ext
6859 cat >>conftest.$ac_ext <<_ACEOF
6860 /* end confdefs.h.  */
6861 $ac_includes_default
6862 int
6863 main ()
6864 {
6865 static int test_array [1 - 2 * !(((long) (sizeof (int64_t))) < 0)];
6866 test_array [0] = 0
6867
6868   ;
6869   return 0;
6870 }
6871 _ACEOF
6872 rm -f conftest.$ac_objext
6873 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6874   (eval $ac_compile) 2>conftest.er1
6875   ac_status=$?
6876   grep -v '^ *+' conftest.er1 >conftest.err
6877   rm -f conftest.er1
6878   cat conftest.err >&5
6879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6880   (exit $ac_status); } &&
6881          { ac_try='test -z "$ac_c_werror_flag"
6882                          || test ! -s conftest.err'
6883   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6884   (eval $ac_try) 2>&5
6885   ac_status=$?
6886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6887   (exit $ac_status); }; } &&
6888          { ac_try='test -s conftest.$ac_objext'
6889   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6890   (eval $ac_try) 2>&5
6891   ac_status=$?
6892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6893   (exit $ac_status); }; }; then
6894   ac_hi=-1 ac_mid=-1
6895   while :; do
6896     cat >conftest.$ac_ext <<_ACEOF
6897 /* confdefs.h.  */
6898 _ACEOF
6899 cat confdefs.h >>conftest.$ac_ext
6900 cat >>conftest.$ac_ext <<_ACEOF
6901 /* end confdefs.h.  */
6902 $ac_includes_default
6903 int
6904 main ()
6905 {
6906 static int test_array [1 - 2 * !(((long) (sizeof (int64_t))) >= $ac_mid)];
6907 test_array [0] = 0
6908
6909   ;
6910   return 0;
6911 }
6912 _ACEOF
6913 rm -f conftest.$ac_objext
6914 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6915   (eval $ac_compile) 2>conftest.er1
6916   ac_status=$?
6917   grep -v '^ *+' conftest.er1 >conftest.err
6918   rm -f conftest.er1
6919   cat conftest.err >&5
6920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6921   (exit $ac_status); } &&
6922          { ac_try='test -z "$ac_c_werror_flag"
6923                          || test ! -s conftest.err'
6924   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6925   (eval $ac_try) 2>&5
6926   ac_status=$?
6927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6928   (exit $ac_status); }; } &&
6929          { ac_try='test -s conftest.$ac_objext'
6930   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6931   (eval $ac_try) 2>&5
6932   ac_status=$?
6933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6934   (exit $ac_status); }; }; then
6935   ac_lo=$ac_mid; break
6936 else
6937   echo "$as_me: failed program was:" >&5
6938 sed 's/^/| /' conftest.$ac_ext >&5
6939
6940 ac_hi=`expr '(' $ac_mid ')' - 1`
6941                        if test $ac_mid -le $ac_hi; then
6942                          ac_lo= ac_hi=
6943                          break
6944                        fi
6945                        ac_mid=`expr 2 '*' $ac_mid`
6946 fi
6947 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6948   done
6949 else
6950   echo "$as_me: failed program was:" >&5
6951 sed 's/^/| /' conftest.$ac_ext >&5
6952
6953 ac_lo= ac_hi=
6954 fi
6955 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6956 fi
6957 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6958 # Binary search between lo and hi bounds.
6959 while test "x$ac_lo" != "x$ac_hi"; do
6960   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6961   cat >conftest.$ac_ext <<_ACEOF
6962 /* confdefs.h.  */
6963 _ACEOF
6964 cat confdefs.h >>conftest.$ac_ext
6965 cat >>conftest.$ac_ext <<_ACEOF
6966 /* end confdefs.h.  */
6967 $ac_includes_default
6968 int
6969 main ()
6970 {
6971 static int test_array [1 - 2 * !(((long) (sizeof (int64_t))) <= $ac_mid)];
6972 test_array [0] = 0
6973
6974   ;
6975   return 0;
6976 }
6977 _ACEOF
6978 rm -f conftest.$ac_objext
6979 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6980   (eval $ac_compile) 2>conftest.er1
6981   ac_status=$?
6982   grep -v '^ *+' conftest.er1 >conftest.err
6983   rm -f conftest.er1
6984   cat conftest.err >&5
6985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6986   (exit $ac_status); } &&
6987          { ac_try='test -z "$ac_c_werror_flag"
6988                          || test ! -s conftest.err'
6989   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6990   (eval $ac_try) 2>&5
6991   ac_status=$?
6992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6993   (exit $ac_status); }; } &&
6994          { ac_try='test -s conftest.$ac_objext'
6995   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6996   (eval $ac_try) 2>&5
6997   ac_status=$?
6998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6999   (exit $ac_status); }; }; then
7000   ac_hi=$ac_mid
7001 else
7002   echo "$as_me: failed program was:" >&5
7003 sed 's/^/| /' conftest.$ac_ext >&5
7004
7005 ac_lo=`expr '(' $ac_mid ')' + 1`
7006 fi
7007 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7008 done
7009 case $ac_lo in
7010 ?*) ac_cv_sizeof_int64_t=$ac_lo;;
7011 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int64_t), 77
7012 See \`config.log' for more details." >&5
7013 echo "$as_me: error: cannot compute sizeof (int64_t), 77
7014 See \`config.log' for more details." >&2;}
7015    { (exit 1); exit 1; }; } ;;
7016 esac
7017 else
7018   if test "$cross_compiling" = yes; then
7019   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7020 See \`config.log' for more details." >&5
7021 echo "$as_me: error: cannot run test program while cross compiling
7022 See \`config.log' for more details." >&2;}
7023    { (exit 1); exit 1; }; }
7024 else
7025   cat >conftest.$ac_ext <<_ACEOF
7026 /* confdefs.h.  */
7027 _ACEOF
7028 cat confdefs.h >>conftest.$ac_ext
7029 cat >>conftest.$ac_ext <<_ACEOF
7030 /* end confdefs.h.  */
7031 $ac_includes_default
7032 long longval () { return (long) (sizeof (int64_t)); }
7033 unsigned long ulongval () { return (long) (sizeof (int64_t)); }
7034 #include <stdio.h>
7035 #include <stdlib.h>
7036 int
7037 main ()
7038 {
7039
7040   FILE *f = fopen ("conftest.val", "w");
7041   if (! f)
7042     exit (1);
7043   if (((long) (sizeof (int64_t))) < 0)
7044     {
7045       long i = longval ();
7046       if (i != ((long) (sizeof (int64_t))))
7047         exit (1);
7048       fprintf (f, "%ld\n", i);
7049     }
7050   else
7051     {
7052       unsigned long i = ulongval ();
7053       if (i != ((long) (sizeof (int64_t))))
7054         exit (1);
7055       fprintf (f, "%lu\n", i);
7056     }
7057   exit (ferror (f) || fclose (f) != 0);
7058
7059   ;
7060   return 0;
7061 }
7062 _ACEOF
7063 rm -f conftest$ac_exeext
7064 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7065   (eval $ac_link) 2>&5
7066   ac_status=$?
7067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7068   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7069   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7070   (eval $ac_try) 2>&5
7071   ac_status=$?
7072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7073   (exit $ac_status); }; }; then
7074   ac_cv_sizeof_int64_t=`cat conftest.val`
7075 else
7076   echo "$as_me: program exited with status $ac_status" >&5
7077 echo "$as_me: failed program was:" >&5
7078 sed 's/^/| /' conftest.$ac_ext >&5
7079
7080 ( exit $ac_status )
7081 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int64_t), 77
7082 See \`config.log' for more details." >&5
7083 echo "$as_me: error: cannot compute sizeof (int64_t), 77
7084 See \`config.log' for more details." >&2;}
7085    { (exit 1); exit 1; }; }
7086 fi
7087 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7088 fi
7089 fi
7090 rm -f conftest.val
7091 else
7092   ac_cv_sizeof_int64_t=0
7093 fi
7094 fi
7095 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int64_t" >&5
7096 echo "${ECHO_T}$ac_cv_sizeof_int64_t" >&6
7097 cat >>confdefs.h <<_ACEOF
7098 #define SIZEOF_INT64_T $ac_cv_sizeof_int64_t
7099 _ACEOF
7100
7101
7102 echo "$as_me:$LINENO: checking for long long" >&5
7103 echo $ECHO_N "checking for long long... $ECHO_C" >&6
7104 if test "${ac_cv_type_long_long+set}" = set; then
7105   echo $ECHO_N "(cached) $ECHO_C" >&6
7106 else
7107   cat >conftest.$ac_ext <<_ACEOF
7108 /* confdefs.h.  */
7109 _ACEOF
7110 cat confdefs.h >>conftest.$ac_ext
7111 cat >>conftest.$ac_ext <<_ACEOF
7112 /* end confdefs.h.  */
7113 $ac_includes_default
7114 int
7115 main ()
7116 {
7117 if ((long long *) 0)
7118   return 0;
7119 if (sizeof (long long))
7120   return 0;
7121   ;
7122   return 0;
7123 }
7124 _ACEOF
7125 rm -f conftest.$ac_objext
7126 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7127   (eval $ac_compile) 2>conftest.er1
7128   ac_status=$?
7129   grep -v '^ *+' conftest.er1 >conftest.err
7130   rm -f conftest.er1
7131   cat conftest.err >&5
7132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7133   (exit $ac_status); } &&
7134          { ac_try='test -z "$ac_c_werror_flag"
7135                          || test ! -s conftest.err'
7136   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7137   (eval $ac_try) 2>&5
7138   ac_status=$?
7139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7140   (exit $ac_status); }; } &&
7141          { ac_try='test -s conftest.$ac_objext'
7142   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7143   (eval $ac_try) 2>&5
7144   ac_status=$?
7145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7146   (exit $ac_status); }; }; then
7147   ac_cv_type_long_long=yes
7148 else
7149   echo "$as_me: failed program was:" >&5
7150 sed 's/^/| /' conftest.$ac_ext >&5
7151
7152 ac_cv_type_long_long=no
7153 fi
7154 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7155 fi
7156 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
7157 echo "${ECHO_T}$ac_cv_type_long_long" >&6
7158
7159 echo "$as_me:$LINENO: checking size of long long" >&5
7160 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
7161 if test "${ac_cv_sizeof_long_long+set}" = set; then
7162   echo $ECHO_N "(cached) $ECHO_C" >&6
7163 else
7164   if test "$ac_cv_type_long_long" = yes; then
7165   # The cast to unsigned long works around a bug in the HP C Compiler
7166   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7167   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7168   # This bug is HP SR number 8606223364.
7169   if test "$cross_compiling" = yes; then
7170   # Depending upon the size, compute the lo and hi bounds.
7171 cat >conftest.$ac_ext <<_ACEOF
7172 /* confdefs.h.  */
7173 _ACEOF
7174 cat confdefs.h >>conftest.$ac_ext
7175 cat >>conftest.$ac_ext <<_ACEOF
7176 /* end confdefs.h.  */
7177 $ac_includes_default
7178 int
7179 main ()
7180 {
7181 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
7182 test_array [0] = 0
7183
7184   ;
7185   return 0;
7186 }
7187 _ACEOF
7188 rm -f conftest.$ac_objext
7189 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7190   (eval $ac_compile) 2>conftest.er1
7191   ac_status=$?
7192   grep -v '^ *+' conftest.er1 >conftest.err
7193   rm -f conftest.er1
7194   cat conftest.err >&5
7195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7196   (exit $ac_status); } &&
7197          { ac_try='test -z "$ac_c_werror_flag"
7198                          || test ! -s conftest.err'
7199   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7200   (eval $ac_try) 2>&5
7201   ac_status=$?
7202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7203   (exit $ac_status); }; } &&
7204          { ac_try='test -s conftest.$ac_objext'
7205   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7206   (eval $ac_try) 2>&5
7207   ac_status=$?
7208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7209   (exit $ac_status); }; }; then
7210   ac_lo=0 ac_mid=0
7211   while :; do
7212     cat >conftest.$ac_ext <<_ACEOF
7213 /* confdefs.h.  */
7214 _ACEOF
7215 cat confdefs.h >>conftest.$ac_ext
7216 cat >>conftest.$ac_ext <<_ACEOF
7217 /* end confdefs.h.  */
7218 $ac_includes_default
7219 int
7220 main ()
7221 {
7222 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
7223 test_array [0] = 0
7224
7225   ;
7226   return 0;
7227 }
7228 _ACEOF
7229 rm -f conftest.$ac_objext
7230 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7231   (eval $ac_compile) 2>conftest.er1
7232   ac_status=$?
7233   grep -v '^ *+' conftest.er1 >conftest.err
7234   rm -f conftest.er1
7235   cat conftest.err >&5
7236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7237   (exit $ac_status); } &&
7238          { ac_try='test -z "$ac_c_werror_flag"
7239                          || test ! -s conftest.err'
7240   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7241   (eval $ac_try) 2>&5
7242   ac_status=$?
7243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7244   (exit $ac_status); }; } &&
7245          { ac_try='test -s conftest.$ac_objext'
7246   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7247   (eval $ac_try) 2>&5
7248   ac_status=$?
7249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7250   (exit $ac_status); }; }; then
7251   ac_hi=$ac_mid; break
7252 else
7253   echo "$as_me: failed program was:" >&5
7254 sed 's/^/| /' conftest.$ac_ext >&5
7255
7256 ac_lo=`expr $ac_mid + 1`
7257                     if test $ac_lo -le $ac_mid; then
7258                       ac_lo= ac_hi=
7259                       break
7260                     fi
7261                     ac_mid=`expr 2 '*' $ac_mid + 1`
7262 fi
7263 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7264   done
7265 else
7266   echo "$as_me: failed program was:" >&5
7267 sed 's/^/| /' conftest.$ac_ext >&5
7268
7269 cat >conftest.$ac_ext <<_ACEOF
7270 /* confdefs.h.  */
7271 _ACEOF
7272 cat confdefs.h >>conftest.$ac_ext
7273 cat >>conftest.$ac_ext <<_ACEOF
7274 /* end confdefs.h.  */
7275 $ac_includes_default
7276 int
7277 main ()
7278 {
7279 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
7280 test_array [0] = 0
7281
7282   ;
7283   return 0;
7284 }
7285 _ACEOF
7286 rm -f conftest.$ac_objext
7287 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7288   (eval $ac_compile) 2>conftest.er1
7289   ac_status=$?
7290   grep -v '^ *+' conftest.er1 >conftest.err
7291   rm -f conftest.er1
7292   cat conftest.err >&5
7293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7294   (exit $ac_status); } &&
7295          { ac_try='test -z "$ac_c_werror_flag"
7296                          || test ! -s conftest.err'
7297   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7298   (eval $ac_try) 2>&5
7299   ac_status=$?
7300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7301   (exit $ac_status); }; } &&
7302          { ac_try='test -s conftest.$ac_objext'
7303   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7304   (eval $ac_try) 2>&5
7305   ac_status=$?
7306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7307   (exit $ac_status); }; }; then
7308   ac_hi=-1 ac_mid=-1
7309   while :; do
7310     cat >conftest.$ac_ext <<_ACEOF
7311 /* confdefs.h.  */
7312 _ACEOF
7313 cat confdefs.h >>conftest.$ac_ext
7314 cat >>conftest.$ac_ext <<_ACEOF
7315 /* end confdefs.h.  */
7316 $ac_includes_default
7317 int
7318 main ()
7319 {
7320 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
7321 test_array [0] = 0
7322
7323   ;
7324   return 0;
7325 }
7326 _ACEOF
7327 rm -f conftest.$ac_objext
7328 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7329   (eval $ac_compile) 2>conftest.er1
7330   ac_status=$?
7331   grep -v '^ *+' conftest.er1 >conftest.err
7332   rm -f conftest.er1
7333   cat conftest.err >&5
7334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7335   (exit $ac_status); } &&
7336          { ac_try='test -z "$ac_c_werror_flag"
7337                          || test ! -s conftest.err'
7338   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7339   (eval $ac_try) 2>&5
7340   ac_status=$?
7341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7342   (exit $ac_status); }; } &&
7343          { ac_try='test -s conftest.$ac_objext'
7344   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7345   (eval $ac_try) 2>&5
7346   ac_status=$?
7347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7348   (exit $ac_status); }; }; then
7349   ac_lo=$ac_mid; break
7350 else
7351   echo "$as_me: failed program was:" >&5
7352 sed 's/^/| /' conftest.$ac_ext >&5
7353
7354 ac_hi=`expr '(' $ac_mid ')' - 1`
7355                        if test $ac_mid -le $ac_hi; then
7356                          ac_lo= ac_hi=
7357                          break
7358                        fi
7359                        ac_mid=`expr 2 '*' $ac_mid`
7360 fi
7361 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7362   done
7363 else
7364   echo "$as_me: failed program was:" >&5
7365 sed 's/^/| /' conftest.$ac_ext >&5
7366
7367 ac_lo= ac_hi=
7368 fi
7369 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7370 fi
7371 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7372 # Binary search between lo and hi bounds.
7373 while test "x$ac_lo" != "x$ac_hi"; do
7374   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7375   cat >conftest.$ac_ext <<_ACEOF
7376 /* confdefs.h.  */
7377 _ACEOF
7378 cat confdefs.h >>conftest.$ac_ext
7379 cat >>conftest.$ac_ext <<_ACEOF
7380 /* end confdefs.h.  */
7381 $ac_includes_default
7382 int
7383 main ()
7384 {
7385 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
7386 test_array [0] = 0
7387
7388   ;
7389   return 0;
7390 }
7391 _ACEOF
7392 rm -f conftest.$ac_objext
7393 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7394   (eval $ac_compile) 2>conftest.er1
7395   ac_status=$?
7396   grep -v '^ *+' conftest.er1 >conftest.err
7397   rm -f conftest.er1
7398   cat conftest.err >&5
7399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7400   (exit $ac_status); } &&
7401          { ac_try='test -z "$ac_c_werror_flag"
7402                          || test ! -s conftest.err'
7403   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7404   (eval $ac_try) 2>&5
7405   ac_status=$?
7406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7407   (exit $ac_status); }; } &&
7408          { ac_try='test -s conftest.$ac_objext'
7409   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7410   (eval $ac_try) 2>&5
7411   ac_status=$?
7412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7413   (exit $ac_status); }; }; then
7414   ac_hi=$ac_mid
7415 else
7416   echo "$as_me: failed program was:" >&5
7417 sed 's/^/| /' conftest.$ac_ext >&5
7418
7419 ac_lo=`expr '(' $ac_mid ')' + 1`
7420 fi
7421 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7422 done
7423 case $ac_lo in
7424 ?*) ac_cv_sizeof_long_long=$ac_lo;;
7425 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
7426 See \`config.log' for more details." >&5
7427 echo "$as_me: error: cannot compute sizeof (long long), 77
7428 See \`config.log' for more details." >&2;}
7429    { (exit 1); exit 1; }; } ;;
7430 esac
7431 else
7432   if test "$cross_compiling" = yes; then
7433   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7434 See \`config.log' for more details." >&5
7435 echo "$as_me: error: cannot run test program while cross compiling
7436 See \`config.log' for more details." >&2;}
7437    { (exit 1); exit 1; }; }
7438 else
7439   cat >conftest.$ac_ext <<_ACEOF
7440 /* confdefs.h.  */
7441 _ACEOF
7442 cat confdefs.h >>conftest.$ac_ext
7443 cat >>conftest.$ac_ext <<_ACEOF
7444 /* end confdefs.h.  */
7445 $ac_includes_default
7446 long longval () { return (long) (sizeof (long long)); }
7447 unsigned long ulongval () { return (long) (sizeof (long long)); }
7448 #include <stdio.h>
7449 #include <stdlib.h>
7450 int
7451 main ()
7452 {
7453
7454   FILE *f = fopen ("conftest.val", "w");
7455   if (! f)
7456     exit (1);
7457   if (((long) (sizeof (long long))) < 0)
7458     {
7459       long i = longval ();
7460       if (i != ((long) (sizeof (long long))))
7461         exit (1);
7462       fprintf (f, "%ld\n", i);
7463     }
7464   else
7465     {
7466       unsigned long i = ulongval ();
7467       if (i != ((long) (sizeof (long long))))
7468         exit (1);
7469       fprintf (f, "%lu\n", i);
7470     }
7471   exit (ferror (f) || fclose (f) != 0);
7472
7473   ;
7474   return 0;
7475 }
7476 _ACEOF
7477 rm -f conftest$ac_exeext
7478 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7479   (eval $ac_link) 2>&5
7480   ac_status=$?
7481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7482   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7483   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7484   (eval $ac_try) 2>&5
7485   ac_status=$?
7486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7487   (exit $ac_status); }; }; then
7488   ac_cv_sizeof_long_long=`cat conftest.val`
7489 else
7490   echo "$as_me: program exited with status $ac_status" >&5
7491 echo "$as_me: failed program was:" >&5
7492 sed 's/^/| /' conftest.$ac_ext >&5
7493
7494 ( exit $ac_status )
7495 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
7496 See \`config.log' for more details." >&5
7497 echo "$as_me: error: cannot compute sizeof (long long), 77
7498 See \`config.log' for more details." >&2;}
7499    { (exit 1); exit 1; }; }
7500 fi
7501 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7502 fi
7503 fi
7504 rm -f conftest.val
7505 else
7506   ac_cv_sizeof_long_long=0
7507 fi
7508 fi
7509 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
7510 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
7511 cat >>confdefs.h <<_ACEOF
7512 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
7513 _ACEOF
7514
7515
7516 if test "$ac_cv_sizeof_int" = 2 ; then
7517   echo "$as_me:$LINENO: checking for int16_t" >&5
7518 echo $ECHO_N "checking for int16_t... $ECHO_C" >&6
7519 if test "${ac_cv_type_int16_t+set}" = set; then
7520   echo $ECHO_N "(cached) $ECHO_C" >&6
7521 else
7522   cat >conftest.$ac_ext <<_ACEOF
7523 /* confdefs.h.  */
7524 _ACEOF
7525 cat confdefs.h >>conftest.$ac_ext
7526 cat >>conftest.$ac_ext <<_ACEOF
7527 /* end confdefs.h.  */
7528 $ac_includes_default
7529 int
7530 main ()
7531 {
7532 if ((int16_t *) 0)
7533   return 0;
7534 if (sizeof (int16_t))
7535   return 0;
7536   ;
7537   return 0;
7538 }
7539 _ACEOF
7540 rm -f conftest.$ac_objext
7541 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7542   (eval $ac_compile) 2>conftest.er1
7543   ac_status=$?
7544   grep -v '^ *+' conftest.er1 >conftest.err
7545   rm -f conftest.er1
7546   cat conftest.err >&5
7547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7548   (exit $ac_status); } &&
7549          { ac_try='test -z "$ac_c_werror_flag"
7550                          || test ! -s conftest.err'
7551   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7552   (eval $ac_try) 2>&5
7553   ac_status=$?
7554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7555   (exit $ac_status); }; } &&
7556          { ac_try='test -s conftest.$ac_objext'
7557   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7558   (eval $ac_try) 2>&5
7559   ac_status=$?
7560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7561   (exit $ac_status); }; }; then
7562   ac_cv_type_int16_t=yes
7563 else
7564   echo "$as_me: failed program was:" >&5
7565 sed 's/^/| /' conftest.$ac_ext >&5
7566
7567 ac_cv_type_int16_t=no
7568 fi
7569 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7570 fi
7571 echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
7572 echo "${ECHO_T}$ac_cv_type_int16_t" >&6
7573 if test $ac_cv_type_int16_t = yes; then
7574   :
7575 else
7576
7577 cat >>confdefs.h <<_ACEOF
7578 #define int16_t int
7579 _ACEOF
7580
7581 fi
7582
7583   echo "$as_me:$LINENO: checking for uint16_t" >&5
7584 echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6
7585 if test "${ac_cv_type_uint16_t+set}" = set; then
7586   echo $ECHO_N "(cached) $ECHO_C" >&6
7587 else
7588   cat >conftest.$ac_ext <<_ACEOF
7589 /* confdefs.h.  */
7590 _ACEOF
7591 cat confdefs.h >>conftest.$ac_ext
7592 cat >>conftest.$ac_ext <<_ACEOF
7593 /* end confdefs.h.  */
7594 $ac_includes_default
7595 int
7596 main ()
7597 {
7598 if ((uint16_t *) 0)
7599   return 0;
7600 if (sizeof (uint16_t))
7601   return 0;
7602   ;
7603   return 0;
7604 }
7605 _ACEOF
7606 rm -f conftest.$ac_objext
7607 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7608   (eval $ac_compile) 2>conftest.er1
7609   ac_status=$?
7610   grep -v '^ *+' conftest.er1 >conftest.err
7611   rm -f conftest.er1
7612   cat conftest.err >&5
7613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7614   (exit $ac_status); } &&
7615          { ac_try='test -z "$ac_c_werror_flag"
7616                          || test ! -s conftest.err'
7617   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7618   (eval $ac_try) 2>&5
7619   ac_status=$?
7620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7621   (exit $ac_status); }; } &&
7622          { ac_try='test -s conftest.$ac_objext'
7623   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7624   (eval $ac_try) 2>&5
7625   ac_status=$?
7626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7627   (exit $ac_status); }; }; then
7628   ac_cv_type_uint16_t=yes
7629 else
7630   echo "$as_me: failed program was:" >&5
7631 sed 's/^/| /' conftest.$ac_ext >&5
7632
7633 ac_cv_type_uint16_t=no
7634 fi
7635 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7636 fi
7637 echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
7638 echo "${ECHO_T}$ac_cv_type_uint16_t" >&6
7639 if test $ac_cv_type_uint16_t = yes; then
7640   :
7641 else
7642
7643 cat >>confdefs.h <<_ACEOF
7644 #define uint16_t unsigned int
7645 _ACEOF
7646
7647 fi
7648
7649 elif test "$ac_cv_sizeof_short" = 2 ; then
7650   echo "$as_me:$LINENO: checking for int16_t" >&5
7651 echo $ECHO_N "checking for int16_t... $ECHO_C" >&6
7652 if test "${ac_cv_type_int16_t+set}" = set; then
7653   echo $ECHO_N "(cached) $ECHO_C" >&6
7654 else
7655   cat >conftest.$ac_ext <<_ACEOF
7656 /* confdefs.h.  */
7657 _ACEOF
7658 cat confdefs.h >>conftest.$ac_ext
7659 cat >>conftest.$ac_ext <<_ACEOF
7660 /* end confdefs.h.  */
7661 $ac_includes_default
7662 int
7663 main ()
7664 {
7665 if ((int16_t *) 0)
7666   return 0;
7667 if (sizeof (int16_t))
7668   return 0;
7669   ;
7670   return 0;
7671 }
7672 _ACEOF
7673 rm -f conftest.$ac_objext
7674 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7675   (eval $ac_compile) 2>conftest.er1
7676   ac_status=$?
7677   grep -v '^ *+' conftest.er1 >conftest.err
7678   rm -f conftest.er1
7679   cat conftest.err >&5
7680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7681   (exit $ac_status); } &&
7682          { ac_try='test -z "$ac_c_werror_flag"
7683                          || test ! -s conftest.err'
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); }; } &&
7689          { ac_try='test -s conftest.$ac_objext'
7690   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7691   (eval $ac_try) 2>&5
7692   ac_status=$?
7693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7694   (exit $ac_status); }; }; then
7695   ac_cv_type_int16_t=yes
7696 else
7697   echo "$as_me: failed program was:" >&5
7698 sed 's/^/| /' conftest.$ac_ext >&5
7699
7700 ac_cv_type_int16_t=no
7701 fi
7702 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7703 fi
7704 echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
7705 echo "${ECHO_T}$ac_cv_type_int16_t" >&6
7706 if test $ac_cv_type_int16_t = yes; then
7707   :
7708 else
7709
7710 cat >>confdefs.h <<_ACEOF
7711 #define int16_t short
7712 _ACEOF
7713
7714 fi
7715
7716   echo "$as_me:$LINENO: checking for uint16_t" >&5
7717 echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6
7718 if test "${ac_cv_type_uint16_t+set}" = set; then
7719   echo $ECHO_N "(cached) $ECHO_C" >&6
7720 else
7721   cat >conftest.$ac_ext <<_ACEOF
7722 /* confdefs.h.  */
7723 _ACEOF
7724 cat confdefs.h >>conftest.$ac_ext
7725 cat >>conftest.$ac_ext <<_ACEOF
7726 /* end confdefs.h.  */
7727 $ac_includes_default
7728 int
7729 main ()
7730 {
7731 if ((uint16_t *) 0)
7732   return 0;
7733 if (sizeof (uint16_t))
7734   return 0;
7735   ;
7736   return 0;
7737 }
7738 _ACEOF
7739 rm -f conftest.$ac_objext
7740 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7741   (eval $ac_compile) 2>conftest.er1
7742   ac_status=$?
7743   grep -v '^ *+' conftest.er1 >conftest.err
7744   rm -f conftest.er1
7745   cat conftest.err >&5
7746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7747   (exit $ac_status); } &&
7748          { ac_try='test -z "$ac_c_werror_flag"
7749                          || test ! -s conftest.err'
7750   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7751   (eval $ac_try) 2>&5
7752   ac_status=$?
7753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7754   (exit $ac_status); }; } &&
7755          { ac_try='test -s conftest.$ac_objext'
7756   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7757   (eval $ac_try) 2>&5
7758   ac_status=$?
7759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7760   (exit $ac_status); }; }; then
7761   ac_cv_type_uint16_t=yes
7762 else
7763   echo "$as_me: failed program was:" >&5
7764 sed 's/^/| /' conftest.$ac_ext >&5
7765
7766 ac_cv_type_uint16_t=no
7767 fi
7768 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7769 fi
7770 echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
7771 echo "${ECHO_T}$ac_cv_type_uint16_t" >&6
7772 if test $ac_cv_type_uint16_t = yes; then
7773   :
7774 else
7775
7776 cat >>confdefs.h <<_ACEOF
7777 #define uint16_t unsigned short
7778 _ACEOF
7779
7780 fi
7781
7782 else
7783   { { echo "$as_me:$LINENO: error: Cannot find a type with size of 16 bits" >&5
7784 echo "$as_me: error: Cannot find a type with size of 16 bits" >&2;}
7785    { (exit 1); exit 1; }; }
7786 fi
7787 if test "$ac_cv_sizeof_int" = 4 ; then
7788   echo "$as_me:$LINENO: checking for int32_t" >&5
7789 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6
7790 if test "${ac_cv_type_int32_t+set}" = set; then
7791   echo $ECHO_N "(cached) $ECHO_C" >&6
7792 else
7793   cat >conftest.$ac_ext <<_ACEOF
7794 /* confdefs.h.  */
7795 _ACEOF
7796 cat confdefs.h >>conftest.$ac_ext
7797 cat >>conftest.$ac_ext <<_ACEOF
7798 /* end confdefs.h.  */
7799 $ac_includes_default
7800 int
7801 main ()
7802 {
7803 if ((int32_t *) 0)
7804   return 0;
7805 if (sizeof (int32_t))
7806   return 0;
7807   ;
7808   return 0;
7809 }
7810 _ACEOF
7811 rm -f conftest.$ac_objext
7812 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7813   (eval $ac_compile) 2>conftest.er1
7814   ac_status=$?
7815   grep -v '^ *+' conftest.er1 >conftest.err
7816   rm -f conftest.er1
7817   cat conftest.err >&5
7818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7819   (exit $ac_status); } &&
7820          { ac_try='test -z "$ac_c_werror_flag"
7821                          || test ! -s conftest.err'
7822   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7823   (eval $ac_try) 2>&5
7824   ac_status=$?
7825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7826   (exit $ac_status); }; } &&
7827          { ac_try='test -s conftest.$ac_objext'
7828   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7829   (eval $ac_try) 2>&5
7830   ac_status=$?
7831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7832   (exit $ac_status); }; }; then
7833   ac_cv_type_int32_t=yes
7834 else
7835   echo "$as_me: failed program was:" >&5
7836 sed 's/^/| /' conftest.$ac_ext >&5
7837
7838 ac_cv_type_int32_t=no
7839 fi
7840 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7841 fi
7842 echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
7843 echo "${ECHO_T}$ac_cv_type_int32_t" >&6
7844 if test $ac_cv_type_int32_t = yes; then
7845   :
7846 else
7847
7848 cat >>confdefs.h <<_ACEOF
7849 #define int32_t int
7850 _ACEOF
7851
7852 fi
7853
7854   echo "$as_me:$LINENO: checking for uint32_t" >&5
7855 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
7856 if test "${ac_cv_type_uint32_t+set}" = set; then
7857   echo $ECHO_N "(cached) $ECHO_C" >&6
7858 else
7859   cat >conftest.$ac_ext <<_ACEOF
7860 /* confdefs.h.  */
7861 _ACEOF
7862 cat confdefs.h >>conftest.$ac_ext
7863 cat >>conftest.$ac_ext <<_ACEOF
7864 /* end confdefs.h.  */
7865 $ac_includes_default
7866 int
7867 main ()
7868 {
7869 if ((uint32_t *) 0)
7870   return 0;
7871 if (sizeof (uint32_t))
7872   return 0;
7873   ;
7874   return 0;
7875 }
7876 _ACEOF
7877 rm -f conftest.$ac_objext
7878 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7879   (eval $ac_compile) 2>conftest.er1
7880   ac_status=$?
7881   grep -v '^ *+' conftest.er1 >conftest.err
7882   rm -f conftest.er1
7883   cat conftest.err >&5
7884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7885   (exit $ac_status); } &&
7886          { ac_try='test -z "$ac_c_werror_flag"
7887                          || test ! -s conftest.err'
7888   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7889   (eval $ac_try) 2>&5
7890   ac_status=$?
7891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7892   (exit $ac_status); }; } &&
7893          { ac_try='test -s conftest.$ac_objext'
7894   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7895   (eval $ac_try) 2>&5
7896   ac_status=$?
7897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7898   (exit $ac_status); }; }; then
7899   ac_cv_type_uint32_t=yes
7900 else
7901   echo "$as_me: failed program was:" >&5
7902 sed 's/^/| /' conftest.$ac_ext >&5
7903
7904 ac_cv_type_uint32_t=no
7905 fi
7906 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7907 fi
7908 echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
7909 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
7910 if test $ac_cv_type_uint32_t = yes; then
7911   :
7912 else
7913
7914 cat >>confdefs.h <<_ACEOF
7915 #define uint32_t unsigned int
7916 _ACEOF
7917
7918 fi
7919
7920 elif test "$ac_cv_sizeof_short" = 4 ; then
7921   echo "$as_me:$LINENO: checking for int32_t" >&5
7922 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6
7923 if test "${ac_cv_type_int32_t+set}" = set; then
7924   echo $ECHO_N "(cached) $ECHO_C" >&6
7925 else
7926   cat >conftest.$ac_ext <<_ACEOF
7927 /* confdefs.h.  */
7928 _ACEOF
7929 cat confdefs.h >>conftest.$ac_ext
7930 cat >>conftest.$ac_ext <<_ACEOF
7931 /* end confdefs.h.  */
7932 $ac_includes_default
7933 int
7934 main ()
7935 {
7936 if ((int32_t *) 0)
7937   return 0;
7938 if (sizeof (int32_t))
7939   return 0;
7940   ;
7941   return 0;
7942 }
7943 _ACEOF
7944 rm -f conftest.$ac_objext
7945 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7946   (eval $ac_compile) 2>conftest.er1
7947   ac_status=$?
7948   grep -v '^ *+' conftest.er1 >conftest.err
7949   rm -f conftest.er1
7950   cat conftest.err >&5
7951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7952   (exit $ac_status); } &&
7953          { ac_try='test -z "$ac_c_werror_flag"
7954                          || test ! -s conftest.err'
7955   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7956   (eval $ac_try) 2>&5
7957   ac_status=$?
7958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7959   (exit $ac_status); }; } &&
7960          { ac_try='test -s conftest.$ac_objext'
7961   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7962   (eval $ac_try) 2>&5
7963   ac_status=$?
7964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7965   (exit $ac_status); }; }; then
7966   ac_cv_type_int32_t=yes
7967 else
7968   echo "$as_me: failed program was:" >&5
7969 sed 's/^/| /' conftest.$ac_ext >&5
7970
7971 ac_cv_type_int32_t=no
7972 fi
7973 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7974 fi
7975 echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
7976 echo "${ECHO_T}$ac_cv_type_int32_t" >&6
7977 if test $ac_cv_type_int32_t = yes; then
7978   :
7979 else
7980
7981 cat >>confdefs.h <<_ACEOF
7982 #define int32_t short
7983 _ACEOF
7984
7985 fi
7986
7987   echo "$as_me:$LINENO: checking for uint32_t" >&5
7988 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
7989 if test "${ac_cv_type_uint32_t+set}" = set; then
7990   echo $ECHO_N "(cached) $ECHO_C" >&6
7991 else
7992   cat >conftest.$ac_ext <<_ACEOF
7993 /* confdefs.h.  */
7994 _ACEOF
7995 cat confdefs.h >>conftest.$ac_ext
7996 cat >>conftest.$ac_ext <<_ACEOF
7997 /* end confdefs.h.  */
7998 $ac_includes_default
7999 int
8000 main ()
8001 {
8002 if ((uint32_t *) 0)
8003   return 0;
8004 if (sizeof (uint32_t))
8005   return 0;
8006   ;
8007   return 0;
8008 }
8009 _ACEOF
8010 rm -f conftest.$ac_objext
8011 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8012   (eval $ac_compile) 2>conftest.er1
8013   ac_status=$?
8014   grep -v '^ *+' conftest.er1 >conftest.err
8015   rm -f conftest.er1
8016   cat conftest.err >&5
8017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8018   (exit $ac_status); } &&
8019          { ac_try='test -z "$ac_c_werror_flag"
8020                          || test ! -s conftest.err'
8021   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8022   (eval $ac_try) 2>&5
8023   ac_status=$?
8024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8025   (exit $ac_status); }; } &&
8026          { ac_try='test -s conftest.$ac_objext'
8027   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8028   (eval $ac_try) 2>&5
8029   ac_status=$?
8030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8031   (exit $ac_status); }; }; then
8032   ac_cv_type_uint32_t=yes
8033 else
8034   echo "$as_me: failed program was:" >&5
8035 sed 's/^/| /' conftest.$ac_ext >&5
8036
8037 ac_cv_type_uint32_t=no
8038 fi
8039 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8040 fi
8041 echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
8042 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
8043 if test $ac_cv_type_uint32_t = yes; then
8044   :
8045 else
8046
8047 cat >>confdefs.h <<_ACEOF
8048 #define uint32_t unsigned short
8049 _ACEOF
8050
8051 fi
8052
8053 elif test "$ac_cv_sizeof_long" = 4 ; then
8054   echo "$as_me:$LINENO: checking for int32_t" >&5
8055 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6
8056 if test "${ac_cv_type_int32_t+set}" = set; then
8057   echo $ECHO_N "(cached) $ECHO_C" >&6
8058 else
8059   cat >conftest.$ac_ext <<_ACEOF
8060 /* confdefs.h.  */
8061 _ACEOF
8062 cat confdefs.h >>conftest.$ac_ext
8063 cat >>conftest.$ac_ext <<_ACEOF
8064 /* end confdefs.h.  */
8065 $ac_includes_default
8066 int
8067 main ()
8068 {
8069 if ((int32_t *) 0)
8070   return 0;
8071 if (sizeof (int32_t))
8072   return 0;
8073   ;
8074   return 0;
8075 }
8076 _ACEOF
8077 rm -f conftest.$ac_objext
8078 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8079   (eval $ac_compile) 2>conftest.er1
8080   ac_status=$?
8081   grep -v '^ *+' conftest.er1 >conftest.err
8082   rm -f conftest.er1
8083   cat conftest.err >&5
8084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8085   (exit $ac_status); } &&
8086          { ac_try='test -z "$ac_c_werror_flag"
8087                          || test ! -s conftest.err'
8088   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8089   (eval $ac_try) 2>&5
8090   ac_status=$?
8091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8092   (exit $ac_status); }; } &&
8093          { ac_try='test -s conftest.$ac_objext'
8094   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8095   (eval $ac_try) 2>&5
8096   ac_status=$?
8097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8098   (exit $ac_status); }; }; then
8099   ac_cv_type_int32_t=yes
8100 else
8101   echo "$as_me: failed program was:" >&5
8102 sed 's/^/| /' conftest.$ac_ext >&5
8103
8104 ac_cv_type_int32_t=no
8105 fi
8106 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8107 fi
8108 echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
8109 echo "${ECHO_T}$ac_cv_type_int32_t" >&6
8110 if test $ac_cv_type_int32_t = yes; then
8111   :
8112 else
8113
8114 cat >>confdefs.h <<_ACEOF
8115 #define int32_t long
8116 _ACEOF
8117
8118 fi
8119
8120   echo "$as_me:$LINENO: checking for uint32_t" >&5
8121 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
8122 if test "${ac_cv_type_uint32_t+set}" = set; then
8123   echo $ECHO_N "(cached) $ECHO_C" >&6
8124 else
8125   cat >conftest.$ac_ext <<_ACEOF
8126 /* confdefs.h.  */
8127 _ACEOF
8128 cat confdefs.h >>conftest.$ac_ext
8129 cat >>conftest.$ac_ext <<_ACEOF
8130 /* end confdefs.h.  */
8131 $ac_includes_default
8132 int
8133 main ()
8134 {
8135 if ((uint32_t *) 0)
8136   return 0;
8137 if (sizeof (uint32_t))
8138   return 0;
8139   ;
8140   return 0;
8141 }
8142 _ACEOF
8143 rm -f conftest.$ac_objext
8144 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8145   (eval $ac_compile) 2>conftest.er1
8146   ac_status=$?
8147   grep -v '^ *+' conftest.er1 >conftest.err
8148   rm -f conftest.er1
8149   cat conftest.err >&5
8150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8151   (exit $ac_status); } &&
8152          { ac_try='test -z "$ac_c_werror_flag"
8153                          || test ! -s conftest.err'
8154   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8155   (eval $ac_try) 2>&5
8156   ac_status=$?
8157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8158   (exit $ac_status); }; } &&
8159          { ac_try='test -s conftest.$ac_objext'
8160   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8161   (eval $ac_try) 2>&5
8162   ac_status=$?
8163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8164   (exit $ac_status); }; }; then
8165   ac_cv_type_uint32_t=yes
8166 else
8167   echo "$as_me: failed program was:" >&5
8168 sed 's/^/| /' conftest.$ac_ext >&5
8169
8170 ac_cv_type_uint32_t=no
8171 fi
8172 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8173 fi
8174 echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
8175 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
8176 if test $ac_cv_type_uint32_t = yes; then
8177   :
8178 else
8179
8180 cat >>confdefs.h <<_ACEOF
8181 #define uint32_t unsigned long
8182 _ACEOF
8183
8184 fi
8185
8186 else
8187   { { echo "$as_me:$LINENO: error: Cannot find a type with size of 32 bits" >&5
8188 echo "$as_me: error: Cannot find a type with size of 32 bits" >&2;}
8189    { (exit 1); exit 1; }; }
8190 fi
8191 if test "$ac_cv_sizeof_int64_t" = 8 ; then
8192   echo "$as_me:$LINENO: checking for int64_t" >&5
8193 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
8194 if test "${ac_cv_type_int64_t+set}" = set; then
8195   echo $ECHO_N "(cached) $ECHO_C" >&6
8196 else
8197   cat >conftest.$ac_ext <<_ACEOF
8198 /* confdefs.h.  */
8199 _ACEOF
8200 cat confdefs.h >>conftest.$ac_ext
8201 cat >>conftest.$ac_ext <<_ACEOF
8202 /* end confdefs.h.  */
8203 $ac_includes_default
8204 int
8205 main ()
8206 {
8207 if ((int64_t *) 0)
8208   return 0;
8209 if (sizeof (int64_t))
8210   return 0;
8211   ;
8212   return 0;
8213 }
8214 _ACEOF
8215 rm -f conftest.$ac_objext
8216 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8217   (eval $ac_compile) 2>conftest.er1
8218   ac_status=$?
8219   grep -v '^ *+' conftest.er1 >conftest.err
8220   rm -f conftest.er1
8221   cat conftest.err >&5
8222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8223   (exit $ac_status); } &&
8224          { ac_try='test -z "$ac_c_werror_flag"
8225                          || test ! -s conftest.err'
8226   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8227   (eval $ac_try) 2>&5
8228   ac_status=$?
8229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8230   (exit $ac_status); }; } &&
8231          { ac_try='test -s conftest.$ac_objext'
8232   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8233   (eval $ac_try) 2>&5
8234   ac_status=$?
8235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8236   (exit $ac_status); }; }; then
8237   ac_cv_type_int64_t=yes
8238 else
8239   echo "$as_me: failed program was:" >&5
8240 sed 's/^/| /' conftest.$ac_ext >&5
8241
8242 ac_cv_type_int64_t=no
8243 fi
8244 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8245 fi
8246 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
8247 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
8248
8249   echo "$as_me:$LINENO: checking for uint64_t" >&5
8250 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
8251 if test "${ac_cv_type_uint64_t+set}" = set; then
8252   echo $ECHO_N "(cached) $ECHO_C" >&6
8253 else
8254   cat >conftest.$ac_ext <<_ACEOF
8255 /* confdefs.h.  */
8256 _ACEOF
8257 cat confdefs.h >>conftest.$ac_ext
8258 cat >>conftest.$ac_ext <<_ACEOF
8259 /* end confdefs.h.  */
8260 $ac_includes_default
8261 int
8262 main ()
8263 {
8264 if ((uint64_t *) 0)
8265   return 0;
8266 if (sizeof (uint64_t))
8267   return 0;
8268   ;
8269   return 0;
8270 }
8271 _ACEOF
8272 rm -f conftest.$ac_objext
8273 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8274   (eval $ac_compile) 2>conftest.er1
8275   ac_status=$?
8276   grep -v '^ *+' conftest.er1 >conftest.err
8277   rm -f conftest.er1
8278   cat conftest.err >&5
8279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8280   (exit $ac_status); } &&
8281          { ac_try='test -z "$ac_c_werror_flag"
8282                          || test ! -s conftest.err'
8283   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8284   (eval $ac_try) 2>&5
8285   ac_status=$?
8286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8287   (exit $ac_status); }; } &&
8288          { ac_try='test -s conftest.$ac_objext'
8289   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8290   (eval $ac_try) 2>&5
8291   ac_status=$?
8292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8293   (exit $ac_status); }; }; then
8294   ac_cv_type_uint64_t=yes
8295 else
8296   echo "$as_me: failed program was:" >&5
8297 sed 's/^/| /' conftest.$ac_ext >&5
8298
8299 ac_cv_type_uint64_t=no
8300 fi
8301 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8302 fi
8303 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
8304 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
8305
8306 elif test "$ac_cv_sizeof_long_long" = 8 ; then
8307   echo "$as_me:$LINENO: checking for int64_t" >&5
8308 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
8309 if test "${ac_cv_type_int64_t+set}" = set; then
8310   echo $ECHO_N "(cached) $ECHO_C" >&6
8311 else
8312   cat >conftest.$ac_ext <<_ACEOF
8313 /* confdefs.h.  */
8314 _ACEOF
8315 cat confdefs.h >>conftest.$ac_ext
8316 cat >>conftest.$ac_ext <<_ACEOF
8317 /* end confdefs.h.  */
8318 $ac_includes_default
8319 int
8320 main ()
8321 {
8322 if ((int64_t *) 0)
8323   return 0;
8324 if (sizeof (int64_t))
8325   return 0;
8326   ;
8327   return 0;
8328 }
8329 _ACEOF
8330 rm -f conftest.$ac_objext
8331 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8332   (eval $ac_compile) 2>conftest.er1
8333   ac_status=$?
8334   grep -v '^ *+' conftest.er1 >conftest.err
8335   rm -f conftest.er1
8336   cat conftest.err >&5
8337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8338   (exit $ac_status); } &&
8339          { ac_try='test -z "$ac_c_werror_flag"
8340                          || test ! -s conftest.err'
8341   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8342   (eval $ac_try) 2>&5
8343   ac_status=$?
8344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8345   (exit $ac_status); }; } &&
8346          { ac_try='test -s conftest.$ac_objext'
8347   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8348   (eval $ac_try) 2>&5
8349   ac_status=$?
8350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8351   (exit $ac_status); }; }; then
8352   ac_cv_type_int64_t=yes
8353 else
8354   echo "$as_me: failed program was:" >&5
8355 sed 's/^/| /' conftest.$ac_ext >&5
8356
8357 ac_cv_type_int64_t=no
8358 fi
8359 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8360 fi
8361 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
8362 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
8363 if test $ac_cv_type_int64_t = yes; then
8364   :
8365 else
8366
8367 cat >>confdefs.h <<_ACEOF
8368 #define int64_t long long
8369 _ACEOF
8370
8371 fi
8372
8373   echo "$as_me:$LINENO: checking for uint64_t" >&5
8374 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
8375 if test "${ac_cv_type_uint64_t+set}" = set; then
8376   echo $ECHO_N "(cached) $ECHO_C" >&6
8377 else
8378   cat >conftest.$ac_ext <<_ACEOF
8379 /* confdefs.h.  */
8380 _ACEOF
8381 cat confdefs.h >>conftest.$ac_ext
8382 cat >>conftest.$ac_ext <<_ACEOF
8383 /* end confdefs.h.  */
8384 $ac_includes_default
8385 int
8386 main ()
8387 {
8388 if ((uint64_t *) 0)
8389   return 0;
8390 if (sizeof (uint64_t))
8391   return 0;
8392   ;
8393   return 0;
8394 }
8395 _ACEOF
8396 rm -f conftest.$ac_objext
8397 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8398   (eval $ac_compile) 2>conftest.er1
8399   ac_status=$?
8400   grep -v '^ *+' conftest.er1 >conftest.err
8401   rm -f conftest.er1
8402   cat conftest.err >&5
8403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8404   (exit $ac_status); } &&
8405          { ac_try='test -z "$ac_c_werror_flag"
8406                          || test ! -s conftest.err'
8407   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8408   (eval $ac_try) 2>&5
8409   ac_status=$?
8410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8411   (exit $ac_status); }; } &&
8412          { ac_try='test -s conftest.$ac_objext'
8413   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8414   (eval $ac_try) 2>&5
8415   ac_status=$?
8416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8417   (exit $ac_status); }; }; then
8418   ac_cv_type_uint64_t=yes
8419 else
8420   echo "$as_me: failed program was:" >&5
8421 sed 's/^/| /' conftest.$ac_ext >&5
8422
8423 ac_cv_type_uint64_t=no
8424 fi
8425 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8426 fi
8427 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
8428 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
8429 if test $ac_cv_type_uint64_t = yes; then
8430   :
8431 else
8432
8433 cat >>confdefs.h <<_ACEOF
8434 #define uint64_t unsigned long long
8435 _ACEOF
8436
8437 fi
8438
8439 else
8440   { { echo "$as_me:$LINENO: error: Cannot find a type with size of 64 bits" >&5
8441 echo "$as_me: error: Cannot find a type with size of 64 bits" >&2;}
8442    { (exit 1); exit 1; }; }
8443 fi
8444 echo "$as_me:$LINENO: checking for socklen_t" >&5
8445 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
8446 if test "${ac_cv_type_socklen_t+set}" = set; then
8447   echo $ECHO_N "(cached) $ECHO_C" >&6
8448 else
8449   cat >conftest.$ac_ext <<_ACEOF
8450 /* confdefs.h.  */
8451 _ACEOF
8452 cat confdefs.h >>conftest.$ac_ext
8453 cat >>conftest.$ac_ext <<_ACEOF
8454 /* end confdefs.h.  */
8455 $ac_includes_default
8456 int
8457 main ()
8458 {
8459 if ((socklen_t *) 0)
8460   return 0;
8461 if (sizeof (socklen_t))
8462   return 0;
8463   ;
8464   return 0;
8465 }
8466 _ACEOF
8467 rm -f conftest.$ac_objext
8468 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8469   (eval $ac_compile) 2>conftest.er1
8470   ac_status=$?
8471   grep -v '^ *+' conftest.er1 >conftest.err
8472   rm -f conftest.er1
8473   cat conftest.err >&5
8474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8475   (exit $ac_status); } &&
8476          { ac_try='test -z "$ac_c_werror_flag"
8477                          || test ! -s conftest.err'
8478   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8479   (eval $ac_try) 2>&5
8480   ac_status=$?
8481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8482   (exit $ac_status); }; } &&
8483          { ac_try='test -s conftest.$ac_objext'
8484   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8485   (eval $ac_try) 2>&5
8486   ac_status=$?
8487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8488   (exit $ac_status); }; }; then
8489   ac_cv_type_socklen_t=yes
8490 else
8491   echo "$as_me: failed program was:" >&5
8492 sed 's/^/| /' conftest.$ac_ext >&5
8493
8494 ac_cv_type_socklen_t=no
8495 fi
8496 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8497 fi
8498 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
8499 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
8500 if test $ac_cv_type_socklen_t = yes; then
8501   :
8502 else
8503
8504 cat >>confdefs.h <<_ACEOF
8505 #define socklen_t unsigned int
8506 _ACEOF
8507
8508 fi
8509
8510 echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
8511 echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6
8512 if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
8513   echo $ECHO_N "(cached) $ECHO_C" >&6
8514 else
8515   cat >conftest.$ac_ext <<_ACEOF
8516 /* confdefs.h.  */
8517 _ACEOF
8518 cat confdefs.h >>conftest.$ac_ext
8519 cat >>conftest.$ac_ext <<_ACEOF
8520 /* end confdefs.h.  */
8521 #include <sys/types.h>
8522 #include <netinet/in.h>
8523
8524 int
8525 main ()
8526 {
8527 if ((struct sockaddr_in6 *) 0)
8528   return 0;
8529 if (sizeof (struct sockaddr_in6))
8530   return 0;
8531   ;
8532   return 0;
8533 }
8534 _ACEOF
8535 rm -f conftest.$ac_objext
8536 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8537   (eval $ac_compile) 2>conftest.er1
8538   ac_status=$?
8539   grep -v '^ *+' conftest.er1 >conftest.err
8540   rm -f conftest.er1
8541   cat conftest.err >&5
8542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8543   (exit $ac_status); } &&
8544          { ac_try='test -z "$ac_c_werror_flag"
8545                          || test ! -s conftest.err'
8546   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8547   (eval $ac_try) 2>&5
8548   ac_status=$?
8549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8550   (exit $ac_status); }; } &&
8551          { ac_try='test -s conftest.$ac_objext'
8552   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8553   (eval $ac_try) 2>&5
8554   ac_status=$?
8555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8556   (exit $ac_status); }; }; then
8557   ac_cv_type_struct_sockaddr_in6=yes
8558 else
8559   echo "$as_me: failed program was:" >&5
8560 sed 's/^/| /' conftest.$ac_ext >&5
8561
8562 ac_cv_type_struct_sockaddr_in6=no
8563 fi
8564 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8565 fi
8566 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
8567 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_in6" >&6
8568 if test $ac_cv_type_struct_sockaddr_in6 = yes; then
8569   unet_have_sockaddr_in6="yes"
8570 else
8571   unet_have_sockaddr_in6="no"
8572 fi
8573
8574
8575
8576
8577
8578
8579 for ac_func in kqueue setrlimit getrusage times
8580 do
8581 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8582 echo "$as_me:$LINENO: checking for $ac_func" >&5
8583 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8584 if eval "test \"\${$as_ac_var+set}\" = set"; then
8585   echo $ECHO_N "(cached) $ECHO_C" >&6
8586 else
8587   cat >conftest.$ac_ext <<_ACEOF
8588 /* confdefs.h.  */
8589 _ACEOF
8590 cat confdefs.h >>conftest.$ac_ext
8591 cat >>conftest.$ac_ext <<_ACEOF
8592 /* end confdefs.h.  */
8593 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8594    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8595 #define $ac_func innocuous_$ac_func
8596
8597 /* System header to define __stub macros and hopefully few prototypes,
8598     which can conflict with char $ac_func (); below.
8599     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8600     <limits.h> exists even on freestanding compilers.  */
8601
8602 #ifdef __STDC__
8603 # include <limits.h>
8604 #else
8605 # include <assert.h>
8606 #endif
8607
8608 #undef $ac_func
8609
8610 /* Override any gcc2 internal prototype to avoid an error.  */
8611 #ifdef __cplusplus
8612 extern "C"
8613 {
8614 #endif
8615 /* We use char because int might match the return type of a gcc2
8616    builtin and then its argument prototype would still apply.  */
8617 char $ac_func ();
8618 /* The GNU C library defines this for functions which it implements
8619     to always fail with ENOSYS.  Some functions are actually named
8620     something starting with __ and the normal name is an alias.  */
8621 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8622 choke me
8623 #else
8624 char (*f) () = $ac_func;
8625 #endif
8626 #ifdef __cplusplus
8627 }
8628 #endif
8629
8630 int
8631 main ()
8632 {
8633 return f != $ac_func;
8634   ;
8635   return 0;
8636 }
8637 _ACEOF
8638 rm -f conftest.$ac_objext conftest$ac_exeext
8639 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8640   (eval $ac_link) 2>conftest.er1
8641   ac_status=$?
8642   grep -v '^ *+' conftest.er1 >conftest.err
8643   rm -f conftest.er1
8644   cat conftest.err >&5
8645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8646   (exit $ac_status); } &&
8647          { ac_try='test -z "$ac_c_werror_flag"
8648                          || test ! -s conftest.err'
8649   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8650   (eval $ac_try) 2>&5
8651   ac_status=$?
8652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8653   (exit $ac_status); }; } &&
8654          { ac_try='test -s conftest$ac_exeext'
8655   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8656   (eval $ac_try) 2>&5
8657   ac_status=$?
8658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8659   (exit $ac_status); }; }; then
8660   eval "$as_ac_var=yes"
8661 else
8662   echo "$as_me: failed program was:" >&5
8663 sed 's/^/| /' conftest.$ac_ext >&5
8664
8665 eval "$as_ac_var=no"
8666 fi
8667 rm -f conftest.err conftest.$ac_objext \
8668       conftest$ac_exeext conftest.$ac_ext
8669 fi
8670 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8671 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8672 if test `eval echo '${'$as_ac_var'}'` = yes; then
8673   cat >>confdefs.h <<_ACEOF
8674 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8675 _ACEOF
8676
8677 fi
8678 done
8679
8680
8681 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
8682 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
8683 if test "${ac_cv_header_sys_wait_h+set}" = set; then
8684   echo $ECHO_N "(cached) $ECHO_C" >&6
8685 else
8686   cat >conftest.$ac_ext <<_ACEOF
8687 /* confdefs.h.  */
8688 _ACEOF
8689 cat confdefs.h >>conftest.$ac_ext
8690 cat >>conftest.$ac_ext <<_ACEOF
8691 /* end confdefs.h.  */
8692 #include <sys/types.h>
8693 #include <sys/wait.h>
8694 #ifndef WEXITSTATUS
8695 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
8696 #endif
8697 #ifndef WIFEXITED
8698 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8699 #endif
8700
8701 int
8702 main ()
8703 {
8704   int s;
8705   wait (&s);
8706   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8707   ;
8708   return 0;
8709 }
8710 _ACEOF
8711 rm -f conftest.$ac_objext
8712 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8713   (eval $ac_compile) 2>conftest.er1
8714   ac_status=$?
8715   grep -v '^ *+' conftest.er1 >conftest.err
8716   rm -f conftest.er1
8717   cat conftest.err >&5
8718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8719   (exit $ac_status); } &&
8720          { ac_try='test -z "$ac_c_werror_flag"
8721                          || test ! -s conftest.err'
8722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8723   (eval $ac_try) 2>&5
8724   ac_status=$?
8725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8726   (exit $ac_status); }; } &&
8727          { ac_try='test -s conftest.$ac_objext'
8728   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8729   (eval $ac_try) 2>&5
8730   ac_status=$?
8731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8732   (exit $ac_status); }; }; then
8733   ac_cv_header_sys_wait_h=yes
8734 else
8735   echo "$as_me: failed program was:" >&5
8736 sed 's/^/| /' conftest.$ac_ext >&5
8737
8738 ac_cv_header_sys_wait_h=no
8739 fi
8740 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8741 fi
8742 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
8743 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
8744 if test $ac_cv_header_sys_wait_h = yes; then
8745
8746 cat >>confdefs.h <<\_ACEOF
8747 #define HAVE_SYS_WAIT_H 1
8748 _ACEOF
8749
8750 fi
8751
8752
8753 for ac_header in unistd.h
8754 do
8755 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8756 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8757   echo "$as_me:$LINENO: checking for $ac_header" >&5
8758 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8759 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8760   echo $ECHO_N "(cached) $ECHO_C" >&6
8761 fi
8762 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8763 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8764 else
8765   # Is the header compilable?
8766 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8767 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8768 cat >conftest.$ac_ext <<_ACEOF
8769 /* confdefs.h.  */
8770 _ACEOF
8771 cat confdefs.h >>conftest.$ac_ext
8772 cat >>conftest.$ac_ext <<_ACEOF
8773 /* end confdefs.h.  */
8774 $ac_includes_default
8775 #include <$ac_header>
8776 _ACEOF
8777 rm -f conftest.$ac_objext
8778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8779   (eval $ac_compile) 2>conftest.er1
8780   ac_status=$?
8781   grep -v '^ *+' conftest.er1 >conftest.err
8782   rm -f conftest.er1
8783   cat conftest.err >&5
8784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8785   (exit $ac_status); } &&
8786          { ac_try='test -z "$ac_c_werror_flag"
8787                          || test ! -s conftest.err'
8788   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8789   (eval $ac_try) 2>&5
8790   ac_status=$?
8791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8792   (exit $ac_status); }; } &&
8793          { ac_try='test -s conftest.$ac_objext'
8794   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8795   (eval $ac_try) 2>&5
8796   ac_status=$?
8797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8798   (exit $ac_status); }; }; then
8799   ac_header_compiler=yes
8800 else
8801   echo "$as_me: failed program was:" >&5
8802 sed 's/^/| /' conftest.$ac_ext >&5
8803
8804 ac_header_compiler=no
8805 fi
8806 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8807 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8808 echo "${ECHO_T}$ac_header_compiler" >&6
8809
8810 # Is the header present?
8811 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8812 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8813 cat >conftest.$ac_ext <<_ACEOF
8814 /* confdefs.h.  */
8815 _ACEOF
8816 cat confdefs.h >>conftest.$ac_ext
8817 cat >>conftest.$ac_ext <<_ACEOF
8818 /* end confdefs.h.  */
8819 #include <$ac_header>
8820 _ACEOF
8821 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8822   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8823   ac_status=$?
8824   grep -v '^ *+' conftest.er1 >conftest.err
8825   rm -f conftest.er1
8826   cat conftest.err >&5
8827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8828   (exit $ac_status); } >/dev/null; then
8829   if test -s conftest.err; then
8830     ac_cpp_err=$ac_c_preproc_warn_flag
8831     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8832   else
8833     ac_cpp_err=
8834   fi
8835 else
8836   ac_cpp_err=yes
8837 fi
8838 if test -z "$ac_cpp_err"; then
8839   ac_header_preproc=yes
8840 else
8841   echo "$as_me: failed program was:" >&5
8842 sed 's/^/| /' conftest.$ac_ext >&5
8843
8844   ac_header_preproc=no
8845 fi
8846 rm -f conftest.err conftest.$ac_ext
8847 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8848 echo "${ECHO_T}$ac_header_preproc" >&6
8849
8850 # So?  What about this header?
8851 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8852   yes:no: )
8853     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8854 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8855     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8856 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8857     ac_header_preproc=yes
8858     ;;
8859   no:yes:* )
8860     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8861 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8862     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8863 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8864     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8865 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8866     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8867 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8868     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8869 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8870     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8871 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8872     (
8873       cat <<\_ASBOX
8874 ## ------------------------------------------ ##
8875 ## Report this to the AC_PACKAGE_NAME lists.  ##
8876 ## ------------------------------------------ ##
8877 _ASBOX
8878     ) |
8879       sed "s/^/$as_me: WARNING:     /" >&2
8880     ;;
8881 esac
8882 echo "$as_me:$LINENO: checking for $ac_header" >&5
8883 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8884 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8885   echo $ECHO_N "(cached) $ECHO_C" >&6
8886 else
8887   eval "$as_ac_Header=\$ac_header_preproc"
8888 fi
8889 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8890 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8891
8892 fi
8893 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8894   cat >>confdefs.h <<_ACEOF
8895 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8896 _ACEOF
8897
8898 fi
8899
8900 done
8901
8902 echo "$as_me:$LINENO: checking for restartable system calls" >&5
8903 echo $ECHO_N "checking for restartable system calls... $ECHO_C" >&6
8904 if test "${ac_cv_sys_restartable_syscalls+set}" = set; then
8905   echo $ECHO_N "(cached) $ECHO_C" >&6
8906 else
8907   if test "$cross_compiling" = yes; then
8908   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
8909 See \`config.log' for more details." >&5
8910 echo "$as_me: error: cannot run test program while cross compiling
8911 See \`config.log' for more details." >&2;}
8912    { (exit 1); exit 1; }; }
8913 else
8914   cat >conftest.$ac_ext <<_ACEOF
8915 /* confdefs.h.  */
8916 _ACEOF
8917 cat confdefs.h >>conftest.$ac_ext
8918 cat >>conftest.$ac_ext <<_ACEOF
8919 /* end confdefs.h.  */
8920 /* Exit 0 (true) if wait returns something other than -1,
8921    i.e. the pid of the child, which means that wait was restarted
8922    after getting the signal.  */
8923
8924 #include <sys/types.h>
8925 #include <signal.h>
8926 #if HAVE_UNISTD_H
8927 # include <unistd.h>
8928 #endif
8929 #if HAVE_SYS_WAIT_H
8930 # include <sys/wait.h>
8931 #endif
8932
8933 /* Some platforms explicitly require an extern "C" signal handler
8934    when using C++. */
8935 #ifdef __cplusplus
8936 extern "C" void ucatch (int dummy) { }
8937 #else
8938 void ucatch (dummy) int dummy; { }
8939 #endif
8940
8941 int
8942 main ()
8943 {
8944   int i = fork (), status;
8945
8946   if (i == 0)
8947     {
8948       sleep (3);
8949       kill (getppid (), SIGINT);
8950       sleep (3);
8951       exit (0);
8952     }
8953
8954   signal (SIGINT, ucatch);
8955
8956   status = wait (&i);
8957   if (status == -1)
8958     wait (&i);
8959
8960   exit (status == -1);
8961 }
8962 _ACEOF
8963 rm -f conftest$ac_exeext
8964 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8965   (eval $ac_link) 2>&5
8966   ac_status=$?
8967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8968   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8969   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8970   (eval $ac_try) 2>&5
8971   ac_status=$?
8972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8973   (exit $ac_status); }; }; then
8974   ac_cv_sys_restartable_syscalls=yes
8975 else
8976   echo "$as_me: program exited with status $ac_status" >&5
8977 echo "$as_me: failed program was:" >&5
8978 sed 's/^/| /' conftest.$ac_ext >&5
8979
8980 ( exit $ac_status )
8981 ac_cv_sys_restartable_syscalls=no
8982 fi
8983 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8984 fi
8985 fi
8986 echo "$as_me:$LINENO: result: $ac_cv_sys_restartable_syscalls" >&5
8987 echo "${ECHO_T}$ac_cv_sys_restartable_syscalls" >&6
8988 if test $ac_cv_sys_restartable_syscalls = yes; then
8989
8990 cat >>confdefs.h <<\_ACEOF
8991 #define HAVE_RESTARTABLE_SYSCALLS 1
8992 _ACEOF
8993
8994 fi
8995
8996
8997 echo "$as_me:$LINENO: checking for donuts" >&5
8998 echo $ECHO_N "checking for donuts... $ECHO_C" >&6
8999 echo "$as_me:$LINENO: result: yes" >&5
9000 echo "${ECHO_T}yes" >&6
9001
9002 for ac_prog in gawk mawk nawk awk
9003 do
9004   # Extract the first word of "$ac_prog", so it can be a program name with args.
9005 set dummy $ac_prog; ac_word=$2
9006 echo "$as_me:$LINENO: checking for $ac_word" >&5
9007 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9008 if test "${ac_cv_prog_AWK+set}" = set; then
9009   echo $ECHO_N "(cached) $ECHO_C" >&6
9010 else
9011   if test -n "$AWK"; then
9012   ac_cv_prog_AWK="$AWK" # Let the user override the test.
9013 else
9014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9015 for as_dir in $PATH
9016 do
9017   IFS=$as_save_IFS
9018   test -z "$as_dir" && as_dir=.
9019   for ac_exec_ext in '' $ac_executable_extensions; do
9020   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9021     ac_cv_prog_AWK="$ac_prog"
9022     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9023     break 2
9024   fi
9025 done
9026 done
9027
9028 fi
9029 fi
9030 AWK=$ac_cv_prog_AWK
9031 if test -n "$AWK"; then
9032   echo "$as_me:$LINENO: result: $AWK" >&5
9033 echo "${ECHO_T}$AWK" >&6
9034 else
9035   echo "$as_me:$LINENO: result: no" >&5
9036 echo "${ECHO_T}no" >&6
9037 fi
9038
9039   test -n "$AWK" && break
9040 done
9041
9042 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9043 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
9044 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
9045 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
9046   echo $ECHO_N "(cached) $ECHO_C" >&6
9047 else
9048   cat >conftest.make <<\_ACEOF
9049 all:
9050         @echo 'ac_maketemp="$(MAKE)"'
9051 _ACEOF
9052 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9053 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
9054 if test -n "$ac_maketemp"; then
9055   eval ac_cv_prog_make_${ac_make}_set=yes
9056 else
9057   eval ac_cv_prog_make_${ac_make}_set=no
9058 fi
9059 rm -f conftest.make
9060 fi
9061 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
9062   echo "$as_me:$LINENO: result: yes" >&5
9063 echo "${ECHO_T}yes" >&6
9064   SET_MAKE=
9065 else
9066   echo "$as_me:$LINENO: result: no" >&5
9067 echo "${ECHO_T}no" >&6
9068   SET_MAKE="MAKE=${MAKE-make}"
9069 fi
9070
9071 # Find a good install program.  We prefer a C program (faster),
9072 # so one script is as good as another.  But avoid the broken or
9073 # incompatible versions:
9074 # SysV /etc/install, /usr/sbin/install
9075 # SunOS /usr/etc/install
9076 # IRIX /sbin/install
9077 # AIX /bin/install
9078 # AmigaOS /C/install, which installs bootblocks on floppy discs
9079 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
9080 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
9081 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
9082 # OS/2's system install, which has a completely different semantic
9083 # ./install, which can be erroneously created by make from ./install.sh.
9084 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
9085 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
9086 if test -z "$INSTALL"; then
9087 if test "${ac_cv_path_install+set}" = set; then
9088   echo $ECHO_N "(cached) $ECHO_C" >&6
9089 else
9090   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9091 for as_dir in $PATH
9092 do
9093   IFS=$as_save_IFS
9094   test -z "$as_dir" && as_dir=.
9095   # Account for people who put trailing slashes in PATH elements.
9096 case $as_dir/ in
9097   ./ | .// | /cC/* | \
9098   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
9099   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
9100   /usr/ucb/* ) ;;
9101   *)
9102     # OSF1 and SCO ODT 3.0 have their own names for install.
9103     # Don't use installbsd from OSF since it installs stuff as root
9104     # by default.
9105     for ac_prog in ginstall scoinst install; do
9106       for ac_exec_ext in '' $ac_executable_extensions; do
9107         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
9108           if test $ac_prog = install &&
9109             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
9110             # AIX install.  It has an incompatible calling convention.
9111             :
9112           elif test $ac_prog = install &&
9113             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
9114             # program-specific install script used by HP pwplus--don't use.
9115             :
9116           else
9117             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
9118             break 3
9119           fi
9120         fi
9121       done
9122     done
9123     ;;
9124 esac
9125 done
9126
9127
9128 fi
9129   if test "${ac_cv_path_install+set}" = set; then
9130     INSTALL=$ac_cv_path_install
9131   else
9132     # As a last resort, use the slow shell script.  We don't cache a
9133     # path for INSTALL within a source directory, because that will
9134     # break other packages using the cache if that directory is
9135     # removed, or if the path is relative.
9136     INSTALL=$ac_install_sh
9137   fi
9138 fi
9139 echo "$as_me:$LINENO: result: $INSTALL" >&5
9140 echo "${ECHO_T}$INSTALL" >&6
9141
9142 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
9143 # It thinks the first close brace ends the variable substitution.
9144 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
9145
9146 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
9147
9148 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
9149
9150 echo "$as_me:$LINENO: checking whether ln -s works" >&5
9151 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
9152 LN_S=$as_ln_s
9153 if test "$LN_S" = "ln -s"; then
9154   echo "$as_me:$LINENO: result: yes" >&5
9155 echo "${ECHO_T}yes" >&6
9156 else
9157   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
9158 echo "${ECHO_T}no, using $LN_S" >&6
9159 fi
9160
9161 for ac_prog in rm
9162 do
9163   # Extract the first word of "$ac_prog", so it can be a program name with args.
9164 set dummy $ac_prog; ac_word=$2
9165 echo "$as_me:$LINENO: checking for $ac_word" >&5
9166 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9167 if test "${ac_cv_path_RMPROG+set}" = set; then
9168   echo $ECHO_N "(cached) $ECHO_C" >&6
9169 else
9170   case $RMPROG in
9171   [\\/]* | ?:[\\/]*)
9172   ac_cv_path_RMPROG="$RMPROG" # Let the user override the test with a path.
9173   ;;
9174   *)
9175   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9176 for as_dir in $PATH
9177 do
9178   IFS=$as_save_IFS
9179   test -z "$as_dir" && as_dir=.
9180   for ac_exec_ext in '' $ac_executable_extensions; do
9181   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9182     ac_cv_path_RMPROG="$as_dir/$ac_word$ac_exec_ext"
9183     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9184     break 2
9185   fi
9186 done
9187 done
9188
9189   ;;
9190 esac
9191 fi
9192 RMPROG=$ac_cv_path_RMPROG
9193
9194 if test -n "$RMPROG"; then
9195   echo "$as_me:$LINENO: result: $RMPROG" >&5
9196 echo "${ECHO_T}$RMPROG" >&6
9197 else
9198   echo "$as_me:$LINENO: result: no" >&5
9199 echo "${ECHO_T}no" >&6
9200 fi
9201
9202   test -n "$RMPROG" && break
9203 done
9204 test -n "$RMPROG" || RMPROG="/bin/rm"
9205
9206 for ac_prog in sh
9207 do
9208   # Extract the first word of "$ac_prog", so it can be a program name with args.
9209 set dummy $ac_prog; ac_word=$2
9210 echo "$as_me:$LINENO: checking for $ac_word" >&5
9211 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9212 if test "${ac_cv_path_SHPROG+set}" = set; then
9213   echo $ECHO_N "(cached) $ECHO_C" >&6
9214 else
9215   case $SHPROG in
9216   [\\/]* | ?:[\\/]*)
9217   ac_cv_path_SHPROG="$SHPROG" # Let the user override the test with a path.
9218   ;;
9219   *)
9220   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9221 for as_dir in $PATH
9222 do
9223   IFS=$as_save_IFS
9224   test -z "$as_dir" && as_dir=.
9225   for ac_exec_ext in '' $ac_executable_extensions; do
9226   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9227     ac_cv_path_SHPROG="$as_dir/$ac_word$ac_exec_ext"
9228     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9229     break 2
9230   fi
9231 done
9232 done
9233
9234   ;;
9235 esac
9236 fi
9237 SHPROG=$ac_cv_path_SHPROG
9238
9239 if test -n "$SHPROG"; then
9240   echo "$as_me:$LINENO: result: $SHPROG" >&5
9241 echo "${ECHO_T}$SHPROG" >&6
9242 else
9243   echo "$as_me:$LINENO: result: no" >&5
9244 echo "${ECHO_T}no" >&6
9245 fi
9246
9247   test -n "$SHPROG" && break
9248 done
9249 test -n "$SHPROG" || SHPROG="/bin/sh"
9250
9251
9252 for ac_prog in flex lex
9253 do
9254   # Extract the first word of "$ac_prog", so it can be a program name with args.
9255 set dummy $ac_prog; ac_word=$2
9256 echo "$as_me:$LINENO: checking for $ac_word" >&5
9257 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9258 if test "${ac_cv_prog_LEX+set}" = set; then
9259   echo $ECHO_N "(cached) $ECHO_C" >&6
9260 else
9261   if test -n "$LEX"; then
9262   ac_cv_prog_LEX="$LEX" # Let the user override the test.
9263 else
9264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9265 for as_dir in $PATH
9266 do
9267   IFS=$as_save_IFS
9268   test -z "$as_dir" && as_dir=.
9269   for ac_exec_ext in '' $ac_executable_extensions; do
9270   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9271     ac_cv_prog_LEX="$ac_prog"
9272     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9273     break 2
9274   fi
9275 done
9276 done
9277
9278 fi
9279 fi
9280 LEX=$ac_cv_prog_LEX
9281 if test -n "$LEX"; then
9282   echo "$as_me:$LINENO: result: $LEX" >&5
9283 echo "${ECHO_T}$LEX" >&6
9284 else
9285   echo "$as_me:$LINENO: result: no" >&5
9286 echo "${ECHO_T}no" >&6
9287 fi
9288
9289   test -n "$LEX" && break
9290 done
9291 test -n "$LEX" || LEX=":"
9292
9293 if test -z "$LEXLIB"
9294 then
9295   echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
9296 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
9297 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
9298   echo $ECHO_N "(cached) $ECHO_C" >&6
9299 else
9300   ac_check_lib_save_LIBS=$LIBS
9301 LIBS="-lfl  $LIBS"
9302 cat >conftest.$ac_ext <<_ACEOF
9303 /* confdefs.h.  */
9304 _ACEOF
9305 cat confdefs.h >>conftest.$ac_ext
9306 cat >>conftest.$ac_ext <<_ACEOF
9307 /* end confdefs.h.  */
9308
9309 /* Override any gcc2 internal prototype to avoid an error.  */
9310 #ifdef __cplusplus
9311 extern "C"
9312 #endif
9313 /* We use char because int might match the return type of a gcc2
9314    builtin and then its argument prototype would still apply.  */
9315 char yywrap ();
9316 int
9317 main ()
9318 {
9319 yywrap ();
9320   ;
9321   return 0;
9322 }
9323 _ACEOF
9324 rm -f conftest.$ac_objext conftest$ac_exeext
9325 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9326   (eval $ac_link) 2>conftest.er1
9327   ac_status=$?
9328   grep -v '^ *+' conftest.er1 >conftest.err
9329   rm -f conftest.er1
9330   cat conftest.err >&5
9331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9332   (exit $ac_status); } &&
9333          { ac_try='test -z "$ac_c_werror_flag"
9334                          || test ! -s conftest.err'
9335   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9336   (eval $ac_try) 2>&5
9337   ac_status=$?
9338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9339   (exit $ac_status); }; } &&
9340          { ac_try='test -s conftest$ac_exeext'
9341   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9342   (eval $ac_try) 2>&5
9343   ac_status=$?
9344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9345   (exit $ac_status); }; }; then
9346   ac_cv_lib_fl_yywrap=yes
9347 else
9348   echo "$as_me: failed program was:" >&5
9349 sed 's/^/| /' conftest.$ac_ext >&5
9350
9351 ac_cv_lib_fl_yywrap=no
9352 fi
9353 rm -f conftest.err conftest.$ac_objext \
9354       conftest$ac_exeext conftest.$ac_ext
9355 LIBS=$ac_check_lib_save_LIBS
9356 fi
9357 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
9358 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
9359 if test $ac_cv_lib_fl_yywrap = yes; then
9360   LEXLIB="-lfl"
9361 else
9362   echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
9363 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
9364 if test "${ac_cv_lib_l_yywrap+set}" = set; then
9365   echo $ECHO_N "(cached) $ECHO_C" >&6
9366 else
9367   ac_check_lib_save_LIBS=$LIBS
9368 LIBS="-ll  $LIBS"
9369 cat >conftest.$ac_ext <<_ACEOF
9370 /* confdefs.h.  */
9371 _ACEOF
9372 cat confdefs.h >>conftest.$ac_ext
9373 cat >>conftest.$ac_ext <<_ACEOF
9374 /* end confdefs.h.  */
9375
9376 /* Override any gcc2 internal prototype to avoid an error.  */
9377 #ifdef __cplusplus
9378 extern "C"
9379 #endif
9380 /* We use char because int might match the return type of a gcc2
9381    builtin and then its argument prototype would still apply.  */
9382 char yywrap ();
9383 int
9384 main ()
9385 {
9386 yywrap ();
9387   ;
9388   return 0;
9389 }
9390 _ACEOF
9391 rm -f conftest.$ac_objext conftest$ac_exeext
9392 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9393   (eval $ac_link) 2>conftest.er1
9394   ac_status=$?
9395   grep -v '^ *+' conftest.er1 >conftest.err
9396   rm -f conftest.er1
9397   cat conftest.err >&5
9398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9399   (exit $ac_status); } &&
9400          { ac_try='test -z "$ac_c_werror_flag"
9401                          || test ! -s conftest.err'
9402   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9403   (eval $ac_try) 2>&5
9404   ac_status=$?
9405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9406   (exit $ac_status); }; } &&
9407          { ac_try='test -s conftest$ac_exeext'
9408   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9409   (eval $ac_try) 2>&5
9410   ac_status=$?
9411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9412   (exit $ac_status); }; }; then
9413   ac_cv_lib_l_yywrap=yes
9414 else
9415   echo "$as_me: failed program was:" >&5
9416 sed 's/^/| /' conftest.$ac_ext >&5
9417
9418 ac_cv_lib_l_yywrap=no
9419 fi
9420 rm -f conftest.err conftest.$ac_objext \
9421       conftest$ac_exeext conftest.$ac_ext
9422 LIBS=$ac_check_lib_save_LIBS
9423 fi
9424 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
9425 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
9426 if test $ac_cv_lib_l_yywrap = yes; then
9427   LEXLIB="-ll"
9428 fi
9429
9430 fi
9431
9432 fi
9433
9434 if test "x$LEX" != "x:"; then
9435   echo "$as_me:$LINENO: checking lex output file root" >&5
9436 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
9437 if test "${ac_cv_prog_lex_root+set}" = set; then
9438   echo $ECHO_N "(cached) $ECHO_C" >&6
9439 else
9440   # The minimal lex program is just a single line: %%.  But some broken lexes
9441 # (Solaris, I think it was) want two %% lines, so accommodate them.
9442 cat >conftest.l <<_ACEOF
9443 %%
9444 %%
9445 _ACEOF
9446 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
9447   (eval $LEX conftest.l) 2>&5
9448   ac_status=$?
9449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9450   (exit $ac_status); }
9451 if test -f lex.yy.c; then
9452   ac_cv_prog_lex_root=lex.yy
9453 elif test -f lexyy.c; then
9454   ac_cv_prog_lex_root=lexyy
9455 else
9456   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
9457 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
9458    { (exit 1); exit 1; }; }
9459 fi
9460 fi
9461 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
9462 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
9463 rm -f conftest.l
9464 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
9465
9466 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
9467 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
9468 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
9469   echo $ECHO_N "(cached) $ECHO_C" >&6
9470 else
9471   # POSIX says lex can declare yytext either as a pointer or an array; the
9472 # default is implementation-dependent. Figure out which it is, since
9473 # not all implementations provide the %pointer and %array declarations.
9474 ac_cv_prog_lex_yytext_pointer=no
9475 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
9476 ac_save_LIBS=$LIBS
9477 LIBS="$LIBS $LEXLIB"
9478 cat >conftest.$ac_ext <<_ACEOF
9479 `cat $LEX_OUTPUT_ROOT.c`
9480 _ACEOF
9481 rm -f conftest.$ac_objext conftest$ac_exeext
9482 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9483   (eval $ac_link) 2>conftest.er1
9484   ac_status=$?
9485   grep -v '^ *+' conftest.er1 >conftest.err
9486   rm -f conftest.er1
9487   cat conftest.err >&5
9488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9489   (exit $ac_status); } &&
9490          { ac_try='test -z "$ac_c_werror_flag"
9491                          || test ! -s conftest.err'
9492   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9493   (eval $ac_try) 2>&5
9494   ac_status=$?
9495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9496   (exit $ac_status); }; } &&
9497          { ac_try='test -s conftest$ac_exeext'
9498   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9499   (eval $ac_try) 2>&5
9500   ac_status=$?
9501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9502   (exit $ac_status); }; }; then
9503   ac_cv_prog_lex_yytext_pointer=yes
9504 else
9505   echo "$as_me: failed program was:" >&5
9506 sed 's/^/| /' conftest.$ac_ext >&5
9507
9508 fi
9509 rm -f conftest.err conftest.$ac_objext \
9510       conftest$ac_exeext conftest.$ac_ext
9511 LIBS=$ac_save_LIBS
9512 rm -f "${LEX_OUTPUT_ROOT}.c"
9513
9514 fi
9515 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
9516 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
9517 if test $ac_cv_prog_lex_yytext_pointer = yes; then
9518
9519 cat >>confdefs.h <<\_ACEOF
9520 #define YYTEXT_POINTER 1
9521 _ACEOF
9522
9523 fi
9524
9525 fi
9526 if test "$LEX" = ":" ; then
9527   { { echo "$as_me:$LINENO: error: Cannot find flex." >&5
9528 echo "$as_me: error: Cannot find flex." >&2;}
9529    { (exit 1); exit 1; }; }
9530 elif echo "" | $LEX -V -v --version > /dev/null 2>&1 ; then
9531   :
9532 else
9533   { { echo "$as_me:$LINENO: error: Cannot use $LEX as flex." >&5
9534 echo "$as_me: error: Cannot use $LEX as flex." >&2;}
9535    { (exit 1); exit 1; }; }
9536 fi
9537
9538 if test -z "$LEXLIB" ; then
9539   { { echo "$as_me:$LINENO: error: Cannot find a library with yywrap() in, but flex was found.
9540   It's possible the compiler you're using ($CC) is incompatible with the
9541   installed library.
9542 See \`config.log' for more details." >&5
9543 echo "$as_me: error: Cannot find a library with yywrap() in, but flex was found.
9544   It's possible the compiler you're using ($CC) is incompatible with the
9545   installed library.
9546 See \`config.log' for more details." >&2;}
9547    { (exit 1); exit 1; }; }
9548 fi
9549
9550 LIBS="$LEXLIB $LIBS"
9551
9552 for ac_prog in 'bison -y' byacc
9553 do
9554   # Extract the first word of "$ac_prog", so it can be a program name with args.
9555 set dummy $ac_prog; ac_word=$2
9556 echo "$as_me:$LINENO: checking for $ac_word" >&5
9557 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9558 if test "${ac_cv_prog_YACC+set}" = set; then
9559   echo $ECHO_N "(cached) $ECHO_C" >&6
9560 else
9561   if test -n "$YACC"; then
9562   ac_cv_prog_YACC="$YACC" # Let the user override the test.
9563 else
9564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9565 for as_dir in $PATH
9566 do
9567   IFS=$as_save_IFS
9568   test -z "$as_dir" && as_dir=.
9569   for ac_exec_ext in '' $ac_executable_extensions; do
9570   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9571     ac_cv_prog_YACC="$ac_prog"
9572     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9573     break 2
9574   fi
9575 done
9576 done
9577
9578 fi
9579 fi
9580 YACC=$ac_cv_prog_YACC
9581 if test -n "$YACC"; then
9582   echo "$as_me:$LINENO: result: $YACC" >&5
9583 echo "${ECHO_T}$YACC" >&6
9584 else
9585   echo "$as_me:$LINENO: result: no" >&5
9586 echo "${ECHO_T}no" >&6
9587 fi
9588
9589   test -n "$YACC" && break
9590 done
9591 test -n "$YACC" || YACC="yacc"
9592
9593 if test "$YACC" = ":" ; then
9594   { { echo "$as_me:$LINENO: error: Cannot find yacc." >&5
9595 echo "$as_me: error: Cannot find yacc." >&2;}
9596    { (exit 1); exit 1; }; }
9597 elif echo "" | $YACC -V -v --version > /dev/null 2>&1 ; then
9598   :
9599 else
9600   { echo "$as_me:$LINENO: WARNING: $YACC may not work as yacc." >&5
9601 echo "$as_me: WARNING: $YACC may not work as yacc." >&2;}
9602 fi
9603
9604 echo "$as_me:$LINENO: checking for posix non-blocking" >&5
9605 echo $ECHO_N "checking for posix non-blocking... $ECHO_C" >&6
9606 if test "${unet_cv_sys_nonblocking_posix+set}" = set; then
9607   echo $ECHO_N "(cached) $ECHO_C" >&6
9608 else
9609   if test "$cross_compiling" = yes; then
9610   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9611 See \`config.log' for more details." >&5
9612 echo "$as_me: error: cannot run test program while cross compiling
9613 See \`config.log' for more details." >&2;}
9614    { (exit 1); exit 1; }; }
9615 else
9616   cat >conftest.$ac_ext <<_ACEOF
9617 /* confdefs.h.  */
9618 _ACEOF
9619 cat confdefs.h >>conftest.$ac_ext
9620 cat >>conftest.$ac_ext <<_ACEOF
9621 /* end confdefs.h.  */
9622 #include <sys/types.h>
9623 #include <sys/socket.h>
9624 #include <fcntl.h>
9625 #include <sys/ioctl.h>
9626 #include <sys/file.h>
9627 #include <signal.h>
9628 $ac_cv_type_signal alarmed() { exit(1); }
9629 int main(void)
9630 {
9631   char b[12];
9632   struct sockaddr x;
9633   size_t l = sizeof(x);
9634   int f = socket(AF_INET, SOCK_DGRAM, 0);
9635   if (f >= 0 && !(fcntl(f, F_SETFL, O_NONBLOCK)))
9636   {
9637     signal(SIGALRM, alarmed);
9638     alarm(2);
9639     recvfrom(f, b, 12, 0, &x, &l);
9640     alarm(0);
9641     exit(0);
9642   }
9643   exit(1);
9644 }
9645 _ACEOF
9646 rm -f conftest$ac_exeext
9647 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9648   (eval $ac_link) 2>&5
9649   ac_status=$?
9650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9651   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9652   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9653   (eval $ac_try) 2>&5
9654   ac_status=$?
9655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9656   (exit $ac_status); }; }; then
9657   unet_cv_sys_nonblocking_posix=yes
9658 else
9659   echo "$as_me: program exited with status $ac_status" >&5
9660 echo "$as_me: failed program was:" >&5
9661 sed 's/^/| /' conftest.$ac_ext >&5
9662
9663 ( exit $ac_status )
9664 unet_cv_sys_nonblocking_posix=no
9665 fi
9666 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9667 fi
9668 fi
9669 echo "$as_me:$LINENO: result: $unet_cv_sys_nonblocking_posix" >&5
9670 echo "${ECHO_T}$unet_cv_sys_nonblocking_posix" >&6
9671 if test $unet_cv_sys_nonblocking_posix = yes; then
9672
9673 cat >>confdefs.h <<\_ACEOF
9674 #define NBLOCK_POSIX
9675 _ACEOF
9676
9677 else
9678 echo "$as_me:$LINENO: checking for bsd non-blocking" >&5
9679 echo $ECHO_N "checking for bsd non-blocking... $ECHO_C" >&6
9680 if test "${unet_cv_sys_nonblocking_bsd+set}" = set; then
9681   echo $ECHO_N "(cached) $ECHO_C" >&6
9682 else
9683   if test "$cross_compiling" = yes; then
9684   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9685 See \`config.log' for more details." >&5
9686 echo "$as_me: error: cannot run test program while cross compiling
9687 See \`config.log' for more details." >&2;}
9688    { (exit 1); exit 1; }; }
9689 else
9690   cat >conftest.$ac_ext <<_ACEOF
9691 /* confdefs.h.  */
9692 _ACEOF
9693 cat confdefs.h >>conftest.$ac_ext
9694 cat >>conftest.$ac_ext <<_ACEOF
9695 /* end confdefs.h.  */
9696 #include <sys/types.h>
9697 #include <sys/socket.h>
9698 #include <fcntl.h>
9699 #include <sys/ioctl.h>
9700 #include <sys/file.h>
9701 #include <signal.h>
9702 $ac_cv_type_signal alarmed() { exit(1); }
9703 int main(void)
9704 {
9705   char b[12];
9706   struct sockaddr x;
9707   size_t l = sizeof(x);
9708   int f = socket(AF_INET, SOCK_DGRAM, 0);
9709   if (f >= 0 && !(fcntl(f, F_SETFL, O_NDELAY)))
9710   {
9711     signal(SIGALRM, alarmed);
9712     alarm(2);
9713     recvfrom(f, b, 12, 0, &x, &l);
9714     alarm(0);
9715     exit(0);
9716   }
9717   exit(1);
9718 }
9719 _ACEOF
9720 rm -f conftest$ac_exeext
9721 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9722   (eval $ac_link) 2>&5
9723   ac_status=$?
9724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9725   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9726   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9727   (eval $ac_try) 2>&5
9728   ac_status=$?
9729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9730   (exit $ac_status); }; }; then
9731   unet_cv_sys_nonblocking_bsd=yes
9732 else
9733   echo "$as_me: program exited with status $ac_status" >&5
9734 echo "$as_me: failed program was:" >&5
9735 sed 's/^/| /' conftest.$ac_ext >&5
9736
9737 ( exit $ac_status )
9738 unet_cv_sys_nonblocking_bsd=no
9739 fi
9740 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9741 fi
9742 fi
9743 echo "$as_me:$LINENO: result: $unet_cv_sys_nonblocking_bsd" >&5
9744 echo "${ECHO_T}$unet_cv_sys_nonblocking_bsd" >&6
9745 if test $unet_cv_sys_nonblocking_bsd = yes; then
9746
9747 cat >>confdefs.h <<\_ACEOF
9748 #define NBLOCK_BSD
9749 _ACEOF
9750
9751 else
9752
9753 cat >>confdefs.h <<\_ACEOF
9754 #define NBLOCK_SYSV
9755 _ACEOF
9756
9757 fi
9758 fi
9759 echo "$as_me:$LINENO: checking for posix signals" >&5
9760 echo $ECHO_N "checking for posix signals... $ECHO_C" >&6
9761 if test "${unet_cv_sys_signal_posix+set}" = set; then
9762   echo $ECHO_N "(cached) $ECHO_C" >&6
9763 else
9764   cat >conftest.$ac_ext <<_ACEOF
9765 /* confdefs.h.  */
9766 _ACEOF
9767 cat confdefs.h >>conftest.$ac_ext
9768 cat >>conftest.$ac_ext <<_ACEOF
9769 /* end confdefs.h.  */
9770 #include <signal.h>
9771 int
9772 main ()
9773 {
9774 sigaction(SIGTERM, (struct sigaction *)0L, (struct sigaction *)0L)
9775   ;
9776   return 0;
9777 }
9778 _ACEOF
9779 rm -f conftest.$ac_objext
9780 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9781   (eval $ac_compile) 2>conftest.er1
9782   ac_status=$?
9783   grep -v '^ *+' conftest.er1 >conftest.err
9784   rm -f conftest.er1
9785   cat conftest.err >&5
9786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9787   (exit $ac_status); } &&
9788          { ac_try='test -z "$ac_c_werror_flag"
9789                          || test ! -s conftest.err'
9790   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9791   (eval $ac_try) 2>&5
9792   ac_status=$?
9793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9794   (exit $ac_status); }; } &&
9795          { ac_try='test -s conftest.$ac_objext'
9796   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9797   (eval $ac_try) 2>&5
9798   ac_status=$?
9799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9800   (exit $ac_status); }; }; then
9801   unet_cv_sys_signal_posix=yes
9802 else
9803   echo "$as_me: failed program was:" >&5
9804 sed 's/^/| /' conftest.$ac_ext >&5
9805
9806 unet_cv_sys_signal_posix=no
9807 fi
9808 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9809 fi
9810 echo "$as_me:$LINENO: result: $unet_cv_sys_signal_posix" >&5
9811 echo "${ECHO_T}$unet_cv_sys_signal_posix" >&6
9812 if test $unet_cv_sys_signal_posix = yes; then
9813
9814 cat >>confdefs.h <<\_ACEOF
9815 #define POSIX_SIGNALS
9816 _ACEOF
9817
9818 else
9819 echo "$as_me:$LINENO: checking for bsd reliable signals" >&5
9820 echo $ECHO_N "checking for bsd reliable signals... $ECHO_C" >&6
9821 if test "${unet_cv_sys_signal_bsd+set}" = set; then
9822   echo $ECHO_N "(cached) $ECHO_C" >&6
9823 else
9824   if test "$cross_compiling" = yes; then
9825   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9826 See \`config.log' for more details." >&5
9827 echo "$as_me: error: cannot run test program while cross compiling
9828 See \`config.log' for more details." >&2;}
9829    { (exit 1); exit 1; }; }
9830 else
9831   cat >conftest.$ac_ext <<_ACEOF
9832 /* confdefs.h.  */
9833 _ACEOF
9834 cat confdefs.h >>conftest.$ac_ext
9835 cat >>conftest.$ac_ext <<_ACEOF
9836 /* end confdefs.h.  */
9837 #include <signal.h>
9838 int calls = 0;
9839 $ac_cv_type_signal handler()
9840 {
9841   if (calls) return;
9842   calls++;
9843   kill(getpid(), SIGTERM);
9844   sleep(1);
9845 }
9846 int main(void)
9847 {
9848   signal(SIGTERM, handler);
9849   kill(getpid(), SIGTERM);
9850   exit (0);
9851 }
9852 _ACEOF
9853 rm -f conftest$ac_exeext
9854 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9855   (eval $ac_link) 2>&5
9856   ac_status=$?
9857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9858   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9859   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9860   (eval $ac_try) 2>&5
9861   ac_status=$?
9862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9863   (exit $ac_status); }; }; then
9864   unet_cv_sys_signal_bsd=yes
9865 else
9866   echo "$as_me: program exited with status $ac_status" >&5
9867 echo "$as_me: failed program was:" >&5
9868 sed 's/^/| /' conftest.$ac_ext >&5
9869
9870 ( exit $ac_status )
9871 unet_cv_sys_signal_bsd=no
9872 fi
9873 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9874 fi
9875 fi
9876 echo "$as_me:$LINENO: result: $unet_cv_sys_signal_bsd" >&5
9877 echo "${ECHO_T}$unet_cv_sys_signal_bsd" >&6
9878 if test $unet_cv_sys_signal_bsd = yes; then
9879
9880 cat >>confdefs.h <<\_ACEOF
9881 #define BSD_RELIABLE_SIGNALS
9882 _ACEOF
9883
9884 else
9885
9886 cat >>confdefs.h <<\_ACEOF
9887 #define SYSV_UNRELIABLE_SIGNALS
9888 _ACEOF
9889
9890 fi
9891 fi
9892
9893 echo "$as_me:$LINENO: checking for OS-dependent information" >&5
9894 echo $ECHO_N "checking for OS-dependent information... $ECHO_C" >&6
9895 case "$host" in
9896     *-linux*)
9897         echo "$as_me:$LINENO: result: Linux ($host) found." >&5
9898 echo "${ECHO_T}Linux ($host) found." >&6
9899         unet_poll_syscall=yes
9900         ;;
9901
9902     *-solaris*)
9903         echo "$as_me:$LINENO: result: Solaris ($host) found." >&5
9904 echo "${ECHO_T}Solaris ($host) found." >&6
9905         if test x"$ac_cv_header_poll_h" = xyes; then
9906             unet_poll_syscall=yes
9907         else
9908             unet_poll_syscall=no
9909         fi
9910         ;;
9911
9912     *-sunos*)
9913         echo "$as_me:$LINENO: result: Solaris ($host) found." >&5
9914 echo "${ECHO_T}Solaris ($host) found." >&6
9915         unet_poll_syscall=no
9916         ;;
9917
9918     *-openbsd*)
9919         echo "$as_me:$LINENO: result: OpenBSD ($host) found." >&5
9920 echo "${ECHO_T}OpenBSD ($host) found." >&6
9921         if test x"$ac_cv_header_poll_h" = xyes; then
9922             unet_poll_syscall=yes
9923         else
9924             unet_poll_syscall=no
9925         fi
9926         ;;
9927
9928     *-*bsd*)
9929         echo "$as_me:$LINENO: result: Generic BSD ($host) found." >&5
9930 echo "${ECHO_T}Generic BSD ($host) found." >&6
9931         if test x"$ac_cv_header_poll_h" = xyes; then
9932             unet_poll_syscall=yes
9933         else
9934             unet_poll_syscall=no
9935         fi
9936         ;;
9937
9938     *-darwin*)
9939         echo "$as_me:$LINENO: result: Darwin (Mac OS X) ($host) found." >&5
9940 echo "${ECHO_T}Darwin (Mac OS X) ($host) found." >&6
9941         unet_poll_syscall=no
9942         ;;
9943
9944     *)
9945         echo "$as_me:$LINENO: result: Unknown system type $host found." >&5
9946 echo "${ECHO_T}Unknown system type $host found." >&6
9947         { echo "$as_me:$LINENO: WARNING: Unknown OS type; using generic routines." >&5
9948 echo "$as_me: WARNING: Unknown OS type; using generic routines." >&2;}
9949         unet_poll_syscall=no
9950         ;;
9951 esac
9952
9953 echo "$as_me:$LINENO: checking whether to enable use of poll()" >&5
9954 echo $ECHO_N "checking whether to enable use of poll()... $ECHO_C" >&6
9955 # Check whether --enable-poll or --disable-poll was given.
9956 if test "${enable_poll+set}" = set; then
9957   enableval="$enable_poll"
9958   unet_cv_enable_poll=$enable_poll
9959 else
9960   if test "${unet_cv_enable_poll+set}" = set; then
9961   echo $ECHO_N "(cached) $ECHO_C" >&6
9962 else
9963   unet_cv_enable_poll=$unet_poll_syscall
9964 fi
9965
9966 fi;
9967
9968 # Force poll to be disabled if there is no poll.h
9969 if test x"$ac_cv_header_poll_h" != xyes; then
9970     unet_cv_enable_poll=no
9971 fi
9972
9973 echo "$as_me:$LINENO: result: $unet_cv_enable_poll" >&5
9974 echo "${ECHO_T}$unet_cv_enable_poll" >&6
9975
9976 if test x"$unet_cv_enable_poll" = xyes; then
9977
9978 cat >>confdefs.h <<\_ACEOF
9979 #define USE_POLL 1
9980 _ACEOF
9981
9982     ENGINE_C=engine_poll.c
9983 else
9984     ENGINE_C=engine_select.c
9985 fi
9986
9987
9988 echo "$as_me:$LINENO: checking whether to enable debug mode" >&5
9989 echo $ECHO_N "checking whether to enable debug mode... $ECHO_C" >&6
9990 # Check whether --enable-debug or --disable-debug was given.
9991 if test "${enable_debug+set}" = set; then
9992   enableval="$enable_debug"
9993   unet_cv_enable_debug=$enable_debug
9994 else
9995   if test "${unet_cv_enable_debug+set}" = set; then
9996   echo $ECHO_N "(cached) $ECHO_C" >&6
9997 else
9998   unet_cv_enable_debug=no
9999 fi
10000
10001 fi;
10002 echo "$as_me:$LINENO: result: $unet_cv_enable_debug" >&5
10003 echo "${ECHO_T}$unet_cv_enable_debug" >&6
10004
10005 if test x"$unet_cv_enable_debug" = xyes; then
10006
10007 cat >>confdefs.h <<\_ACEOF
10008 #define DEBUGMODE 1
10009 _ACEOF
10010
10011 fi
10012
10013 echo "$as_me:$LINENO: checking whether to enable leak detection" >&5
10014 echo $ECHO_N "checking whether to enable leak detection... $ECHO_C" >&6
10015
10016 # Check whether --with-leak-detect or --without-leak-detect was given.
10017 if test "${with_leak_detect+set}" = set; then
10018   withval="$with_leak_detect"
10019   unet_cv_with_leak_detect=$with_leak_detect
10020 else
10021   if test "${unet_cv_with_leak_detect+set}" = set; then
10022   echo $ECHO_N "(cached) $ECHO_C" >&6
10023 else
10024   unet_cv_with_leak_detect=no
10025 fi
10026
10027 fi;
10028 echo "$as_me:$LINENO: result: $unet_cv_enable_leak_detect" >&5
10029 echo "${ECHO_T}$unet_cv_enable_leak_detect" >&6
10030
10031 if test x"$unet_cv_with_leak_detect" != xno; then
10032     LIBS="-lgc $LIBS"
10033     CFLAGS="-DMDEBUG $CFLAGS"
10034     if test x"$unet_cv_with_leak_detect" != xyes; then
10035        LIBS="-L$unet_cv_with_leak_detect $LIBS"
10036     fi
10037 fi
10038
10039
10040 # Check whether --with-ipv6 or --without-ipv6 was given.
10041 if test "${with_ipv6+set}" = set; then
10042   withval="$with_ipv6"
10043   ac_cv_use_ipv6=$withval
10044 else
10045   ac_cv_use_ipv6=$unet_have_sockaddr_in6
10046 fi;
10047 echo "$as_me:$LINENO: checking whether to use IPv6" >&5
10048 echo $ECHO_N "checking whether to use IPv6... $ECHO_C" >&6
10049 if test "${ac_cv_use_ipv6+set}" = set; then
10050   echo $ECHO_N "(cached) $ECHO_C" >&6
10051 else
10052   ac_cv_use_ipv6=no
10053 fi
10054 echo "$as_me:$LINENO: result: $ac_cv_use_ipv6" >&5
10055 echo "${ECHO_T}$ac_cv_use_ipv6" >&6
10056 if test x"$ac_cv_use_ipv6" != "xno" ; then
10057
10058 cat >>confdefs.h <<\_ACEOF
10059 #define IPV6 1
10060 _ACEOF
10061
10062 fi
10063
10064 echo "$as_me:$LINENO: checking whether to enable asserts" >&5
10065 echo $ECHO_N "checking whether to enable asserts... $ECHO_C" >&6
10066 # Check whether --enable-asserts or --disable-asserts was given.
10067 if test "${enable_asserts+set}" = set; then
10068   enableval="$enable_asserts"
10069   unet_cv_enable_asserts=$enable_asserts
10070 else
10071   if test "${unet_cv_enable_asserts+set}" = set; then
10072   echo $ECHO_N "(cached) $ECHO_C" >&6
10073 else
10074   unet_cv_enable_asserts=yes
10075 fi
10076
10077 fi;
10078 echo "$as_me:$LINENO: result: $unet_cv_enable_asserts" >&5
10079 echo "${ECHO_T}$unet_cv_enable_asserts" >&6
10080
10081 if test x"$unet_cv_enable_asserts" = xno; then
10082
10083 cat >>confdefs.h <<\_ACEOF
10084 #define NDEBUG 1
10085 _ACEOF
10086
10087 fi
10088
10089 echo "$as_me:$LINENO: checking whether to enable debugging symbols" >&5
10090 echo $ECHO_N "checking whether to enable debugging symbols... $ECHO_C" >&6
10091 # Check whether --enable-symbols or --disable-symbols was given.
10092 if test "${enable_symbols+set}" = set; then
10093   enableval="$enable_symbols"
10094   unet_cv_enable_symbols=$enable_symbols
10095 else
10096   if test "${unet_cv_enable_symbols+set}" = set; then
10097   echo $ECHO_N "(cached) $ECHO_C" >&6
10098 else
10099   unet_cv_enable_symbols=yes
10100 fi
10101
10102 fi;
10103 echo "$as_me:$LINENO: result: $unet_cv_enable_symbols" >&5
10104 echo "${ECHO_T}$unet_cv_enable_symbols" >&6
10105
10106 if test x"$unet_cv_enable_symbols" = xyes; then
10107     CFLAGS="-g $CFLAGS"
10108 fi
10109
10110 echo "$as_me:$LINENO: checking whether to enable profiling support (gprof)" >&5
10111 echo $ECHO_N "checking whether to enable profiling support (gprof)... $ECHO_C" >&6
10112 # Check whether --enable-profile or --disable-profile was given.
10113 if test "${enable_profile+set}" = set; then
10114   enableval="$enable_profile"
10115   unet_cv_enable_profile=$enable_profile
10116 else
10117   if test "${unet_cv_enable_profile+set}" = set; then
10118   echo $ECHO_N "(cached) $ECHO_C" >&6
10119 else
10120   unet_cv_enable_profile=no
10121 fi
10122
10123 fi;
10124 echo "$as_me:$LINENO: result: $unet_cv_enable_profile" >&5
10125 echo "${ECHO_T}$unet_cv_enable_profile" >&6
10126
10127 if test x"$unet_cv_enable_profile" = xyes; then
10128     CFLAGS="-pg $CFLAGS"
10129     LDFLAGS="-pg $LDFLAGS"
10130 fi
10131
10132 echo "$as_me:$LINENO: checking whether to enable pedantic compiler warnings" >&5
10133 echo $ECHO_N "checking whether to enable pedantic compiler warnings... $ECHO_C" >&6
10134 # Check whether --enable-pedantic or --disable-pedantic was given.
10135 if test "${enable_pedantic+set}" = set; then
10136   enableval="$enable_pedantic"
10137   unet_cv_enable_pedantic=$enable_pedantic
10138 else
10139   if test "${unet_cv_enable_pedantic+set}" = set; then
10140   echo $ECHO_N "(cached) $ECHO_C" >&6
10141 else
10142   unet_cv_enable_pedantic=no
10143 fi
10144
10145 fi;
10146 echo "$as_me:$LINENO: result: $unet_cv_enable_pedantic" >&5
10147 echo "${ECHO_T}$unet_cv_enable_pedantic" >&6
10148
10149 if test x"$unet_cv_enable_pedantic" = xyes; then
10150     CFLAGS="-pedantic $CFLAGS"
10151 fi
10152
10153 echo "$as_me:$LINENO: checking whether to enable compiler warnings" >&5
10154 echo $ECHO_N "checking whether to enable compiler warnings... $ECHO_C" >&6
10155 # Check whether --enable-warnings or --disable-warnings was given.
10156 if test "${enable_warnings+set}" = set; then
10157   enableval="$enable_warnings"
10158   unet_cv_enable_warnings=$enable_warnings
10159 else
10160   if test "${unet_cv_enable_warnings+set}" = set; then
10161   echo $ECHO_N "(cached) $ECHO_C" >&6
10162 else
10163   unet_cv_enable_warnings=no
10164 fi
10165
10166 fi;
10167 echo "$as_me:$LINENO: result: $unet_cv_enable_warnings" >&5
10168 echo "${ECHO_T}$unet_cv_enable_warnings" >&6
10169
10170 if test x"$unet_cv_enable_warnings" = xyes; then
10171     CFLAGS="-Wall $CFLAGS"
10172 fi
10173
10174 echo "$as_me:$LINENO: checking whether to enable inlining for a few critical functions" >&5
10175 echo $ECHO_N "checking whether to enable inlining for a few critical functions... $ECHO_C" >&6
10176 # Check whether --enable-inlines or --disable-inlines was given.
10177 if test "${enable_inlines+set}" = set; then
10178   enableval="$enable_inlines"
10179   unet_cv_enable_inlines=$enable_inlines
10180 else
10181   if test "${unet_cv_enable_inlines+set}" = set; then
10182   echo $ECHO_N "(cached) $ECHO_C" >&6
10183 else
10184   unet_cv_enable_inlines=yes
10185 fi
10186
10187 fi;
10188 echo "$as_me:$LINENO: result: $unet_cv_enable_inlines" >&5
10189 echo "${ECHO_T}$unet_cv_enable_inlines" >&6
10190
10191 if test x"$unet_cv_enable_inlines" = xyes; then
10192
10193 cat >>confdefs.h <<\_ACEOF
10194 #define FORCEINLINE 1
10195 _ACEOF
10196
10197 fi
10198
10199 echo "$as_me:$LINENO: checking whether to enable the /dev/poll event engine" >&5
10200 echo $ECHO_N "checking whether to enable the /dev/poll event engine... $ECHO_C" >&6
10201 # Check whether --enable-devpoll or --disable-devpoll was given.
10202 if test "${enable_devpoll+set}" = set; then
10203   enableval="$enable_devpoll"
10204   unet_cv_enable_devpoll=$enable_devpoll
10205 else
10206   if test "${unet_cv_enable_devpoll+set}" = set; then
10207   echo $ECHO_N "(cached) $ECHO_C" >&6
10208 else
10209   unet_cv_enable_devpoll=yes
10210 fi
10211
10212 fi;
10213
10214 if test x"$ac_cv_header_sys_devpoll_h" = xno; then
10215     unet_cv_enable_devpoll=no
10216 fi
10217
10218 echo "$as_me:$LINENO: result: $unet_cv_enable_devpoll" >&5
10219 echo "${ECHO_T}$unet_cv_enable_devpoll" >&6
10220
10221 if test x"$unet_cv_enable_devpoll" != xno; then
10222
10223 cat >>confdefs.h <<\_ACEOF
10224 #define USE_DEVPOLL 1
10225 _ACEOF
10226
10227     ENGINE_C="engine_devpoll.c $ENGINE_C"
10228 fi
10229
10230 echo "$as_me:$LINENO: checking whether to enable the kqueue event engine" >&5
10231 echo $ECHO_N "checking whether to enable the kqueue event engine... $ECHO_C" >&6
10232 # Check whether --enable-kqueue or --disable-kqueue was given.
10233 if test "${enable_kqueue+set}" = set; then
10234   enableval="$enable_kqueue"
10235   unet_cv_enable_kqueue=$enable_kqueue
10236 else
10237   if test "${unet_cv_enable_kqueue+set}" = set; then
10238   echo $ECHO_N "(cached) $ECHO_C" >&6
10239 else
10240   unet_cv_enable_kqueue=yes
10241 fi
10242
10243 fi;
10244
10245 if test x"$ac_cv_header_sys_event_h" = xno -o x"$ac_cv_func_kqueue" = xno; then
10246     unet_cv_enable_kqueue=no
10247 fi
10248
10249 echo "$as_me:$LINENO: result: $unet_cv_enable_kqueue" >&5
10250 echo "${ECHO_T}$unet_cv_enable_kqueue" >&6
10251
10252 if test x"$unet_cv_enable_kqueue" != xno; then
10253
10254 cat >>confdefs.h <<\_ACEOF
10255 #define USE_KQUEUE 1
10256 _ACEOF
10257
10258     ENGINE_C="engine_kqueue.c $ENGINE_C"
10259 fi
10260
10261 echo "$as_me:$LINENO: checking whether to enable the epoll event engine" >&5
10262 echo $ECHO_N "checking whether to enable the epoll event engine... $ECHO_C" >&6
10263 # Check whether --enable-epoll or --disable-epoll was given.
10264 if test "${enable_epoll+set}" = set; then
10265   enableval="$enable_epoll"
10266   unet_cv_enable_epoll=$enable_epoll
10267 else
10268   if test "${unet_cv_enable_epoll+set}" = set; then
10269   echo $ECHO_N "(cached) $ECHO_C" >&6
10270 else
10271   unet_cv_enable_epoll=yes
10272 fi
10273
10274 fi;
10275
10276 if test x"$ac_cv_header_sys_epoll_h" = xno -o x"$ac_cv_func_epoll" = xno; then
10277     unet_cv_enable_epoll=no
10278 fi
10279
10280 echo "$as_me:$LINENO: result: $unet_cv_enable_epoll" >&5
10281 echo "${ECHO_T}$unet_cv_enable_epoll" >&6
10282
10283 if test x"$unet_cv_enable_epoll" != xno; then
10284     echo "$as_me:$LINENO: checking whether epoll functions are properly defined" >&5
10285 echo $ECHO_N "checking whether epoll functions are properly defined... $ECHO_C" >&6
10286     cat >conftest.$ac_ext <<_ACEOF
10287 /* confdefs.h.  */
10288 _ACEOF
10289 cat confdefs.h >>conftest.$ac_ext
10290 cat >>conftest.$ac_ext <<_ACEOF
10291 /* end confdefs.h.  */
10292 #include <sys/epoll.h>
10293 int
10294 main ()
10295 {
10296 epoll_create(10);
10297   ;
10298   return 0;
10299 }
10300 _ACEOF
10301 rm -f conftest.$ac_objext conftest$ac_exeext
10302 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10303   (eval $ac_link) 2>conftest.er1
10304   ac_status=$?
10305   grep -v '^ *+' conftest.er1 >conftest.err
10306   rm -f conftest.er1
10307   cat conftest.err >&5
10308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10309   (exit $ac_status); } &&
10310          { ac_try='test -z "$ac_c_werror_flag"
10311                          || test ! -s conftest.err'
10312   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10313   (eval $ac_try) 2>&5
10314   ac_status=$?
10315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10316   (exit $ac_status); }; } &&
10317          { ac_try='test -s conftest$ac_exeext'
10318   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10319   (eval $ac_try) 2>&5
10320   ac_status=$?
10321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10322   (exit $ac_status); }; }; then
10323   echo "$as_me:$LINENO: result: yes" >&5
10324 echo "${ECHO_T}yes" >&6
10325 else
10326   echo "$as_me: failed program was:" >&5
10327 sed 's/^/| /' conftest.$ac_ext >&5
10328
10329 echo "$as_me:$LINENO: result: no" >&5
10330 echo "${ECHO_T}no" >&6
10331
10332 cat >>confdefs.h <<\_ACEOF
10333 #define EPOLL_NEED_BODY 1
10334 _ACEOF
10335
10336 fi
10337 rm -f conftest.err conftest.$ac_objext \
10338       conftest$ac_exeext conftest.$ac_ext
10339
10340 cat >>confdefs.h <<\_ACEOF
10341 #define USE_EPOLL 1
10342 _ACEOF
10343
10344     ENGINE_C="engine_epoll.c $ENGINE_C"
10345 fi
10346
10347 echo "$as_me:$LINENO: checking for va_copy" >&5
10348 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
10349 if test "${unet_cv_c_va_copy+set}" = set; then
10350   echo $ECHO_N "(cached) $ECHO_C" >&6
10351 else
10352   cat >conftest.$ac_ext <<_ACEOF
10353 /* confdefs.h.  */
10354 _ACEOF
10355 cat confdefs.h >>conftest.$ac_ext
10356 cat >>conftest.$ac_ext <<_ACEOF
10357 /* end confdefs.h.  */
10358 #include <stdarg.h>
10359 int
10360 main ()
10361 {
10362 va_list ap1, ap2; va_copy(ap1, ap2);
10363   ;
10364   return 0;
10365 }
10366 _ACEOF
10367 rm -f conftest.$ac_objext conftest$ac_exeext
10368 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10369   (eval $ac_link) 2>conftest.er1
10370   ac_status=$?
10371   grep -v '^ *+' conftest.er1 >conftest.err
10372   rm -f conftest.er1
10373   cat conftest.err >&5
10374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10375   (exit $ac_status); } &&
10376          { ac_try='test -z "$ac_c_werror_flag"
10377                          || test ! -s conftest.err'
10378   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10379   (eval $ac_try) 2>&5
10380   ac_status=$?
10381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10382   (exit $ac_status); }; } &&
10383          { ac_try='test -s conftest$ac_exeext'
10384   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10385   (eval $ac_try) 2>&5
10386   ac_status=$?
10387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10388   (exit $ac_status); }; }; then
10389   unet_cv_c_va_copy="yes"
10390 else
10391   echo "$as_me: failed program was:" >&5
10392 sed 's/^/| /' conftest.$ac_ext >&5
10393
10394 unet_cv_c_va_copy="no"
10395
10396 fi
10397 rm -f conftest.err conftest.$ac_objext \
10398       conftest$ac_exeext conftest.$ac_ext
10399 fi
10400 echo "$as_me:$LINENO: result: $unet_cv_c_va_copy" >&5
10401 echo "${ECHO_T}$unet_cv_c_va_copy" >&6
10402 if test "$unet_cv_c_va_copy" = "yes" ; then
10403
10404 cat >>confdefs.h <<\_ACEOF
10405 #define HAVE_VA_COPY 1
10406 _ACEOF
10407
10408 fi
10409
10410 echo "$as_me:$LINENO: checking for __va_copy" >&5
10411 echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6
10412 if test "${unet_cv_c___va_copy+set}" = set; then
10413   echo $ECHO_N "(cached) $ECHO_C" >&6
10414 else
10415   cat >conftest.$ac_ext <<_ACEOF
10416 /* confdefs.h.  */
10417 _ACEOF
10418 cat confdefs.h >>conftest.$ac_ext
10419 cat >>conftest.$ac_ext <<_ACEOF
10420 /* end confdefs.h.  */
10421 #include <stdarg.h>
10422 int
10423 main ()
10424 {
10425 va_list ap1, ap2; __va_copy(ap1, ap2);
10426   ;
10427   return 0;
10428 }
10429 _ACEOF
10430 rm -f conftest.$ac_objext conftest$ac_exeext
10431 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10432   (eval $ac_link) 2>conftest.er1
10433   ac_status=$?
10434   grep -v '^ *+' conftest.er1 >conftest.err
10435   rm -f conftest.er1
10436   cat conftest.err >&5
10437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10438   (exit $ac_status); } &&
10439          { ac_try='test -z "$ac_c_werror_flag"
10440                          || test ! -s conftest.err'
10441   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10442   (eval $ac_try) 2>&5
10443   ac_status=$?
10444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10445   (exit $ac_status); }; } &&
10446          { ac_try='test -s conftest$ac_exeext'
10447   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10448   (eval $ac_try) 2>&5
10449   ac_status=$?
10450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10451   (exit $ac_status); }; }; then
10452   unet_cv_c___va_copy="yes"
10453 else
10454   echo "$as_me: failed program was:" >&5
10455 sed 's/^/| /' conftest.$ac_ext >&5
10456
10457 unet_cv_c___va_copy="no"
10458
10459 fi
10460 rm -f conftest.err conftest.$ac_objext \
10461       conftest$ac_exeext conftest.$ac_ext
10462 fi
10463 echo "$as_me:$LINENO: result: $unet_cv_c___va_copy" >&5
10464 echo "${ECHO_T}$unet_cv_c___va_copy" >&6
10465 if test "$unet_cv_c___va_copy" = "yes" ; then
10466
10467 cat >>confdefs.h <<\_ACEOF
10468 #define HAVE___VA_COPY 1
10469 _ACEOF
10470
10471 fi
10472
10473 echo "$as_me:$LINENO: checking what name to give the symlink" >&5
10474 echo $ECHO_N "checking what name to give the symlink... $ECHO_C" >&6
10475
10476 # Check whether --with-symlink or --without-symlink was given.
10477 if test "${with_symlink+set}" = set; then
10478   withval="$with_symlink"
10479   unet_cv_with_symlink=$with_symlink
10480 else
10481   if test "${unet_cv_with_symlink+set}" = set; then
10482   echo $ECHO_N "(cached) $ECHO_C" >&6
10483 else
10484   unet_cv_with_symlink="ircd"
10485 fi
10486
10487 fi;
10488
10489 if test x"$unet_cv_with_symlink" = xyes; then
10490     unet_cv_with_symlink="ircd"
10491 fi
10492
10493 echo "$as_me:$LINENO: result: $unet_cv_with_symlink" >&5
10494 echo "${ECHO_T}$unet_cv_with_symlink" >&6
10495
10496 if test x"$unet_cv_with_symlink" = xno; then
10497     INSTALL_RULE=install-no-symlink
10498     SYMLINK=
10499 else
10500     INSTALL_RULE=install-with-symlink
10501     SYMLINK=$unet_cv_with_symlink
10502 fi
10503
10504
10505
10506 echo "$as_me:$LINENO: checking what permissions to set on the installed binary" >&5
10507 echo $ECHO_N "checking what permissions to set on the installed binary... $ECHO_C" >&6
10508
10509 # Check whether --with-mode or --without-mode was given.
10510 if test "${with_mode+set}" = set; then
10511   withval="$with_mode"
10512   unet_cv_with_mode=$with_mode
10513 else
10514   if test "${unet_cv_with_mode+set}" = set; then
10515   echo $ECHO_N "(cached) $ECHO_C" >&6
10516 else
10517   unet_cv_with_mode=711
10518 fi
10519
10520 fi;
10521
10522 if test x"$unet_cv_with_mode" = xyes -o x"$unet_cv_with_mode" = xno; then
10523     unet_cv_with_mode=711
10524 fi
10525
10526 echo "$as_me:$LINENO: result: $unet_cv_with_mode" >&5
10527 echo "${ECHO_T}$unet_cv_with_mode" >&6
10528
10529 IRCDMODE=$unet_cv_with_mode
10530
10531
10532 unet_uid=`id | sed -e 's/.*uid=[0-9]*(//' -e 's/).*//' 2> /dev/null`
10533 echo "$as_me:$LINENO: checking which user should own the installed binary" >&5
10534 echo $ECHO_N "checking which user should own the installed binary... $ECHO_C" >&6
10535
10536 # Check whether --with-owner or --without-owner was given.
10537 if test "${with_owner+set}" = set; then
10538   withval="$with_owner"
10539   unet_cv_with_owner=$with_owner
10540 else
10541   if test "${unet_cv_with_owner+set}" = set; then
10542   echo $ECHO_N "(cached) $ECHO_C" >&6
10543 else
10544   unet_cv_with_owner=$unet_uid
10545 fi
10546
10547 fi;
10548
10549 if test x"$unet_cv_with_owner" = xyes -o x"$unet_cv_with_owner" = xno; then
10550     unet_cv_with_owner=$unet_uid
10551 fi
10552
10553 echo "$as_me:$LINENO: result: $unet_cv_with_owner" >&5
10554 echo "${ECHO_T}$unet_cv_with_owner" >&6
10555
10556 IRCDOWN=$unet_cv_with_owner
10557
10558
10559 unet_gid=`id | sed -e 's/.*gid=[0-9]*(//' -e 's/).*//' 2> /dev/null`
10560 echo "$as_me:$LINENO: checking which group should own the installed binary" >&5
10561 echo $ECHO_N "checking which group should own the installed binary... $ECHO_C" >&6
10562
10563 # Check whether --with-group or --without-group was given.
10564 if test "${with_group+set}" = set; then
10565   withval="$with_group"
10566   unet_cv_with_group=$with_group
10567 else
10568   if test "${unet_cv_with_group+set}" = set; then
10569   echo $ECHO_N "(cached) $ECHO_C" >&6
10570 else
10571   unet_cv_with_group=$unet_gid
10572 fi
10573
10574 fi;
10575
10576 if test x"$unet_cv_with_group" = xyes -o x"$unet_cv_with_group" = xno; then
10577     unet_cv_with_group=$unet_gid
10578 fi
10579
10580 echo "$as_me:$LINENO: result: $unet_cv_with_group" >&5
10581 echo "${ECHO_T}$unet_cv_with_group" >&6
10582
10583 IRCDGRP=$unet_cv_with_group
10584
10585
10586 unet_domain=
10587 if test -f /etc/resolv.conf; then
10588     unet_domain=`awk '/^domain/ { print $2; exit }' /etc/resolv.conf`
10589     if test x"$unet_domain" = x; then
10590         unet_domain=`awk '/^search/ { print $2; exit }' /etc/resolv.conf`
10591     fi
10592 fi
10593 echo "$as_me:$LINENO: checking for site domain name" >&5
10594 echo $ECHO_N "checking for site domain name... $ECHO_C" >&6
10595
10596 # Check whether --with-domain or --without-domain was given.
10597 if test "${with_domain+set}" = set; then
10598   withval="$with_domain"
10599   unet_cv_with_domain=$with_domain
10600 else
10601   if test "${unet_cv_with_domain+set}" = set; then
10602   echo $ECHO_N "(cached) $ECHO_C" >&6
10603 else
10604   unet_cv_with_domain=$unet_domain
10605 fi
10606
10607 fi;
10608
10609 if test x"$unet_cv_with_domain" = xyes -o x"$unet_cv_with_domain" = xno; then
10610     unet_cv_with_domain=$unet_domain
10611 fi
10612 if test x"$unet_cv_with_domain" = xno; then
10613     { { echo "$as_me:$LINENO: error: Unable to determine server DNS domain; use --with-domain to set it" >&5
10614 echo "$as_me: error: Unable to determine server DNS domain; use --with-domain to set it" >&2;}
10615    { (exit 1); exit 1; }; }
10616 fi
10617
10618 echo "$as_me:$LINENO: result: $unet_cv_with_domain" >&5
10619 echo "${ECHO_T}$unet_cv_with_domain" >&6
10620
10621
10622 cat >>confdefs.h <<_ACEOF
10623 #define DOMAINNAME "*$unet_cv_with_domain"
10624 _ACEOF
10625
10626
10627 echo "$as_me:$LINENO: checking if chroot operation is desired" >&5
10628 echo $ECHO_N "checking if chroot operation is desired... $ECHO_C" >&6
10629
10630 # Check whether --with-chroot or --without-chroot was given.
10631 if test "${with_chroot+set}" = set; then
10632   withval="$with_chroot"
10633   unet_cv_with_chroot=$with_chroot
10634 else
10635   if test "${unet_cv_with_chroot+set}" = set; then
10636   echo $ECHO_N "(cached) $ECHO_C" >&6
10637 else
10638   unet_cv_with_chroot=no
10639 fi
10640
10641 fi;
10642
10643 if test x"$unet_cv_with_chroot" = xyes; then
10644     { { echo "$as_me:$LINENO: error: --with-chroot given with no directory.  See doc/readme.chroot." >&5
10645 echo "$as_me: error: --with-chroot given with no directory.  See doc/readme.chroot." >&2;}
10646    { (exit 1); exit 1; }; }
10647 fi
10648
10649 # Ensure there are no trailing /'s to mess us up
10650 unet_cv_with_chroot=`echo "$unet_cv_with_chroot" | sed 's%/*$%%'`
10651
10652 echo "$as_me:$LINENO: result: $unet_cv_with_chroot" >&5
10653 echo "${ECHO_T}$unet_cv_with_chroot" >&6
10654
10655 # Deal with the annoying value "NONE" here
10656 unet_save_prefix=$prefix
10657 if test x"$prefix" = xNONE; then
10658     prefix=$ac_default_prefix
10659 else
10660     prefix=$prefix
10661 fi
10662
10663 unet_save_exec_prefix=$exec_prefix
10664 if test x"$exec_prefix" = xNONE; then
10665     exec_prefix=$prefix
10666 else
10667     exec_prefix=$exec_prefix
10668 fi
10669
10670 # Obtain the actual interesting directories
10671 unet_bindir=`eval echo "$bindir"`
10672 unet_libdir=`eval echo "$libdir"`
10673
10674 # Restore the original settings of $prefix and $exec_prefix
10675 prefix=$unet_save_prefix
10676 exec_prefix=$unet_save_exec_prefix
10677
10678 echo "$as_me:$LINENO: checking where the binary will be for /restart" >&5
10679 echo $ECHO_N "checking where the binary will be for /restart... $ECHO_C" >&6
10680 if test x"$unet_cv_with_symlink" = xno; then
10681     unet_spath="$unet_bindir/ircd"
10682 else
10683     unet_spath="$unet_bindir/$unet_cv_with_symlink"
10684 fi
10685 echo "$as_me:$LINENO: result: $unet_spath" >&5
10686 echo "${ECHO_T}$unet_spath" >&6
10687
10688 if test x"$unet_cv_with_chroot" != xno; then
10689     if echo "$unet_spath" | grep "^$unet_cv_with_chroot" > /dev/null 2>&1; then
10690         unet_spath=`echo "$unet_spath" | sed "s%^$unet_cv_with_chroot%%"`
10691     else
10692         { echo "$as_me:$LINENO: WARNING: Binary $unet_spath not relative to root directory $unet_cv_with_chroot; restarts will probably fail" >&5
10693 echo "$as_me: WARNING: Binary $unet_spath not relative to root directory $unet_cv_with_chroot; restarts will probably fail" >&2;}
10694     fi
10695 fi
10696
10697
10698 cat >>confdefs.h <<_ACEOF
10699 #define SPATH "$unet_spath"
10700 _ACEOF
10701
10702
10703 echo "$as_me:$LINENO: checking what the data directory should be" >&5
10704 echo $ECHO_N "checking what the data directory should be... $ECHO_C" >&6
10705
10706 # Check whether --with-dpath or --without-dpath was given.
10707 if test "${with_dpath+set}" = set; then
10708   withval="$with_dpath"
10709   unet_cv_with_dpath=$with_dpath
10710 else
10711   if test "${unet_cv_with_dpath+set}" = set; then
10712   echo $ECHO_N "(cached) $ECHO_C" >&6
10713 else
10714   unet_cv_with_dpath=$unet_libdir
10715 fi
10716
10717 fi;
10718
10719 if test x"$unet_cv_with_dpath" = xyes -o x"$unet_cv_with_dpath" = xno; then
10720     unet_cv_with_dpath=$unet_libdir
10721 fi
10722
10723 # Ensure there are no trailing /'s to mess us up
10724 unet_cv_with_dpath=`echo "$unet_cv_with_dpath" | sed 's%/*$%%'`
10725
10726 echo "$as_me:$LINENO: result: $unet_cv_with_dpath" >&5
10727 echo "${ECHO_T}$unet_cv_with_dpath" >&6
10728
10729 if test x"$unet_cv_with_chroot" != xno; then
10730     if echo "$unet_cv_with_dpath" | grep "^$unet_cv_with_chroot" > /dev/null 2>&1; then
10731         unet_dpath=`echo "$unet_cv_with_dpath" | sed "s%^$unet_cv_with_chroot%%"`
10732     else
10733         { { echo "$as_me:$LINENO: error: Data directory $unet_cv_with_dpath not relative to root directory $unet_cv_with_chroot" >&5
10734 echo "$as_me: error: Data directory $unet_cv_with_dpath not relative to root directory $unet_cv_with_chroot" >&2;}
10735    { (exit 1); exit 1; }; }
10736     fi
10737 else
10738     unet_dpath=$unet_cv_with_dpath
10739 fi
10740
10741
10742 cat >>confdefs.h <<_ACEOF
10743 #define DPATH "$unet_dpath"
10744 _ACEOF
10745
10746
10747 DPATH=$unet_cv_with_dpath
10748
10749
10750 echo "$as_me:$LINENO: checking where the default configuration file resides" >&5
10751 echo $ECHO_N "checking where the default configuration file resides... $ECHO_C" >&6
10752
10753 # Check whether --with-cpath or --without-cpath was given.
10754 if test "${with_cpath+set}" = set; then
10755   withval="$with_cpath"
10756   unet_cv_with_cpath=$with_cpath
10757 else
10758   if test "${unet_cv_with_cpath+set}" = set; then
10759   echo $ECHO_N "(cached) $ECHO_C" >&6
10760 else
10761   unet_cv_with_cpath="ircd.conf"
10762 fi
10763
10764 fi;
10765
10766 if test x"$unet_cv_with_cpath" = xyes -o x"$unet_cv_with_cpath" = xno; then
10767     unet_cv_with_cpath="ircd.conf"
10768 fi
10769
10770 echo "$as_me:$LINENO: result: $unet_cv_with_cpath" >&5
10771 echo "${ECHO_T}$unet_cv_with_cpath" >&6
10772
10773 if echo "$unet_cv_with_cpath" | grep '^/' > /dev/null 2>&1; then
10774     # Absolute path; check against chroot stuff
10775     if test x"$unet_cv_with_chroot" != xno; then
10776         if echo "$unet_cv_with_cpath" | grep "^$unet_cv_with_chroot" > /dev/null 2>&1; then
10777             unet_cpath=`echo "$unet_cv_with_cpath" | sed "s%^$unet_cv_with_chroot%%"`
10778         else
10779             { { echo "$as_me:$LINENO: error: Configuration file $unet_cv_with_cpath not relative to root directory $unet_cv_with_chroot" >&5
10780 echo "$as_me: error: Configuration file $unet_cv_with_cpath not relative to root directory $unet_cv_with_chroot" >&2;}
10781    { (exit 1); exit 1; }; }
10782         fi
10783     else
10784         unet_cpath=$unet_cv_with_cpath
10785     fi
10786 else
10787     unet_cpath=$unet_cv_with_cpath
10788 fi
10789
10790
10791 cat >>confdefs.h <<_ACEOF
10792 #define CPATH "$unet_cpath"
10793 _ACEOF
10794
10795
10796 echo "$as_me:$LINENO: checking where to put the debugging log if debugging enabled" >&5
10797 echo $ECHO_N "checking where to put the debugging log if debugging enabled... $ECHO_C" >&6
10798
10799 # Check whether --with-lpath or --without-lpath was given.
10800 if test "${with_lpath+set}" = set; then
10801   withval="$with_lpath"
10802   unet_cv_with_lpath=$with_lpath
10803 else
10804   if test "${unet_cv_with_lpath+set}" = set; then
10805   echo $ECHO_N "(cached) $ECHO_C" >&6
10806 else
10807   unet_cv_with_lpath="ircd.log"
10808 fi
10809
10810 fi;
10811
10812 if test x"$unet_cv_with_lpath" = xyes -o x"$unet_cv_with_lpath" = xno; then
10813     unet_cv_with_lpath="ircd.log"
10814 fi
10815
10816 echo "$as_me:$LINENO: result: $unet_cv_with_lpath" >&5
10817 echo "${ECHO_T}$unet_cv_with_lpath" >&6
10818
10819 if echo "$unet_cv_with_lpath" | grep '^/' > /dev/null 2>&1; then
10820     # Absolute path; check against chroot stuff
10821     if test x"$unet_cv_with_chroot" != xno; then
10822         if echo "$unet_cv_with_lpath" | grep "^$unet_cv_with_chroot" > /dev/null 2>&1; then
10823             unet_lpath=`echo "$unet_cv_with_lpath" | sed "s%^$unet_cv_with_chroot%%"`
10824         else
10825             { 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
10826 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;}
10827             unet_cv_with_lpath="ircd.log"
10828             unet_lpath="ircd.log"
10829         fi
10830     else
10831         unet_lpath=$unet_cv_with_lpath
10832     fi
10833 else
10834     unet_lpath=$unet_cv_with_lpath
10835 fi
10836
10837
10838 cat >>confdefs.h <<_ACEOF
10839 #define LPATH "$unet_lpath"
10840 _ACEOF
10841
10842
10843 unet_maxcon=`ulimit -Hn`
10844 if test x"$unet_maxcon" = xunlimited; then
10845     unet_maxcon=`ulimit -Sn`
10846 fi
10847 unet_maxcon=`expr $unet_maxcon - 4`
10848 echo "$as_me:$LINENO: checking max connections" >&5
10849 echo $ECHO_N "checking max connections... $ECHO_C" >&6
10850
10851 # Check whether --with-maxcon or --without-maxcon was given.
10852 if test "${with_maxcon+set}" = set; then
10853   withval="$with_maxcon"
10854   unet_cv_with_maxcon=$with_maxcon
10855 else
10856   if test "${unet_cv_with_maxcon+set}" = set; then
10857   echo $ECHO_N "(cached) $ECHO_C" >&6
10858 else
10859   unet_cv_with_maxcon=$unet_maxcon
10860 fi
10861
10862 fi;
10863
10864 if test x"$unet_cv_with_maxcon" = xyes -o x"$unet_cv_with_maxcon" = xno; then
10865     unet_cv_with_maxcon=$unet_maxcon
10866 fi
10867
10868 echo "$as_me:$LINENO: result: $unet_cv_with_maxcon" >&5
10869 echo "${ECHO_T}$unet_cv_with_maxcon" >&6
10870
10871
10872 cat >>confdefs.h <<_ACEOF
10873 #define MAXCONNECTIONS $unet_cv_with_maxcon
10874 _ACEOF
10875
10876
10877                                         ac_config_files="$ac_config_files Makefile ircd/Makefile ircd/test/Makefile doc/Makefile"
10878           ac_config_commands="$ac_config_commands default"
10879 cat >confcache <<\_ACEOF
10880 # This file is a shell script that caches the results of configure
10881 # tests run on this system so they can be shared between configure
10882 # scripts and configure runs, see configure's option --config-cache.
10883 # It is not useful on other systems.  If it contains results you don't
10884 # want to keep, you may remove or edit it.
10885 #
10886 # config.status only pays attention to the cache file if you give it
10887 # the --recheck option to rerun configure.
10888 #
10889 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10890 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10891 # following values.
10892
10893 _ACEOF
10894
10895 # The following way of writing the cache mishandles newlines in values,
10896 # but we know of no workaround that is simple, portable, and efficient.
10897 # So, don't put newlines in cache variables' values.
10898 # Ultrix sh set writes to stderr and can't be redirected directly,
10899 # and sets the high bit in the cache file unless we assign to the vars.
10900 {
10901   (set) 2>&1 |
10902     case `(ac_space=' '; set | grep ac_space) 2>&1` in
10903     *ac_space=\ *)
10904       # `set' does not quote correctly, so add quotes (double-quote
10905       # substitution turns \\\\ into \\, and sed turns \\ into \).
10906       sed -n \
10907         "s/'/'\\\\''/g;
10908           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10909       ;;
10910     *)
10911       # `set' quotes correctly as required by POSIX, so do not add quotes.
10912       sed -n \
10913         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
10914       ;;
10915     esac;
10916 } |
10917   sed '
10918      t clear
10919      : clear
10920      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10921      t end
10922      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10923      : end' >>confcache
10924 if diff $cache_file confcache >/dev/null 2>&1; then :; else
10925   if test -w $cache_file; then
10926     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10927     cat confcache >$cache_file
10928   else
10929     echo "not updating unwritable cache $cache_file"
10930   fi
10931 fi
10932 rm -f confcache
10933
10934 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10935 # Let make expand exec_prefix.
10936 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10937
10938 # VPATH may cause trouble with some makes, so we remove $(srcdir),
10939 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10940 # trailing colons and then remove the whole line if VPATH becomes empty
10941 # (actually we leave an empty line to preserve line numbers).
10942 if test "x$srcdir" = x.; then
10943   ac_vpsub='/^[  ]*VPATH[        ]*=/{
10944 s/:*\$(srcdir):*/:/;
10945 s/:*\${srcdir}:*/:/;
10946 s/:*@srcdir@:*/:/;
10947 s/^\([^=]*=[     ]*\):*/\1/;
10948 s/:*$//;
10949 s/^[^=]*=[       ]*$//;
10950 }'
10951 fi
10952
10953 DEFS=-DHAVE_CONFIG_H
10954
10955 ac_libobjs=
10956 ac_ltlibobjs=
10957 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10958   # 1. Remove the extension, and $U if already installed.
10959   ac_i=`echo "$ac_i" |
10960          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
10961   # 2. Add them.
10962   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
10963   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
10964 done
10965 LIBOBJS=$ac_libobjs
10966
10967 LTLIBOBJS=$ac_ltlibobjs
10968
10969
10970
10971 : ${CONFIG_STATUS=./config.status}
10972 ac_clean_files_save=$ac_clean_files
10973 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10974 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
10975 echo "$as_me: creating $CONFIG_STATUS" >&6;}
10976 cat >$CONFIG_STATUS <<_ACEOF
10977 #! $SHELL
10978 # Generated by $as_me.
10979 # Run this file to recreate the current configuration.
10980 # Compiler output produced by configure, useful for debugging
10981 # configure, is in config.log if it exists.
10982
10983 debug=false
10984 ac_cs_recheck=false
10985 ac_cs_silent=false
10986 SHELL=\${CONFIG_SHELL-$SHELL}
10987 _ACEOF
10988
10989 cat >>$CONFIG_STATUS <<\_ACEOF
10990 ## --------------------- ##
10991 ## M4sh Initialization.  ##
10992 ## --------------------- ##
10993
10994 # Be Bourne compatible
10995 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
10996   emulate sh
10997   NULLCMD=:
10998   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
10999   # is contrary to our usage.  Disable this feature.
11000   alias -g '${1+"$@"}'='"$@"'
11001 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
11002   set -o posix
11003 fi
11004 DUALCASE=1; export DUALCASE # for MKS sh
11005
11006 # Support unset when possible.
11007 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11008   as_unset=unset
11009 else
11010   as_unset=false
11011 fi
11012
11013
11014 # Work around bugs in pre-3.0 UWIN ksh.
11015 $as_unset ENV MAIL MAILPATH
11016 PS1='$ '
11017 PS2='> '
11018 PS4='+ '
11019
11020 # NLS nuisances.
11021 for as_var in \
11022   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
11023   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11024   LC_TELEPHONE LC_TIME
11025 do
11026   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
11027     eval $as_var=C; export $as_var
11028   else
11029     $as_unset $as_var
11030   fi
11031 done
11032
11033 # Required to use basename.
11034 if expr a : '\(a\)' >/dev/null 2>&1; then
11035   as_expr=expr
11036 else
11037   as_expr=false
11038 fi
11039
11040 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
11041   as_basename=basename
11042 else
11043   as_basename=false
11044 fi
11045
11046
11047 # Name of the executable.
11048 as_me=`$as_basename "$0" ||
11049 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11050          X"$0" : 'X\(//\)$' \| \
11051          X"$0" : 'X\(/\)$' \| \
11052          .     : '\(.\)' 2>/dev/null ||
11053 echo X/"$0" |
11054     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
11055           /^X\/\(\/\/\)$/{ s//\1/; q; }
11056           /^X\/\(\/\).*/{ s//\1/; q; }
11057           s/.*/./; q'`
11058
11059
11060 # PATH needs CR, and LINENO needs CR and PATH.
11061 # Avoid depending upon Character Ranges.
11062 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11063 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11064 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11065 as_cr_digits='0123456789'
11066 as_cr_alnum=$as_cr_Letters$as_cr_digits
11067
11068 # The user is always right.
11069 if test "${PATH_SEPARATOR+set}" != set; then
11070   echo "#! /bin/sh" >conf$$.sh
11071   echo  "exit 0"   >>conf$$.sh
11072   chmod +x conf$$.sh
11073   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11074     PATH_SEPARATOR=';'
11075   else
11076     PATH_SEPARATOR=:
11077   fi
11078   rm -f conf$$.sh
11079 fi
11080
11081
11082   as_lineno_1=$LINENO
11083   as_lineno_2=$LINENO
11084   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11085   test "x$as_lineno_1" != "x$as_lineno_2" &&
11086   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
11087   # Find who we are.  Look in the path if we contain no path at all
11088   # relative or not.
11089   case $0 in
11090     *[\\/]* ) as_myself=$0 ;;
11091     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11092 for as_dir in $PATH
11093 do
11094   IFS=$as_save_IFS
11095   test -z "$as_dir" && as_dir=.
11096   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11097 done
11098
11099        ;;
11100   esac
11101   # We did not find ourselves, most probably we were run as `sh COMMAND'
11102   # in which case we are not to be found in the path.
11103   if test "x$as_myself" = x; then
11104     as_myself=$0
11105   fi
11106   if test ! -f "$as_myself"; then
11107     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
11108 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
11109    { (exit 1); exit 1; }; }
11110   fi
11111   case $CONFIG_SHELL in
11112   '')
11113     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11114 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
11115 do
11116   IFS=$as_save_IFS
11117   test -z "$as_dir" && as_dir=.
11118   for as_base in sh bash ksh sh5; do
11119          case $as_dir in
11120          /*)
11121            if ("$as_dir/$as_base" -c '
11122   as_lineno_1=$LINENO
11123   as_lineno_2=$LINENO
11124   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11125   test "x$as_lineno_1" != "x$as_lineno_2" &&
11126   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
11127              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
11128              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
11129              CONFIG_SHELL=$as_dir/$as_base
11130              export CONFIG_SHELL
11131              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
11132            fi;;
11133          esac
11134        done
11135 done
11136 ;;
11137   esac
11138
11139   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11140   # uniformly replaced by the line number.  The first 'sed' inserts a
11141   # line-number line before each line; the second 'sed' does the real
11142   # work.  The second script uses 'N' to pair each line-number line
11143   # with the numbered line, and appends trailing '-' during
11144   # substitution so that $LINENO is not a special case at line end.
11145   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11146   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
11147   sed '=' <$as_myself |
11148     sed '
11149       N
11150       s,$,-,
11151       : loop
11152       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
11153       t loop
11154       s,-$,,
11155       s,^['$as_cr_digits']*\n,,
11156     ' >$as_me.lineno &&
11157   chmod +x $as_me.lineno ||
11158     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
11159 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
11160    { (exit 1); exit 1; }; }
11161
11162   # Don't try to exec as it changes $[0], causing all sort of problems
11163   # (the dirname of $[0] is not the place where we might find the
11164   # original and so on.  Autoconf is especially sensible to this).
11165   . ./$as_me.lineno
11166   # Exit status is that of the last command.
11167   exit
11168 }
11169
11170
11171 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
11172   *c*,-n*) ECHO_N= ECHO_C='
11173 ' ECHO_T='      ' ;;
11174   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
11175   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
11176 esac
11177
11178 if expr a : '\(a\)' >/dev/null 2>&1; then
11179   as_expr=expr
11180 else
11181   as_expr=false
11182 fi
11183
11184 rm -f conf$$ conf$$.exe conf$$.file
11185 echo >conf$$.file
11186 if ln -s conf$$.file conf$$ 2>/dev/null; then
11187   # We could just check for DJGPP; but this test a) works b) is more generic
11188   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
11189   if test -f conf$$.exe; then
11190     # Don't use ln at all; we don't have any links
11191     as_ln_s='cp -p'
11192   else
11193     as_ln_s='ln -s'
11194   fi
11195 elif ln conf$$.file conf$$ 2>/dev/null; then
11196   as_ln_s=ln
11197 else
11198   as_ln_s='cp -p'
11199 fi
11200 rm -f conf$$ conf$$.exe conf$$.file
11201
11202 if mkdir -p . 2>/dev/null; then
11203   as_mkdir_p=:
11204 else
11205   test -d ./-p && rmdir ./-p
11206   as_mkdir_p=false
11207 fi
11208
11209 as_executable_p="test -f"
11210
11211 # Sed expression to map a string onto a valid CPP name.
11212 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11213
11214 # Sed expression to map a string onto a valid variable name.
11215 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11216
11217
11218 # IFS
11219 # We need space, tab and new line, in precisely that order.
11220 as_nl='
11221 '
11222 IFS="   $as_nl"
11223
11224 # CDPATH.
11225 $as_unset CDPATH
11226
11227 exec 6>&1
11228
11229 # Open the log real soon, to keep \$[0] and so on meaningful, and to
11230 # report actual input values of CONFIG_FILES etc. instead of their
11231 # values after options handling.  Logging --version etc. is OK.
11232 exec 5>>config.log
11233 {
11234   echo
11235   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11236 ## Running $as_me. ##
11237 _ASBOX
11238 } >&5
11239 cat >&5 <<_CSEOF
11240
11241 This file was extended by $as_me, which was
11242 generated by GNU Autoconf 2.59.  Invocation command line was
11243
11244   CONFIG_FILES    = $CONFIG_FILES
11245   CONFIG_HEADERS  = $CONFIG_HEADERS
11246   CONFIG_LINKS    = $CONFIG_LINKS
11247   CONFIG_COMMANDS = $CONFIG_COMMANDS
11248   $ $0 $@
11249
11250 _CSEOF
11251 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
11252 echo >&5
11253 _ACEOF
11254
11255 # Files that config.status was made for.
11256 if test -n "$ac_config_files"; then
11257   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
11258 fi
11259
11260 if test -n "$ac_config_headers"; then
11261   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
11262 fi
11263
11264 if test -n "$ac_config_links"; then
11265   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
11266 fi
11267
11268 if test -n "$ac_config_commands"; then
11269   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
11270 fi
11271
11272 cat >>$CONFIG_STATUS <<\_ACEOF
11273
11274 ac_cs_usage="\
11275 \`$as_me' instantiates files from templates according to the
11276 current configuration.
11277
11278 Usage: $0 [OPTIONS] [FILE]...
11279
11280   -h, --help       print this help, then exit
11281   -V, --version    print version number, then exit
11282   -q, --quiet      do not print progress messages
11283   -d, --debug      don't remove temporary files
11284       --recheck    update $as_me by reconfiguring in the same conditions
11285   --file=FILE[:TEMPLATE]
11286                    instantiate the configuration file FILE
11287   --header=FILE[:TEMPLATE]
11288                    instantiate the configuration header FILE
11289
11290 Configuration files:
11291 $config_files
11292
11293 Configuration headers:
11294 $config_headers
11295
11296 Configuration commands:
11297 $config_commands
11298
11299 Report bugs to <bug-autoconf@gnu.org>."
11300 _ACEOF
11301
11302 cat >>$CONFIG_STATUS <<_ACEOF
11303 ac_cs_version="\\
11304 config.status
11305 configured by $0, generated by GNU Autoconf 2.59,
11306   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
11307
11308 Copyright (C) 2003 Free Software Foundation, Inc.
11309 This config.status script is free software; the Free Software Foundation
11310 gives unlimited permission to copy, distribute and modify it."
11311 srcdir=$srcdir
11312 INSTALL="$INSTALL"
11313 _ACEOF
11314
11315 cat >>$CONFIG_STATUS <<\_ACEOF
11316 # If no file are specified by the user, then we need to provide default
11317 # value.  By we need to know if files were specified by the user.
11318 ac_need_defaults=:
11319 while test $# != 0
11320 do
11321   case $1 in
11322   --*=*)
11323     ac_option=`expr "x$1" : 'x\([^=]*\)='`
11324     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
11325     ac_shift=:
11326     ;;
11327   -*)
11328     ac_option=$1
11329     ac_optarg=$2
11330     ac_shift=shift
11331     ;;
11332   *) # This is not an option, so the user has probably given explicit
11333      # arguments.
11334      ac_option=$1
11335      ac_need_defaults=false;;
11336   esac
11337
11338   case $ac_option in
11339   # Handling of the options.
11340 _ACEOF
11341 cat >>$CONFIG_STATUS <<\_ACEOF
11342   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11343     ac_cs_recheck=: ;;
11344   --version | --vers* | -V )
11345     echo "$ac_cs_version"; exit 0 ;;
11346   --he | --h)
11347     # Conflict between --help and --header
11348     { { echo "$as_me:$LINENO: error: ambiguous option: $1
11349 Try \`$0 --help' for more information." >&5
11350 echo "$as_me: error: ambiguous option: $1
11351 Try \`$0 --help' for more information." >&2;}
11352    { (exit 1); exit 1; }; };;
11353   --help | --hel | -h )
11354     echo "$ac_cs_usage"; exit 0 ;;
11355   --debug | --d* | -d )
11356     debug=: ;;
11357   --file | --fil | --fi | --f )
11358     $ac_shift
11359     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
11360     ac_need_defaults=false;;
11361   --header | --heade | --head | --hea )
11362     $ac_shift
11363     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
11364     ac_need_defaults=false;;
11365   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11366   | -silent | --silent | --silen | --sile | --sil | --si | --s)
11367     ac_cs_silent=: ;;
11368
11369   # This is an error.
11370   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
11371 Try \`$0 --help' for more information." >&5
11372 echo "$as_me: error: unrecognized option: $1
11373 Try \`$0 --help' for more information." >&2;}
11374    { (exit 1); exit 1; }; } ;;
11375
11376   *) ac_config_targets="$ac_config_targets $1" ;;
11377
11378   esac
11379   shift
11380 done
11381
11382 ac_configure_extra_args=
11383
11384 if $ac_cs_silent; then
11385   exec 6>/dev/null
11386   ac_configure_extra_args="$ac_configure_extra_args --silent"
11387 fi
11388
11389 _ACEOF
11390 cat >>$CONFIG_STATUS <<_ACEOF
11391 if \$ac_cs_recheck; then
11392   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
11393   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11394 fi
11395
11396 _ACEOF
11397
11398
11399
11400
11401
11402 cat >>$CONFIG_STATUS <<\_ACEOF
11403 for ac_config_target in $ac_config_targets
11404 do
11405   case "$ac_config_target" in
11406   # Handling of arguments.
11407   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11408   "ircd/Makefile" ) CONFIG_FILES="$CONFIG_FILES ircd/Makefile" ;;
11409   "ircd/test/Makefile" ) CONFIG_FILES="$CONFIG_FILES ircd/test/Makefile" ;;
11410   "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
11411   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
11412   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11413   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
11414 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
11415    { (exit 1); exit 1; }; };;
11416   esac
11417 done
11418
11419 # If the user did not use the arguments to specify the items to instantiate,
11420 # then the envvar interface is used.  Set only those that are not.
11421 # We use the long form for the default assignment because of an extremely
11422 # bizarre bug on SunOS 4.1.3.
11423 if $ac_need_defaults; then
11424   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11425   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11426   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11427 fi
11428
11429 # Have a temporary directory for convenience.  Make it in the build tree
11430 # simply because there is no reason to put it here, and in addition,
11431 # creating and moving files from /tmp can sometimes cause problems.
11432 # Create a temporary directory, and hook for its removal unless debugging.
11433 $debug ||
11434 {
11435   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
11436   trap '{ (exit 1); exit 1; }' 1 2 13 15
11437 }
11438
11439 # Create a (secure) tmp directory for tmp files.
11440
11441 {
11442   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
11443   test -n "$tmp" && test -d "$tmp"
11444 }  ||
11445 {
11446   tmp=./confstat$$-$RANDOM
11447   (umask 077 && mkdir $tmp)
11448 } ||
11449 {
11450    echo "$me: cannot create a temporary directory in ." >&2
11451    { (exit 1); exit 1; }
11452 }
11453
11454 _ACEOF
11455
11456 cat >>$CONFIG_STATUS <<_ACEOF
11457
11458 #
11459 # CONFIG_FILES section.
11460 #
11461
11462 # No need to generate the scripts if there are no CONFIG_FILES.
11463 # This happens for instance when ./config.status config.h
11464 if test -n "\$CONFIG_FILES"; then
11465   # Protect against being on the right side of a sed subst in config.status.
11466   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
11467    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
11468 s,@SHELL@,$SHELL,;t t
11469 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
11470 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
11471 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
11472 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
11473 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
11474 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
11475 s,@exec_prefix@,$exec_prefix,;t t
11476 s,@prefix@,$prefix,;t t
11477 s,@program_transform_name@,$program_transform_name,;t t
11478 s,@bindir@,$bindir,;t t
11479 s,@sbindir@,$sbindir,;t t
11480 s,@libexecdir@,$libexecdir,;t t
11481 s,@datadir@,$datadir,;t t
11482 s,@sysconfdir@,$sysconfdir,;t t
11483 s,@sharedstatedir@,$sharedstatedir,;t t
11484 s,@localstatedir@,$localstatedir,;t t
11485 s,@libdir@,$libdir,;t t
11486 s,@includedir@,$includedir,;t t
11487 s,@oldincludedir@,$oldincludedir,;t t
11488 s,@infodir@,$infodir,;t t
11489 s,@mandir@,$mandir,;t t
11490 s,@build_alias@,$build_alias,;t t
11491 s,@host_alias@,$host_alias,;t t
11492 s,@target_alias@,$target_alias,;t t
11493 s,@DEFS@,$DEFS,;t t
11494 s,@ECHO_C@,$ECHO_C,;t t
11495 s,@ECHO_N@,$ECHO_N,;t t
11496 s,@ECHO_T@,$ECHO_T,;t t
11497 s,@LIBS@,$LIBS,;t t
11498 s,@build@,$build,;t t
11499 s,@build_cpu@,$build_cpu,;t t
11500 s,@build_vendor@,$build_vendor,;t t
11501 s,@build_os@,$build_os,;t t
11502 s,@host@,$host,;t t
11503 s,@host_cpu@,$host_cpu,;t t
11504 s,@host_vendor@,$host_vendor,;t t
11505 s,@host_os@,$host_os,;t t
11506 s,@CC@,$CC,;t t
11507 s,@CFLAGS@,$CFLAGS,;t t
11508 s,@LDFLAGS@,$LDFLAGS,;t t
11509 s,@CPPFLAGS@,$CPPFLAGS,;t t
11510 s,@ac_ct_CC@,$ac_ct_CC,;t t
11511 s,@EXEEXT@,$EXEEXT,;t t
11512 s,@OBJEXT@,$OBJEXT,;t t
11513 s,@CPP@,$CPP,;t t
11514 s,@EGREP@,$EGREP,;t t
11515 s,@AWK@,$AWK,;t t
11516 s,@SET_MAKE@,$SET_MAKE,;t t
11517 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
11518 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
11519 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
11520 s,@LN_S@,$LN_S,;t t
11521 s,@RMPROG@,$RMPROG,;t t
11522 s,@SHPROG@,$SHPROG,;t t
11523 s,@LEX@,$LEX,;t t
11524 s,@LEXLIB@,$LEXLIB,;t t
11525 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
11526 s,@YACC@,$YACC,;t t
11527 s,@ENGINE_C@,$ENGINE_C,;t t
11528 s,@INSTALL_RULE@,$INSTALL_RULE,;t t
11529 s,@SYMLINK@,$SYMLINK,;t t
11530 s,@IRCDMODE@,$IRCDMODE,;t t
11531 s,@IRCDOWN@,$IRCDOWN,;t t
11532 s,@IRCDGRP@,$IRCDGRP,;t t
11533 s,@DPATH@,$DPATH,;t t
11534 s,@LIBOBJS@,$LIBOBJS,;t t
11535 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
11536 CEOF
11537
11538 _ACEOF
11539
11540   cat >>$CONFIG_STATUS <<\_ACEOF
11541   # Split the substitutions into bite-sized pieces for seds with
11542   # small command number limits, like on Digital OSF/1 and HP-UX.
11543   ac_max_sed_lines=48
11544   ac_sed_frag=1 # Number of current file.
11545   ac_beg=1 # First line for current file.
11546   ac_end=$ac_max_sed_lines # Line after last line for current file.
11547   ac_more_lines=:
11548   ac_sed_cmds=
11549   while $ac_more_lines; do
11550     if test $ac_beg -gt 1; then
11551       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11552     else
11553       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11554     fi
11555     if test ! -s $tmp/subs.frag; then
11556       ac_more_lines=false
11557     else
11558       # The purpose of the label and of the branching condition is to
11559       # speed up the sed processing (if there are no `@' at all, there
11560       # is no need to browse any of the substitutions).
11561       # These are the two extra sed commands mentioned above.
11562       (echo ':t
11563   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
11564       if test -z "$ac_sed_cmds"; then
11565         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
11566       else
11567         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
11568       fi
11569       ac_sed_frag=`expr $ac_sed_frag + 1`
11570       ac_beg=$ac_end
11571       ac_end=`expr $ac_end + $ac_max_sed_lines`
11572     fi
11573   done
11574   if test -z "$ac_sed_cmds"; then
11575     ac_sed_cmds=cat
11576   fi
11577 fi # test -n "$CONFIG_FILES"
11578
11579 _ACEOF
11580 cat >>$CONFIG_STATUS <<\_ACEOF
11581 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
11582   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11583   case $ac_file in
11584   - | *:- | *:-:* ) # input from stdin
11585         cat >$tmp/stdin
11586         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11587         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11588   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11589         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11590   * )   ac_file_in=$ac_file.in ;;
11591   esac
11592
11593   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
11594   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11595 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11596          X"$ac_file" : 'X\(//\)[^/]' \| \
11597          X"$ac_file" : 'X\(//\)$' \| \
11598          X"$ac_file" : 'X\(/\)' \| \
11599          .     : '\(.\)' 2>/dev/null ||
11600 echo X"$ac_file" |
11601     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11602           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11603           /^X\(\/\/\)$/{ s//\1/; q; }
11604           /^X\(\/\).*/{ s//\1/; q; }
11605           s/.*/./; q'`
11606   { if $as_mkdir_p; then
11607     mkdir -p "$ac_dir"
11608   else
11609     as_dir="$ac_dir"
11610     as_dirs=
11611     while test ! -d "$as_dir"; do
11612       as_dirs="$as_dir $as_dirs"
11613       as_dir=`(dirname "$as_dir") 2>/dev/null ||
11614 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11615          X"$as_dir" : 'X\(//\)[^/]' \| \
11616          X"$as_dir" : 'X\(//\)$' \| \
11617          X"$as_dir" : 'X\(/\)' \| \
11618          .     : '\(.\)' 2>/dev/null ||
11619 echo X"$as_dir" |
11620     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11621           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11622           /^X\(\/\/\)$/{ s//\1/; q; }
11623           /^X\(\/\).*/{ s//\1/; q; }
11624           s/.*/./; q'`
11625     done
11626     test ! -n "$as_dirs" || mkdir $as_dirs
11627   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11628 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11629    { (exit 1); exit 1; }; }; }
11630
11631   ac_builddir=.
11632
11633 if test "$ac_dir" != .; then
11634   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11635   # A "../" for each directory in $ac_dir_suffix.
11636   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
11637 else
11638   ac_dir_suffix= ac_top_builddir=
11639 fi
11640
11641 case $srcdir in
11642   .)  # No --srcdir option.  We are building in place.
11643     ac_srcdir=.
11644     if test -z "$ac_top_builddir"; then
11645        ac_top_srcdir=.
11646     else
11647        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
11648     fi ;;
11649   [\\/]* | ?:[\\/]* )  # Absolute path.
11650     ac_srcdir=$srcdir$ac_dir_suffix;
11651     ac_top_srcdir=$srcdir ;;
11652   *) # Relative path.
11653     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
11654     ac_top_srcdir=$ac_top_builddir$srcdir ;;
11655 esac
11656
11657 # Do not use `cd foo && pwd` to compute absolute paths, because
11658 # the directories may not exist.
11659 case `pwd` in
11660 .) ac_abs_builddir="$ac_dir";;
11661 *)
11662   case "$ac_dir" in
11663   .) ac_abs_builddir=`pwd`;;
11664   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
11665   *) ac_abs_builddir=`pwd`/"$ac_dir";;
11666   esac;;
11667 esac
11668 case $ac_abs_builddir in
11669 .) ac_abs_top_builddir=${ac_top_builddir}.;;
11670 *)
11671   case ${ac_top_builddir}. in
11672   .) ac_abs_top_builddir=$ac_abs_builddir;;
11673   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
11674   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
11675   esac;;
11676 esac
11677 case $ac_abs_builddir in
11678 .) ac_abs_srcdir=$ac_srcdir;;
11679 *)
11680   case $ac_srcdir in
11681   .) ac_abs_srcdir=$ac_abs_builddir;;
11682   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
11683   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
11684   esac;;
11685 esac
11686 case $ac_abs_builddir in
11687 .) ac_abs_top_srcdir=$ac_top_srcdir;;
11688 *)
11689   case $ac_top_srcdir in
11690   .) ac_abs_top_srcdir=$ac_abs_builddir;;
11691   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
11692   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
11693   esac;;
11694 esac
11695
11696
11697   case $INSTALL in
11698   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11699   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
11700   esac
11701
11702   if test x"$ac_file" != x-; then
11703     { echo "$as_me:$LINENO: creating $ac_file" >&5
11704 echo "$as_me: creating $ac_file" >&6;}
11705     rm -f "$ac_file"
11706   fi
11707   # Let's still pretend it is `configure' which instantiates (i.e., don't
11708   # use $as_me), people would be surprised to read:
11709   #    /* config.h.  Generated by config.status.  */
11710   if test x"$ac_file" = x-; then
11711     configure_input=
11712   else
11713     configure_input="$ac_file.  "
11714   fi
11715   configure_input=$configure_input"Generated from `echo $ac_file_in |
11716                                      sed 's,.*/,,'` by configure."
11717
11718   # First look for the input files in the build tree, otherwise in the
11719   # src tree.
11720   ac_file_inputs=`IFS=:
11721     for f in $ac_file_in; do
11722       case $f in
11723       -) echo $tmp/stdin ;;
11724       [\\/$]*)
11725          # Absolute (can't be DOS-style, as IFS=:)
11726          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11727 echo "$as_me: error: cannot find input file: $f" >&2;}
11728    { (exit 1); exit 1; }; }
11729          echo "$f";;
11730       *) # Relative
11731          if test -f "$f"; then
11732            # Build tree
11733            echo "$f"
11734          elif test -f "$srcdir/$f"; then
11735            # Source tree
11736            echo "$srcdir/$f"
11737          else
11738            # /dev/null tree
11739            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11740 echo "$as_me: error: cannot find input file: $f" >&2;}
11741    { (exit 1); exit 1; }; }
11742          fi;;
11743       esac
11744     done` || { (exit 1); exit 1; }
11745 _ACEOF
11746 cat >>$CONFIG_STATUS <<_ACEOF
11747   sed "$ac_vpsub
11748 $extrasub
11749 _ACEOF
11750 cat >>$CONFIG_STATUS <<\_ACEOF
11751 :t
11752 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11753 s,@configure_input@,$configure_input,;t t
11754 s,@srcdir@,$ac_srcdir,;t t
11755 s,@abs_srcdir@,$ac_abs_srcdir,;t t
11756 s,@top_srcdir@,$ac_top_srcdir,;t t
11757 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
11758 s,@builddir@,$ac_builddir,;t t
11759 s,@abs_builddir@,$ac_abs_builddir,;t t
11760 s,@top_builddir@,$ac_top_builddir,;t t
11761 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
11762 s,@INSTALL@,$ac_INSTALL,;t t
11763 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
11764   rm -f $tmp/stdin
11765   if test x"$ac_file" != x-; then
11766     mv $tmp/out $ac_file
11767   else
11768     cat $tmp/out
11769     rm -f $tmp/out
11770   fi
11771
11772 done
11773 _ACEOF
11774 cat >>$CONFIG_STATUS <<\_ACEOF
11775
11776 #
11777 # CONFIG_HEADER section.
11778 #
11779
11780 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
11781 # NAME is the cpp macro being defined and VALUE is the value it is being given.
11782 #
11783 # ac_d sets the value in "#define NAME VALUE" lines.
11784 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
11785 ac_dB='[         ].*$,\1#\2'
11786 ac_dC=' '
11787 ac_dD=',;t'
11788 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
11789 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
11790 ac_uB='$,\1#\2define\3'
11791 ac_uC=' '
11792 ac_uD=',;t'
11793
11794 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
11795   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11796   case $ac_file in
11797   - | *:- | *:-:* ) # input from stdin
11798         cat >$tmp/stdin
11799         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11800         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11801   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11802         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11803   * )   ac_file_in=$ac_file.in ;;
11804   esac
11805
11806   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
11807 echo "$as_me: creating $ac_file" >&6;}
11808
11809   # First look for the input files in the build tree, otherwise in the
11810   # src tree.
11811   ac_file_inputs=`IFS=:
11812     for f in $ac_file_in; do
11813       case $f in
11814       -) echo $tmp/stdin ;;
11815       [\\/$]*)
11816          # Absolute (can't be DOS-style, as IFS=:)
11817          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11818 echo "$as_me: error: cannot find input file: $f" >&2;}
11819    { (exit 1); exit 1; }; }
11820          # Do quote $f, to prevent DOS paths from being IFS'd.
11821          echo "$f";;
11822       *) # Relative
11823          if test -f "$f"; then
11824            # Build tree
11825            echo "$f"
11826          elif test -f "$srcdir/$f"; then
11827            # Source tree
11828            echo "$srcdir/$f"
11829          else
11830            # /dev/null tree
11831            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11832 echo "$as_me: error: cannot find input file: $f" >&2;}
11833    { (exit 1); exit 1; }; }
11834          fi;;
11835       esac
11836     done` || { (exit 1); exit 1; }
11837   # Remove the trailing spaces.
11838   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
11839
11840 _ACEOF
11841
11842 # Transform confdefs.h into two sed scripts, `conftest.defines' and
11843 # `conftest.undefs', that substitutes the proper values into
11844 # config.h.in to produce config.h.  The first handles `#define'
11845 # templates, and the second `#undef' templates.
11846 # And first: Protect against being on the right side of a sed subst in
11847 # config.status.  Protect against being in an unquoted here document
11848 # in config.status.
11849 rm -f conftest.defines conftest.undefs
11850 # Using a here document instead of a string reduces the quoting nightmare.
11851 # Putting comments in sed scripts is not portable.
11852 #
11853 # `end' is used to avoid that the second main sed command (meant for
11854 # 0-ary CPP macros) applies to n-ary macro definitions.
11855 # See the Autoconf documentation for `clear'.
11856 cat >confdef2sed.sed <<\_ACEOF
11857 s/[\\&,]/\\&/g
11858 s,[\\$`],\\&,g
11859 t clear
11860 : clear
11861 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
11862 t end
11863 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
11864 : end
11865 _ACEOF
11866 # If some macros were called several times there might be several times
11867 # the same #defines, which is useless.  Nevertheless, we may not want to
11868 # sort them, since we want the *last* AC-DEFINE to be honored.
11869 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
11870 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
11871 rm -f confdef2sed.sed
11872
11873 # This sed command replaces #undef with comments.  This is necessary, for
11874 # example, in the case of _POSIX_SOURCE, which is predefined and required
11875 # on some systems where configure will not decide to define it.
11876 cat >>conftest.undefs <<\_ACEOF
11877 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
11878 _ACEOF
11879
11880 # Break up conftest.defines because some shells have a limit on the size
11881 # of here documents, and old seds have small limits too (100 cmds).
11882 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
11883 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
11884 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
11885 echo '  :' >>$CONFIG_STATUS
11886 rm -f conftest.tail
11887 while grep . conftest.defines >/dev/null
11888 do
11889   # Write a limited-size here document to $tmp/defines.sed.
11890   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
11891   # Speed up: don't consider the non `#define' lines.
11892   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
11893   # Work around the forget-to-reset-the-flag bug.
11894   echo 't clr' >>$CONFIG_STATUS
11895   echo ': clr' >>$CONFIG_STATUS
11896   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
11897   echo 'CEOF
11898   sed -f $tmp/defines.sed $tmp/in >$tmp/out
11899   rm -f $tmp/in
11900   mv $tmp/out $tmp/in
11901 ' >>$CONFIG_STATUS
11902   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
11903   rm -f conftest.defines
11904   mv conftest.tail conftest.defines
11905 done
11906 rm -f conftest.defines
11907 echo '  fi # grep' >>$CONFIG_STATUS
11908 echo >>$CONFIG_STATUS
11909
11910 # Break up conftest.undefs because some shells have a limit on the size
11911 # of here documents, and old seds have small limits too (100 cmds).
11912 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
11913 rm -f conftest.tail
11914 while grep . conftest.undefs >/dev/null
11915 do
11916   # Write a limited-size here document to $tmp/undefs.sed.
11917   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
11918   # Speed up: don't consider the non `#undef'
11919   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
11920   # Work around the forget-to-reset-the-flag bug.
11921   echo 't clr' >>$CONFIG_STATUS
11922   echo ': clr' >>$CONFIG_STATUS
11923   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
11924   echo 'CEOF
11925   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
11926   rm -f $tmp/in
11927   mv $tmp/out $tmp/in
11928 ' >>$CONFIG_STATUS
11929   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
11930   rm -f conftest.undefs
11931   mv conftest.tail conftest.undefs
11932 done
11933 rm -f conftest.undefs
11934
11935 cat >>$CONFIG_STATUS <<\_ACEOF
11936   # Let's still pretend it is `configure' which instantiates (i.e., don't
11937   # use $as_me), people would be surprised to read:
11938   #    /* config.h.  Generated by config.status.  */
11939   if test x"$ac_file" = x-; then
11940     echo "/* Generated by configure.  */" >$tmp/config.h
11941   else
11942     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
11943   fi
11944   cat $tmp/in >>$tmp/config.h
11945   rm -f $tmp/in
11946   if test x"$ac_file" != x-; then
11947     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
11948       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
11949 echo "$as_me: $ac_file is unchanged" >&6;}
11950     else
11951       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11952 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11953          X"$ac_file" : 'X\(//\)[^/]' \| \
11954          X"$ac_file" : 'X\(//\)$' \| \
11955          X"$ac_file" : 'X\(/\)' \| \
11956          .     : '\(.\)' 2>/dev/null ||
11957 echo X"$ac_file" |
11958     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11959           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11960           /^X\(\/\/\)$/{ s//\1/; q; }
11961           /^X\(\/\).*/{ s//\1/; q; }
11962           s/.*/./; q'`
11963       { if $as_mkdir_p; then
11964     mkdir -p "$ac_dir"
11965   else
11966     as_dir="$ac_dir"
11967     as_dirs=
11968     while test ! -d "$as_dir"; do
11969       as_dirs="$as_dir $as_dirs"
11970       as_dir=`(dirname "$as_dir") 2>/dev/null ||
11971 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11972          X"$as_dir" : 'X\(//\)[^/]' \| \
11973          X"$as_dir" : 'X\(//\)$' \| \
11974          X"$as_dir" : 'X\(/\)' \| \
11975          .     : '\(.\)' 2>/dev/null ||
11976 echo X"$as_dir" |
11977     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11978           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11979           /^X\(\/\/\)$/{ s//\1/; q; }
11980           /^X\(\/\).*/{ s//\1/; q; }
11981           s/.*/./; q'`
11982     done
11983     test ! -n "$as_dirs" || mkdir $as_dirs
11984   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11985 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11986    { (exit 1); exit 1; }; }; }
11987
11988       rm -f $ac_file
11989       mv $tmp/config.h $ac_file
11990     fi
11991   else
11992     cat $tmp/config.h
11993     rm -f $tmp/config.h
11994   fi
11995 done
11996 _ACEOF
11997 cat >>$CONFIG_STATUS <<\_ACEOF
11998
11999 #
12000 # CONFIG_COMMANDS section.
12001 #
12002 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
12003   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
12004   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
12005   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
12006 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12007          X"$ac_dest" : 'X\(//\)[^/]' \| \
12008          X"$ac_dest" : 'X\(//\)$' \| \
12009          X"$ac_dest" : 'X\(/\)' \| \
12010          .     : '\(.\)' 2>/dev/null ||
12011 echo X"$ac_dest" |
12012     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12013           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12014           /^X\(\/\/\)$/{ s//\1/; q; }
12015           /^X\(\/\).*/{ s//\1/; q; }
12016           s/.*/./; q'`
12017   { if $as_mkdir_p; then
12018     mkdir -p "$ac_dir"
12019   else
12020     as_dir="$ac_dir"
12021     as_dirs=
12022     while test ! -d "$as_dir"; do
12023       as_dirs="$as_dir $as_dirs"
12024       as_dir=`(dirname "$as_dir") 2>/dev/null ||
12025 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12026          X"$as_dir" : 'X\(//\)[^/]' \| \
12027          X"$as_dir" : 'X\(//\)$' \| \
12028          X"$as_dir" : 'X\(/\)' \| \
12029          .     : '\(.\)' 2>/dev/null ||
12030 echo X"$as_dir" |
12031     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12032           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12033           /^X\(\/\/\)$/{ s//\1/; q; }
12034           /^X\(\/\).*/{ s//\1/; q; }
12035           s/.*/./; q'`
12036     done
12037     test ! -n "$as_dirs" || mkdir $as_dirs
12038   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12039 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12040    { (exit 1); exit 1; }; }; }
12041
12042   ac_builddir=.
12043
12044 if test "$ac_dir" != .; then
12045   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12046   # A "../" for each directory in $ac_dir_suffix.
12047   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12048 else
12049   ac_dir_suffix= ac_top_builddir=
12050 fi
12051
12052 case $srcdir in
12053   .)  # No --srcdir option.  We are building in place.
12054     ac_srcdir=.
12055     if test -z "$ac_top_builddir"; then
12056        ac_top_srcdir=.
12057     else
12058        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12059     fi ;;
12060   [\\/]* | ?:[\\/]* )  # Absolute path.
12061     ac_srcdir=$srcdir$ac_dir_suffix;
12062     ac_top_srcdir=$srcdir ;;
12063   *) # Relative path.
12064     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12065     ac_top_srcdir=$ac_top_builddir$srcdir ;;
12066 esac
12067
12068 # Do not use `cd foo && pwd` to compute absolute paths, because
12069 # the directories may not exist.
12070 case `pwd` in
12071 .) ac_abs_builddir="$ac_dir";;
12072 *)
12073   case "$ac_dir" in
12074   .) ac_abs_builddir=`pwd`;;
12075   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
12076   *) ac_abs_builddir=`pwd`/"$ac_dir";;
12077   esac;;
12078 esac
12079 case $ac_abs_builddir in
12080 .) ac_abs_top_builddir=${ac_top_builddir}.;;
12081 *)
12082   case ${ac_top_builddir}. in
12083   .) ac_abs_top_builddir=$ac_abs_builddir;;
12084   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
12085   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
12086   esac;;
12087 esac
12088 case $ac_abs_builddir in
12089 .) ac_abs_srcdir=$ac_srcdir;;
12090 *)
12091   case $ac_srcdir in
12092   .) ac_abs_srcdir=$ac_abs_builddir;;
12093   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
12094   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
12095   esac;;
12096 esac
12097 case $ac_abs_builddir in
12098 .) ac_abs_top_srcdir=$ac_top_srcdir;;
12099 *)
12100   case $ac_top_srcdir in
12101   .) ac_abs_top_srcdir=$ac_abs_builddir;;
12102   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
12103   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
12104   esac;;
12105 esac
12106
12107
12108   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
12109 echo "$as_me: executing $ac_dest commands" >&6;}
12110   case $ac_dest in
12111     default ) echo timestamp > stamp-h ;;
12112   esac
12113 done
12114 _ACEOF
12115
12116 cat >>$CONFIG_STATUS <<\_ACEOF
12117
12118 { (exit 0); exit 0; }
12119 _ACEOF
12120 chmod +x $CONFIG_STATUS
12121 ac_clean_files=$ac_clean_files_save
12122
12123
12124 # configure is writing to config.log, and then calls config.status.
12125 # config.status does its own redirection, appending to config.log.
12126 # Unfortunately, on DOS this fails, as config.log is still kept open
12127 # by configure, so config.status won't be able to write to it; its
12128 # output is simply discarded.  So we exec the FD to /dev/null,
12129 # effectively closing config.log, so it can be properly (re)opened and
12130 # appended to by config.status.  When coming back to configure, we
12131 # need to make the FD available again.
12132 if test "$no_create" != yes; then
12133   ac_cs_success=:
12134   ac_config_status_args=
12135   test "$silent" = yes &&
12136     ac_config_status_args="$ac_config_status_args --quiet"
12137   exec 5>/dev/null
12138   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12139   exec 5>>config.log
12140   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12141   # would make configure fail if this is the last instruction.
12142   $ac_cs_success || { (exit 1); exit 1; }
12143 fi
12144
12145
12146           ac_config_commands="$ac_config_commands default-1"
12147