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