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