Fix usermodes harder when they are set early during registration.
[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   --enable-profile        Enable profiling support (add -pg to CFLAGS and LDFLAGS)
853   --enable-pedantic       Enable pedantic warnings (add -pedantic to CFLAGS)
854   --enable-warnings       Enable warnings (add -Wall to CFLAGS)
855   --disable-inlines       Disable inlining for a few critical functions
856   --disable-devpoll       Disable the /dev/poll-based engine
857   --disable-kqueue        Disable the kqueue-based engine
858   --disable-epoll         Disable the epoll-based engine
859
860 Optional Packages:
861   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
862   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
863   --with-leak-detect          Turn on the leak detector(requires patched boehm)
864   --without-ipv6          disable IPv6 support (default is autodetect)
865   --with-symlink=name     Name to give the symlink; if name is "no," no
866                           symlink will be created.
867   --with-mode=mode        Permissions (in octal) to give the binary
868   --with-owner=owner      Specify owner of the installed binary
869   --with-group=group      Specify group owner of the installed binary
870   --with-domain=domain    Domain name to use in local statistics gathering
871   --with-chroot=dir       Specify that the server will be operated under
872                           a different root directory given by dir.  See
873                           doc/readme.chroot for more information.
874   --with-dpath=dir        Directory for all server data files
875   --with-cpath=file       Set server configuration file
876   --with-lpath=file       Set the debugging log file
877   --with-maxcon=maxcon    Maximum number of connections server will accept
878
879 Some influential environment variables:
880   CC          C compiler command
881   CFLAGS      C compiler flags
882   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
883               nonstandard directory <lib dir>
884   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
885               headers in a nonstandard directory <include dir>
886   CPP         C preprocessor
887
888 Use these variables to override the choices made by `configure' or to help
889 it to find libraries and programs with nonstandard names/locations.
890
891 _ACEOF
892 fi
893
894 if test "$ac_init_help" = "recursive"; then
895   # If there are subdirs, report their specific --help.
896   ac_popdir=`pwd`
897   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
898     test -d $ac_dir || continue
899     ac_builddir=.
900
901 if test "$ac_dir" != .; then
902   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
903   # A "../" for each directory in $ac_dir_suffix.
904   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
905 else
906   ac_dir_suffix= ac_top_builddir=
907 fi
908
909 case $srcdir in
910   .)  # No --srcdir option.  We are building in place.
911     ac_srcdir=.
912     if test -z "$ac_top_builddir"; then
913        ac_top_srcdir=.
914     else
915        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
916     fi ;;
917   [\\/]* | ?:[\\/]* )  # Absolute path.
918     ac_srcdir=$srcdir$ac_dir_suffix;
919     ac_top_srcdir=$srcdir ;;
920   *) # Relative path.
921     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
922     ac_top_srcdir=$ac_top_builddir$srcdir ;;
923 esac
924
925 # Do not use `cd foo && pwd` to compute absolute paths, because
926 # the directories may not exist.
927 case `pwd` in
928 .) ac_abs_builddir="$ac_dir";;
929 *)
930   case "$ac_dir" in
931   .) ac_abs_builddir=`pwd`;;
932   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
933   *) ac_abs_builddir=`pwd`/"$ac_dir";;
934   esac;;
935 esac
936 case $ac_abs_builddir in
937 .) ac_abs_top_builddir=${ac_top_builddir}.;;
938 *)
939   case ${ac_top_builddir}. in
940   .) ac_abs_top_builddir=$ac_abs_builddir;;
941   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
942   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
943   esac;;
944 esac
945 case $ac_abs_builddir in
946 .) ac_abs_srcdir=$ac_srcdir;;
947 *)
948   case $ac_srcdir in
949   .) ac_abs_srcdir=$ac_abs_builddir;;
950   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
951   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
952   esac;;
953 esac
954 case $ac_abs_builddir in
955 .) ac_abs_top_srcdir=$ac_top_srcdir;;
956 *)
957   case $ac_top_srcdir in
958   .) ac_abs_top_srcdir=$ac_abs_builddir;;
959   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
960   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
961   esac;;
962 esac
963
964     cd $ac_dir
965     # Check for guested configure; otherwise get Cygnus style configure.
966     if test -f $ac_srcdir/configure.gnu; then
967       echo
968       $SHELL $ac_srcdir/configure.gnu  --help=recursive
969     elif test -f $ac_srcdir/configure; then
970       echo
971       $SHELL $ac_srcdir/configure  --help=recursive
972     elif test -f $ac_srcdir/configure.ac ||
973            test -f $ac_srcdir/configure.in; then
974       echo
975       $ac_configure --help
976     else
977       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
978     fi
979     cd $ac_popdir
980   done
981 fi
982
983 test -n "$ac_init_help" && exit 0
984 if $ac_init_version; then
985   cat <<\_ACEOF
986
987 Copyright (C) 2003 Free Software Foundation, Inc.
988 This configure script is free software; the Free Software Foundation
989 gives unlimited permission to copy, distribute and modify it.
990 _ACEOF
991   exit 0
992 fi
993 exec 5>config.log
994 cat >&5 <<_ACEOF
995 This file contains any messages produced by compilers while
996 running configure, to aid debugging if configure makes a mistake.
997
998 It was created by $as_me, which was
999 generated by GNU Autoconf 2.59.  Invocation command line was
1000
1001   $ $0 $@
1002
1003 _ACEOF
1004 {
1005 cat <<_ASUNAME
1006 ## --------- ##
1007 ## Platform. ##
1008 ## --------- ##
1009
1010 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1011 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1012 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1013 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1014 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1015
1016 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1017 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1018
1019 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1020 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1021 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1022 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1023 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1024 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1025 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1026
1027 _ASUNAME
1028
1029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1030 for as_dir in $PATH
1031 do
1032   IFS=$as_save_IFS
1033   test -z "$as_dir" && as_dir=.
1034   echo "PATH: $as_dir"
1035 done
1036
1037 } >&5
1038
1039 cat >&5 <<_ACEOF
1040
1041
1042 ## ----------- ##
1043 ## Core tests. ##
1044 ## ----------- ##
1045
1046 _ACEOF
1047
1048
1049 # Keep a trace of the command line.
1050 # Strip out --no-create and --no-recursion so they do not pile up.
1051 # Strip out --silent because we don't want to record it for future runs.
1052 # Also quote any args containing shell meta-characters.
1053 # Make two passes to allow for proper duplicate-argument suppression.
1054 ac_configure_args=
1055 ac_configure_args0=
1056 ac_configure_args1=
1057 ac_sep=
1058 ac_must_keep_next=false
1059 for ac_pass in 1 2
1060 do
1061   for ac_arg
1062   do
1063     case $ac_arg in
1064     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1065     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1066     | -silent | --silent | --silen | --sile | --sil)
1067       continue ;;
1068     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1069       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1070     esac
1071     case $ac_pass in
1072     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1073     2)
1074       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1075       if test $ac_must_keep_next = true; then
1076         ac_must_keep_next=false # Got value, back to normal.
1077       else
1078         case $ac_arg in
1079           *=* | --config-cache | -C | -disable-* | --disable-* \
1080           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1081           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1082           | -with-* | --with-* | -without-* | --without-* | --x)
1083             case "$ac_configure_args0 " in
1084               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1085             esac
1086             ;;
1087           -* ) ac_must_keep_next=true ;;
1088         esac
1089       fi
1090       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1091       # Get rid of the leading space.
1092       ac_sep=" "
1093       ;;
1094     esac
1095   done
1096 done
1097 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1098 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1099
1100 # When interrupted or exit'd, cleanup temporary files, and complete
1101 # config.log.  We remove comments because anyway the quotes in there
1102 # would cause problems or look ugly.
1103 # WARNING: Be sure not to use single quotes in there, as some shells,
1104 # such as our DU 5.0 friend, will then `close' the trap.
1105 trap 'exit_status=$?
1106   # Save into config.log some information that might help in debugging.
1107   {
1108     echo
1109
1110     cat <<\_ASBOX
1111 ## ---------------- ##
1112 ## Cache variables. ##
1113 ## ---------------- ##
1114 _ASBOX
1115     echo
1116     # The following way of writing the cache mishandles newlines in values,
1117 {
1118   (set) 2>&1 |
1119     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1120     *ac_space=\ *)
1121       sed -n \
1122         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1123           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1124       ;;
1125     *)
1126       sed -n \
1127         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1128       ;;
1129     esac;
1130 }
1131     echo
1132
1133     cat <<\_ASBOX
1134 ## ----------------- ##
1135 ## Output variables. ##
1136 ## ----------------- ##
1137 _ASBOX
1138     echo
1139     for ac_var in $ac_subst_vars
1140     do
1141       eval ac_val=$`echo $ac_var`
1142       echo "$ac_var='"'"'$ac_val'"'"'"
1143     done | sort
1144     echo
1145
1146     if test -n "$ac_subst_files"; then
1147       cat <<\_ASBOX
1148 ## ------------- ##
1149 ## Output files. ##
1150 ## ------------- ##
1151 _ASBOX
1152       echo
1153       for ac_var in $ac_subst_files
1154       do
1155         eval ac_val=$`echo $ac_var`
1156         echo "$ac_var='"'"'$ac_val'"'"'"
1157       done | sort
1158       echo
1159     fi
1160
1161     if test -s confdefs.h; then
1162       cat <<\_ASBOX
1163 ## ----------- ##
1164 ## confdefs.h. ##
1165 ## ----------- ##
1166 _ASBOX
1167       echo
1168       sed "/^$/d" confdefs.h | sort
1169       echo
1170     fi
1171     test "$ac_signal" != 0 &&
1172       echo "$as_me: caught signal $ac_signal"
1173     echo "$as_me: exit $exit_status"
1174   } >&5
1175   rm -f core *.core &&
1176   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1177     exit $exit_status
1178      ' 0
1179 for ac_signal in 1 2 13 15; do
1180   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1181 done
1182 ac_signal=0
1183
1184 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1185 rm -rf conftest* confdefs.h
1186 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1187 echo >confdefs.h
1188
1189 # Predefined preprocessor variables.
1190
1191 cat >>confdefs.h <<_ACEOF
1192 #define PACKAGE_NAME "$PACKAGE_NAME"
1193 _ACEOF
1194
1195
1196 cat >>confdefs.h <<_ACEOF
1197 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1198 _ACEOF
1199
1200
1201 cat >>confdefs.h <<_ACEOF
1202 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1203 _ACEOF
1204
1205
1206 cat >>confdefs.h <<_ACEOF
1207 #define PACKAGE_STRING "$PACKAGE_STRING"
1208 _ACEOF
1209
1210
1211 cat >>confdefs.h <<_ACEOF
1212 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1213 _ACEOF
1214
1215
1216 # Let the site file select an alternate cache file if it wants to.
1217 # Prefer explicitly selected file to automatically selected ones.
1218 if test -z "$CONFIG_SITE"; then
1219   if test "x$prefix" != xNONE; then
1220     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1221   else
1222     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1223   fi
1224 fi
1225 for ac_site_file in $CONFIG_SITE; do
1226   if test -r "$ac_site_file"; then
1227     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1228 echo "$as_me: loading site script $ac_site_file" >&6;}
1229     sed 's/^/| /' "$ac_site_file" >&5
1230     . "$ac_site_file"
1231   fi
1232 done
1233
1234 if test -r "$cache_file"; then
1235   # Some versions of bash will fail to source /dev/null (special
1236   # files actually), so we avoid doing that.
1237   if test -f "$cache_file"; then
1238     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1239 echo "$as_me: loading cache $cache_file" >&6;}
1240     case $cache_file in
1241       [\\/]* | ?:[\\/]* ) . $cache_file;;
1242       *)                      . ./$cache_file;;
1243     esac
1244   fi
1245 else
1246   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1247 echo "$as_me: creating cache $cache_file" >&6;}
1248   >$cache_file
1249 fi
1250
1251 # Check that the precious variables saved in the cache have kept the same
1252 # value.
1253 ac_cache_corrupted=false
1254 for ac_var in `(set) 2>&1 |
1255                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1256   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1257   eval ac_new_set=\$ac_env_${ac_var}_set
1258   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1259   eval ac_new_val="\$ac_env_${ac_var}_value"
1260   case $ac_old_set,$ac_new_set in
1261     set,)
1262       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1263 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1264       ac_cache_corrupted=: ;;
1265     ,set)
1266       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1267 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1268       ac_cache_corrupted=: ;;
1269     ,);;
1270     *)
1271       if test "x$ac_old_val" != "x$ac_new_val"; then
1272         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1273 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1274         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1275 echo "$as_me:   former value:  $ac_old_val" >&2;}
1276         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1277 echo "$as_me:   current value: $ac_new_val" >&2;}
1278         ac_cache_corrupted=:
1279       fi;;
1280   esac
1281   # Pass precious variables to config.status.
1282   if test "$ac_new_set" = set; then
1283     case $ac_new_val in
1284     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1285       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1286     *) ac_arg=$ac_var=$ac_new_val ;;
1287     esac
1288     case " $ac_configure_args " in
1289       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1290       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1291     esac
1292   fi
1293 done
1294 if $ac_cache_corrupted; then
1295   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1296 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1297   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1298 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1299    { (exit 1); exit 1; }; }
1300 fi
1301
1302 ac_ext=c
1303 ac_cpp='$CPP $CPPFLAGS'
1304 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1305 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1306 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328 echo "$as_me:$LINENO: checking for installation prefix" >&5
1329 echo $ECHO_N "checking for installation prefix... $ECHO_C" >&6
1330 if test "${unet_cv_prefix+set}" = set; then
1331   echo $ECHO_N "(cached) $ECHO_C" >&6
1332 else
1333   unet_cv_prefix=$HOME
1334 fi
1335
1336 if test x"$prefix" != xNONE; then
1337     unet_cv_prefix=$prefix
1338 fi
1339 echo "$as_me:$LINENO: result: $unet_cv_prefix" >&5
1340 echo "${ECHO_T}$unet_cv_prefix" >&6
1341 ac_default_prefix=$unet_cv_prefix
1342
1343           ac_config_headers="$ac_config_headers config.h"
1344
1345
1346
1347
1348 ac_aux_dir=
1349 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1350   if test -f $ac_dir/install-sh; then
1351     ac_aux_dir=$ac_dir
1352     ac_install_sh="$ac_aux_dir/install-sh -c"
1353     break
1354   elif test -f $ac_dir/install.sh; then
1355     ac_aux_dir=$ac_dir
1356     ac_install_sh="$ac_aux_dir/install.sh -c"
1357     break
1358   elif test -f $ac_dir/shtool; then
1359     ac_aux_dir=$ac_dir
1360     ac_install_sh="$ac_aux_dir/shtool install -c"
1361     break
1362   fi
1363 done
1364 if test -z "$ac_aux_dir"; then
1365   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1366 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1367    { (exit 1); exit 1; }; }
1368 fi
1369 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1370 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1371 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1372
1373 # Make sure we can run config.sub.
1374 $ac_config_sub sun4 >/dev/null 2>&1 ||
1375   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1376 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1377    { (exit 1); exit 1; }; }
1378
1379 echo "$as_me:$LINENO: checking build system type" >&5
1380 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1381 if test "${ac_cv_build+set}" = set; then
1382   echo $ECHO_N "(cached) $ECHO_C" >&6
1383 else
1384   ac_cv_build_alias=$build_alias
1385 test -z "$ac_cv_build_alias" &&
1386   ac_cv_build_alias=`$ac_config_guess`
1387 test -z "$ac_cv_build_alias" &&
1388   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1389 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1390    { (exit 1); exit 1; }; }
1391 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1392   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1393 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1394    { (exit 1); exit 1; }; }
1395
1396 fi
1397 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1398 echo "${ECHO_T}$ac_cv_build" >&6
1399 build=$ac_cv_build
1400 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1401 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1402 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1403
1404
1405 echo "$as_me:$LINENO: checking host system type" >&5
1406 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1407 if test "${ac_cv_host+set}" = set; then
1408   echo $ECHO_N "(cached) $ECHO_C" >&6
1409 else
1410   ac_cv_host_alias=$host_alias
1411 test -z "$ac_cv_host_alias" &&
1412   ac_cv_host_alias=$ac_cv_build_alias
1413 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1414   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1415 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1416    { (exit 1); exit 1; }; }
1417
1418 fi
1419 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1420 echo "${ECHO_T}$ac_cv_host" >&6
1421 host=$ac_cv_host
1422 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1423 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1424 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1425
1426
1427
1428 ac_ext=c
1429 ac_cpp='$CPP $CPPFLAGS'
1430 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1431 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1432 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1433 if test -n "$ac_tool_prefix"; then
1434   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1435 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1436 echo "$as_me:$LINENO: checking for $ac_word" >&5
1437 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1438 if test "${ac_cv_prog_CC+set}" = set; then
1439   echo $ECHO_N "(cached) $ECHO_C" >&6
1440 else
1441   if test -n "$CC"; then
1442   ac_cv_prog_CC="$CC" # Let the user override the test.
1443 else
1444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1445 for as_dir in $PATH
1446 do
1447   IFS=$as_save_IFS
1448   test -z "$as_dir" && as_dir=.
1449   for ac_exec_ext in '' $ac_executable_extensions; do
1450   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1451     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1452     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1453     break 2
1454   fi
1455 done
1456 done
1457
1458 fi
1459 fi
1460 CC=$ac_cv_prog_CC
1461 if test -n "$CC"; then
1462   echo "$as_me:$LINENO: result: $CC" >&5
1463 echo "${ECHO_T}$CC" >&6
1464 else
1465   echo "$as_me:$LINENO: result: no" >&5
1466 echo "${ECHO_T}no" >&6
1467 fi
1468
1469 fi
1470 if test -z "$ac_cv_prog_CC"; then
1471   ac_ct_CC=$CC
1472   # Extract the first word of "gcc", so it can be a program name with args.
1473 set dummy gcc; ac_word=$2
1474 echo "$as_me:$LINENO: checking for $ac_word" >&5
1475 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1476 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1477   echo $ECHO_N "(cached) $ECHO_C" >&6
1478 else
1479   if test -n "$ac_ct_CC"; then
1480   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1481 else
1482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1483 for as_dir in $PATH
1484 do
1485   IFS=$as_save_IFS
1486   test -z "$as_dir" && as_dir=.
1487   for ac_exec_ext in '' $ac_executable_extensions; do
1488   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1489     ac_cv_prog_ac_ct_CC="gcc"
1490     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1491     break 2
1492   fi
1493 done
1494 done
1495
1496 fi
1497 fi
1498 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1499 if test -n "$ac_ct_CC"; then
1500   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1501 echo "${ECHO_T}$ac_ct_CC" >&6
1502 else
1503   echo "$as_me:$LINENO: result: no" >&5
1504 echo "${ECHO_T}no" >&6
1505 fi
1506
1507   CC=$ac_ct_CC
1508 else
1509   CC="$ac_cv_prog_CC"
1510 fi
1511
1512 if test -z "$CC"; then
1513   if test -n "$ac_tool_prefix"; then
1514   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1515 set dummy ${ac_tool_prefix}cc; ac_word=$2
1516 echo "$as_me:$LINENO: checking for $ac_word" >&5
1517 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1518 if test "${ac_cv_prog_CC+set}" = set; then
1519   echo $ECHO_N "(cached) $ECHO_C" >&6
1520 else
1521   if test -n "$CC"; then
1522   ac_cv_prog_CC="$CC" # Let the user override the test.
1523 else
1524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1525 for as_dir in $PATH
1526 do
1527   IFS=$as_save_IFS
1528   test -z "$as_dir" && as_dir=.
1529   for ac_exec_ext in '' $ac_executable_extensions; do
1530   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1531     ac_cv_prog_CC="${ac_tool_prefix}cc"
1532     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1533     break 2
1534   fi
1535 done
1536 done
1537
1538 fi
1539 fi
1540 CC=$ac_cv_prog_CC
1541 if test -n "$CC"; then
1542   echo "$as_me:$LINENO: result: $CC" >&5
1543 echo "${ECHO_T}$CC" >&6
1544 else
1545   echo "$as_me:$LINENO: result: no" >&5
1546 echo "${ECHO_T}no" >&6
1547 fi
1548
1549 fi
1550 if test -z "$ac_cv_prog_CC"; then
1551   ac_ct_CC=$CC
1552   # Extract the first word of "cc", so it can be a program name with args.
1553 set dummy cc; ac_word=$2
1554 echo "$as_me:$LINENO: checking for $ac_word" >&5
1555 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1556 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1557   echo $ECHO_N "(cached) $ECHO_C" >&6
1558 else
1559   if test -n "$ac_ct_CC"; then
1560   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1561 else
1562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1563 for as_dir in $PATH
1564 do
1565   IFS=$as_save_IFS
1566   test -z "$as_dir" && as_dir=.
1567   for ac_exec_ext in '' $ac_executable_extensions; do
1568   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1569     ac_cv_prog_ac_ct_CC="cc"
1570     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1571     break 2
1572   fi
1573 done
1574 done
1575
1576 fi
1577 fi
1578 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1579 if test -n "$ac_ct_CC"; then
1580   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1581 echo "${ECHO_T}$ac_ct_CC" >&6
1582 else
1583   echo "$as_me:$LINENO: result: no" >&5
1584 echo "${ECHO_T}no" >&6
1585 fi
1586
1587   CC=$ac_ct_CC
1588 else
1589   CC="$ac_cv_prog_CC"
1590 fi
1591
1592 fi
1593 if test -z "$CC"; then
1594   # Extract the first word of "cc", so it can be a program name with args.
1595 set dummy cc; ac_word=$2
1596 echo "$as_me:$LINENO: checking for $ac_word" >&5
1597 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1598 if test "${ac_cv_prog_CC+set}" = set; then
1599   echo $ECHO_N "(cached) $ECHO_C" >&6
1600 else
1601   if test -n "$CC"; then
1602   ac_cv_prog_CC="$CC" # Let the user override the test.
1603 else
1604   ac_prog_rejected=no
1605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1606 for as_dir in $PATH
1607 do
1608   IFS=$as_save_IFS
1609   test -z "$as_dir" && as_dir=.
1610   for ac_exec_ext in '' $ac_executable_extensions; do
1611   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1612     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1613        ac_prog_rejected=yes
1614        continue
1615      fi
1616     ac_cv_prog_CC="cc"
1617     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1618     break 2
1619   fi
1620 done
1621 done
1622
1623 if test $ac_prog_rejected = yes; then
1624   # We found a bogon in the path, so make sure we never use it.
1625   set dummy $ac_cv_prog_CC
1626   shift
1627   if test $# != 0; then
1628     # We chose a different compiler from the bogus one.
1629     # However, it has the same basename, so the bogon will be chosen
1630     # first if we set CC to just the basename; use the full file name.
1631     shift
1632     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1633   fi
1634 fi
1635 fi
1636 fi
1637 CC=$ac_cv_prog_CC
1638 if test -n "$CC"; then
1639   echo "$as_me:$LINENO: result: $CC" >&5
1640 echo "${ECHO_T}$CC" >&6
1641 else
1642   echo "$as_me:$LINENO: result: no" >&5
1643 echo "${ECHO_T}no" >&6
1644 fi
1645
1646 fi
1647 if test -z "$CC"; then
1648   if test -n "$ac_tool_prefix"; then
1649   for ac_prog in cl
1650   do
1651     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1652 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1653 echo "$as_me:$LINENO: checking for $ac_word" >&5
1654 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1655 if test "${ac_cv_prog_CC+set}" = set; then
1656   echo $ECHO_N "(cached) $ECHO_C" >&6
1657 else
1658   if test -n "$CC"; then
1659   ac_cv_prog_CC="$CC" # Let the user override the test.
1660 else
1661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1662 for as_dir in $PATH
1663 do
1664   IFS=$as_save_IFS
1665   test -z "$as_dir" && as_dir=.
1666   for ac_exec_ext in '' $ac_executable_extensions; do
1667   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1668     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1669     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1670     break 2
1671   fi
1672 done
1673 done
1674
1675 fi
1676 fi
1677 CC=$ac_cv_prog_CC
1678 if test -n "$CC"; then
1679   echo "$as_me:$LINENO: result: $CC" >&5
1680 echo "${ECHO_T}$CC" >&6
1681 else
1682   echo "$as_me:$LINENO: result: no" >&5
1683 echo "${ECHO_T}no" >&6
1684 fi
1685
1686     test -n "$CC" && break
1687   done
1688 fi
1689 if test -z "$CC"; then
1690   ac_ct_CC=$CC
1691   for ac_prog in cl
1692 do
1693   # Extract the first word of "$ac_prog", so it can be a program name with args.
1694 set dummy $ac_prog; ac_word=$2
1695 echo "$as_me:$LINENO: checking for $ac_word" >&5
1696 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1697 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1698   echo $ECHO_N "(cached) $ECHO_C" >&6
1699 else
1700   if test -n "$ac_ct_CC"; then
1701   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1702 else
1703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1704 for as_dir in $PATH
1705 do
1706   IFS=$as_save_IFS
1707   test -z "$as_dir" && as_dir=.
1708   for ac_exec_ext in '' $ac_executable_extensions; do
1709   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1710     ac_cv_prog_ac_ct_CC="$ac_prog"
1711     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1712     break 2
1713   fi
1714 done
1715 done
1716
1717 fi
1718 fi
1719 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1720 if test -n "$ac_ct_CC"; then
1721   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1722 echo "${ECHO_T}$ac_ct_CC" >&6
1723 else
1724   echo "$as_me:$LINENO: result: no" >&5
1725 echo "${ECHO_T}no" >&6
1726 fi
1727
1728   test -n "$ac_ct_CC" && break
1729 done
1730
1731   CC=$ac_ct_CC
1732 fi
1733
1734 fi
1735
1736
1737 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1738 See \`config.log' for more details." >&5
1739 echo "$as_me: error: no acceptable C compiler found in \$PATH
1740 See \`config.log' for more details." >&2;}
1741    { (exit 1); exit 1; }; }
1742
1743 # Provide some information about the compiler.
1744 echo "$as_me:$LINENO:" \
1745      "checking for C compiler version" >&5
1746 ac_compiler=`set X $ac_compile; echo $2`
1747 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1748   (eval $ac_compiler --version </dev/null >&5) 2>&5
1749   ac_status=$?
1750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1751   (exit $ac_status); }
1752 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1753   (eval $ac_compiler -v </dev/null >&5) 2>&5
1754   ac_status=$?
1755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1756   (exit $ac_status); }
1757 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1758   (eval $ac_compiler -V </dev/null >&5) 2>&5
1759   ac_status=$?
1760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1761   (exit $ac_status); }
1762
1763 cat >conftest.$ac_ext <<_ACEOF
1764 /* confdefs.h.  */
1765 _ACEOF
1766 cat confdefs.h >>conftest.$ac_ext
1767 cat >>conftest.$ac_ext <<_ACEOF
1768 /* end confdefs.h.  */
1769
1770 int
1771 main ()
1772 {
1773
1774   ;
1775   return 0;
1776 }
1777 _ACEOF
1778 ac_clean_files_save=$ac_clean_files
1779 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1780 # Try to create an executable without -o first, disregard a.out.
1781 # It will help us diagnose broken compilers, and finding out an intuition
1782 # of exeext.
1783 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1784 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1785 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1786 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1787   (eval $ac_link_default) 2>&5
1788   ac_status=$?
1789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1790   (exit $ac_status); }; then
1791   # Find the output, starting from the most likely.  This scheme is
1792 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1793 # resort.
1794
1795 # Be careful to initialize this variable, since it used to be cached.
1796 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1797 ac_cv_exeext=
1798 # b.out is created by i960 compilers.
1799 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1800 do
1801   test -f "$ac_file" || continue
1802   case $ac_file in
1803     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1804         ;;
1805     conftest.$ac_ext )
1806         # This is the source file.
1807         ;;
1808     [ab].out )
1809         # We found the default executable, but exeext='' is most
1810         # certainly right.
1811         break;;
1812     *.* )
1813         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1814         # FIXME: I believe we export ac_cv_exeext for Libtool,
1815         # but it would be cool to find out if it's true.  Does anybody
1816         # maintain Libtool? --akim.
1817         export ac_cv_exeext
1818         break;;
1819     * )
1820         break;;
1821   esac
1822 done
1823 else
1824   echo "$as_me: failed program was:" >&5
1825 sed 's/^/| /' conftest.$ac_ext >&5
1826
1827 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1828 See \`config.log' for more details." >&5
1829 echo "$as_me: error: C compiler cannot create executables
1830 See \`config.log' for more details." >&2;}
1831    { (exit 77); exit 77; }; }
1832 fi
1833
1834 ac_exeext=$ac_cv_exeext
1835 echo "$as_me:$LINENO: result: $ac_file" >&5
1836 echo "${ECHO_T}$ac_file" >&6
1837
1838 # Check the compiler produces executables we can run.  If not, either
1839 # the compiler is broken, or we cross compile.
1840 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1841 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1842 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1843 # If not cross compiling, check that we can run a simple program.
1844 if test "$cross_compiling" != yes; then
1845   if { ac_try='./$ac_file'
1846   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1847   (eval $ac_try) 2>&5
1848   ac_status=$?
1849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1850   (exit $ac_status); }; }; then
1851     cross_compiling=no
1852   else
1853     if test "$cross_compiling" = maybe; then
1854         cross_compiling=yes
1855     else
1856         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1857 If you meant to cross compile, use \`--host'.
1858 See \`config.log' for more details." >&5
1859 echo "$as_me: error: cannot run C compiled programs.
1860 If you meant to cross compile, use \`--host'.
1861 See \`config.log' for more details." >&2;}
1862    { (exit 1); exit 1; }; }
1863     fi
1864   fi
1865 fi
1866 echo "$as_me:$LINENO: result: yes" >&5
1867 echo "${ECHO_T}yes" >&6
1868
1869 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1870 ac_clean_files=$ac_clean_files_save
1871 # Check the compiler produces executables we can run.  If not, either
1872 # the compiler is broken, or we cross compile.
1873 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1874 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1875 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1876 echo "${ECHO_T}$cross_compiling" >&6
1877
1878 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1879 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1880 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1881   (eval $ac_link) 2>&5
1882   ac_status=$?
1883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1884   (exit $ac_status); }; then
1885   # If both `conftest.exe' and `conftest' are `present' (well, observable)
1886 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1887 # work properly (i.e., refer to `conftest.exe'), while it won't with
1888 # `rm'.
1889 for ac_file in conftest.exe conftest conftest.*; do
1890   test -f "$ac_file" || continue
1891   case $ac_file in
1892     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1893     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1894           export ac_cv_exeext
1895           break;;
1896     * ) break;;
1897   esac
1898 done
1899 else
1900   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1901 See \`config.log' for more details." >&5
1902 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1903 See \`config.log' for more details." >&2;}
1904    { (exit 1); exit 1; }; }
1905 fi
1906
1907 rm -f conftest$ac_cv_exeext
1908 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1909 echo "${ECHO_T}$ac_cv_exeext" >&6
1910
1911 rm -f conftest.$ac_ext
1912 EXEEXT=$ac_cv_exeext
1913 ac_exeext=$EXEEXT
1914 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1915 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1916 if test "${ac_cv_objext+set}" = set; then
1917   echo $ECHO_N "(cached) $ECHO_C" >&6
1918 else
1919   cat >conftest.$ac_ext <<_ACEOF
1920 /* confdefs.h.  */
1921 _ACEOF
1922 cat confdefs.h >>conftest.$ac_ext
1923 cat >>conftest.$ac_ext <<_ACEOF
1924 /* end confdefs.h.  */
1925
1926 int
1927 main ()
1928 {
1929
1930   ;
1931   return 0;
1932 }
1933 _ACEOF
1934 rm -f conftest.o conftest.obj
1935 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1936   (eval $ac_compile) 2>&5
1937   ac_status=$?
1938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1939   (exit $ac_status); }; then
1940   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1941   case $ac_file in
1942     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1943     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1944        break;;
1945   esac
1946 done
1947 else
1948   echo "$as_me: failed program was:" >&5
1949 sed 's/^/| /' conftest.$ac_ext >&5
1950
1951 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1952 See \`config.log' for more details." >&5
1953 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1954 See \`config.log' for more details." >&2;}
1955    { (exit 1); exit 1; }; }
1956 fi
1957
1958 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1959 fi
1960 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1961 echo "${ECHO_T}$ac_cv_objext" >&6
1962 OBJEXT=$ac_cv_objext
1963 ac_objext=$OBJEXT
1964 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1965 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1966 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1967   echo $ECHO_N "(cached) $ECHO_C" >&6
1968 else
1969   cat >conftest.$ac_ext <<_ACEOF
1970 /* confdefs.h.  */
1971 _ACEOF
1972 cat confdefs.h >>conftest.$ac_ext
1973 cat >>conftest.$ac_ext <<_ACEOF
1974 /* end confdefs.h.  */
1975
1976 int
1977 main ()
1978 {
1979 #ifndef __GNUC__
1980        choke me
1981 #endif
1982
1983   ;
1984   return 0;
1985 }
1986 _ACEOF
1987 rm -f conftest.$ac_objext
1988 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1989   (eval $ac_compile) 2>conftest.er1
1990   ac_status=$?
1991   grep -v '^ *+' conftest.er1 >conftest.err
1992   rm -f conftest.er1
1993   cat conftest.err >&5
1994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1995   (exit $ac_status); } &&
1996          { ac_try='test -z "$ac_c_werror_flag"
1997                          || test ! -s conftest.err'
1998   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1999   (eval $ac_try) 2>&5
2000   ac_status=$?
2001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2002   (exit $ac_status); }; } &&
2003          { ac_try='test -s conftest.$ac_objext'
2004   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2005   (eval $ac_try) 2>&5
2006   ac_status=$?
2007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2008   (exit $ac_status); }; }; then
2009   ac_compiler_gnu=yes
2010 else
2011   echo "$as_me: failed program was:" >&5
2012 sed 's/^/| /' conftest.$ac_ext >&5
2013
2014 ac_compiler_gnu=no
2015 fi
2016 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2017 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2018
2019 fi
2020 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2021 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2022 GCC=`test $ac_compiler_gnu = yes && echo yes`
2023 ac_test_CFLAGS=${CFLAGS+set}
2024 ac_save_CFLAGS=$CFLAGS
2025 CFLAGS="-g"
2026 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2027 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2028 if test "${ac_cv_prog_cc_g+set}" = set; then
2029   echo $ECHO_N "(cached) $ECHO_C" >&6
2030 else
2031   cat >conftest.$ac_ext <<_ACEOF
2032 /* confdefs.h.  */
2033 _ACEOF
2034 cat confdefs.h >>conftest.$ac_ext
2035 cat >>conftest.$ac_ext <<_ACEOF
2036 /* end confdefs.h.  */
2037
2038 int
2039 main ()
2040 {
2041
2042   ;
2043   return 0;
2044 }
2045 _ACEOF
2046 rm -f conftest.$ac_objext
2047 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2048   (eval $ac_compile) 2>conftest.er1
2049   ac_status=$?
2050   grep -v '^ *+' conftest.er1 >conftest.err
2051   rm -f conftest.er1
2052   cat conftest.err >&5
2053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2054   (exit $ac_status); } &&
2055          { ac_try='test -z "$ac_c_werror_flag"
2056                          || test ! -s conftest.err'
2057   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2058   (eval $ac_try) 2>&5
2059   ac_status=$?
2060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2061   (exit $ac_status); }; } &&
2062          { ac_try='test -s conftest.$ac_objext'
2063   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2064   (eval $ac_try) 2>&5
2065   ac_status=$?
2066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2067   (exit $ac_status); }; }; then
2068   ac_cv_prog_cc_g=yes
2069 else
2070   echo "$as_me: failed program was:" >&5
2071 sed 's/^/| /' conftest.$ac_ext >&5
2072
2073 ac_cv_prog_cc_g=no
2074 fi
2075 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2076 fi
2077 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2078 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2079 if test "$ac_test_CFLAGS" = set; then
2080   CFLAGS=$ac_save_CFLAGS
2081 elif test $ac_cv_prog_cc_g = yes; then
2082   if test "$GCC" = yes; then
2083     CFLAGS="-g -O2"
2084   else
2085     CFLAGS="-g"
2086   fi
2087 else
2088   if test "$GCC" = yes; then
2089     CFLAGS="-O2"
2090   else
2091     CFLAGS=
2092   fi
2093 fi
2094 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2095 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2096 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2097   echo $ECHO_N "(cached) $ECHO_C" >&6
2098 else
2099   ac_cv_prog_cc_stdc=no
2100 ac_save_CC=$CC
2101 cat >conftest.$ac_ext <<_ACEOF
2102 /* confdefs.h.  */
2103 _ACEOF
2104 cat confdefs.h >>conftest.$ac_ext
2105 cat >>conftest.$ac_ext <<_ACEOF
2106 /* end confdefs.h.  */
2107 #include <stdarg.h>
2108 #include <stdio.h>
2109 #include <sys/types.h>
2110 #include <sys/stat.h>
2111 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2112 struct buf { int x; };
2113 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2114 static char *e (p, i)
2115      char **p;
2116      int i;
2117 {
2118   return p[i];
2119 }
2120 static char *f (char * (*g) (char **, int), char **p, ...)
2121 {
2122   char *s;
2123   va_list v;
2124   va_start (v,p);
2125   s = g (p, va_arg (v,int));
2126   va_end (v);
2127   return s;
2128 }
2129
2130 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2131    function prototypes and stuff, but not '\xHH' hex character constants.
2132    These don't provoke an error unfortunately, instead are silently treated
2133    as 'x'.  The following induces an error, until -std1 is added to get
2134    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2135    array size at least.  It's necessary to write '\x00'==0 to get something
2136    that's true only with -std1.  */
2137 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2138
2139 int test (int i, double x);
2140 struct s1 {int (*f) (int a);};
2141 struct s2 {int (*f) (double a);};
2142 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2143 int argc;
2144 char **argv;
2145 int
2146 main ()
2147 {
2148 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2149   ;
2150   return 0;
2151 }
2152 _ACEOF
2153 # Don't try gcc -ansi; that turns off useful extensions and
2154 # breaks some systems' header files.
2155 # AIX                   -qlanglvl=ansi
2156 # Ultrix and OSF/1      -std1
2157 # HP-UX 10.20 and later -Ae
2158 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2159 # SVR4                  -Xc -D__EXTENSIONS__
2160 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2161 do
2162   CC="$ac_save_CC $ac_arg"
2163   rm -f conftest.$ac_objext
2164 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2165   (eval $ac_compile) 2>conftest.er1
2166   ac_status=$?
2167   grep -v '^ *+' conftest.er1 >conftest.err
2168   rm -f conftest.er1
2169   cat conftest.err >&5
2170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2171   (exit $ac_status); } &&
2172          { ac_try='test -z "$ac_c_werror_flag"
2173                          || 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"
2228                          || test ! -s conftest.err'
2229   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2230   (eval $ac_try) 2>&5
2231   ac_status=$?
2232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2233   (exit $ac_status); }; } &&
2234          { ac_try='test -s conftest.$ac_objext'
2235   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2236   (eval $ac_try) 2>&5
2237   ac_status=$?
2238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2239   (exit $ac_status); }; }; then
2240   for ac_declaration in \
2241    '' \
2242    'extern "C" void std::exit (int) throw (); using std::exit;' \
2243    'extern "C" void std::exit (int); using std::exit;' \
2244    'extern "C" void exit (int) throw ();' \
2245    'extern "C" void exit (int);' \
2246    'void exit (int);'
2247 do
2248   cat >conftest.$ac_ext <<_ACEOF
2249 /* confdefs.h.  */
2250 _ACEOF
2251 cat confdefs.h >>conftest.$ac_ext
2252 cat >>conftest.$ac_ext <<_ACEOF
2253 /* end confdefs.h.  */
2254 $ac_declaration
2255 #include <stdlib.h>
2256 int
2257 main ()
2258 {
2259 exit (42);
2260   ;
2261   return 0;
2262 }
2263 _ACEOF
2264 rm -f conftest.$ac_objext
2265 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2266   (eval $ac_compile) 2>conftest.er1
2267   ac_status=$?
2268   grep -v '^ *+' conftest.er1 >conftest.err
2269   rm -f conftest.er1
2270   cat conftest.err >&5
2271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2272   (exit $ac_status); } &&
2273          { ac_try='test -z "$ac_c_werror_flag"
2274                          || test ! -s conftest.err'
2275   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2276   (eval $ac_try) 2>&5
2277   ac_status=$?
2278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2279   (exit $ac_status); }; } &&
2280          { ac_try='test -s conftest.$ac_objext'
2281   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2282   (eval $ac_try) 2>&5
2283   ac_status=$?
2284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2285   (exit $ac_status); }; }; then
2286   :
2287 else
2288   echo "$as_me: failed program was:" >&5
2289 sed 's/^/| /' conftest.$ac_ext >&5
2290
2291 continue
2292 fi
2293 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2294   cat >conftest.$ac_ext <<_ACEOF
2295 /* confdefs.h.  */
2296 _ACEOF
2297 cat confdefs.h >>conftest.$ac_ext
2298 cat >>conftest.$ac_ext <<_ACEOF
2299 /* end confdefs.h.  */
2300 $ac_declaration
2301 int
2302 main ()
2303 {
2304 exit (42);
2305   ;
2306   return 0;
2307 }
2308 _ACEOF
2309 rm -f conftest.$ac_objext
2310 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2311   (eval $ac_compile) 2>conftest.er1
2312   ac_status=$?
2313   grep -v '^ *+' conftest.er1 >conftest.err
2314   rm -f conftest.er1
2315   cat conftest.err >&5
2316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2317   (exit $ac_status); } &&
2318          { ac_try='test -z "$ac_c_werror_flag"
2319                          || test ! -s conftest.err'
2320   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2321   (eval $ac_try) 2>&5
2322   ac_status=$?
2323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2324   (exit $ac_status); }; } &&
2325          { ac_try='test -s conftest.$ac_objext'
2326   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2327   (eval $ac_try) 2>&5
2328   ac_status=$?
2329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2330   (exit $ac_status); }; }; then
2331   break
2332 else
2333   echo "$as_me: failed program was:" >&5
2334 sed 's/^/| /' conftest.$ac_ext >&5
2335
2336 fi
2337 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2338 done
2339 rm -f conftest*
2340 if test -n "$ac_declaration"; then
2341   echo '#ifdef __cplusplus' >>confdefs.h
2342   echo $ac_declaration      >>confdefs.h
2343   echo '#endif'             >>confdefs.h
2344 fi
2345
2346 else
2347   echo "$as_me: failed program was:" >&5
2348 sed 's/^/| /' conftest.$ac_ext >&5
2349
2350 fi
2351 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2352 ac_ext=c
2353 ac_cpp='$CPP $CPPFLAGS'
2354 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2355 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2356 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2357
2358
2359 ac_ext=c
2360 ac_cpp='$CPP $CPPFLAGS'
2361 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2362 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2363 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2364 if test -n "$ac_tool_prefix"; then
2365   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2366 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2367 echo "$as_me:$LINENO: checking for $ac_word" >&5
2368 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2369 if test "${ac_cv_prog_CC+set}" = set; then
2370   echo $ECHO_N "(cached) $ECHO_C" >&6
2371 else
2372   if test -n "$CC"; then
2373   ac_cv_prog_CC="$CC" # Let the user override the test.
2374 else
2375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2376 for as_dir in $PATH
2377 do
2378   IFS=$as_save_IFS
2379   test -z "$as_dir" && as_dir=.
2380   for ac_exec_ext in '' $ac_executable_extensions; do
2381   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2382     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2383     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2384     break 2
2385   fi
2386 done
2387 done
2388
2389 fi
2390 fi
2391 CC=$ac_cv_prog_CC
2392 if test -n "$CC"; then
2393   echo "$as_me:$LINENO: result: $CC" >&5
2394 echo "${ECHO_T}$CC" >&6
2395 else
2396   echo "$as_me:$LINENO: result: no" >&5
2397 echo "${ECHO_T}no" >&6
2398 fi
2399
2400 fi
2401 if test -z "$ac_cv_prog_CC"; then
2402   ac_ct_CC=$CC
2403   # Extract the first word of "gcc", so it can be a program name with args.
2404 set dummy gcc; ac_word=$2
2405 echo "$as_me:$LINENO: checking for $ac_word" >&5
2406 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2407 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2408   echo $ECHO_N "(cached) $ECHO_C" >&6
2409 else
2410   if test -n "$ac_ct_CC"; then
2411   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2412 else
2413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2414 for as_dir in $PATH
2415 do
2416   IFS=$as_save_IFS
2417   test -z "$as_dir" && as_dir=.
2418   for ac_exec_ext in '' $ac_executable_extensions; do
2419   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2420     ac_cv_prog_ac_ct_CC="gcc"
2421     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2422     break 2
2423   fi
2424 done
2425 done
2426
2427 fi
2428 fi
2429 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2430 if test -n "$ac_ct_CC"; then
2431   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2432 echo "${ECHO_T}$ac_ct_CC" >&6
2433 else
2434   echo "$as_me:$LINENO: result: no" >&5
2435 echo "${ECHO_T}no" >&6
2436 fi
2437
2438   CC=$ac_ct_CC
2439 else
2440   CC="$ac_cv_prog_CC"
2441 fi
2442
2443 if test -z "$CC"; then
2444   if test -n "$ac_tool_prefix"; then
2445   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2446 set dummy ${ac_tool_prefix}cc; ac_word=$2
2447 echo "$as_me:$LINENO: checking for $ac_word" >&5
2448 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2449 if test "${ac_cv_prog_CC+set}" = set; then
2450   echo $ECHO_N "(cached) $ECHO_C" >&6
2451 else
2452   if test -n "$CC"; then
2453   ac_cv_prog_CC="$CC" # Let the user override the test.
2454 else
2455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2456 for as_dir in $PATH
2457 do
2458   IFS=$as_save_IFS
2459   test -z "$as_dir" && as_dir=.
2460   for ac_exec_ext in '' $ac_executable_extensions; do
2461   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2462     ac_cv_prog_CC="${ac_tool_prefix}cc"
2463     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2464     break 2
2465   fi
2466 done
2467 done
2468
2469 fi
2470 fi
2471 CC=$ac_cv_prog_CC
2472 if test -n "$CC"; then
2473   echo "$as_me:$LINENO: result: $CC" >&5
2474 echo "${ECHO_T}$CC" >&6
2475 else
2476   echo "$as_me:$LINENO: result: no" >&5
2477 echo "${ECHO_T}no" >&6
2478 fi
2479
2480 fi
2481 if test -z "$ac_cv_prog_CC"; then
2482   ac_ct_CC=$CC
2483   # Extract the first word of "cc", so it can be a program name with args.
2484 set dummy cc; ac_word=$2
2485 echo "$as_me:$LINENO: checking for $ac_word" >&5
2486 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2487 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2488   echo $ECHO_N "(cached) $ECHO_C" >&6
2489 else
2490   if test -n "$ac_ct_CC"; then
2491   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2492 else
2493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2494 for as_dir in $PATH
2495 do
2496   IFS=$as_save_IFS
2497   test -z "$as_dir" && as_dir=.
2498   for ac_exec_ext in '' $ac_executable_extensions; do
2499   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2500     ac_cv_prog_ac_ct_CC="cc"
2501     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2502     break 2
2503   fi
2504 done
2505 done
2506
2507 fi
2508 fi
2509 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2510 if test -n "$ac_ct_CC"; then
2511   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2512 echo "${ECHO_T}$ac_ct_CC" >&6
2513 else
2514   echo "$as_me:$LINENO: result: no" >&5
2515 echo "${ECHO_T}no" >&6
2516 fi
2517
2518   CC=$ac_ct_CC
2519 else
2520   CC="$ac_cv_prog_CC"
2521 fi
2522
2523 fi
2524 if test -z "$CC"; then
2525   # Extract the first word of "cc", so it can be a program name with args.
2526 set dummy cc; ac_word=$2
2527 echo "$as_me:$LINENO: checking for $ac_word" >&5
2528 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2529 if test "${ac_cv_prog_CC+set}" = set; then
2530   echo $ECHO_N "(cached) $ECHO_C" >&6
2531 else
2532   if test -n "$CC"; then
2533   ac_cv_prog_CC="$CC" # Let the user override the test.
2534 else
2535   ac_prog_rejected=no
2536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2537 for as_dir in $PATH
2538 do
2539   IFS=$as_save_IFS
2540   test -z "$as_dir" && as_dir=.
2541   for ac_exec_ext in '' $ac_executable_extensions; do
2542   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2543     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2544        ac_prog_rejected=yes
2545        continue
2546      fi
2547     ac_cv_prog_CC="cc"
2548     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2549     break 2
2550   fi
2551 done
2552 done
2553
2554 if test $ac_prog_rejected = yes; then
2555   # We found a bogon in the path, so make sure we never use it.
2556   set dummy $ac_cv_prog_CC
2557   shift
2558   if test $# != 0; then
2559     # We chose a different compiler from the bogus one.
2560     # However, it has the same basename, so the bogon will be chosen
2561     # first if we set CC to just the basename; use the full file name.
2562     shift
2563     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2564   fi
2565 fi
2566 fi
2567 fi
2568 CC=$ac_cv_prog_CC
2569 if test -n "$CC"; then
2570   echo "$as_me:$LINENO: result: $CC" >&5
2571 echo "${ECHO_T}$CC" >&6
2572 else
2573   echo "$as_me:$LINENO: result: no" >&5
2574 echo "${ECHO_T}no" >&6
2575 fi
2576
2577 fi
2578 if test -z "$CC"; then
2579   if test -n "$ac_tool_prefix"; then
2580   for ac_prog in cl
2581   do
2582     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2583 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2584 echo "$as_me:$LINENO: checking for $ac_word" >&5
2585 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2586 if test "${ac_cv_prog_CC+set}" = set; then
2587   echo $ECHO_N "(cached) $ECHO_C" >&6
2588 else
2589   if test -n "$CC"; then
2590   ac_cv_prog_CC="$CC" # Let the user override the test.
2591 else
2592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2593 for as_dir in $PATH
2594 do
2595   IFS=$as_save_IFS
2596   test -z "$as_dir" && as_dir=.
2597   for ac_exec_ext in '' $ac_executable_extensions; do
2598   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2599     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2600     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2601     break 2
2602   fi
2603 done
2604 done
2605
2606 fi
2607 fi
2608 CC=$ac_cv_prog_CC
2609 if test -n "$CC"; then
2610   echo "$as_me:$LINENO: result: $CC" >&5
2611 echo "${ECHO_T}$CC" >&6
2612 else
2613   echo "$as_me:$LINENO: result: no" >&5
2614 echo "${ECHO_T}no" >&6
2615 fi
2616
2617     test -n "$CC" && break
2618   done
2619 fi
2620 if test -z "$CC"; then
2621   ac_ct_CC=$CC
2622   for ac_prog in cl
2623 do
2624   # Extract the first word of "$ac_prog", so it can be a program name with args.
2625 set dummy $ac_prog; ac_word=$2
2626 echo "$as_me:$LINENO: checking for $ac_word" >&5
2627 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2628 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2629   echo $ECHO_N "(cached) $ECHO_C" >&6
2630 else
2631   if test -n "$ac_ct_CC"; then
2632   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2633 else
2634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2635 for as_dir in $PATH
2636 do
2637   IFS=$as_save_IFS
2638   test -z "$as_dir" && as_dir=.
2639   for ac_exec_ext in '' $ac_executable_extensions; do
2640   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2641     ac_cv_prog_ac_ct_CC="$ac_prog"
2642     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2643     break 2
2644   fi
2645 done
2646 done
2647
2648 fi
2649 fi
2650 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2651 if test -n "$ac_ct_CC"; then
2652   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2653 echo "${ECHO_T}$ac_ct_CC" >&6
2654 else
2655   echo "$as_me:$LINENO: result: no" >&5
2656 echo "${ECHO_T}no" >&6
2657 fi
2658
2659   test -n "$ac_ct_CC" && break
2660 done
2661
2662   CC=$ac_ct_CC
2663 fi
2664
2665 fi
2666
2667
2668 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2669 See \`config.log' for more details." >&5
2670 echo "$as_me: error: no acceptable C compiler found in \$PATH
2671 See \`config.log' for more details." >&2;}
2672    { (exit 1); exit 1; }; }
2673
2674 # Provide some information about the compiler.
2675 echo "$as_me:$LINENO:" \
2676      "checking for C compiler version" >&5
2677 ac_compiler=`set X $ac_compile; echo $2`
2678 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2679   (eval $ac_compiler --version </dev/null >&5) 2>&5
2680   ac_status=$?
2681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2682   (exit $ac_status); }
2683 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2684   (eval $ac_compiler -v </dev/null >&5) 2>&5
2685   ac_status=$?
2686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2687   (exit $ac_status); }
2688 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2689   (eval $ac_compiler -V </dev/null >&5) 2>&5
2690   ac_status=$?
2691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2692   (exit $ac_status); }
2693
2694 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2695 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2696 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2697   echo $ECHO_N "(cached) $ECHO_C" >&6
2698 else
2699   cat >conftest.$ac_ext <<_ACEOF
2700 /* confdefs.h.  */
2701 _ACEOF
2702 cat confdefs.h >>conftest.$ac_ext
2703 cat >>conftest.$ac_ext <<_ACEOF
2704 /* end confdefs.h.  */
2705
2706 int
2707 main ()
2708 {
2709 #ifndef __GNUC__
2710        choke me
2711 #endif
2712
2713   ;
2714   return 0;
2715 }
2716 _ACEOF
2717 rm -f conftest.$ac_objext
2718 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2719   (eval $ac_compile) 2>conftest.er1
2720   ac_status=$?
2721   grep -v '^ *+' conftest.er1 >conftest.err
2722   rm -f conftest.er1
2723   cat conftest.err >&5
2724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2725   (exit $ac_status); } &&
2726          { ac_try='test -z "$ac_c_werror_flag"
2727                          || test ! -s conftest.err'
2728   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2729   (eval $ac_try) 2>&5
2730   ac_status=$?
2731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2732   (exit $ac_status); }; } &&
2733          { ac_try='test -s conftest.$ac_objext'
2734   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2735   (eval $ac_try) 2>&5
2736   ac_status=$?
2737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2738   (exit $ac_status); }; }; then
2739   ac_compiler_gnu=yes
2740 else
2741   echo "$as_me: failed program was:" >&5
2742 sed 's/^/| /' conftest.$ac_ext >&5
2743
2744 ac_compiler_gnu=no
2745 fi
2746 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2747 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2748
2749 fi
2750 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2751 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2752 GCC=`test $ac_compiler_gnu = yes && echo yes`
2753 ac_test_CFLAGS=${CFLAGS+set}
2754 ac_save_CFLAGS=$CFLAGS
2755 CFLAGS="-g"
2756 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2757 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2758 if test "${ac_cv_prog_cc_g+set}" = set; then
2759   echo $ECHO_N "(cached) $ECHO_C" >&6
2760 else
2761   cat >conftest.$ac_ext <<_ACEOF
2762 /* confdefs.h.  */
2763 _ACEOF
2764 cat confdefs.h >>conftest.$ac_ext
2765 cat >>conftest.$ac_ext <<_ACEOF
2766 /* end confdefs.h.  */
2767
2768 int
2769 main ()
2770 {
2771
2772   ;
2773   return 0;
2774 }
2775 _ACEOF
2776 rm -f conftest.$ac_objext
2777 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2778   (eval $ac_compile) 2>conftest.er1
2779   ac_status=$?
2780   grep -v '^ *+' conftest.er1 >conftest.err
2781   rm -f conftest.er1
2782   cat conftest.err >&5
2783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2784   (exit $ac_status); } &&
2785          { ac_try='test -z "$ac_c_werror_flag"
2786                          || test ! -s conftest.err'
2787   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2788   (eval $ac_try) 2>&5
2789   ac_status=$?
2790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2791   (exit $ac_status); }; } &&
2792          { ac_try='test -s conftest.$ac_objext'
2793   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2794   (eval $ac_try) 2>&5
2795   ac_status=$?
2796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2797   (exit $ac_status); }; }; then
2798   ac_cv_prog_cc_g=yes
2799 else
2800   echo "$as_me: failed program was:" >&5
2801 sed 's/^/| /' conftest.$ac_ext >&5
2802
2803 ac_cv_prog_cc_g=no
2804 fi
2805 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2806 fi
2807 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2808 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2809 if test "$ac_test_CFLAGS" = set; then
2810   CFLAGS=$ac_save_CFLAGS
2811 elif test $ac_cv_prog_cc_g = yes; then
2812   if test "$GCC" = yes; then
2813     CFLAGS="-g -O2"
2814   else
2815     CFLAGS="-g"
2816   fi
2817 else
2818   if test "$GCC" = yes; then
2819     CFLAGS="-O2"
2820   else
2821     CFLAGS=
2822   fi
2823 fi
2824 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2825 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2826 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2827   echo $ECHO_N "(cached) $ECHO_C" >&6
2828 else
2829   ac_cv_prog_cc_stdc=no
2830 ac_save_CC=$CC
2831 cat >conftest.$ac_ext <<_ACEOF
2832 /* confdefs.h.  */
2833 _ACEOF
2834 cat confdefs.h >>conftest.$ac_ext
2835 cat >>conftest.$ac_ext <<_ACEOF
2836 /* end confdefs.h.  */
2837 #include <stdarg.h>
2838 #include <stdio.h>
2839 #include <sys/types.h>
2840 #include <sys/stat.h>
2841 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2842 struct buf { int x; };
2843 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2844 static char *e (p, i)
2845      char **p;
2846      int i;
2847 {
2848   return p[i];
2849 }
2850 static char *f (char * (*g) (char **, int), char **p, ...)
2851 {
2852   char *s;
2853   va_list v;
2854   va_start (v,p);
2855   s = g (p, va_arg (v,int));
2856   va_end (v);
2857   return s;
2858 }
2859
2860 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2861    function prototypes and stuff, but not '\xHH' hex character constants.
2862    These don't provoke an error unfortunately, instead are silently treated
2863    as 'x'.  The following induces an error, until -std1 is added to get
2864    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2865    array size at least.  It's necessary to write '\x00'==0 to get something
2866    that's true only with -std1.  */
2867 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2868
2869 int test (int i, double x);
2870 struct s1 {int (*f) (int a);};
2871 struct s2 {int (*f) (double a);};
2872 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2873 int argc;
2874 char **argv;
2875 int
2876 main ()
2877 {
2878 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2879   ;
2880   return 0;
2881 }
2882 _ACEOF
2883 # Don't try gcc -ansi; that turns off useful extensions and
2884 # breaks some systems' header files.
2885 # AIX                   -qlanglvl=ansi
2886 # Ultrix and OSF/1      -std1
2887 # HP-UX 10.20 and later -Ae
2888 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2889 # SVR4                  -Xc -D__EXTENSIONS__
2890 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2891 do
2892   CC="$ac_save_CC $ac_arg"
2893   rm -f conftest.$ac_objext
2894 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2895   (eval $ac_compile) 2>conftest.er1
2896   ac_status=$?
2897   grep -v '^ *+' conftest.er1 >conftest.err
2898   rm -f conftest.er1
2899   cat conftest.err >&5
2900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2901   (exit $ac_status); } &&
2902          { ac_try='test -z "$ac_c_werror_flag"
2903                          || test ! -s conftest.err'
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); }; } &&
2909          { ac_try='test -s conftest.$ac_objext'
2910   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2911   (eval $ac_try) 2>&5
2912   ac_status=$?
2913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2914   (exit $ac_status); }; }; then
2915   ac_cv_prog_cc_stdc=$ac_arg
2916 break
2917 else
2918   echo "$as_me: failed program was:" >&5
2919 sed 's/^/| /' conftest.$ac_ext >&5
2920
2921 fi
2922 rm -f conftest.err conftest.$ac_objext
2923 done
2924 rm -f conftest.$ac_ext conftest.$ac_objext
2925 CC=$ac_save_CC
2926
2927 fi
2928
2929 case "x$ac_cv_prog_cc_stdc" in
2930   x|xno)
2931     echo "$as_me:$LINENO: result: none needed" >&5
2932 echo "${ECHO_T}none needed" >&6 ;;
2933   *)
2934     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2935 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2936     CC="$CC $ac_cv_prog_cc_stdc" ;;
2937 esac
2938
2939 # Some people use a C++ compiler to compile C.  Since we use `exit',
2940 # in C++ we need to declare it.  In case someone uses the same compiler
2941 # for both compiling C and C++ we need to have the C++ compiler decide
2942 # the declaration of exit, since it's the most demanding environment.
2943 cat >conftest.$ac_ext <<_ACEOF
2944 #ifndef __cplusplus
2945   choke me
2946 #endif
2947 _ACEOF
2948 rm -f conftest.$ac_objext
2949 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2950   (eval $ac_compile) 2>conftest.er1
2951   ac_status=$?
2952   grep -v '^ *+' conftest.er1 >conftest.err
2953   rm -f conftest.er1
2954   cat conftest.err >&5
2955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2956   (exit $ac_status); } &&
2957          { ac_try='test -z "$ac_c_werror_flag"
2958                          || test ! -s conftest.err'
2959   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2960   (eval $ac_try) 2>&5
2961   ac_status=$?
2962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2963   (exit $ac_status); }; } &&
2964          { ac_try='test -s conftest.$ac_objext'
2965   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2966   (eval $ac_try) 2>&5
2967   ac_status=$?
2968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2969   (exit $ac_status); }; }; then
2970   for ac_declaration in \
2971    '' \
2972    'extern "C" void std::exit (int) throw (); using std::exit;' \
2973    'extern "C" void std::exit (int); using std::exit;' \
2974    'extern "C" void exit (int) throw ();' \
2975    'extern "C" void exit (int);' \
2976    'void exit (int);'
2977 do
2978   cat >conftest.$ac_ext <<_ACEOF
2979 /* confdefs.h.  */
2980 _ACEOF
2981 cat confdefs.h >>conftest.$ac_ext
2982 cat >>conftest.$ac_ext <<_ACEOF
2983 /* end confdefs.h.  */
2984 $ac_declaration
2985 #include <stdlib.h>
2986 int
2987 main ()
2988 {
2989 exit (42);
2990   ;
2991   return 0;
2992 }
2993 _ACEOF
2994 rm -f conftest.$ac_objext
2995 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2996   (eval $ac_compile) 2>conftest.er1
2997   ac_status=$?
2998   grep -v '^ *+' conftest.er1 >conftest.err
2999   rm -f conftest.er1
3000   cat conftest.err >&5
3001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3002   (exit $ac_status); } &&
3003          { ac_try='test -z "$ac_c_werror_flag"
3004                          || test ! -s conftest.err'
3005   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3006   (eval $ac_try) 2>&5
3007   ac_status=$?
3008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3009   (exit $ac_status); }; } &&
3010          { ac_try='test -s conftest.$ac_objext'
3011   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3012   (eval $ac_try) 2>&5
3013   ac_status=$?
3014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3015   (exit $ac_status); }; }; then
3016   :
3017 else
3018   echo "$as_me: failed program was:" >&5
3019 sed 's/^/| /' conftest.$ac_ext >&5
3020
3021 continue
3022 fi
3023 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3024   cat >conftest.$ac_ext <<_ACEOF
3025 /* confdefs.h.  */
3026 _ACEOF
3027 cat confdefs.h >>conftest.$ac_ext
3028 cat >>conftest.$ac_ext <<_ACEOF
3029 /* end confdefs.h.  */
3030 $ac_declaration
3031 int
3032 main ()
3033 {
3034 exit (42);
3035   ;
3036   return 0;
3037 }
3038 _ACEOF
3039 rm -f conftest.$ac_objext
3040 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3041   (eval $ac_compile) 2>conftest.er1
3042   ac_status=$?
3043   grep -v '^ *+' conftest.er1 >conftest.err
3044   rm -f conftest.er1
3045   cat conftest.err >&5
3046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3047   (exit $ac_status); } &&
3048          { ac_try='test -z "$ac_c_werror_flag"
3049                          || test ! -s conftest.err'
3050   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3051   (eval $ac_try) 2>&5
3052   ac_status=$?
3053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3054   (exit $ac_status); }; } &&
3055          { ac_try='test -s conftest.$ac_objext'
3056   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3057   (eval $ac_try) 2>&5
3058   ac_status=$?
3059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3060   (exit $ac_status); }; }; then
3061   break
3062 else
3063   echo "$as_me: failed program was:" >&5
3064 sed 's/^/| /' conftest.$ac_ext >&5
3065
3066 fi
3067 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3068 done
3069 rm -f conftest*
3070 if test -n "$ac_declaration"; then
3071   echo '#ifdef __cplusplus' >>confdefs.h
3072   echo $ac_declaration      >>confdefs.h
3073   echo '#endif'             >>confdefs.h
3074 fi
3075
3076 else
3077   echo "$as_me: failed program was:" >&5
3078 sed 's/^/| /' conftest.$ac_ext >&5
3079
3080 fi
3081 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3082 ac_ext=c
3083 ac_cpp='$CPP $CPPFLAGS'
3084 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3085 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3086 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3087
3088
3089 am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
3090
3091
3092
3093
3094 echo "$as_me:$LINENO: checking for library containing crypt" >&5
3095 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6
3096 if test "${ac_cv_search_crypt+set}" = set; then
3097   echo $ECHO_N "(cached) $ECHO_C" >&6
3098 else
3099   ac_func_search_save_LIBS=$LIBS
3100 ac_cv_search_crypt=no
3101 cat >conftest.$ac_ext <<_ACEOF
3102 /* confdefs.h.  */
3103 _ACEOF
3104 cat confdefs.h >>conftest.$ac_ext
3105 cat >>conftest.$ac_ext <<_ACEOF
3106 /* end confdefs.h.  */
3107
3108 /* Override any gcc2 internal prototype to avoid an error.  */
3109 #ifdef __cplusplus
3110 extern "C"
3111 #endif
3112 /* We use char because int might match the return type of a gcc2
3113    builtin and then its argument prototype would still apply.  */
3114 char crypt ();
3115 int
3116 main ()
3117 {
3118 crypt ();
3119   ;
3120   return 0;
3121 }
3122 _ACEOF
3123 rm -f conftest.$ac_objext conftest$ac_exeext
3124 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3125   (eval $ac_link) 2>conftest.er1
3126   ac_status=$?
3127   grep -v '^ *+' conftest.er1 >conftest.err
3128   rm -f conftest.er1
3129   cat conftest.err >&5
3130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3131   (exit $ac_status); } &&
3132          { ac_try='test -z "$ac_c_werror_flag"
3133                          || test ! -s conftest.err'
3134   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3135   (eval $ac_try) 2>&5
3136   ac_status=$?
3137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3138   (exit $ac_status); }; } &&
3139          { ac_try='test -s conftest$ac_exeext'
3140   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3141   (eval $ac_try) 2>&5
3142   ac_status=$?
3143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3144   (exit $ac_status); }; }; then
3145   ac_cv_search_crypt="none required"
3146 else
3147   echo "$as_me: failed program was:" >&5
3148 sed 's/^/| /' conftest.$ac_ext >&5
3149
3150 fi
3151 rm -f conftest.err conftest.$ac_objext \
3152       conftest$ac_exeext conftest.$ac_ext
3153 if test "$ac_cv_search_crypt" = no; then
3154   for ac_lib in descrypt crypt; do
3155     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
3156     cat >conftest.$ac_ext <<_ACEOF
3157 /* confdefs.h.  */
3158 _ACEOF
3159 cat confdefs.h >>conftest.$ac_ext
3160 cat >>conftest.$ac_ext <<_ACEOF
3161 /* end confdefs.h.  */
3162
3163 /* Override any gcc2 internal prototype to avoid an error.  */
3164 #ifdef __cplusplus
3165 extern "C"
3166 #endif
3167 /* We use char because int might match the return type of a gcc2
3168    builtin and then its argument prototype would still apply.  */
3169 char crypt ();
3170 int
3171 main ()
3172 {
3173 crypt ();
3174   ;
3175   return 0;
3176 }
3177 _ACEOF
3178 rm -f conftest.$ac_objext conftest$ac_exeext
3179 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3180   (eval $ac_link) 2>conftest.er1
3181   ac_status=$?
3182   grep -v '^ *+' conftest.er1 >conftest.err
3183   rm -f conftest.er1
3184   cat conftest.err >&5
3185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3186   (exit $ac_status); } &&
3187          { ac_try='test -z "$ac_c_werror_flag"
3188                          || test ! -s conftest.err'
3189   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3190   (eval $ac_try) 2>&5
3191   ac_status=$?
3192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3193   (exit $ac_status); }; } &&
3194          { ac_try='test -s conftest$ac_exeext'
3195   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3196   (eval $ac_try) 2>&5
3197   ac_status=$?
3198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3199   (exit $ac_status); }; }; then
3200   ac_cv_search_crypt="-l$ac_lib"
3201 break
3202 else
3203   echo "$as_me: failed program was:" >&5
3204 sed 's/^/| /' conftest.$ac_ext >&5
3205
3206 fi
3207 rm -f conftest.err conftest.$ac_objext \
3208       conftest$ac_exeext conftest.$ac_ext
3209   done
3210 fi
3211 LIBS=$ac_func_search_save_LIBS
3212 fi
3213 echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
3214 echo "${ECHO_T}$ac_cv_search_crypt" >&6
3215 if test "$ac_cv_search_crypt" != no; then
3216   test "$ac_cv_search_crypt" = "none required" || LIBS="$ac_cv_search_crypt $LIBS"
3217
3218 else
3219   { { echo "$as_me:$LINENO: error: Unable to find library containing crypt()" >&5
3220 echo "$as_me: error: Unable to find library containing crypt()" >&2;}
3221    { (exit 1); exit 1; }; }
3222 fi
3223
3224
3225
3226    # Most operating systems have gethostbyname() in the default searched
3227    # libraries (i.e. libc):
3228    echo "$as_me:$LINENO: checking for gethostbyname" >&5
3229 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
3230 if test "${ac_cv_func_gethostbyname+set}" = set; then
3231   echo $ECHO_N "(cached) $ECHO_C" >&6
3232 else
3233   cat >conftest.$ac_ext <<_ACEOF
3234 /* confdefs.h.  */
3235 _ACEOF
3236 cat confdefs.h >>conftest.$ac_ext
3237 cat >>conftest.$ac_ext <<_ACEOF
3238 /* end confdefs.h.  */
3239 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
3240    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
3241 #define gethostbyname innocuous_gethostbyname
3242
3243 /* System header to define __stub macros and hopefully few prototypes,
3244     which can conflict with char gethostbyname (); below.
3245     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3246     <limits.h> exists even on freestanding compilers.  */
3247
3248 #ifdef __STDC__
3249 # include <limits.h>
3250 #else
3251 # include <assert.h>
3252 #endif
3253
3254 #undef gethostbyname
3255
3256 /* Override any gcc2 internal prototype to avoid an error.  */
3257 #ifdef __cplusplus
3258 extern "C"
3259 {
3260 #endif
3261 /* We use char because int might match the return type of a gcc2
3262    builtin and then its argument prototype would still apply.  */
3263 char gethostbyname ();
3264 /* The GNU C library defines this for functions which it implements
3265     to always fail with ENOSYS.  Some functions are actually named
3266     something starting with __ and the normal name is an alias.  */
3267 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3268 choke me
3269 #else
3270 char (*f) () = gethostbyname;
3271 #endif
3272 #ifdef __cplusplus
3273 }
3274 #endif
3275
3276 int
3277 main ()
3278 {
3279 return f != gethostbyname;
3280   ;
3281   return 0;
3282 }
3283 _ACEOF
3284 rm -f conftest.$ac_objext conftest$ac_exeext
3285 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3286   (eval $ac_link) 2>conftest.er1
3287   ac_status=$?
3288   grep -v '^ *+' conftest.er1 >conftest.err
3289   rm -f conftest.er1
3290   cat conftest.err >&5
3291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3292   (exit $ac_status); } &&
3293          { ac_try='test -z "$ac_c_werror_flag"
3294                          || test ! -s conftest.err'
3295   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3296   (eval $ac_try) 2>&5
3297   ac_status=$?
3298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3299   (exit $ac_status); }; } &&
3300          { ac_try='test -s conftest$ac_exeext'
3301   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3302   (eval $ac_try) 2>&5
3303   ac_status=$?
3304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3305   (exit $ac_status); }; }; then
3306   ac_cv_func_gethostbyname=yes
3307 else
3308   echo "$as_me: failed program was:" >&5
3309 sed 's/^/| /' conftest.$ac_ext >&5
3310
3311 ac_cv_func_gethostbyname=no
3312 fi
3313 rm -f conftest.err conftest.$ac_objext \
3314       conftest$ac_exeext conftest.$ac_ext
3315 fi
3316 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
3317 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
3318 if test $ac_cv_func_gethostbyname = yes; then
3319   :
3320 else
3321   # Some OSes (eg. Solaris) place it in libnsl:
3322
3323 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
3324 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
3325 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
3326   echo $ECHO_N "(cached) $ECHO_C" >&6
3327 else
3328   ac_check_lib_save_LIBS=$LIBS
3329 LIBS="-lnsl  $LIBS"
3330 cat >conftest.$ac_ext <<_ACEOF
3331 /* confdefs.h.  */
3332 _ACEOF
3333 cat confdefs.h >>conftest.$ac_ext
3334 cat >>conftest.$ac_ext <<_ACEOF
3335 /* end confdefs.h.  */
3336
3337 /* Override any gcc2 internal prototype to avoid an error.  */
3338 #ifdef __cplusplus
3339 extern "C"
3340 #endif
3341 /* We use char because int might match the return type of a gcc2
3342    builtin and then its argument prototype would still apply.  */
3343 char gethostbyname ();
3344 int
3345 main ()
3346 {
3347 gethostbyname ();
3348   ;
3349   return 0;
3350 }
3351 _ACEOF
3352 rm -f conftest.$ac_objext conftest$ac_exeext
3353 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3354   (eval $ac_link) 2>conftest.er1
3355   ac_status=$?
3356   grep -v '^ *+' conftest.er1 >conftest.err
3357   rm -f conftest.er1
3358   cat conftest.err >&5
3359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3360   (exit $ac_status); } &&
3361          { ac_try='test -z "$ac_c_werror_flag"
3362                          || test ! -s conftest.err'
3363   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3364   (eval $ac_try) 2>&5
3365   ac_status=$?
3366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3367   (exit $ac_status); }; } &&
3368          { ac_try='test -s conftest$ac_exeext'
3369   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3370   (eval $ac_try) 2>&5
3371   ac_status=$?
3372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3373   (exit $ac_status); }; }; then
3374   ac_cv_lib_nsl_gethostbyname=yes
3375 else
3376   echo "$as_me: failed program was:" >&5
3377 sed 's/^/| /' conftest.$ac_ext >&5
3378
3379 ac_cv_lib_nsl_gethostbyname=no
3380 fi
3381 rm -f conftest.err conftest.$ac_objext \
3382       conftest$ac_exeext conftest.$ac_ext
3383 LIBS=$ac_check_lib_save_LIBS
3384 fi
3385 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
3386 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
3387 if test $ac_cv_lib_nsl_gethostbyname = yes; then
3388   cat >>confdefs.h <<_ACEOF
3389 #define HAVE_LIBNSL 1
3390 _ACEOF
3391
3392   LIBS="-lnsl $LIBS"
3393
3394 else
3395   # Some strange OSes (SINIX) have it in libsocket:
3396
3397 echo "$as_me:$LINENO: checking for gethostbyname in -lsocket" >&5
3398 echo $ECHO_N "checking for gethostbyname in -lsocket... $ECHO_C" >&6
3399 if test "${ac_cv_lib_socket_gethostbyname+set}" = set; then
3400   echo $ECHO_N "(cached) $ECHO_C" >&6
3401 else
3402   ac_check_lib_save_LIBS=$LIBS
3403 LIBS="-lsocket  $LIBS"
3404 cat >conftest.$ac_ext <<_ACEOF
3405 /* confdefs.h.  */
3406 _ACEOF
3407 cat confdefs.h >>conftest.$ac_ext
3408 cat >>conftest.$ac_ext <<_ACEOF
3409 /* end confdefs.h.  */
3410
3411 /* Override any gcc2 internal prototype to avoid an error.  */
3412 #ifdef __cplusplus
3413 extern "C"
3414 #endif
3415 /* We use char because int might match the return type of a gcc2
3416    builtin and then its argument prototype would still apply.  */
3417 char gethostbyname ();
3418 int
3419 main ()
3420 {
3421 gethostbyname ();
3422   ;
3423   return 0;
3424 }
3425 _ACEOF
3426 rm -f conftest.$ac_objext conftest$ac_exeext
3427 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3428   (eval $ac_link) 2>conftest.er1
3429   ac_status=$?
3430   grep -v '^ *+' conftest.er1 >conftest.err
3431   rm -f conftest.er1
3432   cat conftest.err >&5
3433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3434   (exit $ac_status); } &&
3435          { ac_try='test -z "$ac_c_werror_flag"
3436                          || test ! -s conftest.err'
3437   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3438   (eval $ac_try) 2>&5
3439   ac_status=$?
3440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3441   (exit $ac_status); }; } &&
3442          { ac_try='test -s conftest$ac_exeext'
3443   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3444   (eval $ac_try) 2>&5
3445   ac_status=$?
3446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3447   (exit $ac_status); }; }; then
3448   ac_cv_lib_socket_gethostbyname=yes
3449 else
3450   echo "$as_me: failed program was:" >&5
3451 sed 's/^/| /' conftest.$ac_ext >&5
3452
3453 ac_cv_lib_socket_gethostbyname=no
3454 fi
3455 rm -f conftest.err conftest.$ac_objext \
3456       conftest$ac_exeext conftest.$ac_ext
3457 LIBS=$ac_check_lib_save_LIBS
3458 fi
3459 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_gethostbyname" >&5
3460 echo "${ECHO_T}$ac_cv_lib_socket_gethostbyname" >&6
3461 if test $ac_cv_lib_socket_gethostbyname = yes; then
3462   cat >>confdefs.h <<_ACEOF
3463 #define HAVE_LIBSOCKET 1
3464 _ACEOF
3465
3466   LIBS="-lsocket $LIBS"
3467
3468 else
3469   # Unfortunately libsocket sometimes depends on libnsl.
3470           # AC_CHECK_LIB's API is essentially broken so the following
3471           # ugliness is necessary:
3472           echo "$as_me:$LINENO: checking for gethostbyname in -lsocket" >&5
3473 echo $ECHO_N "checking for gethostbyname in -lsocket... $ECHO_C" >&6
3474 if test "${ac_cv_lib_socket_gethostbyname+set}" = set; then
3475   echo $ECHO_N "(cached) $ECHO_C" >&6
3476 else
3477   ac_check_lib_save_LIBS=$LIBS
3478 LIBS="-lsocket -lnsl $LIBS"
3479 cat >conftest.$ac_ext <<_ACEOF
3480 /* confdefs.h.  */
3481 _ACEOF
3482 cat confdefs.h >>conftest.$ac_ext
3483 cat >>conftest.$ac_ext <<_ACEOF
3484 /* end confdefs.h.  */
3485
3486 /* Override any gcc2 internal prototype to avoid an error.  */
3487 #ifdef __cplusplus
3488 extern "C"
3489 #endif
3490 /* We use char because int might match the return type of a gcc2
3491    builtin and then its argument prototype would still apply.  */
3492 char gethostbyname ();
3493 int
3494 main ()
3495 {
3496 gethostbyname ();
3497   ;
3498   return 0;
3499 }
3500 _ACEOF
3501 rm -f conftest.$ac_objext conftest$ac_exeext
3502 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3503   (eval $ac_link) 2>conftest.er1
3504   ac_status=$?
3505   grep -v '^ *+' conftest.er1 >conftest.err
3506   rm -f conftest.er1
3507   cat conftest.err >&5
3508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3509   (exit $ac_status); } &&
3510          { ac_try='test -z "$ac_c_werror_flag"
3511                          || test ! -s conftest.err'
3512   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3513   (eval $ac_try) 2>&5
3514   ac_status=$?
3515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3516   (exit $ac_status); }; } &&
3517          { ac_try='test -s conftest$ac_exeext'
3518   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3519   (eval $ac_try) 2>&5
3520   ac_status=$?
3521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3522   (exit $ac_status); }; }; then
3523   ac_cv_lib_socket_gethostbyname=yes
3524 else
3525   echo "$as_me: failed program was:" >&5
3526 sed 's/^/| /' conftest.$ac_ext >&5
3527
3528 ac_cv_lib_socket_gethostbyname=no
3529 fi
3530 rm -f conftest.err conftest.$ac_objext \
3531       conftest$ac_exeext conftest.$ac_ext
3532 LIBS=$ac_check_lib_save_LIBS
3533 fi
3534 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_gethostbyname" >&5
3535 echo "${ECHO_T}$ac_cv_lib_socket_gethostbyname" >&6
3536 if test $ac_cv_lib_socket_gethostbyname = yes; then
3537   LIBS="-lsocket -lnsl $LIBS"
3538 else
3539
3540 echo "$as_me:$LINENO: checking for gethostbyname in -lresolv" >&5
3541 echo $ECHO_N "checking for gethostbyname in -lresolv... $ECHO_C" >&6
3542 if test "${ac_cv_lib_resolv_gethostbyname+set}" = set; then
3543   echo $ECHO_N "(cached) $ECHO_C" >&6
3544 else
3545   ac_check_lib_save_LIBS=$LIBS
3546 LIBS="-lresolv  $LIBS"
3547 cat >conftest.$ac_ext <<_ACEOF
3548 /* confdefs.h.  */
3549 _ACEOF
3550 cat confdefs.h >>conftest.$ac_ext
3551 cat >>conftest.$ac_ext <<_ACEOF
3552 /* end confdefs.h.  */
3553
3554 /* Override any gcc2 internal prototype to avoid an error.  */
3555 #ifdef __cplusplus
3556 extern "C"
3557 #endif
3558 /* We use char because int might match the return type of a gcc2
3559    builtin and then its argument prototype would still apply.  */
3560 char gethostbyname ();
3561 int
3562 main ()
3563 {
3564 gethostbyname ();
3565   ;
3566   return 0;
3567 }
3568 _ACEOF
3569 rm -f conftest.$ac_objext conftest$ac_exeext
3570 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3571   (eval $ac_link) 2>conftest.er1
3572   ac_status=$?
3573   grep -v '^ *+' conftest.er1 >conftest.err
3574   rm -f conftest.er1
3575   cat conftest.err >&5
3576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3577   (exit $ac_status); } &&
3578          { ac_try='test -z "$ac_c_werror_flag"
3579                          || test ! -s conftest.err'
3580   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3581   (eval $ac_try) 2>&5
3582   ac_status=$?
3583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3584   (exit $ac_status); }; } &&
3585          { ac_try='test -s conftest$ac_exeext'
3586   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3587   (eval $ac_try) 2>&5
3588   ac_status=$?
3589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3590   (exit $ac_status); }; }; then
3591   ac_cv_lib_resolv_gethostbyname=yes
3592 else
3593   echo "$as_me: failed program was:" >&5
3594 sed 's/^/| /' conftest.$ac_ext >&5
3595
3596 ac_cv_lib_resolv_gethostbyname=no
3597 fi
3598 rm -f conftest.err conftest.$ac_objext \
3599       conftest$ac_exeext conftest.$ac_ext
3600 LIBS=$ac_check_lib_save_LIBS
3601 fi
3602 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname" >&5
3603 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname" >&6
3604 if test $ac_cv_lib_resolv_gethostbyname = yes; then
3605   cat >>confdefs.h <<_ACEOF
3606 #define HAVE_LIBRESOLV 1
3607 _ACEOF
3608
3609   LIBS="-lresolv $LIBS"
3610
3611 fi
3612
3613 fi
3614
3615
3616 fi
3617
3618
3619 fi
3620
3621
3622 fi
3623
3624   echo "$as_me:$LINENO: checking for socket" >&5
3625 echo $ECHO_N "checking for socket... $ECHO_C" >&6
3626 if test "${ac_cv_func_socket+set}" = set; then
3627   echo $ECHO_N "(cached) $ECHO_C" >&6
3628 else
3629   cat >conftest.$ac_ext <<_ACEOF
3630 /* confdefs.h.  */
3631 _ACEOF
3632 cat confdefs.h >>conftest.$ac_ext
3633 cat >>conftest.$ac_ext <<_ACEOF
3634 /* end confdefs.h.  */
3635 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
3636    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
3637 #define socket innocuous_socket
3638
3639 /* System header to define __stub macros and hopefully few prototypes,
3640     which can conflict with char socket (); below.
3641     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3642     <limits.h> exists even on freestanding compilers.  */
3643
3644 #ifdef __STDC__
3645 # include <limits.h>
3646 #else
3647 # include <assert.h>
3648 #endif
3649
3650 #undef socket
3651
3652 /* Override any gcc2 internal prototype to avoid an error.  */
3653 #ifdef __cplusplus
3654 extern "C"
3655 {
3656 #endif
3657 /* We use char because int might match the return type of a gcc2
3658    builtin and then its argument prototype would still apply.  */
3659 char socket ();
3660 /* The GNU C library defines this for functions which it implements
3661     to always fail with ENOSYS.  Some functions are actually named
3662     something starting with __ and the normal name is an alias.  */
3663 #if defined (__stub_socket) || defined (__stub___socket)
3664 choke me
3665 #else
3666 char (*f) () = socket;
3667 #endif
3668 #ifdef __cplusplus
3669 }
3670 #endif
3671
3672 int
3673 main ()
3674 {
3675 return f != socket;
3676   ;
3677   return 0;
3678 }
3679 _ACEOF
3680 rm -f conftest.$ac_objext conftest$ac_exeext
3681 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3682   (eval $ac_link) 2>conftest.er1
3683   ac_status=$?
3684   grep -v '^ *+' conftest.er1 >conftest.err
3685   rm -f conftest.er1
3686   cat conftest.err >&5
3687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3688   (exit $ac_status); } &&
3689          { ac_try='test -z "$ac_c_werror_flag"
3690                          || test ! -s conftest.err'
3691   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3692   (eval $ac_try) 2>&5
3693   ac_status=$?
3694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3695   (exit $ac_status); }; } &&
3696          { ac_try='test -s conftest$ac_exeext'
3697   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3698   (eval $ac_try) 2>&5
3699   ac_status=$?
3700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3701   (exit $ac_status); }; }; then
3702   ac_cv_func_socket=yes
3703 else
3704   echo "$as_me: failed program was:" >&5
3705 sed 's/^/| /' conftest.$ac_ext >&5
3706
3707 ac_cv_func_socket=no
3708 fi
3709 rm -f conftest.err conftest.$ac_objext \
3710       conftest$ac_exeext conftest.$ac_ext
3711 fi
3712 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
3713 echo "${ECHO_T}$ac_cv_func_socket" >&6
3714 if test $ac_cv_func_socket = yes; then
3715   :
3716 else
3717
3718 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
3719 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
3720 if test "${ac_cv_lib_socket_socket+set}" = set; then
3721   echo $ECHO_N "(cached) $ECHO_C" >&6
3722 else
3723   ac_check_lib_save_LIBS=$LIBS
3724 LIBS="-lsocket  $LIBS"
3725 cat >conftest.$ac_ext <<_ACEOF
3726 /* confdefs.h.  */
3727 _ACEOF
3728 cat confdefs.h >>conftest.$ac_ext
3729 cat >>conftest.$ac_ext <<_ACEOF
3730 /* end confdefs.h.  */
3731
3732 /* Override any gcc2 internal prototype to avoid an error.  */
3733 #ifdef __cplusplus
3734 extern "C"
3735 #endif
3736 /* We use char because int might match the return type of a gcc2
3737    builtin and then its argument prototype would still apply.  */
3738 char socket ();
3739 int
3740 main ()
3741 {
3742 socket ();
3743   ;
3744   return 0;
3745 }
3746 _ACEOF
3747 rm -f conftest.$ac_objext conftest$ac_exeext
3748 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3749   (eval $ac_link) 2>conftest.er1
3750   ac_status=$?
3751   grep -v '^ *+' conftest.er1 >conftest.err
3752   rm -f conftest.er1
3753   cat conftest.err >&5
3754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3755   (exit $ac_status); } &&
3756          { ac_try='test -z "$ac_c_werror_flag"
3757                          || test ! -s conftest.err'
3758   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3759   (eval $ac_try) 2>&5
3760   ac_status=$?
3761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3762   (exit $ac_status); }; } &&
3763          { ac_try='test -s conftest$ac_exeext'
3764   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3765   (eval $ac_try) 2>&5
3766   ac_status=$?
3767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3768   (exit $ac_status); }; }; then
3769   ac_cv_lib_socket_socket=yes
3770 else
3771   echo "$as_me: failed program was:" >&5
3772 sed 's/^/| /' conftest.$ac_ext >&5
3773
3774 ac_cv_lib_socket_socket=no
3775 fi
3776 rm -f conftest.err conftest.$ac_objext \
3777       conftest$ac_exeext conftest.$ac_ext
3778 LIBS=$ac_check_lib_save_LIBS
3779 fi
3780 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
3781 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
3782 if test $ac_cv_lib_socket_socket = yes; then
3783   cat >>confdefs.h <<_ACEOF
3784 #define HAVE_LIBSOCKET 1
3785 _ACEOF
3786
3787   LIBS="-lsocket $LIBS"
3788
3789 else
3790   echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
3791 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
3792 if test "${ac_cv_lib_socket_socket+set}" = set; then
3793   echo $ECHO_N "(cached) $ECHO_C" >&6
3794 else
3795   ac_check_lib_save_LIBS=$LIBS
3796 LIBS="-lsocket -lnsl $LIBS"
3797 cat >conftest.$ac_ext <<_ACEOF
3798 /* confdefs.h.  */
3799 _ACEOF
3800 cat confdefs.h >>conftest.$ac_ext
3801 cat >>conftest.$ac_ext <<_ACEOF
3802 /* end confdefs.h.  */
3803
3804 /* Override any gcc2 internal prototype to avoid an error.  */
3805 #ifdef __cplusplus
3806 extern "C"
3807 #endif
3808 /* We use char because int might match the return type of a gcc2
3809    builtin and then its argument prototype would still apply.  */
3810 char socket ();
3811 int
3812 main ()
3813 {
3814 socket ();
3815   ;
3816   return 0;
3817 }
3818 _ACEOF
3819 rm -f conftest.$ac_objext conftest$ac_exeext
3820 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3821   (eval $ac_link) 2>conftest.er1
3822   ac_status=$?
3823   grep -v '^ *+' conftest.er1 >conftest.err
3824   rm -f conftest.er1
3825   cat conftest.err >&5
3826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3827   (exit $ac_status); } &&
3828          { ac_try='test -z "$ac_c_werror_flag"
3829                          || test ! -s conftest.err'
3830   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3831   (eval $ac_try) 2>&5
3832   ac_status=$?
3833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3834   (exit $ac_status); }; } &&
3835          { ac_try='test -s conftest$ac_exeext'
3836   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3837   (eval $ac_try) 2>&5
3838   ac_status=$?
3839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3840   (exit $ac_status); }; }; then
3841   ac_cv_lib_socket_socket=yes
3842 else
3843   echo "$as_me: failed program was:" >&5
3844 sed 's/^/| /' conftest.$ac_ext >&5
3845
3846 ac_cv_lib_socket_socket=no
3847 fi
3848 rm -f conftest.err conftest.$ac_objext \
3849       conftest$ac_exeext conftest.$ac_ext
3850 LIBS=$ac_check_lib_save_LIBS
3851 fi
3852 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
3853 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
3854 if test $ac_cv_lib_socket_socket = yes; then
3855   LIBS="-lsocket -lnsl $LIBS"
3856 fi
3857
3858 fi
3859
3860 fi
3861
3862
3863
3864 ac_ext=c
3865 ac_cpp='$CPP $CPPFLAGS'
3866 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3867 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3868 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3869 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3870 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3871 # On Suns, sometimes $CPP names a directory.
3872 if test -n "$CPP" && test -d "$CPP"; then
3873   CPP=
3874 fi
3875 if test -z "$CPP"; then
3876   if test "${ac_cv_prog_CPP+set}" = set; then
3877   echo $ECHO_N "(cached) $ECHO_C" >&6
3878 else
3879       # Double quotes because CPP needs to be expanded
3880     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3881     do
3882       ac_preproc_ok=false
3883 for ac_c_preproc_warn_flag in '' yes
3884 do
3885   # Use a header file that comes with gcc, so configuring glibc
3886   # with a fresh cross-compiler works.
3887   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3888   # <limits.h> exists even on freestanding compilers.
3889   # On the NeXT, cc -E runs the code through the compiler's parser,
3890   # not just through cpp. "Syntax error" is here to catch this case.
3891   cat >conftest.$ac_ext <<_ACEOF
3892 /* confdefs.h.  */
3893 _ACEOF
3894 cat confdefs.h >>conftest.$ac_ext
3895 cat >>conftest.$ac_ext <<_ACEOF
3896 /* end confdefs.h.  */
3897 #ifdef __STDC__
3898 # include <limits.h>
3899 #else
3900 # include <assert.h>
3901 #endif
3902                      Syntax error
3903 _ACEOF
3904 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3905   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3906   ac_status=$?
3907   grep -v '^ *+' conftest.er1 >conftest.err
3908   rm -f conftest.er1
3909   cat conftest.err >&5
3910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3911   (exit $ac_status); } >/dev/null; then
3912   if test -s conftest.err; then
3913     ac_cpp_err=$ac_c_preproc_warn_flag
3914     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3915   else
3916     ac_cpp_err=
3917   fi
3918 else
3919   ac_cpp_err=yes
3920 fi
3921 if test -z "$ac_cpp_err"; then
3922   :
3923 else
3924   echo "$as_me: failed program was:" >&5
3925 sed 's/^/| /' conftest.$ac_ext >&5
3926
3927   # Broken: fails on valid input.
3928 continue
3929 fi
3930 rm -f conftest.err conftest.$ac_ext
3931
3932   # OK, works on sane cases.  Now check whether non-existent headers
3933   # can be detected and how.
3934   cat >conftest.$ac_ext <<_ACEOF
3935 /* confdefs.h.  */
3936 _ACEOF
3937 cat confdefs.h >>conftest.$ac_ext
3938 cat >>conftest.$ac_ext <<_ACEOF
3939 /* end confdefs.h.  */
3940 #include <ac_nonexistent.h>
3941 _ACEOF
3942 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3943   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3944   ac_status=$?
3945   grep -v '^ *+' conftest.er1 >conftest.err
3946   rm -f conftest.er1
3947   cat conftest.err >&5
3948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3949   (exit $ac_status); } >/dev/null; then
3950   if test -s conftest.err; then
3951     ac_cpp_err=$ac_c_preproc_warn_flag
3952     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3953   else
3954     ac_cpp_err=
3955   fi
3956 else
3957   ac_cpp_err=yes
3958 fi
3959 if test -z "$ac_cpp_err"; then
3960   # Broken: success on invalid input.
3961 continue
3962 else
3963   echo "$as_me: failed program was:" >&5
3964 sed 's/^/| /' conftest.$ac_ext >&5
3965
3966   # Passes both tests.
3967 ac_preproc_ok=:
3968 break
3969 fi
3970 rm -f conftest.err conftest.$ac_ext
3971
3972 done
3973 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3974 rm -f conftest.err conftest.$ac_ext
3975 if $ac_preproc_ok; then
3976   break
3977 fi
3978
3979     done
3980     ac_cv_prog_CPP=$CPP
3981
3982 fi
3983   CPP=$ac_cv_prog_CPP
3984 else
3985   ac_cv_prog_CPP=$CPP
3986 fi
3987 echo "$as_me:$LINENO: result: $CPP" >&5
3988 echo "${ECHO_T}$CPP" >&6
3989 ac_preproc_ok=false
3990 for ac_c_preproc_warn_flag in '' yes
3991 do
3992   # Use a header file that comes with gcc, so configuring glibc
3993   # with a fresh cross-compiler works.
3994   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3995   # <limits.h> exists even on freestanding compilers.
3996   # On the NeXT, cc -E runs the code through the compiler's parser,
3997   # not just through cpp. "Syntax error" is here to catch this case.
3998   cat >conftest.$ac_ext <<_ACEOF
3999 /* confdefs.h.  */
4000 _ACEOF
4001 cat confdefs.h >>conftest.$ac_ext
4002 cat >>conftest.$ac_ext <<_ACEOF
4003 /* end confdefs.h.  */
4004 #ifdef __STDC__
4005 # include <limits.h>
4006 #else
4007 # include <assert.h>
4008 #endif
4009                      Syntax error
4010 _ACEOF
4011 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4012   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4013   ac_status=$?
4014   grep -v '^ *+' conftest.er1 >conftest.err
4015   rm -f conftest.er1
4016   cat conftest.err >&5
4017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4018   (exit $ac_status); } >/dev/null; then
4019   if test -s conftest.err; then
4020     ac_cpp_err=$ac_c_preproc_warn_flag
4021     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4022   else
4023     ac_cpp_err=
4024   fi
4025 else
4026   ac_cpp_err=yes
4027 fi
4028 if test -z "$ac_cpp_err"; then
4029   :
4030 else
4031   echo "$as_me: failed program was:" >&5
4032 sed 's/^/| /' conftest.$ac_ext >&5
4033
4034   # Broken: fails on valid input.
4035 continue
4036 fi
4037 rm -f conftest.err conftest.$ac_ext
4038
4039   # OK, works on sane cases.  Now check whether non-existent headers
4040   # can be detected and how.
4041   cat >conftest.$ac_ext <<_ACEOF
4042 /* confdefs.h.  */
4043 _ACEOF
4044 cat confdefs.h >>conftest.$ac_ext
4045 cat >>conftest.$ac_ext <<_ACEOF
4046 /* end confdefs.h.  */
4047 #include <ac_nonexistent.h>
4048 _ACEOF
4049 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4050   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4051   ac_status=$?
4052   grep -v '^ *+' conftest.er1 >conftest.err
4053   rm -f conftest.er1
4054   cat conftest.err >&5
4055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4056   (exit $ac_status); } >/dev/null; then
4057   if test -s conftest.err; then
4058     ac_cpp_err=$ac_c_preproc_warn_flag
4059     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4060   else
4061     ac_cpp_err=
4062   fi
4063 else
4064   ac_cpp_err=yes
4065 fi
4066 if test -z "$ac_cpp_err"; then
4067   # Broken: success on invalid input.
4068 continue
4069 else
4070   echo "$as_me: failed program was:" >&5
4071 sed 's/^/| /' conftest.$ac_ext >&5
4072
4073   # Passes both tests.
4074 ac_preproc_ok=:
4075 break
4076 fi
4077 rm -f conftest.err conftest.$ac_ext
4078
4079 done
4080 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4081 rm -f conftest.err conftest.$ac_ext
4082 if $ac_preproc_ok; then
4083   :
4084 else
4085   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4086 See \`config.log' for more details." >&5
4087 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4088 See \`config.log' for more details." >&2;}
4089    { (exit 1); exit 1; }; }
4090 fi
4091
4092 ac_ext=c
4093 ac_cpp='$CPP $CPPFLAGS'
4094 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4095 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4096 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4097
4098
4099 echo "$as_me:$LINENO: checking for egrep" >&5
4100 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4101 if test "${ac_cv_prog_egrep+set}" = set; then
4102   echo $ECHO_N "(cached) $ECHO_C" >&6
4103 else
4104   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4105     then ac_cv_prog_egrep='grep -E'
4106     else ac_cv_prog_egrep='egrep'
4107     fi
4108 fi
4109 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4110 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4111  EGREP=$ac_cv_prog_egrep
4112
4113
4114 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4115 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4116 if test "${ac_cv_header_stdc+set}" = set; then
4117   echo $ECHO_N "(cached) $ECHO_C" >&6
4118 else
4119   cat >conftest.$ac_ext <<_ACEOF
4120 /* confdefs.h.  */
4121 _ACEOF
4122 cat confdefs.h >>conftest.$ac_ext
4123 cat >>conftest.$ac_ext <<_ACEOF
4124 /* end confdefs.h.  */
4125 #include <stdlib.h>
4126 #include <stdarg.h>
4127 #include <string.h>
4128 #include <float.h>
4129
4130 int
4131 main ()
4132 {
4133
4134   ;
4135   return 0;
4136 }
4137 _ACEOF
4138 rm -f conftest.$ac_objext
4139 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4140   (eval $ac_compile) 2>conftest.er1
4141   ac_status=$?
4142   grep -v '^ *+' conftest.er1 >conftest.err
4143   rm -f conftest.er1
4144   cat conftest.err >&5
4145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4146   (exit $ac_status); } &&
4147          { ac_try='test -z "$ac_c_werror_flag"
4148                          || test ! -s conftest.err'
4149   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4150   (eval $ac_try) 2>&5
4151   ac_status=$?
4152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4153   (exit $ac_status); }; } &&
4154          { ac_try='test -s conftest.$ac_objext'
4155   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4156   (eval $ac_try) 2>&5
4157   ac_status=$?
4158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4159   (exit $ac_status); }; }; then
4160   ac_cv_header_stdc=yes
4161 else
4162   echo "$as_me: failed program was:" >&5
4163 sed 's/^/| /' conftest.$ac_ext >&5
4164
4165 ac_cv_header_stdc=no
4166 fi
4167 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4168
4169 if test $ac_cv_header_stdc = yes; then
4170   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4171   cat >conftest.$ac_ext <<_ACEOF
4172 /* confdefs.h.  */
4173 _ACEOF
4174 cat confdefs.h >>conftest.$ac_ext
4175 cat >>conftest.$ac_ext <<_ACEOF
4176 /* end confdefs.h.  */
4177 #include <string.h>
4178
4179 _ACEOF
4180 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4181   $EGREP "memchr" >/dev/null 2>&1; then
4182   :
4183 else
4184   ac_cv_header_stdc=no
4185 fi
4186 rm -f conftest*
4187
4188 fi
4189
4190 if test $ac_cv_header_stdc = yes; then
4191   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4192   cat >conftest.$ac_ext <<_ACEOF
4193 /* confdefs.h.  */
4194 _ACEOF
4195 cat confdefs.h >>conftest.$ac_ext
4196 cat >>conftest.$ac_ext <<_ACEOF
4197 /* end confdefs.h.  */
4198 #include <stdlib.h>
4199
4200 _ACEOF
4201 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4202   $EGREP "free" >/dev/null 2>&1; then
4203   :
4204 else
4205   ac_cv_header_stdc=no
4206 fi
4207 rm -f conftest*
4208
4209 fi
4210
4211 if test $ac_cv_header_stdc = yes; then
4212   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4213   if test "$cross_compiling" = yes; then
4214   :
4215 else
4216   cat >conftest.$ac_ext <<_ACEOF
4217 /* confdefs.h.  */
4218 _ACEOF
4219 cat confdefs.h >>conftest.$ac_ext
4220 cat >>conftest.$ac_ext <<_ACEOF
4221 /* end confdefs.h.  */
4222 #include <ctype.h>
4223 #if ((' ' & 0x0FF) == 0x020)
4224 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4225 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4226 #else
4227 # define ISLOWER(c) \
4228                    (('a' <= (c) && (c) <= 'i') \
4229                      || ('j' <= (c) && (c) <= 'r') \
4230                      || ('s' <= (c) && (c) <= 'z'))
4231 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4232 #endif
4233
4234 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4235 int
4236 main ()
4237 {
4238   int i;
4239   for (i = 0; i < 256; i++)
4240     if (XOR (islower (i), ISLOWER (i))
4241         || toupper (i) != TOUPPER (i))
4242       exit(2);
4243   exit (0);
4244 }
4245 _ACEOF
4246 rm -f conftest$ac_exeext
4247 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4248   (eval $ac_link) 2>&5
4249   ac_status=$?
4250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4251   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4252   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4253   (eval $ac_try) 2>&5
4254   ac_status=$?
4255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4256   (exit $ac_status); }; }; then
4257   :
4258 else
4259   echo "$as_me: program exited with status $ac_status" >&5
4260 echo "$as_me: failed program was:" >&5
4261 sed 's/^/| /' conftest.$ac_ext >&5
4262
4263 ( exit $ac_status )
4264 ac_cv_header_stdc=no
4265 fi
4266 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4267 fi
4268 fi
4269 fi
4270 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4271 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4272 if test $ac_cv_header_stdc = yes; then
4273
4274 cat >>confdefs.h <<\_ACEOF
4275 #define STDC_HEADERS 1
4276 _ACEOF
4277
4278 fi
4279
4280 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4281
4282
4283
4284
4285
4286
4287
4288
4289
4290 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4291                   inttypes.h stdint.h unistd.h
4292 do
4293 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4294 echo "$as_me:$LINENO: checking for $ac_header" >&5
4295 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4296 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4297   echo $ECHO_N "(cached) $ECHO_C" >&6
4298 else
4299   cat >conftest.$ac_ext <<_ACEOF
4300 /* confdefs.h.  */
4301 _ACEOF
4302 cat confdefs.h >>conftest.$ac_ext
4303 cat >>conftest.$ac_ext <<_ACEOF
4304 /* end confdefs.h.  */
4305 $ac_includes_default
4306
4307 #include <$ac_header>
4308 _ACEOF
4309 rm -f conftest.$ac_objext
4310 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4311   (eval $ac_compile) 2>conftest.er1
4312   ac_status=$?
4313   grep -v '^ *+' conftest.er1 >conftest.err
4314   rm -f conftest.er1
4315   cat conftest.err >&5
4316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4317   (exit $ac_status); } &&
4318          { ac_try='test -z "$ac_c_werror_flag"
4319                          || test ! -s conftest.err'
4320   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4321   (eval $ac_try) 2>&5
4322   ac_status=$?
4323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4324   (exit $ac_status); }; } &&
4325          { ac_try='test -s conftest.$ac_objext'
4326   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4327   (eval $ac_try) 2>&5
4328   ac_status=$?
4329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4330   (exit $ac_status); }; }; then
4331   eval "$as_ac_Header=yes"
4332 else
4333   echo "$as_me: failed program was:" >&5
4334 sed 's/^/| /' conftest.$ac_ext >&5
4335
4336 eval "$as_ac_Header=no"
4337 fi
4338 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4339 fi
4340 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4341 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4342 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4343   cat >>confdefs.h <<_ACEOF
4344 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4345 _ACEOF
4346
4347 fi
4348
4349 done
4350
4351
4352
4353
4354
4355
4356
4357
4358
4359
4360
4361
4362 for ac_header in crypt.h poll.h inttypes.h stdint.h sys/devpoll.h sys/epoll.h sys/event.h sys/param.h sys/resource.h sys/socket.h
4363 do
4364 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4365 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4366   echo "$as_me:$LINENO: checking for $ac_header" >&5
4367 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4368 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4369   echo $ECHO_N "(cached) $ECHO_C" >&6
4370 fi
4371 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4372 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4373 else
4374   # Is the header compilable?
4375 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4376 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4377 cat >conftest.$ac_ext <<_ACEOF
4378 /* confdefs.h.  */
4379 _ACEOF
4380 cat confdefs.h >>conftest.$ac_ext
4381 cat >>conftest.$ac_ext <<_ACEOF
4382 /* end confdefs.h.  */
4383 $ac_includes_default
4384 #include <$ac_header>
4385 _ACEOF
4386 rm -f conftest.$ac_objext
4387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4388   (eval $ac_compile) 2>conftest.er1
4389   ac_status=$?
4390   grep -v '^ *+' conftest.er1 >conftest.err
4391   rm -f conftest.er1
4392   cat conftest.err >&5
4393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4394   (exit $ac_status); } &&
4395          { ac_try='test -z "$ac_c_werror_flag"
4396                          || test ! -s conftest.err'
4397   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4398   (eval $ac_try) 2>&5
4399   ac_status=$?
4400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4401   (exit $ac_status); }; } &&
4402          { ac_try='test -s conftest.$ac_objext'
4403   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4404   (eval $ac_try) 2>&5
4405   ac_status=$?
4406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4407   (exit $ac_status); }; }; then
4408   ac_header_compiler=yes
4409 else
4410   echo "$as_me: failed program was:" >&5
4411 sed 's/^/| /' conftest.$ac_ext >&5
4412
4413 ac_header_compiler=no
4414 fi
4415 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4416 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4417 echo "${ECHO_T}$ac_header_compiler" >&6
4418
4419 # Is the header present?
4420 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4421 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4422 cat >conftest.$ac_ext <<_ACEOF
4423 /* confdefs.h.  */
4424 _ACEOF
4425 cat confdefs.h >>conftest.$ac_ext
4426 cat >>conftest.$ac_ext <<_ACEOF
4427 /* end confdefs.h.  */
4428 #include <$ac_header>
4429 _ACEOF
4430 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4431   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4432   ac_status=$?
4433   grep -v '^ *+' conftest.er1 >conftest.err
4434   rm -f conftest.er1
4435   cat conftest.err >&5
4436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4437   (exit $ac_status); } >/dev/null; then
4438   if test -s conftest.err; then
4439     ac_cpp_err=$ac_c_preproc_warn_flag
4440     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4441   else
4442     ac_cpp_err=
4443   fi
4444 else
4445   ac_cpp_err=yes
4446 fi
4447 if test -z "$ac_cpp_err"; then
4448   ac_header_preproc=yes
4449 else
4450   echo "$as_me: failed program was:" >&5
4451 sed 's/^/| /' conftest.$ac_ext >&5
4452
4453   ac_header_preproc=no
4454 fi
4455 rm -f conftest.err conftest.$ac_ext
4456 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4457 echo "${ECHO_T}$ac_header_preproc" >&6
4458
4459 # So?  What about this header?
4460 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4461   yes:no: )
4462     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4463 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4464     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4465 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4466     ac_header_preproc=yes
4467     ;;
4468   no:yes:* )
4469     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4470 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4471     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4472 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4473     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4474 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4475     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4476 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4477     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4478 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4479     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4480 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4481     (
4482       cat <<\_ASBOX
4483 ## ------------------------------------------ ##
4484 ## Report this to the AC_PACKAGE_NAME lists.  ##
4485 ## ------------------------------------------ ##
4486 _ASBOX
4487     ) |
4488       sed "s/^/$as_me: WARNING:     /" >&2
4489     ;;
4490 esac
4491 echo "$as_me:$LINENO: checking for $ac_header" >&5
4492 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4493 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4494   echo $ECHO_N "(cached) $ECHO_C" >&6
4495 else
4496   eval "$as_ac_Header=\$ac_header_preproc"
4497 fi
4498 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4499 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4500
4501 fi
4502 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4503   cat >>confdefs.h <<_ACEOF
4504 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4505 _ACEOF
4506
4507 fi
4508
4509 done
4510
4511
4512 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4513 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
4514 if test "${ac_cv_c_bigendian+set}" = set; then
4515   echo $ECHO_N "(cached) $ECHO_C" >&6
4516 else
4517   # See if sys/param.h defines the BYTE_ORDER macro.
4518 cat >conftest.$ac_ext <<_ACEOF
4519 /* confdefs.h.  */
4520 _ACEOF
4521 cat confdefs.h >>conftest.$ac_ext
4522 cat >>conftest.$ac_ext <<_ACEOF
4523 /* end confdefs.h.  */
4524 #include <sys/types.h>
4525 #include <sys/param.h>
4526
4527 int
4528 main ()
4529 {
4530 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4531  bogus endian macros
4532 #endif
4533
4534   ;
4535   return 0;
4536 }
4537 _ACEOF
4538 rm -f conftest.$ac_objext
4539 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4540   (eval $ac_compile) 2>conftest.er1
4541   ac_status=$?
4542   grep -v '^ *+' conftest.er1 >conftest.err
4543   rm -f conftest.er1
4544   cat conftest.err >&5
4545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4546   (exit $ac_status); } &&
4547          { ac_try='test -z "$ac_c_werror_flag"
4548                          || test ! -s conftest.err'
4549   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4550   (eval $ac_try) 2>&5
4551   ac_status=$?
4552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4553   (exit $ac_status); }; } &&
4554          { ac_try='test -s conftest.$ac_objext'
4555   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4556   (eval $ac_try) 2>&5
4557   ac_status=$?
4558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4559   (exit $ac_status); }; }; then
4560   # It does; now see whether it defined to BIG_ENDIAN or not.
4561 cat >conftest.$ac_ext <<_ACEOF
4562 /* confdefs.h.  */
4563 _ACEOF
4564 cat confdefs.h >>conftest.$ac_ext
4565 cat >>conftest.$ac_ext <<_ACEOF
4566 /* end confdefs.h.  */
4567 #include <sys/types.h>
4568 #include <sys/param.h>
4569
4570 int
4571 main ()
4572 {
4573 #if BYTE_ORDER != BIG_ENDIAN
4574  not big endian
4575 #endif
4576
4577   ;
4578   return 0;
4579 }
4580 _ACEOF
4581 rm -f conftest.$ac_objext
4582 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4583   (eval $ac_compile) 2>conftest.er1
4584   ac_status=$?
4585   grep -v '^ *+' conftest.er1 >conftest.err
4586   rm -f conftest.er1
4587   cat conftest.err >&5
4588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4589   (exit $ac_status); } &&
4590          { ac_try='test -z "$ac_c_werror_flag"
4591                          || test ! -s conftest.err'
4592   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4593   (eval $ac_try) 2>&5
4594   ac_status=$?
4595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4596   (exit $ac_status); }; } &&
4597          { ac_try='test -s conftest.$ac_objext'
4598   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4599   (eval $ac_try) 2>&5
4600   ac_status=$?
4601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4602   (exit $ac_status); }; }; then
4603   ac_cv_c_bigendian=yes
4604 else
4605   echo "$as_me: failed program was:" >&5
4606 sed 's/^/| /' conftest.$ac_ext >&5
4607
4608 ac_cv_c_bigendian=no
4609 fi
4610 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4611 else
4612   echo "$as_me: failed program was:" >&5
4613 sed 's/^/| /' conftest.$ac_ext >&5
4614
4615 # It does not; compile a test program.
4616 if test "$cross_compiling" = yes; then
4617   # try to guess the endianness by grepping values into an object file
4618   ac_cv_c_bigendian=unknown
4619   cat >conftest.$ac_ext <<_ACEOF
4620 /* confdefs.h.  */
4621 _ACEOF
4622 cat confdefs.h >>conftest.$ac_ext
4623 cat >>conftest.$ac_ext <<_ACEOF
4624 /* end confdefs.h.  */
4625 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4626 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4627 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4628 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4629 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4630 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4631 int
4632 main ()
4633 {
4634  _ascii (); _ebcdic ();
4635   ;
4636   return 0;
4637 }
4638 _ACEOF
4639 rm -f conftest.$ac_objext
4640 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4641   (eval $ac_compile) 2>conftest.er1
4642   ac_status=$?
4643   grep -v '^ *+' conftest.er1 >conftest.err
4644   rm -f conftest.er1
4645   cat conftest.err >&5
4646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4647   (exit $ac_status); } &&
4648          { ac_try='test -z "$ac_c_werror_flag"
4649                          || test ! -s conftest.err'
4650   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4651   (eval $ac_try) 2>&5
4652   ac_status=$?
4653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4654   (exit $ac_status); }; } &&
4655          { ac_try='test -s conftest.$ac_objext'
4656   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4657   (eval $ac_try) 2>&5
4658   ac_status=$?
4659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4660   (exit $ac_status); }; }; then
4661   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4662   ac_cv_c_bigendian=yes
4663 fi
4664 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4665   if test "$ac_cv_c_bigendian" = unknown; then
4666     ac_cv_c_bigendian=no
4667   else
4668     # finding both strings is unlikely to happen, but who knows?
4669     ac_cv_c_bigendian=unknown
4670   fi
4671 fi
4672 else
4673   echo "$as_me: failed program was:" >&5
4674 sed 's/^/| /' conftest.$ac_ext >&5
4675
4676 fi
4677 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4678 else
4679   cat >conftest.$ac_ext <<_ACEOF
4680 /* confdefs.h.  */
4681 _ACEOF
4682 cat confdefs.h >>conftest.$ac_ext
4683 cat >>conftest.$ac_ext <<_ACEOF
4684 /* end confdefs.h.  */
4685 int
4686 main ()
4687 {
4688   /* Are we little or big endian?  From Harbison&Steele.  */
4689   union
4690   {
4691     long l;
4692     char c[sizeof (long)];
4693   } u;
4694   u.l = 1;
4695   exit (u.c[sizeof (long) - 1] == 1);
4696 }
4697 _ACEOF
4698 rm -f conftest$ac_exeext
4699 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4700   (eval $ac_link) 2>&5
4701   ac_status=$?
4702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4703   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4704   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4705   (eval $ac_try) 2>&5
4706   ac_status=$?
4707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4708   (exit $ac_status); }; }; then
4709   ac_cv_c_bigendian=no
4710 else
4711   echo "$as_me: program exited with status $ac_status" >&5
4712 echo "$as_me: failed program was:" >&5
4713 sed 's/^/| /' conftest.$ac_ext >&5
4714
4715 ( exit $ac_status )
4716 ac_cv_c_bigendian=yes
4717 fi
4718 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4719 fi
4720 fi
4721 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4722 fi
4723 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4724 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
4725 case $ac_cv_c_bigendian in
4726   yes)
4727
4728 cat >>confdefs.h <<\_ACEOF
4729 #define WORDS_BIGENDIAN 1
4730 _ACEOF
4731  ;;
4732   no)
4733      ;;
4734   *)
4735     { { echo "$as_me:$LINENO: error: unknown endianness
4736 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4737 echo "$as_me: error: unknown endianness
4738 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4739    { (exit 1); exit 1; }; } ;;
4740 esac
4741
4742 echo "$as_me:$LINENO: checking for size_t" >&5
4743 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
4744 if test "${ac_cv_type_size_t+set}" = set; then
4745   echo $ECHO_N "(cached) $ECHO_C" >&6
4746 else
4747   cat >conftest.$ac_ext <<_ACEOF
4748 /* confdefs.h.  */
4749 _ACEOF
4750 cat confdefs.h >>conftest.$ac_ext
4751 cat >>conftest.$ac_ext <<_ACEOF
4752 /* end confdefs.h.  */
4753 $ac_includes_default
4754 int
4755 main ()
4756 {
4757 if ((size_t *) 0)
4758   return 0;
4759 if (sizeof (size_t))
4760   return 0;
4761   ;
4762   return 0;
4763 }
4764 _ACEOF
4765 rm -f conftest.$ac_objext
4766 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4767   (eval $ac_compile) 2>conftest.er1
4768   ac_status=$?
4769   grep -v '^ *+' conftest.er1 >conftest.err
4770   rm -f conftest.er1
4771   cat conftest.err >&5
4772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4773   (exit $ac_status); } &&
4774          { ac_try='test -z "$ac_c_werror_flag"
4775                          || test ! -s conftest.err'
4776   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4777   (eval $ac_try) 2>&5
4778   ac_status=$?
4779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4780   (exit $ac_status); }; } &&
4781          { ac_try='test -s conftest.$ac_objext'
4782   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4783   (eval $ac_try) 2>&5
4784   ac_status=$?
4785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4786   (exit $ac_status); }; }; then
4787   ac_cv_type_size_t=yes
4788 else
4789   echo "$as_me: failed program was:" >&5
4790 sed 's/^/| /' conftest.$ac_ext >&5
4791
4792 ac_cv_type_size_t=no
4793 fi
4794 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4795 fi
4796 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
4797 echo "${ECHO_T}$ac_cv_type_size_t" >&6
4798 if test $ac_cv_type_size_t = yes; then
4799   :
4800 else
4801
4802 cat >>confdefs.h <<_ACEOF
4803 #define size_t unsigned
4804 _ACEOF
4805
4806 fi
4807
4808 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
4809 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
4810 if test "${ac_cv_header_time+set}" = set; then
4811   echo $ECHO_N "(cached) $ECHO_C" >&6
4812 else
4813   cat >conftest.$ac_ext <<_ACEOF
4814 /* confdefs.h.  */
4815 _ACEOF
4816 cat confdefs.h >>conftest.$ac_ext
4817 cat >>conftest.$ac_ext <<_ACEOF
4818 /* end confdefs.h.  */
4819 #include <sys/types.h>
4820 #include <sys/time.h>
4821 #include <time.h>
4822
4823 int
4824 main ()
4825 {
4826 if ((struct tm *) 0)
4827 return 0;
4828   ;
4829   return 0;
4830 }
4831 _ACEOF
4832 rm -f conftest.$ac_objext
4833 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4834   (eval $ac_compile) 2>conftest.er1
4835   ac_status=$?
4836   grep -v '^ *+' conftest.er1 >conftest.err
4837   rm -f conftest.er1
4838   cat conftest.err >&5
4839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4840   (exit $ac_status); } &&
4841          { ac_try='test -z "$ac_c_werror_flag"
4842                          || test ! -s conftest.err'
4843   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4844   (eval $ac_try) 2>&5
4845   ac_status=$?
4846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4847   (exit $ac_status); }; } &&
4848          { ac_try='test -s conftest.$ac_objext'
4849   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4850   (eval $ac_try) 2>&5
4851   ac_status=$?
4852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4853   (exit $ac_status); }; }; then
4854   ac_cv_header_time=yes
4855 else
4856   echo "$as_me: failed program was:" >&5
4857 sed 's/^/| /' conftest.$ac_ext >&5
4858
4859 ac_cv_header_time=no
4860 fi
4861 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4862 fi
4863 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
4864 echo "${ECHO_T}$ac_cv_header_time" >&6
4865 if test $ac_cv_header_time = yes; then
4866
4867 cat >>confdefs.h <<\_ACEOF
4868 #define TIME_WITH_SYS_TIME 1
4869 _ACEOF
4870
4871 fi
4872
4873 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
4874 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
4875 if test "${ac_cv_struct_tm+set}" = set; then
4876   echo $ECHO_N "(cached) $ECHO_C" >&6
4877 else
4878   cat >conftest.$ac_ext <<_ACEOF
4879 /* confdefs.h.  */
4880 _ACEOF
4881 cat confdefs.h >>conftest.$ac_ext
4882 cat >>conftest.$ac_ext <<_ACEOF
4883 /* end confdefs.h.  */
4884 #include <sys/types.h>
4885 #include <time.h>
4886
4887 int
4888 main ()
4889 {
4890 struct tm *tp; tp->tm_sec;
4891   ;
4892   return 0;
4893 }
4894 _ACEOF
4895 rm -f conftest.$ac_objext
4896 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4897   (eval $ac_compile) 2>conftest.er1
4898   ac_status=$?
4899   grep -v '^ *+' conftest.er1 >conftest.err
4900   rm -f conftest.er1
4901   cat conftest.err >&5
4902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4903   (exit $ac_status); } &&
4904          { ac_try='test -z "$ac_c_werror_flag"
4905                          || test ! -s conftest.err'
4906   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4907   (eval $ac_try) 2>&5
4908   ac_status=$?
4909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4910   (exit $ac_status); }; } &&
4911          { ac_try='test -s conftest.$ac_objext'
4912   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4913   (eval $ac_try) 2>&5
4914   ac_status=$?
4915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4916   (exit $ac_status); }; }; then
4917   ac_cv_struct_tm=time.h
4918 else
4919   echo "$as_me: failed program was:" >&5
4920 sed 's/^/| /' conftest.$ac_ext >&5
4921
4922 ac_cv_struct_tm=sys/time.h
4923 fi
4924 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4925 fi
4926 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
4927 echo "${ECHO_T}$ac_cv_struct_tm" >&6
4928 if test $ac_cv_struct_tm = sys/time.h; then
4929
4930 cat >>confdefs.h <<\_ACEOF
4931 #define TM_IN_SYS_TIME 1
4932 _ACEOF
4933
4934 fi
4935
4936 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
4937 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
4938 if test "${ac_cv_type_uid_t+set}" = set; then
4939   echo $ECHO_N "(cached) $ECHO_C" >&6
4940 else
4941   cat >conftest.$ac_ext <<_ACEOF
4942 /* confdefs.h.  */
4943 _ACEOF
4944 cat confdefs.h >>conftest.$ac_ext
4945 cat >>conftest.$ac_ext <<_ACEOF
4946 /* end confdefs.h.  */
4947 #include <sys/types.h>
4948
4949 _ACEOF
4950 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4951   $EGREP "uid_t" >/dev/null 2>&1; then
4952   ac_cv_type_uid_t=yes
4953 else
4954   ac_cv_type_uid_t=no
4955 fi
4956 rm -f conftest*
4957
4958 fi
4959 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
4960 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
4961 if test $ac_cv_type_uid_t = no; then
4962
4963 cat >>confdefs.h <<\_ACEOF
4964 #define uid_t int
4965 _ACEOF
4966
4967
4968 cat >>confdefs.h <<\_ACEOF
4969 #define gid_t int
4970 _ACEOF
4971
4972 fi
4973
4974 echo "$as_me:$LINENO: checking for short" >&5
4975 echo $ECHO_N "checking for short... $ECHO_C" >&6
4976 if test "${ac_cv_type_short+set}" = set; then
4977   echo $ECHO_N "(cached) $ECHO_C" >&6
4978 else
4979   cat >conftest.$ac_ext <<_ACEOF
4980 /* confdefs.h.  */
4981 _ACEOF
4982 cat confdefs.h >>conftest.$ac_ext
4983 cat >>conftest.$ac_ext <<_ACEOF
4984 /* end confdefs.h.  */
4985 $ac_includes_default
4986 int
4987 main ()
4988 {
4989 if ((short *) 0)
4990   return 0;
4991 if (sizeof (short))
4992   return 0;
4993   ;
4994   return 0;
4995 }
4996 _ACEOF
4997 rm -f conftest.$ac_objext
4998 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4999   (eval $ac_compile) 2>conftest.er1
5000   ac_status=$?
5001   grep -v '^ *+' conftest.er1 >conftest.err
5002   rm -f conftest.er1
5003   cat conftest.err >&5
5004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5005   (exit $ac_status); } &&
5006          { ac_try='test -z "$ac_c_werror_flag"
5007                          || test ! -s conftest.err'
5008   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5009   (eval $ac_try) 2>&5
5010   ac_status=$?
5011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5012   (exit $ac_status); }; } &&
5013          { ac_try='test -s conftest.$ac_objext'
5014   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5015   (eval $ac_try) 2>&5
5016   ac_status=$?
5017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5018   (exit $ac_status); }; }; then
5019   ac_cv_type_short=yes
5020 else
5021   echo "$as_me: failed program was:" >&5
5022 sed 's/^/| /' conftest.$ac_ext >&5
5023
5024 ac_cv_type_short=no
5025 fi
5026 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5027 fi
5028 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
5029 echo "${ECHO_T}$ac_cv_type_short" >&6
5030
5031 echo "$as_me:$LINENO: checking size of short" >&5
5032 echo $ECHO_N "checking size of short... $ECHO_C" >&6
5033 if test "${ac_cv_sizeof_short+set}" = set; then
5034   echo $ECHO_N "(cached) $ECHO_C" >&6
5035 else
5036   if test "$ac_cv_type_short" = yes; then
5037   # The cast to unsigned long works around a bug in the HP C Compiler
5038   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5039   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5040   # This bug is HP SR number 8606223364.
5041   if test "$cross_compiling" = yes; then
5042   # Depending upon the size, compute the lo and hi bounds.
5043 cat >conftest.$ac_ext <<_ACEOF
5044 /* confdefs.h.  */
5045 _ACEOF
5046 cat confdefs.h >>conftest.$ac_ext
5047 cat >>conftest.$ac_ext <<_ACEOF
5048 /* end confdefs.h.  */
5049 $ac_includes_default
5050 int
5051 main ()
5052 {
5053 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
5054 test_array [0] = 0
5055
5056   ;
5057   return 0;
5058 }
5059 _ACEOF
5060 rm -f conftest.$ac_objext
5061 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5062   (eval $ac_compile) 2>conftest.er1
5063   ac_status=$?
5064   grep -v '^ *+' conftest.er1 >conftest.err
5065   rm -f conftest.er1
5066   cat conftest.err >&5
5067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5068   (exit $ac_status); } &&
5069          { ac_try='test -z "$ac_c_werror_flag"
5070                          || test ! -s conftest.err'
5071   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5072   (eval $ac_try) 2>&5
5073   ac_status=$?
5074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5075   (exit $ac_status); }; } &&
5076          { ac_try='test -s conftest.$ac_objext'
5077   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5078   (eval $ac_try) 2>&5
5079   ac_status=$?
5080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5081   (exit $ac_status); }; }; then
5082   ac_lo=0 ac_mid=0
5083   while :; do
5084     cat >conftest.$ac_ext <<_ACEOF
5085 /* confdefs.h.  */
5086 _ACEOF
5087 cat confdefs.h >>conftest.$ac_ext
5088 cat >>conftest.$ac_ext <<_ACEOF
5089 /* end confdefs.h.  */
5090 $ac_includes_default
5091 int
5092 main ()
5093 {
5094 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
5095 test_array [0] = 0
5096
5097   ;
5098   return 0;
5099 }
5100 _ACEOF
5101 rm -f conftest.$ac_objext
5102 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5103   (eval $ac_compile) 2>conftest.er1
5104   ac_status=$?
5105   grep -v '^ *+' conftest.er1 >conftest.err
5106   rm -f conftest.er1
5107   cat conftest.err >&5
5108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5109   (exit $ac_status); } &&
5110          { ac_try='test -z "$ac_c_werror_flag"
5111                          || test ! -s conftest.err'
5112   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5113   (eval $ac_try) 2>&5
5114   ac_status=$?
5115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5116   (exit $ac_status); }; } &&
5117          { ac_try='test -s conftest.$ac_objext'
5118   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5119   (eval $ac_try) 2>&5
5120   ac_status=$?
5121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5122   (exit $ac_status); }; }; then
5123   ac_hi=$ac_mid; break
5124 else
5125   echo "$as_me: failed program was:" >&5
5126 sed 's/^/| /' conftest.$ac_ext >&5
5127
5128 ac_lo=`expr $ac_mid + 1`
5129                     if test $ac_lo -le $ac_mid; then
5130                       ac_lo= ac_hi=
5131                       break
5132                     fi
5133                     ac_mid=`expr 2 '*' $ac_mid + 1`
5134 fi
5135 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5136   done
5137 else
5138   echo "$as_me: failed program was:" >&5
5139 sed 's/^/| /' conftest.$ac_ext >&5
5140
5141 cat >conftest.$ac_ext <<_ACEOF
5142 /* confdefs.h.  */
5143 _ACEOF
5144 cat confdefs.h >>conftest.$ac_ext
5145 cat >>conftest.$ac_ext <<_ACEOF
5146 /* end confdefs.h.  */
5147 $ac_includes_default
5148 int
5149 main ()
5150 {
5151 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
5152 test_array [0] = 0
5153
5154   ;
5155   return 0;
5156 }
5157 _ACEOF
5158 rm -f conftest.$ac_objext
5159 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5160   (eval $ac_compile) 2>conftest.er1
5161   ac_status=$?
5162   grep -v '^ *+' conftest.er1 >conftest.err
5163   rm -f conftest.er1
5164   cat conftest.err >&5
5165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5166   (exit $ac_status); } &&
5167          { ac_try='test -z "$ac_c_werror_flag"
5168                          || test ! -s conftest.err'
5169   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5170   (eval $ac_try) 2>&5
5171   ac_status=$?
5172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5173   (exit $ac_status); }; } &&
5174          { ac_try='test -s conftest.$ac_objext'
5175   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5176   (eval $ac_try) 2>&5
5177   ac_status=$?
5178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5179   (exit $ac_status); }; }; then
5180   ac_hi=-1 ac_mid=-1
5181   while :; do
5182     cat >conftest.$ac_ext <<_ACEOF
5183 /* confdefs.h.  */
5184 _ACEOF
5185 cat confdefs.h >>conftest.$ac_ext
5186 cat >>conftest.$ac_ext <<_ACEOF
5187 /* end confdefs.h.  */
5188 $ac_includes_default
5189 int
5190 main ()
5191 {
5192 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
5193 test_array [0] = 0
5194
5195   ;
5196   return 0;
5197 }
5198 _ACEOF
5199 rm -f conftest.$ac_objext
5200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5201   (eval $ac_compile) 2>conftest.er1
5202   ac_status=$?
5203   grep -v '^ *+' conftest.er1 >conftest.err
5204   rm -f conftest.er1
5205   cat conftest.err >&5
5206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5207   (exit $ac_status); } &&
5208          { ac_try='test -z "$ac_c_werror_flag"
5209                          || test ! -s conftest.err'
5210   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5211   (eval $ac_try) 2>&5
5212   ac_status=$?
5213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5214   (exit $ac_status); }; } &&
5215          { ac_try='test -s conftest.$ac_objext'
5216   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5217   (eval $ac_try) 2>&5
5218   ac_status=$?
5219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5220   (exit $ac_status); }; }; then
5221   ac_lo=$ac_mid; break
5222 else
5223   echo "$as_me: failed program was:" >&5
5224 sed 's/^/| /' conftest.$ac_ext >&5
5225
5226 ac_hi=`expr '(' $ac_mid ')' - 1`
5227                        if test $ac_mid -le $ac_hi; then
5228                          ac_lo= ac_hi=
5229                          break
5230                        fi
5231                        ac_mid=`expr 2 '*' $ac_mid`
5232 fi
5233 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5234   done
5235 else
5236   echo "$as_me: failed program was:" >&5
5237 sed 's/^/| /' conftest.$ac_ext >&5
5238
5239 ac_lo= ac_hi=
5240 fi
5241 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5242 fi
5243 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5244 # Binary search between lo and hi bounds.
5245 while test "x$ac_lo" != "x$ac_hi"; do
5246   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5247   cat >conftest.$ac_ext <<_ACEOF
5248 /* confdefs.h.  */
5249 _ACEOF
5250 cat confdefs.h >>conftest.$ac_ext
5251 cat >>conftest.$ac_ext <<_ACEOF
5252 /* end confdefs.h.  */
5253 $ac_includes_default
5254 int
5255 main ()
5256 {
5257 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
5258 test_array [0] = 0
5259
5260   ;
5261   return 0;
5262 }
5263 _ACEOF
5264 rm -f conftest.$ac_objext
5265 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5266   (eval $ac_compile) 2>conftest.er1
5267   ac_status=$?
5268   grep -v '^ *+' conftest.er1 >conftest.err
5269   rm -f conftest.er1
5270   cat conftest.err >&5
5271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5272   (exit $ac_status); } &&
5273          { ac_try='test -z "$ac_c_werror_flag"
5274                          || test ! -s conftest.err'
5275   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5276   (eval $ac_try) 2>&5
5277   ac_status=$?
5278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5279   (exit $ac_status); }; } &&
5280          { ac_try='test -s conftest.$ac_objext'
5281   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5282   (eval $ac_try) 2>&5
5283   ac_status=$?
5284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5285   (exit $ac_status); }; }; then
5286   ac_hi=$ac_mid
5287 else
5288   echo "$as_me: failed program was:" >&5
5289 sed 's/^/| /' conftest.$ac_ext >&5
5290
5291 ac_lo=`expr '(' $ac_mid ')' + 1`
5292 fi
5293 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5294 done
5295 case $ac_lo in
5296 ?*) ac_cv_sizeof_short=$ac_lo;;
5297 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
5298 See \`config.log' for more details." >&5
5299 echo "$as_me: error: cannot compute sizeof (short), 77
5300 See \`config.log' for more details." >&2;}
5301    { (exit 1); exit 1; }; } ;;
5302 esac
5303 else
5304   if test "$cross_compiling" = yes; then
5305   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5306 See \`config.log' for more details." >&5
5307 echo "$as_me: error: cannot run test program while cross compiling
5308 See \`config.log' for more details." >&2;}
5309    { (exit 1); exit 1; }; }
5310 else
5311   cat >conftest.$ac_ext <<_ACEOF
5312 /* confdefs.h.  */
5313 _ACEOF
5314 cat confdefs.h >>conftest.$ac_ext
5315 cat >>conftest.$ac_ext <<_ACEOF
5316 /* end confdefs.h.  */
5317 $ac_includes_default
5318 long longval () { return (long) (sizeof (short)); }
5319 unsigned long ulongval () { return (long) (sizeof (short)); }
5320 #include <stdio.h>
5321 #include <stdlib.h>
5322 int
5323 main ()
5324 {
5325
5326   FILE *f = fopen ("conftest.val", "w");
5327   if (! f)
5328     exit (1);
5329   if (((long) (sizeof (short))) < 0)
5330     {
5331       long i = longval ();
5332       if (i != ((long) (sizeof (short))))
5333         exit (1);
5334       fprintf (f, "%ld\n", i);
5335     }
5336   else
5337     {
5338       unsigned long i = ulongval ();
5339       if (i != ((long) (sizeof (short))))
5340         exit (1);
5341       fprintf (f, "%lu\n", i);
5342     }
5343   exit (ferror (f) || fclose (f) != 0);
5344
5345   ;
5346   return 0;
5347 }
5348 _ACEOF
5349 rm -f conftest$ac_exeext
5350 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5351   (eval $ac_link) 2>&5
5352   ac_status=$?
5353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5354   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5355   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5356   (eval $ac_try) 2>&5
5357   ac_status=$?
5358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5359   (exit $ac_status); }; }; then
5360   ac_cv_sizeof_short=`cat conftest.val`
5361 else
5362   echo "$as_me: program exited with status $ac_status" >&5
5363 echo "$as_me: failed program was:" >&5
5364 sed 's/^/| /' conftest.$ac_ext >&5
5365
5366 ( exit $ac_status )
5367 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
5368 See \`config.log' for more details." >&5
5369 echo "$as_me: error: cannot compute sizeof (short), 77
5370 See \`config.log' for more details." >&2;}
5371    { (exit 1); exit 1; }; }
5372 fi
5373 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5374 fi
5375 fi
5376 rm -f conftest.val
5377 else
5378   ac_cv_sizeof_short=0
5379 fi
5380 fi
5381 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
5382 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
5383 cat >>confdefs.h <<_ACEOF
5384 #define SIZEOF_SHORT $ac_cv_sizeof_short
5385 _ACEOF
5386
5387
5388 echo "$as_me:$LINENO: checking for int" >&5
5389 echo $ECHO_N "checking for int... $ECHO_C" >&6
5390 if test "${ac_cv_type_int+set}" = set; then
5391   echo $ECHO_N "(cached) $ECHO_C" >&6
5392 else
5393   cat >conftest.$ac_ext <<_ACEOF
5394 /* confdefs.h.  */
5395 _ACEOF
5396 cat confdefs.h >>conftest.$ac_ext
5397 cat >>conftest.$ac_ext <<_ACEOF
5398 /* end confdefs.h.  */
5399 $ac_includes_default
5400 int
5401 main ()
5402 {
5403 if ((int *) 0)
5404   return 0;
5405 if (sizeof (int))
5406   return 0;
5407   ;
5408   return 0;
5409 }
5410 _ACEOF
5411 rm -f conftest.$ac_objext
5412 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5413   (eval $ac_compile) 2>conftest.er1
5414   ac_status=$?
5415   grep -v '^ *+' conftest.er1 >conftest.err
5416   rm -f conftest.er1
5417   cat conftest.err >&5
5418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5419   (exit $ac_status); } &&
5420          { ac_try='test -z "$ac_c_werror_flag"
5421                          || test ! -s conftest.err'
5422   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5423   (eval $ac_try) 2>&5
5424   ac_status=$?
5425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5426   (exit $ac_status); }; } &&
5427          { ac_try='test -s conftest.$ac_objext'
5428   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5429   (eval $ac_try) 2>&5
5430   ac_status=$?
5431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5432   (exit $ac_status); }; }; then
5433   ac_cv_type_int=yes
5434 else
5435   echo "$as_me: failed program was:" >&5
5436 sed 's/^/| /' conftest.$ac_ext >&5
5437
5438 ac_cv_type_int=no
5439 fi
5440 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5441 fi
5442 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
5443 echo "${ECHO_T}$ac_cv_type_int" >&6
5444
5445 echo "$as_me:$LINENO: checking size of int" >&5
5446 echo $ECHO_N "checking size of int... $ECHO_C" >&6
5447 if test "${ac_cv_sizeof_int+set}" = set; then
5448   echo $ECHO_N "(cached) $ECHO_C" >&6
5449 else
5450   if test "$ac_cv_type_int" = yes; then
5451   # The cast to unsigned long works around a bug in the HP C Compiler
5452   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5453   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5454   # This bug is HP SR number 8606223364.
5455   if test "$cross_compiling" = yes; then
5456   # Depending upon the size, compute the lo and hi bounds.
5457 cat >conftest.$ac_ext <<_ACEOF
5458 /* confdefs.h.  */
5459 _ACEOF
5460 cat confdefs.h >>conftest.$ac_ext
5461 cat >>conftest.$ac_ext <<_ACEOF
5462 /* end confdefs.h.  */
5463 $ac_includes_default
5464 int
5465 main ()
5466 {
5467 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
5468 test_array [0] = 0
5469
5470   ;
5471   return 0;
5472 }
5473 _ACEOF
5474 rm -f conftest.$ac_objext
5475 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5476   (eval $ac_compile) 2>conftest.er1
5477   ac_status=$?
5478   grep -v '^ *+' conftest.er1 >conftest.err
5479   rm -f conftest.er1
5480   cat conftest.err >&5
5481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5482   (exit $ac_status); } &&
5483          { ac_try='test -z "$ac_c_werror_flag"
5484                          || test ! -s conftest.err'
5485   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5486   (eval $ac_try) 2>&5
5487   ac_status=$?
5488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5489   (exit $ac_status); }; } &&
5490          { ac_try='test -s conftest.$ac_objext'
5491   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5492   (eval $ac_try) 2>&5
5493   ac_status=$?
5494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5495   (exit $ac_status); }; }; then
5496   ac_lo=0 ac_mid=0
5497   while :; do
5498     cat >conftest.$ac_ext <<_ACEOF
5499 /* confdefs.h.  */
5500 _ACEOF
5501 cat confdefs.h >>conftest.$ac_ext
5502 cat >>conftest.$ac_ext <<_ACEOF
5503 /* end confdefs.h.  */
5504 $ac_includes_default
5505 int
5506 main ()
5507 {
5508 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
5509 test_array [0] = 0
5510
5511   ;
5512   return 0;
5513 }
5514 _ACEOF
5515 rm -f conftest.$ac_objext
5516 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5517   (eval $ac_compile) 2>conftest.er1
5518   ac_status=$?
5519   grep -v '^ *+' conftest.er1 >conftest.err
5520   rm -f conftest.er1
5521   cat conftest.err >&5
5522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5523   (exit $ac_status); } &&
5524          { ac_try='test -z "$ac_c_werror_flag"
5525                          || test ! -s conftest.err'
5526   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5527   (eval $ac_try) 2>&5
5528   ac_status=$?
5529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5530   (exit $ac_status); }; } &&
5531          { ac_try='test -s conftest.$ac_objext'
5532   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5533   (eval $ac_try) 2>&5
5534   ac_status=$?
5535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5536   (exit $ac_status); }; }; then
5537   ac_hi=$ac_mid; break
5538 else
5539   echo "$as_me: failed program was:" >&5
5540 sed 's/^/| /' conftest.$ac_ext >&5
5541
5542 ac_lo=`expr $ac_mid + 1`
5543                     if test $ac_lo -le $ac_mid; then
5544                       ac_lo= ac_hi=
5545                       break
5546                     fi
5547                     ac_mid=`expr 2 '*' $ac_mid + 1`
5548 fi
5549 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5550   done
5551 else
5552   echo "$as_me: failed program was:" >&5
5553 sed 's/^/| /' conftest.$ac_ext >&5
5554
5555 cat >conftest.$ac_ext <<_ACEOF
5556 /* confdefs.h.  */
5557 _ACEOF
5558 cat confdefs.h >>conftest.$ac_ext
5559 cat >>conftest.$ac_ext <<_ACEOF
5560 /* end confdefs.h.  */
5561 $ac_includes_default
5562 int
5563 main ()
5564 {
5565 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
5566 test_array [0] = 0
5567
5568   ;
5569   return 0;
5570 }
5571 _ACEOF
5572 rm -f conftest.$ac_objext
5573 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5574   (eval $ac_compile) 2>conftest.er1
5575   ac_status=$?
5576   grep -v '^ *+' conftest.er1 >conftest.err
5577   rm -f conftest.er1
5578   cat conftest.err >&5
5579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5580   (exit $ac_status); } &&
5581          { ac_try='test -z "$ac_c_werror_flag"
5582                          || test ! -s conftest.err'
5583   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5584   (eval $ac_try) 2>&5
5585   ac_status=$?
5586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5587   (exit $ac_status); }; } &&
5588          { ac_try='test -s conftest.$ac_objext'
5589   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5590   (eval $ac_try) 2>&5
5591   ac_status=$?
5592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5593   (exit $ac_status); }; }; then
5594   ac_hi=-1 ac_mid=-1
5595   while :; do
5596     cat >conftest.$ac_ext <<_ACEOF
5597 /* confdefs.h.  */
5598 _ACEOF
5599 cat confdefs.h >>conftest.$ac_ext
5600 cat >>conftest.$ac_ext <<_ACEOF
5601 /* end confdefs.h.  */
5602 $ac_includes_default
5603 int
5604 main ()
5605 {
5606 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
5607 test_array [0] = 0
5608
5609   ;
5610   return 0;
5611 }
5612 _ACEOF
5613 rm -f conftest.$ac_objext
5614 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5615   (eval $ac_compile) 2>conftest.er1
5616   ac_status=$?
5617   grep -v '^ *+' conftest.er1 >conftest.err
5618   rm -f conftest.er1
5619   cat conftest.err >&5
5620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5621   (exit $ac_status); } &&
5622          { ac_try='test -z "$ac_c_werror_flag"
5623                          || test ! -s conftest.err'
5624   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5625   (eval $ac_try) 2>&5
5626   ac_status=$?
5627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5628   (exit $ac_status); }; } &&
5629          { ac_try='test -s conftest.$ac_objext'
5630   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5631   (eval $ac_try) 2>&5
5632   ac_status=$?
5633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5634   (exit $ac_status); }; }; then
5635   ac_lo=$ac_mid; break
5636 else
5637   echo "$as_me: failed program was:" >&5
5638 sed 's/^/| /' conftest.$ac_ext >&5
5639
5640 ac_hi=`expr '(' $ac_mid ')' - 1`
5641                        if test $ac_mid -le $ac_hi; then
5642                          ac_lo= ac_hi=
5643                          break
5644                        fi
5645                        ac_mid=`expr 2 '*' $ac_mid`
5646 fi
5647 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5648   done
5649 else
5650   echo "$as_me: failed program was:" >&5
5651 sed 's/^/| /' conftest.$ac_ext >&5
5652
5653 ac_lo= ac_hi=
5654 fi
5655 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5656 fi
5657 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5658 # Binary search between lo and hi bounds.
5659 while test "x$ac_lo" != "x$ac_hi"; do
5660   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5661   cat >conftest.$ac_ext <<_ACEOF
5662 /* confdefs.h.  */
5663 _ACEOF
5664 cat confdefs.h >>conftest.$ac_ext
5665 cat >>conftest.$ac_ext <<_ACEOF
5666 /* end confdefs.h.  */
5667 $ac_includes_default
5668 int
5669 main ()
5670 {
5671 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
5672 test_array [0] = 0
5673
5674   ;
5675   return 0;
5676 }
5677 _ACEOF
5678 rm -f conftest.$ac_objext
5679 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5680   (eval $ac_compile) 2>conftest.er1
5681   ac_status=$?
5682   grep -v '^ *+' conftest.er1 >conftest.err
5683   rm -f conftest.er1
5684   cat conftest.err >&5
5685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5686   (exit $ac_status); } &&
5687          { ac_try='test -z "$ac_c_werror_flag"
5688                          || test ! -s conftest.err'
5689   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5690   (eval $ac_try) 2>&5
5691   ac_status=$?
5692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5693   (exit $ac_status); }; } &&
5694          { ac_try='test -s conftest.$ac_objext'
5695   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5696   (eval $ac_try) 2>&5
5697   ac_status=$?
5698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5699   (exit $ac_status); }; }; then
5700   ac_hi=$ac_mid
5701 else
5702   echo "$as_me: failed program was:" >&5
5703 sed 's/^/| /' conftest.$ac_ext >&5
5704
5705 ac_lo=`expr '(' $ac_mid ')' + 1`
5706 fi
5707 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5708 done
5709 case $ac_lo in
5710 ?*) ac_cv_sizeof_int=$ac_lo;;
5711 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
5712 See \`config.log' for more details." >&5
5713 echo "$as_me: error: cannot compute sizeof (int), 77
5714 See \`config.log' for more details." >&2;}
5715    { (exit 1); exit 1; }; } ;;
5716 esac
5717 else
5718   if test "$cross_compiling" = yes; then
5719   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5720 See \`config.log' for more details." >&5
5721 echo "$as_me: error: cannot run test program while cross compiling
5722 See \`config.log' for more details." >&2;}
5723    { (exit 1); exit 1; }; }
5724 else
5725   cat >conftest.$ac_ext <<_ACEOF
5726 /* confdefs.h.  */
5727 _ACEOF
5728 cat confdefs.h >>conftest.$ac_ext
5729 cat >>conftest.$ac_ext <<_ACEOF
5730 /* end confdefs.h.  */
5731 $ac_includes_default
5732 long longval () { return (long) (sizeof (int)); }
5733 unsigned long ulongval () { return (long) (sizeof (int)); }
5734 #include <stdio.h>
5735 #include <stdlib.h>
5736 int
5737 main ()
5738 {
5739
5740   FILE *f = fopen ("conftest.val", "w");
5741   if (! f)
5742     exit (1);
5743   if (((long) (sizeof (int))) < 0)
5744     {
5745       long i = longval ();
5746       if (i != ((long) (sizeof (int))))
5747         exit (1);
5748       fprintf (f, "%ld\n", i);
5749     }
5750   else
5751     {
5752       unsigned long i = ulongval ();
5753       if (i != ((long) (sizeof (int))))
5754         exit (1);
5755       fprintf (f, "%lu\n", i);
5756     }
5757   exit (ferror (f) || fclose (f) != 0);
5758
5759   ;
5760   return 0;
5761 }
5762 _ACEOF
5763 rm -f conftest$ac_exeext
5764 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5765   (eval $ac_link) 2>&5
5766   ac_status=$?
5767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5768   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5769   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5770   (eval $ac_try) 2>&5
5771   ac_status=$?
5772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5773   (exit $ac_status); }; }; then
5774   ac_cv_sizeof_int=`cat conftest.val`
5775 else
5776   echo "$as_me: program exited with status $ac_status" >&5
5777 echo "$as_me: failed program was:" >&5
5778 sed 's/^/| /' conftest.$ac_ext >&5
5779
5780 ( exit $ac_status )
5781 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
5782 See \`config.log' for more details." >&5
5783 echo "$as_me: error: cannot compute sizeof (int), 77
5784 See \`config.log' for more details." >&2;}
5785    { (exit 1); exit 1; }; }
5786 fi
5787 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5788 fi
5789 fi
5790 rm -f conftest.val
5791 else
5792   ac_cv_sizeof_int=0
5793 fi
5794 fi
5795 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
5796 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
5797 cat >>confdefs.h <<_ACEOF
5798 #define SIZEOF_INT $ac_cv_sizeof_int
5799 _ACEOF
5800
5801
5802 echo "$as_me:$LINENO: checking for long" >&5
5803 echo $ECHO_N "checking for long... $ECHO_C" >&6
5804 if test "${ac_cv_type_long+set}" = set; then
5805   echo $ECHO_N "(cached) $ECHO_C" >&6
5806 else
5807   cat >conftest.$ac_ext <<_ACEOF
5808 /* confdefs.h.  */
5809 _ACEOF
5810 cat confdefs.h >>conftest.$ac_ext
5811 cat >>conftest.$ac_ext <<_ACEOF
5812 /* end confdefs.h.  */
5813 $ac_includes_default
5814 int
5815 main ()
5816 {
5817 if ((long *) 0)
5818   return 0;
5819 if (sizeof (long))
5820   return 0;
5821   ;
5822   return 0;
5823 }
5824 _ACEOF
5825 rm -f conftest.$ac_objext
5826 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5827   (eval $ac_compile) 2>conftest.er1
5828   ac_status=$?
5829   grep -v '^ *+' conftest.er1 >conftest.err
5830   rm -f conftest.er1
5831   cat conftest.err >&5
5832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5833   (exit $ac_status); } &&
5834          { ac_try='test -z "$ac_c_werror_flag"
5835                          || test ! -s conftest.err'
5836   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5837   (eval $ac_try) 2>&5
5838   ac_status=$?
5839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5840   (exit $ac_status); }; } &&
5841          { ac_try='test -s conftest.$ac_objext'
5842   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5843   (eval $ac_try) 2>&5
5844   ac_status=$?
5845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5846   (exit $ac_status); }; }; then
5847   ac_cv_type_long=yes
5848 else
5849   echo "$as_me: failed program was:" >&5
5850 sed 's/^/| /' conftest.$ac_ext >&5
5851
5852 ac_cv_type_long=no
5853 fi
5854 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5855 fi
5856 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
5857 echo "${ECHO_T}$ac_cv_type_long" >&6
5858
5859 echo "$as_me:$LINENO: checking size of long" >&5
5860 echo $ECHO_N "checking size of long... $ECHO_C" >&6
5861 if test "${ac_cv_sizeof_long+set}" = set; then
5862   echo $ECHO_N "(cached) $ECHO_C" >&6
5863 else
5864   if test "$ac_cv_type_long" = yes; then
5865   # The cast to unsigned long works around a bug in the HP C Compiler
5866   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5867   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5868   # This bug is HP SR number 8606223364.
5869   if test "$cross_compiling" = yes; then
5870   # Depending upon the size, compute the lo and hi bounds.
5871 cat >conftest.$ac_ext <<_ACEOF
5872 /* confdefs.h.  */
5873 _ACEOF
5874 cat confdefs.h >>conftest.$ac_ext
5875 cat >>conftest.$ac_ext <<_ACEOF
5876 /* end confdefs.h.  */
5877 $ac_includes_default
5878 int
5879 main ()
5880 {
5881 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
5882 test_array [0] = 0
5883
5884   ;
5885   return 0;
5886 }
5887 _ACEOF
5888 rm -f conftest.$ac_objext
5889 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5890   (eval $ac_compile) 2>conftest.er1
5891   ac_status=$?
5892   grep -v '^ *+' conftest.er1 >conftest.err
5893   rm -f conftest.er1
5894   cat conftest.err >&5
5895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5896   (exit $ac_status); } &&
5897          { ac_try='test -z "$ac_c_werror_flag"
5898                          || test ! -s conftest.err'
5899   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5900   (eval $ac_try) 2>&5
5901   ac_status=$?
5902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5903   (exit $ac_status); }; } &&
5904          { ac_try='test -s conftest.$ac_objext'
5905   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5906   (eval $ac_try) 2>&5
5907   ac_status=$?
5908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5909   (exit $ac_status); }; }; then
5910   ac_lo=0 ac_mid=0
5911   while :; do
5912     cat >conftest.$ac_ext <<_ACEOF
5913 /* confdefs.h.  */
5914 _ACEOF
5915 cat confdefs.h >>conftest.$ac_ext
5916 cat >>conftest.$ac_ext <<_ACEOF
5917 /* end confdefs.h.  */
5918 $ac_includes_default
5919 int
5920 main ()
5921 {
5922 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5923 test_array [0] = 0
5924
5925   ;
5926   return 0;
5927 }
5928 _ACEOF
5929 rm -f conftest.$ac_objext
5930 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5931   (eval $ac_compile) 2>conftest.er1
5932   ac_status=$?
5933   grep -v '^ *+' conftest.er1 >conftest.err
5934   rm -f conftest.er1
5935   cat conftest.err >&5
5936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5937   (exit $ac_status); } &&
5938          { ac_try='test -z "$ac_c_werror_flag"
5939                          || test ! -s conftest.err'
5940   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5941   (eval $ac_try) 2>&5
5942   ac_status=$?
5943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5944   (exit $ac_status); }; } &&
5945          { ac_try='test -s conftest.$ac_objext'
5946   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5947   (eval $ac_try) 2>&5
5948   ac_status=$?
5949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5950   (exit $ac_status); }; }; then
5951   ac_hi=$ac_mid; break
5952 else
5953   echo "$as_me: failed program was:" >&5
5954 sed 's/^/| /' conftest.$ac_ext >&5
5955
5956 ac_lo=`expr $ac_mid + 1`
5957                     if test $ac_lo -le $ac_mid; then
5958                       ac_lo= ac_hi=
5959                       break
5960                     fi
5961                     ac_mid=`expr 2 '*' $ac_mid + 1`
5962 fi
5963 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5964   done
5965 else
5966   echo "$as_me: failed program was:" >&5
5967 sed 's/^/| /' conftest.$ac_ext >&5
5968
5969 cat >conftest.$ac_ext <<_ACEOF
5970 /* confdefs.h.  */
5971 _ACEOF
5972 cat confdefs.h >>conftest.$ac_ext
5973 cat >>conftest.$ac_ext <<_ACEOF
5974 /* end confdefs.h.  */
5975 $ac_includes_default
5976 int
5977 main ()
5978 {
5979 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
5980 test_array [0] = 0
5981
5982   ;
5983   return 0;
5984 }
5985 _ACEOF
5986 rm -f conftest.$ac_objext
5987 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5988   (eval $ac_compile) 2>conftest.er1
5989   ac_status=$?
5990   grep -v '^ *+' conftest.er1 >conftest.err
5991   rm -f conftest.er1
5992   cat conftest.err >&5
5993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5994   (exit $ac_status); } &&
5995          { ac_try='test -z "$ac_c_werror_flag"
5996                          || test ! -s conftest.err'
5997   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5998   (eval $ac_try) 2>&5
5999   ac_status=$?
6000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6001   (exit $ac_status); }; } &&
6002          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
6008   ac_hi=-1 ac_mid=-1
6009   while :; do
6010     cat >conftest.$ac_ext <<_ACEOF
6011 /* confdefs.h.  */
6012 _ACEOF
6013 cat confdefs.h >>conftest.$ac_ext
6014 cat >>conftest.$ac_ext <<_ACEOF
6015 /* end confdefs.h.  */
6016 $ac_includes_default
6017 int
6018 main ()
6019 {
6020 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
6021 test_array [0] = 0
6022
6023   ;
6024   return 0;
6025 }
6026 _ACEOF
6027 rm -f conftest.$ac_objext
6028 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6029   (eval $ac_compile) 2>conftest.er1
6030   ac_status=$?
6031   grep -v '^ *+' conftest.er1 >conftest.err
6032   rm -f conftest.er1
6033   cat conftest.err >&5
6034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6035   (exit $ac_status); } &&
6036          { ac_try='test -z "$ac_c_werror_flag"
6037                          || test ! -s conftest.err'
6038   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6039   (eval $ac_try) 2>&5
6040   ac_status=$?
6041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6042   (exit $ac_status); }; } &&
6043          { ac_try='test -s conftest.$ac_objext'
6044   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6045   (eval $ac_try) 2>&5
6046   ac_status=$?
6047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6048   (exit $ac_status); }; }; then
6049   ac_lo=$ac_mid; break
6050 else
6051   echo "$as_me: failed program was:" >&5
6052 sed 's/^/| /' conftest.$ac_ext >&5
6053
6054 ac_hi=`expr '(' $ac_mid ')' - 1`
6055                        if test $ac_mid -le $ac_hi; then
6056                          ac_lo= ac_hi=
6057                          break
6058                        fi
6059                        ac_mid=`expr 2 '*' $ac_mid`
6060 fi
6061 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6062   done
6063 else
6064   echo "$as_me: failed program was:" >&5
6065 sed 's/^/| /' conftest.$ac_ext >&5
6066
6067 ac_lo= ac_hi=
6068 fi
6069 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6070 fi
6071 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6072 # Binary search between lo and hi bounds.
6073 while test "x$ac_lo" != "x$ac_hi"; do
6074   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6075   cat >conftest.$ac_ext <<_ACEOF
6076 /* confdefs.h.  */
6077 _ACEOF
6078 cat confdefs.h >>conftest.$ac_ext
6079 cat >>conftest.$ac_ext <<_ACEOF
6080 /* end confdefs.h.  */
6081 $ac_includes_default
6082 int
6083 main ()
6084 {
6085 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
6086 test_array [0] = 0
6087
6088   ;
6089   return 0;
6090 }
6091 _ACEOF
6092 rm -f conftest.$ac_objext
6093 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6094   (eval $ac_compile) 2>conftest.er1
6095   ac_status=$?
6096   grep -v '^ *+' conftest.er1 >conftest.err
6097   rm -f conftest.er1
6098   cat conftest.err >&5
6099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6100   (exit $ac_status); } &&
6101          { ac_try='test -z "$ac_c_werror_flag"
6102                          || test ! -s conftest.err'
6103   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6104   (eval $ac_try) 2>&5
6105   ac_status=$?
6106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6107   (exit $ac_status); }; } &&
6108          { ac_try='test -s conftest.$ac_objext'
6109   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6110   (eval $ac_try) 2>&5
6111   ac_status=$?
6112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6113   (exit $ac_status); }; }; then
6114   ac_hi=$ac_mid
6115 else
6116   echo "$as_me: failed program was:" >&5
6117 sed 's/^/| /' conftest.$ac_ext >&5
6118
6119 ac_lo=`expr '(' $ac_mid ')' + 1`
6120 fi
6121 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6122 done
6123 case $ac_lo in
6124 ?*) ac_cv_sizeof_long=$ac_lo;;
6125 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
6126 See \`config.log' for more details." >&5
6127 echo "$as_me: error: cannot compute sizeof (long), 77
6128 See \`config.log' for more details." >&2;}
6129    { (exit 1); exit 1; }; } ;;
6130 esac
6131 else
6132   if test "$cross_compiling" = yes; then
6133   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6134 See \`config.log' for more details." >&5
6135 echo "$as_me: error: cannot run test program while cross compiling
6136 See \`config.log' for more details." >&2;}
6137    { (exit 1); exit 1; }; }
6138 else
6139   cat >conftest.$ac_ext <<_ACEOF
6140 /* confdefs.h.  */
6141 _ACEOF
6142 cat confdefs.h >>conftest.$ac_ext
6143 cat >>conftest.$ac_ext <<_ACEOF
6144 /* end confdefs.h.  */
6145 $ac_includes_default
6146 long longval () { return (long) (sizeof (long)); }
6147 unsigned long ulongval () { return (long) (sizeof (long)); }
6148 #include <stdio.h>
6149 #include <stdlib.h>
6150 int
6151 main ()
6152 {
6153
6154   FILE *f = fopen ("conftest.val", "w");
6155   if (! f)
6156     exit (1);
6157   if (((long) (sizeof (long))) < 0)
6158     {
6159       long i = longval ();
6160       if (i != ((long) (sizeof (long))))
6161         exit (1);
6162       fprintf (f, "%ld\n", i);
6163     }
6164   else
6165     {
6166       unsigned long i = ulongval ();
6167       if (i != ((long) (sizeof (long))))
6168         exit (1);
6169       fprintf (f, "%lu\n", i);
6170     }
6171   exit (ferror (f) || fclose (f) != 0);
6172
6173   ;
6174   return 0;
6175 }
6176 _ACEOF
6177 rm -f conftest$ac_exeext
6178 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6179   (eval $ac_link) 2>&5
6180   ac_status=$?
6181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6182   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6183   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6184   (eval $ac_try) 2>&5
6185   ac_status=$?
6186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6187   (exit $ac_status); }; }; then
6188   ac_cv_sizeof_long=`cat conftest.val`
6189 else
6190   echo "$as_me: program exited with status $ac_status" >&5
6191 echo "$as_me: failed program was:" >&5
6192 sed 's/^/| /' conftest.$ac_ext >&5
6193
6194 ( exit $ac_status )
6195 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
6196 See \`config.log' for more details." >&5
6197 echo "$as_me: error: cannot compute sizeof (long), 77
6198 See \`config.log' for more details." >&2;}
6199    { (exit 1); exit 1; }; }
6200 fi
6201 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6202 fi
6203 fi
6204 rm -f conftest.val
6205 else
6206   ac_cv_sizeof_long=0
6207 fi
6208 fi
6209 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
6210 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
6211 cat >>confdefs.h <<_ACEOF
6212 #define SIZEOF_LONG $ac_cv_sizeof_long
6213 _ACEOF
6214
6215
6216 echo "$as_me:$LINENO: checking for void *" >&5
6217 echo $ECHO_N "checking for void *... $ECHO_C" >&6
6218 if test "${ac_cv_type_void_p+set}" = set; then
6219   echo $ECHO_N "(cached) $ECHO_C" >&6
6220 else
6221   cat >conftest.$ac_ext <<_ACEOF
6222 /* confdefs.h.  */
6223 _ACEOF
6224 cat confdefs.h >>conftest.$ac_ext
6225 cat >>conftest.$ac_ext <<_ACEOF
6226 /* end confdefs.h.  */
6227 $ac_includes_default
6228 int
6229 main ()
6230 {
6231 if ((void * *) 0)
6232   return 0;
6233 if (sizeof (void *))
6234   return 0;
6235   ;
6236   return 0;
6237 }
6238 _ACEOF
6239 rm -f conftest.$ac_objext
6240 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6241   (eval $ac_compile) 2>conftest.er1
6242   ac_status=$?
6243   grep -v '^ *+' conftest.er1 >conftest.err
6244   rm -f conftest.er1
6245   cat conftest.err >&5
6246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6247   (exit $ac_status); } &&
6248          { ac_try='test -z "$ac_c_werror_flag"
6249                          || test ! -s conftest.err'
6250   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6251   (eval $ac_try) 2>&5
6252   ac_status=$?
6253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6254   (exit $ac_status); }; } &&
6255          { ac_try='test -s conftest.$ac_objext'
6256   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6257   (eval $ac_try) 2>&5
6258   ac_status=$?
6259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6260   (exit $ac_status); }; }; then
6261   ac_cv_type_void_p=yes
6262 else
6263   echo "$as_me: failed program was:" >&5
6264 sed 's/^/| /' conftest.$ac_ext >&5
6265
6266 ac_cv_type_void_p=no
6267 fi
6268 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6269 fi
6270 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
6271 echo "${ECHO_T}$ac_cv_type_void_p" >&6
6272
6273 echo "$as_me:$LINENO: checking size of void *" >&5
6274 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
6275 if test "${ac_cv_sizeof_void_p+set}" = set; then
6276   echo $ECHO_N "(cached) $ECHO_C" >&6
6277 else
6278   if test "$ac_cv_type_void_p" = yes; then
6279   # The cast to unsigned long works around a bug in the HP C Compiler
6280   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6281   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6282   # This bug is HP SR number 8606223364.
6283   if test "$cross_compiling" = yes; then
6284   # Depending upon the size, compute the lo and hi bounds.
6285 cat >conftest.$ac_ext <<_ACEOF
6286 /* confdefs.h.  */
6287 _ACEOF
6288 cat confdefs.h >>conftest.$ac_ext
6289 cat >>conftest.$ac_ext <<_ACEOF
6290 /* end confdefs.h.  */
6291 $ac_includes_default
6292 int
6293 main ()
6294 {
6295 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
6296 test_array [0] = 0
6297
6298   ;
6299   return 0;
6300 }
6301 _ACEOF
6302 rm -f conftest.$ac_objext
6303 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6304   (eval $ac_compile) 2>conftest.er1
6305   ac_status=$?
6306   grep -v '^ *+' conftest.er1 >conftest.err
6307   rm -f conftest.er1
6308   cat conftest.err >&5
6309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6310   (exit $ac_status); } &&
6311          { ac_try='test -z "$ac_c_werror_flag"
6312                          || 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"
6353                          || test ! -s conftest.err'
6354   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6355   (eval $ac_try) 2>&5
6356   ac_status=$?
6357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6358   (exit $ac_status); }; } &&
6359          { ac_try='test -s conftest.$ac_objext'
6360   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6361   (eval $ac_try) 2>&5
6362   ac_status=$?
6363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6364   (exit $ac_status); }; }; then
6365   ac_hi=$ac_mid; break
6366 else
6367   echo "$as_me: failed program was:" >&5
6368 sed 's/^/| /' conftest.$ac_ext >&5
6369
6370 ac_lo=`expr $ac_mid + 1`
6371                     if test $ac_lo -le $ac_mid; then
6372                       ac_lo= ac_hi=
6373                       break
6374                     fi
6375                     ac_mid=`expr 2 '*' $ac_mid + 1`
6376 fi
6377 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6378   done
6379 else
6380   echo "$as_me: failed program was:" >&5
6381 sed 's/^/| /' conftest.$ac_ext >&5
6382
6383 cat >conftest.$ac_ext <<_ACEOF
6384 /* confdefs.h.  */
6385 _ACEOF
6386 cat confdefs.h >>conftest.$ac_ext
6387 cat >>conftest.$ac_ext <<_ACEOF
6388 /* end confdefs.h.  */
6389 $ac_includes_default
6390 int
6391 main ()
6392 {
6393 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
6394 test_array [0] = 0
6395
6396   ;
6397   return 0;
6398 }
6399 _ACEOF
6400 rm -f conftest.$ac_objext
6401 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6402   (eval $ac_compile) 2>conftest.er1
6403   ac_status=$?
6404   grep -v '^ *+' conftest.er1 >conftest.err
6405   rm -f conftest.er1
6406   cat conftest.err >&5
6407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6408   (exit $ac_status); } &&
6409          { ac_try='test -z "$ac_c_werror_flag"
6410                          || test ! -s conftest.err'
6411   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6412   (eval $ac_try) 2>&5
6413   ac_status=$?
6414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6415   (exit $ac_status); }; } &&
6416          { ac_try='test -s conftest.$ac_objext'
6417   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6418   (eval $ac_try) 2>&5
6419   ac_status=$?
6420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6421   (exit $ac_status); }; }; then
6422   ac_hi=-1 ac_mid=-1
6423   while :; do
6424     cat >conftest.$ac_ext <<_ACEOF
6425 /* confdefs.h.  */
6426 _ACEOF
6427 cat confdefs.h >>conftest.$ac_ext
6428 cat >>conftest.$ac_ext <<_ACEOF
6429 /* end confdefs.h.  */
6430 $ac_includes_default
6431 int
6432 main ()
6433 {
6434 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
6435 test_array [0] = 0
6436
6437   ;
6438   return 0;
6439 }
6440 _ACEOF
6441 rm -f conftest.$ac_objext
6442 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6443   (eval $ac_compile) 2>conftest.er1
6444   ac_status=$?
6445   grep -v '^ *+' conftest.er1 >conftest.err
6446   rm -f conftest.er1
6447   cat conftest.err >&5
6448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6449   (exit $ac_status); } &&
6450          { ac_try='test -z "$ac_c_werror_flag"
6451                          || test ! -s conftest.err'
6452   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6453   (eval $ac_try) 2>&5
6454   ac_status=$?
6455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6456   (exit $ac_status); }; } &&
6457          { ac_try='test -s conftest.$ac_objext'
6458   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6459   (eval $ac_try) 2>&5
6460   ac_status=$?
6461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6462   (exit $ac_status); }; }; then
6463   ac_lo=$ac_mid; break
6464 else
6465   echo "$as_me: failed program was:" >&5
6466 sed 's/^/| /' conftest.$ac_ext >&5
6467
6468 ac_hi=`expr '(' $ac_mid ')' - 1`
6469                        if test $ac_mid -le $ac_hi; then
6470                          ac_lo= ac_hi=
6471                          break
6472                        fi
6473                        ac_mid=`expr 2 '*' $ac_mid`
6474 fi
6475 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6476   done
6477 else
6478   echo "$as_me: failed program was:" >&5
6479 sed 's/^/| /' conftest.$ac_ext >&5
6480
6481 ac_lo= ac_hi=
6482 fi
6483 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6484 fi
6485 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6486 # Binary search between lo and hi bounds.
6487 while test "x$ac_lo" != "x$ac_hi"; do
6488   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6489   cat >conftest.$ac_ext <<_ACEOF
6490 /* confdefs.h.  */
6491 _ACEOF
6492 cat confdefs.h >>conftest.$ac_ext
6493 cat >>conftest.$ac_ext <<_ACEOF
6494 /* end confdefs.h.  */
6495 $ac_includes_default
6496 int
6497 main ()
6498 {
6499 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
6500 test_array [0] = 0
6501
6502   ;
6503   return 0;
6504 }
6505 _ACEOF
6506 rm -f conftest.$ac_objext
6507 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6508   (eval $ac_compile) 2>conftest.er1
6509   ac_status=$?
6510   grep -v '^ *+' conftest.er1 >conftest.err
6511   rm -f conftest.er1
6512   cat conftest.err >&5
6513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6514   (exit $ac_status); } &&
6515          { ac_try='test -z "$ac_c_werror_flag"
6516                          || test ! -s conftest.err'
6517   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6518   (eval $ac_try) 2>&5
6519   ac_status=$?
6520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6521   (exit $ac_status); }; } &&
6522          { ac_try='test -s conftest.$ac_objext'
6523   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6524   (eval $ac_try) 2>&5
6525   ac_status=$?
6526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6527   (exit $ac_status); }; }; then
6528   ac_hi=$ac_mid
6529 else
6530   echo "$as_me: failed program was:" >&5
6531 sed 's/^/| /' conftest.$ac_ext >&5
6532
6533 ac_lo=`expr '(' $ac_mid ')' + 1`
6534 fi
6535 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6536 done
6537 case $ac_lo in
6538 ?*) ac_cv_sizeof_void_p=$ac_lo;;
6539 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
6540 See \`config.log' for more details." >&5
6541 echo "$as_me: error: cannot compute sizeof (void *), 77
6542 See \`config.log' for more details." >&2;}
6543    { (exit 1); exit 1; }; } ;;
6544 esac
6545 else
6546   if test "$cross_compiling" = yes; then
6547   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6548 See \`config.log' for more details." >&5
6549 echo "$as_me: error: cannot run test program while cross compiling
6550 See \`config.log' for more details." >&2;}
6551    { (exit 1); exit 1; }; }
6552 else
6553   cat >conftest.$ac_ext <<_ACEOF
6554 /* confdefs.h.  */
6555 _ACEOF
6556 cat confdefs.h >>conftest.$ac_ext
6557 cat >>conftest.$ac_ext <<_ACEOF
6558 /* end confdefs.h.  */
6559 $ac_includes_default
6560 long longval () { return (long) (sizeof (void *)); }
6561 unsigned long ulongval () { return (long) (sizeof (void *)); }
6562 #include <stdio.h>
6563 #include <stdlib.h>
6564 int
6565 main ()
6566 {
6567
6568   FILE *f = fopen ("conftest.val", "w");
6569   if (! f)
6570     exit (1);
6571   if (((long) (sizeof (void *))) < 0)
6572     {
6573       long i = longval ();
6574       if (i != ((long) (sizeof (void *))))
6575         exit (1);
6576       fprintf (f, "%ld\n", i);
6577     }
6578   else
6579     {
6580       unsigned long i = ulongval ();
6581       if (i != ((long) (sizeof (void *))))
6582         exit (1);
6583       fprintf (f, "%lu\n", i);
6584     }
6585   exit (ferror (f) || fclose (f) != 0);
6586
6587   ;
6588   return 0;
6589 }
6590 _ACEOF
6591 rm -f conftest$ac_exeext
6592 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6593   (eval $ac_link) 2>&5
6594   ac_status=$?
6595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6596   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6597   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6598   (eval $ac_try) 2>&5
6599   ac_status=$?
6600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6601   (exit $ac_status); }; }; then
6602   ac_cv_sizeof_void_p=`cat conftest.val`
6603 else
6604   echo "$as_me: program exited with status $ac_status" >&5
6605 echo "$as_me: failed program was:" >&5
6606 sed 's/^/| /' conftest.$ac_ext >&5
6607
6608 ( exit $ac_status )
6609 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
6610 See \`config.log' for more details." >&5
6611 echo "$as_me: error: cannot compute sizeof (void *), 77
6612 See \`config.log' for more details." >&2;}
6613    { (exit 1); exit 1; }; }
6614 fi
6615 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6616 fi
6617 fi
6618 rm -f conftest.val
6619 else
6620   ac_cv_sizeof_void_p=0
6621 fi
6622 fi
6623 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
6624 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
6625 cat >>confdefs.h <<_ACEOF
6626 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
6627 _ACEOF
6628
6629
6630 echo "$as_me:$LINENO: checking for int64_t" >&5
6631 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
6632 if test "${ac_cv_type_int64_t+set}" = set; then
6633   echo $ECHO_N "(cached) $ECHO_C" >&6
6634 else
6635   cat >conftest.$ac_ext <<_ACEOF
6636 /* confdefs.h.  */
6637 _ACEOF
6638 cat confdefs.h >>conftest.$ac_ext
6639 cat >>conftest.$ac_ext <<_ACEOF
6640 /* end confdefs.h.  */
6641 $ac_includes_default
6642 int
6643 main ()
6644 {
6645 if ((int64_t *) 0)
6646   return 0;
6647 if (sizeof (int64_t))
6648   return 0;
6649   ;
6650   return 0;
6651 }
6652 _ACEOF
6653 rm -f conftest.$ac_objext
6654 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6655   (eval $ac_compile) 2>conftest.er1
6656   ac_status=$?
6657   grep -v '^ *+' conftest.er1 >conftest.err
6658   rm -f conftest.er1
6659   cat conftest.err >&5
6660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6661   (exit $ac_status); } &&
6662          { ac_try='test -z "$ac_c_werror_flag"
6663                          || test ! -s conftest.err'
6664   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6665   (eval $ac_try) 2>&5
6666   ac_status=$?
6667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6668   (exit $ac_status); }; } &&
6669          { ac_try='test -s conftest.$ac_objext'
6670   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6671   (eval $ac_try) 2>&5
6672   ac_status=$?
6673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6674   (exit $ac_status); }; }; then
6675   ac_cv_type_int64_t=yes
6676 else
6677   echo "$as_me: failed program was:" >&5
6678 sed 's/^/| /' conftest.$ac_ext >&5
6679
6680 ac_cv_type_int64_t=no
6681 fi
6682 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6683 fi
6684 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
6685 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
6686
6687 echo "$as_me:$LINENO: checking size of int64_t" >&5
6688 echo $ECHO_N "checking size of int64_t... $ECHO_C" >&6
6689 if test "${ac_cv_sizeof_int64_t+set}" = set; then
6690   echo $ECHO_N "(cached) $ECHO_C" >&6
6691 else
6692   if test "$ac_cv_type_int64_t" = yes; then
6693   # The cast to unsigned long works around a bug in the HP C Compiler
6694   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6695   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6696   # This bug is HP SR number 8606223364.
6697   if test "$cross_compiling" = yes; then
6698   # Depending upon the size, compute the lo and hi bounds.
6699 cat >conftest.$ac_ext <<_ACEOF
6700 /* confdefs.h.  */
6701 _ACEOF
6702 cat confdefs.h >>conftest.$ac_ext
6703 cat >>conftest.$ac_ext <<_ACEOF
6704 /* end confdefs.h.  */
6705 $ac_includes_default
6706 int
6707 main ()
6708 {
6709 static int test_array [1 - 2 * !(((long) (sizeof (int64_t))) >= 0)];
6710 test_array [0] = 0
6711
6712   ;
6713   return 0;
6714 }
6715 _ACEOF
6716 rm -f conftest.$ac_objext
6717 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6718   (eval $ac_compile) 2>conftest.er1
6719   ac_status=$?
6720   grep -v '^ *+' conftest.er1 >conftest.err
6721   rm -f conftest.er1
6722   cat conftest.err >&5
6723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6724   (exit $ac_status); } &&
6725          { ac_try='test -z "$ac_c_werror_flag"
6726                          || test ! -s conftest.err'
6727   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6728   (eval $ac_try) 2>&5
6729   ac_status=$?
6730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6731   (exit $ac_status); }; } &&
6732          { ac_try='test -s conftest.$ac_objext'
6733   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6734   (eval $ac_try) 2>&5
6735   ac_status=$?
6736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6737   (exit $ac_status); }; }; then
6738   ac_lo=0 ac_mid=0
6739   while :; do
6740     cat >conftest.$ac_ext <<_ACEOF
6741 /* confdefs.h.  */
6742 _ACEOF
6743 cat confdefs.h >>conftest.$ac_ext
6744 cat >>conftest.$ac_ext <<_ACEOF
6745 /* end confdefs.h.  */
6746 $ac_includes_default
6747 int
6748 main ()
6749 {
6750 static int test_array [1 - 2 * !(((long) (sizeof (int64_t))) <= $ac_mid)];
6751 test_array [0] = 0
6752
6753   ;
6754   return 0;
6755 }
6756 _ACEOF
6757 rm -f conftest.$ac_objext
6758 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6759   (eval $ac_compile) 2>conftest.er1
6760   ac_status=$?
6761   grep -v '^ *+' conftest.er1 >conftest.err
6762   rm -f conftest.er1
6763   cat conftest.err >&5
6764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6765   (exit $ac_status); } &&
6766          { ac_try='test -z "$ac_c_werror_flag"
6767                          || test ! -s conftest.err'
6768   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6769   (eval $ac_try) 2>&5
6770   ac_status=$?
6771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6772   (exit $ac_status); }; } &&
6773          { ac_try='test -s conftest.$ac_objext'
6774   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6775   (eval $ac_try) 2>&5
6776   ac_status=$?
6777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6778   (exit $ac_status); }; }; then
6779   ac_hi=$ac_mid; break
6780 else
6781   echo "$as_me: failed program was:" >&5
6782 sed 's/^/| /' conftest.$ac_ext >&5
6783
6784 ac_lo=`expr $ac_mid + 1`
6785                     if test $ac_lo -le $ac_mid; then
6786                       ac_lo= ac_hi=
6787                       break
6788                     fi
6789                     ac_mid=`expr 2 '*' $ac_mid + 1`
6790 fi
6791 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6792   done
6793 else
6794   echo "$as_me: failed program was:" >&5
6795 sed 's/^/| /' conftest.$ac_ext >&5
6796
6797 cat >conftest.$ac_ext <<_ACEOF
6798 /* confdefs.h.  */
6799 _ACEOF
6800 cat confdefs.h >>conftest.$ac_ext
6801 cat >>conftest.$ac_ext <<_ACEOF
6802 /* end confdefs.h.  */
6803 $ac_includes_default
6804 int
6805 main ()
6806 {
6807 static int test_array [1 - 2 * !(((long) (sizeof (int64_t))) < 0)];
6808 test_array [0] = 0
6809
6810   ;
6811   return 0;
6812 }
6813 _ACEOF
6814 rm -f conftest.$ac_objext
6815 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6816   (eval $ac_compile) 2>conftest.er1
6817   ac_status=$?
6818   grep -v '^ *+' conftest.er1 >conftest.err
6819   rm -f conftest.er1
6820   cat conftest.err >&5
6821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6822   (exit $ac_status); } &&
6823          { ac_try='test -z "$ac_c_werror_flag"
6824                          || test ! -s conftest.err'
6825   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6826   (eval $ac_try) 2>&5
6827   ac_status=$?
6828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6829   (exit $ac_status); }; } &&
6830          { ac_try='test -s conftest.$ac_objext'
6831   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6832   (eval $ac_try) 2>&5
6833   ac_status=$?
6834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6835   (exit $ac_status); }; }; then
6836   ac_hi=-1 ac_mid=-1
6837   while :; do
6838     cat >conftest.$ac_ext <<_ACEOF
6839 /* confdefs.h.  */
6840 _ACEOF
6841 cat confdefs.h >>conftest.$ac_ext
6842 cat >>conftest.$ac_ext <<_ACEOF
6843 /* end confdefs.h.  */
6844 $ac_includes_default
6845 int
6846 main ()
6847 {
6848 static int test_array [1 - 2 * !(((long) (sizeof (int64_t))) >= $ac_mid)];
6849 test_array [0] = 0
6850
6851   ;
6852   return 0;
6853 }
6854 _ACEOF
6855 rm -f conftest.$ac_objext
6856 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6857   (eval $ac_compile) 2>conftest.er1
6858   ac_status=$?
6859   grep -v '^ *+' conftest.er1 >conftest.err
6860   rm -f conftest.er1
6861   cat conftest.err >&5
6862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6863   (exit $ac_status); } &&
6864          { ac_try='test -z "$ac_c_werror_flag"
6865                          || test ! -s conftest.err'
6866   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6867   (eval $ac_try) 2>&5
6868   ac_status=$?
6869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6870   (exit $ac_status); }; } &&
6871          { ac_try='test -s conftest.$ac_objext'
6872   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6873   (eval $ac_try) 2>&5
6874   ac_status=$?
6875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6876   (exit $ac_status); }; }; then
6877   ac_lo=$ac_mid; break
6878 else
6879   echo "$as_me: failed program was:" >&5
6880 sed 's/^/| /' conftest.$ac_ext >&5
6881
6882 ac_hi=`expr '(' $ac_mid ')' - 1`
6883                        if test $ac_mid -le $ac_hi; then
6884                          ac_lo= ac_hi=
6885                          break
6886                        fi
6887                        ac_mid=`expr 2 '*' $ac_mid`
6888 fi
6889 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6890   done
6891 else
6892   echo "$as_me: failed program was:" >&5
6893 sed 's/^/| /' conftest.$ac_ext >&5
6894
6895 ac_lo= ac_hi=
6896 fi
6897 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6898 fi
6899 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6900 # Binary search between lo and hi bounds.
6901 while test "x$ac_lo" != "x$ac_hi"; do
6902   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6903   cat >conftest.$ac_ext <<_ACEOF
6904 /* confdefs.h.  */
6905 _ACEOF
6906 cat confdefs.h >>conftest.$ac_ext
6907 cat >>conftest.$ac_ext <<_ACEOF
6908 /* end confdefs.h.  */
6909 $ac_includes_default
6910 int
6911 main ()
6912 {
6913 static int test_array [1 - 2 * !(((long) (sizeof (int64_t))) <= $ac_mid)];
6914 test_array [0] = 0
6915
6916   ;
6917   return 0;
6918 }
6919 _ACEOF
6920 rm -f conftest.$ac_objext
6921 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6922   (eval $ac_compile) 2>conftest.er1
6923   ac_status=$?
6924   grep -v '^ *+' conftest.er1 >conftest.err
6925   rm -f conftest.er1
6926   cat conftest.err >&5
6927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6928   (exit $ac_status); } &&
6929          { ac_try='test -z "$ac_c_werror_flag"
6930                          || test ! -s conftest.err'
6931   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6932   (eval $ac_try) 2>&5
6933   ac_status=$?
6934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6935   (exit $ac_status); }; } &&
6936          { ac_try='test -s conftest.$ac_objext'
6937   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6938   (eval $ac_try) 2>&5
6939   ac_status=$?
6940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6941   (exit $ac_status); }; }; then
6942   ac_hi=$ac_mid
6943 else
6944   echo "$as_me: failed program was:" >&5
6945 sed 's/^/| /' conftest.$ac_ext >&5
6946
6947 ac_lo=`expr '(' $ac_mid ')' + 1`
6948 fi
6949 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6950 done
6951 case $ac_lo in
6952 ?*) ac_cv_sizeof_int64_t=$ac_lo;;
6953 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int64_t), 77
6954 See \`config.log' for more details." >&5
6955 echo "$as_me: error: cannot compute sizeof (int64_t), 77
6956 See \`config.log' for more details." >&2;}
6957    { (exit 1); exit 1; }; } ;;
6958 esac
6959 else
6960   if test "$cross_compiling" = yes; then
6961   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6962 See \`config.log' for more details." >&5
6963 echo "$as_me: error: cannot run test program while cross compiling
6964 See \`config.log' for more details." >&2;}
6965    { (exit 1); exit 1; }; }
6966 else
6967   cat >conftest.$ac_ext <<_ACEOF
6968 /* confdefs.h.  */
6969 _ACEOF
6970 cat confdefs.h >>conftest.$ac_ext
6971 cat >>conftest.$ac_ext <<_ACEOF
6972 /* end confdefs.h.  */
6973 $ac_includes_default
6974 long longval () { return (long) (sizeof (int64_t)); }
6975 unsigned long ulongval () { return (long) (sizeof (int64_t)); }
6976 #include <stdio.h>
6977 #include <stdlib.h>
6978 int
6979 main ()
6980 {
6981
6982   FILE *f = fopen ("conftest.val", "w");
6983   if (! f)
6984     exit (1);
6985   if (((long) (sizeof (int64_t))) < 0)
6986     {
6987       long i = longval ();
6988       if (i != ((long) (sizeof (int64_t))))
6989         exit (1);
6990       fprintf (f, "%ld\n", i);
6991     }
6992   else
6993     {
6994       unsigned long i = ulongval ();
6995       if (i != ((long) (sizeof (int64_t))))
6996         exit (1);
6997       fprintf (f, "%lu\n", i);
6998     }
6999   exit (ferror (f) || fclose (f) != 0);
7000
7001   ;
7002   return 0;
7003 }
7004 _ACEOF
7005 rm -f conftest$ac_exeext
7006 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7007   (eval $ac_link) 2>&5
7008   ac_status=$?
7009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7010   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7011   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7012   (eval $ac_try) 2>&5
7013   ac_status=$?
7014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7015   (exit $ac_status); }; }; then
7016   ac_cv_sizeof_int64_t=`cat conftest.val`
7017 else
7018   echo "$as_me: program exited with status $ac_status" >&5
7019 echo "$as_me: failed program was:" >&5
7020 sed 's/^/| /' conftest.$ac_ext >&5
7021
7022 ( exit $ac_status )
7023 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int64_t), 77
7024 See \`config.log' for more details." >&5
7025 echo "$as_me: error: cannot compute sizeof (int64_t), 77
7026 See \`config.log' for more details." >&2;}
7027    { (exit 1); exit 1; }; }
7028 fi
7029 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7030 fi
7031 fi
7032 rm -f conftest.val
7033 else
7034   ac_cv_sizeof_int64_t=0
7035 fi
7036 fi
7037 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int64_t" >&5
7038 echo "${ECHO_T}$ac_cv_sizeof_int64_t" >&6
7039 cat >>confdefs.h <<_ACEOF
7040 #define SIZEOF_INT64_T $ac_cv_sizeof_int64_t
7041 _ACEOF
7042
7043
7044 echo "$as_me:$LINENO: checking for long long" >&5
7045 echo $ECHO_N "checking for long long... $ECHO_C" >&6
7046 if test "${ac_cv_type_long_long+set}" = set; then
7047   echo $ECHO_N "(cached) $ECHO_C" >&6
7048 else
7049   cat >conftest.$ac_ext <<_ACEOF
7050 /* confdefs.h.  */
7051 _ACEOF
7052 cat confdefs.h >>conftest.$ac_ext
7053 cat >>conftest.$ac_ext <<_ACEOF
7054 /* end confdefs.h.  */
7055 $ac_includes_default
7056 int
7057 main ()
7058 {
7059 if ((long long *) 0)
7060   return 0;
7061 if (sizeof (long long))
7062   return 0;
7063   ;
7064   return 0;
7065 }
7066 _ACEOF
7067 rm -f conftest.$ac_objext
7068 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7069   (eval $ac_compile) 2>conftest.er1
7070   ac_status=$?
7071   grep -v '^ *+' conftest.er1 >conftest.err
7072   rm -f conftest.er1
7073   cat conftest.err >&5
7074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7075   (exit $ac_status); } &&
7076          { ac_try='test -z "$ac_c_werror_flag"
7077                          || test ! -s conftest.err'
7078   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7079   (eval $ac_try) 2>&5
7080   ac_status=$?
7081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7082   (exit $ac_status); }; } &&
7083          { ac_try='test -s conftest.$ac_objext'
7084   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7085   (eval $ac_try) 2>&5
7086   ac_status=$?
7087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7088   (exit $ac_status); }; }; then
7089   ac_cv_type_long_long=yes
7090 else
7091   echo "$as_me: failed program was:" >&5
7092 sed 's/^/| /' conftest.$ac_ext >&5
7093
7094 ac_cv_type_long_long=no
7095 fi
7096 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7097 fi
7098 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
7099 echo "${ECHO_T}$ac_cv_type_long_long" >&6
7100
7101 echo "$as_me:$LINENO: checking size of long long" >&5
7102 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
7103 if test "${ac_cv_sizeof_long_long+set}" = set; then
7104   echo $ECHO_N "(cached) $ECHO_C" >&6
7105 else
7106   if test "$ac_cv_type_long_long" = yes; then
7107   # The cast to unsigned long works around a bug in the HP C Compiler
7108   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7109   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7110   # This bug is HP SR number 8606223364.
7111   if test "$cross_compiling" = yes; then
7112   # Depending upon the size, compute the lo and hi bounds.
7113 cat >conftest.$ac_ext <<_ACEOF
7114 /* confdefs.h.  */
7115 _ACEOF
7116 cat confdefs.h >>conftest.$ac_ext
7117 cat >>conftest.$ac_ext <<_ACEOF
7118 /* end confdefs.h.  */
7119 $ac_includes_default
7120 int
7121 main ()
7122 {
7123 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
7124 test_array [0] = 0
7125
7126   ;
7127   return 0;
7128 }
7129 _ACEOF
7130 rm -f conftest.$ac_objext
7131 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7132   (eval $ac_compile) 2>conftest.er1
7133   ac_status=$?
7134   grep -v '^ *+' conftest.er1 >conftest.err
7135   rm -f conftest.er1
7136   cat conftest.err >&5
7137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7138   (exit $ac_status); } &&
7139          { ac_try='test -z "$ac_c_werror_flag"
7140                          || test ! -s conftest.err'
7141   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7142   (eval $ac_try) 2>&5
7143   ac_status=$?
7144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7145   (exit $ac_status); }; } &&
7146          { ac_try='test -s conftest.$ac_objext'
7147   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7148   (eval $ac_try) 2>&5
7149   ac_status=$?
7150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7151   (exit $ac_status); }; }; then
7152   ac_lo=0 ac_mid=0
7153   while :; do
7154     cat >conftest.$ac_ext <<_ACEOF
7155 /* confdefs.h.  */
7156 _ACEOF
7157 cat confdefs.h >>conftest.$ac_ext
7158 cat >>conftest.$ac_ext <<_ACEOF
7159 /* end confdefs.h.  */
7160 $ac_includes_default
7161 int
7162 main ()
7163 {
7164 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
7165 test_array [0] = 0
7166
7167   ;
7168   return 0;
7169 }
7170 _ACEOF
7171 rm -f conftest.$ac_objext
7172 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7173   (eval $ac_compile) 2>conftest.er1
7174   ac_status=$?
7175   grep -v '^ *+' conftest.er1 >conftest.err
7176   rm -f conftest.er1
7177   cat conftest.err >&5
7178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7179   (exit $ac_status); } &&
7180          { ac_try='test -z "$ac_c_werror_flag"
7181                          || test ! -s conftest.err'
7182   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7183   (eval $ac_try) 2>&5
7184   ac_status=$?
7185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7186   (exit $ac_status); }; } &&
7187          { ac_try='test -s conftest.$ac_objext'
7188   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7189   (eval $ac_try) 2>&5
7190   ac_status=$?
7191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7192   (exit $ac_status); }; }; then
7193   ac_hi=$ac_mid; break
7194 else
7195   echo "$as_me: failed program was:" >&5
7196 sed 's/^/| /' conftest.$ac_ext >&5
7197
7198 ac_lo=`expr $ac_mid + 1`
7199                     if test $ac_lo -le $ac_mid; then
7200                       ac_lo= ac_hi=
7201                       break
7202                     fi
7203                     ac_mid=`expr 2 '*' $ac_mid + 1`
7204 fi
7205 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7206   done
7207 else
7208   echo "$as_me: failed program was:" >&5
7209 sed 's/^/| /' conftest.$ac_ext >&5
7210
7211 cat >conftest.$ac_ext <<_ACEOF
7212 /* confdefs.h.  */
7213 _ACEOF
7214 cat confdefs.h >>conftest.$ac_ext
7215 cat >>conftest.$ac_ext <<_ACEOF
7216 /* end confdefs.h.  */
7217 $ac_includes_default
7218 int
7219 main ()
7220 {
7221 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
7222 test_array [0] = 0
7223
7224   ;
7225   return 0;
7226 }
7227 _ACEOF
7228 rm -f conftest.$ac_objext
7229 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7230   (eval $ac_compile) 2>conftest.er1
7231   ac_status=$?
7232   grep -v '^ *+' conftest.er1 >conftest.err
7233   rm -f conftest.er1
7234   cat conftest.err >&5
7235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7236   (exit $ac_status); } &&
7237          { ac_try='test -z "$ac_c_werror_flag"
7238                          || test ! -s conftest.err'
7239   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7240   (eval $ac_try) 2>&5
7241   ac_status=$?
7242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7243   (exit $ac_status); }; } &&
7244          { ac_try='test -s conftest.$ac_objext'
7245   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7246   (eval $ac_try) 2>&5
7247   ac_status=$?
7248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7249   (exit $ac_status); }; }; then
7250   ac_hi=-1 ac_mid=-1
7251   while :; do
7252     cat >conftest.$ac_ext <<_ACEOF
7253 /* confdefs.h.  */
7254 _ACEOF
7255 cat confdefs.h >>conftest.$ac_ext
7256 cat >>conftest.$ac_ext <<_ACEOF
7257 /* end confdefs.h.  */
7258 $ac_includes_default
7259 int
7260 main ()
7261 {
7262 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
7263 test_array [0] = 0
7264
7265   ;
7266   return 0;
7267 }
7268 _ACEOF
7269 rm -f conftest.$ac_objext
7270 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7271   (eval $ac_compile) 2>conftest.er1
7272   ac_status=$?
7273   grep -v '^ *+' conftest.er1 >conftest.err
7274   rm -f conftest.er1
7275   cat conftest.err >&5
7276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7277   (exit $ac_status); } &&
7278          { ac_try='test -z "$ac_c_werror_flag"
7279                          || test ! -s conftest.err'
7280   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7281   (eval $ac_try) 2>&5
7282   ac_status=$?
7283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7284   (exit $ac_status); }; } &&
7285          { ac_try='test -s conftest.$ac_objext'
7286   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7287   (eval $ac_try) 2>&5
7288   ac_status=$?
7289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7290   (exit $ac_status); }; }; then
7291   ac_lo=$ac_mid; break
7292 else
7293   echo "$as_me: failed program was:" >&5
7294 sed 's/^/| /' conftest.$ac_ext >&5
7295
7296 ac_hi=`expr '(' $ac_mid ')' - 1`
7297                        if test $ac_mid -le $ac_hi; then
7298                          ac_lo= ac_hi=
7299                          break
7300                        fi
7301                        ac_mid=`expr 2 '*' $ac_mid`
7302 fi
7303 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7304   done
7305 else
7306   echo "$as_me: failed program was:" >&5
7307 sed 's/^/| /' conftest.$ac_ext >&5
7308
7309 ac_lo= ac_hi=
7310 fi
7311 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7312 fi
7313 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7314 # Binary search between lo and hi bounds.
7315 while test "x$ac_lo" != "x$ac_hi"; do
7316   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7317   cat >conftest.$ac_ext <<_ACEOF
7318 /* confdefs.h.  */
7319 _ACEOF
7320 cat confdefs.h >>conftest.$ac_ext
7321 cat >>conftest.$ac_ext <<_ACEOF
7322 /* end confdefs.h.  */
7323 $ac_includes_default
7324 int
7325 main ()
7326 {
7327 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
7328 test_array [0] = 0
7329
7330   ;
7331   return 0;
7332 }
7333 _ACEOF
7334 rm -f conftest.$ac_objext
7335 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7336   (eval $ac_compile) 2>conftest.er1
7337   ac_status=$?
7338   grep -v '^ *+' conftest.er1 >conftest.err
7339   rm -f conftest.er1
7340   cat conftest.err >&5
7341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7342   (exit $ac_status); } &&
7343          { ac_try='test -z "$ac_c_werror_flag"
7344                          || test ! -s conftest.err'
7345   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7346   (eval $ac_try) 2>&5
7347   ac_status=$?
7348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7349   (exit $ac_status); }; } &&
7350          { ac_try='test -s conftest.$ac_objext'
7351   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7352   (eval $ac_try) 2>&5
7353   ac_status=$?
7354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7355   (exit $ac_status); }; }; then
7356   ac_hi=$ac_mid
7357 else
7358   echo "$as_me: failed program was:" >&5
7359 sed 's/^/| /' conftest.$ac_ext >&5
7360
7361 ac_lo=`expr '(' $ac_mid ')' + 1`
7362 fi
7363 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7364 done
7365 case $ac_lo in
7366 ?*) ac_cv_sizeof_long_long=$ac_lo;;
7367 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
7368 See \`config.log' for more details." >&5
7369 echo "$as_me: error: cannot compute sizeof (long long), 77
7370 See \`config.log' for more details." >&2;}
7371    { (exit 1); exit 1; }; } ;;
7372 esac
7373 else
7374   if test "$cross_compiling" = yes; then
7375   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7376 See \`config.log' for more details." >&5
7377 echo "$as_me: error: cannot run test program while cross compiling
7378 See \`config.log' for more details." >&2;}
7379    { (exit 1); exit 1; }; }
7380 else
7381   cat >conftest.$ac_ext <<_ACEOF
7382 /* confdefs.h.  */
7383 _ACEOF
7384 cat confdefs.h >>conftest.$ac_ext
7385 cat >>conftest.$ac_ext <<_ACEOF
7386 /* end confdefs.h.  */
7387 $ac_includes_default
7388 long longval () { return (long) (sizeof (long long)); }
7389 unsigned long ulongval () { return (long) (sizeof (long long)); }
7390 #include <stdio.h>
7391 #include <stdlib.h>
7392 int
7393 main ()
7394 {
7395
7396   FILE *f = fopen ("conftest.val", "w");
7397   if (! f)
7398     exit (1);
7399   if (((long) (sizeof (long long))) < 0)
7400     {
7401       long i = longval ();
7402       if (i != ((long) (sizeof (long long))))
7403         exit (1);
7404       fprintf (f, "%ld\n", i);
7405     }
7406   else
7407     {
7408       unsigned long i = ulongval ();
7409       if (i != ((long) (sizeof (long long))))
7410         exit (1);
7411       fprintf (f, "%lu\n", i);
7412     }
7413   exit (ferror (f) || fclose (f) != 0);
7414
7415   ;
7416   return 0;
7417 }
7418 _ACEOF
7419 rm -f conftest$ac_exeext
7420 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7421   (eval $ac_link) 2>&5
7422   ac_status=$?
7423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7424   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7425   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7426   (eval $ac_try) 2>&5
7427   ac_status=$?
7428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7429   (exit $ac_status); }; }; then
7430   ac_cv_sizeof_long_long=`cat conftest.val`
7431 else
7432   echo "$as_me: program exited with status $ac_status" >&5
7433 echo "$as_me: failed program was:" >&5
7434 sed 's/^/| /' conftest.$ac_ext >&5
7435
7436 ( exit $ac_status )
7437 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
7438 See \`config.log' for more details." >&5
7439 echo "$as_me: error: cannot compute sizeof (long long), 77
7440 See \`config.log' for more details." >&2;}
7441    { (exit 1); exit 1; }; }
7442 fi
7443 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7444 fi
7445 fi
7446 rm -f conftest.val
7447 else
7448   ac_cv_sizeof_long_long=0
7449 fi
7450 fi
7451 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
7452 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
7453 cat >>confdefs.h <<_ACEOF
7454 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
7455 _ACEOF
7456
7457
7458 if test "$ac_cv_sizeof_int" = 2 ; then
7459   echo "$as_me:$LINENO: checking for int16_t" >&5
7460 echo $ECHO_N "checking for int16_t... $ECHO_C" >&6
7461 if test "${ac_cv_type_int16_t+set}" = set; then
7462   echo $ECHO_N "(cached) $ECHO_C" >&6
7463 else
7464   cat >conftest.$ac_ext <<_ACEOF
7465 /* confdefs.h.  */
7466 _ACEOF
7467 cat confdefs.h >>conftest.$ac_ext
7468 cat >>conftest.$ac_ext <<_ACEOF
7469 /* end confdefs.h.  */
7470 $ac_includes_default
7471 int
7472 main ()
7473 {
7474 if ((int16_t *) 0)
7475   return 0;
7476 if (sizeof (int16_t))
7477   return 0;
7478   ;
7479   return 0;
7480 }
7481 _ACEOF
7482 rm -f conftest.$ac_objext
7483 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7484   (eval $ac_compile) 2>conftest.er1
7485   ac_status=$?
7486   grep -v '^ *+' conftest.er1 >conftest.err
7487   rm -f conftest.er1
7488   cat conftest.err >&5
7489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7490   (exit $ac_status); } &&
7491          { ac_try='test -z "$ac_c_werror_flag"
7492                          || test ! -s conftest.err'
7493   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7494   (eval $ac_try) 2>&5
7495   ac_status=$?
7496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7497   (exit $ac_status); }; } &&
7498          { ac_try='test -s conftest.$ac_objext'
7499   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7500   (eval $ac_try) 2>&5
7501   ac_status=$?
7502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7503   (exit $ac_status); }; }; then
7504   ac_cv_type_int16_t=yes
7505 else
7506   echo "$as_me: failed program was:" >&5
7507 sed 's/^/| /' conftest.$ac_ext >&5
7508
7509 ac_cv_type_int16_t=no
7510 fi
7511 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7512 fi
7513 echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
7514 echo "${ECHO_T}$ac_cv_type_int16_t" >&6
7515 if test $ac_cv_type_int16_t = yes; then
7516   :
7517 else
7518
7519 cat >>confdefs.h <<_ACEOF
7520 #define int16_t int
7521 _ACEOF
7522
7523 fi
7524
7525   echo "$as_me:$LINENO: checking for uint16_t" >&5
7526 echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6
7527 if test "${ac_cv_type_uint16_t+set}" = set; then
7528   echo $ECHO_N "(cached) $ECHO_C" >&6
7529 else
7530   cat >conftest.$ac_ext <<_ACEOF
7531 /* confdefs.h.  */
7532 _ACEOF
7533 cat confdefs.h >>conftest.$ac_ext
7534 cat >>conftest.$ac_ext <<_ACEOF
7535 /* end confdefs.h.  */
7536 $ac_includes_default
7537 int
7538 main ()
7539 {
7540 if ((uint16_t *) 0)
7541   return 0;
7542 if (sizeof (uint16_t))
7543   return 0;
7544   ;
7545   return 0;
7546 }
7547 _ACEOF
7548 rm -f conftest.$ac_objext
7549 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7550   (eval $ac_compile) 2>conftest.er1
7551   ac_status=$?
7552   grep -v '^ *+' conftest.er1 >conftest.err
7553   rm -f conftest.er1
7554   cat conftest.err >&5
7555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7556   (exit $ac_status); } &&
7557          { ac_try='test -z "$ac_c_werror_flag"
7558                          || test ! -s conftest.err'
7559   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7560   (eval $ac_try) 2>&5
7561   ac_status=$?
7562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7563   (exit $ac_status); }; } &&
7564          { ac_try='test -s conftest.$ac_objext'
7565   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7566   (eval $ac_try) 2>&5
7567   ac_status=$?
7568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7569   (exit $ac_status); }; }; then
7570   ac_cv_type_uint16_t=yes
7571 else
7572   echo "$as_me: failed program was:" >&5
7573 sed 's/^/| /' conftest.$ac_ext >&5
7574
7575 ac_cv_type_uint16_t=no
7576 fi
7577 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7578 fi
7579 echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
7580 echo "${ECHO_T}$ac_cv_type_uint16_t" >&6
7581 if test $ac_cv_type_uint16_t = yes; then
7582   :
7583 else
7584
7585 cat >>confdefs.h <<_ACEOF
7586 #define uint16_t unsigned int
7587 _ACEOF
7588
7589 fi
7590
7591 elif test "$ac_cv_sizeof_short" = 2 ; then
7592   echo "$as_me:$LINENO: checking for int16_t" >&5
7593 echo $ECHO_N "checking for int16_t... $ECHO_C" >&6
7594 if test "${ac_cv_type_int16_t+set}" = set; then
7595   echo $ECHO_N "(cached) $ECHO_C" >&6
7596 else
7597   cat >conftest.$ac_ext <<_ACEOF
7598 /* confdefs.h.  */
7599 _ACEOF
7600 cat confdefs.h >>conftest.$ac_ext
7601 cat >>conftest.$ac_ext <<_ACEOF
7602 /* end confdefs.h.  */
7603 $ac_includes_default
7604 int
7605 main ()
7606 {
7607 if ((int16_t *) 0)
7608   return 0;
7609 if (sizeof (int16_t))
7610   return 0;
7611   ;
7612   return 0;
7613 }
7614 _ACEOF
7615 rm -f conftest.$ac_objext
7616 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7617   (eval $ac_compile) 2>conftest.er1
7618   ac_status=$?
7619   grep -v '^ *+' conftest.er1 >conftest.err
7620   rm -f conftest.er1
7621   cat conftest.err >&5
7622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7623   (exit $ac_status); } &&
7624          { ac_try='test -z "$ac_c_werror_flag"
7625                          || test ! -s conftest.err'
7626   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7627   (eval $ac_try) 2>&5
7628   ac_status=$?
7629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7630   (exit $ac_status); }; } &&
7631          { ac_try='test -s conftest.$ac_objext'
7632   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7633   (eval $ac_try) 2>&5
7634   ac_status=$?
7635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7636   (exit $ac_status); }; }; then
7637   ac_cv_type_int16_t=yes
7638 else
7639   echo "$as_me: failed program was:" >&5
7640 sed 's/^/| /' conftest.$ac_ext >&5
7641
7642 ac_cv_type_int16_t=no
7643 fi
7644 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7645 fi
7646 echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
7647 echo "${ECHO_T}$ac_cv_type_int16_t" >&6
7648 if test $ac_cv_type_int16_t = yes; then
7649   :
7650 else
7651
7652 cat >>confdefs.h <<_ACEOF
7653 #define int16_t short
7654 _ACEOF
7655
7656 fi
7657
7658   echo "$as_me:$LINENO: checking for uint16_t" >&5
7659 echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6
7660 if test "${ac_cv_type_uint16_t+set}" = set; then
7661   echo $ECHO_N "(cached) $ECHO_C" >&6
7662 else
7663   cat >conftest.$ac_ext <<_ACEOF
7664 /* confdefs.h.  */
7665 _ACEOF
7666 cat confdefs.h >>conftest.$ac_ext
7667 cat >>conftest.$ac_ext <<_ACEOF
7668 /* end confdefs.h.  */
7669 $ac_includes_default
7670 int
7671 main ()
7672 {
7673 if ((uint16_t *) 0)
7674   return 0;
7675 if (sizeof (uint16_t))
7676   return 0;
7677   ;
7678   return 0;
7679 }
7680 _ACEOF
7681 rm -f conftest.$ac_objext
7682 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7683   (eval $ac_compile) 2>conftest.er1
7684   ac_status=$?
7685   grep -v '^ *+' conftest.er1 >conftest.err
7686   rm -f conftest.er1
7687   cat conftest.err >&5
7688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7689   (exit $ac_status); } &&
7690          { ac_try='test -z "$ac_c_werror_flag"
7691                          || test ! -s conftest.err'
7692   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7693   (eval $ac_try) 2>&5
7694   ac_status=$?
7695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7696   (exit $ac_status); }; } &&
7697          { ac_try='test -s conftest.$ac_objext'
7698   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7699   (eval $ac_try) 2>&5
7700   ac_status=$?
7701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7702   (exit $ac_status); }; }; then
7703   ac_cv_type_uint16_t=yes
7704 else
7705   echo "$as_me: failed program was:" >&5
7706 sed 's/^/| /' conftest.$ac_ext >&5
7707
7708 ac_cv_type_uint16_t=no
7709 fi
7710 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7711 fi
7712 echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
7713 echo "${ECHO_T}$ac_cv_type_uint16_t" >&6
7714 if test $ac_cv_type_uint16_t = yes; then
7715   :
7716 else
7717
7718 cat >>confdefs.h <<_ACEOF
7719 #define uint16_t unsigned short
7720 _ACEOF
7721
7722 fi
7723
7724 else
7725   { { echo "$as_me:$LINENO: error: Cannot find a type with size of 16 bits" >&5
7726 echo "$as_me: error: Cannot find a type with size of 16 bits" >&2;}
7727    { (exit 1); exit 1; }; }
7728 fi
7729 if test "$ac_cv_sizeof_int" = 4 ; then
7730   echo "$as_me:$LINENO: checking for int32_t" >&5
7731 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6
7732 if test "${ac_cv_type_int32_t+set}" = set; then
7733   echo $ECHO_N "(cached) $ECHO_C" >&6
7734 else
7735   cat >conftest.$ac_ext <<_ACEOF
7736 /* confdefs.h.  */
7737 _ACEOF
7738 cat confdefs.h >>conftest.$ac_ext
7739 cat >>conftest.$ac_ext <<_ACEOF
7740 /* end confdefs.h.  */
7741 $ac_includes_default
7742 int
7743 main ()
7744 {
7745 if ((int32_t *) 0)
7746   return 0;
7747 if (sizeof (int32_t))
7748   return 0;
7749   ;
7750   return 0;
7751 }
7752 _ACEOF
7753 rm -f conftest.$ac_objext
7754 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7755   (eval $ac_compile) 2>conftest.er1
7756   ac_status=$?
7757   grep -v '^ *+' conftest.er1 >conftest.err
7758   rm -f conftest.er1
7759   cat conftest.err >&5
7760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7761   (exit $ac_status); } &&
7762          { ac_try='test -z "$ac_c_werror_flag"
7763                          || test ! -s conftest.err'
7764   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7765   (eval $ac_try) 2>&5
7766   ac_status=$?
7767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7768   (exit $ac_status); }; } &&
7769          { ac_try='test -s conftest.$ac_objext'
7770   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7771   (eval $ac_try) 2>&5
7772   ac_status=$?
7773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7774   (exit $ac_status); }; }; then
7775   ac_cv_type_int32_t=yes
7776 else
7777   echo "$as_me: failed program was:" >&5
7778 sed 's/^/| /' conftest.$ac_ext >&5
7779
7780 ac_cv_type_int32_t=no
7781 fi
7782 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7783 fi
7784 echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
7785 echo "${ECHO_T}$ac_cv_type_int32_t" >&6
7786 if test $ac_cv_type_int32_t = yes; then
7787   :
7788 else
7789
7790 cat >>confdefs.h <<_ACEOF
7791 #define int32_t int
7792 _ACEOF
7793
7794 fi
7795
7796   echo "$as_me:$LINENO: checking for uint32_t" >&5
7797 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
7798 if test "${ac_cv_type_uint32_t+set}" = set; then
7799   echo $ECHO_N "(cached) $ECHO_C" >&6
7800 else
7801   cat >conftest.$ac_ext <<_ACEOF
7802 /* confdefs.h.  */
7803 _ACEOF
7804 cat confdefs.h >>conftest.$ac_ext
7805 cat >>conftest.$ac_ext <<_ACEOF
7806 /* end confdefs.h.  */
7807 $ac_includes_default
7808 int
7809 main ()
7810 {
7811 if ((uint32_t *) 0)
7812   return 0;
7813 if (sizeof (uint32_t))
7814   return 0;
7815   ;
7816   return 0;
7817 }
7818 _ACEOF
7819 rm -f conftest.$ac_objext
7820 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7821   (eval $ac_compile) 2>conftest.er1
7822   ac_status=$?
7823   grep -v '^ *+' conftest.er1 >conftest.err
7824   rm -f conftest.er1
7825   cat conftest.err >&5
7826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7827   (exit $ac_status); } &&
7828          { ac_try='test -z "$ac_c_werror_flag"
7829                          || test ! -s conftest.err'
7830   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7831   (eval $ac_try) 2>&5
7832   ac_status=$?
7833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7834   (exit $ac_status); }; } &&
7835          { ac_try='test -s conftest.$ac_objext'
7836   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7837   (eval $ac_try) 2>&5
7838   ac_status=$?
7839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7840   (exit $ac_status); }; }; then
7841   ac_cv_type_uint32_t=yes
7842 else
7843   echo "$as_me: failed program was:" >&5
7844 sed 's/^/| /' conftest.$ac_ext >&5
7845
7846 ac_cv_type_uint32_t=no
7847 fi
7848 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7849 fi
7850 echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
7851 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
7852 if test $ac_cv_type_uint32_t = yes; then
7853   :
7854 else
7855
7856 cat >>confdefs.h <<_ACEOF
7857 #define uint32_t unsigned int
7858 _ACEOF
7859
7860 fi
7861
7862 elif test "$ac_cv_sizeof_short" = 4 ; then
7863   echo "$as_me:$LINENO: checking for int32_t" >&5
7864 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6
7865 if test "${ac_cv_type_int32_t+set}" = set; then
7866   echo $ECHO_N "(cached) $ECHO_C" >&6
7867 else
7868   cat >conftest.$ac_ext <<_ACEOF
7869 /* confdefs.h.  */
7870 _ACEOF
7871 cat confdefs.h >>conftest.$ac_ext
7872 cat >>conftest.$ac_ext <<_ACEOF
7873 /* end confdefs.h.  */
7874 $ac_includes_default
7875 int
7876 main ()
7877 {
7878 if ((int32_t *) 0)
7879   return 0;
7880 if (sizeof (int32_t))
7881   return 0;
7882   ;
7883   return 0;
7884 }
7885 _ACEOF
7886 rm -f conftest.$ac_objext
7887 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7888   (eval $ac_compile) 2>conftest.er1
7889   ac_status=$?
7890   grep -v '^ *+' conftest.er1 >conftest.err
7891   rm -f conftest.er1
7892   cat conftest.err >&5
7893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7894   (exit $ac_status); } &&
7895          { ac_try='test -z "$ac_c_werror_flag"
7896                          || test ! -s conftest.err'
7897   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7898   (eval $ac_try) 2>&5
7899   ac_status=$?
7900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7901   (exit $ac_status); }; } &&
7902          { ac_try='test -s conftest.$ac_objext'
7903   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7904   (eval $ac_try) 2>&5
7905   ac_status=$?
7906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7907   (exit $ac_status); }; }; then
7908   ac_cv_type_int32_t=yes
7909 else
7910   echo "$as_me: failed program was:" >&5
7911 sed 's/^/| /' conftest.$ac_ext >&5
7912
7913 ac_cv_type_int32_t=no
7914 fi
7915 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7916 fi
7917 echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
7918 echo "${ECHO_T}$ac_cv_type_int32_t" >&6
7919 if test $ac_cv_type_int32_t = yes; then
7920   :
7921 else
7922
7923 cat >>confdefs.h <<_ACEOF
7924 #define int32_t short
7925 _ACEOF
7926
7927 fi
7928
7929   echo "$as_me:$LINENO: checking for uint32_t" >&5
7930 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
7931 if test "${ac_cv_type_uint32_t+set}" = set; then
7932   echo $ECHO_N "(cached) $ECHO_C" >&6
7933 else
7934   cat >conftest.$ac_ext <<_ACEOF
7935 /* confdefs.h.  */
7936 _ACEOF
7937 cat confdefs.h >>conftest.$ac_ext
7938 cat >>conftest.$ac_ext <<_ACEOF
7939 /* end confdefs.h.  */
7940 $ac_includes_default
7941 int
7942 main ()
7943 {
7944 if ((uint32_t *) 0)
7945   return 0;
7946 if (sizeof (uint32_t))
7947   return 0;
7948   ;
7949   return 0;
7950 }
7951 _ACEOF
7952 rm -f conftest.$ac_objext
7953 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7954   (eval $ac_compile) 2>conftest.er1
7955   ac_status=$?
7956   grep -v '^ *+' conftest.er1 >conftest.err
7957   rm -f conftest.er1
7958   cat conftest.err >&5
7959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7960   (exit $ac_status); } &&
7961          { ac_try='test -z "$ac_c_werror_flag"
7962                          || test ! -s conftest.err'
7963   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7964   (eval $ac_try) 2>&5
7965   ac_status=$?
7966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7967   (exit $ac_status); }; } &&
7968          { ac_try='test -s conftest.$ac_objext'
7969   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7970   (eval $ac_try) 2>&5
7971   ac_status=$?
7972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7973   (exit $ac_status); }; }; then
7974   ac_cv_type_uint32_t=yes
7975 else
7976   echo "$as_me: failed program was:" >&5
7977 sed 's/^/| /' conftest.$ac_ext >&5
7978
7979 ac_cv_type_uint32_t=no
7980 fi
7981 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7982 fi
7983 echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
7984 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
7985 if test $ac_cv_type_uint32_t = yes; then
7986   :
7987 else
7988
7989 cat >>confdefs.h <<_ACEOF
7990 #define uint32_t unsigned short
7991 _ACEOF
7992
7993 fi
7994
7995 elif test "$ac_cv_sizeof_long" = 4 ; then
7996   echo "$as_me:$LINENO: checking for int32_t" >&5
7997 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6
7998 if test "${ac_cv_type_int32_t+set}" = set; then
7999   echo $ECHO_N "(cached) $ECHO_C" >&6
8000 else
8001   cat >conftest.$ac_ext <<_ACEOF
8002 /* confdefs.h.  */
8003 _ACEOF
8004 cat confdefs.h >>conftest.$ac_ext
8005 cat >>conftest.$ac_ext <<_ACEOF
8006 /* end confdefs.h.  */
8007 $ac_includes_default
8008 int
8009 main ()
8010 {
8011 if ((int32_t *) 0)
8012   return 0;
8013 if (sizeof (int32_t))
8014   return 0;
8015   ;
8016   return 0;
8017 }
8018 _ACEOF
8019 rm -f conftest.$ac_objext
8020 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8021   (eval $ac_compile) 2>conftest.er1
8022   ac_status=$?
8023   grep -v '^ *+' conftest.er1 >conftest.err
8024   rm -f conftest.er1
8025   cat conftest.err >&5
8026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8027   (exit $ac_status); } &&
8028          { ac_try='test -z "$ac_c_werror_flag"
8029                          || test ! -s conftest.err'
8030   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8031   (eval $ac_try) 2>&5
8032   ac_status=$?
8033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8034   (exit $ac_status); }; } &&
8035          { ac_try='test -s conftest.$ac_objext'
8036   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8037   (eval $ac_try) 2>&5
8038   ac_status=$?
8039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8040   (exit $ac_status); }; }; then
8041   ac_cv_type_int32_t=yes
8042 else
8043   echo "$as_me: failed program was:" >&5
8044 sed 's/^/| /' conftest.$ac_ext >&5
8045
8046 ac_cv_type_int32_t=no
8047 fi
8048 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8049 fi
8050 echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
8051 echo "${ECHO_T}$ac_cv_type_int32_t" >&6
8052 if test $ac_cv_type_int32_t = yes; then
8053   :
8054 else
8055
8056 cat >>confdefs.h <<_ACEOF
8057 #define int32_t long
8058 _ACEOF
8059
8060 fi
8061
8062   echo "$as_me:$LINENO: checking for uint32_t" >&5
8063 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
8064 if test "${ac_cv_type_uint32_t+set}" = set; then
8065   echo $ECHO_N "(cached) $ECHO_C" >&6
8066 else
8067   cat >conftest.$ac_ext <<_ACEOF
8068 /* confdefs.h.  */
8069 _ACEOF
8070 cat confdefs.h >>conftest.$ac_ext
8071 cat >>conftest.$ac_ext <<_ACEOF
8072 /* end confdefs.h.  */
8073 $ac_includes_default
8074 int
8075 main ()
8076 {
8077 if ((uint32_t *) 0)
8078   return 0;
8079 if (sizeof (uint32_t))
8080   return 0;
8081   ;
8082   return 0;
8083 }
8084 _ACEOF
8085 rm -f conftest.$ac_objext
8086 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8087   (eval $ac_compile) 2>conftest.er1
8088   ac_status=$?
8089   grep -v '^ *+' conftest.er1 >conftest.err
8090   rm -f conftest.er1
8091   cat conftest.err >&5
8092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8093   (exit $ac_status); } &&
8094          { ac_try='test -z "$ac_c_werror_flag"
8095                          || test ! -s conftest.err'
8096   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8097   (eval $ac_try) 2>&5
8098   ac_status=$?
8099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8100   (exit $ac_status); }; } &&
8101          { ac_try='test -s conftest.$ac_objext'
8102   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8103   (eval $ac_try) 2>&5
8104   ac_status=$?
8105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8106   (exit $ac_status); }; }; then
8107   ac_cv_type_uint32_t=yes
8108 else
8109   echo "$as_me: failed program was:" >&5
8110 sed 's/^/| /' conftest.$ac_ext >&5
8111
8112 ac_cv_type_uint32_t=no
8113 fi
8114 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8115 fi
8116 echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
8117 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
8118 if test $ac_cv_type_uint32_t = yes; then
8119   :
8120 else
8121
8122 cat >>confdefs.h <<_ACEOF
8123 #define uint32_t unsigned long
8124 _ACEOF
8125
8126 fi
8127
8128 else
8129   { { echo "$as_me:$LINENO: error: Cannot find a type with size of 32 bits" >&5
8130 echo "$as_me: error: Cannot find a type with size of 32 bits" >&2;}
8131    { (exit 1); exit 1; }; }
8132 fi
8133 if test "$ac_cv_sizeof_int64_t" = 8 ; then
8134   echo "$as_me:$LINENO: checking for int64_t" >&5
8135 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
8136 if test "${ac_cv_type_int64_t+set}" = set; then
8137   echo $ECHO_N "(cached) $ECHO_C" >&6
8138 else
8139   cat >conftest.$ac_ext <<_ACEOF
8140 /* confdefs.h.  */
8141 _ACEOF
8142 cat confdefs.h >>conftest.$ac_ext
8143 cat >>conftest.$ac_ext <<_ACEOF
8144 /* end confdefs.h.  */
8145 $ac_includes_default
8146 int
8147 main ()
8148 {
8149 if ((int64_t *) 0)
8150   return 0;
8151 if (sizeof (int64_t))
8152   return 0;
8153   ;
8154   return 0;
8155 }
8156 _ACEOF
8157 rm -f conftest.$ac_objext
8158 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8159   (eval $ac_compile) 2>conftest.er1
8160   ac_status=$?
8161   grep -v '^ *+' conftest.er1 >conftest.err
8162   rm -f conftest.er1
8163   cat conftest.err >&5
8164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8165   (exit $ac_status); } &&
8166          { ac_try='test -z "$ac_c_werror_flag"
8167                          || test ! -s conftest.err'
8168   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8169   (eval $ac_try) 2>&5
8170   ac_status=$?
8171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8172   (exit $ac_status); }; } &&
8173          { ac_try='test -s conftest.$ac_objext'
8174   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8175   (eval $ac_try) 2>&5
8176   ac_status=$?
8177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8178   (exit $ac_status); }; }; then
8179   ac_cv_type_int64_t=yes
8180 else
8181   echo "$as_me: failed program was:" >&5
8182 sed 's/^/| /' conftest.$ac_ext >&5
8183
8184 ac_cv_type_int64_t=no
8185 fi
8186 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8187 fi
8188 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
8189 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
8190
8191   echo "$as_me:$LINENO: checking for uint64_t" >&5
8192 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
8193 if test "${ac_cv_type_uint64_t+set}" = set; then
8194   echo $ECHO_N "(cached) $ECHO_C" >&6
8195 else
8196   cat >conftest.$ac_ext <<_ACEOF
8197 /* confdefs.h.  */
8198 _ACEOF
8199 cat confdefs.h >>conftest.$ac_ext
8200 cat >>conftest.$ac_ext <<_ACEOF
8201 /* end confdefs.h.  */
8202 $ac_includes_default
8203 int
8204 main ()
8205 {
8206 if ((uint64_t *) 0)
8207   return 0;
8208 if (sizeof (uint64_t))
8209   return 0;
8210   ;
8211   return 0;
8212 }
8213 _ACEOF
8214 rm -f conftest.$ac_objext
8215 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8216   (eval $ac_compile) 2>conftest.er1
8217   ac_status=$?
8218   grep -v '^ *+' conftest.er1 >conftest.err
8219   rm -f conftest.er1
8220   cat conftest.err >&5
8221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8222   (exit $ac_status); } &&
8223          { ac_try='test -z "$ac_c_werror_flag"
8224                          || test ! -s conftest.err'
8225   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8226   (eval $ac_try) 2>&5
8227   ac_status=$?
8228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8229   (exit $ac_status); }; } &&
8230          { ac_try='test -s conftest.$ac_objext'
8231   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8232   (eval $ac_try) 2>&5
8233   ac_status=$?
8234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8235   (exit $ac_status); }; }; then
8236   ac_cv_type_uint64_t=yes
8237 else
8238   echo "$as_me: failed program was:" >&5
8239 sed 's/^/| /' conftest.$ac_ext >&5
8240
8241 ac_cv_type_uint64_t=no
8242 fi
8243 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8244 fi
8245 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
8246 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
8247
8248 elif test "$ac_cv_sizeof_long_long" = 8 ; then
8249   echo "$as_me:$LINENO: checking for int64_t" >&5
8250 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
8251 if test "${ac_cv_type_int64_t+set}" = set; then
8252   echo $ECHO_N "(cached) $ECHO_C" >&6
8253 else
8254   cat >conftest.$ac_ext <<_ACEOF
8255 /* confdefs.h.  */
8256 _ACEOF
8257 cat confdefs.h >>conftest.$ac_ext
8258 cat >>conftest.$ac_ext <<_ACEOF
8259 /* end confdefs.h.  */
8260 $ac_includes_default
8261 int
8262 main ()
8263 {
8264 if ((int64_t *) 0)
8265   return 0;
8266 if (sizeof (int64_t))
8267   return 0;
8268   ;
8269   return 0;
8270 }
8271 _ACEOF
8272 rm -f conftest.$ac_objext
8273 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8274   (eval $ac_compile) 2>conftest.er1
8275   ac_status=$?
8276   grep -v '^ *+' conftest.er1 >conftest.err
8277   rm -f conftest.er1
8278   cat conftest.err >&5
8279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8280   (exit $ac_status); } &&
8281          { ac_try='test -z "$ac_c_werror_flag"
8282                          || test ! -s conftest.err'
8283   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8284   (eval $ac_try) 2>&5
8285   ac_status=$?
8286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8287   (exit $ac_status); }; } &&
8288          { ac_try='test -s conftest.$ac_objext'
8289   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8290   (eval $ac_try) 2>&5
8291   ac_status=$?
8292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8293   (exit $ac_status); }; }; then
8294   ac_cv_type_int64_t=yes
8295 else
8296   echo "$as_me: failed program was:" >&5
8297 sed 's/^/| /' conftest.$ac_ext >&5
8298
8299 ac_cv_type_int64_t=no
8300 fi
8301 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8302 fi
8303 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
8304 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
8305 if test $ac_cv_type_int64_t = yes; then
8306   :
8307 else
8308
8309 cat >>confdefs.h <<_ACEOF
8310 #define int64_t long long
8311 _ACEOF
8312
8313 fi
8314
8315   echo "$as_me:$LINENO: checking for uint64_t" >&5
8316 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
8317 if test "${ac_cv_type_uint64_t+set}" = set; then
8318   echo $ECHO_N "(cached) $ECHO_C" >&6
8319 else
8320   cat >conftest.$ac_ext <<_ACEOF
8321 /* confdefs.h.  */
8322 _ACEOF
8323 cat confdefs.h >>conftest.$ac_ext
8324 cat >>conftest.$ac_ext <<_ACEOF
8325 /* end confdefs.h.  */
8326 $ac_includes_default
8327 int
8328 main ()
8329 {
8330 if ((uint64_t *) 0)
8331   return 0;
8332 if (sizeof (uint64_t))
8333   return 0;
8334   ;
8335   return 0;
8336 }
8337 _ACEOF
8338 rm -f conftest.$ac_objext
8339 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8340   (eval $ac_compile) 2>conftest.er1
8341   ac_status=$?
8342   grep -v '^ *+' conftest.er1 >conftest.err
8343   rm -f conftest.er1
8344   cat conftest.err >&5
8345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8346   (exit $ac_status); } &&
8347          { ac_try='test -z "$ac_c_werror_flag"
8348                          || test ! -s conftest.err'
8349   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8350   (eval $ac_try) 2>&5
8351   ac_status=$?
8352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8353   (exit $ac_status); }; } &&
8354          { ac_try='test -s conftest.$ac_objext'
8355   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8356   (eval $ac_try) 2>&5
8357   ac_status=$?
8358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8359   (exit $ac_status); }; }; then
8360   ac_cv_type_uint64_t=yes
8361 else
8362   echo "$as_me: failed program was:" >&5
8363 sed 's/^/| /' conftest.$ac_ext >&5
8364
8365 ac_cv_type_uint64_t=no
8366 fi
8367 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8368 fi
8369 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
8370 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
8371 if test $ac_cv_type_uint64_t = yes; then
8372   :
8373 else
8374
8375 cat >>confdefs.h <<_ACEOF
8376 #define uint64_t unsigned long long
8377 _ACEOF
8378
8379 fi
8380
8381 else
8382   { { echo "$as_me:$LINENO: error: Cannot find a type with size of 64 bits" >&5
8383 echo "$as_me: error: Cannot find a type with size of 64 bits" >&2;}
8384    { (exit 1); exit 1; }; }
8385 fi
8386 echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
8387 echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6
8388 if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
8389   echo $ECHO_N "(cached) $ECHO_C" >&6
8390 else
8391   cat >conftest.$ac_ext <<_ACEOF
8392 /* confdefs.h.  */
8393 _ACEOF
8394 cat confdefs.h >>conftest.$ac_ext
8395 cat >>conftest.$ac_ext <<_ACEOF
8396 /* end confdefs.h.  */
8397 #include <sys/types.h>
8398 #include <netinet/in.h>
8399
8400 int
8401 main ()
8402 {
8403 if ((struct sockaddr_in6 *) 0)
8404   return 0;
8405 if (sizeof (struct sockaddr_in6))
8406   return 0;
8407   ;
8408   return 0;
8409 }
8410 _ACEOF
8411 rm -f conftest.$ac_objext
8412 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8413   (eval $ac_compile) 2>conftest.er1
8414   ac_status=$?
8415   grep -v '^ *+' conftest.er1 >conftest.err
8416   rm -f conftest.er1
8417   cat conftest.err >&5
8418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8419   (exit $ac_status); } &&
8420          { ac_try='test -z "$ac_c_werror_flag"
8421                          || test ! -s conftest.err'
8422   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8423   (eval $ac_try) 2>&5
8424   ac_status=$?
8425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8426   (exit $ac_status); }; } &&
8427          { ac_try='test -s conftest.$ac_objext'
8428   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8429   (eval $ac_try) 2>&5
8430   ac_status=$?
8431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8432   (exit $ac_status); }; }; then
8433   ac_cv_type_struct_sockaddr_in6=yes
8434 else
8435   echo "$as_me: failed program was:" >&5
8436 sed 's/^/| /' conftest.$ac_ext >&5
8437
8438 ac_cv_type_struct_sockaddr_in6=no
8439 fi
8440 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8441 fi
8442 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
8443 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_in6" >&6
8444 if test $ac_cv_type_struct_sockaddr_in6 = yes; then
8445   unet_have_sockaddr_in6="yes"
8446 else
8447   unet_have_sockaddr_in6="no"
8448 fi
8449
8450
8451 echo "$as_me:$LINENO: checking for socklen_t" >&5
8452 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
8453 if test "${ac_cv_type_socklen_t+set}" = set; then
8454   echo $ECHO_N "(cached) $ECHO_C" >&6
8455 else
8456   cat >conftest.$ac_ext <<_ACEOF
8457 /* confdefs.h.  */
8458 _ACEOF
8459 cat confdefs.h >>conftest.$ac_ext
8460 cat >>conftest.$ac_ext <<_ACEOF
8461 /* end confdefs.h.  */
8462 #include <sys/types.h>
8463 #include<sys/socket.h>
8464
8465 int
8466 main ()
8467 {
8468 if ((socklen_t *) 0)
8469   return 0;
8470 if (sizeof (socklen_t))
8471   return 0;
8472   ;
8473   return 0;
8474 }
8475 _ACEOF
8476 rm -f conftest.$ac_objext
8477 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8478   (eval $ac_compile) 2>conftest.er1
8479   ac_status=$?
8480   grep -v '^ *+' conftest.er1 >conftest.err
8481   rm -f conftest.er1
8482   cat conftest.err >&5
8483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8484   (exit $ac_status); } &&
8485          { ac_try='test -z "$ac_c_werror_flag"
8486                          || test ! -s conftest.err'
8487   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8488   (eval $ac_try) 2>&5
8489   ac_status=$?
8490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8491   (exit $ac_status); }; } &&
8492          { ac_try='test -s conftest.$ac_objext'
8493   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8494   (eval $ac_try) 2>&5
8495   ac_status=$?
8496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8497   (exit $ac_status); }; }; then
8498   ac_cv_type_socklen_t=yes
8499 else
8500   echo "$as_me: failed program was:" >&5
8501 sed 's/^/| /' conftest.$ac_ext >&5
8502
8503 ac_cv_type_socklen_t=no
8504 fi
8505 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8506 fi
8507 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
8508 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
8509 if test $ac_cv_type_socklen_t = yes; then
8510   :
8511 else
8512
8513   echo "$as_me:$LINENO: checking for socklen_t equivalent" >&5
8514 echo $ECHO_N "checking for socklen_t equivalent... $ECHO_C" >&6
8515   if test "${curl_cv_socklen_t_equiv+set}" = set; then
8516   echo $ECHO_N "(cached) $ECHO_C" >&6
8517 else
8518
8519     curl_cv_socklen_t_equiv=
8520     for arg2 in "struct sockaddr" void ; do
8521       for t in int size_t unsigned long "unsigned long" ; do
8522         cat >conftest.$ac_ext <<_ACEOF
8523 /* confdefs.h.  */
8524 _ACEOF
8525 cat confdefs.h >>conftest.$ac_ext
8526 cat >>conftest.$ac_ext <<_ACEOF
8527 /* end confdefs.h.  */
8528 #include <sys/types.h>
8529 #include <sys/socket.h>
8530 int getpeername (int $arg2 *, $t *);
8531 int
8532 main ()
8533 {
8534 $t len;
8535   getpeername(0, 0, &len);
8536   ;
8537   return 0;
8538 }
8539 _ACEOF
8540 rm -f conftest.$ac_objext
8541 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8542   (eval $ac_compile) 2>conftest.er1
8543   ac_status=$?
8544   grep -v '^ *+' conftest.er1 >conftest.err
8545   rm -f conftest.er1
8546   cat conftest.err >&5
8547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8548   (exit $ac_status); } &&
8549          { ac_try='test -z "$ac_c_werror_flag"
8550                          || test ! -s conftest.err'
8551   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8552   (eval $ac_try) 2>&5
8553   ac_status=$?
8554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8555   (exit $ac_status); }; } &&
8556          { ac_try='test -s conftest.$ac_objext'
8557   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8558   (eval $ac_try) 2>&5
8559   ac_status=$?
8560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8561   (exit $ac_status); }; }; then
8562   curl_cv_socklen_t_equiv="$t"
8563   break
8564 else
8565   echo "$as_me: failed program was:" >&5
8566 sed 's/^/| /' conftest.$ac_ext >&5
8567
8568 fi
8569 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8570       done
8571     done
8572
8573 fi
8574
8575   echo "$as_me:$LINENO: result: $curl_cv_socklen_t_equiv" >&5
8576 echo "${ECHO_T}$curl_cv_socklen_t_equiv" >&6
8577
8578 cat >>confdefs.h <<_ACEOF
8579 #define socklen_t $curl_cv_socklen_t_equiv
8580 _ACEOF
8581
8582 fi
8583
8584
8585
8586
8587
8588
8589 for ac_func in kqueue setrlimit getrusage times
8590 do
8591 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8592 echo "$as_me:$LINENO: checking for $ac_func" >&5
8593 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8594 if eval "test \"\${$as_ac_var+set}\" = set"; then
8595   echo $ECHO_N "(cached) $ECHO_C" >&6
8596 else
8597   cat >conftest.$ac_ext <<_ACEOF
8598 /* confdefs.h.  */
8599 _ACEOF
8600 cat confdefs.h >>conftest.$ac_ext
8601 cat >>conftest.$ac_ext <<_ACEOF
8602 /* end confdefs.h.  */
8603 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8604    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8605 #define $ac_func innocuous_$ac_func
8606
8607 /* System header to define __stub macros and hopefully few prototypes,
8608     which can conflict with char $ac_func (); below.
8609     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8610     <limits.h> exists even on freestanding compilers.  */
8611
8612 #ifdef __STDC__
8613 # include <limits.h>
8614 #else
8615 # include <assert.h>
8616 #endif
8617
8618 #undef $ac_func
8619
8620 /* Override any gcc2 internal prototype to avoid an error.  */
8621 #ifdef __cplusplus
8622 extern "C"
8623 {
8624 #endif
8625 /* We use char because int might match the return type of a gcc2
8626    builtin and then its argument prototype would still apply.  */
8627 char $ac_func ();
8628 /* The GNU C library defines this for functions which it implements
8629     to always fail with ENOSYS.  Some functions are actually named
8630     something starting with __ and the normal name is an alias.  */
8631 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8632 choke me
8633 #else
8634 char (*f) () = $ac_func;
8635 #endif
8636 #ifdef __cplusplus
8637 }
8638 #endif
8639
8640 int
8641 main ()
8642 {
8643 return f != $ac_func;
8644   ;
8645   return 0;
8646 }
8647 _ACEOF
8648 rm -f conftest.$ac_objext conftest$ac_exeext
8649 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8650   (eval $ac_link) 2>conftest.er1
8651   ac_status=$?
8652   grep -v '^ *+' conftest.er1 >conftest.err
8653   rm -f conftest.er1
8654   cat conftest.err >&5
8655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8656   (exit $ac_status); } &&
8657          { ac_try='test -z "$ac_c_werror_flag"
8658                          || test ! -s conftest.err'
8659   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8660   (eval $ac_try) 2>&5
8661   ac_status=$?
8662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8663   (exit $ac_status); }; } &&
8664          { ac_try='test -s conftest$ac_exeext'
8665   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8666   (eval $ac_try) 2>&5
8667   ac_status=$?
8668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8669   (exit $ac_status); }; }; then
8670   eval "$as_ac_var=yes"
8671 else
8672   echo "$as_me: failed program was:" >&5
8673 sed 's/^/| /' conftest.$ac_ext >&5
8674
8675 eval "$as_ac_var=no"
8676 fi
8677 rm -f conftest.err conftest.$ac_objext \
8678       conftest$ac_exeext conftest.$ac_ext
8679 fi
8680 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8681 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8682 if test `eval echo '${'$as_ac_var'}'` = yes; then
8683   cat >>confdefs.h <<_ACEOF
8684 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8685 _ACEOF
8686
8687 fi
8688 done
8689
8690
8691 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
8692 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
8693 if test "${ac_cv_header_sys_wait_h+set}" = set; then
8694   echo $ECHO_N "(cached) $ECHO_C" >&6
8695 else
8696   cat >conftest.$ac_ext <<_ACEOF
8697 /* confdefs.h.  */
8698 _ACEOF
8699 cat confdefs.h >>conftest.$ac_ext
8700 cat >>conftest.$ac_ext <<_ACEOF
8701 /* end confdefs.h.  */
8702 #include <sys/types.h>
8703 #include <sys/wait.h>
8704 #ifndef WEXITSTATUS
8705 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
8706 #endif
8707 #ifndef WIFEXITED
8708 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8709 #endif
8710
8711 int
8712 main ()
8713 {
8714   int s;
8715   wait (&s);
8716   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8717   ;
8718   return 0;
8719 }
8720 _ACEOF
8721 rm -f conftest.$ac_objext
8722 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8723   (eval $ac_compile) 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); } &&
8730          { ac_try='test -z "$ac_c_werror_flag"
8731                          || test ! -s conftest.err'
8732   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8733   (eval $ac_try) 2>&5
8734   ac_status=$?
8735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8736   (exit $ac_status); }; } &&
8737          { ac_try='test -s conftest.$ac_objext'
8738   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8739   (eval $ac_try) 2>&5
8740   ac_status=$?
8741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8742   (exit $ac_status); }; }; then
8743   ac_cv_header_sys_wait_h=yes
8744 else
8745   echo "$as_me: failed program was:" >&5
8746 sed 's/^/| /' conftest.$ac_ext >&5
8747
8748 ac_cv_header_sys_wait_h=no
8749 fi
8750 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8751 fi
8752 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
8753 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
8754 if test $ac_cv_header_sys_wait_h = yes; then
8755
8756 cat >>confdefs.h <<\_ACEOF
8757 #define HAVE_SYS_WAIT_H 1
8758 _ACEOF
8759
8760 fi
8761
8762
8763 for ac_header in unistd.h
8764 do
8765 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8766 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8767   echo "$as_me:$LINENO: checking for $ac_header" >&5
8768 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8769 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8770   echo $ECHO_N "(cached) $ECHO_C" >&6
8771 fi
8772 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8773 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8774 else
8775   # Is the header compilable?
8776 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8777 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8778 cat >conftest.$ac_ext <<_ACEOF
8779 /* confdefs.h.  */
8780 _ACEOF
8781 cat confdefs.h >>conftest.$ac_ext
8782 cat >>conftest.$ac_ext <<_ACEOF
8783 /* end confdefs.h.  */
8784 $ac_includes_default
8785 #include <$ac_header>
8786 _ACEOF
8787 rm -f conftest.$ac_objext
8788 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8789   (eval $ac_compile) 2>conftest.er1
8790   ac_status=$?
8791   grep -v '^ *+' conftest.er1 >conftest.err
8792   rm -f conftest.er1
8793   cat conftest.err >&5
8794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8795   (exit $ac_status); } &&
8796          { ac_try='test -z "$ac_c_werror_flag"
8797                          || test ! -s conftest.err'
8798   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8799   (eval $ac_try) 2>&5
8800   ac_status=$?
8801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8802   (exit $ac_status); }; } &&
8803          { ac_try='test -s conftest.$ac_objext'
8804   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8805   (eval $ac_try) 2>&5
8806   ac_status=$?
8807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8808   (exit $ac_status); }; }; then
8809   ac_header_compiler=yes
8810 else
8811   echo "$as_me: failed program was:" >&5
8812 sed 's/^/| /' conftest.$ac_ext >&5
8813
8814 ac_header_compiler=no
8815 fi
8816 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8817 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8818 echo "${ECHO_T}$ac_header_compiler" >&6
8819
8820 # Is the header present?
8821 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8822 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8823 cat >conftest.$ac_ext <<_ACEOF
8824 /* confdefs.h.  */
8825 _ACEOF
8826 cat confdefs.h >>conftest.$ac_ext
8827 cat >>conftest.$ac_ext <<_ACEOF
8828 /* end confdefs.h.  */
8829 #include <$ac_header>
8830 _ACEOF
8831 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8832   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8833   ac_status=$?
8834   grep -v '^ *+' conftest.er1 >conftest.err
8835   rm -f conftest.er1
8836   cat conftest.err >&5
8837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8838   (exit $ac_status); } >/dev/null; then
8839   if test -s conftest.err; then
8840     ac_cpp_err=$ac_c_preproc_warn_flag
8841     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8842   else
8843     ac_cpp_err=
8844   fi
8845 else
8846   ac_cpp_err=yes
8847 fi
8848 if test -z "$ac_cpp_err"; then
8849   ac_header_preproc=yes
8850 else
8851   echo "$as_me: failed program was:" >&5
8852 sed 's/^/| /' conftest.$ac_ext >&5
8853
8854   ac_header_preproc=no
8855 fi
8856 rm -f conftest.err conftest.$ac_ext
8857 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8858 echo "${ECHO_T}$ac_header_preproc" >&6
8859
8860 # So?  What about this header?
8861 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8862   yes:no: )
8863     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8864 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8865     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8866 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8867     ac_header_preproc=yes
8868     ;;
8869   no:yes:* )
8870     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8871 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8872     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8873 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8874     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8875 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8876     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8877 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8878     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8879 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8880     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8881 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8882     (
8883       cat <<\_ASBOX
8884 ## ------------------------------------------ ##
8885 ## Report this to the AC_PACKAGE_NAME lists.  ##
8886 ## ------------------------------------------ ##
8887 _ASBOX
8888     ) |
8889       sed "s/^/$as_me: WARNING:     /" >&2
8890     ;;
8891 esac
8892 echo "$as_me:$LINENO: checking for $ac_header" >&5
8893 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8894 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8895   echo $ECHO_N "(cached) $ECHO_C" >&6
8896 else
8897   eval "$as_ac_Header=\$ac_header_preproc"
8898 fi
8899 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8900 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8901
8902 fi
8903 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8904   cat >>confdefs.h <<_ACEOF
8905 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8906 _ACEOF
8907
8908 fi
8909
8910 done
8911
8912 echo "$as_me:$LINENO: checking for restartable system calls" >&5
8913 echo $ECHO_N "checking for restartable system calls... $ECHO_C" >&6
8914 if test "${ac_cv_sys_restartable_syscalls+set}" = set; then
8915   echo $ECHO_N "(cached) $ECHO_C" >&6
8916 else
8917   if test "$cross_compiling" = yes; then
8918   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
8919 See \`config.log' for more details." >&5
8920 echo "$as_me: error: cannot run test program while cross compiling
8921 See \`config.log' for more details." >&2;}
8922    { (exit 1); exit 1; }; }
8923 else
8924   cat >conftest.$ac_ext <<_ACEOF
8925 /* confdefs.h.  */
8926 _ACEOF
8927 cat confdefs.h >>conftest.$ac_ext
8928 cat >>conftest.$ac_ext <<_ACEOF
8929 /* end confdefs.h.  */
8930 /* Exit 0 (true) if wait returns something other than -1,
8931    i.e. the pid of the child, which means that wait was restarted
8932    after getting the signal.  */
8933
8934 #include <sys/types.h>
8935 #include <signal.h>
8936 #if HAVE_UNISTD_H
8937 # include <unistd.h>
8938 #endif
8939 #if HAVE_SYS_WAIT_H
8940 # include <sys/wait.h>
8941 #endif
8942
8943 /* Some platforms explicitly require an extern "C" signal handler
8944    when using C++. */
8945 #ifdef __cplusplus
8946 extern "C" void ucatch (int dummy) { }
8947 #else
8948 void ucatch (dummy) int dummy; { }
8949 #endif
8950
8951 int
8952 main ()
8953 {
8954   int i = fork (), status;
8955
8956   if (i == 0)
8957     {
8958       sleep (3);
8959       kill (getppid (), SIGINT);
8960       sleep (3);
8961       exit (0);
8962     }
8963
8964   signal (SIGINT, ucatch);
8965
8966   status = wait (&i);
8967   if (status == -1)
8968     wait (&i);
8969
8970   exit (status == -1);
8971 }
8972 _ACEOF
8973 rm -f conftest$ac_exeext
8974 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8975   (eval $ac_link) 2>&5
8976   ac_status=$?
8977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8978   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8979   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8980   (eval $ac_try) 2>&5
8981   ac_status=$?
8982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8983   (exit $ac_status); }; }; then
8984   ac_cv_sys_restartable_syscalls=yes
8985 else
8986   echo "$as_me: program exited with status $ac_status" >&5
8987 echo "$as_me: failed program was:" >&5
8988 sed 's/^/| /' conftest.$ac_ext >&5
8989
8990 ( exit $ac_status )
8991 ac_cv_sys_restartable_syscalls=no
8992 fi
8993 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8994 fi
8995 fi
8996 echo "$as_me:$LINENO: result: $ac_cv_sys_restartable_syscalls" >&5
8997 echo "${ECHO_T}$ac_cv_sys_restartable_syscalls" >&6
8998 if test $ac_cv_sys_restartable_syscalls = yes; then
8999
9000 cat >>confdefs.h <<\_ACEOF
9001 #define HAVE_RESTARTABLE_SYSCALLS 1
9002 _ACEOF
9003
9004 fi
9005
9006
9007 echo "$as_me:$LINENO: checking for donuts" >&5
9008 echo $ECHO_N "checking for donuts... $ECHO_C" >&6
9009 echo "$as_me:$LINENO: result: yes" >&5
9010 echo "${ECHO_T}yes" >&6
9011
9012 for ac_prog in gawk mawk nawk awk
9013 do
9014   # Extract the first word of "$ac_prog", so it can be a program name with args.
9015 set dummy $ac_prog; ac_word=$2
9016 echo "$as_me:$LINENO: checking for $ac_word" >&5
9017 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9018 if test "${ac_cv_prog_AWK+set}" = set; then
9019   echo $ECHO_N "(cached) $ECHO_C" >&6
9020 else
9021   if test -n "$AWK"; then
9022   ac_cv_prog_AWK="$AWK" # Let the user override the test.
9023 else
9024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9025 for as_dir in $PATH
9026 do
9027   IFS=$as_save_IFS
9028   test -z "$as_dir" && as_dir=.
9029   for ac_exec_ext in '' $ac_executable_extensions; do
9030   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9031     ac_cv_prog_AWK="$ac_prog"
9032     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9033     break 2
9034   fi
9035 done
9036 done
9037
9038 fi
9039 fi
9040 AWK=$ac_cv_prog_AWK
9041 if test -n "$AWK"; then
9042   echo "$as_me:$LINENO: result: $AWK" >&5
9043 echo "${ECHO_T}$AWK" >&6
9044 else
9045   echo "$as_me:$LINENO: result: no" >&5
9046 echo "${ECHO_T}no" >&6
9047 fi
9048
9049   test -n "$AWK" && break
9050 done
9051
9052 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9053 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
9054 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
9055 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
9056   echo $ECHO_N "(cached) $ECHO_C" >&6
9057 else
9058   cat >conftest.make <<\_ACEOF
9059 all:
9060         @echo 'ac_maketemp="$(MAKE)"'
9061 _ACEOF
9062 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9063 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
9064 if test -n "$ac_maketemp"; then
9065   eval ac_cv_prog_make_${ac_make}_set=yes
9066 else
9067   eval ac_cv_prog_make_${ac_make}_set=no
9068 fi
9069 rm -f conftest.make
9070 fi
9071 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
9072   echo "$as_me:$LINENO: result: yes" >&5
9073 echo "${ECHO_T}yes" >&6
9074   SET_MAKE=
9075 else
9076   echo "$as_me:$LINENO: result: no" >&5
9077 echo "${ECHO_T}no" >&6
9078   SET_MAKE="MAKE=${MAKE-make}"
9079 fi
9080
9081 # Find a good install program.  We prefer a C program (faster),
9082 # so one script is as good as another.  But avoid the broken or
9083 # incompatible versions:
9084 # SysV /etc/install, /usr/sbin/install
9085 # SunOS /usr/etc/install
9086 # IRIX /sbin/install
9087 # AIX /bin/install
9088 # AmigaOS /C/install, which installs bootblocks on floppy discs
9089 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
9090 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
9091 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
9092 # OS/2's system install, which has a completely different semantic
9093 # ./install, which can be erroneously created by make from ./install.sh.
9094 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
9095 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
9096 if test -z "$INSTALL"; then
9097 if test "${ac_cv_path_install+set}" = set; then
9098   echo $ECHO_N "(cached) $ECHO_C" >&6
9099 else
9100   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9101 for as_dir in $PATH
9102 do
9103   IFS=$as_save_IFS
9104   test -z "$as_dir" && as_dir=.
9105   # Account for people who put trailing slashes in PATH elements.
9106 case $as_dir/ in
9107   ./ | .// | /cC/* | \
9108   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
9109   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
9110   /usr/ucb/* ) ;;
9111   *)
9112     # OSF1 and SCO ODT 3.0 have their own names for install.
9113     # Don't use installbsd from OSF since it installs stuff as root
9114     # by default.
9115     for ac_prog in ginstall scoinst install; do
9116       for ac_exec_ext in '' $ac_executable_extensions; do
9117         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
9118           if test $ac_prog = install &&
9119             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
9120             # AIX install.  It has an incompatible calling convention.
9121             :
9122           elif test $ac_prog = install &&
9123             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
9124             # program-specific install script used by HP pwplus--don't use.
9125             :
9126           else
9127             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
9128             break 3
9129           fi
9130         fi
9131       done
9132     done
9133     ;;
9134 esac
9135 done
9136
9137
9138 fi
9139   if test "${ac_cv_path_install+set}" = set; then
9140     INSTALL=$ac_cv_path_install
9141   else
9142     # As a last resort, use the slow shell script.  We don't cache a
9143     # path for INSTALL within a source directory, because that will
9144     # break other packages using the cache if that directory is
9145     # removed, or if the path is relative.
9146     INSTALL=$ac_install_sh
9147   fi
9148 fi
9149 echo "$as_me:$LINENO: result: $INSTALL" >&5
9150 echo "${ECHO_T}$INSTALL" >&6
9151
9152 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
9153 # It thinks the first close brace ends the variable substitution.
9154 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
9155
9156 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
9157
9158 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
9159
9160 echo "$as_me:$LINENO: checking whether ln -s works" >&5
9161 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
9162 LN_S=$as_ln_s
9163 if test "$LN_S" = "ln -s"; then
9164   echo "$as_me:$LINENO: result: yes" >&5
9165 echo "${ECHO_T}yes" >&6
9166 else
9167   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
9168 echo "${ECHO_T}no, using $LN_S" >&6
9169 fi
9170
9171 for ac_prog in rm
9172 do
9173   # Extract the first word of "$ac_prog", so it can be a program name with args.
9174 set dummy $ac_prog; ac_word=$2
9175 echo "$as_me:$LINENO: checking for $ac_word" >&5
9176 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9177 if test "${ac_cv_path_RMPROG+set}" = set; then
9178   echo $ECHO_N "(cached) $ECHO_C" >&6
9179 else
9180   case $RMPROG in
9181   [\\/]* | ?:[\\/]*)
9182   ac_cv_path_RMPROG="$RMPROG" # Let the user override the test with a path.
9183   ;;
9184   *)
9185   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9186 for as_dir in $PATH
9187 do
9188   IFS=$as_save_IFS
9189   test -z "$as_dir" && as_dir=.
9190   for ac_exec_ext in '' $ac_executable_extensions; do
9191   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9192     ac_cv_path_RMPROG="$as_dir/$ac_word$ac_exec_ext"
9193     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9194     break 2
9195   fi
9196 done
9197 done
9198
9199   ;;
9200 esac
9201 fi
9202 RMPROG=$ac_cv_path_RMPROG
9203
9204 if test -n "$RMPROG"; then
9205   echo "$as_me:$LINENO: result: $RMPROG" >&5
9206 echo "${ECHO_T}$RMPROG" >&6
9207 else
9208   echo "$as_me:$LINENO: result: no" >&5
9209 echo "${ECHO_T}no" >&6
9210 fi
9211
9212   test -n "$RMPROG" && break
9213 done
9214 test -n "$RMPROG" || RMPROG="/bin/rm"
9215
9216 for ac_prog in sh
9217 do
9218   # Extract the first word of "$ac_prog", so it can be a program name with args.
9219 set dummy $ac_prog; ac_word=$2
9220 echo "$as_me:$LINENO: checking for $ac_word" >&5
9221 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9222 if test "${ac_cv_path_SHPROG+set}" = set; then
9223   echo $ECHO_N "(cached) $ECHO_C" >&6
9224 else
9225   case $SHPROG in
9226   [\\/]* | ?:[\\/]*)
9227   ac_cv_path_SHPROG="$SHPROG" # Let the user override the test with a path.
9228   ;;
9229   *)
9230   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9231 for as_dir in $PATH
9232 do
9233   IFS=$as_save_IFS
9234   test -z "$as_dir" && as_dir=.
9235   for ac_exec_ext in '' $ac_executable_extensions; do
9236   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9237     ac_cv_path_SHPROG="$as_dir/$ac_word$ac_exec_ext"
9238     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9239     break 2
9240   fi
9241 done
9242 done
9243
9244   ;;
9245 esac
9246 fi
9247 SHPROG=$ac_cv_path_SHPROG
9248
9249 if test -n "$SHPROG"; then
9250   echo "$as_me:$LINENO: result: $SHPROG" >&5
9251 echo "${ECHO_T}$SHPROG" >&6
9252 else
9253   echo "$as_me:$LINENO: result: no" >&5
9254 echo "${ECHO_T}no" >&6
9255 fi
9256
9257   test -n "$SHPROG" && break
9258 done
9259 test -n "$SHPROG" || SHPROG="/bin/sh"
9260
9261
9262 for ac_prog in flex lex
9263 do
9264   # Extract the first word of "$ac_prog", so it can be a program name with args.
9265 set dummy $ac_prog; ac_word=$2
9266 echo "$as_me:$LINENO: checking for $ac_word" >&5
9267 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9268 if test "${ac_cv_prog_LEX+set}" = set; then
9269   echo $ECHO_N "(cached) $ECHO_C" >&6
9270 else
9271   if test -n "$LEX"; then
9272   ac_cv_prog_LEX="$LEX" # Let the user override the test.
9273 else
9274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9275 for as_dir in $PATH
9276 do
9277   IFS=$as_save_IFS
9278   test -z "$as_dir" && as_dir=.
9279   for ac_exec_ext in '' $ac_executable_extensions; do
9280   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9281     ac_cv_prog_LEX="$ac_prog"
9282     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9283     break 2
9284   fi
9285 done
9286 done
9287
9288 fi
9289 fi
9290 LEX=$ac_cv_prog_LEX
9291 if test -n "$LEX"; then
9292   echo "$as_me:$LINENO: result: $LEX" >&5
9293 echo "${ECHO_T}$LEX" >&6
9294 else
9295   echo "$as_me:$LINENO: result: no" >&5
9296 echo "${ECHO_T}no" >&6
9297 fi
9298
9299   test -n "$LEX" && break
9300 done
9301 test -n "$LEX" || LEX=":"
9302
9303 if test -z "$LEXLIB"
9304 then
9305   echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
9306 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
9307 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
9308   echo $ECHO_N "(cached) $ECHO_C" >&6
9309 else
9310   ac_check_lib_save_LIBS=$LIBS
9311 LIBS="-lfl  $LIBS"
9312 cat >conftest.$ac_ext <<_ACEOF
9313 /* confdefs.h.  */
9314 _ACEOF
9315 cat confdefs.h >>conftest.$ac_ext
9316 cat >>conftest.$ac_ext <<_ACEOF
9317 /* end confdefs.h.  */
9318
9319 /* Override any gcc2 internal prototype to avoid an error.  */
9320 #ifdef __cplusplus
9321 extern "C"
9322 #endif
9323 /* We use char because int might match the return type of a gcc2
9324    builtin and then its argument prototype would still apply.  */
9325 char yywrap ();
9326 int
9327 main ()
9328 {
9329 yywrap ();
9330   ;
9331   return 0;
9332 }
9333 _ACEOF
9334 rm -f conftest.$ac_objext conftest$ac_exeext
9335 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9336   (eval $ac_link) 2>conftest.er1
9337   ac_status=$?
9338   grep -v '^ *+' conftest.er1 >conftest.err
9339   rm -f conftest.er1
9340   cat conftest.err >&5
9341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9342   (exit $ac_status); } &&
9343          { ac_try='test -z "$ac_c_werror_flag"
9344                          || test ! -s conftest.err'
9345   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9346   (eval $ac_try) 2>&5
9347   ac_status=$?
9348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9349   (exit $ac_status); }; } &&
9350          { ac_try='test -s conftest$ac_exeext'
9351   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9352   (eval $ac_try) 2>&5
9353   ac_status=$?
9354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9355   (exit $ac_status); }; }; then
9356   ac_cv_lib_fl_yywrap=yes
9357 else
9358   echo "$as_me: failed program was:" >&5
9359 sed 's/^/| /' conftest.$ac_ext >&5
9360
9361 ac_cv_lib_fl_yywrap=no
9362 fi
9363 rm -f conftest.err conftest.$ac_objext \
9364       conftest$ac_exeext conftest.$ac_ext
9365 LIBS=$ac_check_lib_save_LIBS
9366 fi
9367 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
9368 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
9369 if test $ac_cv_lib_fl_yywrap = yes; then
9370   LEXLIB="-lfl"
9371 else
9372   echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
9373 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
9374 if test "${ac_cv_lib_l_yywrap+set}" = set; then
9375   echo $ECHO_N "(cached) $ECHO_C" >&6
9376 else
9377   ac_check_lib_save_LIBS=$LIBS
9378 LIBS="-ll  $LIBS"
9379 cat >conftest.$ac_ext <<_ACEOF
9380 /* confdefs.h.  */
9381 _ACEOF
9382 cat confdefs.h >>conftest.$ac_ext
9383 cat >>conftest.$ac_ext <<_ACEOF
9384 /* end confdefs.h.  */
9385
9386 /* Override any gcc2 internal prototype to avoid an error.  */
9387 #ifdef __cplusplus
9388 extern "C"
9389 #endif
9390 /* We use char because int might match the return type of a gcc2
9391    builtin and then its argument prototype would still apply.  */
9392 char yywrap ();
9393 int
9394 main ()
9395 {
9396 yywrap ();
9397   ;
9398   return 0;
9399 }
9400 _ACEOF
9401 rm -f conftest.$ac_objext conftest$ac_exeext
9402 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9403   (eval $ac_link) 2>conftest.er1
9404   ac_status=$?
9405   grep -v '^ *+' conftest.er1 >conftest.err
9406   rm -f conftest.er1
9407   cat conftest.err >&5
9408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9409   (exit $ac_status); } &&
9410          { ac_try='test -z "$ac_c_werror_flag"
9411                          || test ! -s conftest.err'
9412   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9413   (eval $ac_try) 2>&5
9414   ac_status=$?
9415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9416   (exit $ac_status); }; } &&
9417          { ac_try='test -s conftest$ac_exeext'
9418   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9419   (eval $ac_try) 2>&5
9420   ac_status=$?
9421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9422   (exit $ac_status); }; }; then
9423   ac_cv_lib_l_yywrap=yes
9424 else
9425   echo "$as_me: failed program was:" >&5
9426 sed 's/^/| /' conftest.$ac_ext >&5
9427
9428 ac_cv_lib_l_yywrap=no
9429 fi
9430 rm -f conftest.err conftest.$ac_objext \
9431       conftest$ac_exeext conftest.$ac_ext
9432 LIBS=$ac_check_lib_save_LIBS
9433 fi
9434 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
9435 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
9436 if test $ac_cv_lib_l_yywrap = yes; then
9437   LEXLIB="-ll"
9438 fi
9439
9440 fi
9441
9442 fi
9443
9444 if test "x$LEX" != "x:"; then
9445   echo "$as_me:$LINENO: checking lex output file root" >&5
9446 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
9447 if test "${ac_cv_prog_lex_root+set}" = set; then
9448   echo $ECHO_N "(cached) $ECHO_C" >&6
9449 else
9450   # The minimal lex program is just a single line: %%.  But some broken lexes
9451 # (Solaris, I think it was) want two %% lines, so accommodate them.
9452 cat >conftest.l <<_ACEOF
9453 %%
9454 %%
9455 _ACEOF
9456 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
9457   (eval $LEX conftest.l) 2>&5
9458   ac_status=$?
9459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9460   (exit $ac_status); }
9461 if test -f lex.yy.c; then
9462   ac_cv_prog_lex_root=lex.yy
9463 elif test -f lexyy.c; then
9464   ac_cv_prog_lex_root=lexyy
9465 else
9466   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
9467 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
9468    { (exit 1); exit 1; }; }
9469 fi
9470 fi
9471 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
9472 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
9473 rm -f conftest.l
9474 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
9475
9476 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
9477 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
9478 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
9479   echo $ECHO_N "(cached) $ECHO_C" >&6
9480 else
9481   # POSIX says lex can declare yytext either as a pointer or an array; the
9482 # default is implementation-dependent. Figure out which it is, since
9483 # not all implementations provide the %pointer and %array declarations.
9484 ac_cv_prog_lex_yytext_pointer=no
9485 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
9486 ac_save_LIBS=$LIBS
9487 LIBS="$LIBS $LEXLIB"
9488 cat >conftest.$ac_ext <<_ACEOF
9489 `cat $LEX_OUTPUT_ROOT.c`
9490 _ACEOF
9491 rm -f conftest.$ac_objext conftest$ac_exeext
9492 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9493   (eval $ac_link) 2>conftest.er1
9494   ac_status=$?
9495   grep -v '^ *+' conftest.er1 >conftest.err
9496   rm -f conftest.er1
9497   cat conftest.err >&5
9498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9499   (exit $ac_status); } &&
9500          { ac_try='test -z "$ac_c_werror_flag"
9501                          || test ! -s conftest.err'
9502   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9503   (eval $ac_try) 2>&5
9504   ac_status=$?
9505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9506   (exit $ac_status); }; } &&
9507          { ac_try='test -s conftest$ac_exeext'
9508   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9509   (eval $ac_try) 2>&5
9510   ac_status=$?
9511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9512   (exit $ac_status); }; }; then
9513   ac_cv_prog_lex_yytext_pointer=yes
9514 else
9515   echo "$as_me: failed program was:" >&5
9516 sed 's/^/| /' conftest.$ac_ext >&5
9517
9518 fi
9519 rm -f conftest.err conftest.$ac_objext \
9520       conftest$ac_exeext conftest.$ac_ext
9521 LIBS=$ac_save_LIBS
9522 rm -f "${LEX_OUTPUT_ROOT}.c"
9523
9524 fi
9525 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
9526 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
9527 if test $ac_cv_prog_lex_yytext_pointer = yes; then
9528
9529 cat >>confdefs.h <<\_ACEOF
9530 #define YYTEXT_POINTER 1
9531 _ACEOF
9532
9533 fi
9534
9535 fi
9536 if test "$LEX" = ":" ; then
9537   { { echo "$as_me:$LINENO: error: Cannot find flex." >&5
9538 echo "$as_me: error: Cannot find flex." >&2;}
9539    { (exit 1); exit 1; }; }
9540 elif echo "" | $LEX -V -v --version > /dev/null 2>&1 ; then
9541   :
9542 else
9543   { { echo "$as_me:$LINENO: error: Cannot use $LEX as flex." >&5
9544 echo "$as_me: error: Cannot use $LEX as flex." >&2;}
9545    { (exit 1); exit 1; }; }
9546 fi
9547
9548 for ac_prog in 'bison -y' byacc
9549 do
9550   # Extract the first word of "$ac_prog", so it can be a program name with args.
9551 set dummy $ac_prog; ac_word=$2
9552 echo "$as_me:$LINENO: checking for $ac_word" >&5
9553 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9554 if test "${ac_cv_prog_YACC+set}" = set; then
9555   echo $ECHO_N "(cached) $ECHO_C" >&6
9556 else
9557   if test -n "$YACC"; then
9558   ac_cv_prog_YACC="$YACC" # Let the user override the test.
9559 else
9560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9561 for as_dir in $PATH
9562 do
9563   IFS=$as_save_IFS
9564   test -z "$as_dir" && as_dir=.
9565   for ac_exec_ext in '' $ac_executable_extensions; do
9566   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9567     ac_cv_prog_YACC="$ac_prog"
9568     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9569     break 2
9570   fi
9571 done
9572 done
9573
9574 fi
9575 fi
9576 YACC=$ac_cv_prog_YACC
9577 if test -n "$YACC"; then
9578   echo "$as_me:$LINENO: result: $YACC" >&5
9579 echo "${ECHO_T}$YACC" >&6
9580 else
9581   echo "$as_me:$LINENO: result: no" >&5
9582 echo "${ECHO_T}no" >&6
9583 fi
9584
9585   test -n "$YACC" && break
9586 done
9587 test -n "$YACC" || YACC="yacc"
9588
9589 if test "$YACC" = ":" ; then
9590   { { echo "$as_me:$LINENO: error: Cannot find yacc." >&5
9591 echo "$as_me: error: Cannot find yacc." >&2;}
9592    { (exit 1); exit 1; }; }
9593 elif echo "" | $YACC -V -v --version > /dev/null 2>&1 ; then
9594   :
9595 else
9596   { echo "$as_me:$LINENO: WARNING: $YACC may not work as yacc." >&5
9597 echo "$as_me: WARNING: $YACC may not work as yacc." >&2;}
9598 fi
9599
9600 echo "$as_me:$LINENO: checking for posix non-blocking" >&5
9601 echo $ECHO_N "checking for posix non-blocking... $ECHO_C" >&6
9602 if test "${unet_cv_sys_nonblocking_posix+set}" = set; then
9603   echo $ECHO_N "(cached) $ECHO_C" >&6
9604 else
9605   if test "$cross_compiling" = yes; then
9606   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9607 See \`config.log' for more details." >&5
9608 echo "$as_me: error: cannot run test program while cross compiling
9609 See \`config.log' for more details." >&2;}
9610    { (exit 1); exit 1; }; }
9611 else
9612   cat >conftest.$ac_ext <<_ACEOF
9613 /* confdefs.h.  */
9614 _ACEOF
9615 cat confdefs.h >>conftest.$ac_ext
9616 cat >>conftest.$ac_ext <<_ACEOF
9617 /* end confdefs.h.  */
9618 #include <sys/types.h>
9619 #include <sys/socket.h>
9620 #include <fcntl.h>
9621 #include <sys/ioctl.h>
9622 #include <sys/file.h>
9623 #include <signal.h>
9624 $ac_cv_type_signal alarmed() { exit(1); }
9625 int main(void)
9626 {
9627   char b[12];
9628   struct sockaddr x;
9629   size_t l = sizeof(x);
9630   int f = socket(AF_INET, SOCK_DGRAM, 0);
9631   if (f >= 0 && !(fcntl(f, F_SETFL, O_NONBLOCK)))
9632   {
9633     signal(SIGALRM, alarmed);
9634     alarm(2);
9635     recvfrom(f, b, 12, 0, &x, &l);
9636     alarm(0);
9637     exit(0);
9638   }
9639   exit(1);
9640 }
9641 _ACEOF
9642 rm -f conftest$ac_exeext
9643 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9644   (eval $ac_link) 2>&5
9645   ac_status=$?
9646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9647   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9648   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9649   (eval $ac_try) 2>&5
9650   ac_status=$?
9651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9652   (exit $ac_status); }; }; then
9653   unet_cv_sys_nonblocking_posix=yes
9654 else
9655   echo "$as_me: program exited with status $ac_status" >&5
9656 echo "$as_me: failed program was:" >&5
9657 sed 's/^/| /' conftest.$ac_ext >&5
9658
9659 ( exit $ac_status )
9660 unet_cv_sys_nonblocking_posix=no
9661 fi
9662 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9663 fi
9664 fi
9665 echo "$as_me:$LINENO: result: $unet_cv_sys_nonblocking_posix" >&5
9666 echo "${ECHO_T}$unet_cv_sys_nonblocking_posix" >&6
9667 if test $unet_cv_sys_nonblocking_posix = yes; then
9668
9669 cat >>confdefs.h <<\_ACEOF
9670 #define NBLOCK_POSIX
9671 _ACEOF
9672
9673 else
9674 echo "$as_me:$LINENO: checking for bsd non-blocking" >&5
9675 echo $ECHO_N "checking for bsd non-blocking... $ECHO_C" >&6
9676 if test "${unet_cv_sys_nonblocking_bsd+set}" = set; then
9677   echo $ECHO_N "(cached) $ECHO_C" >&6
9678 else
9679   if test "$cross_compiling" = yes; then
9680   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9681 See \`config.log' for more details." >&5
9682 echo "$as_me: error: cannot run test program while cross compiling
9683 See \`config.log' for more details." >&2;}
9684    { (exit 1); exit 1; }; }
9685 else
9686   cat >conftest.$ac_ext <<_ACEOF
9687 /* confdefs.h.  */
9688 _ACEOF
9689 cat confdefs.h >>conftest.$ac_ext
9690 cat >>conftest.$ac_ext <<_ACEOF
9691 /* end confdefs.h.  */
9692 #include <sys/types.h>
9693 #include <sys/socket.h>
9694 #include <fcntl.h>
9695 #include <sys/ioctl.h>
9696 #include <sys/file.h>
9697 #include <signal.h>
9698 $ac_cv_type_signal alarmed() { exit(1); }
9699 int main(void)
9700 {
9701   char b[12];
9702   struct sockaddr x;
9703   size_t l = sizeof(x);
9704   int f = socket(AF_INET, SOCK_DGRAM, 0);
9705   if (f >= 0 && !(fcntl(f, F_SETFL, O_NDELAY)))
9706   {
9707     signal(SIGALRM, alarmed);
9708     alarm(2);
9709     recvfrom(f, b, 12, 0, &x, &l);
9710     alarm(0);
9711     exit(0);
9712   }
9713   exit(1);
9714 }
9715 _ACEOF
9716 rm -f conftest$ac_exeext
9717 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9718   (eval $ac_link) 2>&5
9719   ac_status=$?
9720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9721   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9723   (eval $ac_try) 2>&5
9724   ac_status=$?
9725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9726   (exit $ac_status); }; }; then
9727   unet_cv_sys_nonblocking_bsd=yes
9728 else
9729   echo "$as_me: program exited with status $ac_status" >&5
9730 echo "$as_me: failed program was:" >&5
9731 sed 's/^/| /' conftest.$ac_ext >&5
9732
9733 ( exit $ac_status )
9734 unet_cv_sys_nonblocking_bsd=no
9735 fi
9736 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9737 fi
9738 fi
9739 echo "$as_me:$LINENO: result: $unet_cv_sys_nonblocking_bsd" >&5
9740 echo "${ECHO_T}$unet_cv_sys_nonblocking_bsd" >&6
9741 if test $unet_cv_sys_nonblocking_bsd = yes; then
9742
9743 cat >>confdefs.h <<\_ACEOF
9744 #define NBLOCK_BSD
9745 _ACEOF
9746
9747 else
9748
9749 cat >>confdefs.h <<\_ACEOF
9750 #define NBLOCK_SYSV
9751 _ACEOF
9752
9753 fi
9754 fi
9755 echo "$as_me:$LINENO: checking for posix signals" >&5
9756 echo $ECHO_N "checking for posix signals... $ECHO_C" >&6
9757 if test "${unet_cv_sys_signal_posix+set}" = set; then
9758   echo $ECHO_N "(cached) $ECHO_C" >&6
9759 else
9760   cat >conftest.$ac_ext <<_ACEOF
9761 /* confdefs.h.  */
9762 _ACEOF
9763 cat confdefs.h >>conftest.$ac_ext
9764 cat >>conftest.$ac_ext <<_ACEOF
9765 /* end confdefs.h.  */
9766 #include <signal.h>
9767 int
9768 main ()
9769 {
9770 sigaction(SIGTERM, (struct sigaction *)0L, (struct sigaction *)0L)
9771   ;
9772   return 0;
9773 }
9774 _ACEOF
9775 rm -f conftest.$ac_objext
9776 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9777   (eval $ac_compile) 2>conftest.er1
9778   ac_status=$?
9779   grep -v '^ *+' conftest.er1 >conftest.err
9780   rm -f conftest.er1
9781   cat conftest.err >&5
9782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9783   (exit $ac_status); } &&
9784          { ac_try='test -z "$ac_c_werror_flag"
9785                          || test ! -s conftest.err'
9786   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9787   (eval $ac_try) 2>&5
9788   ac_status=$?
9789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9790   (exit $ac_status); }; } &&
9791          { ac_try='test -s conftest.$ac_objext'
9792   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9793   (eval $ac_try) 2>&5
9794   ac_status=$?
9795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9796   (exit $ac_status); }; }; then
9797   unet_cv_sys_signal_posix=yes
9798 else
9799   echo "$as_me: failed program was:" >&5
9800 sed 's/^/| /' conftest.$ac_ext >&5
9801
9802 unet_cv_sys_signal_posix=no
9803 fi
9804 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9805 fi
9806 echo "$as_me:$LINENO: result: $unet_cv_sys_signal_posix" >&5
9807 echo "${ECHO_T}$unet_cv_sys_signal_posix" >&6
9808 if test $unet_cv_sys_signal_posix = yes; then
9809
9810 cat >>confdefs.h <<\_ACEOF
9811 #define POSIX_SIGNALS
9812 _ACEOF
9813
9814 else
9815 echo "$as_me:$LINENO: checking for bsd reliable signals" >&5
9816 echo $ECHO_N "checking for bsd reliable signals... $ECHO_C" >&6
9817 if test "${unet_cv_sys_signal_bsd+set}" = set; then
9818   echo $ECHO_N "(cached) $ECHO_C" >&6
9819 else
9820   if test "$cross_compiling" = yes; then
9821   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9822 See \`config.log' for more details." >&5
9823 echo "$as_me: error: cannot run test program while cross compiling
9824 See \`config.log' for more details." >&2;}
9825    { (exit 1); exit 1; }; }
9826 else
9827   cat >conftest.$ac_ext <<_ACEOF
9828 /* confdefs.h.  */
9829 _ACEOF
9830 cat confdefs.h >>conftest.$ac_ext
9831 cat >>conftest.$ac_ext <<_ACEOF
9832 /* end confdefs.h.  */
9833 #include <signal.h>
9834 int calls = 0;
9835 $ac_cv_type_signal handler()
9836 {
9837   if (calls) return;
9838   calls++;
9839   kill(getpid(), SIGTERM);
9840   sleep(1);
9841 }
9842 int main(void)
9843 {
9844   signal(SIGTERM, handler);
9845   kill(getpid(), SIGTERM);
9846   exit (0);
9847 }
9848 _ACEOF
9849 rm -f conftest$ac_exeext
9850 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9851   (eval $ac_link) 2>&5
9852   ac_status=$?
9853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9854   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9855   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9856   (eval $ac_try) 2>&5
9857   ac_status=$?
9858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9859   (exit $ac_status); }; }; then
9860   unet_cv_sys_signal_bsd=yes
9861 else
9862   echo "$as_me: program exited with status $ac_status" >&5
9863 echo "$as_me: failed program was:" >&5
9864 sed 's/^/| /' conftest.$ac_ext >&5
9865
9866 ( exit $ac_status )
9867 unet_cv_sys_signal_bsd=no
9868 fi
9869 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9870 fi
9871 fi
9872 echo "$as_me:$LINENO: result: $unet_cv_sys_signal_bsd" >&5
9873 echo "${ECHO_T}$unet_cv_sys_signal_bsd" >&6
9874 if test $unet_cv_sys_signal_bsd = yes; then
9875
9876 cat >>confdefs.h <<\_ACEOF
9877 #define BSD_RELIABLE_SIGNALS
9878 _ACEOF
9879
9880 else
9881
9882 cat >>confdefs.h <<\_ACEOF
9883 #define SYSV_UNRELIABLE_SIGNALS
9884 _ACEOF
9885
9886 fi
9887 fi
9888
9889 echo "$as_me:$LINENO: checking for OS-dependent information" >&5
9890 echo $ECHO_N "checking for OS-dependent information... $ECHO_C" >&6
9891 case "$host" in
9892     *-linux*)
9893         echo "$as_me:$LINENO: result: Linux ($host) found." >&5
9894 echo "${ECHO_T}Linux ($host) found." >&6
9895         unet_poll_syscall=yes
9896         ;;
9897
9898     *-solaris*)
9899         echo "$as_me:$LINENO: result: Solaris ($host) found." >&5
9900 echo "${ECHO_T}Solaris ($host) found." >&6
9901         if test x"$ac_cv_header_poll_h" = xyes; then
9902             unet_poll_syscall=yes
9903         else
9904             unet_poll_syscall=no
9905         fi
9906
9907 cat >>confdefs.h <<\_ACEOF
9908 #define IRCU_SOLARIS 1
9909 _ACEOF
9910
9911         ;;
9912
9913     *-sunos*)
9914         echo "$as_me:$LINENO: result: Solaris ($host) found." >&5
9915 echo "${ECHO_T}Solaris ($host) found." >&6
9916         unet_poll_syscall=no
9917         ;;
9918
9919     *-openbsd*)
9920         echo "$as_me:$LINENO: result: OpenBSD ($host) found." >&5
9921 echo "${ECHO_T}OpenBSD ($host) found." >&6
9922         if test x"$ac_cv_header_poll_h" = xyes; then
9923             unet_poll_syscall=yes
9924         else
9925             unet_poll_syscall=no
9926         fi
9927         ;;
9928
9929     *-*bsd*)
9930         echo "$as_me:$LINENO: result: Generic BSD ($host) found." >&5
9931 echo "${ECHO_T}Generic BSD ($host) found." >&6
9932         if test x"$ac_cv_header_poll_h" = xyes; then
9933             unet_poll_syscall=yes
9934         else
9935             unet_poll_syscall=no
9936         fi
9937         ;;
9938
9939     *-darwin*)
9940         echo "$as_me:$LINENO: result: Darwin (Mac OS X) ($host) found." >&5
9941 echo "${ECHO_T}Darwin (Mac OS X) ($host) found." >&6
9942         unet_poll_syscall=no
9943         ;;
9944
9945     *)
9946         echo "$as_me:$LINENO: result: Unknown system type $host found." >&5
9947 echo "${ECHO_T}Unknown system type $host found." >&6
9948         { echo "$as_me:$LINENO: WARNING: Unknown OS type; using generic routines." >&5
9949 echo "$as_me: WARNING: Unknown OS type; using generic routines." >&2;}
9950         unet_poll_syscall=no
9951         ;;
9952 esac
9953
9954 echo "$as_me:$LINENO: checking whether to enable use of poll()" >&5
9955 echo $ECHO_N "checking whether to enable use of poll()... $ECHO_C" >&6
9956 # Check whether --enable-poll or --disable-poll was given.
9957 if test "${enable_poll+set}" = set; then
9958   enableval="$enable_poll"
9959   unet_cv_enable_poll=$enable_poll
9960 else
9961   if test "${unet_cv_enable_poll+set}" = set; then
9962   echo $ECHO_N "(cached) $ECHO_C" >&6
9963 else
9964   unet_cv_enable_poll=$unet_poll_syscall
9965 fi
9966
9967 fi;
9968
9969 # Force poll to be disabled if there is no poll.h
9970 if test x"$ac_cv_header_poll_h" != xyes; then
9971     unet_cv_enable_poll=no
9972 fi
9973
9974 echo "$as_me:$LINENO: result: $unet_cv_enable_poll" >&5
9975 echo "${ECHO_T}$unet_cv_enable_poll" >&6
9976
9977 if test x"$unet_cv_enable_poll" = xyes; then
9978
9979 cat >>confdefs.h <<\_ACEOF
9980 #define USE_POLL 1
9981 _ACEOF
9982
9983     ENGINE_C=engine_poll.c
9984 else
9985     ENGINE_C=engine_select.c
9986 fi
9987
9988
9989 echo "$as_me:$LINENO: checking whether to enable debug mode" >&5
9990 echo $ECHO_N "checking whether to enable debug mode... $ECHO_C" >&6
9991 # Check whether --enable-debug or --disable-debug was given.
9992 if test "${enable_debug+set}" = set; then
9993   enableval="$enable_debug"
9994   unet_cv_enable_debug=$enable_debug
9995 else
9996   if test "${unet_cv_enable_debug+set}" = set; then
9997   echo $ECHO_N "(cached) $ECHO_C" >&6
9998 else
9999   unet_cv_enable_debug=no
10000 fi
10001
10002 fi;
10003 echo "$as_me:$LINENO: result: $unet_cv_enable_debug" >&5
10004 echo "${ECHO_T}$unet_cv_enable_debug" >&6
10005
10006 if test x"$unet_cv_enable_debug" = xyes; then
10007
10008 cat >>confdefs.h <<\_ACEOF
10009 #define DEBUGMODE 1
10010 _ACEOF
10011
10012 fi
10013
10014 echo "$as_me:$LINENO: checking whether to enable leak detection" >&5
10015 echo $ECHO_N "checking whether to enable leak detection... $ECHO_C" >&6
10016
10017 # Check whether --with-leak-detect or --without-leak-detect was given.
10018 if test "${with_leak_detect+set}" = set; then
10019   withval="$with_leak_detect"
10020   unet_cv_with_leak_detect=$with_leak_detect
10021 else
10022   if test "${unet_cv_with_leak_detect+set}" = set; then
10023   echo $ECHO_N "(cached) $ECHO_C" >&6
10024 else
10025   unet_cv_with_leak_detect=no
10026 fi
10027
10028 fi;
10029 echo "$as_me:$LINENO: result: $unet_cv_enable_leak_detect" >&5
10030 echo "${ECHO_T}$unet_cv_enable_leak_detect" >&6
10031
10032 if test x"$unet_cv_with_leak_detect" != xno; then
10033     LIBS="-lgc $LIBS"
10034     CFLAGS="-DMDEBUG $CFLAGS"
10035     if test x"$unet_cv_with_leak_detect" != xyes; then
10036        LIBS="-L$unet_cv_with_leak_detect $LIBS"
10037     fi
10038 fi
10039
10040
10041 # Check whether --with-ipv6 or --without-ipv6 was given.
10042 if test "${with_ipv6+set}" = set; then
10043   withval="$with_ipv6"
10044   ac_cv_use_ipv6=$withval
10045 else
10046   ac_cv_use_ipv6=$unet_have_sockaddr_in6
10047 fi;
10048 echo "$as_me:$LINENO: checking whether to use IPv6" >&5
10049 echo $ECHO_N "checking whether to use IPv6... $ECHO_C" >&6
10050 if test "${ac_cv_use_ipv6+set}" = set; then
10051   echo $ECHO_N "(cached) $ECHO_C" >&6
10052 else
10053   ac_cv_use_ipv6=no
10054 fi
10055 echo "$as_me:$LINENO: result: $ac_cv_use_ipv6" >&5
10056 echo "${ECHO_T}$ac_cv_use_ipv6" >&6
10057 if test x"$ac_cv_use_ipv6" != "xno" ; then
10058
10059 cat >>confdefs.h <<\_ACEOF
10060 #define IPV6 1
10061 _ACEOF
10062
10063 fi
10064
10065 echo "$as_me:$LINENO: checking whether to enable asserts" >&5
10066 echo $ECHO_N "checking whether to enable asserts... $ECHO_C" >&6
10067 # Check whether --enable-asserts or --disable-asserts was given.
10068 if test "${enable_asserts+set}" = set; then
10069   enableval="$enable_asserts"
10070   unet_cv_enable_asserts=$enable_asserts
10071 else
10072   if test "${unet_cv_enable_asserts+set}" = set; then
10073   echo $ECHO_N "(cached) $ECHO_C" >&6
10074 else
10075   unet_cv_enable_asserts=yes
10076 fi
10077
10078 fi;
10079 echo "$as_me:$LINENO: result: $unet_cv_enable_asserts" >&5
10080 echo "${ECHO_T}$unet_cv_enable_asserts" >&6
10081
10082 if test x"$unet_cv_enable_asserts" = xno; then
10083
10084 cat >>confdefs.h <<\_ACEOF
10085 #define NDEBUG 1
10086 _ACEOF
10087
10088 fi
10089
10090 echo "$as_me:$LINENO: checking whether to enable profiling support (gprof)" >&5
10091 echo $ECHO_N "checking whether to enable profiling support (gprof)... $ECHO_C" >&6
10092 # Check whether --enable-profile or --disable-profile was given.
10093 if test "${enable_profile+set}" = set; then
10094   enableval="$enable_profile"
10095   unet_cv_enable_profile=$enable_profile
10096 else
10097   if test "${unet_cv_enable_profile+set}" = set; then
10098   echo $ECHO_N "(cached) $ECHO_C" >&6
10099 else
10100   unet_cv_enable_profile=no
10101 fi
10102
10103 fi;
10104 echo "$as_me:$LINENO: result: $unet_cv_enable_profile" >&5
10105 echo "${ECHO_T}$unet_cv_enable_profile" >&6
10106
10107 if test x"$unet_cv_enable_profile" = xyes; then
10108     CFLAGS="-pg $CFLAGS"
10109     LDFLAGS="-pg $LDFLAGS"
10110 fi
10111
10112 echo "$as_me:$LINENO: checking whether to enable pedantic compiler warnings" >&5
10113 echo $ECHO_N "checking whether to enable pedantic compiler warnings... $ECHO_C" >&6
10114 # Check whether --enable-pedantic or --disable-pedantic was given.
10115 if test "${enable_pedantic+set}" = set; then
10116   enableval="$enable_pedantic"
10117   unet_cv_enable_pedantic=$enable_pedantic
10118 else
10119   if test "${unet_cv_enable_pedantic+set}" = set; then
10120   echo $ECHO_N "(cached) $ECHO_C" >&6
10121 else
10122   unet_cv_enable_pedantic=no
10123 fi
10124
10125 fi;
10126 echo "$as_me:$LINENO: result: $unet_cv_enable_pedantic" >&5
10127 echo "${ECHO_T}$unet_cv_enable_pedantic" >&6
10128
10129 if test x"$unet_cv_enable_pedantic" = xyes; then
10130     CFLAGS="-pedantic $CFLAGS"
10131 fi
10132
10133 echo "$as_me:$LINENO: checking whether to enable compiler warnings" >&5
10134 echo $ECHO_N "checking whether to enable compiler warnings... $ECHO_C" >&6
10135 # Check whether --enable-warnings or --disable-warnings was given.
10136 if test "${enable_warnings+set}" = set; then
10137   enableval="$enable_warnings"
10138   unet_cv_enable_warnings=$enable_warnings
10139 else
10140   if test "${unet_cv_enable_warnings+set}" = set; then
10141   echo $ECHO_N "(cached) $ECHO_C" >&6
10142 else
10143   unet_cv_enable_warnings=no
10144 fi
10145
10146 fi;
10147 echo "$as_me:$LINENO: result: $unet_cv_enable_warnings" >&5
10148 echo "${ECHO_T}$unet_cv_enable_warnings" >&6
10149
10150 if test x"$unet_cv_enable_warnings" = xyes; then
10151     CFLAGS="-Wall $CFLAGS"
10152 fi
10153
10154 echo "$as_me:$LINENO: checking whether to enable inlining for a few critical functions" >&5
10155 echo $ECHO_N "checking whether to enable inlining for a few critical functions... $ECHO_C" >&6
10156 # Check whether --enable-inlines or --disable-inlines was given.
10157 if test "${enable_inlines+set}" = set; then
10158   enableval="$enable_inlines"
10159   unet_cv_enable_inlines=$enable_inlines
10160 else
10161   if test "${unet_cv_enable_inlines+set}" = set; then
10162   echo $ECHO_N "(cached) $ECHO_C" >&6
10163 else
10164   unet_cv_enable_inlines=yes
10165 fi
10166
10167 fi;
10168 echo "$as_me:$LINENO: result: $unet_cv_enable_inlines" >&5
10169 echo "${ECHO_T}$unet_cv_enable_inlines" >&6
10170
10171 if test x"$unet_cv_enable_inlines" = xyes; then
10172
10173 cat >>confdefs.h <<\_ACEOF
10174 #define FORCEINLINE 1
10175 _ACEOF
10176
10177 fi
10178
10179 echo "$as_me:$LINENO: checking whether to enable the /dev/poll event engine" >&5
10180 echo $ECHO_N "checking whether to enable the /dev/poll event engine... $ECHO_C" >&6
10181 # Check whether --enable-devpoll or --disable-devpoll was given.
10182 if test "${enable_devpoll+set}" = set; then
10183   enableval="$enable_devpoll"
10184   unet_cv_enable_devpoll=$enable_devpoll
10185 else
10186   if test "${unet_cv_enable_devpoll+set}" = set; then
10187   echo $ECHO_N "(cached) $ECHO_C" >&6
10188 else
10189   unet_cv_enable_devpoll=yes
10190 fi
10191
10192 fi;
10193
10194 if test x"$ac_cv_header_sys_devpoll_h" = xno; then
10195     unet_cv_enable_devpoll=no
10196 fi
10197
10198 echo "$as_me:$LINENO: result: $unet_cv_enable_devpoll" >&5
10199 echo "${ECHO_T}$unet_cv_enable_devpoll" >&6
10200
10201 if test x"$unet_cv_enable_devpoll" != xno; then
10202
10203 cat >>confdefs.h <<\_ACEOF
10204 #define USE_DEVPOLL 1
10205 _ACEOF
10206
10207     ENGINE_C="engine_devpoll.c $ENGINE_C"
10208 fi
10209
10210 echo "$as_me:$LINENO: checking whether to enable the kqueue event engine" >&5
10211 echo $ECHO_N "checking whether to enable the kqueue event engine... $ECHO_C" >&6
10212 # Check whether --enable-kqueue or --disable-kqueue was given.
10213 if test "${enable_kqueue+set}" = set; then
10214   enableval="$enable_kqueue"
10215   unet_cv_enable_kqueue=$enable_kqueue
10216 else
10217   if test "${unet_cv_enable_kqueue+set}" = set; then
10218   echo $ECHO_N "(cached) $ECHO_C" >&6
10219 else
10220   unet_cv_enable_kqueue=yes
10221 fi
10222
10223 fi;
10224
10225 if test x"$ac_cv_header_sys_event_h" = xno -o x"$ac_cv_func_kqueue" = xno; then
10226     unet_cv_enable_kqueue=no
10227 fi
10228
10229 echo "$as_me:$LINENO: result: $unet_cv_enable_kqueue" >&5
10230 echo "${ECHO_T}$unet_cv_enable_kqueue" >&6
10231
10232 if test x"$unet_cv_enable_kqueue" != xno; then
10233
10234 cat >>confdefs.h <<\_ACEOF
10235 #define USE_KQUEUE 1
10236 _ACEOF
10237
10238     ENGINE_C="engine_kqueue.c $ENGINE_C"
10239 fi
10240
10241 echo "$as_me:$LINENO: checking whether to enable the epoll event engine" >&5
10242 echo $ECHO_N "checking whether to enable the epoll event engine... $ECHO_C" >&6
10243 # Check whether --enable-epoll or --disable-epoll was given.
10244 if test "${enable_epoll+set}" = set; then
10245   enableval="$enable_epoll"
10246   unet_cv_enable_epoll=$enable_epoll
10247 else
10248   if test "${unet_cv_enable_epoll+set}" = set; then
10249   echo $ECHO_N "(cached) $ECHO_C" >&6
10250 else
10251   unet_cv_enable_epoll=yes
10252 fi
10253
10254 fi;
10255
10256 if test x"$ac_cv_header_sys_epoll_h" = xno -o x"$ac_cv_func_epoll" = xno; then
10257     unet_cv_enable_epoll=no
10258 fi
10259
10260 echo "$as_me:$LINENO: result: $unet_cv_enable_epoll" >&5
10261 echo "${ECHO_T}$unet_cv_enable_epoll" >&6
10262
10263 if test x"$unet_cv_enable_epoll" != xno; then
10264     echo "$as_me:$LINENO: checking whether epoll functions are properly defined" >&5
10265 echo $ECHO_N "checking whether epoll functions are properly defined... $ECHO_C" >&6
10266     cat >conftest.$ac_ext <<_ACEOF
10267 /* confdefs.h.  */
10268 _ACEOF
10269 cat confdefs.h >>conftest.$ac_ext
10270 cat >>conftest.$ac_ext <<_ACEOF
10271 /* end confdefs.h.  */
10272 #include <sys/epoll.h>
10273 int
10274 main ()
10275 {
10276 epoll_create(10);
10277   ;
10278   return 0;
10279 }
10280 _ACEOF
10281 rm -f conftest.$ac_objext conftest$ac_exeext
10282 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10283   (eval $ac_link) 2>conftest.er1
10284   ac_status=$?
10285   grep -v '^ *+' conftest.er1 >conftest.err
10286   rm -f conftest.er1
10287   cat conftest.err >&5
10288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10289   (exit $ac_status); } &&
10290          { ac_try='test -z "$ac_c_werror_flag"
10291                          || test ! -s conftest.err'
10292   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10293   (eval $ac_try) 2>&5
10294   ac_status=$?
10295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10296   (exit $ac_status); }; } &&
10297          { ac_try='test -s conftest$ac_exeext'
10298   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10299   (eval $ac_try) 2>&5
10300   ac_status=$?
10301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10302   (exit $ac_status); }; }; then
10303   echo "$as_me:$LINENO: result: yes" >&5
10304 echo "${ECHO_T}yes" >&6
10305 else
10306   echo "$as_me: failed program was:" >&5
10307 sed 's/^/| /' conftest.$ac_ext >&5
10308
10309 echo "$as_me:$LINENO: result: no" >&5
10310 echo "${ECHO_T}no" >&6
10311
10312 cat >>confdefs.h <<\_ACEOF
10313 #define EPOLL_NEED_BODY 1
10314 _ACEOF
10315
10316 fi
10317 rm -f conftest.err conftest.$ac_objext \
10318       conftest$ac_exeext conftest.$ac_ext
10319
10320 cat >>confdefs.h <<\_ACEOF
10321 #define USE_EPOLL 1
10322 _ACEOF
10323
10324     ENGINE_C="engine_epoll.c $ENGINE_C"
10325 fi
10326
10327 echo "$as_me:$LINENO: checking for va_copy" >&5
10328 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
10329 if test "${unet_cv_c_va_copy+set}" = set; then
10330   echo $ECHO_N "(cached) $ECHO_C" >&6
10331 else
10332   cat >conftest.$ac_ext <<_ACEOF
10333 /* confdefs.h.  */
10334 _ACEOF
10335 cat confdefs.h >>conftest.$ac_ext
10336 cat >>conftest.$ac_ext <<_ACEOF
10337 /* end confdefs.h.  */
10338 #include <stdarg.h>
10339 int
10340 main ()
10341 {
10342 va_list ap1, ap2; va_copy(ap1, ap2);
10343   ;
10344   return 0;
10345 }
10346 _ACEOF
10347 rm -f conftest.$ac_objext conftest$ac_exeext
10348 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10349   (eval $ac_link) 2>conftest.er1
10350   ac_status=$?
10351   grep -v '^ *+' conftest.er1 >conftest.err
10352   rm -f conftest.er1
10353   cat conftest.err >&5
10354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10355   (exit $ac_status); } &&
10356          { ac_try='test -z "$ac_c_werror_flag"
10357                          || test ! -s conftest.err'
10358   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10359   (eval $ac_try) 2>&5
10360   ac_status=$?
10361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10362   (exit $ac_status); }; } &&
10363          { ac_try='test -s conftest$ac_exeext'
10364   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10365   (eval $ac_try) 2>&5
10366   ac_status=$?
10367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10368   (exit $ac_status); }; }; then
10369   unet_cv_c_va_copy="yes"
10370 else
10371   echo "$as_me: failed program was:" >&5
10372 sed 's/^/| /' conftest.$ac_ext >&5
10373
10374 unet_cv_c_va_copy="no"
10375
10376 fi
10377 rm -f conftest.err conftest.$ac_objext \
10378       conftest$ac_exeext conftest.$ac_ext
10379 fi
10380 echo "$as_me:$LINENO: result: $unet_cv_c_va_copy" >&5
10381 echo "${ECHO_T}$unet_cv_c_va_copy" >&6
10382 if test "$unet_cv_c_va_copy" = "yes" ; then
10383
10384 cat >>confdefs.h <<\_ACEOF
10385 #define HAVE_VA_COPY 1
10386 _ACEOF
10387
10388 fi
10389
10390 echo "$as_me:$LINENO: checking for __va_copy" >&5
10391 echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6
10392 if test "${unet_cv_c___va_copy+set}" = set; then
10393   echo $ECHO_N "(cached) $ECHO_C" >&6
10394 else
10395   cat >conftest.$ac_ext <<_ACEOF
10396 /* confdefs.h.  */
10397 _ACEOF
10398 cat confdefs.h >>conftest.$ac_ext
10399 cat >>conftest.$ac_ext <<_ACEOF
10400 /* end confdefs.h.  */
10401 #include <stdarg.h>
10402 int
10403 main ()
10404 {
10405 va_list ap1, ap2; __va_copy(ap1, ap2);
10406   ;
10407   return 0;
10408 }
10409 _ACEOF
10410 rm -f conftest.$ac_objext conftest$ac_exeext
10411 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10412   (eval $ac_link) 2>conftest.er1
10413   ac_status=$?
10414   grep -v '^ *+' conftest.er1 >conftest.err
10415   rm -f conftest.er1
10416   cat conftest.err >&5
10417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10418   (exit $ac_status); } &&
10419          { ac_try='test -z "$ac_c_werror_flag"
10420                          || test ! -s conftest.err'
10421   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10422   (eval $ac_try) 2>&5
10423   ac_status=$?
10424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10425   (exit $ac_status); }; } &&
10426          { ac_try='test -s conftest$ac_exeext'
10427   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10428   (eval $ac_try) 2>&5
10429   ac_status=$?
10430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10431   (exit $ac_status); }; }; then
10432   unet_cv_c___va_copy="yes"
10433 else
10434   echo "$as_me: failed program was:" >&5
10435 sed 's/^/| /' conftest.$ac_ext >&5
10436
10437 unet_cv_c___va_copy="no"
10438
10439 fi
10440 rm -f conftest.err conftest.$ac_objext \
10441       conftest$ac_exeext conftest.$ac_ext
10442 fi
10443 echo "$as_me:$LINENO: result: $unet_cv_c___va_copy" >&5
10444 echo "${ECHO_T}$unet_cv_c___va_copy" >&6
10445 if test "$unet_cv_c___va_copy" = "yes" ; then
10446
10447 cat >>confdefs.h <<\_ACEOF
10448 #define HAVE___VA_COPY 1
10449 _ACEOF
10450
10451 fi
10452
10453 echo "$as_me:$LINENO: checking what name to give the symlink" >&5
10454 echo $ECHO_N "checking what name to give the symlink... $ECHO_C" >&6
10455
10456 # Check whether --with-symlink or --without-symlink was given.
10457 if test "${with_symlink+set}" = set; then
10458   withval="$with_symlink"
10459   unet_cv_with_symlink=$with_symlink
10460 else
10461   if test "${unet_cv_with_symlink+set}" = set; then
10462   echo $ECHO_N "(cached) $ECHO_C" >&6
10463 else
10464   unet_cv_with_symlink="ircd"
10465 fi
10466
10467 fi;
10468
10469 if test x"$unet_cv_with_symlink" = xyes; then
10470     unet_cv_with_symlink="ircd"
10471 fi
10472
10473 echo "$as_me:$LINENO: result: $unet_cv_with_symlink" >&5
10474 echo "${ECHO_T}$unet_cv_with_symlink" >&6
10475
10476 if test x"$unet_cv_with_symlink" = xno; then
10477     INSTALL_RULE=install-no-symlink
10478     SYMLINK=
10479 else
10480     INSTALL_RULE=install-with-symlink
10481     SYMLINK=$unet_cv_with_symlink
10482 fi
10483
10484
10485
10486 echo "$as_me:$LINENO: checking what permissions to set on the installed binary" >&5
10487 echo $ECHO_N "checking what permissions to set on the installed binary... $ECHO_C" >&6
10488
10489 # Check whether --with-mode or --without-mode was given.
10490 if test "${with_mode+set}" = set; then
10491   withval="$with_mode"
10492   unet_cv_with_mode=$with_mode
10493 else
10494   if test "${unet_cv_with_mode+set}" = set; then
10495   echo $ECHO_N "(cached) $ECHO_C" >&6
10496 else
10497   unet_cv_with_mode=711
10498 fi
10499
10500 fi;
10501
10502 if test x"$unet_cv_with_mode" = xyes -o x"$unet_cv_with_mode" = xno; then
10503     unet_cv_with_mode=711
10504 fi
10505
10506 echo "$as_me:$LINENO: result: $unet_cv_with_mode" >&5
10507 echo "${ECHO_T}$unet_cv_with_mode" >&6
10508
10509 IRCDMODE=$unet_cv_with_mode
10510
10511
10512 unet_uid=`id | sed -e 's/.*uid=[0-9]*(//' -e 's/).*//' 2> /dev/null`
10513 echo "$as_me:$LINENO: checking which user should own the installed binary" >&5
10514 echo $ECHO_N "checking which user should own the installed binary... $ECHO_C" >&6
10515
10516 # Check whether --with-owner or --without-owner was given.
10517 if test "${with_owner+set}" = set; then
10518   withval="$with_owner"
10519   unet_cv_with_owner=$with_owner
10520 else
10521   if test "${unet_cv_with_owner+set}" = set; then
10522   echo $ECHO_N "(cached) $ECHO_C" >&6
10523 else
10524   unet_cv_with_owner=$unet_uid
10525 fi
10526
10527 fi;
10528
10529 if test x"$unet_cv_with_owner" = xyes -o x"$unet_cv_with_owner" = xno; then
10530     unet_cv_with_owner=$unet_uid
10531 fi
10532
10533 echo "$as_me:$LINENO: result: $unet_cv_with_owner" >&5
10534 echo "${ECHO_T}$unet_cv_with_owner" >&6
10535
10536 IRCDOWN=$unet_cv_with_owner
10537
10538
10539 unet_gid=`id | sed -e 's/.*gid=[0-9]*(//' -e 's/).*//' 2> /dev/null`
10540 echo "$as_me:$LINENO: checking which group should own the installed binary" >&5
10541 echo $ECHO_N "checking which group should own the installed binary... $ECHO_C" >&6
10542
10543 # Check whether --with-group or --without-group was given.
10544 if test "${with_group+set}" = set; then
10545   withval="$with_group"
10546   unet_cv_with_group=$with_group
10547 else
10548   if test "${unet_cv_with_group+set}" = set; then
10549   echo $ECHO_N "(cached) $ECHO_C" >&6
10550 else
10551   unet_cv_with_group=$unet_gid
10552 fi
10553
10554 fi;
10555
10556 if test x"$unet_cv_with_group" = xyes -o x"$unet_cv_with_group" = xno; then
10557     unet_cv_with_group=$unet_gid
10558 fi
10559
10560 echo "$as_me:$LINENO: result: $unet_cv_with_group" >&5
10561 echo "${ECHO_T}$unet_cv_with_group" >&6
10562
10563 IRCDGRP=$unet_cv_with_group
10564
10565
10566 unet_domain=
10567 if test -f /etc/resolv.conf; then
10568     unet_domain=`awk '/^domain/ { print $2; exit }' /etc/resolv.conf`
10569     if test x"$unet_domain" = x; then
10570         unet_domain=`awk '/^search/ { print $2; exit }' /etc/resolv.conf`
10571     fi
10572 fi
10573 echo "$as_me:$LINENO: checking for site domain name" >&5
10574 echo $ECHO_N "checking for site domain name... $ECHO_C" >&6
10575
10576 # Check whether --with-domain or --without-domain was given.
10577 if test "${with_domain+set}" = set; then
10578   withval="$with_domain"
10579   unet_cv_with_domain=$with_domain
10580 else
10581   if test "${unet_cv_with_domain+set}" = set; then
10582   echo $ECHO_N "(cached) $ECHO_C" >&6
10583 else
10584   unet_cv_with_domain=$unet_domain
10585 fi
10586
10587 fi;
10588
10589 if test x"$unet_cv_with_domain" = xyes -o x"$unet_cv_with_domain" = xno; then
10590     unet_cv_with_domain=$unet_domain
10591 fi
10592 if test x"$unet_cv_with_domain" = xno; then
10593     { { echo "$as_me:$LINENO: error: Unable to determine server DNS domain; use --with-domain to set it" >&5
10594 echo "$as_me: error: Unable to determine server DNS domain; use --with-domain to set it" >&2;}
10595    { (exit 1); exit 1; }; }
10596 fi
10597
10598 echo "$as_me:$LINENO: result: $unet_cv_with_domain" >&5
10599 echo "${ECHO_T}$unet_cv_with_domain" >&6
10600
10601
10602 cat >>confdefs.h <<_ACEOF
10603 #define DOMAINNAME "*$unet_cv_with_domain"
10604 _ACEOF
10605
10606
10607 echo "$as_me:$LINENO: checking if chroot operation is desired" >&5
10608 echo $ECHO_N "checking if chroot operation is desired... $ECHO_C" >&6
10609
10610 # Check whether --with-chroot or --without-chroot was given.
10611 if test "${with_chroot+set}" = set; then
10612   withval="$with_chroot"
10613   unet_cv_with_chroot=$with_chroot
10614 else
10615   if test "${unet_cv_with_chroot+set}" = set; then
10616   echo $ECHO_N "(cached) $ECHO_C" >&6
10617 else
10618   unet_cv_with_chroot=no
10619 fi
10620
10621 fi;
10622
10623 if test x"$unet_cv_with_chroot" = xyes; then
10624     { { echo "$as_me:$LINENO: error: --with-chroot given with no directory.  See doc/readme.chroot." >&5
10625 echo "$as_me: error: --with-chroot given with no directory.  See doc/readme.chroot." >&2;}
10626    { (exit 1); exit 1; }; }
10627 fi
10628
10629 # Ensure there are no trailing /'s to mess us up
10630 unet_cv_with_chroot=`echo "$unet_cv_with_chroot" | sed 's%/*$%%'`
10631
10632 echo "$as_me:$LINENO: result: $unet_cv_with_chroot" >&5
10633 echo "${ECHO_T}$unet_cv_with_chroot" >&6
10634
10635 # Deal with the annoying value "NONE" here
10636 unet_save_prefix=$prefix
10637 if test x"$prefix" = xNONE; then
10638     prefix=$ac_default_prefix
10639 else
10640     prefix=$prefix
10641 fi
10642
10643 unet_save_exec_prefix=$exec_prefix
10644 if test x"$exec_prefix" = xNONE; then
10645     exec_prefix=$prefix
10646 else
10647     exec_prefix=$exec_prefix
10648 fi
10649
10650 # Obtain the actual interesting directories
10651 unet_bindir=`eval echo "$bindir"`
10652 unet_libdir=`eval echo "$libdir"`
10653
10654 # Restore the original settings of $prefix and $exec_prefix
10655 prefix=$unet_save_prefix
10656 exec_prefix=$unet_save_exec_prefix
10657
10658 echo "$as_me:$LINENO: checking where the binary will be for /restart" >&5
10659 echo $ECHO_N "checking where the binary will be for /restart... $ECHO_C" >&6
10660 if test x"$unet_cv_with_symlink" = xno; then
10661     unet_spath="$unet_bindir/ircd"
10662 else
10663     unet_spath="$unet_bindir/$unet_cv_with_symlink"
10664 fi
10665 echo "$as_me:$LINENO: result: $unet_spath" >&5
10666 echo "${ECHO_T}$unet_spath" >&6
10667
10668 if test x"$unet_cv_with_chroot" != xno; then
10669     if echo "$unet_spath" | grep "^$unet_cv_with_chroot" > /dev/null 2>&1; then
10670         unet_spath=`echo "$unet_spath" | sed "s%^$unet_cv_with_chroot%%"`
10671     else
10672         { echo "$as_me:$LINENO: WARNING: Binary $unet_spath not relative to root directory $unet_cv_with_chroot; restarts will probably fail" >&5
10673 echo "$as_me: WARNING: Binary $unet_spath not relative to root directory $unet_cv_with_chroot; restarts will probably fail" >&2;}
10674     fi
10675 fi
10676
10677
10678 cat >>confdefs.h <<_ACEOF
10679 #define SPATH "$unet_spath"
10680 _ACEOF
10681
10682
10683 echo "$as_me:$LINENO: checking what the data directory should be" >&5
10684 echo $ECHO_N "checking what the data directory should be... $ECHO_C" >&6
10685
10686 # Check whether --with-dpath or --without-dpath was given.
10687 if test "${with_dpath+set}" = set; then
10688   withval="$with_dpath"
10689   unet_cv_with_dpath=$with_dpath
10690 else
10691   if test "${unet_cv_with_dpath+set}" = set; then
10692   echo $ECHO_N "(cached) $ECHO_C" >&6
10693 else
10694   unet_cv_with_dpath=$unet_libdir
10695 fi
10696
10697 fi;
10698
10699 if test x"$unet_cv_with_dpath" = xyes -o x"$unet_cv_with_dpath" = xno; then
10700     unet_cv_with_dpath=$unet_libdir
10701 fi
10702
10703 # Ensure there are no trailing /'s to mess us up
10704 unet_cv_with_dpath=`echo "$unet_cv_with_dpath" | sed 's%/*$%%'`
10705
10706 echo "$as_me:$LINENO: result: $unet_cv_with_dpath" >&5
10707 echo "${ECHO_T}$unet_cv_with_dpath" >&6
10708
10709 if test x"$unet_cv_with_chroot" != xno; then
10710     if echo "$unet_cv_with_dpath" | grep "^$unet_cv_with_chroot" > /dev/null 2>&1; then
10711         unet_dpath=`echo "$unet_cv_with_dpath" | sed "s%^$unet_cv_with_chroot%%"`
10712     else
10713         { { echo "$as_me:$LINENO: error: Data directory $unet_cv_with_dpath not relative to root directory $unet_cv_with_chroot" >&5
10714 echo "$as_me: error: Data directory $unet_cv_with_dpath not relative to root directory $unet_cv_with_chroot" >&2;}
10715    { (exit 1); exit 1; }; }
10716     fi
10717 else
10718     unet_dpath=$unet_cv_with_dpath
10719 fi
10720
10721
10722 cat >>confdefs.h <<_ACEOF
10723 #define DPATH "$unet_dpath"
10724 _ACEOF
10725
10726
10727 DPATH=$unet_cv_with_dpath
10728
10729
10730 echo "$as_me:$LINENO: checking where the default configuration file resides" >&5
10731 echo $ECHO_N "checking where the default configuration file resides... $ECHO_C" >&6
10732
10733 # Check whether --with-cpath or --without-cpath was given.
10734 if test "${with_cpath+set}" = set; then
10735   withval="$with_cpath"
10736   unet_cv_with_cpath=$with_cpath
10737 else
10738   if test "${unet_cv_with_cpath+set}" = set; then
10739   echo $ECHO_N "(cached) $ECHO_C" >&6
10740 else
10741   unet_cv_with_cpath="ircd.conf"
10742 fi
10743
10744 fi;
10745
10746 if test x"$unet_cv_with_cpath" = xyes -o x"$unet_cv_with_cpath" = xno; then
10747     unet_cv_with_cpath="ircd.conf"
10748 fi
10749
10750 echo "$as_me:$LINENO: result: $unet_cv_with_cpath" >&5
10751 echo "${ECHO_T}$unet_cv_with_cpath" >&6
10752
10753 if echo "$unet_cv_with_cpath" | grep '^/' > /dev/null 2>&1; then
10754     # Absolute path; check against chroot stuff
10755     if test x"$unet_cv_with_chroot" != xno; then
10756         if echo "$unet_cv_with_cpath" | grep "^$unet_cv_with_chroot" > /dev/null 2>&1; then
10757             unet_cpath=`echo "$unet_cv_with_cpath" | sed "s%^$unet_cv_with_chroot%%"`
10758         else
10759             { { echo "$as_me:$LINENO: error: Configuration file $unet_cv_with_cpath not relative to root directory $unet_cv_with_chroot" >&5
10760 echo "$as_me: error: Configuration file $unet_cv_with_cpath not relative to root directory $unet_cv_with_chroot" >&2;}
10761    { (exit 1); exit 1; }; }
10762         fi
10763     else
10764         unet_cpath=$unet_cv_with_cpath
10765     fi
10766 else
10767     unet_cpath=$unet_cv_with_cpath
10768 fi
10769
10770
10771 cat >>confdefs.h <<_ACEOF
10772 #define CPATH "$unet_cpath"
10773 _ACEOF
10774
10775
10776 echo "$as_me:$LINENO: checking where to put the debugging log if debugging enabled" >&5
10777 echo $ECHO_N "checking where to put the debugging log if debugging enabled... $ECHO_C" >&6
10778
10779 # Check whether --with-lpath or --without-lpath was given.
10780 if test "${with_lpath+set}" = set; then
10781   withval="$with_lpath"
10782   unet_cv_with_lpath=$with_lpath
10783 else
10784   if test "${unet_cv_with_lpath+set}" = set; then
10785   echo $ECHO_N "(cached) $ECHO_C" >&6
10786 else
10787   unet_cv_with_lpath="ircd.log"
10788 fi
10789
10790 fi;
10791
10792 if test x"$unet_cv_with_lpath" = xyes -o x"$unet_cv_with_lpath" = xno; then
10793     unet_cv_with_lpath="ircd.log"
10794 fi
10795
10796 echo "$as_me:$LINENO: result: $unet_cv_with_lpath" >&5
10797 echo "${ECHO_T}$unet_cv_with_lpath" >&6
10798
10799 if echo "$unet_cv_with_lpath" | grep '^/' > /dev/null 2>&1; then
10800     # Absolute path; check against chroot stuff
10801     if test x"$unet_cv_with_chroot" != xno; then
10802         if echo "$unet_cv_with_lpath" | grep "^$unet_cv_with_chroot" > /dev/null 2>&1; then
10803             unet_lpath=`echo "$unet_cv_with_lpath" | sed "s%^$unet_cv_with_chroot%%"`
10804         else
10805             { 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
10806 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;}
10807             unet_cv_with_lpath="ircd.log"
10808             unet_lpath="ircd.log"
10809         fi
10810     else
10811         unet_lpath=$unet_cv_with_lpath
10812     fi
10813 else
10814     unet_lpath=$unet_cv_with_lpath
10815 fi
10816
10817
10818 cat >>confdefs.h <<_ACEOF
10819 #define LPATH "$unet_lpath"
10820 _ACEOF
10821
10822
10823 unet_maxcon=`ulimit -Hn`
10824 if test x"$unet_maxcon" = xunlimited; then
10825     unet_maxcon=`ulimit -Sn`
10826 fi
10827 unet_maxcon=`expr $unet_maxcon - 4`
10828 echo "$as_me:$LINENO: checking max connections" >&5
10829 echo $ECHO_N "checking max connections... $ECHO_C" >&6
10830
10831 # Check whether --with-maxcon or --without-maxcon was given.
10832 if test "${with_maxcon+set}" = set; then
10833   withval="$with_maxcon"
10834   unet_cv_with_maxcon=$with_maxcon
10835 else
10836   if test "${unet_cv_with_maxcon+set}" = set; then
10837   echo $ECHO_N "(cached) $ECHO_C" >&6
10838 else
10839   unet_cv_with_maxcon=$unet_maxcon
10840 fi
10841
10842 fi;
10843
10844 if test x"$unet_cv_with_maxcon" = xyes -o x"$unet_cv_with_maxcon" = xno; then
10845     if test "$unet_maxcon" -lt 32; then
10846       { { echo "$as_me:$LINENO: error: Maximum connections (number of open files minus 4) must be at least 32." >&5
10847 echo "$as_me: error: Maximum connections (number of open files minus 4) must be at least 32." >&2;}
10848    { (exit 1); exit 1; }; }
10849     fi
10850     unet_cv_with_maxcon=$unet_maxcon
10851 elif test "$unet_cv_with_maxcon" -lt 32; then
10852     { { echo "$as_me:$LINENO: error: Maximum connections (--with-maxcon) must be at least 32." >&5
10853 echo "$as_me: error: Maximum connections (--with-maxcon) must be at least 32." >&2;}
10854    { (exit 1); exit 1; }; }
10855 fi
10856
10857 echo "$as_me:$LINENO: result: $unet_cv_with_maxcon" >&5
10858 echo "${ECHO_T}$unet_cv_with_maxcon" >&6
10859
10860
10861 cat >>confdefs.h <<_ACEOF
10862 #define MAXCONNECTIONS $unet_cv_with_maxcon
10863 _ACEOF
10864
10865
10866                                         ac_config_files="$ac_config_files Makefile ircd/Makefile ircd/test/Makefile doc/Makefile"
10867           ac_config_commands="$ac_config_commands default"
10868 cat >confcache <<\_ACEOF
10869 # This file is a shell script that caches the results of configure
10870 # tests run on this system so they can be shared between configure
10871 # scripts and configure runs, see configure's option --config-cache.
10872 # It is not useful on other systems.  If it contains results you don't
10873 # want to keep, you may remove or edit it.
10874 #
10875 # config.status only pays attention to the cache file if you give it
10876 # the --recheck option to rerun configure.
10877 #
10878 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10879 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10880 # following values.
10881
10882 _ACEOF
10883
10884 # The following way of writing the cache mishandles newlines in values,
10885 # but we know of no workaround that is simple, portable, and efficient.
10886 # So, don't put newlines in cache variables' values.
10887 # Ultrix sh set writes to stderr and can't be redirected directly,
10888 # and sets the high bit in the cache file unless we assign to the vars.
10889 {
10890   (set) 2>&1 |
10891     case `(ac_space=' '; set | grep ac_space) 2>&1` in
10892     *ac_space=\ *)
10893       # `set' does not quote correctly, so add quotes (double-quote
10894       # substitution turns \\\\ into \\, and sed turns \\ into \).
10895       sed -n \
10896         "s/'/'\\\\''/g;
10897           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10898       ;;
10899     *)
10900       # `set' quotes correctly as required by POSIX, so do not add quotes.
10901       sed -n \
10902         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
10903       ;;
10904     esac;
10905 } |
10906   sed '
10907      t clear
10908      : clear
10909      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10910      t end
10911      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10912      : end' >>confcache
10913 if diff $cache_file confcache >/dev/null 2>&1; then :; else
10914   if test -w $cache_file; then
10915     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10916     cat confcache >$cache_file
10917   else
10918     echo "not updating unwritable cache $cache_file"
10919   fi
10920 fi
10921 rm -f confcache
10922
10923 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10924 # Let make expand exec_prefix.
10925 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10926
10927 # VPATH may cause trouble with some makes, so we remove $(srcdir),
10928 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10929 # trailing colons and then remove the whole line if VPATH becomes empty
10930 # (actually we leave an empty line to preserve line numbers).
10931 if test "x$srcdir" = x.; then
10932   ac_vpsub='/^[  ]*VPATH[        ]*=/{
10933 s/:*\$(srcdir):*/:/;
10934 s/:*\${srcdir}:*/:/;
10935 s/:*@srcdir@:*/:/;
10936 s/^\([^=]*=[     ]*\):*/\1/;
10937 s/:*$//;
10938 s/^[^=]*=[       ]*$//;
10939 }'
10940 fi
10941
10942 DEFS=-DHAVE_CONFIG_H
10943
10944 ac_libobjs=
10945 ac_ltlibobjs=
10946 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10947   # 1. Remove the extension, and $U if already installed.
10948   ac_i=`echo "$ac_i" |
10949          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
10950   # 2. Add them.
10951   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
10952   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
10953 done
10954 LIBOBJS=$ac_libobjs
10955
10956 LTLIBOBJS=$ac_ltlibobjs
10957
10958
10959
10960 : ${CONFIG_STATUS=./config.status}
10961 ac_clean_files_save=$ac_clean_files
10962 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10963 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
10964 echo "$as_me: creating $CONFIG_STATUS" >&6;}
10965 cat >$CONFIG_STATUS <<_ACEOF
10966 #! $SHELL
10967 # Generated by $as_me.
10968 # Run this file to recreate the current configuration.
10969 # Compiler output produced by configure, useful for debugging
10970 # configure, is in config.log if it exists.
10971
10972 debug=false
10973 ac_cs_recheck=false
10974 ac_cs_silent=false
10975 SHELL=\${CONFIG_SHELL-$SHELL}
10976 _ACEOF
10977
10978 cat >>$CONFIG_STATUS <<\_ACEOF
10979 ## --------------------- ##
10980 ## M4sh Initialization.  ##
10981 ## --------------------- ##
10982
10983 # Be Bourne compatible
10984 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
10985   emulate sh
10986   NULLCMD=:
10987   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
10988   # is contrary to our usage.  Disable this feature.
10989   alias -g '${1+"$@"}'='"$@"'
10990 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
10991   set -o posix
10992 fi
10993 DUALCASE=1; export DUALCASE # for MKS sh
10994
10995 # Support unset when possible.
10996 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10997   as_unset=unset
10998 else
10999   as_unset=false
11000 fi
11001
11002
11003 # Work around bugs in pre-3.0 UWIN ksh.
11004 $as_unset ENV MAIL MAILPATH
11005 PS1='$ '
11006 PS2='> '
11007 PS4='+ '
11008
11009 # NLS nuisances.
11010 for as_var in \
11011   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
11012   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11013   LC_TELEPHONE LC_TIME
11014 do
11015   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
11016     eval $as_var=C; export $as_var
11017   else
11018     $as_unset $as_var
11019   fi
11020 done
11021
11022 # Required to use basename.
11023 if expr a : '\(a\)' >/dev/null 2>&1; then
11024   as_expr=expr
11025 else
11026   as_expr=false
11027 fi
11028
11029 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
11030   as_basename=basename
11031 else
11032   as_basename=false
11033 fi
11034
11035
11036 # Name of the executable.
11037 as_me=`$as_basename "$0" ||
11038 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11039          X"$0" : 'X\(//\)$' \| \
11040          X"$0" : 'X\(/\)$' \| \
11041          .     : '\(.\)' 2>/dev/null ||
11042 echo X/"$0" |
11043     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
11044           /^X\/\(\/\/\)$/{ s//\1/; q; }
11045           /^X\/\(\/\).*/{ s//\1/; q; }
11046           s/.*/./; q'`
11047
11048
11049 # PATH needs CR, and LINENO needs CR and PATH.
11050 # Avoid depending upon Character Ranges.
11051 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11052 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11053 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11054 as_cr_digits='0123456789'
11055 as_cr_alnum=$as_cr_Letters$as_cr_digits
11056
11057 # The user is always right.
11058 if test "${PATH_SEPARATOR+set}" != set; then
11059   echo "#! /bin/sh" >conf$$.sh
11060   echo  "exit 0"   >>conf$$.sh
11061   chmod +x conf$$.sh
11062   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11063     PATH_SEPARATOR=';'
11064   else
11065     PATH_SEPARATOR=:
11066   fi
11067   rm -f conf$$.sh
11068 fi
11069
11070
11071   as_lineno_1=$LINENO
11072   as_lineno_2=$LINENO
11073   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11074   test "x$as_lineno_1" != "x$as_lineno_2" &&
11075   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
11076   # Find who we are.  Look in the path if we contain no path at all
11077   # relative or not.
11078   case $0 in
11079     *[\\/]* ) as_myself=$0 ;;
11080     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11081 for as_dir in $PATH
11082 do
11083   IFS=$as_save_IFS
11084   test -z "$as_dir" && as_dir=.
11085   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11086 done
11087
11088        ;;
11089   esac
11090   # We did not find ourselves, most probably we were run as `sh COMMAND'
11091   # in which case we are not to be found in the path.
11092   if test "x$as_myself" = x; then
11093     as_myself=$0
11094   fi
11095   if test ! -f "$as_myself"; then
11096     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
11097 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
11098    { (exit 1); exit 1; }; }
11099   fi
11100   case $CONFIG_SHELL in
11101   '')
11102     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11103 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
11104 do
11105   IFS=$as_save_IFS
11106   test -z "$as_dir" && as_dir=.
11107   for as_base in sh bash ksh sh5; do
11108          case $as_dir in
11109          /*)
11110            if ("$as_dir/$as_base" -c '
11111   as_lineno_1=$LINENO
11112   as_lineno_2=$LINENO
11113   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11114   test "x$as_lineno_1" != "x$as_lineno_2" &&
11115   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
11116              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
11117              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
11118              CONFIG_SHELL=$as_dir/$as_base
11119              export CONFIG_SHELL
11120              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
11121            fi;;
11122          esac
11123        done
11124 done
11125 ;;
11126   esac
11127
11128   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11129   # uniformly replaced by the line number.  The first 'sed' inserts a
11130   # line-number line before each line; the second 'sed' does the real
11131   # work.  The second script uses 'N' to pair each line-number line
11132   # with the numbered line, and appends trailing '-' during
11133   # substitution so that $LINENO is not a special case at line end.
11134   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11135   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
11136   sed '=' <$as_myself |
11137     sed '
11138       N
11139       s,$,-,
11140       : loop
11141       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
11142       t loop
11143       s,-$,,
11144       s,^['$as_cr_digits']*\n,,
11145     ' >$as_me.lineno &&
11146   chmod +x $as_me.lineno ||
11147     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
11148 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
11149    { (exit 1); exit 1; }; }
11150
11151   # Don't try to exec as it changes $[0], causing all sort of problems
11152   # (the dirname of $[0] is not the place where we might find the
11153   # original and so on.  Autoconf is especially sensible to this).
11154   . ./$as_me.lineno
11155   # Exit status is that of the last command.
11156   exit
11157 }
11158
11159
11160 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
11161   *c*,-n*) ECHO_N= ECHO_C='
11162 ' ECHO_T='      ' ;;
11163   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
11164   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
11165 esac
11166
11167 if expr a : '\(a\)' >/dev/null 2>&1; then
11168   as_expr=expr
11169 else
11170   as_expr=false
11171 fi
11172
11173 rm -f conf$$ conf$$.exe conf$$.file
11174 echo >conf$$.file
11175 if ln -s conf$$.file conf$$ 2>/dev/null; then
11176   # We could just check for DJGPP; but this test a) works b) is more generic
11177   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
11178   if test -f conf$$.exe; then
11179     # Don't use ln at all; we don't have any links
11180     as_ln_s='cp -p'
11181   else
11182     as_ln_s='ln -s'
11183   fi
11184 elif ln conf$$.file conf$$ 2>/dev/null; then
11185   as_ln_s=ln
11186 else
11187   as_ln_s='cp -p'
11188 fi
11189 rm -f conf$$ conf$$.exe conf$$.file
11190
11191 if mkdir -p . 2>/dev/null; then
11192   as_mkdir_p=:
11193 else
11194   test -d ./-p && rmdir ./-p
11195   as_mkdir_p=false
11196 fi
11197
11198 as_executable_p="test -f"
11199
11200 # Sed expression to map a string onto a valid CPP name.
11201 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11202
11203 # Sed expression to map a string onto a valid variable name.
11204 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11205
11206
11207 # IFS
11208 # We need space, tab and new line, in precisely that order.
11209 as_nl='
11210 '
11211 IFS="   $as_nl"
11212
11213 # CDPATH.
11214 $as_unset CDPATH
11215
11216 exec 6>&1
11217
11218 # Open the log real soon, to keep \$[0] and so on meaningful, and to
11219 # report actual input values of CONFIG_FILES etc. instead of their
11220 # values after options handling.  Logging --version etc. is OK.
11221 exec 5>>config.log
11222 {
11223   echo
11224   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11225 ## Running $as_me. ##
11226 _ASBOX
11227 } >&5
11228 cat >&5 <<_CSEOF
11229
11230 This file was extended by $as_me, which was
11231 generated by GNU Autoconf 2.59.  Invocation command line was
11232
11233   CONFIG_FILES    = $CONFIG_FILES
11234   CONFIG_HEADERS  = $CONFIG_HEADERS
11235   CONFIG_LINKS    = $CONFIG_LINKS
11236   CONFIG_COMMANDS = $CONFIG_COMMANDS
11237   $ $0 $@
11238
11239 _CSEOF
11240 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
11241 echo >&5
11242 _ACEOF
11243
11244 # Files that config.status was made for.
11245 if test -n "$ac_config_files"; then
11246   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
11247 fi
11248
11249 if test -n "$ac_config_headers"; then
11250   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
11251 fi
11252
11253 if test -n "$ac_config_links"; then
11254   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
11255 fi
11256
11257 if test -n "$ac_config_commands"; then
11258   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
11259 fi
11260
11261 cat >>$CONFIG_STATUS <<\_ACEOF
11262
11263 ac_cs_usage="\
11264 \`$as_me' instantiates files from templates according to the
11265 current configuration.
11266
11267 Usage: $0 [OPTIONS] [FILE]...
11268
11269   -h, --help       print this help, then exit
11270   -V, --version    print version number, then exit
11271   -q, --quiet      do not print progress messages
11272   -d, --debug      don't remove temporary files
11273       --recheck    update $as_me by reconfiguring in the same conditions
11274   --file=FILE[:TEMPLATE]
11275                    instantiate the configuration file FILE
11276   --header=FILE[:TEMPLATE]
11277                    instantiate the configuration header FILE
11278
11279 Configuration files:
11280 $config_files
11281
11282 Configuration headers:
11283 $config_headers
11284
11285 Configuration commands:
11286 $config_commands
11287
11288 Report bugs to <bug-autoconf@gnu.org>."
11289 _ACEOF
11290
11291 cat >>$CONFIG_STATUS <<_ACEOF
11292 ac_cs_version="\\
11293 config.status
11294 configured by $0, generated by GNU Autoconf 2.59,
11295   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
11296
11297 Copyright (C) 2003 Free Software Foundation, Inc.
11298 This config.status script is free software; the Free Software Foundation
11299 gives unlimited permission to copy, distribute and modify it."
11300 srcdir=$srcdir
11301 INSTALL="$INSTALL"
11302 _ACEOF
11303
11304 cat >>$CONFIG_STATUS <<\_ACEOF
11305 # If no file are specified by the user, then we need to provide default
11306 # value.  By we need to know if files were specified by the user.
11307 ac_need_defaults=:
11308 while test $# != 0
11309 do
11310   case $1 in
11311   --*=*)
11312     ac_option=`expr "x$1" : 'x\([^=]*\)='`
11313     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
11314     ac_shift=:
11315     ;;
11316   -*)
11317     ac_option=$1
11318     ac_optarg=$2
11319     ac_shift=shift
11320     ;;
11321   *) # This is not an option, so the user has probably given explicit
11322      # arguments.
11323      ac_option=$1
11324      ac_need_defaults=false;;
11325   esac
11326
11327   case $ac_option in
11328   # Handling of the options.
11329 _ACEOF
11330 cat >>$CONFIG_STATUS <<\_ACEOF
11331   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11332     ac_cs_recheck=: ;;
11333   --version | --vers* | -V )
11334     echo "$ac_cs_version"; exit 0 ;;
11335   --he | --h)
11336     # Conflict between --help and --header
11337     { { echo "$as_me:$LINENO: error: ambiguous option: $1
11338 Try \`$0 --help' for more information." >&5
11339 echo "$as_me: error: ambiguous option: $1
11340 Try \`$0 --help' for more information." >&2;}
11341    { (exit 1); exit 1; }; };;
11342   --help | --hel | -h )
11343     echo "$ac_cs_usage"; exit 0 ;;
11344   --debug | --d* | -d )
11345     debug=: ;;
11346   --file | --fil | --fi | --f )
11347     $ac_shift
11348     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
11349     ac_need_defaults=false;;
11350   --header | --heade | --head | --hea )
11351     $ac_shift
11352     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
11353     ac_need_defaults=false;;
11354   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11355   | -silent | --silent | --silen | --sile | --sil | --si | --s)
11356     ac_cs_silent=: ;;
11357
11358   # This is an error.
11359   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
11360 Try \`$0 --help' for more information." >&5
11361 echo "$as_me: error: unrecognized option: $1
11362 Try \`$0 --help' for more information." >&2;}
11363    { (exit 1); exit 1; }; } ;;
11364
11365   *) ac_config_targets="$ac_config_targets $1" ;;
11366
11367   esac
11368   shift
11369 done
11370
11371 ac_configure_extra_args=
11372
11373 if $ac_cs_silent; then
11374   exec 6>/dev/null
11375   ac_configure_extra_args="$ac_configure_extra_args --silent"
11376 fi
11377
11378 _ACEOF
11379 cat >>$CONFIG_STATUS <<_ACEOF
11380 if \$ac_cs_recheck; then
11381   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
11382   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11383 fi
11384
11385 _ACEOF
11386
11387
11388
11389
11390
11391 cat >>$CONFIG_STATUS <<\_ACEOF
11392 for ac_config_target in $ac_config_targets
11393 do
11394   case "$ac_config_target" in
11395   # Handling of arguments.
11396   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11397   "ircd/Makefile" ) CONFIG_FILES="$CONFIG_FILES ircd/Makefile" ;;
11398   "ircd/test/Makefile" ) CONFIG_FILES="$CONFIG_FILES ircd/test/Makefile" ;;
11399   "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
11400   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
11401   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11402   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
11403 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
11404    { (exit 1); exit 1; }; };;
11405   esac
11406 done
11407
11408 # If the user did not use the arguments to specify the items to instantiate,
11409 # then the envvar interface is used.  Set only those that are not.
11410 # We use the long form for the default assignment because of an extremely
11411 # bizarre bug on SunOS 4.1.3.
11412 if $ac_need_defaults; then
11413   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11414   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11415   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11416 fi
11417
11418 # Have a temporary directory for convenience.  Make it in the build tree
11419 # simply because there is no reason to put it here, and in addition,
11420 # creating and moving files from /tmp can sometimes cause problems.
11421 # Create a temporary directory, and hook for its removal unless debugging.
11422 $debug ||
11423 {
11424   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
11425   trap '{ (exit 1); exit 1; }' 1 2 13 15
11426 }
11427
11428 # Create a (secure) tmp directory for tmp files.
11429
11430 {
11431   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
11432   test -n "$tmp" && test -d "$tmp"
11433 }  ||
11434 {
11435   tmp=./confstat$$-$RANDOM
11436   (umask 077 && mkdir $tmp)
11437 } ||
11438 {
11439    echo "$me: cannot create a temporary directory in ." >&2
11440    { (exit 1); exit 1; }
11441 }
11442
11443 _ACEOF
11444
11445 cat >>$CONFIG_STATUS <<_ACEOF
11446
11447 #
11448 # CONFIG_FILES section.
11449 #
11450
11451 # No need to generate the scripts if there are no CONFIG_FILES.
11452 # This happens for instance when ./config.status config.h
11453 if test -n "\$CONFIG_FILES"; then
11454   # Protect against being on the right side of a sed subst in config.status.
11455   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
11456    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
11457 s,@SHELL@,$SHELL,;t t
11458 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
11459 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
11460 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
11461 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
11462 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
11463 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
11464 s,@exec_prefix@,$exec_prefix,;t t
11465 s,@prefix@,$prefix,;t t
11466 s,@program_transform_name@,$program_transform_name,;t t
11467 s,@bindir@,$bindir,;t t
11468 s,@sbindir@,$sbindir,;t t
11469 s,@libexecdir@,$libexecdir,;t t
11470 s,@datadir@,$datadir,;t t
11471 s,@sysconfdir@,$sysconfdir,;t t
11472 s,@sharedstatedir@,$sharedstatedir,;t t
11473 s,@localstatedir@,$localstatedir,;t t
11474 s,@libdir@,$libdir,;t t
11475 s,@includedir@,$includedir,;t t
11476 s,@oldincludedir@,$oldincludedir,;t t
11477 s,@infodir@,$infodir,;t t
11478 s,@mandir@,$mandir,;t t
11479 s,@build_alias@,$build_alias,;t t
11480 s,@host_alias@,$host_alias,;t t
11481 s,@target_alias@,$target_alias,;t t
11482 s,@DEFS@,$DEFS,;t t
11483 s,@ECHO_C@,$ECHO_C,;t t
11484 s,@ECHO_N@,$ECHO_N,;t t
11485 s,@ECHO_T@,$ECHO_T,;t t
11486 s,@LIBS@,$LIBS,;t t
11487 s,@build@,$build,;t t
11488 s,@build_cpu@,$build_cpu,;t t
11489 s,@build_vendor@,$build_vendor,;t t
11490 s,@build_os@,$build_os,;t t
11491 s,@host@,$host,;t t
11492 s,@host_cpu@,$host_cpu,;t t
11493 s,@host_vendor@,$host_vendor,;t t
11494 s,@host_os@,$host_os,;t t
11495 s,@CC@,$CC,;t t
11496 s,@CFLAGS@,$CFLAGS,;t t
11497 s,@LDFLAGS@,$LDFLAGS,;t t
11498 s,@CPPFLAGS@,$CPPFLAGS,;t t
11499 s,@ac_ct_CC@,$ac_ct_CC,;t t
11500 s,@EXEEXT@,$EXEEXT,;t t
11501 s,@OBJEXT@,$OBJEXT,;t t
11502 s,@CPP@,$CPP,;t t
11503 s,@EGREP@,$EGREP,;t t
11504 s,@AWK@,$AWK,;t t
11505 s,@SET_MAKE@,$SET_MAKE,;t t
11506 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
11507 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
11508 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
11509 s,@LN_S@,$LN_S,;t t
11510 s,@RMPROG@,$RMPROG,;t t
11511 s,@SHPROG@,$SHPROG,;t t
11512 s,@LEX@,$LEX,;t t
11513 s,@LEXLIB@,$LEXLIB,;t t
11514 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
11515 s,@YACC@,$YACC,;t t
11516 s,@ENGINE_C@,$ENGINE_C,;t t
11517 s,@INSTALL_RULE@,$INSTALL_RULE,;t t
11518 s,@SYMLINK@,$SYMLINK,;t t
11519 s,@IRCDMODE@,$IRCDMODE,;t t
11520 s,@IRCDOWN@,$IRCDOWN,;t t
11521 s,@IRCDGRP@,$IRCDGRP,;t t
11522 s,@DPATH@,$DPATH,;t t
11523 s,@LIBOBJS@,$LIBOBJS,;t t
11524 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
11525 CEOF
11526
11527 _ACEOF
11528
11529   cat >>$CONFIG_STATUS <<\_ACEOF
11530   # Split the substitutions into bite-sized pieces for seds with
11531   # small command number limits, like on Digital OSF/1 and HP-UX.
11532   ac_max_sed_lines=48
11533   ac_sed_frag=1 # Number of current file.
11534   ac_beg=1 # First line for current file.
11535   ac_end=$ac_max_sed_lines # Line after last line for current file.
11536   ac_more_lines=:
11537   ac_sed_cmds=
11538   while $ac_more_lines; do
11539     if test $ac_beg -gt 1; then
11540       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11541     else
11542       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11543     fi
11544     if test ! -s $tmp/subs.frag; then
11545       ac_more_lines=false
11546     else
11547       # The purpose of the label and of the branching condition is to
11548       # speed up the sed processing (if there are no `@' at all, there
11549       # is no need to browse any of the substitutions).
11550       # These are the two extra sed commands mentioned above.
11551       (echo ':t
11552   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
11553       if test -z "$ac_sed_cmds"; then
11554         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
11555       else
11556         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
11557       fi
11558       ac_sed_frag=`expr $ac_sed_frag + 1`
11559       ac_beg=$ac_end
11560       ac_end=`expr $ac_end + $ac_max_sed_lines`
11561     fi
11562   done
11563   if test -z "$ac_sed_cmds"; then
11564     ac_sed_cmds=cat
11565   fi
11566 fi # test -n "$CONFIG_FILES"
11567
11568 _ACEOF
11569 cat >>$CONFIG_STATUS <<\_ACEOF
11570 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
11571   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11572   case $ac_file in
11573   - | *:- | *:-:* ) # input from stdin
11574         cat >$tmp/stdin
11575         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11576         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11577   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11578         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11579   * )   ac_file_in=$ac_file.in ;;
11580   esac
11581
11582   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
11583   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11584 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11585          X"$ac_file" : 'X\(//\)[^/]' \| \
11586          X"$ac_file" : 'X\(//\)$' \| \
11587          X"$ac_file" : 'X\(/\)' \| \
11588          .     : '\(.\)' 2>/dev/null ||
11589 echo X"$ac_file" |
11590     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11591           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11592           /^X\(\/\/\)$/{ s//\1/; q; }
11593           /^X\(\/\).*/{ s//\1/; q; }
11594           s/.*/./; q'`
11595   { if $as_mkdir_p; then
11596     mkdir -p "$ac_dir"
11597   else
11598     as_dir="$ac_dir"
11599     as_dirs=
11600     while test ! -d "$as_dir"; do
11601       as_dirs="$as_dir $as_dirs"
11602       as_dir=`(dirname "$as_dir") 2>/dev/null ||
11603 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11604          X"$as_dir" : 'X\(//\)[^/]' \| \
11605          X"$as_dir" : 'X\(//\)$' \| \
11606          X"$as_dir" : 'X\(/\)' \| \
11607          .     : '\(.\)' 2>/dev/null ||
11608 echo X"$as_dir" |
11609     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11610           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11611           /^X\(\/\/\)$/{ s//\1/; q; }
11612           /^X\(\/\).*/{ s//\1/; q; }
11613           s/.*/./; q'`
11614     done
11615     test ! -n "$as_dirs" || mkdir $as_dirs
11616   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11617 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11618    { (exit 1); exit 1; }; }; }
11619
11620   ac_builddir=.
11621
11622 if test "$ac_dir" != .; then
11623   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11624   # A "../" for each directory in $ac_dir_suffix.
11625   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
11626 else
11627   ac_dir_suffix= ac_top_builddir=
11628 fi
11629
11630 case $srcdir in
11631   .)  # No --srcdir option.  We are building in place.
11632     ac_srcdir=.
11633     if test -z "$ac_top_builddir"; then
11634        ac_top_srcdir=.
11635     else
11636        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
11637     fi ;;
11638   [\\/]* | ?:[\\/]* )  # Absolute path.
11639     ac_srcdir=$srcdir$ac_dir_suffix;
11640     ac_top_srcdir=$srcdir ;;
11641   *) # Relative path.
11642     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
11643     ac_top_srcdir=$ac_top_builddir$srcdir ;;
11644 esac
11645
11646 # Do not use `cd foo && pwd` to compute absolute paths, because
11647 # the directories may not exist.
11648 case `pwd` in
11649 .) ac_abs_builddir="$ac_dir";;
11650 *)
11651   case "$ac_dir" in
11652   .) ac_abs_builddir=`pwd`;;
11653   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
11654   *) ac_abs_builddir=`pwd`/"$ac_dir";;
11655   esac;;
11656 esac
11657 case $ac_abs_builddir in
11658 .) ac_abs_top_builddir=${ac_top_builddir}.;;
11659 *)
11660   case ${ac_top_builddir}. in
11661   .) ac_abs_top_builddir=$ac_abs_builddir;;
11662   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
11663   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
11664   esac;;
11665 esac
11666 case $ac_abs_builddir in
11667 .) ac_abs_srcdir=$ac_srcdir;;
11668 *)
11669   case $ac_srcdir in
11670   .) ac_abs_srcdir=$ac_abs_builddir;;
11671   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
11672   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
11673   esac;;
11674 esac
11675 case $ac_abs_builddir in
11676 .) ac_abs_top_srcdir=$ac_top_srcdir;;
11677 *)
11678   case $ac_top_srcdir in
11679   .) ac_abs_top_srcdir=$ac_abs_builddir;;
11680   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
11681   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
11682   esac;;
11683 esac
11684
11685
11686   case $INSTALL in
11687   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11688   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
11689   esac
11690
11691   if test x"$ac_file" != x-; then
11692     { echo "$as_me:$LINENO: creating $ac_file" >&5
11693 echo "$as_me: creating $ac_file" >&6;}
11694     rm -f "$ac_file"
11695   fi
11696   # Let's still pretend it is `configure' which instantiates (i.e., don't
11697   # use $as_me), people would be surprised to read:
11698   #    /* config.h.  Generated by config.status.  */
11699   if test x"$ac_file" = x-; then
11700     configure_input=
11701   else
11702     configure_input="$ac_file.  "
11703   fi
11704   configure_input=$configure_input"Generated from `echo $ac_file_in |
11705                                      sed 's,.*/,,'` by configure."
11706
11707   # First look for the input files in the build tree, otherwise in the
11708   # src tree.
11709   ac_file_inputs=`IFS=:
11710     for f in $ac_file_in; do
11711       case $f in
11712       -) echo $tmp/stdin ;;
11713       [\\/$]*)
11714          # Absolute (can't be DOS-style, as IFS=:)
11715          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11716 echo "$as_me: error: cannot find input file: $f" >&2;}
11717    { (exit 1); exit 1; }; }
11718          echo "$f";;
11719       *) # Relative
11720          if test -f "$f"; then
11721            # Build tree
11722            echo "$f"
11723          elif test -f "$srcdir/$f"; then
11724            # Source tree
11725            echo "$srcdir/$f"
11726          else
11727            # /dev/null tree
11728            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11729 echo "$as_me: error: cannot find input file: $f" >&2;}
11730    { (exit 1); exit 1; }; }
11731          fi;;
11732       esac
11733     done` || { (exit 1); exit 1; }
11734 _ACEOF
11735 cat >>$CONFIG_STATUS <<_ACEOF
11736   sed "$ac_vpsub
11737 $extrasub
11738 _ACEOF
11739 cat >>$CONFIG_STATUS <<\_ACEOF
11740 :t
11741 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11742 s,@configure_input@,$configure_input,;t t
11743 s,@srcdir@,$ac_srcdir,;t t
11744 s,@abs_srcdir@,$ac_abs_srcdir,;t t
11745 s,@top_srcdir@,$ac_top_srcdir,;t t
11746 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
11747 s,@builddir@,$ac_builddir,;t t
11748 s,@abs_builddir@,$ac_abs_builddir,;t t
11749 s,@top_builddir@,$ac_top_builddir,;t t
11750 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
11751 s,@INSTALL@,$ac_INSTALL,;t t
11752 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
11753   rm -f $tmp/stdin
11754   if test x"$ac_file" != x-; then
11755     mv $tmp/out $ac_file
11756   else
11757     cat $tmp/out
11758     rm -f $tmp/out
11759   fi
11760
11761 done
11762 _ACEOF
11763 cat >>$CONFIG_STATUS <<\_ACEOF
11764
11765 #
11766 # CONFIG_HEADER section.
11767 #
11768
11769 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
11770 # NAME is the cpp macro being defined and VALUE is the value it is being given.
11771 #
11772 # ac_d sets the value in "#define NAME VALUE" lines.
11773 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
11774 ac_dB='[         ].*$,\1#\2'
11775 ac_dC=' '
11776 ac_dD=',;t'
11777 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
11778 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
11779 ac_uB='$,\1#\2define\3'
11780 ac_uC=' '
11781 ac_uD=',;t'
11782
11783 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
11784   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11785   case $ac_file in
11786   - | *:- | *:-:* ) # input from stdin
11787         cat >$tmp/stdin
11788         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11789         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11790   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11791         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11792   * )   ac_file_in=$ac_file.in ;;
11793   esac
11794
11795   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
11796 echo "$as_me: creating $ac_file" >&6;}
11797
11798   # First look for the input files in the build tree, otherwise in the
11799   # src tree.
11800   ac_file_inputs=`IFS=:
11801     for f in $ac_file_in; do
11802       case $f in
11803       -) echo $tmp/stdin ;;
11804       [\\/$]*)
11805          # Absolute (can't be DOS-style, as IFS=:)
11806          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11807 echo "$as_me: error: cannot find input file: $f" >&2;}
11808    { (exit 1); exit 1; }; }
11809          # Do quote $f, to prevent DOS paths from being IFS'd.
11810          echo "$f";;
11811       *) # Relative
11812          if test -f "$f"; then
11813            # Build tree
11814            echo "$f"
11815          elif test -f "$srcdir/$f"; then
11816            # Source tree
11817            echo "$srcdir/$f"
11818          else
11819            # /dev/null tree
11820            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11821 echo "$as_me: error: cannot find input file: $f" >&2;}
11822    { (exit 1); exit 1; }; }
11823          fi;;
11824       esac
11825     done` || { (exit 1); exit 1; }
11826   # Remove the trailing spaces.
11827   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
11828
11829 _ACEOF
11830
11831 # Transform confdefs.h into two sed scripts, `conftest.defines' and
11832 # `conftest.undefs', that substitutes the proper values into
11833 # config.h.in to produce config.h.  The first handles `#define'
11834 # templates, and the second `#undef' templates.
11835 # And first: Protect against being on the right side of a sed subst in
11836 # config.status.  Protect against being in an unquoted here document
11837 # in config.status.
11838 rm -f conftest.defines conftest.undefs
11839 # Using a here document instead of a string reduces the quoting nightmare.
11840 # Putting comments in sed scripts is not portable.
11841 #
11842 # `end' is used to avoid that the second main sed command (meant for
11843 # 0-ary CPP macros) applies to n-ary macro definitions.
11844 # See the Autoconf documentation for `clear'.
11845 cat >confdef2sed.sed <<\_ACEOF
11846 s/[\\&,]/\\&/g
11847 s,[\\$`],\\&,g
11848 t clear
11849 : clear
11850 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
11851 t end
11852 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
11853 : end
11854 _ACEOF
11855 # If some macros were called several times there might be several times
11856 # the same #defines, which is useless.  Nevertheless, we may not want to
11857 # sort them, since we want the *last* AC-DEFINE to be honored.
11858 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
11859 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
11860 rm -f confdef2sed.sed
11861
11862 # This sed command replaces #undef with comments.  This is necessary, for
11863 # example, in the case of _POSIX_SOURCE, which is predefined and required
11864 # on some systems where configure will not decide to define it.
11865 cat >>conftest.undefs <<\_ACEOF
11866 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
11867 _ACEOF
11868
11869 # Break up conftest.defines because some shells have a limit on the size
11870 # of here documents, and old seds have small limits too (100 cmds).
11871 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
11872 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
11873 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
11874 echo '  :' >>$CONFIG_STATUS
11875 rm -f conftest.tail
11876 while grep . conftest.defines >/dev/null
11877 do
11878   # Write a limited-size here document to $tmp/defines.sed.
11879   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
11880   # Speed up: don't consider the non `#define' lines.
11881   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
11882   # Work around the forget-to-reset-the-flag bug.
11883   echo 't clr' >>$CONFIG_STATUS
11884   echo ': clr' >>$CONFIG_STATUS
11885   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
11886   echo 'CEOF
11887   sed -f $tmp/defines.sed $tmp/in >$tmp/out
11888   rm -f $tmp/in
11889   mv $tmp/out $tmp/in
11890 ' >>$CONFIG_STATUS
11891   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
11892   rm -f conftest.defines
11893   mv conftest.tail conftest.defines
11894 done
11895 rm -f conftest.defines
11896 echo '  fi # grep' >>$CONFIG_STATUS
11897 echo >>$CONFIG_STATUS
11898
11899 # Break up conftest.undefs because some shells have a limit on the size
11900 # of here documents, and old seds have small limits too (100 cmds).
11901 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
11902 rm -f conftest.tail
11903 while grep . conftest.undefs >/dev/null
11904 do
11905   # Write a limited-size here document to $tmp/undefs.sed.
11906   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
11907   # Speed up: don't consider the non `#undef'
11908   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
11909   # Work around the forget-to-reset-the-flag bug.
11910   echo 't clr' >>$CONFIG_STATUS
11911   echo ': clr' >>$CONFIG_STATUS
11912   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
11913   echo 'CEOF
11914   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
11915   rm -f $tmp/in
11916   mv $tmp/out $tmp/in
11917 ' >>$CONFIG_STATUS
11918   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
11919   rm -f conftest.undefs
11920   mv conftest.tail conftest.undefs
11921 done
11922 rm -f conftest.undefs
11923
11924 cat >>$CONFIG_STATUS <<\_ACEOF
11925   # Let's still pretend it is `configure' which instantiates (i.e., don't
11926   # use $as_me), people would be surprised to read:
11927   #    /* config.h.  Generated by config.status.  */
11928   if test x"$ac_file" = x-; then
11929     echo "/* Generated by configure.  */" >$tmp/config.h
11930   else
11931     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
11932   fi
11933   cat $tmp/in >>$tmp/config.h
11934   rm -f $tmp/in
11935   if test x"$ac_file" != x-; then
11936     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
11937       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
11938 echo "$as_me: $ac_file is unchanged" >&6;}
11939     else
11940       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11941 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11942          X"$ac_file" : 'X\(//\)[^/]' \| \
11943          X"$ac_file" : 'X\(//\)$' \| \
11944          X"$ac_file" : 'X\(/\)' \| \
11945          .     : '\(.\)' 2>/dev/null ||
11946 echo X"$ac_file" |
11947     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11948           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11949           /^X\(\/\/\)$/{ s//\1/; q; }
11950           /^X\(\/\).*/{ s//\1/; q; }
11951           s/.*/./; q'`
11952       { if $as_mkdir_p; then
11953     mkdir -p "$ac_dir"
11954   else
11955     as_dir="$ac_dir"
11956     as_dirs=
11957     while test ! -d "$as_dir"; do
11958       as_dirs="$as_dir $as_dirs"
11959       as_dir=`(dirname "$as_dir") 2>/dev/null ||
11960 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11961          X"$as_dir" : 'X\(//\)[^/]' \| \
11962          X"$as_dir" : 'X\(//\)$' \| \
11963          X"$as_dir" : 'X\(/\)' \| \
11964          .     : '\(.\)' 2>/dev/null ||
11965 echo X"$as_dir" |
11966     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11967           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11968           /^X\(\/\/\)$/{ s//\1/; q; }
11969           /^X\(\/\).*/{ s//\1/; q; }
11970           s/.*/./; q'`
11971     done
11972     test ! -n "$as_dirs" || mkdir $as_dirs
11973   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11974 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11975    { (exit 1); exit 1; }; }; }
11976
11977       rm -f $ac_file
11978       mv $tmp/config.h $ac_file
11979     fi
11980   else
11981     cat $tmp/config.h
11982     rm -f $tmp/config.h
11983   fi
11984 done
11985 _ACEOF
11986 cat >>$CONFIG_STATUS <<\_ACEOF
11987
11988 #
11989 # CONFIG_COMMANDS section.
11990 #
11991 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
11992   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
11993   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
11994   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
11995 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11996          X"$ac_dest" : 'X\(//\)[^/]' \| \
11997          X"$ac_dest" : 'X\(//\)$' \| \
11998          X"$ac_dest" : 'X\(/\)' \| \
11999          .     : '\(.\)' 2>/dev/null ||
12000 echo X"$ac_dest" |
12001     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12002           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12003           /^X\(\/\/\)$/{ s//\1/; q; }
12004           /^X\(\/\).*/{ s//\1/; q; }
12005           s/.*/./; q'`
12006   { if $as_mkdir_p; then
12007     mkdir -p "$ac_dir"
12008   else
12009     as_dir="$ac_dir"
12010     as_dirs=
12011     while test ! -d "$as_dir"; do
12012       as_dirs="$as_dir $as_dirs"
12013       as_dir=`(dirname "$as_dir") 2>/dev/null ||
12014 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12015          X"$as_dir" : 'X\(//\)[^/]' \| \
12016          X"$as_dir" : 'X\(//\)$' \| \
12017          X"$as_dir" : 'X\(/\)' \| \
12018          .     : '\(.\)' 2>/dev/null ||
12019 echo X"$as_dir" |
12020     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12021           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12022           /^X\(\/\/\)$/{ s//\1/; q; }
12023           /^X\(\/\).*/{ s//\1/; q; }
12024           s/.*/./; q'`
12025     done
12026     test ! -n "$as_dirs" || mkdir $as_dirs
12027   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12028 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12029    { (exit 1); exit 1; }; }; }
12030
12031   ac_builddir=.
12032
12033 if test "$ac_dir" != .; then
12034   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12035   # A "../" for each directory in $ac_dir_suffix.
12036   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12037 else
12038   ac_dir_suffix= ac_top_builddir=
12039 fi
12040
12041 case $srcdir in
12042   .)  # No --srcdir option.  We are building in place.
12043     ac_srcdir=.
12044     if test -z "$ac_top_builddir"; then
12045        ac_top_srcdir=.
12046     else
12047        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12048     fi ;;
12049   [\\/]* | ?:[\\/]* )  # Absolute path.
12050     ac_srcdir=$srcdir$ac_dir_suffix;
12051     ac_top_srcdir=$srcdir ;;
12052   *) # Relative path.
12053     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12054     ac_top_srcdir=$ac_top_builddir$srcdir ;;
12055 esac
12056
12057 # Do not use `cd foo && pwd` to compute absolute paths, because
12058 # the directories may not exist.
12059 case `pwd` in
12060 .) ac_abs_builddir="$ac_dir";;
12061 *)
12062   case "$ac_dir" in
12063   .) ac_abs_builddir=`pwd`;;
12064   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
12065   *) ac_abs_builddir=`pwd`/"$ac_dir";;
12066   esac;;
12067 esac
12068 case $ac_abs_builddir in
12069 .) ac_abs_top_builddir=${ac_top_builddir}.;;
12070 *)
12071   case ${ac_top_builddir}. in
12072   .) ac_abs_top_builddir=$ac_abs_builddir;;
12073   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
12074   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
12075   esac;;
12076 esac
12077 case $ac_abs_builddir in
12078 .) ac_abs_srcdir=$ac_srcdir;;
12079 *)
12080   case $ac_srcdir in
12081   .) ac_abs_srcdir=$ac_abs_builddir;;
12082   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
12083   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
12084   esac;;
12085 esac
12086 case $ac_abs_builddir in
12087 .) ac_abs_top_srcdir=$ac_top_srcdir;;
12088 *)
12089   case $ac_top_srcdir in
12090   .) ac_abs_top_srcdir=$ac_abs_builddir;;
12091   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
12092   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
12093   esac;;
12094 esac
12095
12096
12097   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
12098 echo "$as_me: executing $ac_dest commands" >&6;}
12099   case $ac_dest in
12100     default ) echo timestamp > stamp-h ;;
12101   esac
12102 done
12103 _ACEOF
12104
12105 cat >>$CONFIG_STATUS <<\_ACEOF
12106
12107 { (exit 0); exit 0; }
12108 _ACEOF
12109 chmod +x $CONFIG_STATUS
12110 ac_clean_files=$ac_clean_files_save
12111
12112
12113 # configure is writing to config.log, and then calls config.status.
12114 # config.status does its own redirection, appending to config.log.
12115 # Unfortunately, on DOS this fails, as config.log is still kept open
12116 # by configure, so config.status won't be able to write to it; its
12117 # output is simply discarded.  So we exec the FD to /dev/null,
12118 # effectively closing config.log, so it can be properly (re)opened and
12119 # appended to by config.status.  When coming back to configure, we
12120 # need to make the FD available again.
12121 if test "$no_create" != yes; then
12122   ac_cs_success=:
12123   ac_config_status_args=
12124   test "$silent" = yes &&
12125     ac_config_status_args="$ac_config_status_args --quiet"
12126   exec 5>/dev/null
12127   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12128   exec 5>>config.log
12129   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12130   # would make configure fail if this is the last instruction.
12131   $ac_cs_success || { (exit 1); exit 1; }
12132 fi
12133
12134
12135           ac_config_commands="$ac_config_commands default-1"
12136