Fixes to improve portability (especially to OS X, Solaris, OpenBSD).
[ircu2.10.12-pk.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
4 #
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization.  ##
10 ## --------------------- ##
11
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14   emulate sh
15   NULLCMD=:
16   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17   # is contrary to our usage.  Disable this feature.
18   alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20   set -o posix
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26   as_unset=unset
27 else
28   as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42   LC_TELEPHONE LC_TIME
43 do
44   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45     eval $as_var=C; export $as_var
46   else
47     $as_unset $as_var
48   fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53   as_expr=expr
54 else
55   as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59   as_basename=basename
60 else
61   as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68          X"$0" : 'X\(//\)$' \| \
69          X"$0" : 'X\(/\)$' \| \
70          .     : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73           /^X\/\(\/\/\)$/{ s//\1/; q; }
74           /^X\/\(\/\).*/{ s//\1/; q; }
75           s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88   echo "#! /bin/sh" >conf$$.sh
89   echo  "exit 0"   >>conf$$.sh
90   chmod +x conf$$.sh
91   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92     PATH_SEPARATOR=';'
93   else
94     PATH_SEPARATOR=:
95   fi
96   rm -f conf$$.sh
97 fi
98
99
100   as_lineno_1=$LINENO
101   as_lineno_2=$LINENO
102   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103   test "x$as_lineno_1" != "x$as_lineno_2" &&
104   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105   # Find who we are.  Look in the path if we contain no path at all
106   # relative or not.
107   case $0 in
108     *[\\/]* ) as_myself=$0 ;;
109     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112   IFS=$as_save_IFS
113   test -z "$as_dir" && as_dir=.
114   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117        ;;
118   esac
119   # We did not find ourselves, most probably we were run as `sh COMMAND'
120   # in which case we are not to be found in the path.
121   if test "x$as_myself" = x; then
122     as_myself=$0
123   fi
124   if test ! -f "$as_myself"; then
125     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126    { (exit 1); exit 1; }; }
127   fi
128   case $CONFIG_SHELL in
129   '')
130     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133   IFS=$as_save_IFS
134   test -z "$as_dir" && as_dir=.
135   for as_base in sh bash ksh sh5; do
136          case $as_dir in
137          /*)
138            if ("$as_dir/$as_base" -c '
139   as_lineno_1=$LINENO
140   as_lineno_2=$LINENO
141   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142   test "x$as_lineno_1" != "x$as_lineno_2" &&
143   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146              CONFIG_SHELL=$as_dir/$as_base
147              export CONFIG_SHELL
148              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149            fi;;
150          esac
151        done
152 done
153 ;;
154   esac
155
156   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157   # uniformly replaced by the line number.  The first 'sed' inserts a
158   # line-number line before each line; the second 'sed' does the real
159   # work.  The second script uses 'N' to pair each line-number line
160   # with the numbered line, and appends trailing '-' during
161   # substitution so that $LINENO is not a special case at line end.
162   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164   sed '=' <$as_myself |
165     sed '
166       N
167       s,$,-,
168       : loop
169       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170       t loop
171       s,-$,,
172       s,^['$as_cr_digits']*\n,,
173     ' >$as_me.lineno &&
174   chmod +x $as_me.lineno ||
175     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176    { (exit 1); exit 1; }; }
177
178   # Don't try to exec as it changes $[0], causing all sort of problems
179   # (the dirname of $[0] is not the place where we might find the
180   # original and so on.  Autoconf is especially sensible to this).
181   . ./$as_me.lineno
182   # Exit status is that of the last command.
183   exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188   *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T='      ' ;;
190   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195   as_expr=expr
196 else
197   as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203   # We could just check for DJGPP; but this test a) works b) is more generic
204   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205   if test -f conf$$.exe; then
206     # Don't use ln at all; we don't have any links
207     as_ln_s='cp -p'
208   else
209     as_ln_s='ln -s'
210   fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212   as_ln_s=ln
213 else
214   as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219   as_mkdir_p=:
220 else
221   test -d ./-p && rmdir ./-p
222   as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS="   $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249 exec 6>&1
250
251 #
252 # Initializations.
253 #
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
261
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete.  It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
266
267 # Identity of this package.
268 PACKAGE_NAME=
269 PACKAGE_TARNAME=
270 PACKAGE_VERSION=
271 PACKAGE_STRING=
272 PACKAGE_BUGREPORT=
273
274 ac_unique_file="ircd/ircd.c"
275 ac_default_prefix=$HOME
276 # Factoring default headers for most tests.
277 ac_includes_default="\
278 #include <stdio.h>
279 #if HAVE_SYS_TYPES_H
280 # include <sys/types.h>
281 #endif
282 #if HAVE_SYS_STAT_H
283 # include <sys/stat.h>
284 #endif
285 #if STDC_HEADERS
286 # include <stdlib.h>
287 # include <stddef.h>
288 #else
289 # if HAVE_STDLIB_H
290 #  include <stdlib.h>
291 # endif
292 #endif
293 #if HAVE_STRING_H
294 # if !STDC_HEADERS && HAVE_MEMORY_H
295 #  include <memory.h>
296 # endif
297 # include <string.h>
298 #endif
299 #if HAVE_STRINGS_H
300 # include <strings.h>
301 #endif
302 #if HAVE_INTTYPES_H
303 # include <inttypes.h>
304 #else
305 # if HAVE_STDINT_H
306 #  include <stdint.h>
307 # endif
308 #endif
309 #if HAVE_UNISTD_H
310 # include <unistd.h>
311 #endif"
312
313 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP AWK SET_MAKE INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S LEX LEXLIB LEX_OUTPUT_ROOT YACC RMPROG SHPROG ENGINE_C INSTALL_RULE SYMLINK IRCDMODE IRCDOWN IRCDGRP DPATH LIBOBJS LTLIBOBJS'
314 ac_subst_files=''
315
316 # Initialize some variables set by options.
317 ac_init_help=
318 ac_init_version=false
319 # The variables have the same names as the options, with
320 # dashes changed to underlines.
321 cache_file=/dev/null
322 exec_prefix=NONE
323 no_create=
324 no_recursion=
325 prefix=NONE
326 program_prefix=NONE
327 program_suffix=NONE
328 program_transform_name=s,x,x,
329 silent=
330 site=
331 srcdir=
332 verbose=
333 x_includes=NONE
334 x_libraries=NONE
335
336 # Installation directory options.
337 # These are left unexpanded so users can "make install exec_prefix=/foo"
338 # and all the variables that are supposed to be based on exec_prefix
339 # by default will actually change.
340 # Use braces instead of parens because sh, perl, etc. also accept them.
341 bindir='${exec_prefix}/bin'
342 sbindir='${exec_prefix}/sbin'
343 libexecdir='${exec_prefix}/libexec'
344 datadir='${prefix}/share'
345 sysconfdir='${prefix}/etc'
346 sharedstatedir='${prefix}/com'
347 localstatedir='${prefix}/var'
348 libdir='${exec_prefix}/lib'
349 includedir='${prefix}/include'
350 oldincludedir='/usr/include'
351 infodir='${prefix}/info'
352 mandir='${prefix}/man'
353
354 ac_prev=
355 for ac_option
356 do
357   # If the previous option needs an argument, assign it.
358   if test -n "$ac_prev"; then
359     eval "$ac_prev=\$ac_option"
360     ac_prev=
361     continue
362   fi
363
364   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365
366   # Accept the important Cygnus configure options, so we can diagnose typos.
367
368   case $ac_option in
369
370   -bindir | --bindir | --bindi | --bind | --bin | --bi)
371     ac_prev=bindir ;;
372   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
373     bindir=$ac_optarg ;;
374
375   -build | --build | --buil | --bui | --bu)
376     ac_prev=build_alias ;;
377   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
378     build_alias=$ac_optarg ;;
379
380   -cache-file | --cache-file | --cache-fil | --cache-fi \
381   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
382     ac_prev=cache_file ;;
383   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
384   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
385     cache_file=$ac_optarg ;;
386
387   --config-cache | -C)
388     cache_file=config.cache ;;
389
390   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
391     ac_prev=datadir ;;
392   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
393   | --da=*)
394     datadir=$ac_optarg ;;
395
396   -disable-* | --disable-*)
397     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
398     # Reject names that are not valid shell variable names.
399     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
400       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
401    { (exit 1); exit 1; }; }
402     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
403     eval "enable_$ac_feature=no" ;;
404
405   -enable-* | --enable-*)
406     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
407     # Reject names that are not valid shell variable names.
408     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
409       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
410    { (exit 1); exit 1; }; }
411     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
412     case $ac_option in
413       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
414       *) ac_optarg=yes ;;
415     esac
416     eval "enable_$ac_feature='$ac_optarg'" ;;
417
418   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
419   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
420   | --exec | --exe | --ex)
421     ac_prev=exec_prefix ;;
422   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
423   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
424   | --exec=* | --exe=* | --ex=*)
425     exec_prefix=$ac_optarg ;;
426
427   -gas | --gas | --ga | --g)
428     # Obsolete; use --with-gas.
429     with_gas=yes ;;
430
431   -help | --help | --hel | --he | -h)
432     ac_init_help=long ;;
433   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
434     ac_init_help=recursive ;;
435   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
436     ac_init_help=short ;;
437
438   -host | --host | --hos | --ho)
439     ac_prev=host_alias ;;
440   -host=* | --host=* | --hos=* | --ho=*)
441     host_alias=$ac_optarg ;;
442
443   -includedir | --includedir | --includedi | --included | --include \
444   | --includ | --inclu | --incl | --inc)
445     ac_prev=includedir ;;
446   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
447   | --includ=* | --inclu=* | --incl=* | --inc=*)
448     includedir=$ac_optarg ;;
449
450   -infodir | --infodir | --infodi | --infod | --info | --inf)
451     ac_prev=infodir ;;
452   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
453     infodir=$ac_optarg ;;
454
455   -libdir | --libdir | --libdi | --libd)
456     ac_prev=libdir ;;
457   -libdir=* | --libdir=* | --libdi=* | --libd=*)
458     libdir=$ac_optarg ;;
459
460   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
461   | --libexe | --libex | --libe)
462     ac_prev=libexecdir ;;
463   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
464   | --libexe=* | --libex=* | --libe=*)
465     libexecdir=$ac_optarg ;;
466
467   -localstatedir | --localstatedir | --localstatedi | --localstated \
468   | --localstate | --localstat | --localsta | --localst \
469   | --locals | --local | --loca | --loc | --lo)
470     ac_prev=localstatedir ;;
471   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
472   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
473   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
474     localstatedir=$ac_optarg ;;
475
476   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
477     ac_prev=mandir ;;
478   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
479     mandir=$ac_optarg ;;
480
481   -nfp | --nfp | --nf)
482     # Obsolete; use --without-fp.
483     with_fp=no ;;
484
485   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
486   | --no-cr | --no-c | -n)
487     no_create=yes ;;
488
489   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
490   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
491     no_recursion=yes ;;
492
493   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
494   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
495   | --oldin | --oldi | --old | --ol | --o)
496     ac_prev=oldincludedir ;;
497   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
498   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
499   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
500     oldincludedir=$ac_optarg ;;
501
502   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
503     ac_prev=prefix ;;
504   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
505     prefix=$ac_optarg ;;
506
507   -program-prefix | --program-prefix | --program-prefi | --program-pref \
508   | --program-pre | --program-pr | --program-p)
509     ac_prev=program_prefix ;;
510   -program-prefix=* | --program-prefix=* | --program-prefi=* \
511   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
512     program_prefix=$ac_optarg ;;
513
514   -program-suffix | --program-suffix | --program-suffi | --program-suff \
515   | --program-suf | --program-su | --program-s)
516     ac_prev=program_suffix ;;
517   -program-suffix=* | --program-suffix=* | --program-suffi=* \
518   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
519     program_suffix=$ac_optarg ;;
520
521   -program-transform-name | --program-transform-name \
522   | --program-transform-nam | --program-transform-na \
523   | --program-transform-n | --program-transform- \
524   | --program-transform | --program-transfor \
525   | --program-transfo | --program-transf \
526   | --program-trans | --program-tran \
527   | --progr-tra | --program-tr | --program-t)
528     ac_prev=program_transform_name ;;
529   -program-transform-name=* | --program-transform-name=* \
530   | --program-transform-nam=* | --program-transform-na=* \
531   | --program-transform-n=* | --program-transform-=* \
532   | --program-transform=* | --program-transfor=* \
533   | --program-transfo=* | --program-transf=* \
534   | --program-trans=* | --program-tran=* \
535   | --progr-tra=* | --program-tr=* | --program-t=*)
536     program_transform_name=$ac_optarg ;;
537
538   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
539   | -silent | --silent | --silen | --sile | --sil)
540     silent=yes ;;
541
542   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
543     ac_prev=sbindir ;;
544   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
545   | --sbi=* | --sb=*)
546     sbindir=$ac_optarg ;;
547
548   -sharedstatedir | --sharedstatedir | --sharedstatedi \
549   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
550   | --sharedst | --shareds | --shared | --share | --shar \
551   | --sha | --sh)
552     ac_prev=sharedstatedir ;;
553   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
554   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
555   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
556   | --sha=* | --sh=*)
557     sharedstatedir=$ac_optarg ;;
558
559   -site | --site | --sit)
560     ac_prev=site ;;
561   -site=* | --site=* | --sit=*)
562     site=$ac_optarg ;;
563
564   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
565     ac_prev=srcdir ;;
566   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
567     srcdir=$ac_optarg ;;
568
569   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
570   | --syscon | --sysco | --sysc | --sys | --sy)
571     ac_prev=sysconfdir ;;
572   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
573   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
574     sysconfdir=$ac_optarg ;;
575
576   -target | --target | --targe | --targ | --tar | --ta | --t)
577     ac_prev=target_alias ;;
578   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
579     target_alias=$ac_optarg ;;
580
581   -v | -verbose | --verbose | --verbos | --verbo | --verb)
582     verbose=yes ;;
583
584   -version | --version | --versio | --versi | --vers | -V)
585     ac_init_version=: ;;
586
587   -with-* | --with-*)
588     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
589     # Reject names that are not valid shell variable names.
590     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
591       { echo "$as_me: error: invalid package name: $ac_package" >&2
592    { (exit 1); exit 1; }; }
593     ac_package=`echo $ac_package| sed 's/-/_/g'`
594     case $ac_option in
595       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
596       *) ac_optarg=yes ;;
597     esac
598     eval "with_$ac_package='$ac_optarg'" ;;
599
600   -without-* | --without-*)
601     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
602     # Reject names that are not valid shell variable names.
603     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
604       { echo "$as_me: error: invalid package name: $ac_package" >&2
605    { (exit 1); exit 1; }; }
606     ac_package=`echo $ac_package | sed 's/-/_/g'`
607     eval "with_$ac_package=no" ;;
608
609   --x)
610     # Obsolete; use --with-x.
611     with_x=yes ;;
612
613   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
614   | --x-incl | --x-inc | --x-in | --x-i)
615     ac_prev=x_includes ;;
616   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
617   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
618     x_includes=$ac_optarg ;;
619
620   -x-libraries | --x-libraries | --x-librarie | --x-librari \
621   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
622     ac_prev=x_libraries ;;
623   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
624   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
625     x_libraries=$ac_optarg ;;
626
627   -*) { echo "$as_me: error: unrecognized option: $ac_option
628 Try \`$0 --help' for more information." >&2
629    { (exit 1); exit 1; }; }
630     ;;
631
632   *=*)
633     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
634     # Reject names that are not valid shell variable names.
635     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
636       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
637    { (exit 1); exit 1; }; }
638     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
639     eval "$ac_envvar='$ac_optarg'"
640     export $ac_envvar ;;
641
642   *)
643     # FIXME: should be removed in autoconf 3.0.
644     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
645     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
646       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
647     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
648     ;;
649
650   esac
651 done
652
653 if test -n "$ac_prev"; then
654   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
655   { echo "$as_me: error: missing argument to $ac_option" >&2
656    { (exit 1); exit 1; }; }
657 fi
658
659 # Be sure to have absolute paths.
660 for ac_var in exec_prefix prefix
661 do
662   eval ac_val=$`echo $ac_var`
663   case $ac_val in
664     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
665     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
666    { (exit 1); exit 1; }; };;
667   esac
668 done
669
670 # Be sure to have absolute paths.
671 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
672               localstatedir libdir includedir oldincludedir infodir mandir
673 do
674   eval ac_val=$`echo $ac_var`
675   case $ac_val in
676     [\\/$]* | ?:[\\/]* ) ;;
677     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
678    { (exit 1); exit 1; }; };;
679   esac
680 done
681
682 # There might be people who depend on the old broken behavior: `$host'
683 # used to hold the argument of --host etc.
684 # FIXME: To remove some day.
685 build=$build_alias
686 host=$host_alias
687 target=$target_alias
688
689 # FIXME: To remove some day.
690 if test "x$host_alias" != x; then
691   if test "x$build_alias" = x; then
692     cross_compiling=maybe
693     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
694     If a cross compiler is detected then cross compile mode will be used." >&2
695   elif test "x$build_alias" != "x$host_alias"; then
696     cross_compiling=yes
697   fi
698 fi
699
700 ac_tool_prefix=
701 test -n "$host_alias" && ac_tool_prefix=$host_alias-
702
703 test "$silent" = yes && exec 6>/dev/null
704
705
706 # Find the source files, if location was not specified.
707 if test -z "$srcdir"; then
708   ac_srcdir_defaulted=yes
709   # Try the directory containing this script, then its parent.
710   ac_confdir=`(dirname "$0") 2>/dev/null ||
711 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
712          X"$0" : 'X\(//\)[^/]' \| \
713          X"$0" : 'X\(//\)$' \| \
714          X"$0" : 'X\(/\)' \| \
715          .     : '\(.\)' 2>/dev/null ||
716 echo X"$0" |
717     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
718           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
719           /^X\(\/\/\)$/{ s//\1/; q; }
720           /^X\(\/\).*/{ s//\1/; q; }
721           s/.*/./; q'`
722   srcdir=$ac_confdir
723   if test ! -r $srcdir/$ac_unique_file; then
724     srcdir=..
725   fi
726 else
727   ac_srcdir_defaulted=no
728 fi
729 if test ! -r $srcdir/$ac_unique_file; then
730   if test "$ac_srcdir_defaulted" = yes; then
731     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
732    { (exit 1); exit 1; }; }
733   else
734     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
735    { (exit 1); exit 1; }; }
736   fi
737 fi
738 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
739   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
740    { (exit 1); exit 1; }; }
741 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
742 ac_env_build_alias_set=${build_alias+set}
743 ac_env_build_alias_value=$build_alias
744 ac_cv_env_build_alias_set=${build_alias+set}
745 ac_cv_env_build_alias_value=$build_alias
746 ac_env_host_alias_set=${host_alias+set}
747 ac_env_host_alias_value=$host_alias
748 ac_cv_env_host_alias_set=${host_alias+set}
749 ac_cv_env_host_alias_value=$host_alias
750 ac_env_target_alias_set=${target_alias+set}
751 ac_env_target_alias_value=$target_alias
752 ac_cv_env_target_alias_set=${target_alias+set}
753 ac_cv_env_target_alias_value=$target_alias
754 ac_env_CC_set=${CC+set}
755 ac_env_CC_value=$CC
756 ac_cv_env_CC_set=${CC+set}
757 ac_cv_env_CC_value=$CC
758 ac_env_CFLAGS_set=${CFLAGS+set}
759 ac_env_CFLAGS_value=$CFLAGS
760 ac_cv_env_CFLAGS_set=${CFLAGS+set}
761 ac_cv_env_CFLAGS_value=$CFLAGS
762 ac_env_LDFLAGS_set=${LDFLAGS+set}
763 ac_env_LDFLAGS_value=$LDFLAGS
764 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
765 ac_cv_env_LDFLAGS_value=$LDFLAGS
766 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
767 ac_env_CPPFLAGS_value=$CPPFLAGS
768 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
769 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
770 ac_env_CPP_set=${CPP+set}
771 ac_env_CPP_value=$CPP
772 ac_cv_env_CPP_set=${CPP+set}
773 ac_cv_env_CPP_value=$CPP
774
775 #
776 # Report the --help message.
777 #
778 if test "$ac_init_help" = "long"; then
779   # Omit some internal or obsolete options to make the list less imposing.
780   # This message is too long to be a string in the A/UX 3.1 sh.
781   cat <<_ACEOF
782 \`configure' configures this package to adapt to many kinds of systems.
783
784 Usage: $0 [OPTION]... [VAR=VALUE]...
785
786 To assign environment variables (e.g., CC, CFLAGS...), specify them as
787 VAR=VALUE.  See below for descriptions of some of the useful variables.
788
789 Defaults for the options are specified in brackets.
790
791 Configuration:
792   -h, --help              display this help and exit
793       --help=short        display options specific to this package
794       --help=recursive    display the short help of all the included packages
795   -V, --version           display version information and exit
796   -q, --quiet, --silent   do not print \`checking...' messages
797       --cache-file=FILE   cache test results in FILE [disabled]
798   -C, --config-cache      alias for \`--cache-file=config.cache'
799   -n, --no-create         do not create output files
800       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
801
802 _ACEOF
803
804   cat <<_ACEOF
805 Installation directories:
806   --prefix=PREFIX         install architecture-independent files in PREFIX
807                           [$ac_default_prefix]
808   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
809                           [PREFIX]
810
811 By default, \`make install' will install all the files in
812 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
813 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
814 for instance \`--prefix=\$HOME'.
815
816 For better control, use the options below.
817
818 Fine tuning of the installation directories:
819   --bindir=DIR           user executables [EPREFIX/bin]
820   --sbindir=DIR          system admin executables [EPREFIX/sbin]
821   --libexecdir=DIR       program executables [EPREFIX/libexec]
822   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
823   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
824   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
825   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
826   --libdir=DIR           object code libraries [EPREFIX/lib]
827   --includedir=DIR       C header files [PREFIX/include]
828   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
829   --infodir=DIR          info documentation [PREFIX/info]
830   --mandir=DIR           man documentation [PREFIX/man]
831 _ACEOF
832
833   cat <<\_ACEOF
834
835 System types:
836   --build=BUILD     configure for building on BUILD [guessed]
837   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
838 _ACEOF
839 fi
840
841 if test -n "$ac_init_help"; then
842
843   cat <<\_ACEOF
844
845 Optional Features:
846   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
847   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
848   --enable-poll           Force poll to be used regardless of whether or not
849                           it is a system call
850   --enable-debug          Turn on debugging mode
851   --disable-asserts       Disable assertion checking
852   --disable-symbols       Disable debugging symbols (remove -g from CFLAGS)
853   --enable-profile        Enable profiling support (add -pg to CFLAGS)
854   --enable-pedantic       Enable pedantic warnings (add -pedantic to CFLAGS)
855   --enable-warnings       Enable warnings (add -Wall to CFLAGS)
856   --disable-inlines       Disable inlining for a few critical functions
857   --disable-devpoll       Disable the /dev/poll-based engine
858   --disable-kqueue        Disable the kqueue-based engine
859   --disable-epoll         Disable the epoll-based engine
860
861 Optional Packages:
862   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
863   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
864   --with-leak-detect          Turn on the leak detector(requires patched boehm)
865   --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"                   || test ! -s conftest.err'
1997   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1998   (eval $ac_try) 2>&5
1999   ac_status=$?
2000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2001   (exit $ac_status); }; } &&
2002          { ac_try='test -s conftest.$ac_objext'
2003   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2004   (eval $ac_try) 2>&5
2005   ac_status=$?
2006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007   (exit $ac_status); }; }; then
2008   ac_compiler_gnu=yes
2009 else
2010   echo "$as_me: failed program was:" >&5
2011 sed 's/^/| /' conftest.$ac_ext >&5
2012
2013 ac_compiler_gnu=no
2014 fi
2015 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2016 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2017
2018 fi
2019 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2020 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2021 GCC=`test $ac_compiler_gnu = yes && echo yes`
2022 ac_test_CFLAGS=${CFLAGS+set}
2023 ac_save_CFLAGS=$CFLAGS
2024 CFLAGS="-g"
2025 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2026 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2027 if test "${ac_cv_prog_cc_g+set}" = set; then
2028   echo $ECHO_N "(cached) $ECHO_C" >&6
2029 else
2030   cat >conftest.$ac_ext <<_ACEOF
2031 /* confdefs.h.  */
2032 _ACEOF
2033 cat confdefs.h >>conftest.$ac_ext
2034 cat >>conftest.$ac_ext <<_ACEOF
2035 /* end confdefs.h.  */
2036
2037 int
2038 main ()
2039 {
2040
2041   ;
2042   return 0;
2043 }
2044 _ACEOF
2045 rm -f conftest.$ac_objext
2046 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2047   (eval $ac_compile) 2>conftest.er1
2048   ac_status=$?
2049   grep -v '^ *+' conftest.er1 >conftest.err
2050   rm -f conftest.er1
2051   cat conftest.err >&5
2052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2053   (exit $ac_status); } &&
2054          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2055   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2056   (eval $ac_try) 2>&5
2057   ac_status=$?
2058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2059   (exit $ac_status); }; } &&
2060          { ac_try='test -s conftest.$ac_objext'
2061   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2062   (eval $ac_try) 2>&5
2063   ac_status=$?
2064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2065   (exit $ac_status); }; }; then
2066   ac_cv_prog_cc_g=yes
2067 else
2068   echo "$as_me: failed program was:" >&5
2069 sed 's/^/| /' conftest.$ac_ext >&5
2070
2071 ac_cv_prog_cc_g=no
2072 fi
2073 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2074 fi
2075 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2076 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2077 if test "$ac_test_CFLAGS" = set; then
2078   CFLAGS=$ac_save_CFLAGS
2079 elif test $ac_cv_prog_cc_g = yes; then
2080   if test "$GCC" = yes; then
2081     CFLAGS="-g -O2"
2082   else
2083     CFLAGS="-g"
2084   fi
2085 else
2086   if test "$GCC" = yes; then
2087     CFLAGS="-O2"
2088   else
2089     CFLAGS=
2090   fi
2091 fi
2092 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2093 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2094 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2095   echo $ECHO_N "(cached) $ECHO_C" >&6
2096 else
2097   ac_cv_prog_cc_stdc=no
2098 ac_save_CC=$CC
2099 cat >conftest.$ac_ext <<_ACEOF
2100 /* confdefs.h.  */
2101 _ACEOF
2102 cat confdefs.h >>conftest.$ac_ext
2103 cat >>conftest.$ac_ext <<_ACEOF
2104 /* end confdefs.h.  */
2105 #include <stdarg.h>
2106 #include <stdio.h>
2107 #include <sys/types.h>
2108 #include <sys/stat.h>
2109 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2110 struct buf { int x; };
2111 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2112 static char *e (p, i)
2113      char **p;
2114      int i;
2115 {
2116   return p[i];
2117 }
2118 static char *f (char * (*g) (char **, int), char **p, ...)
2119 {
2120   char *s;
2121   va_list v;
2122   va_start (v,p);
2123   s = g (p, va_arg (v,int));
2124   va_end (v);
2125   return s;
2126 }
2127
2128 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2129    function prototypes and stuff, but not '\xHH' hex character constants.
2130    These don't provoke an error unfortunately, instead are silently treated
2131    as 'x'.  The following induces an error, until -std1 is added to get
2132    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2133    array size at least.  It's necessary to write '\x00'==0 to get something
2134    that's true only with -std1.  */
2135 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2136
2137 int test (int i, double x);
2138 struct s1 {int (*f) (int a);};
2139 struct s2 {int (*f) (double a);};
2140 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2141 int argc;
2142 char **argv;
2143 int
2144 main ()
2145 {
2146 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2147   ;
2148   return 0;
2149 }
2150 _ACEOF
2151 # Don't try gcc -ansi; that turns off useful extensions and
2152 # breaks some systems' header files.
2153 # AIX                   -qlanglvl=ansi
2154 # Ultrix and OSF/1      -std1
2155 # HP-UX 10.20 and later -Ae
2156 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2157 # SVR4                  -Xc -D__EXTENSIONS__
2158 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2159 do
2160   CC="$ac_save_CC $ac_arg"
2161   rm -f conftest.$ac_objext
2162 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2163   (eval $ac_compile) 2>conftest.er1
2164   ac_status=$?
2165   grep -v '^ *+' conftest.er1 >conftest.err
2166   rm -f conftest.er1
2167   cat conftest.err >&5
2168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2169   (exit $ac_status); } &&
2170          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2171   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2172   (eval $ac_try) 2>&5
2173   ac_status=$?
2174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2175   (exit $ac_status); }; } &&
2176          { ac_try='test -s conftest.$ac_objext'
2177   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2178   (eval $ac_try) 2>&5
2179   ac_status=$?
2180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2181   (exit $ac_status); }; }; then
2182   ac_cv_prog_cc_stdc=$ac_arg
2183 break
2184 else
2185   echo "$as_me: failed program was:" >&5
2186 sed 's/^/| /' conftest.$ac_ext >&5
2187
2188 fi
2189 rm -f conftest.err conftest.$ac_objext
2190 done
2191 rm -f conftest.$ac_ext conftest.$ac_objext
2192 CC=$ac_save_CC
2193
2194 fi
2195
2196 case "x$ac_cv_prog_cc_stdc" in
2197   x|xno)
2198     echo "$as_me:$LINENO: result: none needed" >&5
2199 echo "${ECHO_T}none needed" >&6 ;;
2200   *)
2201     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2202 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2203     CC="$CC $ac_cv_prog_cc_stdc" ;;
2204 esac
2205
2206 # Some people use a C++ compiler to compile C.  Since we use `exit',
2207 # in C++ we need to declare it.  In case someone uses the same compiler
2208 # for both compiling C and C++ we need to have the C++ compiler decide
2209 # the declaration of exit, since it's the most demanding environment.
2210 cat >conftest.$ac_ext <<_ACEOF
2211 #ifndef __cplusplus
2212   choke me
2213 #endif
2214 _ACEOF
2215 rm -f conftest.$ac_objext
2216 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2217   (eval $ac_compile) 2>conftest.er1
2218   ac_status=$?
2219   grep -v '^ *+' conftest.er1 >conftest.err
2220   rm -f conftest.er1
2221   cat conftest.err >&5
2222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2223   (exit $ac_status); } &&
2224          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2225   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2226   (eval $ac_try) 2>&5
2227   ac_status=$?
2228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2229   (exit $ac_status); }; } &&
2230          { ac_try='test -s conftest.$ac_objext'
2231   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2232   (eval $ac_try) 2>&5
2233   ac_status=$?
2234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2235   (exit $ac_status); }; }; then
2236   for ac_declaration in \
2237    '' \
2238    'extern "C" void std::exit (int) throw (); using std::exit;' \
2239    'extern "C" void std::exit (int); using std::exit;' \
2240    'extern "C" void exit (int) throw ();' \
2241    'extern "C" void exit (int);' \
2242    'void exit (int);'
2243 do
2244   cat >conftest.$ac_ext <<_ACEOF
2245 /* confdefs.h.  */
2246 _ACEOF
2247 cat confdefs.h >>conftest.$ac_ext
2248 cat >>conftest.$ac_ext <<_ACEOF
2249 /* end confdefs.h.  */
2250 $ac_declaration
2251 #include <stdlib.h>
2252 int
2253 main ()
2254 {
2255 exit (42);
2256   ;
2257   return 0;
2258 }
2259 _ACEOF
2260 rm -f conftest.$ac_objext
2261 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2262   (eval $ac_compile) 2>conftest.er1
2263   ac_status=$?
2264   grep -v '^ *+' conftest.er1 >conftest.err
2265   rm -f conftest.er1
2266   cat conftest.err >&5
2267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2268   (exit $ac_status); } &&
2269          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2270   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2271   (eval $ac_try) 2>&5
2272   ac_status=$?
2273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2274   (exit $ac_status); }; } &&
2275          { ac_try='test -s conftest.$ac_objext'
2276   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2277   (eval $ac_try) 2>&5
2278   ac_status=$?
2279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2280   (exit $ac_status); }; }; then
2281   :
2282 else
2283   echo "$as_me: failed program was:" >&5
2284 sed 's/^/| /' conftest.$ac_ext >&5
2285
2286 continue
2287 fi
2288 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2289   cat >conftest.$ac_ext <<_ACEOF
2290 /* confdefs.h.  */
2291 _ACEOF
2292 cat confdefs.h >>conftest.$ac_ext
2293 cat >>conftest.$ac_ext <<_ACEOF
2294 /* end confdefs.h.  */
2295 $ac_declaration
2296 int
2297 main ()
2298 {
2299 exit (42);
2300   ;
2301   return 0;
2302 }
2303 _ACEOF
2304 rm -f conftest.$ac_objext
2305 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2306   (eval $ac_compile) 2>conftest.er1
2307   ac_status=$?
2308   grep -v '^ *+' conftest.er1 >conftest.err
2309   rm -f conftest.er1
2310   cat conftest.err >&5
2311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2312   (exit $ac_status); } &&
2313          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2314   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2315   (eval $ac_try) 2>&5
2316   ac_status=$?
2317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2318   (exit $ac_status); }; } &&
2319          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
2325   break
2326 else
2327   echo "$as_me: failed program was:" >&5
2328 sed 's/^/| /' conftest.$ac_ext >&5
2329
2330 fi
2331 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2332 done
2333 rm -f conftest*
2334 if test -n "$ac_declaration"; then
2335   echo '#ifdef __cplusplus' >>confdefs.h
2336   echo $ac_declaration      >>confdefs.h
2337   echo '#endif'             >>confdefs.h
2338 fi
2339
2340 else
2341   echo "$as_me: failed program was:" >&5
2342 sed 's/^/| /' conftest.$ac_ext >&5
2343
2344 fi
2345 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2346 ac_ext=c
2347 ac_cpp='$CPP $CPPFLAGS'
2348 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2349 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2350 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2351
2352
2353
2354
2355
2356
2357 echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
2358 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
2359 if test "${am_cv_prog_cc_stdc+set}" = set; then
2360   echo $ECHO_N "(cached) $ECHO_C" >&6
2361 else
2362   am_cv_prog_cc_stdc=no
2363 ac_save_CC="$CC"
2364 # Don't try gcc -ansi; that turns off useful extensions and
2365 # breaks some systems' header files.
2366 # AIX                   -qlanglvl=ansi
2367 # Ultrix and OSF/1      -std1
2368 # HP-UX                 -Aa -D_HPUX_SOURCE
2369 # SVR4                  -Xc -D__EXTENSIONS__
2370 for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2371 do
2372   CC="$ac_save_CC $ac_arg"
2373   cat >conftest.$ac_ext <<_ACEOF
2374 /* confdefs.h.  */
2375 _ACEOF
2376 cat confdefs.h >>conftest.$ac_ext
2377 cat >>conftest.$ac_ext <<_ACEOF
2378 /* end confdefs.h.  */
2379 #include <stdarg.h>
2380 #include <stdio.h>
2381 #include <sys/types.h>
2382 #include <sys/stat.h>
2383 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2384 struct buf { int x; };
2385 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2386 static char *e (p, i)
2387      char **p;
2388      int i;
2389 {
2390   return p[i];
2391 }
2392 static char *f (char * (*g) (char **, int), char **p, ...)
2393 {
2394   char *s;
2395   va_list v;
2396   va_start (v,p);
2397   s = g (p, va_arg (v,int));
2398   va_end (v);
2399   return s;
2400 }
2401 int test (int i, double x);
2402 struct s1 {int (*f) (int a);};
2403 struct s2 {int (*f) (double a);};
2404 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2405 int argc;
2406 char **argv;
2407
2408 int
2409 main ()
2410 {
2411
2412 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2413
2414   ;
2415   return 0;
2416 }
2417 _ACEOF
2418 rm -f conftest.$ac_objext
2419 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2420   (eval $ac_compile) 2>conftest.er1
2421   ac_status=$?
2422   grep -v '^ *+' conftest.er1 >conftest.err
2423   rm -f conftest.er1
2424   cat conftest.err >&5
2425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2426   (exit $ac_status); } &&
2427          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2428   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2429   (eval $ac_try) 2>&5
2430   ac_status=$?
2431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2432   (exit $ac_status); }; } &&
2433          { ac_try='test -s conftest.$ac_objext'
2434   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2435   (eval $ac_try) 2>&5
2436   ac_status=$?
2437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2438   (exit $ac_status); }; }; then
2439   am_cv_prog_cc_stdc="$ac_arg"; break
2440 else
2441   echo "$as_me: failed program was:" >&5
2442 sed 's/^/| /' conftest.$ac_ext >&5
2443
2444 fi
2445 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2446 done
2447 CC="$ac_save_CC"
2448
2449 fi
2450
2451 if test -z "$am_cv_prog_cc_stdc"; then
2452   echo "$as_me:$LINENO: result: none needed" >&5
2453 echo "${ECHO_T}none needed" >&6
2454 else
2455   echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
2456 echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6
2457 fi
2458 case "x$am_cv_prog_cc_stdc" in
2459   x|xno) ;;
2460   *) CC="$CC $am_cv_prog_cc_stdc" ;;
2461 esac
2462
2463 if test x"$CFLAGS" != x; then
2464     CFLAGS=`echo "$CFLAGS" | sed -e 's/-O2/-O3/'`
2465 fi
2466 if test x"$CFLAGS" != x; then
2467     CFLAGS=`echo "$CFLAGS" | sed -e 's/-pipe//g'`
2468 fi
2469 if test x"$CFLAGS" != x; then
2470     unet_old_cflags=$CFLAGS
2471     CFLAGS=`echo "$CFLAGS" | sed -e 's/-g//g'`
2472 fi
2473 if test x"$CFLAGS" != x"$unet_old_cflags"; then
2474     # If -g was already there, force symbols to be enabled
2475     unet_cv_enable_symbols=yes
2476 fi
2477 if test x"$CFLAGS" != x; then
2478     unet_old_cflags=$CFLAGS
2479     CFLAGS=`echo "$CFLAGS" | sed -e 's/-pg//g'`
2480 fi
2481 if test x"$CFLAGS" != x"$unet_old_cflags"; then
2482     # If -pg was already there, force profiling to be enabled
2483     unet_cv_enable_profile=yes
2484 fi
2485 if test x"$CFLAGS" != x; then
2486     unet_old_cflags=$CFLAGS
2487     CFLAGS=`echo "$CFLAGS" | sed -e 's/-Wall//g'`
2488 fi
2489 if test x"$CFLAGS" != x"$unet_old_cflags"; then
2490     # If -Wall was already there, force warnings to be enabled
2491     unet_cv_enable_warnings=yes
2492 fi
2493 if test x"$CFLAGS" != x; then
2494     unet_old_cflags=$CFLAGS
2495     CFLAGS=`echo "$CFLAGS" | sed -e 's/-pedantic//g'`
2496 fi
2497 if test x"$CFLAGS" != x"$unet_old_cflags"; then
2498     # If -pedantic was already there, force pedatic to be enabled
2499     unet_cv_enable_pedantic=yes
2500 fi
2501
2502
2503 echo "$as_me:$LINENO: checking for library containing crypt" >&5
2504 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6
2505 if test "${ac_cv_search_crypt+set}" = set; then
2506   echo $ECHO_N "(cached) $ECHO_C" >&6
2507 else
2508   ac_func_search_save_LIBS=$LIBS
2509 ac_cv_search_crypt=no
2510 cat >conftest.$ac_ext <<_ACEOF
2511 /* confdefs.h.  */
2512 _ACEOF
2513 cat confdefs.h >>conftest.$ac_ext
2514 cat >>conftest.$ac_ext <<_ACEOF
2515 /* end confdefs.h.  */
2516
2517 /* Override any gcc2 internal prototype to avoid an error.  */
2518 #ifdef __cplusplus
2519 extern "C"
2520 #endif
2521 /* We use char because int might match the return type of a gcc2
2522    builtin and then its argument prototype would still apply.  */
2523 char crypt ();
2524 int
2525 main ()
2526 {
2527 crypt ();
2528   ;
2529   return 0;
2530 }
2531 _ACEOF
2532 rm -f conftest.$ac_objext conftest$ac_exeext
2533 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2534   (eval $ac_link) 2>conftest.er1
2535   ac_status=$?
2536   grep -v '^ *+' conftest.er1 >conftest.err
2537   rm -f conftest.er1
2538   cat conftest.err >&5
2539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2540   (exit $ac_status); } &&
2541          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2542   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2543   (eval $ac_try) 2>&5
2544   ac_status=$?
2545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2546   (exit $ac_status); }; } &&
2547          { ac_try='test -s conftest$ac_exeext'
2548   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2549   (eval $ac_try) 2>&5
2550   ac_status=$?
2551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2552   (exit $ac_status); }; }; then
2553   ac_cv_search_crypt="none required"
2554 else
2555   echo "$as_me: failed program was:" >&5
2556 sed 's/^/| /' conftest.$ac_ext >&5
2557
2558 fi
2559 rm -f conftest.err conftest.$ac_objext \
2560       conftest$ac_exeext conftest.$ac_ext
2561 if test "$ac_cv_search_crypt" = no; then
2562   for ac_lib in descrypt crypt; do
2563     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
2564     cat >conftest.$ac_ext <<_ACEOF
2565 /* confdefs.h.  */
2566 _ACEOF
2567 cat confdefs.h >>conftest.$ac_ext
2568 cat >>conftest.$ac_ext <<_ACEOF
2569 /* end confdefs.h.  */
2570
2571 /* Override any gcc2 internal prototype to avoid an error.  */
2572 #ifdef __cplusplus
2573 extern "C"
2574 #endif
2575 /* We use char because int might match the return type of a gcc2
2576    builtin and then its argument prototype would still apply.  */
2577 char crypt ();
2578 int
2579 main ()
2580 {
2581 crypt ();
2582   ;
2583   return 0;
2584 }
2585 _ACEOF
2586 rm -f conftest.$ac_objext conftest$ac_exeext
2587 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2588   (eval $ac_link) 2>conftest.er1
2589   ac_status=$?
2590   grep -v '^ *+' conftest.er1 >conftest.err
2591   rm -f conftest.er1
2592   cat conftest.err >&5
2593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2594   (exit $ac_status); } &&
2595          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2596   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2597   (eval $ac_try) 2>&5
2598   ac_status=$?
2599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2600   (exit $ac_status); }; } &&
2601          { ac_try='test -s conftest$ac_exeext'
2602   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2603   (eval $ac_try) 2>&5
2604   ac_status=$?
2605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2606   (exit $ac_status); }; }; then
2607   ac_cv_search_crypt="-l$ac_lib"
2608 break
2609 else
2610   echo "$as_me: failed program was:" >&5
2611 sed 's/^/| /' conftest.$ac_ext >&5
2612
2613 fi
2614 rm -f conftest.err conftest.$ac_objext \
2615       conftest$ac_exeext conftest.$ac_ext
2616   done
2617 fi
2618 LIBS=$ac_func_search_save_LIBS
2619 fi
2620 echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
2621 echo "${ECHO_T}$ac_cv_search_crypt" >&6
2622 if test "$ac_cv_search_crypt" != no; then
2623   test "$ac_cv_search_crypt" = "none required" || LIBS="$ac_cv_search_crypt $LIBS"
2624
2625 else
2626   { { echo "$as_me:$LINENO: error: Unable to find library containing crypt()" >&5
2627 echo "$as_me: error: Unable to find library containing crypt()" >&2;}
2628    { (exit 1); exit 1; }; }
2629 fi
2630
2631
2632
2633    # Most operating systems have gethostbyname() in the default searched
2634    # libraries (i.e. libc):
2635    echo "$as_me:$LINENO: checking for gethostbyname" >&5
2636 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
2637 if test "${ac_cv_func_gethostbyname+set}" = set; then
2638   echo $ECHO_N "(cached) $ECHO_C" >&6
2639 else
2640   cat >conftest.$ac_ext <<_ACEOF
2641 /* confdefs.h.  */
2642 _ACEOF
2643 cat confdefs.h >>conftest.$ac_ext
2644 cat >>conftest.$ac_ext <<_ACEOF
2645 /* end confdefs.h.  */
2646 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
2647    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2648 #define gethostbyname innocuous_gethostbyname
2649
2650 /* System header to define __stub macros and hopefully few prototypes,
2651     which can conflict with char gethostbyname (); below.
2652     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2653     <limits.h> exists even on freestanding compilers.  */
2654
2655 #ifdef __STDC__
2656 # include <limits.h>
2657 #else
2658 # include <assert.h>
2659 #endif
2660
2661 #undef gethostbyname
2662
2663 /* Override any gcc2 internal prototype to avoid an error.  */
2664 #ifdef __cplusplus
2665 extern "C"
2666 {
2667 #endif
2668 /* We use char because int might match the return type of a gcc2
2669    builtin and then its argument prototype would still apply.  */
2670 char gethostbyname ();
2671 /* The GNU C library defines this for functions which it implements
2672     to always fail with ENOSYS.  Some functions are actually named
2673     something starting with __ and the normal name is an alias.  */
2674 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
2675 choke me
2676 #else
2677 char (*f) () = gethostbyname;
2678 #endif
2679 #ifdef __cplusplus
2680 }
2681 #endif
2682
2683 int
2684 main ()
2685 {
2686 return f != gethostbyname;
2687   ;
2688   return 0;
2689 }
2690 _ACEOF
2691 rm -f conftest.$ac_objext conftest$ac_exeext
2692 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2693   (eval $ac_link) 2>conftest.er1
2694   ac_status=$?
2695   grep -v '^ *+' conftest.er1 >conftest.err
2696   rm -f conftest.er1
2697   cat conftest.err >&5
2698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2699   (exit $ac_status); } &&
2700          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2701   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2702   (eval $ac_try) 2>&5
2703   ac_status=$?
2704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2705   (exit $ac_status); }; } &&
2706          { ac_try='test -s conftest$ac_exeext'
2707   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2708   (eval $ac_try) 2>&5
2709   ac_status=$?
2710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2711   (exit $ac_status); }; }; then
2712   ac_cv_func_gethostbyname=yes
2713 else
2714   echo "$as_me: failed program was:" >&5
2715 sed 's/^/| /' conftest.$ac_ext >&5
2716
2717 ac_cv_func_gethostbyname=no
2718 fi
2719 rm -f conftest.err conftest.$ac_objext \
2720       conftest$ac_exeext conftest.$ac_ext
2721 fi
2722 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
2723 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
2724 if test $ac_cv_func_gethostbyname = yes; then
2725   :
2726 else
2727   # Some OSes (eg. Solaris) place it in libnsl:
2728
2729 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
2730 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
2731 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
2732   echo $ECHO_N "(cached) $ECHO_C" >&6
2733 else
2734   ac_check_lib_save_LIBS=$LIBS
2735 LIBS="-lnsl  $LIBS"
2736 cat >conftest.$ac_ext <<_ACEOF
2737 /* confdefs.h.  */
2738 _ACEOF
2739 cat confdefs.h >>conftest.$ac_ext
2740 cat >>conftest.$ac_ext <<_ACEOF
2741 /* end confdefs.h.  */
2742
2743 /* Override any gcc2 internal prototype to avoid an error.  */
2744 #ifdef __cplusplus
2745 extern "C"
2746 #endif
2747 /* We use char because int might match the return type of a gcc2
2748    builtin and then its argument prototype would still apply.  */
2749 char gethostbyname ();
2750 int
2751 main ()
2752 {
2753 gethostbyname ();
2754   ;
2755   return 0;
2756 }
2757 _ACEOF
2758 rm -f conftest.$ac_objext conftest$ac_exeext
2759 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2760   (eval $ac_link) 2>conftest.er1
2761   ac_status=$?
2762   grep -v '^ *+' conftest.er1 >conftest.err
2763   rm -f conftest.er1
2764   cat conftest.err >&5
2765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2766   (exit $ac_status); } &&
2767          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2768   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2769   (eval $ac_try) 2>&5
2770   ac_status=$?
2771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2772   (exit $ac_status); }; } &&
2773          { ac_try='test -s conftest$ac_exeext'
2774   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2775   (eval $ac_try) 2>&5
2776   ac_status=$?
2777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2778   (exit $ac_status); }; }; then
2779   ac_cv_lib_nsl_gethostbyname=yes
2780 else
2781   echo "$as_me: failed program was:" >&5
2782 sed 's/^/| /' conftest.$ac_ext >&5
2783
2784 ac_cv_lib_nsl_gethostbyname=no
2785 fi
2786 rm -f conftest.err conftest.$ac_objext \
2787       conftest$ac_exeext conftest.$ac_ext
2788 LIBS=$ac_check_lib_save_LIBS
2789 fi
2790 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
2791 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
2792 if test $ac_cv_lib_nsl_gethostbyname = yes; then
2793   cat >>confdefs.h <<_ACEOF
2794 #define HAVE_LIBNSL 1
2795 _ACEOF
2796
2797   LIBS="-lnsl $LIBS"
2798
2799 else
2800   # Some strange OSes (SINIX) have it in libsocket:
2801
2802 echo "$as_me:$LINENO: checking for gethostbyname in -lsocket" >&5
2803 echo $ECHO_N "checking for gethostbyname in -lsocket... $ECHO_C" >&6
2804 if test "${ac_cv_lib_socket_gethostbyname+set}" = set; then
2805   echo $ECHO_N "(cached) $ECHO_C" >&6
2806 else
2807   ac_check_lib_save_LIBS=$LIBS
2808 LIBS="-lsocket  $LIBS"
2809 cat >conftest.$ac_ext <<_ACEOF
2810 /* confdefs.h.  */
2811 _ACEOF
2812 cat confdefs.h >>conftest.$ac_ext
2813 cat >>conftest.$ac_ext <<_ACEOF
2814 /* end confdefs.h.  */
2815
2816 /* Override any gcc2 internal prototype to avoid an error.  */
2817 #ifdef __cplusplus
2818 extern "C"
2819 #endif
2820 /* We use char because int might match the return type of a gcc2
2821    builtin and then its argument prototype would still apply.  */
2822 char gethostbyname ();
2823 int
2824 main ()
2825 {
2826 gethostbyname ();
2827   ;
2828   return 0;
2829 }
2830 _ACEOF
2831 rm -f conftest.$ac_objext conftest$ac_exeext
2832 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2833   (eval $ac_link) 2>conftest.er1
2834   ac_status=$?
2835   grep -v '^ *+' conftest.er1 >conftest.err
2836   rm -f conftest.er1
2837   cat conftest.err >&5
2838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2839   (exit $ac_status); } &&
2840          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2841   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2842   (eval $ac_try) 2>&5
2843   ac_status=$?
2844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2845   (exit $ac_status); }; } &&
2846          { ac_try='test -s conftest$ac_exeext'
2847   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2848   (eval $ac_try) 2>&5
2849   ac_status=$?
2850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2851   (exit $ac_status); }; }; then
2852   ac_cv_lib_socket_gethostbyname=yes
2853 else
2854   echo "$as_me: failed program was:" >&5
2855 sed 's/^/| /' conftest.$ac_ext >&5
2856
2857 ac_cv_lib_socket_gethostbyname=no
2858 fi
2859 rm -f conftest.err conftest.$ac_objext \
2860       conftest$ac_exeext conftest.$ac_ext
2861 LIBS=$ac_check_lib_save_LIBS
2862 fi
2863 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_gethostbyname" >&5
2864 echo "${ECHO_T}$ac_cv_lib_socket_gethostbyname" >&6
2865 if test $ac_cv_lib_socket_gethostbyname = yes; then
2866   cat >>confdefs.h <<_ACEOF
2867 #define HAVE_LIBSOCKET 1
2868 _ACEOF
2869
2870   LIBS="-lsocket $LIBS"
2871
2872 else
2873   # Unfortunately libsocket sometimes depends on libnsl.
2874           # AC_CHECK_LIB's API is essentially broken so the following
2875           # ugliness is necessary:
2876           echo "$as_me:$LINENO: checking for gethostbyname in -lsocket" >&5
2877 echo $ECHO_N "checking for gethostbyname in -lsocket... $ECHO_C" >&6
2878 if test "${ac_cv_lib_socket_gethostbyname+set}" = set; then
2879   echo $ECHO_N "(cached) $ECHO_C" >&6
2880 else
2881   ac_check_lib_save_LIBS=$LIBS
2882 LIBS="-lsocket -lnsl $LIBS"
2883 cat >conftest.$ac_ext <<_ACEOF
2884 /* confdefs.h.  */
2885 _ACEOF
2886 cat confdefs.h >>conftest.$ac_ext
2887 cat >>conftest.$ac_ext <<_ACEOF
2888 /* end confdefs.h.  */
2889
2890 /* Override any gcc2 internal prototype to avoid an error.  */
2891 #ifdef __cplusplus
2892 extern "C"
2893 #endif
2894 /* We use char because int might match the return type of a gcc2
2895    builtin and then its argument prototype would still apply.  */
2896 char gethostbyname ();
2897 int
2898 main ()
2899 {
2900 gethostbyname ();
2901   ;
2902   return 0;
2903 }
2904 _ACEOF
2905 rm -f conftest.$ac_objext conftest$ac_exeext
2906 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2907   (eval $ac_link) 2>conftest.er1
2908   ac_status=$?
2909   grep -v '^ *+' conftest.er1 >conftest.err
2910   rm -f conftest.er1
2911   cat conftest.err >&5
2912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2913   (exit $ac_status); } &&
2914          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2915   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2916   (eval $ac_try) 2>&5
2917   ac_status=$?
2918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2919   (exit $ac_status); }; } &&
2920          { ac_try='test -s conftest$ac_exeext'
2921   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2922   (eval $ac_try) 2>&5
2923   ac_status=$?
2924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2925   (exit $ac_status); }; }; then
2926   ac_cv_lib_socket_gethostbyname=yes
2927 else
2928   echo "$as_me: failed program was:" >&5
2929 sed 's/^/| /' conftest.$ac_ext >&5
2930
2931 ac_cv_lib_socket_gethostbyname=no
2932 fi
2933 rm -f conftest.err conftest.$ac_objext \
2934       conftest$ac_exeext conftest.$ac_ext
2935 LIBS=$ac_check_lib_save_LIBS
2936 fi
2937 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_gethostbyname" >&5
2938 echo "${ECHO_T}$ac_cv_lib_socket_gethostbyname" >&6
2939 if test $ac_cv_lib_socket_gethostbyname = yes; then
2940   LIBS="-lsocket -lnsl $LIBS"
2941 else
2942
2943 echo "$as_me:$LINENO: checking for gethostbyname in -lresolv" >&5
2944 echo $ECHO_N "checking for gethostbyname in -lresolv... $ECHO_C" >&6
2945 if test "${ac_cv_lib_resolv_gethostbyname+set}" = set; then
2946   echo $ECHO_N "(cached) $ECHO_C" >&6
2947 else
2948   ac_check_lib_save_LIBS=$LIBS
2949 LIBS="-lresolv  $LIBS"
2950 cat >conftest.$ac_ext <<_ACEOF
2951 /* confdefs.h.  */
2952 _ACEOF
2953 cat confdefs.h >>conftest.$ac_ext
2954 cat >>conftest.$ac_ext <<_ACEOF
2955 /* end confdefs.h.  */
2956
2957 /* Override any gcc2 internal prototype to avoid an error.  */
2958 #ifdef __cplusplus
2959 extern "C"
2960 #endif
2961 /* We use char because int might match the return type of a gcc2
2962    builtin and then its argument prototype would still apply.  */
2963 char gethostbyname ();
2964 int
2965 main ()
2966 {
2967 gethostbyname ();
2968   ;
2969   return 0;
2970 }
2971 _ACEOF
2972 rm -f conftest.$ac_objext conftest$ac_exeext
2973 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2974   (eval $ac_link) 2>conftest.er1
2975   ac_status=$?
2976   grep -v '^ *+' conftest.er1 >conftest.err
2977   rm -f conftest.er1
2978   cat conftest.err >&5
2979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2980   (exit $ac_status); } &&
2981          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2982   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2983   (eval $ac_try) 2>&5
2984   ac_status=$?
2985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2986   (exit $ac_status); }; } &&
2987          { ac_try='test -s conftest$ac_exeext'
2988   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2989   (eval $ac_try) 2>&5
2990   ac_status=$?
2991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2992   (exit $ac_status); }; }; then
2993   ac_cv_lib_resolv_gethostbyname=yes
2994 else
2995   echo "$as_me: failed program was:" >&5
2996 sed 's/^/| /' conftest.$ac_ext >&5
2997
2998 ac_cv_lib_resolv_gethostbyname=no
2999 fi
3000 rm -f conftest.err conftest.$ac_objext \
3001       conftest$ac_exeext conftest.$ac_ext
3002 LIBS=$ac_check_lib_save_LIBS
3003 fi
3004 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname" >&5
3005 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname" >&6
3006 if test $ac_cv_lib_resolv_gethostbyname = yes; then
3007   cat >>confdefs.h <<_ACEOF
3008 #define HAVE_LIBRESOLV 1
3009 _ACEOF
3010
3011   LIBS="-lresolv $LIBS"
3012
3013 fi
3014
3015 fi
3016
3017
3018 fi
3019
3020
3021 fi
3022
3023
3024 fi
3025
3026   echo "$as_me:$LINENO: checking for socket" >&5
3027 echo $ECHO_N "checking for socket... $ECHO_C" >&6
3028 if test "${ac_cv_func_socket+set}" = set; then
3029   echo $ECHO_N "(cached) $ECHO_C" >&6
3030 else
3031   cat >conftest.$ac_ext <<_ACEOF
3032 /* confdefs.h.  */
3033 _ACEOF
3034 cat confdefs.h >>conftest.$ac_ext
3035 cat >>conftest.$ac_ext <<_ACEOF
3036 /* end confdefs.h.  */
3037 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
3038    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
3039 #define socket innocuous_socket
3040
3041 /* System header to define __stub macros and hopefully few prototypes,
3042     which can conflict with char socket (); below.
3043     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3044     <limits.h> exists even on freestanding compilers.  */
3045
3046 #ifdef __STDC__
3047 # include <limits.h>
3048 #else
3049 # include <assert.h>
3050 #endif
3051
3052 #undef socket
3053
3054 /* Override any gcc2 internal prototype to avoid an error.  */
3055 #ifdef __cplusplus
3056 extern "C"
3057 {
3058 #endif
3059 /* We use char because int might match the return type of a gcc2
3060    builtin and then its argument prototype would still apply.  */
3061 char socket ();
3062 /* The GNU C library defines this for functions which it implements
3063     to always fail with ENOSYS.  Some functions are actually named
3064     something starting with __ and the normal name is an alias.  */
3065 #if defined (__stub_socket) || defined (__stub___socket)
3066 choke me
3067 #else
3068 char (*f) () = socket;
3069 #endif
3070 #ifdef __cplusplus
3071 }
3072 #endif
3073
3074 int
3075 main ()
3076 {
3077 return f != socket;
3078   ;
3079   return 0;
3080 }
3081 _ACEOF
3082 rm -f conftest.$ac_objext conftest$ac_exeext
3083 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3084   (eval $ac_link) 2>conftest.er1
3085   ac_status=$?
3086   grep -v '^ *+' conftest.er1 >conftest.err
3087   rm -f conftest.er1
3088   cat conftest.err >&5
3089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3090   (exit $ac_status); } &&
3091          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3092   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3093   (eval $ac_try) 2>&5
3094   ac_status=$?
3095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3096   (exit $ac_status); }; } &&
3097          { ac_try='test -s conftest$ac_exeext'
3098   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3099   (eval $ac_try) 2>&5
3100   ac_status=$?
3101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3102   (exit $ac_status); }; }; then
3103   ac_cv_func_socket=yes
3104 else
3105   echo "$as_me: failed program was:" >&5
3106 sed 's/^/| /' conftest.$ac_ext >&5
3107
3108 ac_cv_func_socket=no
3109 fi
3110 rm -f conftest.err conftest.$ac_objext \
3111       conftest$ac_exeext conftest.$ac_ext
3112 fi
3113 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
3114 echo "${ECHO_T}$ac_cv_func_socket" >&6
3115 if test $ac_cv_func_socket = yes; then
3116   :
3117 else
3118
3119 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
3120 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
3121 if test "${ac_cv_lib_socket_socket+set}" = set; then
3122   echo $ECHO_N "(cached) $ECHO_C" >&6
3123 else
3124   ac_check_lib_save_LIBS=$LIBS
3125 LIBS="-lsocket  $LIBS"
3126 cat >conftest.$ac_ext <<_ACEOF
3127 /* confdefs.h.  */
3128 _ACEOF
3129 cat confdefs.h >>conftest.$ac_ext
3130 cat >>conftest.$ac_ext <<_ACEOF
3131 /* end confdefs.h.  */
3132
3133 /* Override any gcc2 internal prototype to avoid an error.  */
3134 #ifdef __cplusplus
3135 extern "C"
3136 #endif
3137 /* We use char because int might match the return type of a gcc2
3138    builtin and then its argument prototype would still apply.  */
3139 char socket ();
3140 int
3141 main ()
3142 {
3143 socket ();
3144   ;
3145   return 0;
3146 }
3147 _ACEOF
3148 rm -f conftest.$ac_objext conftest$ac_exeext
3149 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3150   (eval $ac_link) 2>conftest.er1
3151   ac_status=$?
3152   grep -v '^ *+' conftest.er1 >conftest.err
3153   rm -f conftest.er1
3154   cat conftest.err >&5
3155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3156   (exit $ac_status); } &&
3157          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3158   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3159   (eval $ac_try) 2>&5
3160   ac_status=$?
3161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3162   (exit $ac_status); }; } &&
3163          { ac_try='test -s conftest$ac_exeext'
3164   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3165   (eval $ac_try) 2>&5
3166   ac_status=$?
3167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3168   (exit $ac_status); }; }; then
3169   ac_cv_lib_socket_socket=yes
3170 else
3171   echo "$as_me: failed program was:" >&5
3172 sed 's/^/| /' conftest.$ac_ext >&5
3173
3174 ac_cv_lib_socket_socket=no
3175 fi
3176 rm -f conftest.err conftest.$ac_objext \
3177       conftest$ac_exeext conftest.$ac_ext
3178 LIBS=$ac_check_lib_save_LIBS
3179 fi
3180 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
3181 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
3182 if test $ac_cv_lib_socket_socket = yes; then
3183   cat >>confdefs.h <<_ACEOF
3184 #define HAVE_LIBSOCKET 1
3185 _ACEOF
3186
3187   LIBS="-lsocket $LIBS"
3188
3189 else
3190   echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
3191 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
3192 if test "${ac_cv_lib_socket_socket+set}" = set; then
3193   echo $ECHO_N "(cached) $ECHO_C" >&6
3194 else
3195   ac_check_lib_save_LIBS=$LIBS
3196 LIBS="-lsocket -lnsl $LIBS"
3197 cat >conftest.$ac_ext <<_ACEOF
3198 /* confdefs.h.  */
3199 _ACEOF
3200 cat confdefs.h >>conftest.$ac_ext
3201 cat >>conftest.$ac_ext <<_ACEOF
3202 /* end confdefs.h.  */
3203
3204 /* Override any gcc2 internal prototype to avoid an error.  */
3205 #ifdef __cplusplus
3206 extern "C"
3207 #endif
3208 /* We use char because int might match the return type of a gcc2
3209    builtin and then its argument prototype would still apply.  */
3210 char socket ();
3211 int
3212 main ()
3213 {
3214 socket ();
3215   ;
3216   return 0;
3217 }
3218 _ACEOF
3219 rm -f conftest.$ac_objext conftest$ac_exeext
3220 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3221   (eval $ac_link) 2>conftest.er1
3222   ac_status=$?
3223   grep -v '^ *+' conftest.er1 >conftest.err
3224   rm -f conftest.er1
3225   cat conftest.err >&5
3226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3227   (exit $ac_status); } &&
3228          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3229   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3230   (eval $ac_try) 2>&5
3231   ac_status=$?
3232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3233   (exit $ac_status); }; } &&
3234          { ac_try='test -s conftest$ac_exeext'
3235   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3236   (eval $ac_try) 2>&5
3237   ac_status=$?
3238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3239   (exit $ac_status); }; }; then
3240   ac_cv_lib_socket_socket=yes
3241 else
3242   echo "$as_me: failed program was:" >&5
3243 sed 's/^/| /' conftest.$ac_ext >&5
3244
3245 ac_cv_lib_socket_socket=no
3246 fi
3247 rm -f conftest.err conftest.$ac_objext \
3248       conftest$ac_exeext conftest.$ac_ext
3249 LIBS=$ac_check_lib_save_LIBS
3250 fi
3251 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
3252 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
3253 if test $ac_cv_lib_socket_socket = yes; then
3254   LIBS="-lsocket -lnsl $LIBS"
3255 fi
3256
3257 fi
3258
3259 fi
3260
3261
3262
3263 ac_ext=c
3264 ac_cpp='$CPP $CPPFLAGS'
3265 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3266 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3267 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3268 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3269 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3270 # On Suns, sometimes $CPP names a directory.
3271 if test -n "$CPP" && test -d "$CPP"; then
3272   CPP=
3273 fi
3274 if test -z "$CPP"; then
3275   if test "${ac_cv_prog_CPP+set}" = set; then
3276   echo $ECHO_N "(cached) $ECHO_C" >&6
3277 else
3278       # Double quotes because CPP needs to be expanded
3279     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3280     do
3281       ac_preproc_ok=false
3282 for ac_c_preproc_warn_flag in '' yes
3283 do
3284   # Use a header file that comes with gcc, so configuring glibc
3285   # with a fresh cross-compiler works.
3286   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3287   # <limits.h> exists even on freestanding compilers.
3288   # On the NeXT, cc -E runs the code through the compiler's parser,
3289   # not just through cpp. "Syntax error" is here to catch this case.
3290   cat >conftest.$ac_ext <<_ACEOF
3291 /* confdefs.h.  */
3292 _ACEOF
3293 cat confdefs.h >>conftest.$ac_ext
3294 cat >>conftest.$ac_ext <<_ACEOF
3295 /* end confdefs.h.  */
3296 #ifdef __STDC__
3297 # include <limits.h>
3298 #else
3299 # include <assert.h>
3300 #endif
3301                      Syntax error
3302 _ACEOF
3303 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3304   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3305   ac_status=$?
3306   grep -v '^ *+' conftest.er1 >conftest.err
3307   rm -f conftest.er1
3308   cat conftest.err >&5
3309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3310   (exit $ac_status); } >/dev/null; then
3311   if test -s conftest.err; then
3312     ac_cpp_err=$ac_c_preproc_warn_flag
3313     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3314   else
3315     ac_cpp_err=
3316   fi
3317 else
3318   ac_cpp_err=yes
3319 fi
3320 if test -z "$ac_cpp_err"; then
3321   :
3322 else
3323   echo "$as_me: failed program was:" >&5
3324 sed 's/^/| /' conftest.$ac_ext >&5
3325
3326   # Broken: fails on valid input.
3327 continue
3328 fi
3329 rm -f conftest.err conftest.$ac_ext
3330
3331   # OK, works on sane cases.  Now check whether non-existent headers
3332   # can be detected and how.
3333   cat >conftest.$ac_ext <<_ACEOF
3334 /* confdefs.h.  */
3335 _ACEOF
3336 cat confdefs.h >>conftest.$ac_ext
3337 cat >>conftest.$ac_ext <<_ACEOF
3338 /* end confdefs.h.  */
3339 #include <ac_nonexistent.h>
3340 _ACEOF
3341 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3342   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3343   ac_status=$?
3344   grep -v '^ *+' conftest.er1 >conftest.err
3345   rm -f conftest.er1
3346   cat conftest.err >&5
3347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3348   (exit $ac_status); } >/dev/null; then
3349   if test -s conftest.err; then
3350     ac_cpp_err=$ac_c_preproc_warn_flag
3351     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3352   else
3353     ac_cpp_err=
3354   fi
3355 else
3356   ac_cpp_err=yes
3357 fi
3358 if test -z "$ac_cpp_err"; then
3359   # Broken: success on invalid input.
3360 continue
3361 else
3362   echo "$as_me: failed program was:" >&5
3363 sed 's/^/| /' conftest.$ac_ext >&5
3364
3365   # Passes both tests.
3366 ac_preproc_ok=:
3367 break
3368 fi
3369 rm -f conftest.err conftest.$ac_ext
3370
3371 done
3372 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3373 rm -f conftest.err conftest.$ac_ext
3374 if $ac_preproc_ok; then
3375   break
3376 fi
3377
3378     done
3379     ac_cv_prog_CPP=$CPP
3380
3381 fi
3382   CPP=$ac_cv_prog_CPP
3383 else
3384   ac_cv_prog_CPP=$CPP
3385 fi
3386 echo "$as_me:$LINENO: result: $CPP" >&5
3387 echo "${ECHO_T}$CPP" >&6
3388 ac_preproc_ok=false
3389 for ac_c_preproc_warn_flag in '' yes
3390 do
3391   # Use a header file that comes with gcc, so configuring glibc
3392   # with a fresh cross-compiler works.
3393   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3394   # <limits.h> exists even on freestanding compilers.
3395   # On the NeXT, cc -E runs the code through the compiler's parser,
3396   # not just through cpp. "Syntax error" is here to catch this case.
3397   cat >conftest.$ac_ext <<_ACEOF
3398 /* confdefs.h.  */
3399 _ACEOF
3400 cat confdefs.h >>conftest.$ac_ext
3401 cat >>conftest.$ac_ext <<_ACEOF
3402 /* end confdefs.h.  */
3403 #ifdef __STDC__
3404 # include <limits.h>
3405 #else
3406 # include <assert.h>
3407 #endif
3408                      Syntax error
3409 _ACEOF
3410 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3411   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3412   ac_status=$?
3413   grep -v '^ *+' conftest.er1 >conftest.err
3414   rm -f conftest.er1
3415   cat conftest.err >&5
3416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3417   (exit $ac_status); } >/dev/null; then
3418   if test -s conftest.err; then
3419     ac_cpp_err=$ac_c_preproc_warn_flag
3420     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3421   else
3422     ac_cpp_err=
3423   fi
3424 else
3425   ac_cpp_err=yes
3426 fi
3427 if test -z "$ac_cpp_err"; then
3428   :
3429 else
3430   echo "$as_me: failed program was:" >&5
3431 sed 's/^/| /' conftest.$ac_ext >&5
3432
3433   # Broken: fails on valid input.
3434 continue
3435 fi
3436 rm -f conftest.err conftest.$ac_ext
3437
3438   # OK, works on sane cases.  Now check whether non-existent headers
3439   # can be detected and how.
3440   cat >conftest.$ac_ext <<_ACEOF
3441 /* confdefs.h.  */
3442 _ACEOF
3443 cat confdefs.h >>conftest.$ac_ext
3444 cat >>conftest.$ac_ext <<_ACEOF
3445 /* end confdefs.h.  */
3446 #include <ac_nonexistent.h>
3447 _ACEOF
3448 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3449   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3450   ac_status=$?
3451   grep -v '^ *+' conftest.er1 >conftest.err
3452   rm -f conftest.er1
3453   cat conftest.err >&5
3454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3455   (exit $ac_status); } >/dev/null; then
3456   if test -s conftest.err; then
3457     ac_cpp_err=$ac_c_preproc_warn_flag
3458     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3459   else
3460     ac_cpp_err=
3461   fi
3462 else
3463   ac_cpp_err=yes
3464 fi
3465 if test -z "$ac_cpp_err"; then
3466   # Broken: success on invalid input.
3467 continue
3468 else
3469   echo "$as_me: failed program was:" >&5
3470 sed 's/^/| /' conftest.$ac_ext >&5
3471
3472   # Passes both tests.
3473 ac_preproc_ok=:
3474 break
3475 fi
3476 rm -f conftest.err conftest.$ac_ext
3477
3478 done
3479 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3480 rm -f conftest.err conftest.$ac_ext
3481 if $ac_preproc_ok; then
3482   :
3483 else
3484   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3485 See \`config.log' for more details." >&5
3486 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3487 See \`config.log' for more details." >&2;}
3488    { (exit 1); exit 1; }; }
3489 fi
3490
3491 ac_ext=c
3492 ac_cpp='$CPP $CPPFLAGS'
3493 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3494 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3495 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3496
3497
3498 echo "$as_me:$LINENO: checking for egrep" >&5
3499 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3500 if test "${ac_cv_prog_egrep+set}" = set; then
3501   echo $ECHO_N "(cached) $ECHO_C" >&6
3502 else
3503   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3504     then ac_cv_prog_egrep='grep -E'
3505     else ac_cv_prog_egrep='egrep'
3506     fi
3507 fi
3508 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3509 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3510  EGREP=$ac_cv_prog_egrep
3511
3512
3513 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3514 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3515 if test "${ac_cv_header_stdc+set}" = set; then
3516   echo $ECHO_N "(cached) $ECHO_C" >&6
3517 else
3518   cat >conftest.$ac_ext <<_ACEOF
3519 /* confdefs.h.  */
3520 _ACEOF
3521 cat confdefs.h >>conftest.$ac_ext
3522 cat >>conftest.$ac_ext <<_ACEOF
3523 /* end confdefs.h.  */
3524 #include <stdlib.h>
3525 #include <stdarg.h>
3526 #include <string.h>
3527 #include <float.h>
3528
3529 int
3530 main ()
3531 {
3532
3533   ;
3534   return 0;
3535 }
3536 _ACEOF
3537 rm -f conftest.$ac_objext
3538 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3539   (eval $ac_compile) 2>conftest.er1
3540   ac_status=$?
3541   grep -v '^ *+' conftest.er1 >conftest.err
3542   rm -f conftest.er1
3543   cat conftest.err >&5
3544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3545   (exit $ac_status); } &&
3546          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3547   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3548   (eval $ac_try) 2>&5
3549   ac_status=$?
3550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3551   (exit $ac_status); }; } &&
3552          { ac_try='test -s conftest.$ac_objext'
3553   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3554   (eval $ac_try) 2>&5
3555   ac_status=$?
3556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3557   (exit $ac_status); }; }; then
3558   ac_cv_header_stdc=yes
3559 else
3560   echo "$as_me: failed program was:" >&5
3561 sed 's/^/| /' conftest.$ac_ext >&5
3562
3563 ac_cv_header_stdc=no
3564 fi
3565 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3566
3567 if test $ac_cv_header_stdc = yes; then
3568   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3569   cat >conftest.$ac_ext <<_ACEOF
3570 /* confdefs.h.  */
3571 _ACEOF
3572 cat confdefs.h >>conftest.$ac_ext
3573 cat >>conftest.$ac_ext <<_ACEOF
3574 /* end confdefs.h.  */
3575 #include <string.h>
3576
3577 _ACEOF
3578 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3579   $EGREP "memchr" >/dev/null 2>&1; then
3580   :
3581 else
3582   ac_cv_header_stdc=no
3583 fi
3584 rm -f conftest*
3585
3586 fi
3587
3588 if test $ac_cv_header_stdc = yes; then
3589   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3590   cat >conftest.$ac_ext <<_ACEOF
3591 /* confdefs.h.  */
3592 _ACEOF
3593 cat confdefs.h >>conftest.$ac_ext
3594 cat >>conftest.$ac_ext <<_ACEOF
3595 /* end confdefs.h.  */
3596 #include <stdlib.h>
3597
3598 _ACEOF
3599 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3600   $EGREP "free" >/dev/null 2>&1; then
3601   :
3602 else
3603   ac_cv_header_stdc=no
3604 fi
3605 rm -f conftest*
3606
3607 fi
3608
3609 if test $ac_cv_header_stdc = yes; then
3610   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3611   if test "$cross_compiling" = yes; then
3612   :
3613 else
3614   cat >conftest.$ac_ext <<_ACEOF
3615 /* confdefs.h.  */
3616 _ACEOF
3617 cat confdefs.h >>conftest.$ac_ext
3618 cat >>conftest.$ac_ext <<_ACEOF
3619 /* end confdefs.h.  */
3620 #include <ctype.h>
3621 #if ((' ' & 0x0FF) == 0x020)
3622 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3623 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3624 #else
3625 # define ISLOWER(c) \
3626                    (('a' <= (c) && (c) <= 'i') \
3627                      || ('j' <= (c) && (c) <= 'r') \
3628                      || ('s' <= (c) && (c) <= 'z'))
3629 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3630 #endif
3631
3632 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3633 int
3634 main ()
3635 {
3636   int i;
3637   for (i = 0; i < 256; i++)
3638     if (XOR (islower (i), ISLOWER (i))
3639         || toupper (i) != TOUPPER (i))
3640       exit(2);
3641   exit (0);
3642 }
3643 _ACEOF
3644 rm -f conftest$ac_exeext
3645 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3646   (eval $ac_link) 2>&5
3647   ac_status=$?
3648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3649   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3650   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3651   (eval $ac_try) 2>&5
3652   ac_status=$?
3653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3654   (exit $ac_status); }; }; then
3655   :
3656 else
3657   echo "$as_me: program exited with status $ac_status" >&5
3658 echo "$as_me: failed program was:" >&5
3659 sed 's/^/| /' conftest.$ac_ext >&5
3660
3661 ( exit $ac_status )
3662 ac_cv_header_stdc=no
3663 fi
3664 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3665 fi
3666 fi
3667 fi
3668 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3669 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3670 if test $ac_cv_header_stdc = yes; then
3671
3672 cat >>confdefs.h <<\_ACEOF
3673 #define STDC_HEADERS 1
3674 _ACEOF
3675
3676 fi
3677
3678 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3679
3680
3681
3682
3683
3684
3685
3686
3687
3688 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3689                   inttypes.h stdint.h unistd.h
3690 do
3691 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3692 echo "$as_me:$LINENO: checking for $ac_header" >&5
3693 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3694 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3695   echo $ECHO_N "(cached) $ECHO_C" >&6
3696 else
3697   cat >conftest.$ac_ext <<_ACEOF
3698 /* confdefs.h.  */
3699 _ACEOF
3700 cat confdefs.h >>conftest.$ac_ext
3701 cat >>conftest.$ac_ext <<_ACEOF
3702 /* end confdefs.h.  */
3703 $ac_includes_default
3704
3705 #include <$ac_header>
3706 _ACEOF
3707 rm -f conftest.$ac_objext
3708 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3709   (eval $ac_compile) 2>conftest.er1
3710   ac_status=$?
3711   grep -v '^ *+' conftest.er1 >conftest.err
3712   rm -f conftest.er1
3713   cat conftest.err >&5
3714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3715   (exit $ac_status); } &&
3716          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3717   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3718   (eval $ac_try) 2>&5
3719   ac_status=$?
3720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3721   (exit $ac_status); }; } &&
3722          { ac_try='test -s conftest.$ac_objext'
3723   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3724   (eval $ac_try) 2>&5
3725   ac_status=$?
3726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3727   (exit $ac_status); }; }; then
3728   eval "$as_ac_Header=yes"
3729 else
3730   echo "$as_me: failed program was:" >&5
3731 sed 's/^/| /' conftest.$ac_ext >&5
3732
3733 eval "$as_ac_Header=no"
3734 fi
3735 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3736 fi
3737 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3738 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3739 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3740   cat >>confdefs.h <<_ACEOF
3741 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3742 _ACEOF
3743
3744 fi
3745
3746 done
3747
3748
3749
3750
3751
3752
3753
3754
3755
3756
3757 for ac_header in crypt.h poll.h stdint.h sys/devpoll.h sys/epoll.h sys/event.h sys/param.h sys/socket.h
3758 do
3759 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3760 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3761   echo "$as_me:$LINENO: checking for $ac_header" >&5
3762 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3763 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3764   echo $ECHO_N "(cached) $ECHO_C" >&6
3765 fi
3766 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3767 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3768 else
3769   # Is the header compilable?
3770 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3771 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3772 cat >conftest.$ac_ext <<_ACEOF
3773 /* confdefs.h.  */
3774 _ACEOF
3775 cat confdefs.h >>conftest.$ac_ext
3776 cat >>conftest.$ac_ext <<_ACEOF
3777 /* end confdefs.h.  */
3778 $ac_includes_default
3779 #include <$ac_header>
3780 _ACEOF
3781 rm -f conftest.$ac_objext
3782 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3783   (eval $ac_compile) 2>conftest.er1
3784   ac_status=$?
3785   grep -v '^ *+' conftest.er1 >conftest.err
3786   rm -f conftest.er1
3787   cat conftest.err >&5
3788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3789   (exit $ac_status); } &&
3790          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3791   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3792   (eval $ac_try) 2>&5
3793   ac_status=$?
3794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3795   (exit $ac_status); }; } &&
3796          { ac_try='test -s conftest.$ac_objext'
3797   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3798   (eval $ac_try) 2>&5
3799   ac_status=$?
3800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3801   (exit $ac_status); }; }; then
3802   ac_header_compiler=yes
3803 else
3804   echo "$as_me: failed program was:" >&5
3805 sed 's/^/| /' conftest.$ac_ext >&5
3806
3807 ac_header_compiler=no
3808 fi
3809 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3810 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3811 echo "${ECHO_T}$ac_header_compiler" >&6
3812
3813 # Is the header present?
3814 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3815 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3816 cat >conftest.$ac_ext <<_ACEOF
3817 /* confdefs.h.  */
3818 _ACEOF
3819 cat confdefs.h >>conftest.$ac_ext
3820 cat >>conftest.$ac_ext <<_ACEOF
3821 /* end confdefs.h.  */
3822 #include <$ac_header>
3823 _ACEOF
3824 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3825   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3826   ac_status=$?
3827   grep -v '^ *+' conftest.er1 >conftest.err
3828   rm -f conftest.er1
3829   cat conftest.err >&5
3830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3831   (exit $ac_status); } >/dev/null; then
3832   if test -s conftest.err; then
3833     ac_cpp_err=$ac_c_preproc_warn_flag
3834     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3835   else
3836     ac_cpp_err=
3837   fi
3838 else
3839   ac_cpp_err=yes
3840 fi
3841 if test -z "$ac_cpp_err"; then
3842   ac_header_preproc=yes
3843 else
3844   echo "$as_me: failed program was:" >&5
3845 sed 's/^/| /' conftest.$ac_ext >&5
3846
3847   ac_header_preproc=no
3848 fi
3849 rm -f conftest.err conftest.$ac_ext
3850 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3851 echo "${ECHO_T}$ac_header_preproc" >&6
3852
3853 # So?  What about this header?
3854 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3855   yes:no: )
3856     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3857 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3858     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3859 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3860     ac_header_preproc=yes
3861     ;;
3862   no:yes:* )
3863     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3864 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3865     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
3866 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
3867     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3868 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3869     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
3870 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
3871     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3872 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3873     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3874 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3875     (
3876       cat <<\_ASBOX
3877 ## ------------------------------------------ ##
3878 ## Report this to the AC_PACKAGE_NAME lists.  ##
3879 ## ------------------------------------------ ##
3880 _ASBOX
3881     ) |
3882       sed "s/^/$as_me: WARNING:     /" >&2
3883     ;;
3884 esac
3885 echo "$as_me:$LINENO: checking for $ac_header" >&5
3886 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3887 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3888   echo $ECHO_N "(cached) $ECHO_C" >&6
3889 else
3890   eval "$as_ac_Header=\$ac_header_preproc"
3891 fi
3892 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3893 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3894
3895 fi
3896 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3897   cat >>confdefs.h <<_ACEOF
3898 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3899 _ACEOF
3900
3901 fi
3902
3903 done
3904
3905
3906 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
3907 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
3908 if test "${ac_cv_c_bigendian+set}" = set; then
3909   echo $ECHO_N "(cached) $ECHO_C" >&6
3910 else
3911   # See if sys/param.h defines the BYTE_ORDER macro.
3912 cat >conftest.$ac_ext <<_ACEOF
3913 /* confdefs.h.  */
3914 _ACEOF
3915 cat confdefs.h >>conftest.$ac_ext
3916 cat >>conftest.$ac_ext <<_ACEOF
3917 /* end confdefs.h.  */
3918 #include <sys/types.h>
3919 #include <sys/param.h>
3920
3921 int
3922 main ()
3923 {
3924 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3925  bogus endian macros
3926 #endif
3927
3928   ;
3929   return 0;
3930 }
3931 _ACEOF
3932 rm -f conftest.$ac_objext
3933 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3934   (eval $ac_compile) 2>conftest.er1
3935   ac_status=$?
3936   grep -v '^ *+' conftest.er1 >conftest.err
3937   rm -f conftest.er1
3938   cat conftest.err >&5
3939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3940   (exit $ac_status); } &&
3941          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3942   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3943   (eval $ac_try) 2>&5
3944   ac_status=$?
3945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3946   (exit $ac_status); }; } &&
3947          { ac_try='test -s conftest.$ac_objext'
3948   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3949   (eval $ac_try) 2>&5
3950   ac_status=$?
3951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3952   (exit $ac_status); }; }; then
3953   # It does; now see whether it defined to BIG_ENDIAN or not.
3954 cat >conftest.$ac_ext <<_ACEOF
3955 /* confdefs.h.  */
3956 _ACEOF
3957 cat confdefs.h >>conftest.$ac_ext
3958 cat >>conftest.$ac_ext <<_ACEOF
3959 /* end confdefs.h.  */
3960 #include <sys/types.h>
3961 #include <sys/param.h>
3962
3963 int
3964 main ()
3965 {
3966 #if BYTE_ORDER != BIG_ENDIAN
3967  not big endian
3968 #endif
3969
3970   ;
3971   return 0;
3972 }
3973 _ACEOF
3974 rm -f conftest.$ac_objext
3975 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3976   (eval $ac_compile) 2>conftest.er1
3977   ac_status=$?
3978   grep -v '^ *+' conftest.er1 >conftest.err
3979   rm -f conftest.er1
3980   cat conftest.err >&5
3981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3982   (exit $ac_status); } &&
3983          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3984   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3985   (eval $ac_try) 2>&5
3986   ac_status=$?
3987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3988   (exit $ac_status); }; } &&
3989          { ac_try='test -s conftest.$ac_objext'
3990   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3991   (eval $ac_try) 2>&5
3992   ac_status=$?
3993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3994   (exit $ac_status); }; }; then
3995   ac_cv_c_bigendian=yes
3996 else
3997   echo "$as_me: failed program was:" >&5
3998 sed 's/^/| /' conftest.$ac_ext >&5
3999
4000 ac_cv_c_bigendian=no
4001 fi
4002 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4003 else
4004   echo "$as_me: failed program was:" >&5
4005 sed 's/^/| /' conftest.$ac_ext >&5
4006
4007 # It does not; compile a test program.
4008 if test "$cross_compiling" = yes; then
4009   # try to guess the endianness by grepping values into an object file
4010   ac_cv_c_bigendian=unknown
4011   cat >conftest.$ac_ext <<_ACEOF
4012 /* confdefs.h.  */
4013 _ACEOF
4014 cat confdefs.h >>conftest.$ac_ext
4015 cat >>conftest.$ac_ext <<_ACEOF
4016 /* end confdefs.h.  */
4017 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4018 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4019 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4020 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4021 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4022 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4023 int
4024 main ()
4025 {
4026  _ascii (); _ebcdic ();
4027   ;
4028   return 0;
4029 }
4030 _ACEOF
4031 rm -f conftest.$ac_objext
4032 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4033   (eval $ac_compile) 2>conftest.er1
4034   ac_status=$?
4035   grep -v '^ *+' conftest.er1 >conftest.err
4036   rm -f conftest.er1
4037   cat conftest.err >&5
4038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4039   (exit $ac_status); } &&
4040          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4041   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4042   (eval $ac_try) 2>&5
4043   ac_status=$?
4044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4045   (exit $ac_status); }; } &&
4046          { ac_try='test -s conftest.$ac_objext'
4047   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4048   (eval $ac_try) 2>&5
4049   ac_status=$?
4050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4051   (exit $ac_status); }; }; then
4052   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4053   ac_cv_c_bigendian=yes
4054 fi
4055 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4056   if test "$ac_cv_c_bigendian" = unknown; then
4057     ac_cv_c_bigendian=no
4058   else
4059     # finding both strings is unlikely to happen, but who knows?
4060     ac_cv_c_bigendian=unknown
4061   fi
4062 fi
4063 else
4064   echo "$as_me: failed program was:" >&5
4065 sed 's/^/| /' conftest.$ac_ext >&5
4066
4067 fi
4068 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4069 else
4070   cat >conftest.$ac_ext <<_ACEOF
4071 /* confdefs.h.  */
4072 _ACEOF
4073 cat confdefs.h >>conftest.$ac_ext
4074 cat >>conftest.$ac_ext <<_ACEOF
4075 /* end confdefs.h.  */
4076 int
4077 main ()
4078 {
4079   /* Are we little or big endian?  From Harbison&Steele.  */
4080   union
4081   {
4082     long l;
4083     char c[sizeof (long)];
4084   } u;
4085   u.l = 1;
4086   exit (u.c[sizeof (long) - 1] == 1);
4087 }
4088 _ACEOF
4089 rm -f conftest$ac_exeext
4090 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4091   (eval $ac_link) 2>&5
4092   ac_status=$?
4093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4094   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4095   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4096   (eval $ac_try) 2>&5
4097   ac_status=$?
4098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4099   (exit $ac_status); }; }; then
4100   ac_cv_c_bigendian=no
4101 else
4102   echo "$as_me: program exited with status $ac_status" >&5
4103 echo "$as_me: failed program was:" >&5
4104 sed 's/^/| /' conftest.$ac_ext >&5
4105
4106 ( exit $ac_status )
4107 ac_cv_c_bigendian=yes
4108 fi
4109 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4110 fi
4111 fi
4112 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4113 fi
4114 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4115 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
4116 case $ac_cv_c_bigendian in
4117   yes)
4118
4119 cat >>confdefs.h <<\_ACEOF
4120 #define WORDS_BIGENDIAN 1
4121 _ACEOF
4122  ;;
4123   no)
4124      ;;
4125   *)
4126     { { echo "$as_me:$LINENO: error: unknown endianness
4127 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4128 echo "$as_me: error: unknown endianness
4129 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4130    { (exit 1); exit 1; }; } ;;
4131 esac
4132
4133 echo "$as_me:$LINENO: checking for size_t" >&5
4134 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
4135 if test "${ac_cv_type_size_t+set}" = set; then
4136   echo $ECHO_N "(cached) $ECHO_C" >&6
4137 else
4138   cat >conftest.$ac_ext <<_ACEOF
4139 /* confdefs.h.  */
4140 _ACEOF
4141 cat confdefs.h >>conftest.$ac_ext
4142 cat >>conftest.$ac_ext <<_ACEOF
4143 /* end confdefs.h.  */
4144 $ac_includes_default
4145 int
4146 main ()
4147 {
4148 if ((size_t *) 0)
4149   return 0;
4150 if (sizeof (size_t))
4151   return 0;
4152   ;
4153   return 0;
4154 }
4155 _ACEOF
4156 rm -f conftest.$ac_objext
4157 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4158   (eval $ac_compile) 2>conftest.er1
4159   ac_status=$?
4160   grep -v '^ *+' conftest.er1 >conftest.err
4161   rm -f conftest.er1
4162   cat conftest.err >&5
4163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4164   (exit $ac_status); } &&
4165          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4166   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4167   (eval $ac_try) 2>&5
4168   ac_status=$?
4169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4170   (exit $ac_status); }; } &&
4171          { ac_try='test -s conftest.$ac_objext'
4172   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4173   (eval $ac_try) 2>&5
4174   ac_status=$?
4175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4176   (exit $ac_status); }; }; then
4177   ac_cv_type_size_t=yes
4178 else
4179   echo "$as_me: failed program was:" >&5
4180 sed 's/^/| /' conftest.$ac_ext >&5
4181
4182 ac_cv_type_size_t=no
4183 fi
4184 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4185 fi
4186 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
4187 echo "${ECHO_T}$ac_cv_type_size_t" >&6
4188 if test $ac_cv_type_size_t = yes; then
4189   :
4190 else
4191
4192 cat >>confdefs.h <<_ACEOF
4193 #define size_t unsigned
4194 _ACEOF
4195
4196 fi
4197
4198 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
4199 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
4200 if test "${ac_cv_header_time+set}" = set; then
4201   echo $ECHO_N "(cached) $ECHO_C" >&6
4202 else
4203   cat >conftest.$ac_ext <<_ACEOF
4204 /* confdefs.h.  */
4205 _ACEOF
4206 cat confdefs.h >>conftest.$ac_ext
4207 cat >>conftest.$ac_ext <<_ACEOF
4208 /* end confdefs.h.  */
4209 #include <sys/types.h>
4210 #include <sys/time.h>
4211 #include <time.h>
4212
4213 int
4214 main ()
4215 {
4216 if ((struct tm *) 0)
4217 return 0;
4218   ;
4219   return 0;
4220 }
4221 _ACEOF
4222 rm -f conftest.$ac_objext
4223 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4224   (eval $ac_compile) 2>conftest.er1
4225   ac_status=$?
4226   grep -v '^ *+' conftest.er1 >conftest.err
4227   rm -f conftest.er1
4228   cat conftest.err >&5
4229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4230   (exit $ac_status); } &&
4231          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4232   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4233   (eval $ac_try) 2>&5
4234   ac_status=$?
4235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4236   (exit $ac_status); }; } &&
4237          { ac_try='test -s conftest.$ac_objext'
4238   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4239   (eval $ac_try) 2>&5
4240   ac_status=$?
4241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4242   (exit $ac_status); }; }; then
4243   ac_cv_header_time=yes
4244 else
4245   echo "$as_me: failed program was:" >&5
4246 sed 's/^/| /' conftest.$ac_ext >&5
4247
4248 ac_cv_header_time=no
4249 fi
4250 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4251 fi
4252 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
4253 echo "${ECHO_T}$ac_cv_header_time" >&6
4254 if test $ac_cv_header_time = yes; then
4255
4256 cat >>confdefs.h <<\_ACEOF
4257 #define TIME_WITH_SYS_TIME 1
4258 _ACEOF
4259
4260 fi
4261
4262 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
4263 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
4264 if test "${ac_cv_struct_tm+set}" = set; then
4265   echo $ECHO_N "(cached) $ECHO_C" >&6
4266 else
4267   cat >conftest.$ac_ext <<_ACEOF
4268 /* confdefs.h.  */
4269 _ACEOF
4270 cat confdefs.h >>conftest.$ac_ext
4271 cat >>conftest.$ac_ext <<_ACEOF
4272 /* end confdefs.h.  */
4273 #include <sys/types.h>
4274 #include <time.h>
4275
4276 int
4277 main ()
4278 {
4279 struct tm *tp; tp->tm_sec;
4280   ;
4281   return 0;
4282 }
4283 _ACEOF
4284 rm -f conftest.$ac_objext
4285 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4286   (eval $ac_compile) 2>conftest.er1
4287   ac_status=$?
4288   grep -v '^ *+' conftest.er1 >conftest.err
4289   rm -f conftest.er1
4290   cat conftest.err >&5
4291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4292   (exit $ac_status); } &&
4293          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4294   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4295   (eval $ac_try) 2>&5
4296   ac_status=$?
4297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4298   (exit $ac_status); }; } &&
4299          { ac_try='test -s conftest.$ac_objext'
4300   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4301   (eval $ac_try) 2>&5
4302   ac_status=$?
4303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4304   (exit $ac_status); }; }; then
4305   ac_cv_struct_tm=time.h
4306 else
4307   echo "$as_me: failed program was:" >&5
4308 sed 's/^/| /' conftest.$ac_ext >&5
4309
4310 ac_cv_struct_tm=sys/time.h
4311 fi
4312 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4313 fi
4314 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
4315 echo "${ECHO_T}$ac_cv_struct_tm" >&6
4316 if test $ac_cv_struct_tm = sys/time.h; then
4317
4318 cat >>confdefs.h <<\_ACEOF
4319 #define TM_IN_SYS_TIME 1
4320 _ACEOF
4321
4322 fi
4323
4324 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
4325 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
4326 if test "${ac_cv_type_uid_t+set}" = set; then
4327   echo $ECHO_N "(cached) $ECHO_C" >&6
4328 else
4329   cat >conftest.$ac_ext <<_ACEOF
4330 /* confdefs.h.  */
4331 _ACEOF
4332 cat confdefs.h >>conftest.$ac_ext
4333 cat >>conftest.$ac_ext <<_ACEOF
4334 /* end confdefs.h.  */
4335 #include <sys/types.h>
4336
4337 _ACEOF
4338 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4339   $EGREP "uid_t" >/dev/null 2>&1; then
4340   ac_cv_type_uid_t=yes
4341 else
4342   ac_cv_type_uid_t=no
4343 fi
4344 rm -f conftest*
4345
4346 fi
4347 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
4348 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
4349 if test $ac_cv_type_uid_t = no; then
4350
4351 cat >>confdefs.h <<\_ACEOF
4352 #define uid_t int
4353 _ACEOF
4354
4355
4356 cat >>confdefs.h <<\_ACEOF
4357 #define gid_t int
4358 _ACEOF
4359
4360 fi
4361
4362 echo "$as_me:$LINENO: checking for short" >&5
4363 echo $ECHO_N "checking for short... $ECHO_C" >&6
4364 if test "${ac_cv_type_short+set}" = set; then
4365   echo $ECHO_N "(cached) $ECHO_C" >&6
4366 else
4367   cat >conftest.$ac_ext <<_ACEOF
4368 /* confdefs.h.  */
4369 _ACEOF
4370 cat confdefs.h >>conftest.$ac_ext
4371 cat >>conftest.$ac_ext <<_ACEOF
4372 /* end confdefs.h.  */
4373 $ac_includes_default
4374 int
4375 main ()
4376 {
4377 if ((short *) 0)
4378   return 0;
4379 if (sizeof (short))
4380   return 0;
4381   ;
4382   return 0;
4383 }
4384 _ACEOF
4385 rm -f conftest.$ac_objext
4386 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4387   (eval $ac_compile) 2>conftest.er1
4388   ac_status=$?
4389   grep -v '^ *+' conftest.er1 >conftest.err
4390   rm -f conftest.er1
4391   cat conftest.err >&5
4392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4393   (exit $ac_status); } &&
4394          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4395   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4396   (eval $ac_try) 2>&5
4397   ac_status=$?
4398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4399   (exit $ac_status); }; } &&
4400          { ac_try='test -s conftest.$ac_objext'
4401   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4402   (eval $ac_try) 2>&5
4403   ac_status=$?
4404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4405   (exit $ac_status); }; }; then
4406   ac_cv_type_short=yes
4407 else
4408   echo "$as_me: failed program was:" >&5
4409 sed 's/^/| /' conftest.$ac_ext >&5
4410
4411 ac_cv_type_short=no
4412 fi
4413 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4414 fi
4415 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
4416 echo "${ECHO_T}$ac_cv_type_short" >&6
4417
4418 echo "$as_me:$LINENO: checking size of short" >&5
4419 echo $ECHO_N "checking size of short... $ECHO_C" >&6
4420 if test "${ac_cv_sizeof_short+set}" = set; then
4421   echo $ECHO_N "(cached) $ECHO_C" >&6
4422 else
4423   if test "$ac_cv_type_short" = yes; then
4424   # The cast to unsigned long works around a bug in the HP C Compiler
4425   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4426   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4427   # This bug is HP SR number 8606223364.
4428   if test "$cross_compiling" = yes; then
4429   # Depending upon the size, compute the lo and hi bounds.
4430 cat >conftest.$ac_ext <<_ACEOF
4431 /* confdefs.h.  */
4432 _ACEOF
4433 cat confdefs.h >>conftest.$ac_ext
4434 cat >>conftest.$ac_ext <<_ACEOF
4435 /* end confdefs.h.  */
4436 $ac_includes_default
4437 int
4438 main ()
4439 {
4440 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
4441 test_array [0] = 0
4442
4443   ;
4444   return 0;
4445 }
4446 _ACEOF
4447 rm -f conftest.$ac_objext
4448 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4449   (eval $ac_compile) 2>conftest.er1
4450   ac_status=$?
4451   grep -v '^ *+' conftest.er1 >conftest.err
4452   rm -f conftest.er1
4453   cat conftest.err >&5
4454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4455   (exit $ac_status); } &&
4456          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4457   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4458   (eval $ac_try) 2>&5
4459   ac_status=$?
4460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4461   (exit $ac_status); }; } &&
4462          { ac_try='test -s conftest.$ac_objext'
4463   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4464   (eval $ac_try) 2>&5
4465   ac_status=$?
4466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4467   (exit $ac_status); }; }; then
4468   ac_lo=0 ac_mid=0
4469   while :; do
4470     cat >conftest.$ac_ext <<_ACEOF
4471 /* confdefs.h.  */
4472 _ACEOF
4473 cat confdefs.h >>conftest.$ac_ext
4474 cat >>conftest.$ac_ext <<_ACEOF
4475 /* end confdefs.h.  */
4476 $ac_includes_default
4477 int
4478 main ()
4479 {
4480 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4481 test_array [0] = 0
4482
4483   ;
4484   return 0;
4485 }
4486 _ACEOF
4487 rm -f conftest.$ac_objext
4488 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4489   (eval $ac_compile) 2>conftest.er1
4490   ac_status=$?
4491   grep -v '^ *+' conftest.er1 >conftest.err
4492   rm -f conftest.er1
4493   cat conftest.err >&5
4494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4495   (exit $ac_status); } &&
4496          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4497   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4498   (eval $ac_try) 2>&5
4499   ac_status=$?
4500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4501   (exit $ac_status); }; } &&
4502          { ac_try='test -s conftest.$ac_objext'
4503   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4504   (eval $ac_try) 2>&5
4505   ac_status=$?
4506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4507   (exit $ac_status); }; }; then
4508   ac_hi=$ac_mid; break
4509 else
4510   echo "$as_me: failed program was:" >&5
4511 sed 's/^/| /' conftest.$ac_ext >&5
4512
4513 ac_lo=`expr $ac_mid + 1`
4514                     if test $ac_lo -le $ac_mid; then
4515                       ac_lo= ac_hi=
4516                       break
4517                     fi
4518                     ac_mid=`expr 2 '*' $ac_mid + 1`
4519 fi
4520 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4521   done
4522 else
4523   echo "$as_me: failed program was:" >&5
4524 sed 's/^/| /' conftest.$ac_ext >&5
4525
4526 cat >conftest.$ac_ext <<_ACEOF
4527 /* confdefs.h.  */
4528 _ACEOF
4529 cat confdefs.h >>conftest.$ac_ext
4530 cat >>conftest.$ac_ext <<_ACEOF
4531 /* end confdefs.h.  */
4532 $ac_includes_default
4533 int
4534 main ()
4535 {
4536 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
4537 test_array [0] = 0
4538
4539   ;
4540   return 0;
4541 }
4542 _ACEOF
4543 rm -f conftest.$ac_objext
4544 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4545   (eval $ac_compile) 2>conftest.er1
4546   ac_status=$?
4547   grep -v '^ *+' conftest.er1 >conftest.err
4548   rm -f conftest.er1
4549   cat conftest.err >&5
4550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4551   (exit $ac_status); } &&
4552          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4553   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4554   (eval $ac_try) 2>&5
4555   ac_status=$?
4556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4557   (exit $ac_status); }; } &&
4558          { ac_try='test -s conftest.$ac_objext'
4559   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4560   (eval $ac_try) 2>&5
4561   ac_status=$?
4562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4563   (exit $ac_status); }; }; then
4564   ac_hi=-1 ac_mid=-1
4565   while :; do
4566     cat >conftest.$ac_ext <<_ACEOF
4567 /* confdefs.h.  */
4568 _ACEOF
4569 cat confdefs.h >>conftest.$ac_ext
4570 cat >>conftest.$ac_ext <<_ACEOF
4571 /* end confdefs.h.  */
4572 $ac_includes_default
4573 int
4574 main ()
4575 {
4576 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
4577 test_array [0] = 0
4578
4579   ;
4580   return 0;
4581 }
4582 _ACEOF
4583 rm -f conftest.$ac_objext
4584 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4585   (eval $ac_compile) 2>conftest.er1
4586   ac_status=$?
4587   grep -v '^ *+' conftest.er1 >conftest.err
4588   rm -f conftest.er1
4589   cat conftest.err >&5
4590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4591   (exit $ac_status); } &&
4592          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4593   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4594   (eval $ac_try) 2>&5
4595   ac_status=$?
4596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4597   (exit $ac_status); }; } &&
4598          { ac_try='test -s conftest.$ac_objext'
4599   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4600   (eval $ac_try) 2>&5
4601   ac_status=$?
4602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4603   (exit $ac_status); }; }; then
4604   ac_lo=$ac_mid; break
4605 else
4606   echo "$as_me: failed program was:" >&5
4607 sed 's/^/| /' conftest.$ac_ext >&5
4608
4609 ac_hi=`expr '(' $ac_mid ')' - 1`
4610                        if test $ac_mid -le $ac_hi; then
4611                          ac_lo= ac_hi=
4612                          break
4613                        fi
4614                        ac_mid=`expr 2 '*' $ac_mid`
4615 fi
4616 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4617   done
4618 else
4619   echo "$as_me: failed program was:" >&5
4620 sed 's/^/| /' conftest.$ac_ext >&5
4621
4622 ac_lo= ac_hi=
4623 fi
4624 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4625 fi
4626 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4627 # Binary search between lo and hi bounds.
4628 while test "x$ac_lo" != "x$ac_hi"; do
4629   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4630   cat >conftest.$ac_ext <<_ACEOF
4631 /* confdefs.h.  */
4632 _ACEOF
4633 cat confdefs.h >>conftest.$ac_ext
4634 cat >>conftest.$ac_ext <<_ACEOF
4635 /* end confdefs.h.  */
4636 $ac_includes_default
4637 int
4638 main ()
4639 {
4640 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4641 test_array [0] = 0
4642
4643   ;
4644   return 0;
4645 }
4646 _ACEOF
4647 rm -f conftest.$ac_objext
4648 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4649   (eval $ac_compile) 2>conftest.er1
4650   ac_status=$?
4651   grep -v '^ *+' conftest.er1 >conftest.err
4652   rm -f conftest.er1
4653   cat conftest.err >&5
4654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4655   (exit $ac_status); } &&
4656          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4657   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4658   (eval $ac_try) 2>&5
4659   ac_status=$?
4660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4661   (exit $ac_status); }; } &&
4662          { ac_try='test -s conftest.$ac_objext'
4663   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4664   (eval $ac_try) 2>&5
4665   ac_status=$?
4666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4667   (exit $ac_status); }; }; then
4668   ac_hi=$ac_mid
4669 else
4670   echo "$as_me: failed program was:" >&5
4671 sed 's/^/| /' conftest.$ac_ext >&5
4672
4673 ac_lo=`expr '(' $ac_mid ')' + 1`
4674 fi
4675 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4676 done
4677 case $ac_lo in
4678 ?*) ac_cv_sizeof_short=$ac_lo;;
4679 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4680 See \`config.log' for more details." >&5
4681 echo "$as_me: error: cannot compute sizeof (short), 77
4682 See \`config.log' for more details." >&2;}
4683    { (exit 1); exit 1; }; } ;;
4684 esac
4685 else
4686   if test "$cross_compiling" = yes; then
4687   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
4688 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
4689    { (exit 1); exit 1; }; }
4690 else
4691   cat >conftest.$ac_ext <<_ACEOF
4692 /* confdefs.h.  */
4693 _ACEOF
4694 cat confdefs.h >>conftest.$ac_ext
4695 cat >>conftest.$ac_ext <<_ACEOF
4696 /* end confdefs.h.  */
4697 $ac_includes_default
4698 long longval () { return (long) (sizeof (short)); }
4699 unsigned long ulongval () { return (long) (sizeof (short)); }
4700 #include <stdio.h>
4701 #include <stdlib.h>
4702 int
4703 main ()
4704 {
4705
4706   FILE *f = fopen ("conftest.val", "w");
4707   if (! f)
4708     exit (1);
4709   if (((long) (sizeof (short))) < 0)
4710     {
4711       long i = longval ();
4712       if (i != ((long) (sizeof (short))))
4713         exit (1);
4714       fprintf (f, "%ld\n", i);
4715     }
4716   else
4717     {
4718       unsigned long i = ulongval ();
4719       if (i != ((long) (sizeof (short))))
4720         exit (1);
4721       fprintf (f, "%lu\n", i);
4722     }
4723   exit (ferror (f) || fclose (f) != 0);
4724
4725   ;
4726   return 0;
4727 }
4728 _ACEOF
4729 rm -f conftest$ac_exeext
4730 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4731   (eval $ac_link) 2>&5
4732   ac_status=$?
4733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4734   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4735   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4736   (eval $ac_try) 2>&5
4737   ac_status=$?
4738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4739   (exit $ac_status); }; }; then
4740   ac_cv_sizeof_short=`cat conftest.val`
4741 else
4742   echo "$as_me: program exited with status $ac_status" >&5
4743 echo "$as_me: failed program was:" >&5
4744 sed 's/^/| /' conftest.$ac_ext >&5
4745
4746 ( exit $ac_status )
4747 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4748 See \`config.log' for more details." >&5
4749 echo "$as_me: error: cannot compute sizeof (short), 77
4750 See \`config.log' for more details." >&2;}
4751    { (exit 1); exit 1; }; }
4752 fi
4753 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4754 fi
4755 fi
4756 rm -f conftest.val
4757 else
4758   ac_cv_sizeof_short=0
4759 fi
4760 fi
4761 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
4762 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
4763 cat >>confdefs.h <<_ACEOF
4764 #define SIZEOF_SHORT $ac_cv_sizeof_short
4765 _ACEOF
4766
4767
4768 echo "$as_me:$LINENO: checking for int" >&5
4769 echo $ECHO_N "checking for int... $ECHO_C" >&6
4770 if test "${ac_cv_type_int+set}" = set; then
4771   echo $ECHO_N "(cached) $ECHO_C" >&6
4772 else
4773   cat >conftest.$ac_ext <<_ACEOF
4774 /* confdefs.h.  */
4775 _ACEOF
4776 cat confdefs.h >>conftest.$ac_ext
4777 cat >>conftest.$ac_ext <<_ACEOF
4778 /* end confdefs.h.  */
4779 $ac_includes_default
4780 int
4781 main ()
4782 {
4783 if ((int *) 0)
4784   return 0;
4785 if (sizeof (int))
4786   return 0;
4787   ;
4788   return 0;
4789 }
4790 _ACEOF
4791 rm -f conftest.$ac_objext
4792 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4793   (eval $ac_compile) 2>conftest.er1
4794   ac_status=$?
4795   grep -v '^ *+' conftest.er1 >conftest.err
4796   rm -f conftest.er1
4797   cat conftest.err >&5
4798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4799   (exit $ac_status); } &&
4800          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4801   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4802   (eval $ac_try) 2>&5
4803   ac_status=$?
4804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4805   (exit $ac_status); }; } &&
4806          { ac_try='test -s conftest.$ac_objext'
4807   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4808   (eval $ac_try) 2>&5
4809   ac_status=$?
4810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4811   (exit $ac_status); }; }; then
4812   ac_cv_type_int=yes
4813 else
4814   echo "$as_me: failed program was:" >&5
4815 sed 's/^/| /' conftest.$ac_ext >&5
4816
4817 ac_cv_type_int=no
4818 fi
4819 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4820 fi
4821 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
4822 echo "${ECHO_T}$ac_cv_type_int" >&6
4823
4824 echo "$as_me:$LINENO: checking size of int" >&5
4825 echo $ECHO_N "checking size of int... $ECHO_C" >&6
4826 if test "${ac_cv_sizeof_int+set}" = set; then
4827   echo $ECHO_N "(cached) $ECHO_C" >&6
4828 else
4829   if test "$ac_cv_type_int" = yes; then
4830   # The cast to unsigned long works around a bug in the HP C Compiler
4831   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4832   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4833   # This bug is HP SR number 8606223364.
4834   if test "$cross_compiling" = yes; then
4835   # Depending upon the size, compute the lo and hi bounds.
4836 cat >conftest.$ac_ext <<_ACEOF
4837 /* confdefs.h.  */
4838 _ACEOF
4839 cat confdefs.h >>conftest.$ac_ext
4840 cat >>conftest.$ac_ext <<_ACEOF
4841 /* end confdefs.h.  */
4842 $ac_includes_default
4843 int
4844 main ()
4845 {
4846 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
4847 test_array [0] = 0
4848
4849   ;
4850   return 0;
4851 }
4852 _ACEOF
4853 rm -f conftest.$ac_objext
4854 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4855   (eval $ac_compile) 2>conftest.er1
4856   ac_status=$?
4857   grep -v '^ *+' conftest.er1 >conftest.err
4858   rm -f conftest.er1
4859   cat conftest.err >&5
4860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4861   (exit $ac_status); } &&
4862          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4863   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4864   (eval $ac_try) 2>&5
4865   ac_status=$?
4866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4867   (exit $ac_status); }; } &&
4868          { ac_try='test -s conftest.$ac_objext'
4869   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4870   (eval $ac_try) 2>&5
4871   ac_status=$?
4872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4873   (exit $ac_status); }; }; then
4874   ac_lo=0 ac_mid=0
4875   while :; do
4876     cat >conftest.$ac_ext <<_ACEOF
4877 /* confdefs.h.  */
4878 _ACEOF
4879 cat confdefs.h >>conftest.$ac_ext
4880 cat >>conftest.$ac_ext <<_ACEOF
4881 /* end confdefs.h.  */
4882 $ac_includes_default
4883 int
4884 main ()
4885 {
4886 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4887 test_array [0] = 0
4888
4889   ;
4890   return 0;
4891 }
4892 _ACEOF
4893 rm -f conftest.$ac_objext
4894 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4895   (eval $ac_compile) 2>conftest.er1
4896   ac_status=$?
4897   grep -v '^ *+' conftest.er1 >conftest.err
4898   rm -f conftest.er1
4899   cat conftest.err >&5
4900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4901   (exit $ac_status); } &&
4902          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4903   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4904   (eval $ac_try) 2>&5
4905   ac_status=$?
4906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4907   (exit $ac_status); }; } &&
4908          { ac_try='test -s conftest.$ac_objext'
4909   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4910   (eval $ac_try) 2>&5
4911   ac_status=$?
4912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4913   (exit $ac_status); }; }; then
4914   ac_hi=$ac_mid; break
4915 else
4916   echo "$as_me: failed program was:" >&5
4917 sed 's/^/| /' conftest.$ac_ext >&5
4918
4919 ac_lo=`expr $ac_mid + 1`
4920                     if test $ac_lo -le $ac_mid; then
4921                       ac_lo= ac_hi=
4922                       break
4923                     fi
4924                     ac_mid=`expr 2 '*' $ac_mid + 1`
4925 fi
4926 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4927   done
4928 else
4929   echo "$as_me: failed program was:" >&5
4930 sed 's/^/| /' conftest.$ac_ext >&5
4931
4932 cat >conftest.$ac_ext <<_ACEOF
4933 /* confdefs.h.  */
4934 _ACEOF
4935 cat confdefs.h >>conftest.$ac_ext
4936 cat >>conftest.$ac_ext <<_ACEOF
4937 /* end confdefs.h.  */
4938 $ac_includes_default
4939 int
4940 main ()
4941 {
4942 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
4943 test_array [0] = 0
4944
4945   ;
4946   return 0;
4947 }
4948 _ACEOF
4949 rm -f conftest.$ac_objext
4950 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4951   (eval $ac_compile) 2>conftest.er1
4952   ac_status=$?
4953   grep -v '^ *+' conftest.er1 >conftest.err
4954   rm -f conftest.er1
4955   cat conftest.err >&5
4956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4957   (exit $ac_status); } &&
4958          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4959   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4960   (eval $ac_try) 2>&5
4961   ac_status=$?
4962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4963   (exit $ac_status); }; } &&
4964          { ac_try='test -s conftest.$ac_objext'
4965   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4966   (eval $ac_try) 2>&5
4967   ac_status=$?
4968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4969   (exit $ac_status); }; }; then
4970   ac_hi=-1 ac_mid=-1
4971   while :; do
4972     cat >conftest.$ac_ext <<_ACEOF
4973 /* confdefs.h.  */
4974 _ACEOF
4975 cat confdefs.h >>conftest.$ac_ext
4976 cat >>conftest.$ac_ext <<_ACEOF
4977 /* end confdefs.h.  */
4978 $ac_includes_default
4979 int
4980 main ()
4981 {
4982 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
4983 test_array [0] = 0
4984
4985   ;
4986   return 0;
4987 }
4988 _ACEOF
4989 rm -f conftest.$ac_objext
4990 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4991   (eval $ac_compile) 2>conftest.er1
4992   ac_status=$?
4993   grep -v '^ *+' conftest.er1 >conftest.err
4994   rm -f conftest.er1
4995   cat conftest.err >&5
4996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4997   (exit $ac_status); } &&
4998          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4999   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5000   (eval $ac_try) 2>&5
5001   ac_status=$?
5002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5003   (exit $ac_status); }; } &&
5004          { ac_try='test -s conftest.$ac_objext'
5005   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5006   (eval $ac_try) 2>&5
5007   ac_status=$?
5008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5009   (exit $ac_status); }; }; then
5010   ac_lo=$ac_mid; break
5011 else
5012   echo "$as_me: failed program was:" >&5
5013 sed 's/^/| /' conftest.$ac_ext >&5
5014
5015 ac_hi=`expr '(' $ac_mid ')' - 1`
5016                        if test $ac_mid -le $ac_hi; then
5017                          ac_lo= ac_hi=
5018                          break
5019                        fi
5020                        ac_mid=`expr 2 '*' $ac_mid`
5021 fi
5022 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5023   done
5024 else
5025   echo "$as_me: failed program was:" >&5
5026 sed 's/^/| /' conftest.$ac_ext >&5
5027
5028 ac_lo= ac_hi=
5029 fi
5030 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5031 fi
5032 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5033 # Binary search between lo and hi bounds.
5034 while test "x$ac_lo" != "x$ac_hi"; do
5035   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5036   cat >conftest.$ac_ext <<_ACEOF
5037 /* confdefs.h.  */
5038 _ACEOF
5039 cat confdefs.h >>conftest.$ac_ext
5040 cat >>conftest.$ac_ext <<_ACEOF
5041 /* end confdefs.h.  */
5042 $ac_includes_default
5043 int
5044 main ()
5045 {
5046 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
5047 test_array [0] = 0
5048
5049   ;
5050   return 0;
5051 }
5052 _ACEOF
5053 rm -f conftest.$ac_objext
5054 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5055   (eval $ac_compile) 2>conftest.er1
5056   ac_status=$?
5057   grep -v '^ *+' conftest.er1 >conftest.err
5058   rm -f conftest.er1
5059   cat conftest.err >&5
5060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5061   (exit $ac_status); } &&
5062          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5063   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5064   (eval $ac_try) 2>&5
5065   ac_status=$?
5066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5067   (exit $ac_status); }; } &&
5068          { ac_try='test -s conftest.$ac_objext'
5069   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5070   (eval $ac_try) 2>&5
5071   ac_status=$?
5072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5073   (exit $ac_status); }; }; then
5074   ac_hi=$ac_mid
5075 else
5076   echo "$as_me: failed program was:" >&5
5077 sed 's/^/| /' conftest.$ac_ext >&5
5078
5079 ac_lo=`expr '(' $ac_mid ')' + 1`
5080 fi
5081 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5082 done
5083 case $ac_lo in
5084 ?*) ac_cv_sizeof_int=$ac_lo;;
5085 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
5086 See \`config.log' for more details." >&5
5087 echo "$as_me: error: cannot compute sizeof (int), 77
5088 See \`config.log' for more details." >&2;}
5089    { (exit 1); exit 1; }; } ;;
5090 esac
5091 else
5092   if test "$cross_compiling" = yes; then
5093   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
5094 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
5095    { (exit 1); exit 1; }; }
5096 else
5097   cat >conftest.$ac_ext <<_ACEOF
5098 /* confdefs.h.  */
5099 _ACEOF
5100 cat confdefs.h >>conftest.$ac_ext
5101 cat >>conftest.$ac_ext <<_ACEOF
5102 /* end confdefs.h.  */
5103 $ac_includes_default
5104 long longval () { return (long) (sizeof (int)); }
5105 unsigned long ulongval () { return (long) (sizeof (int)); }
5106 #include <stdio.h>
5107 #include <stdlib.h>
5108 int
5109 main ()
5110 {
5111
5112   FILE *f = fopen ("conftest.val", "w");
5113   if (! f)
5114     exit (1);
5115   if (((long) (sizeof (int))) < 0)
5116     {
5117       long i = longval ();
5118       if (i != ((long) (sizeof (int))))
5119         exit (1);
5120       fprintf (f, "%ld\n", i);
5121     }
5122   else
5123     {
5124       unsigned long i = ulongval ();
5125       if (i != ((long) (sizeof (int))))
5126         exit (1);
5127       fprintf (f, "%lu\n", i);
5128     }
5129   exit (ferror (f) || fclose (f) != 0);
5130
5131   ;
5132   return 0;
5133 }
5134 _ACEOF
5135 rm -f conftest$ac_exeext
5136 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5137   (eval $ac_link) 2>&5
5138   ac_status=$?
5139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5140   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5141   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5142   (eval $ac_try) 2>&5
5143   ac_status=$?
5144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5145   (exit $ac_status); }; }; then
5146   ac_cv_sizeof_int=`cat conftest.val`
5147 else
5148   echo "$as_me: program exited with status $ac_status" >&5
5149 echo "$as_me: failed program was:" >&5
5150 sed 's/^/| /' conftest.$ac_ext >&5
5151
5152 ( exit $ac_status )
5153 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
5154 See \`config.log' for more details." >&5
5155 echo "$as_me: error: cannot compute sizeof (int), 77
5156 See \`config.log' for more details." >&2;}
5157    { (exit 1); exit 1; }; }
5158 fi
5159 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5160 fi
5161 fi
5162 rm -f conftest.val
5163 else
5164   ac_cv_sizeof_int=0
5165 fi
5166 fi
5167 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
5168 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
5169 cat >>confdefs.h <<_ACEOF
5170 #define SIZEOF_INT $ac_cv_sizeof_int
5171 _ACEOF
5172
5173
5174 echo "$as_me:$LINENO: checking for long" >&5
5175 echo $ECHO_N "checking for long... $ECHO_C" >&6
5176 if test "${ac_cv_type_long+set}" = set; then
5177   echo $ECHO_N "(cached) $ECHO_C" >&6
5178 else
5179   cat >conftest.$ac_ext <<_ACEOF
5180 /* confdefs.h.  */
5181 _ACEOF
5182 cat confdefs.h >>conftest.$ac_ext
5183 cat >>conftest.$ac_ext <<_ACEOF
5184 /* end confdefs.h.  */
5185 $ac_includes_default
5186 int
5187 main ()
5188 {
5189 if ((long *) 0)
5190   return 0;
5191 if (sizeof (long))
5192   return 0;
5193   ;
5194   return 0;
5195 }
5196 _ACEOF
5197 rm -f conftest.$ac_objext
5198 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5199   (eval $ac_compile) 2>conftest.er1
5200   ac_status=$?
5201   grep -v '^ *+' conftest.er1 >conftest.err
5202   rm -f conftest.er1
5203   cat conftest.err >&5
5204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5205   (exit $ac_status); } &&
5206          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5207   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5208   (eval $ac_try) 2>&5
5209   ac_status=$?
5210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5211   (exit $ac_status); }; } &&
5212          { ac_try='test -s conftest.$ac_objext'
5213   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5214   (eval $ac_try) 2>&5
5215   ac_status=$?
5216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5217   (exit $ac_status); }; }; then
5218   ac_cv_type_long=yes
5219 else
5220   echo "$as_me: failed program was:" >&5
5221 sed 's/^/| /' conftest.$ac_ext >&5
5222
5223 ac_cv_type_long=no
5224 fi
5225 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5226 fi
5227 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
5228 echo "${ECHO_T}$ac_cv_type_long" >&6
5229
5230 echo "$as_me:$LINENO: checking size of long" >&5
5231 echo $ECHO_N "checking size of long... $ECHO_C" >&6
5232 if test "${ac_cv_sizeof_long+set}" = set; then
5233   echo $ECHO_N "(cached) $ECHO_C" >&6
5234 else
5235   if test "$ac_cv_type_long" = yes; then
5236   # The cast to unsigned long works around a bug in the HP C Compiler
5237   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5238   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5239   # This bug is HP SR number 8606223364.
5240   if test "$cross_compiling" = yes; then
5241   # Depending upon the size, compute the lo and hi bounds.
5242 cat >conftest.$ac_ext <<_ACEOF
5243 /* confdefs.h.  */
5244 _ACEOF
5245 cat confdefs.h >>conftest.$ac_ext
5246 cat >>conftest.$ac_ext <<_ACEOF
5247 /* end confdefs.h.  */
5248 $ac_includes_default
5249 int
5250 main ()
5251 {
5252 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
5253 test_array [0] = 0
5254
5255   ;
5256   return 0;
5257 }
5258 _ACEOF
5259 rm -f conftest.$ac_objext
5260 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5261   (eval $ac_compile) 2>conftest.er1
5262   ac_status=$?
5263   grep -v '^ *+' conftest.er1 >conftest.err
5264   rm -f conftest.er1
5265   cat conftest.err >&5
5266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5267   (exit $ac_status); } &&
5268          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5269   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5270   (eval $ac_try) 2>&5
5271   ac_status=$?
5272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5273   (exit $ac_status); }; } &&
5274          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
5280   ac_lo=0 ac_mid=0
5281   while :; do
5282     cat >conftest.$ac_ext <<_ACEOF
5283 /* confdefs.h.  */
5284 _ACEOF
5285 cat confdefs.h >>conftest.$ac_ext
5286 cat >>conftest.$ac_ext <<_ACEOF
5287 /* end confdefs.h.  */
5288 $ac_includes_default
5289 int
5290 main ()
5291 {
5292 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5293 test_array [0] = 0
5294
5295   ;
5296   return 0;
5297 }
5298 _ACEOF
5299 rm -f conftest.$ac_objext
5300 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5301   (eval $ac_compile) 2>conftest.er1
5302   ac_status=$?
5303   grep -v '^ *+' conftest.er1 >conftest.err
5304   rm -f conftest.er1
5305   cat conftest.err >&5
5306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5307   (exit $ac_status); } &&
5308          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5309   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5310   (eval $ac_try) 2>&5
5311   ac_status=$?
5312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5313   (exit $ac_status); }; } &&
5314          { ac_try='test -s conftest.$ac_objext'
5315   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5316   (eval $ac_try) 2>&5
5317   ac_status=$?
5318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5319   (exit $ac_status); }; }; then
5320   ac_hi=$ac_mid; break
5321 else
5322   echo "$as_me: failed program was:" >&5
5323 sed 's/^/| /' conftest.$ac_ext >&5
5324
5325 ac_lo=`expr $ac_mid + 1`
5326                     if test $ac_lo -le $ac_mid; then
5327                       ac_lo= ac_hi=
5328                       break
5329                     fi
5330                     ac_mid=`expr 2 '*' $ac_mid + 1`
5331 fi
5332 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5333   done
5334 else
5335   echo "$as_me: failed program was:" >&5
5336 sed 's/^/| /' conftest.$ac_ext >&5
5337
5338 cat >conftest.$ac_ext <<_ACEOF
5339 /* confdefs.h.  */
5340 _ACEOF
5341 cat confdefs.h >>conftest.$ac_ext
5342 cat >>conftest.$ac_ext <<_ACEOF
5343 /* end confdefs.h.  */
5344 $ac_includes_default
5345 int
5346 main ()
5347 {
5348 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
5349 test_array [0] = 0
5350
5351   ;
5352   return 0;
5353 }
5354 _ACEOF
5355 rm -f conftest.$ac_objext
5356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5357   (eval $ac_compile) 2>conftest.er1
5358   ac_status=$?
5359   grep -v '^ *+' conftest.er1 >conftest.err
5360   rm -f conftest.er1
5361   cat conftest.err >&5
5362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5363   (exit $ac_status); } &&
5364          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5365   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5366   (eval $ac_try) 2>&5
5367   ac_status=$?
5368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5369   (exit $ac_status); }; } &&
5370          { ac_try='test -s conftest.$ac_objext'
5371   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5372   (eval $ac_try) 2>&5
5373   ac_status=$?
5374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5375   (exit $ac_status); }; }; then
5376   ac_hi=-1 ac_mid=-1
5377   while :; do
5378     cat >conftest.$ac_ext <<_ACEOF
5379 /* confdefs.h.  */
5380 _ACEOF
5381 cat confdefs.h >>conftest.$ac_ext
5382 cat >>conftest.$ac_ext <<_ACEOF
5383 /* end confdefs.h.  */
5384 $ac_includes_default
5385 int
5386 main ()
5387 {
5388 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
5389 test_array [0] = 0
5390
5391   ;
5392   return 0;
5393 }
5394 _ACEOF
5395 rm -f conftest.$ac_objext
5396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5397   (eval $ac_compile) 2>conftest.er1
5398   ac_status=$?
5399   grep -v '^ *+' conftest.er1 >conftest.err
5400   rm -f conftest.er1
5401   cat conftest.err >&5
5402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5403   (exit $ac_status); } &&
5404          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5405   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5406   (eval $ac_try) 2>&5
5407   ac_status=$?
5408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5409   (exit $ac_status); }; } &&
5410          { ac_try='test -s conftest.$ac_objext'
5411   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5412   (eval $ac_try) 2>&5
5413   ac_status=$?
5414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5415   (exit $ac_status); }; }; then
5416   ac_lo=$ac_mid; break
5417 else
5418   echo "$as_me: failed program was:" >&5
5419 sed 's/^/| /' conftest.$ac_ext >&5
5420
5421 ac_hi=`expr '(' $ac_mid ')' - 1`
5422                        if test $ac_mid -le $ac_hi; then
5423                          ac_lo= ac_hi=
5424                          break
5425                        fi
5426                        ac_mid=`expr 2 '*' $ac_mid`
5427 fi
5428 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5429   done
5430 else
5431   echo "$as_me: failed program was:" >&5
5432 sed 's/^/| /' conftest.$ac_ext >&5
5433
5434 ac_lo= ac_hi=
5435 fi
5436 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5437 fi
5438 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5439 # Binary search between lo and hi bounds.
5440 while test "x$ac_lo" != "x$ac_hi"; do
5441   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5442   cat >conftest.$ac_ext <<_ACEOF
5443 /* confdefs.h.  */
5444 _ACEOF
5445 cat confdefs.h >>conftest.$ac_ext
5446 cat >>conftest.$ac_ext <<_ACEOF
5447 /* end confdefs.h.  */
5448 $ac_includes_default
5449 int
5450 main ()
5451 {
5452 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5453 test_array [0] = 0
5454
5455   ;
5456   return 0;
5457 }
5458 _ACEOF
5459 rm -f conftest.$ac_objext
5460 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5461   (eval $ac_compile) 2>conftest.er1
5462   ac_status=$?
5463   grep -v '^ *+' conftest.er1 >conftest.err
5464   rm -f conftest.er1
5465   cat conftest.err >&5
5466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5467   (exit $ac_status); } &&
5468          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5469   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5470   (eval $ac_try) 2>&5
5471   ac_status=$?
5472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5473   (exit $ac_status); }; } &&
5474          { ac_try='test -s conftest.$ac_objext'
5475   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5476   (eval $ac_try) 2>&5
5477   ac_status=$?
5478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5479   (exit $ac_status); }; }; then
5480   ac_hi=$ac_mid
5481 else
5482   echo "$as_me: failed program was:" >&5
5483 sed 's/^/| /' conftest.$ac_ext >&5
5484
5485 ac_lo=`expr '(' $ac_mid ')' + 1`
5486 fi
5487 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5488 done
5489 case $ac_lo in
5490 ?*) ac_cv_sizeof_long=$ac_lo;;
5491 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5492 See \`config.log' for more details." >&5
5493 echo "$as_me: error: cannot compute sizeof (long), 77
5494 See \`config.log' for more details." >&2;}
5495    { (exit 1); exit 1; }; } ;;
5496 esac
5497 else
5498   if test "$cross_compiling" = yes; then
5499   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
5500 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
5501    { (exit 1); exit 1; }; }
5502 else
5503   cat >conftest.$ac_ext <<_ACEOF
5504 /* confdefs.h.  */
5505 _ACEOF
5506 cat confdefs.h >>conftest.$ac_ext
5507 cat >>conftest.$ac_ext <<_ACEOF
5508 /* end confdefs.h.  */
5509 $ac_includes_default
5510 long longval () { return (long) (sizeof (long)); }
5511 unsigned long ulongval () { return (long) (sizeof (long)); }
5512 #include <stdio.h>
5513 #include <stdlib.h>
5514 int
5515 main ()
5516 {
5517
5518   FILE *f = fopen ("conftest.val", "w");
5519   if (! f)
5520     exit (1);
5521   if (((long) (sizeof (long))) < 0)
5522     {
5523       long i = longval ();
5524       if (i != ((long) (sizeof (long))))
5525         exit (1);
5526       fprintf (f, "%ld\n", i);
5527     }
5528   else
5529     {
5530       unsigned long i = ulongval ();
5531       if (i != ((long) (sizeof (long))))
5532         exit (1);
5533       fprintf (f, "%lu\n", i);
5534     }
5535   exit (ferror (f) || fclose (f) != 0);
5536
5537   ;
5538   return 0;
5539 }
5540 _ACEOF
5541 rm -f conftest$ac_exeext
5542 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5543   (eval $ac_link) 2>&5
5544   ac_status=$?
5545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5546   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5547   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5548   (eval $ac_try) 2>&5
5549   ac_status=$?
5550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5551   (exit $ac_status); }; }; then
5552   ac_cv_sizeof_long=`cat conftest.val`
5553 else
5554   echo "$as_me: program exited with status $ac_status" >&5
5555 echo "$as_me: failed program was:" >&5
5556 sed 's/^/| /' conftest.$ac_ext >&5
5557
5558 ( exit $ac_status )
5559 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5560 See \`config.log' for more details." >&5
5561 echo "$as_me: error: cannot compute sizeof (long), 77
5562 See \`config.log' for more details." >&2;}
5563    { (exit 1); exit 1; }; }
5564 fi
5565 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5566 fi
5567 fi
5568 rm -f conftest.val
5569 else
5570   ac_cv_sizeof_long=0
5571 fi
5572 fi
5573 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
5574 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
5575 cat >>confdefs.h <<_ACEOF
5576 #define SIZEOF_LONG $ac_cv_sizeof_long
5577 _ACEOF
5578
5579
5580 echo "$as_me:$LINENO: checking for void *" >&5
5581 echo $ECHO_N "checking for void *... $ECHO_C" >&6
5582 if test "${ac_cv_type_void_p+set}" = set; then
5583   echo $ECHO_N "(cached) $ECHO_C" >&6
5584 else
5585   cat >conftest.$ac_ext <<_ACEOF
5586 /* confdefs.h.  */
5587 _ACEOF
5588 cat confdefs.h >>conftest.$ac_ext
5589 cat >>conftest.$ac_ext <<_ACEOF
5590 /* end confdefs.h.  */
5591 $ac_includes_default
5592 int
5593 main ()
5594 {
5595 if ((void * *) 0)
5596   return 0;
5597 if (sizeof (void *))
5598   return 0;
5599   ;
5600   return 0;
5601 }
5602 _ACEOF
5603 rm -f conftest.$ac_objext
5604 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5605   (eval $ac_compile) 2>conftest.er1
5606   ac_status=$?
5607   grep -v '^ *+' conftest.er1 >conftest.err
5608   rm -f conftest.er1
5609   cat conftest.err >&5
5610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5611   (exit $ac_status); } &&
5612          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5613   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5614   (eval $ac_try) 2>&5
5615   ac_status=$?
5616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5617   (exit $ac_status); }; } &&
5618          { ac_try='test -s conftest.$ac_objext'
5619   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5620   (eval $ac_try) 2>&5
5621   ac_status=$?
5622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5623   (exit $ac_status); }; }; then
5624   ac_cv_type_void_p=yes
5625 else
5626   echo "$as_me: failed program was:" >&5
5627 sed 's/^/| /' conftest.$ac_ext >&5
5628
5629 ac_cv_type_void_p=no
5630 fi
5631 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5632 fi
5633 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
5634 echo "${ECHO_T}$ac_cv_type_void_p" >&6
5635
5636 echo "$as_me:$LINENO: checking size of void *" >&5
5637 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
5638 if test "${ac_cv_sizeof_void_p+set}" = set; then
5639   echo $ECHO_N "(cached) $ECHO_C" >&6
5640 else
5641   if test "$ac_cv_type_void_p" = yes; then
5642   # The cast to unsigned long works around a bug in the HP C Compiler
5643   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5644   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5645   # This bug is HP SR number 8606223364.
5646   if test "$cross_compiling" = yes; then
5647   # Depending upon the size, compute the lo and hi bounds.
5648 cat >conftest.$ac_ext <<_ACEOF
5649 /* confdefs.h.  */
5650 _ACEOF
5651 cat confdefs.h >>conftest.$ac_ext
5652 cat >>conftest.$ac_ext <<_ACEOF
5653 /* end confdefs.h.  */
5654 $ac_includes_default
5655 int
5656 main ()
5657 {
5658 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
5659 test_array [0] = 0
5660
5661   ;
5662   return 0;
5663 }
5664 _ACEOF
5665 rm -f conftest.$ac_objext
5666 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5667   (eval $ac_compile) 2>conftest.er1
5668   ac_status=$?
5669   grep -v '^ *+' conftest.er1 >conftest.err
5670   rm -f conftest.er1
5671   cat conftest.err >&5
5672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5673   (exit $ac_status); } &&
5674          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5675   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5676   (eval $ac_try) 2>&5
5677   ac_status=$?
5678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5679   (exit $ac_status); }; } &&
5680          { ac_try='test -s conftest.$ac_objext'
5681   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5682   (eval $ac_try) 2>&5
5683   ac_status=$?
5684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5685   (exit $ac_status); }; }; then
5686   ac_lo=0 ac_mid=0
5687   while :; do
5688     cat >conftest.$ac_ext <<_ACEOF
5689 /* confdefs.h.  */
5690 _ACEOF
5691 cat confdefs.h >>conftest.$ac_ext
5692 cat >>conftest.$ac_ext <<_ACEOF
5693 /* end confdefs.h.  */
5694 $ac_includes_default
5695 int
5696 main ()
5697 {
5698 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
5699 test_array [0] = 0
5700
5701   ;
5702   return 0;
5703 }
5704 _ACEOF
5705 rm -f conftest.$ac_objext
5706 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5707   (eval $ac_compile) 2>conftest.er1
5708   ac_status=$?
5709   grep -v '^ *+' conftest.er1 >conftest.err
5710   rm -f conftest.er1
5711   cat conftest.err >&5
5712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5713   (exit $ac_status); } &&
5714          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5715   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5716   (eval $ac_try) 2>&5
5717   ac_status=$?
5718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5719   (exit $ac_status); }; } &&
5720          { ac_try='test -s conftest.$ac_objext'
5721   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5722   (eval $ac_try) 2>&5
5723   ac_status=$?
5724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5725   (exit $ac_status); }; }; then
5726   ac_hi=$ac_mid; break
5727 else
5728   echo "$as_me: failed program was:" >&5
5729 sed 's/^/| /' conftest.$ac_ext >&5
5730
5731 ac_lo=`expr $ac_mid + 1`
5732                     if test $ac_lo -le $ac_mid; then
5733                       ac_lo= ac_hi=
5734                       break
5735                     fi
5736                     ac_mid=`expr 2 '*' $ac_mid + 1`
5737 fi
5738 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5739   done
5740 else
5741   echo "$as_me: failed program was:" >&5
5742 sed 's/^/| /' conftest.$ac_ext >&5
5743
5744 cat >conftest.$ac_ext <<_ACEOF
5745 /* confdefs.h.  */
5746 _ACEOF
5747 cat confdefs.h >>conftest.$ac_ext
5748 cat >>conftest.$ac_ext <<_ACEOF
5749 /* end confdefs.h.  */
5750 $ac_includes_default
5751 int
5752 main ()
5753 {
5754 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
5755 test_array [0] = 0
5756
5757   ;
5758   return 0;
5759 }
5760 _ACEOF
5761 rm -f conftest.$ac_objext
5762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5763   (eval $ac_compile) 2>conftest.er1
5764   ac_status=$?
5765   grep -v '^ *+' conftest.er1 >conftest.err
5766   rm -f conftest.er1
5767   cat conftest.err >&5
5768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5769   (exit $ac_status); } &&
5770          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5771   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5772   (eval $ac_try) 2>&5
5773   ac_status=$?
5774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5775   (exit $ac_status); }; } &&
5776          { ac_try='test -s conftest.$ac_objext'
5777   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5778   (eval $ac_try) 2>&5
5779   ac_status=$?
5780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5781   (exit $ac_status); }; }; then
5782   ac_hi=-1 ac_mid=-1
5783   while :; do
5784     cat >conftest.$ac_ext <<_ACEOF
5785 /* confdefs.h.  */
5786 _ACEOF
5787 cat confdefs.h >>conftest.$ac_ext
5788 cat >>conftest.$ac_ext <<_ACEOF
5789 /* end confdefs.h.  */
5790 $ac_includes_default
5791 int
5792 main ()
5793 {
5794 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
5795 test_array [0] = 0
5796
5797   ;
5798   return 0;
5799 }
5800 _ACEOF
5801 rm -f conftest.$ac_objext
5802 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5803   (eval $ac_compile) 2>conftest.er1
5804   ac_status=$?
5805   grep -v '^ *+' conftest.er1 >conftest.err
5806   rm -f conftest.er1
5807   cat conftest.err >&5
5808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5809   (exit $ac_status); } &&
5810          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5811   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5812   (eval $ac_try) 2>&5
5813   ac_status=$?
5814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5815   (exit $ac_status); }; } &&
5816          { ac_try='test -s conftest.$ac_objext'
5817   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5818   (eval $ac_try) 2>&5
5819   ac_status=$?
5820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5821   (exit $ac_status); }; }; then
5822   ac_lo=$ac_mid; break
5823 else
5824   echo "$as_me: failed program was:" >&5
5825 sed 's/^/| /' conftest.$ac_ext >&5
5826
5827 ac_hi=`expr '(' $ac_mid ')' - 1`
5828                        if test $ac_mid -le $ac_hi; then
5829                          ac_lo= ac_hi=
5830                          break
5831                        fi
5832                        ac_mid=`expr 2 '*' $ac_mid`
5833 fi
5834 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5835   done
5836 else
5837   echo "$as_me: failed program was:" >&5
5838 sed 's/^/| /' conftest.$ac_ext >&5
5839
5840 ac_lo= ac_hi=
5841 fi
5842 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5843 fi
5844 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5845 # Binary search between lo and hi bounds.
5846 while test "x$ac_lo" != "x$ac_hi"; do
5847   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5848   cat >conftest.$ac_ext <<_ACEOF
5849 /* confdefs.h.  */
5850 _ACEOF
5851 cat confdefs.h >>conftest.$ac_ext
5852 cat >>conftest.$ac_ext <<_ACEOF
5853 /* end confdefs.h.  */
5854 $ac_includes_default
5855 int
5856 main ()
5857 {
5858 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
5859 test_array [0] = 0
5860
5861   ;
5862   return 0;
5863 }
5864 _ACEOF
5865 rm -f conftest.$ac_objext
5866 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5867   (eval $ac_compile) 2>conftest.er1
5868   ac_status=$?
5869   grep -v '^ *+' conftest.er1 >conftest.err
5870   rm -f conftest.er1
5871   cat conftest.err >&5
5872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5873   (exit $ac_status); } &&
5874          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5875   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5876   (eval $ac_try) 2>&5
5877   ac_status=$?
5878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5879   (exit $ac_status); }; } &&
5880          { ac_try='test -s conftest.$ac_objext'
5881   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5882   (eval $ac_try) 2>&5
5883   ac_status=$?
5884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5885   (exit $ac_status); }; }; then
5886   ac_hi=$ac_mid
5887 else
5888   echo "$as_me: failed program was:" >&5
5889 sed 's/^/| /' conftest.$ac_ext >&5
5890
5891 ac_lo=`expr '(' $ac_mid ')' + 1`
5892 fi
5893 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5894 done
5895 case $ac_lo in
5896 ?*) ac_cv_sizeof_void_p=$ac_lo;;
5897 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
5898 See \`config.log' for more details." >&5
5899 echo "$as_me: error: cannot compute sizeof (void *), 77
5900 See \`config.log' for more details." >&2;}
5901    { (exit 1); exit 1; }; } ;;
5902 esac
5903 else
5904   if test "$cross_compiling" = yes; then
5905   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
5906 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
5907    { (exit 1); exit 1; }; }
5908 else
5909   cat >conftest.$ac_ext <<_ACEOF
5910 /* confdefs.h.  */
5911 _ACEOF
5912 cat confdefs.h >>conftest.$ac_ext
5913 cat >>conftest.$ac_ext <<_ACEOF
5914 /* end confdefs.h.  */
5915 $ac_includes_default
5916 long longval () { return (long) (sizeof (void *)); }
5917 unsigned long ulongval () { return (long) (sizeof (void *)); }
5918 #include <stdio.h>
5919 #include <stdlib.h>
5920 int
5921 main ()
5922 {
5923
5924   FILE *f = fopen ("conftest.val", "w");
5925   if (! f)
5926     exit (1);
5927   if (((long) (sizeof (void *))) < 0)
5928     {
5929       long i = longval ();
5930       if (i != ((long) (sizeof (void *))))
5931         exit (1);
5932       fprintf (f, "%ld\n", i);
5933     }
5934   else
5935     {
5936       unsigned long i = ulongval ();
5937       if (i != ((long) (sizeof (void *))))
5938         exit (1);
5939       fprintf (f, "%lu\n", i);
5940     }
5941   exit (ferror (f) || fclose (f) != 0);
5942
5943   ;
5944   return 0;
5945 }
5946 _ACEOF
5947 rm -f conftest$ac_exeext
5948 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5949   (eval $ac_link) 2>&5
5950   ac_status=$?
5951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5952   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5953   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5954   (eval $ac_try) 2>&5
5955   ac_status=$?
5956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5957   (exit $ac_status); }; }; then
5958   ac_cv_sizeof_void_p=`cat conftest.val`
5959 else
5960   echo "$as_me: program exited with status $ac_status" >&5
5961 echo "$as_me: failed program was:" >&5
5962 sed 's/^/| /' conftest.$ac_ext >&5
5963
5964 ( exit $ac_status )
5965 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
5966 See \`config.log' for more details." >&5
5967 echo "$as_me: error: cannot compute sizeof (void *), 77
5968 See \`config.log' for more details." >&2;}
5969    { (exit 1); exit 1; }; }
5970 fi
5971 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5972 fi
5973 fi
5974 rm -f conftest.val
5975 else
5976   ac_cv_sizeof_void_p=0
5977 fi
5978 fi
5979 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
5980 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
5981 cat >>confdefs.h <<_ACEOF
5982 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5983 _ACEOF
5984
5985
5986 if test "$ac_cv_sizeof_int" = 2 ; then
5987   echo "$as_me:$LINENO: checking for int16_t" >&5
5988 echo $ECHO_N "checking for int16_t... $ECHO_C" >&6
5989 if test "${ac_cv_type_int16_t+set}" = set; then
5990   echo $ECHO_N "(cached) $ECHO_C" >&6
5991 else
5992   cat >conftest.$ac_ext <<_ACEOF
5993 /* confdefs.h.  */
5994 _ACEOF
5995 cat confdefs.h >>conftest.$ac_ext
5996 cat >>conftest.$ac_ext <<_ACEOF
5997 /* end confdefs.h.  */
5998 $ac_includes_default
5999 int
6000 main ()
6001 {
6002 if ((int16_t *) 0)
6003   return 0;
6004 if (sizeof (int16_t))
6005   return 0;
6006   ;
6007   return 0;
6008 }
6009 _ACEOF
6010 rm -f conftest.$ac_objext
6011 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6012   (eval $ac_compile) 2>conftest.er1
6013   ac_status=$?
6014   grep -v '^ *+' conftest.er1 >conftest.err
6015   rm -f conftest.er1
6016   cat conftest.err >&5
6017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6018   (exit $ac_status); } &&
6019          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6020   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6021   (eval $ac_try) 2>&5
6022   ac_status=$?
6023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6024   (exit $ac_status); }; } &&
6025          { ac_try='test -s conftest.$ac_objext'
6026   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6027   (eval $ac_try) 2>&5
6028   ac_status=$?
6029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6030   (exit $ac_status); }; }; then
6031   ac_cv_type_int16_t=yes
6032 else
6033   echo "$as_me: failed program was:" >&5
6034 sed 's/^/| /' conftest.$ac_ext >&5
6035
6036 ac_cv_type_int16_t=no
6037 fi
6038 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6039 fi
6040 echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
6041 echo "${ECHO_T}$ac_cv_type_int16_t" >&6
6042 if test $ac_cv_type_int16_t = yes; then
6043   :
6044 else
6045
6046 cat >>confdefs.h <<_ACEOF
6047 #define int16_t int
6048 _ACEOF
6049
6050 fi
6051
6052   echo "$as_me:$LINENO: checking for uint16_t" >&5
6053 echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6
6054 if test "${ac_cv_type_uint16_t+set}" = set; then
6055   echo $ECHO_N "(cached) $ECHO_C" >&6
6056 else
6057   cat >conftest.$ac_ext <<_ACEOF
6058 /* confdefs.h.  */
6059 _ACEOF
6060 cat confdefs.h >>conftest.$ac_ext
6061 cat >>conftest.$ac_ext <<_ACEOF
6062 /* end confdefs.h.  */
6063 $ac_includes_default
6064 int
6065 main ()
6066 {
6067 if ((uint16_t *) 0)
6068   return 0;
6069 if (sizeof (uint16_t))
6070   return 0;
6071   ;
6072   return 0;
6073 }
6074 _ACEOF
6075 rm -f conftest.$ac_objext
6076 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6077   (eval $ac_compile) 2>conftest.er1
6078   ac_status=$?
6079   grep -v '^ *+' conftest.er1 >conftest.err
6080   rm -f conftest.er1
6081   cat conftest.err >&5
6082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6083   (exit $ac_status); } &&
6084          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6085   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6086   (eval $ac_try) 2>&5
6087   ac_status=$?
6088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6089   (exit $ac_status); }; } &&
6090          { ac_try='test -s conftest.$ac_objext'
6091   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6092   (eval $ac_try) 2>&5
6093   ac_status=$?
6094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6095   (exit $ac_status); }; }; then
6096   ac_cv_type_uint16_t=yes
6097 else
6098   echo "$as_me: failed program was:" >&5
6099 sed 's/^/| /' conftest.$ac_ext >&5
6100
6101 ac_cv_type_uint16_t=no
6102 fi
6103 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6104 fi
6105 echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
6106 echo "${ECHO_T}$ac_cv_type_uint16_t" >&6
6107 if test $ac_cv_type_uint16_t = yes; then
6108   :
6109 else
6110
6111 cat >>confdefs.h <<_ACEOF
6112 #define uint16_t unsigned int
6113 _ACEOF
6114
6115 fi
6116
6117 elif test "$ac_cv_sizeof_short" = 2 ; then
6118   echo "$as_me:$LINENO: checking for int16_t" >&5
6119 echo $ECHO_N "checking for int16_t... $ECHO_C" >&6
6120 if test "${ac_cv_type_int16_t+set}" = set; then
6121   echo $ECHO_N "(cached) $ECHO_C" >&6
6122 else
6123   cat >conftest.$ac_ext <<_ACEOF
6124 /* confdefs.h.  */
6125 _ACEOF
6126 cat confdefs.h >>conftest.$ac_ext
6127 cat >>conftest.$ac_ext <<_ACEOF
6128 /* end confdefs.h.  */
6129 $ac_includes_default
6130 int
6131 main ()
6132 {
6133 if ((int16_t *) 0)
6134   return 0;
6135 if (sizeof (int16_t))
6136   return 0;
6137   ;
6138   return 0;
6139 }
6140 _ACEOF
6141 rm -f conftest.$ac_objext
6142 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6143   (eval $ac_compile) 2>conftest.er1
6144   ac_status=$?
6145   grep -v '^ *+' conftest.er1 >conftest.err
6146   rm -f conftest.er1
6147   cat conftest.err >&5
6148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6149   (exit $ac_status); } &&
6150          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6151   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6152   (eval $ac_try) 2>&5
6153   ac_status=$?
6154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6155   (exit $ac_status); }; } &&
6156          { ac_try='test -s conftest.$ac_objext'
6157   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6158   (eval $ac_try) 2>&5
6159   ac_status=$?
6160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6161   (exit $ac_status); }; }; then
6162   ac_cv_type_int16_t=yes
6163 else
6164   echo "$as_me: failed program was:" >&5
6165 sed 's/^/| /' conftest.$ac_ext >&5
6166
6167 ac_cv_type_int16_t=no
6168 fi
6169 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6170 fi
6171 echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
6172 echo "${ECHO_T}$ac_cv_type_int16_t" >&6
6173 if test $ac_cv_type_int16_t = yes; then
6174   :
6175 else
6176
6177 cat >>confdefs.h <<_ACEOF
6178 #define int16_t short
6179 _ACEOF
6180
6181 fi
6182
6183   echo "$as_me:$LINENO: checking for uint16_t" >&5
6184 echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6
6185 if test "${ac_cv_type_uint16_t+set}" = set; then
6186   echo $ECHO_N "(cached) $ECHO_C" >&6
6187 else
6188   cat >conftest.$ac_ext <<_ACEOF
6189 /* confdefs.h.  */
6190 _ACEOF
6191 cat confdefs.h >>conftest.$ac_ext
6192 cat >>conftest.$ac_ext <<_ACEOF
6193 /* end confdefs.h.  */
6194 $ac_includes_default
6195 int
6196 main ()
6197 {
6198 if ((uint16_t *) 0)
6199   return 0;
6200 if (sizeof (uint16_t))
6201   return 0;
6202   ;
6203   return 0;
6204 }
6205 _ACEOF
6206 rm -f conftest.$ac_objext
6207 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6208   (eval $ac_compile) 2>conftest.er1
6209   ac_status=$?
6210   grep -v '^ *+' conftest.er1 >conftest.err
6211   rm -f conftest.er1
6212   cat conftest.err >&5
6213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6214   (exit $ac_status); } &&
6215          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6216   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6217   (eval $ac_try) 2>&5
6218   ac_status=$?
6219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6220   (exit $ac_status); }; } &&
6221          { ac_try='test -s conftest.$ac_objext'
6222   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6223   (eval $ac_try) 2>&5
6224   ac_status=$?
6225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6226   (exit $ac_status); }; }; then
6227   ac_cv_type_uint16_t=yes
6228 else
6229   echo "$as_me: failed program was:" >&5
6230 sed 's/^/| /' conftest.$ac_ext >&5
6231
6232 ac_cv_type_uint16_t=no
6233 fi
6234 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6235 fi
6236 echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
6237 echo "${ECHO_T}$ac_cv_type_uint16_t" >&6
6238 if test $ac_cv_type_uint16_t = yes; then
6239   :
6240 else
6241
6242 cat >>confdefs.h <<_ACEOF
6243 #define uint16_t unsigned short
6244 _ACEOF
6245
6246 fi
6247
6248 else
6249   { { echo "$as_me:$LINENO: error: Cannot find a type with size of 16 bits" >&5
6250 echo "$as_me: error: Cannot find a type with size of 16 bits" >&2;}
6251    { (exit 1); exit 1; }; }
6252 fi
6253 if test "$ac_cv_sizeof_int" = 4 ; then
6254   echo "$as_me:$LINENO: checking for int32_t" >&5
6255 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6
6256 if test "${ac_cv_type_int32_t+set}" = set; then
6257   echo $ECHO_N "(cached) $ECHO_C" >&6
6258 else
6259   cat >conftest.$ac_ext <<_ACEOF
6260 /* confdefs.h.  */
6261 _ACEOF
6262 cat confdefs.h >>conftest.$ac_ext
6263 cat >>conftest.$ac_ext <<_ACEOF
6264 /* end confdefs.h.  */
6265 $ac_includes_default
6266 int
6267 main ()
6268 {
6269 if ((int32_t *) 0)
6270   return 0;
6271 if (sizeof (int32_t))
6272   return 0;
6273   ;
6274   return 0;
6275 }
6276 _ACEOF
6277 rm -f conftest.$ac_objext
6278 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6279   (eval $ac_compile) 2>conftest.er1
6280   ac_status=$?
6281   grep -v '^ *+' conftest.er1 >conftest.err
6282   rm -f conftest.er1
6283   cat conftest.err >&5
6284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6285   (exit $ac_status); } &&
6286          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6287   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6288   (eval $ac_try) 2>&5
6289   ac_status=$?
6290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6291   (exit $ac_status); }; } &&
6292          { ac_try='test -s conftest.$ac_objext'
6293   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6294   (eval $ac_try) 2>&5
6295   ac_status=$?
6296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6297   (exit $ac_status); }; }; then
6298   ac_cv_type_int32_t=yes
6299 else
6300   echo "$as_me: failed program was:" >&5
6301 sed 's/^/| /' conftest.$ac_ext >&5
6302
6303 ac_cv_type_int32_t=no
6304 fi
6305 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6306 fi
6307 echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
6308 echo "${ECHO_T}$ac_cv_type_int32_t" >&6
6309 if test $ac_cv_type_int32_t = yes; then
6310   :
6311 else
6312
6313 cat >>confdefs.h <<_ACEOF
6314 #define int32_t int
6315 _ACEOF
6316
6317 fi
6318
6319   echo "$as_me:$LINENO: checking for uint32_t" >&5
6320 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
6321 if test "${ac_cv_type_uint32_t+set}" = set; then
6322   echo $ECHO_N "(cached) $ECHO_C" >&6
6323 else
6324   cat >conftest.$ac_ext <<_ACEOF
6325 /* confdefs.h.  */
6326 _ACEOF
6327 cat confdefs.h >>conftest.$ac_ext
6328 cat >>conftest.$ac_ext <<_ACEOF
6329 /* end confdefs.h.  */
6330 $ac_includes_default
6331 int
6332 main ()
6333 {
6334 if ((uint32_t *) 0)
6335   return 0;
6336 if (sizeof (uint32_t))
6337   return 0;
6338   ;
6339   return 0;
6340 }
6341 _ACEOF
6342 rm -f conftest.$ac_objext
6343 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6344   (eval $ac_compile) 2>conftest.er1
6345   ac_status=$?
6346   grep -v '^ *+' conftest.er1 >conftest.err
6347   rm -f conftest.er1
6348   cat conftest.err >&5
6349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6350   (exit $ac_status); } &&
6351          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6352   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6353   (eval $ac_try) 2>&5
6354   ac_status=$?
6355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6356   (exit $ac_status); }; } &&
6357          { ac_try='test -s conftest.$ac_objext'
6358   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6359   (eval $ac_try) 2>&5
6360   ac_status=$?
6361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6362   (exit $ac_status); }; }; then
6363   ac_cv_type_uint32_t=yes
6364 else
6365   echo "$as_me: failed program was:" >&5
6366 sed 's/^/| /' conftest.$ac_ext >&5
6367
6368 ac_cv_type_uint32_t=no
6369 fi
6370 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6371 fi
6372 echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
6373 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
6374 if test $ac_cv_type_uint32_t = yes; then
6375   :
6376 else
6377
6378 cat >>confdefs.h <<_ACEOF
6379 #define uint32_t unsigned int
6380 _ACEOF
6381
6382 fi
6383
6384 elif test "$ac_cv_sizeof_short" = 4 ; then
6385   echo "$as_me:$LINENO: checking for int32_t" >&5
6386 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6
6387 if test "${ac_cv_type_int32_t+set}" = set; then
6388   echo $ECHO_N "(cached) $ECHO_C" >&6
6389 else
6390   cat >conftest.$ac_ext <<_ACEOF
6391 /* confdefs.h.  */
6392 _ACEOF
6393 cat confdefs.h >>conftest.$ac_ext
6394 cat >>conftest.$ac_ext <<_ACEOF
6395 /* end confdefs.h.  */
6396 $ac_includes_default
6397 int
6398 main ()
6399 {
6400 if ((int32_t *) 0)
6401   return 0;
6402 if (sizeof (int32_t))
6403   return 0;
6404   ;
6405   return 0;
6406 }
6407 _ACEOF
6408 rm -f conftest.$ac_objext
6409 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6410   (eval $ac_compile) 2>conftest.er1
6411   ac_status=$?
6412   grep -v '^ *+' conftest.er1 >conftest.err
6413   rm -f conftest.er1
6414   cat conftest.err >&5
6415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6416   (exit $ac_status); } &&
6417          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6418   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6419   (eval $ac_try) 2>&5
6420   ac_status=$?
6421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6422   (exit $ac_status); }; } &&
6423          { ac_try='test -s conftest.$ac_objext'
6424   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6425   (eval $ac_try) 2>&5
6426   ac_status=$?
6427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6428   (exit $ac_status); }; }; then
6429   ac_cv_type_int32_t=yes
6430 else
6431   echo "$as_me: failed program was:" >&5
6432 sed 's/^/| /' conftest.$ac_ext >&5
6433
6434 ac_cv_type_int32_t=no
6435 fi
6436 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6437 fi
6438 echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
6439 echo "${ECHO_T}$ac_cv_type_int32_t" >&6
6440 if test $ac_cv_type_int32_t = yes; then
6441   :
6442 else
6443
6444 cat >>confdefs.h <<_ACEOF
6445 #define int32_t short
6446 _ACEOF
6447
6448 fi
6449
6450   echo "$as_me:$LINENO: checking for uint32_t" >&5
6451 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
6452 if test "${ac_cv_type_uint32_t+set}" = set; then
6453   echo $ECHO_N "(cached) $ECHO_C" >&6
6454 else
6455   cat >conftest.$ac_ext <<_ACEOF
6456 /* confdefs.h.  */
6457 _ACEOF
6458 cat confdefs.h >>conftest.$ac_ext
6459 cat >>conftest.$ac_ext <<_ACEOF
6460 /* end confdefs.h.  */
6461 $ac_includes_default
6462 int
6463 main ()
6464 {
6465 if ((uint32_t *) 0)
6466   return 0;
6467 if (sizeof (uint32_t))
6468   return 0;
6469   ;
6470   return 0;
6471 }
6472 _ACEOF
6473 rm -f conftest.$ac_objext
6474 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6475   (eval $ac_compile) 2>conftest.er1
6476   ac_status=$?
6477   grep -v '^ *+' conftest.er1 >conftest.err
6478   rm -f conftest.er1
6479   cat conftest.err >&5
6480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6481   (exit $ac_status); } &&
6482          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6483   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6484   (eval $ac_try) 2>&5
6485   ac_status=$?
6486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6487   (exit $ac_status); }; } &&
6488          { ac_try='test -s conftest.$ac_objext'
6489   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6490   (eval $ac_try) 2>&5
6491   ac_status=$?
6492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6493   (exit $ac_status); }; }; then
6494   ac_cv_type_uint32_t=yes
6495 else
6496   echo "$as_me: failed program was:" >&5
6497 sed 's/^/| /' conftest.$ac_ext >&5
6498
6499 ac_cv_type_uint32_t=no
6500 fi
6501 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6502 fi
6503 echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
6504 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
6505 if test $ac_cv_type_uint32_t = yes; then
6506   :
6507 else
6508
6509 cat >>confdefs.h <<_ACEOF
6510 #define uint32_t unsigned short
6511 _ACEOF
6512
6513 fi
6514
6515 elif test "$ac_cv_sizeof_long" = 4 ; then
6516   echo "$as_me:$LINENO: checking for int32_t" >&5
6517 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6
6518 if test "${ac_cv_type_int32_t+set}" = set; then
6519   echo $ECHO_N "(cached) $ECHO_C" >&6
6520 else
6521   cat >conftest.$ac_ext <<_ACEOF
6522 /* confdefs.h.  */
6523 _ACEOF
6524 cat confdefs.h >>conftest.$ac_ext
6525 cat >>conftest.$ac_ext <<_ACEOF
6526 /* end confdefs.h.  */
6527 $ac_includes_default
6528 int
6529 main ()
6530 {
6531 if ((int32_t *) 0)
6532   return 0;
6533 if (sizeof (int32_t))
6534   return 0;
6535   ;
6536   return 0;
6537 }
6538 _ACEOF
6539 rm -f conftest.$ac_objext
6540 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6541   (eval $ac_compile) 2>conftest.er1
6542   ac_status=$?
6543   grep -v '^ *+' conftest.er1 >conftest.err
6544   rm -f conftest.er1
6545   cat conftest.err >&5
6546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6547   (exit $ac_status); } &&
6548          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6549   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6550   (eval $ac_try) 2>&5
6551   ac_status=$?
6552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6553   (exit $ac_status); }; } &&
6554          { ac_try='test -s conftest.$ac_objext'
6555   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6556   (eval $ac_try) 2>&5
6557   ac_status=$?
6558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6559   (exit $ac_status); }; }; then
6560   ac_cv_type_int32_t=yes
6561 else
6562   echo "$as_me: failed program was:" >&5
6563 sed 's/^/| /' conftest.$ac_ext >&5
6564
6565 ac_cv_type_int32_t=no
6566 fi
6567 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6568 fi
6569 echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
6570 echo "${ECHO_T}$ac_cv_type_int32_t" >&6
6571 if test $ac_cv_type_int32_t = yes; then
6572   :
6573 else
6574
6575 cat >>confdefs.h <<_ACEOF
6576 #define int32_t long
6577 _ACEOF
6578
6579 fi
6580
6581   echo "$as_me:$LINENO: checking for uint32_t" >&5
6582 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
6583 if test "${ac_cv_type_uint32_t+set}" = set; then
6584   echo $ECHO_N "(cached) $ECHO_C" >&6
6585 else
6586   cat >conftest.$ac_ext <<_ACEOF
6587 /* confdefs.h.  */
6588 _ACEOF
6589 cat confdefs.h >>conftest.$ac_ext
6590 cat >>conftest.$ac_ext <<_ACEOF
6591 /* end confdefs.h.  */
6592 $ac_includes_default
6593 int
6594 main ()
6595 {
6596 if ((uint32_t *) 0)
6597   return 0;
6598 if (sizeof (uint32_t))
6599   return 0;
6600   ;
6601   return 0;
6602 }
6603 _ACEOF
6604 rm -f conftest.$ac_objext
6605 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6606   (eval $ac_compile) 2>conftest.er1
6607   ac_status=$?
6608   grep -v '^ *+' conftest.er1 >conftest.err
6609   rm -f conftest.er1
6610   cat conftest.err >&5
6611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6612   (exit $ac_status); } &&
6613          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6614   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6615   (eval $ac_try) 2>&5
6616   ac_status=$?
6617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6618   (exit $ac_status); }; } &&
6619          { ac_try='test -s conftest.$ac_objext'
6620   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6621   (eval $ac_try) 2>&5
6622   ac_status=$?
6623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6624   (exit $ac_status); }; }; then
6625   ac_cv_type_uint32_t=yes
6626 else
6627   echo "$as_me: failed program was:" >&5
6628 sed 's/^/| /' conftest.$ac_ext >&5
6629
6630 ac_cv_type_uint32_t=no
6631 fi
6632 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6633 fi
6634 echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
6635 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
6636 if test $ac_cv_type_uint32_t = yes; then
6637   :
6638 else
6639
6640 cat >>confdefs.h <<_ACEOF
6641 #define uint32_t unsigned long
6642 _ACEOF
6643
6644 fi
6645
6646 else
6647   { { echo "$as_me:$LINENO: error: Cannot find a type with size of 32 bits" >&5
6648 echo "$as_me: error: Cannot find a type with size of 32 bits" >&2;}
6649    { (exit 1); exit 1; }; }
6650 fi
6651 echo "$as_me:$LINENO: checking for socklen_t" >&5
6652 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
6653 if test "${ac_cv_type_socklen_t+set}" = set; then
6654   echo $ECHO_N "(cached) $ECHO_C" >&6
6655 else
6656   cat >conftest.$ac_ext <<_ACEOF
6657 /* confdefs.h.  */
6658 _ACEOF
6659 cat confdefs.h >>conftest.$ac_ext
6660 cat >>conftest.$ac_ext <<_ACEOF
6661 /* end confdefs.h.  */
6662 $ac_includes_default
6663 int
6664 main ()
6665 {
6666 if ((socklen_t *) 0)
6667   return 0;
6668 if (sizeof (socklen_t))
6669   return 0;
6670   ;
6671   return 0;
6672 }
6673 _ACEOF
6674 rm -f conftest.$ac_objext
6675 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6676   (eval $ac_compile) 2>conftest.er1
6677   ac_status=$?
6678   grep -v '^ *+' conftest.er1 >conftest.err
6679   rm -f conftest.er1
6680   cat conftest.err >&5
6681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6682   (exit $ac_status); } &&
6683          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6684   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6685   (eval $ac_try) 2>&5
6686   ac_status=$?
6687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6688   (exit $ac_status); }; } &&
6689          { ac_try='test -s conftest.$ac_objext'
6690   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6691   (eval $ac_try) 2>&5
6692   ac_status=$?
6693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6694   (exit $ac_status); }; }; then
6695   ac_cv_type_socklen_t=yes
6696 else
6697   echo "$as_me: failed program was:" >&5
6698 sed 's/^/| /' conftest.$ac_ext >&5
6699
6700 ac_cv_type_socklen_t=no
6701 fi
6702 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6703 fi
6704 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
6705 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
6706 if test $ac_cv_type_socklen_t = yes; then
6707   :
6708 else
6709
6710 cat >>confdefs.h <<_ACEOF
6711 #define socklen_t unsigned int
6712 _ACEOF
6713
6714 fi
6715
6716
6717
6718
6719
6720
6721 for ac_func in kqueue setrlimit getrusage times
6722 do
6723 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6724 echo "$as_me:$LINENO: checking for $ac_func" >&5
6725 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6726 if eval "test \"\${$as_ac_var+set}\" = set"; then
6727   echo $ECHO_N "(cached) $ECHO_C" >&6
6728 else
6729   cat >conftest.$ac_ext <<_ACEOF
6730 /* confdefs.h.  */
6731 _ACEOF
6732 cat confdefs.h >>conftest.$ac_ext
6733 cat >>conftest.$ac_ext <<_ACEOF
6734 /* end confdefs.h.  */
6735 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6736    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6737 #define $ac_func innocuous_$ac_func
6738
6739 /* System header to define __stub macros and hopefully few prototypes,
6740     which can conflict with char $ac_func (); below.
6741     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6742     <limits.h> exists even on freestanding compilers.  */
6743
6744 #ifdef __STDC__
6745 # include <limits.h>
6746 #else
6747 # include <assert.h>
6748 #endif
6749
6750 #undef $ac_func
6751
6752 /* Override any gcc2 internal prototype to avoid an error.  */
6753 #ifdef __cplusplus
6754 extern "C"
6755 {
6756 #endif
6757 /* We use char because int might match the return type of a gcc2
6758    builtin and then its argument prototype would still apply.  */
6759 char $ac_func ();
6760 /* The GNU C library defines this for functions which it implements
6761     to always fail with ENOSYS.  Some functions are actually named
6762     something starting with __ and the normal name is an alias.  */
6763 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6764 choke me
6765 #else
6766 char (*f) () = $ac_func;
6767 #endif
6768 #ifdef __cplusplus
6769 }
6770 #endif
6771
6772 int
6773 main ()
6774 {
6775 return f != $ac_func;
6776   ;
6777   return 0;
6778 }
6779 _ACEOF
6780 rm -f conftest.$ac_objext conftest$ac_exeext
6781 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6782   (eval $ac_link) 2>conftest.er1
6783   ac_status=$?
6784   grep -v '^ *+' conftest.er1 >conftest.err
6785   rm -f conftest.er1
6786   cat conftest.err >&5
6787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6788   (exit $ac_status); } &&
6789          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6790   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6791   (eval $ac_try) 2>&5
6792   ac_status=$?
6793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6794   (exit $ac_status); }; } &&
6795          { ac_try='test -s conftest$ac_exeext'
6796   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6797   (eval $ac_try) 2>&5
6798   ac_status=$?
6799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6800   (exit $ac_status); }; }; then
6801   eval "$as_ac_var=yes"
6802 else
6803   echo "$as_me: failed program was:" >&5
6804 sed 's/^/| /' conftest.$ac_ext >&5
6805
6806 eval "$as_ac_var=no"
6807 fi
6808 rm -f conftest.err conftest.$ac_objext \
6809       conftest$ac_exeext conftest.$ac_ext
6810 fi
6811 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6812 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6813 if test `eval echo '${'$as_ac_var'}'` = yes; then
6814   cat >>confdefs.h <<_ACEOF
6815 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6816 _ACEOF
6817
6818 fi
6819 done
6820
6821
6822 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
6823 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
6824 if test "${ac_cv_header_sys_wait_h+set}" = set; then
6825   echo $ECHO_N "(cached) $ECHO_C" >&6
6826 else
6827   cat >conftest.$ac_ext <<_ACEOF
6828 /* confdefs.h.  */
6829 _ACEOF
6830 cat confdefs.h >>conftest.$ac_ext
6831 cat >>conftest.$ac_ext <<_ACEOF
6832 /* end confdefs.h.  */
6833 #include <sys/types.h>
6834 #include <sys/wait.h>
6835 #ifndef WEXITSTATUS
6836 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
6837 #endif
6838 #ifndef WIFEXITED
6839 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6840 #endif
6841
6842 int
6843 main ()
6844 {
6845   int s;
6846   wait (&s);
6847   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6848   ;
6849   return 0;
6850 }
6851 _ACEOF
6852 rm -f conftest.$ac_objext
6853 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6854   (eval $ac_compile) 2>conftest.er1
6855   ac_status=$?
6856   grep -v '^ *+' conftest.er1 >conftest.err
6857   rm -f conftest.er1
6858   cat conftest.err >&5
6859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6860   (exit $ac_status); } &&
6861          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6862   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6863   (eval $ac_try) 2>&5
6864   ac_status=$?
6865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6866   (exit $ac_status); }; } &&
6867          { ac_try='test -s conftest.$ac_objext'
6868   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6869   (eval $ac_try) 2>&5
6870   ac_status=$?
6871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6872   (exit $ac_status); }; }; then
6873   ac_cv_header_sys_wait_h=yes
6874 else
6875   echo "$as_me: failed program was:" >&5
6876 sed 's/^/| /' conftest.$ac_ext >&5
6877
6878 ac_cv_header_sys_wait_h=no
6879 fi
6880 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6881 fi
6882 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
6883 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
6884 if test $ac_cv_header_sys_wait_h = yes; then
6885
6886 cat >>confdefs.h <<\_ACEOF
6887 #define HAVE_SYS_WAIT_H 1
6888 _ACEOF
6889
6890 fi
6891
6892
6893 for ac_header in unistd.h
6894 do
6895 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6896 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6897   echo "$as_me:$LINENO: checking for $ac_header" >&5
6898 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6899 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6900   echo $ECHO_N "(cached) $ECHO_C" >&6
6901 fi
6902 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6903 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6904 else
6905   # Is the header compilable?
6906 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6907 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6908 cat >conftest.$ac_ext <<_ACEOF
6909 /* confdefs.h.  */
6910 _ACEOF
6911 cat confdefs.h >>conftest.$ac_ext
6912 cat >>conftest.$ac_ext <<_ACEOF
6913 /* end confdefs.h.  */
6914 $ac_includes_default
6915 #include <$ac_header>
6916 _ACEOF
6917 rm -f conftest.$ac_objext
6918 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6919   (eval $ac_compile) 2>conftest.er1
6920   ac_status=$?
6921   grep -v '^ *+' conftest.er1 >conftest.err
6922   rm -f conftest.er1
6923   cat conftest.err >&5
6924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6925   (exit $ac_status); } &&
6926          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6927   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6928   (eval $ac_try) 2>&5
6929   ac_status=$?
6930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6931   (exit $ac_status); }; } &&
6932          { ac_try='test -s conftest.$ac_objext'
6933   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6934   (eval $ac_try) 2>&5
6935   ac_status=$?
6936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6937   (exit $ac_status); }; }; then
6938   ac_header_compiler=yes
6939 else
6940   echo "$as_me: failed program was:" >&5
6941 sed 's/^/| /' conftest.$ac_ext >&5
6942
6943 ac_header_compiler=no
6944 fi
6945 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6946 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6947 echo "${ECHO_T}$ac_header_compiler" >&6
6948
6949 # Is the header present?
6950 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6951 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6952 cat >conftest.$ac_ext <<_ACEOF
6953 /* confdefs.h.  */
6954 _ACEOF
6955 cat confdefs.h >>conftest.$ac_ext
6956 cat >>conftest.$ac_ext <<_ACEOF
6957 /* end confdefs.h.  */
6958 #include <$ac_header>
6959 _ACEOF
6960 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6961   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6962   ac_status=$?
6963   grep -v '^ *+' conftest.er1 >conftest.err
6964   rm -f conftest.er1
6965   cat conftest.err >&5
6966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6967   (exit $ac_status); } >/dev/null; then
6968   if test -s conftest.err; then
6969     ac_cpp_err=$ac_c_preproc_warn_flag
6970     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6971   else
6972     ac_cpp_err=
6973   fi
6974 else
6975   ac_cpp_err=yes
6976 fi
6977 if test -z "$ac_cpp_err"; then
6978   ac_header_preproc=yes
6979 else
6980   echo "$as_me: failed program was:" >&5
6981 sed 's/^/| /' conftest.$ac_ext >&5
6982
6983   ac_header_preproc=no
6984 fi
6985 rm -f conftest.err conftest.$ac_ext
6986 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6987 echo "${ECHO_T}$ac_header_preproc" >&6
6988
6989 # So?  What about this header?
6990 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6991   yes:no: )
6992     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6993 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6994     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6995 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6996     ac_header_preproc=yes
6997     ;;
6998   no:yes:* )
6999     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7000 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7001     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7002 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7003     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7004 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7005     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7006 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7007     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7008 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7009     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7010 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7011     (
7012       cat <<\_ASBOX
7013 ## ------------------------------------------ ##
7014 ## Report this to the AC_PACKAGE_NAME lists.  ##
7015 ## ------------------------------------------ ##
7016 _ASBOX
7017     ) |
7018       sed "s/^/$as_me: WARNING:     /" >&2
7019     ;;
7020 esac
7021 echo "$as_me:$LINENO: checking for $ac_header" >&5
7022 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7023 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7024   echo $ECHO_N "(cached) $ECHO_C" >&6
7025 else
7026   eval "$as_ac_Header=\$ac_header_preproc"
7027 fi
7028 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7029 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7030
7031 fi
7032 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7033   cat >>confdefs.h <<_ACEOF
7034 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7035 _ACEOF
7036
7037 fi
7038
7039 done
7040
7041 echo "$as_me:$LINENO: checking for restartable system calls" >&5
7042 echo $ECHO_N "checking for restartable system calls... $ECHO_C" >&6
7043 if test "${ac_cv_sys_restartable_syscalls+set}" = set; then
7044   echo $ECHO_N "(cached) $ECHO_C" >&6
7045 else
7046   if test "$cross_compiling" = yes; then
7047   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7048 See \`config.log' for more details." >&5
7049 echo "$as_me: error: cannot run test program while cross compiling
7050 See \`config.log' for more details." >&2;}
7051    { (exit 1); exit 1; }; }
7052 else
7053   cat >conftest.$ac_ext <<_ACEOF
7054 /* confdefs.h.  */
7055 _ACEOF
7056 cat confdefs.h >>conftest.$ac_ext
7057 cat >>conftest.$ac_ext <<_ACEOF
7058 /* end confdefs.h.  */
7059 /* Exit 0 (true) if wait returns something other than -1,
7060    i.e. the pid of the child, which means that wait was restarted
7061    after getting the signal.  */
7062
7063 #include <sys/types.h>
7064 #include <signal.h>
7065 #if HAVE_UNISTD_H
7066 # include <unistd.h>
7067 #endif
7068 #if HAVE_SYS_WAIT_H
7069 # include <sys/wait.h>
7070 #endif
7071
7072 /* Some platforms explicitly require an extern "C" signal handler
7073    when using C++. */
7074 #ifdef __cplusplus
7075 extern "C" void ucatch (int dummy) { }
7076 #else
7077 void ucatch (dummy) int dummy; { }
7078 #endif
7079
7080 int
7081 main ()
7082 {
7083   int i = fork (), status;
7084
7085   if (i == 0)
7086     {
7087       sleep (3);
7088       kill (getppid (), SIGINT);
7089       sleep (3);
7090       exit (0);
7091     }
7092
7093   signal (SIGINT, ucatch);
7094
7095   status = wait (&i);
7096   if (status == -1)
7097     wait (&i);
7098
7099   exit (status == -1);
7100 }
7101 _ACEOF
7102 rm -f conftest$ac_exeext
7103 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7104   (eval $ac_link) 2>&5
7105   ac_status=$?
7106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7107   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7108   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7109   (eval $ac_try) 2>&5
7110   ac_status=$?
7111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7112   (exit $ac_status); }; }; then
7113   ac_cv_sys_restartable_syscalls=yes
7114 else
7115   echo "$as_me: program exited with status $ac_status" >&5
7116 echo "$as_me: failed program was:" >&5
7117 sed 's/^/| /' conftest.$ac_ext >&5
7118
7119 ( exit $ac_status )
7120 ac_cv_sys_restartable_syscalls=no
7121 fi
7122 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7123 fi
7124 fi
7125 echo "$as_me:$LINENO: result: $ac_cv_sys_restartable_syscalls" >&5
7126 echo "${ECHO_T}$ac_cv_sys_restartable_syscalls" >&6
7127 if test $ac_cv_sys_restartable_syscalls = yes; then
7128
7129 cat >>confdefs.h <<\_ACEOF
7130 #define HAVE_RESTARTABLE_SYSCALLS 1
7131 _ACEOF
7132
7133 fi
7134
7135
7136 echo "$as_me:$LINENO: checking for donuts" >&5
7137 echo $ECHO_N "checking for donuts... $ECHO_C" >&6
7138 echo "$as_me:$LINENO: result: yes" >&5
7139 echo "${ECHO_T}yes" >&6
7140
7141 for ac_prog in gawk mawk nawk awk
7142 do
7143   # Extract the first word of "$ac_prog", so it can be a program name with args.
7144 set dummy $ac_prog; ac_word=$2
7145 echo "$as_me:$LINENO: checking for $ac_word" >&5
7146 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7147 if test "${ac_cv_prog_AWK+set}" = set; then
7148   echo $ECHO_N "(cached) $ECHO_C" >&6
7149 else
7150   if test -n "$AWK"; then
7151   ac_cv_prog_AWK="$AWK" # Let the user override the test.
7152 else
7153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7154 for as_dir in $PATH
7155 do
7156   IFS=$as_save_IFS
7157   test -z "$as_dir" && as_dir=.
7158   for ac_exec_ext in '' $ac_executable_extensions; do
7159   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7160     ac_cv_prog_AWK="$ac_prog"
7161     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7162     break 2
7163   fi
7164 done
7165 done
7166
7167 fi
7168 fi
7169 AWK=$ac_cv_prog_AWK
7170 if test -n "$AWK"; then
7171   echo "$as_me:$LINENO: result: $AWK" >&5
7172 echo "${ECHO_T}$AWK" >&6
7173 else
7174   echo "$as_me:$LINENO: result: no" >&5
7175 echo "${ECHO_T}no" >&6
7176 fi
7177
7178   test -n "$AWK" && break
7179 done
7180
7181 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7182 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
7183 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
7184 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
7185   echo $ECHO_N "(cached) $ECHO_C" >&6
7186 else
7187   cat >conftest.make <<\_ACEOF
7188 all:
7189         @echo 'ac_maketemp="$(MAKE)"'
7190 _ACEOF
7191 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7192 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
7193 if test -n "$ac_maketemp"; then
7194   eval ac_cv_prog_make_${ac_make}_set=yes
7195 else
7196   eval ac_cv_prog_make_${ac_make}_set=no
7197 fi
7198 rm -f conftest.make
7199 fi
7200 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
7201   echo "$as_me:$LINENO: result: yes" >&5
7202 echo "${ECHO_T}yes" >&6
7203   SET_MAKE=
7204 else
7205   echo "$as_me:$LINENO: result: no" >&5
7206 echo "${ECHO_T}no" >&6
7207   SET_MAKE="MAKE=${MAKE-make}"
7208 fi
7209
7210 # Find a good install program.  We prefer a C program (faster),
7211 # so one script is as good as another.  But avoid the broken or
7212 # incompatible versions:
7213 # SysV /etc/install, /usr/sbin/install
7214 # SunOS /usr/etc/install
7215 # IRIX /sbin/install
7216 # AIX /bin/install
7217 # AmigaOS /C/install, which installs bootblocks on floppy discs
7218 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7219 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7220 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7221 # OS/2's system install, which has a completely different semantic
7222 # ./install, which can be erroneously created by make from ./install.sh.
7223 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7224 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
7225 if test -z "$INSTALL"; then
7226 if test "${ac_cv_path_install+set}" = set; then
7227   echo $ECHO_N "(cached) $ECHO_C" >&6
7228 else
7229   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7230 for as_dir in $PATH
7231 do
7232   IFS=$as_save_IFS
7233   test -z "$as_dir" && as_dir=.
7234   # Account for people who put trailing slashes in PATH elements.
7235 case $as_dir/ in
7236   ./ | .// | /cC/* | \
7237   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7238   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7239   /usr/ucb/* ) ;;
7240   *)
7241     # OSF1 and SCO ODT 3.0 have their own names for install.
7242     # Don't use installbsd from OSF since it installs stuff as root
7243     # by default.
7244     for ac_prog in ginstall scoinst install; do
7245       for ac_exec_ext in '' $ac_executable_extensions; do
7246         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
7247           if test $ac_prog = install &&
7248             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7249             # AIX install.  It has an incompatible calling convention.
7250             :
7251           elif test $ac_prog = install &&
7252             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7253             # program-specific install script used by HP pwplus--don't use.
7254             :
7255           else
7256             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7257             break 3
7258           fi
7259         fi
7260       done
7261     done
7262     ;;
7263 esac
7264 done
7265
7266
7267 fi
7268   if test "${ac_cv_path_install+set}" = set; then
7269     INSTALL=$ac_cv_path_install
7270   else
7271     # As a last resort, use the slow shell script.  We don't cache a
7272     # path for INSTALL within a source directory, because that will
7273     # break other packages using the cache if that directory is
7274     # removed, or if the path is relative.
7275     INSTALL=$ac_install_sh
7276   fi
7277 fi
7278 echo "$as_me:$LINENO: result: $INSTALL" >&5
7279 echo "${ECHO_T}$INSTALL" >&6
7280
7281 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7282 # It thinks the first close brace ends the variable substitution.
7283 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7284
7285 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7286
7287 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7288
7289 echo "$as_me:$LINENO: checking whether ln -s works" >&5
7290 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
7291 LN_S=$as_ln_s
7292 if test "$LN_S" = "ln -s"; then
7293   echo "$as_me:$LINENO: result: yes" >&5
7294 echo "${ECHO_T}yes" >&6
7295 else
7296   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
7297 echo "${ECHO_T}no, using $LN_S" >&6
7298 fi
7299
7300 for ac_prog in flex lex
7301 do
7302   # Extract the first word of "$ac_prog", so it can be a program name with args.
7303 set dummy $ac_prog; ac_word=$2
7304 echo "$as_me:$LINENO: checking for $ac_word" >&5
7305 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7306 if test "${ac_cv_prog_LEX+set}" = set; then
7307   echo $ECHO_N "(cached) $ECHO_C" >&6
7308 else
7309   if test -n "$LEX"; then
7310   ac_cv_prog_LEX="$LEX" # Let the user override the test.
7311 else
7312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7313 for as_dir in $PATH
7314 do
7315   IFS=$as_save_IFS
7316   test -z "$as_dir" && as_dir=.
7317   for ac_exec_ext in '' $ac_executable_extensions; do
7318   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7319     ac_cv_prog_LEX="$ac_prog"
7320     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7321     break 2
7322   fi
7323 done
7324 done
7325
7326 fi
7327 fi
7328 LEX=$ac_cv_prog_LEX
7329 if test -n "$LEX"; then
7330   echo "$as_me:$LINENO: result: $LEX" >&5
7331 echo "${ECHO_T}$LEX" >&6
7332 else
7333   echo "$as_me:$LINENO: result: no" >&5
7334 echo "${ECHO_T}no" >&6
7335 fi
7336
7337   test -n "$LEX" && break
7338 done
7339 test -n "$LEX" || LEX=":"
7340
7341 if test -z "$LEXLIB"
7342 then
7343   echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
7344 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
7345 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
7346   echo $ECHO_N "(cached) $ECHO_C" >&6
7347 else
7348   ac_check_lib_save_LIBS=$LIBS
7349 LIBS="-lfl  $LIBS"
7350 cat >conftest.$ac_ext <<_ACEOF
7351 /* confdefs.h.  */
7352 _ACEOF
7353 cat confdefs.h >>conftest.$ac_ext
7354 cat >>conftest.$ac_ext <<_ACEOF
7355 /* end confdefs.h.  */
7356
7357 /* Override any gcc2 internal prototype to avoid an error.  */
7358 #ifdef __cplusplus
7359 extern "C"
7360 #endif
7361 /* We use char because int might match the return type of a gcc2
7362    builtin and then its argument prototype would still apply.  */
7363 char yywrap ();
7364 int
7365 main ()
7366 {
7367 yywrap ();
7368   ;
7369   return 0;
7370 }
7371 _ACEOF
7372 rm -f conftest.$ac_objext conftest$ac_exeext
7373 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7374   (eval $ac_link) 2>conftest.er1
7375   ac_status=$?
7376   grep -v '^ *+' conftest.er1 >conftest.err
7377   rm -f conftest.er1
7378   cat conftest.err >&5
7379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7380   (exit $ac_status); } &&
7381          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7382   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7383   (eval $ac_try) 2>&5
7384   ac_status=$?
7385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7386   (exit $ac_status); }; } &&
7387          { ac_try='test -s conftest$ac_exeext'
7388   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7389   (eval $ac_try) 2>&5
7390   ac_status=$?
7391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7392   (exit $ac_status); }; }; then
7393   ac_cv_lib_fl_yywrap=yes
7394 else
7395   echo "$as_me: failed program was:" >&5
7396 sed 's/^/| /' conftest.$ac_ext >&5
7397
7398 ac_cv_lib_fl_yywrap=no
7399 fi
7400 rm -f conftest.err conftest.$ac_objext \
7401       conftest$ac_exeext conftest.$ac_ext
7402 LIBS=$ac_check_lib_save_LIBS
7403 fi
7404 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
7405 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
7406 if test $ac_cv_lib_fl_yywrap = yes; then
7407   LEXLIB="-lfl"
7408 else
7409   echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
7410 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
7411 if test "${ac_cv_lib_l_yywrap+set}" = set; then
7412   echo $ECHO_N "(cached) $ECHO_C" >&6
7413 else
7414   ac_check_lib_save_LIBS=$LIBS
7415 LIBS="-ll  $LIBS"
7416 cat >conftest.$ac_ext <<_ACEOF
7417 /* confdefs.h.  */
7418 _ACEOF
7419 cat confdefs.h >>conftest.$ac_ext
7420 cat >>conftest.$ac_ext <<_ACEOF
7421 /* end confdefs.h.  */
7422
7423 /* Override any gcc2 internal prototype to avoid an error.  */
7424 #ifdef __cplusplus
7425 extern "C"
7426 #endif
7427 /* We use char because int might match the return type of a gcc2
7428    builtin and then its argument prototype would still apply.  */
7429 char yywrap ();
7430 int
7431 main ()
7432 {
7433 yywrap ();
7434   ;
7435   return 0;
7436 }
7437 _ACEOF
7438 rm -f conftest.$ac_objext conftest$ac_exeext
7439 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7440   (eval $ac_link) 2>conftest.er1
7441   ac_status=$?
7442   grep -v '^ *+' conftest.er1 >conftest.err
7443   rm -f conftest.er1
7444   cat conftest.err >&5
7445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7446   (exit $ac_status); } &&
7447          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7448   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7449   (eval $ac_try) 2>&5
7450   ac_status=$?
7451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7452   (exit $ac_status); }; } &&
7453          { ac_try='test -s conftest$ac_exeext'
7454   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7455   (eval $ac_try) 2>&5
7456   ac_status=$?
7457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7458   (exit $ac_status); }; }; then
7459   ac_cv_lib_l_yywrap=yes
7460 else
7461   echo "$as_me: failed program was:" >&5
7462 sed 's/^/| /' conftest.$ac_ext >&5
7463
7464 ac_cv_lib_l_yywrap=no
7465 fi
7466 rm -f conftest.err conftest.$ac_objext \
7467       conftest$ac_exeext conftest.$ac_ext
7468 LIBS=$ac_check_lib_save_LIBS
7469 fi
7470 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
7471 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
7472 if test $ac_cv_lib_l_yywrap = yes; then
7473   LEXLIB="-ll"
7474 fi
7475
7476 fi
7477
7478 fi
7479
7480 if test "x$LEX" != "x:"; then
7481   echo "$as_me:$LINENO: checking lex output file root" >&5
7482 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
7483 if test "${ac_cv_prog_lex_root+set}" = set; then
7484   echo $ECHO_N "(cached) $ECHO_C" >&6
7485 else
7486   # The minimal lex program is just a single line: %%.  But some broken lexes
7487 # (Solaris, I think it was) want two %% lines, so accommodate them.
7488 cat >conftest.l <<_ACEOF
7489 %%
7490 %%
7491 _ACEOF
7492 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
7493   (eval $LEX conftest.l) 2>&5
7494   ac_status=$?
7495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7496   (exit $ac_status); }
7497 if test -f lex.yy.c; then
7498   ac_cv_prog_lex_root=lex.yy
7499 elif test -f lexyy.c; then
7500   ac_cv_prog_lex_root=lexyy
7501 else
7502   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
7503 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
7504    { (exit 1); exit 1; }; }
7505 fi
7506 fi
7507 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
7508 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
7509 rm -f conftest.l
7510 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
7511
7512 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
7513 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
7514 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
7515   echo $ECHO_N "(cached) $ECHO_C" >&6
7516 else
7517   # POSIX says lex can declare yytext either as a pointer or an array; the
7518 # default is implementation-dependent. Figure out which it is, since
7519 # not all implementations provide the %pointer and %array declarations.
7520 ac_cv_prog_lex_yytext_pointer=no
7521 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
7522 ac_save_LIBS=$LIBS
7523 LIBS="$LIBS $LEXLIB"
7524 cat >conftest.$ac_ext <<_ACEOF
7525 `cat $LEX_OUTPUT_ROOT.c`
7526 _ACEOF
7527 rm -f conftest.$ac_objext conftest$ac_exeext
7528 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7529   (eval $ac_link) 2>conftest.er1
7530   ac_status=$?
7531   grep -v '^ *+' conftest.er1 >conftest.err
7532   rm -f conftest.er1
7533   cat conftest.err >&5
7534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7535   (exit $ac_status); } &&
7536          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7537   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7538   (eval $ac_try) 2>&5
7539   ac_status=$?
7540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7541   (exit $ac_status); }; } &&
7542          { ac_try='test -s conftest$ac_exeext'
7543   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7544   (eval $ac_try) 2>&5
7545   ac_status=$?
7546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7547   (exit $ac_status); }; }; then
7548   ac_cv_prog_lex_yytext_pointer=yes
7549 else
7550   echo "$as_me: failed program was:" >&5
7551 sed 's/^/| /' conftest.$ac_ext >&5
7552
7553 fi
7554 rm -f conftest.err conftest.$ac_objext \
7555       conftest$ac_exeext conftest.$ac_ext
7556 LIBS=$ac_save_LIBS
7557 rm -f "${LEX_OUTPUT_ROOT}.c"
7558
7559 fi
7560 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
7561 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
7562 if test $ac_cv_prog_lex_yytext_pointer = yes; then
7563
7564 cat >>confdefs.h <<\_ACEOF
7565 #define YYTEXT_POINTER 1
7566 _ACEOF
7567
7568 fi
7569
7570 fi
7571 for ac_prog in 'bison -y' byacc
7572 do
7573   # Extract the first word of "$ac_prog", so it can be a program name with args.
7574 set dummy $ac_prog; ac_word=$2
7575 echo "$as_me:$LINENO: checking for $ac_word" >&5
7576 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7577 if test "${ac_cv_prog_YACC+set}" = set; then
7578   echo $ECHO_N "(cached) $ECHO_C" >&6
7579 else
7580   if test -n "$YACC"; then
7581   ac_cv_prog_YACC="$YACC" # Let the user override the test.
7582 else
7583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7584 for as_dir in $PATH
7585 do
7586   IFS=$as_save_IFS
7587   test -z "$as_dir" && as_dir=.
7588   for ac_exec_ext in '' $ac_executable_extensions; do
7589   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7590     ac_cv_prog_YACC="$ac_prog"
7591     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7592     break 2
7593   fi
7594 done
7595 done
7596
7597 fi
7598 fi
7599 YACC=$ac_cv_prog_YACC
7600 if test -n "$YACC"; then
7601   echo "$as_me:$LINENO: result: $YACC" >&5
7602 echo "${ECHO_T}$YACC" >&6
7603 else
7604   echo "$as_me:$LINENO: result: no" >&5
7605 echo "${ECHO_T}no" >&6
7606 fi
7607
7608   test -n "$YACC" && break
7609 done
7610 test -n "$YACC" || YACC="yacc"
7611
7612 for ac_prog in rm
7613 do
7614   # Extract the first word of "$ac_prog", so it can be a program name with args.
7615 set dummy $ac_prog; ac_word=$2
7616 echo "$as_me:$LINENO: checking for $ac_word" >&5
7617 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7618 if test "${ac_cv_path_RMPROG+set}" = set; then
7619   echo $ECHO_N "(cached) $ECHO_C" >&6
7620 else
7621   case $RMPROG in
7622   [\\/]* | ?:[\\/]*)
7623   ac_cv_path_RMPROG="$RMPROG" # Let the user override the test with a path.
7624   ;;
7625   *)
7626   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7627 for as_dir in $PATH
7628 do
7629   IFS=$as_save_IFS
7630   test -z "$as_dir" && as_dir=.
7631   for ac_exec_ext in '' $ac_executable_extensions; do
7632   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7633     ac_cv_path_RMPROG="$as_dir/$ac_word$ac_exec_ext"
7634     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7635     break 2
7636   fi
7637 done
7638 done
7639
7640   ;;
7641 esac
7642 fi
7643 RMPROG=$ac_cv_path_RMPROG
7644
7645 if test -n "$RMPROG"; then
7646   echo "$as_me:$LINENO: result: $RMPROG" >&5
7647 echo "${ECHO_T}$RMPROG" >&6
7648 else
7649   echo "$as_me:$LINENO: result: no" >&5
7650 echo "${ECHO_T}no" >&6
7651 fi
7652
7653   test -n "$RMPROG" && break
7654 done
7655 test -n "$RMPROG" || RMPROG="/bin/rm"
7656
7657 for ac_prog in sh
7658 do
7659   # Extract the first word of "$ac_prog", so it can be a program name with args.
7660 set dummy $ac_prog; ac_word=$2
7661 echo "$as_me:$LINENO: checking for $ac_word" >&5
7662 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7663 if test "${ac_cv_path_SHPROG+set}" = set; then
7664   echo $ECHO_N "(cached) $ECHO_C" >&6
7665 else
7666   case $SHPROG in
7667   [\\/]* | ?:[\\/]*)
7668   ac_cv_path_SHPROG="$SHPROG" # Let the user override the test with a path.
7669   ;;
7670   *)
7671   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7672 for as_dir in $PATH
7673 do
7674   IFS=$as_save_IFS
7675   test -z "$as_dir" && as_dir=.
7676   for ac_exec_ext in '' $ac_executable_extensions; do
7677   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7678     ac_cv_path_SHPROG="$as_dir/$ac_word$ac_exec_ext"
7679     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7680     break 2
7681   fi
7682 done
7683 done
7684
7685   ;;
7686 esac
7687 fi
7688 SHPROG=$ac_cv_path_SHPROG
7689
7690 if test -n "$SHPROG"; then
7691   echo "$as_me:$LINENO: result: $SHPROG" >&5
7692 echo "${ECHO_T}$SHPROG" >&6
7693 else
7694   echo "$as_me:$LINENO: result: no" >&5
7695 echo "${ECHO_T}no" >&6
7696 fi
7697
7698   test -n "$SHPROG" && break
7699 done
7700 test -n "$SHPROG" || SHPROG="/bin/sh"
7701
7702
7703 LIBS="$LEXLIB $LIBS"
7704
7705 echo "$as_me:$LINENO: checking for posix non-blocking" >&5
7706 echo $ECHO_N "checking for posix non-blocking... $ECHO_C" >&6
7707 if test "${unet_cv_sys_nonblocking_posix+set}" = set; then
7708   echo $ECHO_N "(cached) $ECHO_C" >&6
7709 else
7710   if test "$cross_compiling" = yes; then
7711   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7712 See \`config.log' for more details." >&5
7713 echo "$as_me: error: cannot run test program while cross compiling
7714 See \`config.log' for more details." >&2;}
7715    { (exit 1); exit 1; }; }
7716 else
7717   cat >conftest.$ac_ext <<_ACEOF
7718 /* confdefs.h.  */
7719 _ACEOF
7720 cat confdefs.h >>conftest.$ac_ext
7721 cat >>conftest.$ac_ext <<_ACEOF
7722 /* end confdefs.h.  */
7723 #include <sys/types.h>
7724 #include <sys/socket.h>
7725 #include <fcntl.h>
7726 #include <sys/ioctl.h>
7727 #include <sys/file.h>
7728 #include <signal.h>
7729 $ac_cv_type_signal alarmed() { exit(1); }
7730 int main(void)
7731 {
7732   char b[12];
7733   struct sockaddr x;
7734   size_t l = sizeof(x);
7735   int f = socket(AF_INET, SOCK_DGRAM, 0);
7736   if (f >= 0 && !(fcntl(f, F_SETFL, O_NONBLOCK)))
7737   {
7738     signal(SIGALRM, alarmed);
7739     alarm(2);
7740     recvfrom(f, b, 12, 0, &x, &l);
7741     alarm(0);
7742     exit(0);
7743   }
7744   exit(1);
7745 }
7746 _ACEOF
7747 rm -f conftest$ac_exeext
7748 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7749   (eval $ac_link) 2>&5
7750   ac_status=$?
7751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7752   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7753   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7754   (eval $ac_try) 2>&5
7755   ac_status=$?
7756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7757   (exit $ac_status); }; }; then
7758   unet_cv_sys_nonblocking_posix=yes
7759 else
7760   echo "$as_me: program exited with status $ac_status" >&5
7761 echo "$as_me: failed program was:" >&5
7762 sed 's/^/| /' conftest.$ac_ext >&5
7763
7764 ( exit $ac_status )
7765 unet_cv_sys_nonblocking_posix=no
7766 fi
7767 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7768 fi
7769 fi
7770 echo "$as_me:$LINENO: result: $unet_cv_sys_nonblocking_posix" >&5
7771 echo "${ECHO_T}$unet_cv_sys_nonblocking_posix" >&6
7772 if test $unet_cv_sys_nonblocking_posix = yes; then
7773   cat >>confdefs.h <<\_ACEOF
7774 #define NBLOCK_POSIX 1
7775 _ACEOF
7776
7777 else
7778 echo "$as_me:$LINENO: checking for bsd non-blocking" >&5
7779 echo $ECHO_N "checking for bsd non-blocking... $ECHO_C" >&6
7780 if test "${unet_cv_sys_nonblocking_bsd+set}" = set; then
7781   echo $ECHO_N "(cached) $ECHO_C" >&6
7782 else
7783   if test "$cross_compiling" = yes; then
7784   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7785 See \`config.log' for more details." >&5
7786 echo "$as_me: error: cannot run test program while cross compiling
7787 See \`config.log' for more details." >&2;}
7788    { (exit 1); exit 1; }; }
7789 else
7790   cat >conftest.$ac_ext <<_ACEOF
7791 /* confdefs.h.  */
7792 _ACEOF
7793 cat confdefs.h >>conftest.$ac_ext
7794 cat >>conftest.$ac_ext <<_ACEOF
7795 /* end confdefs.h.  */
7796 #include <sys/types.h>
7797 #include <sys/socket.h>
7798 #include <fcntl.h>
7799 #include <sys/ioctl.h>
7800 #include <sys/file.h>
7801 #include <signal.h>
7802 $ac_cv_type_signal alarmed() { exit(1); }
7803 int main(void)
7804 {
7805   char b[12];
7806   struct sockaddr x;
7807   size_t l = sizeof(x);
7808   int f = socket(AF_INET, SOCK_DGRAM, 0);
7809   if (f >= 0 && !(fcntl(f, F_SETFL, O_NDELAY)))
7810   {
7811     signal(SIGALRM, alarmed);
7812     alarm(2);
7813     recvfrom(f, b, 12, 0, &x, &l);
7814     alarm(0);
7815     exit(0);
7816   }
7817   exit(1);
7818 }
7819 _ACEOF
7820 rm -f conftest$ac_exeext
7821 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7822   (eval $ac_link) 2>&5
7823   ac_status=$?
7824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7825   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7826   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7827   (eval $ac_try) 2>&5
7828   ac_status=$?
7829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7830   (exit $ac_status); }; }; then
7831   unet_cv_sys_nonblocking_bsd=yes
7832 else
7833   echo "$as_me: program exited with status $ac_status" >&5
7834 echo "$as_me: failed program was:" >&5
7835 sed 's/^/| /' conftest.$ac_ext >&5
7836
7837 ( exit $ac_status )
7838 unet_cv_sys_nonblocking_bsd=no
7839 fi
7840 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7841 fi
7842 fi
7843 echo "$as_me:$LINENO: result: $unet_cv_sys_nonblocking_bsd" >&5
7844 echo "${ECHO_T}$unet_cv_sys_nonblocking_bsd" >&6
7845 if test $unet_cv_sys_nonblocking_bsd = yes; then
7846   cat >>confdefs.h <<\_ACEOF
7847 #define NBLOCK_BSD 1
7848 _ACEOF
7849
7850 else
7851   cat >>confdefs.h <<\_ACEOF
7852 #define NBLOCK_SYSV 1
7853 _ACEOF
7854
7855 fi
7856 fi
7857 echo "$as_me:$LINENO: checking for posix signals" >&5
7858 echo $ECHO_N "checking for posix signals... $ECHO_C" >&6
7859 if test "${unet_cv_sys_signal_posix+set}" = set; then
7860   echo $ECHO_N "(cached) $ECHO_C" >&6
7861 else
7862   cat >conftest.$ac_ext <<_ACEOF
7863 /* confdefs.h.  */
7864 _ACEOF
7865 cat confdefs.h >>conftest.$ac_ext
7866 cat >>conftest.$ac_ext <<_ACEOF
7867 /* end confdefs.h.  */
7868 #include <signal.h>
7869 int
7870 main ()
7871 {
7872 sigaction(SIGTERM, (struct sigaction *)0L, (struct sigaction *)0L)
7873   ;
7874   return 0;
7875 }
7876 _ACEOF
7877 rm -f conftest.$ac_objext
7878 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7879   (eval $ac_compile) 2>conftest.er1
7880   ac_status=$?
7881   grep -v '^ *+' conftest.er1 >conftest.err
7882   rm -f conftest.er1
7883   cat conftest.err >&5
7884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7885   (exit $ac_status); } &&
7886          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7887   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7888   (eval $ac_try) 2>&5
7889   ac_status=$?
7890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7891   (exit $ac_status); }; } &&
7892          { ac_try='test -s conftest.$ac_objext'
7893   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7894   (eval $ac_try) 2>&5
7895   ac_status=$?
7896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7897   (exit $ac_status); }; }; then
7898   unet_cv_sys_signal_posix=yes
7899 else
7900   echo "$as_me: failed program was:" >&5
7901 sed 's/^/| /' conftest.$ac_ext >&5
7902
7903 unet_cv_sys_signal_posix=no
7904 fi
7905 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7906 fi
7907 echo "$as_me:$LINENO: result: $unet_cv_sys_signal_posix" >&5
7908 echo "${ECHO_T}$unet_cv_sys_signal_posix" >&6
7909 if test $unet_cv_sys_signal_posix = yes; then
7910   cat >>confdefs.h <<\_ACEOF
7911 #define POSIX_SIGNALS 1
7912 _ACEOF
7913
7914 else
7915 echo "$as_me:$LINENO: checking for bsd reliable signals" >&5
7916 echo $ECHO_N "checking for bsd reliable signals... $ECHO_C" >&6
7917 if test "${unet_cv_sys_signal_bsd+set}" = set; then
7918   echo $ECHO_N "(cached) $ECHO_C" >&6
7919 else
7920   if test "$cross_compiling" = yes; then
7921   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7922 See \`config.log' for more details." >&5
7923 echo "$as_me: error: cannot run test program while cross compiling
7924 See \`config.log' for more details." >&2;}
7925    { (exit 1); exit 1; }; }
7926 else
7927   cat >conftest.$ac_ext <<_ACEOF
7928 /* confdefs.h.  */
7929 _ACEOF
7930 cat confdefs.h >>conftest.$ac_ext
7931 cat >>conftest.$ac_ext <<_ACEOF
7932 /* end confdefs.h.  */
7933 #include <signal.h>
7934 int calls = 0;
7935 $ac_cv_type_signal handler()
7936 {
7937   if (calls) return;
7938   calls++;
7939   kill(getpid(), SIGTERM);
7940   sleep(1);
7941 }
7942 int main(void)
7943 {
7944   signal(SIGTERM, handler);
7945   kill(getpid(), SIGTERM);
7946   exit (0);
7947 }
7948 _ACEOF
7949 rm -f conftest$ac_exeext
7950 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7951   (eval $ac_link) 2>&5
7952   ac_status=$?
7953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7954   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7955   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7956   (eval $ac_try) 2>&5
7957   ac_status=$?
7958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7959   (exit $ac_status); }; }; then
7960   unet_cv_sys_signal_bsd=yes
7961 else
7962   echo "$as_me: program exited with status $ac_status" >&5
7963 echo "$as_me: failed program was:" >&5
7964 sed 's/^/| /' conftest.$ac_ext >&5
7965
7966 ( exit $ac_status )
7967 unet_cv_sys_signal_bsd=no
7968 fi
7969 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7970 fi
7971 fi
7972 echo "$as_me:$LINENO: result: $unet_cv_sys_signal_bsd" >&5
7973 echo "${ECHO_T}$unet_cv_sys_signal_bsd" >&6
7974 if test $unet_cv_sys_signal_bsd = yes; then
7975   cat >>confdefs.h <<\_ACEOF
7976 #define BSD_RELIABLE_SIGNALS 1
7977 _ACEOF
7978
7979 else
7980   cat >>confdefs.h <<\_ACEOF
7981 #define SYSV_UNRELIABLE_SIGNALS 1
7982 _ACEOF
7983
7984 fi
7985 fi
7986
7987 echo "$as_me:$LINENO: checking if the compiler understands -pipe" >&5
7988 echo $ECHO_N "checking if the compiler understands -pipe... $ECHO_C" >&6
7989 unet_cv_pipe_flags="$ac_cv_c_compiler_gnu"
7990 if test "$ac_cv_c_compiler_gnu" = no; then
7991   OLDCFLAGS="$CFLAGS"
7992   CFLAGS="$CFLAGS -pipe"
7993   cat >conftest.$ac_ext <<_ACEOF
7994 /* confdefs.h.  */
7995 _ACEOF
7996 cat confdefs.h >>conftest.$ac_ext
7997 cat >>conftest.$ac_ext <<_ACEOF
7998 /* end confdefs.h.  */
7999
8000 int
8001 main ()
8002 {
8003
8004   ;
8005   return 0;
8006 }
8007 _ACEOF
8008 rm -f conftest.$ac_objext
8009 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8010   (eval $ac_compile) 2>conftest.er1
8011   ac_status=$?
8012   grep -v '^ *+' conftest.er1 >conftest.err
8013   rm -f conftest.er1
8014   cat conftest.err >&5
8015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8016   (exit $ac_status); } &&
8017          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8018   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8019   (eval $ac_try) 2>&5
8020   ac_status=$?
8021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8022   (exit $ac_status); }; } &&
8023          { ac_try='test -s conftest.$ac_objext'
8024   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8025   (eval $ac_try) 2>&5
8026   ac_status=$?
8027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8028   (exit $ac_status); }; }; then
8029   unet_cv_pipe_flags=yes
8030 else
8031   echo "$as_me: failed program was:" >&5
8032 sed 's/^/| /' conftest.$ac_ext >&5
8033
8034 fi
8035 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8036   CFLAGS="$OLDCFLAGS"
8037 fi
8038 echo "$as_me:$LINENO: result: $unet_cv_pipe_flags" >&5
8039 echo "${ECHO_T}$unet_cv_pipe_flags" >&6
8040 if test "$unet_cv_pipe_flags" = yes ; then
8041   x=`echo $CFLAGS | grep 'pipe' 2>/dev/null`
8042   if test "$x" = "" ; then
8043     CFLAGS="$CFLAGS -pipe"
8044   fi
8045 fi
8046
8047
8048 echo "$as_me:$LINENO: checking for OS-dependent information" >&5
8049 echo $ECHO_N "checking for OS-dependent information... $ECHO_C" >&6
8050 case "$host" in
8051     *-linux*)
8052         echo "$as_me:$LINENO: result: Linux ($host) found." >&5
8053 echo "${ECHO_T}Linux ($host) found." >&6
8054         unet_poll_syscall=yes
8055         ;;
8056
8057     *-solaris*)
8058         echo "$as_me:$LINENO: result: Solaris ($host) found." >&5
8059 echo "${ECHO_T}Solaris ($host) found." >&6
8060         if test x"$ac_cv_header_poll_h" = xyes; then
8061             unet_poll_syscall=yes
8062         else
8063             unet_poll_syscall=no
8064         fi
8065         ;;
8066
8067     *-sunos*)
8068         echo "$as_me:$LINENO: result: Solaris ($host) found." >&5
8069 echo "${ECHO_T}Solaris ($host) found." >&6
8070         unet_poll_syscall=no
8071         ;;
8072
8073     *-openbsd*)
8074         echo "$as_me:$LINENO: result: OpenBSD ($host) found." >&5
8075 echo "${ECHO_T}OpenBSD ($host) found." >&6
8076         if test x"$ac_cv_header_poll_h" = xyes; then
8077             unet_poll_syscall=yes
8078         else
8079             unet_poll_syscall=no
8080         fi
8081         ;;
8082
8083     *-*bsd*)
8084         echo "$as_me:$LINENO: result: Generic BSD ($host) found." >&5
8085 echo "${ECHO_T}Generic BSD ($host) found." >&6
8086         if test x"$ac_cv_header_poll_h" = xyes; then
8087             unet_poll_syscall=yes
8088         else
8089             unet_poll_syscall=no
8090         fi
8091         ;;
8092
8093     *-darwin*)
8094         echo "$as_me:$LINENO: result: Darwin (Mac OS X) ($host) found." >&5
8095 echo "${ECHO_T}Darwin (Mac OS X) ($host) found." >&6
8096         unet_poll_syscall=no
8097         ;;
8098
8099     *)
8100         echo "$as_me:$LINENO: result: Unknown system type $host found." >&5
8101 echo "${ECHO_T}Unknown system type $host found." >&6
8102         { echo "$as_me:$LINENO: WARNING: Unknown OS type; using generic routines." >&5
8103 echo "$as_me: WARNING: Unknown OS type; using generic routines." >&2;}
8104         unet_poll_syscall=no
8105         ;;
8106 esac
8107
8108 echo "$as_me:$LINENO: checking whether to enable use of poll()" >&5
8109 echo $ECHO_N "checking whether to enable use of poll()... $ECHO_C" >&6
8110 # Check whether --enable-poll or --disable-poll was given.
8111 if test "${enable_poll+set}" = set; then
8112   enableval="$enable_poll"
8113   unet_cv_enable_poll=$enable_poll
8114 else
8115   if test "${unet_cv_enable_poll+set}" = set; then
8116   echo $ECHO_N "(cached) $ECHO_C" >&6
8117 else
8118   unet_cv_enable_poll=$unet_poll_syscall
8119 fi
8120
8121 fi;
8122
8123 # Force poll to be disabled if there is no poll.h
8124 if test x"$ac_cv_header_poll_h" != xyes; then
8125     unet_cv_enable_poll=no
8126 fi
8127
8128 echo "$as_me:$LINENO: result: $unet_cv_enable_poll" >&5
8129 echo "${ECHO_T}$unet_cv_enable_poll" >&6
8130
8131 if test x"$unet_cv_enable_poll" = xyes; then
8132
8133 cat >>confdefs.h <<\_ACEOF
8134 #define USE_POLL
8135 _ACEOF
8136
8137     ENGINE_C=engine_poll.c
8138 else
8139     ENGINE_C=engine_select.c
8140 fi
8141
8142
8143 echo "$as_me:$LINENO: checking whether to enable debug mode" >&5
8144 echo $ECHO_N "checking whether to enable debug mode... $ECHO_C" >&6
8145 # Check whether --enable-debug or --disable-debug was given.
8146 if test "${enable_debug+set}" = set; then
8147   enableval="$enable_debug"
8148   unet_cv_enable_debug=$enable_debug
8149 else
8150   if test "${unet_cv_enable_debug+set}" = set; then
8151   echo $ECHO_N "(cached) $ECHO_C" >&6
8152 else
8153   unet_cv_enable_debug=no
8154 fi
8155
8156 fi;
8157 echo "$as_me:$LINENO: result: $unet_cv_enable_debug" >&5
8158 echo "${ECHO_T}$unet_cv_enable_debug" >&6
8159
8160 if test x"$unet_cv_enable_debug" = xyes; then
8161
8162 cat >>confdefs.h <<\_ACEOF
8163 #define DEBUGMODE
8164 _ACEOF
8165
8166 fi
8167
8168 echo "$as_me:$LINENO: checking whether to enable leak detection" >&5
8169 echo $ECHO_N "checking whether to enable leak detection... $ECHO_C" >&6
8170
8171 # Check whether --with-leak-detect or --without-leak-detect was given.
8172 if test "${with_leak_detect+set}" = set; then
8173   withval="$with_leak_detect"
8174   unet_cv_with_leak_detect=$with_leak_detect
8175 else
8176   if test "${unet_cv_with_leak_detect+set}" = set; then
8177   echo $ECHO_N "(cached) $ECHO_C" >&6
8178 else
8179   unet_cv_with_leak_detect=no
8180 fi
8181
8182 fi;
8183 echo "$as_me:$LINENO: result: $unet_cv_enable_leak_detect" >&5
8184 echo "${ECHO_T}$unet_cv_enable_leak_detect" >&6
8185
8186 if test x"$unet_cv_with_leak_detect" != xno; then
8187     LIBS="-lgc $LIBS"
8188     CFLAGS="-DMDEBUG $CFLAGS"
8189     if test x"$unet_cv_with_leak_detect" != xyes; then
8190        LIBS="-L$unet_cv_with_leak_detect $LIBS"
8191     fi
8192 fi
8193
8194 echo "$as_me:$LINENO: checking whether to enable asserts" >&5
8195 echo $ECHO_N "checking whether to enable asserts... $ECHO_C" >&6
8196 # Check whether --enable-asserts or --disable-asserts was given.
8197 if test "${enable_asserts+set}" = set; then
8198   enableval="$enable_asserts"
8199   unet_cv_enable_asserts=$enable_asserts
8200 else
8201   if test "${unet_cv_enable_asserts+set}" = set; then
8202   echo $ECHO_N "(cached) $ECHO_C" >&6
8203 else
8204   unet_cv_enable_asserts=yes
8205 fi
8206
8207 fi;
8208 echo "$as_me:$LINENO: result: $unet_cv_enable_asserts" >&5
8209 echo "${ECHO_T}$unet_cv_enable_asserts" >&6
8210
8211 if test x"$unet_cv_enable_asserts" = xno; then
8212
8213 cat >>confdefs.h <<\_ACEOF
8214 #define NDEBUG
8215 _ACEOF
8216
8217 fi
8218
8219 echo "$as_me:$LINENO: checking whether to enable debugging symbols" >&5
8220 echo $ECHO_N "checking whether to enable debugging symbols... $ECHO_C" >&6
8221 # Check whether --enable-symbols or --disable-symbols was given.
8222 if test "${enable_symbols+set}" = set; then
8223   enableval="$enable_symbols"
8224   unet_cv_enable_symbols=$enable_symbols
8225 else
8226   if test "${unet_cv_enable_symbols+set}" = set; then
8227   echo $ECHO_N "(cached) $ECHO_C" >&6
8228 else
8229   unet_cv_enable_symbols=yes
8230 fi
8231
8232 fi;
8233 echo "$as_me:$LINENO: result: $unet_cv_enable_symbols" >&5
8234 echo "${ECHO_T}$unet_cv_enable_symbols" >&6
8235
8236 if test x"$unet_cv_enable_symbols" = xyes; then
8237     CFLAGS="-g $CFLAGS"
8238 fi
8239
8240 echo "$as_me:$LINENO: checking whether to enable profiling support (gprof)" >&5
8241 echo $ECHO_N "checking whether to enable profiling support (gprof)... $ECHO_C" >&6
8242 # Check whether --enable-profile or --disable-profile was given.
8243 if test "${enable_profile+set}" = set; then
8244   enableval="$enable_profile"
8245   unet_cv_enable_profile=$enable_profile
8246 else
8247   if test "${unet_cv_enable_profile+set}" = set; then
8248   echo $ECHO_N "(cached) $ECHO_C" >&6
8249 else
8250   unet_cv_enable_profile=no
8251 fi
8252
8253 fi;
8254 echo "$as_me:$LINENO: result: $unet_cv_enable_profile" >&5
8255 echo "${ECHO_T}$unet_cv_enable_profile" >&6
8256
8257 if test x"$unet_cv_enable_profile" = xyes; then
8258     CFLAGS="-pg $CFLAGS"
8259 fi
8260
8261 echo "$as_me:$LINENO: checking whether to enable pedantic compiler warnings" >&5
8262 echo $ECHO_N "checking whether to enable pedantic compiler warnings... $ECHO_C" >&6
8263 # Check whether --enable-pedantic or --disable-pedantic was given.
8264 if test "${enable_pedantic+set}" = set; then
8265   enableval="$enable_pedantic"
8266   unet_cv_enable_pedantic=$enable_pedantic
8267 else
8268   if test "${unet_cv_enable_pedantic+set}" = set; then
8269   echo $ECHO_N "(cached) $ECHO_C" >&6
8270 else
8271   unet_cv_enable_pedantic=no
8272 fi
8273
8274 fi;
8275 echo "$as_me:$LINENO: result: $unet_cv_enable_pedantic" >&5
8276 echo "${ECHO_T}$unet_cv_enable_pedantic" >&6
8277
8278 if test x"$unet_cv_enable_pedantic" = xyes; then
8279     CFLAGS="-pedantic $CFLAGS"
8280 fi
8281
8282 echo "$as_me:$LINENO: checking whether to enable compiler warnings" >&5
8283 echo $ECHO_N "checking whether to enable compiler warnings... $ECHO_C" >&6
8284 # Check whether --enable-warnings or --disable-warnings was given.
8285 if test "${enable_warnings+set}" = set; then
8286   enableval="$enable_warnings"
8287   unet_cv_enable_warnings=$enable_warnings
8288 else
8289   if test "${unet_cv_enable_warnings+set}" = set; then
8290   echo $ECHO_N "(cached) $ECHO_C" >&6
8291 else
8292   unet_cv_enable_warnings=no
8293 fi
8294
8295 fi;
8296 echo "$as_me:$LINENO: result: $unet_cv_enable_warnings" >&5
8297 echo "${ECHO_T}$unet_cv_enable_warnings" >&6
8298
8299 if test x"$unet_cv_enable_warnings" = xyes; then
8300     CFLAGS="-Wall $CFLAGS"
8301 fi
8302
8303 echo "$as_me:$LINENO: checking whether to enable inlining for a few critical functions" >&5
8304 echo $ECHO_N "checking whether to enable inlining for a few critical functions... $ECHO_C" >&6
8305 # Check whether --enable-inlines or --disable-inlines was given.
8306 if test "${enable_inlines+set}" = set; then
8307   enableval="$enable_inlines"
8308   unet_cv_enable_inlines=$enable_inlines
8309 else
8310   if test "${unet_cv_enable_inlines+set}" = set; then
8311   echo $ECHO_N "(cached) $ECHO_C" >&6
8312 else
8313   unet_cv_enable_inlines=yes
8314 fi
8315
8316 fi;
8317 echo "$as_me:$LINENO: result: $unet_cv_enable_inlines" >&5
8318 echo "${ECHO_T}$unet_cv_enable_inlines" >&6
8319
8320 if test x"$unet_cv_enable_inlines" = xyes; then
8321
8322 cat >>confdefs.h <<\_ACEOF
8323 #define FORCEINLINE
8324 _ACEOF
8325
8326 fi
8327
8328 echo "$as_me:$LINENO: checking whether to enable the /dev/poll event engine" >&5
8329 echo $ECHO_N "checking whether to enable the /dev/poll event engine... $ECHO_C" >&6
8330 # Check whether --enable-devpoll or --disable-devpoll was given.
8331 if test "${enable_devpoll+set}" = set; then
8332   enableval="$enable_devpoll"
8333   unet_cv_enable_devpoll=$enable_devpoll
8334 else
8335   if test "${unet_cv_enable_devpoll+set}" = set; then
8336   echo $ECHO_N "(cached) $ECHO_C" >&6
8337 else
8338   unet_cv_enable_devpoll=yes
8339 fi
8340
8341 fi;
8342
8343 if test x"$ac_cv_header_sys_devpoll_h" = xno; then
8344     unet_cv_enable_devpoll=no
8345 fi
8346
8347 echo "$as_me:$LINENO: result: $unet_cv_enable_devpoll" >&5
8348 echo "${ECHO_T}$unet_cv_enable_devpoll" >&6
8349
8350 if test x"$unet_cv_enable_devpoll" != xno; then
8351
8352 cat >>confdefs.h <<\_ACEOF
8353 #define USE_DEVPOLL
8354 _ACEOF
8355
8356     ENGINE_C="engine_devpoll.c $ENGINE_C"
8357 fi
8358
8359 echo "$as_me:$LINENO: checking whether to enable the kqueue event engine" >&5
8360 echo $ECHO_N "checking whether to enable the kqueue event engine... $ECHO_C" >&6
8361 # Check whether --enable-kqueue or --disable-kqueue was given.
8362 if test "${enable_kqueue+set}" = set; then
8363   enableval="$enable_kqueue"
8364   unet_cv_enable_kqueue=$enable_kqueue
8365 else
8366   if test "${unet_cv_enable_kqueue+set}" = set; then
8367   echo $ECHO_N "(cached) $ECHO_C" >&6
8368 else
8369   unet_cv_enable_kqueue=yes
8370 fi
8371
8372 fi;
8373
8374 if test x"$ac_cv_header_sys_event_h" = xno -o x"$ac_cv_func_kqueue" = xno; then
8375     unet_cv_enable_kqueue=no
8376 fi
8377
8378 echo "$as_me:$LINENO: result: $unet_cv_enable_kqueue" >&5
8379 echo "${ECHO_T}$unet_cv_enable_kqueue" >&6
8380
8381 if test x"$unet_cv_enable_kqueue" != xno; then
8382
8383 cat >>confdefs.h <<\_ACEOF
8384 #define USE_KQUEUE
8385 _ACEOF
8386
8387     ENGINE_C="engine_kqueue.c $ENGINE_C"
8388 fi
8389
8390 echo "$as_me:$LINENO: checking whether to enable the epoll event engine" >&5
8391 echo $ECHO_N "checking whether to enable the epoll event engine... $ECHO_C" >&6
8392 # Check whether --enable-epoll or --disable-epoll was given.
8393 if test "${enable_epoll+set}" = set; then
8394   enableval="$enable_epoll"
8395   unet_cv_enable_epoll=$enable_epoll
8396 else
8397   if test "${unet_cv_enable_epoll+set}" = set; then
8398   echo $ECHO_N "(cached) $ECHO_C" >&6
8399 else
8400   unet_cv_enable_epoll=yes
8401 fi
8402
8403 fi;
8404
8405 if test x"$ac_cv_header_sys_epoll_h" = xno -o x"$ac_cv_func_epoll" = xno; then
8406     unet_cv_enable_epoll=no
8407 fi
8408
8409 echo "$as_me:$LINENO: result: $unet_cv_enable_epoll" >&5
8410 echo "${ECHO_T}$unet_cv_enable_epoll" >&6
8411
8412 if test x"$unet_cv_enable_epoll" != xno; then
8413     echo "$as_me:$LINENO: checking whether epoll functions are properly defined" >&5
8414 echo $ECHO_N "checking whether epoll functions are properly defined... $ECHO_C" >&6
8415     cat >conftest.$ac_ext <<_ACEOF
8416 /* confdefs.h.  */
8417 _ACEOF
8418 cat confdefs.h >>conftest.$ac_ext
8419 cat >>conftest.$ac_ext <<_ACEOF
8420 /* end confdefs.h.  */
8421 #include <sys/epoll.h>
8422 int
8423 main ()
8424 {
8425 epoll_create(10);
8426   ;
8427   return 0;
8428 }
8429 _ACEOF
8430 rm -f conftest.$ac_objext conftest$ac_exeext
8431 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8432   (eval $ac_link) 2>conftest.er1
8433   ac_status=$?
8434   grep -v '^ *+' conftest.er1 >conftest.err
8435   rm -f conftest.er1
8436   cat conftest.err >&5
8437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8438   (exit $ac_status); } &&
8439          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8440   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8441   (eval $ac_try) 2>&5
8442   ac_status=$?
8443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8444   (exit $ac_status); }; } &&
8445          { ac_try='test -s conftest$ac_exeext'
8446   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8447   (eval $ac_try) 2>&5
8448   ac_status=$?
8449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8450   (exit $ac_status); }; }; then
8451   echo "$as_me:$LINENO: result: yes" >&5
8452 echo "${ECHO_T}yes" >&6
8453 else
8454   echo "$as_me: failed program was:" >&5
8455 sed 's/^/| /' conftest.$ac_ext >&5
8456
8457 echo "$as_me:$LINENO: result: no" >&5
8458 echo "${ECHO_T}no" >&6
8459
8460 cat >>confdefs.h <<\_ACEOF
8461 #define EPOLL_NEED_BODY
8462 _ACEOF
8463
8464 fi
8465 rm -f conftest.err conftest.$ac_objext \
8466       conftest$ac_exeext conftest.$ac_ext
8467
8468 cat >>confdefs.h <<\_ACEOF
8469 #define USE_EPOLL
8470 _ACEOF
8471
8472     ENGINE_C="engine_epoll.c $ENGINE_C"
8473 fi
8474
8475 echo "$as_me:$LINENO: checking for va_copy" >&5
8476 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
8477 if test "${unet_cv_c_va_copy+set}" = set; then
8478   echo $ECHO_N "(cached) $ECHO_C" >&6
8479 else
8480   cat >conftest.$ac_ext <<_ACEOF
8481 /* confdefs.h.  */
8482 _ACEOF
8483 cat confdefs.h >>conftest.$ac_ext
8484 cat >>conftest.$ac_ext <<_ACEOF
8485 /* end confdefs.h.  */
8486 #include <stdarg.h>
8487 int
8488 main ()
8489 {
8490 va_list ap1, ap2; va_copy(ap1, ap2);
8491   ;
8492   return 0;
8493 }
8494 _ACEOF
8495 rm -f conftest.$ac_objext conftest$ac_exeext
8496 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8497   (eval $ac_link) 2>conftest.er1
8498   ac_status=$?
8499   grep -v '^ *+' conftest.er1 >conftest.err
8500   rm -f conftest.er1
8501   cat conftest.err >&5
8502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8503   (exit $ac_status); } &&
8504          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8505   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8506   (eval $ac_try) 2>&5
8507   ac_status=$?
8508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8509   (exit $ac_status); }; } &&
8510          { ac_try='test -s conftest$ac_exeext'
8511   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8512   (eval $ac_try) 2>&5
8513   ac_status=$?
8514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8515   (exit $ac_status); }; }; then
8516   unet_cv_c_va_copy="yes"
8517 else
8518   echo "$as_me: failed program was:" >&5
8519 sed 's/^/| /' conftest.$ac_ext >&5
8520
8521 unet_cv_c_va_copy="no"
8522
8523 fi
8524 rm -f conftest.err conftest.$ac_objext \
8525       conftest$ac_exeext conftest.$ac_ext
8526 fi
8527 echo "$as_me:$LINENO: result: $unet_cv_c_va_copy" >&5
8528 echo "${ECHO_T}$unet_cv_c_va_copy" >&6
8529 if test "$unet_cv_c_va_copy" = "yes" ; then
8530
8531 cat >>confdefs.h <<\_ACEOF
8532 #define HAVE_VA_COPY 1
8533 _ACEOF
8534
8535 fi
8536
8537 echo "$as_me:$LINENO: checking for __va_copy" >&5
8538 echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6
8539 if test "${unet_cv_c___va_copy+set}" = set; then
8540   echo $ECHO_N "(cached) $ECHO_C" >&6
8541 else
8542   cat >conftest.$ac_ext <<_ACEOF
8543 /* confdefs.h.  */
8544 _ACEOF
8545 cat confdefs.h >>conftest.$ac_ext
8546 cat >>conftest.$ac_ext <<_ACEOF
8547 /* end confdefs.h.  */
8548 #include <stdarg.h>
8549 int
8550 main ()
8551 {
8552 va_list ap1, ap2; __va_copy(ap1, ap2);
8553   ;
8554   return 0;
8555 }
8556 _ACEOF
8557 rm -f conftest.$ac_objext conftest$ac_exeext
8558 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8559   (eval $ac_link) 2>conftest.er1
8560   ac_status=$?
8561   grep -v '^ *+' conftest.er1 >conftest.err
8562   rm -f conftest.er1
8563   cat conftest.err >&5
8564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8565   (exit $ac_status); } &&
8566          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8567   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8568   (eval $ac_try) 2>&5
8569   ac_status=$?
8570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8571   (exit $ac_status); }; } &&
8572          { ac_try='test -s conftest$ac_exeext'
8573   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8574   (eval $ac_try) 2>&5
8575   ac_status=$?
8576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8577   (exit $ac_status); }; }; then
8578   unet_cv_c___va_copy="yes"
8579 else
8580   echo "$as_me: failed program was:" >&5
8581 sed 's/^/| /' conftest.$ac_ext >&5
8582
8583 unet_cv_c___va_copy="no"
8584
8585 fi
8586 rm -f conftest.err conftest.$ac_objext \
8587       conftest$ac_exeext conftest.$ac_ext
8588 fi
8589 echo "$as_me:$LINENO: result: $unet_cv_c___va_copy" >&5
8590 echo "${ECHO_T}$unet_cv_c___va_copy" >&6
8591 if test "$unet_cv_c___va_copy" = "yes" ; then
8592
8593 cat >>confdefs.h <<\_ACEOF
8594 #define HAVE___VA_COPY 1
8595 _ACEOF
8596
8597 fi
8598
8599 echo "$as_me:$LINENO: checking what name to give the symlink" >&5
8600 echo $ECHO_N "checking what name to give the symlink... $ECHO_C" >&6
8601
8602 # Check whether --with-symlink or --without-symlink was given.
8603 if test "${with_symlink+set}" = set; then
8604   withval="$with_symlink"
8605   unet_cv_with_symlink=$with_symlink
8606 else
8607   if test "${unet_cv_with_symlink+set}" = set; then
8608   echo $ECHO_N "(cached) $ECHO_C" >&6
8609 else
8610   unet_cv_with_symlink="ircd"
8611 fi
8612
8613 fi;
8614
8615 if test x"$unet_cv_with_symlink" = xyes; then
8616     unet_cv_with_symlink="ircd"
8617 fi
8618
8619 echo "$as_me:$LINENO: result: $unet_cv_with_symlink" >&5
8620 echo "${ECHO_T}$unet_cv_with_symlink" >&6
8621
8622 if test x"$unet_cv_with_symlink" = xno; then
8623     INSTALL_RULE=install-no-symlink
8624     SYMLINK=
8625 else
8626     INSTALL_RULE=install-with-symlink
8627     SYMLINK=$unet_cv_with_symlink
8628 fi
8629
8630
8631
8632 echo "$as_me:$LINENO: checking what permissions to set on the installed binary" >&5
8633 echo $ECHO_N "checking what permissions to set on the installed binary... $ECHO_C" >&6
8634
8635 # Check whether --with-mode or --without-mode was given.
8636 if test "${with_mode+set}" = set; then
8637   withval="$with_mode"
8638   unet_cv_with_mode=$with_mode
8639 else
8640   if test "${unet_cv_with_mode+set}" = set; then
8641   echo $ECHO_N "(cached) $ECHO_C" >&6
8642 else
8643   unet_cv_with_mode=711
8644 fi
8645
8646 fi;
8647
8648 if test x"$unet_cv_with_mode" = xyes -o x"$unet_cv_with_mode" = xno; then
8649     unet_cv_with_mode=711
8650 fi
8651
8652 echo "$as_me:$LINENO: result: $unet_cv_with_mode" >&5
8653 echo "${ECHO_T}$unet_cv_with_mode" >&6
8654
8655 IRCDMODE=$unet_cv_with_mode
8656
8657
8658 unet_uid=`id | sed -e 's/.*uid=[0-9]*(//' -e 's/).*//' 2> /dev/null`
8659 echo "$as_me:$LINENO: checking which user should own the installed binary" >&5
8660 echo $ECHO_N "checking which user should own the installed binary... $ECHO_C" >&6
8661
8662 # Check whether --with-owner or --without-owner was given.
8663 if test "${with_owner+set}" = set; then
8664   withval="$with_owner"
8665   unet_cv_with_owner=$with_owner
8666 else
8667   if test "${unet_cv_with_owner+set}" = set; then
8668   echo $ECHO_N "(cached) $ECHO_C" >&6
8669 else
8670   unet_cv_with_owner=$unet_uid
8671 fi
8672
8673 fi;
8674
8675 if test x"$unet_cv_with_owner" = xyes -o x"$unet_cv_with_owner" = xno; then
8676     unet_cv_with_owner=$unet_uid
8677 fi
8678
8679 echo "$as_me:$LINENO: result: $unet_cv_with_owner" >&5
8680 echo "${ECHO_T}$unet_cv_with_owner" >&6
8681
8682 IRCDOWN=$unet_cv_with_owner
8683
8684
8685 unet_gid=`id | sed -e 's/.*gid=[0-9]*(//' -e 's/).*//' 2> /dev/null`
8686 echo "$as_me:$LINENO: checking which group should own the installed binary" >&5
8687 echo $ECHO_N "checking which group should own the installed binary... $ECHO_C" >&6
8688
8689 # Check whether --with-group or --without-group was given.
8690 if test "${with_group+set}" = set; then
8691   withval="$with_group"
8692   unet_cv_with_group=$with_group
8693 else
8694   if test "${unet_cv_with_group+set}" = set; then
8695   echo $ECHO_N "(cached) $ECHO_C" >&6
8696 else
8697   unet_cv_with_group=$unet_gid
8698 fi
8699
8700 fi;
8701
8702 if test x"$unet_cv_with_group" = xyes -o x"$unet_cv_with_group" = xno; then
8703     unet_cv_with_group=$unet_gid
8704 fi
8705
8706 echo "$as_me:$LINENO: result: $unet_cv_with_group" >&5
8707 echo "${ECHO_T}$unet_cv_with_group" >&6
8708
8709 IRCDGRP=$unet_cv_with_group
8710
8711
8712 unet_domain=
8713 if test -f /etc/resolv.conf; then
8714     unet_domain=`awk '/^domain/ { print $2; exit }' /etc/resolv.conf`
8715     if test x"$unet_domain" = x; then
8716         unet_domain=`awk '/^search/ { print $2; exit }' /etc/resolv.conf`
8717     fi
8718 fi
8719 echo "$as_me:$LINENO: checking for site domain name" >&5
8720 echo $ECHO_N "checking for site domain name... $ECHO_C" >&6
8721
8722 # Check whether --with-domain or --without-domain was given.
8723 if test "${with_domain+set}" = set; then
8724   withval="$with_domain"
8725   unet_cv_with_domain=$with_domain
8726 else
8727   if test "${unet_cv_with_domain+set}" = set; then
8728   echo $ECHO_N "(cached) $ECHO_C" >&6
8729 else
8730   unet_cv_with_domain=$unet_domain
8731 fi
8732
8733 fi;
8734
8735 if test x"$unet_cv_with_domain" = xyes -o x"$unet_cv_with_domain" = xno; then
8736     unet_cv_with_domain=$unet_domain
8737 fi
8738 if test x"$unet_cv_with_domain" = xno; then
8739     { { echo "$as_me:$LINENO: error: Unable to determine server DNS domain; use --with-domain to set it" >&5
8740 echo "$as_me: error: Unable to determine server DNS domain; use --with-domain to set it" >&2;}
8741    { (exit 1); exit 1; }; }
8742 fi
8743
8744 echo "$as_me:$LINENO: result: $unet_cv_with_domain" >&5
8745 echo "${ECHO_T}$unet_cv_with_domain" >&6
8746
8747
8748 cat >>confdefs.h <<_ACEOF
8749 #define DOMAINNAME "*$unet_cv_with_domain"
8750 _ACEOF
8751
8752
8753 echo "$as_me:$LINENO: checking if chroot operation is desired" >&5
8754 echo $ECHO_N "checking if chroot operation is desired... $ECHO_C" >&6
8755
8756 # Check whether --with-chroot or --without-chroot was given.
8757 if test "${with_chroot+set}" = set; then
8758   withval="$with_chroot"
8759   unet_cv_with_chroot=$with_chroot
8760 else
8761   if test "${unet_cv_with_chroot+set}" = set; then
8762   echo $ECHO_N "(cached) $ECHO_C" >&6
8763 else
8764   unet_cv_with_chroot=no
8765 fi
8766
8767 fi;
8768
8769 if test x"$unet_cv_with_chroot" = xyes; then
8770     { { echo "$as_me:$LINENO: error: --with-chroot given with no directory.  See doc/readme.chroot." >&5
8771 echo "$as_me: error: --with-chroot given with no directory.  See doc/readme.chroot." >&2;}
8772    { (exit 1); exit 1; }; }
8773 fi
8774
8775 # Ensure there are no trailing /'s to mess us up
8776 unet_cv_with_chroot=`echo "$unet_cv_with_chroot" | sed 's%/*$%%'`
8777
8778 echo "$as_me:$LINENO: result: $unet_cv_with_chroot" >&5
8779 echo "${ECHO_T}$unet_cv_with_chroot" >&6
8780
8781 # Deal with the annoying value "NONE" here
8782 unet_save_prefix=$prefix
8783 if test x"$prefix" = xNONE; then
8784     prefix=$ac_default_prefix
8785 else
8786     prefix=$prefix
8787 fi
8788
8789 unet_save_exec_prefix=$exec_prefix
8790 if test x"$exec_prefix" = xNONE; then
8791     exec_prefix=$prefix
8792 else
8793     exec_prefix=$exec_prefix
8794 fi
8795
8796 # Obtain the actual interesting directories
8797 unet_bindir=`eval echo "$bindir"`
8798 unet_libdir=`eval echo "$libdir"`
8799
8800 # Restore the original settings of $prefix and $exec_prefix
8801 prefix=$unet_save_prefix
8802 exec_prefix=$unet_save_exec_prefix
8803
8804 echo "$as_me:$LINENO: checking where the binary will be for /restart" >&5
8805 echo $ECHO_N "checking where the binary will be for /restart... $ECHO_C" >&6
8806 if test x"$unet_cv_with_symlink" = xno; then
8807     unet_spath="$unet_bindir/ircd"
8808 else
8809     unet_spath="$unet_bindir/$unet_cv_with_symlink"
8810 fi
8811 echo "$as_me:$LINENO: result: $unet_spath" >&5
8812 echo "${ECHO_T}$unet_spath" >&6
8813
8814 if test x"$unet_cv_with_chroot" != xno; then
8815     if echo "$unet_spath" | grep "^$unet_cv_with_chroot" > /dev/null 2>&1; then
8816         unet_spath=`echo "$unet_spath" | sed "s%^$unet_cv_with_chroot%%"`
8817     else
8818         { echo "$as_me:$LINENO: WARNING: Binary $unet_spath not relative to root directory $unet_cv_with_chroot; restarts will probably fail" >&5
8819 echo "$as_me: WARNING: Binary $unet_spath not relative to root directory $unet_cv_with_chroot; restarts will probably fail" >&2;}
8820     fi
8821 fi
8822
8823
8824 cat >>confdefs.h <<_ACEOF
8825 #define SPATH "$unet_spath"
8826 _ACEOF
8827
8828
8829 echo "$as_me:$LINENO: checking what the data directory should be" >&5
8830 echo $ECHO_N "checking what the data directory should be... $ECHO_C" >&6
8831
8832 # Check whether --with-dpath or --without-dpath was given.
8833 if test "${with_dpath+set}" = set; then
8834   withval="$with_dpath"
8835   unet_cv_with_dpath=$with_dpath
8836 else
8837   if test "${unet_cv_with_dpath+set}" = set; then
8838   echo $ECHO_N "(cached) $ECHO_C" >&6
8839 else
8840   unet_cv_with_dpath=$unet_libdir
8841 fi
8842
8843 fi;
8844
8845 if test x"$unet_cv_with_dpath" = xyes -o x"$unet_cv_with_dpath" = xno; then
8846     unet_cv_with_dpath=$unet_libdir
8847 fi
8848
8849 # Ensure there are no trailing /'s to mess us up
8850 unet_cv_with_dpath=`echo "$unet_cv_with_dpath" | sed 's%/*$%%'`
8851
8852 echo "$as_me:$LINENO: result: $unet_cv_with_dpath" >&5
8853 echo "${ECHO_T}$unet_cv_with_dpath" >&6
8854
8855 if test x"$unet_cv_with_chroot" != xno; then
8856     if echo "$unet_cv_with_dpath" | grep "^$unet_cv_with_chroot" > /dev/null 2>&1; then
8857         unet_dpath=`echo "$unet_cv_with_dpath" | sed "s%^$unet_cv_with_chroot%%"`
8858     else
8859         { { echo "$as_me:$LINENO: error: Data directory $unet_cv_with_dpath not relative to root directory $unet_cv_with_chroot" >&5
8860 echo "$as_me: error: Data directory $unet_cv_with_dpath not relative to root directory $unet_cv_with_chroot" >&2;}
8861    { (exit 1); exit 1; }; }
8862     fi
8863 else
8864     unet_dpath=$unet_cv_with_dpath
8865 fi
8866
8867
8868 cat >>confdefs.h <<_ACEOF
8869 #define DPATH "$unet_dpath"
8870 _ACEOF
8871
8872
8873 DPATH=$unet_cv_with_dpath
8874
8875
8876 echo "$as_me:$LINENO: checking where the default configuration file resides" >&5
8877 echo $ECHO_N "checking where the default configuration file resides... $ECHO_C" >&6
8878
8879 # Check whether --with-cpath or --without-cpath was given.
8880 if test "${with_cpath+set}" = set; then
8881   withval="$with_cpath"
8882   unet_cv_with_cpath=$with_cpath
8883 else
8884   if test "${unet_cv_with_cpath+set}" = set; then
8885   echo $ECHO_N "(cached) $ECHO_C" >&6
8886 else
8887   unet_cv_with_cpath="ircd.conf"
8888 fi
8889
8890 fi;
8891
8892 if test x"$unet_cv_with_cpath" = xyes -o x"$unet_cv_with_cpath" = xno; then
8893     unet_cv_with_cpath="ircd.conf"
8894 fi
8895
8896 echo "$as_me:$LINENO: result: $unet_cv_with_cpath" >&5
8897 echo "${ECHO_T}$unet_cv_with_cpath" >&6
8898
8899 if echo "$unet_cv_with_cpath" | grep '^/' > /dev/null 2>&1; then
8900     # Absolute path; check against chroot stuff
8901     if test x"$unet_cv_with_chroot" != xno; then
8902         if echo "$unet_cv_with_cpath" | grep "^$unet_cv_with_chroot" > /dev/null 2>&1; then
8903             unet_cpath=`echo "$unet_cv_with_cpath" | sed "s%^$unet_cv_with_chroot%%"`
8904         else
8905             { { echo "$as_me:$LINENO: error: Configuration file $unet_cv_with_cpath not relative to root directory $unet_cv_with_chroot" >&5
8906 echo "$as_me: error: Configuration file $unet_cv_with_cpath not relative to root directory $unet_cv_with_chroot" >&2;}
8907    { (exit 1); exit 1; }; }
8908         fi
8909     else
8910         unet_cpath=$unet_cv_with_cpath
8911     fi
8912 else
8913     unet_cpath=$unet_cv_with_cpath
8914 fi
8915
8916
8917 cat >>confdefs.h <<_ACEOF
8918 #define CPATH "$unet_cpath"
8919 _ACEOF
8920
8921
8922 echo "$as_me:$LINENO: checking where to put the debugging log if debugging enabled" >&5
8923 echo $ECHO_N "checking where to put the debugging log if debugging enabled... $ECHO_C" >&6
8924
8925 # Check whether --with-lpath or --without-lpath was given.
8926 if test "${with_lpath+set}" = set; then
8927   withval="$with_lpath"
8928   unet_cv_with_lpath=$with_lpath
8929 else
8930   if test "${unet_cv_with_lpath+set}" = set; then
8931   echo $ECHO_N "(cached) $ECHO_C" >&6
8932 else
8933   unet_cv_with_lpath="ircd.log"
8934 fi
8935
8936 fi;
8937
8938 if test x"$unet_cv_with_lpath" = xyes -o x"$unet_cv_with_lpath" = xno; then
8939     unet_cv_with_lpath="ircd.log"
8940 fi
8941
8942 echo "$as_me:$LINENO: result: $unet_cv_with_lpath" >&5
8943 echo "${ECHO_T}$unet_cv_with_lpath" >&6
8944
8945 if echo "$unet_cv_with_lpath" | grep '^/' > /dev/null 2>&1; then
8946     # Absolute path; check against chroot stuff
8947     if test x"$unet_cv_with_chroot" != xno; then
8948         if echo "$unet_cv_with_lpath" | grep "^$unet_cv_with_chroot" > /dev/null 2>&1; then
8949             unet_lpath=`echo "$unet_cv_with_lpath" | sed "s%^$unet_cv_with_chroot%%"`
8950         else
8951             { 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
8952 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;}
8953             unet_cv_with_lpath="ircd.log"
8954             unet_lpath="ircd.log"
8955         fi
8956     else
8957         unet_lpath=$unet_cv_with_lpath
8958     fi
8959 else
8960     unet_lpath=$unet_cv_with_lpath
8961 fi
8962
8963
8964 cat >>confdefs.h <<_ACEOF
8965 #define LPATH "$unet_lpath"
8966 _ACEOF
8967
8968
8969 unet_maxcon=`ulimit -Hn`
8970 if test x"$unet_maxcon" = xunlimited; then
8971     unet_maxcon=`ulimit -Sn`
8972 fi
8973 unet_maxcon=`expr $unet_maxcon - 4`
8974 echo "$as_me:$LINENO: checking max connections" >&5
8975 echo $ECHO_N "checking max connections... $ECHO_C" >&6
8976
8977 # Check whether --with-maxcon or --without-maxcon was given.
8978 if test "${with_maxcon+set}" = set; then
8979   withval="$with_maxcon"
8980   unet_cv_with_maxcon=$with_maxcon
8981 else
8982   if test "${unet_cv_with_maxcon+set}" = set; then
8983   echo $ECHO_N "(cached) $ECHO_C" >&6
8984 else
8985   unet_cv_with_maxcon=$unet_maxcon
8986 fi
8987
8988 fi;
8989
8990 if test x"$unet_cv_with_maxcon" = xyes -o x"$unet_cv_with_maxcon" = xno; then
8991     unet_cv_with_maxcon=$unet_maxcon
8992 fi
8993
8994 echo "$as_me:$LINENO: result: $unet_cv_with_maxcon" >&5
8995 echo "${ECHO_T}$unet_cv_with_maxcon" >&6
8996
8997
8998 cat >>confdefs.h <<_ACEOF
8999 #define MAXCONNECTIONS $unet_cv_with_maxcon
9000 _ACEOF
9001
9002
9003                               ac_config_files="$ac_config_files Makefile ircd/Makefile doc/Makefile"
9004           ac_config_commands="$ac_config_commands default"
9005 cat >confcache <<\_ACEOF
9006 # This file is a shell script that caches the results of configure
9007 # tests run on this system so they can be shared between configure
9008 # scripts and configure runs, see configure's option --config-cache.
9009 # It is not useful on other systems.  If it contains results you don't
9010 # want to keep, you may remove or edit it.
9011 #
9012 # config.status only pays attention to the cache file if you give it
9013 # the --recheck option to rerun configure.
9014 #
9015 # `ac_cv_env_foo' variables (set or unset) will be overridden when
9016 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9017 # following values.
9018
9019 _ACEOF
9020
9021 # The following way of writing the cache mishandles newlines in values,
9022 # but we know of no workaround that is simple, portable, and efficient.
9023 # So, don't put newlines in cache variables' values.
9024 # Ultrix sh set writes to stderr and can't be redirected directly,
9025 # and sets the high bit in the cache file unless we assign to the vars.
9026 {
9027   (set) 2>&1 |
9028     case `(ac_space=' '; set | grep ac_space) 2>&1` in
9029     *ac_space=\ *)
9030       # `set' does not quote correctly, so add quotes (double-quote
9031       # substitution turns \\\\ into \\, and sed turns \\ into \).
9032       sed -n \
9033         "s/'/'\\\\''/g;
9034           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9035       ;;
9036     *)
9037       # `set' quotes correctly as required by POSIX, so do not add quotes.
9038       sed -n \
9039         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
9040       ;;
9041     esac;
9042 } |
9043   sed '
9044      t clear
9045      : clear
9046      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9047      t end
9048      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9049      : end' >>confcache
9050 if diff $cache_file confcache >/dev/null 2>&1; then :; else
9051   if test -w $cache_file; then
9052     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
9053     cat confcache >$cache_file
9054   else
9055     echo "not updating unwritable cache $cache_file"
9056   fi
9057 fi
9058 rm -f confcache
9059
9060 test "x$prefix" = xNONE && prefix=$ac_default_prefix
9061 # Let make expand exec_prefix.
9062 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9063
9064 # VPATH may cause trouble with some makes, so we remove $(srcdir),
9065 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
9066 # trailing colons and then remove the whole line if VPATH becomes empty
9067 # (actually we leave an empty line to preserve line numbers).
9068 if test "x$srcdir" = x.; then
9069   ac_vpsub='/^[  ]*VPATH[        ]*=/{
9070 s/:*\$(srcdir):*/:/;
9071 s/:*\${srcdir}:*/:/;
9072 s/:*@srcdir@:*/:/;
9073 s/^\([^=]*=[     ]*\):*/\1/;
9074 s/:*$//;
9075 s/^[^=]*=[       ]*$//;
9076 }'
9077 fi
9078
9079 DEFS=-DHAVE_CONFIG_H
9080
9081 ac_libobjs=
9082 ac_ltlibobjs=
9083 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9084   # 1. Remove the extension, and $U if already installed.
9085   ac_i=`echo "$ac_i" |
9086          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
9087   # 2. Add them.
9088   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
9089   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
9090 done
9091 LIBOBJS=$ac_libobjs
9092
9093 LTLIBOBJS=$ac_ltlibobjs
9094
9095
9096
9097 : ${CONFIG_STATUS=./config.status}
9098 ac_clean_files_save=$ac_clean_files
9099 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9100 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
9101 echo "$as_me: creating $CONFIG_STATUS" >&6;}
9102 cat >$CONFIG_STATUS <<_ACEOF
9103 #! $SHELL
9104 # Generated by $as_me.
9105 # Run this file to recreate the current configuration.
9106 # Compiler output produced by configure, useful for debugging
9107 # configure, is in config.log if it exists.
9108
9109 debug=false
9110 ac_cs_recheck=false
9111 ac_cs_silent=false
9112 SHELL=\${CONFIG_SHELL-$SHELL}
9113 _ACEOF
9114
9115 cat >>$CONFIG_STATUS <<\_ACEOF
9116 ## --------------------- ##
9117 ## M4sh Initialization.  ##
9118 ## --------------------- ##
9119
9120 # Be Bourne compatible
9121 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
9122   emulate sh
9123   NULLCMD=:
9124   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
9125   # is contrary to our usage.  Disable this feature.
9126   alias -g '${1+"$@"}'='"$@"'
9127 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
9128   set -o posix
9129 fi
9130 DUALCASE=1; export DUALCASE # for MKS sh
9131
9132 # Support unset when possible.
9133 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9134   as_unset=unset
9135 else
9136   as_unset=false
9137 fi
9138
9139
9140 # Work around bugs in pre-3.0 UWIN ksh.
9141 $as_unset ENV MAIL MAILPATH
9142 PS1='$ '
9143 PS2='> '
9144 PS4='+ '
9145
9146 # NLS nuisances.
9147 for as_var in \
9148   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
9149   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
9150   LC_TELEPHONE LC_TIME
9151 do
9152   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
9153     eval $as_var=C; export $as_var
9154   else
9155     $as_unset $as_var
9156   fi
9157 done
9158
9159 # Required to use basename.
9160 if expr a : '\(a\)' >/dev/null 2>&1; then
9161   as_expr=expr
9162 else
9163   as_expr=false
9164 fi
9165
9166 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
9167   as_basename=basename
9168 else
9169   as_basename=false
9170 fi
9171
9172
9173 # Name of the executable.
9174 as_me=`$as_basename "$0" ||
9175 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9176          X"$0" : 'X\(//\)$' \| \
9177          X"$0" : 'X\(/\)$' \| \
9178          .     : '\(.\)' 2>/dev/null ||
9179 echo X/"$0" |
9180     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
9181           /^X\/\(\/\/\)$/{ s//\1/; q; }
9182           /^X\/\(\/\).*/{ s//\1/; q; }
9183           s/.*/./; q'`
9184
9185
9186 # PATH needs CR, and LINENO needs CR and PATH.
9187 # Avoid depending upon Character Ranges.
9188 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9189 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9190 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9191 as_cr_digits='0123456789'
9192 as_cr_alnum=$as_cr_Letters$as_cr_digits
9193
9194 # The user is always right.
9195 if test "${PATH_SEPARATOR+set}" != set; then
9196   echo "#! /bin/sh" >conf$$.sh
9197   echo  "exit 0"   >>conf$$.sh
9198   chmod +x conf$$.sh
9199   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9200     PATH_SEPARATOR=';'
9201   else
9202     PATH_SEPARATOR=:
9203   fi
9204   rm -f conf$$.sh
9205 fi
9206
9207
9208   as_lineno_1=$LINENO
9209   as_lineno_2=$LINENO
9210   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9211   test "x$as_lineno_1" != "x$as_lineno_2" &&
9212   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
9213   # Find who we are.  Look in the path if we contain no path at all
9214   # relative or not.
9215   case $0 in
9216     *[\\/]* ) as_myself=$0 ;;
9217     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9218 for as_dir in $PATH
9219 do
9220   IFS=$as_save_IFS
9221   test -z "$as_dir" && as_dir=.
9222   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9223 done
9224
9225        ;;
9226   esac
9227   # We did not find ourselves, most probably we were run as `sh COMMAND'
9228   # in which case we are not to be found in the path.
9229   if test "x$as_myself" = x; then
9230     as_myself=$0
9231   fi
9232   if test ! -f "$as_myself"; then
9233     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
9234 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
9235    { (exit 1); exit 1; }; }
9236   fi
9237   case $CONFIG_SHELL in
9238   '')
9239     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9240 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
9241 do
9242   IFS=$as_save_IFS
9243   test -z "$as_dir" && as_dir=.
9244   for as_base in sh bash ksh sh5; do
9245          case $as_dir in
9246          /*)
9247            if ("$as_dir/$as_base" -c '
9248   as_lineno_1=$LINENO
9249   as_lineno_2=$LINENO
9250   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9251   test "x$as_lineno_1" != "x$as_lineno_2" &&
9252   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
9253              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
9254              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
9255              CONFIG_SHELL=$as_dir/$as_base
9256              export CONFIG_SHELL
9257              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
9258            fi;;
9259          esac
9260        done
9261 done
9262 ;;
9263   esac
9264
9265   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
9266   # uniformly replaced by the line number.  The first 'sed' inserts a
9267   # line-number line before each line; the second 'sed' does the real
9268   # work.  The second script uses 'N' to pair each line-number line
9269   # with the numbered line, and appends trailing '-' during
9270   # substitution so that $LINENO is not a special case at line end.
9271   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
9272   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
9273   sed '=' <$as_myself |
9274     sed '
9275       N
9276       s,$,-,
9277       : loop
9278       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
9279       t loop
9280       s,-$,,
9281       s,^['$as_cr_digits']*\n,,
9282     ' >$as_me.lineno &&
9283   chmod +x $as_me.lineno ||
9284     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
9285 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
9286    { (exit 1); exit 1; }; }
9287
9288   # Don't try to exec as it changes $[0], causing all sort of problems
9289   # (the dirname of $[0] is not the place where we might find the
9290   # original and so on.  Autoconf is especially sensible to this).
9291   . ./$as_me.lineno
9292   # Exit status is that of the last command.
9293   exit
9294 }
9295
9296
9297 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
9298   *c*,-n*) ECHO_N= ECHO_C='
9299 ' ECHO_T='      ' ;;
9300   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
9301   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
9302 esac
9303
9304 if expr a : '\(a\)' >/dev/null 2>&1; then
9305   as_expr=expr
9306 else
9307   as_expr=false
9308 fi
9309
9310 rm -f conf$$ conf$$.exe conf$$.file
9311 echo >conf$$.file
9312 if ln -s conf$$.file conf$$ 2>/dev/null; then
9313   # We could just check for DJGPP; but this test a) works b) is more generic
9314   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
9315   if test -f conf$$.exe; then
9316     # Don't use ln at all; we don't have any links
9317     as_ln_s='cp -p'
9318   else
9319     as_ln_s='ln -s'
9320   fi
9321 elif ln conf$$.file conf$$ 2>/dev/null; then
9322   as_ln_s=ln
9323 else
9324   as_ln_s='cp -p'
9325 fi
9326 rm -f conf$$ conf$$.exe conf$$.file
9327
9328 if mkdir -p . 2>/dev/null; then
9329   as_mkdir_p=:
9330 else
9331   test -d ./-p && rmdir ./-p
9332   as_mkdir_p=false
9333 fi
9334
9335 as_executable_p="test -f"
9336
9337 # Sed expression to map a string onto a valid CPP name.
9338 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9339
9340 # Sed expression to map a string onto a valid variable name.
9341 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9342
9343
9344 # IFS
9345 # We need space, tab and new line, in precisely that order.
9346 as_nl='
9347 '
9348 IFS="   $as_nl"
9349
9350 # CDPATH.
9351 $as_unset CDPATH
9352
9353 exec 6>&1
9354
9355 # Open the log real soon, to keep \$[0] and so on meaningful, and to
9356 # report actual input values of CONFIG_FILES etc. instead of their
9357 # values after options handling.  Logging --version etc. is OK.
9358 exec 5>>config.log
9359 {
9360   echo
9361   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9362 ## Running $as_me. ##
9363 _ASBOX
9364 } >&5
9365 cat >&5 <<_CSEOF
9366
9367 This file was extended by $as_me, which was
9368 generated by GNU Autoconf 2.59.  Invocation command line was
9369
9370   CONFIG_FILES    = $CONFIG_FILES
9371   CONFIG_HEADERS  = $CONFIG_HEADERS
9372   CONFIG_LINKS    = $CONFIG_LINKS
9373   CONFIG_COMMANDS = $CONFIG_COMMANDS
9374   $ $0 $@
9375
9376 _CSEOF
9377 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
9378 echo >&5
9379 _ACEOF
9380
9381 # Files that config.status was made for.
9382 if test -n "$ac_config_files"; then
9383   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
9384 fi
9385
9386 if test -n "$ac_config_headers"; then
9387   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
9388 fi
9389
9390 if test -n "$ac_config_links"; then
9391   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
9392 fi
9393
9394 if test -n "$ac_config_commands"; then
9395   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
9396 fi
9397
9398 cat >>$CONFIG_STATUS <<\_ACEOF
9399
9400 ac_cs_usage="\
9401 \`$as_me' instantiates files from templates according to the
9402 current configuration.
9403
9404 Usage: $0 [OPTIONS] [FILE]...
9405
9406   -h, --help       print this help, then exit
9407   -V, --version    print version number, then exit
9408   -q, --quiet      do not print progress messages
9409   -d, --debug      don't remove temporary files
9410       --recheck    update $as_me by reconfiguring in the same conditions
9411   --file=FILE[:TEMPLATE]
9412                    instantiate the configuration file FILE
9413   --header=FILE[:TEMPLATE]
9414                    instantiate the configuration header FILE
9415
9416 Configuration files:
9417 $config_files
9418
9419 Configuration headers:
9420 $config_headers
9421
9422 Configuration commands:
9423 $config_commands
9424
9425 Report bugs to <bug-autoconf@gnu.org>."
9426 _ACEOF
9427
9428 cat >>$CONFIG_STATUS <<_ACEOF
9429 ac_cs_version="\\
9430 config.status
9431 configured by $0, generated by GNU Autoconf 2.59,
9432   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
9433
9434 Copyright (C) 2003 Free Software Foundation, Inc.
9435 This config.status script is free software; the Free Software Foundation
9436 gives unlimited permission to copy, distribute and modify it."
9437 srcdir=$srcdir
9438 INSTALL="$INSTALL"
9439 _ACEOF
9440
9441 cat >>$CONFIG_STATUS <<\_ACEOF
9442 # If no file are specified by the user, then we need to provide default
9443 # value.  By we need to know if files were specified by the user.
9444 ac_need_defaults=:
9445 while test $# != 0
9446 do
9447   case $1 in
9448   --*=*)
9449     ac_option=`expr "x$1" : 'x\([^=]*\)='`
9450     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
9451     ac_shift=:
9452     ;;
9453   -*)
9454     ac_option=$1
9455     ac_optarg=$2
9456     ac_shift=shift
9457     ;;
9458   *) # This is not an option, so the user has probably given explicit
9459      # arguments.
9460      ac_option=$1
9461      ac_need_defaults=false;;
9462   esac
9463
9464   case $ac_option in
9465   # Handling of the options.
9466 _ACEOF
9467 cat >>$CONFIG_STATUS <<\_ACEOF
9468   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9469     ac_cs_recheck=: ;;
9470   --version | --vers* | -V )
9471     echo "$ac_cs_version"; exit 0 ;;
9472   --he | --h)
9473     # Conflict between --help and --header
9474     { { echo "$as_me:$LINENO: error: ambiguous option: $1
9475 Try \`$0 --help' for more information." >&5
9476 echo "$as_me: error: ambiguous option: $1
9477 Try \`$0 --help' for more information." >&2;}
9478    { (exit 1); exit 1; }; };;
9479   --help | --hel | -h )
9480     echo "$ac_cs_usage"; exit 0 ;;
9481   --debug | --d* | -d )
9482     debug=: ;;
9483   --file | --fil | --fi | --f )
9484     $ac_shift
9485     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
9486     ac_need_defaults=false;;
9487   --header | --heade | --head | --hea )
9488     $ac_shift
9489     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
9490     ac_need_defaults=false;;
9491   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9492   | -silent | --silent | --silen | --sile | --sil | --si | --s)
9493     ac_cs_silent=: ;;
9494
9495   # This is an error.
9496   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
9497 Try \`$0 --help' for more information." >&5
9498 echo "$as_me: error: unrecognized option: $1
9499 Try \`$0 --help' for more information." >&2;}
9500    { (exit 1); exit 1; }; } ;;
9501
9502   *) ac_config_targets="$ac_config_targets $1" ;;
9503
9504   esac
9505   shift
9506 done
9507
9508 ac_configure_extra_args=
9509
9510 if $ac_cs_silent; then
9511   exec 6>/dev/null
9512   ac_configure_extra_args="$ac_configure_extra_args --silent"
9513 fi
9514
9515 _ACEOF
9516 cat >>$CONFIG_STATUS <<_ACEOF
9517 if \$ac_cs_recheck; then
9518   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
9519   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9520 fi
9521
9522 _ACEOF
9523
9524
9525
9526
9527
9528 cat >>$CONFIG_STATUS <<\_ACEOF
9529 for ac_config_target in $ac_config_targets
9530 do
9531   case "$ac_config_target" in
9532   # Handling of arguments.
9533   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9534   "ircd/Makefile" ) CONFIG_FILES="$CONFIG_FILES ircd/Makefile" ;;
9535   "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
9536   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
9537   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
9538   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
9539 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
9540    { (exit 1); exit 1; }; };;
9541   esac
9542 done
9543
9544 # If the user did not use the arguments to specify the items to instantiate,
9545 # then the envvar interface is used.  Set only those that are not.
9546 # We use the long form for the default assignment because of an extremely
9547 # bizarre bug on SunOS 4.1.3.
9548 if $ac_need_defaults; then
9549   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9550   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9551   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
9552 fi
9553
9554 # Have a temporary directory for convenience.  Make it in the build tree
9555 # simply because there is no reason to put it here, and in addition,
9556 # creating and moving files from /tmp can sometimes cause problems.
9557 # Create a temporary directory, and hook for its removal unless debugging.
9558 $debug ||
9559 {
9560   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
9561   trap '{ (exit 1); exit 1; }' 1 2 13 15
9562 }
9563
9564 # Create a (secure) tmp directory for tmp files.
9565
9566 {
9567   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
9568   test -n "$tmp" && test -d "$tmp"
9569 }  ||
9570 {
9571   tmp=./confstat$$-$RANDOM
9572   (umask 077 && mkdir $tmp)
9573 } ||
9574 {
9575    echo "$me: cannot create a temporary directory in ." >&2
9576    { (exit 1); exit 1; }
9577 }
9578
9579 _ACEOF
9580
9581 cat >>$CONFIG_STATUS <<_ACEOF
9582
9583 #
9584 # CONFIG_FILES section.
9585 #
9586
9587 # No need to generate the scripts if there are no CONFIG_FILES.
9588 # This happens for instance when ./config.status config.h
9589 if test -n "\$CONFIG_FILES"; then
9590   # Protect against being on the right side of a sed subst in config.status.
9591   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
9592    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
9593 s,@SHELL@,$SHELL,;t t
9594 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
9595 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
9596 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
9597 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
9598 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
9599 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
9600 s,@exec_prefix@,$exec_prefix,;t t
9601 s,@prefix@,$prefix,;t t
9602 s,@program_transform_name@,$program_transform_name,;t t
9603 s,@bindir@,$bindir,;t t
9604 s,@sbindir@,$sbindir,;t t
9605 s,@libexecdir@,$libexecdir,;t t
9606 s,@datadir@,$datadir,;t t
9607 s,@sysconfdir@,$sysconfdir,;t t
9608 s,@sharedstatedir@,$sharedstatedir,;t t
9609 s,@localstatedir@,$localstatedir,;t t
9610 s,@libdir@,$libdir,;t t
9611 s,@includedir@,$includedir,;t t
9612 s,@oldincludedir@,$oldincludedir,;t t
9613 s,@infodir@,$infodir,;t t
9614 s,@mandir@,$mandir,;t t
9615 s,@build_alias@,$build_alias,;t t
9616 s,@host_alias@,$host_alias,;t t
9617 s,@target_alias@,$target_alias,;t t
9618 s,@DEFS@,$DEFS,;t t
9619 s,@ECHO_C@,$ECHO_C,;t t
9620 s,@ECHO_N@,$ECHO_N,;t t
9621 s,@ECHO_T@,$ECHO_T,;t t
9622 s,@LIBS@,$LIBS,;t t
9623 s,@build@,$build,;t t
9624 s,@build_cpu@,$build_cpu,;t t
9625 s,@build_vendor@,$build_vendor,;t t
9626 s,@build_os@,$build_os,;t t
9627 s,@host@,$host,;t t
9628 s,@host_cpu@,$host_cpu,;t t
9629 s,@host_vendor@,$host_vendor,;t t
9630 s,@host_os@,$host_os,;t t
9631 s,@CC@,$CC,;t t
9632 s,@CFLAGS@,$CFLAGS,;t t
9633 s,@LDFLAGS@,$LDFLAGS,;t t
9634 s,@CPPFLAGS@,$CPPFLAGS,;t t
9635 s,@ac_ct_CC@,$ac_ct_CC,;t t
9636 s,@EXEEXT@,$EXEEXT,;t t
9637 s,@OBJEXT@,$OBJEXT,;t t
9638 s,@CPP@,$CPP,;t t
9639 s,@EGREP@,$EGREP,;t t
9640 s,@AWK@,$AWK,;t t
9641 s,@SET_MAKE@,$SET_MAKE,;t t
9642 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
9643 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
9644 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
9645 s,@LN_S@,$LN_S,;t t
9646 s,@LEX@,$LEX,;t t
9647 s,@LEXLIB@,$LEXLIB,;t t
9648 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
9649 s,@YACC@,$YACC,;t t
9650 s,@RMPROG@,$RMPROG,;t t
9651 s,@SHPROG@,$SHPROG,;t t
9652 s,@ENGINE_C@,$ENGINE_C,;t t
9653 s,@INSTALL_RULE@,$INSTALL_RULE,;t t
9654 s,@SYMLINK@,$SYMLINK,;t t
9655 s,@IRCDMODE@,$IRCDMODE,;t t
9656 s,@IRCDOWN@,$IRCDOWN,;t t
9657 s,@IRCDGRP@,$IRCDGRP,;t t
9658 s,@DPATH@,$DPATH,;t t
9659 s,@LIBOBJS@,$LIBOBJS,;t t
9660 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
9661 CEOF
9662
9663 _ACEOF
9664
9665   cat >>$CONFIG_STATUS <<\_ACEOF
9666   # Split the substitutions into bite-sized pieces for seds with
9667   # small command number limits, like on Digital OSF/1 and HP-UX.
9668   ac_max_sed_lines=48
9669   ac_sed_frag=1 # Number of current file.
9670   ac_beg=1 # First line for current file.
9671   ac_end=$ac_max_sed_lines # Line after last line for current file.
9672   ac_more_lines=:
9673   ac_sed_cmds=
9674   while $ac_more_lines; do
9675     if test $ac_beg -gt 1; then
9676       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9677     else
9678       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9679     fi
9680     if test ! -s $tmp/subs.frag; then
9681       ac_more_lines=false
9682     else
9683       # The purpose of the label and of the branching condition is to
9684       # speed up the sed processing (if there are no `@' at all, there
9685       # is no need to browse any of the substitutions).
9686       # These are the two extra sed commands mentioned above.
9687       (echo ':t
9688   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
9689       if test -z "$ac_sed_cmds"; then
9690         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
9691       else
9692         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
9693       fi
9694       ac_sed_frag=`expr $ac_sed_frag + 1`
9695       ac_beg=$ac_end
9696       ac_end=`expr $ac_end + $ac_max_sed_lines`
9697     fi
9698   done
9699   if test -z "$ac_sed_cmds"; then
9700     ac_sed_cmds=cat
9701   fi
9702 fi # test -n "$CONFIG_FILES"
9703
9704 _ACEOF
9705 cat >>$CONFIG_STATUS <<\_ACEOF
9706 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
9707   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9708   case $ac_file in
9709   - | *:- | *:-:* ) # input from stdin
9710         cat >$tmp/stdin
9711         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9712         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9713   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9714         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9715   * )   ac_file_in=$ac_file.in ;;
9716   esac
9717
9718   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
9719   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
9720 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9721          X"$ac_file" : 'X\(//\)[^/]' \| \
9722          X"$ac_file" : 'X\(//\)$' \| \
9723          X"$ac_file" : 'X\(/\)' \| \
9724          .     : '\(.\)' 2>/dev/null ||
9725 echo X"$ac_file" |
9726     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9727           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9728           /^X\(\/\/\)$/{ s//\1/; q; }
9729           /^X\(\/\).*/{ s//\1/; q; }
9730           s/.*/./; q'`
9731   { if $as_mkdir_p; then
9732     mkdir -p "$ac_dir"
9733   else
9734     as_dir="$ac_dir"
9735     as_dirs=
9736     while test ! -d "$as_dir"; do
9737       as_dirs="$as_dir $as_dirs"
9738       as_dir=`(dirname "$as_dir") 2>/dev/null ||
9739 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9740          X"$as_dir" : 'X\(//\)[^/]' \| \
9741          X"$as_dir" : 'X\(//\)$' \| \
9742          X"$as_dir" : 'X\(/\)' \| \
9743          .     : '\(.\)' 2>/dev/null ||
9744 echo X"$as_dir" |
9745     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9746           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9747           /^X\(\/\/\)$/{ s//\1/; q; }
9748           /^X\(\/\).*/{ s//\1/; q; }
9749           s/.*/./; q'`
9750     done
9751     test ! -n "$as_dirs" || mkdir $as_dirs
9752   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9753 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9754    { (exit 1); exit 1; }; }; }
9755
9756   ac_builddir=.
9757
9758 if test "$ac_dir" != .; then
9759   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9760   # A "../" for each directory in $ac_dir_suffix.
9761   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9762 else
9763   ac_dir_suffix= ac_top_builddir=
9764 fi
9765
9766 case $srcdir in
9767   .)  # No --srcdir option.  We are building in place.
9768     ac_srcdir=.
9769     if test -z "$ac_top_builddir"; then
9770        ac_top_srcdir=.
9771     else
9772        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
9773     fi ;;
9774   [\\/]* | ?:[\\/]* )  # Absolute path.
9775     ac_srcdir=$srcdir$ac_dir_suffix;
9776     ac_top_srcdir=$srcdir ;;
9777   *) # Relative path.
9778     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9779     ac_top_srcdir=$ac_top_builddir$srcdir ;;
9780 esac
9781
9782 # Do not use `cd foo && pwd` to compute absolute paths, because
9783 # the directories may not exist.
9784 case `pwd` in
9785 .) ac_abs_builddir="$ac_dir";;
9786 *)
9787   case "$ac_dir" in
9788   .) ac_abs_builddir=`pwd`;;
9789   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
9790   *) ac_abs_builddir=`pwd`/"$ac_dir";;
9791   esac;;
9792 esac
9793 case $ac_abs_builddir in
9794 .) ac_abs_top_builddir=${ac_top_builddir}.;;
9795 *)
9796   case ${ac_top_builddir}. in
9797   .) ac_abs_top_builddir=$ac_abs_builddir;;
9798   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
9799   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
9800   esac;;
9801 esac
9802 case $ac_abs_builddir in
9803 .) ac_abs_srcdir=$ac_srcdir;;
9804 *)
9805   case $ac_srcdir in
9806   .) ac_abs_srcdir=$ac_abs_builddir;;
9807   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
9808   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
9809   esac;;
9810 esac
9811 case $ac_abs_builddir in
9812 .) ac_abs_top_srcdir=$ac_top_srcdir;;
9813 *)
9814   case $ac_top_srcdir in
9815   .) ac_abs_top_srcdir=$ac_abs_builddir;;
9816   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
9817   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
9818   esac;;
9819 esac
9820
9821
9822   case $INSTALL in
9823   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9824   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
9825   esac
9826
9827   # Let's still pretend it is `configure' which instantiates (i.e., don't
9828   # use $as_me), people would be surprised to read:
9829   #    /* config.h.  Generated by config.status.  */
9830   if test x"$ac_file" = x-; then
9831     configure_input=
9832   else
9833     configure_input="$ac_file.  "
9834   fi
9835   configure_input=$configure_input"Generated from `echo $ac_file_in |
9836                                      sed 's,.*/,,'` by configure."
9837
9838   # First look for the input files in the build tree, otherwise in the
9839   # src tree.
9840   ac_file_inputs=`IFS=:
9841     for f in $ac_file_in; do
9842       case $f in
9843       -) echo $tmp/stdin ;;
9844       [\\/$]*)
9845          # Absolute (can't be DOS-style, as IFS=:)
9846          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9847 echo "$as_me: error: cannot find input file: $f" >&2;}
9848    { (exit 1); exit 1; }; }
9849          echo "$f";;
9850       *) # Relative
9851          if test -f "$f"; then
9852            # Build tree
9853            echo "$f"
9854          elif test -f "$srcdir/$f"; then
9855            # Source tree
9856            echo "$srcdir/$f"
9857          else
9858            # /dev/null tree
9859            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9860 echo "$as_me: error: cannot find input file: $f" >&2;}
9861    { (exit 1); exit 1; }; }
9862          fi;;
9863       esac
9864     done` || { (exit 1); exit 1; }
9865
9866   if test x"$ac_file" != x-; then
9867     { echo "$as_me:$LINENO: creating $ac_file" >&5
9868 echo "$as_me: creating $ac_file" >&6;}
9869     rm -f "$ac_file"
9870   fi
9871 _ACEOF
9872 cat >>$CONFIG_STATUS <<_ACEOF
9873   sed "$ac_vpsub
9874 $extrasub
9875 _ACEOF
9876 cat >>$CONFIG_STATUS <<\_ACEOF
9877 :t
9878 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9879 s,@configure_input@,$configure_input,;t t
9880 s,@srcdir@,$ac_srcdir,;t t
9881 s,@abs_srcdir@,$ac_abs_srcdir,;t t
9882 s,@top_srcdir@,$ac_top_srcdir,;t t
9883 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
9884 s,@builddir@,$ac_builddir,;t t
9885 s,@abs_builddir@,$ac_abs_builddir,;t t
9886 s,@top_builddir@,$ac_top_builddir,;t t
9887 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
9888 s,@INSTALL@,$ac_INSTALL,;t t
9889 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
9890   rm -f $tmp/stdin
9891   if test x"$ac_file" != x-; then
9892     mv $tmp/out $ac_file
9893   else
9894     cat $tmp/out
9895     rm -f $tmp/out
9896   fi
9897
9898 done
9899 _ACEOF
9900 cat >>$CONFIG_STATUS <<\_ACEOF
9901
9902 #
9903 # CONFIG_HEADER section.
9904 #
9905
9906 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9907 # NAME is the cpp macro being defined and VALUE is the value it is being given.
9908 #
9909 # ac_d sets the value in "#define NAME VALUE" lines.
9910 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
9911 ac_dB='[         ].*$,\1#\2'
9912 ac_dC=' '
9913 ac_dD=',;t'
9914 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9915 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
9916 ac_uB='$,\1#\2define\3'
9917 ac_uC=' '
9918 ac_uD=',;t'
9919
9920 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
9921   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9922   case $ac_file in
9923   - | *:- | *:-:* ) # input from stdin
9924         cat >$tmp/stdin
9925         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9926         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9927   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9928         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9929   * )   ac_file_in=$ac_file.in ;;
9930   esac
9931
9932   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
9933 echo "$as_me: creating $ac_file" >&6;}
9934
9935   # First look for the input files in the build tree, otherwise in the
9936   # src tree.
9937   ac_file_inputs=`IFS=:
9938     for f in $ac_file_in; do
9939       case $f in
9940       -) echo $tmp/stdin ;;
9941       [\\/$]*)
9942          # Absolute (can't be DOS-style, as IFS=:)
9943          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9944 echo "$as_me: error: cannot find input file: $f" >&2;}
9945    { (exit 1); exit 1; }; }
9946          # Do quote $f, to prevent DOS paths from being IFS'd.
9947          echo "$f";;
9948       *) # Relative
9949          if test -f "$f"; then
9950            # Build tree
9951            echo "$f"
9952          elif test -f "$srcdir/$f"; then
9953            # Source tree
9954            echo "$srcdir/$f"
9955          else
9956            # /dev/null tree
9957            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9958 echo "$as_me: error: cannot find input file: $f" >&2;}
9959    { (exit 1); exit 1; }; }
9960          fi;;
9961       esac
9962     done` || { (exit 1); exit 1; }
9963   # Remove the trailing spaces.
9964   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
9965
9966 _ACEOF
9967
9968 # Transform confdefs.h into two sed scripts, `conftest.defines' and
9969 # `conftest.undefs', that substitutes the proper values into
9970 # config.h.in to produce config.h.  The first handles `#define'
9971 # templates, and the second `#undef' templates.
9972 # And first: Protect against being on the right side of a sed subst in
9973 # config.status.  Protect against being in an unquoted here document
9974 # in config.status.
9975 rm -f conftest.defines conftest.undefs
9976 # Using a here document instead of a string reduces the quoting nightmare.
9977 # Putting comments in sed scripts is not portable.
9978 #
9979 # `end' is used to avoid that the second main sed command (meant for
9980 # 0-ary CPP macros) applies to n-ary macro definitions.
9981 # See the Autoconf documentation for `clear'.
9982 cat >confdef2sed.sed <<\_ACEOF
9983 s/[\\&,]/\\&/g
9984 s,[\\$`],\\&,g
9985 t clear
9986 : clear
9987 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
9988 t end
9989 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
9990 : end
9991 _ACEOF
9992 # If some macros were called several times there might be several times
9993 # the same #defines, which is useless.  Nevertheless, we may not want to
9994 # sort them, since we want the *last* AC-DEFINE to be honored.
9995 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
9996 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
9997 rm -f confdef2sed.sed
9998
9999 # This sed command replaces #undef with comments.  This is necessary, for
10000 # example, in the case of _POSIX_SOURCE, which is predefined and required
10001 # on some systems where configure will not decide to define it.
10002 cat >>conftest.undefs <<\_ACEOF
10003 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
10004 _ACEOF
10005
10006 # Break up conftest.defines because some shells have a limit on the size
10007 # of here documents, and old seds have small limits too (100 cmds).
10008 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
10009 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
10010 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
10011 echo '  :' >>$CONFIG_STATUS
10012 rm -f conftest.tail
10013 while grep . conftest.defines >/dev/null
10014 do
10015   # Write a limited-size here document to $tmp/defines.sed.
10016   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
10017   # Speed up: don't consider the non `#define' lines.
10018   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
10019   # Work around the forget-to-reset-the-flag bug.
10020   echo 't clr' >>$CONFIG_STATUS
10021   echo ': clr' >>$CONFIG_STATUS
10022   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
10023   echo 'CEOF
10024   sed -f $tmp/defines.sed $tmp/in >$tmp/out
10025   rm -f $tmp/in
10026   mv $tmp/out $tmp/in
10027 ' >>$CONFIG_STATUS
10028   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
10029   rm -f conftest.defines
10030   mv conftest.tail conftest.defines
10031 done
10032 rm -f conftest.defines
10033 echo '  fi # grep' >>$CONFIG_STATUS
10034 echo >>$CONFIG_STATUS
10035
10036 # Break up conftest.undefs because some shells have a limit on the size
10037 # of here documents, and old seds have small limits too (100 cmds).
10038 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
10039 rm -f conftest.tail
10040 while grep . conftest.undefs >/dev/null
10041 do
10042   # Write a limited-size here document to $tmp/undefs.sed.
10043   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
10044   # Speed up: don't consider the non `#undef'
10045   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
10046   # Work around the forget-to-reset-the-flag bug.
10047   echo 't clr' >>$CONFIG_STATUS
10048   echo ': clr' >>$CONFIG_STATUS
10049   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
10050   echo 'CEOF
10051   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
10052   rm -f $tmp/in
10053   mv $tmp/out $tmp/in
10054 ' >>$CONFIG_STATUS
10055   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
10056   rm -f conftest.undefs
10057   mv conftest.tail conftest.undefs
10058 done
10059 rm -f conftest.undefs
10060
10061 cat >>$CONFIG_STATUS <<\_ACEOF
10062   # Let's still pretend it is `configure' which instantiates (i.e., don't
10063   # use $as_me), people would be surprised to read:
10064   #    /* config.h.  Generated by config.status.  */
10065   if test x"$ac_file" = x-; then
10066     echo "/* Generated by configure.  */" >$tmp/config.h
10067   else
10068     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
10069   fi
10070   cat $tmp/in >>$tmp/config.h
10071   rm -f $tmp/in
10072   if test x"$ac_file" != x-; then
10073     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
10074       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
10075 echo "$as_me: $ac_file is unchanged" >&6;}
10076     else
10077       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10078 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10079          X"$ac_file" : 'X\(//\)[^/]' \| \
10080          X"$ac_file" : 'X\(//\)$' \| \
10081          X"$ac_file" : 'X\(/\)' \| \
10082          .     : '\(.\)' 2>/dev/null ||
10083 echo X"$ac_file" |
10084     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10085           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10086           /^X\(\/\/\)$/{ s//\1/; q; }
10087           /^X\(\/\).*/{ s//\1/; q; }
10088           s/.*/./; q'`
10089       { if $as_mkdir_p; then
10090     mkdir -p "$ac_dir"
10091   else
10092     as_dir="$ac_dir"
10093     as_dirs=
10094     while test ! -d "$as_dir"; do
10095       as_dirs="$as_dir $as_dirs"
10096       as_dir=`(dirname "$as_dir") 2>/dev/null ||
10097 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10098          X"$as_dir" : 'X\(//\)[^/]' \| \
10099          X"$as_dir" : 'X\(//\)$' \| \
10100          X"$as_dir" : 'X\(/\)' \| \
10101          .     : '\(.\)' 2>/dev/null ||
10102 echo X"$as_dir" |
10103     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10104           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10105           /^X\(\/\/\)$/{ s//\1/; q; }
10106           /^X\(\/\).*/{ s//\1/; q; }
10107           s/.*/./; q'`
10108     done
10109     test ! -n "$as_dirs" || mkdir $as_dirs
10110   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10111 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10112    { (exit 1); exit 1; }; }; }
10113
10114       rm -f $ac_file
10115       mv $tmp/config.h $ac_file
10116     fi
10117   else
10118     cat $tmp/config.h
10119     rm -f $tmp/config.h
10120   fi
10121 done
10122 _ACEOF
10123 cat >>$CONFIG_STATUS <<\_ACEOF
10124
10125 #
10126 # CONFIG_COMMANDS section.
10127 #
10128 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
10129   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
10130   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
10131   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
10132 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10133          X"$ac_dest" : 'X\(//\)[^/]' \| \
10134          X"$ac_dest" : 'X\(//\)$' \| \
10135          X"$ac_dest" : 'X\(/\)' \| \
10136          .     : '\(.\)' 2>/dev/null ||
10137 echo X"$ac_dest" |
10138     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10139           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10140           /^X\(\/\/\)$/{ s//\1/; q; }
10141           /^X\(\/\).*/{ s//\1/; q; }
10142           s/.*/./; q'`
10143   { if $as_mkdir_p; then
10144     mkdir -p "$ac_dir"
10145   else
10146     as_dir="$ac_dir"
10147     as_dirs=
10148     while test ! -d "$as_dir"; do
10149       as_dirs="$as_dir $as_dirs"
10150       as_dir=`(dirname "$as_dir") 2>/dev/null ||
10151 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10152          X"$as_dir" : 'X\(//\)[^/]' \| \
10153          X"$as_dir" : 'X\(//\)$' \| \
10154          X"$as_dir" : 'X\(/\)' \| \
10155          .     : '\(.\)' 2>/dev/null ||
10156 echo X"$as_dir" |
10157     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10158           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10159           /^X\(\/\/\)$/{ s//\1/; q; }
10160           /^X\(\/\).*/{ s//\1/; q; }
10161           s/.*/./; q'`
10162     done
10163     test ! -n "$as_dirs" || mkdir $as_dirs
10164   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10165 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10166    { (exit 1); exit 1; }; }; }
10167
10168   ac_builddir=.
10169
10170 if test "$ac_dir" != .; then
10171   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10172   # A "../" for each directory in $ac_dir_suffix.
10173   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10174 else
10175   ac_dir_suffix= ac_top_builddir=
10176 fi
10177
10178 case $srcdir in
10179   .)  # No --srcdir option.  We are building in place.
10180     ac_srcdir=.
10181     if test -z "$ac_top_builddir"; then
10182        ac_top_srcdir=.
10183     else
10184        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10185     fi ;;
10186   [\\/]* | ?:[\\/]* )  # Absolute path.
10187     ac_srcdir=$srcdir$ac_dir_suffix;
10188     ac_top_srcdir=$srcdir ;;
10189   *) # Relative path.
10190     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10191     ac_top_srcdir=$ac_top_builddir$srcdir ;;
10192 esac
10193
10194 # Do not use `cd foo && pwd` to compute absolute paths, because
10195 # the directories may not exist.
10196 case `pwd` in
10197 .) ac_abs_builddir="$ac_dir";;
10198 *)
10199   case "$ac_dir" in
10200   .) ac_abs_builddir=`pwd`;;
10201   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
10202   *) ac_abs_builddir=`pwd`/"$ac_dir";;
10203   esac;;
10204 esac
10205 case $ac_abs_builddir in
10206 .) ac_abs_top_builddir=${ac_top_builddir}.;;
10207 *)
10208   case ${ac_top_builddir}. in
10209   .) ac_abs_top_builddir=$ac_abs_builddir;;
10210   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
10211   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
10212   esac;;
10213 esac
10214 case $ac_abs_builddir in
10215 .) ac_abs_srcdir=$ac_srcdir;;
10216 *)
10217   case $ac_srcdir in
10218   .) ac_abs_srcdir=$ac_abs_builddir;;
10219   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
10220   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
10221   esac;;
10222 esac
10223 case $ac_abs_builddir in
10224 .) ac_abs_top_srcdir=$ac_top_srcdir;;
10225 *)
10226   case $ac_top_srcdir in
10227   .) ac_abs_top_srcdir=$ac_abs_builddir;;
10228   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
10229   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
10230   esac;;
10231 esac
10232
10233
10234   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
10235 echo "$as_me: executing $ac_dest commands" >&6;}
10236   case $ac_dest in
10237     default ) echo timestamp > stamp-h ;;
10238   esac
10239 done
10240 _ACEOF
10241
10242 cat >>$CONFIG_STATUS <<\_ACEOF
10243
10244 { (exit 0); exit 0; }
10245 _ACEOF
10246 chmod +x $CONFIG_STATUS
10247 ac_clean_files=$ac_clean_files_save
10248
10249
10250 # configure is writing to config.log, and then calls config.status.
10251 # config.status does its own redirection, appending to config.log.
10252 # Unfortunately, on DOS this fails, as config.log is still kept open
10253 # by configure, so config.status won't be able to write to it; its
10254 # output is simply discarded.  So we exec the FD to /dev/null,
10255 # effectively closing config.log, so it can be properly (re)opened and
10256 # appended to by config.status.  When coming back to configure, we
10257 # need to make the FD available again.
10258 if test "$no_create" != yes; then
10259   ac_cs_success=:
10260   ac_config_status_args=
10261   test "$silent" = yes &&
10262     ac_config_status_args="$ac_config_status_args --quiet"
10263   exec 5>/dev/null
10264   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10265   exec 5>>config.log
10266   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10267   # would make configure fail if this is the last instruction.
10268   $ac_cs_success || { (exit 1); exit 1; }
10269 fi
10270
10271
10272           ac_config_commands="$ac_config_commands default-1"
10273