]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/tcpdump/configure
This commit was generated by cvs2svn to compensate for changes in r167617,
[FreeBSD/FreeBSD.git] / contrib / tcpdump / configure
1 #! /bin/sh
2 # From configure.in Revision: 1.188.2.7 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.57.
5 #
6 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
7 # Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## M4sh Initialization.  ##
12 ## --------------------- ##
13
14 # Be Bourne compatible
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16   emulate sh
17   NULLCMD=:
18   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19   # is contrary to our usage.  Disable this feature.
20   alias -g '${1+"$@"}'='"$@"'
21 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22   set -o posix
23 fi
24
25 # Support unset when possible.
26 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
27   as_unset=unset
28 else
29   as_unset=false
30 fi
31
32
33 # Work around bugs in pre-3.0 UWIN ksh.
34 $as_unset ENV MAIL MAILPATH
35 PS1='$ '
36 PS2='> '
37 PS4='+ '
38
39 # NLS nuisances.
40 for as_var in \
41   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
42   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
43   LC_TELEPHONE LC_TIME
44 do
45   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
46     eval $as_var=C; export $as_var
47   else
48     $as_unset $as_var
49   fi
50 done
51
52 # Required to use basename.
53 if expr a : '\(a\)' >/dev/null 2>&1; then
54   as_expr=expr
55 else
56   as_expr=false
57 fi
58
59 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
60   as_basename=basename
61 else
62   as_basename=false
63 fi
64
65
66 # Name of the executable.
67 as_me=`$as_basename "$0" ||
68 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
69          X"$0" : 'X\(//\)$' \| \
70          X"$0" : 'X\(/\)$' \| \
71          .     : '\(.\)' 2>/dev/null ||
72 echo X/"$0" |
73     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
74           /^X\/\(\/\/\)$/{ s//\1/; q; }
75           /^X\/\(\/\).*/{ s//\1/; q; }
76           s/.*/./; q'`
77
78
79 # PATH needs CR, and LINENO needs CR and PATH.
80 # Avoid depending upon Character Ranges.
81 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
82 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
83 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
84 as_cr_digits='0123456789'
85 as_cr_alnum=$as_cr_Letters$as_cr_digits
86
87 # The user is always right.
88 if test "${PATH_SEPARATOR+set}" != set; then
89   echo "#! /bin/sh" >conf$$.sh
90   echo  "exit 0"   >>conf$$.sh
91   chmod +x conf$$.sh
92   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
93     PATH_SEPARATOR=';'
94   else
95     PATH_SEPARATOR=:
96   fi
97   rm -f conf$$.sh
98 fi
99
100
101   as_lineno_1=$LINENO
102   as_lineno_2=$LINENO
103   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
104   test "x$as_lineno_1" != "x$as_lineno_2" &&
105   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
106   # Find who we are.  Look in the path if we contain no path at all
107   # relative or not.
108   case $0 in
109     *[\\/]* ) as_myself=$0 ;;
110     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
111 for as_dir in $PATH
112 do
113   IFS=$as_save_IFS
114   test -z "$as_dir" && as_dir=.
115   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
116 done
117
118        ;;
119   esac
120   # We did not find ourselves, most probably we were run as `sh COMMAND'
121   # in which case we are not to be found in the path.
122   if test "x$as_myself" = x; then
123     as_myself=$0
124   fi
125   if test ! -f "$as_myself"; then
126     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
127    { (exit 1); exit 1; }; }
128   fi
129   case $CONFIG_SHELL in
130   '')
131     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
132 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
133 do
134   IFS=$as_save_IFS
135   test -z "$as_dir" && as_dir=.
136   for as_base in sh bash ksh sh5; do
137          case $as_dir in
138          /*)
139            if ("$as_dir/$as_base" -c '
140   as_lineno_1=$LINENO
141   as_lineno_2=$LINENO
142   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
143   test "x$as_lineno_1" != "x$as_lineno_2" &&
144   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
145              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
146              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
147              CONFIG_SHELL=$as_dir/$as_base
148              export CONFIG_SHELL
149              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
150            fi;;
151          esac
152        done
153 done
154 ;;
155   esac
156
157   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
158   # uniformly replaced by the line number.  The first 'sed' inserts a
159   # line-number line before each line; the second 'sed' does the real
160   # work.  The second script uses 'N' to pair each line-number line
161   # with the numbered line, and appends trailing '-' during
162   # substitution so that $LINENO is not a special case at line end.
163   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
164   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
165   sed '=' <$as_myself |
166     sed '
167       N
168       s,$,-,
169       : loop
170       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
171       t loop
172       s,-$,,
173       s,^['$as_cr_digits']*\n,,
174     ' >$as_me.lineno &&
175   chmod +x $as_me.lineno ||
176     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
177    { (exit 1); exit 1; }; }
178
179   # Don't try to exec as it changes $[0], causing all sort of problems
180   # (the dirname of $[0] is not the place where we might find the
181   # original and so on.  Autoconf is especially sensible to this).
182   . ./$as_me.lineno
183   # Exit status is that of the last command.
184   exit
185 }
186
187
188 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
189   *c*,-n*) ECHO_N= ECHO_C='
190 ' ECHO_T='      ' ;;
191   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
192   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
193 esac
194
195 if expr a : '\(a\)' >/dev/null 2>&1; then
196   as_expr=expr
197 else
198   as_expr=false
199 fi
200
201 rm -f conf$$ conf$$.exe conf$$.file
202 echo >conf$$.file
203 if ln -s conf$$.file conf$$ 2>/dev/null; then
204   # We could just check for DJGPP; but this test a) works b) is more generic
205   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
206   if test -f conf$$.exe; then
207     # Don't use ln at all; we don't have any links
208     as_ln_s='cp -p'
209   else
210     as_ln_s='ln -s'
211   fi
212 elif ln conf$$.file conf$$ 2>/dev/null; then
213   as_ln_s=ln
214 else
215   as_ln_s='cp -p'
216 fi
217 rm -f conf$$ conf$$.exe conf$$.file
218
219 if mkdir -p . 2>/dev/null; then
220   as_mkdir_p=:
221 else
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="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="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="tcpdump.c"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
277 #include <stdio.h>
278 #if HAVE_SYS_TYPES_H
279 # include <sys/types.h>
280 #endif
281 #if HAVE_SYS_STAT_H
282 # include <sys/stat.h>
283 #endif
284 #if STDC_HEADERS
285 # include <stdlib.h>
286 # include <stddef.h>
287 #else
288 # if HAVE_STDLIB_H
289 #  include <stdlib.h>
290 # endif
291 #endif
292 #if HAVE_STRING_H
293 # if !STDC_HEADERS && HAVE_MEMORY_H
294 #  include <memory.h>
295 # endif
296 # include <string.h>
297 #endif
298 #if HAVE_STRINGS_H
299 # include <strings.h>
300 #endif
301 #if HAVE_INTTYPES_H
302 # include <inttypes.h>
303 #else
304 # if HAVE_STDINT_H
305 #  include <stdint.h>
306 # endif
307 #endif
308 #if HAVE_UNISTD_H
309 # include <unistd.h>
310 #endif"
311
312 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 SHLICC2 CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP LIBOBJS V_CCOPT V_DEFS V_GROUP V_INCLS V_PCAPDEP LOCALSRC INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LTLIBOBJS'
313 ac_subst_files=''
314
315 # Initialize some variables set by options.
316 ac_init_help=
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
320 cache_file=/dev/null
321 exec_prefix=NONE
322 no_create=
323 no_recursion=
324 prefix=NONE
325 program_prefix=NONE
326 program_suffix=NONE
327 program_transform_name=s,x,x,
328 silent=
329 site=
330 srcdir=
331 verbose=
332 x_includes=NONE
333 x_libraries=NONE
334
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir='${exec_prefix}/bin'
341 sbindir='${exec_prefix}/sbin'
342 libexecdir='${exec_prefix}/libexec'
343 datadir='${prefix}/share'
344 sysconfdir='${prefix}/etc'
345 sharedstatedir='${prefix}/com'
346 localstatedir='${prefix}/var'
347 libdir='${exec_prefix}/lib'
348 includedir='${prefix}/include'
349 oldincludedir='/usr/include'
350 infodir='${prefix}/info'
351 mandir='${prefix}/man'
352
353 ac_prev=
354 for ac_option
355 do
356   # If the previous option needs an argument, assign it.
357   if test -n "$ac_prev"; then
358     eval "$ac_prev=\$ac_option"
359     ac_prev=
360     continue
361   fi
362
363   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364
365   # Accept the important Cygnus configure options, so we can diagnose typos.
366
367   case $ac_option in
368
369   -bindir | --bindir | --bindi | --bind | --bin | --bi)
370     ac_prev=bindir ;;
371   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372     bindir=$ac_optarg ;;
373
374   -build | --build | --buil | --bui | --bu)
375     ac_prev=build_alias ;;
376   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377     build_alias=$ac_optarg ;;
378
379   -cache-file | --cache-file | --cache-fil | --cache-fi \
380   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381     ac_prev=cache_file ;;
382   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384     cache_file=$ac_optarg ;;
385
386   --config-cache | -C)
387     cache_file=config.cache ;;
388
389   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390     ac_prev=datadir ;;
391   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392   | --da=*)
393     datadir=$ac_optarg ;;
394
395   -disable-* | --disable-*)
396     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397     # Reject names that are not valid shell variable names.
398     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400    { (exit 1); exit 1; }; }
401     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402     eval "enable_$ac_feature=no" ;;
403
404   -enable-* | --enable-*)
405     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406     # Reject names that are not valid shell variable names.
407     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409    { (exit 1); exit 1; }; }
410     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411     case $ac_option in
412       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
413       *) ac_optarg=yes ;;
414     esac
415     eval "enable_$ac_feature='$ac_optarg'" ;;
416
417   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419   | --exec | --exe | --ex)
420     ac_prev=exec_prefix ;;
421   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423   | --exec=* | --exe=* | --ex=*)
424     exec_prefix=$ac_optarg ;;
425
426   -gas | --gas | --ga | --g)
427     # Obsolete; use --with-gas.
428     with_gas=yes ;;
429
430   -help | --help | --hel | --he | -h)
431     ac_init_help=long ;;
432   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433     ac_init_help=recursive ;;
434   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435     ac_init_help=short ;;
436
437   -host | --host | --hos | --ho)
438     ac_prev=host_alias ;;
439   -host=* | --host=* | --hos=* | --ho=*)
440     host_alias=$ac_optarg ;;
441
442   -includedir | --includedir | --includedi | --included | --include \
443   | --includ | --inclu | --incl | --inc)
444     ac_prev=includedir ;;
445   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446   | --includ=* | --inclu=* | --incl=* | --inc=*)
447     includedir=$ac_optarg ;;
448
449   -infodir | --infodir | --infodi | --infod | --info | --inf)
450     ac_prev=infodir ;;
451   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452     infodir=$ac_optarg ;;
453
454   -libdir | --libdir | --libdi | --libd)
455     ac_prev=libdir ;;
456   -libdir=* | --libdir=* | --libdi=* | --libd=*)
457     libdir=$ac_optarg ;;
458
459   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460   | --libexe | --libex | --libe)
461     ac_prev=libexecdir ;;
462   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463   | --libexe=* | --libex=* | --libe=*)
464     libexecdir=$ac_optarg ;;
465
466   -localstatedir | --localstatedir | --localstatedi | --localstated \
467   | --localstate | --localstat | --localsta | --localst \
468   | --locals | --local | --loca | --loc | --lo)
469     ac_prev=localstatedir ;;
470   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473     localstatedir=$ac_optarg ;;
474
475   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476     ac_prev=mandir ;;
477   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478     mandir=$ac_optarg ;;
479
480   -nfp | --nfp | --nf)
481     # Obsolete; use --without-fp.
482     with_fp=no ;;
483
484   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485   | --no-cr | --no-c | -n)
486     no_create=yes ;;
487
488   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490     no_recursion=yes ;;
491
492   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494   | --oldin | --oldi | --old | --ol | --o)
495     ac_prev=oldincludedir ;;
496   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499     oldincludedir=$ac_optarg ;;
500
501   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502     ac_prev=prefix ;;
503   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504     prefix=$ac_optarg ;;
505
506   -program-prefix | --program-prefix | --program-prefi | --program-pref \
507   | --program-pre | --program-pr | --program-p)
508     ac_prev=program_prefix ;;
509   -program-prefix=* | --program-prefix=* | --program-prefi=* \
510   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511     program_prefix=$ac_optarg ;;
512
513   -program-suffix | --program-suffix | --program-suffi | --program-suff \
514   | --program-suf | --program-su | --program-s)
515     ac_prev=program_suffix ;;
516   -program-suffix=* | --program-suffix=* | --program-suffi=* \
517   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518     program_suffix=$ac_optarg ;;
519
520   -program-transform-name | --program-transform-name \
521   | --program-transform-nam | --program-transform-na \
522   | --program-transform-n | --program-transform- \
523   | --program-transform | --program-transfor \
524   | --program-transfo | --program-transf \
525   | --program-trans | --program-tran \
526   | --progr-tra | --program-tr | --program-t)
527     ac_prev=program_transform_name ;;
528   -program-transform-name=* | --program-transform-name=* \
529   | --program-transform-nam=* | --program-transform-na=* \
530   | --program-transform-n=* | --program-transform-=* \
531   | --program-transform=* | --program-transfor=* \
532   | --program-transfo=* | --program-transf=* \
533   | --program-trans=* | --program-tran=* \
534   | --progr-tra=* | --program-tr=* | --program-t=*)
535     program_transform_name=$ac_optarg ;;
536
537   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538   | -silent | --silent | --silen | --sile | --sil)
539     silent=yes ;;
540
541   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542     ac_prev=sbindir ;;
543   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544   | --sbi=* | --sb=*)
545     sbindir=$ac_optarg ;;
546
547   -sharedstatedir | --sharedstatedir | --sharedstatedi \
548   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549   | --sharedst | --shareds | --shared | --share | --shar \
550   | --sha | --sh)
551     ac_prev=sharedstatedir ;;
552   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555   | --sha=* | --sh=*)
556     sharedstatedir=$ac_optarg ;;
557
558   -site | --site | --sit)
559     ac_prev=site ;;
560   -site=* | --site=* | --sit=*)
561     site=$ac_optarg ;;
562
563   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564     ac_prev=srcdir ;;
565   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566     srcdir=$ac_optarg ;;
567
568   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569   | --syscon | --sysco | --sysc | --sys | --sy)
570     ac_prev=sysconfdir ;;
571   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573     sysconfdir=$ac_optarg ;;
574
575   -target | --target | --targe | --targ | --tar | --ta | --t)
576     ac_prev=target_alias ;;
577   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578     target_alias=$ac_optarg ;;
579
580   -v | -verbose | --verbose | --verbos | --verbo | --verb)
581     verbose=yes ;;
582
583   -version | --version | --versio | --versi | --vers | -V)
584     ac_init_version=: ;;
585
586   -with-* | --with-*)
587     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588     # Reject names that are not valid shell variable names.
589     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590       { echo "$as_me: error: invalid package name: $ac_package" >&2
591    { (exit 1); exit 1; }; }
592     ac_package=`echo $ac_package| sed 's/-/_/g'`
593     case $ac_option in
594       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
595       *) ac_optarg=yes ;;
596     esac
597     eval "with_$ac_package='$ac_optarg'" ;;
598
599   -without-* | --without-*)
600     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601     # Reject names that are not valid shell variable names.
602     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603       { echo "$as_me: error: invalid package name: $ac_package" >&2
604    { (exit 1); exit 1; }; }
605     ac_package=`echo $ac_package | sed 's/-/_/g'`
606     eval "with_$ac_package=no" ;;
607
608   --x)
609     # Obsolete; use --with-x.
610     with_x=yes ;;
611
612   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613   | --x-incl | --x-inc | --x-in | --x-i)
614     ac_prev=x_includes ;;
615   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617     x_includes=$ac_optarg ;;
618
619   -x-libraries | --x-libraries | --x-librarie | --x-librari \
620   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621     ac_prev=x_libraries ;;
622   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624     x_libraries=$ac_optarg ;;
625
626   -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628    { (exit 1); exit 1; }; }
629     ;;
630
631   *=*)
632     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633     # Reject names that are not valid shell variable names.
634     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636    { (exit 1); exit 1; }; }
637     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638     eval "$ac_envvar='$ac_optarg'"
639     export $ac_envvar ;;
640
641   *)
642     # FIXME: should be removed in autoconf 3.0.
643     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
647     ;;
648
649   esac
650 done
651
652 if test -n "$ac_prev"; then
653   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654   { echo "$as_me: error: missing argument to $ac_option" >&2
655    { (exit 1); exit 1; }; }
656 fi
657
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
660 do
661   eval ac_val=$`echo $ac_var`
662   case $ac_val in
663     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665    { (exit 1); exit 1; }; };;
666   esac
667 done
668
669 # Be sure to have absolute paths.
670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671               localstatedir libdir includedir oldincludedir infodir mandir
672 do
673   eval ac_val=$`echo $ac_var`
674   case $ac_val in
675     [\\/$]* | ?:[\\/]* ) ;;
676     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677    { (exit 1); exit 1; }; };;
678   esac
679 done
680
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
684 build=$build_alias
685 host=$host_alias
686 target=$target_alias
687
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x; then
690   if test "x$build_alias" = x; then
691     cross_compiling=maybe
692     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693     If a cross compiler is detected then cross compile mode will be used." >&2
694   elif test "x$build_alias" != "x$host_alias"; then
695     cross_compiling=yes
696   fi
697 fi
698
699 ac_tool_prefix=
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
701
702 test "$silent" = yes && exec 6>/dev/null
703
704
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707   ac_srcdir_defaulted=yes
708   # Try the directory containing this script, then its parent.
709   ac_confdir=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711          X"$0" : 'X\(//\)[^/]' \| \
712          X"$0" : 'X\(//\)$' \| \
713          X"$0" : 'X\(/\)' \| \
714          .     : '\(.\)' 2>/dev/null ||
715 echo X"$0" |
716     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718           /^X\(\/\/\)$/{ s//\1/; q; }
719           /^X\(\/\).*/{ s//\1/; q; }
720           s/.*/./; q'`
721   srcdir=$ac_confdir
722   if test ! -r $srcdir/$ac_unique_file; then
723     srcdir=..
724   fi
725 else
726   ac_srcdir_defaulted=no
727 fi
728 if test ! -r $srcdir/$ac_unique_file; then
729   if test "$ac_srcdir_defaulted" = yes; then
730     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731    { (exit 1); exit 1; }; }
732   else
733     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734    { (exit 1); exit 1; }; }
735   fi
736 fi
737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739    { (exit 1); exit 1; }; }
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set=${build_alias+set}
742 ac_env_build_alias_value=$build_alias
743 ac_cv_env_build_alias_set=${build_alias+set}
744 ac_cv_env_build_alias_value=$build_alias
745 ac_env_host_alias_set=${host_alias+set}
746 ac_env_host_alias_value=$host_alias
747 ac_cv_env_host_alias_set=${host_alias+set}
748 ac_cv_env_host_alias_value=$host_alias
749 ac_env_target_alias_set=${target_alias+set}
750 ac_env_target_alias_value=$target_alias
751 ac_cv_env_target_alias_set=${target_alias+set}
752 ac_cv_env_target_alias_value=$target_alias
753 ac_env_CC_set=${CC+set}
754 ac_env_CC_value=$CC
755 ac_cv_env_CC_set=${CC+set}
756 ac_cv_env_CC_value=$CC
757 ac_env_CFLAGS_set=${CFLAGS+set}
758 ac_env_CFLAGS_value=$CFLAGS
759 ac_cv_env_CFLAGS_set=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value=$CFLAGS
761 ac_env_LDFLAGS_set=${LDFLAGS+set}
762 ac_env_LDFLAGS_value=$LDFLAGS
763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value=$LDFLAGS
765 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769 ac_env_CPP_set=${CPP+set}
770 ac_env_CPP_value=$CPP
771 ac_cv_env_CPP_set=${CPP+set}
772 ac_cv_env_CPP_value=$CPP
773
774 #
775 # Report the --help message.
776 #
777 if test "$ac_init_help" = "long"; then
778   # Omit some internal or obsolete options to make the list less imposing.
779   # This message is too long to be a string in the A/UX 3.1 sh.
780   cat <<_ACEOF
781 \`configure' configures this package to adapt to many kinds of systems.
782
783 Usage: $0 [OPTION]... [VAR=VALUE]...
784
785 To assign environment variables (e.g., CC, CFLAGS...), specify them as
786 VAR=VALUE.  See below for descriptions of some of the useful variables.
787
788 Defaults for the options are specified in brackets.
789
790 Configuration:
791   -h, --help              display this help and exit
792       --help=short        display options specific to this package
793       --help=recursive    display the short help of all the included packages
794   -V, --version           display version information and exit
795   -q, --quiet, --silent   do not print \`checking...' messages
796       --cache-file=FILE   cache test results in FILE [disabled]
797   -C, --config-cache      alias for \`--cache-file=config.cache'
798   -n, --no-create         do not create output files
799       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
800
801 _ACEOF
802
803   cat <<_ACEOF
804 Installation directories:
805   --prefix=PREFIX         install architecture-independent files in PREFIX
806                           [$ac_default_prefix]
807   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
808                           [PREFIX]
809
810 By default, \`make install' will install all the files in
811 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
812 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
813 for instance \`--prefix=\$HOME'.
814
815 For better control, use the options below.
816
817 Fine tuning of the installation directories:
818   --bindir=DIR           user executables [EPREFIX/bin]
819   --sbindir=DIR          system admin executables [EPREFIX/sbin]
820   --libexecdir=DIR       program executables [EPREFIX/libexec]
821   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
822   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
823   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
824   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
825   --libdir=DIR           object code libraries [EPREFIX/lib]
826   --includedir=DIR       C header files [PREFIX/include]
827   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
828   --infodir=DIR          info documentation [PREFIX/info]
829   --mandir=DIR           man documentation [PREFIX/man]
830 _ACEOF
831
832   cat <<\_ACEOF
833
834 System types:
835   --build=BUILD     configure for building on BUILD [guessed]
836   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
837 _ACEOF
838 fi
839
840 if test -n "$ac_init_help"; then
841
842   cat <<\_ACEOF
843
844 Optional Features:
845   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
846   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
847   --enable-smb            enable possibly-buggy SMB printer default=yes
848   --disable-smb           disable possibly-buggy SMB printer
849   --enable-ipv6           enable ipv6 (with ipv4) support
850   --disable-ipv6          disable ipv6 support
851
852 Optional Packages:
853   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
854   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
855   --without-gcc           don't use gcc
856   --with-user=USERNAME    drop privileges by default to USERNAME
857   --with-chroot=DIRECTORY when dropping privileges, chroot to DIRECTORY
858   --without-crypto        disable crypto support
859
860 Some influential environment variables:
861   CC          C compiler command
862   CFLAGS      C compiler flags
863   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
864               nonstandard directory <lib dir>
865   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
866               headers in a nonstandard directory <include dir>
867   CPP         C preprocessor
868
869 Use these variables to override the choices made by `configure' or to help
870 it to find libraries and programs with nonstandard names/locations.
871
872 _ACEOF
873 fi
874
875 if test "$ac_init_help" = "recursive"; then
876   # If there are subdirs, report their specific --help.
877   ac_popdir=`pwd`
878   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
879     test -d $ac_dir || continue
880     ac_builddir=.
881
882 if test "$ac_dir" != .; then
883   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
884   # A "../" for each directory in $ac_dir_suffix.
885   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
886 else
887   ac_dir_suffix= ac_top_builddir=
888 fi
889
890 case $srcdir in
891   .)  # No --srcdir option.  We are building in place.
892     ac_srcdir=.
893     if test -z "$ac_top_builddir"; then
894        ac_top_srcdir=.
895     else
896        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
897     fi ;;
898   [\\/]* | ?:[\\/]* )  # Absolute path.
899     ac_srcdir=$srcdir$ac_dir_suffix;
900     ac_top_srcdir=$srcdir ;;
901   *) # Relative path.
902     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
903     ac_top_srcdir=$ac_top_builddir$srcdir ;;
904 esac
905 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
906 # absolute.
907 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
908 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
909 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
910 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
911
912     cd $ac_dir
913     # Check for guested configure; otherwise get Cygnus style configure.
914     if test -f $ac_srcdir/configure.gnu; then
915       echo
916       $SHELL $ac_srcdir/configure.gnu  --help=recursive
917     elif test -f $ac_srcdir/configure; then
918       echo
919       $SHELL $ac_srcdir/configure  --help=recursive
920     elif test -f $ac_srcdir/configure.ac ||
921            test -f $ac_srcdir/configure.in; then
922       echo
923       $ac_configure --help
924     else
925       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
926     fi
927     cd $ac_popdir
928   done
929 fi
930
931 test -n "$ac_init_help" && exit 0
932 if $ac_init_version; then
933   cat <<\_ACEOF
934
935 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
936 Free Software Foundation, Inc.
937 This configure script is free software; the Free Software Foundation
938 gives unlimited permission to copy, distribute and modify it.
939 _ACEOF
940   exit 0
941 fi
942 exec 5>config.log
943 cat >&5 <<_ACEOF
944 This file contains any messages produced by compilers while
945 running configure, to aid debugging if configure makes a mistake.
946
947 It was created by $as_me, which was
948 generated by GNU Autoconf 2.57.  Invocation command line was
949
950   $ $0 $@
951
952 _ACEOF
953 {
954 cat <<_ASUNAME
955 ## --------- ##
956 ## Platform. ##
957 ## --------- ##
958
959 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
960 uname -m = `(uname -m) 2>/dev/null || echo unknown`
961 uname -r = `(uname -r) 2>/dev/null || echo unknown`
962 uname -s = `(uname -s) 2>/dev/null || echo unknown`
963 uname -v = `(uname -v) 2>/dev/null || echo unknown`
964
965 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
966 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
967
968 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
969 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
970 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
971 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
972 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
973 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
974 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
975
976 _ASUNAME
977
978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
979 for as_dir in $PATH
980 do
981   IFS=$as_save_IFS
982   test -z "$as_dir" && as_dir=.
983   echo "PATH: $as_dir"
984 done
985
986 } >&5
987
988 cat >&5 <<_ACEOF
989
990
991 ## ----------- ##
992 ## Core tests. ##
993 ## ----------- ##
994
995 _ACEOF
996
997
998 # Keep a trace of the command line.
999 # Strip out --no-create and --no-recursion so they do not pile up.
1000 # Strip out --silent because we don't want to record it for future runs.
1001 # Also quote any args containing shell meta-characters.
1002 # Make two passes to allow for proper duplicate-argument suppression.
1003 ac_configure_args=
1004 ac_configure_args0=
1005 ac_configure_args1=
1006 ac_sep=
1007 ac_must_keep_next=false
1008 for ac_pass in 1 2
1009 do
1010   for ac_arg
1011   do
1012     case $ac_arg in
1013     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1014     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1015     | -silent | --silent | --silen | --sile | --sil)
1016       continue ;;
1017     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1018       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1019     esac
1020     case $ac_pass in
1021     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1022     2)
1023       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1024       if test $ac_must_keep_next = true; then
1025         ac_must_keep_next=false # Got value, back to normal.
1026       else
1027         case $ac_arg in
1028           *=* | --config-cache | -C | -disable-* | --disable-* \
1029           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1030           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1031           | -with-* | --with-* | -without-* | --without-* | --x)
1032             case "$ac_configure_args0 " in
1033               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1034             esac
1035             ;;
1036           -* ) ac_must_keep_next=true ;;
1037         esac
1038       fi
1039       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1040       # Get rid of the leading space.
1041       ac_sep=" "
1042       ;;
1043     esac
1044   done
1045 done
1046 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1047 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1048
1049 # When interrupted or exit'd, cleanup temporary files, and complete
1050 # config.log.  We remove comments because anyway the quotes in there
1051 # would cause problems or look ugly.
1052 # WARNING: Be sure not to use single quotes in there, as some shells,
1053 # such as our DU 5.0 friend, will then `close' the trap.
1054 trap 'exit_status=$?
1055   # Save into config.log some information that might help in debugging.
1056   {
1057     echo
1058
1059     cat <<\_ASBOX
1060 ## ---------------- ##
1061 ## Cache variables. ##
1062 ## ---------------- ##
1063 _ASBOX
1064     echo
1065     # The following way of writing the cache mishandles newlines in values,
1066 {
1067   (set) 2>&1 |
1068     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1069     *ac_space=\ *)
1070       sed -n \
1071         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1072           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1073       ;;
1074     *)
1075       sed -n \
1076         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1077       ;;
1078     esac;
1079 }
1080     echo
1081
1082     cat <<\_ASBOX
1083 ## ----------------- ##
1084 ## Output variables. ##
1085 ## ----------------- ##
1086 _ASBOX
1087     echo
1088     for ac_var in $ac_subst_vars
1089     do
1090       eval ac_val=$`echo $ac_var`
1091       echo "$ac_var='"'"'$ac_val'"'"'"
1092     done | sort
1093     echo
1094
1095     if test -n "$ac_subst_files"; then
1096       cat <<\_ASBOX
1097 ## ------------- ##
1098 ## Output files. ##
1099 ## ------------- ##
1100 _ASBOX
1101       echo
1102       for ac_var in $ac_subst_files
1103       do
1104         eval ac_val=$`echo $ac_var`
1105         echo "$ac_var='"'"'$ac_val'"'"'"
1106       done | sort
1107       echo
1108     fi
1109
1110     if test -s confdefs.h; then
1111       cat <<\_ASBOX
1112 ## ----------- ##
1113 ## confdefs.h. ##
1114 ## ----------- ##
1115 _ASBOX
1116       echo
1117       sed "/^$/d" confdefs.h | sort
1118       echo
1119     fi
1120     test "$ac_signal" != 0 &&
1121       echo "$as_me: caught signal $ac_signal"
1122     echo "$as_me: exit $exit_status"
1123   } >&5
1124   rm -f core core.* *.core &&
1125   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1126     exit $exit_status
1127      ' 0
1128 for ac_signal in 1 2 13 15; do
1129   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1130 done
1131 ac_signal=0
1132
1133 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1134 rm -rf conftest* confdefs.h
1135 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1136 echo >confdefs.h
1137
1138 # Predefined preprocessor variables.
1139
1140 cat >>confdefs.h <<_ACEOF
1141 #define PACKAGE_NAME "$PACKAGE_NAME"
1142 _ACEOF
1143
1144
1145 cat >>confdefs.h <<_ACEOF
1146 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1147 _ACEOF
1148
1149
1150 cat >>confdefs.h <<_ACEOF
1151 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1152 _ACEOF
1153
1154
1155 cat >>confdefs.h <<_ACEOF
1156 #define PACKAGE_STRING "$PACKAGE_STRING"
1157 _ACEOF
1158
1159
1160 cat >>confdefs.h <<_ACEOF
1161 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1162 _ACEOF
1163
1164
1165 # Let the site file select an alternate cache file if it wants to.
1166 # Prefer explicitly selected file to automatically selected ones.
1167 if test -z "$CONFIG_SITE"; then
1168   if test "x$prefix" != xNONE; then
1169     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1170   else
1171     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1172   fi
1173 fi
1174 for ac_site_file in $CONFIG_SITE; do
1175   if test -r "$ac_site_file"; then
1176     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1177 echo "$as_me: loading site script $ac_site_file" >&6;}
1178     sed 's/^/| /' "$ac_site_file" >&5
1179     . "$ac_site_file"
1180   fi
1181 done
1182
1183 if test -r "$cache_file"; then
1184   # Some versions of bash will fail to source /dev/null (special
1185   # files actually), so we avoid doing that.
1186   if test -f "$cache_file"; then
1187     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1188 echo "$as_me: loading cache $cache_file" >&6;}
1189     case $cache_file in
1190       [\\/]* | ?:[\\/]* ) . $cache_file;;
1191       *)                      . ./$cache_file;;
1192     esac
1193   fi
1194 else
1195   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1196 echo "$as_me: creating cache $cache_file" >&6;}
1197   >$cache_file
1198 fi
1199
1200 # Check that the precious variables saved in the cache have kept the same
1201 # value.
1202 ac_cache_corrupted=false
1203 for ac_var in `(set) 2>&1 |
1204                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1205   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1206   eval ac_new_set=\$ac_env_${ac_var}_set
1207   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1208   eval ac_new_val="\$ac_env_${ac_var}_value"
1209   case $ac_old_set,$ac_new_set in
1210     set,)
1211       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1212 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1213       ac_cache_corrupted=: ;;
1214     ,set)
1215       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1216 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1217       ac_cache_corrupted=: ;;
1218     ,);;
1219     *)
1220       if test "x$ac_old_val" != "x$ac_new_val"; then
1221         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1222 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1223         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1224 echo "$as_me:   former value:  $ac_old_val" >&2;}
1225         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1226 echo "$as_me:   current value: $ac_new_val" >&2;}
1227         ac_cache_corrupted=:
1228       fi;;
1229   esac
1230   # Pass precious variables to config.status.
1231   if test "$ac_new_set" = set; then
1232     case $ac_new_val in
1233     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1234       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1235     *) ac_arg=$ac_var=$ac_new_val ;;
1236     esac
1237     case " $ac_configure_args " in
1238       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1239       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1240     esac
1241   fi
1242 done
1243 if $ac_cache_corrupted; then
1244   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1245 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1246   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1247 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1248    { (exit 1); exit 1; }; }
1249 fi
1250
1251 ac_ext=c
1252 ac_cpp='$CPP $CPPFLAGS'
1253 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1254 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1255 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276 ac_aux_dir=
1277 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1278   if test -f $ac_dir/install-sh; then
1279     ac_aux_dir=$ac_dir
1280     ac_install_sh="$ac_aux_dir/install-sh -c"
1281     break
1282   elif test -f $ac_dir/install.sh; then
1283     ac_aux_dir=$ac_dir
1284     ac_install_sh="$ac_aux_dir/install.sh -c"
1285     break
1286   elif test -f $ac_dir/shtool; then
1287     ac_aux_dir=$ac_dir
1288     ac_install_sh="$ac_aux_dir/shtool install -c"
1289     break
1290   fi
1291 done
1292 if test -z "$ac_aux_dir"; then
1293   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1294 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1295    { (exit 1); exit 1; }; }
1296 fi
1297 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1298 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1299 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1300
1301 # Make sure we can run config.sub.
1302 $ac_config_sub sun4 >/dev/null 2>&1 ||
1303   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1304 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1305    { (exit 1); exit 1; }; }
1306
1307 echo "$as_me:$LINENO: checking build system type" >&5
1308 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1309 if test "${ac_cv_build+set}" = set; then
1310   echo $ECHO_N "(cached) $ECHO_C" >&6
1311 else
1312   ac_cv_build_alias=$build_alias
1313 test -z "$ac_cv_build_alias" &&
1314   ac_cv_build_alias=`$ac_config_guess`
1315 test -z "$ac_cv_build_alias" &&
1316   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1317 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1318    { (exit 1); exit 1; }; }
1319 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1320   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1321 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1322    { (exit 1); exit 1; }; }
1323
1324 fi
1325 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1326 echo "${ECHO_T}$ac_cv_build" >&6
1327 build=$ac_cv_build
1328 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1329 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1330 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1331
1332
1333 echo "$as_me:$LINENO: checking host system type" >&5
1334 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1335 if test "${ac_cv_host+set}" = set; then
1336   echo $ECHO_N "(cached) $ECHO_C" >&6
1337 else
1338   ac_cv_host_alias=$host_alias
1339 test -z "$ac_cv_host_alias" &&
1340   ac_cv_host_alias=$ac_cv_build_alias
1341 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1342   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1343 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1344    { (exit 1); exit 1; }; }
1345
1346 fi
1347 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1348 echo "${ECHO_T}$ac_cv_host" >&6
1349 host=$ac_cv_host
1350 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1351 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1352 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1353
1354
1355
1356
1357
1358
1359
1360
1361 # Check whether --with-gcc or --without-gcc was given.
1362 if test "${with_gcc+set}" = set; then
1363   withval="$with_gcc"
1364
1365 fi;
1366     V_CCOPT="-O"
1367     V_INCLS=""
1368     if test "${srcdir}" != "." ; then
1369             V_INCLS="-I\$(srcdir)"
1370     fi
1371     if test "${CFLAGS+set}" = set; then
1372             LBL_CFLAGS="$CFLAGS"
1373     fi
1374     if test -z "$CC" ; then
1375             case "$host_os" in
1376
1377             bsdi*)
1378                     # Extract the first word of "shlicc2", so it can be a program name with args.
1379 set dummy shlicc2; ac_word=$2
1380 echo "$as_me:$LINENO: checking for $ac_word" >&5
1381 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1382 if test "${ac_cv_prog_SHLICC2+set}" = set; then
1383   echo $ECHO_N "(cached) $ECHO_C" >&6
1384 else
1385   if test -n "$SHLICC2"; then
1386   ac_cv_prog_SHLICC2="$SHLICC2" # Let the user override the test.
1387 else
1388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1389 for as_dir in $PATH
1390 do
1391   IFS=$as_save_IFS
1392   test -z "$as_dir" && as_dir=.
1393   for ac_exec_ext in '' $ac_executable_extensions; do
1394   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1395     ac_cv_prog_SHLICC2="yes"
1396     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1397     break 2
1398   fi
1399 done
1400 done
1401
1402   test -z "$ac_cv_prog_SHLICC2" && ac_cv_prog_SHLICC2="no"
1403 fi
1404 fi
1405 SHLICC2=$ac_cv_prog_SHLICC2
1406 if test -n "$SHLICC2"; then
1407   echo "$as_me:$LINENO: result: $SHLICC2" >&5
1408 echo "${ECHO_T}$SHLICC2" >&6
1409 else
1410   echo "$as_me:$LINENO: result: no" >&5
1411 echo "${ECHO_T}no" >&6
1412 fi
1413
1414                     if test $SHLICC2 = yes ; then
1415                             CC=shlicc2
1416                             export CC
1417                     fi
1418                     ;;
1419             esac
1420     fi
1421     if test -z "$CC" -a "$with_gcc" = no ; then
1422             CC=cc
1423             export CC
1424     fi
1425     ac_ext=c
1426 ac_cpp='$CPP $CPPFLAGS'
1427 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1428 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1429 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1430 if test -n "$ac_tool_prefix"; then
1431   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1432 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1433 echo "$as_me:$LINENO: checking for $ac_word" >&5
1434 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1435 if test "${ac_cv_prog_CC+set}" = set; then
1436   echo $ECHO_N "(cached) $ECHO_C" >&6
1437 else
1438   if test -n "$CC"; then
1439   ac_cv_prog_CC="$CC" # Let the user override the test.
1440 else
1441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1442 for as_dir in $PATH
1443 do
1444   IFS=$as_save_IFS
1445   test -z "$as_dir" && as_dir=.
1446   for ac_exec_ext in '' $ac_executable_extensions; do
1447   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1448     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1449     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1450     break 2
1451   fi
1452 done
1453 done
1454
1455 fi
1456 fi
1457 CC=$ac_cv_prog_CC
1458 if test -n "$CC"; then
1459   echo "$as_me:$LINENO: result: $CC" >&5
1460 echo "${ECHO_T}$CC" >&6
1461 else
1462   echo "$as_me:$LINENO: result: no" >&5
1463 echo "${ECHO_T}no" >&6
1464 fi
1465
1466 fi
1467 if test -z "$ac_cv_prog_CC"; then
1468   ac_ct_CC=$CC
1469   # Extract the first word of "gcc", so it can be a program name with args.
1470 set dummy gcc; ac_word=$2
1471 echo "$as_me:$LINENO: checking for $ac_word" >&5
1472 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1473 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1474   echo $ECHO_N "(cached) $ECHO_C" >&6
1475 else
1476   if test -n "$ac_ct_CC"; then
1477   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1478 else
1479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1480 for as_dir in $PATH
1481 do
1482   IFS=$as_save_IFS
1483   test -z "$as_dir" && as_dir=.
1484   for ac_exec_ext in '' $ac_executable_extensions; do
1485   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1486     ac_cv_prog_ac_ct_CC="gcc"
1487     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1488     break 2
1489   fi
1490 done
1491 done
1492
1493 fi
1494 fi
1495 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1496 if test -n "$ac_ct_CC"; then
1497   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1498 echo "${ECHO_T}$ac_ct_CC" >&6
1499 else
1500   echo "$as_me:$LINENO: result: no" >&5
1501 echo "${ECHO_T}no" >&6
1502 fi
1503
1504   CC=$ac_ct_CC
1505 else
1506   CC="$ac_cv_prog_CC"
1507 fi
1508
1509 if test -z "$CC"; then
1510   if test -n "$ac_tool_prefix"; then
1511   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1512 set dummy ${ac_tool_prefix}cc; ac_word=$2
1513 echo "$as_me:$LINENO: checking for $ac_word" >&5
1514 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1515 if test "${ac_cv_prog_CC+set}" = set; then
1516   echo $ECHO_N "(cached) $ECHO_C" >&6
1517 else
1518   if test -n "$CC"; then
1519   ac_cv_prog_CC="$CC" # Let the user override the test.
1520 else
1521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1522 for as_dir in $PATH
1523 do
1524   IFS=$as_save_IFS
1525   test -z "$as_dir" && as_dir=.
1526   for ac_exec_ext in '' $ac_executable_extensions; do
1527   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1528     ac_cv_prog_CC="${ac_tool_prefix}cc"
1529     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1530     break 2
1531   fi
1532 done
1533 done
1534
1535 fi
1536 fi
1537 CC=$ac_cv_prog_CC
1538 if test -n "$CC"; then
1539   echo "$as_me:$LINENO: result: $CC" >&5
1540 echo "${ECHO_T}$CC" >&6
1541 else
1542   echo "$as_me:$LINENO: result: no" >&5
1543 echo "${ECHO_T}no" >&6
1544 fi
1545
1546 fi
1547 if test -z "$ac_cv_prog_CC"; then
1548   ac_ct_CC=$CC
1549   # Extract the first word of "cc", so it can be a program name with args.
1550 set dummy cc; ac_word=$2
1551 echo "$as_me:$LINENO: checking for $ac_word" >&5
1552 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1553 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1554   echo $ECHO_N "(cached) $ECHO_C" >&6
1555 else
1556   if test -n "$ac_ct_CC"; then
1557   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1558 else
1559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1560 for as_dir in $PATH
1561 do
1562   IFS=$as_save_IFS
1563   test -z "$as_dir" && as_dir=.
1564   for ac_exec_ext in '' $ac_executable_extensions; do
1565   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1566     ac_cv_prog_ac_ct_CC="cc"
1567     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1568     break 2
1569   fi
1570 done
1571 done
1572
1573 fi
1574 fi
1575 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1576 if test -n "$ac_ct_CC"; then
1577   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1578 echo "${ECHO_T}$ac_ct_CC" >&6
1579 else
1580   echo "$as_me:$LINENO: result: no" >&5
1581 echo "${ECHO_T}no" >&6
1582 fi
1583
1584   CC=$ac_ct_CC
1585 else
1586   CC="$ac_cv_prog_CC"
1587 fi
1588
1589 fi
1590 if test -z "$CC"; then
1591   # Extract the first word of "cc", so it can be a program name with args.
1592 set dummy cc; ac_word=$2
1593 echo "$as_me:$LINENO: checking for $ac_word" >&5
1594 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1595 if test "${ac_cv_prog_CC+set}" = set; then
1596   echo $ECHO_N "(cached) $ECHO_C" >&6
1597 else
1598   if test -n "$CC"; then
1599   ac_cv_prog_CC="$CC" # Let the user override the test.
1600 else
1601   ac_prog_rejected=no
1602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1603 for as_dir in $PATH
1604 do
1605   IFS=$as_save_IFS
1606   test -z "$as_dir" && as_dir=.
1607   for ac_exec_ext in '' $ac_executable_extensions; do
1608   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1609     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1610        ac_prog_rejected=yes
1611        continue
1612      fi
1613     ac_cv_prog_CC="cc"
1614     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1615     break 2
1616   fi
1617 done
1618 done
1619
1620 if test $ac_prog_rejected = yes; then
1621   # We found a bogon in the path, so make sure we never use it.
1622   set dummy $ac_cv_prog_CC
1623   shift
1624   if test $# != 0; then
1625     # We chose a different compiler from the bogus one.
1626     # However, it has the same basename, so the bogon will be chosen
1627     # first if we set CC to just the basename; use the full file name.
1628     shift
1629     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1630   fi
1631 fi
1632 fi
1633 fi
1634 CC=$ac_cv_prog_CC
1635 if test -n "$CC"; then
1636   echo "$as_me:$LINENO: result: $CC" >&5
1637 echo "${ECHO_T}$CC" >&6
1638 else
1639   echo "$as_me:$LINENO: result: no" >&5
1640 echo "${ECHO_T}no" >&6
1641 fi
1642
1643 fi
1644 if test -z "$CC"; then
1645   if test -n "$ac_tool_prefix"; then
1646   for ac_prog in cl
1647   do
1648     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1649 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1650 echo "$as_me:$LINENO: checking for $ac_word" >&5
1651 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1652 if test "${ac_cv_prog_CC+set}" = set; then
1653   echo $ECHO_N "(cached) $ECHO_C" >&6
1654 else
1655   if test -n "$CC"; then
1656   ac_cv_prog_CC="$CC" # Let the user override the test.
1657 else
1658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1659 for as_dir in $PATH
1660 do
1661   IFS=$as_save_IFS
1662   test -z "$as_dir" && as_dir=.
1663   for ac_exec_ext in '' $ac_executable_extensions; do
1664   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1665     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1666     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1667     break 2
1668   fi
1669 done
1670 done
1671
1672 fi
1673 fi
1674 CC=$ac_cv_prog_CC
1675 if test -n "$CC"; then
1676   echo "$as_me:$LINENO: result: $CC" >&5
1677 echo "${ECHO_T}$CC" >&6
1678 else
1679   echo "$as_me:$LINENO: result: no" >&5
1680 echo "${ECHO_T}no" >&6
1681 fi
1682
1683     test -n "$CC" && break
1684   done
1685 fi
1686 if test -z "$CC"; then
1687   ac_ct_CC=$CC
1688   for ac_prog in cl
1689 do
1690   # Extract the first word of "$ac_prog", so it can be a program name with args.
1691 set dummy $ac_prog; ac_word=$2
1692 echo "$as_me:$LINENO: checking for $ac_word" >&5
1693 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1694 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1695   echo $ECHO_N "(cached) $ECHO_C" >&6
1696 else
1697   if test -n "$ac_ct_CC"; then
1698   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1699 else
1700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1701 for as_dir in $PATH
1702 do
1703   IFS=$as_save_IFS
1704   test -z "$as_dir" && as_dir=.
1705   for ac_exec_ext in '' $ac_executable_extensions; do
1706   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1707     ac_cv_prog_ac_ct_CC="$ac_prog"
1708     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1709     break 2
1710   fi
1711 done
1712 done
1713
1714 fi
1715 fi
1716 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1717 if test -n "$ac_ct_CC"; then
1718   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1719 echo "${ECHO_T}$ac_ct_CC" >&6
1720 else
1721   echo "$as_me:$LINENO: result: no" >&5
1722 echo "${ECHO_T}no" >&6
1723 fi
1724
1725   test -n "$ac_ct_CC" && break
1726 done
1727
1728   CC=$ac_ct_CC
1729 fi
1730
1731 fi
1732
1733
1734 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1735 See \`config.log' for more details." >&5
1736 echo "$as_me: error: no acceptable C compiler found in \$PATH
1737 See \`config.log' for more details." >&2;}
1738    { (exit 1); exit 1; }; }
1739
1740 # Provide some information about the compiler.
1741 echo "$as_me:$LINENO:" \
1742      "checking for C compiler version" >&5
1743 ac_compiler=`set X $ac_compile; echo $2`
1744 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1745   (eval $ac_compiler --version </dev/null >&5) 2>&5
1746   ac_status=$?
1747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1748   (exit $ac_status); }
1749 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1750   (eval $ac_compiler -v </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
1760 cat >conftest.$ac_ext <<_ACEOF
1761 #line $LINENO "configure"
1762 /* confdefs.h.  */
1763 _ACEOF
1764 cat confdefs.h >>conftest.$ac_ext
1765 cat >>conftest.$ac_ext <<_ACEOF
1766 /* end confdefs.h.  */
1767
1768 int
1769 main ()
1770 {
1771
1772   ;
1773   return 0;
1774 }
1775 _ACEOF
1776 ac_clean_files_save=$ac_clean_files
1777 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1778 # Try to create an executable without -o first, disregard a.out.
1779 # It will help us diagnose broken compilers, and finding out an intuition
1780 # of exeext.
1781 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1782 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1783 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1784 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1785   (eval $ac_link_default) 2>&5
1786   ac_status=$?
1787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1788   (exit $ac_status); }; then
1789   # Find the output, starting from the most likely.  This scheme is
1790 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1791 # resort.
1792
1793 # Be careful to initialize this variable, since it used to be cached.
1794 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1795 ac_cv_exeext=
1796 # b.out is created by i960 compilers.
1797 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1798 do
1799   test -f "$ac_file" || continue
1800   case $ac_file in
1801     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1802         ;;
1803     conftest.$ac_ext )
1804         # This is the source file.
1805         ;;
1806     [ab].out )
1807         # We found the default executable, but exeext='' is most
1808         # certainly right.
1809         break;;
1810     *.* )
1811         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1812         # FIXME: I believe we export ac_cv_exeext for Libtool,
1813         # but it would be cool to find out if it's true.  Does anybody
1814         # maintain Libtool? --akim.
1815         export ac_cv_exeext
1816         break;;
1817     * )
1818         break;;
1819   esac
1820 done
1821 else
1822   echo "$as_me: failed program was:" >&5
1823 sed 's/^/| /' conftest.$ac_ext >&5
1824
1825 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1826 See \`config.log' for more details." >&5
1827 echo "$as_me: error: C compiler cannot create executables
1828 See \`config.log' for more details." >&2;}
1829    { (exit 77); exit 77; }; }
1830 fi
1831
1832 ac_exeext=$ac_cv_exeext
1833 echo "$as_me:$LINENO: result: $ac_file" >&5
1834 echo "${ECHO_T}$ac_file" >&6
1835
1836 # Check the compiler produces executables we can run.  If not, either
1837 # the compiler is broken, or we cross compile.
1838 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1839 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1840 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1841 # If not cross compiling, check that we can run a simple program.
1842 if test "$cross_compiling" != yes; then
1843   if { ac_try='./$ac_file'
1844   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1845   (eval $ac_try) 2>&5
1846   ac_status=$?
1847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1848   (exit $ac_status); }; }; then
1849     cross_compiling=no
1850   else
1851     if test "$cross_compiling" = maybe; then
1852         cross_compiling=yes
1853     else
1854         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1855 If you meant to cross compile, use \`--host'.
1856 See \`config.log' for more details." >&5
1857 echo "$as_me: error: cannot run C compiled programs.
1858 If you meant to cross compile, use \`--host'.
1859 See \`config.log' for more details." >&2;}
1860    { (exit 1); exit 1; }; }
1861     fi
1862   fi
1863 fi
1864 echo "$as_me:$LINENO: result: yes" >&5
1865 echo "${ECHO_T}yes" >&6
1866
1867 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1868 ac_clean_files=$ac_clean_files_save
1869 # Check the compiler produces executables we can run.  If not, either
1870 # the compiler is broken, or we cross compile.
1871 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1872 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1873 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1874 echo "${ECHO_T}$cross_compiling" >&6
1875
1876 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1877 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1878 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1879   (eval $ac_link) 2>&5
1880   ac_status=$?
1881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1882   (exit $ac_status); }; then
1883   # If both `conftest.exe' and `conftest' are `present' (well, observable)
1884 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1885 # work properly (i.e., refer to `conftest.exe'), while it won't with
1886 # `rm'.
1887 for ac_file in conftest.exe conftest conftest.*; do
1888   test -f "$ac_file" || continue
1889   case $ac_file in
1890     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1891     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1892           export ac_cv_exeext
1893           break;;
1894     * ) break;;
1895   esac
1896 done
1897 else
1898   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1899 See \`config.log' for more details." >&5
1900 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1901 See \`config.log' for more details." >&2;}
1902    { (exit 1); exit 1; }; }
1903 fi
1904
1905 rm -f conftest$ac_cv_exeext
1906 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1907 echo "${ECHO_T}$ac_cv_exeext" >&6
1908
1909 rm -f conftest.$ac_ext
1910 EXEEXT=$ac_cv_exeext
1911 ac_exeext=$EXEEXT
1912 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1913 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1914 if test "${ac_cv_objext+set}" = set; then
1915   echo $ECHO_N "(cached) $ECHO_C" >&6
1916 else
1917   cat >conftest.$ac_ext <<_ACEOF
1918 #line $LINENO "configure"
1919 /* confdefs.h.  */
1920 _ACEOF
1921 cat confdefs.h >>conftest.$ac_ext
1922 cat >>conftest.$ac_ext <<_ACEOF
1923 /* end confdefs.h.  */
1924
1925 int
1926 main ()
1927 {
1928
1929   ;
1930   return 0;
1931 }
1932 _ACEOF
1933 rm -f conftest.o conftest.obj
1934 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1935   (eval $ac_compile) 2>&5
1936   ac_status=$?
1937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1938   (exit $ac_status); }; then
1939   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1940   case $ac_file in
1941     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1942     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1943        break;;
1944   esac
1945 done
1946 else
1947   echo "$as_me: failed program was:" >&5
1948 sed 's/^/| /' conftest.$ac_ext >&5
1949
1950 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1951 See \`config.log' for more details." >&5
1952 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1953 See \`config.log' for more details." >&2;}
1954    { (exit 1); exit 1; }; }
1955 fi
1956
1957 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1958 fi
1959 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1960 echo "${ECHO_T}$ac_cv_objext" >&6
1961 OBJEXT=$ac_cv_objext
1962 ac_objext=$OBJEXT
1963 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1964 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1965 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1966   echo $ECHO_N "(cached) $ECHO_C" >&6
1967 else
1968   cat >conftest.$ac_ext <<_ACEOF
1969 #line $LINENO "configure"
1970 /* confdefs.h.  */
1971 _ACEOF
1972 cat confdefs.h >>conftest.$ac_ext
1973 cat >>conftest.$ac_ext <<_ACEOF
1974 /* end confdefs.h.  */
1975
1976 int
1977 main ()
1978 {
1979 #ifndef __GNUC__
1980        choke me
1981 #endif
1982
1983   ;
1984   return 0;
1985 }
1986 _ACEOF
1987 rm -f conftest.$ac_objext
1988 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1989   (eval $ac_compile) 2>&5
1990   ac_status=$?
1991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1992   (exit $ac_status); } &&
1993          { ac_try='test -s conftest.$ac_objext'
1994   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1995   (eval $ac_try) 2>&5
1996   ac_status=$?
1997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1998   (exit $ac_status); }; }; then
1999   ac_compiler_gnu=yes
2000 else
2001   echo "$as_me: failed program was:" >&5
2002 sed 's/^/| /' conftest.$ac_ext >&5
2003
2004 ac_compiler_gnu=no
2005 fi
2006 rm -f conftest.$ac_objext conftest.$ac_ext
2007 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2008
2009 fi
2010 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2011 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2012 GCC=`test $ac_compiler_gnu = yes && echo yes`
2013 ac_test_CFLAGS=${CFLAGS+set}
2014 ac_save_CFLAGS=$CFLAGS
2015 CFLAGS="-g"
2016 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2017 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2018 if test "${ac_cv_prog_cc_g+set}" = set; then
2019   echo $ECHO_N "(cached) $ECHO_C" >&6
2020 else
2021   cat >conftest.$ac_ext <<_ACEOF
2022 #line $LINENO "configure"
2023 /* confdefs.h.  */
2024 _ACEOF
2025 cat confdefs.h >>conftest.$ac_ext
2026 cat >>conftest.$ac_ext <<_ACEOF
2027 /* end confdefs.h.  */
2028
2029 int
2030 main ()
2031 {
2032
2033   ;
2034   return 0;
2035 }
2036 _ACEOF
2037 rm -f conftest.$ac_objext
2038 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2039   (eval $ac_compile) 2>&5
2040   ac_status=$?
2041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2042   (exit $ac_status); } &&
2043          { ac_try='test -s conftest.$ac_objext'
2044   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2045   (eval $ac_try) 2>&5
2046   ac_status=$?
2047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2048   (exit $ac_status); }; }; then
2049   ac_cv_prog_cc_g=yes
2050 else
2051   echo "$as_me: failed program was:" >&5
2052 sed 's/^/| /' conftest.$ac_ext >&5
2053
2054 ac_cv_prog_cc_g=no
2055 fi
2056 rm -f conftest.$ac_objext conftest.$ac_ext
2057 fi
2058 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2059 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2060 if test "$ac_test_CFLAGS" = set; then
2061   CFLAGS=$ac_save_CFLAGS
2062 elif test $ac_cv_prog_cc_g = yes; then
2063   if test "$GCC" = yes; then
2064     CFLAGS="-g -O2"
2065   else
2066     CFLAGS="-g"
2067   fi
2068 else
2069   if test "$GCC" = yes; then
2070     CFLAGS="-O2"
2071   else
2072     CFLAGS=
2073   fi
2074 fi
2075 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2076 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2077 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2078   echo $ECHO_N "(cached) $ECHO_C" >&6
2079 else
2080   ac_cv_prog_cc_stdc=no
2081 ac_save_CC=$CC
2082 cat >conftest.$ac_ext <<_ACEOF
2083 #line $LINENO "configure"
2084 /* confdefs.h.  */
2085 _ACEOF
2086 cat confdefs.h >>conftest.$ac_ext
2087 cat >>conftest.$ac_ext <<_ACEOF
2088 /* end confdefs.h.  */
2089 #include <stdarg.h>
2090 #include <stdio.h>
2091 #include <sys/types.h>
2092 #include <sys/stat.h>
2093 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2094 struct buf { int x; };
2095 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2096 static char *e (p, i)
2097      char **p;
2098      int i;
2099 {
2100   return p[i];
2101 }
2102 static char *f (char * (*g) (char **, int), char **p, ...)
2103 {
2104   char *s;
2105   va_list v;
2106   va_start (v,p);
2107   s = g (p, va_arg (v,int));
2108   va_end (v);
2109   return s;
2110 }
2111 int test (int i, double x);
2112 struct s1 {int (*f) (int a);};
2113 struct s2 {int (*f) (double a);};
2114 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2115 int argc;
2116 char **argv;
2117 int
2118 main ()
2119 {
2120 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2121   ;
2122   return 0;
2123 }
2124 _ACEOF
2125 # Don't try gcc -ansi; that turns off useful extensions and
2126 # breaks some systems' header files.
2127 # AIX                   -qlanglvl=ansi
2128 # Ultrix and OSF/1      -std1
2129 # HP-UX 10.20 and later -Ae
2130 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2131 # SVR4                  -Xc -D__EXTENSIONS__
2132 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2133 do
2134   CC="$ac_save_CC $ac_arg"
2135   rm -f conftest.$ac_objext
2136 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2137   (eval $ac_compile) 2>&5
2138   ac_status=$?
2139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2140   (exit $ac_status); } &&
2141          { ac_try='test -s conftest.$ac_objext'
2142   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2143   (eval $ac_try) 2>&5
2144   ac_status=$?
2145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2146   (exit $ac_status); }; }; then
2147   ac_cv_prog_cc_stdc=$ac_arg
2148 break
2149 else
2150   echo "$as_me: failed program was:" >&5
2151 sed 's/^/| /' conftest.$ac_ext >&5
2152
2153 fi
2154 rm -f conftest.$ac_objext
2155 done
2156 rm -f conftest.$ac_ext conftest.$ac_objext
2157 CC=$ac_save_CC
2158
2159 fi
2160
2161 case "x$ac_cv_prog_cc_stdc" in
2162   x|xno)
2163     echo "$as_me:$LINENO: result: none needed" >&5
2164 echo "${ECHO_T}none needed" >&6 ;;
2165   *)
2166     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2167 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2168     CC="$CC $ac_cv_prog_cc_stdc" ;;
2169 esac
2170
2171 # Some people use a C++ compiler to compile C.  Since we use `exit',
2172 # in C++ we need to declare it.  In case someone uses the same compiler
2173 # for both compiling C and C++ we need to have the C++ compiler decide
2174 # the declaration of exit, since it's the most demanding environment.
2175 cat >conftest.$ac_ext <<_ACEOF
2176 #ifndef __cplusplus
2177   choke me
2178 #endif
2179 _ACEOF
2180 rm -f conftest.$ac_objext
2181 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2182   (eval $ac_compile) 2>&5
2183   ac_status=$?
2184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2185   (exit $ac_status); } &&
2186          { ac_try='test -s conftest.$ac_objext'
2187   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2188   (eval $ac_try) 2>&5
2189   ac_status=$?
2190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2191   (exit $ac_status); }; }; then
2192   for ac_declaration in \
2193    ''\
2194    '#include <stdlib.h>' \
2195    'extern "C" void std::exit (int) throw (); using std::exit;' \
2196    'extern "C" void std::exit (int); using std::exit;' \
2197    'extern "C" void exit (int) throw ();' \
2198    'extern "C" void exit (int);' \
2199    'void exit (int);'
2200 do
2201   cat >conftest.$ac_ext <<_ACEOF
2202 #line $LINENO "configure"
2203 /* confdefs.h.  */
2204 _ACEOF
2205 cat confdefs.h >>conftest.$ac_ext
2206 cat >>conftest.$ac_ext <<_ACEOF
2207 /* end confdefs.h.  */
2208 #include <stdlib.h>
2209 $ac_declaration
2210 int
2211 main ()
2212 {
2213 exit (42);
2214   ;
2215   return 0;
2216 }
2217 _ACEOF
2218 rm -f conftest.$ac_objext
2219 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2220   (eval $ac_compile) 2>&5
2221   ac_status=$?
2222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2223   (exit $ac_status); } &&
2224          { ac_try='test -s conftest.$ac_objext'
2225   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2226   (eval $ac_try) 2>&5
2227   ac_status=$?
2228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2229   (exit $ac_status); }; }; then
2230   :
2231 else
2232   echo "$as_me: failed program was:" >&5
2233 sed 's/^/| /' conftest.$ac_ext >&5
2234
2235 continue
2236 fi
2237 rm -f conftest.$ac_objext conftest.$ac_ext
2238   cat >conftest.$ac_ext <<_ACEOF
2239 #line $LINENO "configure"
2240 /* confdefs.h.  */
2241 _ACEOF
2242 cat confdefs.h >>conftest.$ac_ext
2243 cat >>conftest.$ac_ext <<_ACEOF
2244 /* end confdefs.h.  */
2245 $ac_declaration
2246 int
2247 main ()
2248 {
2249 exit (42);
2250   ;
2251   return 0;
2252 }
2253 _ACEOF
2254 rm -f conftest.$ac_objext
2255 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2256   (eval $ac_compile) 2>&5
2257   ac_status=$?
2258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2259   (exit $ac_status); } &&
2260          { ac_try='test -s conftest.$ac_objext'
2261   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2262   (eval $ac_try) 2>&5
2263   ac_status=$?
2264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2265   (exit $ac_status); }; }; then
2266   break
2267 else
2268   echo "$as_me: failed program was:" >&5
2269 sed 's/^/| /' conftest.$ac_ext >&5
2270
2271 fi
2272 rm -f conftest.$ac_objext conftest.$ac_ext
2273 done
2274 rm -f conftest*
2275 if test -n "$ac_declaration"; then
2276   echo '#ifdef __cplusplus' >>confdefs.h
2277   echo $ac_declaration      >>confdefs.h
2278   echo '#endif'             >>confdefs.h
2279 fi
2280
2281 else
2282   echo "$as_me: failed program was:" >&5
2283 sed 's/^/| /' conftest.$ac_ext >&5
2284
2285 fi
2286 rm -f conftest.$ac_objext conftest.$ac_ext
2287 ac_ext=c
2288 ac_cpp='$CPP $CPPFLAGS'
2289 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2290 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2291 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2292
2293     if test "$GCC" = yes ; then
2294             if test "$SHLICC2" = yes ; then
2295                     ac_cv_lbl_gcc_vers=2
2296                     V_CCOPT="-O2"
2297             else
2298                     echo "$as_me:$LINENO: checking gcc version" >&5
2299 echo $ECHO_N "checking gcc version... $ECHO_C" >&6
2300                     if test "${ac_cv_lbl_gcc_vers+set}" = set; then
2301   echo $ECHO_N "(cached) $ECHO_C" >&6
2302 else
2303   ac_cv_lbl_gcc_vers=`$CC -v 2>&1 | \
2304                             sed -e '/^gcc version /!d' \
2305                                 -e 's/^gcc version //' \
2306                                 -e 's/ .*//' -e 's/^[^0-9]*//' \
2307                                 -e 's/\..*//'`
2308 fi
2309
2310                     echo "$as_me:$LINENO: result: $ac_cv_lbl_gcc_vers" >&5
2311 echo "${ECHO_T}$ac_cv_lbl_gcc_vers" >&6
2312                     if test $ac_cv_lbl_gcc_vers -gt 1 ; then
2313                             V_CCOPT="-O2"
2314                     fi
2315             fi
2316     else
2317             echo "$as_me:$LINENO: checking that $CC handles ansi prototypes" >&5
2318 echo $ECHO_N "checking that $CC handles ansi prototypes... $ECHO_C" >&6
2319             if test "${ac_cv_lbl_cc_ansi_prototypes+set}" = set; then
2320   echo $ECHO_N "(cached) $ECHO_C" >&6
2321 else
2322
2323 cat >conftest.$ac_ext <<_ACEOF
2324 #line $LINENO "configure"
2325 /* confdefs.h.  */
2326 _ACEOF
2327 cat confdefs.h >>conftest.$ac_ext
2328 cat >>conftest.$ac_ext <<_ACEOF
2329 /* end confdefs.h.  */
2330 #include <sys/types.h>
2331 int
2332 main ()
2333 {
2334 int frob(int, char *)
2335   ;
2336   return 0;
2337 }
2338 _ACEOF
2339 rm -f conftest.$ac_objext
2340 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2341   (eval $ac_compile) 2>&5
2342   ac_status=$?
2343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2344   (exit $ac_status); } &&
2345          { ac_try='test -s conftest.$ac_objext'
2346   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2347   (eval $ac_try) 2>&5
2348   ac_status=$?
2349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2350   (exit $ac_status); }; }; then
2351   ac_cv_lbl_cc_ansi_prototypes=yes
2352 else
2353   echo "$as_me: failed program was:" >&5
2354 sed 's/^/| /' conftest.$ac_ext >&5
2355
2356 ac_cv_lbl_cc_ansi_prototypes=no
2357 fi
2358 rm -f conftest.$ac_objext conftest.$ac_ext
2359 fi
2360
2361             echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_ansi_prototypes" >&5
2362 echo "${ECHO_T}$ac_cv_lbl_cc_ansi_prototypes" >&6
2363             if test $ac_cv_lbl_cc_ansi_prototypes = no ; then
2364                     case "$host_os" in
2365
2366                     hpux*)
2367                             echo "$as_me:$LINENO: checking for HP-UX ansi compiler ($CC -Aa -D_HPUX_SOURCE)" >&5
2368 echo $ECHO_N "checking for HP-UX ansi compiler ($CC -Aa -D_HPUX_SOURCE)... $ECHO_C" >&6
2369                             savedcflags="$CFLAGS"
2370                             CFLAGS="-Aa -D_HPUX_SOURCE $CFLAGS"
2371                             if test "${ac_cv_lbl_cc_hpux_cc_aa+set}" = set; then
2372   echo $ECHO_N "(cached) $ECHO_C" >&6
2373 else
2374   cat >conftest.$ac_ext <<_ACEOF
2375 #line $LINENO "configure"
2376 /* confdefs.h.  */
2377 _ACEOF
2378 cat confdefs.h >>conftest.$ac_ext
2379 cat >>conftest.$ac_ext <<_ACEOF
2380 /* end confdefs.h.  */
2381 #include <sys/types.h>
2382 int
2383 main ()
2384 {
2385 int frob(int, char *)
2386   ;
2387   return 0;
2388 }
2389 _ACEOF
2390 rm -f conftest.$ac_objext
2391 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2392   (eval $ac_compile) 2>&5
2393   ac_status=$?
2394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2395   (exit $ac_status); } &&
2396          { ac_try='test -s conftest.$ac_objext'
2397   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2398   (eval $ac_try) 2>&5
2399   ac_status=$?
2400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2401   (exit $ac_status); }; }; then
2402   ac_cv_lbl_cc_hpux_cc_aa=yes
2403 else
2404   echo "$as_me: failed program was:" >&5
2405 sed 's/^/| /' conftest.$ac_ext >&5
2406
2407 ac_cv_lbl_cc_hpux_cc_aa=no
2408 fi
2409 rm -f conftest.$ac_objext conftest.$ac_ext
2410 fi
2411
2412                             echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_hpux_cc_aa" >&5
2413 echo "${ECHO_T}$ac_cv_lbl_cc_hpux_cc_aa" >&6
2414                             if test $ac_cv_lbl_cc_hpux_cc_aa = no ; then
2415                                     { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
2416 echo "$as_me: error: see the INSTALL doc for more info" >&2;}
2417    { (exit 1); exit 1; }; }
2418                             fi
2419                             CFLAGS="$savedcflags"
2420                             V_CCOPT="-Aa $V_CCOPT"
2421                             cat >>confdefs.h <<\_ACEOF
2422 #define _HPUX_SOURCE 1
2423 _ACEOF
2424
2425                             ;;
2426
2427                     *)
2428                             { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
2429 echo "$as_me: error: see the INSTALL doc for more info" >&2;}
2430    { (exit 1); exit 1; }; }
2431                             ;;
2432                     esac
2433             fi
2434             V_INCLS="$V_INCLS -I/usr/local/include"
2435             LDFLAGS="$LDFLAGS -L/usr/local/lib"
2436
2437             case "$host_os" in
2438
2439             irix*)
2440                     V_CCOPT="$V_CCOPT -xansi -signed -O"
2441                     ;;
2442
2443             osf*)
2444                     V_CCOPT="$V_CCOPT -std1 -O"
2445                     ;;
2446
2447             ultrix*)
2448                     echo "$as_me:$LINENO: checking that Ultrix $CC hacks const in prototypes" >&5
2449 echo $ECHO_N "checking that Ultrix $CC hacks const in prototypes... $ECHO_C" >&6
2450                     if test "${ac_cv_lbl_cc_const_proto+set}" = set; then
2451   echo $ECHO_N "(cached) $ECHO_C" >&6
2452 else
2453   cat >conftest.$ac_ext <<_ACEOF
2454 #line $LINENO "configure"
2455 /* confdefs.h.  */
2456 _ACEOF
2457 cat confdefs.h >>conftest.$ac_ext
2458 cat >>conftest.$ac_ext <<_ACEOF
2459 /* end confdefs.h.  */
2460 #include <sys/types.h>
2461 int
2462 main ()
2463 {
2464 struct a { int b; };
2465                             void c(const struct a *)
2466   ;
2467   return 0;
2468 }
2469 _ACEOF
2470 rm -f conftest.$ac_objext
2471 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2472   (eval $ac_compile) 2>&5
2473   ac_status=$?
2474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2475   (exit $ac_status); } &&
2476          { ac_try='test -s conftest.$ac_objext'
2477   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2478   (eval $ac_try) 2>&5
2479   ac_status=$?
2480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2481   (exit $ac_status); }; }; then
2482   ac_cv_lbl_cc_const_proto=yes
2483 else
2484   echo "$as_me: failed program was:" >&5
2485 sed 's/^/| /' conftest.$ac_ext >&5
2486
2487 ac_cv_lbl_cc_const_proto=no
2488 fi
2489 rm -f conftest.$ac_objext conftest.$ac_ext
2490 fi
2491
2492                     echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_const_proto" >&5
2493 echo "${ECHO_T}$ac_cv_lbl_cc_const_proto" >&6
2494                     if test $ac_cv_lbl_cc_const_proto = no ; then
2495                             cat >>confdefs.h <<\_ACEOF
2496 #define const
2497 _ACEOF
2498
2499                     fi
2500                     ;;
2501             esac
2502     fi
2503
2504 echo "$as_me:$LINENO: checking for inline" >&5
2505 echo $ECHO_N "checking for inline... $ECHO_C" >&6
2506     if test "${ac_cv_lbl_inline+set}" = set; then
2507   echo $ECHO_N "(cached) $ECHO_C" >&6
2508 else
2509
2510         ac_cv_lbl_inline=""
2511         ac_lbl_cc_inline=no
2512         for ac_lbl_inline in inline __inline__ __inline
2513         do
2514             cat >conftest.$ac_ext <<_ACEOF
2515 #line $LINENO "configure"
2516 /* confdefs.h.  */
2517 _ACEOF
2518 cat confdefs.h >>conftest.$ac_ext
2519 cat >>conftest.$ac_ext <<_ACEOF
2520 /* end confdefs.h.  */
2521 #define inline $ac_lbl_inline
2522                 static inline struct iltest *foo(void);
2523                 struct iltest {
2524                     int iltest1;
2525                     int iltest2;
2526                 };
2527
2528                 static inline struct iltest *
2529                 foo()
2530                 {
2531                     static struct iltest xxx;
2532
2533                     return &xxx;
2534                 }
2535 int
2536 main ()
2537 {
2538
2539   ;
2540   return 0;
2541 }
2542 _ACEOF
2543 rm -f conftest.$ac_objext
2544 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2545   (eval $ac_compile) 2>&5
2546   ac_status=$?
2547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2548   (exit $ac_status); } &&
2549          { ac_try='test -s conftest.$ac_objext'
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_lbl_cc_inline=yes
2556 else
2557   echo "$as_me: failed program was:" >&5
2558 sed 's/^/| /' conftest.$ac_ext >&5
2559
2560 fi
2561 rm -f conftest.$ac_objext conftest.$ac_ext
2562             if test "$ac_lbl_cc_inline" = yes ; then
2563                 break;
2564             fi
2565         done
2566         if test "$ac_lbl_cc_inline" = yes ; then
2567             ac_cv_lbl_inline=$ac_lbl_inline
2568         fi
2569 fi
2570
2571     if test ! -z "$ac_cv_lbl_inline" ; then
2572         echo "$as_me:$LINENO: result: $ac_cv_lbl_inline" >&5
2573 echo "${ECHO_T}$ac_cv_lbl_inline" >&6
2574     else
2575         echo "$as_me:$LINENO: result: no" >&5
2576 echo "${ECHO_T}no" >&6
2577     fi
2578
2579 cat >>confdefs.h <<_ACEOF
2580 #define inline $ac_cv_lbl_inline
2581 _ACEOF
2582
2583
2584 echo "$as_me:$LINENO: checking for __attribute__" >&5
2585 echo $ECHO_N "checking for __attribute__... $ECHO_C" >&6
2586 if test "${ac_cv___attribute__+set}" = set; then
2587   echo $ECHO_N "(cached) $ECHO_C" >&6
2588 else
2589
2590 cat >conftest.$ac_ext <<_ACEOF
2591 #line $LINENO "configure"
2592 /* confdefs.h.  */
2593 _ACEOF
2594 cat confdefs.h >>conftest.$ac_ext
2595 cat >>conftest.$ac_ext <<_ACEOF
2596 /* end confdefs.h.  */
2597
2598 #include <stdlib.h>
2599
2600 static void foo(void) __attribute__ ((noreturn));
2601
2602 static void
2603 foo(void)
2604 {
2605   exit(1);
2606 }
2607
2608 int
2609 main(int argc, char **argv)
2610 {
2611   foo();
2612 }
2613
2614 _ACEOF
2615 rm -f conftest.$ac_objext
2616 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2617   (eval $ac_compile) 2>&5
2618   ac_status=$?
2619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2620   (exit $ac_status); } &&
2621          { ac_try='test -s conftest.$ac_objext'
2622   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2623   (eval $ac_try) 2>&5
2624   ac_status=$?
2625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2626   (exit $ac_status); }; }; then
2627   ac_cv___attribute__=yes
2628 else
2629   echo "$as_me: failed program was:" >&5
2630 sed 's/^/| /' conftest.$ac_ext >&5
2631
2632 ac_cv___attribute__=no
2633 fi
2634 rm -f conftest.$ac_objext conftest.$ac_ext
2635 fi
2636
2637 if test "$ac_cv___attribute__" = "yes"; then
2638
2639 cat >>confdefs.h <<\_ACEOF
2640 #define HAVE___ATTRIBUTE__ 1
2641 _ACEOF
2642
2643   V_DEFS="$V_DEFS -D_U_=\"__attribute__((unused))\""
2644 else
2645   V_DEFS="$V_DEFS -D_U_=\"\""
2646 fi
2647 echo "$as_me:$LINENO: result: $ac_cv___attribute__" >&5
2648 echo "${ECHO_T}$ac_cv___attribute__" >&6
2649
2650 ac_ext=c
2651 ac_cpp='$CPP $CPPFLAGS'
2652 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2653 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2654 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2655 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2656 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2657 # On Suns, sometimes $CPP names a directory.
2658 if test -n "$CPP" && test -d "$CPP"; then
2659   CPP=
2660 fi
2661 if test -z "$CPP"; then
2662   if test "${ac_cv_prog_CPP+set}" = set; then
2663   echo $ECHO_N "(cached) $ECHO_C" >&6
2664 else
2665       # Double quotes because CPP needs to be expanded
2666     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2667     do
2668       ac_preproc_ok=false
2669 for ac_c_preproc_warn_flag in '' yes
2670 do
2671   # Use a header file that comes with gcc, so configuring glibc
2672   # with a fresh cross-compiler works.
2673   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2674   # <limits.h> exists even on freestanding compilers.
2675   # On the NeXT, cc -E runs the code through the compiler's parser,
2676   # not just through cpp. "Syntax error" is here to catch this case.
2677   cat >conftest.$ac_ext <<_ACEOF
2678 #line $LINENO "configure"
2679 /* confdefs.h.  */
2680 _ACEOF
2681 cat confdefs.h >>conftest.$ac_ext
2682 cat >>conftest.$ac_ext <<_ACEOF
2683 /* end confdefs.h.  */
2684 #ifdef __STDC__
2685 # include <limits.h>
2686 #else
2687 # include <assert.h>
2688 #endif
2689                      Syntax error
2690 _ACEOF
2691 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2692   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2693   ac_status=$?
2694   grep -v '^ *+' conftest.er1 >conftest.err
2695   rm -f conftest.er1
2696   cat conftest.err >&5
2697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2698   (exit $ac_status); } >/dev/null; then
2699   if test -s conftest.err; then
2700     ac_cpp_err=$ac_c_preproc_warn_flag
2701   else
2702     ac_cpp_err=
2703   fi
2704 else
2705   ac_cpp_err=yes
2706 fi
2707 if test -z "$ac_cpp_err"; then
2708   :
2709 else
2710   echo "$as_me: failed program was:" >&5
2711 sed 's/^/| /' conftest.$ac_ext >&5
2712
2713   # Broken: fails on valid input.
2714 continue
2715 fi
2716 rm -f conftest.err conftest.$ac_ext
2717
2718   # OK, works on sane cases.  Now check whether non-existent headers
2719   # can be detected and how.
2720   cat >conftest.$ac_ext <<_ACEOF
2721 #line $LINENO "configure"
2722 /* confdefs.h.  */
2723 _ACEOF
2724 cat confdefs.h >>conftest.$ac_ext
2725 cat >>conftest.$ac_ext <<_ACEOF
2726 /* end confdefs.h.  */
2727 #include <ac_nonexistent.h>
2728 _ACEOF
2729 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2730   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2731   ac_status=$?
2732   grep -v '^ *+' conftest.er1 >conftest.err
2733   rm -f conftest.er1
2734   cat conftest.err >&5
2735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2736   (exit $ac_status); } >/dev/null; then
2737   if test -s conftest.err; then
2738     ac_cpp_err=$ac_c_preproc_warn_flag
2739   else
2740     ac_cpp_err=
2741   fi
2742 else
2743   ac_cpp_err=yes
2744 fi
2745 if test -z "$ac_cpp_err"; then
2746   # Broken: success on invalid input.
2747 continue
2748 else
2749   echo "$as_me: failed program was:" >&5
2750 sed 's/^/| /' conftest.$ac_ext >&5
2751
2752   # Passes both tests.
2753 ac_preproc_ok=:
2754 break
2755 fi
2756 rm -f conftest.err conftest.$ac_ext
2757
2758 done
2759 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2760 rm -f conftest.err conftest.$ac_ext
2761 if $ac_preproc_ok; then
2762   break
2763 fi
2764
2765     done
2766     ac_cv_prog_CPP=$CPP
2767
2768 fi
2769   CPP=$ac_cv_prog_CPP
2770 else
2771   ac_cv_prog_CPP=$CPP
2772 fi
2773 echo "$as_me:$LINENO: result: $CPP" >&5
2774 echo "${ECHO_T}$CPP" >&6
2775 ac_preproc_ok=false
2776 for ac_c_preproc_warn_flag in '' yes
2777 do
2778   # Use a header file that comes with gcc, so configuring glibc
2779   # with a fresh cross-compiler works.
2780   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2781   # <limits.h> exists even on freestanding compilers.
2782   # On the NeXT, cc -E runs the code through the compiler's parser,
2783   # not just through cpp. "Syntax error" is here to catch this case.
2784   cat >conftest.$ac_ext <<_ACEOF
2785 #line $LINENO "configure"
2786 /* confdefs.h.  */
2787 _ACEOF
2788 cat confdefs.h >>conftest.$ac_ext
2789 cat >>conftest.$ac_ext <<_ACEOF
2790 /* end confdefs.h.  */
2791 #ifdef __STDC__
2792 # include <limits.h>
2793 #else
2794 # include <assert.h>
2795 #endif
2796                      Syntax error
2797 _ACEOF
2798 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2799   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2800   ac_status=$?
2801   grep -v '^ *+' conftest.er1 >conftest.err
2802   rm -f conftest.er1
2803   cat conftest.err >&5
2804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2805   (exit $ac_status); } >/dev/null; then
2806   if test -s conftest.err; then
2807     ac_cpp_err=$ac_c_preproc_warn_flag
2808   else
2809     ac_cpp_err=
2810   fi
2811 else
2812   ac_cpp_err=yes
2813 fi
2814 if test -z "$ac_cpp_err"; then
2815   :
2816 else
2817   echo "$as_me: failed program was:" >&5
2818 sed 's/^/| /' conftest.$ac_ext >&5
2819
2820   # Broken: fails on valid input.
2821 continue
2822 fi
2823 rm -f conftest.err conftest.$ac_ext
2824
2825   # OK, works on sane cases.  Now check whether non-existent headers
2826   # can be detected and how.
2827   cat >conftest.$ac_ext <<_ACEOF
2828 #line $LINENO "configure"
2829 /* confdefs.h.  */
2830 _ACEOF
2831 cat confdefs.h >>conftest.$ac_ext
2832 cat >>conftest.$ac_ext <<_ACEOF
2833 /* end confdefs.h.  */
2834 #include <ac_nonexistent.h>
2835 _ACEOF
2836 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2837   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2838   ac_status=$?
2839   grep -v '^ *+' conftest.er1 >conftest.err
2840   rm -f conftest.er1
2841   cat conftest.err >&5
2842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2843   (exit $ac_status); } >/dev/null; then
2844   if test -s conftest.err; then
2845     ac_cpp_err=$ac_c_preproc_warn_flag
2846   else
2847     ac_cpp_err=
2848   fi
2849 else
2850   ac_cpp_err=yes
2851 fi
2852 if test -z "$ac_cpp_err"; then
2853   # Broken: success on invalid input.
2854 continue
2855 else
2856   echo "$as_me: failed program was:" >&5
2857 sed 's/^/| /' conftest.$ac_ext >&5
2858
2859   # Passes both tests.
2860 ac_preproc_ok=:
2861 break
2862 fi
2863 rm -f conftest.err conftest.$ac_ext
2864
2865 done
2866 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2867 rm -f conftest.err conftest.$ac_ext
2868 if $ac_preproc_ok; then
2869   :
2870 else
2871   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2872 See \`config.log' for more details." >&5
2873 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2874 See \`config.log' for more details." >&2;}
2875    { (exit 1); exit 1; }; }
2876 fi
2877
2878 ac_ext=c
2879 ac_cpp='$CPP $CPPFLAGS'
2880 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2881 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2882 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2883
2884
2885 echo "$as_me:$LINENO: checking for egrep" >&5
2886 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2887 if test "${ac_cv_prog_egrep+set}" = set; then
2888   echo $ECHO_N "(cached) $ECHO_C" >&6
2889 else
2890   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2891     then ac_cv_prog_egrep='grep -E'
2892     else ac_cv_prog_egrep='egrep'
2893     fi
2894 fi
2895 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2896 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2897  EGREP=$ac_cv_prog_egrep
2898
2899
2900 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2901 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2902 if test "${ac_cv_header_stdc+set}" = set; then
2903   echo $ECHO_N "(cached) $ECHO_C" >&6
2904 else
2905   cat >conftest.$ac_ext <<_ACEOF
2906 #line $LINENO "configure"
2907 /* confdefs.h.  */
2908 _ACEOF
2909 cat confdefs.h >>conftest.$ac_ext
2910 cat >>conftest.$ac_ext <<_ACEOF
2911 /* end confdefs.h.  */
2912 #include <stdlib.h>
2913 #include <stdarg.h>
2914 #include <string.h>
2915 #include <float.h>
2916
2917 int
2918 main ()
2919 {
2920
2921   ;
2922   return 0;
2923 }
2924 _ACEOF
2925 rm -f conftest.$ac_objext
2926 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2927   (eval $ac_compile) 2>&5
2928   ac_status=$?
2929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2930   (exit $ac_status); } &&
2931          { ac_try='test -s conftest.$ac_objext'
2932   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2933   (eval $ac_try) 2>&5
2934   ac_status=$?
2935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2936   (exit $ac_status); }; }; then
2937   ac_cv_header_stdc=yes
2938 else
2939   echo "$as_me: failed program was:" >&5
2940 sed 's/^/| /' conftest.$ac_ext >&5
2941
2942 ac_cv_header_stdc=no
2943 fi
2944 rm -f conftest.$ac_objext conftest.$ac_ext
2945
2946 if test $ac_cv_header_stdc = yes; then
2947   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2948   cat >conftest.$ac_ext <<_ACEOF
2949 #line $LINENO "configure"
2950 /* confdefs.h.  */
2951 _ACEOF
2952 cat confdefs.h >>conftest.$ac_ext
2953 cat >>conftest.$ac_ext <<_ACEOF
2954 /* end confdefs.h.  */
2955 #include <string.h>
2956
2957 _ACEOF
2958 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2959   $EGREP "memchr" >/dev/null 2>&1; then
2960   :
2961 else
2962   ac_cv_header_stdc=no
2963 fi
2964 rm -f conftest*
2965
2966 fi
2967
2968 if test $ac_cv_header_stdc = yes; then
2969   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2970   cat >conftest.$ac_ext <<_ACEOF
2971 #line $LINENO "configure"
2972 /* confdefs.h.  */
2973 _ACEOF
2974 cat confdefs.h >>conftest.$ac_ext
2975 cat >>conftest.$ac_ext <<_ACEOF
2976 /* end confdefs.h.  */
2977 #include <stdlib.h>
2978
2979 _ACEOF
2980 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2981   $EGREP "free" >/dev/null 2>&1; then
2982   :
2983 else
2984   ac_cv_header_stdc=no
2985 fi
2986 rm -f conftest*
2987
2988 fi
2989
2990 if test $ac_cv_header_stdc = yes; then
2991   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2992   if test "$cross_compiling" = yes; then
2993   :
2994 else
2995   cat >conftest.$ac_ext <<_ACEOF
2996 #line $LINENO "configure"
2997 /* confdefs.h.  */
2998 _ACEOF
2999 cat confdefs.h >>conftest.$ac_ext
3000 cat >>conftest.$ac_ext <<_ACEOF
3001 /* end confdefs.h.  */
3002 #include <ctype.h>
3003 #if ((' ' & 0x0FF) == 0x020)
3004 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3005 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3006 #else
3007 # define ISLOWER(c) \
3008                    (('a' <= (c) && (c) <= 'i') \
3009                      || ('j' <= (c) && (c) <= 'r') \
3010                      || ('s' <= (c) && (c) <= 'z'))
3011 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3012 #endif
3013
3014 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3015 int
3016 main ()
3017 {
3018   int i;
3019   for (i = 0; i < 256; i++)
3020     if (XOR (islower (i), ISLOWER (i))
3021         || toupper (i) != TOUPPER (i))
3022       exit(2);
3023   exit (0);
3024 }
3025 _ACEOF
3026 rm -f conftest$ac_exeext
3027 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3028   (eval $ac_link) 2>&5
3029   ac_status=$?
3030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3031   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3032   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3033   (eval $ac_try) 2>&5
3034   ac_status=$?
3035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3036   (exit $ac_status); }; }; then
3037   :
3038 else
3039   echo "$as_me: program exited with status $ac_status" >&5
3040 echo "$as_me: failed program was:" >&5
3041 sed 's/^/| /' conftest.$ac_ext >&5
3042
3043 ( exit $ac_status )
3044 ac_cv_header_stdc=no
3045 fi
3046 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3047 fi
3048 fi
3049 fi
3050 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3051 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3052 if test $ac_cv_header_stdc = yes; then
3053
3054 cat >>confdefs.h <<\_ACEOF
3055 #define STDC_HEADERS 1
3056 _ACEOF
3057
3058 fi
3059
3060 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3071                   inttypes.h stdint.h unistd.h
3072 do
3073 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3074 echo "$as_me:$LINENO: checking for $ac_header" >&5
3075 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3076 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3077   echo $ECHO_N "(cached) $ECHO_C" >&6
3078 else
3079   cat >conftest.$ac_ext <<_ACEOF
3080 #line $LINENO "configure"
3081 /* confdefs.h.  */
3082 _ACEOF
3083 cat confdefs.h >>conftest.$ac_ext
3084 cat >>conftest.$ac_ext <<_ACEOF
3085 /* end confdefs.h.  */
3086 $ac_includes_default
3087
3088 #include <$ac_header>
3089 _ACEOF
3090 rm -f conftest.$ac_objext
3091 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3092   (eval $ac_compile) 2>&5
3093   ac_status=$?
3094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3095   (exit $ac_status); } &&
3096          { ac_try='test -s conftest.$ac_objext'
3097   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3098   (eval $ac_try) 2>&5
3099   ac_status=$?
3100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3101   (exit $ac_status); }; }; then
3102   eval "$as_ac_Header=yes"
3103 else
3104   echo "$as_me: failed program was:" >&5
3105 sed 's/^/| /' conftest.$ac_ext >&5
3106
3107 eval "$as_ac_Header=no"
3108 fi
3109 rm -f conftest.$ac_objext conftest.$ac_ext
3110 fi
3111 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3112 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3113 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3114   cat >>confdefs.h <<_ACEOF
3115 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3116 _ACEOF
3117
3118 fi
3119
3120 done
3121
3122
3123
3124
3125
3126 for ac_header in fcntl.h rpc/rpcent.h netdnet/dnetdb.h
3127 do
3128 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3129 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3130   echo "$as_me:$LINENO: checking for $ac_header" >&5
3131 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3132 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3133   echo $ECHO_N "(cached) $ECHO_C" >&6
3134 fi
3135 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3136 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3137 else
3138   # Is the header compilable?
3139 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3140 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3141 cat >conftest.$ac_ext <<_ACEOF
3142 #line $LINENO "configure"
3143 /* confdefs.h.  */
3144 _ACEOF
3145 cat confdefs.h >>conftest.$ac_ext
3146 cat >>conftest.$ac_ext <<_ACEOF
3147 /* end confdefs.h.  */
3148 $ac_includes_default
3149 #include <$ac_header>
3150 _ACEOF
3151 rm -f conftest.$ac_objext
3152 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3153   (eval $ac_compile) 2>&5
3154   ac_status=$?
3155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3156   (exit $ac_status); } &&
3157          { ac_try='test -s conftest.$ac_objext'
3158   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3159   (eval $ac_try) 2>&5
3160   ac_status=$?
3161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3162   (exit $ac_status); }; }; then
3163   ac_header_compiler=yes
3164 else
3165   echo "$as_me: failed program was:" >&5
3166 sed 's/^/| /' conftest.$ac_ext >&5
3167
3168 ac_header_compiler=no
3169 fi
3170 rm -f conftest.$ac_objext conftest.$ac_ext
3171 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3172 echo "${ECHO_T}$ac_header_compiler" >&6
3173
3174 # Is the header present?
3175 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3176 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3177 cat >conftest.$ac_ext <<_ACEOF
3178 #line $LINENO "configure"
3179 /* confdefs.h.  */
3180 _ACEOF
3181 cat confdefs.h >>conftest.$ac_ext
3182 cat >>conftest.$ac_ext <<_ACEOF
3183 /* end confdefs.h.  */
3184 #include <$ac_header>
3185 _ACEOF
3186 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3187   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3188   ac_status=$?
3189   grep -v '^ *+' conftest.er1 >conftest.err
3190   rm -f conftest.er1
3191   cat conftest.err >&5
3192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3193   (exit $ac_status); } >/dev/null; then
3194   if test -s conftest.err; then
3195     ac_cpp_err=$ac_c_preproc_warn_flag
3196   else
3197     ac_cpp_err=
3198   fi
3199 else
3200   ac_cpp_err=yes
3201 fi
3202 if test -z "$ac_cpp_err"; then
3203   ac_header_preproc=yes
3204 else
3205   echo "$as_me: failed program was:" >&5
3206 sed 's/^/| /' conftest.$ac_ext >&5
3207
3208   ac_header_preproc=no
3209 fi
3210 rm -f conftest.err conftest.$ac_ext
3211 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3212 echo "${ECHO_T}$ac_header_preproc" >&6
3213
3214 # So?  What about this header?
3215 case $ac_header_compiler:$ac_header_preproc in
3216   yes:no )
3217     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3218 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3219     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3220 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3221     (
3222       cat <<\_ASBOX
3223 ## ------------------------------------ ##
3224 ## Report this to bug-autoconf@gnu.org. ##
3225 ## ------------------------------------ ##
3226 _ASBOX
3227     ) |
3228       sed "s/^/$as_me: WARNING:     /" >&2
3229     ;;
3230   no:yes )
3231     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3232 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3233     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3234 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3235     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3236 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3237     (
3238       cat <<\_ASBOX
3239 ## ------------------------------------ ##
3240 ## Report this to bug-autoconf@gnu.org. ##
3241 ## ------------------------------------ ##
3242 _ASBOX
3243     ) |
3244       sed "s/^/$as_me: WARNING:     /" >&2
3245     ;;
3246 esac
3247 echo "$as_me:$LINENO: checking for $ac_header" >&5
3248 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3249 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3250   echo $ECHO_N "(cached) $ECHO_C" >&6
3251 else
3252   eval "$as_ac_Header=$ac_header_preproc"
3253 fi
3254 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3255 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3256
3257 fi
3258 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3259   cat >>confdefs.h <<_ACEOF
3260 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3261 _ACEOF
3262
3263 fi
3264
3265 done
3266
3267
3268 for ac_header in netinet/if_ether.h
3269 do
3270 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3271 echo "$as_me:$LINENO: checking for $ac_header" >&5
3272 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3273 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3274   echo $ECHO_N "(cached) $ECHO_C" >&6
3275 else
3276   cat >conftest.$ac_ext <<_ACEOF
3277 #line $LINENO "configure"
3278 /* confdefs.h.  */
3279 _ACEOF
3280 cat confdefs.h >>conftest.$ac_ext
3281 cat >>conftest.$ac_ext <<_ACEOF
3282 /* end confdefs.h.  */
3283 #include <sys/types.h>
3284 #include <sys/socket.h>
3285
3286 #include <$ac_header>
3287 _ACEOF
3288 rm -f conftest.$ac_objext
3289 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3290   (eval $ac_compile) 2>&5
3291   ac_status=$?
3292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3293   (exit $ac_status); } &&
3294          { ac_try='test -s conftest.$ac_objext'
3295   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3296   (eval $ac_try) 2>&5
3297   ac_status=$?
3298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3299   (exit $ac_status); }; }; then
3300   eval "$as_ac_Header=yes"
3301 else
3302   echo "$as_me: failed program was:" >&5
3303 sed 's/^/| /' conftest.$ac_ext >&5
3304
3305 eval "$as_ac_Header=no"
3306 fi
3307 rm -f conftest.$ac_objext conftest.$ac_ext
3308 fi
3309 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3310 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3311 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3312   cat >>confdefs.h <<_ACEOF
3313 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3314 _ACEOF
3315
3316 fi
3317
3318 done
3319
3320 if test "$ac_cv_header_netinet_if_ether_h" != yes; then
3321         #
3322         # The simple test didn't work.
3323         # Do we need to include <net/if.h> first?
3324         # Unset ac_cv_header_netinet_if_ether_h so we don't
3325         # treat the previous failure as a cached value and
3326         # suppress the next test.
3327         #
3328         { echo "$as_me:$LINENO: Rechecking with some additional includes" >&5
3329 echo "$as_me: Rechecking with some additional includes" >&6;}
3330         unset ac_cv_header_netinet_if_ether_h
3331
3332 for ac_header in netinet/if_ether.h
3333 do
3334 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3335 echo "$as_me:$LINENO: checking for $ac_header" >&5
3336 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3337 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3338   echo $ECHO_N "(cached) $ECHO_C" >&6
3339 else
3340   cat >conftest.$ac_ext <<_ACEOF
3341 #line $LINENO "configure"
3342 /* confdefs.h.  */
3343 _ACEOF
3344 cat confdefs.h >>conftest.$ac_ext
3345 cat >>conftest.$ac_ext <<_ACEOF
3346 /* end confdefs.h.  */
3347 #include <sys/types.h>
3348 #include <sys/socket.h>
3349 #include <netinet/in.h>
3350 struct mbuf;
3351 struct rtentry;
3352 #include <net/if.h>
3353
3354 #include <$ac_header>
3355 _ACEOF
3356 rm -f conftest.$ac_objext
3357 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3358   (eval $ac_compile) 2>&5
3359   ac_status=$?
3360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3361   (exit $ac_status); } &&
3362          { ac_try='test -s conftest.$ac_objext'
3363   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3364   (eval $ac_try) 2>&5
3365   ac_status=$?
3366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3367   (exit $ac_status); }; }; then
3368   eval "$as_ac_Header=yes"
3369 else
3370   echo "$as_me: failed program was:" >&5
3371 sed 's/^/| /' conftest.$ac_ext >&5
3372
3373 eval "$as_ac_Header=no"
3374 fi
3375 rm -f conftest.$ac_objext conftest.$ac_ext
3376 fi
3377 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3378 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3379 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3380   cat >>confdefs.h <<_ACEOF
3381 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3382 _ACEOF
3383
3384 fi
3385
3386 done
3387
3388 fi
3389
3390 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
3391 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
3392 if test "${ac_cv_header_time+set}" = set; then
3393   echo $ECHO_N "(cached) $ECHO_C" >&6
3394 else
3395   cat >conftest.$ac_ext <<_ACEOF
3396 #line $LINENO "configure"
3397 /* confdefs.h.  */
3398 _ACEOF
3399 cat confdefs.h >>conftest.$ac_ext
3400 cat >>conftest.$ac_ext <<_ACEOF
3401 /* end confdefs.h.  */
3402 #include <sys/types.h>
3403 #include <sys/time.h>
3404 #include <time.h>
3405
3406 int
3407 main ()
3408 {
3409 if ((struct tm *) 0)
3410 return 0;
3411   ;
3412   return 0;
3413 }
3414 _ACEOF
3415 rm -f conftest.$ac_objext
3416 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3417   (eval $ac_compile) 2>&5
3418   ac_status=$?
3419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3420   (exit $ac_status); } &&
3421          { ac_try='test -s conftest.$ac_objext'
3422   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3423   (eval $ac_try) 2>&5
3424   ac_status=$?
3425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3426   (exit $ac_status); }; }; then
3427   ac_cv_header_time=yes
3428 else
3429   echo "$as_me: failed program was:" >&5
3430 sed 's/^/| /' conftest.$ac_ext >&5
3431
3432 ac_cv_header_time=no
3433 fi
3434 rm -f conftest.$ac_objext conftest.$ac_ext
3435 fi
3436 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
3437 echo "${ECHO_T}$ac_cv_header_time" >&6
3438 if test $ac_cv_header_time = yes; then
3439
3440 cat >>confdefs.h <<\_ACEOF
3441 #define TIME_WITH_SYS_TIME 1
3442 _ACEOF
3443
3444 fi
3445
3446
3447 case "$host_os" in
3448
3449 linux*)
3450         echo "$as_me:$LINENO: checking Linux kernel version" >&5
3451 echo $ECHO_N "checking Linux kernel version... $ECHO_C" >&6
3452         if test "$cross_compiling" = yes; then
3453                 if test "${ac_cv_linux_vers+set}" = set; then
3454   echo $ECHO_N "(cached) $ECHO_C" >&6
3455 else
3456   ac_cv_linux_vers=unknown
3457 fi
3458
3459         else
3460                 if test "${ac_cv_linux_vers+set}" = set; then
3461   echo $ECHO_N "(cached) $ECHO_C" >&6
3462 else
3463   ac_cv_linux_vers=`uname -r 2>&1 | \
3464                         sed -n -e '$s/.* //' -e '$s/\..*//p'`
3465 fi
3466
3467         fi
3468         echo "$as_me:$LINENO: result: $ac_cv_linux_vers" >&5
3469 echo "${ECHO_T}$ac_cv_linux_vers" >&6
3470         if test $ac_cv_linux_vers = unknown ; then
3471                 { { echo "$as_me:$LINENO: error: cannot determine linux version when cross-compiling" >&5
3472 echo "$as_me: error: cannot determine linux version when cross-compiling" >&2;}
3473    { (exit 1); exit 1; }; }
3474         fi
3475         if test $ac_cv_linux_vers -lt 2 ; then
3476                 { { echo "$as_me:$LINENO: error: version 2 or higher required; see the INSTALL doc for more info" >&5
3477 echo "$as_me: error: version 2 or higher required; see the INSTALL doc for more info" >&2;}
3478    { (exit 1); exit 1; }; }
3479         fi
3480         ;;
3481
3482 *)
3483         ;;
3484 esac
3485
3486
3487
3488 for ac_header in smi.h
3489 do
3490 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3491 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3492   echo "$as_me:$LINENO: checking for $ac_header" >&5
3493 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3494 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3495   echo $ECHO_N "(cached) $ECHO_C" >&6
3496 fi
3497 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3498 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3499 else
3500   # Is the header compilable?
3501 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3502 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3503 cat >conftest.$ac_ext <<_ACEOF
3504 #line $LINENO "configure"
3505 /* confdefs.h.  */
3506 _ACEOF
3507 cat confdefs.h >>conftest.$ac_ext
3508 cat >>conftest.$ac_ext <<_ACEOF
3509 /* end confdefs.h.  */
3510 $ac_includes_default
3511 #include <$ac_header>
3512 _ACEOF
3513 rm -f conftest.$ac_objext
3514 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3515   (eval $ac_compile) 2>&5
3516   ac_status=$?
3517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3518   (exit $ac_status); } &&
3519          { ac_try='test -s conftest.$ac_objext'
3520   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3521   (eval $ac_try) 2>&5
3522   ac_status=$?
3523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3524   (exit $ac_status); }; }; then
3525   ac_header_compiler=yes
3526 else
3527   echo "$as_me: failed program was:" >&5
3528 sed 's/^/| /' conftest.$ac_ext >&5
3529
3530 ac_header_compiler=no
3531 fi
3532 rm -f conftest.$ac_objext conftest.$ac_ext
3533 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3534 echo "${ECHO_T}$ac_header_compiler" >&6
3535
3536 # Is the header present?
3537 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3538 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3539 cat >conftest.$ac_ext <<_ACEOF
3540 #line $LINENO "configure"
3541 /* confdefs.h.  */
3542 _ACEOF
3543 cat confdefs.h >>conftest.$ac_ext
3544 cat >>conftest.$ac_ext <<_ACEOF
3545 /* end confdefs.h.  */
3546 #include <$ac_header>
3547 _ACEOF
3548 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3549   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3550   ac_status=$?
3551   grep -v '^ *+' conftest.er1 >conftest.err
3552   rm -f conftest.er1
3553   cat conftest.err >&5
3554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3555   (exit $ac_status); } >/dev/null; then
3556   if test -s conftest.err; then
3557     ac_cpp_err=$ac_c_preproc_warn_flag
3558   else
3559     ac_cpp_err=
3560   fi
3561 else
3562   ac_cpp_err=yes
3563 fi
3564 if test -z "$ac_cpp_err"; then
3565   ac_header_preproc=yes
3566 else
3567   echo "$as_me: failed program was:" >&5
3568 sed 's/^/| /' conftest.$ac_ext >&5
3569
3570   ac_header_preproc=no
3571 fi
3572 rm -f conftest.err conftest.$ac_ext
3573 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3574 echo "${ECHO_T}$ac_header_preproc" >&6
3575
3576 # So?  What about this header?
3577 case $ac_header_compiler:$ac_header_preproc in
3578   yes:no )
3579     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3580 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3581     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3582 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3583     (
3584       cat <<\_ASBOX
3585 ## ------------------------------------ ##
3586 ## Report this to bug-autoconf@gnu.org. ##
3587 ## ------------------------------------ ##
3588 _ASBOX
3589     ) |
3590       sed "s/^/$as_me: WARNING:     /" >&2
3591     ;;
3592   no:yes )
3593     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3594 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3595     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3596 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3597     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3598 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3599     (
3600       cat <<\_ASBOX
3601 ## ------------------------------------ ##
3602 ## Report this to bug-autoconf@gnu.org. ##
3603 ## ------------------------------------ ##
3604 _ASBOX
3605     ) |
3606       sed "s/^/$as_me: WARNING:     /" >&2
3607     ;;
3608 esac
3609 echo "$as_me:$LINENO: checking for $ac_header" >&5
3610 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3611 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3612   echo $ECHO_N "(cached) $ECHO_C" >&6
3613 else
3614   eval "$as_ac_Header=$ac_header_preproc"
3615 fi
3616 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3617 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3618
3619 fi
3620 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3621   cat >>confdefs.h <<_ACEOF
3622 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3623 _ACEOF
3624
3625 fi
3626
3627 done
3628
3629
3630 echo "$as_me:$LINENO: checking for smiInit in -lsmi" >&5
3631 echo $ECHO_N "checking for smiInit in -lsmi... $ECHO_C" >&6
3632 if test "${ac_cv_lib_smi_smiInit+set}" = set; then
3633   echo $ECHO_N "(cached) $ECHO_C" >&6
3634 else
3635   ac_check_lib_save_LIBS=$LIBS
3636 LIBS="-lsmi  $LIBS"
3637 cat >conftest.$ac_ext <<_ACEOF
3638 #line $LINENO "configure"
3639 /* confdefs.h.  */
3640 _ACEOF
3641 cat confdefs.h >>conftest.$ac_ext
3642 cat >>conftest.$ac_ext <<_ACEOF
3643 /* end confdefs.h.  */
3644
3645 /* Override any gcc2 internal prototype to avoid an error.  */
3646 #ifdef __cplusplus
3647 extern "C"
3648 #endif
3649 /* We use char because int might match the return type of a gcc2
3650    builtin and then its argument prototype would still apply.  */
3651 char smiInit ();
3652 int
3653 main ()
3654 {
3655 smiInit ();
3656   ;
3657   return 0;
3658 }
3659 _ACEOF
3660 rm -f conftest.$ac_objext conftest$ac_exeext
3661 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3662   (eval $ac_link) 2>&5
3663   ac_status=$?
3664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3665   (exit $ac_status); } &&
3666          { ac_try='test -s conftest$ac_exeext'
3667   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3668   (eval $ac_try) 2>&5
3669   ac_status=$?
3670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3671   (exit $ac_status); }; }; then
3672   ac_cv_lib_smi_smiInit=yes
3673 else
3674   echo "$as_me: failed program was:" >&5
3675 sed 's/^/| /' conftest.$ac_ext >&5
3676
3677 ac_cv_lib_smi_smiInit=no
3678 fi
3679 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3680 LIBS=$ac_check_lib_save_LIBS
3681 fi
3682 echo "$as_me:$LINENO: result: $ac_cv_lib_smi_smiInit" >&5
3683 echo "${ECHO_T}$ac_cv_lib_smi_smiInit" >&6
3684 if test $ac_cv_lib_smi_smiInit = yes; then
3685   cat >>confdefs.h <<_ACEOF
3686 #define HAVE_LIBSMI 1
3687 _ACEOF
3688
3689   LIBS="-lsmi $LIBS"
3690
3691 fi
3692
3693 if test "$ac_cv_header_smi_h" = yes -a "$ac_cv_lib_smi_smiInit" = yes
3694 then
3695 echo "$as_me:$LINENO: checking whether to enable libsmi" >&5
3696 echo $ECHO_N "checking whether to enable libsmi... $ECHO_C" >&6
3697         if test "$cross_compiling" = yes; then
3698    echo "$as_me:$LINENO: result: not when cross-compiling" >&5
3699 echo "${ECHO_T}not when cross-compiling" >&6
3700   libsmi=no
3701
3702 else
3703   cat >conftest.$ac_ext <<_ACEOF
3704 #line $LINENO "configure"
3705 /* confdefs.h.  */
3706 _ACEOF
3707 cat confdefs.h >>conftest.$ac_ext
3708 cat >>conftest.$ac_ext <<_ACEOF
3709 /* end confdefs.h.  */
3710  /* libsmi available check */
3711 #include <smi.h>
3712 main()
3713 {
3714   int current, revision, age, n;
3715   const int required = 2;
3716   if (smiInit(""))
3717     exit(1);
3718   if (strcmp(SMI_LIBRARY_VERSION, smi_library_version))
3719     exit(2);
3720   n = sscanf(smi_library_version, "%d:%d:%d", &current, &revision, &age);
3721   if (n != 3)
3722     exit(3);
3723   if (required < current - age || required > current)
3724     exit(4);
3725   exit(0);
3726 }
3727
3728 _ACEOF
3729 rm -f conftest$ac_exeext
3730 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3731   (eval $ac_link) 2>&5
3732   ac_status=$?
3733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3734   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3735   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3736   (eval $ac_try) 2>&5
3737   ac_status=$?
3738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3739   (exit $ac_status); }; }; then
3740    echo "$as_me:$LINENO: result: yes" >&5
3741 echo "${ECHO_T}yes" >&6
3742   cat >>confdefs.h <<\_ACEOF
3743 #define LIBSMI 1
3744 _ACEOF
3745
3746   libsmi=yes
3747 else
3748   echo "$as_me: program exited with status $ac_status" >&5
3749 echo "$as_me: failed program was:" >&5
3750 sed 's/^/| /' conftest.$ac_ext >&5
3751
3752 ( exit $ac_status )
3753  case $? in
3754   1) echo "$as_me:$LINENO: result: no - smiInit failed" >&5
3755 echo "${ECHO_T}no - smiInit failed" >&6 ;;
3756   2) echo "$as_me:$LINENO: result: no - header/library version mismatch" >&5
3757 echo "${ECHO_T}no - header/library version mismatch" >&6 ;;
3758   3) echo "$as_me:$LINENO: result: no - can't determine library version" >&5
3759 echo "${ECHO_T}no - can't determine library version" >&6 ;;
3760   4) echo "$as_me:$LINENO: result: no - too old" >&5
3761 echo "${ECHO_T}no - too old" >&6 ;;
3762   *) echo "$as_me:$LINENO: result: no" >&5
3763 echo "${ECHO_T}no" >&6 ;;
3764   esac
3765   libsmi=no
3766 fi
3767 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3768 fi
3769 fi
3770
3771 echo "$as_me:$LINENO: checking whether to enable the possibly-buggy SMB printer" >&5
3772 echo $ECHO_N "checking whether to enable the possibly-buggy SMB printer... $ECHO_C" >&6
3773 # Check whether --enable-smb or --disable-smb was given.
3774 if test "${enable_smb+set}" = set; then
3775   enableval="$enable_smb"
3776
3777 else
3778   enableval=yes
3779 fi;
3780 case "$enableval" in
3781 yes)    echo "$as_me:$LINENO: result: yes" >&5
3782 echo "${ECHO_T}yes" >&6
3783         { echo "$as_me:$LINENO: WARNING: The SMB printer may have exploitable buffer overflows!!!" >&5
3784 echo "$as_me: WARNING: The SMB printer may have exploitable buffer overflows!!!" >&2;}
3785         cat >>confdefs.h <<\_ACEOF
3786 #define TCPDUMP_DO_SMB 1
3787 _ACEOF
3788
3789         LOCALSRC="print-smb.c smbutil.c $LOCALSRC"
3790         ;;
3791 *)      echo "$as_me:$LINENO: result: no" >&5
3792 echo "${ECHO_T}no" >&6
3793         ;;
3794 esac
3795
3796
3797 # Check whether --with-user or --without-user was given.
3798 if test "${with_user+set}" = set; then
3799   withval="$with_user"
3800
3801 fi;
3802 echo "$as_me:$LINENO: checking whether to drop root privileges by default" >&5
3803 echo $ECHO_N "checking whether to drop root privileges by default... $ECHO_C" >&6
3804 if test ! -z "$with_user" ; then
3805         cat >>confdefs.h <<_ACEOF
3806 #define WITH_USER "$withval"
3807 _ACEOF
3808
3809        echo "$as_me:$LINENO: result: to \"$withval\"" >&5
3810 echo "${ECHO_T}to \"$withval\"" >&6
3811 else
3812        echo "$as_me:$LINENO: result: no" >&5
3813 echo "${ECHO_T}no" >&6
3814 fi
3815
3816
3817 # Check whether --with-chroot or --without-chroot was given.
3818 if test "${with_chroot+set}" = set; then
3819   withval="$with_chroot"
3820
3821 fi;
3822 echo "$as_me:$LINENO: checking whether to chroot" >&5
3823 echo $ECHO_N "checking whether to chroot... $ECHO_C" >&6
3824 if test ! -z "$with_chroot" ; then
3825         cat >>confdefs.h <<_ACEOF
3826 #define WITH_CHROOT "$withval"
3827 _ACEOF
3828
3829        echo "$as_me:$LINENO: result: to \"$withval\"" >&5
3830 echo "${ECHO_T}to \"$withval\"" >&6
3831 else
3832        echo "$as_me:$LINENO: result: no" >&5
3833 echo "${ECHO_T}no" >&6
3834 fi
3835
3836 echo "$as_me:$LINENO: checking whether to enable ipv6" >&5
3837 echo $ECHO_N "checking whether to enable ipv6... $ECHO_C" >&6
3838 # Check whether --enable-ipv6 or --disable-ipv6 was given.
3839 if test "${enable_ipv6+set}" = set; then
3840   enableval="$enable_ipv6"
3841    case "$enableval" in
3842 yes)   echo "$as_me:$LINENO: result: yes" >&5
3843 echo "${ECHO_T}yes" >&6
3844        LOCALSRC="print-ip6.c print-ip6opts.c print-mobility.c print-ripng.c print-icmp6.c print-frag6.c print-rt6.c print-ospf6.c print-dhcp6.c $LOCALSRC"
3845        cat >>confdefs.h <<\_ACEOF
3846 #define INET6 1
3847 _ACEOF
3848
3849        ipv6=yes
3850        ;;
3851 *)
3852        echo "$as_me:$LINENO: result: no" >&5
3853 echo "${ECHO_T}no" >&6
3854        ipv6=no
3855        ;;
3856   esac
3857 else
3858   if test "$cross_compiling" = yes; then
3859    echo "$as_me:$LINENO: result: no" >&5
3860 echo "${ECHO_T}no" >&6
3861   ipv6=no
3862
3863 else
3864   cat >conftest.$ac_ext <<_ACEOF
3865 #line $LINENO "configure"
3866 /* confdefs.h.  */
3867 _ACEOF
3868 cat confdefs.h >>conftest.$ac_ext
3869 cat >>conftest.$ac_ext <<_ACEOF
3870 /* end confdefs.h.  */
3871  /* AF_INET6 available check */
3872 #include <sys/types.h>
3873 #include <sys/socket.h>
3874 main()
3875 {
3876  if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
3877    exit(1);
3878  else
3879    exit(0);
3880 }
3881
3882 _ACEOF
3883 rm -f conftest$ac_exeext
3884 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3885   (eval $ac_link) 2>&5
3886   ac_status=$?
3887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3888   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3889   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3890   (eval $ac_try) 2>&5
3891   ac_status=$?
3892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3893   (exit $ac_status); }; }; then
3894    echo "$as_me:$LINENO: result: yes" >&5
3895 echo "${ECHO_T}yes" >&6
3896   LOCALSRC="print-ip6.c print-ip6opts.c print-mobility.c print-ripng.c print-icmp6.c print-frag6.c print-rt6.c print-ospf6.c print-dhcp6.c $LOCALSRC"
3897   cat >>confdefs.h <<\_ACEOF
3898 #define INET6 1
3899 _ACEOF
3900
3901   ipv6=yes
3902 else
3903   echo "$as_me: program exited with status $ac_status" >&5
3904 echo "$as_me: failed program was:" >&5
3905 sed 's/^/| /' conftest.$ac_ext >&5
3906
3907 ( exit $ac_status )
3908  echo "$as_me:$LINENO: result: no" >&5
3909 echo "${ECHO_T}no" >&6
3910   ipv6=no
3911 fi
3912 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3913 fi
3914 fi;
3915
3916 ipv6type=unknown
3917 ipv6lib=none
3918 ipv6trylibc=no
3919
3920 if test "$ipv6" = "yes"; then
3921         echo "$as_me:$LINENO: checking ipv6 stack type" >&5
3922 echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6
3923         for i in inria kame linux-glibc linux-libinet6 toshiba v6d zeta; do
3924                 case $i in
3925                 inria)
3926                                                 cat >conftest.$ac_ext <<_ACEOF
3927 #line $LINENO "configure"
3928 /* confdefs.h.  */
3929 _ACEOF
3930 cat confdefs.h >>conftest.$ac_ext
3931 cat >>conftest.$ac_ext <<_ACEOF
3932 /* end confdefs.h.  */
3933 #include <netinet/in.h>
3934 #ifdef IPV6_INRIA_VERSION
3935 yes
3936 #endif
3937 _ACEOF
3938 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3939   $EGREP "yes" >/dev/null 2>&1; then
3940   ipv6type=$i;
3941                                 CFLAGS="-DINET6 $CFLAGS"
3942 fi
3943 rm -f conftest*
3944
3945                         ;;
3946                 kame)
3947                                                 cat >conftest.$ac_ext <<_ACEOF
3948 #line $LINENO "configure"
3949 /* confdefs.h.  */
3950 _ACEOF
3951 cat confdefs.h >>conftest.$ac_ext
3952 cat >>conftest.$ac_ext <<_ACEOF
3953 /* end confdefs.h.  */
3954 #include <netinet/in.h>
3955 #ifdef __KAME__
3956 yes
3957 #endif
3958 _ACEOF
3959 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3960   $EGREP "yes" >/dev/null 2>&1; then
3961   ipv6type=$i;
3962                                 ipv6lib=inet6;
3963                                 ipv6libdir=/usr/local/v6/lib;
3964                                 ipv6trylibc=yes;
3965                                 CFLAGS="-DINET6 $CFLAGS"
3966 fi
3967 rm -f conftest*
3968
3969                         ;;
3970                 linux-glibc)
3971                                                 cat >conftest.$ac_ext <<_ACEOF
3972 #line $LINENO "configure"
3973 /* confdefs.h.  */
3974 _ACEOF
3975 cat confdefs.h >>conftest.$ac_ext
3976 cat >>conftest.$ac_ext <<_ACEOF
3977 /* end confdefs.h.  */
3978 #include <features.h>
3979 #if defined(__GLIBC__) && __GLIBC__ >= 2 && __GLIBC_MINOR__ >= 1
3980 yes
3981 #endif
3982 _ACEOF
3983 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3984   $EGREP "yes" >/dev/null 2>&1; then
3985   ipv6type=$i;
3986                                 CFLAGS="-DINET6 $CFLAGS"
3987 fi
3988 rm -f conftest*
3989
3990                         ;;
3991                 linux-libinet6)
3992                                                                                                                                                 if test -d /usr/inet6 -o -f /usr/include/netinet/ip6.h; then
3993                                 ipv6type=$i
3994                                 ipv6lib=inet6
3995                                 ipv6libdir=/usr/inet6/lib
3996                                 ipv6trylibc=yes;
3997                                 CFLAGS="-DINET6 -I/usr/inet6/include $CFLAGS"
3998                         fi
3999                         ;;
4000                 toshiba)
4001                         cat >conftest.$ac_ext <<_ACEOF
4002 #line $LINENO "configure"
4003 /* confdefs.h.  */
4004 _ACEOF
4005 cat confdefs.h >>conftest.$ac_ext
4006 cat >>conftest.$ac_ext <<_ACEOF
4007 /* end confdefs.h.  */
4008 #include <sys/param.h>
4009 #ifdef _TOSHIBA_INET6
4010 yes
4011 #endif
4012 _ACEOF
4013 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4014   $EGREP "yes" >/dev/null 2>&1; then
4015   ipv6type=$i;
4016                                 ipv6lib=inet6;
4017                                 ipv6libdir=/usr/local/v6/lib;
4018                                 CFLAGS="-DINET6 $CFLAGS"
4019 fi
4020 rm -f conftest*
4021
4022                         ;;
4023                 v6d)
4024                         cat >conftest.$ac_ext <<_ACEOF
4025 #line $LINENO "configure"
4026 /* confdefs.h.  */
4027 _ACEOF
4028 cat confdefs.h >>conftest.$ac_ext
4029 cat >>conftest.$ac_ext <<_ACEOF
4030 /* end confdefs.h.  */
4031 #include </usr/local/v6/include/sys/v6config.h>
4032 #ifdef __V6D__
4033 yes
4034 #endif
4035 _ACEOF
4036 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4037   $EGREP "yes" >/dev/null 2>&1; then
4038   ipv6type=$i;
4039                                 ipv6lib=v6;
4040                                 ipv6libdir=/usr/local/v6/lib;
4041                                 CFLAGS="-I/usr/local/v6/include $CFLAGS"
4042 fi
4043 rm -f conftest*
4044
4045                         ;;
4046                 zeta)
4047                         cat >conftest.$ac_ext <<_ACEOF
4048 #line $LINENO "configure"
4049 /* confdefs.h.  */
4050 _ACEOF
4051 cat confdefs.h >>conftest.$ac_ext
4052 cat >>conftest.$ac_ext <<_ACEOF
4053 /* end confdefs.h.  */
4054 #include <sys/param.h>
4055 #ifdef _ZETA_MINAMI_INET6
4056 yes
4057 #endif
4058 _ACEOF
4059 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4060   $EGREP "yes" >/dev/null 2>&1; then
4061   ipv6type=$i;
4062                                 ipv6lib=inet6;
4063                                 ipv6libdir=/usr/local/v6/lib;
4064                                 CFLAGS="-DINET6 $CFLAGS"
4065 fi
4066 rm -f conftest*
4067
4068                         ;;
4069                 esac
4070                 if test "$ipv6type" != "unknown"; then
4071                         break
4072                 fi
4073         done
4074         echo "$as_me:$LINENO: result: $ipv6type" >&5
4075 echo "${ECHO_T}$ipv6type" >&6
4076 fi
4077
4078 if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
4079         if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then
4080                 LIBS="-L$ipv6libdir -l$ipv6lib $LIBS"
4081                 echo "You have $ipv6lib library, using it"
4082         else
4083                 if test "$ipv6trylibc" = "yes"; then
4084                         echo "You do not have $ipv6lib library, using libc"
4085                 else
4086                         echo 'Fatal: no $ipv6lib library found.  cannot continue.'
4087                         echo "You need to fetch lib$ipv6lib.a from appropriate"
4088                         echo 'ipv6 kit and compile beforehand.'
4089                         exit 1
4090                 fi
4091         fi
4092 fi
4093
4094
4095 if test "$ipv6" = "yes"; then
4096         #
4097         # XXX - on Tru64 UNIX 5.1, there is no "getaddrinfo()"
4098         # function in libc; there are "ngetaddrinfo()" and
4099         # "ogetaddrinfo()" functions, and <netdb.h> #defines
4100         # "getaddrinfo" to be either "ngetaddrinfo" or
4101         # "ogetaddrinfo", depending on whether _SOCKADDR_LEN
4102         # or _XOPEN_SOURCE_EXTENDED are defined or not.
4103         #
4104         # So this test doesn't work on Tru64 5.1, and possibly
4105         # on other 5.x releases.  This causes the configure
4106         # script to become confused, and results in libpcap
4107         # being unbuildable.
4108         #
4109         echo "$as_me:$LINENO: checking for library containing getaddrinfo" >&5
4110 echo $ECHO_N "checking for library containing getaddrinfo... $ECHO_C" >&6
4111 if test "${ac_cv_search_getaddrinfo+set}" = set; then
4112   echo $ECHO_N "(cached) $ECHO_C" >&6
4113 else
4114   ac_func_search_save_LIBS=$LIBS
4115 ac_cv_search_getaddrinfo=no
4116 cat >conftest.$ac_ext <<_ACEOF
4117 #line $LINENO "configure"
4118 /* confdefs.h.  */
4119 _ACEOF
4120 cat confdefs.h >>conftest.$ac_ext
4121 cat >>conftest.$ac_ext <<_ACEOF
4122 /* end confdefs.h.  */
4123
4124 /* Override any gcc2 internal prototype to avoid an error.  */
4125 #ifdef __cplusplus
4126 extern "C"
4127 #endif
4128 /* We use char because int might match the return type of a gcc2
4129    builtin and then its argument prototype would still apply.  */
4130 char getaddrinfo ();
4131 int
4132 main ()
4133 {
4134 getaddrinfo ();
4135   ;
4136   return 0;
4137 }
4138 _ACEOF
4139 rm -f conftest.$ac_objext conftest$ac_exeext
4140 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4141   (eval $ac_link) 2>&5
4142   ac_status=$?
4143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4144   (exit $ac_status); } &&
4145          { ac_try='test -s conftest$ac_exeext'
4146   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4147   (eval $ac_try) 2>&5
4148   ac_status=$?
4149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4150   (exit $ac_status); }; }; then
4151   ac_cv_search_getaddrinfo="none required"
4152 else
4153   echo "$as_me: failed program was:" >&5
4154 sed 's/^/| /' conftest.$ac_ext >&5
4155
4156 fi
4157 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4158 if test "$ac_cv_search_getaddrinfo" = no; then
4159   for ac_lib in socket; do
4160     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
4161     cat >conftest.$ac_ext <<_ACEOF
4162 #line $LINENO "configure"
4163 /* confdefs.h.  */
4164 _ACEOF
4165 cat confdefs.h >>conftest.$ac_ext
4166 cat >>conftest.$ac_ext <<_ACEOF
4167 /* end confdefs.h.  */
4168
4169 /* Override any gcc2 internal prototype to avoid an error.  */
4170 #ifdef __cplusplus
4171 extern "C"
4172 #endif
4173 /* We use char because int might match the return type of a gcc2
4174    builtin and then its argument prototype would still apply.  */
4175 char getaddrinfo ();
4176 int
4177 main ()
4178 {
4179 getaddrinfo ();
4180   ;
4181   return 0;
4182 }
4183 _ACEOF
4184 rm -f conftest.$ac_objext conftest$ac_exeext
4185 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4186   (eval $ac_link) 2>&5
4187   ac_status=$?
4188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4189   (exit $ac_status); } &&
4190          { ac_try='test -s conftest$ac_exeext'
4191   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4192   (eval $ac_try) 2>&5
4193   ac_status=$?
4194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4195   (exit $ac_status); }; }; then
4196   ac_cv_search_getaddrinfo="-l$ac_lib"
4197 break
4198 else
4199   echo "$as_me: failed program was:" >&5
4200 sed 's/^/| /' conftest.$ac_ext >&5
4201
4202 fi
4203 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4204   done
4205 fi
4206 LIBS=$ac_func_search_save_LIBS
4207 fi
4208 echo "$as_me:$LINENO: result: $ac_cv_search_getaddrinfo" >&5
4209 echo "${ECHO_T}$ac_cv_search_getaddrinfo" >&6
4210 if test "$ac_cv_search_getaddrinfo" != no; then
4211   test "$ac_cv_search_getaddrinfo" = "none required" || LIBS="$ac_cv_search_getaddrinfo $LIBS"
4212         echo "$as_me:$LINENO: checking getaddrinfo bug" >&5
4213 echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6
4214         if test "${td_cv_buggygetaddrinfo+set}" = set; then
4215   echo $ECHO_N "(cached) $ECHO_C" >&6
4216 else
4217   if test "$cross_compiling" = yes; then
4218   td_cv_buggygetaddrinfo=yes
4219 else
4220   cat >conftest.$ac_ext <<_ACEOF
4221 #line $LINENO "configure"
4222 /* confdefs.h.  */
4223 _ACEOF
4224 cat confdefs.h >>conftest.$ac_ext
4225 cat >>conftest.$ac_ext <<_ACEOF
4226 /* end confdefs.h.  */
4227
4228 #include <sys/types.h>
4229 #include <netdb.h>
4230 #include <string.h>
4231 #include <sys/socket.h>
4232 #include <netinet/in.h>
4233
4234 main()
4235 {
4236   int passive, gaierr, inet4 = 0, inet6 = 0;
4237   struct addrinfo hints, *ai, *aitop;
4238   char straddr[INET6_ADDRSTRLEN], strport[16];
4239
4240   for (passive = 0; passive <= 1; passive++) {
4241     memset(&hints, 0, sizeof(hints));
4242     hints.ai_family = AF_UNSPEC;
4243     hints.ai_flags = passive ? AI_PASSIVE : 0;
4244     hints.ai_socktype = SOCK_STREAM;
4245     hints.ai_protocol = IPPROTO_TCP;
4246     if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
4247       (void)gai_strerror(gaierr);
4248       goto bad;
4249     }
4250     for (ai = aitop; ai; ai = ai->ai_next) {
4251       if (ai->ai_addr == NULL ||
4252           ai->ai_addrlen == 0 ||
4253           getnameinfo(ai->ai_addr, ai->ai_addrlen,
4254                       straddr, sizeof(straddr), strport, sizeof(strport),
4255                       NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
4256         goto bad;
4257       }
4258       switch (ai->ai_family) {
4259       case AF_INET:
4260         if (strcmp(strport, "54321") != 0) {
4261           goto bad;
4262         }
4263         if (passive) {
4264           if (strcmp(straddr, "0.0.0.0") != 0) {
4265             goto bad;
4266           }
4267         } else {
4268           if (strcmp(straddr, "127.0.0.1") != 0) {
4269             goto bad;
4270           }
4271         }
4272         inet4++;
4273         break;
4274       case AF_INET6:
4275         if (strcmp(strport, "54321") != 0) {
4276           goto bad;
4277         }
4278         if (passive) {
4279           if (strcmp(straddr, "::") != 0) {
4280             goto bad;
4281           }
4282         } else {
4283           if (strcmp(straddr, "::1") != 0) {
4284             goto bad;
4285           }
4286         }
4287         inet6++;
4288         break;
4289       case AF_UNSPEC:
4290         goto bad;
4291         break;
4292 #ifdef AF_UNIX
4293       case AF_UNIX:
4294 #else
4295 #ifdef AF_LOCAL
4296       case AF_LOCAL:
4297 #endif
4298 #endif
4299       default:
4300         /* another family support? */
4301         break;
4302       }
4303     }
4304   }
4305
4306   /* supported family should be 2, unsupported family should be 0 */
4307   if (!(inet4 == 0 || inet4 == 2))
4308     goto bad;
4309   if (!(inet6 == 0 || inet6 == 2))
4310     goto bad;
4311
4312   if (aitop)
4313     freeaddrinfo(aitop);
4314   exit(0);
4315
4316  bad:
4317   if (aitop)
4318     freeaddrinfo(aitop);
4319   exit(1);
4320 }
4321
4322 _ACEOF
4323 rm -f conftest$ac_exeext
4324 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4325   (eval $ac_link) 2>&5
4326   ac_status=$?
4327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4328   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4329   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4330   (eval $ac_try) 2>&5
4331   ac_status=$?
4332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4333   (exit $ac_status); }; }; then
4334   td_cv_buggygetaddrinfo=no
4335 else
4336   echo "$as_me: program exited with status $ac_status" >&5
4337 echo "$as_me: failed program was:" >&5
4338 sed 's/^/| /' conftest.$ac_ext >&5
4339
4340 ( exit $ac_status )
4341 td_cv_buggygetaddrinfo=yes
4342 fi
4343 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4344 fi
4345 fi
4346
4347         if test "$td_cv_buggygetaddrinfo" = no; then
4348                 echo "$as_me:$LINENO: result: good" >&5
4349 echo "${ECHO_T}good" >&6
4350         else
4351                 echo "$as_me:$LINENO: result: buggy" >&5
4352 echo "${ECHO_T}buggy" >&6
4353         fi
4354
4355         if test "$td_cv_buggygetaddrinfo" = "yes"; then
4356                 #
4357                 # XXX - it doesn't appear that "ipv6type" can ever be
4358                 # set to "linux".  Should this be testing for
4359                 # "linux-glibc", or for that *or* "linux-libinet6"?
4360                 # If the latter, note that "linux-libinet6" is also
4361                 # the type given to some non-Linux OSes.
4362                 #
4363                 if test "$ipv6type" != "linux"; then
4364                         echo 'Fatal: You must get working getaddrinfo() function.'
4365                         echo '       or you can specify "--disable-ipv6"'.
4366                         exit 1
4367                 else
4368                         echo 'Warning: getaddrinfo() implementation on your system seems be buggy.'
4369                         echo '         Better upgrade your system library to newest version'
4370                         echo '         of GNU C library (aka glibc).'
4371                 fi
4372         fi
4373
4374 fi
4375
4376
4377
4378 for ac_func in getaddrinfo getnameinfo
4379 do
4380 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4381 echo "$as_me:$LINENO: checking for $ac_func" >&5
4382 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4383 if eval "test \"\${$as_ac_var+set}\" = set"; then
4384   echo $ECHO_N "(cached) $ECHO_C" >&6
4385 else
4386   cat >conftest.$ac_ext <<_ACEOF
4387 #line $LINENO "configure"
4388 /* confdefs.h.  */
4389 _ACEOF
4390 cat confdefs.h >>conftest.$ac_ext
4391 cat >>conftest.$ac_ext <<_ACEOF
4392 /* end confdefs.h.  */
4393 /* System header to define __stub macros and hopefully few prototypes,
4394     which can conflict with char $ac_func (); below.
4395     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4396     <limits.h> exists even on freestanding compilers.  */
4397 #ifdef __STDC__
4398 # include <limits.h>
4399 #else
4400 # include <assert.h>
4401 #endif
4402 /* Override any gcc2 internal prototype to avoid an error.  */
4403 #ifdef __cplusplus
4404 extern "C"
4405 {
4406 #endif
4407 /* We use char because int might match the return type of a gcc2
4408    builtin and then its argument prototype would still apply.  */
4409 char $ac_func ();
4410 /* The GNU C library defines this for functions which it implements
4411     to always fail with ENOSYS.  Some functions are actually named
4412     something starting with __ and the normal name is an alias.  */
4413 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4414 choke me
4415 #else
4416 char (*f) () = $ac_func;
4417 #endif
4418 #ifdef __cplusplus
4419 }
4420 #endif
4421
4422 int
4423 main ()
4424 {
4425 return f != $ac_func;
4426   ;
4427   return 0;
4428 }
4429 _ACEOF
4430 rm -f conftest.$ac_objext conftest$ac_exeext
4431 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4432   (eval $ac_link) 2>&5
4433   ac_status=$?
4434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4435   (exit $ac_status); } &&
4436          { ac_try='test -s conftest$ac_exeext'
4437   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4438   (eval $ac_try) 2>&5
4439   ac_status=$?
4440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4441   (exit $ac_status); }; }; then
4442   eval "$as_ac_var=yes"
4443 else
4444   echo "$as_me: failed program was:" >&5
4445 sed 's/^/| /' conftest.$ac_ext >&5
4446
4447 eval "$as_ac_var=no"
4448 fi
4449 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4450 fi
4451 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4452 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4453 if test `eval echo '${'$as_ac_var'}'` = yes; then
4454   cat >>confdefs.h <<_ACEOF
4455 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4456 _ACEOF
4457
4458 else
4459   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
4460 fi
4461 done
4462
4463
4464 fi
4465
4466 echo "$as_me:$LINENO: checking for dnet_htoa declaration in netdnet/dnetdb.h" >&5
4467 echo $ECHO_N "checking for dnet_htoa declaration in netdnet/dnetdb.h... $ECHO_C" >&6
4468 if test "${td_cv_decl_netdnet_dnetdb_h_dnet_htoa+set}" = set; then
4469   echo $ECHO_N "(cached) $ECHO_C" >&6
4470 else
4471   cat >conftest.$ac_ext <<_ACEOF
4472 #line $LINENO "configure"
4473 /* confdefs.h.  */
4474 _ACEOF
4475 cat confdefs.h >>conftest.$ac_ext
4476 cat >>conftest.$ac_ext <<_ACEOF
4477 /* end confdefs.h.  */
4478 #include <netdnet/dnetdb.h>
4479
4480 _ACEOF
4481 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4482   $EGREP "dnet_htoa" >/dev/null 2>&1; then
4483   td_cv_decl_netdnet_dnetdb_h_dnet_htoa=yes
4484 else
4485   td_cv_decl_netdnet_dnetdb_h_dnet_htoa=no
4486 fi
4487 rm -f conftest*
4488
4489 fi
4490 echo "$as_me:$LINENO: result: $td_cv_decl_netdnet_dnetdb_h_dnet_htoa" >&5
4491 echo "${ECHO_T}$td_cv_decl_netdnet_dnetdb_h_dnet_htoa" >&6
4492 if test "$td_cv_decl_netdnet_dnetdb_h_dnet_htoa" = yes; then
4493         cat >>confdefs.h <<\_ACEOF
4494 #define HAVE_NETDNET_DNETDB_H_DNET_HTOA 1
4495 _ACEOF
4496
4497 fi
4498
4499 echo "$as_me:$LINENO: checking for char" >&5
4500 echo $ECHO_N "checking for char... $ECHO_C" >&6
4501 if test "${ac_cv_type_char+set}" = set; then
4502   echo $ECHO_N "(cached) $ECHO_C" >&6
4503 else
4504   cat >conftest.$ac_ext <<_ACEOF
4505 #line $LINENO "configure"
4506 /* confdefs.h.  */
4507 _ACEOF
4508 cat confdefs.h >>conftest.$ac_ext
4509 cat >>conftest.$ac_ext <<_ACEOF
4510 /* end confdefs.h.  */
4511 $ac_includes_default
4512 int
4513 main ()
4514 {
4515 if ((char *) 0)
4516   return 0;
4517 if (sizeof (char))
4518   return 0;
4519   ;
4520   return 0;
4521 }
4522 _ACEOF
4523 rm -f conftest.$ac_objext
4524 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4525   (eval $ac_compile) 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_char=yes
4536 else
4537   echo "$as_me: failed program was:" >&5
4538 sed 's/^/| /' conftest.$ac_ext >&5
4539
4540 ac_cv_type_char=no
4541 fi
4542 rm -f conftest.$ac_objext conftest.$ac_ext
4543 fi
4544 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
4545 echo "${ECHO_T}$ac_cv_type_char" >&6
4546
4547 echo "$as_me:$LINENO: checking size of char" >&5
4548 echo $ECHO_N "checking size of char... $ECHO_C" >&6
4549 if test "${ac_cv_sizeof_char+set}" = set; then
4550   echo $ECHO_N "(cached) $ECHO_C" >&6
4551 else
4552   if test "$ac_cv_type_char" = 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 #line $LINENO "configure"
4561 /* confdefs.h.  */
4562 _ACEOF
4563 cat confdefs.h >>conftest.$ac_ext
4564 cat >>conftest.$ac_ext <<_ACEOF
4565 /* end confdefs.h.  */
4566 $ac_includes_default
4567 int
4568 main ()
4569 {
4570 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
4571 test_array [0] = 0
4572
4573   ;
4574   return 0;
4575 }
4576 _ACEOF
4577 rm -f conftest.$ac_objext
4578 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4579   (eval $ac_compile) 2>&5
4580   ac_status=$?
4581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4582   (exit $ac_status); } &&
4583          { ac_try='test -s conftest.$ac_objext'
4584   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4585   (eval $ac_try) 2>&5
4586   ac_status=$?
4587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4588   (exit $ac_status); }; }; then
4589   ac_lo=0 ac_mid=0
4590   while :; do
4591     cat >conftest.$ac_ext <<_ACEOF
4592 #line $LINENO "configure"
4593 /* confdefs.h.  */
4594 _ACEOF
4595 cat confdefs.h >>conftest.$ac_ext
4596 cat >>conftest.$ac_ext <<_ACEOF
4597 /* end confdefs.h.  */
4598 $ac_includes_default
4599 int
4600 main ()
4601 {
4602 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
4603 test_array [0] = 0
4604
4605   ;
4606   return 0;
4607 }
4608 _ACEOF
4609 rm -f conftest.$ac_objext
4610 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4611   (eval $ac_compile) 2>&5
4612   ac_status=$?
4613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4614   (exit $ac_status); } &&
4615          { ac_try='test -s conftest.$ac_objext'
4616   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4617   (eval $ac_try) 2>&5
4618   ac_status=$?
4619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4620   (exit $ac_status); }; }; then
4621   ac_hi=$ac_mid; break
4622 else
4623   echo "$as_me: failed program was:" >&5
4624 sed 's/^/| /' conftest.$ac_ext >&5
4625
4626 ac_lo=`expr $ac_mid + 1`
4627                     if test $ac_lo -le $ac_mid; then
4628                       ac_lo= ac_hi=
4629                       break
4630                     fi
4631                     ac_mid=`expr 2 '*' $ac_mid + 1`
4632 fi
4633 rm -f conftest.$ac_objext conftest.$ac_ext
4634   done
4635 else
4636   echo "$as_me: failed program was:" >&5
4637 sed 's/^/| /' conftest.$ac_ext >&5
4638
4639 cat >conftest.$ac_ext <<_ACEOF
4640 #line $LINENO "configure"
4641 /* confdefs.h.  */
4642 _ACEOF
4643 cat confdefs.h >>conftest.$ac_ext
4644 cat >>conftest.$ac_ext <<_ACEOF
4645 /* end confdefs.h.  */
4646 $ac_includes_default
4647 int
4648 main ()
4649 {
4650 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
4651 test_array [0] = 0
4652
4653   ;
4654   return 0;
4655 }
4656 _ACEOF
4657 rm -f conftest.$ac_objext
4658 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4659   (eval $ac_compile) 2>&5
4660   ac_status=$?
4661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4662   (exit $ac_status); } &&
4663          { ac_try='test -s conftest.$ac_objext'
4664   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4665   (eval $ac_try) 2>&5
4666   ac_status=$?
4667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4668   (exit $ac_status); }; }; then
4669   ac_hi=-1 ac_mid=-1
4670   while :; do
4671     cat >conftest.$ac_ext <<_ACEOF
4672 #line $LINENO "configure"
4673 /* confdefs.h.  */
4674 _ACEOF
4675 cat confdefs.h >>conftest.$ac_ext
4676 cat >>conftest.$ac_ext <<_ACEOF
4677 /* end confdefs.h.  */
4678 $ac_includes_default
4679 int
4680 main ()
4681 {
4682 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
4683 test_array [0] = 0
4684
4685   ;
4686   return 0;
4687 }
4688 _ACEOF
4689 rm -f conftest.$ac_objext
4690 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4691   (eval $ac_compile) 2>&5
4692   ac_status=$?
4693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4694   (exit $ac_status); } &&
4695          { ac_try='test -s conftest.$ac_objext'
4696   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4697   (eval $ac_try) 2>&5
4698   ac_status=$?
4699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4700   (exit $ac_status); }; }; then
4701   ac_lo=$ac_mid; break
4702 else
4703   echo "$as_me: failed program was:" >&5
4704 sed 's/^/| /' conftest.$ac_ext >&5
4705
4706 ac_hi=`expr '(' $ac_mid ')' - 1`
4707                        if test $ac_mid -le $ac_hi; then
4708                          ac_lo= ac_hi=
4709                          break
4710                        fi
4711                        ac_mid=`expr 2 '*' $ac_mid`
4712 fi
4713 rm -f conftest.$ac_objext conftest.$ac_ext
4714   done
4715 else
4716   echo "$as_me: failed program was:" >&5
4717 sed 's/^/| /' conftest.$ac_ext >&5
4718
4719 ac_lo= ac_hi=
4720 fi
4721 rm -f conftest.$ac_objext conftest.$ac_ext
4722 fi
4723 rm -f conftest.$ac_objext conftest.$ac_ext
4724 # Binary search between lo and hi bounds.
4725 while test "x$ac_lo" != "x$ac_hi"; do
4726   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4727   cat >conftest.$ac_ext <<_ACEOF
4728 #line $LINENO "configure"
4729 /* confdefs.h.  */
4730 _ACEOF
4731 cat confdefs.h >>conftest.$ac_ext
4732 cat >>conftest.$ac_ext <<_ACEOF
4733 /* end confdefs.h.  */
4734 $ac_includes_default
4735 int
4736 main ()
4737 {
4738 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
4739 test_array [0] = 0
4740
4741   ;
4742   return 0;
4743 }
4744 _ACEOF
4745 rm -f conftest.$ac_objext
4746 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4747   (eval $ac_compile) 2>&5
4748   ac_status=$?
4749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4750   (exit $ac_status); } &&
4751          { ac_try='test -s conftest.$ac_objext'
4752   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4753   (eval $ac_try) 2>&5
4754   ac_status=$?
4755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4756   (exit $ac_status); }; }; then
4757   ac_hi=$ac_mid
4758 else
4759   echo "$as_me: failed program was:" >&5
4760 sed 's/^/| /' conftest.$ac_ext >&5
4761
4762 ac_lo=`expr '(' $ac_mid ')' + 1`
4763 fi
4764 rm -f conftest.$ac_objext conftest.$ac_ext
4765 done
4766 case $ac_lo in
4767 ?*) ac_cv_sizeof_char=$ac_lo;;
4768 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
4769 See \`config.log' for more details." >&5
4770 echo "$as_me: error: cannot compute sizeof (char), 77
4771 See \`config.log' for more details." >&2;}
4772    { (exit 1); exit 1; }; } ;;
4773 esac
4774 else
4775   if test "$cross_compiling" = yes; then
4776   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4777 See \`config.log' for more details." >&5
4778 echo "$as_me: error: cannot run test program while cross compiling
4779 See \`config.log' for more details." >&2;}
4780    { (exit 1); exit 1; }; }
4781 else
4782   cat >conftest.$ac_ext <<_ACEOF
4783 #line $LINENO "configure"
4784 /* confdefs.h.  */
4785 _ACEOF
4786 cat confdefs.h >>conftest.$ac_ext
4787 cat >>conftest.$ac_ext <<_ACEOF
4788 /* end confdefs.h.  */
4789 $ac_includes_default
4790 long longval () { return (long) (sizeof (char)); }
4791 unsigned long ulongval () { return (long) (sizeof (char)); }
4792 #include <stdio.h>
4793 #include <stdlib.h>
4794 int
4795 main ()
4796 {
4797
4798   FILE *f = fopen ("conftest.val", "w");
4799   if (! f)
4800     exit (1);
4801   if (((long) (sizeof (char))) < 0)
4802     {
4803       long i = longval ();
4804       if (i != ((long) (sizeof (char))))
4805         exit (1);
4806       fprintf (f, "%ld\n", i);
4807     }
4808   else
4809     {
4810       unsigned long i = ulongval ();
4811       if (i != ((long) (sizeof (char))))
4812         exit (1);
4813       fprintf (f, "%lu\n", i);
4814     }
4815   exit (ferror (f) || fclose (f) != 0);
4816
4817   ;
4818   return 0;
4819 }
4820 _ACEOF
4821 rm -f conftest$ac_exeext
4822 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4823   (eval $ac_link) 2>&5
4824   ac_status=$?
4825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4826   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4827   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4828   (eval $ac_try) 2>&5
4829   ac_status=$?
4830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4831   (exit $ac_status); }; }; then
4832   ac_cv_sizeof_char=`cat conftest.val`
4833 else
4834   echo "$as_me: program exited with status $ac_status" >&5
4835 echo "$as_me: failed program was:" >&5
4836 sed 's/^/| /' conftest.$ac_ext >&5
4837
4838 ( exit $ac_status )
4839 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
4840 See \`config.log' for more details." >&5
4841 echo "$as_me: error: cannot compute sizeof (char), 77
4842 See \`config.log' for more details." >&2;}
4843    { (exit 1); exit 1; }; }
4844 fi
4845 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4846 fi
4847 fi
4848 rm -f conftest.val
4849 else
4850   ac_cv_sizeof_char=0
4851 fi
4852 fi
4853 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
4854 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
4855 cat >>confdefs.h <<_ACEOF
4856 #define SIZEOF_CHAR $ac_cv_sizeof_char
4857 _ACEOF
4858
4859
4860 echo "$as_me:$LINENO: checking for short" >&5
4861 echo $ECHO_N "checking for short... $ECHO_C" >&6
4862 if test "${ac_cv_type_short+set}" = set; then
4863   echo $ECHO_N "(cached) $ECHO_C" >&6
4864 else
4865   cat >conftest.$ac_ext <<_ACEOF
4866 #line $LINENO "configure"
4867 /* confdefs.h.  */
4868 _ACEOF
4869 cat confdefs.h >>conftest.$ac_ext
4870 cat >>conftest.$ac_ext <<_ACEOF
4871 /* end confdefs.h.  */
4872 $ac_includes_default
4873 int
4874 main ()
4875 {
4876 if ((short *) 0)
4877   return 0;
4878 if (sizeof (short))
4879   return 0;
4880   ;
4881   return 0;
4882 }
4883 _ACEOF
4884 rm -f conftest.$ac_objext
4885 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4886   (eval $ac_compile) 2>&5
4887   ac_status=$?
4888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4889   (exit $ac_status); } &&
4890          { ac_try='test -s conftest.$ac_objext'
4891   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4892   (eval $ac_try) 2>&5
4893   ac_status=$?
4894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4895   (exit $ac_status); }; }; then
4896   ac_cv_type_short=yes
4897 else
4898   echo "$as_me: failed program was:" >&5
4899 sed 's/^/| /' conftest.$ac_ext >&5
4900
4901 ac_cv_type_short=no
4902 fi
4903 rm -f conftest.$ac_objext conftest.$ac_ext
4904 fi
4905 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
4906 echo "${ECHO_T}$ac_cv_type_short" >&6
4907
4908 echo "$as_me:$LINENO: checking size of short" >&5
4909 echo $ECHO_N "checking size of short... $ECHO_C" >&6
4910 if test "${ac_cv_sizeof_short+set}" = set; then
4911   echo $ECHO_N "(cached) $ECHO_C" >&6
4912 else
4913   if test "$ac_cv_type_short" = yes; then
4914   # The cast to unsigned long works around a bug in the HP C Compiler
4915   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4916   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4917   # This bug is HP SR number 8606223364.
4918   if test "$cross_compiling" = yes; then
4919   # Depending upon the size, compute the lo and hi bounds.
4920 cat >conftest.$ac_ext <<_ACEOF
4921 #line $LINENO "configure"
4922 /* confdefs.h.  */
4923 _ACEOF
4924 cat confdefs.h >>conftest.$ac_ext
4925 cat >>conftest.$ac_ext <<_ACEOF
4926 /* end confdefs.h.  */
4927 $ac_includes_default
4928 int
4929 main ()
4930 {
4931 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
4932 test_array [0] = 0
4933
4934   ;
4935   return 0;
4936 }
4937 _ACEOF
4938 rm -f conftest.$ac_objext
4939 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4940   (eval $ac_compile) 2>&5
4941   ac_status=$?
4942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4943   (exit $ac_status); } &&
4944          { ac_try='test -s conftest.$ac_objext'
4945   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4946   (eval $ac_try) 2>&5
4947   ac_status=$?
4948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4949   (exit $ac_status); }; }; then
4950   ac_lo=0 ac_mid=0
4951   while :; do
4952     cat >conftest.$ac_ext <<_ACEOF
4953 #line $LINENO "configure"
4954 /* confdefs.h.  */
4955 _ACEOF
4956 cat confdefs.h >>conftest.$ac_ext
4957 cat >>conftest.$ac_ext <<_ACEOF
4958 /* end confdefs.h.  */
4959 $ac_includes_default
4960 int
4961 main ()
4962 {
4963 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4964 test_array [0] = 0
4965
4966   ;
4967   return 0;
4968 }
4969 _ACEOF
4970 rm -f conftest.$ac_objext
4971 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4972   (eval $ac_compile) 2>&5
4973   ac_status=$?
4974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4975   (exit $ac_status); } &&
4976          { ac_try='test -s conftest.$ac_objext'
4977   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4978   (eval $ac_try) 2>&5
4979   ac_status=$?
4980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4981   (exit $ac_status); }; }; then
4982   ac_hi=$ac_mid; break
4983 else
4984   echo "$as_me: failed program was:" >&5
4985 sed 's/^/| /' conftest.$ac_ext >&5
4986
4987 ac_lo=`expr $ac_mid + 1`
4988                     if test $ac_lo -le $ac_mid; then
4989                       ac_lo= ac_hi=
4990                       break
4991                     fi
4992                     ac_mid=`expr 2 '*' $ac_mid + 1`
4993 fi
4994 rm -f conftest.$ac_objext conftest.$ac_ext
4995   done
4996 else
4997   echo "$as_me: failed program was:" >&5
4998 sed 's/^/| /' conftest.$ac_ext >&5
4999
5000 cat >conftest.$ac_ext <<_ACEOF
5001 #line $LINENO "configure"
5002 /* confdefs.h.  */
5003 _ACEOF
5004 cat confdefs.h >>conftest.$ac_ext
5005 cat >>conftest.$ac_ext <<_ACEOF
5006 /* end confdefs.h.  */
5007 $ac_includes_default
5008 int
5009 main ()
5010 {
5011 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
5012 test_array [0] = 0
5013
5014   ;
5015   return 0;
5016 }
5017 _ACEOF
5018 rm -f conftest.$ac_objext
5019 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5020   (eval $ac_compile) 2>&5
5021   ac_status=$?
5022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5023   (exit $ac_status); } &&
5024          { ac_try='test -s conftest.$ac_objext'
5025   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5026   (eval $ac_try) 2>&5
5027   ac_status=$?
5028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5029   (exit $ac_status); }; }; then
5030   ac_hi=-1 ac_mid=-1
5031   while :; do
5032     cat >conftest.$ac_ext <<_ACEOF
5033 #line $LINENO "configure"
5034 /* confdefs.h.  */
5035 _ACEOF
5036 cat confdefs.h >>conftest.$ac_ext
5037 cat >>conftest.$ac_ext <<_ACEOF
5038 /* end confdefs.h.  */
5039 $ac_includes_default
5040 int
5041 main ()
5042 {
5043 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
5044 test_array [0] = 0
5045
5046   ;
5047   return 0;
5048 }
5049 _ACEOF
5050 rm -f conftest.$ac_objext
5051 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5052   (eval $ac_compile) 2>&5
5053   ac_status=$?
5054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5055   (exit $ac_status); } &&
5056          { ac_try='test -s conftest.$ac_objext'
5057   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5058   (eval $ac_try) 2>&5
5059   ac_status=$?
5060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5061   (exit $ac_status); }; }; then
5062   ac_lo=$ac_mid; break
5063 else
5064   echo "$as_me: failed program was:" >&5
5065 sed 's/^/| /' conftest.$ac_ext >&5
5066
5067 ac_hi=`expr '(' $ac_mid ')' - 1`
5068                        if test $ac_mid -le $ac_hi; then
5069                          ac_lo= ac_hi=
5070                          break
5071                        fi
5072                        ac_mid=`expr 2 '*' $ac_mid`
5073 fi
5074 rm -f conftest.$ac_objext conftest.$ac_ext
5075   done
5076 else
5077   echo "$as_me: failed program was:" >&5
5078 sed 's/^/| /' conftest.$ac_ext >&5
5079
5080 ac_lo= ac_hi=
5081 fi
5082 rm -f conftest.$ac_objext conftest.$ac_ext
5083 fi
5084 rm -f conftest.$ac_objext conftest.$ac_ext
5085 # Binary search between lo and hi bounds.
5086 while test "x$ac_lo" != "x$ac_hi"; do
5087   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5088   cat >conftest.$ac_ext <<_ACEOF
5089 #line $LINENO "configure"
5090 /* confdefs.h.  */
5091 _ACEOF
5092 cat confdefs.h >>conftest.$ac_ext
5093 cat >>conftest.$ac_ext <<_ACEOF
5094 /* end confdefs.h.  */
5095 $ac_includes_default
5096 int
5097 main ()
5098 {
5099 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
5100 test_array [0] = 0
5101
5102   ;
5103   return 0;
5104 }
5105 _ACEOF
5106 rm -f conftest.$ac_objext
5107 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5108   (eval $ac_compile) 2>&5
5109   ac_status=$?
5110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5111   (exit $ac_status); } &&
5112          { ac_try='test -s conftest.$ac_objext'
5113   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5114   (eval $ac_try) 2>&5
5115   ac_status=$?
5116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5117   (exit $ac_status); }; }; then
5118   ac_hi=$ac_mid
5119 else
5120   echo "$as_me: failed program was:" >&5
5121 sed 's/^/| /' conftest.$ac_ext >&5
5122
5123 ac_lo=`expr '(' $ac_mid ')' + 1`
5124 fi
5125 rm -f conftest.$ac_objext conftest.$ac_ext
5126 done
5127 case $ac_lo in
5128 ?*) ac_cv_sizeof_short=$ac_lo;;
5129 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
5130 See \`config.log' for more details." >&5
5131 echo "$as_me: error: cannot compute sizeof (short), 77
5132 See \`config.log' for more details." >&2;}
5133    { (exit 1); exit 1; }; } ;;
5134 esac
5135 else
5136   if test "$cross_compiling" = yes; then
5137   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5138 See \`config.log' for more details." >&5
5139 echo "$as_me: error: cannot run test program while cross compiling
5140 See \`config.log' for more details." >&2;}
5141    { (exit 1); exit 1; }; }
5142 else
5143   cat >conftest.$ac_ext <<_ACEOF
5144 #line $LINENO "configure"
5145 /* confdefs.h.  */
5146 _ACEOF
5147 cat confdefs.h >>conftest.$ac_ext
5148 cat >>conftest.$ac_ext <<_ACEOF
5149 /* end confdefs.h.  */
5150 $ac_includes_default
5151 long longval () { return (long) (sizeof (short)); }
5152 unsigned long ulongval () { return (long) (sizeof (short)); }
5153 #include <stdio.h>
5154 #include <stdlib.h>
5155 int
5156 main ()
5157 {
5158
5159   FILE *f = fopen ("conftest.val", "w");
5160   if (! f)
5161     exit (1);
5162   if (((long) (sizeof (short))) < 0)
5163     {
5164       long i = longval ();
5165       if (i != ((long) (sizeof (short))))
5166         exit (1);
5167       fprintf (f, "%ld\n", i);
5168     }
5169   else
5170     {
5171       unsigned long i = ulongval ();
5172       if (i != ((long) (sizeof (short))))
5173         exit (1);
5174       fprintf (f, "%lu\n", i);
5175     }
5176   exit (ferror (f) || fclose (f) != 0);
5177
5178   ;
5179   return 0;
5180 }
5181 _ACEOF
5182 rm -f conftest$ac_exeext
5183 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5184   (eval $ac_link) 2>&5
5185   ac_status=$?
5186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5187   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5188   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5189   (eval $ac_try) 2>&5
5190   ac_status=$?
5191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5192   (exit $ac_status); }; }; then
5193   ac_cv_sizeof_short=`cat conftest.val`
5194 else
5195   echo "$as_me: program exited with status $ac_status" >&5
5196 echo "$as_me: failed program was:" >&5
5197 sed 's/^/| /' conftest.$ac_ext >&5
5198
5199 ( exit $ac_status )
5200 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
5201 See \`config.log' for more details." >&5
5202 echo "$as_me: error: cannot compute sizeof (short), 77
5203 See \`config.log' for more details." >&2;}
5204    { (exit 1); exit 1; }; }
5205 fi
5206 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5207 fi
5208 fi
5209 rm -f conftest.val
5210 else
5211   ac_cv_sizeof_short=0
5212 fi
5213 fi
5214 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
5215 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
5216 cat >>confdefs.h <<_ACEOF
5217 #define SIZEOF_SHORT $ac_cv_sizeof_short
5218 _ACEOF
5219
5220
5221 echo "$as_me:$LINENO: checking for int" >&5
5222 echo $ECHO_N "checking for int... $ECHO_C" >&6
5223 if test "${ac_cv_type_int+set}" = set; then
5224   echo $ECHO_N "(cached) $ECHO_C" >&6
5225 else
5226   cat >conftest.$ac_ext <<_ACEOF
5227 #line $LINENO "configure"
5228 /* confdefs.h.  */
5229 _ACEOF
5230 cat confdefs.h >>conftest.$ac_ext
5231 cat >>conftest.$ac_ext <<_ACEOF
5232 /* end confdefs.h.  */
5233 $ac_includes_default
5234 int
5235 main ()
5236 {
5237 if ((int *) 0)
5238   return 0;
5239 if (sizeof (int))
5240   return 0;
5241   ;
5242   return 0;
5243 }
5244 _ACEOF
5245 rm -f conftest.$ac_objext
5246 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5247   (eval $ac_compile) 2>&5
5248   ac_status=$?
5249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5250   (exit $ac_status); } &&
5251          { ac_try='test -s conftest.$ac_objext'
5252   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5253   (eval $ac_try) 2>&5
5254   ac_status=$?
5255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5256   (exit $ac_status); }; }; then
5257   ac_cv_type_int=yes
5258 else
5259   echo "$as_me: failed program was:" >&5
5260 sed 's/^/| /' conftest.$ac_ext >&5
5261
5262 ac_cv_type_int=no
5263 fi
5264 rm -f conftest.$ac_objext conftest.$ac_ext
5265 fi
5266 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
5267 echo "${ECHO_T}$ac_cv_type_int" >&6
5268
5269 echo "$as_me:$LINENO: checking size of int" >&5
5270 echo $ECHO_N "checking size of int... $ECHO_C" >&6
5271 if test "${ac_cv_sizeof_int+set}" = set; then
5272   echo $ECHO_N "(cached) $ECHO_C" >&6
5273 else
5274   if test "$ac_cv_type_int" = yes; then
5275   # The cast to unsigned long works around a bug in the HP C Compiler
5276   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5277   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5278   # This bug is HP SR number 8606223364.
5279   if test "$cross_compiling" = yes; then
5280   # Depending upon the size, compute the lo and hi bounds.
5281 cat >conftest.$ac_ext <<_ACEOF
5282 #line $LINENO "configure"
5283 /* confdefs.h.  */
5284 _ACEOF
5285 cat confdefs.h >>conftest.$ac_ext
5286 cat >>conftest.$ac_ext <<_ACEOF
5287 /* end confdefs.h.  */
5288 $ac_includes_default
5289 int
5290 main ()
5291 {
5292 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
5293 test_array [0] = 0
5294
5295   ;
5296   return 0;
5297 }
5298 _ACEOF
5299 rm -f conftest.$ac_objext
5300 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5301   (eval $ac_compile) 2>&5
5302   ac_status=$?
5303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5304   (exit $ac_status); } &&
5305          { ac_try='test -s conftest.$ac_objext'
5306   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5307   (eval $ac_try) 2>&5
5308   ac_status=$?
5309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5310   (exit $ac_status); }; }; then
5311   ac_lo=0 ac_mid=0
5312   while :; do
5313     cat >conftest.$ac_ext <<_ACEOF
5314 #line $LINENO "configure"
5315 /* confdefs.h.  */
5316 _ACEOF
5317 cat confdefs.h >>conftest.$ac_ext
5318 cat >>conftest.$ac_ext <<_ACEOF
5319 /* end confdefs.h.  */
5320 $ac_includes_default
5321 int
5322 main ()
5323 {
5324 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
5325 test_array [0] = 0
5326
5327   ;
5328   return 0;
5329 }
5330 _ACEOF
5331 rm -f conftest.$ac_objext
5332 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5333   (eval $ac_compile) 2>&5
5334   ac_status=$?
5335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5336   (exit $ac_status); } &&
5337          { ac_try='test -s conftest.$ac_objext'
5338   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5339   (eval $ac_try) 2>&5
5340   ac_status=$?
5341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5342   (exit $ac_status); }; }; then
5343   ac_hi=$ac_mid; break
5344 else
5345   echo "$as_me: failed program was:" >&5
5346 sed 's/^/| /' conftest.$ac_ext >&5
5347
5348 ac_lo=`expr $ac_mid + 1`
5349                     if test $ac_lo -le $ac_mid; then
5350                       ac_lo= ac_hi=
5351                       break
5352                     fi
5353                     ac_mid=`expr 2 '*' $ac_mid + 1`
5354 fi
5355 rm -f conftest.$ac_objext conftest.$ac_ext
5356   done
5357 else
5358   echo "$as_me: failed program was:" >&5
5359 sed 's/^/| /' conftest.$ac_ext >&5
5360
5361 cat >conftest.$ac_ext <<_ACEOF
5362 #line $LINENO "configure"
5363 /* confdefs.h.  */
5364 _ACEOF
5365 cat confdefs.h >>conftest.$ac_ext
5366 cat >>conftest.$ac_ext <<_ACEOF
5367 /* end confdefs.h.  */
5368 $ac_includes_default
5369 int
5370 main ()
5371 {
5372 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
5373 test_array [0] = 0
5374
5375   ;
5376   return 0;
5377 }
5378 _ACEOF
5379 rm -f conftest.$ac_objext
5380 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5381   (eval $ac_compile) 2>&5
5382   ac_status=$?
5383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5384   (exit $ac_status); } &&
5385          { ac_try='test -s conftest.$ac_objext'
5386   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5387   (eval $ac_try) 2>&5
5388   ac_status=$?
5389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5390   (exit $ac_status); }; }; then
5391   ac_hi=-1 ac_mid=-1
5392   while :; do
5393     cat >conftest.$ac_ext <<_ACEOF
5394 #line $LINENO "configure"
5395 /* confdefs.h.  */
5396 _ACEOF
5397 cat confdefs.h >>conftest.$ac_ext
5398 cat >>conftest.$ac_ext <<_ACEOF
5399 /* end confdefs.h.  */
5400 $ac_includes_default
5401 int
5402 main ()
5403 {
5404 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
5405 test_array [0] = 0
5406
5407   ;
5408   return 0;
5409 }
5410 _ACEOF
5411 rm -f conftest.$ac_objext
5412 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5413   (eval $ac_compile) 2>&5
5414   ac_status=$?
5415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5416   (exit $ac_status); } &&
5417          { ac_try='test -s conftest.$ac_objext'
5418   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5419   (eval $ac_try) 2>&5
5420   ac_status=$?
5421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5422   (exit $ac_status); }; }; then
5423   ac_lo=$ac_mid; break
5424 else
5425   echo "$as_me: failed program was:" >&5
5426 sed 's/^/| /' conftest.$ac_ext >&5
5427
5428 ac_hi=`expr '(' $ac_mid ')' - 1`
5429                        if test $ac_mid -le $ac_hi; then
5430                          ac_lo= ac_hi=
5431                          break
5432                        fi
5433                        ac_mid=`expr 2 '*' $ac_mid`
5434 fi
5435 rm -f conftest.$ac_objext conftest.$ac_ext
5436   done
5437 else
5438   echo "$as_me: failed program was:" >&5
5439 sed 's/^/| /' conftest.$ac_ext >&5
5440
5441 ac_lo= ac_hi=
5442 fi
5443 rm -f conftest.$ac_objext conftest.$ac_ext
5444 fi
5445 rm -f conftest.$ac_objext conftest.$ac_ext
5446 # Binary search between lo and hi bounds.
5447 while test "x$ac_lo" != "x$ac_hi"; do
5448   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5449   cat >conftest.$ac_ext <<_ACEOF
5450 #line $LINENO "configure"
5451 /* confdefs.h.  */
5452 _ACEOF
5453 cat confdefs.h >>conftest.$ac_ext
5454 cat >>conftest.$ac_ext <<_ACEOF
5455 /* end confdefs.h.  */
5456 $ac_includes_default
5457 int
5458 main ()
5459 {
5460 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
5461 test_array [0] = 0
5462
5463   ;
5464   return 0;
5465 }
5466 _ACEOF
5467 rm -f conftest.$ac_objext
5468 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5469   (eval $ac_compile) 2>&5
5470   ac_status=$?
5471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5472   (exit $ac_status); } &&
5473          { ac_try='test -s conftest.$ac_objext'
5474   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5475   (eval $ac_try) 2>&5
5476   ac_status=$?
5477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5478   (exit $ac_status); }; }; then
5479   ac_hi=$ac_mid
5480 else
5481   echo "$as_me: failed program was:" >&5
5482 sed 's/^/| /' conftest.$ac_ext >&5
5483
5484 ac_lo=`expr '(' $ac_mid ')' + 1`
5485 fi
5486 rm -f conftest.$ac_objext conftest.$ac_ext
5487 done
5488 case $ac_lo in
5489 ?*) ac_cv_sizeof_int=$ac_lo;;
5490 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
5491 See \`config.log' for more details." >&5
5492 echo "$as_me: error: cannot compute sizeof (int), 77
5493 See \`config.log' for more details." >&2;}
5494    { (exit 1); exit 1; }; } ;;
5495 esac
5496 else
5497   if test "$cross_compiling" = yes; then
5498   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5499 See \`config.log' for more details." >&5
5500 echo "$as_me: error: cannot run test program while cross compiling
5501 See \`config.log' for more details." >&2;}
5502    { (exit 1); exit 1; }; }
5503 else
5504   cat >conftest.$ac_ext <<_ACEOF
5505 #line $LINENO "configure"
5506 /* confdefs.h.  */
5507 _ACEOF
5508 cat confdefs.h >>conftest.$ac_ext
5509 cat >>conftest.$ac_ext <<_ACEOF
5510 /* end confdefs.h.  */
5511 $ac_includes_default
5512 long longval () { return (long) (sizeof (int)); }
5513 unsigned long ulongval () { return (long) (sizeof (int)); }
5514 #include <stdio.h>
5515 #include <stdlib.h>
5516 int
5517 main ()
5518 {
5519
5520   FILE *f = fopen ("conftest.val", "w");
5521   if (! f)
5522     exit (1);
5523   if (((long) (sizeof (int))) < 0)
5524     {
5525       long i = longval ();
5526       if (i != ((long) (sizeof (int))))
5527         exit (1);
5528       fprintf (f, "%ld\n", i);
5529     }
5530   else
5531     {
5532       unsigned long i = ulongval ();
5533       if (i != ((long) (sizeof (int))))
5534         exit (1);
5535       fprintf (f, "%lu\n", i);
5536     }
5537   exit (ferror (f) || fclose (f) != 0);
5538
5539   ;
5540   return 0;
5541 }
5542 _ACEOF
5543 rm -f conftest$ac_exeext
5544 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5545   (eval $ac_link) 2>&5
5546   ac_status=$?
5547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5548   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5549   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5550   (eval $ac_try) 2>&5
5551   ac_status=$?
5552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5553   (exit $ac_status); }; }; then
5554   ac_cv_sizeof_int=`cat conftest.val`
5555 else
5556   echo "$as_me: program exited with status $ac_status" >&5
5557 echo "$as_me: failed program was:" >&5
5558 sed 's/^/| /' conftest.$ac_ext >&5
5559
5560 ( exit $ac_status )
5561 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
5562 See \`config.log' for more details." >&5
5563 echo "$as_me: error: cannot compute sizeof (int), 77
5564 See \`config.log' for more details." >&2;}
5565    { (exit 1); exit 1; }; }
5566 fi
5567 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5568 fi
5569 fi
5570 rm -f conftest.val
5571 else
5572   ac_cv_sizeof_int=0
5573 fi
5574 fi
5575 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
5576 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
5577 cat >>confdefs.h <<_ACEOF
5578 #define SIZEOF_INT $ac_cv_sizeof_int
5579 _ACEOF
5580
5581
5582 echo "$as_me:$LINENO: checking for long" >&5
5583 echo $ECHO_N "checking for long... $ECHO_C" >&6
5584 if test "${ac_cv_type_long+set}" = set; then
5585   echo $ECHO_N "(cached) $ECHO_C" >&6
5586 else
5587   cat >conftest.$ac_ext <<_ACEOF
5588 #line $LINENO "configure"
5589 /* confdefs.h.  */
5590 _ACEOF
5591 cat confdefs.h >>conftest.$ac_ext
5592 cat >>conftest.$ac_ext <<_ACEOF
5593 /* end confdefs.h.  */
5594 $ac_includes_default
5595 int
5596 main ()
5597 {
5598 if ((long *) 0)
5599   return 0;
5600 if (sizeof (long))
5601   return 0;
5602   ;
5603   return 0;
5604 }
5605 _ACEOF
5606 rm -f conftest.$ac_objext
5607 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5608   (eval $ac_compile) 2>&5
5609   ac_status=$?
5610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5611   (exit $ac_status); } &&
5612          { ac_try='test -s conftest.$ac_objext'
5613   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5614   (eval $ac_try) 2>&5
5615   ac_status=$?
5616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5617   (exit $ac_status); }; }; then
5618   ac_cv_type_long=yes
5619 else
5620   echo "$as_me: failed program was:" >&5
5621 sed 's/^/| /' conftest.$ac_ext >&5
5622
5623 ac_cv_type_long=no
5624 fi
5625 rm -f conftest.$ac_objext conftest.$ac_ext
5626 fi
5627 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
5628 echo "${ECHO_T}$ac_cv_type_long" >&6
5629
5630 echo "$as_me:$LINENO: checking size of long" >&5
5631 echo $ECHO_N "checking size of long... $ECHO_C" >&6
5632 if test "${ac_cv_sizeof_long+set}" = set; then
5633   echo $ECHO_N "(cached) $ECHO_C" >&6
5634 else
5635   if test "$ac_cv_type_long" = yes; then
5636   # The cast to unsigned long works around a bug in the HP C Compiler
5637   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5638   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5639   # This bug is HP SR number 8606223364.
5640   if test "$cross_compiling" = yes; then
5641   # Depending upon the size, compute the lo and hi bounds.
5642 cat >conftest.$ac_ext <<_ACEOF
5643 #line $LINENO "configure"
5644 /* confdefs.h.  */
5645 _ACEOF
5646 cat confdefs.h >>conftest.$ac_ext
5647 cat >>conftest.$ac_ext <<_ACEOF
5648 /* end confdefs.h.  */
5649 $ac_includes_default
5650 int
5651 main ()
5652 {
5653 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
5654 test_array [0] = 0
5655
5656   ;
5657   return 0;
5658 }
5659 _ACEOF
5660 rm -f conftest.$ac_objext
5661 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5662   (eval $ac_compile) 2>&5
5663   ac_status=$?
5664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5665   (exit $ac_status); } &&
5666          { ac_try='test -s conftest.$ac_objext'
5667   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5668   (eval $ac_try) 2>&5
5669   ac_status=$?
5670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5671   (exit $ac_status); }; }; then
5672   ac_lo=0 ac_mid=0
5673   while :; do
5674     cat >conftest.$ac_ext <<_ACEOF
5675 #line $LINENO "configure"
5676 /* confdefs.h.  */
5677 _ACEOF
5678 cat confdefs.h >>conftest.$ac_ext
5679 cat >>conftest.$ac_ext <<_ACEOF
5680 /* end confdefs.h.  */
5681 $ac_includes_default
5682 int
5683 main ()
5684 {
5685 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5686 test_array [0] = 0
5687
5688   ;
5689   return 0;
5690 }
5691 _ACEOF
5692 rm -f conftest.$ac_objext
5693 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5694   (eval $ac_compile) 2>&5
5695   ac_status=$?
5696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5697   (exit $ac_status); } &&
5698          { ac_try='test -s conftest.$ac_objext'
5699   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5700   (eval $ac_try) 2>&5
5701   ac_status=$?
5702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5703   (exit $ac_status); }; }; then
5704   ac_hi=$ac_mid; break
5705 else
5706   echo "$as_me: failed program was:" >&5
5707 sed 's/^/| /' conftest.$ac_ext >&5
5708
5709 ac_lo=`expr $ac_mid + 1`
5710                     if test $ac_lo -le $ac_mid; then
5711                       ac_lo= ac_hi=
5712                       break
5713                     fi
5714                     ac_mid=`expr 2 '*' $ac_mid + 1`
5715 fi
5716 rm -f conftest.$ac_objext conftest.$ac_ext
5717   done
5718 else
5719   echo "$as_me: failed program was:" >&5
5720 sed 's/^/| /' conftest.$ac_ext >&5
5721
5722 cat >conftest.$ac_ext <<_ACEOF
5723 #line $LINENO "configure"
5724 /* confdefs.h.  */
5725 _ACEOF
5726 cat confdefs.h >>conftest.$ac_ext
5727 cat >>conftest.$ac_ext <<_ACEOF
5728 /* end confdefs.h.  */
5729 $ac_includes_default
5730 int
5731 main ()
5732 {
5733 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
5734 test_array [0] = 0
5735
5736   ;
5737   return 0;
5738 }
5739 _ACEOF
5740 rm -f conftest.$ac_objext
5741 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5742   (eval $ac_compile) 2>&5
5743   ac_status=$?
5744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5745   (exit $ac_status); } &&
5746          { ac_try='test -s conftest.$ac_objext'
5747   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5748   (eval $ac_try) 2>&5
5749   ac_status=$?
5750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5751   (exit $ac_status); }; }; then
5752   ac_hi=-1 ac_mid=-1
5753   while :; do
5754     cat >conftest.$ac_ext <<_ACEOF
5755 #line $LINENO "configure"
5756 /* confdefs.h.  */
5757 _ACEOF
5758 cat confdefs.h >>conftest.$ac_ext
5759 cat >>conftest.$ac_ext <<_ACEOF
5760 /* end confdefs.h.  */
5761 $ac_includes_default
5762 int
5763 main ()
5764 {
5765 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
5766 test_array [0] = 0
5767
5768   ;
5769   return 0;
5770 }
5771 _ACEOF
5772 rm -f conftest.$ac_objext
5773 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5774   (eval $ac_compile) 2>&5
5775   ac_status=$?
5776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5777   (exit $ac_status); } &&
5778          { ac_try='test -s conftest.$ac_objext'
5779   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5780   (eval $ac_try) 2>&5
5781   ac_status=$?
5782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5783   (exit $ac_status); }; }; then
5784   ac_lo=$ac_mid; break
5785 else
5786   echo "$as_me: failed program was:" >&5
5787 sed 's/^/| /' conftest.$ac_ext >&5
5788
5789 ac_hi=`expr '(' $ac_mid ')' - 1`
5790                        if test $ac_mid -le $ac_hi; then
5791                          ac_lo= ac_hi=
5792                          break
5793                        fi
5794                        ac_mid=`expr 2 '*' $ac_mid`
5795 fi
5796 rm -f conftest.$ac_objext conftest.$ac_ext
5797   done
5798 else
5799   echo "$as_me: failed program was:" >&5
5800 sed 's/^/| /' conftest.$ac_ext >&5
5801
5802 ac_lo= ac_hi=
5803 fi
5804 rm -f conftest.$ac_objext conftest.$ac_ext
5805 fi
5806 rm -f conftest.$ac_objext conftest.$ac_ext
5807 # Binary search between lo and hi bounds.
5808 while test "x$ac_lo" != "x$ac_hi"; do
5809   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5810   cat >conftest.$ac_ext <<_ACEOF
5811 #line $LINENO "configure"
5812 /* confdefs.h.  */
5813 _ACEOF
5814 cat confdefs.h >>conftest.$ac_ext
5815 cat >>conftest.$ac_ext <<_ACEOF
5816 /* end confdefs.h.  */
5817 $ac_includes_default
5818 int
5819 main ()
5820 {
5821 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5822 test_array [0] = 0
5823
5824   ;
5825   return 0;
5826 }
5827 _ACEOF
5828 rm -f conftest.$ac_objext
5829 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5830   (eval $ac_compile) 2>&5
5831   ac_status=$?
5832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5833   (exit $ac_status); } &&
5834          { ac_try='test -s conftest.$ac_objext'
5835   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5836   (eval $ac_try) 2>&5
5837   ac_status=$?
5838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5839   (exit $ac_status); }; }; then
5840   ac_hi=$ac_mid
5841 else
5842   echo "$as_me: failed program was:" >&5
5843 sed 's/^/| /' conftest.$ac_ext >&5
5844
5845 ac_lo=`expr '(' $ac_mid ')' + 1`
5846 fi
5847 rm -f conftest.$ac_objext conftest.$ac_ext
5848 done
5849 case $ac_lo in
5850 ?*) ac_cv_sizeof_long=$ac_lo;;
5851 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5852 See \`config.log' for more details." >&5
5853 echo "$as_me: error: cannot compute sizeof (long), 77
5854 See \`config.log' for more details." >&2;}
5855    { (exit 1); exit 1; }; } ;;
5856 esac
5857 else
5858   if test "$cross_compiling" = yes; then
5859   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5860 See \`config.log' for more details." >&5
5861 echo "$as_me: error: cannot run test program while cross compiling
5862 See \`config.log' for more details." >&2;}
5863    { (exit 1); exit 1; }; }
5864 else
5865   cat >conftest.$ac_ext <<_ACEOF
5866 #line $LINENO "configure"
5867 /* confdefs.h.  */
5868 _ACEOF
5869 cat confdefs.h >>conftest.$ac_ext
5870 cat >>conftest.$ac_ext <<_ACEOF
5871 /* end confdefs.h.  */
5872 $ac_includes_default
5873 long longval () { return (long) (sizeof (long)); }
5874 unsigned long ulongval () { return (long) (sizeof (long)); }
5875 #include <stdio.h>
5876 #include <stdlib.h>
5877 int
5878 main ()
5879 {
5880
5881   FILE *f = fopen ("conftest.val", "w");
5882   if (! f)
5883     exit (1);
5884   if (((long) (sizeof (long))) < 0)
5885     {
5886       long i = longval ();
5887       if (i != ((long) (sizeof (long))))
5888         exit (1);
5889       fprintf (f, "%ld\n", i);
5890     }
5891   else
5892     {
5893       unsigned long i = ulongval ();
5894       if (i != ((long) (sizeof (long))))
5895         exit (1);
5896       fprintf (f, "%lu\n", i);
5897     }
5898   exit (ferror (f) || fclose (f) != 0);
5899
5900   ;
5901   return 0;
5902 }
5903 _ACEOF
5904 rm -f conftest$ac_exeext
5905 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5906   (eval $ac_link) 2>&5
5907   ac_status=$?
5908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5909   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5910   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5911   (eval $ac_try) 2>&5
5912   ac_status=$?
5913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5914   (exit $ac_status); }; }; then
5915   ac_cv_sizeof_long=`cat conftest.val`
5916 else
5917   echo "$as_me: program exited with status $ac_status" >&5
5918 echo "$as_me: failed program was:" >&5
5919 sed 's/^/| /' conftest.$ac_ext >&5
5920
5921 ( exit $ac_status )
5922 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5923 See \`config.log' for more details." >&5
5924 echo "$as_me: error: cannot compute sizeof (long), 77
5925 See \`config.log' for more details." >&2;}
5926    { (exit 1); exit 1; }; }
5927 fi
5928 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5929 fi
5930 fi
5931 rm -f conftest.val
5932 else
5933   ac_cv_sizeof_long=0
5934 fi
5935 fi
5936 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
5937 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
5938 cat >>confdefs.h <<_ACEOF
5939 #define SIZEOF_LONG $ac_cv_sizeof_long
5940 _ACEOF
5941
5942
5943 echo "$as_me:$LINENO: checking for long long" >&5
5944 echo $ECHO_N "checking for long long... $ECHO_C" >&6
5945 if test "${ac_cv_type_long_long+set}" = set; then
5946   echo $ECHO_N "(cached) $ECHO_C" >&6
5947 else
5948   cat >conftest.$ac_ext <<_ACEOF
5949 #line $LINENO "configure"
5950 /* confdefs.h.  */
5951 _ACEOF
5952 cat confdefs.h >>conftest.$ac_ext
5953 cat >>conftest.$ac_ext <<_ACEOF
5954 /* end confdefs.h.  */
5955 $ac_includes_default
5956 int
5957 main ()
5958 {
5959 if ((long long *) 0)
5960   return 0;
5961 if (sizeof (long long))
5962   return 0;
5963   ;
5964   return 0;
5965 }
5966 _ACEOF
5967 rm -f conftest.$ac_objext
5968 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5969   (eval $ac_compile) 2>&5
5970   ac_status=$?
5971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5972   (exit $ac_status); } &&
5973          { ac_try='test -s conftest.$ac_objext'
5974   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5975   (eval $ac_try) 2>&5
5976   ac_status=$?
5977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5978   (exit $ac_status); }; }; then
5979   ac_cv_type_long_long=yes
5980 else
5981   echo "$as_me: failed program was:" >&5
5982 sed 's/^/| /' conftest.$ac_ext >&5
5983
5984 ac_cv_type_long_long=no
5985 fi
5986 rm -f conftest.$ac_objext conftest.$ac_ext
5987 fi
5988 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5989 echo "${ECHO_T}$ac_cv_type_long_long" >&6
5990
5991 echo "$as_me:$LINENO: checking size of long long" >&5
5992 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
5993 if test "${ac_cv_sizeof_long_long+set}" = set; then
5994   echo $ECHO_N "(cached) $ECHO_C" >&6
5995 else
5996   if test "$ac_cv_type_long_long" = yes; then
5997   # The cast to unsigned long works around a bug in the HP C Compiler
5998   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5999   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6000   # This bug is HP SR number 8606223364.
6001   if test "$cross_compiling" = yes; then
6002   # Depending upon the size, compute the lo and hi bounds.
6003 cat >conftest.$ac_ext <<_ACEOF
6004 #line $LINENO "configure"
6005 /* confdefs.h.  */
6006 _ACEOF
6007 cat confdefs.h >>conftest.$ac_ext
6008 cat >>conftest.$ac_ext <<_ACEOF
6009 /* end confdefs.h.  */
6010 $ac_includes_default
6011 int
6012 main ()
6013 {
6014 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
6015 test_array [0] = 0
6016
6017   ;
6018   return 0;
6019 }
6020 _ACEOF
6021 rm -f conftest.$ac_objext
6022 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6023   (eval $ac_compile) 2>&5
6024   ac_status=$?
6025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6026   (exit $ac_status); } &&
6027          { ac_try='test -s conftest.$ac_objext'
6028   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6029   (eval $ac_try) 2>&5
6030   ac_status=$?
6031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6032   (exit $ac_status); }; }; then
6033   ac_lo=0 ac_mid=0
6034   while :; do
6035     cat >conftest.$ac_ext <<_ACEOF
6036 #line $LINENO "configure"
6037 /* confdefs.h.  */
6038 _ACEOF
6039 cat confdefs.h >>conftest.$ac_ext
6040 cat >>conftest.$ac_ext <<_ACEOF
6041 /* end confdefs.h.  */
6042 $ac_includes_default
6043 int
6044 main ()
6045 {
6046 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
6047 test_array [0] = 0
6048
6049   ;
6050   return 0;
6051 }
6052 _ACEOF
6053 rm -f conftest.$ac_objext
6054 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6055   (eval $ac_compile) 2>&5
6056   ac_status=$?
6057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6058   (exit $ac_status); } &&
6059          { ac_try='test -s conftest.$ac_objext'
6060   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6061   (eval $ac_try) 2>&5
6062   ac_status=$?
6063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6064   (exit $ac_status); }; }; then
6065   ac_hi=$ac_mid; break
6066 else
6067   echo "$as_me: failed program was:" >&5
6068 sed 's/^/| /' conftest.$ac_ext >&5
6069
6070 ac_lo=`expr $ac_mid + 1`
6071                     if test $ac_lo -le $ac_mid; then
6072                       ac_lo= ac_hi=
6073                       break
6074                     fi
6075                     ac_mid=`expr 2 '*' $ac_mid + 1`
6076 fi
6077 rm -f conftest.$ac_objext conftest.$ac_ext
6078   done
6079 else
6080   echo "$as_me: failed program was:" >&5
6081 sed 's/^/| /' conftest.$ac_ext >&5
6082
6083 cat >conftest.$ac_ext <<_ACEOF
6084 #line $LINENO "configure"
6085 /* confdefs.h.  */
6086 _ACEOF
6087 cat confdefs.h >>conftest.$ac_ext
6088 cat >>conftest.$ac_ext <<_ACEOF
6089 /* end confdefs.h.  */
6090 $ac_includes_default
6091 int
6092 main ()
6093 {
6094 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
6095 test_array [0] = 0
6096
6097   ;
6098   return 0;
6099 }
6100 _ACEOF
6101 rm -f conftest.$ac_objext
6102 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6103   (eval $ac_compile) 2>&5
6104   ac_status=$?
6105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6106   (exit $ac_status); } &&
6107          { ac_try='test -s conftest.$ac_objext'
6108   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6109   (eval $ac_try) 2>&5
6110   ac_status=$?
6111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6112   (exit $ac_status); }; }; then
6113   ac_hi=-1 ac_mid=-1
6114   while :; do
6115     cat >conftest.$ac_ext <<_ACEOF
6116 #line $LINENO "configure"
6117 /* confdefs.h.  */
6118 _ACEOF
6119 cat confdefs.h >>conftest.$ac_ext
6120 cat >>conftest.$ac_ext <<_ACEOF
6121 /* end confdefs.h.  */
6122 $ac_includes_default
6123 int
6124 main ()
6125 {
6126 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
6127 test_array [0] = 0
6128
6129   ;
6130   return 0;
6131 }
6132 _ACEOF
6133 rm -f conftest.$ac_objext
6134 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6135   (eval $ac_compile) 2>&5
6136   ac_status=$?
6137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6138   (exit $ac_status); } &&
6139          { ac_try='test -s conftest.$ac_objext'
6140   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6141   (eval $ac_try) 2>&5
6142   ac_status=$?
6143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6144   (exit $ac_status); }; }; then
6145   ac_lo=$ac_mid; break
6146 else
6147   echo "$as_me: failed program was:" >&5
6148 sed 's/^/| /' conftest.$ac_ext >&5
6149
6150 ac_hi=`expr '(' $ac_mid ')' - 1`
6151                        if test $ac_mid -le $ac_hi; then
6152                          ac_lo= ac_hi=
6153                          break
6154                        fi
6155                        ac_mid=`expr 2 '*' $ac_mid`
6156 fi
6157 rm -f conftest.$ac_objext conftest.$ac_ext
6158   done
6159 else
6160   echo "$as_me: failed program was:" >&5
6161 sed 's/^/| /' conftest.$ac_ext >&5
6162
6163 ac_lo= ac_hi=
6164 fi
6165 rm -f conftest.$ac_objext conftest.$ac_ext
6166 fi
6167 rm -f conftest.$ac_objext conftest.$ac_ext
6168 # Binary search between lo and hi bounds.
6169 while test "x$ac_lo" != "x$ac_hi"; do
6170   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6171   cat >conftest.$ac_ext <<_ACEOF
6172 #line $LINENO "configure"
6173 /* confdefs.h.  */
6174 _ACEOF
6175 cat confdefs.h >>conftest.$ac_ext
6176 cat >>conftest.$ac_ext <<_ACEOF
6177 /* end confdefs.h.  */
6178 $ac_includes_default
6179 int
6180 main ()
6181 {
6182 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
6183 test_array [0] = 0
6184
6185   ;
6186   return 0;
6187 }
6188 _ACEOF
6189 rm -f conftest.$ac_objext
6190 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6191   (eval $ac_compile) 2>&5
6192   ac_status=$?
6193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6194   (exit $ac_status); } &&
6195          { ac_try='test -s conftest.$ac_objext'
6196   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6197   (eval $ac_try) 2>&5
6198   ac_status=$?
6199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6200   (exit $ac_status); }; }; then
6201   ac_hi=$ac_mid
6202 else
6203   echo "$as_me: failed program was:" >&5
6204 sed 's/^/| /' conftest.$ac_ext >&5
6205
6206 ac_lo=`expr '(' $ac_mid ')' + 1`
6207 fi
6208 rm -f conftest.$ac_objext conftest.$ac_ext
6209 done
6210 case $ac_lo in
6211 ?*) ac_cv_sizeof_long_long=$ac_lo;;
6212 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
6213 See \`config.log' for more details." >&5
6214 echo "$as_me: error: cannot compute sizeof (long long), 77
6215 See \`config.log' for more details." >&2;}
6216    { (exit 1); exit 1; }; } ;;
6217 esac
6218 else
6219   if test "$cross_compiling" = yes; then
6220   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6221 See \`config.log' for more details." >&5
6222 echo "$as_me: error: cannot run test program while cross compiling
6223 See \`config.log' for more details." >&2;}
6224    { (exit 1); exit 1; }; }
6225 else
6226   cat >conftest.$ac_ext <<_ACEOF
6227 #line $LINENO "configure"
6228 /* confdefs.h.  */
6229 _ACEOF
6230 cat confdefs.h >>conftest.$ac_ext
6231 cat >>conftest.$ac_ext <<_ACEOF
6232 /* end confdefs.h.  */
6233 $ac_includes_default
6234 long longval () { return (long) (sizeof (long long)); }
6235 unsigned long ulongval () { return (long) (sizeof (long long)); }
6236 #include <stdio.h>
6237 #include <stdlib.h>
6238 int
6239 main ()
6240 {
6241
6242   FILE *f = fopen ("conftest.val", "w");
6243   if (! f)
6244     exit (1);
6245   if (((long) (sizeof (long long))) < 0)
6246     {
6247       long i = longval ();
6248       if (i != ((long) (sizeof (long long))))
6249         exit (1);
6250       fprintf (f, "%ld\n", i);
6251     }
6252   else
6253     {
6254       unsigned long i = ulongval ();
6255       if (i != ((long) (sizeof (long long))))
6256         exit (1);
6257       fprintf (f, "%lu\n", i);
6258     }
6259   exit (ferror (f) || fclose (f) != 0);
6260
6261   ;
6262   return 0;
6263 }
6264 _ACEOF
6265 rm -f conftest$ac_exeext
6266 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6267   (eval $ac_link) 2>&5
6268   ac_status=$?
6269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6270   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6271   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6272   (eval $ac_try) 2>&5
6273   ac_status=$?
6274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6275   (exit $ac_status); }; }; then
6276   ac_cv_sizeof_long_long=`cat conftest.val`
6277 else
6278   echo "$as_me: program exited with status $ac_status" >&5
6279 echo "$as_me: failed program was:" >&5
6280 sed 's/^/| /' conftest.$ac_ext >&5
6281
6282 ( exit $ac_status )
6283 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
6284 See \`config.log' for more details." >&5
6285 echo "$as_me: error: cannot compute sizeof (long long), 77
6286 See \`config.log' for more details." >&2;}
6287    { (exit 1); exit 1; }; }
6288 fi
6289 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6290 fi
6291 fi
6292 rm -f conftest.val
6293 else
6294   ac_cv_sizeof_long_long=0
6295 fi
6296 fi
6297 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
6298 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
6299 cat >>confdefs.h <<_ACEOF
6300 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6301 _ACEOF
6302
6303
6304
6305
6306
6307         echo "$as_me:$LINENO: checking for addrinfo" >&5
6308 echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6
6309         if test "${ac_cv_addrinfo+set}" = set; then
6310   echo $ECHO_N "(cached) $ECHO_C" >&6
6311 else
6312   cat >conftest.$ac_ext <<_ACEOF
6313 #line $LINENO "configure"
6314 /* confdefs.h.  */
6315 _ACEOF
6316 cat confdefs.h >>conftest.$ac_ext
6317 cat >>conftest.$ac_ext <<_ACEOF
6318 /* end confdefs.h.  */
6319
6320 #               include <netdb.h>
6321 int
6322 main ()
6323 {
6324 struct addrinfo a
6325   ;
6326   return 0;
6327 }
6328 _ACEOF
6329 rm -f conftest.$ac_objext
6330 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6331   (eval $ac_compile) 2>&5
6332   ac_status=$?
6333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6334   (exit $ac_status); } &&
6335          { ac_try='test -s conftest.$ac_objext'
6336   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6337   (eval $ac_try) 2>&5
6338   ac_status=$?
6339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6340   (exit $ac_status); }; }; then
6341   ac_cv_addrinfo=yes
6342 else
6343   echo "$as_me: failed program was:" >&5
6344 sed 's/^/| /' conftest.$ac_ext >&5
6345
6346 ac_cv_addrinfo=no
6347 fi
6348 rm -f conftest.$ac_objext conftest.$ac_ext
6349 fi
6350
6351         echo "$as_me:$LINENO: result: $ac_cv_addrinfo" >&5
6352 echo "${ECHO_T}$ac_cv_addrinfo" >&6
6353         if test $ac_cv_addrinfo = yes; then
6354                 cat >>confdefs.h <<\_ACEOF
6355 #define HAVE_ADDRINFO 1
6356 _ACEOF
6357
6358         else
6359                 cat >>confdefs.h <<\_ACEOF
6360 #define NEED_ADDRINFO_H 1
6361 _ACEOF
6362
6363         fi
6364
6365 if test "$ac_cv_addrinfo" = no; then
6366         missing_includes=yes
6367 fi
6368
6369
6370         echo "$as_me:$LINENO: checking for NI_MAXSERV" >&5
6371 echo $ECHO_N "checking for NI_MAXSERV... $ECHO_C" >&6
6372         if test "${ac_cv_maxserv+set}" = set; then
6373   echo $ECHO_N "(cached) $ECHO_C" >&6
6374 else
6375   cat >conftest.$ac_ext <<_ACEOF
6376 #line $LINENO "configure"
6377 /* confdefs.h.  */
6378 _ACEOF
6379 cat confdefs.h >>conftest.$ac_ext
6380 cat >>conftest.$ac_ext <<_ACEOF
6381 /* end confdefs.h.  */
6382 #include <netdb.h>
6383 #ifdef NI_MAXSERV
6384 yes
6385 #endif
6386 _ACEOF
6387 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6388   $EGREP "yes" >/dev/null 2>&1; then
6389   ac_cv_maxserv=yes
6390 else
6391   ac_cv_maxserv=no
6392 fi
6393 rm -f conftest*
6394
6395 fi
6396
6397         echo "$as_me:$LINENO: result: $ac_cv_maxserv" >&5
6398 echo "${ECHO_T}$ac_cv_maxserv" >&6
6399         if test $ac_cv_maxserv != yes; then
6400                 cat >>confdefs.h <<\_ACEOF
6401 #define NEED_ADDRINFO_H 1
6402 _ACEOF
6403
6404         fi
6405
6406 if test "$ac_cv_maxserv" = no; then
6407         missing_includes=yes
6408 fi
6409
6410
6411         echo "$as_me:$LINENO: checking for NI_NAMEREQD" >&5
6412 echo $ECHO_N "checking for NI_NAMEREQD... $ECHO_C" >&6
6413         if test "${ac_cv_namereqd+set}" = set; then
6414   echo $ECHO_N "(cached) $ECHO_C" >&6
6415 else
6416   cat >conftest.$ac_ext <<_ACEOF
6417 #line $LINENO "configure"
6418 /* confdefs.h.  */
6419 _ACEOF
6420 cat confdefs.h >>conftest.$ac_ext
6421 cat >>conftest.$ac_ext <<_ACEOF
6422 /* end confdefs.h.  */
6423 #include <netdb.h>
6424 #ifdef NI_NOFQDN
6425 yes
6426 #endif
6427 _ACEOF
6428 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6429   $EGREP "yes" >/dev/null 2>&1; then
6430   ac_cv_namereqd=yes
6431 else
6432   ac_cv_namereqd=no
6433 fi
6434 rm -f conftest*
6435
6436 fi
6437
6438         echo "$as_me:$LINENO: result: $ac_cv_namereqd" >&5
6439 echo "${ECHO_T}$ac_cv_namereqd" >&6
6440         if test $ac_cv_namereqd != yes; then
6441                 cat >>confdefs.h <<\_ACEOF
6442 #define NEED_ADDRINFO_H 1
6443 _ACEOF
6444
6445         fi
6446
6447 if test "$ac_cv_namereqd" = no; then
6448         missing_includes=yes
6449 fi
6450
6451
6452         echo "$as_me:$LINENO: checking for sockaddr_storage" >&5
6453 echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6
6454         if test "${ac_cv_sa_storage+set}" = set; then
6455   echo $ECHO_N "(cached) $ECHO_C" >&6
6456 else
6457   cat >conftest.$ac_ext <<_ACEOF
6458 #line $LINENO "configure"
6459 /* confdefs.h.  */
6460 _ACEOF
6461 cat confdefs.h >>conftest.$ac_ext
6462 cat >>conftest.$ac_ext <<_ACEOF
6463 /* end confdefs.h.  */
6464
6465 #               include <sys/types.h>
6466 #               include <sys/socket.h>
6467 int
6468 main ()
6469 {
6470 struct sockaddr_storage s
6471   ;
6472   return 0;
6473 }
6474 _ACEOF
6475 rm -f conftest.$ac_objext
6476 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6477   (eval $ac_compile) 2>&5
6478   ac_status=$?
6479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6480   (exit $ac_status); } &&
6481          { ac_try='test -s conftest.$ac_objext'
6482   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6483   (eval $ac_try) 2>&5
6484   ac_status=$?
6485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6486   (exit $ac_status); }; }; then
6487   ac_cv_sa_storage=yes
6488 else
6489   echo "$as_me: failed program was:" >&5
6490 sed 's/^/| /' conftest.$ac_ext >&5
6491
6492 ac_cv_sa_storage=no
6493 fi
6494 rm -f conftest.$ac_objext conftest.$ac_ext
6495 fi
6496
6497         echo "$as_me:$LINENO: result: $ac_cv_sa_storage" >&5
6498 echo "${ECHO_T}$ac_cv_sa_storage" >&6
6499         if test $ac_cv_sa_storage = yes; then
6500                 cat >>confdefs.h <<\_ACEOF
6501 #define HAVE_SOCKADDR_STORAGE 1
6502 _ACEOF
6503
6504         fi
6505
6506 if test "$ac_cv_sa_storage" = no; then
6507         missing_includes=yes
6508 fi
6509
6510
6511         ac_cv_addrsz=yes
6512         echo "$as_me:$LINENO: checking for INADDRSZ" >&5
6513 echo $ECHO_N "checking for INADDRSZ... $ECHO_C" >&6
6514         if test "${ac_cv_inaddrsz+set}" = set; then
6515   echo $ECHO_N "(cached) $ECHO_C" >&6
6516 else
6517   cat >conftest.$ac_ext <<_ACEOF
6518 #line $LINENO "configure"
6519 /* confdefs.h.  */
6520 _ACEOF
6521 cat confdefs.h >>conftest.$ac_ext
6522 cat >>conftest.$ac_ext <<_ACEOF
6523 /* end confdefs.h.  */
6524
6525 #               include <arpa/nameser.h>
6526 int
6527 main ()
6528 {
6529 int a = INADDRSZ
6530   ;
6531   return 0;
6532 }
6533 _ACEOF
6534 rm -f conftest.$ac_objext
6535 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6536   (eval $ac_compile) 2>&5
6537   ac_status=$?
6538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6539   (exit $ac_status); } &&
6540          { ac_try='test -s conftest.$ac_objext'
6541   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6542   (eval $ac_try) 2>&5
6543   ac_status=$?
6544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6545   (exit $ac_status); }; }; then
6546   ac_cv_inaddrsz=yes
6547 else
6548   echo "$as_me: failed program was:" >&5
6549 sed 's/^/| /' conftest.$ac_ext >&5
6550
6551 ac_cv_inaddrsz=no
6552 fi
6553 rm -f conftest.$ac_objext conftest.$ac_ext
6554 fi
6555
6556         echo "$as_me:$LINENO: result: $ac_cv_inaddrsz" >&5
6557 echo "${ECHO_T}$ac_cv_inaddrsz" >&6
6558         if test $ac_cv_inaddrsz = yes; then
6559                 cat >>confdefs.h <<\_ACEOF
6560 #define HAVE_INADDRSZ 1
6561 _ACEOF
6562
6563         else
6564                 ac_cv_addrsz=no
6565         fi
6566         echo "$as_me:$LINENO: checking for IN6ADDRSZ" >&5
6567 echo $ECHO_N "checking for IN6ADDRSZ... $ECHO_C" >&6
6568         if test "${ac_cv_in6addrsz+set}" = set; then
6569   echo $ECHO_N "(cached) $ECHO_C" >&6
6570 else
6571   cat >conftest.$ac_ext <<_ACEOF
6572 #line $LINENO "configure"
6573 /* confdefs.h.  */
6574 _ACEOF
6575 cat confdefs.h >>conftest.$ac_ext
6576 cat >>conftest.$ac_ext <<_ACEOF
6577 /* end confdefs.h.  */
6578
6579 #               include <arpa/nameser.h>
6580 int
6581 main ()
6582 {
6583 int a = IN6ADDRSZ
6584   ;
6585   return 0;
6586 }
6587 _ACEOF
6588 rm -f conftest.$ac_objext
6589 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6590   (eval $ac_compile) 2>&5
6591   ac_status=$?
6592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6593   (exit $ac_status); } &&
6594          { ac_try='test -s conftest.$ac_objext'
6595   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6596   (eval $ac_try) 2>&5
6597   ac_status=$?
6598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6599   (exit $ac_status); }; }; then
6600   ac_cv_in6addrsz=yes
6601 else
6602   echo "$as_me: failed program was:" >&5
6603 sed 's/^/| /' conftest.$ac_ext >&5
6604
6605 ac_cv_in6addrsz=no
6606 fi
6607 rm -f conftest.$ac_objext conftest.$ac_ext
6608 fi
6609
6610         echo "$as_me:$LINENO: result: $ac_cv_in6addrsz" >&5
6611 echo "${ECHO_T}$ac_cv_in6addrsz" >&6
6612         if test $ac_cv_in6addrsz = yes; then
6613                 cat >>confdefs.h <<\_ACEOF
6614 #define HAVE_IN6ADDRSZ 1
6615 _ACEOF
6616
6617         else
6618                 ac_cv_addrsz=no
6619         fi
6620
6621 if test "$ac_cv_addrsz" = no; then
6622         missing_includes=yes
6623 fi
6624
6625
6626         echo "$as_me:$LINENO: checking for RES_USE_INET6" >&5
6627 echo $ECHO_N "checking for RES_USE_INET6... $ECHO_C" >&6
6628         if test "${ac_cv_res_inet6+set}" = set; then
6629   echo $ECHO_N "(cached) $ECHO_C" >&6
6630 else
6631   cat >conftest.$ac_ext <<_ACEOF
6632 #line $LINENO "configure"
6633 /* confdefs.h.  */
6634 _ACEOF
6635 cat confdefs.h >>conftest.$ac_ext
6636 cat >>conftest.$ac_ext <<_ACEOF
6637 /* end confdefs.h.  */
6638
6639 #               include <sys/types.h>
6640 #               include <netinet/in.h>
6641 #               include <resolv.h>
6642 int
6643 main ()
6644 {
6645 int a = RES_USE_INET6
6646   ;
6647   return 0;
6648 }
6649 _ACEOF
6650 rm -f conftest.$ac_objext
6651 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6652   (eval $ac_compile) 2>&5
6653   ac_status=$?
6654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6655   (exit $ac_status); } &&
6656          { ac_try='test -s conftest.$ac_objext'
6657   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6658   (eval $ac_try) 2>&5
6659   ac_status=$?
6660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6661   (exit $ac_status); }; }; then
6662   ac_cv_res_inet6=yes
6663 else
6664   echo "$as_me: failed program was:" >&5
6665 sed 's/^/| /' conftest.$ac_ext >&5
6666
6667 ac_cv_res_inet6=no
6668 fi
6669 rm -f conftest.$ac_objext conftest.$ac_ext
6670 fi
6671
6672         echo "$as_me:$LINENO: result: $ac_cv_res_inet6" >&5
6673 echo "${ECHO_T}$ac_cv_res_inet6" >&6
6674         if test $ac_cv_res_inet6 = yes; then
6675                 cat >>confdefs.h <<\_ACEOF
6676 #define HAVE_RES_USE_INET6 1
6677 _ACEOF
6678
6679         fi
6680
6681 if test "$ac_cv_res_inet6" = no; then
6682         missing_includes=yes
6683 fi
6684
6685
6686         echo "$as_me:$LINENO: checking for res_state_ext" >&5
6687 echo $ECHO_N "checking for res_state_ext... $ECHO_C" >&6
6688         if test "${ac_cv_res_state_ext+set}" = set; then
6689   echo $ECHO_N "(cached) $ECHO_C" >&6
6690 else
6691   cat >conftest.$ac_ext <<_ACEOF
6692 #line $LINENO "configure"
6693 /* confdefs.h.  */
6694 _ACEOF
6695 cat confdefs.h >>conftest.$ac_ext
6696 cat >>conftest.$ac_ext <<_ACEOF
6697 /* end confdefs.h.  */
6698
6699 #               include <sys/types.h>
6700 #               include <netinet/in.h>
6701 #               include <netinet6/in6.h>
6702 #               include <resolv.h>
6703 int
6704 main ()
6705 {
6706 struct __res_state_ext e
6707   ;
6708   return 0;
6709 }
6710 _ACEOF
6711 rm -f conftest.$ac_objext
6712 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6713   (eval $ac_compile) 2>&5
6714   ac_status=$?
6715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6716   (exit $ac_status); } &&
6717          { ac_try='test -s conftest.$ac_objext'
6718   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6719   (eval $ac_try) 2>&5
6720   ac_status=$?
6721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6722   (exit $ac_status); }; }; then
6723   ac_cv_res_state_ext=yes
6724 else
6725   echo "$as_me: failed program was:" >&5
6726 sed 's/^/| /' conftest.$ac_ext >&5
6727
6728 ac_cv_res_state_ext=no
6729 fi
6730 rm -f conftest.$ac_objext conftest.$ac_ext
6731 fi
6732
6733         echo "$as_me:$LINENO: result: $ac_cv_res_state_ext" >&5
6734 echo "${ECHO_T}$ac_cv_res_state_ext" >&6
6735         if test $ac_cv_res_state_ext = yes; then
6736                 cat >>confdefs.h <<\_ACEOF
6737 #define HAVE_RES_STATE_EXT 1
6738 _ACEOF
6739
6740         fi
6741
6742 if test "$ac_cv_res_state_ext" = no; then
6743         missing_includes=yes
6744 fi
6745
6746
6747         echo "$as_me:$LINENO: checking for nsort in res_state" >&5
6748 echo $ECHO_N "checking for nsort in res_state... $ECHO_C" >&6
6749         if test "${ac_cv_res_state+set}" = set; then
6750   echo $ECHO_N "(cached) $ECHO_C" >&6
6751 else
6752   cat >conftest.$ac_ext <<_ACEOF
6753 #line $LINENO "configure"
6754 /* confdefs.h.  */
6755 _ACEOF
6756 cat confdefs.h >>conftest.$ac_ext
6757 cat >>conftest.$ac_ext <<_ACEOF
6758 /* end confdefs.h.  */
6759
6760 #               include <sys/types.h>
6761 #               include <netinet/in.h>
6762 #               include <netinet6/in6.h>
6763 #               include <resolv.h>
6764 int
6765 main ()
6766 {
6767 struct __res_state e; e.nsort = 0
6768   ;
6769   return 0;
6770 }
6771 _ACEOF
6772 rm -f conftest.$ac_objext
6773 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6774   (eval $ac_compile) 2>&5
6775   ac_status=$?
6776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6777   (exit $ac_status); } &&
6778          { ac_try='test -s conftest.$ac_objext'
6779   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6780   (eval $ac_try) 2>&5
6781   ac_status=$?
6782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6783   (exit $ac_status); }; }; then
6784   ac_cv_res_state=yes
6785 else
6786   echo "$as_me: failed program was:" >&5
6787 sed 's/^/| /' conftest.$ac_ext >&5
6788
6789 ac_cv_res_state=no
6790 fi
6791 rm -f conftest.$ac_objext conftest.$ac_ext
6792 fi
6793
6794         echo "$as_me:$LINENO: result: $ac_cv_res_state" >&5
6795 echo "${ECHO_T}$ac_cv_res_state" >&6
6796         if test $ac_cv_res_state = yes; then
6797                 cat >>confdefs.h <<\_ACEOF
6798 #define HAVE_NEW_RES_STATE 1
6799 _ACEOF
6800
6801         fi
6802
6803
6804
6805
6806
6807
6808
6809
6810
6811 for ac_func in vfprintf strcasecmp strlcat strlcpy strdup strsep
6812 do
6813 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6814 echo "$as_me:$LINENO: checking for $ac_func" >&5
6815 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6816 if eval "test \"\${$as_ac_var+set}\" = set"; then
6817   echo $ECHO_N "(cached) $ECHO_C" >&6
6818 else
6819   cat >conftest.$ac_ext <<_ACEOF
6820 #line $LINENO "configure"
6821 /* confdefs.h.  */
6822 _ACEOF
6823 cat confdefs.h >>conftest.$ac_ext
6824 cat >>conftest.$ac_ext <<_ACEOF
6825 /* end confdefs.h.  */
6826 /* System header to define __stub macros and hopefully few prototypes,
6827     which can conflict with char $ac_func (); below.
6828     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6829     <limits.h> exists even on freestanding compilers.  */
6830 #ifdef __STDC__
6831 # include <limits.h>
6832 #else
6833 # include <assert.h>
6834 #endif
6835 /* Override any gcc2 internal prototype to avoid an error.  */
6836 #ifdef __cplusplus
6837 extern "C"
6838 {
6839 #endif
6840 /* We use char because int might match the return type of a gcc2
6841    builtin and then its argument prototype would still apply.  */
6842 char $ac_func ();
6843 /* The GNU C library defines this for functions which it implements
6844     to always fail with ENOSYS.  Some functions are actually named
6845     something starting with __ and the normal name is an alias.  */
6846 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6847 choke me
6848 #else
6849 char (*f) () = $ac_func;
6850 #endif
6851 #ifdef __cplusplus
6852 }
6853 #endif
6854
6855 int
6856 main ()
6857 {
6858 return f != $ac_func;
6859   ;
6860   return 0;
6861 }
6862 _ACEOF
6863 rm -f conftest.$ac_objext conftest$ac_exeext
6864 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6865   (eval $ac_link) 2>&5
6866   ac_status=$?
6867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6868   (exit $ac_status); } &&
6869          { ac_try='test -s conftest$ac_exeext'
6870   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6871   (eval $ac_try) 2>&5
6872   ac_status=$?
6873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6874   (exit $ac_status); }; }; then
6875   eval "$as_ac_var=yes"
6876 else
6877   echo "$as_me: failed program was:" >&5
6878 sed 's/^/| /' conftest.$ac_ext >&5
6879
6880 eval "$as_ac_var=no"
6881 fi
6882 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6883 fi
6884 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6885 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6886 if test `eval echo '${'$as_ac_var'}'` = yes; then
6887   cat >>confdefs.h <<_ACEOF
6888 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6889 _ACEOF
6890
6891 else
6892   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
6893 fi
6894 done
6895
6896
6897
6898 for ac_func in strftime
6899 do
6900 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6901 echo "$as_me:$LINENO: checking for $ac_func" >&5
6902 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6903 if eval "test \"\${$as_ac_var+set}\" = set"; then
6904   echo $ECHO_N "(cached) $ECHO_C" >&6
6905 else
6906   cat >conftest.$ac_ext <<_ACEOF
6907 #line $LINENO "configure"
6908 /* confdefs.h.  */
6909 _ACEOF
6910 cat confdefs.h >>conftest.$ac_ext
6911 cat >>conftest.$ac_ext <<_ACEOF
6912 /* end confdefs.h.  */
6913 /* System header to define __stub macros and hopefully few prototypes,
6914     which can conflict with char $ac_func (); below.
6915     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6916     <limits.h> exists even on freestanding compilers.  */
6917 #ifdef __STDC__
6918 # include <limits.h>
6919 #else
6920 # include <assert.h>
6921 #endif
6922 /* Override any gcc2 internal prototype to avoid an error.  */
6923 #ifdef __cplusplus
6924 extern "C"
6925 {
6926 #endif
6927 /* We use char because int might match the return type of a gcc2
6928    builtin and then its argument prototype would still apply.  */
6929 char $ac_func ();
6930 /* The GNU C library defines this for functions which it implements
6931     to always fail with ENOSYS.  Some functions are actually named
6932     something starting with __ and the normal name is an alias.  */
6933 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6934 choke me
6935 #else
6936 char (*f) () = $ac_func;
6937 #endif
6938 #ifdef __cplusplus
6939 }
6940 #endif
6941
6942 int
6943 main ()
6944 {
6945 return f != $ac_func;
6946   ;
6947   return 0;
6948 }
6949 _ACEOF
6950 rm -f conftest.$ac_objext conftest$ac_exeext
6951 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6952   (eval $ac_link) 2>&5
6953   ac_status=$?
6954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6955   (exit $ac_status); } &&
6956          { ac_try='test -s conftest$ac_exeext'
6957   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6958   (eval $ac_try) 2>&5
6959   ac_status=$?
6960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6961   (exit $ac_status); }; }; then
6962   eval "$as_ac_var=yes"
6963 else
6964   echo "$as_me: failed program was:" >&5
6965 sed 's/^/| /' conftest.$ac_ext >&5
6966
6967 eval "$as_ac_var=no"
6968 fi
6969 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6970 fi
6971 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6972 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6973 if test `eval echo '${'$as_ac_var'}'` = yes; then
6974   cat >>confdefs.h <<_ACEOF
6975 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6976 _ACEOF
6977
6978 fi
6979 done
6980
6981
6982
6983 for ac_func in setlinebuf alarm
6984 do
6985 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6986 echo "$as_me:$LINENO: checking for $ac_func" >&5
6987 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6988 if eval "test \"\${$as_ac_var+set}\" = set"; then
6989   echo $ECHO_N "(cached) $ECHO_C" >&6
6990 else
6991   cat >conftest.$ac_ext <<_ACEOF
6992 #line $LINENO "configure"
6993 /* confdefs.h.  */
6994 _ACEOF
6995 cat confdefs.h >>conftest.$ac_ext
6996 cat >>conftest.$ac_ext <<_ACEOF
6997 /* end confdefs.h.  */
6998 /* System header to define __stub macros and hopefully few prototypes,
6999     which can conflict with char $ac_func (); below.
7000     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7001     <limits.h> exists even on freestanding compilers.  */
7002 #ifdef __STDC__
7003 # include <limits.h>
7004 #else
7005 # include <assert.h>
7006 #endif
7007 /* Override any gcc2 internal prototype to avoid an error.  */
7008 #ifdef __cplusplus
7009 extern "C"
7010 {
7011 #endif
7012 /* We use char because int might match the return type of a gcc2
7013    builtin and then its argument prototype would still apply.  */
7014 char $ac_func ();
7015 /* The GNU C library defines this for functions which it implements
7016     to always fail with ENOSYS.  Some functions are actually named
7017     something starting with __ and the normal name is an alias.  */
7018 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7019 choke me
7020 #else
7021 char (*f) () = $ac_func;
7022 #endif
7023 #ifdef __cplusplus
7024 }
7025 #endif
7026
7027 int
7028 main ()
7029 {
7030 return f != $ac_func;
7031   ;
7032   return 0;
7033 }
7034 _ACEOF
7035 rm -f conftest.$ac_objext conftest$ac_exeext
7036 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7037   (eval $ac_link) 2>&5
7038   ac_status=$?
7039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7040   (exit $ac_status); } &&
7041          { ac_try='test -s conftest$ac_exeext'
7042   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7043   (eval $ac_try) 2>&5
7044   ac_status=$?
7045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7046   (exit $ac_status); }; }; then
7047   eval "$as_ac_var=yes"
7048 else
7049   echo "$as_me: failed program was:" >&5
7050 sed 's/^/| /' conftest.$ac_ext >&5
7051
7052 eval "$as_ac_var=no"
7053 fi
7054 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7055 fi
7056 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7057 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7058 if test `eval echo '${'$as_ac_var'}'` = yes; then
7059   cat >>confdefs.h <<_ACEOF
7060 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7061 _ACEOF
7062
7063 fi
7064 done
7065
7066
7067 needsnprintf=no
7068
7069
7070 for ac_func in vsnprintf snprintf
7071 do
7072 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7073 echo "$as_me:$LINENO: checking for $ac_func" >&5
7074 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7075 if eval "test \"\${$as_ac_var+set}\" = set"; then
7076   echo $ECHO_N "(cached) $ECHO_C" >&6
7077 else
7078   cat >conftest.$ac_ext <<_ACEOF
7079 #line $LINENO "configure"
7080 /* confdefs.h.  */
7081 _ACEOF
7082 cat confdefs.h >>conftest.$ac_ext
7083 cat >>conftest.$ac_ext <<_ACEOF
7084 /* end confdefs.h.  */
7085 /* System header to define __stub macros and hopefully few prototypes,
7086     which can conflict with char $ac_func (); below.
7087     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7088     <limits.h> exists even on freestanding compilers.  */
7089 #ifdef __STDC__
7090 # include <limits.h>
7091 #else
7092 # include <assert.h>
7093 #endif
7094 /* Override any gcc2 internal prototype to avoid an error.  */
7095 #ifdef __cplusplus
7096 extern "C"
7097 {
7098 #endif
7099 /* We use char because int might match the return type of a gcc2
7100    builtin and then its argument prototype would still apply.  */
7101 char $ac_func ();
7102 /* The GNU C library defines this for functions which it implements
7103     to always fail with ENOSYS.  Some functions are actually named
7104     something starting with __ and the normal name is an alias.  */
7105 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7106 choke me
7107 #else
7108 char (*f) () = $ac_func;
7109 #endif
7110 #ifdef __cplusplus
7111 }
7112 #endif
7113
7114 int
7115 main ()
7116 {
7117 return f != $ac_func;
7118   ;
7119   return 0;
7120 }
7121 _ACEOF
7122 rm -f conftest.$ac_objext conftest$ac_exeext
7123 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7124   (eval $ac_link) 2>&5
7125   ac_status=$?
7126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7127   (exit $ac_status); } &&
7128          { ac_try='test -s conftest$ac_exeext'
7129   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7130   (eval $ac_try) 2>&5
7131   ac_status=$?
7132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7133   (exit $ac_status); }; }; then
7134   eval "$as_ac_var=yes"
7135 else
7136   echo "$as_me: failed program was:" >&5
7137 sed 's/^/| /' conftest.$ac_ext >&5
7138
7139 eval "$as_ac_var=no"
7140 fi
7141 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7142 fi
7143 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7144 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7145 if test `eval echo '${'$as_ac_var'}'` = yes; then
7146   cat >>confdefs.h <<_ACEOF
7147 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7148 _ACEOF
7149
7150 else
7151   needsnprintf=yes
7152 fi
7153 done
7154
7155 if test $needsnprintf = yes; then
7156         LIBOBJS="$LIBOBJS snprintf.$ac_objext"
7157 fi
7158
7159
7160     echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7161 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
7162 if test "${ac_cv_type_signal+set}" = set; then
7163   echo $ECHO_N "(cached) $ECHO_C" >&6
7164 else
7165   cat >conftest.$ac_ext <<_ACEOF
7166 #line $LINENO "configure"
7167 /* confdefs.h.  */
7168 _ACEOF
7169 cat confdefs.h >>conftest.$ac_ext
7170 cat >>conftest.$ac_ext <<_ACEOF
7171 /* end confdefs.h.  */
7172 #include <sys/types.h>
7173 #include <signal.h>
7174 #ifdef signal
7175 # undef signal
7176 #endif
7177 #ifdef __cplusplus
7178 extern "C" void (*signal (int, void (*)(int)))(int);
7179 #else
7180 void (*signal ()) ();
7181 #endif
7182
7183 int
7184 main ()
7185 {
7186 int i;
7187   ;
7188   return 0;
7189 }
7190 _ACEOF
7191 rm -f conftest.$ac_objext
7192 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7193   (eval $ac_compile) 2>&5
7194   ac_status=$?
7195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7196   (exit $ac_status); } &&
7197          { ac_try='test -s conftest.$ac_objext'
7198   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7199   (eval $ac_try) 2>&5
7200   ac_status=$?
7201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7202   (exit $ac_status); }; }; then
7203   ac_cv_type_signal=void
7204 else
7205   echo "$as_me: failed program was:" >&5
7206 sed 's/^/| /' conftest.$ac_ext >&5
7207
7208 ac_cv_type_signal=int
7209 fi
7210 rm -f conftest.$ac_objext conftest.$ac_ext
7211 fi
7212 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7213 echo "${ECHO_T}$ac_cv_type_signal" >&6
7214
7215 cat >>confdefs.h <<_ACEOF
7216 #define RETSIGTYPE $ac_cv_type_signal
7217 _ACEOF
7218
7219
7220     if test "$ac_cv_type_signal" = void ; then
7221             cat >>confdefs.h <<\_ACEOF
7222 #define RETSIGVAL
7223 _ACEOF
7224
7225     else
7226             cat >>confdefs.h <<\_ACEOF
7227 #define RETSIGVAL (0)
7228 _ACEOF
7229
7230     fi
7231     case "$host_os" in
7232
7233     irix*)
7234             cat >>confdefs.h <<\_ACEOF
7235 #define _BSD_SIGNALS 1
7236 _ACEOF
7237
7238             ;;
7239
7240     *)
7241
7242 for ac_func in sigaction
7243 do
7244 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7245 echo "$as_me:$LINENO: checking for $ac_func" >&5
7246 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7247 if eval "test \"\${$as_ac_var+set}\" = set"; then
7248   echo $ECHO_N "(cached) $ECHO_C" >&6
7249 else
7250   cat >conftest.$ac_ext <<_ACEOF
7251 #line $LINENO "configure"
7252 /* confdefs.h.  */
7253 _ACEOF
7254 cat confdefs.h >>conftest.$ac_ext
7255 cat >>conftest.$ac_ext <<_ACEOF
7256 /* end confdefs.h.  */
7257 /* System header to define __stub macros and hopefully few prototypes,
7258     which can conflict with char $ac_func (); below.
7259     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7260     <limits.h> exists even on freestanding compilers.  */
7261 #ifdef __STDC__
7262 # include <limits.h>
7263 #else
7264 # include <assert.h>
7265 #endif
7266 /* Override any gcc2 internal prototype to avoid an error.  */
7267 #ifdef __cplusplus
7268 extern "C"
7269 {
7270 #endif
7271 /* We use char because int might match the return type of a gcc2
7272    builtin and then its argument prototype would still apply.  */
7273 char $ac_func ();
7274 /* The GNU C library defines this for functions which it implements
7275     to always fail with ENOSYS.  Some functions are actually named
7276     something starting with __ and the normal name is an alias.  */
7277 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7278 choke me
7279 #else
7280 char (*f) () = $ac_func;
7281 #endif
7282 #ifdef __cplusplus
7283 }
7284 #endif
7285
7286 int
7287 main ()
7288 {
7289 return f != $ac_func;
7290   ;
7291   return 0;
7292 }
7293 _ACEOF
7294 rm -f conftest.$ac_objext conftest$ac_exeext
7295 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7296   (eval $ac_link) 2>&5
7297   ac_status=$?
7298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7299   (exit $ac_status); } &&
7300          { ac_try='test -s conftest$ac_exeext'
7301   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7302   (eval $ac_try) 2>&5
7303   ac_status=$?
7304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7305   (exit $ac_status); }; }; then
7306   eval "$as_ac_var=yes"
7307 else
7308   echo "$as_me: failed program was:" >&5
7309 sed 's/^/| /' conftest.$ac_ext >&5
7310
7311 eval "$as_ac_var=no"
7312 fi
7313 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7314 fi
7315 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7316 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7317 if test `eval echo '${'$as_ac_var'}'` = yes; then
7318   cat >>confdefs.h <<_ACEOF
7319 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7320 _ACEOF
7321
7322 fi
7323 done
7324
7325             if test $ac_cv_func_sigaction = no ; then
7326
7327 for ac_func in sigset
7328 do
7329 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7330 echo "$as_me:$LINENO: checking for $ac_func" >&5
7331 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7332 if eval "test \"\${$as_ac_var+set}\" = set"; then
7333   echo $ECHO_N "(cached) $ECHO_C" >&6
7334 else
7335   cat >conftest.$ac_ext <<_ACEOF
7336 #line $LINENO "configure"
7337 /* confdefs.h.  */
7338 _ACEOF
7339 cat confdefs.h >>conftest.$ac_ext
7340 cat >>conftest.$ac_ext <<_ACEOF
7341 /* end confdefs.h.  */
7342 /* System header to define __stub macros and hopefully few prototypes,
7343     which can conflict with char $ac_func (); below.
7344     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7345     <limits.h> exists even on freestanding compilers.  */
7346 #ifdef __STDC__
7347 # include <limits.h>
7348 #else
7349 # include <assert.h>
7350 #endif
7351 /* Override any gcc2 internal prototype to avoid an error.  */
7352 #ifdef __cplusplus
7353 extern "C"
7354 {
7355 #endif
7356 /* We use char because int might match the return type of a gcc2
7357    builtin and then its argument prototype would still apply.  */
7358 char $ac_func ();
7359 /* The GNU C library defines this for functions which it implements
7360     to always fail with ENOSYS.  Some functions are actually named
7361     something starting with __ and the normal name is an alias.  */
7362 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7363 choke me
7364 #else
7365 char (*f) () = $ac_func;
7366 #endif
7367 #ifdef __cplusplus
7368 }
7369 #endif
7370
7371 int
7372 main ()
7373 {
7374 return f != $ac_func;
7375   ;
7376   return 0;
7377 }
7378 _ACEOF
7379 rm -f conftest.$ac_objext conftest$ac_exeext
7380 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7381   (eval $ac_link) 2>&5
7382   ac_status=$?
7383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7384   (exit $ac_status); } &&
7385          { ac_try='test -s conftest$ac_exeext'
7386   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7387   (eval $ac_try) 2>&5
7388   ac_status=$?
7389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7390   (exit $ac_status); }; }; then
7391   eval "$as_ac_var=yes"
7392 else
7393   echo "$as_me: failed program was:" >&5
7394 sed 's/^/| /' conftest.$ac_ext >&5
7395
7396 eval "$as_ac_var=no"
7397 fi
7398 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7399 fi
7400 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7401 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7402 if test `eval echo '${'$as_ac_var'}'` = yes; then
7403   cat >>confdefs.h <<_ACEOF
7404 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7405 _ACEOF
7406
7407 fi
7408 done
7409
7410             fi
7411             ;;
7412     esac
7413
7414 echo "$as_me:$LINENO: checking for library containing dnet_htoa" >&5
7415 echo $ECHO_N "checking for library containing dnet_htoa... $ECHO_C" >&6
7416 if test "${ac_cv_search_dnet_htoa+set}" = set; then
7417   echo $ECHO_N "(cached) $ECHO_C" >&6
7418 else
7419   ac_func_search_save_LIBS=$LIBS
7420 ac_cv_search_dnet_htoa=no
7421 cat >conftest.$ac_ext <<_ACEOF
7422 #line $LINENO "configure"
7423 /* confdefs.h.  */
7424 _ACEOF
7425 cat confdefs.h >>conftest.$ac_ext
7426 cat >>conftest.$ac_ext <<_ACEOF
7427 /* end confdefs.h.  */
7428
7429 /* Override any gcc2 internal prototype to avoid an error.  */
7430 #ifdef __cplusplus
7431 extern "C"
7432 #endif
7433 /* We use char because int might match the return type of a gcc2
7434    builtin and then its argument prototype would still apply.  */
7435 char dnet_htoa ();
7436 int
7437 main ()
7438 {
7439 dnet_htoa ();
7440   ;
7441   return 0;
7442 }
7443 _ACEOF
7444 rm -f conftest.$ac_objext conftest$ac_exeext
7445 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7446   (eval $ac_link) 2>&5
7447   ac_status=$?
7448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7449   (exit $ac_status); } &&
7450          { ac_try='test -s conftest$ac_exeext'
7451   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7452   (eval $ac_try) 2>&5
7453   ac_status=$?
7454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7455   (exit $ac_status); }; }; then
7456   ac_cv_search_dnet_htoa="none required"
7457 else
7458   echo "$as_me: failed program was:" >&5
7459 sed 's/^/| /' conftest.$ac_ext >&5
7460
7461 fi
7462 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7463 if test "$ac_cv_search_dnet_htoa" = no; then
7464   for ac_lib in dnet; do
7465     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7466     cat >conftest.$ac_ext <<_ACEOF
7467 #line $LINENO "configure"
7468 /* confdefs.h.  */
7469 _ACEOF
7470 cat confdefs.h >>conftest.$ac_ext
7471 cat >>conftest.$ac_ext <<_ACEOF
7472 /* end confdefs.h.  */
7473
7474 /* Override any gcc2 internal prototype to avoid an error.  */
7475 #ifdef __cplusplus
7476 extern "C"
7477 #endif
7478 /* We use char because int might match the return type of a gcc2
7479    builtin and then its argument prototype would still apply.  */
7480 char dnet_htoa ();
7481 int
7482 main ()
7483 {
7484 dnet_htoa ();
7485   ;
7486   return 0;
7487 }
7488 _ACEOF
7489 rm -f conftest.$ac_objext conftest$ac_exeext
7490 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7491   (eval $ac_link) 2>&5
7492   ac_status=$?
7493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7494   (exit $ac_status); } &&
7495          { ac_try='test -s conftest$ac_exeext'
7496   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7497   (eval $ac_try) 2>&5
7498   ac_status=$?
7499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7500   (exit $ac_status); }; }; then
7501   ac_cv_search_dnet_htoa="-l$ac_lib"
7502 break
7503 else
7504   echo "$as_me: failed program was:" >&5
7505 sed 's/^/| /' conftest.$ac_ext >&5
7506
7507 fi
7508 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7509   done
7510 fi
7511 LIBS=$ac_func_search_save_LIBS
7512 fi
7513 echo "$as_me:$LINENO: result: $ac_cv_search_dnet_htoa" >&5
7514 echo "${ECHO_T}$ac_cv_search_dnet_htoa" >&6
7515 if test "$ac_cv_search_dnet_htoa" != no; then
7516   test "$ac_cv_search_dnet_htoa" = "none required" || LIBS="$ac_cv_search_dnet_htoa $LIBS"
7517   cat >>confdefs.h <<\_ACEOF
7518 #define HAVE_DNET_HTOA 1
7519 _ACEOF
7520
7521 fi
7522
7523
7524
7525 echo "$as_me:$LINENO: checking for main in -lrpc" >&5
7526 echo $ECHO_N "checking for main in -lrpc... $ECHO_C" >&6
7527 if test "${ac_cv_lib_rpc_main+set}" = set; then
7528   echo $ECHO_N "(cached) $ECHO_C" >&6
7529 else
7530   ac_check_lib_save_LIBS=$LIBS
7531 LIBS="-lrpc  $LIBS"
7532 cat >conftest.$ac_ext <<_ACEOF
7533 #line $LINENO "configure"
7534 /* confdefs.h.  */
7535 _ACEOF
7536 cat confdefs.h >>conftest.$ac_ext
7537 cat >>conftest.$ac_ext <<_ACEOF
7538 /* end confdefs.h.  */
7539
7540
7541 int
7542 main ()
7543 {
7544 main ();
7545   ;
7546   return 0;
7547 }
7548 _ACEOF
7549 rm -f conftest.$ac_objext conftest$ac_exeext
7550 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7551   (eval $ac_link) 2>&5
7552   ac_status=$?
7553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7554   (exit $ac_status); } &&
7555          { ac_try='test -s conftest$ac_exeext'
7556   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7557   (eval $ac_try) 2>&5
7558   ac_status=$?
7559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7560   (exit $ac_status); }; }; then
7561   ac_cv_lib_rpc_main=yes
7562 else
7563   echo "$as_me: failed program was:" >&5
7564 sed 's/^/| /' conftest.$ac_ext >&5
7565
7566 ac_cv_lib_rpc_main=no
7567 fi
7568 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7569 LIBS=$ac_check_lib_save_LIBS
7570 fi
7571 echo "$as_me:$LINENO: result: $ac_cv_lib_rpc_main" >&5
7572 echo "${ECHO_T}$ac_cv_lib_rpc_main" >&6
7573 if test $ac_cv_lib_rpc_main = yes; then
7574   cat >>confdefs.h <<_ACEOF
7575 #define HAVE_LIBRPC 1
7576 _ACEOF
7577
7578   LIBS="-lrpc $LIBS"
7579
7580 fi
7581
7582 echo "$as_me:$LINENO: checking for library containing getrpcbynumber" >&5
7583 echo $ECHO_N "checking for library containing getrpcbynumber... $ECHO_C" >&6
7584 if test "${ac_cv_search_getrpcbynumber+set}" = set; then
7585   echo $ECHO_N "(cached) $ECHO_C" >&6
7586 else
7587   ac_func_search_save_LIBS=$LIBS
7588 ac_cv_search_getrpcbynumber=no
7589 cat >conftest.$ac_ext <<_ACEOF
7590 #line $LINENO "configure"
7591 /* confdefs.h.  */
7592 _ACEOF
7593 cat confdefs.h >>conftest.$ac_ext
7594 cat >>conftest.$ac_ext <<_ACEOF
7595 /* end confdefs.h.  */
7596
7597 /* Override any gcc2 internal prototype to avoid an error.  */
7598 #ifdef __cplusplus
7599 extern "C"
7600 #endif
7601 /* We use char because int might match the return type of a gcc2
7602    builtin and then its argument prototype would still apply.  */
7603 char getrpcbynumber ();
7604 int
7605 main ()
7606 {
7607 getrpcbynumber ();
7608   ;
7609   return 0;
7610 }
7611 _ACEOF
7612 rm -f conftest.$ac_objext conftest$ac_exeext
7613 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7614   (eval $ac_link) 2>&5
7615   ac_status=$?
7616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7617   (exit $ac_status); } &&
7618          { ac_try='test -s conftest$ac_exeext'
7619   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7620   (eval $ac_try) 2>&5
7621   ac_status=$?
7622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7623   (exit $ac_status); }; }; then
7624   ac_cv_search_getrpcbynumber="none required"
7625 else
7626   echo "$as_me: failed program was:" >&5
7627 sed 's/^/| /' conftest.$ac_ext >&5
7628
7629 fi
7630 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7631 if test "$ac_cv_search_getrpcbynumber" = no; then
7632   for ac_lib in nsl; do
7633     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7634     cat >conftest.$ac_ext <<_ACEOF
7635 #line $LINENO "configure"
7636 /* confdefs.h.  */
7637 _ACEOF
7638 cat confdefs.h >>conftest.$ac_ext
7639 cat >>conftest.$ac_ext <<_ACEOF
7640 /* end confdefs.h.  */
7641
7642 /* Override any gcc2 internal prototype to avoid an error.  */
7643 #ifdef __cplusplus
7644 extern "C"
7645 #endif
7646 /* We use char because int might match the return type of a gcc2
7647    builtin and then its argument prototype would still apply.  */
7648 char getrpcbynumber ();
7649 int
7650 main ()
7651 {
7652 getrpcbynumber ();
7653   ;
7654   return 0;
7655 }
7656 _ACEOF
7657 rm -f conftest.$ac_objext conftest$ac_exeext
7658 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7659   (eval $ac_link) 2>&5
7660   ac_status=$?
7661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7662   (exit $ac_status); } &&
7663          { ac_try='test -s conftest$ac_exeext'
7664   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7665   (eval $ac_try) 2>&5
7666   ac_status=$?
7667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7668   (exit $ac_status); }; }; then
7669   ac_cv_search_getrpcbynumber="-l$ac_lib"
7670 break
7671 else
7672   echo "$as_me: failed program was:" >&5
7673 sed 's/^/| /' conftest.$ac_ext >&5
7674
7675 fi
7676 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7677   done
7678 fi
7679 LIBS=$ac_func_search_save_LIBS
7680 fi
7681 echo "$as_me:$LINENO: result: $ac_cv_search_getrpcbynumber" >&5
7682 echo "${ECHO_T}$ac_cv_search_getrpcbynumber" >&6
7683 if test "$ac_cv_search_getrpcbynumber" != no; then
7684   test "$ac_cv_search_getrpcbynumber" = "none required" || LIBS="$ac_cv_search_getrpcbynumber $LIBS"
7685   cat >>confdefs.h <<\_ACEOF
7686 #define HAVE_GETRPCBYNUMBER 1
7687 _ACEOF
7688
7689 fi
7690
7691
7692
7693
7694     # Most operating systems have gethostbyname() in the default searched
7695     # libraries (i.e. libc):
7696     # Some OSes (eg. Solaris) place it in libnsl
7697     # Some strange OSes (SINIX) have it in libsocket:
7698     echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
7699 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6
7700 if test "${ac_cv_search_gethostbyname+set}" = set; then
7701   echo $ECHO_N "(cached) $ECHO_C" >&6
7702 else
7703   ac_func_search_save_LIBS=$LIBS
7704 ac_cv_search_gethostbyname=no
7705 cat >conftest.$ac_ext <<_ACEOF
7706 #line $LINENO "configure"
7707 /* confdefs.h.  */
7708 _ACEOF
7709 cat confdefs.h >>conftest.$ac_ext
7710 cat >>conftest.$ac_ext <<_ACEOF
7711 /* end confdefs.h.  */
7712
7713 /* Override any gcc2 internal prototype to avoid an error.  */
7714 #ifdef __cplusplus
7715 extern "C"
7716 #endif
7717 /* We use char because int might match the return type of a gcc2
7718    builtin and then its argument prototype would still apply.  */
7719 char gethostbyname ();
7720 int
7721 main ()
7722 {
7723 gethostbyname ();
7724   ;
7725   return 0;
7726 }
7727 _ACEOF
7728 rm -f conftest.$ac_objext conftest$ac_exeext
7729 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7730   (eval $ac_link) 2>&5
7731   ac_status=$?
7732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7733   (exit $ac_status); } &&
7734          { ac_try='test -s conftest$ac_exeext'
7735   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7736   (eval $ac_try) 2>&5
7737   ac_status=$?
7738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7739   (exit $ac_status); }; }; then
7740   ac_cv_search_gethostbyname="none required"
7741 else
7742   echo "$as_me: failed program was:" >&5
7743 sed 's/^/| /' conftest.$ac_ext >&5
7744
7745 fi
7746 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7747 if test "$ac_cv_search_gethostbyname" = no; then
7748   for ac_lib in nsl socket resolv; do
7749     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7750     cat >conftest.$ac_ext <<_ACEOF
7751 #line $LINENO "configure"
7752 /* confdefs.h.  */
7753 _ACEOF
7754 cat confdefs.h >>conftest.$ac_ext
7755 cat >>conftest.$ac_ext <<_ACEOF
7756 /* end confdefs.h.  */
7757
7758 /* Override any gcc2 internal prototype to avoid an error.  */
7759 #ifdef __cplusplus
7760 extern "C"
7761 #endif
7762 /* We use char because int might match the return type of a gcc2
7763    builtin and then its argument prototype would still apply.  */
7764 char gethostbyname ();
7765 int
7766 main ()
7767 {
7768 gethostbyname ();
7769   ;
7770   return 0;
7771 }
7772 _ACEOF
7773 rm -f conftest.$ac_objext conftest$ac_exeext
7774 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7775   (eval $ac_link) 2>&5
7776   ac_status=$?
7777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7778   (exit $ac_status); } &&
7779          { ac_try='test -s conftest$ac_exeext'
7780   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7781   (eval $ac_try) 2>&5
7782   ac_status=$?
7783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7784   (exit $ac_status); }; }; then
7785   ac_cv_search_gethostbyname="-l$ac_lib"
7786 break
7787 else
7788   echo "$as_me: failed program was:" >&5
7789 sed 's/^/| /' conftest.$ac_ext >&5
7790
7791 fi
7792 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7793   done
7794 fi
7795 LIBS=$ac_func_search_save_LIBS
7796 fi
7797 echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
7798 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6
7799 if test "$ac_cv_search_gethostbyname" != no; then
7800   test "$ac_cv_search_gethostbyname" = "none required" || LIBS="$ac_cv_search_gethostbyname $LIBS"
7801
7802 fi
7803
7804     # Unfortunately libsocket sometimes depends on libnsl and
7805     # AC_SEARCH_LIBS isn't up to the task of handling dependencies like this.
7806     if test "$ac_cv_search_gethostbyname" = "no"
7807     then
7808         echo "$as_me:$LINENO: checking for gethostbyname in -lsocket" >&5
7809 echo $ECHO_N "checking for gethostbyname in -lsocket... $ECHO_C" >&6
7810 if test "${ac_cv_lib_socket_gethostbyname+set}" = set; then
7811   echo $ECHO_N "(cached) $ECHO_C" >&6
7812 else
7813   ac_check_lib_save_LIBS=$LIBS
7814 LIBS="-lsocket -lnsl $LIBS"
7815 cat >conftest.$ac_ext <<_ACEOF
7816 #line $LINENO "configure"
7817 /* confdefs.h.  */
7818 _ACEOF
7819 cat confdefs.h >>conftest.$ac_ext
7820 cat >>conftest.$ac_ext <<_ACEOF
7821 /* end confdefs.h.  */
7822
7823 /* Override any gcc2 internal prototype to avoid an error.  */
7824 #ifdef __cplusplus
7825 extern "C"
7826 #endif
7827 /* We use char because int might match the return type of a gcc2
7828    builtin and then its argument prototype would still apply.  */
7829 char gethostbyname ();
7830 int
7831 main ()
7832 {
7833 gethostbyname ();
7834   ;
7835   return 0;
7836 }
7837 _ACEOF
7838 rm -f conftest.$ac_objext conftest$ac_exeext
7839 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7840   (eval $ac_link) 2>&5
7841   ac_status=$?
7842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7843   (exit $ac_status); } &&
7844          { ac_try='test -s conftest$ac_exeext'
7845   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7846   (eval $ac_try) 2>&5
7847   ac_status=$?
7848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7849   (exit $ac_status); }; }; then
7850   ac_cv_lib_socket_gethostbyname=yes
7851 else
7852   echo "$as_me: failed program was:" >&5
7853 sed 's/^/| /' conftest.$ac_ext >&5
7854
7855 ac_cv_lib_socket_gethostbyname=no
7856 fi
7857 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7858 LIBS=$ac_check_lib_save_LIBS
7859 fi
7860 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_gethostbyname" >&5
7861 echo "${ECHO_T}$ac_cv_lib_socket_gethostbyname" >&6
7862 if test $ac_cv_lib_socket_gethostbyname = yes; then
7863   LIBS="-lsocket -lnsl $LIBS"
7864 fi
7865
7866     fi
7867     echo "$as_me:$LINENO: checking for library containing socket" >&5
7868 echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6
7869 if test "${ac_cv_search_socket+set}" = set; then
7870   echo $ECHO_N "(cached) $ECHO_C" >&6
7871 else
7872   ac_func_search_save_LIBS=$LIBS
7873 ac_cv_search_socket=no
7874 cat >conftest.$ac_ext <<_ACEOF
7875 #line $LINENO "configure"
7876 /* confdefs.h.  */
7877 _ACEOF
7878 cat confdefs.h >>conftest.$ac_ext
7879 cat >>conftest.$ac_ext <<_ACEOF
7880 /* end confdefs.h.  */
7881
7882 /* Override any gcc2 internal prototype to avoid an error.  */
7883 #ifdef __cplusplus
7884 extern "C"
7885 #endif
7886 /* We use char because int might match the return type of a gcc2
7887    builtin and then its argument prototype would still apply.  */
7888 char socket ();
7889 int
7890 main ()
7891 {
7892 socket ();
7893   ;
7894   return 0;
7895 }
7896 _ACEOF
7897 rm -f conftest.$ac_objext conftest$ac_exeext
7898 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7899   (eval $ac_link) 2>&5
7900   ac_status=$?
7901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7902   (exit $ac_status); } &&
7903          { ac_try='test -s conftest$ac_exeext'
7904   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7905   (eval $ac_try) 2>&5
7906   ac_status=$?
7907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7908   (exit $ac_status); }; }; then
7909   ac_cv_search_socket="none required"
7910 else
7911   echo "$as_me: failed program was:" >&5
7912 sed 's/^/| /' conftest.$ac_ext >&5
7913
7914 fi
7915 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7916 if test "$ac_cv_search_socket" = no; then
7917   for ac_lib in socket; do
7918     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7919     cat >conftest.$ac_ext <<_ACEOF
7920 #line $LINENO "configure"
7921 /* confdefs.h.  */
7922 _ACEOF
7923 cat confdefs.h >>conftest.$ac_ext
7924 cat >>conftest.$ac_ext <<_ACEOF
7925 /* end confdefs.h.  */
7926
7927 /* Override any gcc2 internal prototype to avoid an error.  */
7928 #ifdef __cplusplus
7929 extern "C"
7930 #endif
7931 /* We use char because int might match the return type of a gcc2
7932    builtin and then its argument prototype would still apply.  */
7933 char socket ();
7934 int
7935 main ()
7936 {
7937 socket ();
7938   ;
7939   return 0;
7940 }
7941 _ACEOF
7942 rm -f conftest.$ac_objext conftest$ac_exeext
7943 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7944   (eval $ac_link) 2>&5
7945   ac_status=$?
7946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7947   (exit $ac_status); } &&
7948          { ac_try='test -s conftest$ac_exeext'
7949   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7950   (eval $ac_try) 2>&5
7951   ac_status=$?
7952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7953   (exit $ac_status); }; }; then
7954   ac_cv_search_socket="-l$ac_lib"
7955 break
7956 else
7957   echo "$as_me: failed program was:" >&5
7958 sed 's/^/| /' conftest.$ac_ext >&5
7959
7960 fi
7961 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7962   done
7963 fi
7964 LIBS=$ac_func_search_save_LIBS
7965 fi
7966 echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
7967 echo "${ECHO_T}$ac_cv_search_socket" >&6
7968 if test "$ac_cv_search_socket" != no; then
7969   test "$ac_cv_search_socket" = "none required" || LIBS="$ac_cv_search_socket $LIBS"
7970
7971 else
7972   echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
7973 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
7974 if test "${ac_cv_lib_socket_socket+set}" = set; then
7975   echo $ECHO_N "(cached) $ECHO_C" >&6
7976 else
7977   ac_check_lib_save_LIBS=$LIBS
7978 LIBS="-lsocket -lnsl $LIBS"
7979 cat >conftest.$ac_ext <<_ACEOF
7980 #line $LINENO "configure"
7981 /* confdefs.h.  */
7982 _ACEOF
7983 cat confdefs.h >>conftest.$ac_ext
7984 cat >>conftest.$ac_ext <<_ACEOF
7985 /* end confdefs.h.  */
7986
7987 /* Override any gcc2 internal prototype to avoid an error.  */
7988 #ifdef __cplusplus
7989 extern "C"
7990 #endif
7991 /* We use char because int might match the return type of a gcc2
7992    builtin and then its argument prototype would still apply.  */
7993 char socket ();
7994 int
7995 main ()
7996 {
7997 socket ();
7998   ;
7999   return 0;
8000 }
8001 _ACEOF
8002 rm -f conftest.$ac_objext conftest$ac_exeext
8003 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8004   (eval $ac_link) 2>&5
8005   ac_status=$?
8006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8007   (exit $ac_status); } &&
8008          { ac_try='test -s conftest$ac_exeext'
8009   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8010   (eval $ac_try) 2>&5
8011   ac_status=$?
8012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8013   (exit $ac_status); }; }; then
8014   ac_cv_lib_socket_socket=yes
8015 else
8016   echo "$as_me: failed program was:" >&5
8017 sed 's/^/| /' conftest.$ac_ext >&5
8018
8019 ac_cv_lib_socket_socket=no
8020 fi
8021 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8022 LIBS=$ac_check_lib_save_LIBS
8023 fi
8024 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
8025 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
8026 if test $ac_cv_lib_socket_socket = yes; then
8027   LIBS="-lsocket -lnsl $LIBS"
8028 fi
8029
8030 fi
8031
8032     # DLPI needs putmsg under HPUX so test for -lstr while we're at it
8033     echo "$as_me:$LINENO: checking for library containing putmsg" >&5
8034 echo $ECHO_N "checking for library containing putmsg... $ECHO_C" >&6
8035 if test "${ac_cv_search_putmsg+set}" = set; then
8036   echo $ECHO_N "(cached) $ECHO_C" >&6
8037 else
8038   ac_func_search_save_LIBS=$LIBS
8039 ac_cv_search_putmsg=no
8040 cat >conftest.$ac_ext <<_ACEOF
8041 #line $LINENO "configure"
8042 /* confdefs.h.  */
8043 _ACEOF
8044 cat confdefs.h >>conftest.$ac_ext
8045 cat >>conftest.$ac_ext <<_ACEOF
8046 /* end confdefs.h.  */
8047
8048 /* Override any gcc2 internal prototype to avoid an error.  */
8049 #ifdef __cplusplus
8050 extern "C"
8051 #endif
8052 /* We use char because int might match the return type of a gcc2
8053    builtin and then its argument prototype would still apply.  */
8054 char putmsg ();
8055 int
8056 main ()
8057 {
8058 putmsg ();
8059   ;
8060   return 0;
8061 }
8062 _ACEOF
8063 rm -f conftest.$ac_objext conftest$ac_exeext
8064 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8065   (eval $ac_link) 2>&5
8066   ac_status=$?
8067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8068   (exit $ac_status); } &&
8069          { ac_try='test -s conftest$ac_exeext'
8070   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8071   (eval $ac_try) 2>&5
8072   ac_status=$?
8073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8074   (exit $ac_status); }; }; then
8075   ac_cv_search_putmsg="none required"
8076 else
8077   echo "$as_me: failed program was:" >&5
8078 sed 's/^/| /' conftest.$ac_ext >&5
8079
8080 fi
8081 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8082 if test "$ac_cv_search_putmsg" = no; then
8083   for ac_lib in str; do
8084     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8085     cat >conftest.$ac_ext <<_ACEOF
8086 #line $LINENO "configure"
8087 /* confdefs.h.  */
8088 _ACEOF
8089 cat confdefs.h >>conftest.$ac_ext
8090 cat >>conftest.$ac_ext <<_ACEOF
8091 /* end confdefs.h.  */
8092
8093 /* Override any gcc2 internal prototype to avoid an error.  */
8094 #ifdef __cplusplus
8095 extern "C"
8096 #endif
8097 /* We use char because int might match the return type of a gcc2
8098    builtin and then its argument prototype would still apply.  */
8099 char putmsg ();
8100 int
8101 main ()
8102 {
8103 putmsg ();
8104   ;
8105   return 0;
8106 }
8107 _ACEOF
8108 rm -f conftest.$ac_objext conftest$ac_exeext
8109 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8110   (eval $ac_link) 2>&5
8111   ac_status=$?
8112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8113   (exit $ac_status); } &&
8114          { ac_try='test -s conftest$ac_exeext'
8115   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8116   (eval $ac_try) 2>&5
8117   ac_status=$?
8118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8119   (exit $ac_status); }; }; then
8120   ac_cv_search_putmsg="-l$ac_lib"
8121 break
8122 else
8123   echo "$as_me: failed program was:" >&5
8124 sed 's/^/| /' conftest.$ac_ext >&5
8125
8126 fi
8127 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8128   done
8129 fi
8130 LIBS=$ac_func_search_save_LIBS
8131 fi
8132 echo "$as_me:$LINENO: result: $ac_cv_search_putmsg" >&5
8133 echo "${ECHO_T}$ac_cv_search_putmsg" >&6
8134 if test "$ac_cv_search_putmsg" != no; then
8135   test "$ac_cv_search_putmsg" = "none required" || LIBS="$ac_cv_search_putmsg $LIBS"
8136
8137 fi
8138
8139
8140
8141                 LBL_LIBS="$LIBS"
8142     pfopen=/usr/examples/packetfilter/pfopen.c
8143     if test -f $pfopen ; then
8144
8145 for ac_func in pfopen
8146 do
8147 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8148 echo "$as_me:$LINENO: checking for $ac_func" >&5
8149 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8150 if eval "test \"\${$as_ac_var+set}\" = set"; then
8151   echo $ECHO_N "(cached) $ECHO_C" >&6
8152 else
8153   cat >conftest.$ac_ext <<_ACEOF
8154 #line $LINENO "configure"
8155 /* confdefs.h.  */
8156 _ACEOF
8157 cat confdefs.h >>conftest.$ac_ext
8158 cat >>conftest.$ac_ext <<_ACEOF
8159 /* end confdefs.h.  */
8160 /* System header to define __stub macros and hopefully few prototypes,
8161     which can conflict with char $ac_func (); below.
8162     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8163     <limits.h> exists even on freestanding compilers.  */
8164 #ifdef __STDC__
8165 # include <limits.h>
8166 #else
8167 # include <assert.h>
8168 #endif
8169 /* Override any gcc2 internal prototype to avoid an error.  */
8170 #ifdef __cplusplus
8171 extern "C"
8172 {
8173 #endif
8174 /* We use char because int might match the return type of a gcc2
8175    builtin and then its argument prototype would still apply.  */
8176 char $ac_func ();
8177 /* The GNU C library defines this for functions which it implements
8178     to always fail with ENOSYS.  Some functions are actually named
8179     something starting with __ and the normal name is an alias.  */
8180 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8181 choke me
8182 #else
8183 char (*f) () = $ac_func;
8184 #endif
8185 #ifdef __cplusplus
8186 }
8187 #endif
8188
8189 int
8190 main ()
8191 {
8192 return f != $ac_func;
8193   ;
8194   return 0;
8195 }
8196 _ACEOF
8197 rm -f conftest.$ac_objext conftest$ac_exeext
8198 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8199   (eval $ac_link) 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   eval "$as_ac_var=yes"
8210 else
8211   echo "$as_me: failed program was:" >&5
8212 sed 's/^/| /' conftest.$ac_ext >&5
8213
8214 eval "$as_ac_var=no"
8215 fi
8216 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8217 fi
8218 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8219 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8220 if test `eval echo '${'$as_ac_var'}'` = yes; then
8221   cat >>confdefs.h <<_ACEOF
8222 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8223 _ACEOF
8224
8225 fi
8226 done
8227
8228             if test $ac_cv_func_pfopen = "no" ; then
8229                     echo "$as_me:$LINENO: result: Using $pfopen" >&5
8230 echo "${ECHO_T}Using $pfopen" >&6
8231                     LIBS="$LIBS $pfopen"
8232             fi
8233     fi
8234     echo "$as_me:$LINENO: checking for local pcap library" >&5
8235 echo $ECHO_N "checking for local pcap library... $ECHO_C" >&6
8236     libpcap=FAIL
8237     lastdir=FAIL
8238     places=`ls $srcdir/.. | sed -e 's,/$,,' -e "s,^,$srcdir/../," | \
8239         egrep '/libpcap-[0-9]*.[0-9]*(.[0-9]*)?([ab][0-9]*)?$'`
8240     for dir in $places $srcdir/../libpcap $srcdir/libpcap ; do
8241             basedir=`echo $dir | sed -e 's/[ab][0-9]*$//'`
8242             if test $lastdir = $basedir ; then
8243                                     continue;
8244             fi
8245             lastdir=$dir
8246             if test -r $dir/libpcap.a ; then
8247                     libpcap=$dir/libpcap.a
8248                     d=$dir
8249                             fi
8250     done
8251     if test $libpcap = FAIL ; then
8252             echo "$as_me:$LINENO: result: not found" >&5
8253 echo "${ECHO_T}not found" >&6
8254             echo "$as_me:$LINENO: checking for main in -lpcap" >&5
8255 echo $ECHO_N "checking for main in -lpcap... $ECHO_C" >&6
8256 if test "${ac_cv_lib_pcap_main+set}" = set; then
8257   echo $ECHO_N "(cached) $ECHO_C" >&6
8258 else
8259   ac_check_lib_save_LIBS=$LIBS
8260 LIBS="-lpcap  $LIBS"
8261 cat >conftest.$ac_ext <<_ACEOF
8262 #line $LINENO "configure"
8263 /* confdefs.h.  */
8264 _ACEOF
8265 cat confdefs.h >>conftest.$ac_ext
8266 cat >>conftest.$ac_ext <<_ACEOF
8267 /* end confdefs.h.  */
8268
8269
8270 int
8271 main ()
8272 {
8273 main ();
8274   ;
8275   return 0;
8276 }
8277 _ACEOF
8278 rm -f conftest.$ac_objext conftest$ac_exeext
8279 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8280   (eval $ac_link) 2>&5
8281   ac_status=$?
8282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8283   (exit $ac_status); } &&
8284          { ac_try='test -s conftest$ac_exeext'
8285   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8286   (eval $ac_try) 2>&5
8287   ac_status=$?
8288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8289   (exit $ac_status); }; }; then
8290   ac_cv_lib_pcap_main=yes
8291 else
8292   echo "$as_me: failed program was:" >&5
8293 sed 's/^/| /' conftest.$ac_ext >&5
8294
8295 ac_cv_lib_pcap_main=no
8296 fi
8297 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8298 LIBS=$ac_check_lib_save_LIBS
8299 fi
8300 echo "$as_me:$LINENO: result: $ac_cv_lib_pcap_main" >&5
8301 echo "${ECHO_T}$ac_cv_lib_pcap_main" >&6
8302 if test $ac_cv_lib_pcap_main = yes; then
8303   libpcap="-lpcap"
8304 fi
8305
8306             if test $libpcap = FAIL ; then
8307                     { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
8308 echo "$as_me: error: see the INSTALL doc for more info" >&2;}
8309    { (exit 1); exit 1; }; }
8310             fi
8311                                                                                                                                     echo "$as_me:$LINENO: checking for extraneous pcap header directories" >&5
8312 echo $ECHO_N "checking for extraneous pcap header directories... $ECHO_C" >&6
8313             if test \( ! -r /usr/local/include/pcap.h \) -a \
8314                         \( ! -r /usr/include/pcap.h \); then
8315                 if test -r /usr/local/include/pcap/pcap.h; then
8316                     d="/usr/local/include/pcap"
8317                 elif test -r /usr/include/pcap/pcap.h; then
8318                     d="/usr/include/pcap"
8319                 fi
8320             fi
8321             if test -z "$d" ; then
8322                 echo "$as_me:$LINENO: result: not found" >&5
8323 echo "${ECHO_T}not found" >&6
8324             else
8325                 V_INCLS="-I$d $V_INCLS"
8326                 echo "$as_me:$LINENO: result: found -- -I$d added" >&5
8327 echo "${ECHO_T}found -- -I$d added" >&6
8328             fi
8329     else
8330             V_PCAPDEP=$libpcap
8331             places=`ls $srcdir/.. | sed -e 's,/$,,' -e "s,^,$srcdir/../," | \
8332                         egrep '/libpcap-[0-9]*.[0-9]*(.[0-9]*)?([ab][0-9]*)?$'`
8333             if test -r $d/pcap.h; then
8334                     V_INCLS="-I$d $V_INCLS"
8335             elif test -r $places/pcap.h; then
8336                     V_INCLS="-I$places $V_INCLS"
8337             else
8338                     { { echo "$as_me:$LINENO: error: cannot find pcap.h" >&5
8339 echo "$as_me: error: cannot find pcap.h" >&2;}
8340    { (exit see INSTALL); exit see INSTALL; }; }
8341             fi
8342             echo "$as_me:$LINENO: result: $libpcap" >&5
8343 echo "${ECHO_T}$libpcap" >&6
8344     fi
8345     LIBS="$libpcap $LIBS"
8346     case "$host_os" in
8347
8348     aix*)
8349             pseexe="/lib/pse.exp"
8350             echo "$as_me:$LINENO: checking for $pseexe" >&5
8351 echo $ECHO_N "checking for $pseexe... $ECHO_C" >&6
8352             if test -f $pseexe ; then
8353                     echo "$as_me:$LINENO: result: yes" >&5
8354 echo "${ECHO_T}yes" >&6
8355                     LIBS="$LIBS -I:$pseexe"
8356             fi
8357             #
8358             # We need "-lodm" and "-lcfg", as libpcap requires them on
8359             # AIX, and we just build a static libpcap.a and thus can't
8360             # arrange that when you link with libpcap you automatically
8361             # link with those libraries.
8362             #
8363             LIBS="$LIBS -lodm -lcfg"
8364             ;;
8365     esac
8366
8367                         echo "$as_me:$LINENO: checking for pcap_list_datalinks" >&5
8368 echo $ECHO_N "checking for pcap_list_datalinks... $ECHO_C" >&6
8369 if test "${ac_cv_func_pcap_list_datalinks+set}" = set; then
8370   echo $ECHO_N "(cached) $ECHO_C" >&6
8371 else
8372   cat >conftest.$ac_ext <<_ACEOF
8373 #line $LINENO "configure"
8374 /* confdefs.h.  */
8375 _ACEOF
8376 cat confdefs.h >>conftest.$ac_ext
8377 cat >>conftest.$ac_ext <<_ACEOF
8378 /* end confdefs.h.  */
8379 /* System header to define __stub macros and hopefully few prototypes,
8380     which can conflict with char pcap_list_datalinks (); below.
8381     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8382     <limits.h> exists even on freestanding compilers.  */
8383 #ifdef __STDC__
8384 # include <limits.h>
8385 #else
8386 # include <assert.h>
8387 #endif
8388 /* Override any gcc2 internal prototype to avoid an error.  */
8389 #ifdef __cplusplus
8390 extern "C"
8391 {
8392 #endif
8393 /* We use char because int might match the return type of a gcc2
8394    builtin and then its argument prototype would still apply.  */
8395 char pcap_list_datalinks ();
8396 /* The GNU C library defines this for functions which it implements
8397     to always fail with ENOSYS.  Some functions are actually named
8398     something starting with __ and the normal name is an alias.  */
8399 #if defined (__stub_pcap_list_datalinks) || defined (__stub___pcap_list_datalinks)
8400 choke me
8401 #else
8402 char (*f) () = pcap_list_datalinks;
8403 #endif
8404 #ifdef __cplusplus
8405 }
8406 #endif
8407
8408 int
8409 main ()
8410 {
8411 return f != pcap_list_datalinks;
8412   ;
8413   return 0;
8414 }
8415 _ACEOF
8416 rm -f conftest.$ac_objext conftest$ac_exeext
8417 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8418   (eval $ac_link) 2>&5
8419   ac_status=$?
8420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8421   (exit $ac_status); } &&
8422          { ac_try='test -s conftest$ac_exeext'
8423   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8424   (eval $ac_try) 2>&5
8425   ac_status=$?
8426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8427   (exit $ac_status); }; }; then
8428   ac_cv_func_pcap_list_datalinks=yes
8429 else
8430   echo "$as_me: failed program was:" >&5
8431 sed 's/^/| /' conftest.$ac_ext >&5
8432
8433 ac_cv_func_pcap_list_datalinks=no
8434 fi
8435 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8436 fi
8437 echo "$as_me:$LINENO: result: $ac_cv_func_pcap_list_datalinks" >&5
8438 echo "${ECHO_T}$ac_cv_func_pcap_list_datalinks" >&6
8439 if test $ac_cv_func_pcap_list_datalinks = yes; then
8440   cat >>confdefs.h <<\_ACEOF
8441 #define HAVE_PCAP_LIST_DATALINKS 1
8442 _ACEOF
8443
8444 else
8445
8446             LIBOBJS="$LIBOBJS datalinks.$ac_objext"
8447
8448 fi
8449
8450     echo "$as_me:$LINENO: checking for pcap_set_datalink" >&5
8451 echo $ECHO_N "checking for pcap_set_datalink... $ECHO_C" >&6
8452 if test "${ac_cv_func_pcap_set_datalink+set}" = set; then
8453   echo $ECHO_N "(cached) $ECHO_C" >&6
8454 else
8455   cat >conftest.$ac_ext <<_ACEOF
8456 #line $LINENO "configure"
8457 /* confdefs.h.  */
8458 _ACEOF
8459 cat confdefs.h >>conftest.$ac_ext
8460 cat >>conftest.$ac_ext <<_ACEOF
8461 /* end confdefs.h.  */
8462 /* System header to define __stub macros and hopefully few prototypes,
8463     which can conflict with char pcap_set_datalink (); below.
8464     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8465     <limits.h> exists even on freestanding compilers.  */
8466 #ifdef __STDC__
8467 # include <limits.h>
8468 #else
8469 # include <assert.h>
8470 #endif
8471 /* Override any gcc2 internal prototype to avoid an error.  */
8472 #ifdef __cplusplus
8473 extern "C"
8474 {
8475 #endif
8476 /* We use char because int might match the return type of a gcc2
8477    builtin and then its argument prototype would still apply.  */
8478 char pcap_set_datalink ();
8479 /* The GNU C library defines this for functions which it implements
8480     to always fail with ENOSYS.  Some functions are actually named
8481     something starting with __ and the normal name is an alias.  */
8482 #if defined (__stub_pcap_set_datalink) || defined (__stub___pcap_set_datalink)
8483 choke me
8484 #else
8485 char (*f) () = pcap_set_datalink;
8486 #endif
8487 #ifdef __cplusplus
8488 }
8489 #endif
8490
8491 int
8492 main ()
8493 {
8494 return f != pcap_set_datalink;
8495   ;
8496   return 0;
8497 }
8498 _ACEOF
8499 rm -f conftest.$ac_objext conftest$ac_exeext
8500 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8501   (eval $ac_link) 2>&5
8502   ac_status=$?
8503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8504   (exit $ac_status); } &&
8505          { ac_try='test -s conftest$ac_exeext'
8506   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8507   (eval $ac_try) 2>&5
8508   ac_status=$?
8509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8510   (exit $ac_status); }; }; then
8511   ac_cv_func_pcap_set_datalink=yes
8512 else
8513   echo "$as_me: failed program was:" >&5
8514 sed 's/^/| /' conftest.$ac_ext >&5
8515
8516 ac_cv_func_pcap_set_datalink=no
8517 fi
8518 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8519 fi
8520 echo "$as_me:$LINENO: result: $ac_cv_func_pcap_set_datalink" >&5
8521 echo "${ECHO_T}$ac_cv_func_pcap_set_datalink" >&6
8522 if test $ac_cv_func_pcap_set_datalink = yes; then
8523   cat >>confdefs.h <<\_ACEOF
8524 #define HAVE_PCAP_SET_DATALINK 1
8525 _ACEOF
8526
8527 fi
8528
8529     echo "$as_me:$LINENO: checking for pcap_datalink_name_to_val" >&5
8530 echo $ECHO_N "checking for pcap_datalink_name_to_val... $ECHO_C" >&6
8531 if test "${ac_cv_func_pcap_datalink_name_to_val+set}" = set; then
8532   echo $ECHO_N "(cached) $ECHO_C" >&6
8533 else
8534   cat >conftest.$ac_ext <<_ACEOF
8535 #line $LINENO "configure"
8536 /* confdefs.h.  */
8537 _ACEOF
8538 cat confdefs.h >>conftest.$ac_ext
8539 cat >>conftest.$ac_ext <<_ACEOF
8540 /* end confdefs.h.  */
8541 /* System header to define __stub macros and hopefully few prototypes,
8542     which can conflict with char pcap_datalink_name_to_val (); below.
8543     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8544     <limits.h> exists even on freestanding compilers.  */
8545 #ifdef __STDC__
8546 # include <limits.h>
8547 #else
8548 # include <assert.h>
8549 #endif
8550 /* Override any gcc2 internal prototype to avoid an error.  */
8551 #ifdef __cplusplus
8552 extern "C"
8553 {
8554 #endif
8555 /* We use char because int might match the return type of a gcc2
8556    builtin and then its argument prototype would still apply.  */
8557 char pcap_datalink_name_to_val ();
8558 /* The GNU C library defines this for functions which it implements
8559     to always fail with ENOSYS.  Some functions are actually named
8560     something starting with __ and the normal name is an alias.  */
8561 #if defined (__stub_pcap_datalink_name_to_val) || defined (__stub___pcap_datalink_name_to_val)
8562 choke me
8563 #else
8564 char (*f) () = pcap_datalink_name_to_val;
8565 #endif
8566 #ifdef __cplusplus
8567 }
8568 #endif
8569
8570 int
8571 main ()
8572 {
8573 return f != pcap_datalink_name_to_val;
8574   ;
8575   return 0;
8576 }
8577 _ACEOF
8578 rm -f conftest.$ac_objext conftest$ac_exeext
8579 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8580   (eval $ac_link) 2>&5
8581   ac_status=$?
8582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8583   (exit $ac_status); } &&
8584          { ac_try='test -s conftest$ac_exeext'
8585   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8586   (eval $ac_try) 2>&5
8587   ac_status=$?
8588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8589   (exit $ac_status); }; }; then
8590   ac_cv_func_pcap_datalink_name_to_val=yes
8591 else
8592   echo "$as_me: failed program was:" >&5
8593 sed 's/^/| /' conftest.$ac_ext >&5
8594
8595 ac_cv_func_pcap_datalink_name_to_val=no
8596 fi
8597 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8598 fi
8599 echo "$as_me:$LINENO: result: $ac_cv_func_pcap_datalink_name_to_val" >&5
8600 echo "${ECHO_T}$ac_cv_func_pcap_datalink_name_to_val" >&6
8601 if test $ac_cv_func_pcap_datalink_name_to_val = yes; then
8602
8603             cat >>confdefs.h <<\_ACEOF
8604 #define HAVE_PCAP_DATALINK_NAME_TO_VAL 1
8605 _ACEOF
8606
8607             echo "$as_me:$LINENO: checking for pcap_datalink_val_to_description" >&5
8608 echo $ECHO_N "checking for pcap_datalink_val_to_description... $ECHO_C" >&6
8609 if test "${ac_cv_func_pcap_datalink_val_to_description+set}" = set; then
8610   echo $ECHO_N "(cached) $ECHO_C" >&6
8611 else
8612   cat >conftest.$ac_ext <<_ACEOF
8613 #line $LINENO "configure"
8614 /* confdefs.h.  */
8615 _ACEOF
8616 cat confdefs.h >>conftest.$ac_ext
8617 cat >>conftest.$ac_ext <<_ACEOF
8618 /* end confdefs.h.  */
8619 /* System header to define __stub macros and hopefully few prototypes,
8620     which can conflict with char pcap_datalink_val_to_description (); below.
8621     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8622     <limits.h> exists even on freestanding compilers.  */
8623 #ifdef __STDC__
8624 # include <limits.h>
8625 #else
8626 # include <assert.h>
8627 #endif
8628 /* Override any gcc2 internal prototype to avoid an error.  */
8629 #ifdef __cplusplus
8630 extern "C"
8631 {
8632 #endif
8633 /* We use char because int might match the return type of a gcc2
8634    builtin and then its argument prototype would still apply.  */
8635 char pcap_datalink_val_to_description ();
8636 /* The GNU C library defines this for functions which it implements
8637     to always fail with ENOSYS.  Some functions are actually named
8638     something starting with __ and the normal name is an alias.  */
8639 #if defined (__stub_pcap_datalink_val_to_description) || defined (__stub___pcap_datalink_val_to_description)
8640 choke me
8641 #else
8642 char (*f) () = pcap_datalink_val_to_description;
8643 #endif
8644 #ifdef __cplusplus
8645 }
8646 #endif
8647
8648 int
8649 main ()
8650 {
8651 return f != pcap_datalink_val_to_description;
8652   ;
8653   return 0;
8654 }
8655 _ACEOF
8656 rm -f conftest.$ac_objext conftest$ac_exeext
8657 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8658   (eval $ac_link) 2>&5
8659   ac_status=$?
8660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8661   (exit $ac_status); } &&
8662          { ac_try='test -s conftest$ac_exeext'
8663   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8664   (eval $ac_try) 2>&5
8665   ac_status=$?
8666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8667   (exit $ac_status); }; }; then
8668   ac_cv_func_pcap_datalink_val_to_description=yes
8669 else
8670   echo "$as_me: failed program was:" >&5
8671 sed 's/^/| /' conftest.$ac_ext >&5
8672
8673 ac_cv_func_pcap_datalink_val_to_description=no
8674 fi
8675 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8676 fi
8677 echo "$as_me:$LINENO: result: $ac_cv_func_pcap_datalink_val_to_description" >&5
8678 echo "${ECHO_T}$ac_cv_func_pcap_datalink_val_to_description" >&6
8679 if test $ac_cv_func_pcap_datalink_val_to_description = yes; then
8680   cat >>confdefs.h <<\_ACEOF
8681 #define HAVE_PCAP_DATALINK_VAL_TO_DESCRIPTION 1
8682 _ACEOF
8683
8684 else
8685
8686                     LIBOBJS="$LIBOBJS dlnames.$ac_objext"
8687
8688 fi
8689
8690
8691 else
8692
8693             LIBOBJS="$LIBOBJS dlnames.$ac_objext"
8694
8695 fi
8696
8697
8698
8699 for ac_func in pcap_breakloop
8700 do
8701 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8702 echo "$as_me:$LINENO: checking for $ac_func" >&5
8703 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8704 if eval "test \"\${$as_ac_var+set}\" = set"; then
8705   echo $ECHO_N "(cached) $ECHO_C" >&6
8706 else
8707   cat >conftest.$ac_ext <<_ACEOF
8708 #line $LINENO "configure"
8709 /* confdefs.h.  */
8710 _ACEOF
8711 cat confdefs.h >>conftest.$ac_ext
8712 cat >>conftest.$ac_ext <<_ACEOF
8713 /* end confdefs.h.  */
8714 /* System header to define __stub macros and hopefully few prototypes,
8715     which can conflict with char $ac_func (); below.
8716     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8717     <limits.h> exists even on freestanding compilers.  */
8718 #ifdef __STDC__
8719 # include <limits.h>
8720 #else
8721 # include <assert.h>
8722 #endif
8723 /* Override any gcc2 internal prototype to avoid an error.  */
8724 #ifdef __cplusplus
8725 extern "C"
8726 {
8727 #endif
8728 /* We use char because int might match the return type of a gcc2
8729    builtin and then its argument prototype would still apply.  */
8730 char $ac_func ();
8731 /* The GNU C library defines this for functions which it implements
8732     to always fail with ENOSYS.  Some functions are actually named
8733     something starting with __ and the normal name is an alias.  */
8734 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8735 choke me
8736 #else
8737 char (*f) () = $ac_func;
8738 #endif
8739 #ifdef __cplusplus
8740 }
8741 #endif
8742
8743 int
8744 main ()
8745 {
8746 return f != $ac_func;
8747   ;
8748   return 0;
8749 }
8750 _ACEOF
8751 rm -f conftest.$ac_objext conftest$ac_exeext
8752 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8753   (eval $ac_link) 2>&5
8754   ac_status=$?
8755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8756   (exit $ac_status); } &&
8757          { ac_try='test -s conftest$ac_exeext'
8758   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8759   (eval $ac_try) 2>&5
8760   ac_status=$?
8761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8762   (exit $ac_status); }; }; then
8763   eval "$as_ac_var=yes"
8764 else
8765   echo "$as_me: failed program was:" >&5
8766 sed 's/^/| /' conftest.$ac_ext >&5
8767
8768 eval "$as_ac_var=no"
8769 fi
8770 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8771 fi
8772 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8773 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8774 if test `eval echo '${'$as_ac_var'}'` = yes; then
8775   cat >>confdefs.h <<_ACEOF
8776 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8777 _ACEOF
8778
8779 fi
8780 done
8781
8782
8783                 echo "$as_me:$LINENO: checking for pcap_dump_ftell" >&5
8784 echo $ECHO_N "checking for pcap_dump_ftell... $ECHO_C" >&6
8785 if test "${ac_cv_func_pcap_dump_ftell+set}" = set; then
8786   echo $ECHO_N "(cached) $ECHO_C" >&6
8787 else
8788   cat >conftest.$ac_ext <<_ACEOF
8789 #line $LINENO "configure"
8790 /* confdefs.h.  */
8791 _ACEOF
8792 cat confdefs.h >>conftest.$ac_ext
8793 cat >>conftest.$ac_ext <<_ACEOF
8794 /* end confdefs.h.  */
8795 /* System header to define __stub macros and hopefully few prototypes,
8796     which can conflict with char pcap_dump_ftell (); below.
8797     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8798     <limits.h> exists even on freestanding compilers.  */
8799 #ifdef __STDC__
8800 # include <limits.h>
8801 #else
8802 # include <assert.h>
8803 #endif
8804 /* Override any gcc2 internal prototype to avoid an error.  */
8805 #ifdef __cplusplus
8806 extern "C"
8807 {
8808 #endif
8809 /* We use char because int might match the return type of a gcc2
8810    builtin and then its argument prototype would still apply.  */
8811 char pcap_dump_ftell ();
8812 /* The GNU C library defines this for functions which it implements
8813     to always fail with ENOSYS.  Some functions are actually named
8814     something starting with __ and the normal name is an alias.  */
8815 #if defined (__stub_pcap_dump_ftell) || defined (__stub___pcap_dump_ftell)
8816 choke me
8817 #else
8818 char (*f) () = pcap_dump_ftell;
8819 #endif
8820 #ifdef __cplusplus
8821 }
8822 #endif
8823
8824 int
8825 main ()
8826 {
8827 return f != pcap_dump_ftell;
8828   ;
8829   return 0;
8830 }
8831 _ACEOF
8832 rm -f conftest.$ac_objext conftest$ac_exeext
8833 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8834   (eval $ac_link) 2>&5
8835   ac_status=$?
8836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8837   (exit $ac_status); } &&
8838          { ac_try='test -s conftest$ac_exeext'
8839   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8840   (eval $ac_try) 2>&5
8841   ac_status=$?
8842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8843   (exit $ac_status); }; }; then
8844   ac_cv_func_pcap_dump_ftell=yes
8845 else
8846   echo "$as_me: failed program was:" >&5
8847 sed 's/^/| /' conftest.$ac_ext >&5
8848
8849 ac_cv_func_pcap_dump_ftell=no
8850 fi
8851 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8852 fi
8853 echo "$as_me:$LINENO: result: $ac_cv_func_pcap_dump_ftell" >&5
8854 echo "${ECHO_T}$ac_cv_func_pcap_dump_ftell" >&6
8855 if test $ac_cv_func_pcap_dump_ftell = yes; then
8856   cat >>confdefs.h <<\_ACEOF
8857 #define HAVE_PCAP_DUMP_FTELL 1
8858 _ACEOF
8859
8860 else
8861
8862             LIBOBJS="$LIBOBJS pcap_dump_ftell.$ac_objext"
8863
8864 fi
8865
8866
8867
8868 #
8869 # Check for these after AC_LBL_LIBPCAP, so we link with the appropriate
8870 # libraries (e.g., "-lsocket -lnsl" on Solaris).
8871 #
8872 # We don't use AC_REPLACE_FUNCS because that uses AC_CHECK_FUNCS which
8873 # use AC_CHECK_FUNC which doesn't let us specify the right #includes
8874 # to make this work on BSD/OS 4.x.  BSD/OS 4.x ships with the BIND8
8875 # resolver, and the way it defines inet_{ntop,pton} is rather strange;
8876 # it does not ship with a libc symbol "inet_ntop()", it ships with
8877 # "_inet_ntop()", and has a #define macro in one of the system headers
8878 # to rename it.
8879 #
8880 echo "$as_me:$LINENO: checking for inet_ntop" >&5
8881 echo $ECHO_N "checking for inet_ntop... $ECHO_C" >&6
8882 cat >conftest.$ac_ext <<_ACEOF
8883 #line $LINENO "configure"
8884 /* confdefs.h.  */
8885 _ACEOF
8886 cat confdefs.h >>conftest.$ac_ext
8887 cat >>conftest.$ac_ext <<_ACEOF
8888 /* end confdefs.h.  */
8889 #include <sys/types.h>
8890 #include <sys/socket.h>
8891 #include <netinet/in.h>
8892 #include <arpa/inet.h>
8893 int
8894 main ()
8895 {
8896 char src[4], dst[128];
8897 inet_ntop(AF_INET, src, dst, sizeof(dst));
8898   ;
8899   return 0;
8900 }
8901 _ACEOF
8902 rm -f conftest.$ac_objext conftest$ac_exeext
8903 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8904   (eval $ac_link) 2>&5
8905   ac_status=$?
8906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8907   (exit $ac_status); } &&
8908          { ac_try='test -s conftest$ac_exeext'
8909   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8910   (eval $ac_try) 2>&5
8911   ac_status=$?
8912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8913   (exit $ac_status); }; }; then
8914   echo "$as_me:$LINENO: result: yes" >&5
8915 echo "${ECHO_T}yes" >&6
8916 else
8917   echo "$as_me: failed program was:" >&5
8918 sed 's/^/| /' conftest.$ac_ext >&5
8919
8920 echo "$as_me:$LINENO: result: no" >&5
8921 echo "${ECHO_T}no" >&6
8922         LIBOBJS="$LIBOBJS inet_ntop.$ac_objext"
8923 fi
8924 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8925 echo "$as_me:$LINENO: checking for inet_pton" >&5
8926 echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6
8927 cat >conftest.$ac_ext <<_ACEOF
8928 #line $LINENO "configure"
8929 /* confdefs.h.  */
8930 _ACEOF
8931 cat confdefs.h >>conftest.$ac_ext
8932 cat >>conftest.$ac_ext <<_ACEOF
8933 /* end confdefs.h.  */
8934 #include <sys/types.h>
8935 #include <sys/socket.h>
8936 #include <netinet/in.h>
8937 #include <arpa/inet.h>
8938 int
8939 main ()
8940 {
8941 char src[128], dst[4];
8942 inet_pton(AF_INET, src, dst);
8943   ;
8944   return 0;
8945 }
8946 _ACEOF
8947 rm -f conftest.$ac_objext conftest$ac_exeext
8948 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8949   (eval $ac_link) 2>&5
8950   ac_status=$?
8951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8952   (exit $ac_status); } &&
8953          { ac_try='test -s conftest$ac_exeext'
8954   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8955   (eval $ac_try) 2>&5
8956   ac_status=$?
8957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8958   (exit $ac_status); }; }; then
8959   echo "$as_me:$LINENO: result: yes" >&5
8960 echo "${ECHO_T}yes" >&6
8961 else
8962   echo "$as_me: failed program was:" >&5
8963 sed 's/^/| /' conftest.$ac_ext >&5
8964
8965 echo "$as_me:$LINENO: result: no" >&5
8966 echo "${ECHO_T}no" >&6
8967         LIBOBJS="$LIBOBJS inet_pton.$ac_objext"
8968 fi
8969 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8970 echo "$as_me:$LINENO: checking for inet_aton" >&5
8971 echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6
8972 cat >conftest.$ac_ext <<_ACEOF
8973 #line $LINENO "configure"
8974 /* confdefs.h.  */
8975 _ACEOF
8976 cat confdefs.h >>conftest.$ac_ext
8977 cat >>conftest.$ac_ext <<_ACEOF
8978 /* end confdefs.h.  */
8979 #include <sys/types.h>
8980 #include <netinet/in.h>
8981 #include <arpa/inet.h>
8982 int
8983 main ()
8984 {
8985 char src[128];
8986 struct in_addr dst;
8987 inet_aton(src, &dst);
8988   ;
8989   return 0;
8990 }
8991 _ACEOF
8992 rm -f conftest.$ac_objext conftest$ac_exeext
8993 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8994   (eval $ac_link) 2>&5
8995   ac_status=$?
8996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8997   (exit $ac_status); } &&
8998          { ac_try='test -s conftest$ac_exeext'
8999   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9000   (eval $ac_try) 2>&5
9001   ac_status=$?
9002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9003   (exit $ac_status); }; }; then
9004   echo "$as_me:$LINENO: result: yes" >&5
9005 echo "${ECHO_T}yes" >&6
9006 else
9007   echo "$as_me: failed program was:" >&5
9008 sed 's/^/| /' conftest.$ac_ext >&5
9009
9010 echo "$as_me:$LINENO: result: no" >&5
9011 echo "${ECHO_T}no" >&6
9012         LIBOBJS="$LIBOBJS inet_aton.$ac_objext"
9013 fi
9014 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9015
9016 #
9017 # Check for these after AC_LBL_LIBPCAP, for the same reason.
9018 #
9019 # You are in a twisty little maze of UN*Xes, all different.
9020 # Some might not have ether_ntohost().
9021 # Some might have it, but not declare it in any header file.
9022 # Some might have it, but declare it in <netinet/if_ether.h>.
9023 # Some might have it, but declare it in <netinet/ether.h>
9024 # (And some might have it but document it as something declared in
9025 # <netinet/ethernet.h>, although <netinet/if_ether.h> appears to work.)
9026 #
9027 # Before you is a C compiler.
9028 #
9029
9030 for ac_func in ether_ntohost
9031 do
9032 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9033 echo "$as_me:$LINENO: checking for $ac_func" >&5
9034 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9035 if eval "test \"\${$as_ac_var+set}\" = set"; then
9036   echo $ECHO_N "(cached) $ECHO_C" >&6
9037 else
9038   cat >conftest.$ac_ext <<_ACEOF
9039 #line $LINENO "configure"
9040 /* confdefs.h.  */
9041 _ACEOF
9042 cat confdefs.h >>conftest.$ac_ext
9043 cat >>conftest.$ac_ext <<_ACEOF
9044 /* end confdefs.h.  */
9045 /* System header to define __stub macros and hopefully few prototypes,
9046     which can conflict with char $ac_func (); below.
9047     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9048     <limits.h> exists even on freestanding compilers.  */
9049 #ifdef __STDC__
9050 # include <limits.h>
9051 #else
9052 # include <assert.h>
9053 #endif
9054 /* Override any gcc2 internal prototype to avoid an error.  */
9055 #ifdef __cplusplus
9056 extern "C"
9057 {
9058 #endif
9059 /* We use char because int might match the return type of a gcc2
9060    builtin and then its argument prototype would still apply.  */
9061 char $ac_func ();
9062 /* The GNU C library defines this for functions which it implements
9063     to always fail with ENOSYS.  Some functions are actually named
9064     something starting with __ and the normal name is an alias.  */
9065 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9066 choke me
9067 #else
9068 char (*f) () = $ac_func;
9069 #endif
9070 #ifdef __cplusplus
9071 }
9072 #endif
9073
9074 int
9075 main ()
9076 {
9077 return f != $ac_func;
9078   ;
9079   return 0;
9080 }
9081 _ACEOF
9082 rm -f conftest.$ac_objext conftest$ac_exeext
9083 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9084   (eval $ac_link) 2>&5
9085   ac_status=$?
9086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9087   (exit $ac_status); } &&
9088          { ac_try='test -s conftest$ac_exeext'
9089   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9090   (eval $ac_try) 2>&5
9091   ac_status=$?
9092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9093   (exit $ac_status); }; }; then
9094   eval "$as_ac_var=yes"
9095 else
9096   echo "$as_me: failed program was:" >&5
9097 sed 's/^/| /' conftest.$ac_ext >&5
9098
9099 eval "$as_ac_var=no"
9100 fi
9101 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9102 fi
9103 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9104 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9105 if test `eval echo '${'$as_ac_var'}'` = yes; then
9106   cat >>confdefs.h <<_ACEOF
9107 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9108 _ACEOF
9109
9110     echo "$as_me:$LINENO: checking for buggy ether_ntohost" >&5
9111 echo $ECHO_N "checking for buggy ether_ntohost... $ECHO_C" >&6
9112 if test "${ac_cv_buggy_ether_ntohost+set}" = set; then
9113   echo $ECHO_N "(cached) $ECHO_C" >&6
9114 else
9115
9116         if test "$cross_compiling" = yes; then
9117   ac_cv_buggy_ether_ntohost="not while cross-compiling"
9118 else
9119   cat >conftest.$ac_ext <<_ACEOF
9120 #line $LINENO "configure"
9121 /* confdefs.h.  */
9122 _ACEOF
9123 cat confdefs.h >>conftest.$ac_ext
9124 cat >>conftest.$ac_ext <<_ACEOF
9125 /* end confdefs.h.  */
9126
9127                 #include <netdb.h>
9128                 #include <sys/types.h>
9129                 #include <sys/param.h>
9130                 #include <sys/socket.h>
9131
9132                 int
9133                 main(int argc, char **argv)
9134                 {
9135                         u_char ea[6] = { 0xff, 0xff, 0xff, 0xff, 0xff };
9136                         char name[MAXHOSTNAMELEN];
9137
9138                         ether_ntohost(name, (struct ether_addr *)ea);
9139                         exit(0);
9140                 }
9141
9142 _ACEOF
9143 rm -f conftest$ac_exeext
9144 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9145   (eval $ac_link) 2>&5
9146   ac_status=$?
9147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9148   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9149   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9150   (eval $ac_try) 2>&5
9151   ac_status=$?
9152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9153   (exit $ac_status); }; }; then
9154   ac_cv_buggy_ether_ntohost=no
9155 else
9156   echo "$as_me: program exited with status $ac_status" >&5
9157 echo "$as_me: failed program was:" >&5
9158 sed 's/^/| /' conftest.$ac_ext >&5
9159
9160 ( exit $ac_status )
9161 ac_cv_buggy_ether_ntohost=yes
9162 fi
9163 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9164 fi
9165 fi
9166 echo "$as_me:$LINENO: result: $ac_cv_buggy_ether_ntohost" >&5
9167 echo "${ECHO_T}$ac_cv_buggy_ether_ntohost" >&6
9168     if test "$ac_cv_buggy_ether_ntohost" = "no"; then
9169         cat >>confdefs.h <<\_ACEOF
9170 #define USE_ETHER_NTOHOST 1
9171 _ACEOF
9172
9173     fi
9174
9175 fi
9176 done
9177
9178 if test "$ac_cv_func_ether_ntohost" = yes -a \
9179     "$ac_cv_buggy_ether_ntohost" = "no"; then
9180         #
9181         # OK, we have ether_ntohost().  Do we have <netinet/if_ether.h>?
9182         #
9183         if test "$ac_cv_header_netinet_if_ether_h" = yes; then
9184                 #
9185                 # Yes.  Does it declare ether_ntohost()?
9186                 #
9187                 echo "$as_me:$LINENO: checking whether ether_ntohost is declared" >&5
9188 echo $ECHO_N "checking whether ether_ntohost is declared... $ECHO_C" >&6
9189 if test "${ac_cv_have_decl_ether_ntohost+set}" = set; then
9190   echo $ECHO_N "(cached) $ECHO_C" >&6
9191 else
9192   cat >conftest.$ac_ext <<_ACEOF
9193 #line $LINENO "configure"
9194 /* confdefs.h.  */
9195 _ACEOF
9196 cat confdefs.h >>conftest.$ac_ext
9197 cat >>conftest.$ac_ext <<_ACEOF
9198 /* end confdefs.h.  */
9199
9200 #include <sys/types.h>
9201 #include <sys/socket.h>
9202 #include <netinet/in.h>
9203 #include <arpa/inet.h>
9204 struct mbuf;
9205 struct rtentry;
9206 #include <net/if.h>
9207 #include <netinet/if_ether.h>
9208
9209
9210 int
9211 main ()
9212 {
9213 #ifndef ether_ntohost
9214   char *p = (char *) ether_ntohost;
9215 #endif
9216
9217   ;
9218   return 0;
9219 }
9220 _ACEOF
9221 rm -f conftest.$ac_objext
9222 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9223   (eval $ac_compile) 2>&5
9224   ac_status=$?
9225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9226   (exit $ac_status); } &&
9227          { ac_try='test -s conftest.$ac_objext'
9228   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9229   (eval $ac_try) 2>&5
9230   ac_status=$?
9231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9232   (exit $ac_status); }; }; then
9233   ac_cv_have_decl_ether_ntohost=yes
9234 else
9235   echo "$as_me: failed program was:" >&5
9236 sed 's/^/| /' conftest.$ac_ext >&5
9237
9238 ac_cv_have_decl_ether_ntohost=no
9239 fi
9240 rm -f conftest.$ac_objext conftest.$ac_ext
9241 fi
9242 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ether_ntohost" >&5
9243 echo "${ECHO_T}$ac_cv_have_decl_ether_ntohost" >&6
9244 if test $ac_cv_have_decl_ether_ntohost = yes; then
9245
9246
9247 cat >>confdefs.h <<\_ACEOF
9248 #define NETINET_IF_ETHER_H_DECLARES_ETHER_NTOHOST
9249 _ACEOF
9250
9251
9252 fi
9253
9254         fi
9255         #
9256         # Did that succeed?
9257         #
9258         if test "$ac_cv_have_decl_ether_ntohost" != yes; then
9259                 #
9260                 # No, how about <netinet/ether.h>, as on Linux?
9261                 #
9262
9263 for ac_header in netinet/ether.h
9264 do
9265 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9266 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9267   echo "$as_me:$LINENO: checking for $ac_header" >&5
9268 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9269 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9270   echo $ECHO_N "(cached) $ECHO_C" >&6
9271 fi
9272 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9273 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9274 else
9275   # Is the header compilable?
9276 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9277 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9278 cat >conftest.$ac_ext <<_ACEOF
9279 #line $LINENO "configure"
9280 /* confdefs.h.  */
9281 _ACEOF
9282 cat confdefs.h >>conftest.$ac_ext
9283 cat >>conftest.$ac_ext <<_ACEOF
9284 /* end confdefs.h.  */
9285 $ac_includes_default
9286 #include <$ac_header>
9287 _ACEOF
9288 rm -f conftest.$ac_objext
9289 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9290   (eval $ac_compile) 2>&5
9291   ac_status=$?
9292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9293   (exit $ac_status); } &&
9294          { ac_try='test -s conftest.$ac_objext'
9295   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9296   (eval $ac_try) 2>&5
9297   ac_status=$?
9298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9299   (exit $ac_status); }; }; then
9300   ac_header_compiler=yes
9301 else
9302   echo "$as_me: failed program was:" >&5
9303 sed 's/^/| /' conftest.$ac_ext >&5
9304
9305 ac_header_compiler=no
9306 fi
9307 rm -f conftest.$ac_objext conftest.$ac_ext
9308 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9309 echo "${ECHO_T}$ac_header_compiler" >&6
9310
9311 # Is the header present?
9312 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9313 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9314 cat >conftest.$ac_ext <<_ACEOF
9315 #line $LINENO "configure"
9316 /* confdefs.h.  */
9317 _ACEOF
9318 cat confdefs.h >>conftest.$ac_ext
9319 cat >>conftest.$ac_ext <<_ACEOF
9320 /* end confdefs.h.  */
9321 #include <$ac_header>
9322 _ACEOF
9323 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9324   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9325   ac_status=$?
9326   grep -v '^ *+' conftest.er1 >conftest.err
9327   rm -f conftest.er1
9328   cat conftest.err >&5
9329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9330   (exit $ac_status); } >/dev/null; then
9331   if test -s conftest.err; then
9332     ac_cpp_err=$ac_c_preproc_warn_flag
9333   else
9334     ac_cpp_err=
9335   fi
9336 else
9337   ac_cpp_err=yes
9338 fi
9339 if test -z "$ac_cpp_err"; then
9340   ac_header_preproc=yes
9341 else
9342   echo "$as_me: failed program was:" >&5
9343 sed 's/^/| /' conftest.$ac_ext >&5
9344
9345   ac_header_preproc=no
9346 fi
9347 rm -f conftest.err conftest.$ac_ext
9348 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9349 echo "${ECHO_T}$ac_header_preproc" >&6
9350
9351 # So?  What about this header?
9352 case $ac_header_compiler:$ac_header_preproc in
9353   yes:no )
9354     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9355 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9356     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9357 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9358     (
9359       cat <<\_ASBOX
9360 ## ------------------------------------ ##
9361 ## Report this to bug-autoconf@gnu.org. ##
9362 ## ------------------------------------ ##
9363 _ASBOX
9364     ) |
9365       sed "s/^/$as_me: WARNING:     /" >&2
9366     ;;
9367   no:yes )
9368     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9369 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9370     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9371 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9372     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9373 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9374     (
9375       cat <<\_ASBOX
9376 ## ------------------------------------ ##
9377 ## Report this to bug-autoconf@gnu.org. ##
9378 ## ------------------------------------ ##
9379 _ASBOX
9380     ) |
9381       sed "s/^/$as_me: WARNING:     /" >&2
9382     ;;
9383 esac
9384 echo "$as_me:$LINENO: checking for $ac_header" >&5
9385 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9386 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9387   echo $ECHO_N "(cached) $ECHO_C" >&6
9388 else
9389   eval "$as_ac_Header=$ac_header_preproc"
9390 fi
9391 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9392 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9393
9394 fi
9395 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9396   cat >>confdefs.h <<_ACEOF
9397 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9398 _ACEOF
9399
9400 fi
9401
9402 done
9403
9404                 if test "$ac_cv_header_netinet_ether_h" = yes; then
9405                         #
9406                         # We have it - does it declare ether_ntohost()?
9407                         # Unset ac_cv_have_decl_ether_ntohost so we don't
9408                         # treat the previous failure as a cached value and
9409                         # suppress the next test.
9410                         #
9411                         unset ac_cv_have_decl_ether_ntohost
9412                         echo "$as_me:$LINENO: checking whether ether_ntohost is declared" >&5
9413 echo $ECHO_N "checking whether ether_ntohost is declared... $ECHO_C" >&6
9414 if test "${ac_cv_have_decl_ether_ntohost+set}" = set; then
9415   echo $ECHO_N "(cached) $ECHO_C" >&6
9416 else
9417   cat >conftest.$ac_ext <<_ACEOF
9418 #line $LINENO "configure"
9419 /* confdefs.h.  */
9420 _ACEOF
9421 cat confdefs.h >>conftest.$ac_ext
9422 cat >>conftest.$ac_ext <<_ACEOF
9423 /* end confdefs.h.  */
9424
9425 #include <netinet/ether.h>
9426
9427
9428 int
9429 main ()
9430 {
9431 #ifndef ether_ntohost
9432   char *p = (char *) ether_ntohost;
9433 #endif
9434
9435   ;
9436   return 0;
9437 }
9438 _ACEOF
9439 rm -f conftest.$ac_objext
9440 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9441   (eval $ac_compile) 2>&5
9442   ac_status=$?
9443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9444   (exit $ac_status); } &&
9445          { ac_try='test -s conftest.$ac_objext'
9446   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9447   (eval $ac_try) 2>&5
9448   ac_status=$?
9449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9450   (exit $ac_status); }; }; then
9451   ac_cv_have_decl_ether_ntohost=yes
9452 else
9453   echo "$as_me: failed program was:" >&5
9454 sed 's/^/| /' conftest.$ac_ext >&5
9455
9456 ac_cv_have_decl_ether_ntohost=no
9457 fi
9458 rm -f conftest.$ac_objext conftest.$ac_ext
9459 fi
9460 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ether_ntohost" >&5
9461 echo "${ECHO_T}$ac_cv_have_decl_ether_ntohost" >&6
9462 if test $ac_cv_have_decl_ether_ntohost = yes; then
9463
9464
9465 cat >>confdefs.h <<\_ACEOF
9466 #define NETINET_ETHER_H_DECLARES_ETHER_NTOHOST
9467 _ACEOF
9468
9469
9470 fi
9471
9472                 fi
9473         fi
9474         #
9475         # Is ether_ntohost() declared?
9476         #
9477         if test "$ac_cv_have_decl_ether_ntohost" != yes; then
9478                 #
9479                 # No, we'll have to declare it ourselves.
9480                 # Do we have "struct ether_addr"?
9481                 #
9482                 echo "$as_me:$LINENO: checking for struct ether_addr" >&5
9483 echo $ECHO_N "checking for struct ether_addr... $ECHO_C" >&6
9484 if test "${ac_cv_type_struct_ether_addr+set}" = set; then
9485   echo $ECHO_N "(cached) $ECHO_C" >&6
9486 else
9487   cat >conftest.$ac_ext <<_ACEOF
9488 #line $LINENO "configure"
9489 /* confdefs.h.  */
9490 _ACEOF
9491 cat confdefs.h >>conftest.$ac_ext
9492 cat >>conftest.$ac_ext <<_ACEOF
9493 /* end confdefs.h.  */
9494
9495 #include <sys/types.h>
9496 #include <sys/socket.h>
9497 #include <netinet/in.h>
9498 #include <arpa/inet.h>
9499 struct mbuf;
9500 struct rtentry;
9501 #include <net/if.h>
9502 #include <netinet/if_ether.h>
9503
9504
9505 int
9506 main ()
9507 {
9508 if ((struct ether_addr *) 0)
9509   return 0;
9510 if (sizeof (struct ether_addr))
9511   return 0;
9512   ;
9513   return 0;
9514 }
9515 _ACEOF
9516 rm -f conftest.$ac_objext
9517 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9518   (eval $ac_compile) 2>&5
9519   ac_status=$?
9520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9521   (exit $ac_status); } &&
9522          { ac_try='test -s conftest.$ac_objext'
9523   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9524   (eval $ac_try) 2>&5
9525   ac_status=$?
9526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9527   (exit $ac_status); }; }; then
9528   ac_cv_type_struct_ether_addr=yes
9529 else
9530   echo "$as_me: failed program was:" >&5
9531 sed 's/^/| /' conftest.$ac_ext >&5
9532
9533 ac_cv_type_struct_ether_addr=no
9534 fi
9535 rm -f conftest.$ac_objext conftest.$ac_ext
9536 fi
9537 echo "$as_me:$LINENO: result: $ac_cv_type_struct_ether_addr" >&5
9538 echo "${ECHO_T}$ac_cv_type_struct_ether_addr" >&6
9539 if test $ac_cv_type_struct_ether_addr = yes; then
9540
9541 cat >>confdefs.h <<_ACEOF
9542 #define HAVE_STRUCT_ETHER_ADDR 1
9543 _ACEOF
9544
9545
9546 fi
9547
9548
9549 cat >>confdefs.h <<\_ACEOF
9550 #define HAVE_DECL_ETHER_NTOHOST 0
9551 _ACEOF
9552
9553         else
9554
9555 cat >>confdefs.h <<\_ACEOF
9556 #define HAVE_DECL_ETHER_NTOHOST 1
9557 _ACEOF
9558
9559         fi
9560 fi
9561
9562
9563         echo "$as_me:$LINENO: checking if sockaddr struct has sa_len member" >&5
9564 echo $ECHO_N "checking if sockaddr struct has sa_len member... $ECHO_C" >&6
9565         if test "${ac_cv_sockaddr_has_sa_len+set}" = set; then
9566   echo $ECHO_N "(cached) $ECHO_C" >&6
9567 else
9568   cat >conftest.$ac_ext <<_ACEOF
9569 #line $LINENO "configure"
9570 /* confdefs.h.  */
9571 _ACEOF
9572 cat confdefs.h >>conftest.$ac_ext
9573 cat >>conftest.$ac_ext <<_ACEOF
9574 /* end confdefs.h.  */
9575
9576 #               include <sys/types.h>
9577 #               include <sys/socket.h>
9578 int
9579 main ()
9580 {
9581 u_int i = sizeof(((struct sockaddr *)0)->sa_len)
9582   ;
9583   return 0;
9584 }
9585 _ACEOF
9586 rm -f conftest.$ac_objext
9587 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9588   (eval $ac_compile) 2>&5
9589   ac_status=$?
9590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9591   (exit $ac_status); } &&
9592          { ac_try='test -s conftest.$ac_objext'
9593   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9594   (eval $ac_try) 2>&5
9595   ac_status=$?
9596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9597   (exit $ac_status); }; }; then
9598   ac_cv_sockaddr_has_sa_len=yes
9599 else
9600   echo "$as_me: failed program was:" >&5
9601 sed 's/^/| /' conftest.$ac_ext >&5
9602
9603 ac_cv_sockaddr_has_sa_len=no
9604 fi
9605 rm -f conftest.$ac_objext conftest.$ac_ext
9606 fi
9607
9608         echo "$as_me:$LINENO: result: $ac_cv_sockaddr_has_sa_len" >&5
9609 echo "${ECHO_T}$ac_cv_sockaddr_has_sa_len" >&6
9610                 if test $ac_cv_sockaddr_has_sa_len = yes ; then
9611                         cat >>confdefs.h <<\_ACEOF
9612 #define HAVE_SOCKADDR_SA_LEN 1
9613 _ACEOF
9614
9615         fi
9616
9617 if test "$ac_cv_sockaddr_has_sa_len" = no; then
9618         missing_includes=yes
9619 fi
9620
9621
9622
9623
9624 for ac_func in pcap_findalldevs pcap_dump_flush pcap_lib_version
9625 do
9626 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9627 echo "$as_me:$LINENO: checking for $ac_func" >&5
9628 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9629 if eval "test \"\${$as_ac_var+set}\" = set"; then
9630   echo $ECHO_N "(cached) $ECHO_C" >&6
9631 else
9632   cat >conftest.$ac_ext <<_ACEOF
9633 #line $LINENO "configure"
9634 /* confdefs.h.  */
9635 _ACEOF
9636 cat confdefs.h >>conftest.$ac_ext
9637 cat >>conftest.$ac_ext <<_ACEOF
9638 /* end confdefs.h.  */
9639 /* System header to define __stub macros and hopefully few prototypes,
9640     which can conflict with char $ac_func (); below.
9641     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9642     <limits.h> exists even on freestanding compilers.  */
9643 #ifdef __STDC__
9644 # include <limits.h>
9645 #else
9646 # include <assert.h>
9647 #endif
9648 /* Override any gcc2 internal prototype to avoid an error.  */
9649 #ifdef __cplusplus
9650 extern "C"
9651 {
9652 #endif
9653 /* We use char because int might match the return type of a gcc2
9654    builtin and then its argument prototype would still apply.  */
9655 char $ac_func ();
9656 /* The GNU C library defines this for functions which it implements
9657     to always fail with ENOSYS.  Some functions are actually named
9658     something starting with __ and the normal name is an alias.  */
9659 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9660 choke me
9661 #else
9662 char (*f) () = $ac_func;
9663 #endif
9664 #ifdef __cplusplus
9665 }
9666 #endif
9667
9668 int
9669 main ()
9670 {
9671 return f != $ac_func;
9672   ;
9673   return 0;
9674 }
9675 _ACEOF
9676 rm -f conftest.$ac_objext conftest$ac_exeext
9677 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9678   (eval $ac_link) 2>&5
9679   ac_status=$?
9680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9681   (exit $ac_status); } &&
9682          { ac_try='test -s conftest$ac_exeext'
9683   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9684   (eval $ac_try) 2>&5
9685   ac_status=$?
9686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9687   (exit $ac_status); }; }; then
9688   eval "$as_ac_var=yes"
9689 else
9690   echo "$as_me: failed program was:" >&5
9691 sed 's/^/| /' conftest.$ac_ext >&5
9692
9693 eval "$as_ac_var=no"
9694 fi
9695 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9696 fi
9697 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9698 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9699 if test `eval echo '${'$as_ac_var'}'` = yes; then
9700   cat >>confdefs.h <<_ACEOF
9701 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9702 _ACEOF
9703
9704 fi
9705 done
9706
9707 if test $ac_cv_func_pcap_findalldevs = "yes" ; then
9708     savedcflags="$CFLAGS"
9709     CFLAGS="$CFLAGS $V_INCLS"
9710     echo "$as_me:$LINENO: checking for pcap_if_t" >&5
9711 echo $ECHO_N "checking for pcap_if_t... $ECHO_C" >&6
9712 if test "${ac_cv_type_pcap_if_t+set}" = set; then
9713   echo $ECHO_N "(cached) $ECHO_C" >&6
9714 else
9715   cat >conftest.$ac_ext <<_ACEOF
9716 #line $LINENO "configure"
9717 /* confdefs.h.  */
9718 _ACEOF
9719 cat confdefs.h >>conftest.$ac_ext
9720 cat >>conftest.$ac_ext <<_ACEOF
9721 /* end confdefs.h.  */
9722 #include <pcap.h>
9723
9724 int
9725 main ()
9726 {
9727 if ((pcap_if_t *) 0)
9728   return 0;
9729 if (sizeof (pcap_if_t))
9730   return 0;
9731   ;
9732   return 0;
9733 }
9734 _ACEOF
9735 rm -f conftest.$ac_objext
9736 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9737   (eval $ac_compile) 2>&5
9738   ac_status=$?
9739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9740   (exit $ac_status); } &&
9741          { ac_try='test -s conftest.$ac_objext'
9742   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9743   (eval $ac_try) 2>&5
9744   ac_status=$?
9745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9746   (exit $ac_status); }; }; then
9747   ac_cv_type_pcap_if_t=yes
9748 else
9749   echo "$as_me: failed program was:" >&5
9750 sed 's/^/| /' conftest.$ac_ext >&5
9751
9752 ac_cv_type_pcap_if_t=no
9753 fi
9754 rm -f conftest.$ac_objext conftest.$ac_ext
9755 fi
9756 echo "$as_me:$LINENO: result: $ac_cv_type_pcap_if_t" >&5
9757 echo "${ECHO_T}$ac_cv_type_pcap_if_t" >&6
9758 if test $ac_cv_type_pcap_if_t = yes; then
9759
9760 cat >>confdefs.h <<_ACEOF
9761 #define HAVE_PCAP_IF_T 1
9762 _ACEOF
9763
9764
9765 fi
9766
9767     CFLAGS="$savedcflags"
9768 fi
9769
9770 if test $ac_cv_func_pcap_lib_version = "no" ; then
9771     echo "$as_me:$LINENO: checking whether pcap_version is defined by libpcap" >&5
9772 echo $ECHO_N "checking whether pcap_version is defined by libpcap... $ECHO_C" >&6
9773     cat >conftest.$ac_ext <<_ACEOF
9774 #line $LINENO "configure"
9775 /* confdefs.h.  */
9776 _ACEOF
9777 cat confdefs.h >>conftest.$ac_ext
9778 cat >>conftest.$ac_ext <<_ACEOF
9779 /* end confdefs.h.  */
9780
9781 int
9782 main ()
9783 {
9784
9785         extern char pcap_version[];
9786
9787         return (int)pcap_version;
9788
9789   ;
9790   return 0;
9791 }
9792 _ACEOF
9793 rm -f conftest.$ac_objext conftest$ac_exeext
9794 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9795   (eval $ac_link) 2>&5
9796   ac_status=$?
9797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9798   (exit $ac_status); } &&
9799          { ac_try='test -s conftest$ac_exeext'
9800   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9801   (eval $ac_try) 2>&5
9802   ac_status=$?
9803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9804   (exit $ac_status); }; }; then
9805   ac_lbl_cv_pcap_version_defined=yes
9806 else
9807   echo "$as_me: failed program was:" >&5
9808 sed 's/^/| /' conftest.$ac_ext >&5
9809
9810 ac_lbl_cv_pcap_version_defined=no
9811 fi
9812 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9813     if test "$ac_lbl_cv_pcap_version_defined" = yes ; then
9814         echo "$as_me:$LINENO: result: yes" >&5
9815 echo "${ECHO_T}yes" >&6
9816         cat >>confdefs.h <<\_ACEOF
9817 #define HAVE_PCAP_VERSION 1
9818 _ACEOF
9819
9820     else
9821         echo "$as_me:$LINENO: result: no" >&5
9822 echo "${ECHO_T}no" >&6
9823     fi
9824 fi
9825 echo "$as_me:$LINENO: checking whether pcap_debug is defined by libpcap" >&5
9826 echo $ECHO_N "checking whether pcap_debug is defined by libpcap... $ECHO_C" >&6
9827 cat >conftest.$ac_ext <<_ACEOF
9828 #line $LINENO "configure"
9829 /* confdefs.h.  */
9830 _ACEOF
9831 cat confdefs.h >>conftest.$ac_ext
9832 cat >>conftest.$ac_ext <<_ACEOF
9833 /* end confdefs.h.  */
9834
9835 int
9836 main ()
9837 {
9838
9839         extern int pcap_debug;
9840
9841         return pcap_debug;
9842
9843   ;
9844   return 0;
9845 }
9846 _ACEOF
9847 rm -f conftest.$ac_objext conftest$ac_exeext
9848 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9849   (eval $ac_link) 2>&5
9850   ac_status=$?
9851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9852   (exit $ac_status); } &&
9853          { ac_try='test -s conftest$ac_exeext'
9854   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9855   (eval $ac_try) 2>&5
9856   ac_status=$?
9857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9858   (exit $ac_status); }; }; then
9859   ac_lbl_cv_pcap_debug_defined=yes
9860 else
9861   echo "$as_me: failed program was:" >&5
9862 sed 's/^/| /' conftest.$ac_ext >&5
9863
9864 ac_lbl_cv_pcap_debug_defined=no
9865 fi
9866 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9867 if test "$ac_lbl_cv_pcap_debug_defined" = yes ; then
9868         echo "$as_me:$LINENO: result: yes" >&5
9869 echo "${ECHO_T}yes" >&6
9870         cat >>confdefs.h <<\_ACEOF
9871 #define HAVE_PCAP_DEBUG 1
9872 _ACEOF
9873
9874 else
9875         echo "$as_me:$LINENO: result: no" >&5
9876 echo "${ECHO_T}no" >&6
9877         #
9878         # OK, what about "yydebug"?
9879         #
9880         echo "$as_me:$LINENO: checking whether yydebug is defined by libpcap" >&5
9881 echo $ECHO_N "checking whether yydebug is defined by libpcap... $ECHO_C" >&6
9882         cat >conftest.$ac_ext <<_ACEOF
9883 #line $LINENO "configure"
9884 /* confdefs.h.  */
9885 _ACEOF
9886 cat confdefs.h >>conftest.$ac_ext
9887 cat >>conftest.$ac_ext <<_ACEOF
9888 /* end confdefs.h.  */
9889
9890 int
9891 main ()
9892 {
9893
9894                 extern int yydebug;
9895
9896                 return yydebug;
9897
9898   ;
9899   return 0;
9900 }
9901 _ACEOF
9902 rm -f conftest.$ac_objext conftest$ac_exeext
9903 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9904   (eval $ac_link) 2>&5
9905   ac_status=$?
9906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9907   (exit $ac_status); } &&
9908          { ac_try='test -s conftest$ac_exeext'
9909   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9910   (eval $ac_try) 2>&5
9911   ac_status=$?
9912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9913   (exit $ac_status); }; }; then
9914   ac_lbl_cv_yydebug_defined=yes
9915 else
9916   echo "$as_me: failed program was:" >&5
9917 sed 's/^/| /' conftest.$ac_ext >&5
9918
9919 ac_lbl_cv_yydebug_defined=no
9920 fi
9921 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9922         if test "$ac_lbl_cv_yydebug_defined" = yes ; then
9923                 echo "$as_me:$LINENO: result: yes" >&5
9924 echo "${ECHO_T}yes" >&6
9925                 cat >>confdefs.h <<\_ACEOF
9926 #define HAVE_YYDEBUG 1
9927 _ACEOF
9928
9929         else
9930                 echo "$as_me:$LINENO: result: no" >&5
9931 echo "${ECHO_T}no" >&6
9932         fi
9933 fi
9934
9935 for ac_func in bpf_dump
9936 do
9937 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9938 echo "$as_me:$LINENO: checking for $ac_func" >&5
9939 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9940 if eval "test \"\${$as_ac_var+set}\" = set"; then
9941   echo $ECHO_N "(cached) $ECHO_C" >&6
9942 else
9943   cat >conftest.$ac_ext <<_ACEOF
9944 #line $LINENO "configure"
9945 /* confdefs.h.  */
9946 _ACEOF
9947 cat confdefs.h >>conftest.$ac_ext
9948 cat >>conftest.$ac_ext <<_ACEOF
9949 /* end confdefs.h.  */
9950 /* System header to define __stub macros and hopefully few prototypes,
9951     which can conflict with char $ac_func (); below.
9952     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9953     <limits.h> exists even on freestanding compilers.  */
9954 #ifdef __STDC__
9955 # include <limits.h>
9956 #else
9957 # include <assert.h>
9958 #endif
9959 /* Override any gcc2 internal prototype to avoid an error.  */
9960 #ifdef __cplusplus
9961 extern "C"
9962 {
9963 #endif
9964 /* We use char because int might match the return type of a gcc2
9965    builtin and then its argument prototype would still apply.  */
9966 char $ac_func ();
9967 /* The GNU C library defines this for functions which it implements
9968     to always fail with ENOSYS.  Some functions are actually named
9969     something starting with __ and the normal name is an alias.  */
9970 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9971 choke me
9972 #else
9973 char (*f) () = $ac_func;
9974 #endif
9975 #ifdef __cplusplus
9976 }
9977 #endif
9978
9979 int
9980 main ()
9981 {
9982 return f != $ac_func;
9983   ;
9984   return 0;
9985 }
9986 _ACEOF
9987 rm -f conftest.$ac_objext conftest$ac_exeext
9988 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9989   (eval $ac_link) 2>&5
9990   ac_status=$?
9991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9992   (exit $ac_status); } &&
9993          { ac_try='test -s conftest$ac_exeext'
9994   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9995   (eval $ac_try) 2>&5
9996   ac_status=$?
9997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9998   (exit $ac_status); }; }; then
9999   eval "$as_ac_var=yes"
10000 else
10001   echo "$as_me: failed program was:" >&5
10002 sed 's/^/| /' conftest.$ac_ext >&5
10003
10004 eval "$as_ac_var=no"
10005 fi
10006 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10007 fi
10008 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10009 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10010 if test `eval echo '${'$as_ac_var'}'` = yes; then
10011   cat >>confdefs.h <<_ACEOF
10012 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10013 _ACEOF
10014
10015 else
10016   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
10017 fi
10018 done
10019
10020
10021 V_GROUP=0
10022 if test -f /etc/group -a ! -z "`grep '^wheel:' /etc/group`" ; then
10023         V_GROUP=wheel
10024 fi
10025 case "$host_os" in
10026
10027 aix*)
10028                 cat >>confdefs.h <<\_ACEOF
10029 #define _SUN 1
10030 _ACEOF
10031
10032         ;;
10033
10034 irix*)
10035         V_GROUP=sys
10036         ;;
10037
10038 osf*)
10039         V_GROUP=system
10040         ;;
10041
10042 solaris*)
10043         V_GROUP=sys
10044         ;;
10045 esac
10046
10047 if test -f /dev/bpf0 ; then
10048         V_GROUP=bpf
10049 fi
10050
10051
10052 for ac_header in sys/bitypes.h
10053 do
10054 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10055 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10056   echo "$as_me:$LINENO: checking for $ac_header" >&5
10057 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10058 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10059   echo $ECHO_N "(cached) $ECHO_C" >&6
10060 fi
10061 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10062 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10063 else
10064   # Is the header compilable?
10065 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10066 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10067 cat >conftest.$ac_ext <<_ACEOF
10068 #line $LINENO "configure"
10069 /* confdefs.h.  */
10070 _ACEOF
10071 cat confdefs.h >>conftest.$ac_ext
10072 cat >>conftest.$ac_ext <<_ACEOF
10073 /* end confdefs.h.  */
10074 $ac_includes_default
10075 #include <$ac_header>
10076 _ACEOF
10077 rm -f conftest.$ac_objext
10078 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10079   (eval $ac_compile) 2>&5
10080   ac_status=$?
10081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10082   (exit $ac_status); } &&
10083          { ac_try='test -s conftest.$ac_objext'
10084   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10085   (eval $ac_try) 2>&5
10086   ac_status=$?
10087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10088   (exit $ac_status); }; }; then
10089   ac_header_compiler=yes
10090 else
10091   echo "$as_me: failed program was:" >&5
10092 sed 's/^/| /' conftest.$ac_ext >&5
10093
10094 ac_header_compiler=no
10095 fi
10096 rm -f conftest.$ac_objext conftest.$ac_ext
10097 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10098 echo "${ECHO_T}$ac_header_compiler" >&6
10099
10100 # Is the header present?
10101 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10102 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10103 cat >conftest.$ac_ext <<_ACEOF
10104 #line $LINENO "configure"
10105 /* confdefs.h.  */
10106 _ACEOF
10107 cat confdefs.h >>conftest.$ac_ext
10108 cat >>conftest.$ac_ext <<_ACEOF
10109 /* end confdefs.h.  */
10110 #include <$ac_header>
10111 _ACEOF
10112 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10113   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10114   ac_status=$?
10115   grep -v '^ *+' conftest.er1 >conftest.err
10116   rm -f conftest.er1
10117   cat conftest.err >&5
10118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10119   (exit $ac_status); } >/dev/null; then
10120   if test -s conftest.err; then
10121     ac_cpp_err=$ac_c_preproc_warn_flag
10122   else
10123     ac_cpp_err=
10124   fi
10125 else
10126   ac_cpp_err=yes
10127 fi
10128 if test -z "$ac_cpp_err"; then
10129   ac_header_preproc=yes
10130 else
10131   echo "$as_me: failed program was:" >&5
10132 sed 's/^/| /' conftest.$ac_ext >&5
10133
10134   ac_header_preproc=no
10135 fi
10136 rm -f conftest.err conftest.$ac_ext
10137 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10138 echo "${ECHO_T}$ac_header_preproc" >&6
10139
10140 # So?  What about this header?
10141 case $ac_header_compiler:$ac_header_preproc in
10142   yes:no )
10143     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10144 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10145     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10146 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10147     (
10148       cat <<\_ASBOX
10149 ## ------------------------------------ ##
10150 ## Report this to bug-autoconf@gnu.org. ##
10151 ## ------------------------------------ ##
10152 _ASBOX
10153     ) |
10154       sed "s/^/$as_me: WARNING:     /" >&2
10155     ;;
10156   no:yes )
10157     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10158 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10159     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10160 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10161     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10162 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10163     (
10164       cat <<\_ASBOX
10165 ## ------------------------------------ ##
10166 ## Report this to bug-autoconf@gnu.org. ##
10167 ## ------------------------------------ ##
10168 _ASBOX
10169     ) |
10170       sed "s/^/$as_me: WARNING:     /" >&2
10171     ;;
10172 esac
10173 echo "$as_me:$LINENO: checking for $ac_header" >&5
10174 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10175 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10176   echo $ECHO_N "(cached) $ECHO_C" >&6
10177 else
10178   eval "$as_ac_Header=$ac_header_preproc"
10179 fi
10180 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10181 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10182
10183 fi
10184 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10185   cat >>confdefs.h <<_ACEOF
10186 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10187 _ACEOF
10188
10189 fi
10190
10191 done
10192
10193
10194 echo "$as_me:$LINENO: checking for int8_t" >&5
10195 echo $ECHO_N "checking for int8_t... $ECHO_C" >&6
10196 if test "${ac_cv_type_int8_t+set}" = set; then
10197   echo $ECHO_N "(cached) $ECHO_C" >&6
10198 else
10199   cat >conftest.$ac_ext <<_ACEOF
10200 #line $LINENO "configure"
10201 /* confdefs.h.  */
10202 _ACEOF
10203 cat confdefs.h >>conftest.$ac_ext
10204 cat >>conftest.$ac_ext <<_ACEOF
10205 /* end confdefs.h.  */
10206 $ac_includes_default
10207 int
10208 main ()
10209 {
10210 if ((int8_t *) 0)
10211   return 0;
10212 if (sizeof (int8_t))
10213   return 0;
10214   ;
10215   return 0;
10216 }
10217 _ACEOF
10218 rm -f conftest.$ac_objext
10219 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10220   (eval $ac_compile) 2>&5
10221   ac_status=$?
10222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10223   (exit $ac_status); } &&
10224          { ac_try='test -s conftest.$ac_objext'
10225   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10226   (eval $ac_try) 2>&5
10227   ac_status=$?
10228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10229   (exit $ac_status); }; }; then
10230   ac_cv_type_int8_t=yes
10231 else
10232   echo "$as_me: failed program was:" >&5
10233 sed 's/^/| /' conftest.$ac_ext >&5
10234
10235 ac_cv_type_int8_t=no
10236 fi
10237 rm -f conftest.$ac_objext conftest.$ac_ext
10238 fi
10239 echo "$as_me:$LINENO: result: $ac_cv_type_int8_t" >&5
10240 echo "${ECHO_T}$ac_cv_type_int8_t" >&6
10241 if test $ac_cv_type_int8_t = yes; then
10242   :
10243 else
10244
10245 cat >>confdefs.h <<\_ACEOF
10246 #define int8_t signed char
10247 _ACEOF
10248
10249 fi
10250
10251 echo "$as_me:$LINENO: checking for u_int8_t" >&5
10252 echo $ECHO_N "checking for u_int8_t... $ECHO_C" >&6
10253 if test "${ac_cv_type_u_int8_t+set}" = set; then
10254   echo $ECHO_N "(cached) $ECHO_C" >&6
10255 else
10256   cat >conftest.$ac_ext <<_ACEOF
10257 #line $LINENO "configure"
10258 /* confdefs.h.  */
10259 _ACEOF
10260 cat confdefs.h >>conftest.$ac_ext
10261 cat >>conftest.$ac_ext <<_ACEOF
10262 /* end confdefs.h.  */
10263 $ac_includes_default
10264 #ifdef HAVE_SYS_BITYPES_H
10265 #include <sys/bitypes.h>
10266 #endif
10267
10268 int
10269 main ()
10270 {
10271 if ((u_int8_t *) 0)
10272   return 0;
10273 if (sizeof (u_int8_t))
10274   return 0;
10275   ;
10276   return 0;
10277 }
10278 _ACEOF
10279 rm -f conftest.$ac_objext
10280 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10281   (eval $ac_compile) 2>&5
10282   ac_status=$?
10283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10284   (exit $ac_status); } &&
10285          { ac_try='test -s conftest.$ac_objext'
10286   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10287   (eval $ac_try) 2>&5
10288   ac_status=$?
10289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10290   (exit $ac_status); }; }; then
10291   ac_cv_type_u_int8_t=yes
10292 else
10293   echo "$as_me: failed program was:" >&5
10294 sed 's/^/| /' conftest.$ac_ext >&5
10295
10296 ac_cv_type_u_int8_t=no
10297 fi
10298 rm -f conftest.$ac_objext conftest.$ac_ext
10299 fi
10300 echo "$as_me:$LINENO: result: $ac_cv_type_u_int8_t" >&5
10301 echo "${ECHO_T}$ac_cv_type_u_int8_t" >&6
10302 if test $ac_cv_type_u_int8_t = yes; then
10303   :
10304 else
10305
10306 cat >>confdefs.h <<\_ACEOF
10307 #define u_int8_t unsigned char
10308 _ACEOF
10309
10310 fi
10311
10312 echo "$as_me:$LINENO: checking for int16_t" >&5
10313 echo $ECHO_N "checking for int16_t... $ECHO_C" >&6
10314 if test "${ac_cv_type_int16_t+set}" = set; then
10315   echo $ECHO_N "(cached) $ECHO_C" >&6
10316 else
10317   cat >conftest.$ac_ext <<_ACEOF
10318 #line $LINENO "configure"
10319 /* confdefs.h.  */
10320 _ACEOF
10321 cat confdefs.h >>conftest.$ac_ext
10322 cat >>conftest.$ac_ext <<_ACEOF
10323 /* end confdefs.h.  */
10324 $ac_includes_default
10325 int
10326 main ()
10327 {
10328 if ((int16_t *) 0)
10329   return 0;
10330 if (sizeof (int16_t))
10331   return 0;
10332   ;
10333   return 0;
10334 }
10335 _ACEOF
10336 rm -f conftest.$ac_objext
10337 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10338   (eval $ac_compile) 2>&5
10339   ac_status=$?
10340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10341   (exit $ac_status); } &&
10342          { ac_try='test -s conftest.$ac_objext'
10343   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10344   (eval $ac_try) 2>&5
10345   ac_status=$?
10346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10347   (exit $ac_status); }; }; then
10348   ac_cv_type_int16_t=yes
10349 else
10350   echo "$as_me: failed program was:" >&5
10351 sed 's/^/| /' conftest.$ac_ext >&5
10352
10353 ac_cv_type_int16_t=no
10354 fi
10355 rm -f conftest.$ac_objext conftest.$ac_ext
10356 fi
10357 echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
10358 echo "${ECHO_T}$ac_cv_type_int16_t" >&6
10359 if test $ac_cv_type_int16_t = yes; then
10360   :
10361 else
10362
10363 cat >>confdefs.h <<\_ACEOF
10364 #define int16_t short
10365 _ACEOF
10366
10367 fi
10368
10369 echo "$as_me:$LINENO: checking for u_int16_t" >&5
10370 echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6
10371 if test "${ac_cv_type_u_int16_t+set}" = set; then
10372   echo $ECHO_N "(cached) $ECHO_C" >&6
10373 else
10374   cat >conftest.$ac_ext <<_ACEOF
10375 #line $LINENO "configure"
10376 /* confdefs.h.  */
10377 _ACEOF
10378 cat confdefs.h >>conftest.$ac_ext
10379 cat >>conftest.$ac_ext <<_ACEOF
10380 /* end confdefs.h.  */
10381 $ac_includes_default
10382 #ifdef HAVE_SYS_BITYPES_H
10383 #include <sys/bitypes.h>
10384 #endif
10385
10386 int
10387 main ()
10388 {
10389 if ((u_int16_t *) 0)
10390   return 0;
10391 if (sizeof (u_int16_t))
10392   return 0;
10393   ;
10394   return 0;
10395 }
10396 _ACEOF
10397 rm -f conftest.$ac_objext
10398 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10399   (eval $ac_compile) 2>&5
10400   ac_status=$?
10401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10402   (exit $ac_status); } &&
10403          { ac_try='test -s conftest.$ac_objext'
10404   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10405   (eval $ac_try) 2>&5
10406   ac_status=$?
10407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10408   (exit $ac_status); }; }; then
10409   ac_cv_type_u_int16_t=yes
10410 else
10411   echo "$as_me: failed program was:" >&5
10412 sed 's/^/| /' conftest.$ac_ext >&5
10413
10414 ac_cv_type_u_int16_t=no
10415 fi
10416 rm -f conftest.$ac_objext conftest.$ac_ext
10417 fi
10418 echo "$as_me:$LINENO: result: $ac_cv_type_u_int16_t" >&5
10419 echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6
10420 if test $ac_cv_type_u_int16_t = yes; then
10421   :
10422 else
10423
10424 cat >>confdefs.h <<\_ACEOF
10425 #define u_int16_t unsigned short
10426 _ACEOF
10427
10428 fi
10429
10430 echo "$as_me:$LINENO: checking for int32_t" >&5
10431 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6
10432 if test "${ac_cv_type_int32_t+set}" = set; then
10433   echo $ECHO_N "(cached) $ECHO_C" >&6
10434 else
10435   cat >conftest.$ac_ext <<_ACEOF
10436 #line $LINENO "configure"
10437 /* confdefs.h.  */
10438 _ACEOF
10439 cat confdefs.h >>conftest.$ac_ext
10440 cat >>conftest.$ac_ext <<_ACEOF
10441 /* end confdefs.h.  */
10442 $ac_includes_default
10443 int
10444 main ()
10445 {
10446 if ((int32_t *) 0)
10447   return 0;
10448 if (sizeof (int32_t))
10449   return 0;
10450   ;
10451   return 0;
10452 }
10453 _ACEOF
10454 rm -f conftest.$ac_objext
10455 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10456   (eval $ac_compile) 2>&5
10457   ac_status=$?
10458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10459   (exit $ac_status); } &&
10460          { ac_try='test -s conftest.$ac_objext'
10461   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10462   (eval $ac_try) 2>&5
10463   ac_status=$?
10464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10465   (exit $ac_status); }; }; then
10466   ac_cv_type_int32_t=yes
10467 else
10468   echo "$as_me: failed program was:" >&5
10469 sed 's/^/| /' conftest.$ac_ext >&5
10470
10471 ac_cv_type_int32_t=no
10472 fi
10473 rm -f conftest.$ac_objext conftest.$ac_ext
10474 fi
10475 echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
10476 echo "${ECHO_T}$ac_cv_type_int32_t" >&6
10477 if test $ac_cv_type_int32_t = yes; then
10478   :
10479 else
10480
10481 cat >>confdefs.h <<\_ACEOF
10482 #define int32_t int
10483 _ACEOF
10484
10485 fi
10486
10487 echo "$as_me:$LINENO: checking for u_int32_t" >&5
10488 echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
10489 if test "${ac_cv_type_u_int32_t+set}" = set; then
10490   echo $ECHO_N "(cached) $ECHO_C" >&6
10491 else
10492   cat >conftest.$ac_ext <<_ACEOF
10493 #line $LINENO "configure"
10494 /* confdefs.h.  */
10495 _ACEOF
10496 cat confdefs.h >>conftest.$ac_ext
10497 cat >>conftest.$ac_ext <<_ACEOF
10498 /* end confdefs.h.  */
10499 $ac_includes_default
10500 #ifdef HAVE_SYS_BITYPES_H
10501 #include <sys/bitypes.h>
10502 #endif
10503
10504 int
10505 main ()
10506 {
10507 if ((u_int32_t *) 0)
10508   return 0;
10509 if (sizeof (u_int32_t))
10510   return 0;
10511   ;
10512   return 0;
10513 }
10514 _ACEOF
10515 rm -f conftest.$ac_objext
10516 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10517   (eval $ac_compile) 2>&5
10518   ac_status=$?
10519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10520   (exit $ac_status); } &&
10521          { ac_try='test -s conftest.$ac_objext'
10522   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10523   (eval $ac_try) 2>&5
10524   ac_status=$?
10525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10526   (exit $ac_status); }; }; then
10527   ac_cv_type_u_int32_t=yes
10528 else
10529   echo "$as_me: failed program was:" >&5
10530 sed 's/^/| /' conftest.$ac_ext >&5
10531
10532 ac_cv_type_u_int32_t=no
10533 fi
10534 rm -f conftest.$ac_objext conftest.$ac_ext
10535 fi
10536 echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
10537 echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
10538 if test $ac_cv_type_u_int32_t = yes; then
10539   :
10540 else
10541
10542 cat >>confdefs.h <<\_ACEOF
10543 #define u_int32_t unsigned int
10544 _ACEOF
10545
10546 fi
10547
10548 echo "$as_me:$LINENO: checking for int64_t" >&5
10549 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
10550 if test "${ac_cv_type_int64_t+set}" = set; then
10551   echo $ECHO_N "(cached) $ECHO_C" >&6
10552 else
10553   cat >conftest.$ac_ext <<_ACEOF
10554 #line $LINENO "configure"
10555 /* confdefs.h.  */
10556 _ACEOF
10557 cat confdefs.h >>conftest.$ac_ext
10558 cat >>conftest.$ac_ext <<_ACEOF
10559 /* end confdefs.h.  */
10560 $ac_includes_default
10561 int
10562 main ()
10563 {
10564 if ((int64_t *) 0)
10565   return 0;
10566 if (sizeof (int64_t))
10567   return 0;
10568   ;
10569   return 0;
10570 }
10571 _ACEOF
10572 rm -f conftest.$ac_objext
10573 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10574   (eval $ac_compile) 2>&5
10575   ac_status=$?
10576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10577   (exit $ac_status); } &&
10578          { ac_try='test -s conftest.$ac_objext'
10579   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10580   (eval $ac_try) 2>&5
10581   ac_status=$?
10582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10583   (exit $ac_status); }; }; then
10584   ac_cv_type_int64_t=yes
10585 else
10586   echo "$as_me: failed program was:" >&5
10587 sed 's/^/| /' conftest.$ac_ext >&5
10588
10589 ac_cv_type_int64_t=no
10590 fi
10591 rm -f conftest.$ac_objext conftest.$ac_ext
10592 fi
10593 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
10594 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
10595 if test $ac_cv_type_int64_t = yes; then
10596   :
10597 else
10598
10599 cat >>confdefs.h <<\_ACEOF
10600 #define int64_t long long
10601 _ACEOF
10602
10603 fi
10604
10605 echo "$as_me:$LINENO: checking for u_int64_t" >&5
10606 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
10607 if test "${ac_cv_type_u_int64_t+set}" = set; then
10608   echo $ECHO_N "(cached) $ECHO_C" >&6
10609 else
10610   cat >conftest.$ac_ext <<_ACEOF
10611 #line $LINENO "configure"
10612 /* confdefs.h.  */
10613 _ACEOF
10614 cat confdefs.h >>conftest.$ac_ext
10615 cat >>conftest.$ac_ext <<_ACEOF
10616 /* end confdefs.h.  */
10617 $ac_includes_default
10618 #ifdef HAVE_SYS_BITYPES_H
10619 #include <sys/bitypes.h>
10620 #endif
10621
10622 int
10623 main ()
10624 {
10625 if ((u_int64_t *) 0)
10626   return 0;
10627 if (sizeof (u_int64_t))
10628   return 0;
10629   ;
10630   return 0;
10631 }
10632 _ACEOF
10633 rm -f conftest.$ac_objext
10634 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10635   (eval $ac_compile) 2>&5
10636   ac_status=$?
10637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10638   (exit $ac_status); } &&
10639          { ac_try='test -s conftest.$ac_objext'
10640   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10641   (eval $ac_try) 2>&5
10642   ac_status=$?
10643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10644   (exit $ac_status); }; }; then
10645   ac_cv_type_u_int64_t=yes
10646 else
10647   echo "$as_me: failed program was:" >&5
10648 sed 's/^/| /' conftest.$ac_ext >&5
10649
10650 ac_cv_type_u_int64_t=no
10651 fi
10652 rm -f conftest.$ac_objext conftest.$ac_ext
10653 fi
10654 echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
10655 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
10656 if test $ac_cv_type_u_int64_t = yes; then
10657   :
10658 else
10659
10660 cat >>confdefs.h <<\_ACEOF
10661 #define u_int64_t unsigned long long
10662 _ACEOF
10663
10664 fi
10665
10666
10667 #
10668 # We can't just check for <inttypes.h> - some systems have one that
10669 # doesn't define all the PRI[doxu]64 macros.
10670 #
10671
10672 for ac_header in inttypes.h
10673 do
10674 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10675 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10676   echo "$as_me:$LINENO: checking for $ac_header" >&5
10677 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10678 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10679   echo $ECHO_N "(cached) $ECHO_C" >&6
10680 fi
10681 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10682 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10683 else
10684   # Is the header compilable?
10685 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10686 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10687 cat >conftest.$ac_ext <<_ACEOF
10688 #line $LINENO "configure"
10689 /* confdefs.h.  */
10690 _ACEOF
10691 cat confdefs.h >>conftest.$ac_ext
10692 cat >>conftest.$ac_ext <<_ACEOF
10693 /* end confdefs.h.  */
10694 $ac_includes_default
10695 #include <$ac_header>
10696 _ACEOF
10697 rm -f conftest.$ac_objext
10698 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10699   (eval $ac_compile) 2>&5
10700   ac_status=$?
10701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10702   (exit $ac_status); } &&
10703          { ac_try='test -s conftest.$ac_objext'
10704   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10705   (eval $ac_try) 2>&5
10706   ac_status=$?
10707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10708   (exit $ac_status); }; }; then
10709   ac_header_compiler=yes
10710 else
10711   echo "$as_me: failed program was:" >&5
10712 sed 's/^/| /' conftest.$ac_ext >&5
10713
10714 ac_header_compiler=no
10715 fi
10716 rm -f conftest.$ac_objext conftest.$ac_ext
10717 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10718 echo "${ECHO_T}$ac_header_compiler" >&6
10719
10720 # Is the header present?
10721 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10722 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10723 cat >conftest.$ac_ext <<_ACEOF
10724 #line $LINENO "configure"
10725 /* confdefs.h.  */
10726 _ACEOF
10727 cat confdefs.h >>conftest.$ac_ext
10728 cat >>conftest.$ac_ext <<_ACEOF
10729 /* end confdefs.h.  */
10730 #include <$ac_header>
10731 _ACEOF
10732 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10733   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10734   ac_status=$?
10735   grep -v '^ *+' conftest.er1 >conftest.err
10736   rm -f conftest.er1
10737   cat conftest.err >&5
10738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10739   (exit $ac_status); } >/dev/null; then
10740   if test -s conftest.err; then
10741     ac_cpp_err=$ac_c_preproc_warn_flag
10742   else
10743     ac_cpp_err=
10744   fi
10745 else
10746   ac_cpp_err=yes
10747 fi
10748 if test -z "$ac_cpp_err"; then
10749   ac_header_preproc=yes
10750 else
10751   echo "$as_me: failed program was:" >&5
10752 sed 's/^/| /' conftest.$ac_ext >&5
10753
10754   ac_header_preproc=no
10755 fi
10756 rm -f conftest.err conftest.$ac_ext
10757 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10758 echo "${ECHO_T}$ac_header_preproc" >&6
10759
10760 # So?  What about this header?
10761 case $ac_header_compiler:$ac_header_preproc in
10762   yes:no )
10763     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10764 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10765     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10766 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10767     (
10768       cat <<\_ASBOX
10769 ## ------------------------------------ ##
10770 ## Report this to bug-autoconf@gnu.org. ##
10771 ## ------------------------------------ ##
10772 _ASBOX
10773     ) |
10774       sed "s/^/$as_me: WARNING:     /" >&2
10775     ;;
10776   no:yes )
10777     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10778 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10779     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10780 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10781     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10782 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10783     (
10784       cat <<\_ASBOX
10785 ## ------------------------------------ ##
10786 ## Report this to bug-autoconf@gnu.org. ##
10787 ## ------------------------------------ ##
10788 _ASBOX
10789     ) |
10790       sed "s/^/$as_me: WARNING:     /" >&2
10791     ;;
10792 esac
10793 echo "$as_me:$LINENO: checking for $ac_header" >&5
10794 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10795 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10796   echo $ECHO_N "(cached) $ECHO_C" >&6
10797 else
10798   eval "$as_ac_Header=$ac_header_preproc"
10799 fi
10800 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10801 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10802
10803 fi
10804 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10805   cat >>confdefs.h <<_ACEOF
10806 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10807 _ACEOF
10808
10809     #
10810     # OK, we have inttypes.h, but does it define those macros?
10811     #
10812     echo "$as_me:$LINENO: checking whether inttypes.h defines the PRI[doxu]64 macros" >&5
10813 echo $ECHO_N "checking whether inttypes.h defines the PRI[doxu]64 macros... $ECHO_C" >&6
10814     cat >conftest.$ac_ext <<_ACEOF
10815
10816         #line $LINENO "configure"
10817 /* confdefs.h.  */
10818 _ACEOF
10819 cat confdefs.h >>conftest.$ac_ext
10820 cat >>conftest.$ac_ext <<_ACEOF
10821 /* end confdefs.h.  */
10822
10823             #include <inttypes.h>
10824             #include <stdio.h>
10825             #include <sys/types.h>
10826             #ifdef HAVE_SYS_BITYPES_H
10827             #include <sys/bitypes.h>
10828             #endif
10829
10830             main()
10831             {
10832               printf("%" PRId64 "\n", (u_int64_t)1);
10833               printf("%" PRIo64 "\n", (u_int64_t)1);
10834               printf("%" PRIx64 "\n", (u_int64_t)1);
10835               printf("%" PRIu64 "\n", (u_int64_t)1);
10836             }
10837
10838
10839 _ACEOF
10840 rm -f conftest.$ac_objext
10841 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10842   (eval $ac_compile) 2>&5
10843   ac_status=$?
10844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10845   (exit $ac_status); } &&
10846          { ac_try='test -s conftest.$ac_objext'
10847   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10848   (eval $ac_try) 2>&5
10849   ac_status=$?
10850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10851   (exit $ac_status); }; }; then
10852
10853         echo "$as_me:$LINENO: result: yes" >&5
10854 echo "${ECHO_T}yes" >&6
10855         ac_lbl_inttypes_h_defines_formats=yes
10856
10857 else
10858   echo "$as_me: failed program was:" >&5
10859 sed 's/^/| /' conftest.$ac_ext >&5
10860
10861
10862         echo "$as_me:$LINENO: result: no" >&5
10863 echo "${ECHO_T}no" >&6
10864         ac_lbl_inttypes_h_defines_formats=no
10865
10866 fi
10867 rm -f conftest.$ac_objext conftest.$ac_ext
10868
10869 else
10870
10871     #
10872     # We don't have inttypes.h, so it obviously can't define those
10873     # macros.
10874     #
10875     ac_lbl_inttypes_h_defines_formats=no
10876
10877 fi
10878
10879 done
10880
10881 if test "$ac_lbl_inttypes_h_defines_formats" = no; then
10882
10883     echo "$as_me:$LINENO: checking whether %lx can be used to format 64-bit integers" >&5
10884 echo $ECHO_N "checking whether %lx can be used to format 64-bit integers... $ECHO_C" >&6
10885     if test "$cross_compiling" = yes; then
10886   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10887 See \`config.log' for more details." >&5
10888 echo "$as_me: error: cannot run test program while cross compiling
10889 See \`config.log' for more details." >&2;}
10890    { (exit 1); exit 1; }; }
10891 else
10892   cat >conftest.$ac_ext <<_ACEOF
10893
10894         #line $LINENO "configure"
10895 /* confdefs.h.  */
10896 _ACEOF
10897 cat confdefs.h >>conftest.$ac_ext
10898 cat >>conftest.$ac_ext <<_ACEOF
10899 /* end confdefs.h.  */
10900
10901 #           ifdef HAVE_INTTYPES_H
10902             #include <inttypes.h>
10903 #           endif
10904 #           ifdef HAVE_SYS_BITYPES_H
10905             #include <sys/bitypes.h>
10906 #           endif
10907             #include <stdio.h>
10908             #include <sys/types.h>
10909
10910             main()
10911             {
10912               u_int64_t t = 1;
10913               char strbuf[16+1];
10914               sprintf(strbuf, "%016lx", t << 32);
10915               if (strcmp(strbuf, "0000000100000000") == 0)
10916                 exit(0);
10917               else
10918                 exit(1);
10919             }
10920
10921
10922 _ACEOF
10923 rm -f conftest$ac_exeext
10924 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10925   (eval $ac_link) 2>&5
10926   ac_status=$?
10927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10928   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10929   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10930   (eval $ac_try) 2>&5
10931   ac_status=$?
10932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10933   (exit $ac_status); }; }; then
10934
10935         cat >>confdefs.h <<\_ACEOF
10936 #define PRId64 "ld"
10937 _ACEOF
10938
10939         cat >>confdefs.h <<\_ACEOF
10940 #define PRIo64 "lo"
10941 _ACEOF
10942
10943         cat >>confdefs.h <<\_ACEOF
10944 #define PRIx64 "lx"
10945 _ACEOF
10946
10947         cat >>confdefs.h <<\_ACEOF
10948 #define PRIu64 "lu"
10949 _ACEOF
10950
10951         echo "$as_me:$LINENO: result: yes" >&5
10952 echo "${ECHO_T}yes" >&6
10953
10954 else
10955   echo "$as_me: program exited with status $ac_status" >&5
10956 echo "$as_me: failed program was:" >&5
10957 sed 's/^/| /' conftest.$ac_ext >&5
10958
10959 ( exit $ac_status )
10960
10961         echo "$as_me:$LINENO: result: no" >&5
10962 echo "${ECHO_T}no" >&6
10963
10964
10965     echo "$as_me:$LINENO: checking whether %llx can be used to format 64-bit integers" >&5
10966 echo $ECHO_N "checking whether %llx can be used to format 64-bit integers... $ECHO_C" >&6
10967     if test "$cross_compiling" = yes; then
10968   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10969 See \`config.log' for more details." >&5
10970 echo "$as_me: error: cannot run test program while cross compiling
10971 See \`config.log' for more details." >&2;}
10972    { (exit 1); exit 1; }; }
10973 else
10974   cat >conftest.$ac_ext <<_ACEOF
10975
10976         #line $LINENO "configure"
10977 /* confdefs.h.  */
10978 _ACEOF
10979 cat confdefs.h >>conftest.$ac_ext
10980 cat >>conftest.$ac_ext <<_ACEOF
10981 /* end confdefs.h.  */
10982
10983 #           ifdef HAVE_INTTYPES_H
10984             #include <inttypes.h>
10985 #           endif
10986 #           ifdef HAVE_SYS_BITYPES_H
10987             #include <sys/bitypes.h>
10988 #           endif
10989             #include <stdio.h>
10990             #include <sys/types.h>
10991
10992             main()
10993             {
10994               u_int64_t t = 1;
10995               char strbuf[16+1];
10996               sprintf(strbuf, "%016llx", t << 32);
10997               if (strcmp(strbuf, "0000000100000000") == 0)
10998                 exit(0);
10999               else
11000                 exit(1);
11001             }
11002
11003
11004 _ACEOF
11005 rm -f conftest$ac_exeext
11006 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11007   (eval $ac_link) 2>&5
11008   ac_status=$?
11009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11010   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11011   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11012   (eval $ac_try) 2>&5
11013   ac_status=$?
11014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11015   (exit $ac_status); }; }; then
11016
11017         cat >>confdefs.h <<\_ACEOF
11018 #define PRId64 "lld"
11019 _ACEOF
11020
11021         cat >>confdefs.h <<\_ACEOF
11022 #define PRIo64 "llo"
11023 _ACEOF
11024
11025         cat >>confdefs.h <<\_ACEOF
11026 #define PRIx64 "llx"
11027 _ACEOF
11028
11029         cat >>confdefs.h <<\_ACEOF
11030 #define PRIu64 "llu"
11031 _ACEOF
11032
11033         echo "$as_me:$LINENO: result: yes" >&5
11034 echo "${ECHO_T}yes" >&6
11035
11036 else
11037   echo "$as_me: program exited with status $ac_status" >&5
11038 echo "$as_me: failed program was:" >&5
11039 sed 's/^/| /' conftest.$ac_ext >&5
11040
11041 ( exit $ac_status )
11042
11043         echo "$as_me:$LINENO: result: no" >&5
11044 echo "${ECHO_T}no" >&6
11045
11046
11047     echo "$as_me:$LINENO: checking whether %Lx can be used to format 64-bit integers" >&5
11048 echo $ECHO_N "checking whether %Lx can be used to format 64-bit integers... $ECHO_C" >&6
11049     if test "$cross_compiling" = yes; then
11050   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
11051 See \`config.log' for more details." >&5
11052 echo "$as_me: error: cannot run test program while cross compiling
11053 See \`config.log' for more details." >&2;}
11054    { (exit 1); exit 1; }; }
11055 else
11056   cat >conftest.$ac_ext <<_ACEOF
11057
11058         #line $LINENO "configure"
11059 /* confdefs.h.  */
11060 _ACEOF
11061 cat confdefs.h >>conftest.$ac_ext
11062 cat >>conftest.$ac_ext <<_ACEOF
11063 /* end confdefs.h.  */
11064
11065 #           ifdef HAVE_INTTYPES_H
11066             #include <inttypes.h>
11067 #           endif
11068 #           ifdef HAVE_SYS_BITYPES_H
11069             #include <sys/bitypes.h>
11070 #           endif
11071             #include <stdio.h>
11072             #include <sys/types.h>
11073
11074             main()
11075             {
11076               u_int64_t t = 1;
11077               char strbuf[16+1];
11078               sprintf(strbuf, "%016Lx", t << 32);
11079               if (strcmp(strbuf, "0000000100000000") == 0)
11080                 exit(0);
11081               else
11082                 exit(1);
11083             }
11084
11085
11086 _ACEOF
11087 rm -f conftest$ac_exeext
11088 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11089   (eval $ac_link) 2>&5
11090   ac_status=$?
11091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11092   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11093   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11094   (eval $ac_try) 2>&5
11095   ac_status=$?
11096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11097   (exit $ac_status); }; }; then
11098
11099         cat >>confdefs.h <<\_ACEOF
11100 #define PRId64 "Ld"
11101 _ACEOF
11102
11103         cat >>confdefs.h <<\_ACEOF
11104 #define PRIo64 "Lo"
11105 _ACEOF
11106
11107         cat >>confdefs.h <<\_ACEOF
11108 #define PRIx64 "Lx"
11109 _ACEOF
11110
11111         cat >>confdefs.h <<\_ACEOF
11112 #define PRIu64 "Lu"
11113 _ACEOF
11114
11115         echo "$as_me:$LINENO: result: yes" >&5
11116 echo "${ECHO_T}yes" >&6
11117
11118 else
11119   echo "$as_me: program exited with status $ac_status" >&5
11120 echo "$as_me: failed program was:" >&5
11121 sed 's/^/| /' conftest.$ac_ext >&5
11122
11123 ( exit $ac_status )
11124
11125         echo "$as_me:$LINENO: result: no" >&5
11126 echo "${ECHO_T}no" >&6
11127
11128
11129     echo "$as_me:$LINENO: checking whether %qx can be used to format 64-bit integers" >&5
11130 echo $ECHO_N "checking whether %qx can be used to format 64-bit integers... $ECHO_C" >&6
11131     if test "$cross_compiling" = yes; then
11132   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
11133 See \`config.log' for more details." >&5
11134 echo "$as_me: error: cannot run test program while cross compiling
11135 See \`config.log' for more details." >&2;}
11136    { (exit 1); exit 1; }; }
11137 else
11138   cat >conftest.$ac_ext <<_ACEOF
11139
11140         #line $LINENO "configure"
11141 /* confdefs.h.  */
11142 _ACEOF
11143 cat confdefs.h >>conftest.$ac_ext
11144 cat >>conftest.$ac_ext <<_ACEOF
11145 /* end confdefs.h.  */
11146
11147 #           ifdef HAVE_INTTYPES_H
11148             #include <inttypes.h>
11149 #           endif
11150 #           ifdef HAVE_SYS_BITYPES_H
11151             #include <sys/bitypes.h>
11152 #           endif
11153             #include <stdio.h>
11154             #include <sys/types.h>
11155
11156             main()
11157             {
11158               u_int64_t t = 1;
11159               char strbuf[16+1];
11160               sprintf(strbuf, "%016qx", t << 32);
11161               if (strcmp(strbuf, "0000000100000000") == 0)
11162                 exit(0);
11163               else
11164                 exit(1);
11165             }
11166
11167
11168 _ACEOF
11169 rm -f conftest$ac_exeext
11170 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11171   (eval $ac_link) 2>&5
11172   ac_status=$?
11173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11174   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11175   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11176   (eval $ac_try) 2>&5
11177   ac_status=$?
11178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11179   (exit $ac_status); }; }; then
11180
11181         cat >>confdefs.h <<\_ACEOF
11182 #define PRId64 "qd"
11183 _ACEOF
11184
11185         cat >>confdefs.h <<\_ACEOF
11186 #define PRIo64 "qo"
11187 _ACEOF
11188
11189         cat >>confdefs.h <<\_ACEOF
11190 #define PRIx64 "qx"
11191 _ACEOF
11192
11193         cat >>confdefs.h <<\_ACEOF
11194 #define PRIu64 "qu"
11195 _ACEOF
11196
11197         echo "$as_me:$LINENO: result: yes" >&5
11198 echo "${ECHO_T}yes" >&6
11199
11200 else
11201   echo "$as_me: program exited with status $ac_status" >&5
11202 echo "$as_me: failed program was:" >&5
11203 sed 's/^/| /' conftest.$ac_ext >&5
11204
11205 ( exit $ac_status )
11206
11207         echo "$as_me:$LINENO: result: no" >&5
11208 echo "${ECHO_T}no" >&6
11209
11210                   { { echo "$as_me:$LINENO: error: neither %llx nor %Lx nor %qx worked on a 64-bit integer" >&5
11211 echo "$as_me: error: neither %llx nor %Lx nor %qx worked on a 64-bit integer" >&2;}
11212    { (exit 1); exit 1; }; }
11213
11214
11215 fi
11216 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11217 fi
11218
11219
11220
11221 fi
11222 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11223 fi
11224
11225
11226
11227 fi
11228 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11229 fi
11230
11231
11232
11233 fi
11234 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11235 fi
11236
11237 fi
11238
11239 rm -f os-proto.h
11240     if test "${LBL_CFLAGS+set}" = set; then
11241             V_CCOPT="$V_CCOPT ${LBL_CFLAGS}"
11242     fi
11243     if test -f .devel ; then
11244             if test "$GCC" = yes ; then
11245                     if test "${LBL_CFLAGS+set}" != set; then
11246                             if test "$ac_cv_prog_cc_g" = yes ; then
11247                                     V_CCOPT="-g $V_CCOPT"
11248                             fi
11249                             V_CCOPT="$V_CCOPT -Wall"
11250                             if test $ac_cv_lbl_gcc_vers -gt 1 ; then
11251                                     V_CCOPT="$V_CCOPT -Wmissing-prototypes -Wstrict-prototypes -Wwrite-strings -W"
11252                             fi
11253                     fi
11254             else
11255                     case "$host_os" in
11256
11257                     irix6*)
11258                             V_CCOPT="$V_CCOPT -n32"
11259                             ;;
11260
11261                     *)
11262                             ;;
11263                     esac
11264             fi
11265             os=`echo $host_os | sed -e 's/\([0-9][0-9]*\)[^0-9].*$/\1/'`
11266             name="lbl/os-$os.h"
11267             if test -f $name ; then
11268                     ln -s $name os-proto.h
11269                     cat >>confdefs.h <<\_ACEOF
11270 #define HAVE_OS_PROTO_H 1
11271 _ACEOF
11272
11273             else
11274                     { echo "$as_me:$LINENO: WARNING: can't find $name" >&5
11275 echo "$as_me: WARNING: can't find $name" >&2;}
11276             fi
11277     fi
11278
11279 echo "$as_me:$LINENO: checking if sockaddr struct has sa_len member" >&5
11280 echo $ECHO_N "checking if sockaddr struct has sa_len member... $ECHO_C" >&6
11281     if test "${ac_cv_lbl_sockaddr_has_sa_len+set}" = set; then
11282   echo $ECHO_N "(cached) $ECHO_C" >&6
11283 else
11284   cat >conftest.$ac_ext <<_ACEOF
11285 #line $LINENO "configure"
11286 /* confdefs.h.  */
11287 _ACEOF
11288 cat confdefs.h >>conftest.$ac_ext
11289 cat >>conftest.$ac_ext <<_ACEOF
11290 /* end confdefs.h.  */
11291
11292 #       include <sys/types.h>
11293 #       include <sys/socket.h>
11294 int
11295 main ()
11296 {
11297 u_int i = sizeof(((struct sockaddr *)0)->sa_len)
11298   ;
11299   return 0;
11300 }
11301 _ACEOF
11302 rm -f conftest.$ac_objext
11303 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11304   (eval $ac_compile) 2>&5
11305   ac_status=$?
11306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11307   (exit $ac_status); } &&
11308          { ac_try='test -s conftest.$ac_objext'
11309   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11310   (eval $ac_try) 2>&5
11311   ac_status=$?
11312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11313   (exit $ac_status); }; }; then
11314   ac_cv_lbl_sockaddr_has_sa_len=yes
11315 else
11316   echo "$as_me: failed program was:" >&5
11317 sed 's/^/| /' conftest.$ac_ext >&5
11318
11319 ac_cv_lbl_sockaddr_has_sa_len=no
11320 fi
11321 rm -f conftest.$ac_objext conftest.$ac_ext
11322 fi
11323
11324     echo "$as_me:$LINENO: result: $ac_cv_lbl_sockaddr_has_sa_len" >&5
11325 echo "${ECHO_T}$ac_cv_lbl_sockaddr_has_sa_len" >&6
11326     if test $ac_cv_lbl_sockaddr_has_sa_len = yes ; then
11327             cat >>confdefs.h <<\_ACEOF
11328 #define HAVE_SOCKADDR_SA_LEN 1
11329 _ACEOF
11330
11331     fi
11332
11333 echo "$as_me:$LINENO: checking if unaligned accesses fail" >&5
11334 echo $ECHO_N "checking if unaligned accesses fail... $ECHO_C" >&6
11335     if test "${ac_cv_lbl_unaligned_fail+set}" = set; then
11336   echo $ECHO_N "(cached) $ECHO_C" >&6
11337 else
11338   case "$host_cpu" in
11339
11340         #
11341         # These are CPU types where:
11342         #
11343         #       the CPU faults on an unaligned access, but at least some
11344         #       OSes that support that CPU catch the fault and simulate
11345         #       the unaligned access (e.g., Alpha/{Digital,Tru64} UNIX) -
11346         #       the simulation is slow, so we don't want to use it;
11347         #
11348         #       the CPU, I infer (from the old
11349         #
11350         # XXX: should also check that they don't do weird things (like on arm)
11351         #
11352         #       comment) doesn't fault on unaligned accesses, but doesn't
11353         #       do a normal unaligned fetch, either (e.g., presumably, ARM);
11354         #
11355         #       for whatever reason, the test program doesn't work
11356         #       (this has been claimed to be the case for several of those
11357         #       CPUs - I don't know what the problem is; the problem
11358         #       was reported as "the test program dumps core" for SuperH,
11359         #       but that's what the test program is *supposed* to do -
11360         #       it dumps core before it writes anything, so the test
11361         #       for an empty output file should find an empty output
11362         #       file and conclude that unaligned accesses don't work).
11363         #
11364         # This run-time test won't work if you're cross-compiling, so
11365         # in order to support cross-compiling for a particular CPU,
11366         # we have to wire in the list of CPU types anyway, as far as
11367         # I know, so perhaps we should just have a set of CPUs on
11368         # which we know it doesn't work, a set of CPUs on which we
11369         # know it does work, and have the script just fail on other
11370         # cpu types and update it when such a failure occurs.
11371         #
11372         alpha*|arm*|hp*|mips*|sh*|sparc*|ia64|nv1)
11373                 ac_cv_lbl_unaligned_fail=yes
11374                 ;;
11375
11376         *)
11377                 cat >conftest.c <<EOF
11378 #               include <sys/types.h>
11379 #               include <sys/wait.h>
11380 #               include <stdio.h>
11381                 unsigned char a[5] = { 1, 2, 3, 4, 5 };
11382                 main() {
11383                 unsigned int i;
11384                 pid_t pid;
11385                 int status;
11386                 /* avoid "core dumped" message */
11387                 pid = fork();
11388                 if (pid <  0)
11389                         exit(2);
11390                 if (pid > 0) {
11391                         /* parent */
11392                         pid = waitpid(pid, &status, 0);
11393                         if (pid < 0)
11394                                 exit(3);
11395                         exit(!WIFEXITED(status));
11396                 }
11397                 /* child */
11398                 i = *(unsigned int *)&a[1];
11399                 printf("%d\n", i);
11400                 exit(0);
11401                 }
11402 EOF
11403                 ${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS \
11404                     conftest.c $LIBS >/dev/null 2>&1
11405                 if test ! -x conftest ; then
11406                                                 ac_cv_lbl_unaligned_fail=yes
11407                 else
11408                         ./conftest >conftest.out
11409                         if test ! -s conftest.out ; then
11410                                 ac_cv_lbl_unaligned_fail=yes
11411                         else
11412                                 ac_cv_lbl_unaligned_fail=no
11413                         fi
11414                 fi
11415                 rm -f conftest* core core.conftest
11416                 ;;
11417         esac
11418 fi
11419
11420     echo "$as_me:$LINENO: result: $ac_cv_lbl_unaligned_fail" >&5
11421 echo "${ECHO_T}$ac_cv_lbl_unaligned_fail" >&6
11422     if test $ac_cv_lbl_unaligned_fail = yes ; then
11423             cat >>confdefs.h <<\_ACEOF
11424 #define LBL_ALIGN 1
11425 _ACEOF
11426
11427     fi
11428
11429
11430         echo "$as_me:$LINENO: checking for h_errno" >&5
11431 echo $ECHO_N "checking for h_errno... $ECHO_C" >&6
11432         if test "${ac_cv_var_h_errno+set}" = set; then
11433   echo $ECHO_N "(cached) $ECHO_C" >&6
11434 else
11435   cat >conftest.$ac_ext <<_ACEOF
11436 #line $LINENO "configure"
11437 /* confdefs.h.  */
11438 _ACEOF
11439 cat confdefs.h >>conftest.$ac_ext
11440 cat >>conftest.$ac_ext <<_ACEOF
11441 /* end confdefs.h.  */
11442
11443 #               include <sys/types.h>
11444 #               include <netdb.h>
11445 int
11446 main ()
11447 {
11448 int foo = h_errno;
11449   ;
11450   return 0;
11451 }
11452 _ACEOF
11453 rm -f conftest.$ac_objext
11454 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11455   (eval $ac_compile) 2>&5
11456   ac_status=$?
11457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11458   (exit $ac_status); } &&
11459          { ac_try='test -s conftest.$ac_objext'
11460   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11461   (eval $ac_try) 2>&5
11462   ac_status=$?
11463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11464   (exit $ac_status); }; }; then
11465   ac_cv_var_h_errno=yes
11466 else
11467   echo "$as_me: failed program was:" >&5
11468 sed 's/^/| /' conftest.$ac_ext >&5
11469
11470 ac_cv_var_h_errno=no
11471 fi
11472 rm -f conftest.$ac_objext conftest.$ac_ext
11473 fi
11474
11475         echo "$as_me:$LINENO: result: $ac_cv_var_h_errno" >&5
11476 echo "${ECHO_T}$ac_cv_var_h_errno" >&6
11477         if test "$ac_cv_var_h_errno" = "yes"; then
11478                 cat >>confdefs.h <<\_ACEOF
11479 #define HAVE_H_ERRNO 1
11480 _ACEOF
11481
11482         fi
11483
11484
11485
11486 # Check whether --with-crypto or --without-crypto was given.
11487 if test "${with_crypto+set}" = set; then
11488   withval="$with_crypto"
11489
11490 else
11491
11492 echo "$as_me:$LINENO: checking for SSLeay" >&5
11493 echo $ECHO_N "checking for SSLeay... $ECHO_C" >&6
11494 ac_cv_ssleay_path=no
11495 incdir=no
11496
11497 #
11498 # If Xprefix is set in the environment, use that value.
11499 # XXX - this should arguably be done by having --with-crypto take an
11500 # optional argument, and have that argument be used to set Xprefix
11501 # if present.
11502 #
11503 if test -z "$Xprefix"; then
11504         Xprefix=`eval echo $prefix`
11505 fi
11506
11507 for dir in $Xprefix /usr/${host_alias} /usr /usr/local /usr/local/ssl /usr/pkg; do
11508         #
11509         # XXX - is there a better way to check if a given library is
11510         # in a given directory than checking each of the possible
11511         # shared library suffixes?
11512         #
11513         # Are there any other suffixes we need to look for?  Do we have to
11514         # worry about ".so.{version}"?
11515         #
11516         # Or should we just look for "libcrypto.*"?
11517         #
11518         if test -d $dir/lib -a \( -f $dir/lib/libcrypto.a -o \
11519                                   -f $dir/lib/libcrypto.so -o \
11520                                   -f $dir/lib/libcrypto.sl -o \
11521                                   -f $dir/lib/libcrypto.dylib \); then
11522                 ac_cv_ssleay_path=$dir
11523         fi
11524         if test -d $dir/include/openssl -a -f $dir/include/openssl/des.h; then
11525                 incdir="-I$dir/include"
11526         fi
11527         if test "$ac_cv_ssleay_path" != "no" -a "$incdir" != "no"; then
11528                 break;
11529         else
11530                 ac_cv_ssleay_path=no
11531                 incdir=no
11532         fi
11533 done
11534 echo "$as_me:$LINENO: result: $ac_cv_ssleay_path" >&5
11535 echo "${ECHO_T}$ac_cv_ssleay_path" >&6
11536 if test "$ac_cv_ssleay_path" != no; then
11537         V_INCLS="$V_INCLS $incdir"
11538         LDFLAGS="-L$dir/lib $LDFLAGS"
11539         if test -f $ac_cv_ssleay_path/lib/libRSAglue.a; then
11540                 LIBS="$LIBS -lRSAglue"
11541         fi
11542         if test -f $ac_cv_ssleay_path/lib/librsaref.a; then
11543                 LIBS="$LIBS -lrsaref"
11544         fi
11545
11546 echo "$as_me:$LINENO: checking for DES_cbc_encrypt in -lcrypto" >&5
11547 echo $ECHO_N "checking for DES_cbc_encrypt in -lcrypto... $ECHO_C" >&6
11548 if test "${ac_cv_lib_crypto_DES_cbc_encrypt+set}" = set; then
11549   echo $ECHO_N "(cached) $ECHO_C" >&6
11550 else
11551   ac_check_lib_save_LIBS=$LIBS
11552 LIBS="-lcrypto  $LIBS"
11553 cat >conftest.$ac_ext <<_ACEOF
11554 #line $LINENO "configure"
11555 /* confdefs.h.  */
11556 _ACEOF
11557 cat confdefs.h >>conftest.$ac_ext
11558 cat >>conftest.$ac_ext <<_ACEOF
11559 /* end confdefs.h.  */
11560
11561 /* Override any gcc2 internal prototype to avoid an error.  */
11562 #ifdef __cplusplus
11563 extern "C"
11564 #endif
11565 /* We use char because int might match the return type of a gcc2
11566    builtin and then its argument prototype would still apply.  */
11567 char DES_cbc_encrypt ();
11568 int
11569 main ()
11570 {
11571 DES_cbc_encrypt ();
11572   ;
11573   return 0;
11574 }
11575 _ACEOF
11576 rm -f conftest.$ac_objext conftest$ac_exeext
11577 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11578   (eval $ac_link) 2>&5
11579   ac_status=$?
11580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11581   (exit $ac_status); } &&
11582          { ac_try='test -s conftest$ac_exeext'
11583   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11584   (eval $ac_try) 2>&5
11585   ac_status=$?
11586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11587   (exit $ac_status); }; }; then
11588   ac_cv_lib_crypto_DES_cbc_encrypt=yes
11589 else
11590   echo "$as_me: failed program was:" >&5
11591 sed 's/^/| /' conftest.$ac_ext >&5
11592
11593 ac_cv_lib_crypto_DES_cbc_encrypt=no
11594 fi
11595 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11596 LIBS=$ac_check_lib_save_LIBS
11597 fi
11598 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_DES_cbc_encrypt" >&5
11599 echo "${ECHO_T}$ac_cv_lib_crypto_DES_cbc_encrypt" >&6
11600 if test $ac_cv_lib_crypto_DES_cbc_encrypt = yes; then
11601   cat >>confdefs.h <<_ACEOF
11602 #define HAVE_LIBCRYPTO 1
11603 _ACEOF
11604
11605   LIBS="-lcrypto $LIBS"
11606
11607 fi
11608
11609
11610         CPPFLAGS="$CPPFLAGS $V_INCLS"
11611
11612 for ac_header in openssl/evp.h
11613 do
11614 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11615 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11616   echo "$as_me:$LINENO: checking for $ac_header" >&5
11617 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11618 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11619   echo $ECHO_N "(cached) $ECHO_C" >&6
11620 fi
11621 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11622 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11623 else
11624   # Is the header compilable?
11625 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11626 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11627 cat >conftest.$ac_ext <<_ACEOF
11628 #line $LINENO "configure"
11629 /* confdefs.h.  */
11630 _ACEOF
11631 cat confdefs.h >>conftest.$ac_ext
11632 cat >>conftest.$ac_ext <<_ACEOF
11633 /* end confdefs.h.  */
11634 $ac_includes_default
11635 #include <$ac_header>
11636 _ACEOF
11637 rm -f conftest.$ac_objext
11638 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11639   (eval $ac_compile) 2>&5
11640   ac_status=$?
11641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11642   (exit $ac_status); } &&
11643          { ac_try='test -s conftest.$ac_objext'
11644   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11645   (eval $ac_try) 2>&5
11646   ac_status=$?
11647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11648   (exit $ac_status); }; }; then
11649   ac_header_compiler=yes
11650 else
11651   echo "$as_me: failed program was:" >&5
11652 sed 's/^/| /' conftest.$ac_ext >&5
11653
11654 ac_header_compiler=no
11655 fi
11656 rm -f conftest.$ac_objext conftest.$ac_ext
11657 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11658 echo "${ECHO_T}$ac_header_compiler" >&6
11659
11660 # Is the header present?
11661 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11662 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11663 cat >conftest.$ac_ext <<_ACEOF
11664 #line $LINENO "configure"
11665 /* confdefs.h.  */
11666 _ACEOF
11667 cat confdefs.h >>conftest.$ac_ext
11668 cat >>conftest.$ac_ext <<_ACEOF
11669 /* end confdefs.h.  */
11670 #include <$ac_header>
11671 _ACEOF
11672 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11673   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11674   ac_status=$?
11675   grep -v '^ *+' conftest.er1 >conftest.err
11676   rm -f conftest.er1
11677   cat conftest.err >&5
11678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11679   (exit $ac_status); } >/dev/null; then
11680   if test -s conftest.err; then
11681     ac_cpp_err=$ac_c_preproc_warn_flag
11682   else
11683     ac_cpp_err=
11684   fi
11685 else
11686   ac_cpp_err=yes
11687 fi
11688 if test -z "$ac_cpp_err"; then
11689   ac_header_preproc=yes
11690 else
11691   echo "$as_me: failed program was:" >&5
11692 sed 's/^/| /' conftest.$ac_ext >&5
11693
11694   ac_header_preproc=no
11695 fi
11696 rm -f conftest.err conftest.$ac_ext
11697 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11698 echo "${ECHO_T}$ac_header_preproc" >&6
11699
11700 # So?  What about this header?
11701 case $ac_header_compiler:$ac_header_preproc in
11702   yes:no )
11703     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11704 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11705     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11706 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11707     (
11708       cat <<\_ASBOX
11709 ## ------------------------------------ ##
11710 ## Report this to bug-autoconf@gnu.org. ##
11711 ## ------------------------------------ ##
11712 _ASBOX
11713     ) |
11714       sed "s/^/$as_me: WARNING:     /" >&2
11715     ;;
11716   no:yes )
11717     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11718 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11719     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11720 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11721     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11722 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11723     (
11724       cat <<\_ASBOX
11725 ## ------------------------------------ ##
11726 ## Report this to bug-autoconf@gnu.org. ##
11727 ## ------------------------------------ ##
11728 _ASBOX
11729     ) |
11730       sed "s/^/$as_me: WARNING:     /" >&2
11731     ;;
11732 esac
11733 echo "$as_me:$LINENO: checking for $ac_header" >&5
11734 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11735 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11736   echo $ECHO_N "(cached) $ECHO_C" >&6
11737 else
11738   eval "$as_ac_Header=$ac_header_preproc"
11739 fi
11740 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11741 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11742
11743 fi
11744 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11745   cat >>confdefs.h <<_ACEOF
11746 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11747 _ACEOF
11748
11749 fi
11750
11751 done
11752
11753 fi
11754
11755 fi;
11756
11757 if test "$missing_includes" = "yes"; then
11758         CPPFLAGS="$CPPFLAGS -I\$(srcdir)/missing"
11759         V_INCLS="$V_INCLS -I\$(srcdir)/missing"
11760 fi
11761
11762
11763
11764
11765
11766
11767
11768
11769 # Find a good install program.  We prefer a C program (faster),
11770 # so one script is as good as another.  But avoid the broken or
11771 # incompatible versions:
11772 # SysV /etc/install, /usr/sbin/install
11773 # SunOS /usr/etc/install
11774 # IRIX /sbin/install
11775 # AIX /bin/install
11776 # AmigaOS /C/install, which installs bootblocks on floppy discs
11777 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
11778 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
11779 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
11780 # ./install, which can be erroneously created by make from ./install.sh.
11781 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
11782 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
11783 if test -z "$INSTALL"; then
11784 if test "${ac_cv_path_install+set}" = set; then
11785   echo $ECHO_N "(cached) $ECHO_C" >&6
11786 else
11787   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11788 for as_dir in $PATH
11789 do
11790   IFS=$as_save_IFS
11791   test -z "$as_dir" && as_dir=.
11792   # Account for people who put trailing slashes in PATH elements.
11793 case $as_dir/ in
11794   ./ | .// | /cC/* | \
11795   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
11796   /usr/ucb/* ) ;;
11797   *)
11798     # OSF1 and SCO ODT 3.0 have their own names for install.
11799     # Don't use installbsd from OSF since it installs stuff as root
11800     # by default.
11801     for ac_prog in ginstall scoinst install; do
11802       for ac_exec_ext in '' $ac_executable_extensions; do
11803         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
11804           if test $ac_prog = install &&
11805             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11806             # AIX install.  It has an incompatible calling convention.
11807             :
11808           elif test $ac_prog = install &&
11809             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11810             # program-specific install script used by HP pwplus--don't use.
11811             :
11812           else
11813             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11814             break 3
11815           fi
11816         fi
11817       done
11818     done
11819     ;;
11820 esac
11821 done
11822
11823
11824 fi
11825   if test "${ac_cv_path_install+set}" = set; then
11826     INSTALL=$ac_cv_path_install
11827   else
11828     # As a last resort, use the slow shell script.  We don't cache a
11829     # path for INSTALL within a source directory, because that will
11830     # break other packages using the cache if that directory is
11831     # removed, or if the path is relative.
11832     INSTALL=$ac_install_sh
11833   fi
11834 fi
11835 echo "$as_me:$LINENO: result: $INSTALL" >&5
11836 echo "${ECHO_T}$INSTALL" >&6
11837
11838 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11839 # It thinks the first close brace ends the variable substitution.
11840 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
11841
11842 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
11843
11844 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
11845
11846
11847           ac_config_headers="$ac_config_headers config.h"
11848
11849
11850           ac_config_commands="$ac_config_commands default-1"
11851
11852           ac_config_files="$ac_config_files Makefile"
11853 cat >confcache <<\_ACEOF
11854 # This file is a shell script that caches the results of configure
11855 # tests run on this system so they can be shared between configure
11856 # scripts and configure runs, see configure's option --config-cache.
11857 # It is not useful on other systems.  If it contains results you don't
11858 # want to keep, you may remove or edit it.
11859 #
11860 # config.status only pays attention to the cache file if you give it
11861 # the --recheck option to rerun configure.
11862 #
11863 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11864 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11865 # following values.
11866
11867 _ACEOF
11868
11869 # The following way of writing the cache mishandles newlines in values,
11870 # but we know of no workaround that is simple, portable, and efficient.
11871 # So, don't put newlines in cache variables' values.
11872 # Ultrix sh set writes to stderr and can't be redirected directly,
11873 # and sets the high bit in the cache file unless we assign to the vars.
11874 {
11875   (set) 2>&1 |
11876     case `(ac_space=' '; set | grep ac_space) 2>&1` in
11877     *ac_space=\ *)
11878       # `set' does not quote correctly, so add quotes (double-quote
11879       # substitution turns \\\\ into \\, and sed turns \\ into \).
11880       sed -n \
11881         "s/'/'\\\\''/g;
11882           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11883       ;;
11884     *)
11885       # `set' quotes correctly as required by POSIX, so do not add quotes.
11886       sed -n \
11887         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
11888       ;;
11889     esac;
11890 } |
11891   sed '
11892      t clear
11893      : clear
11894      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11895      t end
11896      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11897      : end' >>confcache
11898 if diff $cache_file confcache >/dev/null 2>&1; then :; else
11899   if test -w $cache_file; then
11900     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
11901     cat confcache >$cache_file
11902   else
11903     echo "not updating unwritable cache $cache_file"
11904   fi
11905 fi
11906 rm -f confcache
11907
11908 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11909 # Let make expand exec_prefix.
11910 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11911
11912 # VPATH may cause trouble with some makes, so we remove $(srcdir),
11913 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11914 # trailing colons and then remove the whole line if VPATH becomes empty
11915 # (actually we leave an empty line to preserve line numbers).
11916 if test "x$srcdir" = x.; then
11917   ac_vpsub='/^[         ]*VPATH[        ]*=/{
11918 s/:*\$(srcdir):*/:/;
11919 s/:*\${srcdir}:*/:/;
11920 s/:*@srcdir@:*/:/;
11921 s/^\([^=]*=[    ]*\):*/\1/;
11922 s/:*$//;
11923 s/^[^=]*=[      ]*$//;
11924 }'
11925 fi
11926
11927 DEFS=-DHAVE_CONFIG_H
11928
11929 ac_libobjs=
11930 ac_ltlibobjs=
11931 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11932   # 1. Remove the extension, and $U if already installed.
11933   ac_i=`echo "$ac_i" |
11934          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
11935   # 2. Add them.
11936   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
11937   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
11938 done
11939 LIBOBJS=$ac_libobjs
11940
11941 LTLIBOBJS=$ac_ltlibobjs
11942
11943
11944
11945 : ${CONFIG_STATUS=./config.status}
11946 ac_clean_files_save=$ac_clean_files
11947 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11948 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11949 echo "$as_me: creating $CONFIG_STATUS" >&6;}
11950 cat >$CONFIG_STATUS <<_ACEOF
11951 #! $SHELL
11952 # Generated by $as_me.
11953 # Run this file to recreate the current configuration.
11954 # Compiler output produced by configure, useful for debugging
11955 # configure, is in config.log if it exists.
11956
11957 debug=false
11958 ac_cs_recheck=false
11959 ac_cs_silent=false
11960 SHELL=\${CONFIG_SHELL-$SHELL}
11961 _ACEOF
11962
11963 cat >>$CONFIG_STATUS <<\_ACEOF
11964 ## --------------------- ##
11965 ## M4sh Initialization.  ##
11966 ## --------------------- ##
11967
11968 # Be Bourne compatible
11969 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11970   emulate sh
11971   NULLCMD=:
11972   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
11973   # is contrary to our usage.  Disable this feature.
11974   alias -g '${1+"$@"}'='"$@"'
11975 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
11976   set -o posix
11977 fi
11978
11979 # Support unset when possible.
11980 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
11981   as_unset=unset
11982 else
11983   as_unset=false
11984 fi
11985
11986
11987 # Work around bugs in pre-3.0 UWIN ksh.
11988 $as_unset ENV MAIL MAILPATH
11989 PS1='$ '
11990 PS2='> '
11991 PS4='+ '
11992
11993 # NLS nuisances.
11994 for as_var in \
11995   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
11996   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11997   LC_TELEPHONE LC_TIME
11998 do
11999   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
12000     eval $as_var=C; export $as_var
12001   else
12002     $as_unset $as_var
12003   fi
12004 done
12005
12006 # Required to use basename.
12007 if expr a : '\(a\)' >/dev/null 2>&1; then
12008   as_expr=expr
12009 else
12010   as_expr=false
12011 fi
12012
12013 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
12014   as_basename=basename
12015 else
12016   as_basename=false
12017 fi
12018
12019
12020 # Name of the executable.
12021 as_me=`$as_basename "$0" ||
12022 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12023          X"$0" : 'X\(//\)$' \| \
12024          X"$0" : 'X\(/\)$' \| \
12025          .     : '\(.\)' 2>/dev/null ||
12026 echo X/"$0" |
12027     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
12028           /^X\/\(\/\/\)$/{ s//\1/; q; }
12029           /^X\/\(\/\).*/{ s//\1/; q; }
12030           s/.*/./; q'`
12031
12032
12033 # PATH needs CR, and LINENO needs CR and PATH.
12034 # Avoid depending upon Character Ranges.
12035 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12036 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12037 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12038 as_cr_digits='0123456789'
12039 as_cr_alnum=$as_cr_Letters$as_cr_digits
12040
12041 # The user is always right.
12042 if test "${PATH_SEPARATOR+set}" != set; then
12043   echo "#! /bin/sh" >conf$$.sh
12044   echo  "exit 0"   >>conf$$.sh
12045   chmod +x conf$$.sh
12046   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12047     PATH_SEPARATOR=';'
12048   else
12049     PATH_SEPARATOR=:
12050   fi
12051   rm -f conf$$.sh
12052 fi
12053
12054
12055   as_lineno_1=$LINENO
12056   as_lineno_2=$LINENO
12057   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12058   test "x$as_lineno_1" != "x$as_lineno_2" &&
12059   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
12060   # Find who we are.  Look in the path if we contain no path at all
12061   # relative or not.
12062   case $0 in
12063     *[\\/]* ) as_myself=$0 ;;
12064     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12065 for as_dir in $PATH
12066 do
12067   IFS=$as_save_IFS
12068   test -z "$as_dir" && as_dir=.
12069   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12070 done
12071
12072        ;;
12073   esac
12074   # We did not find ourselves, most probably we were run as `sh COMMAND'
12075   # in which case we are not to be found in the path.
12076   if test "x$as_myself" = x; then
12077     as_myself=$0
12078   fi
12079   if test ! -f "$as_myself"; then
12080     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
12081 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
12082    { (exit 1); exit 1; }; }
12083   fi
12084   case $CONFIG_SHELL in
12085   '')
12086     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12087 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
12088 do
12089   IFS=$as_save_IFS
12090   test -z "$as_dir" && as_dir=.
12091   for as_base in sh bash ksh sh5; do
12092          case $as_dir in
12093          /*)
12094            if ("$as_dir/$as_base" -c '
12095   as_lineno_1=$LINENO
12096   as_lineno_2=$LINENO
12097   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12098   test "x$as_lineno_1" != "x$as_lineno_2" &&
12099   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
12100              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
12101              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
12102              CONFIG_SHELL=$as_dir/$as_base
12103              export CONFIG_SHELL
12104              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
12105            fi;;
12106          esac
12107        done
12108 done
12109 ;;
12110   esac
12111
12112   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12113   # uniformly replaced by the line number.  The first 'sed' inserts a
12114   # line-number line before each line; the second 'sed' does the real
12115   # work.  The second script uses 'N' to pair each line-number line
12116   # with the numbered line, and appends trailing '-' during
12117   # substitution so that $LINENO is not a special case at line end.
12118   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12119   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
12120   sed '=' <$as_myself |
12121     sed '
12122       N
12123       s,$,-,
12124       : loop
12125       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
12126       t loop
12127       s,-$,,
12128       s,^['$as_cr_digits']*\n,,
12129     ' >$as_me.lineno &&
12130   chmod +x $as_me.lineno ||
12131     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
12132 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
12133    { (exit 1); exit 1; }; }
12134
12135   # Don't try to exec as it changes $[0], causing all sort of problems
12136   # (the dirname of $[0] is not the place where we might find the
12137   # original and so on.  Autoconf is especially sensible to this).
12138   . ./$as_me.lineno
12139   # Exit status is that of the last command.
12140   exit
12141 }
12142
12143
12144 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
12145   *c*,-n*) ECHO_N= ECHO_C='
12146 ' ECHO_T='      ' ;;
12147   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
12148   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
12149 esac
12150
12151 if expr a : '\(a\)' >/dev/null 2>&1; then
12152   as_expr=expr
12153 else
12154   as_expr=false
12155 fi
12156
12157 rm -f conf$$ conf$$.exe conf$$.file
12158 echo >conf$$.file
12159 if ln -s conf$$.file conf$$ 2>/dev/null; then
12160   # We could just check for DJGPP; but this test a) works b) is more generic
12161   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
12162   if test -f conf$$.exe; then
12163     # Don't use ln at all; we don't have any links
12164     as_ln_s='cp -p'
12165   else
12166     as_ln_s='ln -s'
12167   fi
12168 elif ln conf$$.file conf$$ 2>/dev/null; then
12169   as_ln_s=ln
12170 else
12171   as_ln_s='cp -p'
12172 fi
12173 rm -f conf$$ conf$$.exe conf$$.file
12174
12175 if mkdir -p . 2>/dev/null; then
12176   as_mkdir_p=:
12177 else
12178   as_mkdir_p=false
12179 fi
12180
12181 as_executable_p="test -f"
12182
12183 # Sed expression to map a string onto a valid CPP name.
12184 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
12185
12186 # Sed expression to map a string onto a valid variable name.
12187 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
12188
12189
12190 # IFS
12191 # We need space, tab and new line, in precisely that order.
12192 as_nl='
12193 '
12194 IFS="   $as_nl"
12195
12196 # CDPATH.
12197 $as_unset CDPATH
12198
12199 exec 6>&1
12200
12201 # Open the log real soon, to keep \$[0] and so on meaningful, and to
12202 # report actual input values of CONFIG_FILES etc. instead of their
12203 # values after options handling.  Logging --version etc. is OK.
12204 exec 5>>config.log
12205 {
12206   echo
12207   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12208 ## Running $as_me. ##
12209 _ASBOX
12210 } >&5
12211 cat >&5 <<_CSEOF
12212
12213 This file was extended by $as_me, which was
12214 generated by GNU Autoconf 2.57.  Invocation command line was
12215
12216   CONFIG_FILES    = $CONFIG_FILES
12217   CONFIG_HEADERS  = $CONFIG_HEADERS
12218   CONFIG_LINKS    = $CONFIG_LINKS
12219   CONFIG_COMMANDS = $CONFIG_COMMANDS
12220   $ $0 $@
12221
12222 _CSEOF
12223 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
12224 echo >&5
12225 _ACEOF
12226
12227 # Files that config.status was made for.
12228 if test -n "$ac_config_files"; then
12229   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12230 fi
12231
12232 if test -n "$ac_config_headers"; then
12233   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12234 fi
12235
12236 if test -n "$ac_config_links"; then
12237   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12238 fi
12239
12240 if test -n "$ac_config_commands"; then
12241   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12242 fi
12243
12244 cat >>$CONFIG_STATUS <<\_ACEOF
12245
12246 ac_cs_usage="\
12247 \`$as_me' instantiates files from templates according to the
12248 current configuration.
12249
12250 Usage: $0 [OPTIONS] [FILE]...
12251
12252   -h, --help       print this help, then exit
12253   -V, --version    print version number, then exit
12254   -q, --quiet      do not print progress messages
12255   -d, --debug      don't remove temporary files
12256       --recheck    update $as_me by reconfiguring in the same conditions
12257   --file=FILE[:TEMPLATE]
12258                    instantiate the configuration file FILE
12259   --header=FILE[:TEMPLATE]
12260                    instantiate the configuration header FILE
12261
12262 Configuration files:
12263 $config_files
12264
12265 Configuration headers:
12266 $config_headers
12267
12268 Configuration commands:
12269 $config_commands
12270
12271 Report bugs to <bug-autoconf@gnu.org>."
12272 _ACEOF
12273
12274 cat >>$CONFIG_STATUS <<_ACEOF
12275 ac_cs_version="\\
12276 config.status
12277 configured by $0, generated by GNU Autoconf 2.57,
12278   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
12279
12280 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
12281 Free Software Foundation, Inc.
12282 This config.status script is free software; the Free Software Foundation
12283 gives unlimited permission to copy, distribute and modify it."
12284 srcdir=$srcdir
12285 INSTALL="$INSTALL"
12286 _ACEOF
12287
12288 cat >>$CONFIG_STATUS <<\_ACEOF
12289 # If no file are specified by the user, then we need to provide default
12290 # value.  By we need to know if files were specified by the user.
12291 ac_need_defaults=:
12292 while test $# != 0
12293 do
12294   case $1 in
12295   --*=*)
12296     ac_option=`expr "x$1" : 'x\([^=]*\)='`
12297     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
12298     ac_shift=:
12299     ;;
12300   -*)
12301     ac_option=$1
12302     ac_optarg=$2
12303     ac_shift=shift
12304     ;;
12305   *) # This is not an option, so the user has probably given explicit
12306      # arguments.
12307      ac_option=$1
12308      ac_need_defaults=false;;
12309   esac
12310
12311   case $ac_option in
12312   # Handling of the options.
12313 _ACEOF
12314 cat >>$CONFIG_STATUS <<\_ACEOF
12315   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12316     ac_cs_recheck=: ;;
12317   --version | --vers* | -V )
12318     echo "$ac_cs_version"; exit 0 ;;
12319   --he | --h)
12320     # Conflict between --help and --header
12321     { { echo "$as_me:$LINENO: error: ambiguous option: $1
12322 Try \`$0 --help' for more information." >&5
12323 echo "$as_me: error: ambiguous option: $1
12324 Try \`$0 --help' for more information." >&2;}
12325    { (exit 1); exit 1; }; };;
12326   --help | --hel | -h )
12327     echo "$ac_cs_usage"; exit 0 ;;
12328   --debug | --d* | -d )
12329     debug=: ;;
12330   --file | --fil | --fi | --f )
12331     $ac_shift
12332     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
12333     ac_need_defaults=false;;
12334   --header | --heade | --head | --hea )
12335     $ac_shift
12336     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
12337     ac_need_defaults=false;;
12338   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12339   | -silent | --silent | --silen | --sile | --sil | --si | --s)
12340     ac_cs_silent=: ;;
12341
12342   # This is an error.
12343   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
12344 Try \`$0 --help' for more information." >&5
12345 echo "$as_me: error: unrecognized option: $1
12346 Try \`$0 --help' for more information." >&2;}
12347    { (exit 1); exit 1; }; } ;;
12348
12349   *) ac_config_targets="$ac_config_targets $1" ;;
12350
12351   esac
12352   shift
12353 done
12354
12355 ac_configure_extra_args=
12356
12357 if $ac_cs_silent; then
12358   exec 6>/dev/null
12359   ac_configure_extra_args="$ac_configure_extra_args --silent"
12360 fi
12361
12362 _ACEOF
12363 cat >>$CONFIG_STATUS <<_ACEOF
12364 if \$ac_cs_recheck; then
12365   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12366   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12367 fi
12368
12369 _ACEOF
12370
12371 cat >>$CONFIG_STATUS <<_ACEOF
12372 #
12373 # INIT-COMMANDS section.
12374 #
12375
12376
12377
12378 _ACEOF
12379
12380
12381
12382 cat >>$CONFIG_STATUS <<\_ACEOF
12383 for ac_config_target in $ac_config_targets
12384 do
12385   case "$ac_config_target" in
12386   # Handling of arguments.
12387   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12388   "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
12389   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12390   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12391 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12392    { (exit 1); exit 1; }; };;
12393   esac
12394 done
12395
12396 # If the user did not use the arguments to specify the items to instantiate,
12397 # then the envvar interface is used.  Set only those that are not.
12398 # We use the long form for the default assignment because of an extremely
12399 # bizarre bug on SunOS 4.1.3.
12400 if $ac_need_defaults; then
12401   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12402   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12403   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12404 fi
12405
12406 # Have a temporary directory for convenience.  Make it in the build tree
12407 # simply because there is no reason to put it here, and in addition,
12408 # creating and moving files from /tmp can sometimes cause problems.
12409 # Create a temporary directory, and hook for its removal unless debugging.
12410 $debug ||
12411 {
12412   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
12413   trap '{ (exit 1); exit 1; }' 1 2 13 15
12414 }
12415
12416 # Create a (secure) tmp directory for tmp files.
12417
12418 {
12419   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
12420   test -n "$tmp" && test -d "$tmp"
12421 }  ||
12422 {
12423   tmp=./confstat$$-$RANDOM
12424   (umask 077 && mkdir $tmp)
12425 } ||
12426 {
12427    echo "$me: cannot create a temporary directory in ." >&2
12428    { (exit 1); exit 1; }
12429 }
12430
12431 _ACEOF
12432
12433 cat >>$CONFIG_STATUS <<_ACEOF
12434
12435 #
12436 # CONFIG_FILES section.
12437 #
12438
12439 # No need to generate the scripts if there are no CONFIG_FILES.
12440 # This happens for instance when ./config.status config.h
12441 if test -n "\$CONFIG_FILES"; then
12442   # Protect against being on the right side of a sed subst in config.status.
12443   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12444    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
12445 s,@SHELL@,$SHELL,;t t
12446 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12447 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12448 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12449 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12450 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12451 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12452 s,@exec_prefix@,$exec_prefix,;t t
12453 s,@prefix@,$prefix,;t t
12454 s,@program_transform_name@,$program_transform_name,;t t
12455 s,@bindir@,$bindir,;t t
12456 s,@sbindir@,$sbindir,;t t
12457 s,@libexecdir@,$libexecdir,;t t
12458 s,@datadir@,$datadir,;t t
12459 s,@sysconfdir@,$sysconfdir,;t t
12460 s,@sharedstatedir@,$sharedstatedir,;t t
12461 s,@localstatedir@,$localstatedir,;t t
12462 s,@libdir@,$libdir,;t t
12463 s,@includedir@,$includedir,;t t
12464 s,@oldincludedir@,$oldincludedir,;t t
12465 s,@infodir@,$infodir,;t t
12466 s,@mandir@,$mandir,;t t
12467 s,@build_alias@,$build_alias,;t t
12468 s,@host_alias@,$host_alias,;t t
12469 s,@target_alias@,$target_alias,;t t
12470 s,@DEFS@,$DEFS,;t t
12471 s,@ECHO_C@,$ECHO_C,;t t
12472 s,@ECHO_N@,$ECHO_N,;t t
12473 s,@ECHO_T@,$ECHO_T,;t t
12474 s,@LIBS@,$LIBS,;t t
12475 s,@build@,$build,;t t
12476 s,@build_cpu@,$build_cpu,;t t
12477 s,@build_vendor@,$build_vendor,;t t
12478 s,@build_os@,$build_os,;t t
12479 s,@host@,$host,;t t
12480 s,@host_cpu@,$host_cpu,;t t
12481 s,@host_vendor@,$host_vendor,;t t
12482 s,@host_os@,$host_os,;t t
12483 s,@SHLICC2@,$SHLICC2,;t t
12484 s,@CC@,$CC,;t t
12485 s,@CFLAGS@,$CFLAGS,;t t
12486 s,@LDFLAGS@,$LDFLAGS,;t t
12487 s,@CPPFLAGS@,$CPPFLAGS,;t t
12488 s,@ac_ct_CC@,$ac_ct_CC,;t t
12489 s,@EXEEXT@,$EXEEXT,;t t
12490 s,@OBJEXT@,$OBJEXT,;t t
12491 s,@CPP@,$CPP,;t t
12492 s,@EGREP@,$EGREP,;t t
12493 s,@LIBOBJS@,$LIBOBJS,;t t
12494 s,@V_CCOPT@,$V_CCOPT,;t t
12495 s,@V_DEFS@,$V_DEFS,;t t
12496 s,@V_GROUP@,$V_GROUP,;t t
12497 s,@V_INCLS@,$V_INCLS,;t t
12498 s,@V_PCAPDEP@,$V_PCAPDEP,;t t
12499 s,@LOCALSRC@,$LOCALSRC,;t t
12500 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
12501 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
12502 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
12503 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
12504 CEOF
12505
12506 _ACEOF
12507
12508   cat >>$CONFIG_STATUS <<\_ACEOF
12509   # Split the substitutions into bite-sized pieces for seds with
12510   # small command number limits, like on Digital OSF/1 and HP-UX.
12511   ac_max_sed_lines=48
12512   ac_sed_frag=1 # Number of current file.
12513   ac_beg=1 # First line for current file.
12514   ac_end=$ac_max_sed_lines # Line after last line for current file.
12515   ac_more_lines=:
12516   ac_sed_cmds=
12517   while $ac_more_lines; do
12518     if test $ac_beg -gt 1; then
12519       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12520     else
12521       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12522     fi
12523     if test ! -s $tmp/subs.frag; then
12524       ac_more_lines=false
12525     else
12526       # The purpose of the label and of the branching condition is to
12527       # speed up the sed processing (if there are no `@' at all, there
12528       # is no need to browse any of the substitutions).
12529       # These are the two extra sed commands mentioned above.
12530       (echo ':t
12531   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
12532       if test -z "$ac_sed_cmds"; then
12533         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
12534       else
12535         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
12536       fi
12537       ac_sed_frag=`expr $ac_sed_frag + 1`
12538       ac_beg=$ac_end
12539       ac_end=`expr $ac_end + $ac_max_sed_lines`
12540     fi
12541   done
12542   if test -z "$ac_sed_cmds"; then
12543     ac_sed_cmds=cat
12544   fi
12545 fi # test -n "$CONFIG_FILES"
12546
12547 _ACEOF
12548 cat >>$CONFIG_STATUS <<\_ACEOF
12549 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
12550   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12551   case $ac_file in
12552   - | *:- | *:-:* ) # input from stdin
12553         cat >$tmp/stdin
12554         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12555         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12556   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12557         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12558   * )   ac_file_in=$ac_file.in ;;
12559   esac
12560
12561   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
12562   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12563 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12564          X"$ac_file" : 'X\(//\)[^/]' \| \
12565          X"$ac_file" : 'X\(//\)$' \| \
12566          X"$ac_file" : 'X\(/\)' \| \
12567          .     : '\(.\)' 2>/dev/null ||
12568 echo X"$ac_file" |
12569     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12570           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12571           /^X\(\/\/\)$/{ s//\1/; q; }
12572           /^X\(\/\).*/{ s//\1/; q; }
12573           s/.*/./; q'`
12574   { if $as_mkdir_p; then
12575     mkdir -p "$ac_dir"
12576   else
12577     as_dir="$ac_dir"
12578     as_dirs=
12579     while test ! -d "$as_dir"; do
12580       as_dirs="$as_dir $as_dirs"
12581       as_dir=`(dirname "$as_dir") 2>/dev/null ||
12582 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12583          X"$as_dir" : 'X\(//\)[^/]' \| \
12584          X"$as_dir" : 'X\(//\)$' \| \
12585          X"$as_dir" : 'X\(/\)' \| \
12586          .     : '\(.\)' 2>/dev/null ||
12587 echo X"$as_dir" |
12588     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12589           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12590           /^X\(\/\/\)$/{ s//\1/; q; }
12591           /^X\(\/\).*/{ s//\1/; q; }
12592           s/.*/./; q'`
12593     done
12594     test ! -n "$as_dirs" || mkdir $as_dirs
12595   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12596 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12597    { (exit 1); exit 1; }; }; }
12598
12599   ac_builddir=.
12600
12601 if test "$ac_dir" != .; then
12602   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12603   # A "../" for each directory in $ac_dir_suffix.
12604   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12605 else
12606   ac_dir_suffix= ac_top_builddir=
12607 fi
12608
12609 case $srcdir in
12610   .)  # No --srcdir option.  We are building in place.
12611     ac_srcdir=.
12612     if test -z "$ac_top_builddir"; then
12613        ac_top_srcdir=.
12614     else
12615        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12616     fi ;;
12617   [\\/]* | ?:[\\/]* )  # Absolute path.
12618     ac_srcdir=$srcdir$ac_dir_suffix;
12619     ac_top_srcdir=$srcdir ;;
12620   *) # Relative path.
12621     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12622     ac_top_srcdir=$ac_top_builddir$srcdir ;;
12623 esac
12624 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
12625 # absolute.
12626 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
12627 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
12628 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
12629 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
12630
12631
12632   case $INSTALL in
12633   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12634   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
12635   esac
12636
12637   if test x"$ac_file" != x-; then
12638     { echo "$as_me:$LINENO: creating $ac_file" >&5
12639 echo "$as_me: creating $ac_file" >&6;}
12640     rm -f "$ac_file"
12641   fi
12642   # Let's still pretend it is `configure' which instantiates (i.e., don't
12643   # use $as_me), people would be surprised to read:
12644   #    /* config.h.  Generated by config.status.  */
12645   if test x"$ac_file" = x-; then
12646     configure_input=
12647   else
12648     configure_input="$ac_file.  "
12649   fi
12650   configure_input=$configure_input"Generated from `echo $ac_file_in |
12651                                      sed 's,.*/,,'` by configure."
12652
12653   # First look for the input files in the build tree, otherwise in the
12654   # src tree.
12655   ac_file_inputs=`IFS=:
12656     for f in $ac_file_in; do
12657       case $f in
12658       -) echo $tmp/stdin ;;
12659       [\\/$]*)
12660          # Absolute (can't be DOS-style, as IFS=:)
12661          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12662 echo "$as_me: error: cannot find input file: $f" >&2;}
12663    { (exit 1); exit 1; }; }
12664          echo $f;;
12665       *) # Relative
12666          if test -f "$f"; then
12667            # Build tree
12668            echo $f
12669          elif test -f "$srcdir/$f"; then
12670            # Source tree
12671            echo $srcdir/$f
12672          else
12673            # /dev/null tree
12674            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12675 echo "$as_me: error: cannot find input file: $f" >&2;}
12676    { (exit 1); exit 1; }; }
12677          fi;;
12678       esac
12679     done` || { (exit 1); exit 1; }
12680 _ACEOF
12681 cat >>$CONFIG_STATUS <<_ACEOF
12682   sed "$ac_vpsub
12683 $extrasub
12684 _ACEOF
12685 cat >>$CONFIG_STATUS <<\_ACEOF
12686 :t
12687 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12688 s,@configure_input@,$configure_input,;t t
12689 s,@srcdir@,$ac_srcdir,;t t
12690 s,@abs_srcdir@,$ac_abs_srcdir,;t t
12691 s,@top_srcdir@,$ac_top_srcdir,;t t
12692 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
12693 s,@builddir@,$ac_builddir,;t t
12694 s,@abs_builddir@,$ac_abs_builddir,;t t
12695 s,@top_builddir@,$ac_top_builddir,;t t
12696 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
12697 s,@INSTALL@,$ac_INSTALL,;t t
12698 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
12699   rm -f $tmp/stdin
12700   if test x"$ac_file" != x-; then
12701     mv $tmp/out $ac_file
12702   else
12703     cat $tmp/out
12704     rm -f $tmp/out
12705   fi
12706
12707 done
12708 _ACEOF
12709 cat >>$CONFIG_STATUS <<\_ACEOF
12710
12711 #
12712 # CONFIG_HEADER section.
12713 #
12714
12715 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
12716 # NAME is the cpp macro being defined and VALUE is the value it is being given.
12717 #
12718 # ac_d sets the value in "#define NAME VALUE" lines.
12719 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
12720 ac_dB='[        ].*$,\1#\2'
12721 ac_dC=' '
12722 ac_dD=',;t'
12723 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
12724 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
12725 ac_uB='$,\1#\2define\3'
12726 ac_uC=' '
12727 ac_uD=',;t'
12728
12729 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
12730   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12731   case $ac_file in
12732   - | *:- | *:-:* ) # input from stdin
12733         cat >$tmp/stdin
12734         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12735         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12736   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12737         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12738   * )   ac_file_in=$ac_file.in ;;
12739   esac
12740
12741   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
12742 echo "$as_me: creating $ac_file" >&6;}
12743
12744   # First look for the input files in the build tree, otherwise in the
12745   # src tree.
12746   ac_file_inputs=`IFS=:
12747     for f in $ac_file_in; do
12748       case $f in
12749       -) echo $tmp/stdin ;;
12750       [\\/$]*)
12751          # Absolute (can't be DOS-style, as IFS=:)
12752          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12753 echo "$as_me: error: cannot find input file: $f" >&2;}
12754    { (exit 1); exit 1; }; }
12755          echo $f;;
12756       *) # Relative
12757          if test -f "$f"; then
12758            # Build tree
12759            echo $f
12760          elif test -f "$srcdir/$f"; then
12761            # Source tree
12762            echo $srcdir/$f
12763          else
12764            # /dev/null tree
12765            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12766 echo "$as_me: error: cannot find input file: $f" >&2;}
12767    { (exit 1); exit 1; }; }
12768          fi;;
12769       esac
12770     done` || { (exit 1); exit 1; }
12771   # Remove the trailing spaces.
12772   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
12773
12774 _ACEOF
12775
12776 # Transform confdefs.h into two sed scripts, `conftest.defines' and
12777 # `conftest.undefs', that substitutes the proper values into
12778 # config.h.in to produce config.h.  The first handles `#define'
12779 # templates, and the second `#undef' templates.
12780 # And first: Protect against being on the right side of a sed subst in
12781 # config.status.  Protect against being in an unquoted here document
12782 # in config.status.
12783 rm -f conftest.defines conftest.undefs
12784 # Using a here document instead of a string reduces the quoting nightmare.
12785 # Putting comments in sed scripts is not portable.
12786 #
12787 # `end' is used to avoid that the second main sed command (meant for
12788 # 0-ary CPP macros) applies to n-ary macro definitions.
12789 # See the Autoconf documentation for `clear'.
12790 cat >confdef2sed.sed <<\_ACEOF
12791 s/[\\&,]/\\&/g
12792 s,[\\$`],\\&,g
12793 t clear
12794 : clear
12795 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
12796 t end
12797 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
12798 : end
12799 _ACEOF
12800 # If some macros were called several times there might be several times
12801 # the same #defines, which is useless.  Nevertheless, we may not want to
12802 # sort them, since we want the *last* AC-DEFINE to be honored.
12803 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
12804 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
12805 rm -f confdef2sed.sed
12806
12807 # This sed command replaces #undef with comments.  This is necessary, for
12808 # example, in the case of _POSIX_SOURCE, which is predefined and required
12809 # on some systems where configure will not decide to define it.
12810 cat >>conftest.undefs <<\_ACEOF
12811 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
12812 _ACEOF
12813
12814 # Break up conftest.defines because some shells have a limit on the size
12815 # of here documents, and old seds have small limits too (100 cmds).
12816 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
12817 echo '  if grep "^[     ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
12818 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
12819 echo '  :' >>$CONFIG_STATUS
12820 rm -f conftest.tail
12821 while grep . conftest.defines >/dev/null
12822 do
12823   # Write a limited-size here document to $tmp/defines.sed.
12824   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
12825   # Speed up: don't consider the non `#define' lines.
12826   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
12827   # Work around the forget-to-reset-the-flag bug.
12828   echo 't clr' >>$CONFIG_STATUS
12829   echo ': clr' >>$CONFIG_STATUS
12830   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
12831   echo 'CEOF
12832   sed -f $tmp/defines.sed $tmp/in >$tmp/out
12833   rm -f $tmp/in
12834   mv $tmp/out $tmp/in
12835 ' >>$CONFIG_STATUS
12836   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
12837   rm -f conftest.defines
12838   mv conftest.tail conftest.defines
12839 done
12840 rm -f conftest.defines
12841 echo '  fi # grep' >>$CONFIG_STATUS
12842 echo >>$CONFIG_STATUS
12843
12844 # Break up conftest.undefs because some shells have a limit on the size
12845 # of here documents, and old seds have small limits too (100 cmds).
12846 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
12847 rm -f conftest.tail
12848 while grep . conftest.undefs >/dev/null
12849 do
12850   # Write a limited-size here document to $tmp/undefs.sed.
12851   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
12852   # Speed up: don't consider the non `#undef'
12853   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
12854   # Work around the forget-to-reset-the-flag bug.
12855   echo 't clr' >>$CONFIG_STATUS
12856   echo ': clr' >>$CONFIG_STATUS
12857   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
12858   echo 'CEOF
12859   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
12860   rm -f $tmp/in
12861   mv $tmp/out $tmp/in
12862 ' >>$CONFIG_STATUS
12863   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
12864   rm -f conftest.undefs
12865   mv conftest.tail conftest.undefs
12866 done
12867 rm -f conftest.undefs
12868
12869 cat >>$CONFIG_STATUS <<\_ACEOF
12870   # Let's still pretend it is `configure' which instantiates (i.e., don't
12871   # use $as_me), people would be surprised to read:
12872   #    /* config.h.  Generated by config.status.  */
12873   if test x"$ac_file" = x-; then
12874     echo "/* Generated by configure.  */" >$tmp/config.h
12875   else
12876     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
12877   fi
12878   cat $tmp/in >>$tmp/config.h
12879   rm -f $tmp/in
12880   if test x"$ac_file" != x-; then
12881     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
12882       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
12883 echo "$as_me: $ac_file is unchanged" >&6;}
12884     else
12885       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12886 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12887          X"$ac_file" : 'X\(//\)[^/]' \| \
12888          X"$ac_file" : 'X\(//\)$' \| \
12889          X"$ac_file" : 'X\(/\)' \| \
12890          .     : '\(.\)' 2>/dev/null ||
12891 echo X"$ac_file" |
12892     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12893           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12894           /^X\(\/\/\)$/{ s//\1/; q; }
12895           /^X\(\/\).*/{ s//\1/; q; }
12896           s/.*/./; q'`
12897       { if $as_mkdir_p; then
12898     mkdir -p "$ac_dir"
12899   else
12900     as_dir="$ac_dir"
12901     as_dirs=
12902     while test ! -d "$as_dir"; do
12903       as_dirs="$as_dir $as_dirs"
12904       as_dir=`(dirname "$as_dir") 2>/dev/null ||
12905 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12906          X"$as_dir" : 'X\(//\)[^/]' \| \
12907          X"$as_dir" : 'X\(//\)$' \| \
12908          X"$as_dir" : 'X\(/\)' \| \
12909          .     : '\(.\)' 2>/dev/null ||
12910 echo X"$as_dir" |
12911     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12912           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12913           /^X\(\/\/\)$/{ s//\1/; q; }
12914           /^X\(\/\).*/{ s//\1/; q; }
12915           s/.*/./; q'`
12916     done
12917     test ! -n "$as_dirs" || mkdir $as_dirs
12918   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12919 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12920    { (exit 1); exit 1; }; }; }
12921
12922       rm -f $ac_file
12923       mv $tmp/config.h $ac_file
12924     fi
12925   else
12926     cat $tmp/config.h
12927     rm -f $tmp/config.h
12928   fi
12929 done
12930 _ACEOF
12931 cat >>$CONFIG_STATUS <<\_ACEOF
12932
12933 #
12934 # CONFIG_COMMANDS section.
12935 #
12936 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
12937   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
12938   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
12939   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
12940 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12941          X"$ac_dest" : 'X\(//\)[^/]' \| \
12942          X"$ac_dest" : 'X\(//\)$' \| \
12943          X"$ac_dest" : 'X\(/\)' \| \
12944          .     : '\(.\)' 2>/dev/null ||
12945 echo X"$ac_dest" |
12946     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12947           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12948           /^X\(\/\/\)$/{ s//\1/; q; }
12949           /^X\(\/\).*/{ s//\1/; q; }
12950           s/.*/./; q'`
12951   ac_builddir=.
12952
12953 if test "$ac_dir" != .; then
12954   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12955   # A "../" for each directory in $ac_dir_suffix.
12956   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12957 else
12958   ac_dir_suffix= ac_top_builddir=
12959 fi
12960
12961 case $srcdir in
12962   .)  # No --srcdir option.  We are building in place.
12963     ac_srcdir=.
12964     if test -z "$ac_top_builddir"; then
12965        ac_top_srcdir=.
12966     else
12967        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12968     fi ;;
12969   [\\/]* | ?:[\\/]* )  # Absolute path.
12970     ac_srcdir=$srcdir$ac_dir_suffix;
12971     ac_top_srcdir=$srcdir ;;
12972   *) # Relative path.
12973     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12974     ac_top_srcdir=$ac_top_builddir$srcdir ;;
12975 esac
12976 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
12977 # absolute.
12978 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
12979 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
12980 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
12981 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
12982
12983
12984   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
12985 echo "$as_me: executing $ac_dest commands" >&6;}
12986   case $ac_dest in
12987     default-1 ) if test -f .devel; then
12988         echo timestamp > stamp-h
12989         cat Makefile-devel-adds >> Makefile
12990         make depend
12991 fi ;;
12992   esac
12993 done
12994 _ACEOF
12995
12996 cat >>$CONFIG_STATUS <<\_ACEOF
12997
12998 { (exit 0); exit 0; }
12999 _ACEOF
13000 chmod +x $CONFIG_STATUS
13001 ac_clean_files=$ac_clean_files_save
13002
13003
13004 # configure is writing to config.log, and then calls config.status.
13005 # config.status does its own redirection, appending to config.log.
13006 # Unfortunately, on DOS this fails, as config.log is still kept open
13007 # by configure, so config.status won't be able to write to it; its
13008 # output is simply discarded.  So we exec the FD to /dev/null,
13009 # effectively closing config.log, so it can be properly (re)opened and
13010 # appended to by config.status.  When coming back to configure, we
13011 # need to make the FD available again.
13012 if test "$no_create" != yes; then
13013   ac_cs_success=:
13014   ac_config_status_args=
13015   test "$silent" = yes &&
13016     ac_config_status_args="$ac_config_status_args --quiet"
13017   exec 5>/dev/null
13018   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13019   exec 5>>config.log
13020   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13021   # would make configure fail if this is the last instruction.
13022   $ac_cs_success || { (exit 1); exit 1; }
13023 fi
13024
13025 exit 0