OSDN Git Service

2013.10.24
[uclinux-h8/uClinux-dist.git] / user / tcpdump / configure
1 #! /bin/sh
2 # From configure.in Revision: 1.188.2.6 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.59.
5 #
6 # Copyright (C) 2003 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization.  ##
11 ## --------------------- ##
12
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15   emulate sh
16   NULLCMD=:
17   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18   # is contrary to our usage.  Disable this feature.
19   alias -g '${1+"$@"}'='"$@"'
20 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21   set -o posix
22 fi
23 DUALCASE=1; export DUALCASE # for MKS sh
24
25 # Support unset when possible.
26 if ( (MAIL=60; unset MAIL) || exit) >/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 -z "`(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   test -d ./-p && rmdir ./-p
223   as_mkdir_p=false
224 fi
225
226 as_executable_p="test -f"
227
228 # Sed expression to map a string onto a valid CPP name.
229 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230
231 # Sed expression to map a string onto a valid variable name.
232 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
233
234
235 # IFS
236 # We need space, tab and new line, in precisely that order.
237 as_nl='
238 '
239 IFS="   $as_nl"
240
241 # CDPATH.
242 $as_unset CDPATH
243
244
245 # Name of the host.
246 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
247 # so uname gets run too.
248 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
249
250 exec 6>&1
251
252 #
253 # Initializations.
254 #
255 ac_default_prefix=/usr/local
256 ac_config_libobj_dir=.
257 cross_compiling=no
258 subdirs=
259 MFLAGS=
260 MAKEFLAGS=
261 SHELL=${CONFIG_SHELL-/bin/sh}
262
263 # Maximum number of lines to put in a shell here document.
264 # This variable seems obsolete.  It should probably be removed, and
265 # only ac_max_sed_lines should be used.
266 : ${ac_max_here_lines=38}
267
268 # Identity of this package.
269 PACKAGE_NAME=
270 PACKAGE_TARNAME=
271 PACKAGE_VERSION=
272 PACKAGE_STRING=
273 PACKAGE_BUGREPORT=
274
275 ac_unique_file="tcpdump.c"
276 # Factoring default headers for most tests.
277 ac_includes_default="\
278 #include <stdio.h>
279 #if HAVE_SYS_TYPES_H
280 # include <sys/types.h>
281 #endif
282 #if HAVE_SYS_STAT_H
283 # include <sys/stat.h>
284 #endif
285 #if STDC_HEADERS
286 # include <stdlib.h>
287 # include <stddef.h>
288 #else
289 # if HAVE_STDLIB_H
290 #  include <stdlib.h>
291 # endif
292 #endif
293 #if HAVE_STRING_H
294 # if !STDC_HEADERS && HAVE_MEMORY_H
295 #  include <memory.h>
296 # endif
297 # include <string.h>
298 #endif
299 #if HAVE_STRINGS_H
300 # include <strings.h>
301 #endif
302 #if HAVE_INTTYPES_H
303 # include <inttypes.h>
304 #else
305 # if HAVE_STDINT_H
306 #  include <stdint.h>
307 # endif
308 #endif
309 #if HAVE_UNISTD_H
310 # include <unistd.h>
311 #endif"
312
313 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os 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'
314 ac_subst_files=''
315
316 # Initialize some variables set by options.
317 ac_init_help=
318 ac_init_version=false
319 # The variables have the same names as the options, with
320 # dashes changed to underlines.
321 cache_file=/dev/null
322 exec_prefix=NONE
323 no_create=
324 no_recursion=
325 prefix=NONE
326 program_prefix=NONE
327 program_suffix=NONE
328 program_transform_name=s,x,x,
329 silent=
330 site=
331 srcdir=
332 verbose=
333 x_includes=NONE
334 x_libraries=NONE
335
336 # Installation directory options.
337 # These are left unexpanded so users can "make install exec_prefix=/foo"
338 # and all the variables that are supposed to be based on exec_prefix
339 # by default will actually change.
340 # Use braces instead of parens because sh, perl, etc. also accept them.
341 bindir='${exec_prefix}/bin'
342 sbindir='${exec_prefix}/sbin'
343 libexecdir='${exec_prefix}/libexec'
344 datadir='${prefix}/share'
345 sysconfdir='${prefix}/etc'
346 sharedstatedir='${prefix}/com'
347 localstatedir='${prefix}/var'
348 libdir='${exec_prefix}/lib'
349 includedir='${prefix}/include'
350 oldincludedir='/usr/include'
351 infodir='${prefix}/info'
352 mandir='${prefix}/man'
353
354 ac_prev=
355 for ac_option
356 do
357   # If the previous option needs an argument, assign it.
358   if test -n "$ac_prev"; then
359     eval "$ac_prev=\$ac_option"
360     ac_prev=
361     continue
362   fi
363
364   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365
366   # Accept the important Cygnus configure options, so we can diagnose typos.
367
368   case $ac_option in
369
370   -bindir | --bindir | --bindi | --bind | --bin | --bi)
371     ac_prev=bindir ;;
372   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
373     bindir=$ac_optarg ;;
374
375   -build | --build | --buil | --bui | --bu)
376     ac_prev=build_alias ;;
377   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
378     build_alias=$ac_optarg ;;
379
380   -cache-file | --cache-file | --cache-fil | --cache-fi \
381   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
382     ac_prev=cache_file ;;
383   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
384   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
385     cache_file=$ac_optarg ;;
386
387   --config-cache | -C)
388     cache_file=config.cache ;;
389
390   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
391     ac_prev=datadir ;;
392   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
393   | --da=*)
394     datadir=$ac_optarg ;;
395
396   -disable-* | --disable-*)
397     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
398     # Reject names that are not valid shell variable names.
399     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
400       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
401    { (exit 1); exit 1; }; }
402     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
403     eval "enable_$ac_feature=no" ;;
404
405   -enable-* | --enable-*)
406     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
407     # Reject names that are not valid shell variable names.
408     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
409       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
410    { (exit 1); exit 1; }; }
411     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
412     case $ac_option in
413       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
414       *) ac_optarg=yes ;;
415     esac
416     eval "enable_$ac_feature='$ac_optarg'" ;;
417
418   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
419   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
420   | --exec | --exe | --ex)
421     ac_prev=exec_prefix ;;
422   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
423   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
424   | --exec=* | --exe=* | --ex=*)
425     exec_prefix=$ac_optarg ;;
426
427   -gas | --gas | --ga | --g)
428     # Obsolete; use --with-gas.
429     with_gas=yes ;;
430
431   -help | --help | --hel | --he | -h)
432     ac_init_help=long ;;
433   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
434     ac_init_help=recursive ;;
435   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
436     ac_init_help=short ;;
437
438   -host | --host | --hos | --ho)
439     ac_prev=host_alias ;;
440   -host=* | --host=* | --hos=* | --ho=*)
441     host_alias=$ac_optarg ;;
442
443   -includedir | --includedir | --includedi | --included | --include \
444   | --includ | --inclu | --incl | --inc)
445     ac_prev=includedir ;;
446   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
447   | --includ=* | --inclu=* | --incl=* | --inc=*)
448     includedir=$ac_optarg ;;
449
450   -infodir | --infodir | --infodi | --infod | --info | --inf)
451     ac_prev=infodir ;;
452   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
453     infodir=$ac_optarg ;;
454
455   -libdir | --libdir | --libdi | --libd)
456     ac_prev=libdir ;;
457   -libdir=* | --libdir=* | --libdi=* | --libd=*)
458     libdir=$ac_optarg ;;
459
460   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
461   | --libexe | --libex | --libe)
462     ac_prev=libexecdir ;;
463   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
464   | --libexe=* | --libex=* | --libe=*)
465     libexecdir=$ac_optarg ;;
466
467   -localstatedir | --localstatedir | --localstatedi | --localstated \
468   | --localstate | --localstat | --localsta | --localst \
469   | --locals | --local | --loca | --loc | --lo)
470     ac_prev=localstatedir ;;
471   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
472   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
473   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
474     localstatedir=$ac_optarg ;;
475
476   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
477     ac_prev=mandir ;;
478   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
479     mandir=$ac_optarg ;;
480
481   -nfp | --nfp | --nf)
482     # Obsolete; use --without-fp.
483     with_fp=no ;;
484
485   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
486   | --no-cr | --no-c | -n)
487     no_create=yes ;;
488
489   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
490   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
491     no_recursion=yes ;;
492
493   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
494   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
495   | --oldin | --oldi | --old | --ol | --o)
496     ac_prev=oldincludedir ;;
497   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
498   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
499   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
500     oldincludedir=$ac_optarg ;;
501
502   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
503     ac_prev=prefix ;;
504   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
505     prefix=$ac_optarg ;;
506
507   -program-prefix | --program-prefix | --program-prefi | --program-pref \
508   | --program-pre | --program-pr | --program-p)
509     ac_prev=program_prefix ;;
510   -program-prefix=* | --program-prefix=* | --program-prefi=* \
511   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
512     program_prefix=$ac_optarg ;;
513
514   -program-suffix | --program-suffix | --program-suffi | --program-suff \
515   | --program-suf | --program-su | --program-s)
516     ac_prev=program_suffix ;;
517   -program-suffix=* | --program-suffix=* | --program-suffi=* \
518   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
519     program_suffix=$ac_optarg ;;
520
521   -program-transform-name | --program-transform-name \
522   | --program-transform-nam | --program-transform-na \
523   | --program-transform-n | --program-transform- \
524   | --program-transform | --program-transfor \
525   | --program-transfo | --program-transf \
526   | --program-trans | --program-tran \
527   | --progr-tra | --program-tr | --program-t)
528     ac_prev=program_transform_name ;;
529   -program-transform-name=* | --program-transform-name=* \
530   | --program-transform-nam=* | --program-transform-na=* \
531   | --program-transform-n=* | --program-transform-=* \
532   | --program-transform=* | --program-transfor=* \
533   | --program-transfo=* | --program-transf=* \
534   | --program-trans=* | --program-tran=* \
535   | --progr-tra=* | --program-tr=* | --program-t=*)
536     program_transform_name=$ac_optarg ;;
537
538   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
539   | -silent | --silent | --silen | --sile | --sil)
540     silent=yes ;;
541
542   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
543     ac_prev=sbindir ;;
544   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
545   | --sbi=* | --sb=*)
546     sbindir=$ac_optarg ;;
547
548   -sharedstatedir | --sharedstatedir | --sharedstatedi \
549   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
550   | --sharedst | --shareds | --shared | --share | --shar \
551   | --sha | --sh)
552     ac_prev=sharedstatedir ;;
553   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
554   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
555   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
556   | --sha=* | --sh=*)
557     sharedstatedir=$ac_optarg ;;
558
559   -site | --site | --sit)
560     ac_prev=site ;;
561   -site=* | --site=* | --sit=*)
562     site=$ac_optarg ;;
563
564   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
565     ac_prev=srcdir ;;
566   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
567     srcdir=$ac_optarg ;;
568
569   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
570   | --syscon | --sysco | --sysc | --sys | --sy)
571     ac_prev=sysconfdir ;;
572   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
573   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
574     sysconfdir=$ac_optarg ;;
575
576   -target | --target | --targe | --targ | --tar | --ta | --t)
577     ac_prev=target_alias ;;
578   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
579     target_alias=$ac_optarg ;;
580
581   -v | -verbose | --verbose | --verbos | --verbo | --verb)
582     verbose=yes ;;
583
584   -version | --version | --versio | --versi | --vers | -V)
585     ac_init_version=: ;;
586
587   -with-* | --with-*)
588     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
589     # Reject names that are not valid shell variable names.
590     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
591       { echo "$as_me: error: invalid package name: $ac_package" >&2
592    { (exit 1); exit 1; }; }
593     ac_package=`echo $ac_package| sed 's/-/_/g'`
594     case $ac_option in
595       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
596       *) ac_optarg=yes ;;
597     esac
598     eval "with_$ac_package='$ac_optarg'" ;;
599
600   -without-* | --without-*)
601     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
602     # Reject names that are not valid shell variable names.
603     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
604       { echo "$as_me: error: invalid package name: $ac_package" >&2
605    { (exit 1); exit 1; }; }
606     ac_package=`echo $ac_package | sed 's/-/_/g'`
607     eval "with_$ac_package=no" ;;
608
609   --x)
610     # Obsolete; use --with-x.
611     with_x=yes ;;
612
613   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
614   | --x-incl | --x-inc | --x-in | --x-i)
615     ac_prev=x_includes ;;
616   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
617   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
618     x_includes=$ac_optarg ;;
619
620   -x-libraries | --x-libraries | --x-librarie | --x-librari \
621   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
622     ac_prev=x_libraries ;;
623   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
624   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
625     x_libraries=$ac_optarg ;;
626
627   -*) { echo "$as_me: error: unrecognized option: $ac_option
628 Try \`$0 --help' for more information." >&2
629    { (exit 1); exit 1; }; }
630     ;;
631
632   *=*)
633     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
634     # Reject names that are not valid shell variable names.
635     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
636       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
637    { (exit 1); exit 1; }; }
638     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
639     eval "$ac_envvar='$ac_optarg'"
640     export $ac_envvar ;;
641
642   *)
643     # FIXME: should be removed in autoconf 3.0.
644     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
645     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
646       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
647     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
648     ;;
649
650   esac
651 done
652
653 if test -n "$ac_prev"; then
654   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
655   { echo "$as_me: error: missing argument to $ac_option" >&2
656    { (exit 1); exit 1; }; }
657 fi
658
659 # Be sure to have absolute paths.
660 for ac_var in exec_prefix prefix
661 do
662   eval ac_val=$`echo $ac_var`
663   case $ac_val in
664     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
665     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
666    { (exit 1); exit 1; }; };;
667   esac
668 done
669
670 # Be sure to have absolute paths.
671 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
672               localstatedir libdir includedir oldincludedir infodir mandir
673 do
674   eval ac_val=$`echo $ac_var`
675   case $ac_val in
676     [\\/$]* | ?:[\\/]* ) ;;
677     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
678    { (exit 1); exit 1; }; };;
679   esac
680 done
681
682 # There might be people who depend on the old broken behavior: `$host'
683 # used to hold the argument of --host etc.
684 # FIXME: To remove some day.
685 build=$build_alias
686 host=$host_alias
687 target=$target_alias
688
689 # FIXME: To remove some day.
690 if test "x$host_alias" != x; then
691   if test "x$build_alias" = x; then
692     cross_compiling=maybe
693     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
694     If a cross compiler is detected then cross compile mode will be used." >&2
695   elif test "x$build_alias" != "x$host_alias"; then
696     cross_compiling=yes
697   fi
698 fi
699
700 ac_tool_prefix=
701 test -n "$host_alias" && ac_tool_prefix=$host_alias-
702
703 test "$silent" = yes && exec 6>/dev/null
704
705
706 # Find the source files, if location was not specified.
707 if test -z "$srcdir"; then
708   ac_srcdir_defaulted=yes
709   # Try the directory containing this script, then its parent.
710   ac_confdir=`(dirname "$0") 2>/dev/null ||
711 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
712          X"$0" : 'X\(//\)[^/]' \| \
713          X"$0" : 'X\(//\)$' \| \
714          X"$0" : 'X\(/\)' \| \
715          .     : '\(.\)' 2>/dev/null ||
716 echo X"$0" |
717     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
718           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
719           /^X\(\/\/\)$/{ s//\1/; q; }
720           /^X\(\/\).*/{ s//\1/; q; }
721           s/.*/./; q'`
722   srcdir=$ac_confdir
723   if test ! -r $srcdir/$ac_unique_file; then
724     srcdir=..
725   fi
726 else
727   ac_srcdir_defaulted=no
728 fi
729 if test ! -r $srcdir/$ac_unique_file; then
730   if test "$ac_srcdir_defaulted" = yes; then
731     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
732    { (exit 1); exit 1; }; }
733   else
734     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
735    { (exit 1); exit 1; }; }
736   fi
737 fi
738 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
739   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
740    { (exit 1); exit 1; }; }
741 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
742 ac_env_build_alias_set=${build_alias+set}
743 ac_env_build_alias_value=$build_alias
744 ac_cv_env_build_alias_set=${build_alias+set}
745 ac_cv_env_build_alias_value=$build_alias
746 ac_env_host_alias_set=${host_alias+set}
747 ac_env_host_alias_value=$host_alias
748 ac_cv_env_host_alias_set=${host_alias+set}
749 ac_cv_env_host_alias_value=$host_alias
750 ac_env_target_alias_set=${target_alias+set}
751 ac_env_target_alias_value=$target_alias
752 ac_cv_env_target_alias_set=${target_alias+set}
753 ac_cv_env_target_alias_value=$target_alias
754 ac_env_CC_set=${CC+set}
755 ac_env_CC_value=$CC
756 ac_cv_env_CC_set=${CC+set}
757 ac_cv_env_CC_value=$CC
758 ac_env_CFLAGS_set=${CFLAGS+set}
759 ac_env_CFLAGS_value=$CFLAGS
760 ac_cv_env_CFLAGS_set=${CFLAGS+set}
761 ac_cv_env_CFLAGS_value=$CFLAGS
762 ac_env_LDFLAGS_set=${LDFLAGS+set}
763 ac_env_LDFLAGS_value=$LDFLAGS
764 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
765 ac_cv_env_LDFLAGS_value=$LDFLAGS
766 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
767 ac_env_CPPFLAGS_value=$CPPFLAGS
768 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
769 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
770 ac_env_CPP_set=${CPP+set}
771 ac_env_CPP_value=$CPP
772 ac_cv_env_CPP_set=${CPP+set}
773 ac_cv_env_CPP_value=$CPP
774
775 #
776 # Report the --help message.
777 #
778 if test "$ac_init_help" = "long"; then
779   # Omit some internal or obsolete options to make the list less imposing.
780   # This message is too long to be a string in the A/UX 3.1 sh.
781   cat <<_ACEOF
782 \`configure' configures this package to adapt to many kinds of systems.
783
784 Usage: $0 [OPTION]... [VAR=VALUE]...
785
786 To assign environment variables (e.g., CC, CFLAGS...), specify them as
787 VAR=VALUE.  See below for descriptions of some of the useful variables.
788
789 Defaults for the options are specified in brackets.
790
791 Configuration:
792   -h, --help              display this help and exit
793       --help=short        display options specific to this package
794       --help=recursive    display the short help of all the included packages
795   -V, --version           display version information and exit
796   -q, --quiet, --silent   do not print \`checking...' messages
797       --cache-file=FILE   cache test results in FILE [disabled]
798   -C, --config-cache      alias for \`--cache-file=config.cache'
799   -n, --no-create         do not create output files
800       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
801
802 _ACEOF
803
804   cat <<_ACEOF
805 Installation directories:
806   --prefix=PREFIX         install architecture-independent files in PREFIX
807                           [$ac_default_prefix]
808   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
809                           [PREFIX]
810
811 By default, \`make install' will install all the files in
812 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
813 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
814 for instance \`--prefix=\$HOME'.
815
816 For better control, use the options below.
817
818 Fine tuning of the installation directories:
819   --bindir=DIR           user executables [EPREFIX/bin]
820   --sbindir=DIR          system admin executables [EPREFIX/sbin]
821   --libexecdir=DIR       program executables [EPREFIX/libexec]
822   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
823   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
824   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
825   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
826   --libdir=DIR           object code libraries [EPREFIX/lib]
827   --includedir=DIR       C header files [PREFIX/include]
828   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
829   --infodir=DIR          info documentation [PREFIX/info]
830   --mandir=DIR           man documentation [PREFIX/man]
831 _ACEOF
832
833   cat <<\_ACEOF
834
835 System types:
836   --build=BUILD     configure for building on BUILD [guessed]
837   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
838 _ACEOF
839 fi
840
841 if test -n "$ac_init_help"; then
842
843   cat <<\_ACEOF
844
845 Optional Features:
846   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
847   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
848   --enable-smb            enable possibly-buggy SMB printer default=yes
849   --disable-smb           disable possibly-buggy SMB printer
850   --enable-ipv6           enable ipv6 (with ipv4) support
851   --disable-ipv6          disable ipv6 support
852
853 Optional Packages:
854   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
855   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
856   --without-gcc           don't use gcc
857   --with-user=USERNAME    drop privileges by default to USERNAME
858   --with-chroot=DIRECTORY when dropping privileges, chroot to DIRECTORY
859   --without-crypto        disable crypto support
860
861 Some influential environment variables:
862   CC          C compiler command
863   CFLAGS      C compiler flags
864   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
865               nonstandard directory <lib dir>
866   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
867               headers in a nonstandard directory <include dir>
868   CPP         C preprocessor
869
870 Use these variables to override the choices made by `configure' or to help
871 it to find libraries and programs with nonstandard names/locations.
872
873 _ACEOF
874 fi
875
876 if test "$ac_init_help" = "recursive"; then
877   # If there are subdirs, report their specific --help.
878   ac_popdir=`pwd`
879   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
880     test -d $ac_dir || continue
881     ac_builddir=.
882
883 if test "$ac_dir" != .; then
884   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
885   # A "../" for each directory in $ac_dir_suffix.
886   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
887 else
888   ac_dir_suffix= ac_top_builddir=
889 fi
890
891 case $srcdir in
892   .)  # No --srcdir option.  We are building in place.
893     ac_srcdir=.
894     if test -z "$ac_top_builddir"; then
895        ac_top_srcdir=.
896     else
897        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
898     fi ;;
899   [\\/]* | ?:[\\/]* )  # Absolute path.
900     ac_srcdir=$srcdir$ac_dir_suffix;
901     ac_top_srcdir=$srcdir ;;
902   *) # Relative path.
903     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
904     ac_top_srcdir=$ac_top_builddir$srcdir ;;
905 esac
906
907 # Do not use `cd foo && pwd` to compute absolute paths, because
908 # the directories may not exist.
909 case `pwd` in
910 .) ac_abs_builddir="$ac_dir";;
911 *)
912   case "$ac_dir" in
913   .) ac_abs_builddir=`pwd`;;
914   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
915   *) ac_abs_builddir=`pwd`/"$ac_dir";;
916   esac;;
917 esac
918 case $ac_abs_builddir in
919 .) ac_abs_top_builddir=${ac_top_builddir}.;;
920 *)
921   case ${ac_top_builddir}. in
922   .) ac_abs_top_builddir=$ac_abs_builddir;;
923   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
924   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
925   esac;;
926 esac
927 case $ac_abs_builddir in
928 .) ac_abs_srcdir=$ac_srcdir;;
929 *)
930   case $ac_srcdir in
931   .) ac_abs_srcdir=$ac_abs_builddir;;
932   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
933   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
934   esac;;
935 esac
936 case $ac_abs_builddir in
937 .) ac_abs_top_srcdir=$ac_top_srcdir;;
938 *)
939   case $ac_top_srcdir in
940   .) ac_abs_top_srcdir=$ac_abs_builddir;;
941   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
942   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
943   esac;;
944 esac
945
946     cd $ac_dir
947     # Check for guested configure; otherwise get Cygnus style configure.
948     if test -f $ac_srcdir/configure.gnu; then
949       echo
950       $SHELL $ac_srcdir/configure.gnu  --help=recursive
951     elif test -f $ac_srcdir/configure; then
952       echo
953       $SHELL $ac_srcdir/configure  --help=recursive
954     elif test -f $ac_srcdir/configure.ac ||
955            test -f $ac_srcdir/configure.in; then
956       echo
957       $ac_configure --help
958     else
959       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
960     fi
961     cd $ac_popdir
962   done
963 fi
964
965 test -n "$ac_init_help" && exit 0
966 if $ac_init_version; then
967   cat <<\_ACEOF
968
969 Copyright (C) 2003 Free Software Foundation, Inc.
970 This configure script is free software; the Free Software Foundation
971 gives unlimited permission to copy, distribute and modify it.
972 _ACEOF
973   exit 0
974 fi
975 exec 5>config.log
976 cat >&5 <<_ACEOF
977 This file contains any messages produced by compilers while
978 running configure, to aid debugging if configure makes a mistake.
979
980 It was created by $as_me, which was
981 generated by GNU Autoconf 2.59.  Invocation command line was
982
983   $ $0 $@
984
985 _ACEOF
986 {
987 cat <<_ASUNAME
988 ## --------- ##
989 ## Platform. ##
990 ## --------- ##
991
992 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
993 uname -m = `(uname -m) 2>/dev/null || echo unknown`
994 uname -r = `(uname -r) 2>/dev/null || echo unknown`
995 uname -s = `(uname -s) 2>/dev/null || echo unknown`
996 uname -v = `(uname -v) 2>/dev/null || echo unknown`
997
998 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
999 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1000
1001 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1002 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1003 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1004 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1005 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1006 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1007 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1008
1009 _ASUNAME
1010
1011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1012 for as_dir in $PATH
1013 do
1014   IFS=$as_save_IFS
1015   test -z "$as_dir" && as_dir=.
1016   echo "PATH: $as_dir"
1017 done
1018
1019 } >&5
1020
1021 cat >&5 <<_ACEOF
1022
1023
1024 ## ----------- ##
1025 ## Core tests. ##
1026 ## ----------- ##
1027
1028 _ACEOF
1029
1030
1031 # Keep a trace of the command line.
1032 # Strip out --no-create and --no-recursion so they do not pile up.
1033 # Strip out --silent because we don't want to record it for future runs.
1034 # Also quote any args containing shell meta-characters.
1035 # Make two passes to allow for proper duplicate-argument suppression.
1036 ac_configure_args=
1037 ac_configure_args0=
1038 ac_configure_args1=
1039 ac_sep=
1040 ac_must_keep_next=false
1041 for ac_pass in 1 2
1042 do
1043   for ac_arg
1044   do
1045     case $ac_arg in
1046     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1047     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1048     | -silent | --silent | --silen | --sile | --sil)
1049       continue ;;
1050     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1051       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1052     esac
1053     case $ac_pass in
1054     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1055     2)
1056       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1057       if test $ac_must_keep_next = true; then
1058         ac_must_keep_next=false # Got value, back to normal.
1059       else
1060         case $ac_arg in
1061           *=* | --config-cache | -C | -disable-* | --disable-* \
1062           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1063           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1064           | -with-* | --with-* | -without-* | --without-* | --x)
1065             case "$ac_configure_args0 " in
1066               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1067             esac
1068             ;;
1069           -* ) ac_must_keep_next=true ;;
1070         esac
1071       fi
1072       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1073       # Get rid of the leading space.
1074       ac_sep=" "
1075       ;;
1076     esac
1077   done
1078 done
1079 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1080 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1081
1082 # When interrupted or exit'd, cleanup temporary files, and complete
1083 # config.log.  We remove comments because anyway the quotes in there
1084 # would cause problems or look ugly.
1085 # WARNING: Be sure not to use single quotes in there, as some shells,
1086 # such as our DU 5.0 friend, will then `close' the trap.
1087 trap 'exit_status=$?
1088   # Save into config.log some information that might help in debugging.
1089   {
1090     echo
1091
1092     cat <<\_ASBOX
1093 ## ---------------- ##
1094 ## Cache variables. ##
1095 ## ---------------- ##
1096 _ASBOX
1097     echo
1098     # The following way of writing the cache mishandles newlines in values,
1099 {
1100   (set) 2>&1 |
1101     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1102     *ac_space=\ *)
1103       sed -n \
1104         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1105           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1106       ;;
1107     *)
1108       sed -n \
1109         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1110       ;;
1111     esac;
1112 }
1113     echo
1114
1115     cat <<\_ASBOX
1116 ## ----------------- ##
1117 ## Output variables. ##
1118 ## ----------------- ##
1119 _ASBOX
1120     echo
1121     for ac_var in $ac_subst_vars
1122     do
1123       eval ac_val=$`echo $ac_var`
1124       echo "$ac_var='"'"'$ac_val'"'"'"
1125     done | sort
1126     echo
1127
1128     if test -n "$ac_subst_files"; then
1129       cat <<\_ASBOX
1130 ## ------------- ##
1131 ## Output files. ##
1132 ## ------------- ##
1133 _ASBOX
1134       echo
1135       for ac_var in $ac_subst_files
1136       do
1137         eval ac_val=$`echo $ac_var`
1138         echo "$ac_var='"'"'$ac_val'"'"'"
1139       done | sort
1140       echo
1141     fi
1142
1143     if test -s confdefs.h; then
1144       cat <<\_ASBOX
1145 ## ----------- ##
1146 ## confdefs.h. ##
1147 ## ----------- ##
1148 _ASBOX
1149       echo
1150       sed "/^$/d" confdefs.h | sort
1151       echo
1152     fi
1153     test "$ac_signal" != 0 &&
1154       echo "$as_me: caught signal $ac_signal"
1155     echo "$as_me: exit $exit_status"
1156   } >&5
1157   rm -f core *.core &&
1158   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1159     exit $exit_status
1160      ' 0
1161 for ac_signal in 1 2 13 15; do
1162   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1163 done
1164 ac_signal=0
1165
1166 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1167 rm -rf conftest* confdefs.h
1168 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1169 echo >confdefs.h
1170
1171 # Predefined preprocessor variables.
1172
1173 cat >>confdefs.h <<_ACEOF
1174 #define PACKAGE_NAME "$PACKAGE_NAME"
1175 _ACEOF
1176
1177
1178 cat >>confdefs.h <<_ACEOF
1179 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1180 _ACEOF
1181
1182
1183 cat >>confdefs.h <<_ACEOF
1184 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1185 _ACEOF
1186
1187
1188 cat >>confdefs.h <<_ACEOF
1189 #define PACKAGE_STRING "$PACKAGE_STRING"
1190 _ACEOF
1191
1192
1193 cat >>confdefs.h <<_ACEOF
1194 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1195 _ACEOF
1196
1197
1198 # Let the site file select an alternate cache file if it wants to.
1199 # Prefer explicitly selected file to automatically selected ones.
1200 if test -z "$CONFIG_SITE"; then
1201   if test "x$prefix" != xNONE; then
1202     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1203   else
1204     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1205   fi
1206 fi
1207 for ac_site_file in $CONFIG_SITE; do
1208   if test -r "$ac_site_file"; then
1209     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1210 echo "$as_me: loading site script $ac_site_file" >&6;}
1211     sed 's/^/| /' "$ac_site_file" >&5
1212     . "$ac_site_file"
1213   fi
1214 done
1215
1216 if test -r "$cache_file"; then
1217   # Some versions of bash will fail to source /dev/null (special
1218   # files actually), so we avoid doing that.
1219   if test -f "$cache_file"; then
1220     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1221 echo "$as_me: loading cache $cache_file" >&6;}
1222     case $cache_file in
1223       [\\/]* | ?:[\\/]* ) . $cache_file;;
1224       *)                      . ./$cache_file;;
1225     esac
1226   fi
1227 else
1228   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1229 echo "$as_me: creating cache $cache_file" >&6;}
1230   >$cache_file
1231 fi
1232
1233 # Check that the precious variables saved in the cache have kept the same
1234 # value.
1235 ac_cache_corrupted=false
1236 for ac_var in `(set) 2>&1 |
1237                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1238   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1239   eval ac_new_set=\$ac_env_${ac_var}_set
1240   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1241   eval ac_new_val="\$ac_env_${ac_var}_value"
1242   case $ac_old_set,$ac_new_set in
1243     set,)
1244       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1245 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1246       ac_cache_corrupted=: ;;
1247     ,set)
1248       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1249 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1250       ac_cache_corrupted=: ;;
1251     ,);;
1252     *)
1253       if test "x$ac_old_val" != "x$ac_new_val"; then
1254         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1255 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1256         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1257 echo "$as_me:   former value:  $ac_old_val" >&2;}
1258         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1259 echo "$as_me:   current value: $ac_new_val" >&2;}
1260         ac_cache_corrupted=:
1261       fi;;
1262   esac
1263   # Pass precious variables to config.status.
1264   if test "$ac_new_set" = set; then
1265     case $ac_new_val in
1266     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1267       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1268     *) ac_arg=$ac_var=$ac_new_val ;;
1269     esac
1270     case " $ac_configure_args " in
1271       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1272       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1273     esac
1274   fi
1275 done
1276 if $ac_cache_corrupted; then
1277   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1278 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1279   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1280 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1281    { (exit 1); exit 1; }; }
1282 fi
1283
1284 ac_ext=c
1285 ac_cpp='$CPP $CPPFLAGS'
1286 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1287 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1288 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309 ac_aux_dir=
1310 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1311   if test -f $ac_dir/install-sh; then
1312     ac_aux_dir=$ac_dir
1313     ac_install_sh="$ac_aux_dir/install-sh -c"
1314     break
1315   elif test -f $ac_dir/install.sh; then
1316     ac_aux_dir=$ac_dir
1317     ac_install_sh="$ac_aux_dir/install.sh -c"
1318     break
1319   elif test -f $ac_dir/shtool; then
1320     ac_aux_dir=$ac_dir
1321     ac_install_sh="$ac_aux_dir/shtool install -c"
1322     break
1323   fi
1324 done
1325 if test -z "$ac_aux_dir"; then
1326   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1327 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1328    { (exit 1); exit 1; }; }
1329 fi
1330 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1331 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1332 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1333
1334 # Make sure we can run config.sub.
1335 $ac_config_sub sun4 >/dev/null 2>&1 ||
1336   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1337 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1338    { (exit 1); exit 1; }; }
1339
1340 echo "$as_me:$LINENO: checking build system type" >&5
1341 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1342 if test "${ac_cv_build+set}" = set; then
1343   echo $ECHO_N "(cached) $ECHO_C" >&6
1344 else
1345   ac_cv_build_alias=$build_alias
1346 test -z "$ac_cv_build_alias" &&
1347   ac_cv_build_alias=`$ac_config_guess`
1348 test -z "$ac_cv_build_alias" &&
1349   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1350 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1351    { (exit 1); exit 1; }; }
1352 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1353   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1354 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1355    { (exit 1); exit 1; }; }
1356
1357 fi
1358 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1359 echo "${ECHO_T}$ac_cv_build" >&6
1360 build=$ac_cv_build
1361 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1362 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1363 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1364
1365
1366 echo "$as_me:$LINENO: checking host system type" >&5
1367 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1368 if test "${ac_cv_host+set}" = set; then
1369   echo $ECHO_N "(cached) $ECHO_C" >&6
1370 else
1371   ac_cv_host_alias=$host_alias
1372 test -z "$ac_cv_host_alias" &&
1373   ac_cv_host_alias=$ac_cv_build_alias
1374 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1375   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1376 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1377    { (exit 1); exit 1; }; }
1378
1379 fi
1380 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1381 echo "${ECHO_T}$ac_cv_host" >&6
1382 host=$ac_cv_host
1383 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1384 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1385 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1386
1387
1388
1389
1390
1391
1392
1393
1394 # Check whether --with-gcc or --without-gcc was given.
1395 if test "${with_gcc+set}" = set; then
1396   withval="$with_gcc"
1397
1398 fi;
1399     V_CCOPT="-O"
1400     V_INCLS=""
1401     if test "${srcdir}" != "." ; then
1402             V_INCLS="-I\$(srcdir)"
1403     fi
1404     if test "${CFLAGS+set}" = set; then
1405             LBL_CFLAGS="$CFLAGS"
1406     fi
1407     if test -z "$CC" ; then
1408             case "$host_os" in
1409
1410             bsdi*)
1411                     # Extract the first word of "shlicc2", so it can be a program name with args.
1412 set dummy shlicc2; ac_word=$2
1413 echo "$as_me:$LINENO: checking for $ac_word" >&5
1414 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1415 if test "${ac_cv_prog_SHLICC2+set}" = set; then
1416   echo $ECHO_N "(cached) $ECHO_C" >&6
1417 else
1418   if test -n "$SHLICC2"; then
1419   ac_cv_prog_SHLICC2="$SHLICC2" # Let the user override the test.
1420 else
1421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1422 for as_dir in $PATH
1423 do
1424   IFS=$as_save_IFS
1425   test -z "$as_dir" && as_dir=.
1426   for ac_exec_ext in '' $ac_executable_extensions; do
1427   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1428     ac_cv_prog_SHLICC2="yes"
1429     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1430     break 2
1431   fi
1432 done
1433 done
1434
1435   test -z "$ac_cv_prog_SHLICC2" && ac_cv_prog_SHLICC2="no"
1436 fi
1437 fi
1438 SHLICC2=$ac_cv_prog_SHLICC2
1439 if test -n "$SHLICC2"; then
1440   echo "$as_me:$LINENO: result: $SHLICC2" >&5
1441 echo "${ECHO_T}$SHLICC2" >&6
1442 else
1443   echo "$as_me:$LINENO: result: no" >&5
1444 echo "${ECHO_T}no" >&6
1445 fi
1446
1447                     if test $SHLICC2 = yes ; then
1448                             CC=shlicc2
1449                             export CC
1450                     fi
1451                     ;;
1452             esac
1453     fi
1454     if test -z "$CC" -a "$with_gcc" = no ; then
1455             CC=cc
1456             export CC
1457     fi
1458     ac_ext=c
1459 ac_cpp='$CPP $CPPFLAGS'
1460 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1461 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1462 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1463 if test -n "$ac_tool_prefix"; then
1464   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1465 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1466 echo "$as_me:$LINENO: checking for $ac_word" >&5
1467 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1468 if test "${ac_cv_prog_CC+set}" = set; then
1469   echo $ECHO_N "(cached) $ECHO_C" >&6
1470 else
1471   if test -n "$CC"; then
1472   ac_cv_prog_CC="$CC" # Let the user override the test.
1473 else
1474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1475 for as_dir in $PATH
1476 do
1477   IFS=$as_save_IFS
1478   test -z "$as_dir" && as_dir=.
1479   for ac_exec_ext in '' $ac_executable_extensions; do
1480   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1481     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1482     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1483     break 2
1484   fi
1485 done
1486 done
1487
1488 fi
1489 fi
1490 CC=$ac_cv_prog_CC
1491 if test -n "$CC"; then
1492   echo "$as_me:$LINENO: result: $CC" >&5
1493 echo "${ECHO_T}$CC" >&6
1494 else
1495   echo "$as_me:$LINENO: result: no" >&5
1496 echo "${ECHO_T}no" >&6
1497 fi
1498
1499 fi
1500 if test -z "$ac_cv_prog_CC"; then
1501   ac_ct_CC=$CC
1502   # Extract the first word of "gcc", so it can be a program name with args.
1503 set dummy gcc; ac_word=$2
1504 echo "$as_me:$LINENO: checking for $ac_word" >&5
1505 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1506 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1507   echo $ECHO_N "(cached) $ECHO_C" >&6
1508 else
1509   if test -n "$ac_ct_CC"; then
1510   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1511 else
1512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1513 for as_dir in $PATH
1514 do
1515   IFS=$as_save_IFS
1516   test -z "$as_dir" && as_dir=.
1517   for ac_exec_ext in '' $ac_executable_extensions; do
1518   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1519     ac_cv_prog_ac_ct_CC="gcc"
1520     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1521     break 2
1522   fi
1523 done
1524 done
1525
1526 fi
1527 fi
1528 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1529 if test -n "$ac_ct_CC"; then
1530   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1531 echo "${ECHO_T}$ac_ct_CC" >&6
1532 else
1533   echo "$as_me:$LINENO: result: no" >&5
1534 echo "${ECHO_T}no" >&6
1535 fi
1536
1537   CC=$ac_ct_CC
1538 else
1539   CC="$ac_cv_prog_CC"
1540 fi
1541
1542 if test -z "$CC"; then
1543   if test -n "$ac_tool_prefix"; then
1544   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1545 set dummy ${ac_tool_prefix}cc; ac_word=$2
1546 echo "$as_me:$LINENO: checking for $ac_word" >&5
1547 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1548 if test "${ac_cv_prog_CC+set}" = set; then
1549   echo $ECHO_N "(cached) $ECHO_C" >&6
1550 else
1551   if test -n "$CC"; then
1552   ac_cv_prog_CC="$CC" # Let the user override the test.
1553 else
1554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1555 for as_dir in $PATH
1556 do
1557   IFS=$as_save_IFS
1558   test -z "$as_dir" && as_dir=.
1559   for ac_exec_ext in '' $ac_executable_extensions; do
1560   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1561     ac_cv_prog_CC="${ac_tool_prefix}cc"
1562     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1563     break 2
1564   fi
1565 done
1566 done
1567
1568 fi
1569 fi
1570 CC=$ac_cv_prog_CC
1571 if test -n "$CC"; then
1572   echo "$as_me:$LINENO: result: $CC" >&5
1573 echo "${ECHO_T}$CC" >&6
1574 else
1575   echo "$as_me:$LINENO: result: no" >&5
1576 echo "${ECHO_T}no" >&6
1577 fi
1578
1579 fi
1580 if test -z "$ac_cv_prog_CC"; then
1581   ac_ct_CC=$CC
1582   # Extract the first word of "cc", so it can be a program name with args.
1583 set dummy cc; ac_word=$2
1584 echo "$as_me:$LINENO: checking for $ac_word" >&5
1585 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1586 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1587   echo $ECHO_N "(cached) $ECHO_C" >&6
1588 else
1589   if test -n "$ac_ct_CC"; then
1590   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1591 else
1592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1593 for as_dir in $PATH
1594 do
1595   IFS=$as_save_IFS
1596   test -z "$as_dir" && as_dir=.
1597   for ac_exec_ext in '' $ac_executable_extensions; do
1598   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1599     ac_cv_prog_ac_ct_CC="cc"
1600     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1601     break 2
1602   fi
1603 done
1604 done
1605
1606 fi
1607 fi
1608 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1609 if test -n "$ac_ct_CC"; then
1610   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1611 echo "${ECHO_T}$ac_ct_CC" >&6
1612 else
1613   echo "$as_me:$LINENO: result: no" >&5
1614 echo "${ECHO_T}no" >&6
1615 fi
1616
1617   CC=$ac_ct_CC
1618 else
1619   CC="$ac_cv_prog_CC"
1620 fi
1621
1622 fi
1623 if test -z "$CC"; then
1624   # Extract the first word of "cc", so it can be a program name with args.
1625 set dummy cc; ac_word=$2
1626 echo "$as_me:$LINENO: checking for $ac_word" >&5
1627 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1628 if test "${ac_cv_prog_CC+set}" = set; then
1629   echo $ECHO_N "(cached) $ECHO_C" >&6
1630 else
1631   if test -n "$CC"; then
1632   ac_cv_prog_CC="$CC" # Let the user override the test.
1633 else
1634   ac_prog_rejected=no
1635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1636 for as_dir in $PATH
1637 do
1638   IFS=$as_save_IFS
1639   test -z "$as_dir" && as_dir=.
1640   for ac_exec_ext in '' $ac_executable_extensions; do
1641   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1642     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1643        ac_prog_rejected=yes
1644        continue
1645      fi
1646     ac_cv_prog_CC="cc"
1647     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1648     break 2
1649   fi
1650 done
1651 done
1652
1653 if test $ac_prog_rejected = yes; then
1654   # We found a bogon in the path, so make sure we never use it.
1655   set dummy $ac_cv_prog_CC
1656   shift
1657   if test $# != 0; then
1658     # We chose a different compiler from the bogus one.
1659     # However, it has the same basename, so the bogon will be chosen
1660     # first if we set CC to just the basename; use the full file name.
1661     shift
1662     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1663   fi
1664 fi
1665 fi
1666 fi
1667 CC=$ac_cv_prog_CC
1668 if test -n "$CC"; then
1669   echo "$as_me:$LINENO: result: $CC" >&5
1670 echo "${ECHO_T}$CC" >&6
1671 else
1672   echo "$as_me:$LINENO: result: no" >&5
1673 echo "${ECHO_T}no" >&6
1674 fi
1675
1676 fi
1677 if test -z "$CC"; then
1678   if test -n "$ac_tool_prefix"; then
1679   for ac_prog in cl
1680   do
1681     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1682 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1683 echo "$as_me:$LINENO: checking for $ac_word" >&5
1684 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1685 if test "${ac_cv_prog_CC+set}" = set; then
1686   echo $ECHO_N "(cached) $ECHO_C" >&6
1687 else
1688   if test -n "$CC"; then
1689   ac_cv_prog_CC="$CC" # Let the user override the test.
1690 else
1691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1692 for as_dir in $PATH
1693 do
1694   IFS=$as_save_IFS
1695   test -z "$as_dir" && as_dir=.
1696   for ac_exec_ext in '' $ac_executable_extensions; do
1697   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1698     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1699     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1700     break 2
1701   fi
1702 done
1703 done
1704
1705 fi
1706 fi
1707 CC=$ac_cv_prog_CC
1708 if test -n "$CC"; then
1709   echo "$as_me:$LINENO: result: $CC" >&5
1710 echo "${ECHO_T}$CC" >&6
1711 else
1712   echo "$as_me:$LINENO: result: no" >&5
1713 echo "${ECHO_T}no" >&6
1714 fi
1715
1716     test -n "$CC" && break
1717   done
1718 fi
1719 if test -z "$CC"; then
1720   ac_ct_CC=$CC
1721   for ac_prog in cl
1722 do
1723   # Extract the first word of "$ac_prog", so it can be a program name with args.
1724 set dummy $ac_prog; ac_word=$2
1725 echo "$as_me:$LINENO: checking for $ac_word" >&5
1726 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1727 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1728   echo $ECHO_N "(cached) $ECHO_C" >&6
1729 else
1730   if test -n "$ac_ct_CC"; then
1731   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1732 else
1733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1734 for as_dir in $PATH
1735 do
1736   IFS=$as_save_IFS
1737   test -z "$as_dir" && as_dir=.
1738   for ac_exec_ext in '' $ac_executable_extensions; do
1739   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1740     ac_cv_prog_ac_ct_CC="$ac_prog"
1741     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1742     break 2
1743   fi
1744 done
1745 done
1746
1747 fi
1748 fi
1749 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1750 if test -n "$ac_ct_CC"; then
1751   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1752 echo "${ECHO_T}$ac_ct_CC" >&6
1753 else
1754   echo "$as_me:$LINENO: result: no" >&5
1755 echo "${ECHO_T}no" >&6
1756 fi
1757
1758   test -n "$ac_ct_CC" && break
1759 done
1760
1761   CC=$ac_ct_CC
1762 fi
1763
1764 fi
1765
1766
1767 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1768 See \`config.log' for more details." >&5
1769 echo "$as_me: error: no acceptable C compiler found in \$PATH
1770 See \`config.log' for more details." >&2;}
1771    { (exit 1); exit 1; }; }
1772
1773 # Provide some information about the compiler.
1774 echo "$as_me:$LINENO:" \
1775      "checking for C compiler version" >&5
1776 ac_compiler=`set X $ac_compile; echo $2`
1777 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1778   (eval $ac_compiler --version </dev/null >&5) 2>&5
1779   ac_status=$?
1780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1781   (exit $ac_status); }
1782 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1783   (eval $ac_compiler -v </dev/null >&5) 2>&5
1784   ac_status=$?
1785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1786   (exit $ac_status); }
1787 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1788   (eval $ac_compiler -V </dev/null >&5) 2>&5
1789   ac_status=$?
1790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1791   (exit $ac_status); }
1792
1793 cat >conftest.$ac_ext <<_ACEOF
1794 /* confdefs.h.  */
1795 _ACEOF
1796 cat confdefs.h >>conftest.$ac_ext
1797 cat >>conftest.$ac_ext <<_ACEOF
1798 /* end confdefs.h.  */
1799
1800 int
1801 main ()
1802 {
1803
1804   ;
1805   return 0;
1806 }
1807 _ACEOF
1808 ac_clean_files_save=$ac_clean_files
1809 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1810 # Try to create an executable without -o first, disregard a.out.
1811 # It will help us diagnose broken compilers, and finding out an intuition
1812 # of exeext.
1813 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1814 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1815 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1816 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1817   (eval $ac_link_default) 2>&5
1818   ac_status=$?
1819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1820   (exit $ac_status); }; then
1821   # Find the output, starting from the most likely.  This scheme is
1822 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1823 # resort.
1824
1825 # Be careful to initialize this variable, since it used to be cached.
1826 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1827 ac_cv_exeext=
1828 # b.out is created by i960 compilers.
1829 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1830 do
1831   test -f "$ac_file" || continue
1832   case $ac_file in
1833     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1834         ;;
1835     conftest.$ac_ext )
1836         # This is the source file.
1837         ;;
1838     [ab].out )
1839         # We found the default executable, but exeext='' is most
1840         # certainly right.
1841         break;;
1842     *.* )
1843         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1844         # FIXME: I believe we export ac_cv_exeext for Libtool,
1845         # but it would be cool to find out if it's true.  Does anybody
1846         # maintain Libtool? --akim.
1847         export ac_cv_exeext
1848         break;;
1849     * )
1850         break;;
1851   esac
1852 done
1853 else
1854   echo "$as_me: failed program was:" >&5
1855 sed 's/^/| /' conftest.$ac_ext >&5
1856
1857 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1858 See \`config.log' for more details." >&5
1859 echo "$as_me: error: C compiler cannot create executables
1860 See \`config.log' for more details." >&2;}
1861    { (exit 77); exit 77; }; }
1862 fi
1863
1864 ac_exeext=$ac_cv_exeext
1865 echo "$as_me:$LINENO: result: $ac_file" >&5
1866 echo "${ECHO_T}$ac_file" >&6
1867
1868 # Check the compiler produces executables we can run.  If not, either
1869 # the compiler is broken, or we cross compile.
1870 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1871 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1872 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1873 # If not cross compiling, check that we can run a simple program.
1874 if test "$cross_compiling" != yes; then
1875   if { ac_try='./$ac_file'
1876   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1877   (eval $ac_try) 2>&5
1878   ac_status=$?
1879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1880   (exit $ac_status); }; }; then
1881     cross_compiling=no
1882   else
1883     if test "$cross_compiling" = maybe; then
1884         cross_compiling=yes
1885     else
1886         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1887 If you meant to cross compile, use \`--host'.
1888 See \`config.log' for more details." >&5
1889 echo "$as_me: error: cannot run C compiled programs.
1890 If you meant to cross compile, use \`--host'.
1891 See \`config.log' for more details." >&2;}
1892    { (exit 1); exit 1; }; }
1893     fi
1894   fi
1895 fi
1896 echo "$as_me:$LINENO: result: yes" >&5
1897 echo "${ECHO_T}yes" >&6
1898
1899 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1900 ac_clean_files=$ac_clean_files_save
1901 # Check the compiler produces executables we can run.  If not, either
1902 # the compiler is broken, or we cross compile.
1903 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1904 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1905 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1906 echo "${ECHO_T}$cross_compiling" >&6
1907
1908 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1909 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1910 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1911   (eval $ac_link) 2>&5
1912   ac_status=$?
1913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1914   (exit $ac_status); }; then
1915   # If both `conftest.exe' and `conftest' are `present' (well, observable)
1916 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1917 # work properly (i.e., refer to `conftest.exe'), while it won't with
1918 # `rm'.
1919 for ac_file in conftest.exe conftest conftest.*; do
1920   test -f "$ac_file" || continue
1921   case $ac_file in
1922     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1923     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1924           export ac_cv_exeext
1925           break;;
1926     * ) break;;
1927   esac
1928 done
1929 else
1930   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1931 See \`config.log' for more details." >&5
1932 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1933 See \`config.log' for more details." >&2;}
1934    { (exit 1); exit 1; }; }
1935 fi
1936
1937 rm -f conftest$ac_cv_exeext
1938 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1939 echo "${ECHO_T}$ac_cv_exeext" >&6
1940
1941 rm -f conftest.$ac_ext
1942 EXEEXT=$ac_cv_exeext
1943 ac_exeext=$EXEEXT
1944 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1945 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1946 if test "${ac_cv_objext+set}" = set; then
1947   echo $ECHO_N "(cached) $ECHO_C" >&6
1948 else
1949   cat >conftest.$ac_ext <<_ACEOF
1950 /* confdefs.h.  */
1951 _ACEOF
1952 cat confdefs.h >>conftest.$ac_ext
1953 cat >>conftest.$ac_ext <<_ACEOF
1954 /* end confdefs.h.  */
1955
1956 int
1957 main ()
1958 {
1959
1960   ;
1961   return 0;
1962 }
1963 _ACEOF
1964 rm -f conftest.o conftest.obj
1965 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1966   (eval $ac_compile) 2>&5
1967   ac_status=$?
1968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1969   (exit $ac_status); }; then
1970   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1971   case $ac_file in
1972     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1973     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1974        break;;
1975   esac
1976 done
1977 else
1978   echo "$as_me: failed program was:" >&5
1979 sed 's/^/| /' conftest.$ac_ext >&5
1980
1981 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1982 See \`config.log' for more details." >&5
1983 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1984 See \`config.log' for more details." >&2;}
1985    { (exit 1); exit 1; }; }
1986 fi
1987
1988 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1989 fi
1990 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1991 echo "${ECHO_T}$ac_cv_objext" >&6
1992 OBJEXT=$ac_cv_objext
1993 ac_objext=$OBJEXT
1994 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1995 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1996 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1997   echo $ECHO_N "(cached) $ECHO_C" >&6
1998 else
1999   cat >conftest.$ac_ext <<_ACEOF
2000 /* confdefs.h.  */
2001 _ACEOF
2002 cat confdefs.h >>conftest.$ac_ext
2003 cat >>conftest.$ac_ext <<_ACEOF
2004 /* end confdefs.h.  */
2005
2006 int
2007 main ()
2008 {
2009 #ifndef __GNUC__
2010        choke me
2011 #endif
2012
2013   ;
2014   return 0;
2015 }
2016 _ACEOF
2017 rm -f conftest.$ac_objext
2018 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2019   (eval $ac_compile) 2>conftest.er1
2020   ac_status=$?
2021   grep -v '^ *+' conftest.er1 >conftest.err
2022   rm -f conftest.er1
2023   cat conftest.err >&5
2024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2025   (exit $ac_status); } &&
2026          { ac_try='test -z "$ac_c_werror_flag"
2027                          || test ! -s conftest.err'
2028   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2029   (eval $ac_try) 2>&5
2030   ac_status=$?
2031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2032   (exit $ac_status); }; } &&
2033          { ac_try='test -s conftest.$ac_objext'
2034   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2035   (eval $ac_try) 2>&5
2036   ac_status=$?
2037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2038   (exit $ac_status); }; }; then
2039   ac_compiler_gnu=yes
2040 else
2041   echo "$as_me: failed program was:" >&5
2042 sed 's/^/| /' conftest.$ac_ext >&5
2043
2044 ac_compiler_gnu=no
2045 fi
2046 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2047 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2048
2049 fi
2050 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2051 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2052 GCC=`test $ac_compiler_gnu = yes && echo yes`
2053 ac_test_CFLAGS=${CFLAGS+set}
2054 ac_save_CFLAGS=$CFLAGS
2055 CFLAGS="-g"
2056 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2057 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2058 if test "${ac_cv_prog_cc_g+set}" = set; then
2059   echo $ECHO_N "(cached) $ECHO_C" >&6
2060 else
2061   cat >conftest.$ac_ext <<_ACEOF
2062 /* confdefs.h.  */
2063 _ACEOF
2064 cat confdefs.h >>conftest.$ac_ext
2065 cat >>conftest.$ac_ext <<_ACEOF
2066 /* end confdefs.h.  */
2067
2068 int
2069 main ()
2070 {
2071
2072   ;
2073   return 0;
2074 }
2075 _ACEOF
2076 rm -f conftest.$ac_objext
2077 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2078   (eval $ac_compile) 2>conftest.er1
2079   ac_status=$?
2080   grep -v '^ *+' conftest.er1 >conftest.err
2081   rm -f conftest.er1
2082   cat conftest.err >&5
2083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2084   (exit $ac_status); } &&
2085          { ac_try='test -z "$ac_c_werror_flag"
2086                          || test ! -s conftest.err'
2087   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2088   (eval $ac_try) 2>&5
2089   ac_status=$?
2090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2091   (exit $ac_status); }; } &&
2092          { ac_try='test -s conftest.$ac_objext'
2093   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2094   (eval $ac_try) 2>&5
2095   ac_status=$?
2096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2097   (exit $ac_status); }; }; then
2098   ac_cv_prog_cc_g=yes
2099 else
2100   echo "$as_me: failed program was:" >&5
2101 sed 's/^/| /' conftest.$ac_ext >&5
2102
2103 ac_cv_prog_cc_g=no
2104 fi
2105 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2106 fi
2107 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2108 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2109 if test "$ac_test_CFLAGS" = set; then
2110   CFLAGS=$ac_save_CFLAGS
2111 elif test $ac_cv_prog_cc_g = yes; then
2112   if test "$GCC" = yes; then
2113     CFLAGS="-g -O2"
2114   else
2115     CFLAGS="-g"
2116   fi
2117 else
2118   if test "$GCC" = yes; then
2119     CFLAGS="-O2"
2120   else
2121     CFLAGS=
2122   fi
2123 fi
2124 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2125 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2126 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2127   echo $ECHO_N "(cached) $ECHO_C" >&6
2128 else
2129   ac_cv_prog_cc_stdc=no
2130 ac_save_CC=$CC
2131 cat >conftest.$ac_ext <<_ACEOF
2132 /* confdefs.h.  */
2133 _ACEOF
2134 cat confdefs.h >>conftest.$ac_ext
2135 cat >>conftest.$ac_ext <<_ACEOF
2136 /* end confdefs.h.  */
2137 #include <stdarg.h>
2138 #include <stdio.h>
2139 #include <sys/types.h>
2140 #include <sys/stat.h>
2141 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2142 struct buf { int x; };
2143 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2144 static char *e (p, i)
2145      char **p;
2146      int i;
2147 {
2148   return p[i];
2149 }
2150 static char *f (char * (*g) (char **, int), char **p, ...)
2151 {
2152   char *s;
2153   va_list v;
2154   va_start (v,p);
2155   s = g (p, va_arg (v,int));
2156   va_end (v);
2157   return s;
2158 }
2159
2160 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2161    function prototypes and stuff, but not '\xHH' hex character constants.
2162    These don't provoke an error unfortunately, instead are silently treated
2163    as 'x'.  The following induces an error, until -std1 is added to get
2164    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2165    array size at least.  It's necessary to write '\x00'==0 to get something
2166    that's true only with -std1.  */
2167 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2168
2169 int test (int i, double x);
2170 struct s1 {int (*f) (int a);};
2171 struct s2 {int (*f) (double a);};
2172 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2173 int argc;
2174 char **argv;
2175 int
2176 main ()
2177 {
2178 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2179   ;
2180   return 0;
2181 }
2182 _ACEOF
2183 # Don't try gcc -ansi; that turns off useful extensions and
2184 # breaks some systems' header files.
2185 # AIX                   -qlanglvl=ansi
2186 # Ultrix and OSF/1      -std1
2187 # HP-UX 10.20 and later -Ae
2188 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2189 # SVR4                  -Xc -D__EXTENSIONS__
2190 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2191 do
2192   CC="$ac_save_CC $ac_arg"
2193   rm -f conftest.$ac_objext
2194 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2195   (eval $ac_compile) 2>conftest.er1
2196   ac_status=$?
2197   grep -v '^ *+' conftest.er1 >conftest.err
2198   rm -f conftest.er1
2199   cat conftest.err >&5
2200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2201   (exit $ac_status); } &&
2202          { ac_try='test -z "$ac_c_werror_flag"
2203                          || test ! -s conftest.err'
2204   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2205   (eval $ac_try) 2>&5
2206   ac_status=$?
2207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2208   (exit $ac_status); }; } &&
2209          { ac_try='test -s conftest.$ac_objext'
2210   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2211   (eval $ac_try) 2>&5
2212   ac_status=$?
2213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2214   (exit $ac_status); }; }; then
2215   ac_cv_prog_cc_stdc=$ac_arg
2216 break
2217 else
2218   echo "$as_me: failed program was:" >&5
2219 sed 's/^/| /' conftest.$ac_ext >&5
2220
2221 fi
2222 rm -f conftest.err conftest.$ac_objext
2223 done
2224 rm -f conftest.$ac_ext conftest.$ac_objext
2225 CC=$ac_save_CC
2226
2227 fi
2228
2229 case "x$ac_cv_prog_cc_stdc" in
2230   x|xno)
2231     echo "$as_me:$LINENO: result: none needed" >&5
2232 echo "${ECHO_T}none needed" >&6 ;;
2233   *)
2234     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2235 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2236     CC="$CC $ac_cv_prog_cc_stdc" ;;
2237 esac
2238
2239 # Some people use a C++ compiler to compile C.  Since we use `exit',
2240 # in C++ we need to declare it.  In case someone uses the same compiler
2241 # for both compiling C and C++ we need to have the C++ compiler decide
2242 # the declaration of exit, since it's the most demanding environment.
2243 cat >conftest.$ac_ext <<_ACEOF
2244 #ifndef __cplusplus
2245   choke me
2246 #endif
2247 _ACEOF
2248 rm -f conftest.$ac_objext
2249 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2250   (eval $ac_compile) 2>conftest.er1
2251   ac_status=$?
2252   grep -v '^ *+' conftest.er1 >conftest.err
2253   rm -f conftest.er1
2254   cat conftest.err >&5
2255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2256   (exit $ac_status); } &&
2257          { ac_try='test -z "$ac_c_werror_flag"
2258                          || test ! -s conftest.err'
2259   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2260   (eval $ac_try) 2>&5
2261   ac_status=$?
2262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2263   (exit $ac_status); }; } &&
2264          { ac_try='test -s conftest.$ac_objext'
2265   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2266   (eval $ac_try) 2>&5
2267   ac_status=$?
2268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2269   (exit $ac_status); }; }; then
2270   for ac_declaration in \
2271    '' \
2272    'extern "C" void std::exit (int) throw (); using std::exit;' \
2273    'extern "C" void std::exit (int); using std::exit;' \
2274    'extern "C" void exit (int) throw ();' \
2275    'extern "C" void exit (int);' \
2276    'void exit (int);'
2277 do
2278   cat >conftest.$ac_ext <<_ACEOF
2279 /* confdefs.h.  */
2280 _ACEOF
2281 cat confdefs.h >>conftest.$ac_ext
2282 cat >>conftest.$ac_ext <<_ACEOF
2283 /* end confdefs.h.  */
2284 $ac_declaration
2285 #include <stdlib.h>
2286 int
2287 main ()
2288 {
2289 exit (42);
2290   ;
2291   return 0;
2292 }
2293 _ACEOF
2294 rm -f conftest.$ac_objext
2295 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2296   (eval $ac_compile) 2>conftest.er1
2297   ac_status=$?
2298   grep -v '^ *+' conftest.er1 >conftest.err
2299   rm -f conftest.er1
2300   cat conftest.err >&5
2301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2302   (exit $ac_status); } &&
2303          { ac_try='test -z "$ac_c_werror_flag"
2304                          || test ! -s conftest.err'
2305   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2306   (eval $ac_try) 2>&5
2307   ac_status=$?
2308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2309   (exit $ac_status); }; } &&
2310          { ac_try='test -s conftest.$ac_objext'
2311   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2312   (eval $ac_try) 2>&5
2313   ac_status=$?
2314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2315   (exit $ac_status); }; }; then
2316   :
2317 else
2318   echo "$as_me: failed program was:" >&5
2319 sed 's/^/| /' conftest.$ac_ext >&5
2320
2321 continue
2322 fi
2323 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2324   cat >conftest.$ac_ext <<_ACEOF
2325 /* confdefs.h.  */
2326 _ACEOF
2327 cat confdefs.h >>conftest.$ac_ext
2328 cat >>conftest.$ac_ext <<_ACEOF
2329 /* end confdefs.h.  */
2330 $ac_declaration
2331 int
2332 main ()
2333 {
2334 exit (42);
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>conftest.er1
2342   ac_status=$?
2343   grep -v '^ *+' conftest.er1 >conftest.err
2344   rm -f conftest.er1
2345   cat conftest.err >&5
2346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2347   (exit $ac_status); } &&
2348          { ac_try='test -z "$ac_c_werror_flag"
2349                          || test ! -s conftest.err'
2350   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2351   (eval $ac_try) 2>&5
2352   ac_status=$?
2353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2354   (exit $ac_status); }; } &&
2355          { ac_try='test -s conftest.$ac_objext'
2356   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2357   (eval $ac_try) 2>&5
2358   ac_status=$?
2359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2360   (exit $ac_status); }; }; then
2361   break
2362 else
2363   echo "$as_me: failed program was:" >&5
2364 sed 's/^/| /' conftest.$ac_ext >&5
2365
2366 fi
2367 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2368 done
2369 rm -f conftest*
2370 if test -n "$ac_declaration"; then
2371   echo '#ifdef __cplusplus' >>confdefs.h
2372   echo $ac_declaration      >>confdefs.h
2373   echo '#endif'             >>confdefs.h
2374 fi
2375
2376 else
2377   echo "$as_me: failed program was:" >&5
2378 sed 's/^/| /' conftest.$ac_ext >&5
2379
2380 fi
2381 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2382 ac_ext=c
2383 ac_cpp='$CPP $CPPFLAGS'
2384 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2385 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2386 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2387
2388     if test "$GCC" = yes ; then
2389             if test "$SHLICC2" = yes ; then
2390                     ac_cv_lbl_gcc_vers=2
2391                     V_CCOPT="-O2"
2392             else
2393                     echo "$as_me:$LINENO: checking gcc version" >&5
2394 echo $ECHO_N "checking gcc version... $ECHO_C" >&6
2395                     if test "${ac_cv_lbl_gcc_vers+set}" = set; then
2396   echo $ECHO_N "(cached) $ECHO_C" >&6
2397 else
2398   ac_cv_lbl_gcc_vers=`$CC -v 2>&1 | \
2399                             sed -e '/^gcc version /!d' \
2400                                 -e 's/^gcc version //' \
2401                                 -e 's/ .*//' -e 's/^[^0-9]*//' \
2402                                 -e 's/\..*//'`
2403 fi
2404
2405                     echo "$as_me:$LINENO: result: $ac_cv_lbl_gcc_vers" >&5
2406 echo "${ECHO_T}$ac_cv_lbl_gcc_vers" >&6
2407                     if test $ac_cv_lbl_gcc_vers -gt 1 ; then
2408                             V_CCOPT="-O2"
2409                     fi
2410             fi
2411     else
2412             echo "$as_me:$LINENO: checking that $CC handles ansi prototypes" >&5
2413 echo $ECHO_N "checking that $CC handles ansi prototypes... $ECHO_C" >&6
2414             if test "${ac_cv_lbl_cc_ansi_prototypes+set}" = set; then
2415   echo $ECHO_N "(cached) $ECHO_C" >&6
2416 else
2417
2418 cat >conftest.$ac_ext <<_ACEOF
2419 /* confdefs.h.  */
2420 _ACEOF
2421 cat confdefs.h >>conftest.$ac_ext
2422 cat >>conftest.$ac_ext <<_ACEOF
2423 /* end confdefs.h.  */
2424 #include <sys/types.h>
2425 int
2426 main ()
2427 {
2428 int frob(int, char *)
2429   ;
2430   return 0;
2431 }
2432 _ACEOF
2433 rm -f conftest.$ac_objext
2434 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2435   (eval $ac_compile) 2>conftest.er1
2436   ac_status=$?
2437   grep -v '^ *+' conftest.er1 >conftest.err
2438   rm -f conftest.er1
2439   cat conftest.err >&5
2440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2441   (exit $ac_status); } &&
2442          { ac_try='test -z "$ac_c_werror_flag"
2443                          || test ! -s conftest.err'
2444   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2445   (eval $ac_try) 2>&5
2446   ac_status=$?
2447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2448   (exit $ac_status); }; } &&
2449          { ac_try='test -s conftest.$ac_objext'
2450   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2451   (eval $ac_try) 2>&5
2452   ac_status=$?
2453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2454   (exit $ac_status); }; }; then
2455   ac_cv_lbl_cc_ansi_prototypes=yes
2456 else
2457   echo "$as_me: failed program was:" >&5
2458 sed 's/^/| /' conftest.$ac_ext >&5
2459
2460 ac_cv_lbl_cc_ansi_prototypes=no
2461 fi
2462 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2463 fi
2464
2465             echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_ansi_prototypes" >&5
2466 echo "${ECHO_T}$ac_cv_lbl_cc_ansi_prototypes" >&6
2467             if test $ac_cv_lbl_cc_ansi_prototypes = no ; then
2468                     case "$host_os" in
2469
2470                     hpux*)
2471                             echo "$as_me:$LINENO: checking for HP-UX ansi compiler ($CC -Aa -D_HPUX_SOURCE)" >&5
2472 echo $ECHO_N "checking for HP-UX ansi compiler ($CC -Aa -D_HPUX_SOURCE)... $ECHO_C" >&6
2473                             savedcflags="$CFLAGS"
2474                             CFLAGS="-Aa -D_HPUX_SOURCE $CFLAGS"
2475                             if test "${ac_cv_lbl_cc_hpux_cc_aa+set}" = set; then
2476   echo $ECHO_N "(cached) $ECHO_C" >&6
2477 else
2478   cat >conftest.$ac_ext <<_ACEOF
2479 /* confdefs.h.  */
2480 _ACEOF
2481 cat confdefs.h >>conftest.$ac_ext
2482 cat >>conftest.$ac_ext <<_ACEOF
2483 /* end confdefs.h.  */
2484 #include <sys/types.h>
2485 int
2486 main ()
2487 {
2488 int frob(int, char *)
2489   ;
2490   return 0;
2491 }
2492 _ACEOF
2493 rm -f conftest.$ac_objext
2494 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2495   (eval $ac_compile) 2>conftest.er1
2496   ac_status=$?
2497   grep -v '^ *+' conftest.er1 >conftest.err
2498   rm -f conftest.er1
2499   cat conftest.err >&5
2500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2501   (exit $ac_status); } &&
2502          { ac_try='test -z "$ac_c_werror_flag"
2503                          || test ! -s conftest.err'
2504   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2505   (eval $ac_try) 2>&5
2506   ac_status=$?
2507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2508   (exit $ac_status); }; } &&
2509          { ac_try='test -s conftest.$ac_objext'
2510   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2511   (eval $ac_try) 2>&5
2512   ac_status=$?
2513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2514   (exit $ac_status); }; }; then
2515   ac_cv_lbl_cc_hpux_cc_aa=yes
2516 else
2517   echo "$as_me: failed program was:" >&5
2518 sed 's/^/| /' conftest.$ac_ext >&5
2519
2520 ac_cv_lbl_cc_hpux_cc_aa=no
2521 fi
2522 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2523 fi
2524
2525                             echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_hpux_cc_aa" >&5
2526 echo "${ECHO_T}$ac_cv_lbl_cc_hpux_cc_aa" >&6
2527                             if test $ac_cv_lbl_cc_hpux_cc_aa = no ; then
2528                                     { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
2529 echo "$as_me: error: see the INSTALL doc for more info" >&2;}
2530    { (exit 1); exit 1; }; }
2531                             fi
2532                             CFLAGS="$savedcflags"
2533                             V_CCOPT="-Aa $V_CCOPT"
2534                             cat >>confdefs.h <<\_ACEOF
2535 #define _HPUX_SOURCE 1
2536 _ACEOF
2537
2538                             ;;
2539
2540                     *)
2541                             { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
2542 echo "$as_me: error: see the INSTALL doc for more info" >&2;}
2543    { (exit 1); exit 1; }; }
2544                             ;;
2545                     esac
2546             fi
2547             V_INCLS="$V_INCLS -I/usr/local/include"
2548             LDFLAGS="$LDFLAGS -L/usr/local/lib"
2549
2550             case "$host_os" in
2551
2552             irix*)
2553                     V_CCOPT="$V_CCOPT -xansi -signed -O"
2554                     ;;
2555
2556             osf*)
2557                     V_CCOPT="$V_CCOPT -std1 -O"
2558                     ;;
2559
2560             ultrix*)
2561                     echo "$as_me:$LINENO: checking that Ultrix $CC hacks const in prototypes" >&5
2562 echo $ECHO_N "checking that Ultrix $CC hacks const in prototypes... $ECHO_C" >&6
2563                     if test "${ac_cv_lbl_cc_const_proto+set}" = set; then
2564   echo $ECHO_N "(cached) $ECHO_C" >&6
2565 else
2566   cat >conftest.$ac_ext <<_ACEOF
2567 /* confdefs.h.  */
2568 _ACEOF
2569 cat confdefs.h >>conftest.$ac_ext
2570 cat >>conftest.$ac_ext <<_ACEOF
2571 /* end confdefs.h.  */
2572 #include <sys/types.h>
2573 int
2574 main ()
2575 {
2576 struct a { int b; };
2577                             void c(const struct a *)
2578   ;
2579   return 0;
2580 }
2581 _ACEOF
2582 rm -f conftest.$ac_objext
2583 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2584   (eval $ac_compile) 2>conftest.er1
2585   ac_status=$?
2586   grep -v '^ *+' conftest.er1 >conftest.err
2587   rm -f conftest.er1
2588   cat conftest.err >&5
2589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2590   (exit $ac_status); } &&
2591          { ac_try='test -z "$ac_c_werror_flag"
2592                          || test ! -s conftest.err'
2593   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2594   (eval $ac_try) 2>&5
2595   ac_status=$?
2596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2597   (exit $ac_status); }; } &&
2598          { ac_try='test -s conftest.$ac_objext'
2599   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2600   (eval $ac_try) 2>&5
2601   ac_status=$?
2602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2603   (exit $ac_status); }; }; then
2604   ac_cv_lbl_cc_const_proto=yes
2605 else
2606   echo "$as_me: failed program was:" >&5
2607 sed 's/^/| /' conftest.$ac_ext >&5
2608
2609 ac_cv_lbl_cc_const_proto=no
2610 fi
2611 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2612 fi
2613
2614                     echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_const_proto" >&5
2615 echo "${ECHO_T}$ac_cv_lbl_cc_const_proto" >&6
2616                     if test $ac_cv_lbl_cc_const_proto = no ; then
2617                             cat >>confdefs.h <<\_ACEOF
2618 #define const
2619 _ACEOF
2620
2621                     fi
2622                     ;;
2623             esac
2624     fi
2625
2626 echo "$as_me:$LINENO: checking for inline" >&5
2627 echo $ECHO_N "checking for inline... $ECHO_C" >&6
2628     if test "${ac_cv_lbl_inline+set}" = set; then
2629   echo $ECHO_N "(cached) $ECHO_C" >&6
2630 else
2631
2632         ac_cv_lbl_inline=""
2633         ac_lbl_cc_inline=no
2634         for ac_lbl_inline in inline __inline__ __inline
2635         do
2636             cat >conftest.$ac_ext <<_ACEOF
2637 /* confdefs.h.  */
2638 _ACEOF
2639 cat confdefs.h >>conftest.$ac_ext
2640 cat >>conftest.$ac_ext <<_ACEOF
2641 /* end confdefs.h.  */
2642 #define inline $ac_lbl_inline
2643                 static inline struct iltest *foo(void);
2644                 struct iltest {
2645                     int iltest1;
2646                     int iltest2;
2647                 };
2648
2649                 static inline struct iltest *
2650                 foo()
2651                 {
2652                     static struct iltest xxx;
2653
2654                     return &xxx;
2655                 }
2656 int
2657 main ()
2658 {
2659
2660   ;
2661   return 0;
2662 }
2663 _ACEOF
2664 rm -f conftest.$ac_objext
2665 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2666   (eval $ac_compile) 2>conftest.er1
2667   ac_status=$?
2668   grep -v '^ *+' conftest.er1 >conftest.err
2669   rm -f conftest.er1
2670   cat conftest.err >&5
2671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2672   (exit $ac_status); } &&
2673          { ac_try='test -z "$ac_c_werror_flag"
2674                          || test ! -s conftest.err'
2675   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2676   (eval $ac_try) 2>&5
2677   ac_status=$?
2678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2679   (exit $ac_status); }; } &&
2680          { ac_try='test -s conftest.$ac_objext'
2681   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2682   (eval $ac_try) 2>&5
2683   ac_status=$?
2684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2685   (exit $ac_status); }; }; then
2686   ac_lbl_cc_inline=yes
2687 else
2688   echo "$as_me: failed program was:" >&5
2689 sed 's/^/| /' conftest.$ac_ext >&5
2690
2691 fi
2692 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2693             if test "$ac_lbl_cc_inline" = yes ; then
2694                 break;
2695             fi
2696         done
2697         if test "$ac_lbl_cc_inline" = yes ; then
2698             ac_cv_lbl_inline=$ac_lbl_inline
2699         fi
2700 fi
2701
2702     if test ! -z "$ac_cv_lbl_inline" ; then
2703         echo "$as_me:$LINENO: result: $ac_cv_lbl_inline" >&5
2704 echo "${ECHO_T}$ac_cv_lbl_inline" >&6
2705     else
2706         echo "$as_me:$LINENO: result: no" >&5
2707 echo "${ECHO_T}no" >&6
2708     fi
2709
2710 cat >>confdefs.h <<_ACEOF
2711 #define inline $ac_cv_lbl_inline
2712 _ACEOF
2713
2714
2715 echo "$as_me:$LINENO: checking for __attribute__" >&5
2716 echo $ECHO_N "checking for __attribute__... $ECHO_C" >&6
2717 if test "${ac_cv___attribute__+set}" = set; then
2718   echo $ECHO_N "(cached) $ECHO_C" >&6
2719 else
2720
2721 cat >conftest.$ac_ext <<_ACEOF
2722 /* confdefs.h.  */
2723 _ACEOF
2724 cat confdefs.h >>conftest.$ac_ext
2725 cat >>conftest.$ac_ext <<_ACEOF
2726 /* end confdefs.h.  */
2727
2728 #include <stdlib.h>
2729
2730 static void foo(void) __attribute__ ((noreturn));
2731
2732 static void
2733 foo(void)
2734 {
2735   exit(1);
2736 }
2737
2738 int
2739 main(int argc, char **argv)
2740 {
2741   foo();
2742 }
2743
2744 _ACEOF
2745 rm -f conftest.$ac_objext
2746 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2747   (eval $ac_compile) 2>conftest.er1
2748   ac_status=$?
2749   grep -v '^ *+' conftest.er1 >conftest.err
2750   rm -f conftest.er1
2751   cat conftest.err >&5
2752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2753   (exit $ac_status); } &&
2754          { ac_try='test -z "$ac_c_werror_flag"
2755                          || test ! -s conftest.err'
2756   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2757   (eval $ac_try) 2>&5
2758   ac_status=$?
2759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2760   (exit $ac_status); }; } &&
2761          { ac_try='test -s conftest.$ac_objext'
2762   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2763   (eval $ac_try) 2>&5
2764   ac_status=$?
2765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2766   (exit $ac_status); }; }; then
2767   ac_cv___attribute__=yes
2768 else
2769   echo "$as_me: failed program was:" >&5
2770 sed 's/^/| /' conftest.$ac_ext >&5
2771
2772 ac_cv___attribute__=no
2773 fi
2774 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2775 fi
2776
2777 if test "$ac_cv___attribute__" = "yes"; then
2778
2779 cat >>confdefs.h <<\_ACEOF
2780 #define HAVE___ATTRIBUTE__ 1
2781 _ACEOF
2782
2783   V_DEFS="$V_DEFS -D_U_=\"__attribute__((unused))\""
2784 else
2785   V_DEFS="$V_DEFS -D_U_=\"\""
2786 fi
2787 echo "$as_me:$LINENO: result: $ac_cv___attribute__" >&5
2788 echo "${ECHO_T}$ac_cv___attribute__" >&6
2789
2790 ac_ext=c
2791 ac_cpp='$CPP $CPPFLAGS'
2792 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2793 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2794 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2795 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2796 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2797 # On Suns, sometimes $CPP names a directory.
2798 if test -n "$CPP" && test -d "$CPP"; then
2799   CPP=
2800 fi
2801 if test -z "$CPP"; then
2802   if test "${ac_cv_prog_CPP+set}" = set; then
2803   echo $ECHO_N "(cached) $ECHO_C" >&6
2804 else
2805       # Double quotes because CPP needs to be expanded
2806     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2807     do
2808       ac_preproc_ok=false
2809 for ac_c_preproc_warn_flag in '' yes
2810 do
2811   # Use a header file that comes with gcc, so configuring glibc
2812   # with a fresh cross-compiler works.
2813   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2814   # <limits.h> exists even on freestanding compilers.
2815   # On the NeXT, cc -E runs the code through the compiler's parser,
2816   # not just through cpp. "Syntax error" is here to catch this case.
2817   cat >conftest.$ac_ext <<_ACEOF
2818 /* confdefs.h.  */
2819 _ACEOF
2820 cat confdefs.h >>conftest.$ac_ext
2821 cat >>conftest.$ac_ext <<_ACEOF
2822 /* end confdefs.h.  */
2823 #ifdef __STDC__
2824 # include <limits.h>
2825 #else
2826 # include <assert.h>
2827 #endif
2828                      Syntax error
2829 _ACEOF
2830 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2831   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2832   ac_status=$?
2833   grep -v '^ *+' conftest.er1 >conftest.err
2834   rm -f conftest.er1
2835   cat conftest.err >&5
2836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2837   (exit $ac_status); } >/dev/null; then
2838   if test -s conftest.err; then
2839     ac_cpp_err=$ac_c_preproc_warn_flag
2840     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2841   else
2842     ac_cpp_err=
2843   fi
2844 else
2845   ac_cpp_err=yes
2846 fi
2847 if test -z "$ac_cpp_err"; then
2848   :
2849 else
2850   echo "$as_me: failed program was:" >&5
2851 sed 's/^/| /' conftest.$ac_ext >&5
2852
2853   # Broken: fails on valid input.
2854 continue
2855 fi
2856 rm -f conftest.err conftest.$ac_ext
2857
2858   # OK, works on sane cases.  Now check whether non-existent headers
2859   # can be detected and how.
2860   cat >conftest.$ac_ext <<_ACEOF
2861 /* confdefs.h.  */
2862 _ACEOF
2863 cat confdefs.h >>conftest.$ac_ext
2864 cat >>conftest.$ac_ext <<_ACEOF
2865 /* end confdefs.h.  */
2866 #include <ac_nonexistent.h>
2867 _ACEOF
2868 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2869   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2870   ac_status=$?
2871   grep -v '^ *+' conftest.er1 >conftest.err
2872   rm -f conftest.er1
2873   cat conftest.err >&5
2874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2875   (exit $ac_status); } >/dev/null; then
2876   if test -s conftest.err; then
2877     ac_cpp_err=$ac_c_preproc_warn_flag
2878     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2879   else
2880     ac_cpp_err=
2881   fi
2882 else
2883   ac_cpp_err=yes
2884 fi
2885 if test -z "$ac_cpp_err"; then
2886   # Broken: success on invalid input.
2887 continue
2888 else
2889   echo "$as_me: failed program was:" >&5
2890 sed 's/^/| /' conftest.$ac_ext >&5
2891
2892   # Passes both tests.
2893 ac_preproc_ok=:
2894 break
2895 fi
2896 rm -f conftest.err conftest.$ac_ext
2897
2898 done
2899 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2900 rm -f conftest.err conftest.$ac_ext
2901 if $ac_preproc_ok; then
2902   break
2903 fi
2904
2905     done
2906     ac_cv_prog_CPP=$CPP
2907
2908 fi
2909   CPP=$ac_cv_prog_CPP
2910 else
2911   ac_cv_prog_CPP=$CPP
2912 fi
2913 echo "$as_me:$LINENO: result: $CPP" >&5
2914 echo "${ECHO_T}$CPP" >&6
2915 ac_preproc_ok=false
2916 for ac_c_preproc_warn_flag in '' yes
2917 do
2918   # Use a header file that comes with gcc, so configuring glibc
2919   # with a fresh cross-compiler works.
2920   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2921   # <limits.h> exists even on freestanding compilers.
2922   # On the NeXT, cc -E runs the code through the compiler's parser,
2923   # not just through cpp. "Syntax error" is here to catch this case.
2924   cat >conftest.$ac_ext <<_ACEOF
2925 /* confdefs.h.  */
2926 _ACEOF
2927 cat confdefs.h >>conftest.$ac_ext
2928 cat >>conftest.$ac_ext <<_ACEOF
2929 /* end confdefs.h.  */
2930 #ifdef __STDC__
2931 # include <limits.h>
2932 #else
2933 # include <assert.h>
2934 #endif
2935                      Syntax error
2936 _ACEOF
2937 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2938   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2939   ac_status=$?
2940   grep -v '^ *+' conftest.er1 >conftest.err
2941   rm -f conftest.er1
2942   cat conftest.err >&5
2943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2944   (exit $ac_status); } >/dev/null; then
2945   if test -s conftest.err; then
2946     ac_cpp_err=$ac_c_preproc_warn_flag
2947     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2948   else
2949     ac_cpp_err=
2950   fi
2951 else
2952   ac_cpp_err=yes
2953 fi
2954 if test -z "$ac_cpp_err"; then
2955   :
2956 else
2957   echo "$as_me: failed program was:" >&5
2958 sed 's/^/| /' conftest.$ac_ext >&5
2959
2960   # Broken: fails on valid input.
2961 continue
2962 fi
2963 rm -f conftest.err conftest.$ac_ext
2964
2965   # OK, works on sane cases.  Now check whether non-existent headers
2966   # can be detected and how.
2967   cat >conftest.$ac_ext <<_ACEOF
2968 /* confdefs.h.  */
2969 _ACEOF
2970 cat confdefs.h >>conftest.$ac_ext
2971 cat >>conftest.$ac_ext <<_ACEOF
2972 /* end confdefs.h.  */
2973 #include <ac_nonexistent.h>
2974 _ACEOF
2975 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2976   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2977   ac_status=$?
2978   grep -v '^ *+' conftest.er1 >conftest.err
2979   rm -f conftest.er1
2980   cat conftest.err >&5
2981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2982   (exit $ac_status); } >/dev/null; then
2983   if test -s conftest.err; then
2984     ac_cpp_err=$ac_c_preproc_warn_flag
2985     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2986   else
2987     ac_cpp_err=
2988   fi
2989 else
2990   ac_cpp_err=yes
2991 fi
2992 if test -z "$ac_cpp_err"; then
2993   # Broken: success on invalid input.
2994 continue
2995 else
2996   echo "$as_me: failed program was:" >&5
2997 sed 's/^/| /' conftest.$ac_ext >&5
2998
2999   # Passes both tests.
3000 ac_preproc_ok=:
3001 break
3002 fi
3003 rm -f conftest.err conftest.$ac_ext
3004
3005 done
3006 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3007 rm -f conftest.err conftest.$ac_ext
3008 if $ac_preproc_ok; then
3009   :
3010 else
3011   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3012 See \`config.log' for more details." >&5
3013 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3014 See \`config.log' for more details." >&2;}
3015    { (exit 1); exit 1; }; }
3016 fi
3017
3018 ac_ext=c
3019 ac_cpp='$CPP $CPPFLAGS'
3020 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3021 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3022 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3023
3024
3025 echo "$as_me:$LINENO: checking for egrep" >&5
3026 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3027 if test "${ac_cv_prog_egrep+set}" = set; then
3028   echo $ECHO_N "(cached) $ECHO_C" >&6
3029 else
3030   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3031     then ac_cv_prog_egrep='grep -E'
3032     else ac_cv_prog_egrep='egrep'
3033     fi
3034 fi
3035 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3036 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3037  EGREP=$ac_cv_prog_egrep
3038
3039
3040 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3041 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3042 if test "${ac_cv_header_stdc+set}" = set; then
3043   echo $ECHO_N "(cached) $ECHO_C" >&6
3044 else
3045   cat >conftest.$ac_ext <<_ACEOF
3046 /* confdefs.h.  */
3047 _ACEOF
3048 cat confdefs.h >>conftest.$ac_ext
3049 cat >>conftest.$ac_ext <<_ACEOF
3050 /* end confdefs.h.  */
3051 #include <stdlib.h>
3052 #include <stdarg.h>
3053 #include <string.h>
3054 #include <float.h>
3055
3056 int
3057 main ()
3058 {
3059
3060   ;
3061   return 0;
3062 }
3063 _ACEOF
3064 rm -f conftest.$ac_objext
3065 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3066   (eval $ac_compile) 2>conftest.er1
3067   ac_status=$?
3068   grep -v '^ *+' conftest.er1 >conftest.err
3069   rm -f conftest.er1
3070   cat conftest.err >&5
3071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3072   (exit $ac_status); } &&
3073          { ac_try='test -z "$ac_c_werror_flag"
3074                          || test ! -s conftest.err'
3075   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3076   (eval $ac_try) 2>&5
3077   ac_status=$?
3078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3079   (exit $ac_status); }; } &&
3080          { ac_try='test -s conftest.$ac_objext'
3081   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3082   (eval $ac_try) 2>&5
3083   ac_status=$?
3084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3085   (exit $ac_status); }; }; then
3086   ac_cv_header_stdc=yes
3087 else
3088   echo "$as_me: failed program was:" >&5
3089 sed 's/^/| /' conftest.$ac_ext >&5
3090
3091 ac_cv_header_stdc=no
3092 fi
3093 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3094
3095 if test $ac_cv_header_stdc = yes; then
3096   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3097   cat >conftest.$ac_ext <<_ACEOF
3098 /* confdefs.h.  */
3099 _ACEOF
3100 cat confdefs.h >>conftest.$ac_ext
3101 cat >>conftest.$ac_ext <<_ACEOF
3102 /* end confdefs.h.  */
3103 #include <string.h>
3104
3105 _ACEOF
3106 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3107   $EGREP "memchr" >/dev/null 2>&1; then
3108   :
3109 else
3110   ac_cv_header_stdc=no
3111 fi
3112 rm -f conftest*
3113
3114 fi
3115
3116 if test $ac_cv_header_stdc = yes; then
3117   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3118   cat >conftest.$ac_ext <<_ACEOF
3119 /* confdefs.h.  */
3120 _ACEOF
3121 cat confdefs.h >>conftest.$ac_ext
3122 cat >>conftest.$ac_ext <<_ACEOF
3123 /* end confdefs.h.  */
3124 #include <stdlib.h>
3125
3126 _ACEOF
3127 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3128   $EGREP "free" >/dev/null 2>&1; then
3129   :
3130 else
3131   ac_cv_header_stdc=no
3132 fi
3133 rm -f conftest*
3134
3135 fi
3136
3137 if test $ac_cv_header_stdc = yes; then
3138   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3139   if test "$cross_compiling" = yes; then
3140   :
3141 else
3142   cat >conftest.$ac_ext <<_ACEOF
3143 /* confdefs.h.  */
3144 _ACEOF
3145 cat confdefs.h >>conftest.$ac_ext
3146 cat >>conftest.$ac_ext <<_ACEOF
3147 /* end confdefs.h.  */
3148 #include <ctype.h>
3149 #if ((' ' & 0x0FF) == 0x020)
3150 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3151 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3152 #else
3153 # define ISLOWER(c) \
3154                    (('a' <= (c) && (c) <= 'i') \
3155                      || ('j' <= (c) && (c) <= 'r') \
3156                      || ('s' <= (c) && (c) <= 'z'))
3157 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3158 #endif
3159
3160 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3161 int
3162 main ()
3163 {
3164   int i;
3165   for (i = 0; i < 256; i++)
3166     if (XOR (islower (i), ISLOWER (i))
3167         || toupper (i) != TOUPPER (i))
3168       exit(2);
3169   exit (0);
3170 }
3171 _ACEOF
3172 rm -f conftest$ac_exeext
3173 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3174   (eval $ac_link) 2>&5
3175   ac_status=$?
3176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3177   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3178   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3179   (eval $ac_try) 2>&5
3180   ac_status=$?
3181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3182   (exit $ac_status); }; }; then
3183   :
3184 else
3185   echo "$as_me: program exited with status $ac_status" >&5
3186 echo "$as_me: failed program was:" >&5
3187 sed 's/^/| /' conftest.$ac_ext >&5
3188
3189 ( exit $ac_status )
3190 ac_cv_header_stdc=no
3191 fi
3192 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3193 fi
3194 fi
3195 fi
3196 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3197 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3198 if test $ac_cv_header_stdc = yes; then
3199
3200 cat >>confdefs.h <<\_ACEOF
3201 #define STDC_HEADERS 1
3202 _ACEOF
3203
3204 fi
3205
3206 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3217                   inttypes.h stdint.h unistd.h
3218 do
3219 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3220 echo "$as_me:$LINENO: checking for $ac_header" >&5
3221 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3222 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3223   echo $ECHO_N "(cached) $ECHO_C" >&6
3224 else
3225   cat >conftest.$ac_ext <<_ACEOF
3226 /* confdefs.h.  */
3227 _ACEOF
3228 cat confdefs.h >>conftest.$ac_ext
3229 cat >>conftest.$ac_ext <<_ACEOF
3230 /* end confdefs.h.  */
3231 $ac_includes_default
3232
3233 #include <$ac_header>
3234 _ACEOF
3235 rm -f conftest.$ac_objext
3236 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3237   (eval $ac_compile) 2>conftest.er1
3238   ac_status=$?
3239   grep -v '^ *+' conftest.er1 >conftest.err
3240   rm -f conftest.er1
3241   cat conftest.err >&5
3242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3243   (exit $ac_status); } &&
3244          { ac_try='test -z "$ac_c_werror_flag"
3245                          || test ! -s conftest.err'
3246   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3247   (eval $ac_try) 2>&5
3248   ac_status=$?
3249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3250   (exit $ac_status); }; } &&
3251          { ac_try='test -s conftest.$ac_objext'
3252   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3253   (eval $ac_try) 2>&5
3254   ac_status=$?
3255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3256   (exit $ac_status); }; }; then
3257   eval "$as_ac_Header=yes"
3258 else
3259   echo "$as_me: failed program was:" >&5
3260 sed 's/^/| /' conftest.$ac_ext >&5
3261
3262 eval "$as_ac_Header=no"
3263 fi
3264 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3265 fi
3266 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3267 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3268 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3269   cat >>confdefs.h <<_ACEOF
3270 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3271 _ACEOF
3272
3273 fi
3274
3275 done
3276
3277
3278
3279
3280
3281 for ac_header in fcntl.h rpc/rpcent.h netdnet/dnetdb.h
3282 do
3283 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3284 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3285   echo "$as_me:$LINENO: checking for $ac_header" >&5
3286 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3287 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3288   echo $ECHO_N "(cached) $ECHO_C" >&6
3289 fi
3290 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3291 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3292 else
3293   # Is the header compilable?
3294 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3295 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3296 cat >conftest.$ac_ext <<_ACEOF
3297 /* confdefs.h.  */
3298 _ACEOF
3299 cat confdefs.h >>conftest.$ac_ext
3300 cat >>conftest.$ac_ext <<_ACEOF
3301 /* end confdefs.h.  */
3302 $ac_includes_default
3303 #include <$ac_header>
3304 _ACEOF
3305 rm -f conftest.$ac_objext
3306 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3307   (eval $ac_compile) 2>conftest.er1
3308   ac_status=$?
3309   grep -v '^ *+' conftest.er1 >conftest.err
3310   rm -f conftest.er1
3311   cat conftest.err >&5
3312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3313   (exit $ac_status); } &&
3314          { ac_try='test -z "$ac_c_werror_flag"
3315                          || test ! -s conftest.err'
3316   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3317   (eval $ac_try) 2>&5
3318   ac_status=$?
3319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3320   (exit $ac_status); }; } &&
3321          { ac_try='test -s conftest.$ac_objext'
3322   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3323   (eval $ac_try) 2>&5
3324   ac_status=$?
3325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3326   (exit $ac_status); }; }; then
3327   ac_header_compiler=yes
3328 else
3329   echo "$as_me: failed program was:" >&5
3330 sed 's/^/| /' conftest.$ac_ext >&5
3331
3332 ac_header_compiler=no
3333 fi
3334 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3335 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3336 echo "${ECHO_T}$ac_header_compiler" >&6
3337
3338 # Is the header present?
3339 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3340 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3341 cat >conftest.$ac_ext <<_ACEOF
3342 /* confdefs.h.  */
3343 _ACEOF
3344 cat confdefs.h >>conftest.$ac_ext
3345 cat >>conftest.$ac_ext <<_ACEOF
3346 /* end confdefs.h.  */
3347 #include <$ac_header>
3348 _ACEOF
3349 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3350   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3351   ac_status=$?
3352   grep -v '^ *+' conftest.er1 >conftest.err
3353   rm -f conftest.er1
3354   cat conftest.err >&5
3355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3356   (exit $ac_status); } >/dev/null; then
3357   if test -s conftest.err; then
3358     ac_cpp_err=$ac_c_preproc_warn_flag
3359     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3360   else
3361     ac_cpp_err=
3362   fi
3363 else
3364   ac_cpp_err=yes
3365 fi
3366 if test -z "$ac_cpp_err"; then
3367   ac_header_preproc=yes
3368 else
3369   echo "$as_me: failed program was:" >&5
3370 sed 's/^/| /' conftest.$ac_ext >&5
3371
3372   ac_header_preproc=no
3373 fi
3374 rm -f conftest.err conftest.$ac_ext
3375 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3376 echo "${ECHO_T}$ac_header_preproc" >&6
3377
3378 # So?  What about this header?
3379 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3380   yes:no: )
3381     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3382 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3383     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3384 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3385     ac_header_preproc=yes
3386     ;;
3387   no:yes:* )
3388     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3389 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3390     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
3391 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
3392     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3393 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3394     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
3395 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
3396     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3397 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3398     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3399 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3400     (
3401       cat <<\_ASBOX
3402 ## ------------------------------------------ ##
3403 ## Report this to the AC_PACKAGE_NAME lists.  ##
3404 ## ------------------------------------------ ##
3405 _ASBOX
3406     ) |
3407       sed "s/^/$as_me: WARNING:     /" >&2
3408     ;;
3409 esac
3410 echo "$as_me:$LINENO: checking for $ac_header" >&5
3411 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3412 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3413   echo $ECHO_N "(cached) $ECHO_C" >&6
3414 else
3415   eval "$as_ac_Header=\$ac_header_preproc"
3416 fi
3417 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3418 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3419
3420 fi
3421 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3422   cat >>confdefs.h <<_ACEOF
3423 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3424 _ACEOF
3425
3426 fi
3427
3428 done
3429
3430
3431 for ac_header in netinet/if_ether.h
3432 do
3433 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3434 echo "$as_me:$LINENO: checking for $ac_header" >&5
3435 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3436 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3437   echo $ECHO_N "(cached) $ECHO_C" >&6
3438 else
3439   cat >conftest.$ac_ext <<_ACEOF
3440 /* confdefs.h.  */
3441 _ACEOF
3442 cat confdefs.h >>conftest.$ac_ext
3443 cat >>conftest.$ac_ext <<_ACEOF
3444 /* end confdefs.h.  */
3445 #include <sys/types.h>
3446 #include <sys/socket.h>
3447
3448 #include <$ac_header>
3449 _ACEOF
3450 rm -f conftest.$ac_objext
3451 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3452   (eval $ac_compile) 2>conftest.er1
3453   ac_status=$?
3454   grep -v '^ *+' conftest.er1 >conftest.err
3455   rm -f conftest.er1
3456   cat conftest.err >&5
3457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3458   (exit $ac_status); } &&
3459          { ac_try='test -z "$ac_c_werror_flag"
3460                          || test ! -s conftest.err'
3461   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3462   (eval $ac_try) 2>&5
3463   ac_status=$?
3464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3465   (exit $ac_status); }; } &&
3466          { ac_try='test -s conftest.$ac_objext'
3467   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3468   (eval $ac_try) 2>&5
3469   ac_status=$?
3470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3471   (exit $ac_status); }; }; then
3472   eval "$as_ac_Header=yes"
3473 else
3474   echo "$as_me: failed program was:" >&5
3475 sed 's/^/| /' conftest.$ac_ext >&5
3476
3477 eval "$as_ac_Header=no"
3478 fi
3479 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3480 fi
3481 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3482 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3483 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3484   cat >>confdefs.h <<_ACEOF
3485 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3486 _ACEOF
3487
3488 fi
3489
3490 done
3491
3492 if test "$ac_cv_header_netinet_if_ether_h" != yes; then
3493         #
3494         # The simple test didn't work.
3495         # Do we need to include <net/if.h> first?
3496         # Unset ac_cv_header_netinet_if_ether_h so we don't
3497         # treat the previous failure as a cached value and
3498         # suppress the next test.
3499         #
3500         { echo "$as_me:$LINENO: Rechecking with some additional includes" >&5
3501 echo "$as_me: Rechecking with some additional includes" >&6;}
3502         unset ac_cv_header_netinet_if_ether_h
3503
3504 for ac_header in netinet/if_ether.h
3505 do
3506 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3507 echo "$as_me:$LINENO: checking for $ac_header" >&5
3508 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3509 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3510   echo $ECHO_N "(cached) $ECHO_C" >&6
3511 else
3512   cat >conftest.$ac_ext <<_ACEOF
3513 /* confdefs.h.  */
3514 _ACEOF
3515 cat confdefs.h >>conftest.$ac_ext
3516 cat >>conftest.$ac_ext <<_ACEOF
3517 /* end confdefs.h.  */
3518 #include <sys/types.h>
3519 #include <sys/socket.h>
3520 #include <netinet/in.h>
3521 struct mbuf;
3522 struct rtentry;
3523 #include <net/if.h>
3524
3525 #include <$ac_header>
3526 _ACEOF
3527 rm -f conftest.$ac_objext
3528 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3529   (eval $ac_compile) 2>conftest.er1
3530   ac_status=$?
3531   grep -v '^ *+' conftest.er1 >conftest.err
3532   rm -f conftest.er1
3533   cat conftest.err >&5
3534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3535   (exit $ac_status); } &&
3536          { ac_try='test -z "$ac_c_werror_flag"
3537                          || test ! -s conftest.err'
3538   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3539   (eval $ac_try) 2>&5
3540   ac_status=$?
3541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3542   (exit $ac_status); }; } &&
3543          { ac_try='test -s conftest.$ac_objext'
3544   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3545   (eval $ac_try) 2>&5
3546   ac_status=$?
3547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3548   (exit $ac_status); }; }; then
3549   eval "$as_ac_Header=yes"
3550 else
3551   echo "$as_me: failed program was:" >&5
3552 sed 's/^/| /' conftest.$ac_ext >&5
3553
3554 eval "$as_ac_Header=no"
3555 fi
3556 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3557 fi
3558 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3559 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3560 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3561   cat >>confdefs.h <<_ACEOF
3562 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3563 _ACEOF
3564
3565 fi
3566
3567 done
3568
3569 fi
3570
3571 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
3572 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
3573 if test "${ac_cv_header_time+set}" = set; then
3574   echo $ECHO_N "(cached) $ECHO_C" >&6
3575 else
3576   cat >conftest.$ac_ext <<_ACEOF
3577 /* confdefs.h.  */
3578 _ACEOF
3579 cat confdefs.h >>conftest.$ac_ext
3580 cat >>conftest.$ac_ext <<_ACEOF
3581 /* end confdefs.h.  */
3582 #include <sys/types.h>
3583 #include <sys/time.h>
3584 #include <time.h>
3585
3586 int
3587 main ()
3588 {
3589 if ((struct tm *) 0)
3590 return 0;
3591   ;
3592   return 0;
3593 }
3594 _ACEOF
3595 rm -f conftest.$ac_objext
3596 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3597   (eval $ac_compile) 2>conftest.er1
3598   ac_status=$?
3599   grep -v '^ *+' conftest.er1 >conftest.err
3600   rm -f conftest.er1
3601   cat conftest.err >&5
3602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3603   (exit $ac_status); } &&
3604          { ac_try='test -z "$ac_c_werror_flag"
3605                          || test ! -s conftest.err'
3606   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3607   (eval $ac_try) 2>&5
3608   ac_status=$?
3609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3610   (exit $ac_status); }; } &&
3611          { ac_try='test -s conftest.$ac_objext'
3612   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3613   (eval $ac_try) 2>&5
3614   ac_status=$?
3615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3616   (exit $ac_status); }; }; then
3617   ac_cv_header_time=yes
3618 else
3619   echo "$as_me: failed program was:" >&5
3620 sed 's/^/| /' conftest.$ac_ext >&5
3621
3622 ac_cv_header_time=no
3623 fi
3624 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3625 fi
3626 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
3627 echo "${ECHO_T}$ac_cv_header_time" >&6
3628 if test $ac_cv_header_time = yes; then
3629
3630 cat >>confdefs.h <<\_ACEOF
3631 #define TIME_WITH_SYS_TIME 1
3632 _ACEOF
3633
3634 fi
3635
3636
3637 case "$host_os" in
3638
3639 linux*)
3640         echo "$as_me:$LINENO: checking Linux kernel version" >&5
3641 echo $ECHO_N "checking Linux kernel version... $ECHO_C" >&6
3642         if test "$cross_compiling" = yes; then
3643                 if test "${ac_cv_linux_vers+set}" = set; then
3644   echo $ECHO_N "(cached) $ECHO_C" >&6
3645 else
3646   ac_cv_linux_vers=2
3647 fi
3648
3649         else
3650                 if test "${ac_cv_linux_vers+set}" = set; then
3651   echo $ECHO_N "(cached) $ECHO_C" >&6
3652 else
3653   ac_cv_linux_vers=`uname -r 2>&1 | \
3654                         sed -n -e '$s/.* //' -e '$s/\..*//p'`
3655 fi
3656
3657         fi
3658         echo "$as_me:$LINENO: result: $ac_cv_linux_vers" >&5
3659 echo "${ECHO_T}$ac_cv_linux_vers" >&6
3660         if test $ac_cv_linux_vers = unknown ; then
3661                 { { echo "$as_me:$LINENO: error: cannot determine linux version when cross-compiling" >&5
3662 echo "$as_me: error: cannot determine linux version when cross-compiling" >&2;}
3663    { (exit 1); exit 1; }; }
3664         fi
3665         if test $ac_cv_linux_vers -lt 2 ; then
3666                 { { echo "$as_me:$LINENO: error: version 2 or higher required; see the INSTALL doc for more info" >&5
3667 echo "$as_me: error: version 2 or higher required; see the INSTALL doc for more info" >&2;}
3668    { (exit 1); exit 1; }; }
3669         fi
3670         ;;
3671
3672 *)
3673         ;;
3674 esac
3675
3676
3677
3678 for ac_header in smi.h
3679 do
3680 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3681 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3682   echo "$as_me:$LINENO: checking for $ac_header" >&5
3683 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3684 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3685   echo $ECHO_N "(cached) $ECHO_C" >&6
3686 fi
3687 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3688 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3689 else
3690   # Is the header compilable?
3691 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3692 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3693 cat >conftest.$ac_ext <<_ACEOF
3694 /* confdefs.h.  */
3695 _ACEOF
3696 cat confdefs.h >>conftest.$ac_ext
3697 cat >>conftest.$ac_ext <<_ACEOF
3698 /* end confdefs.h.  */
3699 $ac_includes_default
3700 #include <$ac_header>
3701 _ACEOF
3702 rm -f conftest.$ac_objext
3703 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3704   (eval $ac_compile) 2>conftest.er1
3705   ac_status=$?
3706   grep -v '^ *+' conftest.er1 >conftest.err
3707   rm -f conftest.er1
3708   cat conftest.err >&5
3709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3710   (exit $ac_status); } &&
3711          { ac_try='test -z "$ac_c_werror_flag"
3712                          || test ! -s conftest.err'
3713   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3714   (eval $ac_try) 2>&5
3715   ac_status=$?
3716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3717   (exit $ac_status); }; } &&
3718          { ac_try='test -s conftest.$ac_objext'
3719   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3720   (eval $ac_try) 2>&5
3721   ac_status=$?
3722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3723   (exit $ac_status); }; }; then
3724   ac_header_compiler=yes
3725 else
3726   echo "$as_me: failed program was:" >&5
3727 sed 's/^/| /' conftest.$ac_ext >&5
3728
3729 ac_header_compiler=no
3730 fi
3731 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3732 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3733 echo "${ECHO_T}$ac_header_compiler" >&6
3734
3735 # Is the header present?
3736 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3737 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3738 cat >conftest.$ac_ext <<_ACEOF
3739 /* confdefs.h.  */
3740 _ACEOF
3741 cat confdefs.h >>conftest.$ac_ext
3742 cat >>conftest.$ac_ext <<_ACEOF
3743 /* end confdefs.h.  */
3744 #include <$ac_header>
3745 _ACEOF
3746 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3747   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3748   ac_status=$?
3749   grep -v '^ *+' conftest.er1 >conftest.err
3750   rm -f conftest.er1
3751   cat conftest.err >&5
3752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3753   (exit $ac_status); } >/dev/null; then
3754   if test -s conftest.err; then
3755     ac_cpp_err=$ac_c_preproc_warn_flag
3756     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3757   else
3758     ac_cpp_err=
3759   fi
3760 else
3761   ac_cpp_err=yes
3762 fi
3763 if test -z "$ac_cpp_err"; then
3764   ac_header_preproc=yes
3765 else
3766   echo "$as_me: failed program was:" >&5
3767 sed 's/^/| /' conftest.$ac_ext >&5
3768
3769   ac_header_preproc=no
3770 fi
3771 rm -f conftest.err conftest.$ac_ext
3772 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3773 echo "${ECHO_T}$ac_header_preproc" >&6
3774
3775 # So?  What about this header?
3776 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3777   yes:no: )
3778     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3779 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3780     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3781 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3782     ac_header_preproc=yes
3783     ;;
3784   no:yes:* )
3785     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3786 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3787     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
3788 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
3789     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3790 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3791     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
3792 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
3793     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3794 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3795     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3796 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3797     (
3798       cat <<\_ASBOX
3799 ## ------------------------------------------ ##
3800 ## Report this to the AC_PACKAGE_NAME lists.  ##
3801 ## ------------------------------------------ ##
3802 _ASBOX
3803     ) |
3804       sed "s/^/$as_me: WARNING:     /" >&2
3805     ;;
3806 esac
3807 echo "$as_me:$LINENO: checking for $ac_header" >&5
3808 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3809 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3810   echo $ECHO_N "(cached) $ECHO_C" >&6
3811 else
3812   eval "$as_ac_Header=\$ac_header_preproc"
3813 fi
3814 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3815 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3816
3817 fi
3818 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3819   cat >>confdefs.h <<_ACEOF
3820 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3821 _ACEOF
3822
3823 fi
3824
3825 done
3826
3827
3828 echo "$as_me:$LINENO: checking for smiInit in -lsmi" >&5
3829 echo $ECHO_N "checking for smiInit in -lsmi... $ECHO_C" >&6
3830 if test "${ac_cv_lib_smi_smiInit+set}" = set; then
3831   echo $ECHO_N "(cached) $ECHO_C" >&6
3832 else
3833   ac_check_lib_save_LIBS=$LIBS
3834 LIBS="-lsmi  $LIBS"
3835 cat >conftest.$ac_ext <<_ACEOF
3836 /* confdefs.h.  */
3837 _ACEOF
3838 cat confdefs.h >>conftest.$ac_ext
3839 cat >>conftest.$ac_ext <<_ACEOF
3840 /* end confdefs.h.  */
3841
3842 /* Override any gcc2 internal prototype to avoid an error.  */
3843 #ifdef __cplusplus
3844 extern "C"
3845 #endif
3846 /* We use char because int might match the return type of a gcc2
3847    builtin and then its argument prototype would still apply.  */
3848 char smiInit ();
3849 int
3850 main ()
3851 {
3852 smiInit ();
3853   ;
3854   return 0;
3855 }
3856 _ACEOF
3857 rm -f conftest.$ac_objext conftest$ac_exeext
3858 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3859   (eval $ac_link) 2>conftest.er1
3860   ac_status=$?
3861   grep -v '^ *+' conftest.er1 >conftest.err
3862   rm -f conftest.er1
3863   cat conftest.err >&5
3864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3865   (exit $ac_status); } &&
3866          { ac_try='test -z "$ac_c_werror_flag"
3867                          || test ! -s conftest.err'
3868   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3869   (eval $ac_try) 2>&5
3870   ac_status=$?
3871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3872   (exit $ac_status); }; } &&
3873          { ac_try='test -s conftest$ac_exeext'
3874   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3875   (eval $ac_try) 2>&5
3876   ac_status=$?
3877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3878   (exit $ac_status); }; }; then
3879   ac_cv_lib_smi_smiInit=yes
3880 else
3881   echo "$as_me: failed program was:" >&5
3882 sed 's/^/| /' conftest.$ac_ext >&5
3883
3884 ac_cv_lib_smi_smiInit=no
3885 fi
3886 rm -f conftest.err conftest.$ac_objext \
3887       conftest$ac_exeext conftest.$ac_ext
3888 LIBS=$ac_check_lib_save_LIBS
3889 fi
3890 echo "$as_me:$LINENO: result: $ac_cv_lib_smi_smiInit" >&5
3891 echo "${ECHO_T}$ac_cv_lib_smi_smiInit" >&6
3892 if test $ac_cv_lib_smi_smiInit = yes; then
3893   cat >>confdefs.h <<_ACEOF
3894 #define HAVE_LIBSMI 1
3895 _ACEOF
3896
3897   LIBS="-lsmi $LIBS"
3898
3899 fi
3900
3901 if test "$ac_cv_header_smi_h" = yes -a "$ac_cv_lib_smi_smiInit" = yes
3902 then
3903 echo "$as_me:$LINENO: checking whether to enable libsmi" >&5
3904 echo $ECHO_N "checking whether to enable libsmi... $ECHO_C" >&6
3905         if test "$cross_compiling" = yes; then
3906    echo "$as_me:$LINENO: result: not when cross-compiling" >&5
3907 echo "${ECHO_T}not when cross-compiling" >&6
3908   libsmi=no
3909
3910 else
3911   cat >conftest.$ac_ext <<_ACEOF
3912 /* confdefs.h.  */
3913 _ACEOF
3914 cat confdefs.h >>conftest.$ac_ext
3915 cat >>conftest.$ac_ext <<_ACEOF
3916 /* end confdefs.h.  */
3917  /* libsmi available check */
3918 #include <smi.h>
3919 main()
3920 {
3921   int current, revision, age, n;
3922   const int required = 2;
3923   if (smiInit(""))
3924     exit(1);
3925   if (strcmp(SMI_LIBRARY_VERSION, smi_library_version))
3926     exit(2);
3927   n = sscanf(smi_library_version, "%d:%d:%d", &current, &revision, &age);
3928   if (n != 3)
3929     exit(3);
3930   if (required < current - age || required > current)
3931     exit(4);
3932   exit(0);
3933 }
3934
3935 _ACEOF
3936 rm -f conftest$ac_exeext
3937 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3938   (eval $ac_link) 2>&5
3939   ac_status=$?
3940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3941   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3942   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3943   (eval $ac_try) 2>&5
3944   ac_status=$?
3945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3946   (exit $ac_status); }; }; then
3947    echo "$as_me:$LINENO: result: yes" >&5
3948 echo "${ECHO_T}yes" >&6
3949   cat >>confdefs.h <<\_ACEOF
3950 #define LIBSMI 1
3951 _ACEOF
3952
3953   libsmi=yes
3954 else
3955   echo "$as_me: program exited with status $ac_status" >&5
3956 echo "$as_me: failed program was:" >&5
3957 sed 's/^/| /' conftest.$ac_ext >&5
3958
3959 ( exit $ac_status )
3960  case $? in
3961   1) echo "$as_me:$LINENO: result: no - smiInit failed" >&5
3962 echo "${ECHO_T}no - smiInit failed" >&6 ;;
3963   2) echo "$as_me:$LINENO: result: no - header/library version mismatch" >&5
3964 echo "${ECHO_T}no - header/library version mismatch" >&6 ;;
3965   3) echo "$as_me:$LINENO: result: no - can't determine library version" >&5
3966 echo "${ECHO_T}no - can't determine library version" >&6 ;;
3967   4) echo "$as_me:$LINENO: result: no - too old" >&5
3968 echo "${ECHO_T}no - too old" >&6 ;;
3969   *) echo "$as_me:$LINENO: result: no" >&5
3970 echo "${ECHO_T}no" >&6 ;;
3971   esac
3972   libsmi=no
3973 fi
3974 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3975 fi
3976 fi
3977
3978 echo "$as_me:$LINENO: checking whether to enable the possibly-buggy SMB printer" >&5
3979 echo $ECHO_N "checking whether to enable the possibly-buggy SMB printer... $ECHO_C" >&6
3980 # Check whether --enable-smb or --disable-smb was given.
3981 if test "${enable_smb+set}" = set; then
3982   enableval="$enable_smb"
3983
3984 else
3985   enableval=yes
3986 fi;
3987 case "$enableval" in
3988 yes)    echo "$as_me:$LINENO: result: yes" >&5
3989 echo "${ECHO_T}yes" >&6
3990         { echo "$as_me:$LINENO: WARNING: The SMB printer may have exploitable buffer overflows!!!" >&5
3991 echo "$as_me: WARNING: The SMB printer may have exploitable buffer overflows!!!" >&2;}
3992         cat >>confdefs.h <<\_ACEOF
3993 #define TCPDUMP_DO_SMB 1
3994 _ACEOF
3995
3996         LOCALSRC="print-smb.c smbutil.c $LOCALSRC"
3997         ;;
3998 *)      echo "$as_me:$LINENO: result: no" >&5
3999 echo "${ECHO_T}no" >&6
4000         ;;
4001 esac
4002
4003
4004 # Check whether --with-user or --without-user was given.
4005 if test "${with_user+set}" = set; then
4006   withval="$with_user"
4007
4008 fi;
4009 echo "$as_me:$LINENO: checking whether to drop root privileges by default" >&5
4010 echo $ECHO_N "checking whether to drop root privileges by default... $ECHO_C" >&6
4011 if test ! -z "$with_user" ; then
4012         cat >>confdefs.h <<_ACEOF
4013 #define WITH_USER "$withval"
4014 _ACEOF
4015
4016        echo "$as_me:$LINENO: result: to \"$withval\"" >&5
4017 echo "${ECHO_T}to \"$withval\"" >&6
4018 else
4019        echo "$as_me:$LINENO: result: no" >&5
4020 echo "${ECHO_T}no" >&6
4021 fi
4022
4023
4024 # Check whether --with-chroot or --without-chroot was given.
4025 if test "${with_chroot+set}" = set; then
4026   withval="$with_chroot"
4027
4028 fi;
4029 echo "$as_me:$LINENO: checking whether to chroot" >&5
4030 echo $ECHO_N "checking whether to chroot... $ECHO_C" >&6
4031 if test ! -z "$with_chroot" ; then
4032         cat >>confdefs.h <<_ACEOF
4033 #define WITH_CHROOT "$withval"
4034 _ACEOF
4035
4036        echo "$as_me:$LINENO: result: to \"$withval\"" >&5
4037 echo "${ECHO_T}to \"$withval\"" >&6
4038 else
4039        echo "$as_me:$LINENO: result: no" >&5
4040 echo "${ECHO_T}no" >&6
4041 fi
4042
4043 echo "$as_me:$LINENO: checking whether to enable ipv6" >&5
4044 echo $ECHO_N "checking whether to enable ipv6... $ECHO_C" >&6
4045 # Check whether --enable-ipv6 or --disable-ipv6 was given.
4046 if test "${enable_ipv6+set}" = set; then
4047   enableval="$enable_ipv6"
4048    case "$enableval" in
4049 yes)   echo "$as_me:$LINENO: result: yes" >&5
4050 echo "${ECHO_T}yes" >&6
4051        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"
4052        cat >>confdefs.h <<\_ACEOF
4053 #define INET6 1
4054 _ACEOF
4055
4056        ipv6=yes
4057        ;;
4058 *)
4059        echo "$as_me:$LINENO: result: no" >&5
4060 echo "${ECHO_T}no" >&6
4061        ipv6=no
4062        ;;
4063   esac
4064 else
4065   if test "$cross_compiling" = yes; then
4066    echo "$as_me:$LINENO: result: no" >&5
4067 echo "${ECHO_T}no" >&6
4068   ipv6=no
4069
4070 else
4071   cat >conftest.$ac_ext <<_ACEOF
4072 /* confdefs.h.  */
4073 _ACEOF
4074 cat confdefs.h >>conftest.$ac_ext
4075 cat >>conftest.$ac_ext <<_ACEOF
4076 /* end confdefs.h.  */
4077  /* AF_INET6 available check */
4078 #include <sys/types.h>
4079 #include <sys/socket.h>
4080 main()
4081 {
4082  if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
4083    exit(1);
4084  else
4085    exit(0);
4086 }
4087
4088 _ACEOF
4089 rm -f conftest$ac_exeext
4090 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4091   (eval $ac_link) 2>&5
4092   ac_status=$?
4093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4094   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4095   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4096   (eval $ac_try) 2>&5
4097   ac_status=$?
4098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4099   (exit $ac_status); }; }; then
4100    echo "$as_me:$LINENO: result: yes" >&5
4101 echo "${ECHO_T}yes" >&6
4102   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"
4103   cat >>confdefs.h <<\_ACEOF
4104 #define INET6 1
4105 _ACEOF
4106
4107   ipv6=yes
4108 else
4109   echo "$as_me: program exited with status $ac_status" >&5
4110 echo "$as_me: failed program was:" >&5
4111 sed 's/^/| /' conftest.$ac_ext >&5
4112
4113 ( exit $ac_status )
4114  echo "$as_me:$LINENO: result: no" >&5
4115 echo "${ECHO_T}no" >&6
4116   ipv6=no
4117 fi
4118 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4119 fi
4120 fi;
4121
4122 ipv6type=unknown
4123 ipv6lib=none
4124 ipv6trylibc=no
4125
4126 if test "$ipv6" = "yes"; then
4127         echo "$as_me:$LINENO: checking ipv6 stack type" >&5
4128 echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6
4129         for i in inria kame linux-glibc linux-libinet6 toshiba v6d zeta; do
4130                 case $i in
4131                 inria)
4132                                                 cat >conftest.$ac_ext <<_ACEOF
4133 /* confdefs.h.  */
4134 _ACEOF
4135 cat confdefs.h >>conftest.$ac_ext
4136 cat >>conftest.$ac_ext <<_ACEOF
4137 /* end confdefs.h.  */
4138 #include <netinet/in.h>
4139 #ifdef IPV6_INRIA_VERSION
4140 yes
4141 #endif
4142 _ACEOF
4143 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4144   $EGREP "yes" >/dev/null 2>&1; then
4145   ipv6type=$i;
4146                                 CFLAGS="-DINET6 $CFLAGS"
4147 fi
4148 rm -f conftest*
4149
4150                         ;;
4151                 kame)
4152                                                 cat >conftest.$ac_ext <<_ACEOF
4153 /* confdefs.h.  */
4154 _ACEOF
4155 cat confdefs.h >>conftest.$ac_ext
4156 cat >>conftest.$ac_ext <<_ACEOF
4157 /* end confdefs.h.  */
4158 #include <netinet/in.h>
4159 #ifdef __KAME__
4160 yes
4161 #endif
4162 _ACEOF
4163 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4164   $EGREP "yes" >/dev/null 2>&1; then
4165   ipv6type=$i;
4166                                 ipv6lib=inet6;
4167                                 ipv6libdir=/usr/local/v6/lib;
4168                                 ipv6trylibc=yes;
4169                                 CFLAGS="-DINET6 $CFLAGS"
4170 fi
4171 rm -f conftest*
4172
4173                         ;;
4174                 linux-glibc)
4175                                                 cat >conftest.$ac_ext <<_ACEOF
4176 /* confdefs.h.  */
4177 _ACEOF
4178 cat confdefs.h >>conftest.$ac_ext
4179 cat >>conftest.$ac_ext <<_ACEOF
4180 /* end confdefs.h.  */
4181 #include <features.h>
4182 #if defined(__GLIBC__) && __GLIBC__ >= 2 && __GLIBC_MINOR__ >= 1
4183 yes
4184 #endif
4185 _ACEOF
4186 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4187   $EGREP "yes" >/dev/null 2>&1; then
4188   ipv6type=$i;
4189                                 CFLAGS="-DINET6 $CFLAGS"
4190 fi
4191 rm -f conftest*
4192
4193                         ;;
4194                 linux-libinet6)
4195                                                                                                                                                 if test -d /usr/inet6 -o -f /usr/include/netinet/ip6.h; then
4196                                 ipv6type=$i
4197                                 ipv6lib=inet6
4198                                 ipv6libdir=/usr/inet6/lib
4199                                 ipv6trylibc=yes;
4200                                 CFLAGS="-DINET6 -I/usr/inet6/include $CFLAGS"
4201                         fi
4202                         ;;
4203                 toshiba)
4204                         cat >conftest.$ac_ext <<_ACEOF
4205 /* confdefs.h.  */
4206 _ACEOF
4207 cat confdefs.h >>conftest.$ac_ext
4208 cat >>conftest.$ac_ext <<_ACEOF
4209 /* end confdefs.h.  */
4210 #include <sys/param.h>
4211 #ifdef _TOSHIBA_INET6
4212 yes
4213 #endif
4214 _ACEOF
4215 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4216   $EGREP "yes" >/dev/null 2>&1; then
4217   ipv6type=$i;
4218                                 ipv6lib=inet6;
4219                                 ipv6libdir=/usr/local/v6/lib;
4220                                 CFLAGS="-DINET6 $CFLAGS"
4221 fi
4222 rm -f conftest*
4223
4224                         ;;
4225                 v6d)
4226                         cat >conftest.$ac_ext <<_ACEOF
4227 /* confdefs.h.  */
4228 _ACEOF
4229 cat confdefs.h >>conftest.$ac_ext
4230 cat >>conftest.$ac_ext <<_ACEOF
4231 /* end confdefs.h.  */
4232 #include </usr/local/v6/include/sys/v6config.h>
4233 #ifdef __V6D__
4234 yes
4235 #endif
4236 _ACEOF
4237 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4238   $EGREP "yes" >/dev/null 2>&1; then
4239   ipv6type=$i;
4240                                 ipv6lib=v6;
4241                                 ipv6libdir=/usr/local/v6/lib;
4242                                 CFLAGS="-I/usr/local/v6/include $CFLAGS"
4243 fi
4244 rm -f conftest*
4245
4246                         ;;
4247                 zeta)
4248                         cat >conftest.$ac_ext <<_ACEOF
4249 /* confdefs.h.  */
4250 _ACEOF
4251 cat confdefs.h >>conftest.$ac_ext
4252 cat >>conftest.$ac_ext <<_ACEOF
4253 /* end confdefs.h.  */
4254 #include <sys/param.h>
4255 #ifdef _ZETA_MINAMI_INET6
4256 yes
4257 #endif
4258 _ACEOF
4259 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4260   $EGREP "yes" >/dev/null 2>&1; then
4261   ipv6type=$i;
4262                                 ipv6lib=inet6;
4263                                 ipv6libdir=/usr/local/v6/lib;
4264                                 CFLAGS="-DINET6 $CFLAGS"
4265 fi
4266 rm -f conftest*
4267
4268                         ;;
4269                 esac
4270                 if test "$ipv6type" != "unknown"; then
4271                         break
4272                 fi
4273         done
4274         echo "$as_me:$LINENO: result: $ipv6type" >&5
4275 echo "${ECHO_T}$ipv6type" >&6
4276 fi
4277
4278 if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
4279         if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then
4280                 LIBS="-L$ipv6libdir -l$ipv6lib $LIBS"
4281                 echo "You have $ipv6lib library, using it"
4282         else
4283                 if test "$ipv6trylibc" = "yes"; then
4284                         echo "You do not have $ipv6lib library, using libc"
4285                 else
4286                         echo 'Fatal: no $ipv6lib library found.  cannot continue.'
4287                         echo "You need to fetch lib$ipv6lib.a from appropriate"
4288                         echo 'ipv6 kit and compile beforehand.'
4289                         exit 1
4290                 fi
4291         fi
4292 fi
4293
4294
4295 if test "$ipv6" = "yes"; then
4296         #
4297         # XXX - on Tru64 UNIX 5.1, there is no "getaddrinfo()"
4298         # function in libc; there are "ngetaddrinfo()" and
4299         # "ogetaddrinfo()" functions, and <netdb.h> #defines
4300         # "getaddrinfo" to be either "ngetaddrinfo" or
4301         # "ogetaddrinfo", depending on whether _SOCKADDR_LEN
4302         # or _XOPEN_SOURCE_EXTENDED are defined or not.
4303         #
4304         # So this test doesn't work on Tru64 5.1, and possibly
4305         # on other 5.x releases.  This causes the configure
4306         # script to become confused, and results in libpcap
4307         # being unbuildable.
4308         #
4309         echo "$as_me:$LINENO: checking for library containing getaddrinfo" >&5
4310 echo $ECHO_N "checking for library containing getaddrinfo... $ECHO_C" >&6
4311 if test "${ac_cv_search_getaddrinfo+set}" = set; then
4312   echo $ECHO_N "(cached) $ECHO_C" >&6
4313 else
4314   ac_func_search_save_LIBS=$LIBS
4315 ac_cv_search_getaddrinfo=no
4316 cat >conftest.$ac_ext <<_ACEOF
4317 /* confdefs.h.  */
4318 _ACEOF
4319 cat confdefs.h >>conftest.$ac_ext
4320 cat >>conftest.$ac_ext <<_ACEOF
4321 /* end confdefs.h.  */
4322
4323 /* Override any gcc2 internal prototype to avoid an error.  */
4324 #ifdef __cplusplus
4325 extern "C"
4326 #endif
4327 /* We use char because int might match the return type of a gcc2
4328    builtin and then its argument prototype would still apply.  */
4329 char getaddrinfo ();
4330 int
4331 main ()
4332 {
4333 getaddrinfo ();
4334   ;
4335   return 0;
4336 }
4337 _ACEOF
4338 rm -f conftest.$ac_objext conftest$ac_exeext
4339 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4340   (eval $ac_link) 2>conftest.er1
4341   ac_status=$?
4342   grep -v '^ *+' conftest.er1 >conftest.err
4343   rm -f conftest.er1
4344   cat conftest.err >&5
4345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4346   (exit $ac_status); } &&
4347          { ac_try='test -z "$ac_c_werror_flag"
4348                          || test ! -s conftest.err'
4349   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4350   (eval $ac_try) 2>&5
4351   ac_status=$?
4352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4353   (exit $ac_status); }; } &&
4354          { ac_try='test -s conftest$ac_exeext'
4355   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4356   (eval $ac_try) 2>&5
4357   ac_status=$?
4358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4359   (exit $ac_status); }; }; then
4360   ac_cv_search_getaddrinfo="none required"
4361 else
4362   echo "$as_me: failed program was:" >&5
4363 sed 's/^/| /' conftest.$ac_ext >&5
4364
4365 fi
4366 rm -f conftest.err conftest.$ac_objext \
4367       conftest$ac_exeext conftest.$ac_ext
4368 if test "$ac_cv_search_getaddrinfo" = no; then
4369   for ac_lib in socket; do
4370     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
4371     cat >conftest.$ac_ext <<_ACEOF
4372 /* confdefs.h.  */
4373 _ACEOF
4374 cat confdefs.h >>conftest.$ac_ext
4375 cat >>conftest.$ac_ext <<_ACEOF
4376 /* end confdefs.h.  */
4377
4378 /* Override any gcc2 internal prototype to avoid an error.  */
4379 #ifdef __cplusplus
4380 extern "C"
4381 #endif
4382 /* We use char because int might match the return type of a gcc2
4383    builtin and then its argument prototype would still apply.  */
4384 char getaddrinfo ();
4385 int
4386 main ()
4387 {
4388 getaddrinfo ();
4389   ;
4390   return 0;
4391 }
4392 _ACEOF
4393 rm -f conftest.$ac_objext conftest$ac_exeext
4394 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4395   (eval $ac_link) 2>conftest.er1
4396   ac_status=$?
4397   grep -v '^ *+' conftest.er1 >conftest.err
4398   rm -f conftest.er1
4399   cat conftest.err >&5
4400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4401   (exit $ac_status); } &&
4402          { ac_try='test -z "$ac_c_werror_flag"
4403                          || test ! -s conftest.err'
4404   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4405   (eval $ac_try) 2>&5
4406   ac_status=$?
4407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4408   (exit $ac_status); }; } &&
4409          { ac_try='test -s conftest$ac_exeext'
4410   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4411   (eval $ac_try) 2>&5
4412   ac_status=$?
4413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4414   (exit $ac_status); }; }; then
4415   ac_cv_search_getaddrinfo="-l$ac_lib"
4416 break
4417 else
4418   echo "$as_me: failed program was:" >&5
4419 sed 's/^/| /' conftest.$ac_ext >&5
4420
4421 fi
4422 rm -f conftest.err conftest.$ac_objext \
4423       conftest$ac_exeext conftest.$ac_ext
4424   done
4425 fi
4426 LIBS=$ac_func_search_save_LIBS
4427 fi
4428 echo "$as_me:$LINENO: result: $ac_cv_search_getaddrinfo" >&5
4429 echo "${ECHO_T}$ac_cv_search_getaddrinfo" >&6
4430 if test "$ac_cv_search_getaddrinfo" != no; then
4431   test "$ac_cv_search_getaddrinfo" = "none required" || LIBS="$ac_cv_search_getaddrinfo $LIBS"
4432         echo "$as_me:$LINENO: checking getaddrinfo bug" >&5
4433 echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6
4434         if test "${td_cv_buggygetaddrinfo+set}" = set; then
4435   echo $ECHO_N "(cached) $ECHO_C" >&6
4436 else
4437   if test "$cross_compiling" = yes; then
4438    echo "$as_me:$LINENO: result: not while cross-compiling" >&5
4439 echo "${ECHO_T}not while cross-compiling" >&6
4440           td_cv_buggygetaddrinfo=no
4441 else
4442   cat >conftest.$ac_ext <<_ACEOF
4443 /* confdefs.h.  */
4444 _ACEOF
4445 cat confdefs.h >>conftest.$ac_ext
4446 cat >>conftest.$ac_ext <<_ACEOF
4447 /* end confdefs.h.  */
4448
4449 #include <sys/types.h>
4450 #include <netdb.h>
4451 #include <string.h>
4452 #include <sys/socket.h>
4453 #include <netinet/in.h>
4454
4455 main()
4456 {
4457   int passive, gaierr, inet4 = 0, inet6 = 0;
4458   struct addrinfo hints, *ai, *aitop;
4459   char straddr[INET6_ADDRSTRLEN], strport[16];
4460
4461   for (passive = 0; passive <= 1; passive++) {
4462     memset(&hints, 0, sizeof(hints));
4463     hints.ai_family = AF_UNSPEC;
4464     hints.ai_flags = passive ? AI_PASSIVE : 0;
4465     hints.ai_socktype = SOCK_STREAM;
4466     hints.ai_protocol = IPPROTO_TCP;
4467     if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
4468       (void)gai_strerror(gaierr);
4469       goto bad;
4470     }
4471     for (ai = aitop; ai; ai = ai->ai_next) {
4472       if (ai->ai_addr == NULL ||
4473           ai->ai_addrlen == 0 ||
4474           getnameinfo(ai->ai_addr, ai->ai_addrlen,
4475                       straddr, sizeof(straddr), strport, sizeof(strport),
4476                       NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
4477         goto bad;
4478       }
4479       switch (ai->ai_family) {
4480       case AF_INET:
4481         if (strcmp(strport, "54321") != 0) {
4482           goto bad;
4483         }
4484         if (passive) {
4485           if (strcmp(straddr, "0.0.0.0") != 0) {
4486             goto bad;
4487           }
4488         } else {
4489           if (strcmp(straddr, "127.0.0.1") != 0) {
4490             goto bad;
4491           }
4492         }
4493         inet4++;
4494         break;
4495       case AF_INET6:
4496         if (strcmp(strport, "54321") != 0) {
4497           goto bad;
4498         }
4499         if (passive) {
4500           if (strcmp(straddr, "::") != 0) {
4501             goto bad;
4502           }
4503         } else {
4504           if (strcmp(straddr, "::1") != 0) {
4505             goto bad;
4506           }
4507         }
4508         inet6++;
4509         break;
4510       case AF_UNSPEC:
4511         goto bad;
4512         break;
4513 #ifdef AF_UNIX
4514       case AF_UNIX:
4515 #else
4516 #ifdef AF_LOCAL
4517       case AF_LOCAL:
4518 #endif
4519 #endif
4520       default:
4521         /* another family support? */
4522         break;
4523       }
4524     }
4525   }
4526
4527   /* supported family should be 2, unsupported family should be 0 */
4528   if (!(inet4 == 0 || inet4 == 2))
4529     goto bad;
4530   if (!(inet6 == 0 || inet6 == 2))
4531     goto bad;
4532
4533   if (aitop)
4534     freeaddrinfo(aitop);
4535   exit(0);
4536
4537  bad:
4538   if (aitop)
4539     freeaddrinfo(aitop);
4540   exit(1);
4541 }
4542
4543 _ACEOF
4544 rm -f conftest$ac_exeext
4545 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4546   (eval $ac_link) 2>&5
4547   ac_status=$?
4548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4549   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4550   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4551   (eval $ac_try) 2>&5
4552   ac_status=$?
4553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4554   (exit $ac_status); }; }; then
4555    echo "$as_me:$LINENO: result: good" >&5
4556 echo "${ECHO_T}good" >&6
4557           td_cv_buggygetaddrinfo=no
4558 else
4559   echo "$as_me: program exited with status $ac_status" >&5
4560 echo "$as_me: failed program was:" >&5
4561 sed 's/^/| /' conftest.$ac_ext >&5
4562
4563 ( exit $ac_status )
4564  echo "$as_me:$LINENO: result: buggy" >&5
4565 echo "${ECHO_T}buggy" >&6
4566           td_cv_buggygetaddrinfo=yes
4567 fi
4568 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4569 fi
4570 fi
4571
4572
4573         if test "$td_cv_buggygetaddrinfo" = "yes"; then
4574                 #
4575                 # XXX - it doesn't appear that "ipv6type" can ever be
4576                 # set to "linux".  Should this be testing for
4577                 # "linux-glibc", or for that *or* "linux-libinet6"?
4578                 # If the latter, note that "linux-libinet6" is also
4579                 # the type given to some non-Linux OSes.
4580                 #
4581                 if test "$ipv6type" != "linux"; then
4582                         echo 'Fatal: You must get working getaddrinfo() function.'
4583                         echo '       or you can specify "--disable-ipv6"'.
4584                         exit 1
4585                 else
4586                         echo 'Warning: getaddrinfo() implementation on your system seems be buggy.'
4587                         echo '         Better upgrade your system library to newest version'
4588                         echo '         of GNU C library (aka glibc).'
4589                 fi
4590         fi
4591
4592 fi
4593
4594
4595
4596 for ac_func in getaddrinfo getnameinfo
4597 do
4598 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4599 echo "$as_me:$LINENO: checking for $ac_func" >&5
4600 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4601 if eval "test \"\${$as_ac_var+set}\" = set"; then
4602   echo $ECHO_N "(cached) $ECHO_C" >&6
4603 else
4604   cat >conftest.$ac_ext <<_ACEOF
4605 /* confdefs.h.  */
4606 _ACEOF
4607 cat confdefs.h >>conftest.$ac_ext
4608 cat >>conftest.$ac_ext <<_ACEOF
4609 /* end confdefs.h.  */
4610 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4611    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4612 #define $ac_func innocuous_$ac_func
4613
4614 /* System header to define __stub macros and hopefully few prototypes,
4615     which can conflict with char $ac_func (); below.
4616     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4617     <limits.h> exists even on freestanding compilers.  */
4618
4619 #ifdef __STDC__
4620 # include <limits.h>
4621 #else
4622 # include <assert.h>
4623 #endif
4624
4625 #undef $ac_func
4626
4627 /* Override any gcc2 internal prototype to avoid an error.  */
4628 #ifdef __cplusplus
4629 extern "C"
4630 {
4631 #endif
4632 /* We use char because int might match the return type of a gcc2
4633    builtin and then its argument prototype would still apply.  */
4634 char $ac_func ();
4635 /* The GNU C library defines this for functions which it implements
4636     to always fail with ENOSYS.  Some functions are actually named
4637     something starting with __ and the normal name is an alias.  */
4638 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4639 choke me
4640 #else
4641 char (*f) () = $ac_func;
4642 #endif
4643 #ifdef __cplusplus
4644 }
4645 #endif
4646
4647 int
4648 main ()
4649 {
4650 return f != $ac_func;
4651   ;
4652   return 0;
4653 }
4654 _ACEOF
4655 rm -f conftest.$ac_objext conftest$ac_exeext
4656 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4657   (eval $ac_link) 2>conftest.er1
4658   ac_status=$?
4659   grep -v '^ *+' conftest.er1 >conftest.err
4660   rm -f conftest.er1
4661   cat conftest.err >&5
4662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4663   (exit $ac_status); } &&
4664          { ac_try='test -z "$ac_c_werror_flag"
4665                          || test ! -s conftest.err'
4666   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4667   (eval $ac_try) 2>&5
4668   ac_status=$?
4669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4670   (exit $ac_status); }; } &&
4671          { ac_try='test -s conftest$ac_exeext'
4672   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4673   (eval $ac_try) 2>&5
4674   ac_status=$?
4675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4676   (exit $ac_status); }; }; then
4677   eval "$as_ac_var=yes"
4678 else
4679   echo "$as_me: failed program was:" >&5
4680 sed 's/^/| /' conftest.$ac_ext >&5
4681
4682 eval "$as_ac_var=no"
4683 fi
4684 rm -f conftest.err conftest.$ac_objext \
4685       conftest$ac_exeext conftest.$ac_ext
4686 fi
4687 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4688 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4689 if test `eval echo '${'$as_ac_var'}'` = yes; then
4690   cat >>confdefs.h <<_ACEOF
4691 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4692 _ACEOF
4693
4694 else
4695   case $LIBOBJS in
4696     "$ac_func.$ac_objext"   | \
4697   *" $ac_func.$ac_objext"   | \
4698     "$ac_func.$ac_objext "* | \
4699   *" $ac_func.$ac_objext "* ) ;;
4700   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
4701 esac
4702
4703 fi
4704 done
4705
4706
4707 fi
4708
4709 echo "$as_me:$LINENO: checking for dnet_htoa declaration in netdnet/dnetdb.h" >&5
4710 echo $ECHO_N "checking for dnet_htoa declaration in netdnet/dnetdb.h... $ECHO_C" >&6
4711 if test "${td_cv_decl_netdnet_dnetdb_h_dnet_htoa+set}" = set; then
4712   echo $ECHO_N "(cached) $ECHO_C" >&6
4713 else
4714   cat >conftest.$ac_ext <<_ACEOF
4715 /* confdefs.h.  */
4716 _ACEOF
4717 cat confdefs.h >>conftest.$ac_ext
4718 cat >>conftest.$ac_ext <<_ACEOF
4719 /* end confdefs.h.  */
4720 #include <netdnet/dnetdb.h>
4721
4722 _ACEOF
4723 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4724   $EGREP "dnet_htoa" >/dev/null 2>&1; then
4725   td_cv_decl_netdnet_dnetdb_h_dnet_htoa=yes
4726 else
4727   td_cv_decl_netdnet_dnetdb_h_dnet_htoa=no
4728 fi
4729 rm -f conftest*
4730
4731 fi
4732 echo "$as_me:$LINENO: result: $td_cv_decl_netdnet_dnetdb_h_dnet_htoa" >&5
4733 echo "${ECHO_T}$td_cv_decl_netdnet_dnetdb_h_dnet_htoa" >&6
4734 if test "$td_cv_decl_netdnet_dnetdb_h_dnet_htoa" = yes; then
4735         cat >>confdefs.h <<\_ACEOF
4736 #define HAVE_NETDNET_DNETDB_H_DNET_HTOA 1
4737 _ACEOF
4738
4739 fi
4740
4741 echo "$as_me:$LINENO: checking for char" >&5
4742 echo $ECHO_N "checking for char... $ECHO_C" >&6
4743 if test "${ac_cv_type_char+set}" = set; then
4744   echo $ECHO_N "(cached) $ECHO_C" >&6
4745 else
4746   cat >conftest.$ac_ext <<_ACEOF
4747 /* confdefs.h.  */
4748 _ACEOF
4749 cat confdefs.h >>conftest.$ac_ext
4750 cat >>conftest.$ac_ext <<_ACEOF
4751 /* end confdefs.h.  */
4752 $ac_includes_default
4753 int
4754 main ()
4755 {
4756 if ((char *) 0)
4757   return 0;
4758 if (sizeof (char))
4759   return 0;
4760   ;
4761   return 0;
4762 }
4763 _ACEOF
4764 rm -f conftest.$ac_objext
4765 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4766   (eval $ac_compile) 2>conftest.er1
4767   ac_status=$?
4768   grep -v '^ *+' conftest.er1 >conftest.err
4769   rm -f conftest.er1
4770   cat conftest.err >&5
4771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4772   (exit $ac_status); } &&
4773          { ac_try='test -z "$ac_c_werror_flag"
4774                          || test ! -s conftest.err'
4775   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4776   (eval $ac_try) 2>&5
4777   ac_status=$?
4778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4779   (exit $ac_status); }; } &&
4780          { ac_try='test -s conftest.$ac_objext'
4781   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4782   (eval $ac_try) 2>&5
4783   ac_status=$?
4784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4785   (exit $ac_status); }; }; then
4786   ac_cv_type_char=yes
4787 else
4788   echo "$as_me: failed program was:" >&5
4789 sed 's/^/| /' conftest.$ac_ext >&5
4790
4791 ac_cv_type_char=no
4792 fi
4793 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4794 fi
4795 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
4796 echo "${ECHO_T}$ac_cv_type_char" >&6
4797
4798 echo "$as_me:$LINENO: checking size of char" >&5
4799 echo $ECHO_N "checking size of char... $ECHO_C" >&6
4800 if test "${ac_cv_sizeof_char+set}" = set; then
4801   echo $ECHO_N "(cached) $ECHO_C" >&6
4802 else
4803   if test "$ac_cv_type_char" = yes; then
4804   # The cast to unsigned long works around a bug in the HP C Compiler
4805   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4806   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4807   # This bug is HP SR number 8606223364.
4808   if test "$cross_compiling" = yes; then
4809   # Depending upon the size, compute the lo and hi bounds.
4810 cat >conftest.$ac_ext <<_ACEOF
4811 /* confdefs.h.  */
4812 _ACEOF
4813 cat confdefs.h >>conftest.$ac_ext
4814 cat >>conftest.$ac_ext <<_ACEOF
4815 /* end confdefs.h.  */
4816 $ac_includes_default
4817 int
4818 main ()
4819 {
4820 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
4821 test_array [0] = 0
4822
4823   ;
4824   return 0;
4825 }
4826 _ACEOF
4827 rm -f conftest.$ac_objext
4828 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4829   (eval $ac_compile) 2>conftest.er1
4830   ac_status=$?
4831   grep -v '^ *+' conftest.er1 >conftest.err
4832   rm -f conftest.er1
4833   cat conftest.err >&5
4834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4835   (exit $ac_status); } &&
4836          { ac_try='test -z "$ac_c_werror_flag"
4837                          || test ! -s conftest.err'
4838   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4839   (eval $ac_try) 2>&5
4840   ac_status=$?
4841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4842   (exit $ac_status); }; } &&
4843          { ac_try='test -s conftest.$ac_objext'
4844   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4845   (eval $ac_try) 2>&5
4846   ac_status=$?
4847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4848   (exit $ac_status); }; }; then
4849   ac_lo=0 ac_mid=0
4850   while :; do
4851     cat >conftest.$ac_ext <<_ACEOF
4852 /* confdefs.h.  */
4853 _ACEOF
4854 cat confdefs.h >>conftest.$ac_ext
4855 cat >>conftest.$ac_ext <<_ACEOF
4856 /* end confdefs.h.  */
4857 $ac_includes_default
4858 int
4859 main ()
4860 {
4861 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
4862 test_array [0] = 0
4863
4864   ;
4865   return 0;
4866 }
4867 _ACEOF
4868 rm -f conftest.$ac_objext
4869 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4870   (eval $ac_compile) 2>conftest.er1
4871   ac_status=$?
4872   grep -v '^ *+' conftest.er1 >conftest.err
4873   rm -f conftest.er1
4874   cat conftest.err >&5
4875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4876   (exit $ac_status); } &&
4877          { ac_try='test -z "$ac_c_werror_flag"
4878                          || test ! -s conftest.err'
4879   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4880   (eval $ac_try) 2>&5
4881   ac_status=$?
4882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4883   (exit $ac_status); }; } &&
4884          { ac_try='test -s conftest.$ac_objext'
4885   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4886   (eval $ac_try) 2>&5
4887   ac_status=$?
4888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4889   (exit $ac_status); }; }; then
4890   ac_hi=$ac_mid; break
4891 else
4892   echo "$as_me: failed program was:" >&5
4893 sed 's/^/| /' conftest.$ac_ext >&5
4894
4895 ac_lo=`expr $ac_mid + 1`
4896                     if test $ac_lo -le $ac_mid; then
4897                       ac_lo= ac_hi=
4898                       break
4899                     fi
4900                     ac_mid=`expr 2 '*' $ac_mid + 1`
4901 fi
4902 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4903   done
4904 else
4905   echo "$as_me: failed program was:" >&5
4906 sed 's/^/| /' conftest.$ac_ext >&5
4907
4908 cat >conftest.$ac_ext <<_ACEOF
4909 /* confdefs.h.  */
4910 _ACEOF
4911 cat confdefs.h >>conftest.$ac_ext
4912 cat >>conftest.$ac_ext <<_ACEOF
4913 /* end confdefs.h.  */
4914 $ac_includes_default
4915 int
4916 main ()
4917 {
4918 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
4919 test_array [0] = 0
4920
4921   ;
4922   return 0;
4923 }
4924 _ACEOF
4925 rm -f conftest.$ac_objext
4926 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4927   (eval $ac_compile) 2>conftest.er1
4928   ac_status=$?
4929   grep -v '^ *+' conftest.er1 >conftest.err
4930   rm -f conftest.er1
4931   cat conftest.err >&5
4932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4933   (exit $ac_status); } &&
4934          { ac_try='test -z "$ac_c_werror_flag"
4935                          || test ! -s conftest.err'
4936   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4937   (eval $ac_try) 2>&5
4938   ac_status=$?
4939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4940   (exit $ac_status); }; } &&
4941          { ac_try='test -s conftest.$ac_objext'
4942   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4943   (eval $ac_try) 2>&5
4944   ac_status=$?
4945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4946   (exit $ac_status); }; }; then
4947   ac_hi=-1 ac_mid=-1
4948   while :; do
4949     cat >conftest.$ac_ext <<_ACEOF
4950 /* confdefs.h.  */
4951 _ACEOF
4952 cat confdefs.h >>conftest.$ac_ext
4953 cat >>conftest.$ac_ext <<_ACEOF
4954 /* end confdefs.h.  */
4955 $ac_includes_default
4956 int
4957 main ()
4958 {
4959 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
4960 test_array [0] = 0
4961
4962   ;
4963   return 0;
4964 }
4965 _ACEOF
4966 rm -f conftest.$ac_objext
4967 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4968   (eval $ac_compile) 2>conftest.er1
4969   ac_status=$?
4970   grep -v '^ *+' conftest.er1 >conftest.err
4971   rm -f conftest.er1
4972   cat conftest.err >&5
4973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4974   (exit $ac_status); } &&
4975          { ac_try='test -z "$ac_c_werror_flag"
4976                          || test ! -s conftest.err'
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); }; } &&
4982          { ac_try='test -s conftest.$ac_objext'
4983   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4984   (eval $ac_try) 2>&5
4985   ac_status=$?
4986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4987   (exit $ac_status); }; }; then
4988   ac_lo=$ac_mid; break
4989 else
4990   echo "$as_me: failed program was:" >&5
4991 sed 's/^/| /' conftest.$ac_ext >&5
4992
4993 ac_hi=`expr '(' $ac_mid ')' - 1`
4994                        if test $ac_mid -le $ac_hi; then
4995                          ac_lo= ac_hi=
4996                          break
4997                        fi
4998                        ac_mid=`expr 2 '*' $ac_mid`
4999 fi
5000 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5001   done
5002 else
5003   echo "$as_me: failed program was:" >&5
5004 sed 's/^/| /' conftest.$ac_ext >&5
5005
5006 ac_lo= ac_hi=
5007 fi
5008 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5009 fi
5010 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5011 # Binary search between lo and hi bounds.
5012 while test "x$ac_lo" != "x$ac_hi"; do
5013   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5014   cat >conftest.$ac_ext <<_ACEOF
5015 /* confdefs.h.  */
5016 _ACEOF
5017 cat confdefs.h >>conftest.$ac_ext
5018 cat >>conftest.$ac_ext <<_ACEOF
5019 /* end confdefs.h.  */
5020 $ac_includes_default
5021 int
5022 main ()
5023 {
5024 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
5025 test_array [0] = 0
5026
5027   ;
5028   return 0;
5029 }
5030 _ACEOF
5031 rm -f conftest.$ac_objext
5032 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5033   (eval $ac_compile) 2>conftest.er1
5034   ac_status=$?
5035   grep -v '^ *+' conftest.er1 >conftest.err
5036   rm -f conftest.er1
5037   cat conftest.err >&5
5038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5039   (exit $ac_status); } &&
5040          { ac_try='test -z "$ac_c_werror_flag"
5041                          || test ! -s conftest.err'
5042   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5043   (eval $ac_try) 2>&5
5044   ac_status=$?
5045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5046   (exit $ac_status); }; } &&
5047          { ac_try='test -s conftest.$ac_objext'
5048   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5049   (eval $ac_try) 2>&5
5050   ac_status=$?
5051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5052   (exit $ac_status); }; }; then
5053   ac_hi=$ac_mid
5054 else
5055   echo "$as_me: failed program was:" >&5
5056 sed 's/^/| /' conftest.$ac_ext >&5
5057
5058 ac_lo=`expr '(' $ac_mid ')' + 1`
5059 fi
5060 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5061 done
5062 case $ac_lo in
5063 ?*) ac_cv_sizeof_char=$ac_lo;;
5064 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
5065 See \`config.log' for more details." >&5
5066 echo "$as_me: error: cannot compute sizeof (char), 77
5067 See \`config.log' for more details." >&2;}
5068    { (exit 1); exit 1; }; } ;;
5069 esac
5070 else
5071   if test "$cross_compiling" = yes; then
5072   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5073 See \`config.log' for more details." >&5
5074 echo "$as_me: error: cannot run test program while cross compiling
5075 See \`config.log' for more details." >&2;}
5076    { (exit 1); exit 1; }; }
5077 else
5078   cat >conftest.$ac_ext <<_ACEOF
5079 /* confdefs.h.  */
5080 _ACEOF
5081 cat confdefs.h >>conftest.$ac_ext
5082 cat >>conftest.$ac_ext <<_ACEOF
5083 /* end confdefs.h.  */
5084 $ac_includes_default
5085 long longval () { return (long) (sizeof (char)); }
5086 unsigned long ulongval () { return (long) (sizeof (char)); }
5087 #include <stdio.h>
5088 #include <stdlib.h>
5089 int
5090 main ()
5091 {
5092
5093   FILE *f = fopen ("conftest.val", "w");
5094   if (! f)
5095     exit (1);
5096   if (((long) (sizeof (char))) < 0)
5097     {
5098       long i = longval ();
5099       if (i != ((long) (sizeof (char))))
5100         exit (1);
5101       fprintf (f, "%ld\n", i);
5102     }
5103   else
5104     {
5105       unsigned long i = ulongval ();
5106       if (i != ((long) (sizeof (char))))
5107         exit (1);
5108       fprintf (f, "%lu\n", i);
5109     }
5110   exit (ferror (f) || fclose (f) != 0);
5111
5112   ;
5113   return 0;
5114 }
5115 _ACEOF
5116 rm -f conftest$ac_exeext
5117 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5118   (eval $ac_link) 2>&5
5119   ac_status=$?
5120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5121   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5122   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5123   (eval $ac_try) 2>&5
5124   ac_status=$?
5125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5126   (exit $ac_status); }; }; then
5127   ac_cv_sizeof_char=`cat conftest.val`
5128 else
5129   echo "$as_me: program exited with status $ac_status" >&5
5130 echo "$as_me: failed program was:" >&5
5131 sed 's/^/| /' conftest.$ac_ext >&5
5132
5133 ( exit $ac_status )
5134 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
5135 See \`config.log' for more details." >&5
5136 echo "$as_me: error: cannot compute sizeof (char), 77
5137 See \`config.log' for more details." >&2;}
5138    { (exit 1); exit 1; }; }
5139 fi
5140 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5141 fi
5142 fi
5143 rm -f conftest.val
5144 else
5145   ac_cv_sizeof_char=0
5146 fi
5147 fi
5148 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
5149 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
5150 cat >>confdefs.h <<_ACEOF
5151 #define SIZEOF_CHAR $ac_cv_sizeof_char
5152 _ACEOF
5153
5154
5155 echo "$as_me:$LINENO: checking for short" >&5
5156 echo $ECHO_N "checking for short... $ECHO_C" >&6
5157 if test "${ac_cv_type_short+set}" = set; then
5158   echo $ECHO_N "(cached) $ECHO_C" >&6
5159 else
5160   cat >conftest.$ac_ext <<_ACEOF
5161 /* confdefs.h.  */
5162 _ACEOF
5163 cat confdefs.h >>conftest.$ac_ext
5164 cat >>conftest.$ac_ext <<_ACEOF
5165 /* end confdefs.h.  */
5166 $ac_includes_default
5167 int
5168 main ()
5169 {
5170 if ((short *) 0)
5171   return 0;
5172 if (sizeof (short))
5173   return 0;
5174   ;
5175   return 0;
5176 }
5177 _ACEOF
5178 rm -f conftest.$ac_objext
5179 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5180   (eval $ac_compile) 2>conftest.er1
5181   ac_status=$?
5182   grep -v '^ *+' conftest.er1 >conftest.err
5183   rm -f conftest.er1
5184   cat conftest.err >&5
5185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5186   (exit $ac_status); } &&
5187          { ac_try='test -z "$ac_c_werror_flag"
5188                          || test ! -s conftest.err'
5189   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5190   (eval $ac_try) 2>&5
5191   ac_status=$?
5192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5193   (exit $ac_status); }; } &&
5194          { ac_try='test -s conftest.$ac_objext'
5195   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5196   (eval $ac_try) 2>&5
5197   ac_status=$?
5198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5199   (exit $ac_status); }; }; then
5200   ac_cv_type_short=yes
5201 else
5202   echo "$as_me: failed program was:" >&5
5203 sed 's/^/| /' conftest.$ac_ext >&5
5204
5205 ac_cv_type_short=no
5206 fi
5207 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5208 fi
5209 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
5210 echo "${ECHO_T}$ac_cv_type_short" >&6
5211
5212 echo "$as_me:$LINENO: checking size of short" >&5
5213 echo $ECHO_N "checking size of short... $ECHO_C" >&6
5214 if test "${ac_cv_sizeof_short+set}" = set; then
5215   echo $ECHO_N "(cached) $ECHO_C" >&6
5216 else
5217   if test "$ac_cv_type_short" = yes; then
5218   # The cast to unsigned long works around a bug in the HP C Compiler
5219   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5220   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5221   # This bug is HP SR number 8606223364.
5222   if test "$cross_compiling" = yes; then
5223   # Depending upon the size, compute the lo and hi bounds.
5224 cat >conftest.$ac_ext <<_ACEOF
5225 /* confdefs.h.  */
5226 _ACEOF
5227 cat confdefs.h >>conftest.$ac_ext
5228 cat >>conftest.$ac_ext <<_ACEOF
5229 /* end confdefs.h.  */
5230 $ac_includes_default
5231 int
5232 main ()
5233 {
5234 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
5235 test_array [0] = 0
5236
5237   ;
5238   return 0;
5239 }
5240 _ACEOF
5241 rm -f conftest.$ac_objext
5242 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5243   (eval $ac_compile) 2>conftest.er1
5244   ac_status=$?
5245   grep -v '^ *+' conftest.er1 >conftest.err
5246   rm -f conftest.er1
5247   cat conftest.err >&5
5248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5249   (exit $ac_status); } &&
5250          { ac_try='test -z "$ac_c_werror_flag"
5251                          || test ! -s conftest.err'
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); }; } &&
5257          { ac_try='test -s conftest.$ac_objext'
5258   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5259   (eval $ac_try) 2>&5
5260   ac_status=$?
5261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5262   (exit $ac_status); }; }; then
5263   ac_lo=0 ac_mid=0
5264   while :; do
5265     cat >conftest.$ac_ext <<_ACEOF
5266 /* confdefs.h.  */
5267 _ACEOF
5268 cat confdefs.h >>conftest.$ac_ext
5269 cat >>conftest.$ac_ext <<_ACEOF
5270 /* end confdefs.h.  */
5271 $ac_includes_default
5272 int
5273 main ()
5274 {
5275 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
5276 test_array [0] = 0
5277
5278   ;
5279   return 0;
5280 }
5281 _ACEOF
5282 rm -f conftest.$ac_objext
5283 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5284   (eval $ac_compile) 2>conftest.er1
5285   ac_status=$?
5286   grep -v '^ *+' conftest.er1 >conftest.err
5287   rm -f conftest.er1
5288   cat conftest.err >&5
5289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5290   (exit $ac_status); } &&
5291          { ac_try='test -z "$ac_c_werror_flag"
5292                          || test ! -s conftest.err'
5293   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5294   (eval $ac_try) 2>&5
5295   ac_status=$?
5296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5297   (exit $ac_status); }; } &&
5298          { ac_try='test -s conftest.$ac_objext'
5299   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5300   (eval $ac_try) 2>&5
5301   ac_status=$?
5302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5303   (exit $ac_status); }; }; then
5304   ac_hi=$ac_mid; break
5305 else
5306   echo "$as_me: failed program was:" >&5
5307 sed 's/^/| /' conftest.$ac_ext >&5
5308
5309 ac_lo=`expr $ac_mid + 1`
5310                     if test $ac_lo -le $ac_mid; then
5311                       ac_lo= ac_hi=
5312                       break
5313                     fi
5314                     ac_mid=`expr 2 '*' $ac_mid + 1`
5315 fi
5316 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5317   done
5318 else
5319   echo "$as_me: failed program was:" >&5
5320 sed 's/^/| /' conftest.$ac_ext >&5
5321
5322 cat >conftest.$ac_ext <<_ACEOF
5323 /* confdefs.h.  */
5324 _ACEOF
5325 cat confdefs.h >>conftest.$ac_ext
5326 cat >>conftest.$ac_ext <<_ACEOF
5327 /* end confdefs.h.  */
5328 $ac_includes_default
5329 int
5330 main ()
5331 {
5332 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
5333 test_array [0] = 0
5334
5335   ;
5336   return 0;
5337 }
5338 _ACEOF
5339 rm -f conftest.$ac_objext
5340 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5341   (eval $ac_compile) 2>conftest.er1
5342   ac_status=$?
5343   grep -v '^ *+' conftest.er1 >conftest.err
5344   rm -f conftest.er1
5345   cat conftest.err >&5
5346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5347   (exit $ac_status); } &&
5348          { ac_try='test -z "$ac_c_werror_flag"
5349                          || test ! -s conftest.err'
5350   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5351   (eval $ac_try) 2>&5
5352   ac_status=$?
5353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5354   (exit $ac_status); }; } &&
5355          { ac_try='test -s conftest.$ac_objext'
5356   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5357   (eval $ac_try) 2>&5
5358   ac_status=$?
5359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5360   (exit $ac_status); }; }; then
5361   ac_hi=-1 ac_mid=-1
5362   while :; do
5363     cat >conftest.$ac_ext <<_ACEOF
5364 /* confdefs.h.  */
5365 _ACEOF
5366 cat confdefs.h >>conftest.$ac_ext
5367 cat >>conftest.$ac_ext <<_ACEOF
5368 /* end confdefs.h.  */
5369 $ac_includes_default
5370 int
5371 main ()
5372 {
5373 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
5374 test_array [0] = 0
5375
5376   ;
5377   return 0;
5378 }
5379 _ACEOF
5380 rm -f conftest.$ac_objext
5381 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5382   (eval $ac_compile) 2>conftest.er1
5383   ac_status=$?
5384   grep -v '^ *+' conftest.er1 >conftest.err
5385   rm -f conftest.er1
5386   cat conftest.err >&5
5387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5388   (exit $ac_status); } &&
5389          { ac_try='test -z "$ac_c_werror_flag"
5390                          || test ! -s conftest.err'
5391   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5392   (eval $ac_try) 2>&5
5393   ac_status=$?
5394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5395   (exit $ac_status); }; } &&
5396          { ac_try='test -s conftest.$ac_objext'
5397   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5398   (eval $ac_try) 2>&5
5399   ac_status=$?
5400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5401   (exit $ac_status); }; }; then
5402   ac_lo=$ac_mid; break
5403 else
5404   echo "$as_me: failed program was:" >&5
5405 sed 's/^/| /' conftest.$ac_ext >&5
5406
5407 ac_hi=`expr '(' $ac_mid ')' - 1`
5408                        if test $ac_mid -le $ac_hi; then
5409                          ac_lo= ac_hi=
5410                          break
5411                        fi
5412                        ac_mid=`expr 2 '*' $ac_mid`
5413 fi
5414 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5415   done
5416 else
5417   echo "$as_me: failed program was:" >&5
5418 sed 's/^/| /' conftest.$ac_ext >&5
5419
5420 ac_lo= ac_hi=
5421 fi
5422 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5423 fi
5424 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5425 # Binary search between lo and hi bounds.
5426 while test "x$ac_lo" != "x$ac_hi"; do
5427   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5428   cat >conftest.$ac_ext <<_ACEOF
5429 /* confdefs.h.  */
5430 _ACEOF
5431 cat confdefs.h >>conftest.$ac_ext
5432 cat >>conftest.$ac_ext <<_ACEOF
5433 /* end confdefs.h.  */
5434 $ac_includes_default
5435 int
5436 main ()
5437 {
5438 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
5439 test_array [0] = 0
5440
5441   ;
5442   return 0;
5443 }
5444 _ACEOF
5445 rm -f conftest.$ac_objext
5446 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5447   (eval $ac_compile) 2>conftest.er1
5448   ac_status=$?
5449   grep -v '^ *+' conftest.er1 >conftest.err
5450   rm -f conftest.er1
5451   cat conftest.err >&5
5452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5453   (exit $ac_status); } &&
5454          { ac_try='test -z "$ac_c_werror_flag"
5455                          || test ! -s conftest.err'
5456   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5457   (eval $ac_try) 2>&5
5458   ac_status=$?
5459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5460   (exit $ac_status); }; } &&
5461          { ac_try='test -s conftest.$ac_objext'
5462   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5463   (eval $ac_try) 2>&5
5464   ac_status=$?
5465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5466   (exit $ac_status); }; }; then
5467   ac_hi=$ac_mid
5468 else
5469   echo "$as_me: failed program was:" >&5
5470 sed 's/^/| /' conftest.$ac_ext >&5
5471
5472 ac_lo=`expr '(' $ac_mid ')' + 1`
5473 fi
5474 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5475 done
5476 case $ac_lo in
5477 ?*) ac_cv_sizeof_short=$ac_lo;;
5478 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
5479 See \`config.log' for more details." >&5
5480 echo "$as_me: error: cannot compute sizeof (short), 77
5481 See \`config.log' for more details." >&2;}
5482    { (exit 1); exit 1; }; } ;;
5483 esac
5484 else
5485   if test "$cross_compiling" = yes; then
5486   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5487 See \`config.log' for more details." >&5
5488 echo "$as_me: error: cannot run test program while cross compiling
5489 See \`config.log' for more details." >&2;}
5490    { (exit 1); exit 1; }; }
5491 else
5492   cat >conftest.$ac_ext <<_ACEOF
5493 /* confdefs.h.  */
5494 _ACEOF
5495 cat confdefs.h >>conftest.$ac_ext
5496 cat >>conftest.$ac_ext <<_ACEOF
5497 /* end confdefs.h.  */
5498 $ac_includes_default
5499 long longval () { return (long) (sizeof (short)); }
5500 unsigned long ulongval () { return (long) (sizeof (short)); }
5501 #include <stdio.h>
5502 #include <stdlib.h>
5503 int
5504 main ()
5505 {
5506
5507   FILE *f = fopen ("conftest.val", "w");
5508   if (! f)
5509     exit (1);
5510   if (((long) (sizeof (short))) < 0)
5511     {
5512       long i = longval ();
5513       if (i != ((long) (sizeof (short))))
5514         exit (1);
5515       fprintf (f, "%ld\n", i);
5516     }
5517   else
5518     {
5519       unsigned long i = ulongval ();
5520       if (i != ((long) (sizeof (short))))
5521         exit (1);
5522       fprintf (f, "%lu\n", i);
5523     }
5524   exit (ferror (f) || fclose (f) != 0);
5525
5526   ;
5527   return 0;
5528 }
5529 _ACEOF
5530 rm -f conftest$ac_exeext
5531 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5532   (eval $ac_link) 2>&5
5533   ac_status=$?
5534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5535   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5536   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5537   (eval $ac_try) 2>&5
5538   ac_status=$?
5539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5540   (exit $ac_status); }; }; then
5541   ac_cv_sizeof_short=`cat conftest.val`
5542 else
5543   echo "$as_me: program exited with status $ac_status" >&5
5544 echo "$as_me: failed program was:" >&5
5545 sed 's/^/| /' conftest.$ac_ext >&5
5546
5547 ( exit $ac_status )
5548 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
5549 See \`config.log' for more details." >&5
5550 echo "$as_me: error: cannot compute sizeof (short), 77
5551 See \`config.log' for more details." >&2;}
5552    { (exit 1); exit 1; }; }
5553 fi
5554 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5555 fi
5556 fi
5557 rm -f conftest.val
5558 else
5559   ac_cv_sizeof_short=0
5560 fi
5561 fi
5562 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
5563 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
5564 cat >>confdefs.h <<_ACEOF
5565 #define SIZEOF_SHORT $ac_cv_sizeof_short
5566 _ACEOF
5567
5568
5569 echo "$as_me:$LINENO: checking for int" >&5
5570 echo $ECHO_N "checking for int... $ECHO_C" >&6
5571 if test "${ac_cv_type_int+set}" = set; then
5572   echo $ECHO_N "(cached) $ECHO_C" >&6
5573 else
5574   cat >conftest.$ac_ext <<_ACEOF
5575 /* confdefs.h.  */
5576 _ACEOF
5577 cat confdefs.h >>conftest.$ac_ext
5578 cat >>conftest.$ac_ext <<_ACEOF
5579 /* end confdefs.h.  */
5580 $ac_includes_default
5581 int
5582 main ()
5583 {
5584 if ((int *) 0)
5585   return 0;
5586 if (sizeof (int))
5587   return 0;
5588   ;
5589   return 0;
5590 }
5591 _ACEOF
5592 rm -f conftest.$ac_objext
5593 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5594   (eval $ac_compile) 2>conftest.er1
5595   ac_status=$?
5596   grep -v '^ *+' conftest.er1 >conftest.err
5597   rm -f conftest.er1
5598   cat conftest.err >&5
5599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5600   (exit $ac_status); } &&
5601          { ac_try='test -z "$ac_c_werror_flag"
5602                          || test ! -s conftest.err'
5603   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5604   (eval $ac_try) 2>&5
5605   ac_status=$?
5606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5607   (exit $ac_status); }; } &&
5608          { ac_try='test -s conftest.$ac_objext'
5609   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5610   (eval $ac_try) 2>&5
5611   ac_status=$?
5612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5613   (exit $ac_status); }; }; then
5614   ac_cv_type_int=yes
5615 else
5616   echo "$as_me: failed program was:" >&5
5617 sed 's/^/| /' conftest.$ac_ext >&5
5618
5619 ac_cv_type_int=no
5620 fi
5621 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5622 fi
5623 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
5624 echo "${ECHO_T}$ac_cv_type_int" >&6
5625
5626 echo "$as_me:$LINENO: checking size of int" >&5
5627 echo $ECHO_N "checking size of int... $ECHO_C" >&6
5628 if test "${ac_cv_sizeof_int+set}" = set; then
5629   echo $ECHO_N "(cached) $ECHO_C" >&6
5630 else
5631   if test "$ac_cv_type_int" = yes; then
5632   # The cast to unsigned long works around a bug in the HP C Compiler
5633   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5634   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5635   # This bug is HP SR number 8606223364.
5636   if test "$cross_compiling" = yes; then
5637   # Depending upon the size, compute the lo and hi bounds.
5638 cat >conftest.$ac_ext <<_ACEOF
5639 /* confdefs.h.  */
5640 _ACEOF
5641 cat confdefs.h >>conftest.$ac_ext
5642 cat >>conftest.$ac_ext <<_ACEOF
5643 /* end confdefs.h.  */
5644 $ac_includes_default
5645 int
5646 main ()
5647 {
5648 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
5649 test_array [0] = 0
5650
5651   ;
5652   return 0;
5653 }
5654 _ACEOF
5655 rm -f conftest.$ac_objext
5656 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5657   (eval $ac_compile) 2>conftest.er1
5658   ac_status=$?
5659   grep -v '^ *+' conftest.er1 >conftest.err
5660   rm -f conftest.er1
5661   cat conftest.err >&5
5662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5663   (exit $ac_status); } &&
5664          { ac_try='test -z "$ac_c_werror_flag"
5665                          || test ! -s conftest.err'
5666   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5667   (eval $ac_try) 2>&5
5668   ac_status=$?
5669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5670   (exit $ac_status); }; } &&
5671          { ac_try='test -s conftest.$ac_objext'
5672   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5673   (eval $ac_try) 2>&5
5674   ac_status=$?
5675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5676   (exit $ac_status); }; }; then
5677   ac_lo=0 ac_mid=0
5678   while :; do
5679     cat >conftest.$ac_ext <<_ACEOF
5680 /* confdefs.h.  */
5681 _ACEOF
5682 cat confdefs.h >>conftest.$ac_ext
5683 cat >>conftest.$ac_ext <<_ACEOF
5684 /* end confdefs.h.  */
5685 $ac_includes_default
5686 int
5687 main ()
5688 {
5689 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
5690 test_array [0] = 0
5691
5692   ;
5693   return 0;
5694 }
5695 _ACEOF
5696 rm -f conftest.$ac_objext
5697 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5698   (eval $ac_compile) 2>conftest.er1
5699   ac_status=$?
5700   grep -v '^ *+' conftest.er1 >conftest.err
5701   rm -f conftest.er1
5702   cat conftest.err >&5
5703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5704   (exit $ac_status); } &&
5705          { ac_try='test -z "$ac_c_werror_flag"
5706                          || test ! -s conftest.err'
5707   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5708   (eval $ac_try) 2>&5
5709   ac_status=$?
5710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5711   (exit $ac_status); }; } &&
5712          { ac_try='test -s conftest.$ac_objext'
5713   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5714   (eval $ac_try) 2>&5
5715   ac_status=$?
5716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5717   (exit $ac_status); }; }; then
5718   ac_hi=$ac_mid; break
5719 else
5720   echo "$as_me: failed program was:" >&5
5721 sed 's/^/| /' conftest.$ac_ext >&5
5722
5723 ac_lo=`expr $ac_mid + 1`
5724                     if test $ac_lo -le $ac_mid; then
5725                       ac_lo= ac_hi=
5726                       break
5727                     fi
5728                     ac_mid=`expr 2 '*' $ac_mid + 1`
5729 fi
5730 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5731   done
5732 else
5733   echo "$as_me: failed program was:" >&5
5734 sed 's/^/| /' conftest.$ac_ext >&5
5735
5736 cat >conftest.$ac_ext <<_ACEOF
5737 /* confdefs.h.  */
5738 _ACEOF
5739 cat confdefs.h >>conftest.$ac_ext
5740 cat >>conftest.$ac_ext <<_ACEOF
5741 /* end confdefs.h.  */
5742 $ac_includes_default
5743 int
5744 main ()
5745 {
5746 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
5747 test_array [0] = 0
5748
5749   ;
5750   return 0;
5751 }
5752 _ACEOF
5753 rm -f conftest.$ac_objext
5754 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5755   (eval $ac_compile) 2>conftest.er1
5756   ac_status=$?
5757   grep -v '^ *+' conftest.er1 >conftest.err
5758   rm -f conftest.er1
5759   cat conftest.err >&5
5760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5761   (exit $ac_status); } &&
5762          { ac_try='test -z "$ac_c_werror_flag"
5763                          || test ! -s conftest.err'
5764   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5765   (eval $ac_try) 2>&5
5766   ac_status=$?
5767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5768   (exit $ac_status); }; } &&
5769          { ac_try='test -s conftest.$ac_objext'
5770   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5771   (eval $ac_try) 2>&5
5772   ac_status=$?
5773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5774   (exit $ac_status); }; }; then
5775   ac_hi=-1 ac_mid=-1
5776   while :; do
5777     cat >conftest.$ac_ext <<_ACEOF
5778 /* confdefs.h.  */
5779 _ACEOF
5780 cat confdefs.h >>conftest.$ac_ext
5781 cat >>conftest.$ac_ext <<_ACEOF
5782 /* end confdefs.h.  */
5783 $ac_includes_default
5784 int
5785 main ()
5786 {
5787 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
5788 test_array [0] = 0
5789
5790   ;
5791   return 0;
5792 }
5793 _ACEOF
5794 rm -f conftest.$ac_objext
5795 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5796   (eval $ac_compile) 2>conftest.er1
5797   ac_status=$?
5798   grep -v '^ *+' conftest.er1 >conftest.err
5799   rm -f conftest.er1
5800   cat conftest.err >&5
5801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5802   (exit $ac_status); } &&
5803          { ac_try='test -z "$ac_c_werror_flag"
5804                          || test ! -s conftest.err'
5805   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5806   (eval $ac_try) 2>&5
5807   ac_status=$?
5808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5809   (exit $ac_status); }; } &&
5810          { ac_try='test -s conftest.$ac_objext'
5811   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5812   (eval $ac_try) 2>&5
5813   ac_status=$?
5814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5815   (exit $ac_status); }; }; then
5816   ac_lo=$ac_mid; break
5817 else
5818   echo "$as_me: failed program was:" >&5
5819 sed 's/^/| /' conftest.$ac_ext >&5
5820
5821 ac_hi=`expr '(' $ac_mid ')' - 1`
5822                        if test $ac_mid -le $ac_hi; then
5823                          ac_lo= ac_hi=
5824                          break
5825                        fi
5826                        ac_mid=`expr 2 '*' $ac_mid`
5827 fi
5828 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5829   done
5830 else
5831   echo "$as_me: failed program was:" >&5
5832 sed 's/^/| /' conftest.$ac_ext >&5
5833
5834 ac_lo= ac_hi=
5835 fi
5836 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5837 fi
5838 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5839 # Binary search between lo and hi bounds.
5840 while test "x$ac_lo" != "x$ac_hi"; do
5841   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5842   cat >conftest.$ac_ext <<_ACEOF
5843 /* confdefs.h.  */
5844 _ACEOF
5845 cat confdefs.h >>conftest.$ac_ext
5846 cat >>conftest.$ac_ext <<_ACEOF
5847 /* end confdefs.h.  */
5848 $ac_includes_default
5849 int
5850 main ()
5851 {
5852 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
5853 test_array [0] = 0
5854
5855   ;
5856   return 0;
5857 }
5858 _ACEOF
5859 rm -f conftest.$ac_objext
5860 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5861   (eval $ac_compile) 2>conftest.er1
5862   ac_status=$?
5863   grep -v '^ *+' conftest.er1 >conftest.err
5864   rm -f conftest.er1
5865   cat conftest.err >&5
5866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5867   (exit $ac_status); } &&
5868          { ac_try='test -z "$ac_c_werror_flag"
5869                          || test ! -s conftest.err'
5870   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5871   (eval $ac_try) 2>&5
5872   ac_status=$?
5873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5874   (exit $ac_status); }; } &&
5875          { ac_try='test -s conftest.$ac_objext'
5876   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5877   (eval $ac_try) 2>&5
5878   ac_status=$?
5879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5880   (exit $ac_status); }; }; then
5881   ac_hi=$ac_mid
5882 else
5883   echo "$as_me: failed program was:" >&5
5884 sed 's/^/| /' conftest.$ac_ext >&5
5885
5886 ac_lo=`expr '(' $ac_mid ')' + 1`
5887 fi
5888 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5889 done
5890 case $ac_lo in
5891 ?*) ac_cv_sizeof_int=$ac_lo;;
5892 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
5893 See \`config.log' for more details." >&5
5894 echo "$as_me: error: cannot compute sizeof (int), 77
5895 See \`config.log' for more details." >&2;}
5896    { (exit 1); exit 1; }; } ;;
5897 esac
5898 else
5899   if test "$cross_compiling" = yes; then
5900   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5901 See \`config.log' for more details." >&5
5902 echo "$as_me: error: cannot run test program while cross compiling
5903 See \`config.log' for more details." >&2;}
5904    { (exit 1); exit 1; }; }
5905 else
5906   cat >conftest.$ac_ext <<_ACEOF
5907 /* confdefs.h.  */
5908 _ACEOF
5909 cat confdefs.h >>conftest.$ac_ext
5910 cat >>conftest.$ac_ext <<_ACEOF
5911 /* end confdefs.h.  */
5912 $ac_includes_default
5913 long longval () { return (long) (sizeof (int)); }
5914 unsigned long ulongval () { return (long) (sizeof (int)); }
5915 #include <stdio.h>
5916 #include <stdlib.h>
5917 int
5918 main ()
5919 {
5920
5921   FILE *f = fopen ("conftest.val", "w");
5922   if (! f)
5923     exit (1);
5924   if (((long) (sizeof (int))) < 0)
5925     {
5926       long i = longval ();
5927       if (i != ((long) (sizeof (int))))
5928         exit (1);
5929       fprintf (f, "%ld\n", i);
5930     }
5931   else
5932     {
5933       unsigned long i = ulongval ();
5934       if (i != ((long) (sizeof (int))))
5935         exit (1);
5936       fprintf (f, "%lu\n", i);
5937     }
5938   exit (ferror (f) || fclose (f) != 0);
5939
5940   ;
5941   return 0;
5942 }
5943 _ACEOF
5944 rm -f conftest$ac_exeext
5945 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5946   (eval $ac_link) 2>&5
5947   ac_status=$?
5948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5949   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5950   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5951   (eval $ac_try) 2>&5
5952   ac_status=$?
5953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5954   (exit $ac_status); }; }; then
5955   ac_cv_sizeof_int=`cat conftest.val`
5956 else
5957   echo "$as_me: program exited with status $ac_status" >&5
5958 echo "$as_me: failed program was:" >&5
5959 sed 's/^/| /' conftest.$ac_ext >&5
5960
5961 ( exit $ac_status )
5962 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
5963 See \`config.log' for more details." >&5
5964 echo "$as_me: error: cannot compute sizeof (int), 77
5965 See \`config.log' for more details." >&2;}
5966    { (exit 1); exit 1; }; }
5967 fi
5968 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5969 fi
5970 fi
5971 rm -f conftest.val
5972 else
5973   ac_cv_sizeof_int=0
5974 fi
5975 fi
5976 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
5977 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
5978 cat >>confdefs.h <<_ACEOF
5979 #define SIZEOF_INT $ac_cv_sizeof_int
5980 _ACEOF
5981
5982
5983 echo "$as_me:$LINENO: checking for long" >&5
5984 echo $ECHO_N "checking for long... $ECHO_C" >&6
5985 if test "${ac_cv_type_long+set}" = set; then
5986   echo $ECHO_N "(cached) $ECHO_C" >&6
5987 else
5988   cat >conftest.$ac_ext <<_ACEOF
5989 /* confdefs.h.  */
5990 _ACEOF
5991 cat confdefs.h >>conftest.$ac_ext
5992 cat >>conftest.$ac_ext <<_ACEOF
5993 /* end confdefs.h.  */
5994 $ac_includes_default
5995 int
5996 main ()
5997 {
5998 if ((long *) 0)
5999   return 0;
6000 if (sizeof (long))
6001   return 0;
6002   ;
6003   return 0;
6004 }
6005 _ACEOF
6006 rm -f conftest.$ac_objext
6007 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6008   (eval $ac_compile) 2>conftest.er1
6009   ac_status=$?
6010   grep -v '^ *+' conftest.er1 >conftest.err
6011   rm -f conftest.er1
6012   cat conftest.err >&5
6013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6014   (exit $ac_status); } &&
6015          { ac_try='test -z "$ac_c_werror_flag"
6016                          || test ! -s conftest.err'
6017   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6018   (eval $ac_try) 2>&5
6019   ac_status=$?
6020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6021   (exit $ac_status); }; } &&
6022          { ac_try='test -s conftest.$ac_objext'
6023   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6024   (eval $ac_try) 2>&5
6025   ac_status=$?
6026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6027   (exit $ac_status); }; }; then
6028   ac_cv_type_long=yes
6029 else
6030   echo "$as_me: failed program was:" >&5
6031 sed 's/^/| /' conftest.$ac_ext >&5
6032
6033 ac_cv_type_long=no
6034 fi
6035 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6036 fi
6037 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
6038 echo "${ECHO_T}$ac_cv_type_long" >&6
6039
6040 echo "$as_me:$LINENO: checking size of long" >&5
6041 echo $ECHO_N "checking size of long... $ECHO_C" >&6
6042 if test "${ac_cv_sizeof_long+set}" = set; then
6043   echo $ECHO_N "(cached) $ECHO_C" >&6
6044 else
6045   if test "$ac_cv_type_long" = yes; then
6046   # The cast to unsigned long works around a bug in the HP C Compiler
6047   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6048   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6049   # This bug is HP SR number 8606223364.
6050   if test "$cross_compiling" = yes; then
6051   # Depending upon the size, compute the lo and hi bounds.
6052 cat >conftest.$ac_ext <<_ACEOF
6053 /* confdefs.h.  */
6054 _ACEOF
6055 cat confdefs.h >>conftest.$ac_ext
6056 cat >>conftest.$ac_ext <<_ACEOF
6057 /* end confdefs.h.  */
6058 $ac_includes_default
6059 int
6060 main ()
6061 {
6062 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
6063 test_array [0] = 0
6064
6065   ;
6066   return 0;
6067 }
6068 _ACEOF
6069 rm -f conftest.$ac_objext
6070 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6071   (eval $ac_compile) 2>conftest.er1
6072   ac_status=$?
6073   grep -v '^ *+' conftest.er1 >conftest.err
6074   rm -f conftest.er1
6075   cat conftest.err >&5
6076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6077   (exit $ac_status); } &&
6078          { ac_try='test -z "$ac_c_werror_flag"
6079                          || test ! -s conftest.err'
6080   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6081   (eval $ac_try) 2>&5
6082   ac_status=$?
6083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6084   (exit $ac_status); }; } &&
6085          { ac_try='test -s conftest.$ac_objext'
6086   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6087   (eval $ac_try) 2>&5
6088   ac_status=$?
6089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6090   (exit $ac_status); }; }; then
6091   ac_lo=0 ac_mid=0
6092   while :; do
6093     cat >conftest.$ac_ext <<_ACEOF
6094 /* confdefs.h.  */
6095 _ACEOF
6096 cat confdefs.h >>conftest.$ac_ext
6097 cat >>conftest.$ac_ext <<_ACEOF
6098 /* end confdefs.h.  */
6099 $ac_includes_default
6100 int
6101 main ()
6102 {
6103 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
6104 test_array [0] = 0
6105
6106   ;
6107   return 0;
6108 }
6109 _ACEOF
6110 rm -f conftest.$ac_objext
6111 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6112   (eval $ac_compile) 2>conftest.er1
6113   ac_status=$?
6114   grep -v '^ *+' conftest.er1 >conftest.err
6115   rm -f conftest.er1
6116   cat conftest.err >&5
6117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6118   (exit $ac_status); } &&
6119          { ac_try='test -z "$ac_c_werror_flag"
6120                          || test ! -s conftest.err'
6121   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6122   (eval $ac_try) 2>&5
6123   ac_status=$?
6124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6125   (exit $ac_status); }; } &&
6126          { ac_try='test -s conftest.$ac_objext'
6127   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6128   (eval $ac_try) 2>&5
6129   ac_status=$?
6130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6131   (exit $ac_status); }; }; then
6132   ac_hi=$ac_mid; break
6133 else
6134   echo "$as_me: failed program was:" >&5
6135 sed 's/^/| /' conftest.$ac_ext >&5
6136
6137 ac_lo=`expr $ac_mid + 1`
6138                     if test $ac_lo -le $ac_mid; then
6139                       ac_lo= ac_hi=
6140                       break
6141                     fi
6142                     ac_mid=`expr 2 '*' $ac_mid + 1`
6143 fi
6144 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6145   done
6146 else
6147   echo "$as_me: failed program was:" >&5
6148 sed 's/^/| /' conftest.$ac_ext >&5
6149
6150 cat >conftest.$ac_ext <<_ACEOF
6151 /* confdefs.h.  */
6152 _ACEOF
6153 cat confdefs.h >>conftest.$ac_ext
6154 cat >>conftest.$ac_ext <<_ACEOF
6155 /* end confdefs.h.  */
6156 $ac_includes_default
6157 int
6158 main ()
6159 {
6160 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
6161 test_array [0] = 0
6162
6163   ;
6164   return 0;
6165 }
6166 _ACEOF
6167 rm -f conftest.$ac_objext
6168 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6169   (eval $ac_compile) 2>conftest.er1
6170   ac_status=$?
6171   grep -v '^ *+' conftest.er1 >conftest.err
6172   rm -f conftest.er1
6173   cat conftest.err >&5
6174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6175   (exit $ac_status); } &&
6176          { ac_try='test -z "$ac_c_werror_flag"
6177                          || test ! -s conftest.err'
6178   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6179   (eval $ac_try) 2>&5
6180   ac_status=$?
6181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6182   (exit $ac_status); }; } &&
6183          { ac_try='test -s conftest.$ac_objext'
6184   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6185   (eval $ac_try) 2>&5
6186   ac_status=$?
6187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6188   (exit $ac_status); }; }; then
6189   ac_hi=-1 ac_mid=-1
6190   while :; do
6191     cat >conftest.$ac_ext <<_ACEOF
6192 /* confdefs.h.  */
6193 _ACEOF
6194 cat confdefs.h >>conftest.$ac_ext
6195 cat >>conftest.$ac_ext <<_ACEOF
6196 /* end confdefs.h.  */
6197 $ac_includes_default
6198 int
6199 main ()
6200 {
6201 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
6202 test_array [0] = 0
6203
6204   ;
6205   return 0;
6206 }
6207 _ACEOF
6208 rm -f conftest.$ac_objext
6209 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6210   (eval $ac_compile) 2>conftest.er1
6211   ac_status=$?
6212   grep -v '^ *+' conftest.er1 >conftest.err
6213   rm -f conftest.er1
6214   cat conftest.err >&5
6215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6216   (exit $ac_status); } &&
6217          { ac_try='test -z "$ac_c_werror_flag"
6218                          || test ! -s conftest.err'
6219   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6220   (eval $ac_try) 2>&5
6221   ac_status=$?
6222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6223   (exit $ac_status); }; } &&
6224          { ac_try='test -s conftest.$ac_objext'
6225   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6226   (eval $ac_try) 2>&5
6227   ac_status=$?
6228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6229   (exit $ac_status); }; }; then
6230   ac_lo=$ac_mid; break
6231 else
6232   echo "$as_me: failed program was:" >&5
6233 sed 's/^/| /' conftest.$ac_ext >&5
6234
6235 ac_hi=`expr '(' $ac_mid ')' - 1`
6236                        if test $ac_mid -le $ac_hi; then
6237                          ac_lo= ac_hi=
6238                          break
6239                        fi
6240                        ac_mid=`expr 2 '*' $ac_mid`
6241 fi
6242 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6243   done
6244 else
6245   echo "$as_me: failed program was:" >&5
6246 sed 's/^/| /' conftest.$ac_ext >&5
6247
6248 ac_lo= ac_hi=
6249 fi
6250 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6251 fi
6252 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6253 # Binary search between lo and hi bounds.
6254 while test "x$ac_lo" != "x$ac_hi"; do
6255   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6256   cat >conftest.$ac_ext <<_ACEOF
6257 /* confdefs.h.  */
6258 _ACEOF
6259 cat confdefs.h >>conftest.$ac_ext
6260 cat >>conftest.$ac_ext <<_ACEOF
6261 /* end confdefs.h.  */
6262 $ac_includes_default
6263 int
6264 main ()
6265 {
6266 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
6267 test_array [0] = 0
6268
6269   ;
6270   return 0;
6271 }
6272 _ACEOF
6273 rm -f conftest.$ac_objext
6274 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6275   (eval $ac_compile) 2>conftest.er1
6276   ac_status=$?
6277   grep -v '^ *+' conftest.er1 >conftest.err
6278   rm -f conftest.er1
6279   cat conftest.err >&5
6280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6281   (exit $ac_status); } &&
6282          { ac_try='test -z "$ac_c_werror_flag"
6283                          || test ! -s conftest.err'
6284   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6285   (eval $ac_try) 2>&5
6286   ac_status=$?
6287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6288   (exit $ac_status); }; } &&
6289          { ac_try='test -s conftest.$ac_objext'
6290   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6291   (eval $ac_try) 2>&5
6292   ac_status=$?
6293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6294   (exit $ac_status); }; }; then
6295   ac_hi=$ac_mid
6296 else
6297   echo "$as_me: failed program was:" >&5
6298 sed 's/^/| /' conftest.$ac_ext >&5
6299
6300 ac_lo=`expr '(' $ac_mid ')' + 1`
6301 fi
6302 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6303 done
6304 case $ac_lo in
6305 ?*) ac_cv_sizeof_long=$ac_lo;;
6306 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
6307 See \`config.log' for more details." >&5
6308 echo "$as_me: error: cannot compute sizeof (long), 77
6309 See \`config.log' for more details." >&2;}
6310    { (exit 1); exit 1; }; } ;;
6311 esac
6312 else
6313   if test "$cross_compiling" = yes; then
6314   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6315 See \`config.log' for more details." >&5
6316 echo "$as_me: error: cannot run test program while cross compiling
6317 See \`config.log' for more details." >&2;}
6318    { (exit 1); exit 1; }; }
6319 else
6320   cat >conftest.$ac_ext <<_ACEOF
6321 /* confdefs.h.  */
6322 _ACEOF
6323 cat confdefs.h >>conftest.$ac_ext
6324 cat >>conftest.$ac_ext <<_ACEOF
6325 /* end confdefs.h.  */
6326 $ac_includes_default
6327 long longval () { return (long) (sizeof (long)); }
6328 unsigned long ulongval () { return (long) (sizeof (long)); }
6329 #include <stdio.h>
6330 #include <stdlib.h>
6331 int
6332 main ()
6333 {
6334
6335   FILE *f = fopen ("conftest.val", "w");
6336   if (! f)
6337     exit (1);
6338   if (((long) (sizeof (long))) < 0)
6339     {
6340       long i = longval ();
6341       if (i != ((long) (sizeof (long))))
6342         exit (1);
6343       fprintf (f, "%ld\n", i);
6344     }
6345   else
6346     {
6347       unsigned long i = ulongval ();
6348       if (i != ((long) (sizeof (long))))
6349         exit (1);
6350       fprintf (f, "%lu\n", i);
6351     }
6352   exit (ferror (f) || fclose (f) != 0);
6353
6354   ;
6355   return 0;
6356 }
6357 _ACEOF
6358 rm -f conftest$ac_exeext
6359 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6360   (eval $ac_link) 2>&5
6361   ac_status=$?
6362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6363   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6364   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6365   (eval $ac_try) 2>&5
6366   ac_status=$?
6367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6368   (exit $ac_status); }; }; then
6369   ac_cv_sizeof_long=`cat conftest.val`
6370 else
6371   echo "$as_me: program exited with status $ac_status" >&5
6372 echo "$as_me: failed program was:" >&5
6373 sed 's/^/| /' conftest.$ac_ext >&5
6374
6375 ( exit $ac_status )
6376 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
6377 See \`config.log' for more details." >&5
6378 echo "$as_me: error: cannot compute sizeof (long), 77
6379 See \`config.log' for more details." >&2;}
6380    { (exit 1); exit 1; }; }
6381 fi
6382 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6383 fi
6384 fi
6385 rm -f conftest.val
6386 else
6387   ac_cv_sizeof_long=0
6388 fi
6389 fi
6390 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
6391 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
6392 cat >>confdefs.h <<_ACEOF
6393 #define SIZEOF_LONG $ac_cv_sizeof_long
6394 _ACEOF
6395
6396
6397 echo "$as_me:$LINENO: checking for long long" >&5
6398 echo $ECHO_N "checking for long long... $ECHO_C" >&6
6399 if test "${ac_cv_type_long_long+set}" = set; then
6400   echo $ECHO_N "(cached) $ECHO_C" >&6
6401 else
6402   cat >conftest.$ac_ext <<_ACEOF
6403 /* confdefs.h.  */
6404 _ACEOF
6405 cat confdefs.h >>conftest.$ac_ext
6406 cat >>conftest.$ac_ext <<_ACEOF
6407 /* end confdefs.h.  */
6408 $ac_includes_default
6409 int
6410 main ()
6411 {
6412 if ((long long *) 0)
6413   return 0;
6414 if (sizeof (long long))
6415   return 0;
6416   ;
6417   return 0;
6418 }
6419 _ACEOF
6420 rm -f conftest.$ac_objext
6421 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6422   (eval $ac_compile) 2>conftest.er1
6423   ac_status=$?
6424   grep -v '^ *+' conftest.er1 >conftest.err
6425   rm -f conftest.er1
6426   cat conftest.err >&5
6427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6428   (exit $ac_status); } &&
6429          { ac_try='test -z "$ac_c_werror_flag"
6430                          || test ! -s conftest.err'
6431   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6432   (eval $ac_try) 2>&5
6433   ac_status=$?
6434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6435   (exit $ac_status); }; } &&
6436          { ac_try='test -s conftest.$ac_objext'
6437   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6438   (eval $ac_try) 2>&5
6439   ac_status=$?
6440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6441   (exit $ac_status); }; }; then
6442   ac_cv_type_long_long=yes
6443 else
6444   echo "$as_me: failed program was:" >&5
6445 sed 's/^/| /' conftest.$ac_ext >&5
6446
6447 ac_cv_type_long_long=no
6448 fi
6449 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6450 fi
6451 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
6452 echo "${ECHO_T}$ac_cv_type_long_long" >&6
6453
6454 echo "$as_me:$LINENO: checking size of long long" >&5
6455 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
6456 if test "${ac_cv_sizeof_long_long+set}" = set; then
6457   echo $ECHO_N "(cached) $ECHO_C" >&6
6458 else
6459   if test "$ac_cv_type_long_long" = yes; then
6460   # The cast to unsigned long works around a bug in the HP C Compiler
6461   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6462   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6463   # This bug is HP SR number 8606223364.
6464   if test "$cross_compiling" = yes; then
6465   # Depending upon the size, compute the lo and hi bounds.
6466 cat >conftest.$ac_ext <<_ACEOF
6467 /* confdefs.h.  */
6468 _ACEOF
6469 cat confdefs.h >>conftest.$ac_ext
6470 cat >>conftest.$ac_ext <<_ACEOF
6471 /* end confdefs.h.  */
6472 $ac_includes_default
6473 int
6474 main ()
6475 {
6476 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
6477 test_array [0] = 0
6478
6479   ;
6480   return 0;
6481 }
6482 _ACEOF
6483 rm -f conftest.$ac_objext
6484 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6485   (eval $ac_compile) 2>conftest.er1
6486   ac_status=$?
6487   grep -v '^ *+' conftest.er1 >conftest.err
6488   rm -f conftest.er1
6489   cat conftest.err >&5
6490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6491   (exit $ac_status); } &&
6492          { ac_try='test -z "$ac_c_werror_flag"
6493                          || test ! -s conftest.err'
6494   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6495   (eval $ac_try) 2>&5
6496   ac_status=$?
6497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6498   (exit $ac_status); }; } &&
6499          { ac_try='test -s conftest.$ac_objext'
6500   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6501   (eval $ac_try) 2>&5
6502   ac_status=$?
6503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6504   (exit $ac_status); }; }; then
6505   ac_lo=0 ac_mid=0
6506   while :; do
6507     cat >conftest.$ac_ext <<_ACEOF
6508 /* confdefs.h.  */
6509 _ACEOF
6510 cat confdefs.h >>conftest.$ac_ext
6511 cat >>conftest.$ac_ext <<_ACEOF
6512 /* end confdefs.h.  */
6513 $ac_includes_default
6514 int
6515 main ()
6516 {
6517 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
6518 test_array [0] = 0
6519
6520   ;
6521   return 0;
6522 }
6523 _ACEOF
6524 rm -f conftest.$ac_objext
6525 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6526   (eval $ac_compile) 2>conftest.er1
6527   ac_status=$?
6528   grep -v '^ *+' conftest.er1 >conftest.err
6529   rm -f conftest.er1
6530   cat conftest.err >&5
6531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6532   (exit $ac_status); } &&
6533          { ac_try='test -z "$ac_c_werror_flag"
6534                          || test ! -s conftest.err'
6535   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6536   (eval $ac_try) 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_hi=$ac_mid; break
6547 else
6548   echo "$as_me: failed program was:" >&5
6549 sed 's/^/| /' conftest.$ac_ext >&5
6550
6551 ac_lo=`expr $ac_mid + 1`
6552                     if test $ac_lo -le $ac_mid; then
6553                       ac_lo= ac_hi=
6554                       break
6555                     fi
6556                     ac_mid=`expr 2 '*' $ac_mid + 1`
6557 fi
6558 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6559   done
6560 else
6561   echo "$as_me: failed program was:" >&5
6562 sed 's/^/| /' conftest.$ac_ext >&5
6563
6564 cat >conftest.$ac_ext <<_ACEOF
6565 /* confdefs.h.  */
6566 _ACEOF
6567 cat confdefs.h >>conftest.$ac_ext
6568 cat >>conftest.$ac_ext <<_ACEOF
6569 /* end confdefs.h.  */
6570 $ac_includes_default
6571 int
6572 main ()
6573 {
6574 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
6575 test_array [0] = 0
6576
6577   ;
6578   return 0;
6579 }
6580 _ACEOF
6581 rm -f conftest.$ac_objext
6582 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6583   (eval $ac_compile) 2>conftest.er1
6584   ac_status=$?
6585   grep -v '^ *+' conftest.er1 >conftest.err
6586   rm -f conftest.er1
6587   cat conftest.err >&5
6588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6589   (exit $ac_status); } &&
6590          { ac_try='test -z "$ac_c_werror_flag"
6591                          || test ! -s conftest.err'
6592   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6593   (eval $ac_try) 2>&5
6594   ac_status=$?
6595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6596   (exit $ac_status); }; } &&
6597          { ac_try='test -s conftest.$ac_objext'
6598   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6599   (eval $ac_try) 2>&5
6600   ac_status=$?
6601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6602   (exit $ac_status); }; }; then
6603   ac_hi=-1 ac_mid=-1
6604   while :; do
6605     cat >conftest.$ac_ext <<_ACEOF
6606 /* confdefs.h.  */
6607 _ACEOF
6608 cat confdefs.h >>conftest.$ac_ext
6609 cat >>conftest.$ac_ext <<_ACEOF
6610 /* end confdefs.h.  */
6611 $ac_includes_default
6612 int
6613 main ()
6614 {
6615 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
6616 test_array [0] = 0
6617
6618   ;
6619   return 0;
6620 }
6621 _ACEOF
6622 rm -f conftest.$ac_objext
6623 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6624   (eval $ac_compile) 2>conftest.er1
6625   ac_status=$?
6626   grep -v '^ *+' conftest.er1 >conftest.err
6627   rm -f conftest.er1
6628   cat conftest.err >&5
6629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6630   (exit $ac_status); } &&
6631          { ac_try='test -z "$ac_c_werror_flag"
6632                          || test ! -s conftest.err'
6633   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6634   (eval $ac_try) 2>&5
6635   ac_status=$?
6636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6637   (exit $ac_status); }; } &&
6638          { ac_try='test -s conftest.$ac_objext'
6639   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6640   (eval $ac_try) 2>&5
6641   ac_status=$?
6642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6643   (exit $ac_status); }; }; then
6644   ac_lo=$ac_mid; break
6645 else
6646   echo "$as_me: failed program was:" >&5
6647 sed 's/^/| /' conftest.$ac_ext >&5
6648
6649 ac_hi=`expr '(' $ac_mid ')' - 1`
6650                        if test $ac_mid -le $ac_hi; then
6651                          ac_lo= ac_hi=
6652                          break
6653                        fi
6654                        ac_mid=`expr 2 '*' $ac_mid`
6655 fi
6656 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6657   done
6658 else
6659   echo "$as_me: failed program was:" >&5
6660 sed 's/^/| /' conftest.$ac_ext >&5
6661
6662 ac_lo= ac_hi=
6663 fi
6664 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6665 fi
6666 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6667 # Binary search between lo and hi bounds.
6668 while test "x$ac_lo" != "x$ac_hi"; do
6669   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6670   cat >conftest.$ac_ext <<_ACEOF
6671 /* confdefs.h.  */
6672 _ACEOF
6673 cat confdefs.h >>conftest.$ac_ext
6674 cat >>conftest.$ac_ext <<_ACEOF
6675 /* end confdefs.h.  */
6676 $ac_includes_default
6677 int
6678 main ()
6679 {
6680 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
6681 test_array [0] = 0
6682
6683   ;
6684   return 0;
6685 }
6686 _ACEOF
6687 rm -f conftest.$ac_objext
6688 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6689   (eval $ac_compile) 2>conftest.er1
6690   ac_status=$?
6691   grep -v '^ *+' conftest.er1 >conftest.err
6692   rm -f conftest.er1
6693   cat conftest.err >&5
6694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6695   (exit $ac_status); } &&
6696          { ac_try='test -z "$ac_c_werror_flag"
6697                          || test ! -s conftest.err'
6698   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6699   (eval $ac_try) 2>&5
6700   ac_status=$?
6701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6702   (exit $ac_status); }; } &&
6703          { ac_try='test -s conftest.$ac_objext'
6704   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6705   (eval $ac_try) 2>&5
6706   ac_status=$?
6707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6708   (exit $ac_status); }; }; then
6709   ac_hi=$ac_mid
6710 else
6711   echo "$as_me: failed program was:" >&5
6712 sed 's/^/| /' conftest.$ac_ext >&5
6713
6714 ac_lo=`expr '(' $ac_mid ')' + 1`
6715 fi
6716 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6717 done
6718 case $ac_lo in
6719 ?*) ac_cv_sizeof_long_long=$ac_lo;;
6720 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
6721 See \`config.log' for more details." >&5
6722 echo "$as_me: error: cannot compute sizeof (long long), 77
6723 See \`config.log' for more details." >&2;}
6724    { (exit 1); exit 1; }; } ;;
6725 esac
6726 else
6727   if test "$cross_compiling" = yes; then
6728   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6729 See \`config.log' for more details." >&5
6730 echo "$as_me: error: cannot run test program while cross compiling
6731 See \`config.log' for more details." >&2;}
6732    { (exit 1); exit 1; }; }
6733 else
6734   cat >conftest.$ac_ext <<_ACEOF
6735 /* confdefs.h.  */
6736 _ACEOF
6737 cat confdefs.h >>conftest.$ac_ext
6738 cat >>conftest.$ac_ext <<_ACEOF
6739 /* end confdefs.h.  */
6740 $ac_includes_default
6741 long longval () { return (long) (sizeof (long long)); }
6742 unsigned long ulongval () { return (long) (sizeof (long long)); }
6743 #include <stdio.h>
6744 #include <stdlib.h>
6745 int
6746 main ()
6747 {
6748
6749   FILE *f = fopen ("conftest.val", "w");
6750   if (! f)
6751     exit (1);
6752   if (((long) (sizeof (long long))) < 0)
6753     {
6754       long i = longval ();
6755       if (i != ((long) (sizeof (long long))))
6756         exit (1);
6757       fprintf (f, "%ld\n", i);
6758     }
6759   else
6760     {
6761       unsigned long i = ulongval ();
6762       if (i != ((long) (sizeof (long long))))
6763         exit (1);
6764       fprintf (f, "%lu\n", i);
6765     }
6766   exit (ferror (f) || fclose (f) != 0);
6767
6768   ;
6769   return 0;
6770 }
6771 _ACEOF
6772 rm -f conftest$ac_exeext
6773 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6774   (eval $ac_link) 2>&5
6775   ac_status=$?
6776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6777   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6778   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6779   (eval $ac_try) 2>&5
6780   ac_status=$?
6781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6782   (exit $ac_status); }; }; then
6783   ac_cv_sizeof_long_long=`cat conftest.val`
6784 else
6785   echo "$as_me: program exited with status $ac_status" >&5
6786 echo "$as_me: failed program was:" >&5
6787 sed 's/^/| /' conftest.$ac_ext >&5
6788
6789 ( exit $ac_status )
6790 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
6791 See \`config.log' for more details." >&5
6792 echo "$as_me: error: cannot compute sizeof (long long), 77
6793 See \`config.log' for more details." >&2;}
6794    { (exit 1); exit 1; }; }
6795 fi
6796 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6797 fi
6798 fi
6799 rm -f conftest.val
6800 else
6801   ac_cv_sizeof_long_long=0
6802 fi
6803 fi
6804 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
6805 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
6806 cat >>confdefs.h <<_ACEOF
6807 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6808 _ACEOF
6809
6810
6811
6812
6813
6814         echo "$as_me:$LINENO: checking for addrinfo" >&5
6815 echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6
6816         if test "${ac_cv_addrinfo+set}" = set; then
6817   echo $ECHO_N "(cached) $ECHO_C" >&6
6818 else
6819   cat >conftest.$ac_ext <<_ACEOF
6820 /* confdefs.h.  */
6821 _ACEOF
6822 cat confdefs.h >>conftest.$ac_ext
6823 cat >>conftest.$ac_ext <<_ACEOF
6824 /* end confdefs.h.  */
6825
6826 #               include <netdb.h>
6827 int
6828 main ()
6829 {
6830 struct addrinfo a
6831   ;
6832   return 0;
6833 }
6834 _ACEOF
6835 rm -f conftest.$ac_objext
6836 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6837   (eval $ac_compile) 2>conftest.er1
6838   ac_status=$?
6839   grep -v '^ *+' conftest.er1 >conftest.err
6840   rm -f conftest.er1
6841   cat conftest.err >&5
6842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6843   (exit $ac_status); } &&
6844          { ac_try='test -z "$ac_c_werror_flag"
6845                          || test ! -s conftest.err'
6846   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6847   (eval $ac_try) 2>&5
6848   ac_status=$?
6849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6850   (exit $ac_status); }; } &&
6851          { ac_try='test -s conftest.$ac_objext'
6852   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6853   (eval $ac_try) 2>&5
6854   ac_status=$?
6855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6856   (exit $ac_status); }; }; then
6857   ac_cv_addrinfo=yes
6858 else
6859   echo "$as_me: failed program was:" >&5
6860 sed 's/^/| /' conftest.$ac_ext >&5
6861
6862 ac_cv_addrinfo=no
6863 fi
6864 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6865 fi
6866
6867         echo "$as_me:$LINENO: result: $ac_cv_addrinfo" >&5
6868 echo "${ECHO_T}$ac_cv_addrinfo" >&6
6869         if test $ac_cv_addrinfo = yes; then
6870                 cat >>confdefs.h <<\_ACEOF
6871 #define HAVE_ADDRINFO 1
6872 _ACEOF
6873
6874         else
6875                 cat >>confdefs.h <<\_ACEOF
6876 #define NEED_ADDRINFO_H 1
6877 _ACEOF
6878
6879         fi
6880
6881 if test "$ac_cv_addrinfo" = no; then
6882         missing_includes=yes
6883 fi
6884
6885
6886         echo "$as_me:$LINENO: checking for NI_MAXSERV" >&5
6887 echo $ECHO_N "checking for NI_MAXSERV... $ECHO_C" >&6
6888         if test "${ac_cv_maxserv+set}" = set; then
6889   echo $ECHO_N "(cached) $ECHO_C" >&6
6890 else
6891   cat >conftest.$ac_ext <<_ACEOF
6892 /* confdefs.h.  */
6893 _ACEOF
6894 cat confdefs.h >>conftest.$ac_ext
6895 cat >>conftest.$ac_ext <<_ACEOF
6896 /* end confdefs.h.  */
6897 #include <netdb.h>
6898 #ifdef NI_MAXSERV
6899 yes
6900 #endif
6901 _ACEOF
6902 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6903   $EGREP "yes" >/dev/null 2>&1; then
6904   ac_cv_maxserv=yes
6905 else
6906   ac_cv_maxserv=no
6907 fi
6908 rm -f conftest*
6909
6910 fi
6911
6912         echo "$as_me:$LINENO: result: $ac_cv_maxserv" >&5
6913 echo "${ECHO_T}$ac_cv_maxserv" >&6
6914         if test $ac_cv_maxserv != yes; then
6915                 cat >>confdefs.h <<\_ACEOF
6916 #define NEED_ADDRINFO_H 1
6917 _ACEOF
6918
6919         fi
6920
6921 if test "$ac_cv_maxserv" = no; then
6922         missing_includes=yes
6923 fi
6924
6925
6926         echo "$as_me:$LINENO: checking for NI_NAMEREQD" >&5
6927 echo $ECHO_N "checking for NI_NAMEREQD... $ECHO_C" >&6
6928         if test "${ac_cv_namereqd+set}" = set; then
6929   echo $ECHO_N "(cached) $ECHO_C" >&6
6930 else
6931   cat >conftest.$ac_ext <<_ACEOF
6932 /* confdefs.h.  */
6933 _ACEOF
6934 cat confdefs.h >>conftest.$ac_ext
6935 cat >>conftest.$ac_ext <<_ACEOF
6936 /* end confdefs.h.  */
6937 #include <netdb.h>
6938 #ifdef NI_NOFQDN
6939 yes
6940 #endif
6941 _ACEOF
6942 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6943   $EGREP "yes" >/dev/null 2>&1; then
6944   ac_cv_namereqd=yes
6945 else
6946   ac_cv_namereqd=no
6947 fi
6948 rm -f conftest*
6949
6950 fi
6951
6952         echo "$as_me:$LINENO: result: $ac_cv_namereqd" >&5
6953 echo "${ECHO_T}$ac_cv_namereqd" >&6
6954         if test $ac_cv_namereqd != yes; then
6955                 cat >>confdefs.h <<\_ACEOF
6956 #define NEED_ADDRINFO_H 1
6957 _ACEOF
6958
6959         fi
6960
6961 if test "$ac_cv_namereqd" = no; then
6962         missing_includes=yes
6963 fi
6964
6965
6966         echo "$as_me:$LINENO: checking for sockaddr_storage" >&5
6967 echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6
6968         if test "${ac_cv_sa_storage+set}" = set; then
6969   echo $ECHO_N "(cached) $ECHO_C" >&6
6970 else
6971   cat >conftest.$ac_ext <<_ACEOF
6972 /* confdefs.h.  */
6973 _ACEOF
6974 cat confdefs.h >>conftest.$ac_ext
6975 cat >>conftest.$ac_ext <<_ACEOF
6976 /* end confdefs.h.  */
6977
6978 #               include <sys/types.h>
6979 #               include <sys/socket.h>
6980 int
6981 main ()
6982 {
6983 struct sockaddr_storage s
6984   ;
6985   return 0;
6986 }
6987 _ACEOF
6988 rm -f conftest.$ac_objext
6989 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6990   (eval $ac_compile) 2>conftest.er1
6991   ac_status=$?
6992   grep -v '^ *+' conftest.er1 >conftest.err
6993   rm -f conftest.er1
6994   cat conftest.err >&5
6995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6996   (exit $ac_status); } &&
6997          { ac_try='test -z "$ac_c_werror_flag"
6998                          || test ! -s conftest.err'
6999   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7000   (eval $ac_try) 2>&5
7001   ac_status=$?
7002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7003   (exit $ac_status); }; } &&
7004          { ac_try='test -s conftest.$ac_objext'
7005   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7006   (eval $ac_try) 2>&5
7007   ac_status=$?
7008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7009   (exit $ac_status); }; }; then
7010   ac_cv_sa_storage=yes
7011 else
7012   echo "$as_me: failed program was:" >&5
7013 sed 's/^/| /' conftest.$ac_ext >&5
7014
7015 ac_cv_sa_storage=no
7016 fi
7017 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7018 fi
7019
7020         echo "$as_me:$LINENO: result: $ac_cv_sa_storage" >&5
7021 echo "${ECHO_T}$ac_cv_sa_storage" >&6
7022         if test $ac_cv_sa_storage = yes; then
7023                 cat >>confdefs.h <<\_ACEOF
7024 #define HAVE_SOCKADDR_STORAGE 1
7025 _ACEOF
7026
7027         fi
7028
7029 if test "$ac_cv_sa_storage" = no; then
7030         missing_includes=yes
7031 fi
7032
7033
7034         ac_cv_addrsz=yes
7035         echo "$as_me:$LINENO: checking for INADDRSZ" >&5
7036 echo $ECHO_N "checking for INADDRSZ... $ECHO_C" >&6
7037         if test "${ac_cv_inaddrsz+set}" = set; then
7038   echo $ECHO_N "(cached) $ECHO_C" >&6
7039 else
7040   cat >conftest.$ac_ext <<_ACEOF
7041 /* confdefs.h.  */
7042 _ACEOF
7043 cat confdefs.h >>conftest.$ac_ext
7044 cat >>conftest.$ac_ext <<_ACEOF
7045 /* end confdefs.h.  */
7046
7047 #               include <arpa/nameser.h>
7048 int
7049 main ()
7050 {
7051 int a = INADDRSZ
7052   ;
7053   return 0;
7054 }
7055 _ACEOF
7056 rm -f conftest.$ac_objext
7057 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7058   (eval $ac_compile) 2>conftest.er1
7059   ac_status=$?
7060   grep -v '^ *+' conftest.er1 >conftest.err
7061   rm -f conftest.er1
7062   cat conftest.err >&5
7063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7064   (exit $ac_status); } &&
7065          { ac_try='test -z "$ac_c_werror_flag"
7066                          || test ! -s conftest.err'
7067   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7068   (eval $ac_try) 2>&5
7069   ac_status=$?
7070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7071   (exit $ac_status); }; } &&
7072          { ac_try='test -s conftest.$ac_objext'
7073   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7074   (eval $ac_try) 2>&5
7075   ac_status=$?
7076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7077   (exit $ac_status); }; }; then
7078   ac_cv_inaddrsz=yes
7079 else
7080   echo "$as_me: failed program was:" >&5
7081 sed 's/^/| /' conftest.$ac_ext >&5
7082
7083 ac_cv_inaddrsz=no
7084 fi
7085 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7086 fi
7087
7088         echo "$as_me:$LINENO: result: $ac_cv_inaddrsz" >&5
7089 echo "${ECHO_T}$ac_cv_inaddrsz" >&6
7090         if test $ac_cv_inaddrsz = yes; then
7091                 cat >>confdefs.h <<\_ACEOF
7092 #define HAVE_INADDRSZ 1
7093 _ACEOF
7094
7095         else
7096                 ac_cv_addrsz=no
7097         fi
7098         echo "$as_me:$LINENO: checking for IN6ADDRSZ" >&5
7099 echo $ECHO_N "checking for IN6ADDRSZ... $ECHO_C" >&6
7100         if test "${ac_cv_in6addrsz+set}" = set; then
7101   echo $ECHO_N "(cached) $ECHO_C" >&6
7102 else
7103   cat >conftest.$ac_ext <<_ACEOF
7104 /* confdefs.h.  */
7105 _ACEOF
7106 cat confdefs.h >>conftest.$ac_ext
7107 cat >>conftest.$ac_ext <<_ACEOF
7108 /* end confdefs.h.  */
7109
7110 #               include <arpa/nameser.h>
7111 int
7112 main ()
7113 {
7114 int a = IN6ADDRSZ
7115   ;
7116   return 0;
7117 }
7118 _ACEOF
7119 rm -f conftest.$ac_objext
7120 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7121   (eval $ac_compile) 2>conftest.er1
7122   ac_status=$?
7123   grep -v '^ *+' conftest.er1 >conftest.err
7124   rm -f conftest.er1
7125   cat conftest.err >&5
7126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7127   (exit $ac_status); } &&
7128          { ac_try='test -z "$ac_c_werror_flag"
7129                          || test ! -s conftest.err'
7130   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7131   (eval $ac_try) 2>&5
7132   ac_status=$?
7133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7134   (exit $ac_status); }; } &&
7135          { ac_try='test -s conftest.$ac_objext'
7136   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7137   (eval $ac_try) 2>&5
7138   ac_status=$?
7139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7140   (exit $ac_status); }; }; then
7141   ac_cv_in6addrsz=yes
7142 else
7143   echo "$as_me: failed program was:" >&5
7144 sed 's/^/| /' conftest.$ac_ext >&5
7145
7146 ac_cv_in6addrsz=no
7147 fi
7148 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7149 fi
7150
7151         echo "$as_me:$LINENO: result: $ac_cv_in6addrsz" >&5
7152 echo "${ECHO_T}$ac_cv_in6addrsz" >&6
7153         if test $ac_cv_in6addrsz = yes; then
7154                 cat >>confdefs.h <<\_ACEOF
7155 #define HAVE_IN6ADDRSZ 1
7156 _ACEOF
7157
7158         else
7159                 ac_cv_addrsz=no
7160         fi
7161
7162 if test "$ac_cv_addrsz" = no; then
7163         missing_includes=yes
7164 fi
7165
7166
7167         echo "$as_me:$LINENO: checking for RES_USE_INET6" >&5
7168 echo $ECHO_N "checking for RES_USE_INET6... $ECHO_C" >&6
7169         if test "${ac_cv_res_inet6+set}" = set; then
7170   echo $ECHO_N "(cached) $ECHO_C" >&6
7171 else
7172   cat >conftest.$ac_ext <<_ACEOF
7173 /* confdefs.h.  */
7174 _ACEOF
7175 cat confdefs.h >>conftest.$ac_ext
7176 cat >>conftest.$ac_ext <<_ACEOF
7177 /* end confdefs.h.  */
7178
7179 #               include <sys/types.h>
7180 #               include <netinet/in.h>
7181 #               include <resolv.h>
7182 int
7183 main ()
7184 {
7185 int a = RES_USE_INET6
7186   ;
7187   return 0;
7188 }
7189 _ACEOF
7190 rm -f conftest.$ac_objext
7191 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7192   (eval $ac_compile) 2>conftest.er1
7193   ac_status=$?
7194   grep -v '^ *+' conftest.er1 >conftest.err
7195   rm -f conftest.er1
7196   cat conftest.err >&5
7197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7198   (exit $ac_status); } &&
7199          { ac_try='test -z "$ac_c_werror_flag"
7200                          || test ! -s conftest.err'
7201   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7202   (eval $ac_try) 2>&5
7203   ac_status=$?
7204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7205   (exit $ac_status); }; } &&
7206          { ac_try='test -s conftest.$ac_objext'
7207   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7208   (eval $ac_try) 2>&5
7209   ac_status=$?
7210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7211   (exit $ac_status); }; }; then
7212   ac_cv_res_inet6=yes
7213 else
7214   echo "$as_me: failed program was:" >&5
7215 sed 's/^/| /' conftest.$ac_ext >&5
7216
7217 ac_cv_res_inet6=no
7218 fi
7219 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7220 fi
7221
7222         echo "$as_me:$LINENO: result: $ac_cv_res_inet6" >&5
7223 echo "${ECHO_T}$ac_cv_res_inet6" >&6
7224         if test $ac_cv_res_inet6 = yes; then
7225                 cat >>confdefs.h <<\_ACEOF
7226 #define HAVE_RES_USE_INET6 1
7227 _ACEOF
7228
7229         fi
7230
7231 if test "$ac_cv_res_inet6" = no; then
7232         missing_includes=yes
7233 fi
7234
7235
7236         echo "$as_me:$LINENO: checking for res_state_ext" >&5
7237 echo $ECHO_N "checking for res_state_ext... $ECHO_C" >&6
7238         if test "${ac_cv_res_state_ext+set}" = set; then
7239   echo $ECHO_N "(cached) $ECHO_C" >&6
7240 else
7241   cat >conftest.$ac_ext <<_ACEOF
7242 /* confdefs.h.  */
7243 _ACEOF
7244 cat confdefs.h >>conftest.$ac_ext
7245 cat >>conftest.$ac_ext <<_ACEOF
7246 /* end confdefs.h.  */
7247
7248 #               include <sys/types.h>
7249 #               include <netinet/in.h>
7250 #               include <netinet6/in6.h>
7251 #               include <resolv.h>
7252 int
7253 main ()
7254 {
7255 struct __res_state_ext e
7256   ;
7257   return 0;
7258 }
7259 _ACEOF
7260 rm -f conftest.$ac_objext
7261 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7262   (eval $ac_compile) 2>conftest.er1
7263   ac_status=$?
7264   grep -v '^ *+' conftest.er1 >conftest.err
7265   rm -f conftest.er1
7266   cat conftest.err >&5
7267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7268   (exit $ac_status); } &&
7269          { ac_try='test -z "$ac_c_werror_flag"
7270                          || test ! -s conftest.err'
7271   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7272   (eval $ac_try) 2>&5
7273   ac_status=$?
7274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7275   (exit $ac_status); }; } &&
7276          { ac_try='test -s conftest.$ac_objext'
7277   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7278   (eval $ac_try) 2>&5
7279   ac_status=$?
7280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7281   (exit $ac_status); }; }; then
7282   ac_cv_res_state_ext=yes
7283 else
7284   echo "$as_me: failed program was:" >&5
7285 sed 's/^/| /' conftest.$ac_ext >&5
7286
7287 ac_cv_res_state_ext=no
7288 fi
7289 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7290 fi
7291
7292         echo "$as_me:$LINENO: result: $ac_cv_res_state_ext" >&5
7293 echo "${ECHO_T}$ac_cv_res_state_ext" >&6
7294         if test $ac_cv_res_state_ext = yes; then
7295                 cat >>confdefs.h <<\_ACEOF
7296 #define HAVE_RES_STATE_EXT 1
7297 _ACEOF
7298
7299         fi
7300
7301 if test "$ac_cv_res_state_ext" = no; then
7302         missing_includes=yes
7303 fi
7304
7305
7306         echo "$as_me:$LINENO: checking for nsort in res_state" >&5
7307 echo $ECHO_N "checking for nsort in res_state... $ECHO_C" >&6
7308         if test "${ac_cv_res_state+set}" = set; then
7309   echo $ECHO_N "(cached) $ECHO_C" >&6
7310 else
7311   cat >conftest.$ac_ext <<_ACEOF
7312 /* confdefs.h.  */
7313 _ACEOF
7314 cat confdefs.h >>conftest.$ac_ext
7315 cat >>conftest.$ac_ext <<_ACEOF
7316 /* end confdefs.h.  */
7317
7318 #               include <sys/types.h>
7319 #               include <netinet/in.h>
7320 #               include <netinet6/in6.h>
7321 #               include <resolv.h>
7322 int
7323 main ()
7324 {
7325 struct __res_state e; e.nsort = 0
7326   ;
7327   return 0;
7328 }
7329 _ACEOF
7330 rm -f conftest.$ac_objext
7331 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7332   (eval $ac_compile) 2>conftest.er1
7333   ac_status=$?
7334   grep -v '^ *+' conftest.er1 >conftest.err
7335   rm -f conftest.er1
7336   cat conftest.err >&5
7337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7338   (exit $ac_status); } &&
7339          { ac_try='test -z "$ac_c_werror_flag"
7340                          || test ! -s conftest.err'
7341   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7342   (eval $ac_try) 2>&5
7343   ac_status=$?
7344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7345   (exit $ac_status); }; } &&
7346          { ac_try='test -s conftest.$ac_objext'
7347   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7348   (eval $ac_try) 2>&5
7349   ac_status=$?
7350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7351   (exit $ac_status); }; }; then
7352   ac_cv_res_state=yes
7353 else
7354   echo "$as_me: failed program was:" >&5
7355 sed 's/^/| /' conftest.$ac_ext >&5
7356
7357 ac_cv_res_state=no
7358 fi
7359 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7360 fi
7361
7362         echo "$as_me:$LINENO: result: $ac_cv_res_state" >&5
7363 echo "${ECHO_T}$ac_cv_res_state" >&6
7364         if test $ac_cv_res_state = yes; then
7365                 cat >>confdefs.h <<\_ACEOF
7366 #define HAVE_NEW_RES_STATE 1
7367 _ACEOF
7368
7369         fi
7370
7371
7372
7373
7374
7375
7376
7377
7378
7379 for ac_func in vfprintf strcasecmp strlcat strlcpy strdup strsep
7380 do
7381 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7382 echo "$as_me:$LINENO: checking for $ac_func" >&5
7383 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7384 if eval "test \"\${$as_ac_var+set}\" = set"; then
7385   echo $ECHO_N "(cached) $ECHO_C" >&6
7386 else
7387   cat >conftest.$ac_ext <<_ACEOF
7388 /* confdefs.h.  */
7389 _ACEOF
7390 cat confdefs.h >>conftest.$ac_ext
7391 cat >>conftest.$ac_ext <<_ACEOF
7392 /* end confdefs.h.  */
7393 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7394    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7395 #define $ac_func innocuous_$ac_func
7396
7397 /* System header to define __stub macros and hopefully few prototypes,
7398     which can conflict with char $ac_func (); below.
7399     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7400     <limits.h> exists even on freestanding compilers.  */
7401
7402 #ifdef __STDC__
7403 # include <limits.h>
7404 #else
7405 # include <assert.h>
7406 #endif
7407
7408 #undef $ac_func
7409
7410 /* Override any gcc2 internal prototype to avoid an error.  */
7411 #ifdef __cplusplus
7412 extern "C"
7413 {
7414 #endif
7415 /* We use char because int might match the return type of a gcc2
7416    builtin and then its argument prototype would still apply.  */
7417 char $ac_func ();
7418 /* The GNU C library defines this for functions which it implements
7419     to always fail with ENOSYS.  Some functions are actually named
7420     something starting with __ and the normal name is an alias.  */
7421 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7422 choke me
7423 #else
7424 char (*f) () = $ac_func;
7425 #endif
7426 #ifdef __cplusplus
7427 }
7428 #endif
7429
7430 int
7431 main ()
7432 {
7433 return f != $ac_func;
7434   ;
7435   return 0;
7436 }
7437 _ACEOF
7438 rm -f conftest.$ac_objext conftest$ac_exeext
7439 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7440   (eval $ac_link) 2>conftest.er1
7441   ac_status=$?
7442   grep -v '^ *+' conftest.er1 >conftest.err
7443   rm -f conftest.er1
7444   cat conftest.err >&5
7445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7446   (exit $ac_status); } &&
7447          { ac_try='test -z "$ac_c_werror_flag"
7448                          || test ! -s conftest.err'
7449   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7450   (eval $ac_try) 2>&5
7451   ac_status=$?
7452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7453   (exit $ac_status); }; } &&
7454          { ac_try='test -s conftest$ac_exeext'
7455   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7456   (eval $ac_try) 2>&5
7457   ac_status=$?
7458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7459   (exit $ac_status); }; }; then
7460   eval "$as_ac_var=yes"
7461 else
7462   echo "$as_me: failed program was:" >&5
7463 sed 's/^/| /' conftest.$ac_ext >&5
7464
7465 eval "$as_ac_var=no"
7466 fi
7467 rm -f conftest.err conftest.$ac_objext \
7468       conftest$ac_exeext conftest.$ac_ext
7469 fi
7470 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7471 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7472 if test `eval echo '${'$as_ac_var'}'` = yes; then
7473   cat >>confdefs.h <<_ACEOF
7474 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7475 _ACEOF
7476
7477 else
7478   case $LIBOBJS in
7479     "$ac_func.$ac_objext"   | \
7480   *" $ac_func.$ac_objext"   | \
7481     "$ac_func.$ac_objext "* | \
7482   *" $ac_func.$ac_objext "* ) ;;
7483   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
7484 esac
7485
7486 fi
7487 done
7488
7489
7490
7491 for ac_func in strftime
7492 do
7493 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7494 echo "$as_me:$LINENO: checking for $ac_func" >&5
7495 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7496 if eval "test \"\${$as_ac_var+set}\" = set"; then
7497   echo $ECHO_N "(cached) $ECHO_C" >&6
7498 else
7499   cat >conftest.$ac_ext <<_ACEOF
7500 /* confdefs.h.  */
7501 _ACEOF
7502 cat confdefs.h >>conftest.$ac_ext
7503 cat >>conftest.$ac_ext <<_ACEOF
7504 /* end confdefs.h.  */
7505 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7506    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7507 #define $ac_func innocuous_$ac_func
7508
7509 /* System header to define __stub macros and hopefully few prototypes,
7510     which can conflict with char $ac_func (); below.
7511     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7512     <limits.h> exists even on freestanding compilers.  */
7513
7514 #ifdef __STDC__
7515 # include <limits.h>
7516 #else
7517 # include <assert.h>
7518 #endif
7519
7520 #undef $ac_func
7521
7522 /* Override any gcc2 internal prototype to avoid an error.  */
7523 #ifdef __cplusplus
7524 extern "C"
7525 {
7526 #endif
7527 /* We use char because int might match the return type of a gcc2
7528    builtin and then its argument prototype would still apply.  */
7529 char $ac_func ();
7530 /* The GNU C library defines this for functions which it implements
7531     to always fail with ENOSYS.  Some functions are actually named
7532     something starting with __ and the normal name is an alias.  */
7533 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7534 choke me
7535 #else
7536 char (*f) () = $ac_func;
7537 #endif
7538 #ifdef __cplusplus
7539 }
7540 #endif
7541
7542 int
7543 main ()
7544 {
7545 return f != $ac_func;
7546   ;
7547   return 0;
7548 }
7549 _ACEOF
7550 rm -f conftest.$ac_objext conftest$ac_exeext
7551 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7552   (eval $ac_link) 2>conftest.er1
7553   ac_status=$?
7554   grep -v '^ *+' conftest.er1 >conftest.err
7555   rm -f conftest.er1
7556   cat conftest.err >&5
7557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7558   (exit $ac_status); } &&
7559          { ac_try='test -z "$ac_c_werror_flag"
7560                          || test ! -s conftest.err'
7561   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7562   (eval $ac_try) 2>&5
7563   ac_status=$?
7564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7565   (exit $ac_status); }; } &&
7566          { ac_try='test -s conftest$ac_exeext'
7567   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7568   (eval $ac_try) 2>&5
7569   ac_status=$?
7570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7571   (exit $ac_status); }; }; then
7572   eval "$as_ac_var=yes"
7573 else
7574   echo "$as_me: failed program was:" >&5
7575 sed 's/^/| /' conftest.$ac_ext >&5
7576
7577 eval "$as_ac_var=no"
7578 fi
7579 rm -f conftest.err conftest.$ac_objext \
7580       conftest$ac_exeext conftest.$ac_ext
7581 fi
7582 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7583 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7584 if test `eval echo '${'$as_ac_var'}'` = yes; then
7585   cat >>confdefs.h <<_ACEOF
7586 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7587 _ACEOF
7588
7589 fi
7590 done
7591
7592
7593
7594 for ac_func in setlinebuf alarm
7595 do
7596 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7597 echo "$as_me:$LINENO: checking for $ac_func" >&5
7598 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7599 if eval "test \"\${$as_ac_var+set}\" = set"; then
7600   echo $ECHO_N "(cached) $ECHO_C" >&6
7601 else
7602   cat >conftest.$ac_ext <<_ACEOF
7603 /* confdefs.h.  */
7604 _ACEOF
7605 cat confdefs.h >>conftest.$ac_ext
7606 cat >>conftest.$ac_ext <<_ACEOF
7607 /* end confdefs.h.  */
7608 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7609    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7610 #define $ac_func innocuous_$ac_func
7611
7612 /* System header to define __stub macros and hopefully few prototypes,
7613     which can conflict with char $ac_func (); below.
7614     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7615     <limits.h> exists even on freestanding compilers.  */
7616
7617 #ifdef __STDC__
7618 # include <limits.h>
7619 #else
7620 # include <assert.h>
7621 #endif
7622
7623 #undef $ac_func
7624
7625 /* Override any gcc2 internal prototype to avoid an error.  */
7626 #ifdef __cplusplus
7627 extern "C"
7628 {
7629 #endif
7630 /* We use char because int might match the return type of a gcc2
7631    builtin and then its argument prototype would still apply.  */
7632 char $ac_func ();
7633 /* The GNU C library defines this for functions which it implements
7634     to always fail with ENOSYS.  Some functions are actually named
7635     something starting with __ and the normal name is an alias.  */
7636 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7637 choke me
7638 #else
7639 char (*f) () = $ac_func;
7640 #endif
7641 #ifdef __cplusplus
7642 }
7643 #endif
7644
7645 int
7646 main ()
7647 {
7648 return f != $ac_func;
7649   ;
7650   return 0;
7651 }
7652 _ACEOF
7653 rm -f conftest.$ac_objext conftest$ac_exeext
7654 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7655   (eval $ac_link) 2>conftest.er1
7656   ac_status=$?
7657   grep -v '^ *+' conftest.er1 >conftest.err
7658   rm -f conftest.er1
7659   cat conftest.err >&5
7660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7661   (exit $ac_status); } &&
7662          { ac_try='test -z "$ac_c_werror_flag"
7663                          || test ! -s conftest.err'
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); }; } &&
7669          { ac_try='test -s conftest$ac_exeext'
7670   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7671   (eval $ac_try) 2>&5
7672   ac_status=$?
7673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7674   (exit $ac_status); }; }; then
7675   eval "$as_ac_var=yes"
7676 else
7677   echo "$as_me: failed program was:" >&5
7678 sed 's/^/| /' conftest.$ac_ext >&5
7679
7680 eval "$as_ac_var=no"
7681 fi
7682 rm -f conftest.err conftest.$ac_objext \
7683       conftest$ac_exeext conftest.$ac_ext
7684 fi
7685 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7686 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7687 if test `eval echo '${'$as_ac_var'}'` = yes; then
7688   cat >>confdefs.h <<_ACEOF
7689 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7690 _ACEOF
7691
7692 fi
7693 done
7694
7695
7696 needsnprintf=no
7697
7698
7699 for ac_func in vsnprintf snprintf
7700 do
7701 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7702 echo "$as_me:$LINENO: checking for $ac_func" >&5
7703 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7704 if eval "test \"\${$as_ac_var+set}\" = set"; then
7705   echo $ECHO_N "(cached) $ECHO_C" >&6
7706 else
7707   cat >conftest.$ac_ext <<_ACEOF
7708 /* confdefs.h.  */
7709 _ACEOF
7710 cat confdefs.h >>conftest.$ac_ext
7711 cat >>conftest.$ac_ext <<_ACEOF
7712 /* end confdefs.h.  */
7713 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7714    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7715 #define $ac_func innocuous_$ac_func
7716
7717 /* System header to define __stub macros and hopefully few prototypes,
7718     which can conflict with char $ac_func (); below.
7719     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7720     <limits.h> exists even on freestanding compilers.  */
7721
7722 #ifdef __STDC__
7723 # include <limits.h>
7724 #else
7725 # include <assert.h>
7726 #endif
7727
7728 #undef $ac_func
7729
7730 /* Override any gcc2 internal prototype to avoid an error.  */
7731 #ifdef __cplusplus
7732 extern "C"
7733 {
7734 #endif
7735 /* We use char because int might match the return type of a gcc2
7736    builtin and then its argument prototype would still apply.  */
7737 char $ac_func ();
7738 /* The GNU C library defines this for functions which it implements
7739     to always fail with ENOSYS.  Some functions are actually named
7740     something starting with __ and the normal name is an alias.  */
7741 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7742 choke me
7743 #else
7744 char (*f) () = $ac_func;
7745 #endif
7746 #ifdef __cplusplus
7747 }
7748 #endif
7749
7750 int
7751 main ()
7752 {
7753 return f != $ac_func;
7754   ;
7755   return 0;
7756 }
7757 _ACEOF
7758 rm -f conftest.$ac_objext conftest$ac_exeext
7759 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7760   (eval $ac_link) 2>conftest.er1
7761   ac_status=$?
7762   grep -v '^ *+' conftest.er1 >conftest.err
7763   rm -f conftest.er1
7764   cat conftest.err >&5
7765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7766   (exit $ac_status); } &&
7767          { ac_try='test -z "$ac_c_werror_flag"
7768                          || test ! -s conftest.err'
7769   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7770   (eval $ac_try) 2>&5
7771   ac_status=$?
7772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7773   (exit $ac_status); }; } &&
7774          { ac_try='test -s conftest$ac_exeext'
7775   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7776   (eval $ac_try) 2>&5
7777   ac_status=$?
7778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7779   (exit $ac_status); }; }; then
7780   eval "$as_ac_var=yes"
7781 else
7782   echo "$as_me: failed program was:" >&5
7783 sed 's/^/| /' conftest.$ac_ext >&5
7784
7785 eval "$as_ac_var=no"
7786 fi
7787 rm -f conftest.err conftest.$ac_objext \
7788       conftest$ac_exeext conftest.$ac_ext
7789 fi
7790 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7791 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7792 if test `eval echo '${'$as_ac_var'}'` = yes; then
7793   cat >>confdefs.h <<_ACEOF
7794 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7795 _ACEOF
7796
7797 else
7798   needsnprintf=yes
7799 fi
7800 done
7801
7802 if test $needsnprintf = yes; then
7803         case $LIBOBJS in
7804     "snprintf.$ac_objext"   | \
7805   *" snprintf.$ac_objext"   | \
7806     "snprintf.$ac_objext "* | \
7807   *" snprintf.$ac_objext "* ) ;;
7808   *) LIBOBJS="$LIBOBJS snprintf.$ac_objext" ;;
7809 esac
7810
7811 fi
7812
7813
7814     echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7815 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
7816 if test "${ac_cv_type_signal+set}" = set; then
7817   echo $ECHO_N "(cached) $ECHO_C" >&6
7818 else
7819   cat >conftest.$ac_ext <<_ACEOF
7820 /* confdefs.h.  */
7821 _ACEOF
7822 cat confdefs.h >>conftest.$ac_ext
7823 cat >>conftest.$ac_ext <<_ACEOF
7824 /* end confdefs.h.  */
7825 #include <sys/types.h>
7826 #include <signal.h>
7827 #ifdef signal
7828 # undef signal
7829 #endif
7830 #ifdef __cplusplus
7831 extern "C" void (*signal (int, void (*)(int)))(int);
7832 #else
7833 void (*signal ()) ();
7834 #endif
7835
7836 int
7837 main ()
7838 {
7839 int i;
7840   ;
7841   return 0;
7842 }
7843 _ACEOF
7844 rm -f conftest.$ac_objext
7845 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7846   (eval $ac_compile) 2>conftest.er1
7847   ac_status=$?
7848   grep -v '^ *+' conftest.er1 >conftest.err
7849   rm -f conftest.er1
7850   cat conftest.err >&5
7851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7852   (exit $ac_status); } &&
7853          { ac_try='test -z "$ac_c_werror_flag"
7854                          || test ! -s conftest.err'
7855   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7856   (eval $ac_try) 2>&5
7857   ac_status=$?
7858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7859   (exit $ac_status); }; } &&
7860          { ac_try='test -s conftest.$ac_objext'
7861   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7862   (eval $ac_try) 2>&5
7863   ac_status=$?
7864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7865   (exit $ac_status); }; }; then
7866   ac_cv_type_signal=void
7867 else
7868   echo "$as_me: failed program was:" >&5
7869 sed 's/^/| /' conftest.$ac_ext >&5
7870
7871 ac_cv_type_signal=int
7872 fi
7873 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7874 fi
7875 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7876 echo "${ECHO_T}$ac_cv_type_signal" >&6
7877
7878 cat >>confdefs.h <<_ACEOF
7879 #define RETSIGTYPE $ac_cv_type_signal
7880 _ACEOF
7881
7882
7883     if test "$ac_cv_type_signal" = void ; then
7884             cat >>confdefs.h <<\_ACEOF
7885 #define RETSIGVAL
7886 _ACEOF
7887
7888     else
7889             cat >>confdefs.h <<\_ACEOF
7890 #define RETSIGVAL (0)
7891 _ACEOF
7892
7893     fi
7894     case "$host_os" in
7895
7896     irix*)
7897             cat >>confdefs.h <<\_ACEOF
7898 #define _BSD_SIGNALS 1
7899 _ACEOF
7900
7901             ;;
7902
7903     *)
7904
7905 for ac_func in sigaction
7906 do
7907 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7908 echo "$as_me:$LINENO: checking for $ac_func" >&5
7909 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7910 if eval "test \"\${$as_ac_var+set}\" = set"; then
7911   echo $ECHO_N "(cached) $ECHO_C" >&6
7912 else
7913   cat >conftest.$ac_ext <<_ACEOF
7914 /* confdefs.h.  */
7915 _ACEOF
7916 cat confdefs.h >>conftest.$ac_ext
7917 cat >>conftest.$ac_ext <<_ACEOF
7918 /* end confdefs.h.  */
7919 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7920    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7921 #define $ac_func innocuous_$ac_func
7922
7923 /* System header to define __stub macros and hopefully few prototypes,
7924     which can conflict with char $ac_func (); below.
7925     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7926     <limits.h> exists even on freestanding compilers.  */
7927
7928 #ifdef __STDC__
7929 # include <limits.h>
7930 #else
7931 # include <assert.h>
7932 #endif
7933
7934 #undef $ac_func
7935
7936 /* Override any gcc2 internal prototype to avoid an error.  */
7937 #ifdef __cplusplus
7938 extern "C"
7939 {
7940 #endif
7941 /* We use char because int might match the return type of a gcc2
7942    builtin and then its argument prototype would still apply.  */
7943 char $ac_func ();
7944 /* The GNU C library defines this for functions which it implements
7945     to always fail with ENOSYS.  Some functions are actually named
7946     something starting with __ and the normal name is an alias.  */
7947 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7948 choke me
7949 #else
7950 char (*f) () = $ac_func;
7951 #endif
7952 #ifdef __cplusplus
7953 }
7954 #endif
7955
7956 int
7957 main ()
7958 {
7959 return f != $ac_func;
7960   ;
7961   return 0;
7962 }
7963 _ACEOF
7964 rm -f conftest.$ac_objext conftest$ac_exeext
7965 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7966   (eval $ac_link) 2>conftest.er1
7967   ac_status=$?
7968   grep -v '^ *+' conftest.er1 >conftest.err
7969   rm -f conftest.er1
7970   cat conftest.err >&5
7971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7972   (exit $ac_status); } &&
7973          { ac_try='test -z "$ac_c_werror_flag"
7974                          || test ! -s conftest.err'
7975   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7976   (eval $ac_try) 2>&5
7977   ac_status=$?
7978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7979   (exit $ac_status); }; } &&
7980          { ac_try='test -s conftest$ac_exeext'
7981   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7982   (eval $ac_try) 2>&5
7983   ac_status=$?
7984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7985   (exit $ac_status); }; }; then
7986   eval "$as_ac_var=yes"
7987 else
7988   echo "$as_me: failed program was:" >&5
7989 sed 's/^/| /' conftest.$ac_ext >&5
7990
7991 eval "$as_ac_var=no"
7992 fi
7993 rm -f conftest.err conftest.$ac_objext \
7994       conftest$ac_exeext conftest.$ac_ext
7995 fi
7996 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7997 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7998 if test `eval echo '${'$as_ac_var'}'` = yes; then
7999   cat >>confdefs.h <<_ACEOF
8000 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8001 _ACEOF
8002
8003 fi
8004 done
8005
8006             if test $ac_cv_func_sigaction = no ; then
8007
8008 for ac_func in sigset
8009 do
8010 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8011 echo "$as_me:$LINENO: checking for $ac_func" >&5
8012 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8013 if eval "test \"\${$as_ac_var+set}\" = set"; then
8014   echo $ECHO_N "(cached) $ECHO_C" >&6
8015 else
8016   cat >conftest.$ac_ext <<_ACEOF
8017 /* confdefs.h.  */
8018 _ACEOF
8019 cat confdefs.h >>conftest.$ac_ext
8020 cat >>conftest.$ac_ext <<_ACEOF
8021 /* end confdefs.h.  */
8022 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8023    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8024 #define $ac_func innocuous_$ac_func
8025
8026 /* System header to define __stub macros and hopefully few prototypes,
8027     which can conflict with char $ac_func (); below.
8028     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8029     <limits.h> exists even on freestanding compilers.  */
8030
8031 #ifdef __STDC__
8032 # include <limits.h>
8033 #else
8034 # include <assert.h>
8035 #endif
8036
8037 #undef $ac_func
8038
8039 /* Override any gcc2 internal prototype to avoid an error.  */
8040 #ifdef __cplusplus
8041 extern "C"
8042 {
8043 #endif
8044 /* We use char because int might match the return type of a gcc2
8045    builtin and then its argument prototype would still apply.  */
8046 char $ac_func ();
8047 /* The GNU C library defines this for functions which it implements
8048     to always fail with ENOSYS.  Some functions are actually named
8049     something starting with __ and the normal name is an alias.  */
8050 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8051 choke me
8052 #else
8053 char (*f) () = $ac_func;
8054 #endif
8055 #ifdef __cplusplus
8056 }
8057 #endif
8058
8059 int
8060 main ()
8061 {
8062 return f != $ac_func;
8063   ;
8064   return 0;
8065 }
8066 _ACEOF
8067 rm -f conftest.$ac_objext conftest$ac_exeext
8068 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8069   (eval $ac_link) 2>conftest.er1
8070   ac_status=$?
8071   grep -v '^ *+' conftest.er1 >conftest.err
8072   rm -f conftest.er1
8073   cat conftest.err >&5
8074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8075   (exit $ac_status); } &&
8076          { ac_try='test -z "$ac_c_werror_flag"
8077                          || test ! -s conftest.err'
8078   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8079   (eval $ac_try) 2>&5
8080   ac_status=$?
8081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8082   (exit $ac_status); }; } &&
8083          { ac_try='test -s conftest$ac_exeext'
8084   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8085   (eval $ac_try) 2>&5
8086   ac_status=$?
8087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8088   (exit $ac_status); }; }; then
8089   eval "$as_ac_var=yes"
8090 else
8091   echo "$as_me: failed program was:" >&5
8092 sed 's/^/| /' conftest.$ac_ext >&5
8093
8094 eval "$as_ac_var=no"
8095 fi
8096 rm -f conftest.err conftest.$ac_objext \
8097       conftest$ac_exeext conftest.$ac_ext
8098 fi
8099 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8100 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8101 if test `eval echo '${'$as_ac_var'}'` = yes; then
8102   cat >>confdefs.h <<_ACEOF
8103 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8104 _ACEOF
8105
8106 fi
8107 done
8108
8109             fi
8110             ;;
8111     esac
8112
8113 echo "$as_me:$LINENO: checking for library containing dnet_htoa" >&5
8114 echo $ECHO_N "checking for library containing dnet_htoa... $ECHO_C" >&6
8115 if test "${ac_cv_search_dnet_htoa+set}" = set; then
8116   echo $ECHO_N "(cached) $ECHO_C" >&6
8117 else
8118   ac_func_search_save_LIBS=$LIBS
8119 ac_cv_search_dnet_htoa=no
8120 cat >conftest.$ac_ext <<_ACEOF
8121 /* confdefs.h.  */
8122 _ACEOF
8123 cat confdefs.h >>conftest.$ac_ext
8124 cat >>conftest.$ac_ext <<_ACEOF
8125 /* end confdefs.h.  */
8126
8127 /* Override any gcc2 internal prototype to avoid an error.  */
8128 #ifdef __cplusplus
8129 extern "C"
8130 #endif
8131 /* We use char because int might match the return type of a gcc2
8132    builtin and then its argument prototype would still apply.  */
8133 char dnet_htoa ();
8134 int
8135 main ()
8136 {
8137 dnet_htoa ();
8138   ;
8139   return 0;
8140 }
8141 _ACEOF
8142 rm -f conftest.$ac_objext conftest$ac_exeext
8143 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8144   (eval $ac_link) 2>conftest.er1
8145   ac_status=$?
8146   grep -v '^ *+' conftest.er1 >conftest.err
8147   rm -f conftest.er1
8148   cat conftest.err >&5
8149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8150   (exit $ac_status); } &&
8151          { ac_try='test -z "$ac_c_werror_flag"
8152                          || test ! -s conftest.err'
8153   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8154   (eval $ac_try) 2>&5
8155   ac_status=$?
8156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8157   (exit $ac_status); }; } &&
8158          { ac_try='test -s conftest$ac_exeext'
8159   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8160   (eval $ac_try) 2>&5
8161   ac_status=$?
8162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8163   (exit $ac_status); }; }; then
8164   ac_cv_search_dnet_htoa="none required"
8165 else
8166   echo "$as_me: failed program was:" >&5
8167 sed 's/^/| /' conftest.$ac_ext >&5
8168
8169 fi
8170 rm -f conftest.err conftest.$ac_objext \
8171       conftest$ac_exeext conftest.$ac_ext
8172 if test "$ac_cv_search_dnet_htoa" = no; then
8173   for ac_lib in dnet; do
8174     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8175     cat >conftest.$ac_ext <<_ACEOF
8176 /* confdefs.h.  */
8177 _ACEOF
8178 cat confdefs.h >>conftest.$ac_ext
8179 cat >>conftest.$ac_ext <<_ACEOF
8180 /* end confdefs.h.  */
8181
8182 /* Override any gcc2 internal prototype to avoid an error.  */
8183 #ifdef __cplusplus
8184 extern "C"
8185 #endif
8186 /* We use char because int might match the return type of a gcc2
8187    builtin and then its argument prototype would still apply.  */
8188 char dnet_htoa ();
8189 int
8190 main ()
8191 {
8192 dnet_htoa ();
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>conftest.er1
8200   ac_status=$?
8201   grep -v '^ *+' conftest.er1 >conftest.err
8202   rm -f conftest.er1
8203   cat conftest.err >&5
8204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8205   (exit $ac_status); } &&
8206          { ac_try='test -z "$ac_c_werror_flag"
8207                          || test ! -s conftest.err'
8208   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8209   (eval $ac_try) 2>&5
8210   ac_status=$?
8211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8212   (exit $ac_status); }; } &&
8213          { ac_try='test -s conftest$ac_exeext'
8214   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8215   (eval $ac_try) 2>&5
8216   ac_status=$?
8217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8218   (exit $ac_status); }; }; then
8219   ac_cv_search_dnet_htoa="-l$ac_lib"
8220 break
8221 else
8222   echo "$as_me: failed program was:" >&5
8223 sed 's/^/| /' conftest.$ac_ext >&5
8224
8225 fi
8226 rm -f conftest.err conftest.$ac_objext \
8227       conftest$ac_exeext conftest.$ac_ext
8228   done
8229 fi
8230 LIBS=$ac_func_search_save_LIBS
8231 fi
8232 echo "$as_me:$LINENO: result: $ac_cv_search_dnet_htoa" >&5
8233 echo "${ECHO_T}$ac_cv_search_dnet_htoa" >&6
8234 if test "$ac_cv_search_dnet_htoa" != no; then
8235   test "$ac_cv_search_dnet_htoa" = "none required" || LIBS="$ac_cv_search_dnet_htoa $LIBS"
8236   cat >>confdefs.h <<\_ACEOF
8237 #define HAVE_DNET_HTOA 1
8238 _ACEOF
8239
8240 fi
8241
8242
8243
8244 echo "$as_me:$LINENO: checking for main in -lrpc" >&5
8245 echo $ECHO_N "checking for main in -lrpc... $ECHO_C" >&6
8246 if test "${ac_cv_lib_rpc_main+set}" = set; then
8247   echo $ECHO_N "(cached) $ECHO_C" >&6
8248 else
8249   ac_check_lib_save_LIBS=$LIBS
8250 LIBS="-lrpc  $LIBS"
8251 cat >conftest.$ac_ext <<_ACEOF
8252 /* confdefs.h.  */
8253 _ACEOF
8254 cat confdefs.h >>conftest.$ac_ext
8255 cat >>conftest.$ac_ext <<_ACEOF
8256 /* end confdefs.h.  */
8257
8258
8259 int
8260 main ()
8261 {
8262 main ();
8263   ;
8264   return 0;
8265 }
8266 _ACEOF
8267 rm -f conftest.$ac_objext conftest$ac_exeext
8268 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8269   (eval $ac_link) 2>conftest.er1
8270   ac_status=$?
8271   grep -v '^ *+' conftest.er1 >conftest.err
8272   rm -f conftest.er1
8273   cat conftest.err >&5
8274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8275   (exit $ac_status); } &&
8276          { ac_try='test -z "$ac_c_werror_flag"
8277                          || test ! -s conftest.err'
8278   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8279   (eval $ac_try) 2>&5
8280   ac_status=$?
8281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8282   (exit $ac_status); }; } &&
8283          { ac_try='test -s conftest$ac_exeext'
8284   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8285   (eval $ac_try) 2>&5
8286   ac_status=$?
8287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8288   (exit $ac_status); }; }; then
8289   ac_cv_lib_rpc_main=yes
8290 else
8291   echo "$as_me: failed program was:" >&5
8292 sed 's/^/| /' conftest.$ac_ext >&5
8293
8294 ac_cv_lib_rpc_main=no
8295 fi
8296 rm -f conftest.err conftest.$ac_objext \
8297       conftest$ac_exeext conftest.$ac_ext
8298 LIBS=$ac_check_lib_save_LIBS
8299 fi
8300 echo "$as_me:$LINENO: result: $ac_cv_lib_rpc_main" >&5
8301 echo "${ECHO_T}$ac_cv_lib_rpc_main" >&6
8302 if test $ac_cv_lib_rpc_main = yes; then
8303   cat >>confdefs.h <<_ACEOF
8304 #define HAVE_LIBRPC 1
8305 _ACEOF
8306
8307   LIBS="-lrpc $LIBS"
8308
8309 fi
8310
8311 echo "$as_me:$LINENO: checking for library containing getrpcbynumber" >&5
8312 echo $ECHO_N "checking for library containing getrpcbynumber... $ECHO_C" >&6
8313 if test "${ac_cv_search_getrpcbynumber+set}" = set; then
8314   echo $ECHO_N "(cached) $ECHO_C" >&6
8315 else
8316   ac_func_search_save_LIBS=$LIBS
8317 ac_cv_search_getrpcbynumber=no
8318 cat >conftest.$ac_ext <<_ACEOF
8319 /* confdefs.h.  */
8320 _ACEOF
8321 cat confdefs.h >>conftest.$ac_ext
8322 cat >>conftest.$ac_ext <<_ACEOF
8323 /* end confdefs.h.  */
8324
8325 /* Override any gcc2 internal prototype to avoid an error.  */
8326 #ifdef __cplusplus
8327 extern "C"
8328 #endif
8329 /* We use char because int might match the return type of a gcc2
8330    builtin and then its argument prototype would still apply.  */
8331 char getrpcbynumber ();
8332 int
8333 main ()
8334 {
8335 getrpcbynumber ();
8336   ;
8337   return 0;
8338 }
8339 _ACEOF
8340 rm -f conftest.$ac_objext conftest$ac_exeext
8341 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8342   (eval $ac_link) 2>conftest.er1
8343   ac_status=$?
8344   grep -v '^ *+' conftest.er1 >conftest.err
8345   rm -f conftest.er1
8346   cat conftest.err >&5
8347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8348   (exit $ac_status); } &&
8349          { ac_try='test -z "$ac_c_werror_flag"
8350                          || test ! -s conftest.err'
8351   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8352   (eval $ac_try) 2>&5
8353   ac_status=$?
8354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8355   (exit $ac_status); }; } &&
8356          { ac_try='test -s conftest$ac_exeext'
8357   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8358   (eval $ac_try) 2>&5
8359   ac_status=$?
8360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8361   (exit $ac_status); }; }; then
8362   ac_cv_search_getrpcbynumber="none required"
8363 else
8364   echo "$as_me: failed program was:" >&5
8365 sed 's/^/| /' conftest.$ac_ext >&5
8366
8367 fi
8368 rm -f conftest.err conftest.$ac_objext \
8369       conftest$ac_exeext conftest.$ac_ext
8370 if test "$ac_cv_search_getrpcbynumber" = no; then
8371   for ac_lib in nsl; do
8372     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8373     cat >conftest.$ac_ext <<_ACEOF
8374 /* confdefs.h.  */
8375 _ACEOF
8376 cat confdefs.h >>conftest.$ac_ext
8377 cat >>conftest.$ac_ext <<_ACEOF
8378 /* end confdefs.h.  */
8379
8380 /* Override any gcc2 internal prototype to avoid an error.  */
8381 #ifdef __cplusplus
8382 extern "C"
8383 #endif
8384 /* We use char because int might match the return type of a gcc2
8385    builtin and then its argument prototype would still apply.  */
8386 char getrpcbynumber ();
8387 int
8388 main ()
8389 {
8390 getrpcbynumber ();
8391   ;
8392   return 0;
8393 }
8394 _ACEOF
8395 rm -f conftest.$ac_objext conftest$ac_exeext
8396 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8397   (eval $ac_link) 2>conftest.er1
8398   ac_status=$?
8399   grep -v '^ *+' conftest.er1 >conftest.err
8400   rm -f conftest.er1
8401   cat conftest.err >&5
8402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8403   (exit $ac_status); } &&
8404          { ac_try='test -z "$ac_c_werror_flag"
8405                          || test ! -s conftest.err'
8406   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8407   (eval $ac_try) 2>&5
8408   ac_status=$?
8409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8410   (exit $ac_status); }; } &&
8411          { ac_try='test -s conftest$ac_exeext'
8412   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8413   (eval $ac_try) 2>&5
8414   ac_status=$?
8415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8416   (exit $ac_status); }; }; then
8417   ac_cv_search_getrpcbynumber="-l$ac_lib"
8418 break
8419 else
8420   echo "$as_me: failed program was:" >&5
8421 sed 's/^/| /' conftest.$ac_ext >&5
8422
8423 fi
8424 rm -f conftest.err conftest.$ac_objext \
8425       conftest$ac_exeext conftest.$ac_ext
8426   done
8427 fi
8428 LIBS=$ac_func_search_save_LIBS
8429 fi
8430 echo "$as_me:$LINENO: result: $ac_cv_search_getrpcbynumber" >&5
8431 echo "${ECHO_T}$ac_cv_search_getrpcbynumber" >&6
8432 if test "$ac_cv_search_getrpcbynumber" != no; then
8433   test "$ac_cv_search_getrpcbynumber" = "none required" || LIBS="$ac_cv_search_getrpcbynumber $LIBS"
8434   cat >>confdefs.h <<\_ACEOF
8435 #define HAVE_GETRPCBYNUMBER 1
8436 _ACEOF
8437
8438 fi
8439
8440
8441
8442
8443     # Most operating systems have gethostbyname() in the default searched
8444     # libraries (i.e. libc):
8445     # Some OSes (eg. Solaris) place it in libnsl
8446     # Some strange OSes (SINIX) have it in libsocket:
8447     echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
8448 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6
8449 if test "${ac_cv_search_gethostbyname+set}" = set; then
8450   echo $ECHO_N "(cached) $ECHO_C" >&6
8451 else
8452   ac_func_search_save_LIBS=$LIBS
8453 ac_cv_search_gethostbyname=no
8454 cat >conftest.$ac_ext <<_ACEOF
8455 /* confdefs.h.  */
8456 _ACEOF
8457 cat confdefs.h >>conftest.$ac_ext
8458 cat >>conftest.$ac_ext <<_ACEOF
8459 /* end confdefs.h.  */
8460
8461 /* Override any gcc2 internal prototype to avoid an error.  */
8462 #ifdef __cplusplus
8463 extern "C"
8464 #endif
8465 /* We use char because int might match the return type of a gcc2
8466    builtin and then its argument prototype would still apply.  */
8467 char gethostbyname ();
8468 int
8469 main ()
8470 {
8471 gethostbyname ();
8472   ;
8473   return 0;
8474 }
8475 _ACEOF
8476 rm -f conftest.$ac_objext conftest$ac_exeext
8477 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8478   (eval $ac_link) 2>conftest.er1
8479   ac_status=$?
8480   grep -v '^ *+' conftest.er1 >conftest.err
8481   rm -f conftest.er1
8482   cat conftest.err >&5
8483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8484   (exit $ac_status); } &&
8485          { ac_try='test -z "$ac_c_werror_flag"
8486                          || test ! -s conftest.err'
8487   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8488   (eval $ac_try) 2>&5
8489   ac_status=$?
8490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8491   (exit $ac_status); }; } &&
8492          { ac_try='test -s conftest$ac_exeext'
8493   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8494   (eval $ac_try) 2>&5
8495   ac_status=$?
8496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8497   (exit $ac_status); }; }; then
8498   ac_cv_search_gethostbyname="none required"
8499 else
8500   echo "$as_me: failed program was:" >&5
8501 sed 's/^/| /' conftest.$ac_ext >&5
8502
8503 fi
8504 rm -f conftest.err conftest.$ac_objext \
8505       conftest$ac_exeext conftest.$ac_ext
8506 if test "$ac_cv_search_gethostbyname" = no; then
8507   for ac_lib in nsl socket resolv; do
8508     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8509     cat >conftest.$ac_ext <<_ACEOF
8510 /* confdefs.h.  */
8511 _ACEOF
8512 cat confdefs.h >>conftest.$ac_ext
8513 cat >>conftest.$ac_ext <<_ACEOF
8514 /* end confdefs.h.  */
8515
8516 /* Override any gcc2 internal prototype to avoid an error.  */
8517 #ifdef __cplusplus
8518 extern "C"
8519 #endif
8520 /* We use char because int might match the return type of a gcc2
8521    builtin and then its argument prototype would still apply.  */
8522 char gethostbyname ();
8523 int
8524 main ()
8525 {
8526 gethostbyname ();
8527   ;
8528   return 0;
8529 }
8530 _ACEOF
8531 rm -f conftest.$ac_objext conftest$ac_exeext
8532 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8533   (eval $ac_link) 2>conftest.er1
8534   ac_status=$?
8535   grep -v '^ *+' conftest.er1 >conftest.err
8536   rm -f conftest.er1
8537   cat conftest.err >&5
8538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8539   (exit $ac_status); } &&
8540          { ac_try='test -z "$ac_c_werror_flag"
8541                          || test ! -s conftest.err'
8542   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8543   (eval $ac_try) 2>&5
8544   ac_status=$?
8545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8546   (exit $ac_status); }; } &&
8547          { ac_try='test -s conftest$ac_exeext'
8548   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8549   (eval $ac_try) 2>&5
8550   ac_status=$?
8551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8552   (exit $ac_status); }; }; then
8553   ac_cv_search_gethostbyname="-l$ac_lib"
8554 break
8555 else
8556   echo "$as_me: failed program was:" >&5
8557 sed 's/^/| /' conftest.$ac_ext >&5
8558
8559 fi
8560 rm -f conftest.err conftest.$ac_objext \
8561       conftest$ac_exeext conftest.$ac_ext
8562   done
8563 fi
8564 LIBS=$ac_func_search_save_LIBS
8565 fi
8566 echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
8567 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6
8568 if test "$ac_cv_search_gethostbyname" != no; then
8569   test "$ac_cv_search_gethostbyname" = "none required" || LIBS="$ac_cv_search_gethostbyname $LIBS"
8570
8571 fi
8572
8573     # Unfortunately libsocket sometimes depends on libnsl and
8574     # AC_SEARCH_LIBS isn't up to the task of handling dependencies like this.
8575     if test "$ac_cv_search_gethostbyname" = "no"
8576     then
8577         echo "$as_me:$LINENO: checking for gethostbyname in -lsocket" >&5
8578 echo $ECHO_N "checking for gethostbyname in -lsocket... $ECHO_C" >&6
8579 if test "${ac_cv_lib_socket_gethostbyname+set}" = set; then
8580   echo $ECHO_N "(cached) $ECHO_C" >&6
8581 else
8582   ac_check_lib_save_LIBS=$LIBS
8583 LIBS="-lsocket -lnsl $LIBS"
8584 cat >conftest.$ac_ext <<_ACEOF
8585 /* confdefs.h.  */
8586 _ACEOF
8587 cat confdefs.h >>conftest.$ac_ext
8588 cat >>conftest.$ac_ext <<_ACEOF
8589 /* end confdefs.h.  */
8590
8591 /* Override any gcc2 internal prototype to avoid an error.  */
8592 #ifdef __cplusplus
8593 extern "C"
8594 #endif
8595 /* We use char because int might match the return type of a gcc2
8596    builtin and then its argument prototype would still apply.  */
8597 char gethostbyname ();
8598 int
8599 main ()
8600 {
8601 gethostbyname ();
8602   ;
8603   return 0;
8604 }
8605 _ACEOF
8606 rm -f conftest.$ac_objext conftest$ac_exeext
8607 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8608   (eval $ac_link) 2>conftest.er1
8609   ac_status=$?
8610   grep -v '^ *+' conftest.er1 >conftest.err
8611   rm -f conftest.er1
8612   cat conftest.err >&5
8613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8614   (exit $ac_status); } &&
8615          { ac_try='test -z "$ac_c_werror_flag"
8616                          || test ! -s conftest.err'
8617   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8618   (eval $ac_try) 2>&5
8619   ac_status=$?
8620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8621   (exit $ac_status); }; } &&
8622          { ac_try='test -s conftest$ac_exeext'
8623   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8624   (eval $ac_try) 2>&5
8625   ac_status=$?
8626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8627   (exit $ac_status); }; }; then
8628   ac_cv_lib_socket_gethostbyname=yes
8629 else
8630   echo "$as_me: failed program was:" >&5
8631 sed 's/^/| /' conftest.$ac_ext >&5
8632
8633 ac_cv_lib_socket_gethostbyname=no
8634 fi
8635 rm -f conftest.err conftest.$ac_objext \
8636       conftest$ac_exeext conftest.$ac_ext
8637 LIBS=$ac_check_lib_save_LIBS
8638 fi
8639 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_gethostbyname" >&5
8640 echo "${ECHO_T}$ac_cv_lib_socket_gethostbyname" >&6
8641 if test $ac_cv_lib_socket_gethostbyname = yes; then
8642   LIBS="-lsocket -lnsl $LIBS"
8643 fi
8644
8645     fi
8646     echo "$as_me:$LINENO: checking for library containing socket" >&5
8647 echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6
8648 if test "${ac_cv_search_socket+set}" = set; then
8649   echo $ECHO_N "(cached) $ECHO_C" >&6
8650 else
8651   ac_func_search_save_LIBS=$LIBS
8652 ac_cv_search_socket=no
8653 cat >conftest.$ac_ext <<_ACEOF
8654 /* confdefs.h.  */
8655 _ACEOF
8656 cat confdefs.h >>conftest.$ac_ext
8657 cat >>conftest.$ac_ext <<_ACEOF
8658 /* end confdefs.h.  */
8659
8660 /* Override any gcc2 internal prototype to avoid an error.  */
8661 #ifdef __cplusplus
8662 extern "C"
8663 #endif
8664 /* We use char because int might match the return type of a gcc2
8665    builtin and then its argument prototype would still apply.  */
8666 char socket ();
8667 int
8668 main ()
8669 {
8670 socket ();
8671   ;
8672   return 0;
8673 }
8674 _ACEOF
8675 rm -f conftest.$ac_objext conftest$ac_exeext
8676 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8677   (eval $ac_link) 2>conftest.er1
8678   ac_status=$?
8679   grep -v '^ *+' conftest.er1 >conftest.err
8680   rm -f conftest.er1
8681   cat conftest.err >&5
8682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8683   (exit $ac_status); } &&
8684          { ac_try='test -z "$ac_c_werror_flag"
8685                          || test ! -s conftest.err'
8686   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8687   (eval $ac_try) 2>&5
8688   ac_status=$?
8689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8690   (exit $ac_status); }; } &&
8691          { ac_try='test -s conftest$ac_exeext'
8692   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8693   (eval $ac_try) 2>&5
8694   ac_status=$?
8695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8696   (exit $ac_status); }; }; then
8697   ac_cv_search_socket="none required"
8698 else
8699   echo "$as_me: failed program was:" >&5
8700 sed 's/^/| /' conftest.$ac_ext >&5
8701
8702 fi
8703 rm -f conftest.err conftest.$ac_objext \
8704       conftest$ac_exeext conftest.$ac_ext
8705 if test "$ac_cv_search_socket" = no; then
8706   for ac_lib in socket; do
8707     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8708     cat >conftest.$ac_ext <<_ACEOF
8709 /* confdefs.h.  */
8710 _ACEOF
8711 cat confdefs.h >>conftest.$ac_ext
8712 cat >>conftest.$ac_ext <<_ACEOF
8713 /* end confdefs.h.  */
8714
8715 /* Override any gcc2 internal prototype to avoid an error.  */
8716 #ifdef __cplusplus
8717 extern "C"
8718 #endif
8719 /* We use char because int might match the return type of a gcc2
8720    builtin and then its argument prototype would still apply.  */
8721 char socket ();
8722 int
8723 main ()
8724 {
8725 socket ();
8726   ;
8727   return 0;
8728 }
8729 _ACEOF
8730 rm -f conftest.$ac_objext conftest$ac_exeext
8731 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8732   (eval $ac_link) 2>conftest.er1
8733   ac_status=$?
8734   grep -v '^ *+' conftest.er1 >conftest.err
8735   rm -f conftest.er1
8736   cat conftest.err >&5
8737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8738   (exit $ac_status); } &&
8739          { ac_try='test -z "$ac_c_werror_flag"
8740                          || test ! -s conftest.err'
8741   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8742   (eval $ac_try) 2>&5
8743   ac_status=$?
8744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8745   (exit $ac_status); }; } &&
8746          { ac_try='test -s conftest$ac_exeext'
8747   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8748   (eval $ac_try) 2>&5
8749   ac_status=$?
8750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8751   (exit $ac_status); }; }; then
8752   ac_cv_search_socket="-l$ac_lib"
8753 break
8754 else
8755   echo "$as_me: failed program was:" >&5
8756 sed 's/^/| /' conftest.$ac_ext >&5
8757
8758 fi
8759 rm -f conftest.err conftest.$ac_objext \
8760       conftest$ac_exeext conftest.$ac_ext
8761   done
8762 fi
8763 LIBS=$ac_func_search_save_LIBS
8764 fi
8765 echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
8766 echo "${ECHO_T}$ac_cv_search_socket" >&6
8767 if test "$ac_cv_search_socket" != no; then
8768   test "$ac_cv_search_socket" = "none required" || LIBS="$ac_cv_search_socket $LIBS"
8769
8770 else
8771   echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
8772 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
8773 if test "${ac_cv_lib_socket_socket+set}" = set; then
8774   echo $ECHO_N "(cached) $ECHO_C" >&6
8775 else
8776   ac_check_lib_save_LIBS=$LIBS
8777 LIBS="-lsocket -lnsl $LIBS"
8778 cat >conftest.$ac_ext <<_ACEOF
8779 /* confdefs.h.  */
8780 _ACEOF
8781 cat confdefs.h >>conftest.$ac_ext
8782 cat >>conftest.$ac_ext <<_ACEOF
8783 /* end confdefs.h.  */
8784
8785 /* Override any gcc2 internal prototype to avoid an error.  */
8786 #ifdef __cplusplus
8787 extern "C"
8788 #endif
8789 /* We use char because int might match the return type of a gcc2
8790    builtin and then its argument prototype would still apply.  */
8791 char socket ();
8792 int
8793 main ()
8794 {
8795 socket ();
8796   ;
8797   return 0;
8798 }
8799 _ACEOF
8800 rm -f conftest.$ac_objext conftest$ac_exeext
8801 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8802   (eval $ac_link) 2>conftest.er1
8803   ac_status=$?
8804   grep -v '^ *+' conftest.er1 >conftest.err
8805   rm -f conftest.er1
8806   cat conftest.err >&5
8807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8808   (exit $ac_status); } &&
8809          { ac_try='test -z "$ac_c_werror_flag"
8810                          || test ! -s conftest.err'
8811   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8812   (eval $ac_try) 2>&5
8813   ac_status=$?
8814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8815   (exit $ac_status); }; } &&
8816          { ac_try='test -s conftest$ac_exeext'
8817   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8818   (eval $ac_try) 2>&5
8819   ac_status=$?
8820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8821   (exit $ac_status); }; }; then
8822   ac_cv_lib_socket_socket=yes
8823 else
8824   echo "$as_me: failed program was:" >&5
8825 sed 's/^/| /' conftest.$ac_ext >&5
8826
8827 ac_cv_lib_socket_socket=no
8828 fi
8829 rm -f conftest.err conftest.$ac_objext \
8830       conftest$ac_exeext conftest.$ac_ext
8831 LIBS=$ac_check_lib_save_LIBS
8832 fi
8833 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
8834 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
8835 if test $ac_cv_lib_socket_socket = yes; then
8836   LIBS="-lsocket -lnsl $LIBS"
8837 fi
8838
8839 fi
8840
8841     # DLPI needs putmsg under HPUX so test for -lstr while we're at it
8842     echo "$as_me:$LINENO: checking for library containing putmsg" >&5
8843 echo $ECHO_N "checking for library containing putmsg... $ECHO_C" >&6
8844 if test "${ac_cv_search_putmsg+set}" = set; then
8845   echo $ECHO_N "(cached) $ECHO_C" >&6
8846 else
8847   ac_func_search_save_LIBS=$LIBS
8848 ac_cv_search_putmsg=no
8849 cat >conftest.$ac_ext <<_ACEOF
8850 /* confdefs.h.  */
8851 _ACEOF
8852 cat confdefs.h >>conftest.$ac_ext
8853 cat >>conftest.$ac_ext <<_ACEOF
8854 /* end confdefs.h.  */
8855
8856 /* Override any gcc2 internal prototype to avoid an error.  */
8857 #ifdef __cplusplus
8858 extern "C"
8859 #endif
8860 /* We use char because int might match the return type of a gcc2
8861    builtin and then its argument prototype would still apply.  */
8862 char putmsg ();
8863 int
8864 main ()
8865 {
8866 putmsg ();
8867   ;
8868   return 0;
8869 }
8870 _ACEOF
8871 rm -f conftest.$ac_objext conftest$ac_exeext
8872 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8873   (eval $ac_link) 2>conftest.er1
8874   ac_status=$?
8875   grep -v '^ *+' conftest.er1 >conftest.err
8876   rm -f conftest.er1
8877   cat conftest.err >&5
8878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8879   (exit $ac_status); } &&
8880          { ac_try='test -z "$ac_c_werror_flag"
8881                          || test ! -s conftest.err'
8882   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8883   (eval $ac_try) 2>&5
8884   ac_status=$?
8885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8886   (exit $ac_status); }; } &&
8887          { ac_try='test -s conftest$ac_exeext'
8888   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8889   (eval $ac_try) 2>&5
8890   ac_status=$?
8891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8892   (exit $ac_status); }; }; then
8893   ac_cv_search_putmsg="none required"
8894 else
8895   echo "$as_me: failed program was:" >&5
8896 sed 's/^/| /' conftest.$ac_ext >&5
8897
8898 fi
8899 rm -f conftest.err conftest.$ac_objext \
8900       conftest$ac_exeext conftest.$ac_ext
8901 if test "$ac_cv_search_putmsg" = no; then
8902   for ac_lib in str; do
8903     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8904     cat >conftest.$ac_ext <<_ACEOF
8905 /* confdefs.h.  */
8906 _ACEOF
8907 cat confdefs.h >>conftest.$ac_ext
8908 cat >>conftest.$ac_ext <<_ACEOF
8909 /* end confdefs.h.  */
8910
8911 /* Override any gcc2 internal prototype to avoid an error.  */
8912 #ifdef __cplusplus
8913 extern "C"
8914 #endif
8915 /* We use char because int might match the return type of a gcc2
8916    builtin and then its argument prototype would still apply.  */
8917 char putmsg ();
8918 int
8919 main ()
8920 {
8921 putmsg ();
8922   ;
8923   return 0;
8924 }
8925 _ACEOF
8926 rm -f conftest.$ac_objext conftest$ac_exeext
8927 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8928   (eval $ac_link) 2>conftest.er1
8929   ac_status=$?
8930   grep -v '^ *+' conftest.er1 >conftest.err
8931   rm -f conftest.er1
8932   cat conftest.err >&5
8933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8934   (exit $ac_status); } &&
8935          { ac_try='test -z "$ac_c_werror_flag"
8936                          || test ! -s conftest.err'
8937   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8938   (eval $ac_try) 2>&5
8939   ac_status=$?
8940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8941   (exit $ac_status); }; } &&
8942          { ac_try='test -s conftest$ac_exeext'
8943   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8944   (eval $ac_try) 2>&5
8945   ac_status=$?
8946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8947   (exit $ac_status); }; }; then
8948   ac_cv_search_putmsg="-l$ac_lib"
8949 break
8950 else
8951   echo "$as_me: failed program was:" >&5
8952 sed 's/^/| /' conftest.$ac_ext >&5
8953
8954 fi
8955 rm -f conftest.err conftest.$ac_objext \
8956       conftest$ac_exeext conftest.$ac_ext
8957   done
8958 fi
8959 LIBS=$ac_func_search_save_LIBS
8960 fi
8961 echo "$as_me:$LINENO: result: $ac_cv_search_putmsg" >&5
8962 echo "${ECHO_T}$ac_cv_search_putmsg" >&6
8963 if test "$ac_cv_search_putmsg" != no; then
8964   test "$ac_cv_search_putmsg" = "none required" || LIBS="$ac_cv_search_putmsg $LIBS"
8965
8966 fi
8967
8968
8969
8970                 LBL_LIBS="$LIBS"
8971     pfopen=/usr/examples/packetfilter/pfopen.c
8972     if test -f $pfopen ; then
8973
8974 for ac_func in pfopen
8975 do
8976 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8977 echo "$as_me:$LINENO: checking for $ac_func" >&5
8978 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8979 if eval "test \"\${$as_ac_var+set}\" = set"; then
8980   echo $ECHO_N "(cached) $ECHO_C" >&6
8981 else
8982   cat >conftest.$ac_ext <<_ACEOF
8983 /* confdefs.h.  */
8984 _ACEOF
8985 cat confdefs.h >>conftest.$ac_ext
8986 cat >>conftest.$ac_ext <<_ACEOF
8987 /* end confdefs.h.  */
8988 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8989    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8990 #define $ac_func innocuous_$ac_func
8991
8992 /* System header to define __stub macros and hopefully few prototypes,
8993     which can conflict with char $ac_func (); below.
8994     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8995     <limits.h> exists even on freestanding compilers.  */
8996
8997 #ifdef __STDC__
8998 # include <limits.h>
8999 #else
9000 # include <assert.h>
9001 #endif
9002
9003 #undef $ac_func
9004
9005 /* Override any gcc2 internal prototype to avoid an error.  */
9006 #ifdef __cplusplus
9007 extern "C"
9008 {
9009 #endif
9010 /* We use char because int might match the return type of a gcc2
9011    builtin and then its argument prototype would still apply.  */
9012 char $ac_func ();
9013 /* The GNU C library defines this for functions which it implements
9014     to always fail with ENOSYS.  Some functions are actually named
9015     something starting with __ and the normal name is an alias.  */
9016 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9017 choke me
9018 #else
9019 char (*f) () = $ac_func;
9020 #endif
9021 #ifdef __cplusplus
9022 }
9023 #endif
9024
9025 int
9026 main ()
9027 {
9028 return f != $ac_func;
9029   ;
9030   return 0;
9031 }
9032 _ACEOF
9033 rm -f conftest.$ac_objext conftest$ac_exeext
9034 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9035   (eval $ac_link) 2>conftest.er1
9036   ac_status=$?
9037   grep -v '^ *+' conftest.er1 >conftest.err
9038   rm -f conftest.er1
9039   cat conftest.err >&5
9040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9041   (exit $ac_status); } &&
9042          { ac_try='test -z "$ac_c_werror_flag"
9043                          || test ! -s conftest.err'
9044   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9045   (eval $ac_try) 2>&5
9046   ac_status=$?
9047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9048   (exit $ac_status); }; } &&
9049          { ac_try='test -s conftest$ac_exeext'
9050   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9051   (eval $ac_try) 2>&5
9052   ac_status=$?
9053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9054   (exit $ac_status); }; }; then
9055   eval "$as_ac_var=yes"
9056 else
9057   echo "$as_me: failed program was:" >&5
9058 sed 's/^/| /' conftest.$ac_ext >&5
9059
9060 eval "$as_ac_var=no"
9061 fi
9062 rm -f conftest.err conftest.$ac_objext \
9063       conftest$ac_exeext conftest.$ac_ext
9064 fi
9065 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9066 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9067 if test `eval echo '${'$as_ac_var'}'` = yes; then
9068   cat >>confdefs.h <<_ACEOF
9069 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9070 _ACEOF
9071
9072 fi
9073 done
9074
9075             if test $ac_cv_func_pfopen = "no" ; then
9076                     echo "$as_me:$LINENO: result: Using $pfopen" >&5
9077 echo "${ECHO_T}Using $pfopen" >&6
9078                     LIBS="$LIBS $pfopen"
9079             fi
9080     fi
9081     echo "$as_me:$LINENO: checking for local pcap library" >&5
9082 echo $ECHO_N "checking for local pcap library... $ECHO_C" >&6
9083     libpcap=FAIL
9084     lastdir=FAIL
9085     places=`ls $srcdir/.. | sed -e 's,/$,,' -e "s,^,$srcdir/../," | \
9086         egrep '/libpcap-[0-9]*.[0-9]*(.[0-9]*)?([ab][0-9]*)?$'`
9087     for dir in $places $srcdir/../libpcap $srcdir/libpcap ; do
9088             basedir=`echo $dir | sed -e 's/[ab][0-9]*$//'`
9089             if test $lastdir = $basedir ; then
9090                                     continue;
9091             fi
9092             lastdir=$dir
9093             if test -r $dir/libpcap.a ; then
9094                     libpcap=$dir/libpcap.a
9095                     d=$dir
9096                             fi
9097     done
9098     if test $libpcap = FAIL ; then
9099             echo "$as_me:$LINENO: result: not found" >&5
9100 echo "${ECHO_T}not found" >&6
9101             echo "$as_me:$LINENO: checking for main in -lpcap" >&5
9102 echo $ECHO_N "checking for main in -lpcap... $ECHO_C" >&6
9103 if test "${ac_cv_lib_pcap_main+set}" = set; then
9104   echo $ECHO_N "(cached) $ECHO_C" >&6
9105 else
9106   ac_check_lib_save_LIBS=$LIBS
9107 LIBS="-lpcap  $LIBS"
9108 cat >conftest.$ac_ext <<_ACEOF
9109 /* confdefs.h.  */
9110 _ACEOF
9111 cat confdefs.h >>conftest.$ac_ext
9112 cat >>conftest.$ac_ext <<_ACEOF
9113 /* end confdefs.h.  */
9114
9115
9116 int
9117 main ()
9118 {
9119 main ();
9120   ;
9121   return 0;
9122 }
9123 _ACEOF
9124 rm -f conftest.$ac_objext conftest$ac_exeext
9125 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9126   (eval $ac_link) 2>conftest.er1
9127   ac_status=$?
9128   grep -v '^ *+' conftest.er1 >conftest.err
9129   rm -f conftest.er1
9130   cat conftest.err >&5
9131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9132   (exit $ac_status); } &&
9133          { ac_try='test -z "$ac_c_werror_flag"
9134                          || test ! -s conftest.err'
9135   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9136   (eval $ac_try) 2>&5
9137   ac_status=$?
9138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9139   (exit $ac_status); }; } &&
9140          { ac_try='test -s conftest$ac_exeext'
9141   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9142   (eval $ac_try) 2>&5
9143   ac_status=$?
9144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9145   (exit $ac_status); }; }; then
9146   ac_cv_lib_pcap_main=yes
9147 else
9148   echo "$as_me: failed program was:" >&5
9149 sed 's/^/| /' conftest.$ac_ext >&5
9150
9151 ac_cv_lib_pcap_main=no
9152 fi
9153 rm -f conftest.err conftest.$ac_objext \
9154       conftest$ac_exeext conftest.$ac_ext
9155 LIBS=$ac_check_lib_save_LIBS
9156 fi
9157 echo "$as_me:$LINENO: result: $ac_cv_lib_pcap_main" >&5
9158 echo "${ECHO_T}$ac_cv_lib_pcap_main" >&6
9159 if test $ac_cv_lib_pcap_main = yes; then
9160   libpcap="-lpcap"
9161 fi
9162
9163             if test $libpcap = FAIL ; then
9164                     { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
9165 echo "$as_me: error: see the INSTALL doc for more info" >&2;}
9166    { (exit 1); exit 1; }; }
9167             fi
9168                                                                                                                                     echo "$as_me:$LINENO: checking for extraneous pcap header directories" >&5
9169 echo $ECHO_N "checking for extraneous pcap header directories... $ECHO_C" >&6
9170             if test \( ! -r /usr/local/include/pcap.h \) -a \
9171                         \( ! -r /usr/include/pcap.h \); then
9172                 if test -r /usr/local/include/pcap/pcap.h; then
9173                     d="/usr/local/include/pcap"
9174                 elif test -r /usr/include/pcap/pcap.h; then
9175                     d="/usr/include/pcap"
9176                 fi
9177             fi
9178             if test -z "$d" ; then
9179                 echo "$as_me:$LINENO: result: not found" >&5
9180 echo "${ECHO_T}not found" >&6
9181             else
9182                 V_INCLS="-I$d $V_INCLS"
9183                 echo "$as_me:$LINENO: result: found -- -I$d added" >&5
9184 echo "${ECHO_T}found -- -I$d added" >&6
9185             fi
9186     else
9187             V_PCAPDEP=$libpcap
9188             places=`ls $srcdir/.. | sed -e 's,/$,,' -e "s,^,$srcdir/../," | \
9189                         egrep '/libpcap-[0-9]*.[0-9]*(.[0-9]*)?([ab][0-9]*)?$'`
9190             if test -r $d/pcap.h; then
9191                     V_INCLS="-I$d $V_INCLS"
9192             elif test -r $places/pcap.h; then
9193                     V_INCLS="-I$places $V_INCLS"
9194             else
9195                     { { echo "$as_me:$LINENO: error: cannot find pcap.h" >&5
9196 echo "$as_me: error: cannot find pcap.h" >&2;}
9197    { (exit see INSTALL); exit see INSTALL; }; }
9198             fi
9199             echo "$as_me:$LINENO: result: $libpcap" >&5
9200 echo "${ECHO_T}$libpcap" >&6
9201     fi
9202     LIBS="$libpcap $LIBS"
9203     case "$host_os" in
9204
9205     aix*)
9206             pseexe="/lib/pse.exp"
9207             echo "$as_me:$LINENO: checking for $pseexe" >&5
9208 echo $ECHO_N "checking for $pseexe... $ECHO_C" >&6
9209             if test -f $pseexe ; then
9210                     echo "$as_me:$LINENO: result: yes" >&5
9211 echo "${ECHO_T}yes" >&6
9212                     LIBS="$LIBS -I:$pseexe"
9213             fi
9214             #
9215             # We need "-lodm" and "-lcfg", as libpcap requires them on
9216             # AIX, and we just build a static libpcap.a and thus can't
9217             # arrange that when you link with libpcap you automatically
9218             # link with those libraries.
9219             #
9220             LIBS="$LIBS -lodm -lcfg"
9221             ;;
9222     esac
9223
9224                         echo "$as_me:$LINENO: checking for pcap_list_datalinks" >&5
9225 echo $ECHO_N "checking for pcap_list_datalinks... $ECHO_C" >&6
9226 if test "${ac_cv_func_pcap_list_datalinks+set}" = set; then
9227   echo $ECHO_N "(cached) $ECHO_C" >&6
9228 else
9229   cat >conftest.$ac_ext <<_ACEOF
9230 /* confdefs.h.  */
9231 _ACEOF
9232 cat confdefs.h >>conftest.$ac_ext
9233 cat >>conftest.$ac_ext <<_ACEOF
9234 /* end confdefs.h.  */
9235 /* Define pcap_list_datalinks to an innocuous variant, in case <limits.h> declares pcap_list_datalinks.
9236    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9237 #define pcap_list_datalinks innocuous_pcap_list_datalinks
9238
9239 /* System header to define __stub macros and hopefully few prototypes,
9240     which can conflict with char pcap_list_datalinks (); below.
9241     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9242     <limits.h> exists even on freestanding compilers.  */
9243
9244 #ifdef __STDC__
9245 # include <limits.h>
9246 #else
9247 # include <assert.h>
9248 #endif
9249
9250 #undef pcap_list_datalinks
9251
9252 /* Override any gcc2 internal prototype to avoid an error.  */
9253 #ifdef __cplusplus
9254 extern "C"
9255 {
9256 #endif
9257 /* We use char because int might match the return type of a gcc2
9258    builtin and then its argument prototype would still apply.  */
9259 char pcap_list_datalinks ();
9260 /* The GNU C library defines this for functions which it implements
9261     to always fail with ENOSYS.  Some functions are actually named
9262     something starting with __ and the normal name is an alias.  */
9263 #if defined (__stub_pcap_list_datalinks) || defined (__stub___pcap_list_datalinks)
9264 choke me
9265 #else
9266 char (*f) () = pcap_list_datalinks;
9267 #endif
9268 #ifdef __cplusplus
9269 }
9270 #endif
9271
9272 int
9273 main ()
9274 {
9275 return f != pcap_list_datalinks;
9276   ;
9277   return 0;
9278 }
9279 _ACEOF
9280 rm -f conftest.$ac_objext conftest$ac_exeext
9281 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9282   (eval $ac_link) 2>conftest.er1
9283   ac_status=$?
9284   grep -v '^ *+' conftest.er1 >conftest.err
9285   rm -f conftest.er1
9286   cat conftest.err >&5
9287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9288   (exit $ac_status); } &&
9289          { ac_try='test -z "$ac_c_werror_flag"
9290                          || test ! -s conftest.err'
9291   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9292   (eval $ac_try) 2>&5
9293   ac_status=$?
9294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9295   (exit $ac_status); }; } &&
9296          { ac_try='test -s conftest$ac_exeext'
9297   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9298   (eval $ac_try) 2>&5
9299   ac_status=$?
9300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9301   (exit $ac_status); }; }; then
9302   ac_cv_func_pcap_list_datalinks=yes
9303 else
9304   echo "$as_me: failed program was:" >&5
9305 sed 's/^/| /' conftest.$ac_ext >&5
9306
9307 ac_cv_func_pcap_list_datalinks=no
9308 fi
9309 rm -f conftest.err conftest.$ac_objext \
9310       conftest$ac_exeext conftest.$ac_ext
9311 fi
9312 echo "$as_me:$LINENO: result: $ac_cv_func_pcap_list_datalinks" >&5
9313 echo "${ECHO_T}$ac_cv_func_pcap_list_datalinks" >&6
9314 if test $ac_cv_func_pcap_list_datalinks = yes; then
9315   cat >>confdefs.h <<\_ACEOF
9316 #define HAVE_PCAP_LIST_DATALINKS 1
9317 _ACEOF
9318
9319 else
9320
9321             case $LIBOBJS in
9322     "datalinks.$ac_objext"   | \
9323   *" datalinks.$ac_objext"   | \
9324     "datalinks.$ac_objext "* | \
9325   *" datalinks.$ac_objext "* ) ;;
9326   *) LIBOBJS="$LIBOBJS datalinks.$ac_objext" ;;
9327 esac
9328
9329
9330 fi
9331
9332     echo "$as_me:$LINENO: checking for pcap_set_datalink" >&5
9333 echo $ECHO_N "checking for pcap_set_datalink... $ECHO_C" >&6
9334 if test "${ac_cv_func_pcap_set_datalink+set}" = set; then
9335   echo $ECHO_N "(cached) $ECHO_C" >&6
9336 else
9337   cat >conftest.$ac_ext <<_ACEOF
9338 /* confdefs.h.  */
9339 _ACEOF
9340 cat confdefs.h >>conftest.$ac_ext
9341 cat >>conftest.$ac_ext <<_ACEOF
9342 /* end confdefs.h.  */
9343 /* Define pcap_set_datalink to an innocuous variant, in case <limits.h> declares pcap_set_datalink.
9344    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9345 #define pcap_set_datalink innocuous_pcap_set_datalink
9346
9347 /* System header to define __stub macros and hopefully few prototypes,
9348     which can conflict with char pcap_set_datalink (); below.
9349     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9350     <limits.h> exists even on freestanding compilers.  */
9351
9352 #ifdef __STDC__
9353 # include <limits.h>
9354 #else
9355 # include <assert.h>
9356 #endif
9357
9358 #undef pcap_set_datalink
9359
9360 /* Override any gcc2 internal prototype to avoid an error.  */
9361 #ifdef __cplusplus
9362 extern "C"
9363 {
9364 #endif
9365 /* We use char because int might match the return type of a gcc2
9366    builtin and then its argument prototype would still apply.  */
9367 char pcap_set_datalink ();
9368 /* The GNU C library defines this for functions which it implements
9369     to always fail with ENOSYS.  Some functions are actually named
9370     something starting with __ and the normal name is an alias.  */
9371 #if defined (__stub_pcap_set_datalink) || defined (__stub___pcap_set_datalink)
9372 choke me
9373 #else
9374 char (*f) () = pcap_set_datalink;
9375 #endif
9376 #ifdef __cplusplus
9377 }
9378 #endif
9379
9380 int
9381 main ()
9382 {
9383 return f != pcap_set_datalink;
9384   ;
9385   return 0;
9386 }
9387 _ACEOF
9388 rm -f conftest.$ac_objext conftest$ac_exeext
9389 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9390   (eval $ac_link) 2>conftest.er1
9391   ac_status=$?
9392   grep -v '^ *+' conftest.er1 >conftest.err
9393   rm -f conftest.er1
9394   cat conftest.err >&5
9395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9396   (exit $ac_status); } &&
9397          { ac_try='test -z "$ac_c_werror_flag"
9398                          || test ! -s conftest.err'
9399   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9400   (eval $ac_try) 2>&5
9401   ac_status=$?
9402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9403   (exit $ac_status); }; } &&
9404          { ac_try='test -s conftest$ac_exeext'
9405   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9406   (eval $ac_try) 2>&5
9407   ac_status=$?
9408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9409   (exit $ac_status); }; }; then
9410   ac_cv_func_pcap_set_datalink=yes
9411 else
9412   echo "$as_me: failed program was:" >&5
9413 sed 's/^/| /' conftest.$ac_ext >&5
9414
9415 ac_cv_func_pcap_set_datalink=no
9416 fi
9417 rm -f conftest.err conftest.$ac_objext \
9418       conftest$ac_exeext conftest.$ac_ext
9419 fi
9420 echo "$as_me:$LINENO: result: $ac_cv_func_pcap_set_datalink" >&5
9421 echo "${ECHO_T}$ac_cv_func_pcap_set_datalink" >&6
9422 if test $ac_cv_func_pcap_set_datalink = yes; then
9423   cat >>confdefs.h <<\_ACEOF
9424 #define HAVE_PCAP_SET_DATALINK 1
9425 _ACEOF
9426
9427 fi
9428
9429     echo "$as_me:$LINENO: checking for pcap_datalink_name_to_val" >&5
9430 echo $ECHO_N "checking for pcap_datalink_name_to_val... $ECHO_C" >&6
9431 if test "${ac_cv_func_pcap_datalink_name_to_val+set}" = set; then
9432   echo $ECHO_N "(cached) $ECHO_C" >&6
9433 else
9434   cat >conftest.$ac_ext <<_ACEOF
9435 /* confdefs.h.  */
9436 _ACEOF
9437 cat confdefs.h >>conftest.$ac_ext
9438 cat >>conftest.$ac_ext <<_ACEOF
9439 /* end confdefs.h.  */
9440 /* Define pcap_datalink_name_to_val to an innocuous variant, in case <limits.h> declares pcap_datalink_name_to_val.
9441    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9442 #define pcap_datalink_name_to_val innocuous_pcap_datalink_name_to_val
9443
9444 /* System header to define __stub macros and hopefully few prototypes,
9445     which can conflict with char pcap_datalink_name_to_val (); below.
9446     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9447     <limits.h> exists even on freestanding compilers.  */
9448
9449 #ifdef __STDC__
9450 # include <limits.h>
9451 #else
9452 # include <assert.h>
9453 #endif
9454
9455 #undef pcap_datalink_name_to_val
9456
9457 /* Override any gcc2 internal prototype to avoid an error.  */
9458 #ifdef __cplusplus
9459 extern "C"
9460 {
9461 #endif
9462 /* We use char because int might match the return type of a gcc2
9463    builtin and then its argument prototype would still apply.  */
9464 char pcap_datalink_name_to_val ();
9465 /* The GNU C library defines this for functions which it implements
9466     to always fail with ENOSYS.  Some functions are actually named
9467     something starting with __ and the normal name is an alias.  */
9468 #if defined (__stub_pcap_datalink_name_to_val) || defined (__stub___pcap_datalink_name_to_val)
9469 choke me
9470 #else
9471 char (*f) () = pcap_datalink_name_to_val;
9472 #endif
9473 #ifdef __cplusplus
9474 }
9475 #endif
9476
9477 int
9478 main ()
9479 {
9480 return f != pcap_datalink_name_to_val;
9481   ;
9482   return 0;
9483 }
9484 _ACEOF
9485 rm -f conftest.$ac_objext conftest$ac_exeext
9486 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9487   (eval $ac_link) 2>conftest.er1
9488   ac_status=$?
9489   grep -v '^ *+' conftest.er1 >conftest.err
9490   rm -f conftest.er1
9491   cat conftest.err >&5
9492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9493   (exit $ac_status); } &&
9494          { ac_try='test -z "$ac_c_werror_flag"
9495                          || test ! -s conftest.err'
9496   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9497   (eval $ac_try) 2>&5
9498   ac_status=$?
9499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9500   (exit $ac_status); }; } &&
9501          { ac_try='test -s conftest$ac_exeext'
9502   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9503   (eval $ac_try) 2>&5
9504   ac_status=$?
9505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9506   (exit $ac_status); }; }; then
9507   ac_cv_func_pcap_datalink_name_to_val=yes
9508 else
9509   echo "$as_me: failed program was:" >&5
9510 sed 's/^/| /' conftest.$ac_ext >&5
9511
9512 ac_cv_func_pcap_datalink_name_to_val=no
9513 fi
9514 rm -f conftest.err conftest.$ac_objext \
9515       conftest$ac_exeext conftest.$ac_ext
9516 fi
9517 echo "$as_me:$LINENO: result: $ac_cv_func_pcap_datalink_name_to_val" >&5
9518 echo "${ECHO_T}$ac_cv_func_pcap_datalink_name_to_val" >&6
9519 if test $ac_cv_func_pcap_datalink_name_to_val = yes; then
9520
9521             cat >>confdefs.h <<\_ACEOF
9522 #define HAVE_PCAP_DATALINK_NAME_TO_VAL 1
9523 _ACEOF
9524
9525             echo "$as_me:$LINENO: checking for pcap_datalink_val_to_description" >&5
9526 echo $ECHO_N "checking for pcap_datalink_val_to_description... $ECHO_C" >&6
9527 if test "${ac_cv_func_pcap_datalink_val_to_description+set}" = set; then
9528   echo $ECHO_N "(cached) $ECHO_C" >&6
9529 else
9530   cat >conftest.$ac_ext <<_ACEOF
9531 /* confdefs.h.  */
9532 _ACEOF
9533 cat confdefs.h >>conftest.$ac_ext
9534 cat >>conftest.$ac_ext <<_ACEOF
9535 /* end confdefs.h.  */
9536 /* Define pcap_datalink_val_to_description to an innocuous variant, in case <limits.h> declares pcap_datalink_val_to_description.
9537    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9538 #define pcap_datalink_val_to_description innocuous_pcap_datalink_val_to_description
9539
9540 /* System header to define __stub macros and hopefully few prototypes,
9541     which can conflict with char pcap_datalink_val_to_description (); below.
9542     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9543     <limits.h> exists even on freestanding compilers.  */
9544
9545 #ifdef __STDC__
9546 # include <limits.h>
9547 #else
9548 # include <assert.h>
9549 #endif
9550
9551 #undef pcap_datalink_val_to_description
9552
9553 /* Override any gcc2 internal prototype to avoid an error.  */
9554 #ifdef __cplusplus
9555 extern "C"
9556 {
9557 #endif
9558 /* We use char because int might match the return type of a gcc2
9559    builtin and then its argument prototype would still apply.  */
9560 char pcap_datalink_val_to_description ();
9561 /* The GNU C library defines this for functions which it implements
9562     to always fail with ENOSYS.  Some functions are actually named
9563     something starting with __ and the normal name is an alias.  */
9564 #if defined (__stub_pcap_datalink_val_to_description) || defined (__stub___pcap_datalink_val_to_description)
9565 choke me
9566 #else
9567 char (*f) () = pcap_datalink_val_to_description;
9568 #endif
9569 #ifdef __cplusplus
9570 }
9571 #endif
9572
9573 int
9574 main ()
9575 {
9576 return f != pcap_datalink_val_to_description;
9577   ;
9578   return 0;
9579 }
9580 _ACEOF
9581 rm -f conftest.$ac_objext conftest$ac_exeext
9582 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9583   (eval $ac_link) 2>conftest.er1
9584   ac_status=$?
9585   grep -v '^ *+' conftest.er1 >conftest.err
9586   rm -f conftest.er1
9587   cat conftest.err >&5
9588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9589   (exit $ac_status); } &&
9590          { ac_try='test -z "$ac_c_werror_flag"
9591                          || test ! -s conftest.err'
9592   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9593   (eval $ac_try) 2>&5
9594   ac_status=$?
9595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9596   (exit $ac_status); }; } &&
9597          { ac_try='test -s conftest$ac_exeext'
9598   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9599   (eval $ac_try) 2>&5
9600   ac_status=$?
9601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9602   (exit $ac_status); }; }; then
9603   ac_cv_func_pcap_datalink_val_to_description=yes
9604 else
9605   echo "$as_me: failed program was:" >&5
9606 sed 's/^/| /' conftest.$ac_ext >&5
9607
9608 ac_cv_func_pcap_datalink_val_to_description=no
9609 fi
9610 rm -f conftest.err conftest.$ac_objext \
9611       conftest$ac_exeext conftest.$ac_ext
9612 fi
9613 echo "$as_me:$LINENO: result: $ac_cv_func_pcap_datalink_val_to_description" >&5
9614 echo "${ECHO_T}$ac_cv_func_pcap_datalink_val_to_description" >&6
9615 if test $ac_cv_func_pcap_datalink_val_to_description = yes; then
9616   cat >>confdefs.h <<\_ACEOF
9617 #define HAVE_PCAP_DATALINK_VAL_TO_DESCRIPTION 1
9618 _ACEOF
9619
9620 else
9621
9622                     case $LIBOBJS in
9623     "dlnames.$ac_objext"   | \
9624   *" dlnames.$ac_objext"   | \
9625     "dlnames.$ac_objext "* | \
9626   *" dlnames.$ac_objext "* ) ;;
9627   *) LIBOBJS="$LIBOBJS dlnames.$ac_objext" ;;
9628 esac
9629
9630
9631 fi
9632
9633
9634 else
9635
9636             case $LIBOBJS in
9637     "dlnames.$ac_objext"   | \
9638   *" dlnames.$ac_objext"   | \
9639     "dlnames.$ac_objext "* | \
9640   *" dlnames.$ac_objext "* ) ;;
9641   *) LIBOBJS="$LIBOBJS dlnames.$ac_objext" ;;
9642 esac
9643
9644
9645 fi
9646
9647
9648
9649 for ac_func in pcap_breakloop
9650 do
9651 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9652 echo "$as_me:$LINENO: checking for $ac_func" >&5
9653 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9654 if eval "test \"\${$as_ac_var+set}\" = set"; then
9655   echo $ECHO_N "(cached) $ECHO_C" >&6
9656 else
9657   cat >conftest.$ac_ext <<_ACEOF
9658 /* confdefs.h.  */
9659 _ACEOF
9660 cat confdefs.h >>conftest.$ac_ext
9661 cat >>conftest.$ac_ext <<_ACEOF
9662 /* end confdefs.h.  */
9663 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9664    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9665 #define $ac_func innocuous_$ac_func
9666
9667 /* System header to define __stub macros and hopefully few prototypes,
9668     which can conflict with char $ac_func (); below.
9669     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9670     <limits.h> exists even on freestanding compilers.  */
9671
9672 #ifdef __STDC__
9673 # include <limits.h>
9674 #else
9675 # include <assert.h>
9676 #endif
9677
9678 #undef $ac_func
9679
9680 /* Override any gcc2 internal prototype to avoid an error.  */
9681 #ifdef __cplusplus
9682 extern "C"
9683 {
9684 #endif
9685 /* We use char because int might match the return type of a gcc2
9686    builtin and then its argument prototype would still apply.  */
9687 char $ac_func ();
9688 /* The GNU C library defines this for functions which it implements
9689     to always fail with ENOSYS.  Some functions are actually named
9690     something starting with __ and the normal name is an alias.  */
9691 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9692 choke me
9693 #else
9694 char (*f) () = $ac_func;
9695 #endif
9696 #ifdef __cplusplus
9697 }
9698 #endif
9699
9700 int
9701 main ()
9702 {
9703 return f != $ac_func;
9704   ;
9705   return 0;
9706 }
9707 _ACEOF
9708 rm -f conftest.$ac_objext conftest$ac_exeext
9709 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9710   (eval $ac_link) 2>conftest.er1
9711   ac_status=$?
9712   grep -v '^ *+' conftest.er1 >conftest.err
9713   rm -f conftest.er1
9714   cat conftest.err >&5
9715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9716   (exit $ac_status); } &&
9717          { ac_try='test -z "$ac_c_werror_flag"
9718                          || test ! -s conftest.err'
9719   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9720   (eval $ac_try) 2>&5
9721   ac_status=$?
9722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9723   (exit $ac_status); }; } &&
9724          { ac_try='test -s conftest$ac_exeext'
9725   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9726   (eval $ac_try) 2>&5
9727   ac_status=$?
9728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9729   (exit $ac_status); }; }; then
9730   eval "$as_ac_var=yes"
9731 else
9732   echo "$as_me: failed program was:" >&5
9733 sed 's/^/| /' conftest.$ac_ext >&5
9734
9735 eval "$as_ac_var=no"
9736 fi
9737 rm -f conftest.err conftest.$ac_objext \
9738       conftest$ac_exeext conftest.$ac_ext
9739 fi
9740 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9741 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9742 if test `eval echo '${'$as_ac_var'}'` = yes; then
9743   cat >>confdefs.h <<_ACEOF
9744 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9745 _ACEOF
9746
9747 fi
9748 done
9749
9750
9751                 echo "$as_me:$LINENO: checking for pcap_dump_ftell" >&5
9752 echo $ECHO_N "checking for pcap_dump_ftell... $ECHO_C" >&6
9753 if test "${ac_cv_func_pcap_dump_ftell+set}" = set; then
9754   echo $ECHO_N "(cached) $ECHO_C" >&6
9755 else
9756   cat >conftest.$ac_ext <<_ACEOF
9757 /* confdefs.h.  */
9758 _ACEOF
9759 cat confdefs.h >>conftest.$ac_ext
9760 cat >>conftest.$ac_ext <<_ACEOF
9761 /* end confdefs.h.  */
9762 /* Define pcap_dump_ftell to an innocuous variant, in case <limits.h> declares pcap_dump_ftell.
9763    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9764 #define pcap_dump_ftell innocuous_pcap_dump_ftell
9765
9766 /* System header to define __stub macros and hopefully few prototypes,
9767     which can conflict with char pcap_dump_ftell (); below.
9768     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9769     <limits.h> exists even on freestanding compilers.  */
9770
9771 #ifdef __STDC__
9772 # include <limits.h>
9773 #else
9774 # include <assert.h>
9775 #endif
9776
9777 #undef pcap_dump_ftell
9778
9779 /* Override any gcc2 internal prototype to avoid an error.  */
9780 #ifdef __cplusplus
9781 extern "C"
9782 {
9783 #endif
9784 /* We use char because int might match the return type of a gcc2
9785    builtin and then its argument prototype would still apply.  */
9786 char pcap_dump_ftell ();
9787 /* The GNU C library defines this for functions which it implements
9788     to always fail with ENOSYS.  Some functions are actually named
9789     something starting with __ and the normal name is an alias.  */
9790 #if defined (__stub_pcap_dump_ftell) || defined (__stub___pcap_dump_ftell)
9791 choke me
9792 #else
9793 char (*f) () = pcap_dump_ftell;
9794 #endif
9795 #ifdef __cplusplus
9796 }
9797 #endif
9798
9799 int
9800 main ()
9801 {
9802 return f != pcap_dump_ftell;
9803   ;
9804   return 0;
9805 }
9806 _ACEOF
9807 rm -f conftest.$ac_objext conftest$ac_exeext
9808 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9809   (eval $ac_link) 2>conftest.er1
9810   ac_status=$?
9811   grep -v '^ *+' conftest.er1 >conftest.err
9812   rm -f conftest.er1
9813   cat conftest.err >&5
9814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9815   (exit $ac_status); } &&
9816          { ac_try='test -z "$ac_c_werror_flag"
9817                          || test ! -s conftest.err'
9818   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9819   (eval $ac_try) 2>&5
9820   ac_status=$?
9821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9822   (exit $ac_status); }; } &&
9823          { ac_try='test -s conftest$ac_exeext'
9824   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9825   (eval $ac_try) 2>&5
9826   ac_status=$?
9827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9828   (exit $ac_status); }; }; then
9829   ac_cv_func_pcap_dump_ftell=yes
9830 else
9831   echo "$as_me: failed program was:" >&5
9832 sed 's/^/| /' conftest.$ac_ext >&5
9833
9834 ac_cv_func_pcap_dump_ftell=no
9835 fi
9836 rm -f conftest.err conftest.$ac_objext \
9837       conftest$ac_exeext conftest.$ac_ext
9838 fi
9839 echo "$as_me:$LINENO: result: $ac_cv_func_pcap_dump_ftell" >&5
9840 echo "${ECHO_T}$ac_cv_func_pcap_dump_ftell" >&6
9841 if test $ac_cv_func_pcap_dump_ftell = yes; then
9842   cat >>confdefs.h <<\_ACEOF
9843 #define HAVE_PCAP_DUMP_FTELL 1
9844 _ACEOF
9845
9846 else
9847
9848             case $LIBOBJS in
9849     "pcap_dump_ftell.$ac_objext"   | \
9850   *" pcap_dump_ftell.$ac_objext"   | \
9851     "pcap_dump_ftell.$ac_objext "* | \
9852   *" pcap_dump_ftell.$ac_objext "* ) ;;
9853   *) LIBOBJS="$LIBOBJS pcap_dump_ftell.$ac_objext" ;;
9854 esac
9855
9856
9857 fi
9858
9859
9860
9861 #
9862 # Check for these after AC_LBL_LIBPCAP, so we link with the appropriate
9863 # libraries (e.g., "-lsocket -lnsl" on Solaris).
9864 #
9865 # We don't use AC_REPLACE_FUNCS because that uses AC_CHECK_FUNCS which
9866 # use AC_CHECK_FUNC which doesn't let us specify the right #includes
9867 # to make this work on BSD/OS 4.x.  BSD/OS 4.x ships with the BIND8
9868 # resolver, and the way it defines inet_{ntop,pton} is rather strange;
9869 # it does not ship with a libc symbol "inet_ntop()", it ships with
9870 # "_inet_ntop()", and has a #define macro in one of the system headers
9871 # to rename it.
9872 #
9873 echo "$as_me:$LINENO: checking for inet_ntop" >&5
9874 echo $ECHO_N "checking for inet_ntop... $ECHO_C" >&6
9875 cat >conftest.$ac_ext <<_ACEOF
9876 /* confdefs.h.  */
9877 _ACEOF
9878 cat confdefs.h >>conftest.$ac_ext
9879 cat >>conftest.$ac_ext <<_ACEOF
9880 /* end confdefs.h.  */
9881 #include <sys/types.h>
9882 #include <sys/socket.h>
9883 #include <netinet/in.h>
9884 #include <arpa/inet.h>
9885 int
9886 main ()
9887 {
9888 char src[4], dst[128];
9889 inet_ntop(AF_INET, src, dst, sizeof(dst));
9890   ;
9891   return 0;
9892 }
9893 _ACEOF
9894 rm -f conftest.$ac_objext conftest$ac_exeext
9895 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9896   (eval $ac_link) 2>conftest.er1
9897   ac_status=$?
9898   grep -v '^ *+' conftest.er1 >conftest.err
9899   rm -f conftest.er1
9900   cat conftest.err >&5
9901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9902   (exit $ac_status); } &&
9903          { ac_try='test -z "$ac_c_werror_flag"
9904                          || test ! -s conftest.err'
9905   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9906   (eval $ac_try) 2>&5
9907   ac_status=$?
9908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9909   (exit $ac_status); }; } &&
9910          { ac_try='test -s conftest$ac_exeext'
9911   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9912   (eval $ac_try) 2>&5
9913   ac_status=$?
9914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9915   (exit $ac_status); }; }; then
9916   echo "$as_me:$LINENO: result: yes" >&5
9917 echo "${ECHO_T}yes" >&6
9918 else
9919   echo "$as_me: failed program was:" >&5
9920 sed 's/^/| /' conftest.$ac_ext >&5
9921
9922 echo "$as_me:$LINENO: result: no" >&5
9923 echo "${ECHO_T}no" >&6
9924         case $LIBOBJS in
9925     "inet_ntop.$ac_objext"   | \
9926   *" inet_ntop.$ac_objext"   | \
9927     "inet_ntop.$ac_objext "* | \
9928   *" inet_ntop.$ac_objext "* ) ;;
9929   *) LIBOBJS="$LIBOBJS inet_ntop.$ac_objext" ;;
9930 esac
9931
9932 fi
9933 rm -f conftest.err conftest.$ac_objext \
9934       conftest$ac_exeext conftest.$ac_ext
9935 echo "$as_me:$LINENO: checking for inet_pton" >&5
9936 echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6
9937 cat >conftest.$ac_ext <<_ACEOF
9938 /* confdefs.h.  */
9939 _ACEOF
9940 cat confdefs.h >>conftest.$ac_ext
9941 cat >>conftest.$ac_ext <<_ACEOF
9942 /* end confdefs.h.  */
9943 #include <sys/types.h>
9944 #include <sys/socket.h>
9945 #include <netinet/in.h>
9946 #include <arpa/inet.h>
9947 int
9948 main ()
9949 {
9950 char src[128], dst[4];
9951 inet_pton(AF_INET, src, dst);
9952   ;
9953   return 0;
9954 }
9955 _ACEOF
9956 rm -f conftest.$ac_objext conftest$ac_exeext
9957 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9958   (eval $ac_link) 2>conftest.er1
9959   ac_status=$?
9960   grep -v '^ *+' conftest.er1 >conftest.err
9961   rm -f conftest.er1
9962   cat conftest.err >&5
9963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9964   (exit $ac_status); } &&
9965          { ac_try='test -z "$ac_c_werror_flag"
9966                          || test ! -s conftest.err'
9967   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9968   (eval $ac_try) 2>&5
9969   ac_status=$?
9970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9971   (exit $ac_status); }; } &&
9972          { ac_try='test -s conftest$ac_exeext'
9973   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9974   (eval $ac_try) 2>&5
9975   ac_status=$?
9976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9977   (exit $ac_status); }; }; then
9978   echo "$as_me:$LINENO: result: yes" >&5
9979 echo "${ECHO_T}yes" >&6
9980 else
9981   echo "$as_me: failed program was:" >&5
9982 sed 's/^/| /' conftest.$ac_ext >&5
9983
9984 echo "$as_me:$LINENO: result: no" >&5
9985 echo "${ECHO_T}no" >&6
9986         case $LIBOBJS in
9987     "inet_pton.$ac_objext"   | \
9988   *" inet_pton.$ac_objext"   | \
9989     "inet_pton.$ac_objext "* | \
9990   *" inet_pton.$ac_objext "* ) ;;
9991   *) LIBOBJS="$LIBOBJS inet_pton.$ac_objext" ;;
9992 esac
9993
9994 fi
9995 rm -f conftest.err conftest.$ac_objext \
9996       conftest$ac_exeext conftest.$ac_ext
9997 echo "$as_me:$LINENO: checking for inet_aton" >&5
9998 echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6
9999 cat >conftest.$ac_ext <<_ACEOF
10000 /* confdefs.h.  */
10001 _ACEOF
10002 cat confdefs.h >>conftest.$ac_ext
10003 cat >>conftest.$ac_ext <<_ACEOF
10004 /* end confdefs.h.  */
10005 #include <sys/types.h>
10006 #include <netinet/in.h>
10007 #include <arpa/inet.h>
10008 int
10009 main ()
10010 {
10011 char src[128];
10012 struct in_addr dst;
10013 inet_aton(src, &dst);
10014   ;
10015   return 0;
10016 }
10017 _ACEOF
10018 rm -f conftest.$ac_objext conftest$ac_exeext
10019 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10020   (eval $ac_link) 2>conftest.er1
10021   ac_status=$?
10022   grep -v '^ *+' conftest.er1 >conftest.err
10023   rm -f conftest.er1
10024   cat conftest.err >&5
10025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10026   (exit $ac_status); } &&
10027          { ac_try='test -z "$ac_c_werror_flag"
10028                          || test ! -s conftest.err'
10029   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10030   (eval $ac_try) 2>&5
10031   ac_status=$?
10032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10033   (exit $ac_status); }; } &&
10034          { ac_try='test -s conftest$ac_exeext'
10035   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10036   (eval $ac_try) 2>&5
10037   ac_status=$?
10038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10039   (exit $ac_status); }; }; then
10040   echo "$as_me:$LINENO: result: yes" >&5
10041 echo "${ECHO_T}yes" >&6
10042 else
10043   echo "$as_me: failed program was:" >&5
10044 sed 's/^/| /' conftest.$ac_ext >&5
10045
10046 echo "$as_me:$LINENO: result: no" >&5
10047 echo "${ECHO_T}no" >&6
10048         case $LIBOBJS in
10049     "inet_aton.$ac_objext"   | \
10050   *" inet_aton.$ac_objext"   | \
10051     "inet_aton.$ac_objext "* | \
10052   *" inet_aton.$ac_objext "* ) ;;
10053   *) LIBOBJS="$LIBOBJS inet_aton.$ac_objext" ;;
10054 esac
10055
10056 fi
10057 rm -f conftest.err conftest.$ac_objext \
10058       conftest$ac_exeext conftest.$ac_ext
10059
10060 #
10061 # Check for these after AC_LBL_LIBPCAP, for the same reason.
10062 #
10063 # You are in a twisty little maze of UN*Xes, all different.
10064 # Some might not have ether_ntohost().
10065 # Some might have it, but not declare it in any header file.
10066 # Some might have it, but declare it in <netinet/if_ether.h>.
10067 # Some might have it, but declare it in <netinet/ether.h>
10068 # (And some might have it but document it as something declared in
10069 # <netinet/ethernet.h>, although <netinet/if_ether.h> appears to work.)
10070 #
10071 # Before you is a C compiler.
10072 #
10073
10074 for ac_func in ether_ntohost
10075 do
10076 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10077 echo "$as_me:$LINENO: checking for $ac_func" >&5
10078 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10079 if eval "test \"\${$as_ac_var+set}\" = set"; then
10080   echo $ECHO_N "(cached) $ECHO_C" >&6
10081 else
10082   cat >conftest.$ac_ext <<_ACEOF
10083 /* confdefs.h.  */
10084 _ACEOF
10085 cat confdefs.h >>conftest.$ac_ext
10086 cat >>conftest.$ac_ext <<_ACEOF
10087 /* end confdefs.h.  */
10088 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10089    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10090 #define $ac_func innocuous_$ac_func
10091
10092 /* System header to define __stub macros and hopefully few prototypes,
10093     which can conflict with char $ac_func (); below.
10094     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10095     <limits.h> exists even on freestanding compilers.  */
10096
10097 #ifdef __STDC__
10098 # include <limits.h>
10099 #else
10100 # include <assert.h>
10101 #endif
10102
10103 #undef $ac_func
10104
10105 /* Override any gcc2 internal prototype to avoid an error.  */
10106 #ifdef __cplusplus
10107 extern "C"
10108 {
10109 #endif
10110 /* We use char because int might match the return type of a gcc2
10111    builtin and then its argument prototype would still apply.  */
10112 char $ac_func ();
10113 /* The GNU C library defines this for functions which it implements
10114     to always fail with ENOSYS.  Some functions are actually named
10115     something starting with __ and the normal name is an alias.  */
10116 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10117 choke me
10118 #else
10119 char (*f) () = $ac_func;
10120 #endif
10121 #ifdef __cplusplus
10122 }
10123 #endif
10124
10125 int
10126 main ()
10127 {
10128 return f != $ac_func;
10129   ;
10130   return 0;
10131 }
10132 _ACEOF
10133 rm -f conftest.$ac_objext conftest$ac_exeext
10134 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10135   (eval $ac_link) 2>conftest.er1
10136   ac_status=$?
10137   grep -v '^ *+' conftest.er1 >conftest.err
10138   rm -f conftest.er1
10139   cat conftest.err >&5
10140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10141   (exit $ac_status); } &&
10142          { ac_try='test -z "$ac_c_werror_flag"
10143                          || test ! -s conftest.err'
10144   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10145   (eval $ac_try) 2>&5
10146   ac_status=$?
10147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10148   (exit $ac_status); }; } &&
10149          { ac_try='test -s conftest$ac_exeext'
10150   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10151   (eval $ac_try) 2>&5
10152   ac_status=$?
10153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10154   (exit $ac_status); }; }; then
10155   eval "$as_ac_var=yes"
10156 else
10157   echo "$as_me: failed program was:" >&5
10158 sed 's/^/| /' conftest.$ac_ext >&5
10159
10160 eval "$as_ac_var=no"
10161 fi
10162 rm -f conftest.err conftest.$ac_objext \
10163       conftest$ac_exeext conftest.$ac_ext
10164 fi
10165 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10166 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10167 if test `eval echo '${'$as_ac_var'}'` = yes; then
10168   cat >>confdefs.h <<_ACEOF
10169 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10170 _ACEOF
10171
10172     echo "$as_me:$LINENO: checking for buggy ether_ntohost" >&5
10173 echo $ECHO_N "checking for buggy ether_ntohost... $ECHO_C" >&6
10174 if test "${ac_cv_buggy_ether_ntohost+set}" = set; then
10175   echo $ECHO_N "(cached) $ECHO_C" >&6
10176 else
10177
10178         if test "$cross_compiling" = yes; then
10179   ac_cv_buggy_ether_ntohost="not while cross-compiling"
10180 else
10181   cat >conftest.$ac_ext <<_ACEOF
10182 /* confdefs.h.  */
10183 _ACEOF
10184 cat confdefs.h >>conftest.$ac_ext
10185 cat >>conftest.$ac_ext <<_ACEOF
10186 /* end confdefs.h.  */
10187
10188                 #include <netdb.h>
10189                 #include <sys/types.h>
10190                 #include <sys/param.h>
10191                 #include <sys/socket.h>
10192
10193                 int
10194                 main(int argc, char **argv)
10195                 {
10196                         u_char ea[6] = { 0xff, 0xff, 0xff, 0xff, 0xff };
10197                         char name[MAXHOSTNAMELEN];
10198
10199                         ether_ntohost(name, (struct ether_addr *)ea);
10200                         exit(0);
10201                 }
10202
10203 _ACEOF
10204 rm -f conftest$ac_exeext
10205 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10206   (eval $ac_link) 2>&5
10207   ac_status=$?
10208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10209   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10210   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10211   (eval $ac_try) 2>&5
10212   ac_status=$?
10213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10214   (exit $ac_status); }; }; then
10215   ac_cv_buggy_ether_ntohost=no
10216 else
10217   echo "$as_me: program exited with status $ac_status" >&5
10218 echo "$as_me: failed program was:" >&5
10219 sed 's/^/| /' conftest.$ac_ext >&5
10220
10221 ( exit $ac_status )
10222 ac_cv_buggy_ether_ntohost=yes
10223 fi
10224 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10225 fi
10226 fi
10227 echo "$as_me:$LINENO: result: $ac_cv_buggy_ether_ntohost" >&5
10228 echo "${ECHO_T}$ac_cv_buggy_ether_ntohost" >&6
10229     if test "$ac_cv_buggy_ether_ntohost" = "no"; then
10230         cat >>confdefs.h <<\_ACEOF
10231 #define USE_ETHER_NTOHOST 1
10232 _ACEOF
10233
10234     fi
10235
10236 fi
10237 done
10238
10239 if test "$ac_cv_func_ether_ntohost" = yes -a \
10240     "$ac_cv_buggy_ether_ntohost" = "no"; then
10241         #
10242         # OK, we have ether_ntohost().  Do we have <netinet/if_ether.h>?
10243         #
10244         if test "$ac_cv_header_netinet_if_ether_h" = yes; then
10245                 #
10246                 # Yes.  Does it declare ether_ntohost()?
10247                 #
10248                 echo "$as_me:$LINENO: checking whether ether_ntohost is declared" >&5
10249 echo $ECHO_N "checking whether ether_ntohost is declared... $ECHO_C" >&6
10250 if test "${ac_cv_have_decl_ether_ntohost+set}" = set; then
10251   echo $ECHO_N "(cached) $ECHO_C" >&6
10252 else
10253   cat >conftest.$ac_ext <<_ACEOF
10254 /* confdefs.h.  */
10255 _ACEOF
10256 cat confdefs.h >>conftest.$ac_ext
10257 cat >>conftest.$ac_ext <<_ACEOF
10258 /* end confdefs.h.  */
10259
10260 #include <sys/types.h>
10261 #include <sys/socket.h>
10262 #include <netinet/in.h>
10263 #include <arpa/inet.h>
10264 struct mbuf;
10265 struct rtentry;
10266 #include <net/if.h>
10267 #include <netinet/if_ether.h>
10268
10269
10270 int
10271 main ()
10272 {
10273 #ifndef ether_ntohost
10274   char *p = (char *) ether_ntohost;
10275 #endif
10276
10277   ;
10278   return 0;
10279 }
10280 _ACEOF
10281 rm -f conftest.$ac_objext
10282 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10283   (eval $ac_compile) 2>conftest.er1
10284   ac_status=$?
10285   grep -v '^ *+' conftest.er1 >conftest.err
10286   rm -f conftest.er1
10287   cat conftest.err >&5
10288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10289   (exit $ac_status); } &&
10290          { ac_try='test -z "$ac_c_werror_flag"
10291                          || test ! -s conftest.err'
10292   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10293   (eval $ac_try) 2>&5
10294   ac_status=$?
10295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10296   (exit $ac_status); }; } &&
10297          { ac_try='test -s conftest.$ac_objext'
10298   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10299   (eval $ac_try) 2>&5
10300   ac_status=$?
10301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10302   (exit $ac_status); }; }; then
10303   ac_cv_have_decl_ether_ntohost=yes
10304 else
10305   echo "$as_me: failed program was:" >&5
10306 sed 's/^/| /' conftest.$ac_ext >&5
10307
10308 ac_cv_have_decl_ether_ntohost=no
10309 fi
10310 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10311 fi
10312 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ether_ntohost" >&5
10313 echo "${ECHO_T}$ac_cv_have_decl_ether_ntohost" >&6
10314 if test $ac_cv_have_decl_ether_ntohost = yes; then
10315
10316
10317 cat >>confdefs.h <<\_ACEOF
10318 #define NETINET_IF_ETHER_H_DECLARES_ETHER_NTOHOST
10319 _ACEOF
10320
10321
10322 fi
10323
10324         fi
10325         #
10326         # Did that succeed?
10327         #
10328         if test "$ac_cv_have_decl_ether_ntohost" != yes; then
10329                 #
10330                 # No, how about <netinet/ether.h>, as on Linux?
10331                 #
10332
10333 for ac_header in netinet/ether.h
10334 do
10335 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10336 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10337   echo "$as_me:$LINENO: checking for $ac_header" >&5
10338 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10339 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10340   echo $ECHO_N "(cached) $ECHO_C" >&6
10341 fi
10342 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10343 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10344 else
10345   # Is the header compilable?
10346 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10347 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10348 cat >conftest.$ac_ext <<_ACEOF
10349 /* confdefs.h.  */
10350 _ACEOF
10351 cat confdefs.h >>conftest.$ac_ext
10352 cat >>conftest.$ac_ext <<_ACEOF
10353 /* end confdefs.h.  */
10354 $ac_includes_default
10355 #include <$ac_header>
10356 _ACEOF
10357 rm -f conftest.$ac_objext
10358 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10359   (eval $ac_compile) 2>conftest.er1
10360   ac_status=$?
10361   grep -v '^ *+' conftest.er1 >conftest.err
10362   rm -f conftest.er1
10363   cat conftest.err >&5
10364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10365   (exit $ac_status); } &&
10366          { ac_try='test -z "$ac_c_werror_flag"
10367                          || test ! -s conftest.err'
10368   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10369   (eval $ac_try) 2>&5
10370   ac_status=$?
10371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10372   (exit $ac_status); }; } &&
10373          { ac_try='test -s conftest.$ac_objext'
10374   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10375   (eval $ac_try) 2>&5
10376   ac_status=$?
10377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10378   (exit $ac_status); }; }; then
10379   ac_header_compiler=yes
10380 else
10381   echo "$as_me: failed program was:" >&5
10382 sed 's/^/| /' conftest.$ac_ext >&5
10383
10384 ac_header_compiler=no
10385 fi
10386 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10387 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10388 echo "${ECHO_T}$ac_header_compiler" >&6
10389
10390 # Is the header present?
10391 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10392 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10393 cat >conftest.$ac_ext <<_ACEOF
10394 /* confdefs.h.  */
10395 _ACEOF
10396 cat confdefs.h >>conftest.$ac_ext
10397 cat >>conftest.$ac_ext <<_ACEOF
10398 /* end confdefs.h.  */
10399 #include <$ac_header>
10400 _ACEOF
10401 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10402   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10403   ac_status=$?
10404   grep -v '^ *+' conftest.er1 >conftest.err
10405   rm -f conftest.er1
10406   cat conftest.err >&5
10407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10408   (exit $ac_status); } >/dev/null; then
10409   if test -s conftest.err; then
10410     ac_cpp_err=$ac_c_preproc_warn_flag
10411     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10412   else
10413     ac_cpp_err=
10414   fi
10415 else
10416   ac_cpp_err=yes
10417 fi
10418 if test -z "$ac_cpp_err"; then
10419   ac_header_preproc=yes
10420 else
10421   echo "$as_me: failed program was:" >&5
10422 sed 's/^/| /' conftest.$ac_ext >&5
10423
10424   ac_header_preproc=no
10425 fi
10426 rm -f conftest.err conftest.$ac_ext
10427 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10428 echo "${ECHO_T}$ac_header_preproc" >&6
10429
10430 # So?  What about this header?
10431 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10432   yes:no: )
10433     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10434 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10435     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10436 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10437     ac_header_preproc=yes
10438     ;;
10439   no:yes:* )
10440     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10441 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10442     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10443 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10444     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10445 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10446     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10447 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10448     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10449 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10450     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10451 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10452     (
10453       cat <<\_ASBOX
10454 ## ------------------------------------------ ##
10455 ## Report this to the AC_PACKAGE_NAME lists.  ##
10456 ## ------------------------------------------ ##
10457 _ASBOX
10458     ) |
10459       sed "s/^/$as_me: WARNING:     /" >&2
10460     ;;
10461 esac
10462 echo "$as_me:$LINENO: checking for $ac_header" >&5
10463 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10464 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10465   echo $ECHO_N "(cached) $ECHO_C" >&6
10466 else
10467   eval "$as_ac_Header=\$ac_header_preproc"
10468 fi
10469 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10470 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10471
10472 fi
10473 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10474   cat >>confdefs.h <<_ACEOF
10475 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10476 _ACEOF
10477
10478 fi
10479
10480 done
10481
10482                 if test "$ac_cv_header_netinet_ether_h" = yes; then
10483                         #
10484                         # We have it - does it declare ether_ntohost()?
10485                         # Unset ac_cv_have_decl_ether_ntohost so we don't
10486                         # treat the previous failure as a cached value and
10487                         # suppress the next test.
10488                         #
10489                         unset ac_cv_have_decl_ether_ntohost
10490                         echo "$as_me:$LINENO: checking whether ether_ntohost is declared" >&5
10491 echo $ECHO_N "checking whether ether_ntohost is declared... $ECHO_C" >&6
10492 if test "${ac_cv_have_decl_ether_ntohost+set}" = set; then
10493   echo $ECHO_N "(cached) $ECHO_C" >&6
10494 else
10495   cat >conftest.$ac_ext <<_ACEOF
10496 /* confdefs.h.  */
10497 _ACEOF
10498 cat confdefs.h >>conftest.$ac_ext
10499 cat >>conftest.$ac_ext <<_ACEOF
10500 /* end confdefs.h.  */
10501
10502 #include <netinet/ether.h>
10503
10504
10505 int
10506 main ()
10507 {
10508 #ifndef ether_ntohost
10509   char *p = (char *) ether_ntohost;
10510 #endif
10511
10512   ;
10513   return 0;
10514 }
10515 _ACEOF
10516 rm -f conftest.$ac_objext
10517 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10518   (eval $ac_compile) 2>conftest.er1
10519   ac_status=$?
10520   grep -v '^ *+' conftest.er1 >conftest.err
10521   rm -f conftest.er1
10522   cat conftest.err >&5
10523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10524   (exit $ac_status); } &&
10525          { ac_try='test -z "$ac_c_werror_flag"
10526                          || test ! -s conftest.err'
10527   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10528   (eval $ac_try) 2>&5
10529   ac_status=$?
10530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10531   (exit $ac_status); }; } &&
10532          { ac_try='test -s conftest.$ac_objext'
10533   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10534   (eval $ac_try) 2>&5
10535   ac_status=$?
10536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10537   (exit $ac_status); }; }; then
10538   ac_cv_have_decl_ether_ntohost=yes
10539 else
10540   echo "$as_me: failed program was:" >&5
10541 sed 's/^/| /' conftest.$ac_ext >&5
10542
10543 ac_cv_have_decl_ether_ntohost=no
10544 fi
10545 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10546 fi
10547 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ether_ntohost" >&5
10548 echo "${ECHO_T}$ac_cv_have_decl_ether_ntohost" >&6
10549 if test $ac_cv_have_decl_ether_ntohost = yes; then
10550
10551
10552 cat >>confdefs.h <<\_ACEOF
10553 #define NETINET_ETHER_H_DECLARES_ETHER_NTOHOST
10554 _ACEOF
10555
10556
10557 fi
10558
10559                 fi
10560         fi
10561         #
10562         # Is ether_ntohost() declared?
10563         #
10564         if test "$ac_cv_have_decl_ether_ntohost" != yes; then
10565                 #
10566                 # No, we'll have to declare it ourselves.
10567                 # Do we have "struct ether_addr"?
10568                 #
10569                 echo "$as_me:$LINENO: checking for struct ether_addr" >&5
10570 echo $ECHO_N "checking for struct ether_addr... $ECHO_C" >&6
10571 if test "${ac_cv_type_struct_ether_addr+set}" = set; then
10572   echo $ECHO_N "(cached) $ECHO_C" >&6
10573 else
10574   cat >conftest.$ac_ext <<_ACEOF
10575 /* confdefs.h.  */
10576 _ACEOF
10577 cat confdefs.h >>conftest.$ac_ext
10578 cat >>conftest.$ac_ext <<_ACEOF
10579 /* end confdefs.h.  */
10580
10581 #include <sys/types.h>
10582 #include <sys/socket.h>
10583 #include <netinet/in.h>
10584 #include <arpa/inet.h>
10585 struct mbuf;
10586 struct rtentry;
10587 #include <net/if.h>
10588 #include <netinet/if_ether.h>
10589
10590
10591 int
10592 main ()
10593 {
10594 if ((struct ether_addr *) 0)
10595   return 0;
10596 if (sizeof (struct ether_addr))
10597   return 0;
10598   ;
10599   return 0;
10600 }
10601 _ACEOF
10602 rm -f conftest.$ac_objext
10603 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10604   (eval $ac_compile) 2>conftest.er1
10605   ac_status=$?
10606   grep -v '^ *+' conftest.er1 >conftest.err
10607   rm -f conftest.er1
10608   cat conftest.err >&5
10609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10610   (exit $ac_status); } &&
10611          { ac_try='test -z "$ac_c_werror_flag"
10612                          || test ! -s conftest.err'
10613   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10614   (eval $ac_try) 2>&5
10615   ac_status=$?
10616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10617   (exit $ac_status); }; } &&
10618          { ac_try='test -s conftest.$ac_objext'
10619   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10620   (eval $ac_try) 2>&5
10621   ac_status=$?
10622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10623   (exit $ac_status); }; }; then
10624   ac_cv_type_struct_ether_addr=yes
10625 else
10626   echo "$as_me: failed program was:" >&5
10627 sed 's/^/| /' conftest.$ac_ext >&5
10628
10629 ac_cv_type_struct_ether_addr=no
10630 fi
10631 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10632 fi
10633 echo "$as_me:$LINENO: result: $ac_cv_type_struct_ether_addr" >&5
10634 echo "${ECHO_T}$ac_cv_type_struct_ether_addr" >&6
10635 if test $ac_cv_type_struct_ether_addr = yes; then
10636
10637 cat >>confdefs.h <<_ACEOF
10638 #define HAVE_STRUCT_ETHER_ADDR 1
10639 _ACEOF
10640
10641
10642 fi
10643
10644
10645 cat >>confdefs.h <<\_ACEOF
10646 #define HAVE_DECL_ETHER_NTOHOST 0
10647 _ACEOF
10648
10649         else
10650
10651 cat >>confdefs.h <<\_ACEOF
10652 #define HAVE_DECL_ETHER_NTOHOST 1
10653 _ACEOF
10654
10655         fi
10656 fi
10657
10658
10659         echo "$as_me:$LINENO: checking if sockaddr struct has sa_len member" >&5
10660 echo $ECHO_N "checking if sockaddr struct has sa_len member... $ECHO_C" >&6
10661         if test "${ac_cv_sockaddr_has_sa_len+set}" = set; then
10662   echo $ECHO_N "(cached) $ECHO_C" >&6
10663 else
10664   cat >conftest.$ac_ext <<_ACEOF
10665 /* confdefs.h.  */
10666 _ACEOF
10667 cat confdefs.h >>conftest.$ac_ext
10668 cat >>conftest.$ac_ext <<_ACEOF
10669 /* end confdefs.h.  */
10670
10671 #               include <sys/types.h>
10672 #               include <sys/socket.h>
10673 int
10674 main ()
10675 {
10676 u_int i = sizeof(((struct sockaddr *)0)->sa_len)
10677   ;
10678   return 0;
10679 }
10680 _ACEOF
10681 rm -f conftest.$ac_objext
10682 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10683   (eval $ac_compile) 2>conftest.er1
10684   ac_status=$?
10685   grep -v '^ *+' conftest.er1 >conftest.err
10686   rm -f conftest.er1
10687   cat conftest.err >&5
10688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10689   (exit $ac_status); } &&
10690          { ac_try='test -z "$ac_c_werror_flag"
10691                          || test ! -s conftest.err'
10692   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10693   (eval $ac_try) 2>&5
10694   ac_status=$?
10695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10696   (exit $ac_status); }; } &&
10697          { ac_try='test -s conftest.$ac_objext'
10698   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10699   (eval $ac_try) 2>&5
10700   ac_status=$?
10701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10702   (exit $ac_status); }; }; then
10703   ac_cv_sockaddr_has_sa_len=yes
10704 else
10705   echo "$as_me: failed program was:" >&5
10706 sed 's/^/| /' conftest.$ac_ext >&5
10707
10708 ac_cv_sockaddr_has_sa_len=no
10709 fi
10710 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10711 fi
10712
10713         echo "$as_me:$LINENO: result: $ac_cv_sockaddr_has_sa_len" >&5
10714 echo "${ECHO_T}$ac_cv_sockaddr_has_sa_len" >&6
10715                 if test $ac_cv_sockaddr_has_sa_len = yes ; then
10716                         cat >>confdefs.h <<\_ACEOF
10717 #define HAVE_SOCKADDR_SA_LEN 1
10718 _ACEOF
10719
10720         fi
10721
10722 if test "$ac_cv_sockaddr_has_sa_len" = no; then
10723         missing_includes=yes
10724 fi
10725
10726
10727
10728
10729 for ac_func in pcap_findalldevs pcap_dump_flush pcap_lib_version
10730 do
10731 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10732 echo "$as_me:$LINENO: checking for $ac_func" >&5
10733 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10734 if eval "test \"\${$as_ac_var+set}\" = set"; then
10735   echo $ECHO_N "(cached) $ECHO_C" >&6
10736 else
10737   cat >conftest.$ac_ext <<_ACEOF
10738 /* confdefs.h.  */
10739 _ACEOF
10740 cat confdefs.h >>conftest.$ac_ext
10741 cat >>conftest.$ac_ext <<_ACEOF
10742 /* end confdefs.h.  */
10743 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10744    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10745 #define $ac_func innocuous_$ac_func
10746
10747 /* System header to define __stub macros and hopefully few prototypes,
10748     which can conflict with char $ac_func (); below.
10749     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10750     <limits.h> exists even on freestanding compilers.  */
10751
10752 #ifdef __STDC__
10753 # include <limits.h>
10754 #else
10755 # include <assert.h>
10756 #endif
10757
10758 #undef $ac_func
10759
10760 /* Override any gcc2 internal prototype to avoid an error.  */
10761 #ifdef __cplusplus
10762 extern "C"
10763 {
10764 #endif
10765 /* We use char because int might match the return type of a gcc2
10766    builtin and then its argument prototype would still apply.  */
10767 char $ac_func ();
10768 /* The GNU C library defines this for functions which it implements
10769     to always fail with ENOSYS.  Some functions are actually named
10770     something starting with __ and the normal name is an alias.  */
10771 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10772 choke me
10773 #else
10774 char (*f) () = $ac_func;
10775 #endif
10776 #ifdef __cplusplus
10777 }
10778 #endif
10779
10780 int
10781 main ()
10782 {
10783 return f != $ac_func;
10784   ;
10785   return 0;
10786 }
10787 _ACEOF
10788 rm -f conftest.$ac_objext conftest$ac_exeext
10789 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10790   (eval $ac_link) 2>conftest.er1
10791   ac_status=$?
10792   grep -v '^ *+' conftest.er1 >conftest.err
10793   rm -f conftest.er1
10794   cat conftest.err >&5
10795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10796   (exit $ac_status); } &&
10797          { ac_try='test -z "$ac_c_werror_flag"
10798                          || test ! -s conftest.err'
10799   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10800   (eval $ac_try) 2>&5
10801   ac_status=$?
10802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10803   (exit $ac_status); }; } &&
10804          { ac_try='test -s conftest$ac_exeext'
10805   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10806   (eval $ac_try) 2>&5
10807   ac_status=$?
10808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10809   (exit $ac_status); }; }; then
10810   eval "$as_ac_var=yes"
10811 else
10812   echo "$as_me: failed program was:" >&5
10813 sed 's/^/| /' conftest.$ac_ext >&5
10814
10815 eval "$as_ac_var=no"
10816 fi
10817 rm -f conftest.err conftest.$ac_objext \
10818       conftest$ac_exeext conftest.$ac_ext
10819 fi
10820 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10821 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10822 if test `eval echo '${'$as_ac_var'}'` = yes; then
10823   cat >>confdefs.h <<_ACEOF
10824 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10825 _ACEOF
10826
10827 fi
10828 done
10829
10830 if test $ac_cv_func_pcap_findalldevs = "yes" ; then
10831     savedcflags="$CFLAGS"
10832     CFLAGS="$CFLAGS $V_INCLS"
10833     echo "$as_me:$LINENO: checking for pcap_if_t" >&5
10834 echo $ECHO_N "checking for pcap_if_t... $ECHO_C" >&6
10835 if test "${ac_cv_type_pcap_if_t+set}" = set; then
10836   echo $ECHO_N "(cached) $ECHO_C" >&6
10837 else
10838   cat >conftest.$ac_ext <<_ACEOF
10839 /* confdefs.h.  */
10840 _ACEOF
10841 cat confdefs.h >>conftest.$ac_ext
10842 cat >>conftest.$ac_ext <<_ACEOF
10843 /* end confdefs.h.  */
10844 #include <pcap.h>
10845
10846 int
10847 main ()
10848 {
10849 if ((pcap_if_t *) 0)
10850   return 0;
10851 if (sizeof (pcap_if_t))
10852   return 0;
10853   ;
10854   return 0;
10855 }
10856 _ACEOF
10857 rm -f conftest.$ac_objext
10858 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10859   (eval $ac_compile) 2>conftest.er1
10860   ac_status=$?
10861   grep -v '^ *+' conftest.er1 >conftest.err
10862   rm -f conftest.er1
10863   cat conftest.err >&5
10864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10865   (exit $ac_status); } &&
10866          { ac_try='test -z "$ac_c_werror_flag"
10867                          || test ! -s conftest.err'
10868   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10869   (eval $ac_try) 2>&5
10870   ac_status=$?
10871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10872   (exit $ac_status); }; } &&
10873          { ac_try='test -s conftest.$ac_objext'
10874   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10875   (eval $ac_try) 2>&5
10876   ac_status=$?
10877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10878   (exit $ac_status); }; }; then
10879   ac_cv_type_pcap_if_t=yes
10880 else
10881   echo "$as_me: failed program was:" >&5
10882 sed 's/^/| /' conftest.$ac_ext >&5
10883
10884 ac_cv_type_pcap_if_t=no
10885 fi
10886 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10887 fi
10888 echo "$as_me:$LINENO: result: $ac_cv_type_pcap_if_t" >&5
10889 echo "${ECHO_T}$ac_cv_type_pcap_if_t" >&6
10890 if test $ac_cv_type_pcap_if_t = yes; then
10891
10892 cat >>confdefs.h <<_ACEOF
10893 #define HAVE_PCAP_IF_T 1
10894 _ACEOF
10895
10896
10897 fi
10898
10899     CFLAGS="$savedcflags"
10900 fi
10901
10902 if test $ac_cv_func_pcap_lib_version = "no" ; then
10903     echo "$as_me:$LINENO: checking whether pcap_version is defined by libpcap" >&5
10904 echo $ECHO_N "checking whether pcap_version is defined by libpcap... $ECHO_C" >&6
10905     cat >conftest.$ac_ext <<_ACEOF
10906 /* confdefs.h.  */
10907 _ACEOF
10908 cat confdefs.h >>conftest.$ac_ext
10909 cat >>conftest.$ac_ext <<_ACEOF
10910 /* end confdefs.h.  */
10911
10912 int
10913 main ()
10914 {
10915
10916         extern char pcap_version[];
10917
10918         return (int)pcap_version;
10919
10920   ;
10921   return 0;
10922 }
10923 _ACEOF
10924 rm -f conftest.$ac_objext conftest$ac_exeext
10925 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10926   (eval $ac_link) 2>conftest.er1
10927   ac_status=$?
10928   grep -v '^ *+' conftest.er1 >conftest.err
10929   rm -f conftest.er1
10930   cat conftest.err >&5
10931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10932   (exit $ac_status); } &&
10933          { ac_try='test -z "$ac_c_werror_flag"
10934                          || test ! -s conftest.err'
10935   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10936   (eval $ac_try) 2>&5
10937   ac_status=$?
10938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10939   (exit $ac_status); }; } &&
10940          { ac_try='test -s conftest$ac_exeext'
10941   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10942   (eval $ac_try) 2>&5
10943   ac_status=$?
10944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10945   (exit $ac_status); }; }; then
10946   ac_lbl_cv_pcap_version_defined=yes
10947 else
10948   echo "$as_me: failed program was:" >&5
10949 sed 's/^/| /' conftest.$ac_ext >&5
10950
10951 ac_lbl_cv_pcap_version_defined=no
10952 fi
10953 rm -f conftest.err conftest.$ac_objext \
10954       conftest$ac_exeext conftest.$ac_ext
10955     if test "$ac_lbl_cv_pcap_version_defined" = yes ; then
10956         echo "$as_me:$LINENO: result: yes" >&5
10957 echo "${ECHO_T}yes" >&6
10958         cat >>confdefs.h <<\_ACEOF
10959 #define HAVE_PCAP_VERSION 1
10960 _ACEOF
10961
10962     else
10963         echo "$as_me:$LINENO: result: no" >&5
10964 echo "${ECHO_T}no" >&6
10965     fi
10966 fi
10967 echo "$as_me:$LINENO: checking whether pcap_debug is defined by libpcap" >&5
10968 echo $ECHO_N "checking whether pcap_debug is defined by libpcap... $ECHO_C" >&6
10969 cat >conftest.$ac_ext <<_ACEOF
10970 /* confdefs.h.  */
10971 _ACEOF
10972 cat confdefs.h >>conftest.$ac_ext
10973 cat >>conftest.$ac_ext <<_ACEOF
10974 /* end confdefs.h.  */
10975
10976 int
10977 main ()
10978 {
10979
10980         extern int pcap_debug;
10981
10982         return pcap_debug;
10983
10984   ;
10985   return 0;
10986 }
10987 _ACEOF
10988 rm -f conftest.$ac_objext conftest$ac_exeext
10989 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10990   (eval $ac_link) 2>conftest.er1
10991   ac_status=$?
10992   grep -v '^ *+' conftest.er1 >conftest.err
10993   rm -f conftest.er1
10994   cat conftest.err >&5
10995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10996   (exit $ac_status); } &&
10997          { ac_try='test -z "$ac_c_werror_flag"
10998                          || test ! -s conftest.err'
10999   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11000   (eval $ac_try) 2>&5
11001   ac_status=$?
11002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11003   (exit $ac_status); }; } &&
11004          { ac_try='test -s conftest$ac_exeext'
11005   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11006   (eval $ac_try) 2>&5
11007   ac_status=$?
11008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11009   (exit $ac_status); }; }; then
11010   ac_lbl_cv_pcap_debug_defined=yes
11011 else
11012   echo "$as_me: failed program was:" >&5
11013 sed 's/^/| /' conftest.$ac_ext >&5
11014
11015 ac_lbl_cv_pcap_debug_defined=no
11016 fi
11017 rm -f conftest.err conftest.$ac_objext \
11018       conftest$ac_exeext conftest.$ac_ext
11019 if test "$ac_lbl_cv_pcap_debug_defined" = yes ; then
11020         echo "$as_me:$LINENO: result: yes" >&5
11021 echo "${ECHO_T}yes" >&6
11022         cat >>confdefs.h <<\_ACEOF
11023 #define HAVE_PCAP_DEBUG 1
11024 _ACEOF
11025
11026 else
11027         echo "$as_me:$LINENO: result: no" >&5
11028 echo "${ECHO_T}no" >&6
11029         #
11030         # OK, what about "yydebug"?
11031         #
11032         echo "$as_me:$LINENO: checking whether yydebug is defined by libpcap" >&5
11033 echo $ECHO_N "checking whether yydebug is defined by libpcap... $ECHO_C" >&6
11034         cat >conftest.$ac_ext <<_ACEOF
11035 /* confdefs.h.  */
11036 _ACEOF
11037 cat confdefs.h >>conftest.$ac_ext
11038 cat >>conftest.$ac_ext <<_ACEOF
11039 /* end confdefs.h.  */
11040
11041 int
11042 main ()
11043 {
11044
11045                 extern int yydebug;
11046
11047                 return yydebug;
11048
11049   ;
11050   return 0;
11051 }
11052 _ACEOF
11053 rm -f conftest.$ac_objext conftest$ac_exeext
11054 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11055   (eval $ac_link) 2>conftest.er1
11056   ac_status=$?
11057   grep -v '^ *+' conftest.er1 >conftest.err
11058   rm -f conftest.er1
11059   cat conftest.err >&5
11060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11061   (exit $ac_status); } &&
11062          { ac_try='test -z "$ac_c_werror_flag"
11063                          || test ! -s conftest.err'
11064   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11065   (eval $ac_try) 2>&5
11066   ac_status=$?
11067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11068   (exit $ac_status); }; } &&
11069          { ac_try='test -s conftest$ac_exeext'
11070   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11071   (eval $ac_try) 2>&5
11072   ac_status=$?
11073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11074   (exit $ac_status); }; }; then
11075   ac_lbl_cv_yydebug_defined=yes
11076 else
11077   echo "$as_me: failed program was:" >&5
11078 sed 's/^/| /' conftest.$ac_ext >&5
11079
11080 ac_lbl_cv_yydebug_defined=no
11081 fi
11082 rm -f conftest.err conftest.$ac_objext \
11083       conftest$ac_exeext conftest.$ac_ext
11084         if test "$ac_lbl_cv_yydebug_defined" = yes ; then
11085                 echo "$as_me:$LINENO: result: yes" >&5
11086 echo "${ECHO_T}yes" >&6
11087                 cat >>confdefs.h <<\_ACEOF
11088 #define HAVE_YYDEBUG 1
11089 _ACEOF
11090
11091         else
11092                 echo "$as_me:$LINENO: result: no" >&5
11093 echo "${ECHO_T}no" >&6
11094         fi
11095 fi
11096
11097 for ac_func in bpf_dump
11098 do
11099 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11100 echo "$as_me:$LINENO: checking for $ac_func" >&5
11101 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11102 if eval "test \"\${$as_ac_var+set}\" = set"; then
11103   echo $ECHO_N "(cached) $ECHO_C" >&6
11104 else
11105   cat >conftest.$ac_ext <<_ACEOF
11106 /* confdefs.h.  */
11107 _ACEOF
11108 cat confdefs.h >>conftest.$ac_ext
11109 cat >>conftest.$ac_ext <<_ACEOF
11110 /* end confdefs.h.  */
11111 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11112    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11113 #define $ac_func innocuous_$ac_func
11114
11115 /* System header to define __stub macros and hopefully few prototypes,
11116     which can conflict with char $ac_func (); below.
11117     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11118     <limits.h> exists even on freestanding compilers.  */
11119
11120 #ifdef __STDC__
11121 # include <limits.h>
11122 #else
11123 # include <assert.h>
11124 #endif
11125
11126 #undef $ac_func
11127
11128 /* Override any gcc2 internal prototype to avoid an error.  */
11129 #ifdef __cplusplus
11130 extern "C"
11131 {
11132 #endif
11133 /* We use char because int might match the return type of a gcc2
11134    builtin and then its argument prototype would still apply.  */
11135 char $ac_func ();
11136 /* The GNU C library defines this for functions which it implements
11137     to always fail with ENOSYS.  Some functions are actually named
11138     something starting with __ and the normal name is an alias.  */
11139 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11140 choke me
11141 #else
11142 char (*f) () = $ac_func;
11143 #endif
11144 #ifdef __cplusplus
11145 }
11146 #endif
11147
11148 int
11149 main ()
11150 {
11151 return f != $ac_func;
11152   ;
11153   return 0;
11154 }
11155 _ACEOF
11156 rm -f conftest.$ac_objext conftest$ac_exeext
11157 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11158   (eval $ac_link) 2>conftest.er1
11159   ac_status=$?
11160   grep -v '^ *+' conftest.er1 >conftest.err
11161   rm -f conftest.er1
11162   cat conftest.err >&5
11163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11164   (exit $ac_status); } &&
11165          { ac_try='test -z "$ac_c_werror_flag"
11166                          || test ! -s conftest.err'
11167   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11168   (eval $ac_try) 2>&5
11169   ac_status=$?
11170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11171   (exit $ac_status); }; } &&
11172          { ac_try='test -s conftest$ac_exeext'
11173   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11174   (eval $ac_try) 2>&5
11175   ac_status=$?
11176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11177   (exit $ac_status); }; }; then
11178   eval "$as_ac_var=yes"
11179 else
11180   echo "$as_me: failed program was:" >&5
11181 sed 's/^/| /' conftest.$ac_ext >&5
11182
11183 eval "$as_ac_var=no"
11184 fi
11185 rm -f conftest.err conftest.$ac_objext \
11186       conftest$ac_exeext conftest.$ac_ext
11187 fi
11188 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11189 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11190 if test `eval echo '${'$as_ac_var'}'` = yes; then
11191   cat >>confdefs.h <<_ACEOF
11192 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11193 _ACEOF
11194
11195 else
11196   case $LIBOBJS in
11197     "$ac_func.$ac_objext"   | \
11198   *" $ac_func.$ac_objext"   | \
11199     "$ac_func.$ac_objext "* | \
11200   *" $ac_func.$ac_objext "* ) ;;
11201   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
11202 esac
11203
11204 fi
11205 done
11206
11207
11208 V_GROUP=0
11209 if test -f /etc/group -a ! -z "`grep '^wheel:' /etc/group`" ; then
11210         V_GROUP=wheel
11211 fi
11212 case "$host_os" in
11213
11214 aix*)
11215                 cat >>confdefs.h <<\_ACEOF
11216 #define _SUN 1
11217 _ACEOF
11218
11219         ;;
11220
11221 irix*)
11222         V_GROUP=sys
11223         ;;
11224
11225 osf*)
11226         V_GROUP=system
11227         ;;
11228
11229 solaris*)
11230         V_GROUP=sys
11231         ;;
11232 esac
11233
11234 if test -f /dev/bpf0 ; then
11235         V_GROUP=bpf
11236 fi
11237
11238
11239 for ac_header in sys/bitypes.h
11240 do
11241 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11242 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11243   echo "$as_me:$LINENO: checking for $ac_header" >&5
11244 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11245 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11246   echo $ECHO_N "(cached) $ECHO_C" >&6
11247 fi
11248 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11249 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11250 else
11251   # Is the header compilable?
11252 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11253 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11254 cat >conftest.$ac_ext <<_ACEOF
11255 /* confdefs.h.  */
11256 _ACEOF
11257 cat confdefs.h >>conftest.$ac_ext
11258 cat >>conftest.$ac_ext <<_ACEOF
11259 /* end confdefs.h.  */
11260 $ac_includes_default
11261 #include <$ac_header>
11262 _ACEOF
11263 rm -f conftest.$ac_objext
11264 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11265   (eval $ac_compile) 2>conftest.er1
11266   ac_status=$?
11267   grep -v '^ *+' conftest.er1 >conftest.err
11268   rm -f conftest.er1
11269   cat conftest.err >&5
11270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11271   (exit $ac_status); } &&
11272          { ac_try='test -z "$ac_c_werror_flag"
11273                          || test ! -s conftest.err'
11274   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11275   (eval $ac_try) 2>&5
11276   ac_status=$?
11277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11278   (exit $ac_status); }; } &&
11279          { ac_try='test -s conftest.$ac_objext'
11280   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11281   (eval $ac_try) 2>&5
11282   ac_status=$?
11283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11284   (exit $ac_status); }; }; then
11285   ac_header_compiler=yes
11286 else
11287   echo "$as_me: failed program was:" >&5
11288 sed 's/^/| /' conftest.$ac_ext >&5
11289
11290 ac_header_compiler=no
11291 fi
11292 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11293 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11294 echo "${ECHO_T}$ac_header_compiler" >&6
11295
11296 # Is the header present?
11297 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11298 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11299 cat >conftest.$ac_ext <<_ACEOF
11300 /* confdefs.h.  */
11301 _ACEOF
11302 cat confdefs.h >>conftest.$ac_ext
11303 cat >>conftest.$ac_ext <<_ACEOF
11304 /* end confdefs.h.  */
11305 #include <$ac_header>
11306 _ACEOF
11307 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11308   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11309   ac_status=$?
11310   grep -v '^ *+' conftest.er1 >conftest.err
11311   rm -f conftest.er1
11312   cat conftest.err >&5
11313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11314   (exit $ac_status); } >/dev/null; then
11315   if test -s conftest.err; then
11316     ac_cpp_err=$ac_c_preproc_warn_flag
11317     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11318   else
11319     ac_cpp_err=
11320   fi
11321 else
11322   ac_cpp_err=yes
11323 fi
11324 if test -z "$ac_cpp_err"; then
11325   ac_header_preproc=yes
11326 else
11327   echo "$as_me: failed program was:" >&5
11328 sed 's/^/| /' conftest.$ac_ext >&5
11329
11330   ac_header_preproc=no
11331 fi
11332 rm -f conftest.err conftest.$ac_ext
11333 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11334 echo "${ECHO_T}$ac_header_preproc" >&6
11335
11336 # So?  What about this header?
11337 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11338   yes:no: )
11339     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11340 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11341     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11342 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11343     ac_header_preproc=yes
11344     ;;
11345   no:yes:* )
11346     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11347 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11348     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11349 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11350     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11351 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11352     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11353 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11354     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11355 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11356     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11357 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11358     (
11359       cat <<\_ASBOX
11360 ## ------------------------------------------ ##
11361 ## Report this to the AC_PACKAGE_NAME lists.  ##
11362 ## ------------------------------------------ ##
11363 _ASBOX
11364     ) |
11365       sed "s/^/$as_me: WARNING:     /" >&2
11366     ;;
11367 esac
11368 echo "$as_me:$LINENO: checking for $ac_header" >&5
11369 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11370 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11371   echo $ECHO_N "(cached) $ECHO_C" >&6
11372 else
11373   eval "$as_ac_Header=\$ac_header_preproc"
11374 fi
11375 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11376 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11377
11378 fi
11379 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11380   cat >>confdefs.h <<_ACEOF
11381 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11382 _ACEOF
11383
11384 fi
11385
11386 done
11387
11388
11389 echo "$as_me:$LINENO: checking for int8_t" >&5
11390 echo $ECHO_N "checking for int8_t... $ECHO_C" >&6
11391 if test "${ac_cv_type_int8_t+set}" = set; then
11392   echo $ECHO_N "(cached) $ECHO_C" >&6
11393 else
11394   cat >conftest.$ac_ext <<_ACEOF
11395 /* confdefs.h.  */
11396 _ACEOF
11397 cat confdefs.h >>conftest.$ac_ext
11398 cat >>conftest.$ac_ext <<_ACEOF
11399 /* end confdefs.h.  */
11400 $ac_includes_default
11401 int
11402 main ()
11403 {
11404 if ((int8_t *) 0)
11405   return 0;
11406 if (sizeof (int8_t))
11407   return 0;
11408   ;
11409   return 0;
11410 }
11411 _ACEOF
11412 rm -f conftest.$ac_objext
11413 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11414   (eval $ac_compile) 2>conftest.er1
11415   ac_status=$?
11416   grep -v '^ *+' conftest.er1 >conftest.err
11417   rm -f conftest.er1
11418   cat conftest.err >&5
11419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11420   (exit $ac_status); } &&
11421          { ac_try='test -z "$ac_c_werror_flag"
11422                          || test ! -s conftest.err'
11423   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11424   (eval $ac_try) 2>&5
11425   ac_status=$?
11426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11427   (exit $ac_status); }; } &&
11428          { ac_try='test -s conftest.$ac_objext'
11429   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11430   (eval $ac_try) 2>&5
11431   ac_status=$?
11432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11433   (exit $ac_status); }; }; then
11434   ac_cv_type_int8_t=yes
11435 else
11436   echo "$as_me: failed program was:" >&5
11437 sed 's/^/| /' conftest.$ac_ext >&5
11438
11439 ac_cv_type_int8_t=no
11440 fi
11441 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11442 fi
11443 echo "$as_me:$LINENO: result: $ac_cv_type_int8_t" >&5
11444 echo "${ECHO_T}$ac_cv_type_int8_t" >&6
11445 if test $ac_cv_type_int8_t = yes; then
11446   :
11447 else
11448
11449 cat >>confdefs.h <<\_ACEOF
11450 #define int8_t signed char
11451 _ACEOF
11452
11453 fi
11454
11455 echo "$as_me:$LINENO: checking for u_int8_t" >&5
11456 echo $ECHO_N "checking for u_int8_t... $ECHO_C" >&6
11457 if test "${ac_cv_type_u_int8_t+set}" = set; then
11458   echo $ECHO_N "(cached) $ECHO_C" >&6
11459 else
11460   cat >conftest.$ac_ext <<_ACEOF
11461 /* confdefs.h.  */
11462 _ACEOF
11463 cat confdefs.h >>conftest.$ac_ext
11464 cat >>conftest.$ac_ext <<_ACEOF
11465 /* end confdefs.h.  */
11466 $ac_includes_default
11467 #ifdef HAVE_SYS_BITYPES_H
11468 #include <sys/bitypes.h>
11469 #endif
11470
11471 int
11472 main ()
11473 {
11474 if ((u_int8_t *) 0)
11475   return 0;
11476 if (sizeof (u_int8_t))
11477   return 0;
11478   ;
11479   return 0;
11480 }
11481 _ACEOF
11482 rm -f conftest.$ac_objext
11483 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11484   (eval $ac_compile) 2>conftest.er1
11485   ac_status=$?
11486   grep -v '^ *+' conftest.er1 >conftest.err
11487   rm -f conftest.er1
11488   cat conftest.err >&5
11489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11490   (exit $ac_status); } &&
11491          { ac_try='test -z "$ac_c_werror_flag"
11492                          || test ! -s conftest.err'
11493   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11494   (eval $ac_try) 2>&5
11495   ac_status=$?
11496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11497   (exit $ac_status); }; } &&
11498          { ac_try='test -s conftest.$ac_objext'
11499   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11500   (eval $ac_try) 2>&5
11501   ac_status=$?
11502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11503   (exit $ac_status); }; }; then
11504   ac_cv_type_u_int8_t=yes
11505 else
11506   echo "$as_me: failed program was:" >&5
11507 sed 's/^/| /' conftest.$ac_ext >&5
11508
11509 ac_cv_type_u_int8_t=no
11510 fi
11511 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11512 fi
11513 echo "$as_me:$LINENO: result: $ac_cv_type_u_int8_t" >&5
11514 echo "${ECHO_T}$ac_cv_type_u_int8_t" >&6
11515 if test $ac_cv_type_u_int8_t = yes; then
11516   :
11517 else
11518
11519 cat >>confdefs.h <<\_ACEOF
11520 #define u_int8_t unsigned char
11521 _ACEOF
11522
11523 fi
11524
11525 echo "$as_me:$LINENO: checking for int16_t" >&5
11526 echo $ECHO_N "checking for int16_t... $ECHO_C" >&6
11527 if test "${ac_cv_type_int16_t+set}" = set; then
11528   echo $ECHO_N "(cached) $ECHO_C" >&6
11529 else
11530   cat >conftest.$ac_ext <<_ACEOF
11531 /* confdefs.h.  */
11532 _ACEOF
11533 cat confdefs.h >>conftest.$ac_ext
11534 cat >>conftest.$ac_ext <<_ACEOF
11535 /* end confdefs.h.  */
11536 $ac_includes_default
11537 int
11538 main ()
11539 {
11540 if ((int16_t *) 0)
11541   return 0;
11542 if (sizeof (int16_t))
11543   return 0;
11544   ;
11545   return 0;
11546 }
11547 _ACEOF
11548 rm -f conftest.$ac_objext
11549 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11550   (eval $ac_compile) 2>conftest.er1
11551   ac_status=$?
11552   grep -v '^ *+' conftest.er1 >conftest.err
11553   rm -f conftest.er1
11554   cat conftest.err >&5
11555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11556   (exit $ac_status); } &&
11557          { ac_try='test -z "$ac_c_werror_flag"
11558                          || test ! -s conftest.err'
11559   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11560   (eval $ac_try) 2>&5
11561   ac_status=$?
11562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11563   (exit $ac_status); }; } &&
11564          { ac_try='test -s conftest.$ac_objext'
11565   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11566   (eval $ac_try) 2>&5
11567   ac_status=$?
11568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11569   (exit $ac_status); }; }; then
11570   ac_cv_type_int16_t=yes
11571 else
11572   echo "$as_me: failed program was:" >&5
11573 sed 's/^/| /' conftest.$ac_ext >&5
11574
11575 ac_cv_type_int16_t=no
11576 fi
11577 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11578 fi
11579 echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
11580 echo "${ECHO_T}$ac_cv_type_int16_t" >&6
11581 if test $ac_cv_type_int16_t = yes; then
11582   :
11583 else
11584
11585 cat >>confdefs.h <<\_ACEOF
11586 #define int16_t short
11587 _ACEOF
11588
11589 fi
11590
11591 echo "$as_me:$LINENO: checking for u_int16_t" >&5
11592 echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6
11593 if test "${ac_cv_type_u_int16_t+set}" = set; then
11594   echo $ECHO_N "(cached) $ECHO_C" >&6
11595 else
11596   cat >conftest.$ac_ext <<_ACEOF
11597 /* confdefs.h.  */
11598 _ACEOF
11599 cat confdefs.h >>conftest.$ac_ext
11600 cat >>conftest.$ac_ext <<_ACEOF
11601 /* end confdefs.h.  */
11602 $ac_includes_default
11603 #ifdef HAVE_SYS_BITYPES_H
11604 #include <sys/bitypes.h>
11605 #endif
11606
11607 int
11608 main ()
11609 {
11610 if ((u_int16_t *) 0)
11611   return 0;
11612 if (sizeof (u_int16_t))
11613   return 0;
11614   ;
11615   return 0;
11616 }
11617 _ACEOF
11618 rm -f conftest.$ac_objext
11619 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11620   (eval $ac_compile) 2>conftest.er1
11621   ac_status=$?
11622   grep -v '^ *+' conftest.er1 >conftest.err
11623   rm -f conftest.er1
11624   cat conftest.err >&5
11625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11626   (exit $ac_status); } &&
11627          { ac_try='test -z "$ac_c_werror_flag"
11628                          || test ! -s conftest.err'
11629   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11630   (eval $ac_try) 2>&5
11631   ac_status=$?
11632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11633   (exit $ac_status); }; } &&
11634          { ac_try='test -s conftest.$ac_objext'
11635   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11636   (eval $ac_try) 2>&5
11637   ac_status=$?
11638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11639   (exit $ac_status); }; }; then
11640   ac_cv_type_u_int16_t=yes
11641 else
11642   echo "$as_me: failed program was:" >&5
11643 sed 's/^/| /' conftest.$ac_ext >&5
11644
11645 ac_cv_type_u_int16_t=no
11646 fi
11647 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11648 fi
11649 echo "$as_me:$LINENO: result: $ac_cv_type_u_int16_t" >&5
11650 echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6
11651 if test $ac_cv_type_u_int16_t = yes; then
11652   :
11653 else
11654
11655 cat >>confdefs.h <<\_ACEOF
11656 #define u_int16_t unsigned short
11657 _ACEOF
11658
11659 fi
11660
11661 echo "$as_me:$LINENO: checking for int32_t" >&5
11662 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6
11663 if test "${ac_cv_type_int32_t+set}" = set; then
11664   echo $ECHO_N "(cached) $ECHO_C" >&6
11665 else
11666   cat >conftest.$ac_ext <<_ACEOF
11667 /* confdefs.h.  */
11668 _ACEOF
11669 cat confdefs.h >>conftest.$ac_ext
11670 cat >>conftest.$ac_ext <<_ACEOF
11671 /* end confdefs.h.  */
11672 $ac_includes_default
11673 int
11674 main ()
11675 {
11676 if ((int32_t *) 0)
11677   return 0;
11678 if (sizeof (int32_t))
11679   return 0;
11680   ;
11681   return 0;
11682 }
11683 _ACEOF
11684 rm -f conftest.$ac_objext
11685 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11686   (eval $ac_compile) 2>conftest.er1
11687   ac_status=$?
11688   grep -v '^ *+' conftest.er1 >conftest.err
11689   rm -f conftest.er1
11690   cat conftest.err >&5
11691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11692   (exit $ac_status); } &&
11693          { ac_try='test -z "$ac_c_werror_flag"
11694                          || test ! -s conftest.err'
11695   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11696   (eval $ac_try) 2>&5
11697   ac_status=$?
11698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11699   (exit $ac_status); }; } &&
11700          { ac_try='test -s conftest.$ac_objext'
11701   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11702   (eval $ac_try) 2>&5
11703   ac_status=$?
11704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11705   (exit $ac_status); }; }; then
11706   ac_cv_type_int32_t=yes
11707 else
11708   echo "$as_me: failed program was:" >&5
11709 sed 's/^/| /' conftest.$ac_ext >&5
11710
11711 ac_cv_type_int32_t=no
11712 fi
11713 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11714 fi
11715 echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
11716 echo "${ECHO_T}$ac_cv_type_int32_t" >&6
11717 if test $ac_cv_type_int32_t = yes; then
11718   :
11719 else
11720
11721 cat >>confdefs.h <<\_ACEOF
11722 #define int32_t int
11723 _ACEOF
11724
11725 fi
11726
11727 echo "$as_me:$LINENO: checking for u_int32_t" >&5
11728 echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
11729 if test "${ac_cv_type_u_int32_t+set}" = set; then
11730   echo $ECHO_N "(cached) $ECHO_C" >&6
11731 else
11732   cat >conftest.$ac_ext <<_ACEOF
11733 /* confdefs.h.  */
11734 _ACEOF
11735 cat confdefs.h >>conftest.$ac_ext
11736 cat >>conftest.$ac_ext <<_ACEOF
11737 /* end confdefs.h.  */
11738 $ac_includes_default
11739 #ifdef HAVE_SYS_BITYPES_H
11740 #include <sys/bitypes.h>
11741 #endif
11742
11743 int
11744 main ()
11745 {
11746 if ((u_int32_t *) 0)
11747   return 0;
11748 if (sizeof (u_int32_t))
11749   return 0;
11750   ;
11751   return 0;
11752 }
11753 _ACEOF
11754 rm -f conftest.$ac_objext
11755 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11756   (eval $ac_compile) 2>conftest.er1
11757   ac_status=$?
11758   grep -v '^ *+' conftest.er1 >conftest.err
11759   rm -f conftest.er1
11760   cat conftest.err >&5
11761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11762   (exit $ac_status); } &&
11763          { ac_try='test -z "$ac_c_werror_flag"
11764                          || test ! -s conftest.err'
11765   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11766   (eval $ac_try) 2>&5
11767   ac_status=$?
11768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11769   (exit $ac_status); }; } &&
11770          { ac_try='test -s conftest.$ac_objext'
11771   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11772   (eval $ac_try) 2>&5
11773   ac_status=$?
11774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11775   (exit $ac_status); }; }; then
11776   ac_cv_type_u_int32_t=yes
11777 else
11778   echo "$as_me: failed program was:" >&5
11779 sed 's/^/| /' conftest.$ac_ext >&5
11780
11781 ac_cv_type_u_int32_t=no
11782 fi
11783 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11784 fi
11785 echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
11786 echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
11787 if test $ac_cv_type_u_int32_t = yes; then
11788   :
11789 else
11790
11791 cat >>confdefs.h <<\_ACEOF
11792 #define u_int32_t unsigned int
11793 _ACEOF
11794
11795 fi
11796
11797 echo "$as_me:$LINENO: checking for int64_t" >&5
11798 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
11799 if test "${ac_cv_type_int64_t+set}" = set; then
11800   echo $ECHO_N "(cached) $ECHO_C" >&6
11801 else
11802   cat >conftest.$ac_ext <<_ACEOF
11803 /* confdefs.h.  */
11804 _ACEOF
11805 cat confdefs.h >>conftest.$ac_ext
11806 cat >>conftest.$ac_ext <<_ACEOF
11807 /* end confdefs.h.  */
11808 $ac_includes_default
11809 int
11810 main ()
11811 {
11812 if ((int64_t *) 0)
11813   return 0;
11814 if (sizeof (int64_t))
11815   return 0;
11816   ;
11817   return 0;
11818 }
11819 _ACEOF
11820 rm -f conftest.$ac_objext
11821 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11822   (eval $ac_compile) 2>conftest.er1
11823   ac_status=$?
11824   grep -v '^ *+' conftest.er1 >conftest.err
11825   rm -f conftest.er1
11826   cat conftest.err >&5
11827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11828   (exit $ac_status); } &&
11829          { ac_try='test -z "$ac_c_werror_flag"
11830                          || test ! -s conftest.err'
11831   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11832   (eval $ac_try) 2>&5
11833   ac_status=$?
11834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11835   (exit $ac_status); }; } &&
11836          { ac_try='test -s conftest.$ac_objext'
11837   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11838   (eval $ac_try) 2>&5
11839   ac_status=$?
11840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11841   (exit $ac_status); }; }; then
11842   ac_cv_type_int64_t=yes
11843 else
11844   echo "$as_me: failed program was:" >&5
11845 sed 's/^/| /' conftest.$ac_ext >&5
11846
11847 ac_cv_type_int64_t=no
11848 fi
11849 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11850 fi
11851 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
11852 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
11853 if test $ac_cv_type_int64_t = yes; then
11854   :
11855 else
11856
11857 cat >>confdefs.h <<\_ACEOF
11858 #define int64_t long long
11859 _ACEOF
11860
11861 fi
11862
11863 echo "$as_me:$LINENO: checking for u_int64_t" >&5
11864 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
11865 if test "${ac_cv_type_u_int64_t+set}" = set; then
11866   echo $ECHO_N "(cached) $ECHO_C" >&6
11867 else
11868   cat >conftest.$ac_ext <<_ACEOF
11869 /* confdefs.h.  */
11870 _ACEOF
11871 cat confdefs.h >>conftest.$ac_ext
11872 cat >>conftest.$ac_ext <<_ACEOF
11873 /* end confdefs.h.  */
11874 $ac_includes_default
11875 #ifdef HAVE_SYS_BITYPES_H
11876 #include <sys/bitypes.h>
11877 #endif
11878
11879 int
11880 main ()
11881 {
11882 if ((u_int64_t *) 0)
11883   return 0;
11884 if (sizeof (u_int64_t))
11885   return 0;
11886   ;
11887   return 0;
11888 }
11889 _ACEOF
11890 rm -f conftest.$ac_objext
11891 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11892   (eval $ac_compile) 2>conftest.er1
11893   ac_status=$?
11894   grep -v '^ *+' conftest.er1 >conftest.err
11895   rm -f conftest.er1
11896   cat conftest.err >&5
11897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11898   (exit $ac_status); } &&
11899          { ac_try='test -z "$ac_c_werror_flag"
11900                          || test ! -s conftest.err'
11901   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11902   (eval $ac_try) 2>&5
11903   ac_status=$?
11904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11905   (exit $ac_status); }; } &&
11906          { ac_try='test -s conftest.$ac_objext'
11907   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11908   (eval $ac_try) 2>&5
11909   ac_status=$?
11910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11911   (exit $ac_status); }; }; then
11912   ac_cv_type_u_int64_t=yes
11913 else
11914   echo "$as_me: failed program was:" >&5
11915 sed 's/^/| /' conftest.$ac_ext >&5
11916
11917 ac_cv_type_u_int64_t=no
11918 fi
11919 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11920 fi
11921 echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
11922 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
11923 if test $ac_cv_type_u_int64_t = yes; then
11924   :
11925 else
11926
11927 cat >>confdefs.h <<\_ACEOF
11928 #define u_int64_t unsigned long long
11929 _ACEOF
11930
11931 fi
11932
11933
11934 #
11935 # We can't just check for <inttypes.h> - some systems have one that
11936 # doesn't define all the PRI[doxu]64 macros.
11937 #
11938
11939 for ac_header in inttypes.h
11940 do
11941 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11942 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11943   echo "$as_me:$LINENO: checking for $ac_header" >&5
11944 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11945 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11946   echo $ECHO_N "(cached) $ECHO_C" >&6
11947 fi
11948 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11949 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11950 else
11951   # Is the header compilable?
11952 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11953 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11954 cat >conftest.$ac_ext <<_ACEOF
11955 /* confdefs.h.  */
11956 _ACEOF
11957 cat confdefs.h >>conftest.$ac_ext
11958 cat >>conftest.$ac_ext <<_ACEOF
11959 /* end confdefs.h.  */
11960 $ac_includes_default
11961 #include <$ac_header>
11962 _ACEOF
11963 rm -f conftest.$ac_objext
11964 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11965   (eval $ac_compile) 2>conftest.er1
11966   ac_status=$?
11967   grep -v '^ *+' conftest.er1 >conftest.err
11968   rm -f conftest.er1
11969   cat conftest.err >&5
11970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11971   (exit $ac_status); } &&
11972          { ac_try='test -z "$ac_c_werror_flag"
11973                          || test ! -s conftest.err'
11974   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11975   (eval $ac_try) 2>&5
11976   ac_status=$?
11977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11978   (exit $ac_status); }; } &&
11979          { ac_try='test -s conftest.$ac_objext'
11980   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11981   (eval $ac_try) 2>&5
11982   ac_status=$?
11983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11984   (exit $ac_status); }; }; then
11985   ac_header_compiler=yes
11986 else
11987   echo "$as_me: failed program was:" >&5
11988 sed 's/^/| /' conftest.$ac_ext >&5
11989
11990 ac_header_compiler=no
11991 fi
11992 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11993 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11994 echo "${ECHO_T}$ac_header_compiler" >&6
11995
11996 # Is the header present?
11997 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11998 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11999 cat >conftest.$ac_ext <<_ACEOF
12000 /* confdefs.h.  */
12001 _ACEOF
12002 cat confdefs.h >>conftest.$ac_ext
12003 cat >>conftest.$ac_ext <<_ACEOF
12004 /* end confdefs.h.  */
12005 #include <$ac_header>
12006 _ACEOF
12007 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12008   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12009   ac_status=$?
12010   grep -v '^ *+' conftest.er1 >conftest.err
12011   rm -f conftest.er1
12012   cat conftest.err >&5
12013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12014   (exit $ac_status); } >/dev/null; then
12015   if test -s conftest.err; then
12016     ac_cpp_err=$ac_c_preproc_warn_flag
12017     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12018   else
12019     ac_cpp_err=
12020   fi
12021 else
12022   ac_cpp_err=yes
12023 fi
12024 if test -z "$ac_cpp_err"; then
12025   ac_header_preproc=yes
12026 else
12027   echo "$as_me: failed program was:" >&5
12028 sed 's/^/| /' conftest.$ac_ext >&5
12029
12030   ac_header_preproc=no
12031 fi
12032 rm -f conftest.err conftest.$ac_ext
12033 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12034 echo "${ECHO_T}$ac_header_preproc" >&6
12035
12036 # So?  What about this header?
12037 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12038   yes:no: )
12039     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12040 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12041     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12042 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12043     ac_header_preproc=yes
12044     ;;
12045   no:yes:* )
12046     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12047 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12048     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12049 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12050     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12051 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12052     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12053 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12054     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12055 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12056     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12057 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12058     (
12059       cat <<\_ASBOX
12060 ## ------------------------------------------ ##
12061 ## Report this to the AC_PACKAGE_NAME lists.  ##
12062 ## ------------------------------------------ ##
12063 _ASBOX
12064     ) |
12065       sed "s/^/$as_me: WARNING:     /" >&2
12066     ;;
12067 esac
12068 echo "$as_me:$LINENO: checking for $ac_header" >&5
12069 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12070 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12071   echo $ECHO_N "(cached) $ECHO_C" >&6
12072 else
12073   eval "$as_ac_Header=\$ac_header_preproc"
12074 fi
12075 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12076 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12077
12078 fi
12079 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12080   cat >>confdefs.h <<_ACEOF
12081 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12082 _ACEOF
12083
12084     #
12085     # OK, we have inttypes.h, but does it define those macros?
12086     #
12087     echo "$as_me:$LINENO: checking whether inttypes.h defines the PRI[doxu]64 macros" >&5
12088 echo $ECHO_N "checking whether inttypes.h defines the PRI[doxu]64 macros... $ECHO_C" >&6
12089     cat >conftest.$ac_ext <<_ACEOF
12090
12091         /* confdefs.h.  */
12092 _ACEOF
12093 cat confdefs.h >>conftest.$ac_ext
12094 cat >>conftest.$ac_ext <<_ACEOF
12095 /* end confdefs.h.  */
12096
12097             #include <inttypes.h>
12098             #include <stdio.h>
12099             #include <sys/types.h>
12100             #ifdef HAVE_SYS_BITYPES_H
12101             #include <sys/bitypes.h>
12102             #endif
12103
12104             main()
12105             {
12106               printf("%" PRId64 "\n", (u_int64_t)1);
12107               printf("%" PRIo64 "\n", (u_int64_t)1);
12108               printf("%" PRIx64 "\n", (u_int64_t)1);
12109               printf("%" PRIu64 "\n", (u_int64_t)1);
12110             }
12111
12112
12113 _ACEOF
12114 rm -f conftest.$ac_objext
12115 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12116   (eval $ac_compile) 2>conftest.er1
12117   ac_status=$?
12118   grep -v '^ *+' conftest.er1 >conftest.err
12119   rm -f conftest.er1
12120   cat conftest.err >&5
12121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12122   (exit $ac_status); } &&
12123          { ac_try='test -z "$ac_c_werror_flag"
12124                          || test ! -s conftest.err'
12125   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12126   (eval $ac_try) 2>&5
12127   ac_status=$?
12128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12129   (exit $ac_status); }; } &&
12130          { ac_try='test -s conftest.$ac_objext'
12131   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12132   (eval $ac_try) 2>&5
12133   ac_status=$?
12134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12135   (exit $ac_status); }; }; then
12136
12137         echo "$as_me:$LINENO: result: yes" >&5
12138 echo "${ECHO_T}yes" >&6
12139         ac_lbl_inttypes_h_defines_formats=yes
12140
12141 else
12142   echo "$as_me: failed program was:" >&5
12143 sed 's/^/| /' conftest.$ac_ext >&5
12144
12145
12146         echo "$as_me:$LINENO: result: no" >&5
12147 echo "${ECHO_T}no" >&6
12148         ac_lbl_inttypes_h_defines_formats=no
12149
12150 fi
12151 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12152
12153 else
12154
12155     #
12156     # We don't have inttypes.h, so it obviously can't define those
12157     # macros.
12158     #
12159     ac_lbl_inttypes_h_defines_formats=no
12160
12161 fi
12162
12163 done
12164
12165 if test "$ac_lbl_inttypes_h_defines_formats" = no; then
12166
12167     echo "$as_me:$LINENO: checking whether %lx can be used to format 64-bit integers" >&5
12168 echo $ECHO_N "checking whether %lx can be used to format 64-bit integers... $ECHO_C" >&6
12169     if test "$cross_compiling" = yes; then
12170   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12171 See \`config.log' for more details." >&5
12172 echo "$as_me: error: cannot run test program while cross compiling
12173 See \`config.log' for more details." >&2;}
12174    { (exit 1); exit 1; }; }
12175 else
12176   cat >conftest.$ac_ext <<_ACEOF
12177
12178         /* confdefs.h.  */
12179 _ACEOF
12180 cat confdefs.h >>conftest.$ac_ext
12181 cat >>conftest.$ac_ext <<_ACEOF
12182 /* end confdefs.h.  */
12183
12184 #           ifdef HAVE_INTTYPES_H
12185             #include <inttypes.h>
12186 #           endif
12187 #           ifdef HAVE_SYS_BITYPES_H
12188             #include <sys/bitypes.h>
12189 #           endif
12190             #include <stdio.h>
12191             #include <sys/types.h>
12192
12193             main()
12194             {
12195               u_int64_t t = 1;
12196               char strbuf[16+1];
12197               sprintf(strbuf, "%016lx", t << 32);
12198               if (strcmp(strbuf, "0000000100000000") == 0)
12199                 exit(0);
12200               else
12201                 exit(1);
12202             }
12203
12204
12205 _ACEOF
12206 rm -f conftest$ac_exeext
12207 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12208   (eval $ac_link) 2>&5
12209   ac_status=$?
12210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12211   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12212   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12213   (eval $ac_try) 2>&5
12214   ac_status=$?
12215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12216   (exit $ac_status); }; }; then
12217
12218         cat >>confdefs.h <<\_ACEOF
12219 #define PRId64 "ld"
12220 _ACEOF
12221
12222         cat >>confdefs.h <<\_ACEOF
12223 #define PRIo64 "lo"
12224 _ACEOF
12225
12226         cat >>confdefs.h <<\_ACEOF
12227 #define PRIx64 "lx"
12228 _ACEOF
12229
12230         cat >>confdefs.h <<\_ACEOF
12231 #define PRIu64 "lu"
12232 _ACEOF
12233
12234         echo "$as_me:$LINENO: result: yes" >&5
12235 echo "${ECHO_T}yes" >&6
12236
12237 else
12238   echo "$as_me: program exited with status $ac_status" >&5
12239 echo "$as_me: failed program was:" >&5
12240 sed 's/^/| /' conftest.$ac_ext >&5
12241
12242 ( exit $ac_status )
12243
12244         echo "$as_me:$LINENO: result: no" >&5
12245 echo "${ECHO_T}no" >&6
12246
12247
12248     echo "$as_me:$LINENO: checking whether %llx can be used to format 64-bit integers" >&5
12249 echo $ECHO_N "checking whether %llx can be used to format 64-bit integers... $ECHO_C" >&6
12250     if test "$cross_compiling" = yes; then
12251   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12252 See \`config.log' for more details." >&5
12253 echo "$as_me: error: cannot run test program while cross compiling
12254 See \`config.log' for more details." >&2;}
12255    { (exit 1); exit 1; }; }
12256 else
12257   cat >conftest.$ac_ext <<_ACEOF
12258
12259         /* confdefs.h.  */
12260 _ACEOF
12261 cat confdefs.h >>conftest.$ac_ext
12262 cat >>conftest.$ac_ext <<_ACEOF
12263 /* end confdefs.h.  */
12264
12265 #           ifdef HAVE_INTTYPES_H
12266             #include <inttypes.h>
12267 #           endif
12268 #           ifdef HAVE_SYS_BITYPES_H
12269             #include <sys/bitypes.h>
12270 #           endif
12271             #include <stdio.h>
12272             #include <sys/types.h>
12273
12274             main()
12275             {
12276               u_int64_t t = 1;
12277               char strbuf[16+1];
12278               sprintf(strbuf, "%016llx", t << 32);
12279               if (strcmp(strbuf, "0000000100000000") == 0)
12280                 exit(0);
12281               else
12282                 exit(1);
12283             }
12284
12285
12286 _ACEOF
12287 rm -f conftest$ac_exeext
12288 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12289   (eval $ac_link) 2>&5
12290   ac_status=$?
12291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12292   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12293   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12294   (eval $ac_try) 2>&5
12295   ac_status=$?
12296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12297   (exit $ac_status); }; }; then
12298
12299         cat >>confdefs.h <<\_ACEOF
12300 #define PRId64 "lld"
12301 _ACEOF
12302
12303         cat >>confdefs.h <<\_ACEOF
12304 #define PRIo64 "llo"
12305 _ACEOF
12306
12307         cat >>confdefs.h <<\_ACEOF
12308 #define PRIx64 "llx"
12309 _ACEOF
12310
12311         cat >>confdefs.h <<\_ACEOF
12312 #define PRIu64 "llu"
12313 _ACEOF
12314
12315         echo "$as_me:$LINENO: result: yes" >&5
12316 echo "${ECHO_T}yes" >&6
12317
12318 else
12319   echo "$as_me: program exited with status $ac_status" >&5
12320 echo "$as_me: failed program was:" >&5
12321 sed 's/^/| /' conftest.$ac_ext >&5
12322
12323 ( exit $ac_status )
12324
12325         echo "$as_me:$LINENO: result: no" >&5
12326 echo "${ECHO_T}no" >&6
12327
12328
12329     echo "$as_me:$LINENO: checking whether %Lx can be used to format 64-bit integers" >&5
12330 echo $ECHO_N "checking whether %Lx can be used to format 64-bit integers... $ECHO_C" >&6
12331     if test "$cross_compiling" = yes; then
12332   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12333 See \`config.log' for more details." >&5
12334 echo "$as_me: error: cannot run test program while cross compiling
12335 See \`config.log' for more details." >&2;}
12336    { (exit 1); exit 1; }; }
12337 else
12338   cat >conftest.$ac_ext <<_ACEOF
12339
12340         /* confdefs.h.  */
12341 _ACEOF
12342 cat confdefs.h >>conftest.$ac_ext
12343 cat >>conftest.$ac_ext <<_ACEOF
12344 /* end confdefs.h.  */
12345
12346 #           ifdef HAVE_INTTYPES_H
12347             #include <inttypes.h>
12348 #           endif
12349 #           ifdef HAVE_SYS_BITYPES_H
12350             #include <sys/bitypes.h>
12351 #           endif
12352             #include <stdio.h>
12353             #include <sys/types.h>
12354
12355             main()
12356             {
12357               u_int64_t t = 1;
12358               char strbuf[16+1];
12359               sprintf(strbuf, "%016Lx", t << 32);
12360               if (strcmp(strbuf, "0000000100000000") == 0)
12361                 exit(0);
12362               else
12363                 exit(1);
12364             }
12365
12366
12367 _ACEOF
12368 rm -f conftest$ac_exeext
12369 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12370   (eval $ac_link) 2>&5
12371   ac_status=$?
12372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12373   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12374   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12375   (eval $ac_try) 2>&5
12376   ac_status=$?
12377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12378   (exit $ac_status); }; }; then
12379
12380         cat >>confdefs.h <<\_ACEOF
12381 #define PRId64 "Ld"
12382 _ACEOF
12383
12384         cat >>confdefs.h <<\_ACEOF
12385 #define PRIo64 "Lo"
12386 _ACEOF
12387
12388         cat >>confdefs.h <<\_ACEOF
12389 #define PRIx64 "Lx"
12390 _ACEOF
12391
12392         cat >>confdefs.h <<\_ACEOF
12393 #define PRIu64 "Lu"
12394 _ACEOF
12395
12396         echo "$as_me:$LINENO: result: yes" >&5
12397 echo "${ECHO_T}yes" >&6
12398
12399 else
12400   echo "$as_me: program exited with status $ac_status" >&5
12401 echo "$as_me: failed program was:" >&5
12402 sed 's/^/| /' conftest.$ac_ext >&5
12403
12404 ( exit $ac_status )
12405
12406         echo "$as_me:$LINENO: result: no" >&5
12407 echo "${ECHO_T}no" >&6
12408
12409
12410     echo "$as_me:$LINENO: checking whether %qx can be used to format 64-bit integers" >&5
12411 echo $ECHO_N "checking whether %qx can be used to format 64-bit integers... $ECHO_C" >&6
12412     if test "$cross_compiling" = yes; then
12413   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12414 See \`config.log' for more details." >&5
12415 echo "$as_me: error: cannot run test program while cross compiling
12416 See \`config.log' for more details." >&2;}
12417    { (exit 1); exit 1; }; }
12418 else
12419   cat >conftest.$ac_ext <<_ACEOF
12420
12421         /* confdefs.h.  */
12422 _ACEOF
12423 cat confdefs.h >>conftest.$ac_ext
12424 cat >>conftest.$ac_ext <<_ACEOF
12425 /* end confdefs.h.  */
12426
12427 #           ifdef HAVE_INTTYPES_H
12428             #include <inttypes.h>
12429 #           endif
12430 #           ifdef HAVE_SYS_BITYPES_H
12431             #include <sys/bitypes.h>
12432 #           endif
12433             #include <stdio.h>
12434             #include <sys/types.h>
12435
12436             main()
12437             {
12438               u_int64_t t = 1;
12439               char strbuf[16+1];
12440               sprintf(strbuf, "%016qx", t << 32);
12441               if (strcmp(strbuf, "0000000100000000") == 0)
12442                 exit(0);
12443               else
12444                 exit(1);
12445             }
12446
12447
12448 _ACEOF
12449 rm -f conftest$ac_exeext
12450 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12451   (eval $ac_link) 2>&5
12452   ac_status=$?
12453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12454   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12455   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12456   (eval $ac_try) 2>&5
12457   ac_status=$?
12458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12459   (exit $ac_status); }; }; then
12460
12461         cat >>confdefs.h <<\_ACEOF
12462 #define PRId64 "qd"
12463 _ACEOF
12464
12465         cat >>confdefs.h <<\_ACEOF
12466 #define PRIo64 "qo"
12467 _ACEOF
12468
12469         cat >>confdefs.h <<\_ACEOF
12470 #define PRIx64 "qx"
12471 _ACEOF
12472
12473         cat >>confdefs.h <<\_ACEOF
12474 #define PRIu64 "qu"
12475 _ACEOF
12476
12477         echo "$as_me:$LINENO: result: yes" >&5
12478 echo "${ECHO_T}yes" >&6
12479
12480 else
12481   echo "$as_me: program exited with status $ac_status" >&5
12482 echo "$as_me: failed program was:" >&5
12483 sed 's/^/| /' conftest.$ac_ext >&5
12484
12485 ( exit $ac_status )
12486
12487         echo "$as_me:$LINENO: result: no" >&5
12488 echo "${ECHO_T}no" >&6
12489
12490                   { { echo "$as_me:$LINENO: error: neither %llx nor %Lx nor %qx worked on a 64-bit integer" >&5
12491 echo "$as_me: error: neither %llx nor %Lx nor %qx worked on a 64-bit integer" >&2;}
12492    { (exit 1); exit 1; }; }
12493
12494
12495 fi
12496 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12497 fi
12498
12499
12500
12501 fi
12502 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12503 fi
12504
12505
12506
12507 fi
12508 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12509 fi
12510
12511
12512
12513 fi
12514 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12515 fi
12516
12517 fi
12518
12519 rm -f os-proto.h
12520     if test "${LBL_CFLAGS+set}" = set; then
12521             V_CCOPT="$V_CCOPT ${LBL_CFLAGS}"
12522     fi
12523     if test -f .devel ; then
12524             if test "$GCC" = yes ; then
12525                     if test "${LBL_CFLAGS+set}" != set; then
12526                             if test "$ac_cv_prog_cc_g" = yes ; then
12527                                     V_CCOPT="-g $V_CCOPT"
12528                             fi
12529                             V_CCOPT="$V_CCOPT -Wall"
12530                             if test $ac_cv_lbl_gcc_vers -gt 1 ; then
12531                                     V_CCOPT="$V_CCOPT -Wmissing-prototypes -Wstrict-prototypes -Wwrite-strings -W"
12532                             fi
12533                     fi
12534             else
12535                     case "$host_os" in
12536
12537                     irix6*)
12538                             V_CCOPT="$V_CCOPT -n32"
12539                             ;;
12540
12541                     *)
12542                             ;;
12543                     esac
12544             fi
12545             os=`echo $host_os | sed -e 's/\([0-9][0-9]*\)[^0-9].*$/\1/'`
12546             name="lbl/os-$os.h"
12547             if test -f $name ; then
12548                     ln -s $name os-proto.h
12549                     cat >>confdefs.h <<\_ACEOF
12550 #define HAVE_OS_PROTO_H 1
12551 _ACEOF
12552
12553             else
12554                     { echo "$as_me:$LINENO: WARNING: can't find $name" >&5
12555 echo "$as_me: WARNING: can't find $name" >&2;}
12556             fi
12557     fi
12558
12559 echo "$as_me:$LINENO: checking if sockaddr struct has sa_len member" >&5
12560 echo $ECHO_N "checking if sockaddr struct has sa_len member... $ECHO_C" >&6
12561     if test "${ac_cv_lbl_sockaddr_has_sa_len+set}" = set; then
12562   echo $ECHO_N "(cached) $ECHO_C" >&6
12563 else
12564   cat >conftest.$ac_ext <<_ACEOF
12565 /* confdefs.h.  */
12566 _ACEOF
12567 cat confdefs.h >>conftest.$ac_ext
12568 cat >>conftest.$ac_ext <<_ACEOF
12569 /* end confdefs.h.  */
12570
12571 #       include <sys/types.h>
12572 #       include <sys/socket.h>
12573 int
12574 main ()
12575 {
12576 u_int i = sizeof(((struct sockaddr *)0)->sa_len)
12577   ;
12578   return 0;
12579 }
12580 _ACEOF
12581 rm -f conftest.$ac_objext
12582 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12583   (eval $ac_compile) 2>conftest.er1
12584   ac_status=$?
12585   grep -v '^ *+' conftest.er1 >conftest.err
12586   rm -f conftest.er1
12587   cat conftest.err >&5
12588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12589   (exit $ac_status); } &&
12590          { ac_try='test -z "$ac_c_werror_flag"
12591                          || test ! -s conftest.err'
12592   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12593   (eval $ac_try) 2>&5
12594   ac_status=$?
12595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12596   (exit $ac_status); }; } &&
12597          { ac_try='test -s conftest.$ac_objext'
12598   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12599   (eval $ac_try) 2>&5
12600   ac_status=$?
12601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12602   (exit $ac_status); }; }; then
12603   ac_cv_lbl_sockaddr_has_sa_len=yes
12604 else
12605   echo "$as_me: failed program was:" >&5
12606 sed 's/^/| /' conftest.$ac_ext >&5
12607
12608 ac_cv_lbl_sockaddr_has_sa_len=no
12609 fi
12610 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12611 fi
12612
12613     echo "$as_me:$LINENO: result: $ac_cv_lbl_sockaddr_has_sa_len" >&5
12614 echo "${ECHO_T}$ac_cv_lbl_sockaddr_has_sa_len" >&6
12615     if test $ac_cv_lbl_sockaddr_has_sa_len = yes ; then
12616             cat >>confdefs.h <<\_ACEOF
12617 #define HAVE_SOCKADDR_SA_LEN 1
12618 _ACEOF
12619
12620     fi
12621
12622 cat >>confdefs.h <<\_ACEOF
12623 #define LBL_ALIGN 1
12624 _ACEOF
12625
12626
12627
12628         echo "$as_me:$LINENO: checking for h_errno" >&5
12629 echo $ECHO_N "checking for h_errno... $ECHO_C" >&6
12630         if test "${ac_cv_var_h_errno+set}" = set; then
12631   echo $ECHO_N "(cached) $ECHO_C" >&6
12632 else
12633   cat >conftest.$ac_ext <<_ACEOF
12634 /* confdefs.h.  */
12635 _ACEOF
12636 cat confdefs.h >>conftest.$ac_ext
12637 cat >>conftest.$ac_ext <<_ACEOF
12638 /* end confdefs.h.  */
12639
12640 #               include <sys/types.h>
12641 #               include <netdb.h>
12642 int
12643 main ()
12644 {
12645 int foo = h_errno;
12646   ;
12647   return 0;
12648 }
12649 _ACEOF
12650 rm -f conftest.$ac_objext
12651 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12652   (eval $ac_compile) 2>conftest.er1
12653   ac_status=$?
12654   grep -v '^ *+' conftest.er1 >conftest.err
12655   rm -f conftest.er1
12656   cat conftest.err >&5
12657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12658   (exit $ac_status); } &&
12659          { ac_try='test -z "$ac_c_werror_flag"
12660                          || test ! -s conftest.err'
12661   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12662   (eval $ac_try) 2>&5
12663   ac_status=$?
12664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12665   (exit $ac_status); }; } &&
12666          { ac_try='test -s conftest.$ac_objext'
12667   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12668   (eval $ac_try) 2>&5
12669   ac_status=$?
12670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12671   (exit $ac_status); }; }; then
12672   ac_cv_var_h_errno=yes
12673 else
12674   echo "$as_me: failed program was:" >&5
12675 sed 's/^/| /' conftest.$ac_ext >&5
12676
12677 ac_cv_var_h_errno=no
12678 fi
12679 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12680 fi
12681
12682         echo "$as_me:$LINENO: result: $ac_cv_var_h_errno" >&5
12683 echo "${ECHO_T}$ac_cv_var_h_errno" >&6
12684         if test "$ac_cv_var_h_errno" = "yes"; then
12685                 cat >>confdefs.h <<\_ACEOF
12686 #define HAVE_H_ERRNO 1
12687 _ACEOF
12688
12689         fi
12690
12691
12692
12693 # Check whether --with-crypto or --without-crypto was given.
12694 if test "${with_crypto+set}" = set; then
12695   withval="$with_crypto"
12696
12697 else
12698
12699 echo "$as_me:$LINENO: checking for SSLeay" >&5
12700 echo $ECHO_N "checking for SSLeay... $ECHO_C" >&6
12701 ac_cv_ssleay_path=no
12702 incdir=no
12703
12704 Xprefix=`eval echo $prefix`
12705
12706 for dir in $Xprefix /usr/${host_alias} /usr /usr/local /usr/local/ssl /usr/pkg; do
12707         #
12708         # XXX - is there a better way to check if a given library is
12709         # in a given directory than checking each of the possible
12710         # shared library suffixes?
12711         #
12712         # Are there any other suffixes we need to look for?  Do we have to
12713         # worry about ".so.{version}"?
12714         #
12715         # Or should we just look for "libcrypto.*"?
12716         #
12717         if test -d $dir/lib -a \( -f $dir/lib/libcrypto.a -o \
12718                                   -f $dir/lib/libcrypto.so -o \
12719                                   -f $dir/lib/libcrypto.sl -o \
12720                                   -f $dir/lib/libcrypto.dylib \); then
12721                 ac_cv_ssleay_path=$dir
12722         fi
12723         if test -d $dir/include/openssl -a -f $dir/include/openssl/des.h; then
12724                 incdir="-I$dir/include"
12725         fi
12726         if test "$ac_cv_ssleay_path" != "no" -a "$incdir" != "no"; then
12727                 break;
12728         else
12729                 ac_cv_ssleay_path=no
12730                 incdir=no
12731         fi
12732 done
12733 echo "$as_me:$LINENO: result: $ac_cv_ssleay_path" >&5
12734 echo "${ECHO_T}$ac_cv_ssleay_path" >&6
12735 if test "$ac_cv_ssleay_path" != no; then
12736         V_INCLS="$V_INCLS $incdir"
12737         LDFLAGS="-L$dir/lib $LDFLAGS"
12738         if test -f $ac_cv_ssleay_path/lib/libRSAglue.a; then
12739                 LIBS="$LIBS -lRSAglue"
12740         fi
12741         if test -f $ac_cv_ssleay_path/lib/librsaref.a; then
12742                 LIBS="$LIBS -lrsaref"
12743         fi
12744
12745 echo "$as_me:$LINENO: checking for DES_cbc_encrypt in -lcrypto" >&5
12746 echo $ECHO_N "checking for DES_cbc_encrypt in -lcrypto... $ECHO_C" >&6
12747 if test "${ac_cv_lib_crypto_DES_cbc_encrypt+set}" = set; then
12748   echo $ECHO_N "(cached) $ECHO_C" >&6
12749 else
12750   ac_check_lib_save_LIBS=$LIBS
12751 LIBS="-lcrypto  $LIBS"
12752 cat >conftest.$ac_ext <<_ACEOF
12753 /* confdefs.h.  */
12754 _ACEOF
12755 cat confdefs.h >>conftest.$ac_ext
12756 cat >>conftest.$ac_ext <<_ACEOF
12757 /* end confdefs.h.  */
12758
12759 /* Override any gcc2 internal prototype to avoid an error.  */
12760 #ifdef __cplusplus
12761 extern "C"
12762 #endif
12763 /* We use char because int might match the return type of a gcc2
12764    builtin and then its argument prototype would still apply.  */
12765 char DES_cbc_encrypt ();
12766 int
12767 main ()
12768 {
12769 DES_cbc_encrypt ();
12770   ;
12771   return 0;
12772 }
12773 _ACEOF
12774 rm -f conftest.$ac_objext conftest$ac_exeext
12775 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12776   (eval $ac_link) 2>conftest.er1
12777   ac_status=$?
12778   grep -v '^ *+' conftest.er1 >conftest.err
12779   rm -f conftest.er1
12780   cat conftest.err >&5
12781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12782   (exit $ac_status); } &&
12783          { ac_try='test -z "$ac_c_werror_flag"
12784                          || test ! -s conftest.err'
12785   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12786   (eval $ac_try) 2>&5
12787   ac_status=$?
12788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12789   (exit $ac_status); }; } &&
12790          { ac_try='test -s conftest$ac_exeext'
12791   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12792   (eval $ac_try) 2>&5
12793   ac_status=$?
12794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12795   (exit $ac_status); }; }; then
12796   ac_cv_lib_crypto_DES_cbc_encrypt=yes
12797 else
12798   echo "$as_me: failed program was:" >&5
12799 sed 's/^/| /' conftest.$ac_ext >&5
12800
12801 ac_cv_lib_crypto_DES_cbc_encrypt=no
12802 fi
12803 rm -f conftest.err conftest.$ac_objext \
12804       conftest$ac_exeext conftest.$ac_ext
12805 LIBS=$ac_check_lib_save_LIBS
12806 fi
12807 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_DES_cbc_encrypt" >&5
12808 echo "${ECHO_T}$ac_cv_lib_crypto_DES_cbc_encrypt" >&6
12809 if test $ac_cv_lib_crypto_DES_cbc_encrypt = yes; then
12810   cat >>confdefs.h <<_ACEOF
12811 #define HAVE_LIBCRYPTO 1
12812 _ACEOF
12813
12814   LIBS="-lcrypto $LIBS"
12815
12816 fi
12817
12818
12819         CPPFLAGS="$CPPFLAGS $V_INCLS"
12820
12821 for ac_header in openssl/evp.h
12822 do
12823 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12824 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12825   echo "$as_me:$LINENO: checking for $ac_header" >&5
12826 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12827 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12828   echo $ECHO_N "(cached) $ECHO_C" >&6
12829 fi
12830 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12831 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12832 else
12833   # Is the header compilable?
12834 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12835 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12836 cat >conftest.$ac_ext <<_ACEOF
12837 /* confdefs.h.  */
12838 _ACEOF
12839 cat confdefs.h >>conftest.$ac_ext
12840 cat >>conftest.$ac_ext <<_ACEOF
12841 /* end confdefs.h.  */
12842 $ac_includes_default
12843 #include <$ac_header>
12844 _ACEOF
12845 rm -f conftest.$ac_objext
12846 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12847   (eval $ac_compile) 2>conftest.er1
12848   ac_status=$?
12849   grep -v '^ *+' conftest.er1 >conftest.err
12850   rm -f conftest.er1
12851   cat conftest.err >&5
12852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12853   (exit $ac_status); } &&
12854          { ac_try='test -z "$ac_c_werror_flag"
12855                          || test ! -s conftest.err'
12856   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12857   (eval $ac_try) 2>&5
12858   ac_status=$?
12859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12860   (exit $ac_status); }; } &&
12861          { ac_try='test -s conftest.$ac_objext'
12862   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12863   (eval $ac_try) 2>&5
12864   ac_status=$?
12865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12866   (exit $ac_status); }; }; then
12867   ac_header_compiler=yes
12868 else
12869   echo "$as_me: failed program was:" >&5
12870 sed 's/^/| /' conftest.$ac_ext >&5
12871
12872 ac_header_compiler=no
12873 fi
12874 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12875 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12876 echo "${ECHO_T}$ac_header_compiler" >&6
12877
12878 # Is the header present?
12879 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12880 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12881 cat >conftest.$ac_ext <<_ACEOF
12882 /* confdefs.h.  */
12883 _ACEOF
12884 cat confdefs.h >>conftest.$ac_ext
12885 cat >>conftest.$ac_ext <<_ACEOF
12886 /* end confdefs.h.  */
12887 #include <$ac_header>
12888 _ACEOF
12889 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12890   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12891   ac_status=$?
12892   grep -v '^ *+' conftest.er1 >conftest.err
12893   rm -f conftest.er1
12894   cat conftest.err >&5
12895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12896   (exit $ac_status); } >/dev/null; then
12897   if test -s conftest.err; then
12898     ac_cpp_err=$ac_c_preproc_warn_flag
12899     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12900   else
12901     ac_cpp_err=
12902   fi
12903 else
12904   ac_cpp_err=yes
12905 fi
12906 if test -z "$ac_cpp_err"; then
12907   ac_header_preproc=yes
12908 else
12909   echo "$as_me: failed program was:" >&5
12910 sed 's/^/| /' conftest.$ac_ext >&5
12911
12912   ac_header_preproc=no
12913 fi
12914 rm -f conftest.err conftest.$ac_ext
12915 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12916 echo "${ECHO_T}$ac_header_preproc" >&6
12917
12918 # So?  What about this header?
12919 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12920   yes:no: )
12921     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12922 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12923     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12924 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12925     ac_header_preproc=yes
12926     ;;
12927   no:yes:* )
12928     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12929 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12930     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12931 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12932     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12933 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12934     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12935 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12936     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12937 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12938     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12939 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12940     (
12941       cat <<\_ASBOX
12942 ## ------------------------------------------ ##
12943 ## Report this to the AC_PACKAGE_NAME lists.  ##
12944 ## ------------------------------------------ ##
12945 _ASBOX
12946     ) |
12947       sed "s/^/$as_me: WARNING:     /" >&2
12948     ;;
12949 esac
12950 echo "$as_me:$LINENO: checking for $ac_header" >&5
12951 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12952 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12953   echo $ECHO_N "(cached) $ECHO_C" >&6
12954 else
12955   eval "$as_ac_Header=\$ac_header_preproc"
12956 fi
12957 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12958 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12959
12960 fi
12961 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12962   cat >>confdefs.h <<_ACEOF
12963 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12964 _ACEOF
12965
12966 fi
12967
12968 done
12969
12970 fi
12971
12972 fi;
12973
12974 if test "$missing_includes" = "yes"; then
12975         CPPFLAGS="$CPPFLAGS -I\$(srcdir)/missing"
12976         V_INCLS="$V_INCLS -I\$(srcdir)/missing"
12977 fi
12978
12979
12980
12981
12982
12983
12984
12985
12986 # Find a good install program.  We prefer a C program (faster),
12987 # so one script is as good as another.  But avoid the broken or
12988 # incompatible versions:
12989 # SysV /etc/install, /usr/sbin/install
12990 # SunOS /usr/etc/install
12991 # IRIX /sbin/install
12992 # AIX /bin/install
12993 # AmigaOS /C/install, which installs bootblocks on floppy discs
12994 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
12995 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
12996 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
12997 # OS/2's system install, which has a completely different semantic
12998 # ./install, which can be erroneously created by make from ./install.sh.
12999 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
13000 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
13001 if test -z "$INSTALL"; then
13002 if test "${ac_cv_path_install+set}" = set; then
13003   echo $ECHO_N "(cached) $ECHO_C" >&6
13004 else
13005   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13006 for as_dir in $PATH
13007 do
13008   IFS=$as_save_IFS
13009   test -z "$as_dir" && as_dir=.
13010   # Account for people who put trailing slashes in PATH elements.
13011 case $as_dir/ in
13012   ./ | .// | /cC/* | \
13013   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
13014   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
13015   /usr/ucb/* ) ;;
13016   *)
13017     # OSF1 and SCO ODT 3.0 have their own names for install.
13018     # Don't use installbsd from OSF since it installs stuff as root
13019     # by default.
13020     for ac_prog in ginstall scoinst install; do
13021       for ac_exec_ext in '' $ac_executable_extensions; do
13022         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
13023           if test $ac_prog = install &&
13024             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
13025             # AIX install.  It has an incompatible calling convention.
13026             :
13027           elif test $ac_prog = install &&
13028             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
13029             # program-specific install script used by HP pwplus--don't use.
13030             :
13031           else
13032             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
13033             break 3
13034           fi
13035         fi
13036       done
13037     done
13038     ;;
13039 esac
13040 done
13041
13042
13043 fi
13044   if test "${ac_cv_path_install+set}" = set; then
13045     INSTALL=$ac_cv_path_install
13046   else
13047     # As a last resort, use the slow shell script.  We don't cache a
13048     # path for INSTALL within a source directory, because that will
13049     # break other packages using the cache if that directory is
13050     # removed, or if the path is relative.
13051     INSTALL=$ac_install_sh
13052   fi
13053 fi
13054 echo "$as_me:$LINENO: result: $INSTALL" >&5
13055 echo "${ECHO_T}$INSTALL" >&6
13056
13057 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
13058 # It thinks the first close brace ends the variable substitution.
13059 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
13060
13061 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
13062
13063 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
13064
13065
13066           ac_config_headers="$ac_config_headers config.h"
13067
13068
13069           ac_config_commands="$ac_config_commands default-1"
13070
13071           ac_config_files="$ac_config_files Makefile"
13072 cat >confcache <<\_ACEOF
13073 # This file is a shell script that caches the results of configure
13074 # tests run on this system so they can be shared between configure
13075 # scripts and configure runs, see configure's option --config-cache.
13076 # It is not useful on other systems.  If it contains results you don't
13077 # want to keep, you may remove or edit it.
13078 #
13079 # config.status only pays attention to the cache file if you give it
13080 # the --recheck option to rerun configure.
13081 #
13082 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13083 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13084 # following values.
13085
13086 _ACEOF
13087
13088 # The following way of writing the cache mishandles newlines in values,
13089 # but we know of no workaround that is simple, portable, and efficient.
13090 # So, don't put newlines in cache variables' values.
13091 # Ultrix sh set writes to stderr and can't be redirected directly,
13092 # and sets the high bit in the cache file unless we assign to the vars.
13093 {
13094   (set) 2>&1 |
13095     case `(ac_space=' '; set | grep ac_space) 2>&1` in
13096     *ac_space=\ *)
13097       # `set' does not quote correctly, so add quotes (double-quote
13098       # substitution turns \\\\ into \\, and sed turns \\ into \).
13099       sed -n \
13100         "s/'/'\\\\''/g;
13101           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13102       ;;
13103     *)
13104       # `set' quotes correctly as required by POSIX, so do not add quotes.
13105       sed -n \
13106         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
13107       ;;
13108     esac;
13109 } |
13110   sed '
13111      t clear
13112      : clear
13113      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13114      t end
13115      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13116      : end' >>confcache
13117 if diff $cache_file confcache >/dev/null 2>&1; then :; else
13118   if test -w $cache_file; then
13119     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
13120     cat confcache >$cache_file
13121   else
13122     echo "not updating unwritable cache $cache_file"
13123   fi
13124 fi
13125 rm -f confcache
13126
13127 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13128 # Let make expand exec_prefix.
13129 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13130
13131 # VPATH may cause trouble with some makes, so we remove $(srcdir),
13132 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13133 # trailing colons and then remove the whole line if VPATH becomes empty
13134 # (actually we leave an empty line to preserve line numbers).
13135 if test "x$srcdir" = x.; then
13136   ac_vpsub='/^[  ]*VPATH[        ]*=/{
13137 s/:*\$(srcdir):*/:/;
13138 s/:*\${srcdir}:*/:/;
13139 s/:*@srcdir@:*/:/;
13140 s/^\([^=]*=[     ]*\):*/\1/;
13141 s/:*$//;
13142 s/^[^=]*=[       ]*$//;
13143 }'
13144 fi
13145
13146 DEFS=-DHAVE_CONFIG_H
13147
13148 ac_libobjs=
13149 ac_ltlibobjs=
13150 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13151   # 1. Remove the extension, and $U if already installed.
13152   ac_i=`echo "$ac_i" |
13153          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
13154   # 2. Add them.
13155   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
13156   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
13157 done
13158 LIBOBJS=$ac_libobjs
13159
13160 LTLIBOBJS=$ac_ltlibobjs
13161
13162
13163
13164 : ${CONFIG_STATUS=./config.status}
13165 ac_clean_files_save=$ac_clean_files
13166 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13167 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
13168 echo "$as_me: creating $CONFIG_STATUS" >&6;}
13169 cat >$CONFIG_STATUS <<_ACEOF
13170 #! $SHELL
13171 # Generated by $as_me.
13172 # Run this file to recreate the current configuration.
13173 # Compiler output produced by configure, useful for debugging
13174 # configure, is in config.log if it exists.
13175
13176 debug=false
13177 ac_cs_recheck=false
13178 ac_cs_silent=false
13179 SHELL=\${CONFIG_SHELL-$SHELL}
13180 _ACEOF
13181
13182 cat >>$CONFIG_STATUS <<\_ACEOF
13183 ## --------------------- ##
13184 ## M4sh Initialization.  ##
13185 ## --------------------- ##
13186
13187 # Be Bourne compatible
13188 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
13189   emulate sh
13190   NULLCMD=:
13191   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
13192   # is contrary to our usage.  Disable this feature.
13193   alias -g '${1+"$@"}'='"$@"'
13194 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
13195   set -o posix
13196 fi
13197 DUALCASE=1; export DUALCASE # for MKS sh
13198
13199 # Support unset when possible.
13200 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13201   as_unset=unset
13202 else
13203   as_unset=false
13204 fi
13205
13206
13207 # Work around bugs in pre-3.0 UWIN ksh.
13208 $as_unset ENV MAIL MAILPATH
13209 PS1='$ '
13210 PS2='> '
13211 PS4='+ '
13212
13213 # NLS nuisances.
13214 for as_var in \
13215   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
13216   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
13217   LC_TELEPHONE LC_TIME
13218 do
13219   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
13220     eval $as_var=C; export $as_var
13221   else
13222     $as_unset $as_var
13223   fi
13224 done
13225
13226 # Required to use basename.
13227 if expr a : '\(a\)' >/dev/null 2>&1; then
13228   as_expr=expr
13229 else
13230   as_expr=false
13231 fi
13232
13233 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
13234   as_basename=basename
13235 else
13236   as_basename=false
13237 fi
13238
13239
13240 # Name of the executable.
13241 as_me=`$as_basename "$0" ||
13242 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13243          X"$0" : 'X\(//\)$' \| \
13244          X"$0" : 'X\(/\)$' \| \
13245          .     : '\(.\)' 2>/dev/null ||
13246 echo X/"$0" |
13247     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
13248           /^X\/\(\/\/\)$/{ s//\1/; q; }
13249           /^X\/\(\/\).*/{ s//\1/; q; }
13250           s/.*/./; q'`
13251
13252
13253 # PATH needs CR, and LINENO needs CR and PATH.
13254 # Avoid depending upon Character Ranges.
13255 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13256 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13257 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13258 as_cr_digits='0123456789'
13259 as_cr_alnum=$as_cr_Letters$as_cr_digits
13260
13261 # The user is always right.
13262 if test "${PATH_SEPARATOR+set}" != set; then
13263   echo "#! /bin/sh" >conf$$.sh
13264   echo  "exit 0"   >>conf$$.sh
13265   chmod +x conf$$.sh
13266   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13267     PATH_SEPARATOR=';'
13268   else
13269     PATH_SEPARATOR=:
13270   fi
13271   rm -f conf$$.sh
13272 fi
13273
13274
13275   as_lineno_1=$LINENO
13276   as_lineno_2=$LINENO
13277   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
13278   test "x$as_lineno_1" != "x$as_lineno_2" &&
13279   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
13280   # Find who we are.  Look in the path if we contain no path at all
13281   # relative or not.
13282   case $0 in
13283     *[\\/]* ) as_myself=$0 ;;
13284     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13285 for as_dir in $PATH
13286 do
13287   IFS=$as_save_IFS
13288   test -z "$as_dir" && as_dir=.
13289   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13290 done
13291
13292        ;;
13293   esac
13294   # We did not find ourselves, most probably we were run as `sh COMMAND'
13295   # in which case we are not to be found in the path.
13296   if test "x$as_myself" = x; then
13297     as_myself=$0
13298   fi
13299   if test ! -f "$as_myself"; then
13300     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
13301 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
13302    { (exit 1); exit 1; }; }
13303   fi
13304   case $CONFIG_SHELL in
13305   '')
13306     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13307 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
13308 do
13309   IFS=$as_save_IFS
13310   test -z "$as_dir" && as_dir=.
13311   for as_base in sh bash ksh sh5; do
13312          case $as_dir in
13313          /*)
13314            if ("$as_dir/$as_base" -c '
13315   as_lineno_1=$LINENO
13316   as_lineno_2=$LINENO
13317   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
13318   test "x$as_lineno_1" != "x$as_lineno_2" &&
13319   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
13320              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
13321              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
13322              CONFIG_SHELL=$as_dir/$as_base
13323              export CONFIG_SHELL
13324              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
13325            fi;;
13326          esac
13327        done
13328 done
13329 ;;
13330   esac
13331
13332   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
13333   # uniformly replaced by the line number.  The first 'sed' inserts a
13334   # line-number line before each line; the second 'sed' does the real
13335   # work.  The second script uses 'N' to pair each line-number line
13336   # with the numbered line, and appends trailing '-' during
13337   # substitution so that $LINENO is not a special case at line end.
13338   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
13339   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
13340   sed '=' <$as_myself |
13341     sed '
13342       N
13343       s,$,-,
13344       : loop
13345       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
13346       t loop
13347       s,-$,,
13348       s,^['$as_cr_digits']*\n,,
13349     ' >$as_me.lineno &&
13350   chmod +x $as_me.lineno ||
13351     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
13352 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
13353    { (exit 1); exit 1; }; }
13354
13355   # Don't try to exec as it changes $[0], causing all sort of problems
13356   # (the dirname of $[0] is not the place where we might find the
13357   # original and so on.  Autoconf is especially sensible to this).
13358   . ./$as_me.lineno
13359   # Exit status is that of the last command.
13360   exit
13361 }
13362
13363
13364 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
13365   *c*,-n*) ECHO_N= ECHO_C='
13366 ' ECHO_T='      ' ;;
13367   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
13368   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
13369 esac
13370
13371 if expr a : '\(a\)' >/dev/null 2>&1; then
13372   as_expr=expr
13373 else
13374   as_expr=false
13375 fi
13376
13377 rm -f conf$$ conf$$.exe conf$$.file
13378 echo >conf$$.file
13379 if ln -s conf$$.file conf$$ 2>/dev/null; then
13380   # We could just check for DJGPP; but this test a) works b) is more generic
13381   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
13382   if test -f conf$$.exe; then
13383     # Don't use ln at all; we don't have any links
13384     as_ln_s='cp -p'
13385   else
13386     as_ln_s='ln -s'
13387   fi
13388 elif ln conf$$.file conf$$ 2>/dev/null; then
13389   as_ln_s=ln
13390 else
13391   as_ln_s='cp -p'
13392 fi
13393 rm -f conf$$ conf$$.exe conf$$.file
13394
13395 if mkdir -p . 2>/dev/null; then
13396   as_mkdir_p=:
13397 else
13398   test -d ./-p && rmdir ./-p
13399   as_mkdir_p=false
13400 fi
13401
13402 as_executable_p="test -f"
13403
13404 # Sed expression to map a string onto a valid CPP name.
13405 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13406
13407 # Sed expression to map a string onto a valid variable name.
13408 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13409
13410
13411 # IFS
13412 # We need space, tab and new line, in precisely that order.
13413 as_nl='
13414 '
13415 IFS="   $as_nl"
13416
13417 # CDPATH.
13418 $as_unset CDPATH
13419
13420 exec 6>&1
13421
13422 # Open the log real soon, to keep \$[0] and so on meaningful, and to
13423 # report actual input values of CONFIG_FILES etc. instead of their
13424 # values after options handling.  Logging --version etc. is OK.
13425 exec 5>>config.log
13426 {
13427   echo
13428   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13429 ## Running $as_me. ##
13430 _ASBOX
13431 } >&5
13432 cat >&5 <<_CSEOF
13433
13434 This file was extended by $as_me, which was
13435 generated by GNU Autoconf 2.59.  Invocation command line was
13436
13437   CONFIG_FILES    = $CONFIG_FILES
13438   CONFIG_HEADERS  = $CONFIG_HEADERS
13439   CONFIG_LINKS    = $CONFIG_LINKS
13440   CONFIG_COMMANDS = $CONFIG_COMMANDS
13441   $ $0 $@
13442
13443 _CSEOF
13444 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
13445 echo >&5
13446 _ACEOF
13447
13448 # Files that config.status was made for.
13449 if test -n "$ac_config_files"; then
13450   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
13451 fi
13452
13453 if test -n "$ac_config_headers"; then
13454   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
13455 fi
13456
13457 if test -n "$ac_config_links"; then
13458   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
13459 fi
13460
13461 if test -n "$ac_config_commands"; then
13462   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
13463 fi
13464
13465 cat >>$CONFIG_STATUS <<\_ACEOF
13466
13467 ac_cs_usage="\
13468 \`$as_me' instantiates files from templates according to the
13469 current configuration.
13470
13471 Usage: $0 [OPTIONS] [FILE]...
13472
13473   -h, --help       print this help, then exit
13474   -V, --version    print version number, then exit
13475   -q, --quiet      do not print progress messages
13476   -d, --debug      don't remove temporary files
13477       --recheck    update $as_me by reconfiguring in the same conditions
13478   --file=FILE[:TEMPLATE]
13479                    instantiate the configuration file FILE
13480   --header=FILE[:TEMPLATE]
13481                    instantiate the configuration header FILE
13482
13483 Configuration files:
13484 $config_files
13485
13486 Configuration headers:
13487 $config_headers
13488
13489 Configuration commands:
13490 $config_commands
13491
13492 Report bugs to <bug-autoconf@gnu.org>."
13493 _ACEOF
13494
13495 cat >>$CONFIG_STATUS <<_ACEOF
13496 ac_cs_version="\\
13497 config.status
13498 configured by $0, generated by GNU Autoconf 2.59,
13499   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
13500
13501 Copyright (C) 2003 Free Software Foundation, Inc.
13502 This config.status script is free software; the Free Software Foundation
13503 gives unlimited permission to copy, distribute and modify it."
13504 srcdir=$srcdir
13505 INSTALL="$INSTALL"
13506 _ACEOF
13507
13508 cat >>$CONFIG_STATUS <<\_ACEOF
13509 # If no file are specified by the user, then we need to provide default
13510 # value.  By we need to know if files were specified by the user.
13511 ac_need_defaults=:
13512 while test $# != 0
13513 do
13514   case $1 in
13515   --*=*)
13516     ac_option=`expr "x$1" : 'x\([^=]*\)='`
13517     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
13518     ac_shift=:
13519     ;;
13520   -*)
13521     ac_option=$1
13522     ac_optarg=$2
13523     ac_shift=shift
13524     ;;
13525   *) # This is not an option, so the user has probably given explicit
13526      # arguments.
13527      ac_option=$1
13528      ac_need_defaults=false;;
13529   esac
13530
13531   case $ac_option in
13532   # Handling of the options.
13533 _ACEOF
13534 cat >>$CONFIG_STATUS <<\_ACEOF
13535   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13536     ac_cs_recheck=: ;;
13537   --version | --vers* | -V )
13538     echo "$ac_cs_version"; exit 0 ;;
13539   --he | --h)
13540     # Conflict between --help and --header
13541     { { echo "$as_me:$LINENO: error: ambiguous option: $1
13542 Try \`$0 --help' for more information." >&5
13543 echo "$as_me: error: ambiguous option: $1
13544 Try \`$0 --help' for more information." >&2;}
13545    { (exit 1); exit 1; }; };;
13546   --help | --hel | -h )
13547     echo "$ac_cs_usage"; exit 0 ;;
13548   --debug | --d* | -d )
13549     debug=: ;;
13550   --file | --fil | --fi | --f )
13551     $ac_shift
13552     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
13553     ac_need_defaults=false;;
13554   --header | --heade | --head | --hea )
13555     $ac_shift
13556     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
13557     ac_need_defaults=false;;
13558   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13559   | -silent | --silent | --silen | --sile | --sil | --si | --s)
13560     ac_cs_silent=: ;;
13561
13562   # This is an error.
13563   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
13564 Try \`$0 --help' for more information." >&5
13565 echo "$as_me: error: unrecognized option: $1
13566 Try \`$0 --help' for more information." >&2;}
13567    { (exit 1); exit 1; }; } ;;
13568
13569   *) ac_config_targets="$ac_config_targets $1" ;;
13570
13571   esac
13572   shift
13573 done
13574
13575 ac_configure_extra_args=
13576
13577 if $ac_cs_silent; then
13578   exec 6>/dev/null
13579   ac_configure_extra_args="$ac_configure_extra_args --silent"
13580 fi
13581
13582 _ACEOF
13583 cat >>$CONFIG_STATUS <<_ACEOF
13584 if \$ac_cs_recheck; then
13585   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
13586   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13587 fi
13588
13589 _ACEOF
13590
13591 cat >>$CONFIG_STATUS <<_ACEOF
13592 #
13593 # INIT-COMMANDS section.
13594 #
13595
13596
13597
13598 _ACEOF
13599
13600
13601
13602 cat >>$CONFIG_STATUS <<\_ACEOF
13603 for ac_config_target in $ac_config_targets
13604 do
13605   case "$ac_config_target" in
13606   # Handling of arguments.
13607   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13608   "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
13609   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13610   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13611 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13612    { (exit 1); exit 1; }; };;
13613   esac
13614 done
13615
13616 # If the user did not use the arguments to specify the items to instantiate,
13617 # then the envvar interface is used.  Set only those that are not.
13618 # We use the long form for the default assignment because of an extremely
13619 # bizarre bug on SunOS 4.1.3.
13620 if $ac_need_defaults; then
13621   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13622   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13623   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13624 fi
13625
13626 # Have a temporary directory for convenience.  Make it in the build tree
13627 # simply because there is no reason to put it here, and in addition,
13628 # creating and moving files from /tmp can sometimes cause problems.
13629 # Create a temporary directory, and hook for its removal unless debugging.
13630 $debug ||
13631 {
13632   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
13633   trap '{ (exit 1); exit 1; }' 1 2 13 15
13634 }
13635
13636 # Create a (secure) tmp directory for tmp files.
13637
13638 {
13639   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
13640   test -n "$tmp" && test -d "$tmp"
13641 }  ||
13642 {
13643   tmp=./confstat$$-$RANDOM
13644   (umask 077 && mkdir $tmp)
13645 } ||
13646 {
13647    echo "$me: cannot create a temporary directory in ." >&2
13648    { (exit 1); exit 1; }
13649 }
13650
13651 _ACEOF
13652
13653 cat >>$CONFIG_STATUS <<_ACEOF
13654
13655 #
13656 # CONFIG_FILES section.
13657 #
13658
13659 # No need to generate the scripts if there are no CONFIG_FILES.
13660 # This happens for instance when ./config.status config.h
13661 if test -n "\$CONFIG_FILES"; then
13662   # Protect against being on the right side of a sed subst in config.status.
13663   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
13664    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
13665 s,@SHELL@,$SHELL,;t t
13666 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
13667 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
13668 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
13669 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
13670 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
13671 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
13672 s,@exec_prefix@,$exec_prefix,;t t
13673 s,@prefix@,$prefix,;t t
13674 s,@program_transform_name@,$program_transform_name,;t t
13675 s,@bindir@,$bindir,;t t
13676 s,@sbindir@,$sbindir,;t t
13677 s,@libexecdir@,$libexecdir,;t t
13678 s,@datadir@,$datadir,;t t
13679 s,@sysconfdir@,$sysconfdir,;t t
13680 s,@sharedstatedir@,$sharedstatedir,;t t
13681 s,@localstatedir@,$localstatedir,;t t
13682 s,@libdir@,$libdir,;t t
13683 s,@includedir@,$includedir,;t t
13684 s,@oldincludedir@,$oldincludedir,;t t
13685 s,@infodir@,$infodir,;t t
13686 s,@mandir@,$mandir,;t t
13687 s,@build_alias@,$build_alias,;t t
13688 s,@host_alias@,$host_alias,;t t
13689 s,@target_alias@,$target_alias,;t t
13690 s,@DEFS@,$DEFS,;t t
13691 s,@ECHO_C@,$ECHO_C,;t t
13692 s,@ECHO_N@,$ECHO_N,;t t
13693 s,@ECHO_T@,$ECHO_T,;t t
13694 s,@LIBS@,$LIBS,;t t
13695 s,@build@,$build,;t t
13696 s,@build_cpu@,$build_cpu,;t t
13697 s,@build_vendor@,$build_vendor,;t t
13698 s,@build_os@,$build_os,;t t
13699 s,@host@,$host,;t t
13700 s,@host_cpu@,$host_cpu,;t t
13701 s,@host_vendor@,$host_vendor,;t t
13702 s,@host_os@,$host_os,;t t
13703 s,@SHLICC2@,$SHLICC2,;t t
13704 s,@CC@,$CC,;t t
13705 s,@CFLAGS@,$CFLAGS,;t t
13706 s,@LDFLAGS@,$LDFLAGS,;t t
13707 s,@CPPFLAGS@,$CPPFLAGS,;t t
13708 s,@ac_ct_CC@,$ac_ct_CC,;t t
13709 s,@EXEEXT@,$EXEEXT,;t t
13710 s,@OBJEXT@,$OBJEXT,;t t
13711 s,@CPP@,$CPP,;t t
13712 s,@EGREP@,$EGREP,;t t
13713 s,@LIBOBJS@,$LIBOBJS,;t t
13714 s,@V_CCOPT@,$V_CCOPT,;t t
13715 s,@V_DEFS@,$V_DEFS,;t t
13716 s,@V_GROUP@,$V_GROUP,;t t
13717 s,@V_INCLS@,$V_INCLS,;t t
13718 s,@V_PCAPDEP@,$V_PCAPDEP,;t t
13719 s,@LOCALSRC@,$LOCALSRC,;t t
13720 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
13721 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
13722 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
13723 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
13724 CEOF
13725
13726 _ACEOF
13727
13728   cat >>$CONFIG_STATUS <<\_ACEOF
13729   # Split the substitutions into bite-sized pieces for seds with
13730   # small command number limits, like on Digital OSF/1 and HP-UX.
13731   ac_max_sed_lines=48
13732   ac_sed_frag=1 # Number of current file.
13733   ac_beg=1 # First line for current file.
13734   ac_end=$ac_max_sed_lines # Line after last line for current file.
13735   ac_more_lines=:
13736   ac_sed_cmds=
13737   while $ac_more_lines; do
13738     if test $ac_beg -gt 1; then
13739       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13740     else
13741       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13742     fi
13743     if test ! -s $tmp/subs.frag; then
13744       ac_more_lines=false
13745     else
13746       # The purpose of the label and of the branching condition is to
13747       # speed up the sed processing (if there are no `@' at all, there
13748       # is no need to browse any of the substitutions).
13749       # These are the two extra sed commands mentioned above.
13750       (echo ':t
13751   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
13752       if test -z "$ac_sed_cmds"; then
13753         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
13754       else
13755         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
13756       fi
13757       ac_sed_frag=`expr $ac_sed_frag + 1`
13758       ac_beg=$ac_end
13759       ac_end=`expr $ac_end + $ac_max_sed_lines`
13760     fi
13761   done
13762   if test -z "$ac_sed_cmds"; then
13763     ac_sed_cmds=cat
13764   fi
13765 fi # test -n "$CONFIG_FILES"
13766
13767 _ACEOF
13768 cat >>$CONFIG_STATUS <<\_ACEOF
13769 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
13770   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13771   case $ac_file in
13772   - | *:- | *:-:* ) # input from stdin
13773         cat >$tmp/stdin
13774         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13775         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13776   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13777         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13778   * )   ac_file_in=$ac_file.in ;;
13779   esac
13780
13781   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
13782   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13783 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13784          X"$ac_file" : 'X\(//\)[^/]' \| \
13785          X"$ac_file" : 'X\(//\)$' \| \
13786          X"$ac_file" : 'X\(/\)' \| \
13787          .     : '\(.\)' 2>/dev/null ||
13788 echo X"$ac_file" |
13789     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13790           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13791           /^X\(\/\/\)$/{ s//\1/; q; }
13792           /^X\(\/\).*/{ s//\1/; q; }
13793           s/.*/./; q'`
13794   { if $as_mkdir_p; then
13795     mkdir -p "$ac_dir"
13796   else
13797     as_dir="$ac_dir"
13798     as_dirs=
13799     while test ! -d "$as_dir"; do
13800       as_dirs="$as_dir $as_dirs"
13801       as_dir=`(dirname "$as_dir") 2>/dev/null ||
13802 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13803          X"$as_dir" : 'X\(//\)[^/]' \| \
13804          X"$as_dir" : 'X\(//\)$' \| \
13805          X"$as_dir" : 'X\(/\)' \| \
13806          .     : '\(.\)' 2>/dev/null ||
13807 echo X"$as_dir" |
13808     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13809           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13810           /^X\(\/\/\)$/{ s//\1/; q; }
13811           /^X\(\/\).*/{ s//\1/; q; }
13812           s/.*/./; q'`
13813     done
13814     test ! -n "$as_dirs" || mkdir $as_dirs
13815   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13816 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13817    { (exit 1); exit 1; }; }; }
13818
13819   ac_builddir=.
13820
13821 if test "$ac_dir" != .; then
13822   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13823   # A "../" for each directory in $ac_dir_suffix.
13824   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13825 else
13826   ac_dir_suffix= ac_top_builddir=
13827 fi
13828
13829 case $srcdir in
13830   .)  # No --srcdir option.  We are building in place.
13831     ac_srcdir=.
13832     if test -z "$ac_top_builddir"; then
13833        ac_top_srcdir=.
13834     else
13835        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13836     fi ;;
13837   [\\/]* | ?:[\\/]* )  # Absolute path.
13838     ac_srcdir=$srcdir$ac_dir_suffix;
13839     ac_top_srcdir=$srcdir ;;
13840   *) # Relative path.
13841     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13842     ac_top_srcdir=$ac_top_builddir$srcdir ;;
13843 esac
13844
13845 # Do not use `cd foo && pwd` to compute absolute paths, because
13846 # the directories may not exist.
13847 case `pwd` in
13848 .) ac_abs_builddir="$ac_dir";;
13849 *)
13850   case "$ac_dir" in
13851   .) ac_abs_builddir=`pwd`;;
13852   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13853   *) ac_abs_builddir=`pwd`/"$ac_dir";;
13854   esac;;
13855 esac
13856 case $ac_abs_builddir in
13857 .) ac_abs_top_builddir=${ac_top_builddir}.;;
13858 *)
13859   case ${ac_top_builddir}. in
13860   .) ac_abs_top_builddir=$ac_abs_builddir;;
13861   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13862   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13863   esac;;
13864 esac
13865 case $ac_abs_builddir in
13866 .) ac_abs_srcdir=$ac_srcdir;;
13867 *)
13868   case $ac_srcdir in
13869   .) ac_abs_srcdir=$ac_abs_builddir;;
13870   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13871   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13872   esac;;
13873 esac
13874 case $ac_abs_builddir in
13875 .) ac_abs_top_srcdir=$ac_top_srcdir;;
13876 *)
13877   case $ac_top_srcdir in
13878   .) ac_abs_top_srcdir=$ac_abs_builddir;;
13879   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13880   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13881   esac;;
13882 esac
13883
13884
13885   case $INSTALL in
13886   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13887   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
13888   esac
13889
13890   if test x"$ac_file" != x-; then
13891     { echo "$as_me:$LINENO: creating $ac_file" >&5
13892 echo "$as_me: creating $ac_file" >&6;}
13893     rm -f "$ac_file"
13894   fi
13895   # Let's still pretend it is `configure' which instantiates (i.e., don't
13896   # use $as_me), people would be surprised to read:
13897   #    /* config.h.  Generated by config.status.  */
13898   if test x"$ac_file" = x-; then
13899     configure_input=
13900   else
13901     configure_input="$ac_file.  "
13902   fi
13903   configure_input=$configure_input"Generated from `echo $ac_file_in |
13904                                      sed 's,.*/,,'` by configure."
13905
13906   # First look for the input files in the build tree, otherwise in the
13907   # src tree.
13908   ac_file_inputs=`IFS=:
13909     for f in $ac_file_in; do
13910       case $f in
13911       -) echo $tmp/stdin ;;
13912       [\\/$]*)
13913          # Absolute (can't be DOS-style, as IFS=:)
13914          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13915 echo "$as_me: error: cannot find input file: $f" >&2;}
13916    { (exit 1); exit 1; }; }
13917          echo "$f";;
13918       *) # Relative
13919          if test -f "$f"; then
13920            # Build tree
13921            echo "$f"
13922          elif test -f "$srcdir/$f"; then
13923            # Source tree
13924            echo "$srcdir/$f"
13925          else
13926            # /dev/null tree
13927            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13928 echo "$as_me: error: cannot find input file: $f" >&2;}
13929    { (exit 1); exit 1; }; }
13930          fi;;
13931       esac
13932     done` || { (exit 1); exit 1; }
13933 _ACEOF
13934 cat >>$CONFIG_STATUS <<_ACEOF
13935   sed "$ac_vpsub
13936 $extrasub
13937 _ACEOF
13938 cat >>$CONFIG_STATUS <<\_ACEOF
13939 :t
13940 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13941 s,@configure_input@,$configure_input,;t t
13942 s,@srcdir@,$ac_srcdir,;t t
13943 s,@abs_srcdir@,$ac_abs_srcdir,;t t
13944 s,@top_srcdir@,$ac_top_srcdir,;t t
13945 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
13946 s,@builddir@,$ac_builddir,;t t
13947 s,@abs_builddir@,$ac_abs_builddir,;t t
13948 s,@top_builddir@,$ac_top_builddir,;t t
13949 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
13950 s,@INSTALL@,$ac_INSTALL,;t t
13951 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
13952   rm -f $tmp/stdin
13953   if test x"$ac_file" != x-; then
13954     mv $tmp/out $ac_file
13955   else
13956     cat $tmp/out
13957     rm -f $tmp/out
13958   fi
13959
13960 done
13961 _ACEOF
13962 cat >>$CONFIG_STATUS <<\_ACEOF
13963
13964 #
13965 # CONFIG_HEADER section.
13966 #
13967
13968 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
13969 # NAME is the cpp macro being defined and VALUE is the value it is being given.
13970 #
13971 # ac_d sets the value in "#define NAME VALUE" lines.
13972 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
13973 ac_dB='[         ].*$,\1#\2'
13974 ac_dC=' '
13975 ac_dD=',;t'
13976 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
13977 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
13978 ac_uB='$,\1#\2define\3'
13979 ac_uC=' '
13980 ac_uD=',;t'
13981
13982 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
13983   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13984   case $ac_file in
13985   - | *:- | *:-:* ) # input from stdin
13986         cat >$tmp/stdin
13987         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13988         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13989   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13990         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13991   * )   ac_file_in=$ac_file.in ;;
13992   esac
13993
13994   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
13995 echo "$as_me: creating $ac_file" >&6;}
13996
13997   # First look for the input files in the build tree, otherwise in the
13998   # src tree.
13999   ac_file_inputs=`IFS=:
14000     for f in $ac_file_in; do
14001       case $f in
14002       -) echo $tmp/stdin ;;
14003       [\\/$]*)
14004          # Absolute (can't be DOS-style, as IFS=:)
14005          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14006 echo "$as_me: error: cannot find input file: $f" >&2;}
14007    { (exit 1); exit 1; }; }
14008          # Do quote $f, to prevent DOS paths from being IFS'd.
14009          echo "$f";;
14010       *) # Relative
14011          if test -f "$f"; then
14012            # Build tree
14013            echo "$f"
14014          elif test -f "$srcdir/$f"; then
14015            # Source tree
14016            echo "$srcdir/$f"
14017          else
14018            # /dev/null tree
14019            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14020 echo "$as_me: error: cannot find input file: $f" >&2;}
14021    { (exit 1); exit 1; }; }
14022          fi;;
14023       esac
14024     done` || { (exit 1); exit 1; }
14025   # Remove the trailing spaces.
14026   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
14027
14028 _ACEOF
14029
14030 # Transform confdefs.h into two sed scripts, `conftest.defines' and
14031 # `conftest.undefs', that substitutes the proper values into
14032 # config.h.in to produce config.h.  The first handles `#define'
14033 # templates, and the second `#undef' templates.
14034 # And first: Protect against being on the right side of a sed subst in
14035 # config.status.  Protect against being in an unquoted here document
14036 # in config.status.
14037 rm -f conftest.defines conftest.undefs
14038 # Using a here document instead of a string reduces the quoting nightmare.
14039 # Putting comments in sed scripts is not portable.
14040 #
14041 # `end' is used to avoid that the second main sed command (meant for
14042 # 0-ary CPP macros) applies to n-ary macro definitions.
14043 # See the Autoconf documentation for `clear'.
14044 cat >confdef2sed.sed <<\_ACEOF
14045 s/[\\&,]/\\&/g
14046 s,[\\$`],\\&,g
14047 t clear
14048 : clear
14049 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
14050 t end
14051 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
14052 : end
14053 _ACEOF
14054 # If some macros were called several times there might be several times
14055 # the same #defines, which is useless.  Nevertheless, we may not want to
14056 # sort them, since we want the *last* AC-DEFINE to be honored.
14057 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
14058 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
14059 rm -f confdef2sed.sed
14060
14061 # This sed command replaces #undef with comments.  This is necessary, for
14062 # example, in the case of _POSIX_SOURCE, which is predefined and required
14063 # on some systems where configure will not decide to define it.
14064 cat >>conftest.undefs <<\_ACEOF
14065 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
14066 _ACEOF
14067
14068 # Break up conftest.defines because some shells have a limit on the size
14069 # of here documents, and old seds have small limits too (100 cmds).
14070 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
14071 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
14072 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
14073 echo '  :' >>$CONFIG_STATUS
14074 rm -f conftest.tail
14075 while grep . conftest.defines >/dev/null
14076 do
14077   # Write a limited-size here document to $tmp/defines.sed.
14078   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
14079   # Speed up: don't consider the non `#define' lines.
14080   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
14081   # Work around the forget-to-reset-the-flag bug.
14082   echo 't clr' >>$CONFIG_STATUS
14083   echo ': clr' >>$CONFIG_STATUS
14084   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
14085   echo 'CEOF
14086   sed -f $tmp/defines.sed $tmp/in >$tmp/out
14087   rm -f $tmp/in
14088   mv $tmp/out $tmp/in
14089 ' >>$CONFIG_STATUS
14090   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
14091   rm -f conftest.defines
14092   mv conftest.tail conftest.defines
14093 done
14094 rm -f conftest.defines
14095 echo '  fi # grep' >>$CONFIG_STATUS
14096 echo >>$CONFIG_STATUS
14097
14098 # Break up conftest.undefs because some shells have a limit on the size
14099 # of here documents, and old seds have small limits too (100 cmds).
14100 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
14101 rm -f conftest.tail
14102 while grep . conftest.undefs >/dev/null
14103 do
14104   # Write a limited-size here document to $tmp/undefs.sed.
14105   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
14106   # Speed up: don't consider the non `#undef'
14107   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
14108   # Work around the forget-to-reset-the-flag bug.
14109   echo 't clr' >>$CONFIG_STATUS
14110   echo ': clr' >>$CONFIG_STATUS
14111   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
14112   echo 'CEOF
14113   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
14114   rm -f $tmp/in
14115   mv $tmp/out $tmp/in
14116 ' >>$CONFIG_STATUS
14117   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
14118   rm -f conftest.undefs
14119   mv conftest.tail conftest.undefs
14120 done
14121 rm -f conftest.undefs
14122
14123 cat >>$CONFIG_STATUS <<\_ACEOF
14124   # Let's still pretend it is `configure' which instantiates (i.e., don't
14125   # use $as_me), people would be surprised to read:
14126   #    /* config.h.  Generated by config.status.  */
14127   if test x"$ac_file" = x-; then
14128     echo "/* Generated by configure.  */" >$tmp/config.h
14129   else
14130     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
14131   fi
14132   cat $tmp/in >>$tmp/config.h
14133   rm -f $tmp/in
14134   if test x"$ac_file" != x-; then
14135     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
14136       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
14137 echo "$as_me: $ac_file is unchanged" >&6;}
14138     else
14139       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
14140 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14141          X"$ac_file" : 'X\(//\)[^/]' \| \
14142          X"$ac_file" : 'X\(//\)$' \| \
14143          X"$ac_file" : 'X\(/\)' \| \
14144          .     : '\(.\)' 2>/dev/null ||
14145 echo X"$ac_file" |
14146     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14147           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14148           /^X\(\/\/\)$/{ s//\1/; q; }
14149           /^X\(\/\).*/{ s//\1/; q; }
14150           s/.*/./; q'`
14151       { if $as_mkdir_p; then
14152     mkdir -p "$ac_dir"
14153   else
14154     as_dir="$ac_dir"
14155     as_dirs=
14156     while test ! -d "$as_dir"; do
14157       as_dirs="$as_dir $as_dirs"
14158       as_dir=`(dirname "$as_dir") 2>/dev/null ||
14159 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14160          X"$as_dir" : 'X\(//\)[^/]' \| \
14161          X"$as_dir" : 'X\(//\)$' \| \
14162          X"$as_dir" : 'X\(/\)' \| \
14163          .     : '\(.\)' 2>/dev/null ||
14164 echo X"$as_dir" |
14165     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14166           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14167           /^X\(\/\/\)$/{ s//\1/; q; }
14168           /^X\(\/\).*/{ s//\1/; q; }
14169           s/.*/./; q'`
14170     done
14171     test ! -n "$as_dirs" || mkdir $as_dirs
14172   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
14173 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
14174    { (exit 1); exit 1; }; }; }
14175
14176       rm -f $ac_file
14177       mv $tmp/config.h $ac_file
14178     fi
14179   else
14180     cat $tmp/config.h
14181     rm -f $tmp/config.h
14182   fi
14183 done
14184 _ACEOF
14185 cat >>$CONFIG_STATUS <<\_ACEOF
14186
14187 #
14188 # CONFIG_COMMANDS section.
14189 #
14190 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
14191   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
14192   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
14193   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
14194 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14195          X"$ac_dest" : 'X\(//\)[^/]' \| \
14196          X"$ac_dest" : 'X\(//\)$' \| \
14197          X"$ac_dest" : 'X\(/\)' \| \
14198          .     : '\(.\)' 2>/dev/null ||
14199 echo X"$ac_dest" |
14200     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14201           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14202           /^X\(\/\/\)$/{ s//\1/; q; }
14203           /^X\(\/\).*/{ s//\1/; q; }
14204           s/.*/./; q'`
14205   { if $as_mkdir_p; then
14206     mkdir -p "$ac_dir"
14207   else
14208     as_dir="$ac_dir"
14209     as_dirs=
14210     while test ! -d "$as_dir"; do
14211       as_dirs="$as_dir $as_dirs"
14212       as_dir=`(dirname "$as_dir") 2>/dev/null ||
14213 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14214          X"$as_dir" : 'X\(//\)[^/]' \| \
14215          X"$as_dir" : 'X\(//\)$' \| \
14216          X"$as_dir" : 'X\(/\)' \| \
14217          .     : '\(.\)' 2>/dev/null ||
14218 echo X"$as_dir" |
14219     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14220           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14221           /^X\(\/\/\)$/{ s//\1/; q; }
14222           /^X\(\/\).*/{ s//\1/; q; }
14223           s/.*/./; q'`
14224     done
14225     test ! -n "$as_dirs" || mkdir $as_dirs
14226   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
14227 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
14228    { (exit 1); exit 1; }; }; }
14229
14230   ac_builddir=.
14231
14232 if test "$ac_dir" != .; then
14233   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
14234   # A "../" for each directory in $ac_dir_suffix.
14235   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
14236 else
14237   ac_dir_suffix= ac_top_builddir=
14238 fi
14239
14240 case $srcdir in
14241   .)  # No --srcdir option.  We are building in place.
14242     ac_srcdir=.
14243     if test -z "$ac_top_builddir"; then
14244        ac_top_srcdir=.
14245     else
14246        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
14247     fi ;;
14248   [\\/]* | ?:[\\/]* )  # Absolute path.
14249     ac_srcdir=$srcdir$ac_dir_suffix;
14250     ac_top_srcdir=$srcdir ;;
14251   *) # Relative path.
14252     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
14253     ac_top_srcdir=$ac_top_builddir$srcdir ;;
14254 esac
14255
14256 # Do not use `cd foo && pwd` to compute absolute paths, because
14257 # the directories may not exist.
14258 case `pwd` in
14259 .) ac_abs_builddir="$ac_dir";;
14260 *)
14261   case "$ac_dir" in
14262   .) ac_abs_builddir=`pwd`;;
14263   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
14264   *) ac_abs_builddir=`pwd`/"$ac_dir";;
14265   esac;;
14266 esac
14267 case $ac_abs_builddir in
14268 .) ac_abs_top_builddir=${ac_top_builddir}.;;
14269 *)
14270   case ${ac_top_builddir}. in
14271   .) ac_abs_top_builddir=$ac_abs_builddir;;
14272   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
14273   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
14274   esac;;
14275 esac
14276 case $ac_abs_builddir in
14277 .) ac_abs_srcdir=$ac_srcdir;;
14278 *)
14279   case $ac_srcdir in
14280   .) ac_abs_srcdir=$ac_abs_builddir;;
14281   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
14282   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
14283   esac;;
14284 esac
14285 case $ac_abs_builddir in
14286 .) ac_abs_top_srcdir=$ac_top_srcdir;;
14287 *)
14288   case $ac_top_srcdir in
14289   .) ac_abs_top_srcdir=$ac_abs_builddir;;
14290   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
14291   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
14292   esac;;
14293 esac
14294
14295
14296   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
14297 echo "$as_me: executing $ac_dest commands" >&6;}
14298   case $ac_dest in
14299     default-1 ) if test -f .devel; then
14300         echo timestamp > stamp-h
14301         cat Makefile-devel-adds >> Makefile
14302         make depend
14303 fi ;;
14304   esac
14305 done
14306 _ACEOF
14307
14308 cat >>$CONFIG_STATUS <<\_ACEOF
14309
14310 { (exit 0); exit 0; }
14311 _ACEOF
14312 chmod +x $CONFIG_STATUS
14313 ac_clean_files=$ac_clean_files_save
14314
14315
14316 # configure is writing to config.log, and then calls config.status.
14317 # config.status does its own redirection, appending to config.log.
14318 # Unfortunately, on DOS this fails, as config.log is still kept open
14319 # by configure, so config.status won't be able to write to it; its
14320 # output is simply discarded.  So we exec the FD to /dev/null,
14321 # effectively closing config.log, so it can be properly (re)opened and
14322 # appended to by config.status.  When coming back to configure, we
14323 # need to make the FD available again.
14324 if test "$no_create" != yes; then
14325   ac_cs_success=:
14326   ac_config_status_args=
14327   test "$silent" = yes &&
14328     ac_config_status_args="$ac_config_status_args --quiet"
14329   exec 5>/dev/null
14330   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14331   exec 5>>config.log
14332   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14333   # would make configure fail if this is the last instruction.
14334   $ac_cs_success || { (exit 1); exit 1; }
14335 fi
14336
14337 exit 0