1#! /bin/sh
2# From configure.in Revision: 1.204 .
3# Guess values for system-dependent variables and create Makefiles.
4# Generated by GNU Autoconf 2.61.
5#
6# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
8# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
10## --------------------- ##
11## M4sh Initialization.  ##
12## --------------------- ##
13
14# Be more Bourne compatible
15DUALCASE=1; export DUALCASE # for MKS sh
16if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17  emulate sh
18  NULLCMD=:
19  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20  # is contrary to our usage.  Disable this feature.
21  alias -g '${1+"$@"}'='"$@"'
22  setopt NO_GLOB_SUBST
23else
24  case `(set -o) 2>/dev/null` in
25  *posix*) set -o posix ;;
26esac
27
28fi
29
30
31
32
33# PATH needs CR
34# Avoid depending upon Character Ranges.
35as_cr_letters='abcdefghijklmnopqrstuvwxyz'
36as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
37as_cr_Letters=$as_cr_letters$as_cr_LETTERS
38as_cr_digits='0123456789'
39as_cr_alnum=$as_cr_Letters$as_cr_digits
40
41# The user is always right.
42if test "${PATH_SEPARATOR+set}" != set; then
43  echo "#! /bin/sh" >conf$$.sh
44  echo  "exit 0"   >>conf$$.sh
45  chmod +x conf$$.sh
46  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
47    PATH_SEPARATOR=';'
48  else
49    PATH_SEPARATOR=:
50  fi
51  rm -f conf$$.sh
52fi
53
54# Support unset when possible.
55if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
56  as_unset=unset
57else
58  as_unset=false
59fi
60
61
62# IFS
63# We need space, tab and new line, in precisely that order.  Quoting is
64# there to prevent editors from complaining about space-tab.
65# (If _AS_PATH_WALK were called with IFS unset, it would disable word
66# splitting by setting IFS to empty value.)
67as_nl='
68'
69IFS=" ""	$as_nl"
70
71# Find who we are.  Look in the path if we contain no directory separator.
72case $0 in
73  *[\\/]* ) as_myself=$0 ;;
74  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
75for as_dir in $PATH
76do
77  IFS=$as_save_IFS
78  test -z "$as_dir" && as_dir=.
79  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
80done
81IFS=$as_save_IFS
82
83     ;;
84esac
85# We did not find ourselves, most probably we were run as `sh COMMAND'
86# in which case we are not to be found in the path.
87if test "x$as_myself" = x; then
88  as_myself=$0
89fi
90if test ! -f "$as_myself"; then
91  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
92  { (exit 1); exit 1; }
93fi
94
95# Work around bugs in pre-3.0 UWIN ksh.
96for as_var in ENV MAIL MAILPATH
97do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
98done
99PS1='$ '
100PS2='> '
101PS4='+ '
102
103# NLS nuisances.
104for as_var in \
105  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
106  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
107  LC_TELEPHONE LC_TIME
108do
109  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
110    eval $as_var=C; export $as_var
111  else
112    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
113  fi
114done
115
116# Required to use basename.
117if expr a : '\(a\)' >/dev/null 2>&1 &&
118   test "X`expr 00001 : '.*\(...\)'`" = X001; then
119  as_expr=expr
120else
121  as_expr=false
122fi
123
124if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
125  as_basename=basename
126else
127  as_basename=false
128fi
129
130
131# Name of the executable.
132as_me=`$as_basename -- "$0" ||
133$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
134	 X"$0" : 'X\(//\)$' \| \
135	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
136echo X/"$0" |
137    sed '/^.*\/\([^/][^/]*\)\/*$/{
138	    s//\1/
139	    q
140	  }
141	  /^X\/\(\/\/\)$/{
142	    s//\1/
143	    q
144	  }
145	  /^X\/\(\/\).*/{
146	    s//\1/
147	    q
148	  }
149	  s/.*/./; q'`
150
151# CDPATH.
152$as_unset CDPATH
153
154
155if test "x$CONFIG_SHELL" = x; then
156  if (eval ":") 2>/dev/null; then
157  as_have_required=yes
158else
159  as_have_required=no
160fi
161
162  if test $as_have_required = yes && 	 (eval ":
163(as_func_return () {
164  (exit \$1)
165}
166as_func_success () {
167  as_func_return 0
168}
169as_func_failure () {
170  as_func_return 1
171}
172as_func_ret_success () {
173  return 0
174}
175as_func_ret_failure () {
176  return 1
177}
178
179exitcode=0
180if as_func_success; then
181  :
182else
183  exitcode=1
184  echo as_func_success failed.
185fi
186
187if as_func_failure; then
188  exitcode=1
189  echo as_func_failure succeeded.
190fi
191
192if as_func_ret_success; then
193  :
194else
195  exitcode=1
196  echo as_func_ret_success failed.
197fi
198
199if as_func_ret_failure; then
200  exitcode=1
201  echo as_func_ret_failure succeeded.
202fi
203
204if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
205  :
206else
207  exitcode=1
208  echo positional parameters were not saved.
209fi
210
211test \$exitcode = 0) || { (exit 1); exit 1; }
212
213(
214  as_lineno_1=\$LINENO
215  as_lineno_2=\$LINENO
216  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
217  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
218") 2> /dev/null; then
219  :
220else
221  as_candidate_shells=
222    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
223for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
224do
225  IFS=$as_save_IFS
226  test -z "$as_dir" && as_dir=.
227  case $as_dir in
228	 /*)
229	   for as_base in sh bash ksh sh5; do
230	     as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
231	   done;;
232       esac
233done
234IFS=$as_save_IFS
235
236
237      for as_shell in $as_candidate_shells $SHELL; do
238	 # Try only shells that exist, to save several forks.
239	 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
240		{ ("$as_shell") 2> /dev/null <<\_ASEOF
241if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
242  emulate sh
243  NULLCMD=:
244  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245  # is contrary to our usage.  Disable this feature.
246  alias -g '${1+"$@"}'='"$@"'
247  setopt NO_GLOB_SUBST
248else
249  case `(set -o) 2>/dev/null` in
250  *posix*) set -o posix ;;
251esac
252
253fi
254
255
256:
257_ASEOF
258}; then
259  CONFIG_SHELL=$as_shell
260	       as_have_required=yes
261	       if { "$as_shell" 2> /dev/null <<\_ASEOF
262if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
263  emulate sh
264  NULLCMD=:
265  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
266  # is contrary to our usage.  Disable this feature.
267  alias -g '${1+"$@"}'='"$@"'
268  setopt NO_GLOB_SUBST
269else
270  case `(set -o) 2>/dev/null` in
271  *posix*) set -o posix ;;
272esac
273
274fi
275
276
277:
278(as_func_return () {
279  (exit $1)
280}
281as_func_success () {
282  as_func_return 0
283}
284as_func_failure () {
285  as_func_return 1
286}
287as_func_ret_success () {
288  return 0
289}
290as_func_ret_failure () {
291  return 1
292}
293
294exitcode=0
295if as_func_success; then
296  :
297else
298  exitcode=1
299  echo as_func_success failed.
300fi
301
302if as_func_failure; then
303  exitcode=1
304  echo as_func_failure succeeded.
305fi
306
307if as_func_ret_success; then
308  :
309else
310  exitcode=1
311  echo as_func_ret_success failed.
312fi
313
314if as_func_ret_failure; then
315  exitcode=1
316  echo as_func_ret_failure succeeded.
317fi
318
319if ( set x; as_func_ret_success y && test x = "$1" ); then
320  :
321else
322  exitcode=1
323  echo positional parameters were not saved.
324fi
325
326test $exitcode = 0) || { (exit 1); exit 1; }
327
328(
329  as_lineno_1=$LINENO
330  as_lineno_2=$LINENO
331  test "x$as_lineno_1" != "x$as_lineno_2" &&
332  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
333
334_ASEOF
335}; then
336  break
337fi
338
339fi
340
341      done
342
343      if test "x$CONFIG_SHELL" != x; then
344  for as_var in BASH_ENV ENV
345        do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
346        done
347        export CONFIG_SHELL
348        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
349fi
350
351
352    if test $as_have_required = no; then
353  echo This script requires a shell more modern than all the
354      echo shells that I found on your system.  Please install a
355      echo modern shell, or manually run the script under such a
356      echo shell if you do have one.
357      { (exit 1); exit 1; }
358fi
359
360
361fi
362
363fi
364
365
366
367(eval "as_func_return () {
368  (exit \$1)
369}
370as_func_success () {
371  as_func_return 0
372}
373as_func_failure () {
374  as_func_return 1
375}
376as_func_ret_success () {
377  return 0
378}
379as_func_ret_failure () {
380  return 1
381}
382
383exitcode=0
384if as_func_success; then
385  :
386else
387  exitcode=1
388  echo as_func_success failed.
389fi
390
391if as_func_failure; then
392  exitcode=1
393  echo as_func_failure succeeded.
394fi
395
396if as_func_ret_success; then
397  :
398else
399  exitcode=1
400  echo as_func_ret_success failed.
401fi
402
403if as_func_ret_failure; then
404  exitcode=1
405  echo as_func_ret_failure succeeded.
406fi
407
408if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
409  :
410else
411  exitcode=1
412  echo positional parameters were not saved.
413fi
414
415test \$exitcode = 0") || {
416  echo No shell found that supports shell functions.
417  echo Please tell autoconf@gnu.org about your system,
418  echo including any error possibly output before this
419  echo message
420}
421
422
423
424  as_lineno_1=$LINENO
425  as_lineno_2=$LINENO
426  test "x$as_lineno_1" != "x$as_lineno_2" &&
427  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
428
429  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
430  # uniformly replaced by the line number.  The first 'sed' inserts a
431  # line-number line after each line using $LINENO; the second 'sed'
432  # does the real work.  The second script uses 'N' to pair each
433  # line-number line with the line containing $LINENO, and appends
434  # trailing '-' during substitution so that $LINENO is not a special
435  # case at line end.
436  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
437  # scripts with optimization help from Paolo Bonzini.  Blame Lee
438  # E. McMahon (1931-1989) for sed's syntax.  :-)
439  sed -n '
440    p
441    /[$]LINENO/=
442  ' <$as_myself |
443    sed '
444      s/[$]LINENO.*/&-/
445      t lineno
446      b
447      :lineno
448      N
449      :loop
450      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
451      t loop
452      s/-\n.*//
453    ' >$as_me.lineno &&
454  chmod +x "$as_me.lineno" ||
455    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
456   { (exit 1); exit 1; }; }
457
458  # Don't try to exec as it changes $[0], causing all sort of problems
459  # (the dirname of $[0] is not the place where we might find the
460  # original and so on.  Autoconf is especially sensitive to this).
461  . "./$as_me.lineno"
462  # Exit status is that of the last command.
463  exit
464}
465
466
467if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
468  as_dirname=dirname
469else
470  as_dirname=false
471fi
472
473ECHO_C= ECHO_N= ECHO_T=
474case `echo -n x` in
475-n*)
476  case `echo 'x\c'` in
477  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
478  *)   ECHO_C='\c';;
479  esac;;
480*)
481  ECHO_N='-n';;
482esac
483
484if expr a : '\(a\)' >/dev/null 2>&1 &&
485   test "X`expr 00001 : '.*\(...\)'`" = X001; then
486  as_expr=expr
487else
488  as_expr=false
489fi
490
491rm -f conf$$ conf$$.exe conf$$.file
492if test -d conf$$.dir; then
493  rm -f conf$$.dir/conf$$.file
494else
495  rm -f conf$$.dir
496  mkdir conf$$.dir
497fi
498echo >conf$$.file
499if ln -s conf$$.file conf$$ 2>/dev/null; then
500  as_ln_s='ln -s'
501  # ... but there are two gotchas:
502  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
503  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
504  # In both cases, we have to default to `cp -p'.
505  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
506    as_ln_s='cp -p'
507elif ln conf$$.file conf$$ 2>/dev/null; then
508  as_ln_s=ln
509else
510  as_ln_s='cp -p'
511fi
512rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
513rmdir conf$$.dir 2>/dev/null
514
515if mkdir -p . 2>/dev/null; then
516  as_mkdir_p=:
517else
518  test -d ./-p && rmdir ./-p
519  as_mkdir_p=false
520fi
521
522if test -x / >/dev/null 2>&1; then
523  as_test_x='test -x'
524else
525  if ls -dL / >/dev/null 2>&1; then
526    as_ls_L_option=L
527  else
528    as_ls_L_option=
529  fi
530  as_test_x='
531    eval sh -c '\''
532      if test -d "$1"; then
533        test -d "$1/.";
534      else
535	case $1 in
536        -*)set "./$1";;
537	esac;
538	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
539	???[sx]*):;;*)false;;esac;fi
540    '\'' sh
541  '
542fi
543as_executable_p=$as_test_x
544
545# Sed expression to map a string onto a valid CPP name.
546as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
547
548# Sed expression to map a string onto a valid variable name.
549as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
550
551
552
553exec 7<&0 </dev/null 6>&1
554
555# Name of the host.
556# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
557# so uname gets run too.
558ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
559
560#
561# Initializations.
562#
563ac_default_prefix=/usr/local
564ac_clean_files=
565ac_config_libobj_dir=.
566LIBOBJS=
567cross_compiling=no
568subdirs=
569MFLAGS=
570MAKEFLAGS=
571SHELL=${CONFIG_SHELL-/bin/sh}
572
573# Identity of this package.
574PACKAGE_NAME=
575PACKAGE_TARNAME=
576PACKAGE_VERSION=
577PACKAGE_STRING=
578PACKAGE_BUGREPORT=
579
580ac_unique_file="tcpdump.c"
581# Factoring default headers for most tests.
582ac_includes_default="\
583#include <stdio.h>
584#ifdef HAVE_SYS_TYPES_H
585# include <sys/types.h>
586#endif
587#ifdef HAVE_SYS_STAT_H
588# include <sys/stat.h>
589#endif
590#ifdef STDC_HEADERS
591# include <stdlib.h>
592# include <stddef.h>
593#else
594# ifdef HAVE_STDLIB_H
595#  include <stdlib.h>
596# endif
597#endif
598#ifdef HAVE_STRING_H
599# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
600#  include <memory.h>
601# endif
602# include <string.h>
603#endif
604#ifdef HAVE_STRINGS_H
605# include <strings.h>
606#endif
607#ifdef HAVE_INTTYPES_H
608# include <inttypes.h>
609#endif
610#ifdef HAVE_STDINT_H
611# include <stdint.h>
612#endif
613#ifdef HAVE_UNISTD_H
614# include <unistd.h>
615#endif"
616
617ac_subst_vars='SHELL
618PATH_SEPARATOR
619PACKAGE_NAME
620PACKAGE_TARNAME
621PACKAGE_VERSION
622PACKAGE_STRING
623PACKAGE_BUGREPORT
624exec_prefix
625prefix
626program_transform_name
627bindir
628sbindir
629libexecdir
630datarootdir
631datadir
632sysconfdir
633sharedstatedir
634localstatedir
635includedir
636oldincludedir
637docdir
638infodir
639htmldir
640dvidir
641pdfdir
642psdir
643libdir
644localedir
645mandir
646DEFS
647ECHO_C
648ECHO_N
649ECHO_T
650LIBS
651build_alias
652host_alias
653target_alias
654build
655build_cpu
656build_vendor
657build_os
658host
659host_cpu
660host_vendor
661host_os
662SHLICC2
663CC
664CFLAGS
665LDFLAGS
666CPPFLAGS
667ac_ct_CC
668EXEEXT
669OBJEXT
670CPP
671GREP
672EGREP
673LIBOBJS
674PCAP_CONFIG
675RANLIB
676V_CCOPT
677V_DEFS
678V_GROUP
679V_INCLS
680V_PCAPDEP
681LOCALSRC
682MAN_FILE_FORMATS
683MAN_MISC_INFO
684INSTALL_PROGRAM
685INSTALL_SCRIPT
686INSTALL_DATA
687LTLIBOBJS'
688ac_subst_files=''
689      ac_precious_vars='build_alias
690host_alias
691target_alias
692CC
693CFLAGS
694LDFLAGS
695LIBS
696CPPFLAGS
697CPP'
698
699
700# Initialize some variables set by options.
701ac_init_help=
702ac_init_version=false
703# The variables have the same names as the options, with
704# dashes changed to underlines.
705cache_file=/dev/null
706exec_prefix=NONE
707no_create=
708no_recursion=
709prefix=NONE
710program_prefix=NONE
711program_suffix=NONE
712program_transform_name=s,x,x,
713silent=
714site=
715srcdir=
716verbose=
717x_includes=NONE
718x_libraries=NONE
719
720# Installation directory options.
721# These are left unexpanded so users can "make install exec_prefix=/foo"
722# and all the variables that are supposed to be based on exec_prefix
723# by default will actually change.
724# Use braces instead of parens because sh, perl, etc. also accept them.
725# (The list follows the same order as the GNU Coding Standards.)
726bindir='${exec_prefix}/bin'
727sbindir='${exec_prefix}/sbin'
728libexecdir='${exec_prefix}/libexec'
729datarootdir='${prefix}/share'
730datadir='${datarootdir}'
731sysconfdir='${prefix}/etc'
732sharedstatedir='${prefix}/com'
733localstatedir='${prefix}/var'
734includedir='${prefix}/include'
735oldincludedir='/usr/include'
736docdir='${datarootdir}/doc/${PACKAGE}'
737infodir='${datarootdir}/info'
738htmldir='${docdir}'
739dvidir='${docdir}'
740pdfdir='${docdir}'
741psdir='${docdir}'
742libdir='${exec_prefix}/lib'
743localedir='${datarootdir}/locale'
744mandir='${datarootdir}/man'
745
746ac_prev=
747ac_dashdash=
748for ac_option
749do
750  # If the previous option needs an argument, assign it.
751  if test -n "$ac_prev"; then
752    eval $ac_prev=\$ac_option
753    ac_prev=
754    continue
755  fi
756
757  case $ac_option in
758  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
759  *)	ac_optarg=yes ;;
760  esac
761
762  # Accept the important Cygnus configure options, so we can diagnose typos.
763
764  case $ac_dashdash$ac_option in
765  --)
766    ac_dashdash=yes ;;
767
768  -bindir | --bindir | --bindi | --bind | --bin | --bi)
769    ac_prev=bindir ;;
770  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
771    bindir=$ac_optarg ;;
772
773  -build | --build | --buil | --bui | --bu)
774    ac_prev=build_alias ;;
775  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
776    build_alias=$ac_optarg ;;
777
778  -cache-file | --cache-file | --cache-fil | --cache-fi \
779  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
780    ac_prev=cache_file ;;
781  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
782  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
783    cache_file=$ac_optarg ;;
784
785  --config-cache | -C)
786    cache_file=config.cache ;;
787
788  -datadir | --datadir | --datadi | --datad)
789    ac_prev=datadir ;;
790  -datadir=* | --datadir=* | --datadi=* | --datad=*)
791    datadir=$ac_optarg ;;
792
793  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
794  | --dataroo | --dataro | --datar)
795    ac_prev=datarootdir ;;
796  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
797  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
798    datarootdir=$ac_optarg ;;
799
800  -disable-* | --disable-*)
801    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
802    # Reject names that are not valid shell variable names.
803    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
804      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
805   { (exit 1); exit 1; }; }
806    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
807    eval enable_$ac_feature=no ;;
808
809  -docdir | --docdir | --docdi | --doc | --do)
810    ac_prev=docdir ;;
811  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
812    docdir=$ac_optarg ;;
813
814  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
815    ac_prev=dvidir ;;
816  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
817    dvidir=$ac_optarg ;;
818
819  -enable-* | --enable-*)
820    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
821    # Reject names that are not valid shell variable names.
822    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
823      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
824   { (exit 1); exit 1; }; }
825    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
826    eval enable_$ac_feature=\$ac_optarg ;;
827
828  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
829  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
830  | --exec | --exe | --ex)
831    ac_prev=exec_prefix ;;
832  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
833  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
834  | --exec=* | --exe=* | --ex=*)
835    exec_prefix=$ac_optarg ;;
836
837  -gas | --gas | --ga | --g)
838    # Obsolete; use --with-gas.
839    with_gas=yes ;;
840
841  -help | --help | --hel | --he | -h)
842    ac_init_help=long ;;
843  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
844    ac_init_help=recursive ;;
845  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
846    ac_init_help=short ;;
847
848  -host | --host | --hos | --ho)
849    ac_prev=host_alias ;;
850  -host=* | --host=* | --hos=* | --ho=*)
851    host_alias=$ac_optarg ;;
852
853  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
854    ac_prev=htmldir ;;
855  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
856  | --ht=*)
857    htmldir=$ac_optarg ;;
858
859  -includedir | --includedir | --includedi | --included | --include \
860  | --includ | --inclu | --incl | --inc)
861    ac_prev=includedir ;;
862  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
863  | --includ=* | --inclu=* | --incl=* | --inc=*)
864    includedir=$ac_optarg ;;
865
866  -infodir | --infodir | --infodi | --infod | --info | --inf)
867    ac_prev=infodir ;;
868  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
869    infodir=$ac_optarg ;;
870
871  -libdir | --libdir | --libdi | --libd)
872    ac_prev=libdir ;;
873  -libdir=* | --libdir=* | --libdi=* | --libd=*)
874    libdir=$ac_optarg ;;
875
876  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
877  | --libexe | --libex | --libe)
878    ac_prev=libexecdir ;;
879  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
880  | --libexe=* | --libex=* | --libe=*)
881    libexecdir=$ac_optarg ;;
882
883  -localedir | --localedir | --localedi | --localed | --locale)
884    ac_prev=localedir ;;
885  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
886    localedir=$ac_optarg ;;
887
888  -localstatedir | --localstatedir | --localstatedi | --localstated \
889  | --localstate | --localstat | --localsta | --localst | --locals)
890    ac_prev=localstatedir ;;
891  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
892  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
893    localstatedir=$ac_optarg ;;
894
895  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
896    ac_prev=mandir ;;
897  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
898    mandir=$ac_optarg ;;
899
900  -nfp | --nfp | --nf)
901    # Obsolete; use --without-fp.
902    with_fp=no ;;
903
904  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
905  | --no-cr | --no-c | -n)
906    no_create=yes ;;
907
908  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
909  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
910    no_recursion=yes ;;
911
912  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
913  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
914  | --oldin | --oldi | --old | --ol | --o)
915    ac_prev=oldincludedir ;;
916  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
917  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
918  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
919    oldincludedir=$ac_optarg ;;
920
921  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
922    ac_prev=prefix ;;
923  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
924    prefix=$ac_optarg ;;
925
926  -program-prefix | --program-prefix | --program-prefi | --program-pref \
927  | --program-pre | --program-pr | --program-p)
928    ac_prev=program_prefix ;;
929  -program-prefix=* | --program-prefix=* | --program-prefi=* \
930  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
931    program_prefix=$ac_optarg ;;
932
933  -program-suffix | --program-suffix | --program-suffi | --program-suff \
934  | --program-suf | --program-su | --program-s)
935    ac_prev=program_suffix ;;
936  -program-suffix=* | --program-suffix=* | --program-suffi=* \
937  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
938    program_suffix=$ac_optarg ;;
939
940  -program-transform-name | --program-transform-name \
941  | --program-transform-nam | --program-transform-na \
942  | --program-transform-n | --program-transform- \
943  | --program-transform | --program-transfor \
944  | --program-transfo | --program-transf \
945  | --program-trans | --program-tran \
946  | --progr-tra | --program-tr | --program-t)
947    ac_prev=program_transform_name ;;
948  -program-transform-name=* | --program-transform-name=* \
949  | --program-transform-nam=* | --program-transform-na=* \
950  | --program-transform-n=* | --program-transform-=* \
951  | --program-transform=* | --program-transfor=* \
952  | --program-transfo=* | --program-transf=* \
953  | --program-trans=* | --program-tran=* \
954  | --progr-tra=* | --program-tr=* | --program-t=*)
955    program_transform_name=$ac_optarg ;;
956
957  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
958    ac_prev=pdfdir ;;
959  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
960    pdfdir=$ac_optarg ;;
961
962  -psdir | --psdir | --psdi | --psd | --ps)
963    ac_prev=psdir ;;
964  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
965    psdir=$ac_optarg ;;
966
967  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
968  | -silent | --silent | --silen | --sile | --sil)
969    silent=yes ;;
970
971  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
972    ac_prev=sbindir ;;
973  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
974  | --sbi=* | --sb=*)
975    sbindir=$ac_optarg ;;
976
977  -sharedstatedir | --sharedstatedir | --sharedstatedi \
978  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
979  | --sharedst | --shareds | --shared | --share | --shar \
980  | --sha | --sh)
981    ac_prev=sharedstatedir ;;
982  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
983  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
984  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
985  | --sha=* | --sh=*)
986    sharedstatedir=$ac_optarg ;;
987
988  -site | --site | --sit)
989    ac_prev=site ;;
990  -site=* | --site=* | --sit=*)
991    site=$ac_optarg ;;
992
993  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
994    ac_prev=srcdir ;;
995  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
996    srcdir=$ac_optarg ;;
997
998  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
999  | --syscon | --sysco | --sysc | --sys | --sy)
1000    ac_prev=sysconfdir ;;
1001  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1002  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1003    sysconfdir=$ac_optarg ;;
1004
1005  -target | --target | --targe | --targ | --tar | --ta | --t)
1006    ac_prev=target_alias ;;
1007  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1008    target_alias=$ac_optarg ;;
1009
1010  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1011    verbose=yes ;;
1012
1013  -version | --version | --versio | --versi | --vers | -V)
1014    ac_init_version=: ;;
1015
1016  -with-* | --with-*)
1017    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1018    # Reject names that are not valid shell variable names.
1019    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1020      { echo "$as_me: error: invalid package name: $ac_package" >&2
1021   { (exit 1); exit 1; }; }
1022    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1023    eval with_$ac_package=\$ac_optarg ;;
1024
1025  -without-* | --without-*)
1026    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1027    # Reject names that are not valid shell variable names.
1028    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1029      { echo "$as_me: error: invalid package name: $ac_package" >&2
1030   { (exit 1); exit 1; }; }
1031    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1032    eval with_$ac_package=no ;;
1033
1034  --x)
1035    # Obsolete; use --with-x.
1036    with_x=yes ;;
1037
1038  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1039  | --x-incl | --x-inc | --x-in | --x-i)
1040    ac_prev=x_includes ;;
1041  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1042  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1043    x_includes=$ac_optarg ;;
1044
1045  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1046  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1047    ac_prev=x_libraries ;;
1048  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1049  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1050    x_libraries=$ac_optarg ;;
1051
1052  -*) { echo "$as_me: error: unrecognized option: $ac_option
1053Try \`$0 --help' for more information." >&2
1054   { (exit 1); exit 1; }; }
1055    ;;
1056
1057  *=*)
1058    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1059    # Reject names that are not valid shell variable names.
1060    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1061      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1062   { (exit 1); exit 1; }; }
1063    eval $ac_envvar=\$ac_optarg
1064    export $ac_envvar ;;
1065
1066  *)
1067    # FIXME: should be removed in autoconf 3.0.
1068    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1069    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1070      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1071    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1072    ;;
1073
1074  esac
1075done
1076
1077if test -n "$ac_prev"; then
1078  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1079  { echo "$as_me: error: missing argument to $ac_option" >&2
1080   { (exit 1); exit 1; }; }
1081fi
1082
1083# Be sure to have absolute directory names.
1084for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1085		datadir sysconfdir sharedstatedir localstatedir includedir \
1086		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1087		libdir localedir mandir
1088do
1089  eval ac_val=\$$ac_var
1090  case $ac_val in
1091    [\\/$]* | ?:[\\/]* )  continue;;
1092    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1093  esac
1094  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1095   { (exit 1); exit 1; }; }
1096done
1097
1098# There might be people who depend on the old broken behavior: `$host'
1099# used to hold the argument of --host etc.
1100# FIXME: To remove some day.
1101build=$build_alias
1102host=$host_alias
1103target=$target_alias
1104
1105# FIXME: To remove some day.
1106if test "x$host_alias" != x; then
1107  if test "x$build_alias" = x; then
1108    cross_compiling=maybe
1109    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1110    If a cross compiler is detected then cross compile mode will be used." >&2
1111  elif test "x$build_alias" != "x$host_alias"; then
1112    cross_compiling=yes
1113  fi
1114fi
1115
1116ac_tool_prefix=
1117test -n "$host_alias" && ac_tool_prefix=$host_alias-
1118
1119test "$silent" = yes && exec 6>/dev/null
1120
1121
1122ac_pwd=`pwd` && test -n "$ac_pwd" &&
1123ac_ls_di=`ls -di .` &&
1124ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1125  { echo "$as_me: error: Working directory cannot be determined" >&2
1126   { (exit 1); exit 1; }; }
1127test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1128  { echo "$as_me: error: pwd does not report name of working directory" >&2
1129   { (exit 1); exit 1; }; }
1130
1131
1132# Find the source files, if location was not specified.
1133if test -z "$srcdir"; then
1134  ac_srcdir_defaulted=yes
1135  # Try the directory containing this script, then the parent directory.
1136  ac_confdir=`$as_dirname -- "$0" ||
1137$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1138	 X"$0" : 'X\(//\)[^/]' \| \
1139	 X"$0" : 'X\(//\)$' \| \
1140	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1141echo X"$0" |
1142    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1143	    s//\1/
1144	    q
1145	  }
1146	  /^X\(\/\/\)[^/].*/{
1147	    s//\1/
1148	    q
1149	  }
1150	  /^X\(\/\/\)$/{
1151	    s//\1/
1152	    q
1153	  }
1154	  /^X\(\/\).*/{
1155	    s//\1/
1156	    q
1157	  }
1158	  s/.*/./; q'`
1159  srcdir=$ac_confdir
1160  if test ! -r "$srcdir/$ac_unique_file"; then
1161    srcdir=..
1162  fi
1163else
1164  ac_srcdir_defaulted=no
1165fi
1166if test ! -r "$srcdir/$ac_unique_file"; then
1167  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1168  { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1169   { (exit 1); exit 1; }; }
1170fi
1171ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1172ac_abs_confdir=`(
1173	cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1174   { (exit 1); exit 1; }; }
1175	pwd)`
1176# When building in place, set srcdir=.
1177if test "$ac_abs_confdir" = "$ac_pwd"; then
1178  srcdir=.
1179fi
1180# Remove unnecessary trailing slashes from srcdir.
1181# Double slashes in file names in object file debugging info
1182# mess up M-x gdb in Emacs.
1183case $srcdir in
1184*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1185esac
1186for ac_var in $ac_precious_vars; do
1187  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1188  eval ac_env_${ac_var}_value=\$${ac_var}
1189  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1190  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1191done
1192
1193#
1194# Report the --help message.
1195#
1196if test "$ac_init_help" = "long"; then
1197  # Omit some internal or obsolete options to make the list less imposing.
1198  # This message is too long to be a string in the A/UX 3.1 sh.
1199  cat <<_ACEOF
1200\`configure' configures this package to adapt to many kinds of systems.
1201
1202Usage: $0 [OPTION]... [VAR=VALUE]...
1203
1204To assign environment variables (e.g., CC, CFLAGS...), specify them as
1205VAR=VALUE.  See below for descriptions of some of the useful variables.
1206
1207Defaults for the options are specified in brackets.
1208
1209Configuration:
1210  -h, --help              display this help and exit
1211      --help=short        display options specific to this package
1212      --help=recursive    display the short help of all the included packages
1213  -V, --version           display version information and exit
1214  -q, --quiet, --silent   do not print \`checking...' messages
1215      --cache-file=FILE   cache test results in FILE [disabled]
1216  -C, --config-cache      alias for \`--cache-file=config.cache'
1217  -n, --no-create         do not create output files
1218      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1219
1220Installation directories:
1221  --prefix=PREFIX         install architecture-independent files in PREFIX
1222			  [$ac_default_prefix]
1223  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1224			  [PREFIX]
1225
1226By default, \`make install' will install all the files in
1227\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1228an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1229for instance \`--prefix=\$HOME'.
1230
1231For better control, use the options below.
1232
1233Fine tuning of the installation directories:
1234  --bindir=DIR           user executables [EPREFIX/bin]
1235  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1236  --libexecdir=DIR       program executables [EPREFIX/libexec]
1237  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1238  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1239  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1240  --libdir=DIR           object code libraries [EPREFIX/lib]
1241  --includedir=DIR       C header files [PREFIX/include]
1242  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1243  --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1244  --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1245  --infodir=DIR          info documentation [DATAROOTDIR/info]
1246  --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1247  --mandir=DIR           man documentation [DATAROOTDIR/man]
1248  --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
1249  --htmldir=DIR          html documentation [DOCDIR]
1250  --dvidir=DIR           dvi documentation [DOCDIR]
1251  --pdfdir=DIR           pdf documentation [DOCDIR]
1252  --psdir=DIR            ps documentation [DOCDIR]
1253_ACEOF
1254
1255  cat <<\_ACEOF
1256
1257System types:
1258  --build=BUILD     configure for building on BUILD [guessed]
1259  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1260_ACEOF
1261fi
1262
1263if test -n "$ac_init_help"; then
1264
1265  cat <<\_ACEOF
1266
1267Optional Features:
1268  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1269  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1270  --enable-smb            enable possibly-buggy SMB printer default=yes
1271  --disable-smb           disable possibly-buggy SMB printer
1272  --enable-ipv6           enable ipv6 (with ipv4) support
1273  --disable-ipv6          disable ipv6 support
1274
1275Optional Packages:
1276  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1277  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1278  --without-gcc           don't use gcc
1279  --with-smi              link with libsmi (allows to load MIBs on the fly to decode SNMP packets. default=yes
1280  --without-smi           don't link with libsmi
1281  --with-user=USERNAME    drop privileges by default to USERNAME
1282  --with-chroot=DIRECTORY when dropping privileges, chroot to DIRECTORY
1283  --with-crypto[=PATH]    use SSLeay libcrypto (located in directory PATH, if
1284                          supplied). [default=yes, if available]
1285
1286Some influential environment variables:
1287  CC          C compiler command
1288  CFLAGS      C compiler flags
1289  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1290              nonstandard directory <lib dir>
1291  LIBS        libraries to pass to the linker, e.g. -l<library>
1292  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1293              you have headers in a nonstandard directory <include dir>
1294  CPP         C preprocessor
1295
1296Use these variables to override the choices made by `configure' or to help
1297it to find libraries and programs with nonstandard names/locations.
1298
1299_ACEOF
1300ac_status=$?
1301fi
1302
1303if test "$ac_init_help" = "recursive"; then
1304  # If there are subdirs, report their specific --help.
1305  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1306    test -d "$ac_dir" || continue
1307    ac_builddir=.
1308
1309case "$ac_dir" in
1310.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1311*)
1312  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1313  # A ".." for each directory in $ac_dir_suffix.
1314  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1315  case $ac_top_builddir_sub in
1316  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1317  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1318  esac ;;
1319esac
1320ac_abs_top_builddir=$ac_pwd
1321ac_abs_builddir=$ac_pwd$ac_dir_suffix
1322# for backward compatibility:
1323ac_top_builddir=$ac_top_build_prefix
1324
1325case $srcdir in
1326  .)  # We are building in place.
1327    ac_srcdir=.
1328    ac_top_srcdir=$ac_top_builddir_sub
1329    ac_abs_top_srcdir=$ac_pwd ;;
1330  [\\/]* | ?:[\\/]* )  # Absolute name.
1331    ac_srcdir=$srcdir$ac_dir_suffix;
1332    ac_top_srcdir=$srcdir
1333    ac_abs_top_srcdir=$srcdir ;;
1334  *) # Relative name.
1335    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1336    ac_top_srcdir=$ac_top_build_prefix$srcdir
1337    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1338esac
1339ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1340
1341    cd "$ac_dir" || { ac_status=$?; continue; }
1342    # Check for guested configure.
1343    if test -f "$ac_srcdir/configure.gnu"; then
1344      echo &&
1345      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1346    elif test -f "$ac_srcdir/configure"; then
1347      echo &&
1348      $SHELL "$ac_srcdir/configure" --help=recursive
1349    else
1350      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1351    fi || ac_status=$?
1352    cd "$ac_pwd" || { ac_status=$?; break; }
1353  done
1354fi
1355
1356test -n "$ac_init_help" && exit $ac_status
1357if $ac_init_version; then
1358  cat <<\_ACEOF
1359configure
1360generated by GNU Autoconf 2.61
1361
1362Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
13632002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1364This configure script is free software; the Free Software Foundation
1365gives unlimited permission to copy, distribute and modify it.
1366_ACEOF
1367  exit
1368fi
1369cat >config.log <<_ACEOF
1370This file contains any messages produced by compilers while
1371running configure, to aid debugging if configure makes a mistake.
1372
1373It was created by $as_me, which was
1374generated by GNU Autoconf 2.61.  Invocation command line was
1375
1376  $ $0 $@
1377
1378_ACEOF
1379exec 5>>config.log
1380{
1381cat <<_ASUNAME
1382## --------- ##
1383## Platform. ##
1384## --------- ##
1385
1386hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1387uname -m = `(uname -m) 2>/dev/null || echo unknown`
1388uname -r = `(uname -r) 2>/dev/null || echo unknown`
1389uname -s = `(uname -s) 2>/dev/null || echo unknown`
1390uname -v = `(uname -v) 2>/dev/null || echo unknown`
1391
1392/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1393/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1394
1395/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1396/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1397/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1398/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1399/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1400/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1401/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1402
1403_ASUNAME
1404
1405as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1406for as_dir in $PATH
1407do
1408  IFS=$as_save_IFS
1409  test -z "$as_dir" && as_dir=.
1410  echo "PATH: $as_dir"
1411done
1412IFS=$as_save_IFS
1413
1414} >&5
1415
1416cat >&5 <<_ACEOF
1417
1418
1419## ----------- ##
1420## Core tests. ##
1421## ----------- ##
1422
1423_ACEOF
1424
1425
1426# Keep a trace of the command line.
1427# Strip out --no-create and --no-recursion so they do not pile up.
1428# Strip out --silent because we don't want to record it for future runs.
1429# Also quote any args containing shell meta-characters.
1430# Make two passes to allow for proper duplicate-argument suppression.
1431ac_configure_args=
1432ac_configure_args0=
1433ac_configure_args1=
1434ac_must_keep_next=false
1435for ac_pass in 1 2
1436do
1437  for ac_arg
1438  do
1439    case $ac_arg in
1440    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1441    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1442    | -silent | --silent | --silen | --sile | --sil)
1443      continue ;;
1444    *\'*)
1445      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1446    esac
1447    case $ac_pass in
1448    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1449    2)
1450      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1451      if test $ac_must_keep_next = true; then
1452	ac_must_keep_next=false # Got value, back to normal.
1453      else
1454	case $ac_arg in
1455	  *=* | --config-cache | -C | -disable-* | --disable-* \
1456	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1457	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1458	  | -with-* | --with-* | -without-* | --without-* | --x)
1459	    case "$ac_configure_args0 " in
1460	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1461	    esac
1462	    ;;
1463	  -* ) ac_must_keep_next=true ;;
1464	esac
1465      fi
1466      ac_configure_args="$ac_configure_args '$ac_arg'"
1467      ;;
1468    esac
1469  done
1470done
1471$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1472$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1473
1474# When interrupted or exit'd, cleanup temporary files, and complete
1475# config.log.  We remove comments because anyway the quotes in there
1476# would cause problems or look ugly.
1477# WARNING: Use '\'' to represent an apostrophe within the trap.
1478# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1479trap 'exit_status=$?
1480  # Save into config.log some information that might help in debugging.
1481  {
1482    echo
1483
1484    cat <<\_ASBOX
1485## ---------------- ##
1486## Cache variables. ##
1487## ---------------- ##
1488_ASBOX
1489    echo
1490    # The following way of writing the cache mishandles newlines in values,
1491(
1492  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1493    eval ac_val=\$$ac_var
1494    case $ac_val in #(
1495    *${as_nl}*)
1496      case $ac_var in #(
1497      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1498echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1499      esac
1500      case $ac_var in #(
1501      _ | IFS | as_nl) ;; #(
1502      *) $as_unset $ac_var ;;
1503      esac ;;
1504    esac
1505  done
1506  (set) 2>&1 |
1507    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1508    *${as_nl}ac_space=\ *)
1509      sed -n \
1510	"s/'\''/'\''\\\\'\'''\''/g;
1511	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1512      ;; #(
1513    *)
1514      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1515      ;;
1516    esac |
1517    sort
1518)
1519    echo
1520
1521    cat <<\_ASBOX
1522## ----------------- ##
1523## Output variables. ##
1524## ----------------- ##
1525_ASBOX
1526    echo
1527    for ac_var in $ac_subst_vars
1528    do
1529      eval ac_val=\$$ac_var
1530      case $ac_val in
1531      *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1532      esac
1533      echo "$ac_var='\''$ac_val'\''"
1534    done | sort
1535    echo
1536
1537    if test -n "$ac_subst_files"; then
1538      cat <<\_ASBOX
1539## ------------------- ##
1540## File substitutions. ##
1541## ------------------- ##
1542_ASBOX
1543      echo
1544      for ac_var in $ac_subst_files
1545      do
1546	eval ac_val=\$$ac_var
1547	case $ac_val in
1548	*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1549	esac
1550	echo "$ac_var='\''$ac_val'\''"
1551      done | sort
1552      echo
1553    fi
1554
1555    if test -s confdefs.h; then
1556      cat <<\_ASBOX
1557## ----------- ##
1558## confdefs.h. ##
1559## ----------- ##
1560_ASBOX
1561      echo
1562      cat confdefs.h
1563      echo
1564    fi
1565    test "$ac_signal" != 0 &&
1566      echo "$as_me: caught signal $ac_signal"
1567    echo "$as_me: exit $exit_status"
1568  } >&5
1569  rm -f core *.core core.conftest.* &&
1570    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1571    exit $exit_status
1572' 0
1573for ac_signal in 1 2 13 15; do
1574  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1575done
1576ac_signal=0
1577
1578# confdefs.h avoids OS command line length limits that DEFS can exceed.
1579rm -f -r conftest* confdefs.h
1580
1581# Predefined preprocessor variables.
1582
1583cat >>confdefs.h <<_ACEOF
1584#define PACKAGE_NAME "$PACKAGE_NAME"
1585_ACEOF
1586
1587
1588cat >>confdefs.h <<_ACEOF
1589#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1590_ACEOF
1591
1592
1593cat >>confdefs.h <<_ACEOF
1594#define PACKAGE_VERSION "$PACKAGE_VERSION"
1595_ACEOF
1596
1597
1598cat >>confdefs.h <<_ACEOF
1599#define PACKAGE_STRING "$PACKAGE_STRING"
1600_ACEOF
1601
1602
1603cat >>confdefs.h <<_ACEOF
1604#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1605_ACEOF
1606
1607
1608# Let the site file select an alternate cache file if it wants to.
1609# Prefer explicitly selected file to automatically selected ones.
1610if test -n "$CONFIG_SITE"; then
1611  set x "$CONFIG_SITE"
1612elif test "x$prefix" != xNONE; then
1613  set x "$prefix/share/config.site" "$prefix/etc/config.site"
1614else
1615  set x "$ac_default_prefix/share/config.site" \
1616	"$ac_default_prefix/etc/config.site"
1617fi
1618shift
1619for ac_site_file
1620do
1621  if test -r "$ac_site_file"; then
1622    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1623echo "$as_me: loading site script $ac_site_file" >&6;}
1624    sed 's/^/| /' "$ac_site_file" >&5
1625    . "$ac_site_file"
1626  fi
1627done
1628
1629if test -r "$cache_file"; then
1630  # Some versions of bash will fail to source /dev/null (special
1631  # files actually), so we avoid doing that.
1632  if test -f "$cache_file"; then
1633    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1634echo "$as_me: loading cache $cache_file" >&6;}
1635    case $cache_file in
1636      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1637      *)                      . "./$cache_file";;
1638    esac
1639  fi
1640else
1641  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1642echo "$as_me: creating cache $cache_file" >&6;}
1643  >$cache_file
1644fi
1645
1646# Check that the precious variables saved in the cache have kept the same
1647# value.
1648ac_cache_corrupted=false
1649for ac_var in $ac_precious_vars; do
1650  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1651  eval ac_new_set=\$ac_env_${ac_var}_set
1652  eval ac_old_val=\$ac_cv_env_${ac_var}_value
1653  eval ac_new_val=\$ac_env_${ac_var}_value
1654  case $ac_old_set,$ac_new_set in
1655    set,)
1656      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1657echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1658      ac_cache_corrupted=: ;;
1659    ,set)
1660      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1661echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1662      ac_cache_corrupted=: ;;
1663    ,);;
1664    *)
1665      if test "x$ac_old_val" != "x$ac_new_val"; then
1666	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1667echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1668	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1669echo "$as_me:   former value:  $ac_old_val" >&2;}
1670	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1671echo "$as_me:   current value: $ac_new_val" >&2;}
1672	ac_cache_corrupted=:
1673      fi;;
1674  esac
1675  # Pass precious variables to config.status.
1676  if test "$ac_new_set" = set; then
1677    case $ac_new_val in
1678    *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1679    *) ac_arg=$ac_var=$ac_new_val ;;
1680    esac
1681    case " $ac_configure_args " in
1682      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1683      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1684    esac
1685  fi
1686done
1687if $ac_cache_corrupted; then
1688  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1689echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1690  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1691echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1692   { (exit 1); exit 1; }; }
1693fi
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711ac_ext=c
1712ac_cpp='$CPP $CPPFLAGS'
1713ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1714ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1715ac_compiler_gnu=$ac_cv_c_compiler_gnu
1716
1717
1718
1719ac_aux_dir=
1720for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1721  if test -f "$ac_dir/install-sh"; then
1722    ac_aux_dir=$ac_dir
1723    ac_install_sh="$ac_aux_dir/install-sh -c"
1724    break
1725  elif test -f "$ac_dir/install.sh"; then
1726    ac_aux_dir=$ac_dir
1727    ac_install_sh="$ac_aux_dir/install.sh -c"
1728    break
1729  elif test -f "$ac_dir/shtool"; then
1730    ac_aux_dir=$ac_dir
1731    ac_install_sh="$ac_aux_dir/shtool install -c"
1732    break
1733  fi
1734done
1735if test -z "$ac_aux_dir"; then
1736  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1737echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1738   { (exit 1); exit 1; }; }
1739fi
1740
1741# These three variables are undocumented and unsupported,
1742# and are intended to be withdrawn in a future Autoconf release.
1743# They can cause serious problems if a builder's source tree is in a directory
1744# whose full name contains unusual characters.
1745ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1746ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1747ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1748
1749
1750# Make sure we can run config.sub.
1751$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1752  { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1753echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1754   { (exit 1); exit 1; }; }
1755
1756{ echo "$as_me:$LINENO: checking build system type" >&5
1757echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1758if test "${ac_cv_build+set}" = set; then
1759  echo $ECHO_N "(cached) $ECHO_C" >&6
1760else
1761  ac_build_alias=$build_alias
1762test "x$ac_build_alias" = x &&
1763  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1764test "x$ac_build_alias" = x &&
1765  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1766echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1767   { (exit 1); exit 1; }; }
1768ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1769  { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1770echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1771   { (exit 1); exit 1; }; }
1772
1773fi
1774{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1775echo "${ECHO_T}$ac_cv_build" >&6; }
1776case $ac_cv_build in
1777*-*-*) ;;
1778*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1779echo "$as_me: error: invalid value of canonical build" >&2;}
1780   { (exit 1); exit 1; }; };;
1781esac
1782build=$ac_cv_build
1783ac_save_IFS=$IFS; IFS='-'
1784set x $ac_cv_build
1785shift
1786build_cpu=$1
1787build_vendor=$2
1788shift; shift
1789# Remember, the first character of IFS is used to create $*,
1790# except with old shells:
1791build_os=$*
1792IFS=$ac_save_IFS
1793case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1794
1795
1796{ echo "$as_me:$LINENO: checking host system type" >&5
1797echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1798if test "${ac_cv_host+set}" = set; then
1799  echo $ECHO_N "(cached) $ECHO_C" >&6
1800else
1801  if test "x$host_alias" = x; then
1802  ac_cv_host=$ac_cv_build
1803else
1804  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1805    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1806echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1807   { (exit 1); exit 1; }; }
1808fi
1809
1810fi
1811{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1812echo "${ECHO_T}$ac_cv_host" >&6; }
1813case $ac_cv_host in
1814*-*-*) ;;
1815*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1816echo "$as_me: error: invalid value of canonical host" >&2;}
1817   { (exit 1); exit 1; }; };;
1818esac
1819host=$ac_cv_host
1820ac_save_IFS=$IFS; IFS='-'
1821set x $ac_cv_host
1822shift
1823host_cpu=$1
1824host_vendor=$2
1825shift; shift
1826# Remember, the first character of IFS is used to create $*,
1827# except with old shells:
1828host_os=$*
1829IFS=$ac_save_IFS
1830case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840# Check whether --with-gcc was given.
1841if test "${with_gcc+set}" = set; then
1842  withval=$with_gcc;
1843fi
1844
1845    V_CCOPT="-O"
1846    V_INCLS=""
1847    if test "${srcdir}" != "." ; then
1848	    V_INCLS="-I\$(srcdir)"
1849    fi
1850    if test "${CFLAGS+set}" = set; then
1851	    LBL_CFLAGS="$CFLAGS"
1852    fi
1853    if test -z "$CC" ; then
1854	    case "$host_os" in
1855
1856	    bsdi*)
1857		    # Extract the first word of "shlicc2", so it can be a program name with args.
1858set dummy shlicc2; ac_word=$2
1859{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1860echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1861if test "${ac_cv_prog_SHLICC2+set}" = set; then
1862  echo $ECHO_N "(cached) $ECHO_C" >&6
1863else
1864  if test -n "$SHLICC2"; then
1865  ac_cv_prog_SHLICC2="$SHLICC2" # Let the user override the test.
1866else
1867as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1868for as_dir in $PATH
1869do
1870  IFS=$as_save_IFS
1871  test -z "$as_dir" && as_dir=.
1872  for ac_exec_ext in '' $ac_executable_extensions; do
1873  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1874    ac_cv_prog_SHLICC2="yes"
1875    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1876    break 2
1877  fi
1878done
1879done
1880IFS=$as_save_IFS
1881
1882  test -z "$ac_cv_prog_SHLICC2" && ac_cv_prog_SHLICC2="no"
1883fi
1884fi
1885SHLICC2=$ac_cv_prog_SHLICC2
1886if test -n "$SHLICC2"; then
1887  { echo "$as_me:$LINENO: result: $SHLICC2" >&5
1888echo "${ECHO_T}$SHLICC2" >&6; }
1889else
1890  { echo "$as_me:$LINENO: result: no" >&5
1891echo "${ECHO_T}no" >&6; }
1892fi
1893
1894
1895		    if test $SHLICC2 = yes ; then
1896			    CC=shlicc2
1897			    export CC
1898		    fi
1899		    ;;
1900	    esac
1901    fi
1902    if test -z "$CC" -a "$with_gcc" = no ; then
1903	    CC=cc
1904	    export CC
1905    fi
1906
1907ac_ext=c
1908ac_cpp='$CPP $CPPFLAGS'
1909ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1910ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1911ac_compiler_gnu=$ac_cv_c_compiler_gnu
1912if test -n "$ac_tool_prefix"; then
1913  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1914set dummy ${ac_tool_prefix}gcc; ac_word=$2
1915{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1916echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1917if test "${ac_cv_prog_CC+set}" = set; then
1918  echo $ECHO_N "(cached) $ECHO_C" >&6
1919else
1920  if test -n "$CC"; then
1921  ac_cv_prog_CC="$CC" # Let the user override the test.
1922else
1923as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1924for as_dir in $PATH
1925do
1926  IFS=$as_save_IFS
1927  test -z "$as_dir" && as_dir=.
1928  for ac_exec_ext in '' $ac_executable_extensions; do
1929  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1930    ac_cv_prog_CC="${ac_tool_prefix}gcc"
1931    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1932    break 2
1933  fi
1934done
1935done
1936IFS=$as_save_IFS
1937
1938fi
1939fi
1940CC=$ac_cv_prog_CC
1941if test -n "$CC"; then
1942  { echo "$as_me:$LINENO: result: $CC" >&5
1943echo "${ECHO_T}$CC" >&6; }
1944else
1945  { echo "$as_me:$LINENO: result: no" >&5
1946echo "${ECHO_T}no" >&6; }
1947fi
1948
1949
1950fi
1951if test -z "$ac_cv_prog_CC"; then
1952  ac_ct_CC=$CC
1953  # Extract the first word of "gcc", so it can be a program name with args.
1954set dummy gcc; ac_word=$2
1955{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1956echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1957if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1958  echo $ECHO_N "(cached) $ECHO_C" >&6
1959else
1960  if test -n "$ac_ct_CC"; then
1961  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1962else
1963as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1964for as_dir in $PATH
1965do
1966  IFS=$as_save_IFS
1967  test -z "$as_dir" && as_dir=.
1968  for ac_exec_ext in '' $ac_executable_extensions; do
1969  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1970    ac_cv_prog_ac_ct_CC="gcc"
1971    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1972    break 2
1973  fi
1974done
1975done
1976IFS=$as_save_IFS
1977
1978fi
1979fi
1980ac_ct_CC=$ac_cv_prog_ac_ct_CC
1981if test -n "$ac_ct_CC"; then
1982  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1983echo "${ECHO_T}$ac_ct_CC" >&6; }
1984else
1985  { echo "$as_me:$LINENO: result: no" >&5
1986echo "${ECHO_T}no" >&6; }
1987fi
1988
1989  if test "x$ac_ct_CC" = x; then
1990    CC=""
1991  else
1992    case $cross_compiling:$ac_tool_warned in
1993yes:)
1994{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1995whose name does not start with the host triplet.  If you think this
1996configuration is useful to you, please write to autoconf@gnu.org." >&5
1997echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1998whose name does not start with the host triplet.  If you think this
1999configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2000ac_tool_warned=yes ;;
2001esac
2002    CC=$ac_ct_CC
2003  fi
2004else
2005  CC="$ac_cv_prog_CC"
2006fi
2007
2008if test -z "$CC"; then
2009          if test -n "$ac_tool_prefix"; then
2010    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2011set dummy ${ac_tool_prefix}cc; ac_word=$2
2012{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2013echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2014if test "${ac_cv_prog_CC+set}" = set; then
2015  echo $ECHO_N "(cached) $ECHO_C" >&6
2016else
2017  if test -n "$CC"; then
2018  ac_cv_prog_CC="$CC" # Let the user override the test.
2019else
2020as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2021for as_dir in $PATH
2022do
2023  IFS=$as_save_IFS
2024  test -z "$as_dir" && as_dir=.
2025  for ac_exec_ext in '' $ac_executable_extensions; do
2026  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2027    ac_cv_prog_CC="${ac_tool_prefix}cc"
2028    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2029    break 2
2030  fi
2031done
2032done
2033IFS=$as_save_IFS
2034
2035fi
2036fi
2037CC=$ac_cv_prog_CC
2038if test -n "$CC"; then
2039  { echo "$as_me:$LINENO: result: $CC" >&5
2040echo "${ECHO_T}$CC" >&6; }
2041else
2042  { echo "$as_me:$LINENO: result: no" >&5
2043echo "${ECHO_T}no" >&6; }
2044fi
2045
2046
2047  fi
2048fi
2049if test -z "$CC"; then
2050  # Extract the first word of "cc", so it can be a program name with args.
2051set dummy cc; ac_word=$2
2052{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2053echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2054if test "${ac_cv_prog_CC+set}" = set; then
2055  echo $ECHO_N "(cached) $ECHO_C" >&6
2056else
2057  if test -n "$CC"; then
2058  ac_cv_prog_CC="$CC" # Let the user override the test.
2059else
2060  ac_prog_rejected=no
2061as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2062for as_dir in $PATH
2063do
2064  IFS=$as_save_IFS
2065  test -z "$as_dir" && as_dir=.
2066  for ac_exec_ext in '' $ac_executable_extensions; do
2067  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2068    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2069       ac_prog_rejected=yes
2070       continue
2071     fi
2072    ac_cv_prog_CC="cc"
2073    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2074    break 2
2075  fi
2076done
2077done
2078IFS=$as_save_IFS
2079
2080if test $ac_prog_rejected = yes; then
2081  # We found a bogon in the path, so make sure we never use it.
2082  set dummy $ac_cv_prog_CC
2083  shift
2084  if test $# != 0; then
2085    # We chose a different compiler from the bogus one.
2086    # However, it has the same basename, so the bogon will be chosen
2087    # first if we set CC to just the basename; use the full file name.
2088    shift
2089    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2090  fi
2091fi
2092fi
2093fi
2094CC=$ac_cv_prog_CC
2095if test -n "$CC"; then
2096  { echo "$as_me:$LINENO: result: $CC" >&5
2097echo "${ECHO_T}$CC" >&6; }
2098else
2099  { echo "$as_me:$LINENO: result: no" >&5
2100echo "${ECHO_T}no" >&6; }
2101fi
2102
2103
2104fi
2105if test -z "$CC"; then
2106  if test -n "$ac_tool_prefix"; then
2107  for ac_prog in cl.exe
2108  do
2109    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2110set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2111{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2112echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2113if test "${ac_cv_prog_CC+set}" = set; then
2114  echo $ECHO_N "(cached) $ECHO_C" >&6
2115else
2116  if test -n "$CC"; then
2117  ac_cv_prog_CC="$CC" # Let the user override the test.
2118else
2119as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2120for as_dir in $PATH
2121do
2122  IFS=$as_save_IFS
2123  test -z "$as_dir" && as_dir=.
2124  for ac_exec_ext in '' $ac_executable_extensions; do
2125  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2126    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2127    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2128    break 2
2129  fi
2130done
2131done
2132IFS=$as_save_IFS
2133
2134fi
2135fi
2136CC=$ac_cv_prog_CC
2137if test -n "$CC"; then
2138  { echo "$as_me:$LINENO: result: $CC" >&5
2139echo "${ECHO_T}$CC" >&6; }
2140else
2141  { echo "$as_me:$LINENO: result: no" >&5
2142echo "${ECHO_T}no" >&6; }
2143fi
2144
2145
2146    test -n "$CC" && break
2147  done
2148fi
2149if test -z "$CC"; then
2150  ac_ct_CC=$CC
2151  for ac_prog in cl.exe
2152do
2153  # Extract the first word of "$ac_prog", so it can be a program name with args.
2154set dummy $ac_prog; ac_word=$2
2155{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2156echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2157if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2158  echo $ECHO_N "(cached) $ECHO_C" >&6
2159else
2160  if test -n "$ac_ct_CC"; then
2161  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2162else
2163as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2164for as_dir in $PATH
2165do
2166  IFS=$as_save_IFS
2167  test -z "$as_dir" && as_dir=.
2168  for ac_exec_ext in '' $ac_executable_extensions; do
2169  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2170    ac_cv_prog_ac_ct_CC="$ac_prog"
2171    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2172    break 2
2173  fi
2174done
2175done
2176IFS=$as_save_IFS
2177
2178fi
2179fi
2180ac_ct_CC=$ac_cv_prog_ac_ct_CC
2181if test -n "$ac_ct_CC"; then
2182  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2183echo "${ECHO_T}$ac_ct_CC" >&6; }
2184else
2185  { echo "$as_me:$LINENO: result: no" >&5
2186echo "${ECHO_T}no" >&6; }
2187fi
2188
2189
2190  test -n "$ac_ct_CC" && break
2191done
2192
2193  if test "x$ac_ct_CC" = x; then
2194    CC=""
2195  else
2196    case $cross_compiling:$ac_tool_warned in
2197yes:)
2198{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2199whose name does not start with the host triplet.  If you think this
2200configuration is useful to you, please write to autoconf@gnu.org." >&5
2201echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2202whose name does not start with the host triplet.  If you think this
2203configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2204ac_tool_warned=yes ;;
2205esac
2206    CC=$ac_ct_CC
2207  fi
2208fi
2209
2210fi
2211
2212
2213test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2214See \`config.log' for more details." >&5
2215echo "$as_me: error: no acceptable C compiler found in \$PATH
2216See \`config.log' for more details." >&2;}
2217   { (exit 1); exit 1; }; }
2218
2219# Provide some information about the compiler.
2220echo "$as_me:$LINENO: checking for C compiler version" >&5
2221ac_compiler=`set X $ac_compile; echo $2`
2222{ (ac_try="$ac_compiler --version >&5"
2223case "(($ac_try" in
2224  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2225  *) ac_try_echo=$ac_try;;
2226esac
2227eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2228  (eval "$ac_compiler --version >&5") 2>&5
2229  ac_status=$?
2230  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2231  (exit $ac_status); }
2232{ (ac_try="$ac_compiler -v >&5"
2233case "(($ac_try" in
2234  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2235  *) ac_try_echo=$ac_try;;
2236esac
2237eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2238  (eval "$ac_compiler -v >&5") 2>&5
2239  ac_status=$?
2240  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2241  (exit $ac_status); }
2242{ (ac_try="$ac_compiler -V >&5"
2243case "(($ac_try" in
2244  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2245  *) ac_try_echo=$ac_try;;
2246esac
2247eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2248  (eval "$ac_compiler -V >&5") 2>&5
2249  ac_status=$?
2250  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2251  (exit $ac_status); }
2252
2253cat >conftest.$ac_ext <<_ACEOF
2254/* confdefs.h.  */
2255_ACEOF
2256cat confdefs.h >>conftest.$ac_ext
2257cat >>conftest.$ac_ext <<_ACEOF
2258/* end confdefs.h.  */
2259
2260int
2261main ()
2262{
2263
2264  ;
2265  return 0;
2266}
2267_ACEOF
2268ac_clean_files_save=$ac_clean_files
2269ac_clean_files="$ac_clean_files a.out a.exe b.out"
2270# Try to create an executable without -o first, disregard a.out.
2271# It will help us diagnose broken compilers, and finding out an intuition
2272# of exeext.
2273{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2274echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2275ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2276#
2277# List of possible output files, starting from the most likely.
2278# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2279# only as a last resort.  b.out is created by i960 compilers.
2280ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2281#
2282# The IRIX 6 linker writes into existing files which may not be
2283# executable, retaining their permissions.  Remove them first so a
2284# subsequent execution test works.
2285ac_rmfiles=
2286for ac_file in $ac_files
2287do
2288  case $ac_file in
2289    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2290    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2291  esac
2292done
2293rm -f $ac_rmfiles
2294
2295if { (ac_try="$ac_link_default"
2296case "(($ac_try" in
2297  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2298  *) ac_try_echo=$ac_try;;
2299esac
2300eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2301  (eval "$ac_link_default") 2>&5
2302  ac_status=$?
2303  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2304  (exit $ac_status); }; then
2305  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2306# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2307# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2308# so that the user can short-circuit this test for compilers unknown to
2309# Autoconf.
2310for ac_file in $ac_files ''
2311do
2312  test -f "$ac_file" || continue
2313  case $ac_file in
2314    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2315	;;
2316    [ab].out )
2317	# We found the default executable, but exeext='' is most
2318	# certainly right.
2319	break;;
2320    *.* )
2321        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2322	then :; else
2323	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2324	fi
2325	# We set ac_cv_exeext here because the later test for it is not
2326	# safe: cross compilers may not add the suffix if given an `-o'
2327	# argument, so we may need to know it at that point already.
2328	# Even if this section looks crufty: it has the advantage of
2329	# actually working.
2330	break;;
2331    * )
2332	break;;
2333  esac
2334done
2335test "$ac_cv_exeext" = no && ac_cv_exeext=
2336
2337else
2338  ac_file=''
2339fi
2340
2341{ echo "$as_me:$LINENO: result: $ac_file" >&5
2342echo "${ECHO_T}$ac_file" >&6; }
2343if test -z "$ac_file"; then
2344  echo "$as_me: failed program was:" >&5
2345sed 's/^/| /' conftest.$ac_ext >&5
2346
2347{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2348See \`config.log' for more details." >&5
2349echo "$as_me: error: C compiler cannot create executables
2350See \`config.log' for more details." >&2;}
2351   { (exit 77); exit 77; }; }
2352fi
2353
2354ac_exeext=$ac_cv_exeext
2355
2356# Check that the compiler produces executables we can run.  If not, either
2357# the compiler is broken, or we cross compile.
2358{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2359echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2360# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2361# If not cross compiling, check that we can run a simple program.
2362if test "$cross_compiling" != yes; then
2363  if { ac_try='./$ac_file'
2364  { (case "(($ac_try" in
2365  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2366  *) ac_try_echo=$ac_try;;
2367esac
2368eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2369  (eval "$ac_try") 2>&5
2370  ac_status=$?
2371  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2372  (exit $ac_status); }; }; then
2373    cross_compiling=no
2374  else
2375    if test "$cross_compiling" = maybe; then
2376	cross_compiling=yes
2377    else
2378	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2379If you meant to cross compile, use \`--host'.
2380See \`config.log' for more details." >&5
2381echo "$as_me: error: cannot run C compiled programs.
2382If you meant to cross compile, use \`--host'.
2383See \`config.log' for more details." >&2;}
2384   { (exit 1); exit 1; }; }
2385    fi
2386  fi
2387fi
2388{ echo "$as_me:$LINENO: result: yes" >&5
2389echo "${ECHO_T}yes" >&6; }
2390
2391rm -f a.out a.exe conftest$ac_cv_exeext b.out
2392ac_clean_files=$ac_clean_files_save
2393# Check that the compiler produces executables we can run.  If not, either
2394# the compiler is broken, or we cross compile.
2395{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2396echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2397{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2398echo "${ECHO_T}$cross_compiling" >&6; }
2399
2400{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2401echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2402if { (ac_try="$ac_link"
2403case "(($ac_try" in
2404  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2405  *) ac_try_echo=$ac_try;;
2406esac
2407eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2408  (eval "$ac_link") 2>&5
2409  ac_status=$?
2410  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2411  (exit $ac_status); }; then
2412  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2413# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2414# work properly (i.e., refer to `conftest.exe'), while it won't with
2415# `rm'.
2416for ac_file in conftest.exe conftest conftest.*; do
2417  test -f "$ac_file" || continue
2418  case $ac_file in
2419    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2420    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2421	  break;;
2422    * ) break;;
2423  esac
2424done
2425else
2426  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2427See \`config.log' for more details." >&5
2428echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2429See \`config.log' for more details." >&2;}
2430   { (exit 1); exit 1; }; }
2431fi
2432
2433rm -f conftest$ac_cv_exeext
2434{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2435echo "${ECHO_T}$ac_cv_exeext" >&6; }
2436
2437rm -f conftest.$ac_ext
2438EXEEXT=$ac_cv_exeext
2439ac_exeext=$EXEEXT
2440{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2441echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2442if test "${ac_cv_objext+set}" = set; then
2443  echo $ECHO_N "(cached) $ECHO_C" >&6
2444else
2445  cat >conftest.$ac_ext <<_ACEOF
2446/* confdefs.h.  */
2447_ACEOF
2448cat confdefs.h >>conftest.$ac_ext
2449cat >>conftest.$ac_ext <<_ACEOF
2450/* end confdefs.h.  */
2451
2452int
2453main ()
2454{
2455
2456  ;
2457  return 0;
2458}
2459_ACEOF
2460rm -f conftest.o conftest.obj
2461if { (ac_try="$ac_compile"
2462case "(($ac_try" in
2463  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2464  *) ac_try_echo=$ac_try;;
2465esac
2466eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2467  (eval "$ac_compile") 2>&5
2468  ac_status=$?
2469  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2470  (exit $ac_status); }; then
2471  for ac_file in conftest.o conftest.obj conftest.*; do
2472  test -f "$ac_file" || continue;
2473  case $ac_file in
2474    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2475    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2476       break;;
2477  esac
2478done
2479else
2480  echo "$as_me: failed program was:" >&5
2481sed 's/^/| /' conftest.$ac_ext >&5
2482
2483{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2484See \`config.log' for more details." >&5
2485echo "$as_me: error: cannot compute suffix of object files: cannot compile
2486See \`config.log' for more details." >&2;}
2487   { (exit 1); exit 1; }; }
2488fi
2489
2490rm -f conftest.$ac_cv_objext conftest.$ac_ext
2491fi
2492{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2493echo "${ECHO_T}$ac_cv_objext" >&6; }
2494OBJEXT=$ac_cv_objext
2495ac_objext=$OBJEXT
2496{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2497echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2498if test "${ac_cv_c_compiler_gnu+set}" = set; then
2499  echo $ECHO_N "(cached) $ECHO_C" >&6
2500else
2501  cat >conftest.$ac_ext <<_ACEOF
2502/* confdefs.h.  */
2503_ACEOF
2504cat confdefs.h >>conftest.$ac_ext
2505cat >>conftest.$ac_ext <<_ACEOF
2506/* end confdefs.h.  */
2507
2508int
2509main ()
2510{
2511#ifndef __GNUC__
2512       choke me
2513#endif
2514
2515  ;
2516  return 0;
2517}
2518_ACEOF
2519rm -f conftest.$ac_objext
2520if { (ac_try="$ac_compile"
2521case "(($ac_try" in
2522  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2523  *) ac_try_echo=$ac_try;;
2524esac
2525eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2526  (eval "$ac_compile") 2>conftest.er1
2527  ac_status=$?
2528  grep -v '^ *+' conftest.er1 >conftest.err
2529  rm -f conftest.er1
2530  cat conftest.err >&5
2531  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2532  (exit $ac_status); } && {
2533	 test -z "$ac_c_werror_flag" ||
2534	 test ! -s conftest.err
2535       } && test -s conftest.$ac_objext; then
2536  ac_compiler_gnu=yes
2537else
2538  echo "$as_me: failed program was:" >&5
2539sed 's/^/| /' conftest.$ac_ext >&5
2540
2541	ac_compiler_gnu=no
2542fi
2543
2544rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2545ac_cv_c_compiler_gnu=$ac_compiler_gnu
2546
2547fi
2548{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2549echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2550GCC=`test $ac_compiler_gnu = yes && echo yes`
2551ac_test_CFLAGS=${CFLAGS+set}
2552ac_save_CFLAGS=$CFLAGS
2553{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2554echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2555if test "${ac_cv_prog_cc_g+set}" = set; then
2556  echo $ECHO_N "(cached) $ECHO_C" >&6
2557else
2558  ac_save_c_werror_flag=$ac_c_werror_flag
2559   ac_c_werror_flag=yes
2560   ac_cv_prog_cc_g=no
2561   CFLAGS="-g"
2562   cat >conftest.$ac_ext <<_ACEOF
2563/* confdefs.h.  */
2564_ACEOF
2565cat confdefs.h >>conftest.$ac_ext
2566cat >>conftest.$ac_ext <<_ACEOF
2567/* end confdefs.h.  */
2568
2569int
2570main ()
2571{
2572
2573  ;
2574  return 0;
2575}
2576_ACEOF
2577rm -f conftest.$ac_objext
2578if { (ac_try="$ac_compile"
2579case "(($ac_try" in
2580  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2581  *) ac_try_echo=$ac_try;;
2582esac
2583eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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	 test -z "$ac_c_werror_flag" ||
2592	 test ! -s conftest.err
2593       } && test -s conftest.$ac_objext; then
2594  ac_cv_prog_cc_g=yes
2595else
2596  echo "$as_me: failed program was:" >&5
2597sed 's/^/| /' conftest.$ac_ext >&5
2598
2599	CFLAGS=""
2600      cat >conftest.$ac_ext <<_ACEOF
2601/* confdefs.h.  */
2602_ACEOF
2603cat confdefs.h >>conftest.$ac_ext
2604cat >>conftest.$ac_ext <<_ACEOF
2605/* end confdefs.h.  */
2606
2607int
2608main ()
2609{
2610
2611  ;
2612  return 0;
2613}
2614_ACEOF
2615rm -f conftest.$ac_objext
2616if { (ac_try="$ac_compile"
2617case "(($ac_try" in
2618  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2619  *) ac_try_echo=$ac_try;;
2620esac
2621eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2622  (eval "$ac_compile") 2>conftest.er1
2623  ac_status=$?
2624  grep -v '^ *+' conftest.er1 >conftest.err
2625  rm -f conftest.er1
2626  cat conftest.err >&5
2627  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2628  (exit $ac_status); } && {
2629	 test -z "$ac_c_werror_flag" ||
2630	 test ! -s conftest.err
2631       } && test -s conftest.$ac_objext; then
2632  :
2633else
2634  echo "$as_me: failed program was:" >&5
2635sed 's/^/| /' conftest.$ac_ext >&5
2636
2637	ac_c_werror_flag=$ac_save_c_werror_flag
2638	 CFLAGS="-g"
2639	 cat >conftest.$ac_ext <<_ACEOF
2640/* confdefs.h.  */
2641_ACEOF
2642cat confdefs.h >>conftest.$ac_ext
2643cat >>conftest.$ac_ext <<_ACEOF
2644/* end confdefs.h.  */
2645
2646int
2647main ()
2648{
2649
2650  ;
2651  return 0;
2652}
2653_ACEOF
2654rm -f conftest.$ac_objext
2655if { (ac_try="$ac_compile"
2656case "(($ac_try" in
2657  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2658  *) ac_try_echo=$ac_try;;
2659esac
2660eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2661  (eval "$ac_compile") 2>conftest.er1
2662  ac_status=$?
2663  grep -v '^ *+' conftest.er1 >conftest.err
2664  rm -f conftest.er1
2665  cat conftest.err >&5
2666  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2667  (exit $ac_status); } && {
2668	 test -z "$ac_c_werror_flag" ||
2669	 test ! -s conftest.err
2670       } && test -s conftest.$ac_objext; then
2671  ac_cv_prog_cc_g=yes
2672else
2673  echo "$as_me: failed program was:" >&5
2674sed 's/^/| /' conftest.$ac_ext >&5
2675
2676
2677fi
2678
2679rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2680fi
2681
2682rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2683fi
2684
2685rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2686   ac_c_werror_flag=$ac_save_c_werror_flag
2687fi
2688{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2689echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2690if test "$ac_test_CFLAGS" = set; then
2691  CFLAGS=$ac_save_CFLAGS
2692elif test $ac_cv_prog_cc_g = yes; then
2693  if test "$GCC" = yes; then
2694    CFLAGS="-g -O2"
2695  else
2696    CFLAGS="-g"
2697  fi
2698else
2699  if test "$GCC" = yes; then
2700    CFLAGS="-O2"
2701  else
2702    CFLAGS=
2703  fi
2704fi
2705{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2706echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2707if test "${ac_cv_prog_cc_c89+set}" = set; then
2708  echo $ECHO_N "(cached) $ECHO_C" >&6
2709else
2710  ac_cv_prog_cc_c89=no
2711ac_save_CC=$CC
2712cat >conftest.$ac_ext <<_ACEOF
2713/* confdefs.h.  */
2714_ACEOF
2715cat confdefs.h >>conftest.$ac_ext
2716cat >>conftest.$ac_ext <<_ACEOF
2717/* end confdefs.h.  */
2718#include <stdarg.h>
2719#include <stdio.h>
2720#include <sys/types.h>
2721#include <sys/stat.h>
2722/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2723struct buf { int x; };
2724FILE * (*rcsopen) (struct buf *, struct stat *, int);
2725static char *e (p, i)
2726     char **p;
2727     int i;
2728{
2729  return p[i];
2730}
2731static char *f (char * (*g) (char **, int), char **p, ...)
2732{
2733  char *s;
2734  va_list v;
2735  va_start (v,p);
2736  s = g (p, va_arg (v,int));
2737  va_end (v);
2738  return s;
2739}
2740
2741/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2742   function prototypes and stuff, but not '\xHH' hex character constants.
2743   These don't provoke an error unfortunately, instead are silently treated
2744   as 'x'.  The following induces an error, until -std is added to get
2745   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2746   array size at least.  It's necessary to write '\x00'==0 to get something
2747   that's true only with -std.  */
2748int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2749
2750/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2751   inside strings and character constants.  */
2752#define FOO(x) 'x'
2753int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2754
2755int test (int i, double x);
2756struct s1 {int (*f) (int a);};
2757struct s2 {int (*f) (double a);};
2758int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2759int argc;
2760char **argv;
2761int
2762main ()
2763{
2764return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2765  ;
2766  return 0;
2767}
2768_ACEOF
2769for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2770	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2771do
2772  CC="$ac_save_CC $ac_arg"
2773  rm -f conftest.$ac_objext
2774if { (ac_try="$ac_compile"
2775case "(($ac_try" in
2776  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2777  *) ac_try_echo=$ac_try;;
2778esac
2779eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2780  (eval "$ac_compile") 2>conftest.er1
2781  ac_status=$?
2782  grep -v '^ *+' conftest.er1 >conftest.err
2783  rm -f conftest.er1
2784  cat conftest.err >&5
2785  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2786  (exit $ac_status); } && {
2787	 test -z "$ac_c_werror_flag" ||
2788	 test ! -s conftest.err
2789       } && test -s conftest.$ac_objext; then
2790  ac_cv_prog_cc_c89=$ac_arg
2791else
2792  echo "$as_me: failed program was:" >&5
2793sed 's/^/| /' conftest.$ac_ext >&5
2794
2795
2796fi
2797
2798rm -f core conftest.err conftest.$ac_objext
2799  test "x$ac_cv_prog_cc_c89" != "xno" && break
2800done
2801rm -f conftest.$ac_ext
2802CC=$ac_save_CC
2803
2804fi
2805# AC_CACHE_VAL
2806case "x$ac_cv_prog_cc_c89" in
2807  x)
2808    { echo "$as_me:$LINENO: result: none needed" >&5
2809echo "${ECHO_T}none needed" >&6; } ;;
2810  xno)
2811    { echo "$as_me:$LINENO: result: unsupported" >&5
2812echo "${ECHO_T}unsupported" >&6; } ;;
2813  *)
2814    CC="$CC $ac_cv_prog_cc_c89"
2815    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2816echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2817esac
2818
2819
2820ac_ext=c
2821ac_cpp='$CPP $CPPFLAGS'
2822ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2823ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2824ac_compiler_gnu=$ac_cv_c_compiler_gnu
2825
2826
2827
2828
2829
2830    if test "$GCC" = yes ; then
2831	    if test "$SHLICC2" = yes ; then
2832		    ac_cv_lbl_gcc_vers=2
2833		    V_CCOPT="-O2"
2834	    else
2835		    { echo "$as_me:$LINENO: checking gcc version" >&5
2836echo $ECHO_N "checking gcc version... $ECHO_C" >&6; }
2837		    if test "${ac_cv_lbl_gcc_vers+set}" = set; then
2838  echo $ECHO_N "(cached) $ECHO_C" >&6
2839else
2840  ac_cv_lbl_gcc_vers=`$CC -v 2>&1 | \
2841			    sed -e '/^gcc version /!d' \
2842				-e 's/^gcc version //' \
2843				-e 's/ .*//' -e 's/^[^0-9]*//' \
2844				-e 's/\..*//'`
2845fi
2846
2847		    { echo "$as_me:$LINENO: result: $ac_cv_lbl_gcc_vers" >&5
2848echo "${ECHO_T}$ac_cv_lbl_gcc_vers" >&6; }
2849		    if test $ac_cv_lbl_gcc_vers -gt 1 ; then
2850			    V_CCOPT="-O2"
2851		    fi
2852	    fi
2853    else
2854	    { echo "$as_me:$LINENO: checking that $CC handles ansi prototypes" >&5
2855echo $ECHO_N "checking that $CC handles ansi prototypes... $ECHO_C" >&6; }
2856	    if test "${ac_cv_lbl_cc_ansi_prototypes+set}" = set; then
2857  echo $ECHO_N "(cached) $ECHO_C" >&6
2858else
2859
2860cat >conftest.$ac_ext <<_ACEOF
2861/* confdefs.h.  */
2862_ACEOF
2863cat confdefs.h >>conftest.$ac_ext
2864cat >>conftest.$ac_ext <<_ACEOF
2865/* end confdefs.h.  */
2866#include <sys/types.h>
2867int
2868main ()
2869{
2870int frob(int, char *)
2871  ;
2872  return 0;
2873}
2874_ACEOF
2875rm -f conftest.$ac_objext
2876if { (ac_try="$ac_compile"
2877case "(($ac_try" in
2878  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2879  *) ac_try_echo=$ac_try;;
2880esac
2881eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2882  (eval "$ac_compile") 2>conftest.er1
2883  ac_status=$?
2884  grep -v '^ *+' conftest.er1 >conftest.err
2885  rm -f conftest.er1
2886  cat conftest.err >&5
2887  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2888  (exit $ac_status); } && {
2889	 test -z "$ac_c_werror_flag" ||
2890	 test ! -s conftest.err
2891       } && test -s conftest.$ac_objext; then
2892  ac_cv_lbl_cc_ansi_prototypes=yes
2893else
2894  echo "$as_me: failed program was:" >&5
2895sed 's/^/| /' conftest.$ac_ext >&5
2896
2897	ac_cv_lbl_cc_ansi_prototypes=no
2898fi
2899
2900rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2901fi
2902
2903	    { echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_ansi_prototypes" >&5
2904echo "${ECHO_T}$ac_cv_lbl_cc_ansi_prototypes" >&6; }
2905	    if test $ac_cv_lbl_cc_ansi_prototypes = no ; then
2906		    case "$host_os" in
2907
2908		    hpux*)
2909			    { echo "$as_me:$LINENO: checking for HP-UX ansi compiler ($CC -Aa -D_HPUX_SOURCE)" >&5
2910echo $ECHO_N "checking for HP-UX ansi compiler ($CC -Aa -D_HPUX_SOURCE)... $ECHO_C" >&6; }
2911			    savedcflags="$CFLAGS"
2912			    CFLAGS="-Aa -D_HPUX_SOURCE $CFLAGS"
2913			    if test "${ac_cv_lbl_cc_hpux_cc_aa+set}" = set; then
2914  echo $ECHO_N "(cached) $ECHO_C" >&6
2915else
2916  cat >conftest.$ac_ext <<_ACEOF
2917/* confdefs.h.  */
2918_ACEOF
2919cat confdefs.h >>conftest.$ac_ext
2920cat >>conftest.$ac_ext <<_ACEOF
2921/* end confdefs.h.  */
2922#include <sys/types.h>
2923int
2924main ()
2925{
2926int frob(int, char *)
2927  ;
2928  return 0;
2929}
2930_ACEOF
2931rm -f conftest.$ac_objext
2932if { (ac_try="$ac_compile"
2933case "(($ac_try" in
2934  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2935  *) ac_try_echo=$ac_try;;
2936esac
2937eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2938  (eval "$ac_compile") 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); } && {
2945	 test -z "$ac_c_werror_flag" ||
2946	 test ! -s conftest.err
2947       } && test -s conftest.$ac_objext; then
2948  ac_cv_lbl_cc_hpux_cc_aa=yes
2949else
2950  echo "$as_me: failed program was:" >&5
2951sed 's/^/| /' conftest.$ac_ext >&5
2952
2953	ac_cv_lbl_cc_hpux_cc_aa=no
2954fi
2955
2956rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2957fi
2958
2959			    { echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_hpux_cc_aa" >&5
2960echo "${ECHO_T}$ac_cv_lbl_cc_hpux_cc_aa" >&6; }
2961			    if test $ac_cv_lbl_cc_hpux_cc_aa = no ; then
2962				    { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
2963echo "$as_me: error: see the INSTALL doc for more info" >&2;}
2964   { (exit 1); exit 1; }; }
2965			    fi
2966			    CFLAGS="$savedcflags"
2967			    V_CCOPT="-Aa $V_CCOPT"
2968
2969cat >>confdefs.h <<\_ACEOF
2970#define _HPUX_SOURCE 1
2971_ACEOF
2972
2973			    ;;
2974
2975		    osf*)
2976			    { echo "$as_me:$LINENO: checking for ansi mode in DEC compiler ($CC -std1)" >&5
2977echo $ECHO_N "checking for ansi mode in DEC compiler ($CC -std1)... $ECHO_C" >&6; }
2978			    savedcflags="$CFLAGS"
2979			    CFLAGS="-std1"
2980			    if test "${ac_cv_lbl_cc_osf1_cc_std1+set}" = set; then
2981  echo $ECHO_N "(cached) $ECHO_C" >&6
2982else
2983  cat >conftest.$ac_ext <<_ACEOF
2984/* confdefs.h.  */
2985_ACEOF
2986cat confdefs.h >>conftest.$ac_ext
2987cat >>conftest.$ac_ext <<_ACEOF
2988/* end confdefs.h.  */
2989#include <sys/types.h>
2990int
2991main ()
2992{
2993int frob(int, char *)
2994  ;
2995  return 0;
2996}
2997_ACEOF
2998rm -f conftest.$ac_objext
2999if { (ac_try="$ac_compile"
3000case "(($ac_try" in
3001  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3002  *) ac_try_echo=$ac_try;;
3003esac
3004eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3005  (eval "$ac_compile") 2>conftest.er1
3006  ac_status=$?
3007  grep -v '^ *+' conftest.er1 >conftest.err
3008  rm -f conftest.er1
3009  cat conftest.err >&5
3010  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3011  (exit $ac_status); } && {
3012	 test -z "$ac_c_werror_flag" ||
3013	 test ! -s conftest.err
3014       } && test -s conftest.$ac_objext; then
3015  ac_cv_lbl_cc_osf1_cc_std1=yes
3016else
3017  echo "$as_me: failed program was:" >&5
3018sed 's/^/| /' conftest.$ac_ext >&5
3019
3020	ac_cv_lbl_cc_osf1_cc_std1=no
3021fi
3022
3023rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3024fi
3025
3026			    { echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_osf1_cc_std1" >&5
3027echo "${ECHO_T}$ac_cv_lbl_cc_osf1_cc_std1" >&6; }
3028			    if test $ac_cv_lbl_cc_osf1_cc_std1 = no ; then
3029				    { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
3030echo "$as_me: error: see the INSTALL doc for more info" >&2;}
3031   { (exit 1); exit 1; }; }
3032			    fi
3033			    CFLAGS="$savedcflags"
3034			    V_CCOPT="-std1 $V_CCOPT"
3035			    ;;
3036
3037		    *)
3038			    { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
3039echo "$as_me: error: see the INSTALL doc for more info" >&2;}
3040   { (exit 1); exit 1; }; }
3041			    ;;
3042		    esac
3043	    fi
3044	    V_INCLS="$V_INCLS -I/usr/local/include"
3045	    LDFLAGS="$LDFLAGS -L/usr/local/lib"
3046
3047	    case "$host_os" in
3048
3049	    irix*)
3050		    V_CCOPT="$V_CCOPT -xansi -signed -O"
3051		    ;;
3052
3053	    osf*)
3054	    	    #
3055		    # Presumed to be DEC OSF/1, Digital UNIX, or
3056		    # Tru64 UNIX.
3057		    #
3058		    V_CCOPT="$V_CCOPT -O"
3059		    ;;
3060
3061	    ultrix*)
3062		    { echo "$as_me:$LINENO: checking that Ultrix $CC hacks const in prototypes" >&5
3063echo $ECHO_N "checking that Ultrix $CC hacks const in prototypes... $ECHO_C" >&6; }
3064		    if test "${ac_cv_lbl_cc_const_proto+set}" = set; then
3065  echo $ECHO_N "(cached) $ECHO_C" >&6
3066else
3067  cat >conftest.$ac_ext <<_ACEOF
3068/* confdefs.h.  */
3069_ACEOF
3070cat confdefs.h >>conftest.$ac_ext
3071cat >>conftest.$ac_ext <<_ACEOF
3072/* end confdefs.h.  */
3073#include <sys/types.h>
3074int
3075main ()
3076{
3077struct a { int b; };
3078			    void c(const struct a *)
3079  ;
3080  return 0;
3081}
3082_ACEOF
3083rm -f conftest.$ac_objext
3084if { (ac_try="$ac_compile"
3085case "(($ac_try" in
3086  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3087  *) ac_try_echo=$ac_try;;
3088esac
3089eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3090  (eval "$ac_compile") 2>conftest.er1
3091  ac_status=$?
3092  grep -v '^ *+' conftest.er1 >conftest.err
3093  rm -f conftest.er1
3094  cat conftest.err >&5
3095  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3096  (exit $ac_status); } && {
3097	 test -z "$ac_c_werror_flag" ||
3098	 test ! -s conftest.err
3099       } && test -s conftest.$ac_objext; then
3100  ac_cv_lbl_cc_const_proto=yes
3101else
3102  echo "$as_me: failed program was:" >&5
3103sed 's/^/| /' conftest.$ac_ext >&5
3104
3105	ac_cv_lbl_cc_const_proto=no
3106fi
3107
3108rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3109fi
3110
3111		    { echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_const_proto" >&5
3112echo "${ECHO_T}$ac_cv_lbl_cc_const_proto" >&6; }
3113		    if test $ac_cv_lbl_cc_const_proto = no ; then
3114
3115cat >>confdefs.h <<\_ACEOF
3116#define const
3117_ACEOF
3118
3119		    fi
3120		    ;;
3121	    esac
3122    fi
3123
3124{ echo "$as_me:$LINENO: checking for inline" >&5
3125echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
3126    save_CFLAGS="$CFLAGS"
3127    CFLAGS="$V_CCOPT"
3128    if test "${ac_cv_lbl_inline+set}" = set; then
3129  echo $ECHO_N "(cached) $ECHO_C" >&6
3130else
3131
3132	ac_cv_lbl_inline=""
3133	ac_lbl_cc_inline=no
3134	for ac_lbl_inline in inline __inline__ __inline
3135	do
3136	    cat >conftest.$ac_ext <<_ACEOF
3137/* confdefs.h.  */
3138_ACEOF
3139cat confdefs.h >>conftest.$ac_ext
3140cat >>conftest.$ac_ext <<_ACEOF
3141/* end confdefs.h.  */
3142#define inline $ac_lbl_inline
3143		static inline struct iltest *foo(void);
3144		struct iltest {
3145		    int iltest1;
3146		    int iltest2;
3147		};
3148
3149		static inline struct iltest *
3150		foo()
3151		{
3152		    static struct iltest xxx;
3153
3154		    return &xxx;
3155		}
3156int
3157main ()
3158{
3159
3160  ;
3161  return 0;
3162}
3163_ACEOF
3164rm -f conftest.$ac_objext
3165if { (ac_try="$ac_compile"
3166case "(($ac_try" in
3167  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3168  *) ac_try_echo=$ac_try;;
3169esac
3170eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3171  (eval "$ac_compile") 2>conftest.er1
3172  ac_status=$?
3173  grep -v '^ *+' conftest.er1 >conftest.err
3174  rm -f conftest.er1
3175  cat conftest.err >&5
3176  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3177  (exit $ac_status); } && {
3178	 test -z "$ac_c_werror_flag" ||
3179	 test ! -s conftest.err
3180       } && test -s conftest.$ac_objext; then
3181  ac_lbl_cc_inline=yes
3182else
3183  echo "$as_me: failed program was:" >&5
3184sed 's/^/| /' conftest.$ac_ext >&5
3185
3186
3187fi
3188
3189rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3190	    if test "$ac_lbl_cc_inline" = yes ; then
3191		break;
3192	    fi
3193	done
3194	if test "$ac_lbl_cc_inline" = yes ; then
3195	    ac_cv_lbl_inline=$ac_lbl_inline
3196	fi
3197fi
3198
3199    CFLAGS="$save_CFLAGS"
3200    if test ! -z "$ac_cv_lbl_inline" ; then
3201	{ echo "$as_me:$LINENO: result: $ac_cv_lbl_inline" >&5
3202echo "${ECHO_T}$ac_cv_lbl_inline" >&6; }
3203    else
3204	{ echo "$as_me:$LINENO: result: no" >&5
3205echo "${ECHO_T}no" >&6; }
3206    fi
3207
3208cat >>confdefs.h <<_ACEOF
3209#define inline $ac_cv_lbl_inline
3210_ACEOF
3211
3212
3213{ echo "$as_me:$LINENO: checking for __attribute__" >&5
3214echo $ECHO_N "checking for __attribute__... $ECHO_C" >&6; }
3215if test "${ac_cv___attribute__+set}" = set; then
3216  echo $ECHO_N "(cached) $ECHO_C" >&6
3217else
3218
3219cat >conftest.$ac_ext <<_ACEOF
3220/* confdefs.h.  */
3221_ACEOF
3222cat confdefs.h >>conftest.$ac_ext
3223cat >>conftest.$ac_ext <<_ACEOF
3224/* end confdefs.h.  */
3225
3226#include <stdlib.h>
3227
3228static void foo(void) __attribute__ ((noreturn));
3229
3230static void
3231foo(void)
3232{
3233  exit(1);
3234}
3235
3236int
3237main(int argc, char **argv)
3238{
3239  foo();
3240}
3241
3242_ACEOF
3243rm -f conftest.$ac_objext
3244if { (ac_try="$ac_compile"
3245case "(($ac_try" in
3246  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3247  *) ac_try_echo=$ac_try;;
3248esac
3249eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3250  (eval "$ac_compile") 2>conftest.er1
3251  ac_status=$?
3252  grep -v '^ *+' conftest.er1 >conftest.err
3253  rm -f conftest.er1
3254  cat conftest.err >&5
3255  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3256  (exit $ac_status); } && {
3257	 test -z "$ac_c_werror_flag" ||
3258	 test ! -s conftest.err
3259       } && test -s conftest.$ac_objext; then
3260  ac_cv___attribute__=yes
3261else
3262  echo "$as_me: failed program was:" >&5
3263sed 's/^/| /' conftest.$ac_ext >&5
3264
3265	ac_cv___attribute__=no
3266fi
3267
3268rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3269fi
3270
3271if test "$ac_cv___attribute__" = "yes"; then
3272
3273cat >>confdefs.h <<\_ACEOF
3274#define HAVE___ATTRIBUTE__ 1
3275_ACEOF
3276
3277  V_DEFS="$V_DEFS -D_U_=\"__attribute__((unused))\""
3278else
3279  V_DEFS="$V_DEFS -D_U_=\"\""
3280fi
3281{ echo "$as_me:$LINENO: result: $ac_cv___attribute__" >&5
3282echo "${ECHO_T}$ac_cv___attribute__" >&6; }
3283
3284if test "$ac_cv___attribute__" = "yes"; then
3285
3286{ echo "$as_me:$LINENO: checking whether __attribute__((format)) can be applied to function pointers" >&5
3287echo $ECHO_N "checking whether __attribute__((format)) can be applied to function pointers... $ECHO_C" >&6; }
3288if test "${ac_cv___attribute___format_function_pointer+set}" = set; then
3289  echo $ECHO_N "(cached) $ECHO_C" >&6
3290else
3291
3292cat >conftest.$ac_ext <<_ACEOF
3293/* confdefs.h.  */
3294_ACEOF
3295cat confdefs.h >>conftest.$ac_ext
3296cat >>conftest.$ac_ext <<_ACEOF
3297/* end confdefs.h.  */
3298
3299#include <stdlib.h>
3300
3301extern int (*foo)(const char *fmt, ...)
3302		  __attribute__ ((format (printf, 1, 2)));
3303
3304int
3305main(int argc, char **argv)
3306{
3307  (*foo)("%s", "test");
3308}
3309
3310_ACEOF
3311rm -f conftest.$ac_objext
3312if { (ac_try="$ac_compile"
3313case "(($ac_try" in
3314  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3315  *) ac_try_echo=$ac_try;;
3316esac
3317eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3318  (eval "$ac_compile") 2>conftest.er1
3319  ac_status=$?
3320  grep -v '^ *+' conftest.er1 >conftest.err
3321  rm -f conftest.er1
3322  cat conftest.err >&5
3323  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3324  (exit $ac_status); } && {
3325	 test -z "$ac_c_werror_flag" ||
3326	 test ! -s conftest.err
3327       } && test -s conftest.$ac_objext; then
3328  ac_cv___attribute___format_function_pointer=yes
3329else
3330  echo "$as_me: failed program was:" >&5
3331sed 's/^/| /' conftest.$ac_ext >&5
3332
3333	ac_cv___attribute___format_function_pointer=no
3334fi
3335
3336rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3337fi
3338
3339if test "$ac_cv___attribute___format_function_pointer" = "yes"; then
3340
3341cat >>confdefs.h <<\_ACEOF
3342#define __ATTRIBUTE___FORMAT_OK_FOR_FUNCTION_POINTERS 1
3343_ACEOF
3344
3345fi
3346{ echo "$as_me:$LINENO: result: $ac_cv___attribute___format_function_pointer" >&5
3347echo "${ECHO_T}$ac_cv___attribute___format_function_pointer" >&6; }
3348
3349fi
3350ac_ext=c
3351ac_cpp='$CPP $CPPFLAGS'
3352ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3353ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3354ac_compiler_gnu=$ac_cv_c_compiler_gnu
3355{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3356echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3357# On Suns, sometimes $CPP names a directory.
3358if test -n "$CPP" && test -d "$CPP"; then
3359  CPP=
3360fi
3361if test -z "$CPP"; then
3362  if test "${ac_cv_prog_CPP+set}" = set; then
3363  echo $ECHO_N "(cached) $ECHO_C" >&6
3364else
3365      # Double quotes because CPP needs to be expanded
3366    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3367    do
3368      ac_preproc_ok=false
3369for ac_c_preproc_warn_flag in '' yes
3370do
3371  # Use a header file that comes with gcc, so configuring glibc
3372  # with a fresh cross-compiler works.
3373  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3374  # <limits.h> exists even on freestanding compilers.
3375  # On the NeXT, cc -E runs the code through the compiler's parser,
3376  # not just through cpp. "Syntax error" is here to catch this case.
3377  cat >conftest.$ac_ext <<_ACEOF
3378/* confdefs.h.  */
3379_ACEOF
3380cat confdefs.h >>conftest.$ac_ext
3381cat >>conftest.$ac_ext <<_ACEOF
3382/* end confdefs.h.  */
3383#ifdef __STDC__
3384# include <limits.h>
3385#else
3386# include <assert.h>
3387#endif
3388		     Syntax error
3389_ACEOF
3390if { (ac_try="$ac_cpp conftest.$ac_ext"
3391case "(($ac_try" in
3392  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3393  *) ac_try_echo=$ac_try;;
3394esac
3395eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3396  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3397  ac_status=$?
3398  grep -v '^ *+' conftest.er1 >conftest.err
3399  rm -f conftest.er1
3400  cat conftest.err >&5
3401  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3402  (exit $ac_status); } >/dev/null && {
3403	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3404	 test ! -s conftest.err
3405       }; then
3406  :
3407else
3408  echo "$as_me: failed program was:" >&5
3409sed 's/^/| /' conftest.$ac_ext >&5
3410
3411  # Broken: fails on valid input.
3412continue
3413fi
3414
3415rm -f conftest.err conftest.$ac_ext
3416
3417  # OK, works on sane cases.  Now check whether nonexistent headers
3418  # can be detected and how.
3419  cat >conftest.$ac_ext <<_ACEOF
3420/* confdefs.h.  */
3421_ACEOF
3422cat confdefs.h >>conftest.$ac_ext
3423cat >>conftest.$ac_ext <<_ACEOF
3424/* end confdefs.h.  */
3425#include <ac_nonexistent.h>
3426_ACEOF
3427if { (ac_try="$ac_cpp conftest.$ac_ext"
3428case "(($ac_try" in
3429  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3430  *) ac_try_echo=$ac_try;;
3431esac
3432eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3433  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3434  ac_status=$?
3435  grep -v '^ *+' conftest.er1 >conftest.err
3436  rm -f conftest.er1
3437  cat conftest.err >&5
3438  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3439  (exit $ac_status); } >/dev/null && {
3440	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3441	 test ! -s conftest.err
3442       }; then
3443  # Broken: success on invalid input.
3444continue
3445else
3446  echo "$as_me: failed program was:" >&5
3447sed 's/^/| /' conftest.$ac_ext >&5
3448
3449  # Passes both tests.
3450ac_preproc_ok=:
3451break
3452fi
3453
3454rm -f conftest.err conftest.$ac_ext
3455
3456done
3457# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3458rm -f conftest.err conftest.$ac_ext
3459if $ac_preproc_ok; then
3460  break
3461fi
3462
3463    done
3464    ac_cv_prog_CPP=$CPP
3465
3466fi
3467  CPP=$ac_cv_prog_CPP
3468else
3469  ac_cv_prog_CPP=$CPP
3470fi
3471{ echo "$as_me:$LINENO: result: $CPP" >&5
3472echo "${ECHO_T}$CPP" >&6; }
3473ac_preproc_ok=false
3474for ac_c_preproc_warn_flag in '' yes
3475do
3476  # Use a header file that comes with gcc, so configuring glibc
3477  # with a fresh cross-compiler works.
3478  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3479  # <limits.h> exists even on freestanding compilers.
3480  # On the NeXT, cc -E runs the code through the compiler's parser,
3481  # not just through cpp. "Syntax error" is here to catch this case.
3482  cat >conftest.$ac_ext <<_ACEOF
3483/* confdefs.h.  */
3484_ACEOF
3485cat confdefs.h >>conftest.$ac_ext
3486cat >>conftest.$ac_ext <<_ACEOF
3487/* end confdefs.h.  */
3488#ifdef __STDC__
3489# include <limits.h>
3490#else
3491# include <assert.h>
3492#endif
3493		     Syntax error
3494_ACEOF
3495if { (ac_try="$ac_cpp conftest.$ac_ext"
3496case "(($ac_try" in
3497  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3498  *) ac_try_echo=$ac_try;;
3499esac
3500eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3501  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3502  ac_status=$?
3503  grep -v '^ *+' conftest.er1 >conftest.err
3504  rm -f conftest.er1
3505  cat conftest.err >&5
3506  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3507  (exit $ac_status); } >/dev/null && {
3508	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3509	 test ! -s conftest.err
3510       }; then
3511  :
3512else
3513  echo "$as_me: failed program was:" >&5
3514sed 's/^/| /' conftest.$ac_ext >&5
3515
3516  # Broken: fails on valid input.
3517continue
3518fi
3519
3520rm -f conftest.err conftest.$ac_ext
3521
3522  # OK, works on sane cases.  Now check whether nonexistent headers
3523  # can be detected and how.
3524  cat >conftest.$ac_ext <<_ACEOF
3525/* confdefs.h.  */
3526_ACEOF
3527cat confdefs.h >>conftest.$ac_ext
3528cat >>conftest.$ac_ext <<_ACEOF
3529/* end confdefs.h.  */
3530#include <ac_nonexistent.h>
3531_ACEOF
3532if { (ac_try="$ac_cpp conftest.$ac_ext"
3533case "(($ac_try" in
3534  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3535  *) ac_try_echo=$ac_try;;
3536esac
3537eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3538  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3539  ac_status=$?
3540  grep -v '^ *+' conftest.er1 >conftest.err
3541  rm -f conftest.er1
3542  cat conftest.err >&5
3543  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3544  (exit $ac_status); } >/dev/null && {
3545	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3546	 test ! -s conftest.err
3547       }; then
3548  # Broken: success on invalid input.
3549continue
3550else
3551  echo "$as_me: failed program was:" >&5
3552sed 's/^/| /' conftest.$ac_ext >&5
3553
3554  # Passes both tests.
3555ac_preproc_ok=:
3556break
3557fi
3558
3559rm -f conftest.err conftest.$ac_ext
3560
3561done
3562# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3563rm -f conftest.err conftest.$ac_ext
3564if $ac_preproc_ok; then
3565  :
3566else
3567  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3568See \`config.log' for more details." >&5
3569echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3570See \`config.log' for more details." >&2;}
3571   { (exit 1); exit 1; }; }
3572fi
3573
3574ac_ext=c
3575ac_cpp='$CPP $CPPFLAGS'
3576ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3577ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3578ac_compiler_gnu=$ac_cv_c_compiler_gnu
3579
3580
3581{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3582echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3583if test "${ac_cv_path_GREP+set}" = set; then
3584  echo $ECHO_N "(cached) $ECHO_C" >&6
3585else
3586  # Extract the first word of "grep ggrep" to use in msg output
3587if test -z "$GREP"; then
3588set dummy grep ggrep; ac_prog_name=$2
3589if test "${ac_cv_path_GREP+set}" = set; then
3590  echo $ECHO_N "(cached) $ECHO_C" >&6
3591else
3592  ac_path_GREP_found=false
3593# Loop through the user's path and test for each of PROGNAME-LIST
3594as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3595for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3596do
3597  IFS=$as_save_IFS
3598  test -z "$as_dir" && as_dir=.
3599  for ac_prog in grep ggrep; do
3600  for ac_exec_ext in '' $ac_executable_extensions; do
3601    ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3602    { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3603    # Check for GNU ac_path_GREP and select it if it is found.
3604  # Check for GNU $ac_path_GREP
3605case `"$ac_path_GREP" --version 2>&1` in
3606*GNU*)
3607  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3608*)
3609  ac_count=0
3610  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3611  while :
3612  do
3613    cat "conftest.in" "conftest.in" >"conftest.tmp"
3614    mv "conftest.tmp" "conftest.in"
3615    cp "conftest.in" "conftest.nl"
3616    echo 'GREP' >> "conftest.nl"
3617    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3618    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3619    ac_count=`expr $ac_count + 1`
3620    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3621      # Best one so far, save it but keep looking for a better one
3622      ac_cv_path_GREP="$ac_path_GREP"
3623      ac_path_GREP_max=$ac_count
3624    fi
3625    # 10*(2^10) chars as input seems more than enough
3626    test $ac_count -gt 10 && break
3627  done
3628  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3629esac
3630
3631
3632    $ac_path_GREP_found && break 3
3633  done
3634done
3635
3636done
3637IFS=$as_save_IFS
3638
3639
3640fi
3641
3642GREP="$ac_cv_path_GREP"
3643if test -z "$GREP"; then
3644  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3645echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3646   { (exit 1); exit 1; }; }
3647fi
3648
3649else
3650  ac_cv_path_GREP=$GREP
3651fi
3652
3653
3654fi
3655{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3656echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3657 GREP="$ac_cv_path_GREP"
3658
3659
3660{ echo "$as_me:$LINENO: checking for egrep" >&5
3661echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3662if test "${ac_cv_path_EGREP+set}" = set; then
3663  echo $ECHO_N "(cached) $ECHO_C" >&6
3664else
3665  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3666   then ac_cv_path_EGREP="$GREP -E"
3667   else
3668     # Extract the first word of "egrep" to use in msg output
3669if test -z "$EGREP"; then
3670set dummy egrep; ac_prog_name=$2
3671if test "${ac_cv_path_EGREP+set}" = set; then
3672  echo $ECHO_N "(cached) $ECHO_C" >&6
3673else
3674  ac_path_EGREP_found=false
3675# Loop through the user's path and test for each of PROGNAME-LIST
3676as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3677for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3678do
3679  IFS=$as_save_IFS
3680  test -z "$as_dir" && as_dir=.
3681  for ac_prog in egrep; do
3682  for ac_exec_ext in '' $ac_executable_extensions; do
3683    ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3684    { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3685    # Check for GNU ac_path_EGREP and select it if it is found.
3686  # Check for GNU $ac_path_EGREP
3687case `"$ac_path_EGREP" --version 2>&1` in
3688*GNU*)
3689  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3690*)
3691  ac_count=0
3692  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3693  while :
3694  do
3695    cat "conftest.in" "conftest.in" >"conftest.tmp"
3696    mv "conftest.tmp" "conftest.in"
3697    cp "conftest.in" "conftest.nl"
3698    echo 'EGREP' >> "conftest.nl"
3699    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3700    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3701    ac_count=`expr $ac_count + 1`
3702    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3703      # Best one so far, save it but keep looking for a better one
3704      ac_cv_path_EGREP="$ac_path_EGREP"
3705      ac_path_EGREP_max=$ac_count
3706    fi
3707    # 10*(2^10) chars as input seems more than enough
3708    test $ac_count -gt 10 && break
3709  done
3710  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3711esac
3712
3713
3714    $ac_path_EGREP_found && break 3
3715  done
3716done
3717
3718done
3719IFS=$as_save_IFS
3720
3721
3722fi
3723
3724EGREP="$ac_cv_path_EGREP"
3725if test -z "$EGREP"; then
3726  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3727echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3728   { (exit 1); exit 1; }; }
3729fi
3730
3731else
3732  ac_cv_path_EGREP=$EGREP
3733fi
3734
3735
3736   fi
3737fi
3738{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3739echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3740 EGREP="$ac_cv_path_EGREP"
3741
3742
3743{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3744echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3745if test "${ac_cv_header_stdc+set}" = set; then
3746  echo $ECHO_N "(cached) $ECHO_C" >&6
3747else
3748  cat >conftest.$ac_ext <<_ACEOF
3749/* confdefs.h.  */
3750_ACEOF
3751cat confdefs.h >>conftest.$ac_ext
3752cat >>conftest.$ac_ext <<_ACEOF
3753/* end confdefs.h.  */
3754#include <stdlib.h>
3755#include <stdarg.h>
3756#include <string.h>
3757#include <float.h>
3758
3759int
3760main ()
3761{
3762
3763  ;
3764  return 0;
3765}
3766_ACEOF
3767rm -f conftest.$ac_objext
3768if { (ac_try="$ac_compile"
3769case "(($ac_try" in
3770  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3771  *) ac_try_echo=$ac_try;;
3772esac
3773eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3774  (eval "$ac_compile") 2>conftest.er1
3775  ac_status=$?
3776  grep -v '^ *+' conftest.er1 >conftest.err
3777  rm -f conftest.er1
3778  cat conftest.err >&5
3779  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3780  (exit $ac_status); } && {
3781	 test -z "$ac_c_werror_flag" ||
3782	 test ! -s conftest.err
3783       } && test -s conftest.$ac_objext; then
3784  ac_cv_header_stdc=yes
3785else
3786  echo "$as_me: failed program was:" >&5
3787sed 's/^/| /' conftest.$ac_ext >&5
3788
3789	ac_cv_header_stdc=no
3790fi
3791
3792rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3793
3794if test $ac_cv_header_stdc = yes; then
3795  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3796  cat >conftest.$ac_ext <<_ACEOF
3797/* confdefs.h.  */
3798_ACEOF
3799cat confdefs.h >>conftest.$ac_ext
3800cat >>conftest.$ac_ext <<_ACEOF
3801/* end confdefs.h.  */
3802#include <string.h>
3803
3804_ACEOF
3805if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3806  $EGREP "memchr" >/dev/null 2>&1; then
3807  :
3808else
3809  ac_cv_header_stdc=no
3810fi
3811rm -f -r conftest*
3812
3813fi
3814
3815if test $ac_cv_header_stdc = yes; then
3816  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3817  cat >conftest.$ac_ext <<_ACEOF
3818/* confdefs.h.  */
3819_ACEOF
3820cat confdefs.h >>conftest.$ac_ext
3821cat >>conftest.$ac_ext <<_ACEOF
3822/* end confdefs.h.  */
3823#include <stdlib.h>
3824
3825_ACEOF
3826if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3827  $EGREP "free" >/dev/null 2>&1; then
3828  :
3829else
3830  ac_cv_header_stdc=no
3831fi
3832rm -f -r conftest*
3833
3834fi
3835
3836if test $ac_cv_header_stdc = yes; then
3837  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3838  if test "$cross_compiling" = yes; then
3839  :
3840else
3841  cat >conftest.$ac_ext <<_ACEOF
3842/* confdefs.h.  */
3843_ACEOF
3844cat confdefs.h >>conftest.$ac_ext
3845cat >>conftest.$ac_ext <<_ACEOF
3846/* end confdefs.h.  */
3847#include <ctype.h>
3848#include <stdlib.h>
3849#if ((' ' & 0x0FF) == 0x020)
3850# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3851# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3852#else
3853# define ISLOWER(c) \
3854		   (('a' <= (c) && (c) <= 'i') \
3855		     || ('j' <= (c) && (c) <= 'r') \
3856		     || ('s' <= (c) && (c) <= 'z'))
3857# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3858#endif
3859
3860#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3861int
3862main ()
3863{
3864  int i;
3865  for (i = 0; i < 256; i++)
3866    if (XOR (islower (i), ISLOWER (i))
3867	|| toupper (i) != TOUPPER (i))
3868      return 2;
3869  return 0;
3870}
3871_ACEOF
3872rm -f conftest$ac_exeext
3873if { (ac_try="$ac_link"
3874case "(($ac_try" in
3875  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3876  *) ac_try_echo=$ac_try;;
3877esac
3878eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3879  (eval "$ac_link") 2>&5
3880  ac_status=$?
3881  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3882  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3883  { (case "(($ac_try" in
3884  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3885  *) ac_try_echo=$ac_try;;
3886esac
3887eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3888  (eval "$ac_try") 2>&5
3889  ac_status=$?
3890  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3891  (exit $ac_status); }; }; then
3892  :
3893else
3894  echo "$as_me: program exited with status $ac_status" >&5
3895echo "$as_me: failed program was:" >&5
3896sed 's/^/| /' conftest.$ac_ext >&5
3897
3898( exit $ac_status )
3899ac_cv_header_stdc=no
3900fi
3901rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3902fi
3903
3904
3905fi
3906fi
3907{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3908echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3909if test $ac_cv_header_stdc = yes; then
3910
3911cat >>confdefs.h <<\_ACEOF
3912#define STDC_HEADERS 1
3913_ACEOF
3914
3915fi
3916
3917# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3928		  inttypes.h stdint.h unistd.h
3929do
3930as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3931{ echo "$as_me:$LINENO: checking for $ac_header" >&5
3932echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3933if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3934  echo $ECHO_N "(cached) $ECHO_C" >&6
3935else
3936  cat >conftest.$ac_ext <<_ACEOF
3937/* confdefs.h.  */
3938_ACEOF
3939cat confdefs.h >>conftest.$ac_ext
3940cat >>conftest.$ac_ext <<_ACEOF
3941/* end confdefs.h.  */
3942$ac_includes_default
3943
3944#include <$ac_header>
3945_ACEOF
3946rm -f conftest.$ac_objext
3947if { (ac_try="$ac_compile"
3948case "(($ac_try" in
3949  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3950  *) ac_try_echo=$ac_try;;
3951esac
3952eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3953  (eval "$ac_compile") 2>conftest.er1
3954  ac_status=$?
3955  grep -v '^ *+' conftest.er1 >conftest.err
3956  rm -f conftest.er1
3957  cat conftest.err >&5
3958  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3959  (exit $ac_status); } && {
3960	 test -z "$ac_c_werror_flag" ||
3961	 test ! -s conftest.err
3962       } && test -s conftest.$ac_objext; then
3963  eval "$as_ac_Header=yes"
3964else
3965  echo "$as_me: failed program was:" >&5
3966sed 's/^/| /' conftest.$ac_ext >&5
3967
3968	eval "$as_ac_Header=no"
3969fi
3970
3971rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3972fi
3973ac_res=`eval echo '${'$as_ac_Header'}'`
3974	       { echo "$as_me:$LINENO: result: $ac_res" >&5
3975echo "${ECHO_T}$ac_res" >&6; }
3976if test `eval echo '${'$as_ac_Header'}'` = yes; then
3977  cat >>confdefs.h <<_ACEOF
3978#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3979_ACEOF
3980
3981fi
3982
3983done
3984
3985
3986
3987
3988
3989for ac_header in fcntl.h rpc/rpcent.h netdnet/dnetdb.h
3990do
3991as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3992if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3993  { echo "$as_me:$LINENO: checking for $ac_header" >&5
3994echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3995if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3996  echo $ECHO_N "(cached) $ECHO_C" >&6
3997fi
3998ac_res=`eval echo '${'$as_ac_Header'}'`
3999	       { echo "$as_me:$LINENO: result: $ac_res" >&5
4000echo "${ECHO_T}$ac_res" >&6; }
4001else
4002  # Is the header compilable?
4003{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
4004echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4005cat >conftest.$ac_ext <<_ACEOF
4006/* confdefs.h.  */
4007_ACEOF
4008cat confdefs.h >>conftest.$ac_ext
4009cat >>conftest.$ac_ext <<_ACEOF
4010/* end confdefs.h.  */
4011$ac_includes_default
4012#include <$ac_header>
4013_ACEOF
4014rm -f conftest.$ac_objext
4015if { (ac_try="$ac_compile"
4016case "(($ac_try" in
4017  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4018  *) ac_try_echo=$ac_try;;
4019esac
4020eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4021  (eval "$ac_compile") 2>conftest.er1
4022  ac_status=$?
4023  grep -v '^ *+' conftest.er1 >conftest.err
4024  rm -f conftest.er1
4025  cat conftest.err >&5
4026  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4027  (exit $ac_status); } && {
4028	 test -z "$ac_c_werror_flag" ||
4029	 test ! -s conftest.err
4030       } && test -s conftest.$ac_objext; then
4031  ac_header_compiler=yes
4032else
4033  echo "$as_me: failed program was:" >&5
4034sed 's/^/| /' conftest.$ac_ext >&5
4035
4036	ac_header_compiler=no
4037fi
4038
4039rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4040{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4041echo "${ECHO_T}$ac_header_compiler" >&6; }
4042
4043# Is the header present?
4044{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
4045echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4046cat >conftest.$ac_ext <<_ACEOF
4047/* confdefs.h.  */
4048_ACEOF
4049cat confdefs.h >>conftest.$ac_ext
4050cat >>conftest.$ac_ext <<_ACEOF
4051/* end confdefs.h.  */
4052#include <$ac_header>
4053_ACEOF
4054if { (ac_try="$ac_cpp conftest.$ac_ext"
4055case "(($ac_try" in
4056  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4057  *) ac_try_echo=$ac_try;;
4058esac
4059eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4060  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4061  ac_status=$?
4062  grep -v '^ *+' conftest.er1 >conftest.err
4063  rm -f conftest.er1
4064  cat conftest.err >&5
4065  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4066  (exit $ac_status); } >/dev/null && {
4067	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4068	 test ! -s conftest.err
4069       }; then
4070  ac_header_preproc=yes
4071else
4072  echo "$as_me: failed program was:" >&5
4073sed 's/^/| /' conftest.$ac_ext >&5
4074
4075  ac_header_preproc=no
4076fi
4077
4078rm -f conftest.err conftest.$ac_ext
4079{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4080echo "${ECHO_T}$ac_header_preproc" >&6; }
4081
4082# So?  What about this header?
4083case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4084  yes:no: )
4085    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4086echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4087    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4088echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4089    ac_header_preproc=yes
4090    ;;
4091  no:yes:* )
4092    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4093echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4094    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4095echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4096    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4097echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4098    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4099echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4100    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4101echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4102    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4103echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4104
4105    ;;
4106esac
4107{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4108echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4109if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4110  echo $ECHO_N "(cached) $ECHO_C" >&6
4111else
4112  eval "$as_ac_Header=\$ac_header_preproc"
4113fi
4114ac_res=`eval echo '${'$as_ac_Header'}'`
4115	       { echo "$as_me:$LINENO: result: $ac_res" >&5
4116echo "${ECHO_T}$ac_res" >&6; }
4117
4118fi
4119if test `eval echo '${'$as_ac_Header'}'` = yes; then
4120  cat >>confdefs.h <<_ACEOF
4121#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4122_ACEOF
4123
4124fi
4125
4126done
4127
4128
4129for ac_header in net/pfvar.h
4130do
4131as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4132{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4133echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4134if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4135  echo $ECHO_N "(cached) $ECHO_C" >&6
4136else
4137  cat >conftest.$ac_ext <<_ACEOF
4138/* confdefs.h.  */
4139_ACEOF
4140cat confdefs.h >>conftest.$ac_ext
4141cat >>conftest.$ac_ext <<_ACEOF
4142/* end confdefs.h.  */
4143#include <sys/types.h>
4144#include <sys/socket.h>
4145#include <net/if.h>
4146
4147#include <$ac_header>
4148_ACEOF
4149rm -f conftest.$ac_objext
4150if { (ac_try="$ac_compile"
4151case "(($ac_try" in
4152  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4153  *) ac_try_echo=$ac_try;;
4154esac
4155eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4156  (eval "$ac_compile") 2>conftest.er1
4157  ac_status=$?
4158  grep -v '^ *+' conftest.er1 >conftest.err
4159  rm -f conftest.er1
4160  cat conftest.err >&5
4161  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4162  (exit $ac_status); } && {
4163	 test -z "$ac_c_werror_flag" ||
4164	 test ! -s conftest.err
4165       } && test -s conftest.$ac_objext; then
4166  eval "$as_ac_Header=yes"
4167else
4168  echo "$as_me: failed program was:" >&5
4169sed 's/^/| /' conftest.$ac_ext >&5
4170
4171	eval "$as_ac_Header=no"
4172fi
4173
4174rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4175fi
4176ac_res=`eval echo '${'$as_ac_Header'}'`
4177	       { echo "$as_me:$LINENO: result: $ac_res" >&5
4178echo "${ECHO_T}$ac_res" >&6; }
4179if test `eval echo '${'$as_ac_Header'}'` = yes; then
4180  cat >>confdefs.h <<_ACEOF
4181#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4182_ACEOF
4183
4184fi
4185
4186done
4187
4188if test "$ac_cv_header_net_pfvar_h" = yes; then
4189	LOCALSRC="print-pflog.c $LOCALSRC"
4190fi
4191
4192for ac_header in netinet/if_ether.h
4193do
4194as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4195{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4196echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4197if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4198  echo $ECHO_N "(cached) $ECHO_C" >&6
4199else
4200  cat >conftest.$ac_ext <<_ACEOF
4201/* confdefs.h.  */
4202_ACEOF
4203cat confdefs.h >>conftest.$ac_ext
4204cat >>conftest.$ac_ext <<_ACEOF
4205/* end confdefs.h.  */
4206#include <sys/types.h>
4207#include <sys/socket.h>
4208
4209#include <$ac_header>
4210_ACEOF
4211rm -f conftest.$ac_objext
4212if { (ac_try="$ac_compile"
4213case "(($ac_try" in
4214  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4215  *) ac_try_echo=$ac_try;;
4216esac
4217eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4218  (eval "$ac_compile") 2>conftest.er1
4219  ac_status=$?
4220  grep -v '^ *+' conftest.er1 >conftest.err
4221  rm -f conftest.er1
4222  cat conftest.err >&5
4223  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4224  (exit $ac_status); } && {
4225	 test -z "$ac_c_werror_flag" ||
4226	 test ! -s conftest.err
4227       } && test -s conftest.$ac_objext; then
4228  eval "$as_ac_Header=yes"
4229else
4230  echo "$as_me: failed program was:" >&5
4231sed 's/^/| /' conftest.$ac_ext >&5
4232
4233	eval "$as_ac_Header=no"
4234fi
4235
4236rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4237fi
4238ac_res=`eval echo '${'$as_ac_Header'}'`
4239	       { echo "$as_me:$LINENO: result: $ac_res" >&5
4240echo "${ECHO_T}$ac_res" >&6; }
4241if test `eval echo '${'$as_ac_Header'}'` = yes; then
4242  cat >>confdefs.h <<_ACEOF
4243#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4244_ACEOF
4245
4246fi
4247
4248done
4249
4250if test "$ac_cv_header_netinet_if_ether_h" != yes; then
4251	#
4252	# The simple test didn't work.
4253	# Do we need to include <net/if.h> first?
4254	# Unset ac_cv_header_netinet_if_ether_h so we don't
4255	# treat the previous failure as a cached value and
4256	# suppress the next test.
4257	#
4258	{ echo "$as_me:$LINENO: Rechecking with some additional includes" >&5
4259echo "$as_me: Rechecking with some additional includes" >&6;}
4260	unset ac_cv_header_netinet_if_ether_h
4261
4262for ac_header in netinet/if_ether.h
4263do
4264as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4265{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4266echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4267if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4268  echo $ECHO_N "(cached) $ECHO_C" >&6
4269else
4270  cat >conftest.$ac_ext <<_ACEOF
4271/* confdefs.h.  */
4272_ACEOF
4273cat confdefs.h >>conftest.$ac_ext
4274cat >>conftest.$ac_ext <<_ACEOF
4275/* end confdefs.h.  */
4276#include <sys/types.h>
4277#include <sys/socket.h>
4278#include <netinet/in.h>
4279struct mbuf;
4280struct rtentry;
4281#include <net/if.h>
4282
4283#include <$ac_header>
4284_ACEOF
4285rm -f conftest.$ac_objext
4286if { (ac_try="$ac_compile"
4287case "(($ac_try" in
4288  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4289  *) ac_try_echo=$ac_try;;
4290esac
4291eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4292  (eval "$ac_compile") 2>conftest.er1
4293  ac_status=$?
4294  grep -v '^ *+' conftest.er1 >conftest.err
4295  rm -f conftest.er1
4296  cat conftest.err >&5
4297  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4298  (exit $ac_status); } && {
4299	 test -z "$ac_c_werror_flag" ||
4300	 test ! -s conftest.err
4301       } && test -s conftest.$ac_objext; then
4302  eval "$as_ac_Header=yes"
4303else
4304  echo "$as_me: failed program was:" >&5
4305sed 's/^/| /' conftest.$ac_ext >&5
4306
4307	eval "$as_ac_Header=no"
4308fi
4309
4310rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4311fi
4312ac_res=`eval echo '${'$as_ac_Header'}'`
4313	       { echo "$as_me:$LINENO: result: $ac_res" >&5
4314echo "${ECHO_T}$ac_res" >&6; }
4315if test `eval echo '${'$as_ac_Header'}'` = yes; then
4316  cat >>confdefs.h <<_ACEOF
4317#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4318_ACEOF
4319
4320fi
4321
4322done
4323
4324fi
4325
4326{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
4327echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
4328if test "${ac_cv_header_time+set}" = set; then
4329  echo $ECHO_N "(cached) $ECHO_C" >&6
4330else
4331  cat >conftest.$ac_ext <<_ACEOF
4332/* confdefs.h.  */
4333_ACEOF
4334cat confdefs.h >>conftest.$ac_ext
4335cat >>conftest.$ac_ext <<_ACEOF
4336/* end confdefs.h.  */
4337#include <sys/types.h>
4338#include <sys/time.h>
4339#include <time.h>
4340
4341int
4342main ()
4343{
4344if ((struct tm *) 0)
4345return 0;
4346  ;
4347  return 0;
4348}
4349_ACEOF
4350rm -f conftest.$ac_objext
4351if { (ac_try="$ac_compile"
4352case "(($ac_try" in
4353  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4354  *) ac_try_echo=$ac_try;;
4355esac
4356eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4357  (eval "$ac_compile") 2>conftest.er1
4358  ac_status=$?
4359  grep -v '^ *+' conftest.er1 >conftest.err
4360  rm -f conftest.er1
4361  cat conftest.err >&5
4362  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4363  (exit $ac_status); } && {
4364	 test -z "$ac_c_werror_flag" ||
4365	 test ! -s conftest.err
4366       } && test -s conftest.$ac_objext; then
4367  ac_cv_header_time=yes
4368else
4369  echo "$as_me: failed program was:" >&5
4370sed 's/^/| /' conftest.$ac_ext >&5
4371
4372	ac_cv_header_time=no
4373fi
4374
4375rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4376fi
4377{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
4378echo "${ECHO_T}$ac_cv_header_time" >&6; }
4379if test $ac_cv_header_time = yes; then
4380
4381cat >>confdefs.h <<\_ACEOF
4382#define TIME_WITH_SYS_TIME 1
4383_ACEOF
4384
4385fi
4386
4387
4388case "$host_os" in
4389
4390linux*)
4391	{ echo "$as_me:$LINENO: checking Linux kernel version" >&5
4392echo $ECHO_N "checking Linux kernel version... $ECHO_C" >&6; }
4393 	if test "$cross_compiling" = yes; then
4394 		if test "${ac_cv_linux_vers+set}" = set; then
4395  echo $ECHO_N "(cached) $ECHO_C" >&6
4396else
4397  ac_cv_linux_vers=unknown
4398fi
4399
4400 	else
4401 		if test "${ac_cv_linux_vers+set}" = set; then
4402  echo $ECHO_N "(cached) $ECHO_C" >&6
4403else
4404  ac_cv_linux_vers=`uname -r 2>&1 | \
4405 			sed -n -e '$s/.* //' -e '$s/\..*//p'`
4406fi
4407
4408 	fi
4409	{ echo "$as_me:$LINENO: result: $ac_cv_linux_vers" >&5
4410echo "${ECHO_T}$ac_cv_linux_vers" >&6; }
4411 	if test $ac_cv_linux_vers = unknown ; then
4412 		{ { echo "$as_me:$LINENO: error: cannot determine linux version when cross-compiling" >&5
4413echo "$as_me: error: cannot determine linux version when cross-compiling" >&2;}
4414   { (exit 1); exit 1; }; }
4415 	fi
4416	if test $ac_cv_linux_vers -lt 2 ; then
4417		{ { echo "$as_me:$LINENO: error: version 2 or higher required; see the INSTALL doc for more info" >&5
4418echo "$as_me: error: version 2 or higher required; see the INSTALL doc for more info" >&2;}
4419   { (exit 1); exit 1; }; }
4420	fi
4421	;;
4422
4423*)
4424	;;
4425esac
4426
4427
4428
4429# Check whether --with-smi was given.
4430if test "${with_smi+set}" = set; then
4431  withval=$with_smi;
4432else
4433  with_smi=yes
4434fi
4435
4436
4437if test "x$with_smi" != "xno" ; then
4438
4439for ac_header in smi.h
4440do
4441as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4442if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4443  { echo "$as_me:$LINENO: checking for $ac_header" >&5
4444echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4445if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4446  echo $ECHO_N "(cached) $ECHO_C" >&6
4447fi
4448ac_res=`eval echo '${'$as_ac_Header'}'`
4449	       { echo "$as_me:$LINENO: result: $ac_res" >&5
4450echo "${ECHO_T}$ac_res" >&6; }
4451else
4452  # Is the header compilable?
4453{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
4454echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4455cat >conftest.$ac_ext <<_ACEOF
4456/* confdefs.h.  */
4457_ACEOF
4458cat confdefs.h >>conftest.$ac_ext
4459cat >>conftest.$ac_ext <<_ACEOF
4460/* end confdefs.h.  */
4461$ac_includes_default
4462#include <$ac_header>
4463_ACEOF
4464rm -f conftest.$ac_objext
4465if { (ac_try="$ac_compile"
4466case "(($ac_try" in
4467  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4468  *) ac_try_echo=$ac_try;;
4469esac
4470eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4471  (eval "$ac_compile") 2>conftest.er1
4472  ac_status=$?
4473  grep -v '^ *+' conftest.er1 >conftest.err
4474  rm -f conftest.er1
4475  cat conftest.err >&5
4476  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4477  (exit $ac_status); } && {
4478	 test -z "$ac_c_werror_flag" ||
4479	 test ! -s conftest.err
4480       } && test -s conftest.$ac_objext; then
4481  ac_header_compiler=yes
4482else
4483  echo "$as_me: failed program was:" >&5
4484sed 's/^/| /' conftest.$ac_ext >&5
4485
4486	ac_header_compiler=no
4487fi
4488
4489rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4490{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4491echo "${ECHO_T}$ac_header_compiler" >&6; }
4492
4493# Is the header present?
4494{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
4495echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4496cat >conftest.$ac_ext <<_ACEOF
4497/* confdefs.h.  */
4498_ACEOF
4499cat confdefs.h >>conftest.$ac_ext
4500cat >>conftest.$ac_ext <<_ACEOF
4501/* end confdefs.h.  */
4502#include <$ac_header>
4503_ACEOF
4504if { (ac_try="$ac_cpp conftest.$ac_ext"
4505case "(($ac_try" in
4506  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4507  *) ac_try_echo=$ac_try;;
4508esac
4509eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4510  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4511  ac_status=$?
4512  grep -v '^ *+' conftest.er1 >conftest.err
4513  rm -f conftest.er1
4514  cat conftest.err >&5
4515  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4516  (exit $ac_status); } >/dev/null && {
4517	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4518	 test ! -s conftest.err
4519       }; then
4520  ac_header_preproc=yes
4521else
4522  echo "$as_me: failed program was:" >&5
4523sed 's/^/| /' conftest.$ac_ext >&5
4524
4525  ac_header_preproc=no
4526fi
4527
4528rm -f conftest.err conftest.$ac_ext
4529{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4530echo "${ECHO_T}$ac_header_preproc" >&6; }
4531
4532# So?  What about this header?
4533case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4534  yes:no: )
4535    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4536echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4537    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4538echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4539    ac_header_preproc=yes
4540    ;;
4541  no:yes:* )
4542    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4543echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4544    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4545echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4546    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4547echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4548    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4549echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4550    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4551echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4552    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4553echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4554
4555    ;;
4556esac
4557{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4558echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4559if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4560  echo $ECHO_N "(cached) $ECHO_C" >&6
4561else
4562  eval "$as_ac_Header=\$ac_header_preproc"
4563fi
4564ac_res=`eval echo '${'$as_ac_Header'}'`
4565	       { echo "$as_me:$LINENO: result: $ac_res" >&5
4566echo "${ECHO_T}$ac_res" >&6; }
4567
4568fi
4569if test `eval echo '${'$as_ac_Header'}'` = yes; then
4570  cat >>confdefs.h <<_ACEOF
4571#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4572_ACEOF
4573
4574fi
4575
4576done
4577
4578
4579{ echo "$as_me:$LINENO: checking for smiInit in -lsmi" >&5
4580echo $ECHO_N "checking for smiInit in -lsmi... $ECHO_C" >&6; }
4581if test "${ac_cv_lib_smi_smiInit+set}" = set; then
4582  echo $ECHO_N "(cached) $ECHO_C" >&6
4583else
4584  ac_check_lib_save_LIBS=$LIBS
4585LIBS="-lsmi  $LIBS"
4586cat >conftest.$ac_ext <<_ACEOF
4587/* confdefs.h.  */
4588_ACEOF
4589cat confdefs.h >>conftest.$ac_ext
4590cat >>conftest.$ac_ext <<_ACEOF
4591/* end confdefs.h.  */
4592
4593/* Override any GCC internal prototype to avoid an error.
4594   Use char because int might match the return type of a GCC
4595   builtin and then its argument prototype would still apply.  */
4596#ifdef __cplusplus
4597extern "C"
4598#endif
4599char smiInit ();
4600int
4601main ()
4602{
4603return smiInit ();
4604  ;
4605  return 0;
4606}
4607_ACEOF
4608rm -f conftest.$ac_objext conftest$ac_exeext
4609if { (ac_try="$ac_link"
4610case "(($ac_try" in
4611  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4612  *) ac_try_echo=$ac_try;;
4613esac
4614eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4615  (eval "$ac_link") 2>conftest.er1
4616  ac_status=$?
4617  grep -v '^ *+' conftest.er1 >conftest.err
4618  rm -f conftest.er1
4619  cat conftest.err >&5
4620  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4621  (exit $ac_status); } && {
4622	 test -z "$ac_c_werror_flag" ||
4623	 test ! -s conftest.err
4624       } && test -s conftest$ac_exeext &&
4625       $as_test_x conftest$ac_exeext; then
4626  ac_cv_lib_smi_smiInit=yes
4627else
4628  echo "$as_me: failed program was:" >&5
4629sed 's/^/| /' conftest.$ac_ext >&5
4630
4631	ac_cv_lib_smi_smiInit=no
4632fi
4633
4634rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4635      conftest$ac_exeext conftest.$ac_ext
4636LIBS=$ac_check_lib_save_LIBS
4637fi
4638{ echo "$as_me:$LINENO: result: $ac_cv_lib_smi_smiInit" >&5
4639echo "${ECHO_T}$ac_cv_lib_smi_smiInit" >&6; }
4640if test $ac_cv_lib_smi_smiInit = yes; then
4641  cat >>confdefs.h <<_ACEOF
4642#define HAVE_LIBSMI 1
4643_ACEOF
4644
4645  LIBS="-lsmi $LIBS"
4646
4647fi
4648
4649if test "$ac_cv_header_smi_h" = yes -a "$ac_cv_lib_smi_smiInit" = yes
4650then
4651{ echo "$as_me:$LINENO: checking whether to enable libsmi" >&5
4652echo $ECHO_N "checking whether to enable libsmi... $ECHO_C" >&6; }
4653        if test "$cross_compiling" = yes; then
4654   { echo "$as_me:$LINENO: result: not when cross-compiling" >&5
4655echo "${ECHO_T}not when cross-compiling" >&6; }
4656  libsmi=no
4657
4658else
4659  cat >conftest.$ac_ext <<_ACEOF
4660/* confdefs.h.  */
4661_ACEOF
4662cat confdefs.h >>conftest.$ac_ext
4663cat >>conftest.$ac_ext <<_ACEOF
4664/* end confdefs.h.  */
4665 /* libsmi available check */
4666#include <smi.h>
4667main()
4668{
4669  int current, revision, age, n;
4670  const int required = 2;
4671  if (smiInit(""))
4672    exit(1);
4673  if (strcmp(SMI_LIBRARY_VERSION, smi_library_version))
4674    exit(2);
4675  n = sscanf(smi_library_version, "%d:%d:%d", &current, &revision, &age);
4676  if (n != 3)
4677    exit(3);
4678  if (required < current - age || required > current)
4679    exit(4);
4680  exit(0);
4681}
4682
4683_ACEOF
4684rm -f conftest$ac_exeext
4685if { (ac_try="$ac_link"
4686case "(($ac_try" in
4687  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4688  *) ac_try_echo=$ac_try;;
4689esac
4690eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4691  (eval "$ac_link") 2>&5
4692  ac_status=$?
4693  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4694  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4695  { (case "(($ac_try" in
4696  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4697  *) ac_try_echo=$ac_try;;
4698esac
4699eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4700  (eval "$ac_try") 2>&5
4701  ac_status=$?
4702  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4703  (exit $ac_status); }; }; then
4704   { echo "$as_me:$LINENO: result: yes" >&5
4705echo "${ECHO_T}yes" >&6; }
4706  cat >>confdefs.h <<\_ACEOF
4707#define LIBSMI 1
4708_ACEOF
4709
4710  libsmi=yes
4711else
4712  echo "$as_me: program exited with status $ac_status" >&5
4713echo "$as_me: failed program was:" >&5
4714sed 's/^/| /' conftest.$ac_ext >&5
4715
4716( exit $ac_status )
4717 case $? in
4718  1) { echo "$as_me:$LINENO: result: no - smiInit failed" >&5
4719echo "${ECHO_T}no - smiInit failed" >&6; } ;;
4720  2) { echo "$as_me:$LINENO: result: no - header/library version mismatch" >&5
4721echo "${ECHO_T}no - header/library version mismatch" >&6; } ;;
4722  3) { echo "$as_me:$LINENO: result: no - can't determine library version" >&5
4723echo "${ECHO_T}no - can't determine library version" >&6; } ;;
4724  4) { echo "$as_me:$LINENO: result: no - too old" >&5
4725echo "${ECHO_T}no - too old" >&6; } ;;
4726  *) { echo "$as_me:$LINENO: result: no" >&5
4727echo "${ECHO_T}no" >&6; } ;;
4728  esac
4729  libsmi=no
4730fi
4731rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4732fi
4733
4734
4735fi
4736fi
4737
4738{ echo "$as_me:$LINENO: checking whether to enable the possibly-buggy SMB printer" >&5
4739echo $ECHO_N "checking whether to enable the possibly-buggy SMB printer... $ECHO_C" >&6; }
4740# Check whether --enable-smb was given.
4741if test "${enable_smb+set}" = set; then
4742  enableval=$enable_smb;
4743else
4744  enableval=yes
4745fi
4746
4747case "$enableval" in
4748yes)	{ echo "$as_me:$LINENO: result: yes" >&5
4749echo "${ECHO_T}yes" >&6; }
4750	{ echo "$as_me:$LINENO: WARNING: The SMB printer may have exploitable buffer overflows!!!" >&5
4751echo "$as_me: WARNING: The SMB printer may have exploitable buffer overflows!!!" >&2;}
4752	cat >>confdefs.h <<\_ACEOF
4753#define TCPDUMP_DO_SMB 1
4754_ACEOF
4755
4756	LOCALSRC="print-smb.c smbutil.c $LOCALSRC"
4757	;;
4758*)	{ echo "$as_me:$LINENO: result: no" >&5
4759echo "${ECHO_T}no" >&6; }
4760	;;
4761esac
4762
4763
4764# Check whether --with-user was given.
4765if test "${with_user+set}" = set; then
4766  withval=$with_user;
4767fi
4768
4769{ echo "$as_me:$LINENO: checking whether to drop root privileges by default" >&5
4770echo $ECHO_N "checking whether to drop root privileges by default... $ECHO_C" >&6; }
4771if test ! -z "$with_user" ; then
4772        cat >>confdefs.h <<_ACEOF
4773#define WITH_USER "$withval"
4774_ACEOF
4775
4776       { echo "$as_me:$LINENO: result: to \"$withval\"" >&5
4777echo "${ECHO_T}to \"$withval\"" >&6; }
4778else
4779       { echo "$as_me:$LINENO: result: no" >&5
4780echo "${ECHO_T}no" >&6; }
4781fi
4782
4783
4784# Check whether --with-chroot was given.
4785if test "${with_chroot+set}" = set; then
4786  withval=$with_chroot;
4787fi
4788
4789{ echo "$as_me:$LINENO: checking whether to chroot" >&5
4790echo $ECHO_N "checking whether to chroot... $ECHO_C" >&6; }
4791if test ! -z "$with_chroot" && test "$with_chroot" != "no" ; then
4792        cat >>confdefs.h <<_ACEOF
4793#define WITH_CHROOT "$withval"
4794_ACEOF
4795
4796       { echo "$as_me:$LINENO: result: to \"$withval\"" >&5
4797echo "${ECHO_T}to \"$withval\"" >&6; }
4798else
4799       { echo "$as_me:$LINENO: result: no" >&5
4800echo "${ECHO_T}no" >&6; }
4801fi
4802
4803{ echo "$as_me:$LINENO: checking whether to enable ipv6" >&5
4804echo $ECHO_N "checking whether to enable ipv6... $ECHO_C" >&6; }
4805# Check whether --enable-ipv6 was given.
4806if test "${enable_ipv6+set}" = set; then
4807  enableval=$enable_ipv6;  case "$enableval" in
4808yes)   { echo "$as_me:$LINENO: result: yes" >&5
4809echo "${ECHO_T}yes" >&6; }
4810       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"
4811       cat >>confdefs.h <<\_ACEOF
4812#define INET6 1
4813_ACEOF
4814
4815       ipv6=yes
4816       ;;
4817*)
4818       { echo "$as_me:$LINENO: result: no" >&5
4819echo "${ECHO_T}no" >&6; }
4820       ipv6=no
4821       ;;
4822  esac
4823else
4824  if test "$cross_compiling" = yes; then
4825   { echo "$as_me:$LINENO: result: no" >&5
4826echo "${ECHO_T}no" >&6; }
4827  ipv6=no
4828
4829else
4830  cat >conftest.$ac_ext <<_ACEOF
4831/* confdefs.h.  */
4832_ACEOF
4833cat confdefs.h >>conftest.$ac_ext
4834cat >>conftest.$ac_ext <<_ACEOF
4835/* end confdefs.h.  */
4836 /* AF_INET6 available check */
4837#include <sys/types.h>
4838#include <sys/socket.h>
4839main()
4840{
4841 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
4842   exit(1);
4843 else
4844   exit(0);
4845}
4846
4847_ACEOF
4848rm -f conftest$ac_exeext
4849if { (ac_try="$ac_link"
4850case "(($ac_try" in
4851  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4852  *) ac_try_echo=$ac_try;;
4853esac
4854eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4855  (eval "$ac_link") 2>&5
4856  ac_status=$?
4857  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4858  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4859  { (case "(($ac_try" in
4860  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4861  *) ac_try_echo=$ac_try;;
4862esac
4863eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4864  (eval "$ac_try") 2>&5
4865  ac_status=$?
4866  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4867  (exit $ac_status); }; }; then
4868   { echo "$as_me:$LINENO: result: yes" >&5
4869echo "${ECHO_T}yes" >&6; }
4870  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"
4871  cat >>confdefs.h <<\_ACEOF
4872#define INET6 1
4873_ACEOF
4874
4875  ipv6=yes
4876else
4877  echo "$as_me: program exited with status $ac_status" >&5
4878echo "$as_me: failed program was:" >&5
4879sed 's/^/| /' conftest.$ac_ext >&5
4880
4881( exit $ac_status )
4882 { echo "$as_me:$LINENO: result: no" >&5
4883echo "${ECHO_T}no" >&6; }
4884  ipv6=no
4885fi
4886rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4887fi
4888
4889
4890fi
4891
4892
4893ipv6type=unknown
4894ipv6lib=none
4895ipv6trylibc=no
4896
4897if test "$ipv6" = "yes"; then
4898	{ echo "$as_me:$LINENO: checking ipv6 stack type" >&5
4899echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6; }
4900	for i in inria kame linux-glibc linux-libinet6 toshiba v6d zeta; do
4901		case $i in
4902		inria)
4903						cat >conftest.$ac_ext <<_ACEOF
4904/* confdefs.h.  */
4905_ACEOF
4906cat confdefs.h >>conftest.$ac_ext
4907cat >>conftest.$ac_ext <<_ACEOF
4908/* end confdefs.h.  */
4909#include <netinet/in.h>
4910#ifdef IPV6_INRIA_VERSION
4911yes
4912#endif
4913_ACEOF
4914if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4915  $EGREP "yes" >/dev/null 2>&1; then
4916  ipv6type=$i;
4917				CFLAGS="-DINET6 $CFLAGS"
4918fi
4919rm -f -r conftest*
4920
4921			;;
4922		kame)
4923						cat >conftest.$ac_ext <<_ACEOF
4924/* confdefs.h.  */
4925_ACEOF
4926cat confdefs.h >>conftest.$ac_ext
4927cat >>conftest.$ac_ext <<_ACEOF
4928/* end confdefs.h.  */
4929#include <netinet/in.h>
4930#ifdef __KAME__
4931yes
4932#endif
4933_ACEOF
4934if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4935  $EGREP "yes" >/dev/null 2>&1; then
4936  ipv6type=$i;
4937				ipv6lib=inet6;
4938				ipv6libdir=/usr/local/v6/lib;
4939				ipv6trylibc=yes;
4940				CFLAGS="-DINET6 $CFLAGS"
4941fi
4942rm -f -r conftest*
4943
4944			;;
4945		linux-glibc)
4946						cat >conftest.$ac_ext <<_ACEOF
4947/* confdefs.h.  */
4948_ACEOF
4949cat confdefs.h >>conftest.$ac_ext
4950cat >>conftest.$ac_ext <<_ACEOF
4951/* end confdefs.h.  */
4952#include <features.h>
4953#if defined(__GLIBC__) && __GLIBC__ >= 2 && __GLIBC_MINOR__ >= 1
4954yes
4955#endif
4956_ACEOF
4957if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4958  $EGREP "yes" >/dev/null 2>&1; then
4959  ipv6type=$i;
4960				CFLAGS="-DINET6 $CFLAGS"
4961fi
4962rm -f -r conftest*
4963
4964			;;
4965		linux-libinet6)
4966																		if test -d /usr/inet6 -o -f /usr/include/netinet/ip6.h; then
4967				ipv6type=$i
4968				ipv6lib=inet6
4969				ipv6libdir=/usr/inet6/lib
4970				ipv6trylibc=yes;
4971				CFLAGS="-DINET6 -I/usr/inet6/include $CFLAGS"
4972			fi
4973			;;
4974		toshiba)
4975			cat >conftest.$ac_ext <<_ACEOF
4976/* confdefs.h.  */
4977_ACEOF
4978cat confdefs.h >>conftest.$ac_ext
4979cat >>conftest.$ac_ext <<_ACEOF
4980/* end confdefs.h.  */
4981#include <sys/param.h>
4982#ifdef _TOSHIBA_INET6
4983yes
4984#endif
4985_ACEOF
4986if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4987  $EGREP "yes" >/dev/null 2>&1; then
4988  ipv6type=$i;
4989				ipv6lib=inet6;
4990				ipv6libdir=/usr/local/v6/lib;
4991				CFLAGS="-DINET6 $CFLAGS"
4992fi
4993rm -f -r conftest*
4994
4995			;;
4996		v6d)
4997			cat >conftest.$ac_ext <<_ACEOF
4998/* confdefs.h.  */
4999_ACEOF
5000cat confdefs.h >>conftest.$ac_ext
5001cat >>conftest.$ac_ext <<_ACEOF
5002/* end confdefs.h.  */
5003#include </usr/local/v6/include/sys/v6config.h>
5004#ifdef __V6D__
5005yes
5006#endif
5007_ACEOF
5008if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5009  $EGREP "yes" >/dev/null 2>&1; then
5010  ipv6type=$i;
5011				ipv6lib=v6;
5012				ipv6libdir=/usr/local/v6/lib;
5013				CFLAGS="-I/usr/local/v6/include $CFLAGS"
5014fi
5015rm -f -r conftest*
5016
5017			;;
5018		zeta)
5019			cat >conftest.$ac_ext <<_ACEOF
5020/* confdefs.h.  */
5021_ACEOF
5022cat confdefs.h >>conftest.$ac_ext
5023cat >>conftest.$ac_ext <<_ACEOF
5024/* end confdefs.h.  */
5025#include <sys/param.h>
5026#ifdef _ZETA_MINAMI_INET6
5027yes
5028#endif
5029_ACEOF
5030if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5031  $EGREP "yes" >/dev/null 2>&1; then
5032  ipv6type=$i;
5033				ipv6lib=inet6;
5034				ipv6libdir=/usr/local/v6/lib;
5035				CFLAGS="-DINET6 $CFLAGS"
5036fi
5037rm -f -r conftest*
5038
5039			;;
5040		esac
5041		if test "$ipv6type" != "unknown"; then
5042			break
5043		fi
5044	done
5045	{ echo "$as_me:$LINENO: result: $ipv6type" >&5
5046echo "${ECHO_T}$ipv6type" >&6; }
5047fi
5048
5049if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
5050	if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then
5051		LIBS="-L$ipv6libdir -l$ipv6lib $LIBS"
5052		echo "You have $ipv6lib library, using it"
5053	else
5054		if test "$ipv6trylibc" = "yes"; then
5055			echo "You do not have $ipv6lib library, using libc"
5056		else
5057			echo 'Fatal: no $ipv6lib library found.  cannot continue.'
5058			echo "You need to fetch lib$ipv6lib.a from appropriate"
5059			echo 'ipv6 kit and compile beforehand.'
5060			exit 1
5061		fi
5062	fi
5063fi
5064
5065
5066if test "$ipv6" = "yes"; then
5067	#
5068	# XXX - on Tru64 UNIX 5.1, there is no "getaddrinfo()"
5069	# function in libc; there are "ngetaddrinfo()" and
5070	# "ogetaddrinfo()" functions, and <netdb.h> #defines
5071	# "getaddrinfo" to be either "ngetaddrinfo" or
5072	# "ogetaddrinfo", depending on whether _SOCKADDR_LEN
5073	# or _XOPEN_SOURCE_EXTENDED are defined or not.
5074	#
5075	# So this test doesn't work on Tru64 5.1, and possibly
5076	# on other 5.x releases.  This causes the configure
5077	# script to become confused, and results in libpcap
5078	# being unbuildable.
5079	#
5080	{ echo "$as_me:$LINENO: checking for library containing getaddrinfo" >&5
5081echo $ECHO_N "checking for library containing getaddrinfo... $ECHO_C" >&6; }
5082if test "${ac_cv_search_getaddrinfo+set}" = set; then
5083  echo $ECHO_N "(cached) $ECHO_C" >&6
5084else
5085  ac_func_search_save_LIBS=$LIBS
5086cat >conftest.$ac_ext <<_ACEOF
5087/* confdefs.h.  */
5088_ACEOF
5089cat confdefs.h >>conftest.$ac_ext
5090cat >>conftest.$ac_ext <<_ACEOF
5091/* end confdefs.h.  */
5092
5093/* Override any GCC internal prototype to avoid an error.
5094   Use char because int might match the return type of a GCC
5095   builtin and then its argument prototype would still apply.  */
5096#ifdef __cplusplus
5097extern "C"
5098#endif
5099char getaddrinfo ();
5100int
5101main ()
5102{
5103return getaddrinfo ();
5104  ;
5105  return 0;
5106}
5107_ACEOF
5108for ac_lib in '' socket; do
5109  if test -z "$ac_lib"; then
5110    ac_res="none required"
5111  else
5112    ac_res=-l$ac_lib
5113    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5114  fi
5115  rm -f conftest.$ac_objext conftest$ac_exeext
5116if { (ac_try="$ac_link"
5117case "(($ac_try" in
5118  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5119  *) ac_try_echo=$ac_try;;
5120esac
5121eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5122  (eval "$ac_link") 2>conftest.er1
5123  ac_status=$?
5124  grep -v '^ *+' conftest.er1 >conftest.err
5125  rm -f conftest.er1
5126  cat conftest.err >&5
5127  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5128  (exit $ac_status); } && {
5129	 test -z "$ac_c_werror_flag" ||
5130	 test ! -s conftest.err
5131       } && test -s conftest$ac_exeext &&
5132       $as_test_x conftest$ac_exeext; then
5133  ac_cv_search_getaddrinfo=$ac_res
5134else
5135  echo "$as_me: failed program was:" >&5
5136sed 's/^/| /' conftest.$ac_ext >&5
5137
5138
5139fi
5140
5141rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5142      conftest$ac_exeext
5143  if test "${ac_cv_search_getaddrinfo+set}" = set; then
5144  break
5145fi
5146done
5147if test "${ac_cv_search_getaddrinfo+set}" = set; then
5148  :
5149else
5150  ac_cv_search_getaddrinfo=no
5151fi
5152rm conftest.$ac_ext
5153LIBS=$ac_func_search_save_LIBS
5154fi
5155{ echo "$as_me:$LINENO: result: $ac_cv_search_getaddrinfo" >&5
5156echo "${ECHO_T}$ac_cv_search_getaddrinfo" >&6; }
5157ac_res=$ac_cv_search_getaddrinfo
5158if test "$ac_res" != no; then
5159  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5160  	{ echo "$as_me:$LINENO: checking getaddrinfo bug" >&5
5161echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6; }
5162	if test "${td_cv_buggygetaddrinfo+set}" = set; then
5163  echo $ECHO_N "(cached) $ECHO_C" >&6
5164else
5165  if test "$cross_compiling" = yes; then
5166  td_cv_buggygetaddrinfo=yes
5167else
5168  cat >conftest.$ac_ext <<_ACEOF
5169/* confdefs.h.  */
5170_ACEOF
5171cat confdefs.h >>conftest.$ac_ext
5172cat >>conftest.$ac_ext <<_ACEOF
5173/* end confdefs.h.  */
5174
5175#include <sys/types.h>
5176#include <netdb.h>
5177#include <string.h>
5178#include <sys/socket.h>
5179#include <netinet/in.h>
5180
5181main()
5182{
5183  int passive, gaierr, inet4 = 0, inet6 = 0;
5184  struct addrinfo hints, *ai, *aitop;
5185  char straddr[INET6_ADDRSTRLEN], strport[16];
5186
5187  for (passive = 0; passive <= 1; passive++) {
5188    memset(&hints, 0, sizeof(hints));
5189    hints.ai_family = AF_UNSPEC;
5190    hints.ai_flags = passive ? AI_PASSIVE : 0;
5191    hints.ai_socktype = SOCK_STREAM;
5192    hints.ai_protocol = IPPROTO_TCP;
5193    if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
5194      (void)gai_strerror(gaierr);
5195      goto bad;
5196    }
5197    for (ai = aitop; ai; ai = ai->ai_next) {
5198      if (ai->ai_addr == NULL ||
5199          ai->ai_addrlen == 0 ||
5200          getnameinfo(ai->ai_addr, ai->ai_addrlen,
5201                      straddr, sizeof(straddr), strport, sizeof(strport),
5202                      NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
5203        goto bad;
5204      }
5205      switch (ai->ai_family) {
5206      case AF_INET:
5207        if (strcmp(strport, "54321") != 0) {
5208          goto bad;
5209        }
5210        if (passive) {
5211          if (strcmp(straddr, "0.0.0.0") != 0) {
5212            goto bad;
5213          }
5214        } else {
5215          if (strcmp(straddr, "127.0.0.1") != 0) {
5216            goto bad;
5217          }
5218        }
5219        inet4++;
5220        break;
5221      case AF_INET6:
5222        if (strcmp(strport, "54321") != 0) {
5223          goto bad;
5224        }
5225        if (passive) {
5226          if (strcmp(straddr, "::") != 0) {
5227            goto bad;
5228          }
5229        } else {
5230          if (strcmp(straddr, "::1") != 0) {
5231            goto bad;
5232          }
5233        }
5234        inet6++;
5235        break;
5236      case AF_UNSPEC:
5237        goto bad;
5238        break;
5239#ifdef AF_UNIX
5240      case AF_UNIX:
5241#else
5242#ifdef AF_LOCAL
5243      case AF_LOCAL:
5244#endif
5245#endif
5246      default:
5247        /* another family support? */
5248        break;
5249      }
5250    }
5251  }
5252
5253  /* supported family should be 2, unsupported family should be 0 */
5254  if (!(inet4 == 0 || inet4 == 2))
5255    goto bad;
5256  if (!(inet6 == 0 || inet6 == 2))
5257    goto bad;
5258
5259  if (aitop)
5260    freeaddrinfo(aitop);
5261  exit(0);
5262
5263 bad:
5264  if (aitop)
5265    freeaddrinfo(aitop);
5266  exit(1);
5267}
5268
5269_ACEOF
5270rm -f conftest$ac_exeext
5271if { (ac_try="$ac_link"
5272case "(($ac_try" in
5273  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5274  *) ac_try_echo=$ac_try;;
5275esac
5276eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5277  (eval "$ac_link") 2>&5
5278  ac_status=$?
5279  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5280  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5281  { (case "(($ac_try" in
5282  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5283  *) ac_try_echo=$ac_try;;
5284esac
5285eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5286  (eval "$ac_try") 2>&5
5287  ac_status=$?
5288  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5289  (exit $ac_status); }; }; then
5290  td_cv_buggygetaddrinfo=no
5291else
5292  echo "$as_me: program exited with status $ac_status" >&5
5293echo "$as_me: failed program was:" >&5
5294sed 's/^/| /' conftest.$ac_ext >&5
5295
5296( exit $ac_status )
5297td_cv_buggygetaddrinfo=yes
5298fi
5299rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5300fi
5301
5302
5303fi
5304
5305	if test "$td_cv_buggygetaddrinfo" = no; then
5306		{ echo "$as_me:$LINENO: result: good" >&5
5307echo "${ECHO_T}good" >&6; }
5308	else
5309		{ echo "$as_me:$LINENO: result: buggy" >&5
5310echo "${ECHO_T}buggy" >&6; }
5311	fi
5312
5313	if test "$td_cv_buggygetaddrinfo" = "yes"; then
5314		#
5315		# XXX - it doesn't appear that "ipv6type" can ever be
5316		# set to "linux".  Should this be testing for
5317		# "linux-glibc", or for that *or* "linux-libinet6"?
5318		# If the latter, note that "linux-libinet6" is also
5319		# the type given to some non-Linux OSes.
5320		#
5321		if test "$ipv6type" != "linux"; then
5322			echo 'Fatal: You must get working getaddrinfo() function.'
5323			echo '       or you can specify "--disable-ipv6"'.
5324			exit 1
5325		else
5326			echo 'Warning: getaddrinfo() implementation on your system seems be buggy.'
5327			echo '         Better upgrade your system library to newest version'
5328			echo '         of GNU C library (aka glibc).'
5329		fi
5330	fi
5331
5332fi
5333
5334
5335for ac_func in getnameinfo
5336do
5337as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5338{ echo "$as_me:$LINENO: checking for $ac_func" >&5
5339echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5340if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5341  echo $ECHO_N "(cached) $ECHO_C" >&6
5342else
5343  cat >conftest.$ac_ext <<_ACEOF
5344/* confdefs.h.  */
5345_ACEOF
5346cat confdefs.h >>conftest.$ac_ext
5347cat >>conftest.$ac_ext <<_ACEOF
5348/* end confdefs.h.  */
5349/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5350   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5351#define $ac_func innocuous_$ac_func
5352
5353/* System header to define __stub macros and hopefully few prototypes,
5354    which can conflict with char $ac_func (); below.
5355    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5356    <limits.h> exists even on freestanding compilers.  */
5357
5358#ifdef __STDC__
5359# include <limits.h>
5360#else
5361# include <assert.h>
5362#endif
5363
5364#undef $ac_func
5365
5366/* Override any GCC internal prototype to avoid an error.
5367   Use char because int might match the return type of a GCC
5368   builtin and then its argument prototype would still apply.  */
5369#ifdef __cplusplus
5370extern "C"
5371#endif
5372char $ac_func ();
5373/* The GNU C library defines this for functions which it implements
5374    to always fail with ENOSYS.  Some functions are actually named
5375    something starting with __ and the normal name is an alias.  */
5376#if defined __stub_$ac_func || defined __stub___$ac_func
5377choke me
5378#endif
5379
5380int
5381main ()
5382{
5383return $ac_func ();
5384  ;
5385  return 0;
5386}
5387_ACEOF
5388rm -f conftest.$ac_objext conftest$ac_exeext
5389if { (ac_try="$ac_link"
5390case "(($ac_try" in
5391  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5392  *) ac_try_echo=$ac_try;;
5393esac
5394eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5395  (eval "$ac_link") 2>conftest.er1
5396  ac_status=$?
5397  grep -v '^ *+' conftest.er1 >conftest.err
5398  rm -f conftest.er1
5399  cat conftest.err >&5
5400  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5401  (exit $ac_status); } && {
5402	 test -z "$ac_c_werror_flag" ||
5403	 test ! -s conftest.err
5404       } && test -s conftest$ac_exeext &&
5405       $as_test_x conftest$ac_exeext; then
5406  eval "$as_ac_var=yes"
5407else
5408  echo "$as_me: failed program was:" >&5
5409sed 's/^/| /' conftest.$ac_ext >&5
5410
5411	eval "$as_ac_var=no"
5412fi
5413
5414rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5415      conftest$ac_exeext conftest.$ac_ext
5416fi
5417ac_res=`eval echo '${'$as_ac_var'}'`
5418	       { echo "$as_me:$LINENO: result: $ac_res" >&5
5419echo "${ECHO_T}$ac_res" >&6; }
5420if test `eval echo '${'$as_ac_var'}'` = yes; then
5421  cat >>confdefs.h <<_ACEOF
5422#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5423_ACEOF
5424
5425else
5426  case " $LIBOBJS " in
5427  *" $ac_func.$ac_objext "* ) ;;
5428  *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
5429 ;;
5430esac
5431
5432fi
5433done
5434
5435
5436fi
5437
5438{ echo "$as_me:$LINENO: checking for dnet_htoa declaration in netdnet/dnetdb.h" >&5
5439echo $ECHO_N "checking for dnet_htoa declaration in netdnet/dnetdb.h... $ECHO_C" >&6; }
5440if test "${td_cv_decl_netdnet_dnetdb_h_dnet_htoa+set}" = set; then
5441  echo $ECHO_N "(cached) $ECHO_C" >&6
5442else
5443  cat >conftest.$ac_ext <<_ACEOF
5444/* confdefs.h.  */
5445_ACEOF
5446cat confdefs.h >>conftest.$ac_ext
5447cat >>conftest.$ac_ext <<_ACEOF
5448/* end confdefs.h.  */
5449#include <netdnet/dnetdb.h>
5450
5451_ACEOF
5452if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5453  $EGREP "dnet_htoa" >/dev/null 2>&1; then
5454  td_cv_decl_netdnet_dnetdb_h_dnet_htoa=yes
5455else
5456  td_cv_decl_netdnet_dnetdb_h_dnet_htoa=no
5457fi
5458rm -f -r conftest*
5459
5460fi
5461{ echo "$as_me:$LINENO: result: $td_cv_decl_netdnet_dnetdb_h_dnet_htoa" >&5
5462echo "${ECHO_T}$td_cv_decl_netdnet_dnetdb_h_dnet_htoa" >&6; }
5463if test "$td_cv_decl_netdnet_dnetdb_h_dnet_htoa" = yes; then
5464	cat >>confdefs.h <<\_ACEOF
5465#define HAVE_NETDNET_DNETDB_H_DNET_HTOA 1
5466_ACEOF
5467
5468fi
5469
5470{ echo "$as_me:$LINENO: checking for char" >&5
5471echo $ECHO_N "checking for char... $ECHO_C" >&6; }
5472if test "${ac_cv_type_char+set}" = set; then
5473  echo $ECHO_N "(cached) $ECHO_C" >&6
5474else
5475  cat >conftest.$ac_ext <<_ACEOF
5476/* confdefs.h.  */
5477_ACEOF
5478cat confdefs.h >>conftest.$ac_ext
5479cat >>conftest.$ac_ext <<_ACEOF
5480/* end confdefs.h.  */
5481$ac_includes_default
5482typedef char ac__type_new_;
5483int
5484main ()
5485{
5486if ((ac__type_new_ *) 0)
5487  return 0;
5488if (sizeof (ac__type_new_))
5489  return 0;
5490  ;
5491  return 0;
5492}
5493_ACEOF
5494rm -f conftest.$ac_objext
5495if { (ac_try="$ac_compile"
5496case "(($ac_try" in
5497  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5498  *) ac_try_echo=$ac_try;;
5499esac
5500eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5501  (eval "$ac_compile") 2>conftest.er1
5502  ac_status=$?
5503  grep -v '^ *+' conftest.er1 >conftest.err
5504  rm -f conftest.er1
5505  cat conftest.err >&5
5506  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5507  (exit $ac_status); } && {
5508	 test -z "$ac_c_werror_flag" ||
5509	 test ! -s conftest.err
5510       } && test -s conftest.$ac_objext; then
5511  ac_cv_type_char=yes
5512else
5513  echo "$as_me: failed program was:" >&5
5514sed 's/^/| /' conftest.$ac_ext >&5
5515
5516	ac_cv_type_char=no
5517fi
5518
5519rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5520fi
5521{ echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
5522echo "${ECHO_T}$ac_cv_type_char" >&6; }
5523
5524# The cast to long int works around a bug in the HP C Compiler
5525# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5526# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5527# This bug is HP SR number 8606223364.
5528{ echo "$as_me:$LINENO: checking size of char" >&5
5529echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
5530if test "${ac_cv_sizeof_char+set}" = set; then
5531  echo $ECHO_N "(cached) $ECHO_C" >&6
5532else
5533  if test "$cross_compiling" = yes; then
5534  # Depending upon the size, compute the lo and hi bounds.
5535cat >conftest.$ac_ext <<_ACEOF
5536/* confdefs.h.  */
5537_ACEOF
5538cat confdefs.h >>conftest.$ac_ext
5539cat >>conftest.$ac_ext <<_ACEOF
5540/* end confdefs.h.  */
5541$ac_includes_default
5542   typedef char ac__type_sizeof_;
5543int
5544main ()
5545{
5546static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
5547test_array [0] = 0
5548
5549  ;
5550  return 0;
5551}
5552_ACEOF
5553rm -f conftest.$ac_objext
5554if { (ac_try="$ac_compile"
5555case "(($ac_try" in
5556  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5557  *) ac_try_echo=$ac_try;;
5558esac
5559eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5560  (eval "$ac_compile") 2>conftest.er1
5561  ac_status=$?
5562  grep -v '^ *+' conftest.er1 >conftest.err
5563  rm -f conftest.er1
5564  cat conftest.err >&5
5565  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5566  (exit $ac_status); } && {
5567	 test -z "$ac_c_werror_flag" ||
5568	 test ! -s conftest.err
5569       } && test -s conftest.$ac_objext; then
5570  ac_lo=0 ac_mid=0
5571  while :; do
5572    cat >conftest.$ac_ext <<_ACEOF
5573/* confdefs.h.  */
5574_ACEOF
5575cat confdefs.h >>conftest.$ac_ext
5576cat >>conftest.$ac_ext <<_ACEOF
5577/* end confdefs.h.  */
5578$ac_includes_default
5579   typedef char ac__type_sizeof_;
5580int
5581main ()
5582{
5583static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5584test_array [0] = 0
5585
5586  ;
5587  return 0;
5588}
5589_ACEOF
5590rm -f conftest.$ac_objext
5591if { (ac_try="$ac_compile"
5592case "(($ac_try" in
5593  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5594  *) ac_try_echo=$ac_try;;
5595esac
5596eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5597  (eval "$ac_compile") 2>conftest.er1
5598  ac_status=$?
5599  grep -v '^ *+' conftest.er1 >conftest.err
5600  rm -f conftest.er1
5601  cat conftest.err >&5
5602  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5603  (exit $ac_status); } && {
5604	 test -z "$ac_c_werror_flag" ||
5605	 test ! -s conftest.err
5606       } && test -s conftest.$ac_objext; then
5607  ac_hi=$ac_mid; break
5608else
5609  echo "$as_me: failed program was:" >&5
5610sed 's/^/| /' conftest.$ac_ext >&5
5611
5612	ac_lo=`expr $ac_mid + 1`
5613			if test $ac_lo -le $ac_mid; then
5614			  ac_lo= ac_hi=
5615			  break
5616			fi
5617			ac_mid=`expr 2 '*' $ac_mid + 1`
5618fi
5619
5620rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5621  done
5622else
5623  echo "$as_me: failed program was:" >&5
5624sed 's/^/| /' conftest.$ac_ext >&5
5625
5626	cat >conftest.$ac_ext <<_ACEOF
5627/* confdefs.h.  */
5628_ACEOF
5629cat confdefs.h >>conftest.$ac_ext
5630cat >>conftest.$ac_ext <<_ACEOF
5631/* end confdefs.h.  */
5632$ac_includes_default
5633   typedef char ac__type_sizeof_;
5634int
5635main ()
5636{
5637static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
5638test_array [0] = 0
5639
5640  ;
5641  return 0;
5642}
5643_ACEOF
5644rm -f conftest.$ac_objext
5645if { (ac_try="$ac_compile"
5646case "(($ac_try" in
5647  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5648  *) ac_try_echo=$ac_try;;
5649esac
5650eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5651  (eval "$ac_compile") 2>conftest.er1
5652  ac_status=$?
5653  grep -v '^ *+' conftest.er1 >conftest.err
5654  rm -f conftest.er1
5655  cat conftest.err >&5
5656  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5657  (exit $ac_status); } && {
5658	 test -z "$ac_c_werror_flag" ||
5659	 test ! -s conftest.err
5660       } && test -s conftest.$ac_objext; then
5661  ac_hi=-1 ac_mid=-1
5662  while :; do
5663    cat >conftest.$ac_ext <<_ACEOF
5664/* confdefs.h.  */
5665_ACEOF
5666cat confdefs.h >>conftest.$ac_ext
5667cat >>conftest.$ac_ext <<_ACEOF
5668/* end confdefs.h.  */
5669$ac_includes_default
5670   typedef char ac__type_sizeof_;
5671int
5672main ()
5673{
5674static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
5675test_array [0] = 0
5676
5677  ;
5678  return 0;
5679}
5680_ACEOF
5681rm -f conftest.$ac_objext
5682if { (ac_try="$ac_compile"
5683case "(($ac_try" in
5684  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5685  *) ac_try_echo=$ac_try;;
5686esac
5687eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5688  (eval "$ac_compile") 2>conftest.er1
5689  ac_status=$?
5690  grep -v '^ *+' conftest.er1 >conftest.err
5691  rm -f conftest.er1
5692  cat conftest.err >&5
5693  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5694  (exit $ac_status); } && {
5695	 test -z "$ac_c_werror_flag" ||
5696	 test ! -s conftest.err
5697       } && test -s conftest.$ac_objext; then
5698  ac_lo=$ac_mid; break
5699else
5700  echo "$as_me: failed program was:" >&5
5701sed 's/^/| /' conftest.$ac_ext >&5
5702
5703	ac_hi=`expr '(' $ac_mid ')' - 1`
5704			if test $ac_mid -le $ac_hi; then
5705			  ac_lo= ac_hi=
5706			  break
5707			fi
5708			ac_mid=`expr 2 '*' $ac_mid`
5709fi
5710
5711rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5712  done
5713else
5714  echo "$as_me: failed program was:" >&5
5715sed 's/^/| /' conftest.$ac_ext >&5
5716
5717	ac_lo= ac_hi=
5718fi
5719
5720rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5721fi
5722
5723rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5724# Binary search between lo and hi bounds.
5725while test "x$ac_lo" != "x$ac_hi"; do
5726  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5727  cat >conftest.$ac_ext <<_ACEOF
5728/* confdefs.h.  */
5729_ACEOF
5730cat confdefs.h >>conftest.$ac_ext
5731cat >>conftest.$ac_ext <<_ACEOF
5732/* end confdefs.h.  */
5733$ac_includes_default
5734   typedef char ac__type_sizeof_;
5735int
5736main ()
5737{
5738static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5739test_array [0] = 0
5740
5741  ;
5742  return 0;
5743}
5744_ACEOF
5745rm -f conftest.$ac_objext
5746if { (ac_try="$ac_compile"
5747case "(($ac_try" in
5748  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5749  *) ac_try_echo=$ac_try;;
5750esac
5751eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5752  (eval "$ac_compile") 2>conftest.er1
5753  ac_status=$?
5754  grep -v '^ *+' conftest.er1 >conftest.err
5755  rm -f conftest.er1
5756  cat conftest.err >&5
5757  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5758  (exit $ac_status); } && {
5759	 test -z "$ac_c_werror_flag" ||
5760	 test ! -s conftest.err
5761       } && test -s conftest.$ac_objext; then
5762  ac_hi=$ac_mid
5763else
5764  echo "$as_me: failed program was:" >&5
5765sed 's/^/| /' conftest.$ac_ext >&5
5766
5767	ac_lo=`expr '(' $ac_mid ')' + 1`
5768fi
5769
5770rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5771done
5772case $ac_lo in
5773?*) ac_cv_sizeof_char=$ac_lo;;
5774'') if test "$ac_cv_type_char" = yes; then
5775     { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
5776See \`config.log' for more details." >&5
5777echo "$as_me: error: cannot compute sizeof (char)
5778See \`config.log' for more details." >&2;}
5779   { (exit 77); exit 77; }; }
5780   else
5781     ac_cv_sizeof_char=0
5782   fi ;;
5783esac
5784else
5785  cat >conftest.$ac_ext <<_ACEOF
5786/* confdefs.h.  */
5787_ACEOF
5788cat confdefs.h >>conftest.$ac_ext
5789cat >>conftest.$ac_ext <<_ACEOF
5790/* end confdefs.h.  */
5791$ac_includes_default
5792   typedef char ac__type_sizeof_;
5793static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
5794static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
5795#include <stdio.h>
5796#include <stdlib.h>
5797int
5798main ()
5799{
5800
5801  FILE *f = fopen ("conftest.val", "w");
5802  if (! f)
5803    return 1;
5804  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
5805    {
5806      long int i = longval ();
5807      if (i != ((long int) (sizeof (ac__type_sizeof_))))
5808	return 1;
5809      fprintf (f, "%ld\n", i);
5810    }
5811  else
5812    {
5813      unsigned long int i = ulongval ();
5814      if (i != ((long int) (sizeof (ac__type_sizeof_))))
5815	return 1;
5816      fprintf (f, "%lu\n", i);
5817    }
5818  return ferror (f) || fclose (f) != 0;
5819
5820  ;
5821  return 0;
5822}
5823_ACEOF
5824rm -f conftest$ac_exeext
5825if { (ac_try="$ac_link"
5826case "(($ac_try" in
5827  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5828  *) ac_try_echo=$ac_try;;
5829esac
5830eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5831  (eval "$ac_link") 2>&5
5832  ac_status=$?
5833  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5834  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5835  { (case "(($ac_try" in
5836  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5837  *) ac_try_echo=$ac_try;;
5838esac
5839eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5840  (eval "$ac_try") 2>&5
5841  ac_status=$?
5842  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5843  (exit $ac_status); }; }; then
5844  ac_cv_sizeof_char=`cat conftest.val`
5845else
5846  echo "$as_me: program exited with status $ac_status" >&5
5847echo "$as_me: failed program was:" >&5
5848sed 's/^/| /' conftest.$ac_ext >&5
5849
5850( exit $ac_status )
5851if test "$ac_cv_type_char" = yes; then
5852     { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
5853See \`config.log' for more details." >&5
5854echo "$as_me: error: cannot compute sizeof (char)
5855See \`config.log' for more details." >&2;}
5856   { (exit 77); exit 77; }; }
5857   else
5858     ac_cv_sizeof_char=0
5859   fi
5860fi
5861rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5862fi
5863rm -f conftest.val
5864fi
5865{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
5866echo "${ECHO_T}$ac_cv_sizeof_char" >&6; }
5867
5868
5869
5870cat >>confdefs.h <<_ACEOF
5871#define SIZEOF_CHAR $ac_cv_sizeof_char
5872_ACEOF
5873
5874
5875{ echo "$as_me:$LINENO: checking for short" >&5
5876echo $ECHO_N "checking for short... $ECHO_C" >&6; }
5877if test "${ac_cv_type_short+set}" = set; then
5878  echo $ECHO_N "(cached) $ECHO_C" >&6
5879else
5880  cat >conftest.$ac_ext <<_ACEOF
5881/* confdefs.h.  */
5882_ACEOF
5883cat confdefs.h >>conftest.$ac_ext
5884cat >>conftest.$ac_ext <<_ACEOF
5885/* end confdefs.h.  */
5886$ac_includes_default
5887typedef short ac__type_new_;
5888int
5889main ()
5890{
5891if ((ac__type_new_ *) 0)
5892  return 0;
5893if (sizeof (ac__type_new_))
5894  return 0;
5895  ;
5896  return 0;
5897}
5898_ACEOF
5899rm -f conftest.$ac_objext
5900if { (ac_try="$ac_compile"
5901case "(($ac_try" in
5902  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5903  *) ac_try_echo=$ac_try;;
5904esac
5905eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5906  (eval "$ac_compile") 2>conftest.er1
5907  ac_status=$?
5908  grep -v '^ *+' conftest.er1 >conftest.err
5909  rm -f conftest.er1
5910  cat conftest.err >&5
5911  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5912  (exit $ac_status); } && {
5913	 test -z "$ac_c_werror_flag" ||
5914	 test ! -s conftest.err
5915       } && test -s conftest.$ac_objext; then
5916  ac_cv_type_short=yes
5917else
5918  echo "$as_me: failed program was:" >&5
5919sed 's/^/| /' conftest.$ac_ext >&5
5920
5921	ac_cv_type_short=no
5922fi
5923
5924rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5925fi
5926{ echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
5927echo "${ECHO_T}$ac_cv_type_short" >&6; }
5928
5929# The cast to long int works around a bug in the HP C Compiler
5930# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5931# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5932# This bug is HP SR number 8606223364.
5933{ echo "$as_me:$LINENO: checking size of short" >&5
5934echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
5935if test "${ac_cv_sizeof_short+set}" = set; then
5936  echo $ECHO_N "(cached) $ECHO_C" >&6
5937else
5938  if test "$cross_compiling" = yes; then
5939  # Depending upon the size, compute the lo and hi bounds.
5940cat >conftest.$ac_ext <<_ACEOF
5941/* confdefs.h.  */
5942_ACEOF
5943cat confdefs.h >>conftest.$ac_ext
5944cat >>conftest.$ac_ext <<_ACEOF
5945/* end confdefs.h.  */
5946$ac_includes_default
5947   typedef short ac__type_sizeof_;
5948int
5949main ()
5950{
5951static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
5952test_array [0] = 0
5953
5954  ;
5955  return 0;
5956}
5957_ACEOF
5958rm -f conftest.$ac_objext
5959if { (ac_try="$ac_compile"
5960case "(($ac_try" in
5961  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5962  *) ac_try_echo=$ac_try;;
5963esac
5964eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5965  (eval "$ac_compile") 2>conftest.er1
5966  ac_status=$?
5967  grep -v '^ *+' conftest.er1 >conftest.err
5968  rm -f conftest.er1
5969  cat conftest.err >&5
5970  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5971  (exit $ac_status); } && {
5972	 test -z "$ac_c_werror_flag" ||
5973	 test ! -s conftest.err
5974       } && test -s conftest.$ac_objext; then
5975  ac_lo=0 ac_mid=0
5976  while :; do
5977    cat >conftest.$ac_ext <<_ACEOF
5978/* confdefs.h.  */
5979_ACEOF
5980cat confdefs.h >>conftest.$ac_ext
5981cat >>conftest.$ac_ext <<_ACEOF
5982/* end confdefs.h.  */
5983$ac_includes_default
5984   typedef short ac__type_sizeof_;
5985int
5986main ()
5987{
5988static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5989test_array [0] = 0
5990
5991  ;
5992  return 0;
5993}
5994_ACEOF
5995rm -f conftest.$ac_objext
5996if { (ac_try="$ac_compile"
5997case "(($ac_try" in
5998  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5999  *) ac_try_echo=$ac_try;;
6000esac
6001eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6002  (eval "$ac_compile") 2>conftest.er1
6003  ac_status=$?
6004  grep -v '^ *+' conftest.er1 >conftest.err
6005  rm -f conftest.er1
6006  cat conftest.err >&5
6007  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6008  (exit $ac_status); } && {
6009	 test -z "$ac_c_werror_flag" ||
6010	 test ! -s conftest.err
6011       } && test -s conftest.$ac_objext; then
6012  ac_hi=$ac_mid; break
6013else
6014  echo "$as_me: failed program was:" >&5
6015sed 's/^/| /' conftest.$ac_ext >&5
6016
6017	ac_lo=`expr $ac_mid + 1`
6018			if test $ac_lo -le $ac_mid; then
6019			  ac_lo= ac_hi=
6020			  break
6021			fi
6022			ac_mid=`expr 2 '*' $ac_mid + 1`
6023fi
6024
6025rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6026  done
6027else
6028  echo "$as_me: failed program was:" >&5
6029sed 's/^/| /' conftest.$ac_ext >&5
6030
6031	cat >conftest.$ac_ext <<_ACEOF
6032/* confdefs.h.  */
6033_ACEOF
6034cat confdefs.h >>conftest.$ac_ext
6035cat >>conftest.$ac_ext <<_ACEOF
6036/* end confdefs.h.  */
6037$ac_includes_default
6038   typedef short ac__type_sizeof_;
6039int
6040main ()
6041{
6042static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
6043test_array [0] = 0
6044
6045  ;
6046  return 0;
6047}
6048_ACEOF
6049rm -f conftest.$ac_objext
6050if { (ac_try="$ac_compile"
6051case "(($ac_try" in
6052  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6053  *) ac_try_echo=$ac_try;;
6054esac
6055eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6056  (eval "$ac_compile") 2>conftest.er1
6057  ac_status=$?
6058  grep -v '^ *+' conftest.er1 >conftest.err
6059  rm -f conftest.er1
6060  cat conftest.err >&5
6061  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6062  (exit $ac_status); } && {
6063	 test -z "$ac_c_werror_flag" ||
6064	 test ! -s conftest.err
6065       } && test -s conftest.$ac_objext; then
6066  ac_hi=-1 ac_mid=-1
6067  while :; do
6068    cat >conftest.$ac_ext <<_ACEOF
6069/* confdefs.h.  */
6070_ACEOF
6071cat confdefs.h >>conftest.$ac_ext
6072cat >>conftest.$ac_ext <<_ACEOF
6073/* end confdefs.h.  */
6074$ac_includes_default
6075   typedef short ac__type_sizeof_;
6076int
6077main ()
6078{
6079static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
6080test_array [0] = 0
6081
6082  ;
6083  return 0;
6084}
6085_ACEOF
6086rm -f conftest.$ac_objext
6087if { (ac_try="$ac_compile"
6088case "(($ac_try" in
6089  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6090  *) ac_try_echo=$ac_try;;
6091esac
6092eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6093  (eval "$ac_compile") 2>conftest.er1
6094  ac_status=$?
6095  grep -v '^ *+' conftest.er1 >conftest.err
6096  rm -f conftest.er1
6097  cat conftest.err >&5
6098  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6099  (exit $ac_status); } && {
6100	 test -z "$ac_c_werror_flag" ||
6101	 test ! -s conftest.err
6102       } && test -s conftest.$ac_objext; then
6103  ac_lo=$ac_mid; break
6104else
6105  echo "$as_me: failed program was:" >&5
6106sed 's/^/| /' conftest.$ac_ext >&5
6107
6108	ac_hi=`expr '(' $ac_mid ')' - 1`
6109			if test $ac_mid -le $ac_hi; then
6110			  ac_lo= ac_hi=
6111			  break
6112			fi
6113			ac_mid=`expr 2 '*' $ac_mid`
6114fi
6115
6116rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6117  done
6118else
6119  echo "$as_me: failed program was:" >&5
6120sed 's/^/| /' conftest.$ac_ext >&5
6121
6122	ac_lo= ac_hi=
6123fi
6124
6125rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6126fi
6127
6128rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6129# Binary search between lo and hi bounds.
6130while test "x$ac_lo" != "x$ac_hi"; do
6131  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6132  cat >conftest.$ac_ext <<_ACEOF
6133/* confdefs.h.  */
6134_ACEOF
6135cat confdefs.h >>conftest.$ac_ext
6136cat >>conftest.$ac_ext <<_ACEOF
6137/* end confdefs.h.  */
6138$ac_includes_default
6139   typedef short ac__type_sizeof_;
6140int
6141main ()
6142{
6143static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6144test_array [0] = 0
6145
6146  ;
6147  return 0;
6148}
6149_ACEOF
6150rm -f conftest.$ac_objext
6151if { (ac_try="$ac_compile"
6152case "(($ac_try" in
6153  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6154  *) ac_try_echo=$ac_try;;
6155esac
6156eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6157  (eval "$ac_compile") 2>conftest.er1
6158  ac_status=$?
6159  grep -v '^ *+' conftest.er1 >conftest.err
6160  rm -f conftest.er1
6161  cat conftest.err >&5
6162  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6163  (exit $ac_status); } && {
6164	 test -z "$ac_c_werror_flag" ||
6165	 test ! -s conftest.err
6166       } && test -s conftest.$ac_objext; then
6167  ac_hi=$ac_mid
6168else
6169  echo "$as_me: failed program was:" >&5
6170sed 's/^/| /' conftest.$ac_ext >&5
6171
6172	ac_lo=`expr '(' $ac_mid ')' + 1`
6173fi
6174
6175rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6176done
6177case $ac_lo in
6178?*) ac_cv_sizeof_short=$ac_lo;;
6179'') if test "$ac_cv_type_short" = yes; then
6180     { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
6181See \`config.log' for more details." >&5
6182echo "$as_me: error: cannot compute sizeof (short)
6183See \`config.log' for more details." >&2;}
6184   { (exit 77); exit 77; }; }
6185   else
6186     ac_cv_sizeof_short=0
6187   fi ;;
6188esac
6189else
6190  cat >conftest.$ac_ext <<_ACEOF
6191/* confdefs.h.  */
6192_ACEOF
6193cat confdefs.h >>conftest.$ac_ext
6194cat >>conftest.$ac_ext <<_ACEOF
6195/* end confdefs.h.  */
6196$ac_includes_default
6197   typedef short ac__type_sizeof_;
6198static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
6199static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
6200#include <stdio.h>
6201#include <stdlib.h>
6202int
6203main ()
6204{
6205
6206  FILE *f = fopen ("conftest.val", "w");
6207  if (! f)
6208    return 1;
6209  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
6210    {
6211      long int i = longval ();
6212      if (i != ((long int) (sizeof (ac__type_sizeof_))))
6213	return 1;
6214      fprintf (f, "%ld\n", i);
6215    }
6216  else
6217    {
6218      unsigned long int i = ulongval ();
6219      if (i != ((long int) (sizeof (ac__type_sizeof_))))
6220	return 1;
6221      fprintf (f, "%lu\n", i);
6222    }
6223  return ferror (f) || fclose (f) != 0;
6224
6225  ;
6226  return 0;
6227}
6228_ACEOF
6229rm -f conftest$ac_exeext
6230if { (ac_try="$ac_link"
6231case "(($ac_try" in
6232  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6233  *) ac_try_echo=$ac_try;;
6234esac
6235eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6236  (eval "$ac_link") 2>&5
6237  ac_status=$?
6238  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6239  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6240  { (case "(($ac_try" in
6241  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6242  *) ac_try_echo=$ac_try;;
6243esac
6244eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6245  (eval "$ac_try") 2>&5
6246  ac_status=$?
6247  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6248  (exit $ac_status); }; }; then
6249  ac_cv_sizeof_short=`cat conftest.val`
6250else
6251  echo "$as_me: program exited with status $ac_status" >&5
6252echo "$as_me: failed program was:" >&5
6253sed 's/^/| /' conftest.$ac_ext >&5
6254
6255( exit $ac_status )
6256if test "$ac_cv_type_short" = yes; then
6257     { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
6258See \`config.log' for more details." >&5
6259echo "$as_me: error: cannot compute sizeof (short)
6260See \`config.log' for more details." >&2;}
6261   { (exit 77); exit 77; }; }
6262   else
6263     ac_cv_sizeof_short=0
6264   fi
6265fi
6266rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6267fi
6268rm -f conftest.val
6269fi
6270{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
6271echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
6272
6273
6274
6275cat >>confdefs.h <<_ACEOF
6276#define SIZEOF_SHORT $ac_cv_sizeof_short
6277_ACEOF
6278
6279
6280{ echo "$as_me:$LINENO: checking for int" >&5
6281echo $ECHO_N "checking for int... $ECHO_C" >&6; }
6282if test "${ac_cv_type_int+set}" = set; then
6283  echo $ECHO_N "(cached) $ECHO_C" >&6
6284else
6285  cat >conftest.$ac_ext <<_ACEOF
6286/* confdefs.h.  */
6287_ACEOF
6288cat confdefs.h >>conftest.$ac_ext
6289cat >>conftest.$ac_ext <<_ACEOF
6290/* end confdefs.h.  */
6291$ac_includes_default
6292typedef int ac__type_new_;
6293int
6294main ()
6295{
6296if ((ac__type_new_ *) 0)
6297  return 0;
6298if (sizeof (ac__type_new_))
6299  return 0;
6300  ;
6301  return 0;
6302}
6303_ACEOF
6304rm -f conftest.$ac_objext
6305if { (ac_try="$ac_compile"
6306case "(($ac_try" in
6307  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6308  *) ac_try_echo=$ac_try;;
6309esac
6310eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6311  (eval "$ac_compile") 2>conftest.er1
6312  ac_status=$?
6313  grep -v '^ *+' conftest.er1 >conftest.err
6314  rm -f conftest.er1
6315  cat conftest.err >&5
6316  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6317  (exit $ac_status); } && {
6318	 test -z "$ac_c_werror_flag" ||
6319	 test ! -s conftest.err
6320       } && test -s conftest.$ac_objext; then
6321  ac_cv_type_int=yes
6322else
6323  echo "$as_me: failed program was:" >&5
6324sed 's/^/| /' conftest.$ac_ext >&5
6325
6326	ac_cv_type_int=no
6327fi
6328
6329rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6330fi
6331{ echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
6332echo "${ECHO_T}$ac_cv_type_int" >&6; }
6333
6334# The cast to long int works around a bug in the HP C Compiler
6335# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6336# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6337# This bug is HP SR number 8606223364.
6338{ echo "$as_me:$LINENO: checking size of int" >&5
6339echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
6340if test "${ac_cv_sizeof_int+set}" = set; then
6341  echo $ECHO_N "(cached) $ECHO_C" >&6
6342else
6343  if test "$cross_compiling" = yes; then
6344  # Depending upon the size, compute the lo and hi bounds.
6345cat >conftest.$ac_ext <<_ACEOF
6346/* confdefs.h.  */
6347_ACEOF
6348cat confdefs.h >>conftest.$ac_ext
6349cat >>conftest.$ac_ext <<_ACEOF
6350/* end confdefs.h.  */
6351$ac_includes_default
6352   typedef int ac__type_sizeof_;
6353int
6354main ()
6355{
6356static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
6357test_array [0] = 0
6358
6359  ;
6360  return 0;
6361}
6362_ACEOF
6363rm -f conftest.$ac_objext
6364if { (ac_try="$ac_compile"
6365case "(($ac_try" in
6366  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6367  *) ac_try_echo=$ac_try;;
6368esac
6369eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6370  (eval "$ac_compile") 2>conftest.er1
6371  ac_status=$?
6372  grep -v '^ *+' conftest.er1 >conftest.err
6373  rm -f conftest.er1
6374  cat conftest.err >&5
6375  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6376  (exit $ac_status); } && {
6377	 test -z "$ac_c_werror_flag" ||
6378	 test ! -s conftest.err
6379       } && test -s conftest.$ac_objext; then
6380  ac_lo=0 ac_mid=0
6381  while :; do
6382    cat >conftest.$ac_ext <<_ACEOF
6383/* confdefs.h.  */
6384_ACEOF
6385cat confdefs.h >>conftest.$ac_ext
6386cat >>conftest.$ac_ext <<_ACEOF
6387/* end confdefs.h.  */
6388$ac_includes_default
6389   typedef int ac__type_sizeof_;
6390int
6391main ()
6392{
6393static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6394test_array [0] = 0
6395
6396  ;
6397  return 0;
6398}
6399_ACEOF
6400rm -f conftest.$ac_objext
6401if { (ac_try="$ac_compile"
6402case "(($ac_try" in
6403  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6404  *) ac_try_echo=$ac_try;;
6405esac
6406eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6407  (eval "$ac_compile") 2>conftest.er1
6408  ac_status=$?
6409  grep -v '^ *+' conftest.er1 >conftest.err
6410  rm -f conftest.er1
6411  cat conftest.err >&5
6412  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6413  (exit $ac_status); } && {
6414	 test -z "$ac_c_werror_flag" ||
6415	 test ! -s conftest.err
6416       } && test -s conftest.$ac_objext; then
6417  ac_hi=$ac_mid; break
6418else
6419  echo "$as_me: failed program was:" >&5
6420sed 's/^/| /' conftest.$ac_ext >&5
6421
6422	ac_lo=`expr $ac_mid + 1`
6423			if test $ac_lo -le $ac_mid; then
6424			  ac_lo= ac_hi=
6425			  break
6426			fi
6427			ac_mid=`expr 2 '*' $ac_mid + 1`
6428fi
6429
6430rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6431  done
6432else
6433  echo "$as_me: failed program was:" >&5
6434sed 's/^/| /' conftest.$ac_ext >&5
6435
6436	cat >conftest.$ac_ext <<_ACEOF
6437/* confdefs.h.  */
6438_ACEOF
6439cat confdefs.h >>conftest.$ac_ext
6440cat >>conftest.$ac_ext <<_ACEOF
6441/* end confdefs.h.  */
6442$ac_includes_default
6443   typedef int ac__type_sizeof_;
6444int
6445main ()
6446{
6447static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
6448test_array [0] = 0
6449
6450  ;
6451  return 0;
6452}
6453_ACEOF
6454rm -f conftest.$ac_objext
6455if { (ac_try="$ac_compile"
6456case "(($ac_try" in
6457  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6458  *) ac_try_echo=$ac_try;;
6459esac
6460eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6461  (eval "$ac_compile") 2>conftest.er1
6462  ac_status=$?
6463  grep -v '^ *+' conftest.er1 >conftest.err
6464  rm -f conftest.er1
6465  cat conftest.err >&5
6466  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6467  (exit $ac_status); } && {
6468	 test -z "$ac_c_werror_flag" ||
6469	 test ! -s conftest.err
6470       } && test -s conftest.$ac_objext; then
6471  ac_hi=-1 ac_mid=-1
6472  while :; do
6473    cat >conftest.$ac_ext <<_ACEOF
6474/* confdefs.h.  */
6475_ACEOF
6476cat confdefs.h >>conftest.$ac_ext
6477cat >>conftest.$ac_ext <<_ACEOF
6478/* end confdefs.h.  */
6479$ac_includes_default
6480   typedef int ac__type_sizeof_;
6481int
6482main ()
6483{
6484static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
6485test_array [0] = 0
6486
6487  ;
6488  return 0;
6489}
6490_ACEOF
6491rm -f conftest.$ac_objext
6492if { (ac_try="$ac_compile"
6493case "(($ac_try" in
6494  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6495  *) ac_try_echo=$ac_try;;
6496esac
6497eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6498  (eval "$ac_compile") 2>conftest.er1
6499  ac_status=$?
6500  grep -v '^ *+' conftest.er1 >conftest.err
6501  rm -f conftest.er1
6502  cat conftest.err >&5
6503  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6504  (exit $ac_status); } && {
6505	 test -z "$ac_c_werror_flag" ||
6506	 test ! -s conftest.err
6507       } && test -s conftest.$ac_objext; then
6508  ac_lo=$ac_mid; break
6509else
6510  echo "$as_me: failed program was:" >&5
6511sed 's/^/| /' conftest.$ac_ext >&5
6512
6513	ac_hi=`expr '(' $ac_mid ')' - 1`
6514			if test $ac_mid -le $ac_hi; then
6515			  ac_lo= ac_hi=
6516			  break
6517			fi
6518			ac_mid=`expr 2 '*' $ac_mid`
6519fi
6520
6521rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6522  done
6523else
6524  echo "$as_me: failed program was:" >&5
6525sed 's/^/| /' conftest.$ac_ext >&5
6526
6527	ac_lo= ac_hi=
6528fi
6529
6530rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6531fi
6532
6533rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6534# Binary search between lo and hi bounds.
6535while test "x$ac_lo" != "x$ac_hi"; do
6536  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6537  cat >conftest.$ac_ext <<_ACEOF
6538/* confdefs.h.  */
6539_ACEOF
6540cat confdefs.h >>conftest.$ac_ext
6541cat >>conftest.$ac_ext <<_ACEOF
6542/* end confdefs.h.  */
6543$ac_includes_default
6544   typedef int ac__type_sizeof_;
6545int
6546main ()
6547{
6548static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6549test_array [0] = 0
6550
6551  ;
6552  return 0;
6553}
6554_ACEOF
6555rm -f conftest.$ac_objext
6556if { (ac_try="$ac_compile"
6557case "(($ac_try" in
6558  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6559  *) ac_try_echo=$ac_try;;
6560esac
6561eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6562  (eval "$ac_compile") 2>conftest.er1
6563  ac_status=$?
6564  grep -v '^ *+' conftest.er1 >conftest.err
6565  rm -f conftest.er1
6566  cat conftest.err >&5
6567  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6568  (exit $ac_status); } && {
6569	 test -z "$ac_c_werror_flag" ||
6570	 test ! -s conftest.err
6571       } && test -s conftest.$ac_objext; then
6572  ac_hi=$ac_mid
6573else
6574  echo "$as_me: failed program was:" >&5
6575sed 's/^/| /' conftest.$ac_ext >&5
6576
6577	ac_lo=`expr '(' $ac_mid ')' + 1`
6578fi
6579
6580rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6581done
6582case $ac_lo in
6583?*) ac_cv_sizeof_int=$ac_lo;;
6584'') if test "$ac_cv_type_int" = yes; then
6585     { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
6586See \`config.log' for more details." >&5
6587echo "$as_me: error: cannot compute sizeof (int)
6588See \`config.log' for more details." >&2;}
6589   { (exit 77); exit 77; }; }
6590   else
6591     ac_cv_sizeof_int=0
6592   fi ;;
6593esac
6594else
6595  cat >conftest.$ac_ext <<_ACEOF
6596/* confdefs.h.  */
6597_ACEOF
6598cat confdefs.h >>conftest.$ac_ext
6599cat >>conftest.$ac_ext <<_ACEOF
6600/* end confdefs.h.  */
6601$ac_includes_default
6602   typedef int ac__type_sizeof_;
6603static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
6604static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
6605#include <stdio.h>
6606#include <stdlib.h>
6607int
6608main ()
6609{
6610
6611  FILE *f = fopen ("conftest.val", "w");
6612  if (! f)
6613    return 1;
6614  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
6615    {
6616      long int i = longval ();
6617      if (i != ((long int) (sizeof (ac__type_sizeof_))))
6618	return 1;
6619      fprintf (f, "%ld\n", i);
6620    }
6621  else
6622    {
6623      unsigned long int i = ulongval ();
6624      if (i != ((long int) (sizeof (ac__type_sizeof_))))
6625	return 1;
6626      fprintf (f, "%lu\n", i);
6627    }
6628  return ferror (f) || fclose (f) != 0;
6629
6630  ;
6631  return 0;
6632}
6633_ACEOF
6634rm -f conftest$ac_exeext
6635if { (ac_try="$ac_link"
6636case "(($ac_try" in
6637  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6638  *) ac_try_echo=$ac_try;;
6639esac
6640eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6641  (eval "$ac_link") 2>&5
6642  ac_status=$?
6643  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6644  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6645  { (case "(($ac_try" in
6646  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6647  *) ac_try_echo=$ac_try;;
6648esac
6649eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6650  (eval "$ac_try") 2>&5
6651  ac_status=$?
6652  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6653  (exit $ac_status); }; }; then
6654  ac_cv_sizeof_int=`cat conftest.val`
6655else
6656  echo "$as_me: program exited with status $ac_status" >&5
6657echo "$as_me: failed program was:" >&5
6658sed 's/^/| /' conftest.$ac_ext >&5
6659
6660( exit $ac_status )
6661if test "$ac_cv_type_int" = yes; then
6662     { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
6663See \`config.log' for more details." >&5
6664echo "$as_me: error: cannot compute sizeof (int)
6665See \`config.log' for more details." >&2;}
6666   { (exit 77); exit 77; }; }
6667   else
6668     ac_cv_sizeof_int=0
6669   fi
6670fi
6671rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6672fi
6673rm -f conftest.val
6674fi
6675{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
6676echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
6677
6678
6679
6680cat >>confdefs.h <<_ACEOF
6681#define SIZEOF_INT $ac_cv_sizeof_int
6682_ACEOF
6683
6684
6685{ echo "$as_me:$LINENO: checking for long" >&5
6686echo $ECHO_N "checking for long... $ECHO_C" >&6; }
6687if test "${ac_cv_type_long+set}" = set; then
6688  echo $ECHO_N "(cached) $ECHO_C" >&6
6689else
6690  cat >conftest.$ac_ext <<_ACEOF
6691/* confdefs.h.  */
6692_ACEOF
6693cat confdefs.h >>conftest.$ac_ext
6694cat >>conftest.$ac_ext <<_ACEOF
6695/* end confdefs.h.  */
6696$ac_includes_default
6697typedef long ac__type_new_;
6698int
6699main ()
6700{
6701if ((ac__type_new_ *) 0)
6702  return 0;
6703if (sizeof (ac__type_new_))
6704  return 0;
6705  ;
6706  return 0;
6707}
6708_ACEOF
6709rm -f conftest.$ac_objext
6710if { (ac_try="$ac_compile"
6711case "(($ac_try" in
6712  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6713  *) ac_try_echo=$ac_try;;
6714esac
6715eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6716  (eval "$ac_compile") 2>conftest.er1
6717  ac_status=$?
6718  grep -v '^ *+' conftest.er1 >conftest.err
6719  rm -f conftest.er1
6720  cat conftest.err >&5
6721  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6722  (exit $ac_status); } && {
6723	 test -z "$ac_c_werror_flag" ||
6724	 test ! -s conftest.err
6725       } && test -s conftest.$ac_objext; then
6726  ac_cv_type_long=yes
6727else
6728  echo "$as_me: failed program was:" >&5
6729sed 's/^/| /' conftest.$ac_ext >&5
6730
6731	ac_cv_type_long=no
6732fi
6733
6734rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6735fi
6736{ echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
6737echo "${ECHO_T}$ac_cv_type_long" >&6; }
6738
6739# The cast to long int works around a bug in the HP C Compiler
6740# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6741# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6742# This bug is HP SR number 8606223364.
6743{ echo "$as_me:$LINENO: checking size of long" >&5
6744echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
6745if test "${ac_cv_sizeof_long+set}" = set; then
6746  echo $ECHO_N "(cached) $ECHO_C" >&6
6747else
6748  if test "$cross_compiling" = yes; then
6749  # Depending upon the size, compute the lo and hi bounds.
6750cat >conftest.$ac_ext <<_ACEOF
6751/* confdefs.h.  */
6752_ACEOF
6753cat confdefs.h >>conftest.$ac_ext
6754cat >>conftest.$ac_ext <<_ACEOF
6755/* end confdefs.h.  */
6756$ac_includes_default
6757   typedef long ac__type_sizeof_;
6758int
6759main ()
6760{
6761static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
6762test_array [0] = 0
6763
6764  ;
6765  return 0;
6766}
6767_ACEOF
6768rm -f conftest.$ac_objext
6769if { (ac_try="$ac_compile"
6770case "(($ac_try" in
6771  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6772  *) ac_try_echo=$ac_try;;
6773esac
6774eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6775  (eval "$ac_compile") 2>conftest.er1
6776  ac_status=$?
6777  grep -v '^ *+' conftest.er1 >conftest.err
6778  rm -f conftest.er1
6779  cat conftest.err >&5
6780  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6781  (exit $ac_status); } && {
6782	 test -z "$ac_c_werror_flag" ||
6783	 test ! -s conftest.err
6784       } && test -s conftest.$ac_objext; then
6785  ac_lo=0 ac_mid=0
6786  while :; do
6787    cat >conftest.$ac_ext <<_ACEOF
6788/* confdefs.h.  */
6789_ACEOF
6790cat confdefs.h >>conftest.$ac_ext
6791cat >>conftest.$ac_ext <<_ACEOF
6792/* end confdefs.h.  */
6793$ac_includes_default
6794   typedef long ac__type_sizeof_;
6795int
6796main ()
6797{
6798static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6799test_array [0] = 0
6800
6801  ;
6802  return 0;
6803}
6804_ACEOF
6805rm -f conftest.$ac_objext
6806if { (ac_try="$ac_compile"
6807case "(($ac_try" in
6808  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6809  *) ac_try_echo=$ac_try;;
6810esac
6811eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6812  (eval "$ac_compile") 2>conftest.er1
6813  ac_status=$?
6814  grep -v '^ *+' conftest.er1 >conftest.err
6815  rm -f conftest.er1
6816  cat conftest.err >&5
6817  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6818  (exit $ac_status); } && {
6819	 test -z "$ac_c_werror_flag" ||
6820	 test ! -s conftest.err
6821       } && test -s conftest.$ac_objext; then
6822  ac_hi=$ac_mid; break
6823else
6824  echo "$as_me: failed program was:" >&5
6825sed 's/^/| /' conftest.$ac_ext >&5
6826
6827	ac_lo=`expr $ac_mid + 1`
6828			if test $ac_lo -le $ac_mid; then
6829			  ac_lo= ac_hi=
6830			  break
6831			fi
6832			ac_mid=`expr 2 '*' $ac_mid + 1`
6833fi
6834
6835rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6836  done
6837else
6838  echo "$as_me: failed program was:" >&5
6839sed 's/^/| /' conftest.$ac_ext >&5
6840
6841	cat >conftest.$ac_ext <<_ACEOF
6842/* confdefs.h.  */
6843_ACEOF
6844cat confdefs.h >>conftest.$ac_ext
6845cat >>conftest.$ac_ext <<_ACEOF
6846/* end confdefs.h.  */
6847$ac_includes_default
6848   typedef long ac__type_sizeof_;
6849int
6850main ()
6851{
6852static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
6853test_array [0] = 0
6854
6855  ;
6856  return 0;
6857}
6858_ACEOF
6859rm -f conftest.$ac_objext
6860if { (ac_try="$ac_compile"
6861case "(($ac_try" in
6862  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6863  *) ac_try_echo=$ac_try;;
6864esac
6865eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6866  (eval "$ac_compile") 2>conftest.er1
6867  ac_status=$?
6868  grep -v '^ *+' conftest.er1 >conftest.err
6869  rm -f conftest.er1
6870  cat conftest.err >&5
6871  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6872  (exit $ac_status); } && {
6873	 test -z "$ac_c_werror_flag" ||
6874	 test ! -s conftest.err
6875       } && test -s conftest.$ac_objext; then
6876  ac_hi=-1 ac_mid=-1
6877  while :; do
6878    cat >conftest.$ac_ext <<_ACEOF
6879/* confdefs.h.  */
6880_ACEOF
6881cat confdefs.h >>conftest.$ac_ext
6882cat >>conftest.$ac_ext <<_ACEOF
6883/* end confdefs.h.  */
6884$ac_includes_default
6885   typedef long ac__type_sizeof_;
6886int
6887main ()
6888{
6889static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
6890test_array [0] = 0
6891
6892  ;
6893  return 0;
6894}
6895_ACEOF
6896rm -f conftest.$ac_objext
6897if { (ac_try="$ac_compile"
6898case "(($ac_try" in
6899  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6900  *) ac_try_echo=$ac_try;;
6901esac
6902eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6903  (eval "$ac_compile") 2>conftest.er1
6904  ac_status=$?
6905  grep -v '^ *+' conftest.er1 >conftest.err
6906  rm -f conftest.er1
6907  cat conftest.err >&5
6908  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6909  (exit $ac_status); } && {
6910	 test -z "$ac_c_werror_flag" ||
6911	 test ! -s conftest.err
6912       } && test -s conftest.$ac_objext; then
6913  ac_lo=$ac_mid; break
6914else
6915  echo "$as_me: failed program was:" >&5
6916sed 's/^/| /' conftest.$ac_ext >&5
6917
6918	ac_hi=`expr '(' $ac_mid ')' - 1`
6919			if test $ac_mid -le $ac_hi; then
6920			  ac_lo= ac_hi=
6921			  break
6922			fi
6923			ac_mid=`expr 2 '*' $ac_mid`
6924fi
6925
6926rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6927  done
6928else
6929  echo "$as_me: failed program was:" >&5
6930sed 's/^/| /' conftest.$ac_ext >&5
6931
6932	ac_lo= ac_hi=
6933fi
6934
6935rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6936fi
6937
6938rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6939# Binary search between lo and hi bounds.
6940while test "x$ac_lo" != "x$ac_hi"; do
6941  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6942  cat >conftest.$ac_ext <<_ACEOF
6943/* confdefs.h.  */
6944_ACEOF
6945cat confdefs.h >>conftest.$ac_ext
6946cat >>conftest.$ac_ext <<_ACEOF
6947/* end confdefs.h.  */
6948$ac_includes_default
6949   typedef long ac__type_sizeof_;
6950int
6951main ()
6952{
6953static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6954test_array [0] = 0
6955
6956  ;
6957  return 0;
6958}
6959_ACEOF
6960rm -f conftest.$ac_objext
6961if { (ac_try="$ac_compile"
6962case "(($ac_try" in
6963  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6964  *) ac_try_echo=$ac_try;;
6965esac
6966eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6967  (eval "$ac_compile") 2>conftest.er1
6968  ac_status=$?
6969  grep -v '^ *+' conftest.er1 >conftest.err
6970  rm -f conftest.er1
6971  cat conftest.err >&5
6972  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6973  (exit $ac_status); } && {
6974	 test -z "$ac_c_werror_flag" ||
6975	 test ! -s conftest.err
6976       } && test -s conftest.$ac_objext; then
6977  ac_hi=$ac_mid
6978else
6979  echo "$as_me: failed program was:" >&5
6980sed 's/^/| /' conftest.$ac_ext >&5
6981
6982	ac_lo=`expr '(' $ac_mid ')' + 1`
6983fi
6984
6985rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6986done
6987case $ac_lo in
6988?*) ac_cv_sizeof_long=$ac_lo;;
6989'') if test "$ac_cv_type_long" = yes; then
6990     { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
6991See \`config.log' for more details." >&5
6992echo "$as_me: error: cannot compute sizeof (long)
6993See \`config.log' for more details." >&2;}
6994   { (exit 77); exit 77; }; }
6995   else
6996     ac_cv_sizeof_long=0
6997   fi ;;
6998esac
6999else
7000  cat >conftest.$ac_ext <<_ACEOF
7001/* confdefs.h.  */
7002_ACEOF
7003cat confdefs.h >>conftest.$ac_ext
7004cat >>conftest.$ac_ext <<_ACEOF
7005/* end confdefs.h.  */
7006$ac_includes_default
7007   typedef long ac__type_sizeof_;
7008static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7009static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
7010#include <stdio.h>
7011#include <stdlib.h>
7012int
7013main ()
7014{
7015
7016  FILE *f = fopen ("conftest.val", "w");
7017  if (! f)
7018    return 1;
7019  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
7020    {
7021      long int i = longval ();
7022      if (i != ((long int) (sizeof (ac__type_sizeof_))))
7023	return 1;
7024      fprintf (f, "%ld\n", i);
7025    }
7026  else
7027    {
7028      unsigned long int i = ulongval ();
7029      if (i != ((long int) (sizeof (ac__type_sizeof_))))
7030	return 1;
7031      fprintf (f, "%lu\n", i);
7032    }
7033  return ferror (f) || fclose (f) != 0;
7034
7035  ;
7036  return 0;
7037}
7038_ACEOF
7039rm -f conftest$ac_exeext
7040if { (ac_try="$ac_link"
7041case "(($ac_try" in
7042  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7043  *) ac_try_echo=$ac_try;;
7044esac
7045eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7046  (eval "$ac_link") 2>&5
7047  ac_status=$?
7048  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7049  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7050  { (case "(($ac_try" in
7051  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7052  *) ac_try_echo=$ac_try;;
7053esac
7054eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7055  (eval "$ac_try") 2>&5
7056  ac_status=$?
7057  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7058  (exit $ac_status); }; }; then
7059  ac_cv_sizeof_long=`cat conftest.val`
7060else
7061  echo "$as_me: program exited with status $ac_status" >&5
7062echo "$as_me: failed program was:" >&5
7063sed 's/^/| /' conftest.$ac_ext >&5
7064
7065( exit $ac_status )
7066if test "$ac_cv_type_long" = yes; then
7067     { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
7068See \`config.log' for more details." >&5
7069echo "$as_me: error: cannot compute sizeof (long)
7070See \`config.log' for more details." >&2;}
7071   { (exit 77); exit 77; }; }
7072   else
7073     ac_cv_sizeof_long=0
7074   fi
7075fi
7076rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7077fi
7078rm -f conftest.val
7079fi
7080{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
7081echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
7082
7083
7084
7085cat >>confdefs.h <<_ACEOF
7086#define SIZEOF_LONG $ac_cv_sizeof_long
7087_ACEOF
7088
7089
7090{ echo "$as_me:$LINENO: checking for long long" >&5
7091echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
7092if test "${ac_cv_type_long_long+set}" = set; then
7093  echo $ECHO_N "(cached) $ECHO_C" >&6
7094else
7095  cat >conftest.$ac_ext <<_ACEOF
7096/* confdefs.h.  */
7097_ACEOF
7098cat confdefs.h >>conftest.$ac_ext
7099cat >>conftest.$ac_ext <<_ACEOF
7100/* end confdefs.h.  */
7101$ac_includes_default
7102typedef long long ac__type_new_;
7103int
7104main ()
7105{
7106if ((ac__type_new_ *) 0)
7107  return 0;
7108if (sizeof (ac__type_new_))
7109  return 0;
7110  ;
7111  return 0;
7112}
7113_ACEOF
7114rm -f conftest.$ac_objext
7115if { (ac_try="$ac_compile"
7116case "(($ac_try" in
7117  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7118  *) ac_try_echo=$ac_try;;
7119esac
7120eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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	 test -z "$ac_c_werror_flag" ||
7129	 test ! -s conftest.err
7130       } && test -s conftest.$ac_objext; then
7131  ac_cv_type_long_long=yes
7132else
7133  echo "$as_me: failed program was:" >&5
7134sed 's/^/| /' conftest.$ac_ext >&5
7135
7136	ac_cv_type_long_long=no
7137fi
7138
7139rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7140fi
7141{ echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
7142echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
7143
7144# The cast to long int works around a bug in the HP C Compiler
7145# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7146# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7147# This bug is HP SR number 8606223364.
7148{ echo "$as_me:$LINENO: checking size of long long" >&5
7149echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
7150if test "${ac_cv_sizeof_long_long+set}" = set; then
7151  echo $ECHO_N "(cached) $ECHO_C" >&6
7152else
7153  if test "$cross_compiling" = yes; then
7154  # Depending upon the size, compute the lo and hi bounds.
7155cat >conftest.$ac_ext <<_ACEOF
7156/* confdefs.h.  */
7157_ACEOF
7158cat confdefs.h >>conftest.$ac_ext
7159cat >>conftest.$ac_ext <<_ACEOF
7160/* end confdefs.h.  */
7161$ac_includes_default
7162   typedef long long ac__type_sizeof_;
7163int
7164main ()
7165{
7166static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7167test_array [0] = 0
7168
7169  ;
7170  return 0;
7171}
7172_ACEOF
7173rm -f conftest.$ac_objext
7174if { (ac_try="$ac_compile"
7175case "(($ac_try" in
7176  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7177  *) ac_try_echo=$ac_try;;
7178esac
7179eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7180  (eval "$ac_compile") 2>conftest.er1
7181  ac_status=$?
7182  grep -v '^ *+' conftest.er1 >conftest.err
7183  rm -f conftest.er1
7184  cat conftest.err >&5
7185  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7186  (exit $ac_status); } && {
7187	 test -z "$ac_c_werror_flag" ||
7188	 test ! -s conftest.err
7189       } && test -s conftest.$ac_objext; then
7190  ac_lo=0 ac_mid=0
7191  while :; do
7192    cat >conftest.$ac_ext <<_ACEOF
7193/* confdefs.h.  */
7194_ACEOF
7195cat confdefs.h >>conftest.$ac_ext
7196cat >>conftest.$ac_ext <<_ACEOF
7197/* end confdefs.h.  */
7198$ac_includes_default
7199   typedef long long ac__type_sizeof_;
7200int
7201main ()
7202{
7203static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7204test_array [0] = 0
7205
7206  ;
7207  return 0;
7208}
7209_ACEOF
7210rm -f conftest.$ac_objext
7211if { (ac_try="$ac_compile"
7212case "(($ac_try" in
7213  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7214  *) ac_try_echo=$ac_try;;
7215esac
7216eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7217  (eval "$ac_compile") 2>conftest.er1
7218  ac_status=$?
7219  grep -v '^ *+' conftest.er1 >conftest.err
7220  rm -f conftest.er1
7221  cat conftest.err >&5
7222  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7223  (exit $ac_status); } && {
7224	 test -z "$ac_c_werror_flag" ||
7225	 test ! -s conftest.err
7226       } && test -s conftest.$ac_objext; then
7227  ac_hi=$ac_mid; break
7228else
7229  echo "$as_me: failed program was:" >&5
7230sed 's/^/| /' conftest.$ac_ext >&5
7231
7232	ac_lo=`expr $ac_mid + 1`
7233			if test $ac_lo -le $ac_mid; then
7234			  ac_lo= ac_hi=
7235			  break
7236			fi
7237			ac_mid=`expr 2 '*' $ac_mid + 1`
7238fi
7239
7240rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7241  done
7242else
7243  echo "$as_me: failed program was:" >&5
7244sed 's/^/| /' conftest.$ac_ext >&5
7245
7246	cat >conftest.$ac_ext <<_ACEOF
7247/* confdefs.h.  */
7248_ACEOF
7249cat confdefs.h >>conftest.$ac_ext
7250cat >>conftest.$ac_ext <<_ACEOF
7251/* end confdefs.h.  */
7252$ac_includes_default
7253   typedef long long ac__type_sizeof_;
7254int
7255main ()
7256{
7257static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
7258test_array [0] = 0
7259
7260  ;
7261  return 0;
7262}
7263_ACEOF
7264rm -f conftest.$ac_objext
7265if { (ac_try="$ac_compile"
7266case "(($ac_try" in
7267  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7268  *) ac_try_echo=$ac_try;;
7269esac
7270eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7271  (eval "$ac_compile") 2>conftest.er1
7272  ac_status=$?
7273  grep -v '^ *+' conftest.er1 >conftest.err
7274  rm -f conftest.er1
7275  cat conftest.err >&5
7276  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7277  (exit $ac_status); } && {
7278	 test -z "$ac_c_werror_flag" ||
7279	 test ! -s conftest.err
7280       } && test -s conftest.$ac_objext; then
7281  ac_hi=-1 ac_mid=-1
7282  while :; do
7283    cat >conftest.$ac_ext <<_ACEOF
7284/* confdefs.h.  */
7285_ACEOF
7286cat confdefs.h >>conftest.$ac_ext
7287cat >>conftest.$ac_ext <<_ACEOF
7288/* end confdefs.h.  */
7289$ac_includes_default
7290   typedef long long ac__type_sizeof_;
7291int
7292main ()
7293{
7294static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
7295test_array [0] = 0
7296
7297  ;
7298  return 0;
7299}
7300_ACEOF
7301rm -f conftest.$ac_objext
7302if { (ac_try="$ac_compile"
7303case "(($ac_try" in
7304  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7305  *) ac_try_echo=$ac_try;;
7306esac
7307eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7308  (eval "$ac_compile") 2>conftest.er1
7309  ac_status=$?
7310  grep -v '^ *+' conftest.er1 >conftest.err
7311  rm -f conftest.er1
7312  cat conftest.err >&5
7313  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7314  (exit $ac_status); } && {
7315	 test -z "$ac_c_werror_flag" ||
7316	 test ! -s conftest.err
7317       } && test -s conftest.$ac_objext; then
7318  ac_lo=$ac_mid; break
7319else
7320  echo "$as_me: failed program was:" >&5
7321sed 's/^/| /' conftest.$ac_ext >&5
7322
7323	ac_hi=`expr '(' $ac_mid ')' - 1`
7324			if test $ac_mid -le $ac_hi; then
7325			  ac_lo= ac_hi=
7326			  break
7327			fi
7328			ac_mid=`expr 2 '*' $ac_mid`
7329fi
7330
7331rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7332  done
7333else
7334  echo "$as_me: failed program was:" >&5
7335sed 's/^/| /' conftest.$ac_ext >&5
7336
7337	ac_lo= ac_hi=
7338fi
7339
7340rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7341fi
7342
7343rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7344# Binary search between lo and hi bounds.
7345while test "x$ac_lo" != "x$ac_hi"; do
7346  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7347  cat >conftest.$ac_ext <<_ACEOF
7348/* confdefs.h.  */
7349_ACEOF
7350cat confdefs.h >>conftest.$ac_ext
7351cat >>conftest.$ac_ext <<_ACEOF
7352/* end confdefs.h.  */
7353$ac_includes_default
7354   typedef long long ac__type_sizeof_;
7355int
7356main ()
7357{
7358static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7359test_array [0] = 0
7360
7361  ;
7362  return 0;
7363}
7364_ACEOF
7365rm -f conftest.$ac_objext
7366if { (ac_try="$ac_compile"
7367case "(($ac_try" in
7368  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7369  *) ac_try_echo=$ac_try;;
7370esac
7371eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7372  (eval "$ac_compile") 2>conftest.er1
7373  ac_status=$?
7374  grep -v '^ *+' conftest.er1 >conftest.err
7375  rm -f conftest.er1
7376  cat conftest.err >&5
7377  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7378  (exit $ac_status); } && {
7379	 test -z "$ac_c_werror_flag" ||
7380	 test ! -s conftest.err
7381       } && test -s conftest.$ac_objext; then
7382  ac_hi=$ac_mid
7383else
7384  echo "$as_me: failed program was:" >&5
7385sed 's/^/| /' conftest.$ac_ext >&5
7386
7387	ac_lo=`expr '(' $ac_mid ')' + 1`
7388fi
7389
7390rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7391done
7392case $ac_lo in
7393?*) ac_cv_sizeof_long_long=$ac_lo;;
7394'') if test "$ac_cv_type_long_long" = yes; then
7395     { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
7396See \`config.log' for more details." >&5
7397echo "$as_me: error: cannot compute sizeof (long long)
7398See \`config.log' for more details." >&2;}
7399   { (exit 77); exit 77; }; }
7400   else
7401     ac_cv_sizeof_long_long=0
7402   fi ;;
7403esac
7404else
7405  cat >conftest.$ac_ext <<_ACEOF
7406/* confdefs.h.  */
7407_ACEOF
7408cat confdefs.h >>conftest.$ac_ext
7409cat >>conftest.$ac_ext <<_ACEOF
7410/* end confdefs.h.  */
7411$ac_includes_default
7412   typedef long long ac__type_sizeof_;
7413static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7414static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
7415#include <stdio.h>
7416#include <stdlib.h>
7417int
7418main ()
7419{
7420
7421  FILE *f = fopen ("conftest.val", "w");
7422  if (! f)
7423    return 1;
7424  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
7425    {
7426      long int i = longval ();
7427      if (i != ((long int) (sizeof (ac__type_sizeof_))))
7428	return 1;
7429      fprintf (f, "%ld\n", i);
7430    }
7431  else
7432    {
7433      unsigned long int i = ulongval ();
7434      if (i != ((long int) (sizeof (ac__type_sizeof_))))
7435	return 1;
7436      fprintf (f, "%lu\n", i);
7437    }
7438  return ferror (f) || fclose (f) != 0;
7439
7440  ;
7441  return 0;
7442}
7443_ACEOF
7444rm -f conftest$ac_exeext
7445if { (ac_try="$ac_link"
7446case "(($ac_try" in
7447  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7448  *) ac_try_echo=$ac_try;;
7449esac
7450eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7451  (eval "$ac_link") 2>&5
7452  ac_status=$?
7453  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7454  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7455  { (case "(($ac_try" in
7456  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7457  *) ac_try_echo=$ac_try;;
7458esac
7459eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7460  (eval "$ac_try") 2>&5
7461  ac_status=$?
7462  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7463  (exit $ac_status); }; }; then
7464  ac_cv_sizeof_long_long=`cat conftest.val`
7465else
7466  echo "$as_me: program exited with status $ac_status" >&5
7467echo "$as_me: failed program was:" >&5
7468sed 's/^/| /' conftest.$ac_ext >&5
7469
7470( exit $ac_status )
7471if test "$ac_cv_type_long_long" = yes; then
7472     { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
7473See \`config.log' for more details." >&5
7474echo "$as_me: error: cannot compute sizeof (long long)
7475See \`config.log' for more details." >&2;}
7476   { (exit 77); exit 77; }; }
7477   else
7478     ac_cv_sizeof_long_long=0
7479   fi
7480fi
7481rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7482fi
7483rm -f conftest.val
7484fi
7485{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
7486echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
7487
7488
7489
7490cat >>confdefs.h <<_ACEOF
7491#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
7492_ACEOF
7493
7494
7495
7496
7497	{ echo "$as_me:$LINENO: checking for addrinfo" >&5
7498echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6; }
7499	if test "${ac_cv_addrinfo+set}" = set; then
7500  echo $ECHO_N "(cached) $ECHO_C" >&6
7501else
7502  cat >conftest.$ac_ext <<_ACEOF
7503/* confdefs.h.  */
7504_ACEOF
7505cat confdefs.h >>conftest.$ac_ext
7506cat >>conftest.$ac_ext <<_ACEOF
7507/* end confdefs.h.  */
7508
7509#		include <netdb.h>
7510int
7511main ()
7512{
7513struct addrinfo a
7514  ;
7515  return 0;
7516}
7517_ACEOF
7518rm -f conftest.$ac_objext
7519if { (ac_try="$ac_compile"
7520case "(($ac_try" in
7521  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7522  *) ac_try_echo=$ac_try;;
7523esac
7524eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7525  (eval "$ac_compile") 2>conftest.er1
7526  ac_status=$?
7527  grep -v '^ *+' conftest.er1 >conftest.err
7528  rm -f conftest.er1
7529  cat conftest.err >&5
7530  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7531  (exit $ac_status); } && {
7532	 test -z "$ac_c_werror_flag" ||
7533	 test ! -s conftest.err
7534       } && test -s conftest.$ac_objext; then
7535  ac_cv_addrinfo=yes
7536else
7537  echo "$as_me: failed program was:" >&5
7538sed 's/^/| /' conftest.$ac_ext >&5
7539
7540	ac_cv_addrinfo=no
7541fi
7542
7543rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7544fi
7545
7546	{ echo "$as_me:$LINENO: result: $ac_cv_addrinfo" >&5
7547echo "${ECHO_T}$ac_cv_addrinfo" >&6; }
7548	if test $ac_cv_addrinfo = yes; then
7549		cat >>confdefs.h <<\_ACEOF
7550#define HAVE_ADDRINFO 1
7551_ACEOF
7552
7553	else
7554		cat >>confdefs.h <<\_ACEOF
7555#define NEED_ADDRINFO_H 1
7556_ACEOF
7557
7558	fi
7559
7560if test "$ac_cv_addrinfo" = no; then
7561	missing_includes=yes
7562fi
7563
7564
7565	{ echo "$as_me:$LINENO: checking for NI_MAXSERV" >&5
7566echo $ECHO_N "checking for NI_MAXSERV... $ECHO_C" >&6; }
7567	if test "${ac_cv_maxserv+set}" = set; then
7568  echo $ECHO_N "(cached) $ECHO_C" >&6
7569else
7570  cat >conftest.$ac_ext <<_ACEOF
7571/* confdefs.h.  */
7572_ACEOF
7573cat confdefs.h >>conftest.$ac_ext
7574cat >>conftest.$ac_ext <<_ACEOF
7575/* end confdefs.h.  */
7576#include <netdb.h>
7577#ifdef NI_MAXSERV
7578yes
7579#endif
7580_ACEOF
7581if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7582  $EGREP "yes" >/dev/null 2>&1; then
7583  ac_cv_maxserv=yes
7584else
7585  ac_cv_maxserv=no
7586fi
7587rm -f -r conftest*
7588
7589fi
7590
7591	{ echo "$as_me:$LINENO: result: $ac_cv_maxserv" >&5
7592echo "${ECHO_T}$ac_cv_maxserv" >&6; }
7593	if test $ac_cv_maxserv != yes; then
7594		cat >>confdefs.h <<\_ACEOF
7595#define NEED_ADDRINFO_H 1
7596_ACEOF
7597
7598	fi
7599
7600if test "$ac_cv_maxserv" = no; then
7601	missing_includes=yes
7602fi
7603
7604
7605	{ echo "$as_me:$LINENO: checking for NI_NAMEREQD" >&5
7606echo $ECHO_N "checking for NI_NAMEREQD... $ECHO_C" >&6; }
7607	if test "${ac_cv_namereqd+set}" = set; then
7608  echo $ECHO_N "(cached) $ECHO_C" >&6
7609else
7610  cat >conftest.$ac_ext <<_ACEOF
7611/* confdefs.h.  */
7612_ACEOF
7613cat confdefs.h >>conftest.$ac_ext
7614cat >>conftest.$ac_ext <<_ACEOF
7615/* end confdefs.h.  */
7616#include <netdb.h>
7617#ifdef NI_NOFQDN
7618yes
7619#endif
7620_ACEOF
7621if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7622  $EGREP "yes" >/dev/null 2>&1; then
7623  ac_cv_namereqd=yes
7624else
7625  ac_cv_namereqd=no
7626fi
7627rm -f -r conftest*
7628
7629fi
7630
7631	{ echo "$as_me:$LINENO: result: $ac_cv_namereqd" >&5
7632echo "${ECHO_T}$ac_cv_namereqd" >&6; }
7633	if test $ac_cv_namereqd != yes; then
7634		cat >>confdefs.h <<\_ACEOF
7635#define NEED_ADDRINFO_H 1
7636_ACEOF
7637
7638	fi
7639
7640if test "$ac_cv_namereqd" = no; then
7641	missing_includes=yes
7642fi
7643
7644
7645	{ echo "$as_me:$LINENO: checking for sockaddr_storage" >&5
7646echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6; }
7647	if test "${ac_cv_sa_storage+set}" = set; then
7648  echo $ECHO_N "(cached) $ECHO_C" >&6
7649else
7650  cat >conftest.$ac_ext <<_ACEOF
7651/* confdefs.h.  */
7652_ACEOF
7653cat confdefs.h >>conftest.$ac_ext
7654cat >>conftest.$ac_ext <<_ACEOF
7655/* end confdefs.h.  */
7656
7657#		include <sys/types.h>
7658#		include <sys/socket.h>
7659int
7660main ()
7661{
7662struct sockaddr_storage s
7663  ;
7664  return 0;
7665}
7666_ACEOF
7667rm -f conftest.$ac_objext
7668if { (ac_try="$ac_compile"
7669case "(($ac_try" in
7670  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7671  *) ac_try_echo=$ac_try;;
7672esac
7673eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7674  (eval "$ac_compile") 2>conftest.er1
7675  ac_status=$?
7676  grep -v '^ *+' conftest.er1 >conftest.err
7677  rm -f conftest.er1
7678  cat conftest.err >&5
7679  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7680  (exit $ac_status); } && {
7681	 test -z "$ac_c_werror_flag" ||
7682	 test ! -s conftest.err
7683       } && test -s conftest.$ac_objext; then
7684  ac_cv_sa_storage=yes
7685else
7686  echo "$as_me: failed program was:" >&5
7687sed 's/^/| /' conftest.$ac_ext >&5
7688
7689	ac_cv_sa_storage=no
7690fi
7691
7692rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7693fi
7694
7695	{ echo "$as_me:$LINENO: result: $ac_cv_sa_storage" >&5
7696echo "${ECHO_T}$ac_cv_sa_storage" >&6; }
7697	if test $ac_cv_sa_storage = yes; then
7698		cat >>confdefs.h <<\_ACEOF
7699#define HAVE_SOCKADDR_STORAGE 1
7700_ACEOF
7701
7702	fi
7703
7704if test "$ac_cv_sa_storage" = no; then
7705	missing_includes=yes
7706fi
7707
7708
7709	ac_cv_addrsz=yes
7710	{ echo "$as_me:$LINENO: checking for INADDRSZ" >&5
7711echo $ECHO_N "checking for INADDRSZ... $ECHO_C" >&6; }
7712	if test "${ac_cv_inaddrsz+set}" = set; then
7713  echo $ECHO_N "(cached) $ECHO_C" >&6
7714else
7715  cat >conftest.$ac_ext <<_ACEOF
7716/* confdefs.h.  */
7717_ACEOF
7718cat confdefs.h >>conftest.$ac_ext
7719cat >>conftest.$ac_ext <<_ACEOF
7720/* end confdefs.h.  */
7721
7722#		include <arpa/nameser.h>
7723int
7724main ()
7725{
7726int a = INADDRSZ
7727  ;
7728  return 0;
7729}
7730_ACEOF
7731rm -f conftest.$ac_objext
7732if { (ac_try="$ac_compile"
7733case "(($ac_try" in
7734  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7735  *) ac_try_echo=$ac_try;;
7736esac
7737eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7738  (eval "$ac_compile") 2>conftest.er1
7739  ac_status=$?
7740  grep -v '^ *+' conftest.er1 >conftest.err
7741  rm -f conftest.er1
7742  cat conftest.err >&5
7743  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7744  (exit $ac_status); } && {
7745	 test -z "$ac_c_werror_flag" ||
7746	 test ! -s conftest.err
7747       } && test -s conftest.$ac_objext; then
7748  ac_cv_inaddrsz=yes
7749else
7750  echo "$as_me: failed program was:" >&5
7751sed 's/^/| /' conftest.$ac_ext >&5
7752
7753	ac_cv_inaddrsz=no
7754fi
7755
7756rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7757fi
7758
7759	{ echo "$as_me:$LINENO: result: $ac_cv_inaddrsz" >&5
7760echo "${ECHO_T}$ac_cv_inaddrsz" >&6; }
7761	if test $ac_cv_inaddrsz = yes; then
7762		cat >>confdefs.h <<\_ACEOF
7763#define HAVE_INADDRSZ 1
7764_ACEOF
7765
7766	else
7767		ac_cv_addrsz=no
7768	fi
7769	{ echo "$as_me:$LINENO: checking for IN6ADDRSZ" >&5
7770echo $ECHO_N "checking for IN6ADDRSZ... $ECHO_C" >&6; }
7771	if test "${ac_cv_in6addrsz+set}" = set; then
7772  echo $ECHO_N "(cached) $ECHO_C" >&6
7773else
7774  cat >conftest.$ac_ext <<_ACEOF
7775/* confdefs.h.  */
7776_ACEOF
7777cat confdefs.h >>conftest.$ac_ext
7778cat >>conftest.$ac_ext <<_ACEOF
7779/* end confdefs.h.  */
7780
7781#		include <arpa/nameser.h>
7782int
7783main ()
7784{
7785int a = IN6ADDRSZ
7786  ;
7787  return 0;
7788}
7789_ACEOF
7790rm -f conftest.$ac_objext
7791if { (ac_try="$ac_compile"
7792case "(($ac_try" in
7793  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7794  *) ac_try_echo=$ac_try;;
7795esac
7796eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7797  (eval "$ac_compile") 2>conftest.er1
7798  ac_status=$?
7799  grep -v '^ *+' conftest.er1 >conftest.err
7800  rm -f conftest.er1
7801  cat conftest.err >&5
7802  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7803  (exit $ac_status); } && {
7804	 test -z "$ac_c_werror_flag" ||
7805	 test ! -s conftest.err
7806       } && test -s conftest.$ac_objext; then
7807  ac_cv_in6addrsz=yes
7808else
7809  echo "$as_me: failed program was:" >&5
7810sed 's/^/| /' conftest.$ac_ext >&5
7811
7812	ac_cv_in6addrsz=no
7813fi
7814
7815rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7816fi
7817
7818	{ echo "$as_me:$LINENO: result: $ac_cv_in6addrsz" >&5
7819echo "${ECHO_T}$ac_cv_in6addrsz" >&6; }
7820	if test $ac_cv_in6addrsz = yes; then
7821		cat >>confdefs.h <<\_ACEOF
7822#define HAVE_IN6ADDRSZ 1
7823_ACEOF
7824
7825	else
7826		ac_cv_addrsz=no
7827	fi
7828
7829if test "$ac_cv_addrsz" = no; then
7830	missing_includes=yes
7831fi
7832
7833
7834	{ echo "$as_me:$LINENO: checking for RES_USE_INET6" >&5
7835echo $ECHO_N "checking for RES_USE_INET6... $ECHO_C" >&6; }
7836	if test "${ac_cv_res_inet6+set}" = set; then
7837  echo $ECHO_N "(cached) $ECHO_C" >&6
7838else
7839  cat >conftest.$ac_ext <<_ACEOF
7840/* confdefs.h.  */
7841_ACEOF
7842cat confdefs.h >>conftest.$ac_ext
7843cat >>conftest.$ac_ext <<_ACEOF
7844/* end confdefs.h.  */
7845
7846#		include <sys/types.h>
7847#		include <netinet/in.h>
7848#		include <resolv.h>
7849int
7850main ()
7851{
7852int a = RES_USE_INET6
7853  ;
7854  return 0;
7855}
7856_ACEOF
7857rm -f conftest.$ac_objext
7858if { (ac_try="$ac_compile"
7859case "(($ac_try" in
7860  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7861  *) ac_try_echo=$ac_try;;
7862esac
7863eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7864  (eval "$ac_compile") 2>conftest.er1
7865  ac_status=$?
7866  grep -v '^ *+' conftest.er1 >conftest.err
7867  rm -f conftest.er1
7868  cat conftest.err >&5
7869  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7870  (exit $ac_status); } && {
7871	 test -z "$ac_c_werror_flag" ||
7872	 test ! -s conftest.err
7873       } && test -s conftest.$ac_objext; then
7874  ac_cv_res_inet6=yes
7875else
7876  echo "$as_me: failed program was:" >&5
7877sed 's/^/| /' conftest.$ac_ext >&5
7878
7879	ac_cv_res_inet6=no
7880fi
7881
7882rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7883fi
7884
7885	{ echo "$as_me:$LINENO: result: $ac_cv_res_inet6" >&5
7886echo "${ECHO_T}$ac_cv_res_inet6" >&6; }
7887	if test $ac_cv_res_inet6 = yes; then
7888		cat >>confdefs.h <<\_ACEOF
7889#define HAVE_RES_USE_INET6 1
7890_ACEOF
7891
7892	fi
7893
7894if test "$ac_cv_res_inet6" = no; then
7895	missing_includes=yes
7896fi
7897
7898
7899	{ echo "$as_me:$LINENO: checking for res_state_ext" >&5
7900echo $ECHO_N "checking for res_state_ext... $ECHO_C" >&6; }
7901	if test "${ac_cv_res_state_ext+set}" = set; then
7902  echo $ECHO_N "(cached) $ECHO_C" >&6
7903else
7904  cat >conftest.$ac_ext <<_ACEOF
7905/* confdefs.h.  */
7906_ACEOF
7907cat confdefs.h >>conftest.$ac_ext
7908cat >>conftest.$ac_ext <<_ACEOF
7909/* end confdefs.h.  */
7910
7911#		include <sys/types.h>
7912#		include <netinet/in.h>
7913#		include <netinet6/in6.h>
7914#		include <resolv.h>
7915int
7916main ()
7917{
7918struct __res_state_ext e
7919  ;
7920  return 0;
7921}
7922_ACEOF
7923rm -f conftest.$ac_objext
7924if { (ac_try="$ac_compile"
7925case "(($ac_try" in
7926  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7927  *) ac_try_echo=$ac_try;;
7928esac
7929eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7930  (eval "$ac_compile") 2>conftest.er1
7931  ac_status=$?
7932  grep -v '^ *+' conftest.er1 >conftest.err
7933  rm -f conftest.er1
7934  cat conftest.err >&5
7935  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7936  (exit $ac_status); } && {
7937	 test -z "$ac_c_werror_flag" ||
7938	 test ! -s conftest.err
7939       } && test -s conftest.$ac_objext; then
7940  ac_cv_res_state_ext=yes
7941else
7942  echo "$as_me: failed program was:" >&5
7943sed 's/^/| /' conftest.$ac_ext >&5
7944
7945	ac_cv_res_state_ext=no
7946fi
7947
7948rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7949fi
7950
7951	{ echo "$as_me:$LINENO: result: $ac_cv_res_state_ext" >&5
7952echo "${ECHO_T}$ac_cv_res_state_ext" >&6; }
7953	if test $ac_cv_res_state_ext = yes; then
7954		cat >>confdefs.h <<\_ACEOF
7955#define HAVE_RES_STATE_EXT 1
7956_ACEOF
7957
7958	fi
7959
7960if test "$ac_cv_res_state_ext" = no; then
7961	missing_includes=yes
7962fi
7963
7964
7965	{ echo "$as_me:$LINENO: checking for nsort in res_state" >&5
7966echo $ECHO_N "checking for nsort in res_state... $ECHO_C" >&6; }
7967	if test "${ac_cv_res_state+set}" = set; then
7968  echo $ECHO_N "(cached) $ECHO_C" >&6
7969else
7970  cat >conftest.$ac_ext <<_ACEOF
7971/* confdefs.h.  */
7972_ACEOF
7973cat confdefs.h >>conftest.$ac_ext
7974cat >>conftest.$ac_ext <<_ACEOF
7975/* end confdefs.h.  */
7976
7977#		include <sys/types.h>
7978#		include <netinet/in.h>
7979#		include <netinet6/in6.h>
7980#		include <resolv.h>
7981int
7982main ()
7983{
7984struct __res_state e; e.nsort = 0
7985  ;
7986  return 0;
7987}
7988_ACEOF
7989rm -f conftest.$ac_objext
7990if { (ac_try="$ac_compile"
7991case "(($ac_try" in
7992  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7993  *) ac_try_echo=$ac_try;;
7994esac
7995eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7996  (eval "$ac_compile") 2>conftest.er1
7997  ac_status=$?
7998  grep -v '^ *+' conftest.er1 >conftest.err
7999  rm -f conftest.er1
8000  cat conftest.err >&5
8001  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8002  (exit $ac_status); } && {
8003	 test -z "$ac_c_werror_flag" ||
8004	 test ! -s conftest.err
8005       } && test -s conftest.$ac_objext; then
8006  ac_cv_res_state=yes
8007else
8008  echo "$as_me: failed program was:" >&5
8009sed 's/^/| /' conftest.$ac_ext >&5
8010
8011	ac_cv_res_state=no
8012fi
8013
8014rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8015fi
8016
8017	{ echo "$as_me:$LINENO: result: $ac_cv_res_state" >&5
8018echo "${ECHO_T}$ac_cv_res_state" >&6; }
8019	if test $ac_cv_res_state = yes; then
8020		cat >>confdefs.h <<\_ACEOF
8021#define HAVE_NEW_RES_STATE 1
8022_ACEOF
8023
8024	fi
8025
8026
8027
8028
8029
8030
8031
8032
8033
8034for ac_func in vfprintf strcasecmp strlcat strlcpy strdup strsep
8035do
8036as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8037{ echo "$as_me:$LINENO: checking for $ac_func" >&5
8038echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8039if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8040  echo $ECHO_N "(cached) $ECHO_C" >&6
8041else
8042  cat >conftest.$ac_ext <<_ACEOF
8043/* confdefs.h.  */
8044_ACEOF
8045cat confdefs.h >>conftest.$ac_ext
8046cat >>conftest.$ac_ext <<_ACEOF
8047/* end confdefs.h.  */
8048/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8049   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8050#define $ac_func innocuous_$ac_func
8051
8052/* System header to define __stub macros and hopefully few prototypes,
8053    which can conflict with char $ac_func (); below.
8054    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8055    <limits.h> exists even on freestanding compilers.  */
8056
8057#ifdef __STDC__
8058# include <limits.h>
8059#else
8060# include <assert.h>
8061#endif
8062
8063#undef $ac_func
8064
8065/* Override any GCC internal prototype to avoid an error.
8066   Use char because int might match the return type of a GCC
8067   builtin and then its argument prototype would still apply.  */
8068#ifdef __cplusplus
8069extern "C"
8070#endif
8071char $ac_func ();
8072/* The GNU C library defines this for functions which it implements
8073    to always fail with ENOSYS.  Some functions are actually named
8074    something starting with __ and the normal name is an alias.  */
8075#if defined __stub_$ac_func || defined __stub___$ac_func
8076choke me
8077#endif
8078
8079int
8080main ()
8081{
8082return $ac_func ();
8083  ;
8084  return 0;
8085}
8086_ACEOF
8087rm -f conftest.$ac_objext conftest$ac_exeext
8088if { (ac_try="$ac_link"
8089case "(($ac_try" in
8090  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8091  *) ac_try_echo=$ac_try;;
8092esac
8093eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8094  (eval "$ac_link") 2>conftest.er1
8095  ac_status=$?
8096  grep -v '^ *+' conftest.er1 >conftest.err
8097  rm -f conftest.er1
8098  cat conftest.err >&5
8099  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8100  (exit $ac_status); } && {
8101	 test -z "$ac_c_werror_flag" ||
8102	 test ! -s conftest.err
8103       } && test -s conftest$ac_exeext &&
8104       $as_test_x conftest$ac_exeext; then
8105  eval "$as_ac_var=yes"
8106else
8107  echo "$as_me: failed program was:" >&5
8108sed 's/^/| /' conftest.$ac_ext >&5
8109
8110	eval "$as_ac_var=no"
8111fi
8112
8113rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8114      conftest$ac_exeext conftest.$ac_ext
8115fi
8116ac_res=`eval echo '${'$as_ac_var'}'`
8117	       { echo "$as_me:$LINENO: result: $ac_res" >&5
8118echo "${ECHO_T}$ac_res" >&6; }
8119if test `eval echo '${'$as_ac_var'}'` = yes; then
8120  cat >>confdefs.h <<_ACEOF
8121#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8122_ACEOF
8123
8124else
8125  case " $LIBOBJS " in
8126  *" $ac_func.$ac_objext "* ) ;;
8127  *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
8128 ;;
8129esac
8130
8131fi
8132done
8133
8134
8135
8136for ac_func in strftime
8137do
8138as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8139{ echo "$as_me:$LINENO: checking for $ac_func" >&5
8140echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8141if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8142  echo $ECHO_N "(cached) $ECHO_C" >&6
8143else
8144  cat >conftest.$ac_ext <<_ACEOF
8145/* confdefs.h.  */
8146_ACEOF
8147cat confdefs.h >>conftest.$ac_ext
8148cat >>conftest.$ac_ext <<_ACEOF
8149/* end confdefs.h.  */
8150/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8151   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8152#define $ac_func innocuous_$ac_func
8153
8154/* System header to define __stub macros and hopefully few prototypes,
8155    which can conflict with char $ac_func (); below.
8156    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8157    <limits.h> exists even on freestanding compilers.  */
8158
8159#ifdef __STDC__
8160# include <limits.h>
8161#else
8162# include <assert.h>
8163#endif
8164
8165#undef $ac_func
8166
8167/* Override any GCC internal prototype to avoid an error.
8168   Use char because int might match the return type of a GCC
8169   builtin and then its argument prototype would still apply.  */
8170#ifdef __cplusplus
8171extern "C"
8172#endif
8173char $ac_func ();
8174/* The GNU C library defines this for functions which it implements
8175    to always fail with ENOSYS.  Some functions are actually named
8176    something starting with __ and the normal name is an alias.  */
8177#if defined __stub_$ac_func || defined __stub___$ac_func
8178choke me
8179#endif
8180
8181int
8182main ()
8183{
8184return $ac_func ();
8185  ;
8186  return 0;
8187}
8188_ACEOF
8189rm -f conftest.$ac_objext conftest$ac_exeext
8190if { (ac_try="$ac_link"
8191case "(($ac_try" in
8192  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8193  *) ac_try_echo=$ac_try;;
8194esac
8195eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8196  (eval "$ac_link") 2>conftest.er1
8197  ac_status=$?
8198  grep -v '^ *+' conftest.er1 >conftest.err
8199  rm -f conftest.er1
8200  cat conftest.err >&5
8201  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8202  (exit $ac_status); } && {
8203	 test -z "$ac_c_werror_flag" ||
8204	 test ! -s conftest.err
8205       } && test -s conftest$ac_exeext &&
8206       $as_test_x conftest$ac_exeext; then
8207  eval "$as_ac_var=yes"
8208else
8209  echo "$as_me: failed program was:" >&5
8210sed 's/^/| /' conftest.$ac_ext >&5
8211
8212	eval "$as_ac_var=no"
8213fi
8214
8215rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8216      conftest$ac_exeext conftest.$ac_ext
8217fi
8218ac_res=`eval echo '${'$as_ac_var'}'`
8219	       { echo "$as_me:$LINENO: result: $ac_res" >&5
8220echo "${ECHO_T}$ac_res" >&6; }
8221if test `eval echo '${'$as_ac_var'}'` = yes; then
8222  cat >>confdefs.h <<_ACEOF
8223#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8224_ACEOF
8225
8226fi
8227done
8228
8229
8230
8231for ac_func in setlinebuf alarm
8232do
8233as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8234{ echo "$as_me:$LINENO: checking for $ac_func" >&5
8235echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8236if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8237  echo $ECHO_N "(cached) $ECHO_C" >&6
8238else
8239  cat >conftest.$ac_ext <<_ACEOF
8240/* confdefs.h.  */
8241_ACEOF
8242cat confdefs.h >>conftest.$ac_ext
8243cat >>conftest.$ac_ext <<_ACEOF
8244/* end confdefs.h.  */
8245/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8246   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8247#define $ac_func innocuous_$ac_func
8248
8249/* System header to define __stub macros and hopefully few prototypes,
8250    which can conflict with char $ac_func (); below.
8251    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8252    <limits.h> exists even on freestanding compilers.  */
8253
8254#ifdef __STDC__
8255# include <limits.h>
8256#else
8257# include <assert.h>
8258#endif
8259
8260#undef $ac_func
8261
8262/* Override any GCC internal prototype to avoid an error.
8263   Use char because int might match the return type of a GCC
8264   builtin and then its argument prototype would still apply.  */
8265#ifdef __cplusplus
8266extern "C"
8267#endif
8268char $ac_func ();
8269/* The GNU C library defines this for functions which it implements
8270    to always fail with ENOSYS.  Some functions are actually named
8271    something starting with __ and the normal name is an alias.  */
8272#if defined __stub_$ac_func || defined __stub___$ac_func
8273choke me
8274#endif
8275
8276int
8277main ()
8278{
8279return $ac_func ();
8280  ;
8281  return 0;
8282}
8283_ACEOF
8284rm -f conftest.$ac_objext conftest$ac_exeext
8285if { (ac_try="$ac_link"
8286case "(($ac_try" in
8287  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8288  *) ac_try_echo=$ac_try;;
8289esac
8290eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8291  (eval "$ac_link") 2>conftest.er1
8292  ac_status=$?
8293  grep -v '^ *+' conftest.er1 >conftest.err
8294  rm -f conftest.er1
8295  cat conftest.err >&5
8296  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8297  (exit $ac_status); } && {
8298	 test -z "$ac_c_werror_flag" ||
8299	 test ! -s conftest.err
8300       } && test -s conftest$ac_exeext &&
8301       $as_test_x conftest$ac_exeext; then
8302  eval "$as_ac_var=yes"
8303else
8304  echo "$as_me: failed program was:" >&5
8305sed 's/^/| /' conftest.$ac_ext >&5
8306
8307	eval "$as_ac_var=no"
8308fi
8309
8310rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8311      conftest$ac_exeext conftest.$ac_ext
8312fi
8313ac_res=`eval echo '${'$as_ac_var'}'`
8314	       { echo "$as_me:$LINENO: result: $ac_res" >&5
8315echo "${ECHO_T}$ac_res" >&6; }
8316if test `eval echo '${'$as_ac_var'}'` = yes; then
8317  cat >>confdefs.h <<_ACEOF
8318#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8319_ACEOF
8320
8321fi
8322done
8323
8324
8325needsnprintf=no
8326
8327
8328for ac_func in vsnprintf snprintf
8329do
8330as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8331{ echo "$as_me:$LINENO: checking for $ac_func" >&5
8332echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8333if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8334  echo $ECHO_N "(cached) $ECHO_C" >&6
8335else
8336  cat >conftest.$ac_ext <<_ACEOF
8337/* confdefs.h.  */
8338_ACEOF
8339cat confdefs.h >>conftest.$ac_ext
8340cat >>conftest.$ac_ext <<_ACEOF
8341/* end confdefs.h.  */
8342/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8343   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8344#define $ac_func innocuous_$ac_func
8345
8346/* System header to define __stub macros and hopefully few prototypes,
8347    which can conflict with char $ac_func (); below.
8348    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8349    <limits.h> exists even on freestanding compilers.  */
8350
8351#ifdef __STDC__
8352# include <limits.h>
8353#else
8354# include <assert.h>
8355#endif
8356
8357#undef $ac_func
8358
8359/* Override any GCC internal prototype to avoid an error.
8360   Use char because int might match the return type of a GCC
8361   builtin and then its argument prototype would still apply.  */
8362#ifdef __cplusplus
8363extern "C"
8364#endif
8365char $ac_func ();
8366/* The GNU C library defines this for functions which it implements
8367    to always fail with ENOSYS.  Some functions are actually named
8368    something starting with __ and the normal name is an alias.  */
8369#if defined __stub_$ac_func || defined __stub___$ac_func
8370choke me
8371#endif
8372
8373int
8374main ()
8375{
8376return $ac_func ();
8377  ;
8378  return 0;
8379}
8380_ACEOF
8381rm -f conftest.$ac_objext conftest$ac_exeext
8382if { (ac_try="$ac_link"
8383case "(($ac_try" in
8384  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8385  *) ac_try_echo=$ac_try;;
8386esac
8387eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8388  (eval "$ac_link") 2>conftest.er1
8389  ac_status=$?
8390  grep -v '^ *+' conftest.er1 >conftest.err
8391  rm -f conftest.er1
8392  cat conftest.err >&5
8393  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8394  (exit $ac_status); } && {
8395	 test -z "$ac_c_werror_flag" ||
8396	 test ! -s conftest.err
8397       } && test -s conftest$ac_exeext &&
8398       $as_test_x conftest$ac_exeext; then
8399  eval "$as_ac_var=yes"
8400else
8401  echo "$as_me: failed program was:" >&5
8402sed 's/^/| /' conftest.$ac_ext >&5
8403
8404	eval "$as_ac_var=no"
8405fi
8406
8407rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8408      conftest$ac_exeext conftest.$ac_ext
8409fi
8410ac_res=`eval echo '${'$as_ac_var'}'`
8411	       { echo "$as_me:$LINENO: result: $ac_res" >&5
8412echo "${ECHO_T}$ac_res" >&6; }
8413if test `eval echo '${'$as_ac_var'}'` = yes; then
8414  cat >>confdefs.h <<_ACEOF
8415#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8416_ACEOF
8417
8418else
8419  needsnprintf=yes
8420fi
8421done
8422
8423if test $needsnprintf = yes; then
8424	case " $LIBOBJS " in
8425  *" snprintf.$ac_objext "* ) ;;
8426  *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
8427 ;;
8428esac
8429
8430fi
8431
8432
8433    { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
8434echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
8435if test "${ac_cv_type_signal+set}" = set; then
8436  echo $ECHO_N "(cached) $ECHO_C" >&6
8437else
8438  cat >conftest.$ac_ext <<_ACEOF
8439/* confdefs.h.  */
8440_ACEOF
8441cat confdefs.h >>conftest.$ac_ext
8442cat >>conftest.$ac_ext <<_ACEOF
8443/* end confdefs.h.  */
8444#include <sys/types.h>
8445#include <signal.h>
8446
8447int
8448main ()
8449{
8450return *(signal (0, 0)) (0) == 1;
8451  ;
8452  return 0;
8453}
8454_ACEOF
8455rm -f conftest.$ac_objext
8456if { (ac_try="$ac_compile"
8457case "(($ac_try" in
8458  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8459  *) ac_try_echo=$ac_try;;
8460esac
8461eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8462  (eval "$ac_compile") 2>conftest.er1
8463  ac_status=$?
8464  grep -v '^ *+' conftest.er1 >conftest.err
8465  rm -f conftest.er1
8466  cat conftest.err >&5
8467  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8468  (exit $ac_status); } && {
8469	 test -z "$ac_c_werror_flag" ||
8470	 test ! -s conftest.err
8471       } && test -s conftest.$ac_objext; then
8472  ac_cv_type_signal=int
8473else
8474  echo "$as_me: failed program was:" >&5
8475sed 's/^/| /' conftest.$ac_ext >&5
8476
8477	ac_cv_type_signal=void
8478fi
8479
8480rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8481fi
8482{ echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
8483echo "${ECHO_T}$ac_cv_type_signal" >&6; }
8484
8485cat >>confdefs.h <<_ACEOF
8486#define RETSIGTYPE $ac_cv_type_signal
8487_ACEOF
8488
8489
8490    if test "$ac_cv_type_signal" = void ; then
8491
8492cat >>confdefs.h <<\_ACEOF
8493#define RETSIGVAL
8494_ACEOF
8495
8496    else
8497
8498cat >>confdefs.h <<\_ACEOF
8499#define RETSIGVAL (0)
8500_ACEOF
8501
8502    fi
8503    case "$host_os" in
8504
8505    irix*)
8506
8507cat >>confdefs.h <<\_ACEOF
8508#define _BSD_SIGNALS 1
8509_ACEOF
8510
8511	    ;;
8512
8513    *)
8514
8515for ac_func in sigaction
8516do
8517as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8518{ echo "$as_me:$LINENO: checking for $ac_func" >&5
8519echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8520if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8521  echo $ECHO_N "(cached) $ECHO_C" >&6
8522else
8523  cat >conftest.$ac_ext <<_ACEOF
8524/* confdefs.h.  */
8525_ACEOF
8526cat confdefs.h >>conftest.$ac_ext
8527cat >>conftest.$ac_ext <<_ACEOF
8528/* end confdefs.h.  */
8529/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8530   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8531#define $ac_func innocuous_$ac_func
8532
8533/* System header to define __stub macros and hopefully few prototypes,
8534    which can conflict with char $ac_func (); below.
8535    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8536    <limits.h> exists even on freestanding compilers.  */
8537
8538#ifdef __STDC__
8539# include <limits.h>
8540#else
8541# include <assert.h>
8542#endif
8543
8544#undef $ac_func
8545
8546/* Override any GCC internal prototype to avoid an error.
8547   Use char because int might match the return type of a GCC
8548   builtin and then its argument prototype would still apply.  */
8549#ifdef __cplusplus
8550extern "C"
8551#endif
8552char $ac_func ();
8553/* The GNU C library defines this for functions which it implements
8554    to always fail with ENOSYS.  Some functions are actually named
8555    something starting with __ and the normal name is an alias.  */
8556#if defined __stub_$ac_func || defined __stub___$ac_func
8557choke me
8558#endif
8559
8560int
8561main ()
8562{
8563return $ac_func ();
8564  ;
8565  return 0;
8566}
8567_ACEOF
8568rm -f conftest.$ac_objext conftest$ac_exeext
8569if { (ac_try="$ac_link"
8570case "(($ac_try" in
8571  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8572  *) ac_try_echo=$ac_try;;
8573esac
8574eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8575  (eval "$ac_link") 2>conftest.er1
8576  ac_status=$?
8577  grep -v '^ *+' conftest.er1 >conftest.err
8578  rm -f conftest.er1
8579  cat conftest.err >&5
8580  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8581  (exit $ac_status); } && {
8582	 test -z "$ac_c_werror_flag" ||
8583	 test ! -s conftest.err
8584       } && test -s conftest$ac_exeext &&
8585       $as_test_x conftest$ac_exeext; then
8586  eval "$as_ac_var=yes"
8587else
8588  echo "$as_me: failed program was:" >&5
8589sed 's/^/| /' conftest.$ac_ext >&5
8590
8591	eval "$as_ac_var=no"
8592fi
8593
8594rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8595      conftest$ac_exeext conftest.$ac_ext
8596fi
8597ac_res=`eval echo '${'$as_ac_var'}'`
8598	       { echo "$as_me:$LINENO: result: $ac_res" >&5
8599echo "${ECHO_T}$ac_res" >&6; }
8600if test `eval echo '${'$as_ac_var'}'` = yes; then
8601  cat >>confdefs.h <<_ACEOF
8602#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8603_ACEOF
8604
8605fi
8606done
8607
8608	    if test $ac_cv_func_sigaction = no ; then
8609
8610for ac_func in sigset
8611do
8612as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8613{ echo "$as_me:$LINENO: checking for $ac_func" >&5
8614echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8615if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8616  echo $ECHO_N "(cached) $ECHO_C" >&6
8617else
8618  cat >conftest.$ac_ext <<_ACEOF
8619/* confdefs.h.  */
8620_ACEOF
8621cat confdefs.h >>conftest.$ac_ext
8622cat >>conftest.$ac_ext <<_ACEOF
8623/* end confdefs.h.  */
8624/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8625   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8626#define $ac_func innocuous_$ac_func
8627
8628/* System header to define __stub macros and hopefully few prototypes,
8629    which can conflict with char $ac_func (); below.
8630    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8631    <limits.h> exists even on freestanding compilers.  */
8632
8633#ifdef __STDC__
8634# include <limits.h>
8635#else
8636# include <assert.h>
8637#endif
8638
8639#undef $ac_func
8640
8641/* Override any GCC internal prototype to avoid an error.
8642   Use char because int might match the return type of a GCC
8643   builtin and then its argument prototype would still apply.  */
8644#ifdef __cplusplus
8645extern "C"
8646#endif
8647char $ac_func ();
8648/* The GNU C library defines this for functions which it implements
8649    to always fail with ENOSYS.  Some functions are actually named
8650    something starting with __ and the normal name is an alias.  */
8651#if defined __stub_$ac_func || defined __stub___$ac_func
8652choke me
8653#endif
8654
8655int
8656main ()
8657{
8658return $ac_func ();
8659  ;
8660  return 0;
8661}
8662_ACEOF
8663rm -f conftest.$ac_objext conftest$ac_exeext
8664if { (ac_try="$ac_link"
8665case "(($ac_try" in
8666  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8667  *) ac_try_echo=$ac_try;;
8668esac
8669eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8670  (eval "$ac_link") 2>conftest.er1
8671  ac_status=$?
8672  grep -v '^ *+' conftest.er1 >conftest.err
8673  rm -f conftest.er1
8674  cat conftest.err >&5
8675  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8676  (exit $ac_status); } && {
8677	 test -z "$ac_c_werror_flag" ||
8678	 test ! -s conftest.err
8679       } && test -s conftest$ac_exeext &&
8680       $as_test_x conftest$ac_exeext; then
8681  eval "$as_ac_var=yes"
8682else
8683  echo "$as_me: failed program was:" >&5
8684sed 's/^/| /' conftest.$ac_ext >&5
8685
8686	eval "$as_ac_var=no"
8687fi
8688
8689rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8690      conftest$ac_exeext conftest.$ac_ext
8691fi
8692ac_res=`eval echo '${'$as_ac_var'}'`
8693	       { echo "$as_me:$LINENO: result: $ac_res" >&5
8694echo "${ECHO_T}$ac_res" >&6; }
8695if test `eval echo '${'$as_ac_var'}'` = yes; then
8696  cat >>confdefs.h <<_ACEOF
8697#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8698_ACEOF
8699
8700fi
8701done
8702
8703	    fi
8704	    ;;
8705    esac
8706
8707{ echo "$as_me:$LINENO: checking for library containing dnet_htoa" >&5
8708echo $ECHO_N "checking for library containing dnet_htoa... $ECHO_C" >&6; }
8709if test "${ac_cv_search_dnet_htoa+set}" = set; then
8710  echo $ECHO_N "(cached) $ECHO_C" >&6
8711else
8712  ac_func_search_save_LIBS=$LIBS
8713cat >conftest.$ac_ext <<_ACEOF
8714/* confdefs.h.  */
8715_ACEOF
8716cat confdefs.h >>conftest.$ac_ext
8717cat >>conftest.$ac_ext <<_ACEOF
8718/* end confdefs.h.  */
8719
8720/* Override any GCC internal prototype to avoid an error.
8721   Use char because int might match the return type of a GCC
8722   builtin and then its argument prototype would still apply.  */
8723#ifdef __cplusplus
8724extern "C"
8725#endif
8726char dnet_htoa ();
8727int
8728main ()
8729{
8730return dnet_htoa ();
8731  ;
8732  return 0;
8733}
8734_ACEOF
8735for ac_lib in '' dnet; do
8736  if test -z "$ac_lib"; then
8737    ac_res="none required"
8738  else
8739    ac_res=-l$ac_lib
8740    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8741  fi
8742  rm -f conftest.$ac_objext conftest$ac_exeext
8743if { (ac_try="$ac_link"
8744case "(($ac_try" in
8745  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8746  *) ac_try_echo=$ac_try;;
8747esac
8748eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8749  (eval "$ac_link") 2>conftest.er1
8750  ac_status=$?
8751  grep -v '^ *+' conftest.er1 >conftest.err
8752  rm -f conftest.er1
8753  cat conftest.err >&5
8754  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8755  (exit $ac_status); } && {
8756	 test -z "$ac_c_werror_flag" ||
8757	 test ! -s conftest.err
8758       } && test -s conftest$ac_exeext &&
8759       $as_test_x conftest$ac_exeext; then
8760  ac_cv_search_dnet_htoa=$ac_res
8761else
8762  echo "$as_me: failed program was:" >&5
8763sed 's/^/| /' conftest.$ac_ext >&5
8764
8765
8766fi
8767
8768rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8769      conftest$ac_exeext
8770  if test "${ac_cv_search_dnet_htoa+set}" = set; then
8771  break
8772fi
8773done
8774if test "${ac_cv_search_dnet_htoa+set}" = set; then
8775  :
8776else
8777  ac_cv_search_dnet_htoa=no
8778fi
8779rm conftest.$ac_ext
8780LIBS=$ac_func_search_save_LIBS
8781fi
8782{ echo "$as_me:$LINENO: result: $ac_cv_search_dnet_htoa" >&5
8783echo "${ECHO_T}$ac_cv_search_dnet_htoa" >&6; }
8784ac_res=$ac_cv_search_dnet_htoa
8785if test "$ac_res" != no; then
8786  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8787  cat >>confdefs.h <<\_ACEOF
8788#define HAVE_DNET_HTOA 1
8789_ACEOF
8790
8791fi
8792
8793
8794
8795{ echo "$as_me:$LINENO: checking for main in -lrpc" >&5
8796echo $ECHO_N "checking for main in -lrpc... $ECHO_C" >&6; }
8797if test "${ac_cv_lib_rpc_main+set}" = set; then
8798  echo $ECHO_N "(cached) $ECHO_C" >&6
8799else
8800  ac_check_lib_save_LIBS=$LIBS
8801LIBS="-lrpc  $LIBS"
8802cat >conftest.$ac_ext <<_ACEOF
8803/* confdefs.h.  */
8804_ACEOF
8805cat confdefs.h >>conftest.$ac_ext
8806cat >>conftest.$ac_ext <<_ACEOF
8807/* end confdefs.h.  */
8808
8809
8810int
8811main ()
8812{
8813return main ();
8814  ;
8815  return 0;
8816}
8817_ACEOF
8818rm -f conftest.$ac_objext conftest$ac_exeext
8819if { (ac_try="$ac_link"
8820case "(($ac_try" in
8821  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8822  *) ac_try_echo=$ac_try;;
8823esac
8824eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8825  (eval "$ac_link") 2>conftest.er1
8826  ac_status=$?
8827  grep -v '^ *+' conftest.er1 >conftest.err
8828  rm -f conftest.er1
8829  cat conftest.err >&5
8830  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8831  (exit $ac_status); } && {
8832	 test -z "$ac_c_werror_flag" ||
8833	 test ! -s conftest.err
8834       } && test -s conftest$ac_exeext &&
8835       $as_test_x conftest$ac_exeext; then
8836  ac_cv_lib_rpc_main=yes
8837else
8838  echo "$as_me: failed program was:" >&5
8839sed 's/^/| /' conftest.$ac_ext >&5
8840
8841	ac_cv_lib_rpc_main=no
8842fi
8843
8844rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8845      conftest$ac_exeext conftest.$ac_ext
8846LIBS=$ac_check_lib_save_LIBS
8847fi
8848{ echo "$as_me:$LINENO: result: $ac_cv_lib_rpc_main" >&5
8849echo "${ECHO_T}$ac_cv_lib_rpc_main" >&6; }
8850if test $ac_cv_lib_rpc_main = yes; then
8851  cat >>confdefs.h <<_ACEOF
8852#define HAVE_LIBRPC 1
8853_ACEOF
8854
8855  LIBS="-lrpc $LIBS"
8856
8857fi
8858
8859{ echo "$as_me:$LINENO: checking for library containing getrpcbynumber" >&5
8860echo $ECHO_N "checking for library containing getrpcbynumber... $ECHO_C" >&6; }
8861if test "${ac_cv_search_getrpcbynumber+set}" = set; then
8862  echo $ECHO_N "(cached) $ECHO_C" >&6
8863else
8864  ac_func_search_save_LIBS=$LIBS
8865cat >conftest.$ac_ext <<_ACEOF
8866/* confdefs.h.  */
8867_ACEOF
8868cat confdefs.h >>conftest.$ac_ext
8869cat >>conftest.$ac_ext <<_ACEOF
8870/* end confdefs.h.  */
8871
8872/* Override any GCC internal prototype to avoid an error.
8873   Use char because int might match the return type of a GCC
8874   builtin and then its argument prototype would still apply.  */
8875#ifdef __cplusplus
8876extern "C"
8877#endif
8878char getrpcbynumber ();
8879int
8880main ()
8881{
8882return getrpcbynumber ();
8883  ;
8884  return 0;
8885}
8886_ACEOF
8887for ac_lib in '' nsl; do
8888  if test -z "$ac_lib"; then
8889    ac_res="none required"
8890  else
8891    ac_res=-l$ac_lib
8892    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8893  fi
8894  rm -f conftest.$ac_objext conftest$ac_exeext
8895if { (ac_try="$ac_link"
8896case "(($ac_try" in
8897  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8898  *) ac_try_echo=$ac_try;;
8899esac
8900eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8901  (eval "$ac_link") 2>conftest.er1
8902  ac_status=$?
8903  grep -v '^ *+' conftest.er1 >conftest.err
8904  rm -f conftest.er1
8905  cat conftest.err >&5
8906  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8907  (exit $ac_status); } && {
8908	 test -z "$ac_c_werror_flag" ||
8909	 test ! -s conftest.err
8910       } && test -s conftest$ac_exeext &&
8911       $as_test_x conftest$ac_exeext; then
8912  ac_cv_search_getrpcbynumber=$ac_res
8913else
8914  echo "$as_me: failed program was:" >&5
8915sed 's/^/| /' conftest.$ac_ext >&5
8916
8917
8918fi
8919
8920rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8921      conftest$ac_exeext
8922  if test "${ac_cv_search_getrpcbynumber+set}" = set; then
8923  break
8924fi
8925done
8926if test "${ac_cv_search_getrpcbynumber+set}" = set; then
8927  :
8928else
8929  ac_cv_search_getrpcbynumber=no
8930fi
8931rm conftest.$ac_ext
8932LIBS=$ac_func_search_save_LIBS
8933fi
8934{ echo "$as_me:$LINENO: result: $ac_cv_search_getrpcbynumber" >&5
8935echo "${ECHO_T}$ac_cv_search_getrpcbynumber" >&6; }
8936ac_res=$ac_cv_search_getrpcbynumber
8937if test "$ac_res" != no; then
8938  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8939  cat >>confdefs.h <<\_ACEOF
8940#define HAVE_GETRPCBYNUMBER 1
8941_ACEOF
8942
8943fi
8944
8945
8946
8947
8948    # Most operating systems have gethostbyname() in the default searched
8949    # libraries (i.e. libc):
8950    # Some OSes (eg. Solaris) place it in libnsl
8951    # Some strange OSes (SINIX) have it in libsocket:
8952    { echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
8953echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6; }
8954if test "${ac_cv_search_gethostbyname+set}" = set; then
8955  echo $ECHO_N "(cached) $ECHO_C" >&6
8956else
8957  ac_func_search_save_LIBS=$LIBS
8958cat >conftest.$ac_ext <<_ACEOF
8959/* confdefs.h.  */
8960_ACEOF
8961cat confdefs.h >>conftest.$ac_ext
8962cat >>conftest.$ac_ext <<_ACEOF
8963/* end confdefs.h.  */
8964
8965/* Override any GCC internal prototype to avoid an error.
8966   Use char because int might match the return type of a GCC
8967   builtin and then its argument prototype would still apply.  */
8968#ifdef __cplusplus
8969extern "C"
8970#endif
8971char gethostbyname ();
8972int
8973main ()
8974{
8975return gethostbyname ();
8976  ;
8977  return 0;
8978}
8979_ACEOF
8980for ac_lib in '' nsl socket resolv; do
8981  if test -z "$ac_lib"; then
8982    ac_res="none required"
8983  else
8984    ac_res=-l$ac_lib
8985    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8986  fi
8987  rm -f conftest.$ac_objext conftest$ac_exeext
8988if { (ac_try="$ac_link"
8989case "(($ac_try" in
8990  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8991  *) ac_try_echo=$ac_try;;
8992esac
8993eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8994  (eval "$ac_link") 2>conftest.er1
8995  ac_status=$?
8996  grep -v '^ *+' conftest.er1 >conftest.err
8997  rm -f conftest.er1
8998  cat conftest.err >&5
8999  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9000  (exit $ac_status); } && {
9001	 test -z "$ac_c_werror_flag" ||
9002	 test ! -s conftest.err
9003       } && test -s conftest$ac_exeext &&
9004       $as_test_x conftest$ac_exeext; then
9005  ac_cv_search_gethostbyname=$ac_res
9006else
9007  echo "$as_me: failed program was:" >&5
9008sed 's/^/| /' conftest.$ac_ext >&5
9009
9010
9011fi
9012
9013rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9014      conftest$ac_exeext
9015  if test "${ac_cv_search_gethostbyname+set}" = set; then
9016  break
9017fi
9018done
9019if test "${ac_cv_search_gethostbyname+set}" = set; then
9020  :
9021else
9022  ac_cv_search_gethostbyname=no
9023fi
9024rm conftest.$ac_ext
9025LIBS=$ac_func_search_save_LIBS
9026fi
9027{ echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
9028echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6; }
9029ac_res=$ac_cv_search_gethostbyname
9030if test "$ac_res" != no; then
9031  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9032
9033fi
9034
9035    # Unfortunately libsocket sometimes depends on libnsl and
9036    # AC_SEARCH_LIBS isn't up to the task of handling dependencies like this.
9037    if test "$ac_cv_search_gethostbyname" = "no"
9038    then
9039	{ echo "$as_me:$LINENO: checking for gethostbyname in -lsocket" >&5
9040echo $ECHO_N "checking for gethostbyname in -lsocket... $ECHO_C" >&6; }
9041if test "${ac_cv_lib_socket_gethostbyname+set}" = set; then
9042  echo $ECHO_N "(cached) $ECHO_C" >&6
9043else
9044  ac_check_lib_save_LIBS=$LIBS
9045LIBS="-lsocket -lnsl $LIBS"
9046cat >conftest.$ac_ext <<_ACEOF
9047/* confdefs.h.  */
9048_ACEOF
9049cat confdefs.h >>conftest.$ac_ext
9050cat >>conftest.$ac_ext <<_ACEOF
9051/* end confdefs.h.  */
9052
9053/* Override any GCC internal prototype to avoid an error.
9054   Use char because int might match the return type of a GCC
9055   builtin and then its argument prototype would still apply.  */
9056#ifdef __cplusplus
9057extern "C"
9058#endif
9059char gethostbyname ();
9060int
9061main ()
9062{
9063return gethostbyname ();
9064  ;
9065  return 0;
9066}
9067_ACEOF
9068rm -f conftest.$ac_objext conftest$ac_exeext
9069if { (ac_try="$ac_link"
9070case "(($ac_try" in
9071  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9072  *) ac_try_echo=$ac_try;;
9073esac
9074eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9075  (eval "$ac_link") 2>conftest.er1
9076  ac_status=$?
9077  grep -v '^ *+' conftest.er1 >conftest.err
9078  rm -f conftest.er1
9079  cat conftest.err >&5
9080  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9081  (exit $ac_status); } && {
9082	 test -z "$ac_c_werror_flag" ||
9083	 test ! -s conftest.err
9084       } && test -s conftest$ac_exeext &&
9085       $as_test_x conftest$ac_exeext; then
9086  ac_cv_lib_socket_gethostbyname=yes
9087else
9088  echo "$as_me: failed program was:" >&5
9089sed 's/^/| /' conftest.$ac_ext >&5
9090
9091	ac_cv_lib_socket_gethostbyname=no
9092fi
9093
9094rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9095      conftest$ac_exeext conftest.$ac_ext
9096LIBS=$ac_check_lib_save_LIBS
9097fi
9098{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_gethostbyname" >&5
9099echo "${ECHO_T}$ac_cv_lib_socket_gethostbyname" >&6; }
9100if test $ac_cv_lib_socket_gethostbyname = yes; then
9101  LIBS="-lsocket -lnsl $LIBS"
9102fi
9103
9104    fi
9105    { echo "$as_me:$LINENO: checking for library containing socket" >&5
9106echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6; }
9107if test "${ac_cv_search_socket+set}" = set; then
9108  echo $ECHO_N "(cached) $ECHO_C" >&6
9109else
9110  ac_func_search_save_LIBS=$LIBS
9111cat >conftest.$ac_ext <<_ACEOF
9112/* confdefs.h.  */
9113_ACEOF
9114cat confdefs.h >>conftest.$ac_ext
9115cat >>conftest.$ac_ext <<_ACEOF
9116/* end confdefs.h.  */
9117
9118/* Override any GCC internal prototype to avoid an error.
9119   Use char because int might match the return type of a GCC
9120   builtin and then its argument prototype would still apply.  */
9121#ifdef __cplusplus
9122extern "C"
9123#endif
9124char socket ();
9125int
9126main ()
9127{
9128return socket ();
9129  ;
9130  return 0;
9131}
9132_ACEOF
9133for ac_lib in '' socket; do
9134  if test -z "$ac_lib"; then
9135    ac_res="none required"
9136  else
9137    ac_res=-l$ac_lib
9138    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9139  fi
9140  rm -f conftest.$ac_objext conftest$ac_exeext
9141if { (ac_try="$ac_link"
9142case "(($ac_try" in
9143  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9144  *) ac_try_echo=$ac_try;;
9145esac
9146eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9147  (eval "$ac_link") 2>conftest.er1
9148  ac_status=$?
9149  grep -v '^ *+' conftest.er1 >conftest.err
9150  rm -f conftest.er1
9151  cat conftest.err >&5
9152  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9153  (exit $ac_status); } && {
9154	 test -z "$ac_c_werror_flag" ||
9155	 test ! -s conftest.err
9156       } && test -s conftest$ac_exeext &&
9157       $as_test_x conftest$ac_exeext; then
9158  ac_cv_search_socket=$ac_res
9159else
9160  echo "$as_me: failed program was:" >&5
9161sed 's/^/| /' conftest.$ac_ext >&5
9162
9163
9164fi
9165
9166rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9167      conftest$ac_exeext
9168  if test "${ac_cv_search_socket+set}" = set; then
9169  break
9170fi
9171done
9172if test "${ac_cv_search_socket+set}" = set; then
9173  :
9174else
9175  ac_cv_search_socket=no
9176fi
9177rm conftest.$ac_ext
9178LIBS=$ac_func_search_save_LIBS
9179fi
9180{ echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
9181echo "${ECHO_T}$ac_cv_search_socket" >&6; }
9182ac_res=$ac_cv_search_socket
9183if test "$ac_res" != no; then
9184  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9185
9186else
9187  { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
9188echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
9189if test "${ac_cv_lib_socket_socket+set}" = set; then
9190  echo $ECHO_N "(cached) $ECHO_C" >&6
9191else
9192  ac_check_lib_save_LIBS=$LIBS
9193LIBS="-lsocket -lnsl $LIBS"
9194cat >conftest.$ac_ext <<_ACEOF
9195/* confdefs.h.  */
9196_ACEOF
9197cat confdefs.h >>conftest.$ac_ext
9198cat >>conftest.$ac_ext <<_ACEOF
9199/* end confdefs.h.  */
9200
9201/* Override any GCC internal prototype to avoid an error.
9202   Use char because int might match the return type of a GCC
9203   builtin and then its argument prototype would still apply.  */
9204#ifdef __cplusplus
9205extern "C"
9206#endif
9207char socket ();
9208int
9209main ()
9210{
9211return socket ();
9212  ;
9213  return 0;
9214}
9215_ACEOF
9216rm -f conftest.$ac_objext conftest$ac_exeext
9217if { (ac_try="$ac_link"
9218case "(($ac_try" in
9219  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9220  *) ac_try_echo=$ac_try;;
9221esac
9222eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9223  (eval "$ac_link") 2>conftest.er1
9224  ac_status=$?
9225  grep -v '^ *+' conftest.er1 >conftest.err
9226  rm -f conftest.er1
9227  cat conftest.err >&5
9228  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9229  (exit $ac_status); } && {
9230	 test -z "$ac_c_werror_flag" ||
9231	 test ! -s conftest.err
9232       } && test -s conftest$ac_exeext &&
9233       $as_test_x conftest$ac_exeext; then
9234  ac_cv_lib_socket_socket=yes
9235else
9236  echo "$as_me: failed program was:" >&5
9237sed 's/^/| /' conftest.$ac_ext >&5
9238
9239	ac_cv_lib_socket_socket=no
9240fi
9241
9242rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9243      conftest$ac_exeext conftest.$ac_ext
9244LIBS=$ac_check_lib_save_LIBS
9245fi
9246{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
9247echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
9248if test $ac_cv_lib_socket_socket = yes; then
9249  LIBS="-lsocket -lnsl $LIBS"
9250fi
9251
9252fi
9253
9254    # DLPI needs putmsg under HPUX so test for -lstr while we're at it
9255    { echo "$as_me:$LINENO: checking for library containing putmsg" >&5
9256echo $ECHO_N "checking for library containing putmsg... $ECHO_C" >&6; }
9257if test "${ac_cv_search_putmsg+set}" = set; then
9258  echo $ECHO_N "(cached) $ECHO_C" >&6
9259else
9260  ac_func_search_save_LIBS=$LIBS
9261cat >conftest.$ac_ext <<_ACEOF
9262/* confdefs.h.  */
9263_ACEOF
9264cat confdefs.h >>conftest.$ac_ext
9265cat >>conftest.$ac_ext <<_ACEOF
9266/* end confdefs.h.  */
9267
9268/* Override any GCC internal prototype to avoid an error.
9269   Use char because int might match the return type of a GCC
9270   builtin and then its argument prototype would still apply.  */
9271#ifdef __cplusplus
9272extern "C"
9273#endif
9274char putmsg ();
9275int
9276main ()
9277{
9278return putmsg ();
9279  ;
9280  return 0;
9281}
9282_ACEOF
9283for ac_lib in '' str; do
9284  if test -z "$ac_lib"; then
9285    ac_res="none required"
9286  else
9287    ac_res=-l$ac_lib
9288    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9289  fi
9290  rm -f conftest.$ac_objext conftest$ac_exeext
9291if { (ac_try="$ac_link"
9292case "(($ac_try" in
9293  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9294  *) ac_try_echo=$ac_try;;
9295esac
9296eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9297  (eval "$ac_link") 2>conftest.er1
9298  ac_status=$?
9299  grep -v '^ *+' conftest.er1 >conftest.err
9300  rm -f conftest.er1
9301  cat conftest.err >&5
9302  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9303  (exit $ac_status); } && {
9304	 test -z "$ac_c_werror_flag" ||
9305	 test ! -s conftest.err
9306       } && test -s conftest$ac_exeext &&
9307       $as_test_x conftest$ac_exeext; then
9308  ac_cv_search_putmsg=$ac_res
9309else
9310  echo "$as_me: failed program was:" >&5
9311sed 's/^/| /' conftest.$ac_ext >&5
9312
9313
9314fi
9315
9316rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9317      conftest$ac_exeext
9318  if test "${ac_cv_search_putmsg+set}" = set; then
9319  break
9320fi
9321done
9322if test "${ac_cv_search_putmsg+set}" = set; then
9323  :
9324else
9325  ac_cv_search_putmsg=no
9326fi
9327rm conftest.$ac_ext
9328LIBS=$ac_func_search_save_LIBS
9329fi
9330{ echo "$as_me:$LINENO: result: $ac_cv_search_putmsg" >&5
9331echo "${ECHO_T}$ac_cv_search_putmsg" >&6; }
9332ac_res=$ac_cv_search_putmsg
9333if test "$ac_res" != no; then
9334  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9335
9336fi
9337
9338
9339
9340                LBL_LIBS="$LIBS"
9341    pfopen=/usr/examples/packetfilter/pfopen.c
9342    if test -f $pfopen ; then
9343
9344for ac_func in pfopen
9345do
9346as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9347{ echo "$as_me:$LINENO: checking for $ac_func" >&5
9348echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9349if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9350  echo $ECHO_N "(cached) $ECHO_C" >&6
9351else
9352  cat >conftest.$ac_ext <<_ACEOF
9353/* confdefs.h.  */
9354_ACEOF
9355cat confdefs.h >>conftest.$ac_ext
9356cat >>conftest.$ac_ext <<_ACEOF
9357/* end confdefs.h.  */
9358/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9359   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9360#define $ac_func innocuous_$ac_func
9361
9362/* System header to define __stub macros and hopefully few prototypes,
9363    which can conflict with char $ac_func (); below.
9364    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9365    <limits.h> exists even on freestanding compilers.  */
9366
9367#ifdef __STDC__
9368# include <limits.h>
9369#else
9370# include <assert.h>
9371#endif
9372
9373#undef $ac_func
9374
9375/* Override any GCC internal prototype to avoid an error.
9376   Use char because int might match the return type of a GCC
9377   builtin and then its argument prototype would still apply.  */
9378#ifdef __cplusplus
9379extern "C"
9380#endif
9381char $ac_func ();
9382/* The GNU C library defines this for functions which it implements
9383    to always fail with ENOSYS.  Some functions are actually named
9384    something starting with __ and the normal name is an alias.  */
9385#if defined __stub_$ac_func || defined __stub___$ac_func
9386choke me
9387#endif
9388
9389int
9390main ()
9391{
9392return $ac_func ();
9393  ;
9394  return 0;
9395}
9396_ACEOF
9397rm -f conftest.$ac_objext conftest$ac_exeext
9398if { (ac_try="$ac_link"
9399case "(($ac_try" in
9400  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9401  *) ac_try_echo=$ac_try;;
9402esac
9403eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9404  (eval "$ac_link") 2>conftest.er1
9405  ac_status=$?
9406  grep -v '^ *+' conftest.er1 >conftest.err
9407  rm -f conftest.er1
9408  cat conftest.err >&5
9409  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9410  (exit $ac_status); } && {
9411	 test -z "$ac_c_werror_flag" ||
9412	 test ! -s conftest.err
9413       } && test -s conftest$ac_exeext &&
9414       $as_test_x conftest$ac_exeext; then
9415  eval "$as_ac_var=yes"
9416else
9417  echo "$as_me: failed program was:" >&5
9418sed 's/^/| /' conftest.$ac_ext >&5
9419
9420	eval "$as_ac_var=no"
9421fi
9422
9423rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9424      conftest$ac_exeext conftest.$ac_ext
9425fi
9426ac_res=`eval echo '${'$as_ac_var'}'`
9427	       { echo "$as_me:$LINENO: result: $ac_res" >&5
9428echo "${ECHO_T}$ac_res" >&6; }
9429if test `eval echo '${'$as_ac_var'}'` = yes; then
9430  cat >>confdefs.h <<_ACEOF
9431#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9432_ACEOF
9433
9434fi
9435done
9436
9437	    if test $ac_cv_func_pfopen = "no" ; then
9438		    { echo "$as_me:$LINENO: result: Using $pfopen" >&5
9439echo "${ECHO_T}Using $pfopen" >&6; }
9440		    LIBS="$LIBS $pfopen"
9441	    fi
9442    fi
9443    { echo "$as_me:$LINENO: checking for local pcap library" >&5
9444echo $ECHO_N "checking for local pcap library... $ECHO_C" >&6; }
9445    libpcap=FAIL
9446    lastdir=FAIL
9447    places=`ls $srcdir/.. | sed -e 's,/$,,' -e "s,^,$srcdir/../," | \
9448	egrep '/libpcap-[0-9]+\.[0-9]+(\.[0-9]*)?([ab][0-9]*|-PRE-GIT)?$'`
9449    for dir in $places $srcdir/../libpcap $srcdir/libpcap ; do
9450	    basedir=`echo $dir | sed -e 's/[ab][0-9]*$//' | \
9451	        sed -e 's/-PRE-GIT$//' `
9452	    if test $lastdir = $basedir ; then
9453		    		    continue;
9454	    fi
9455	    lastdir=$dir
9456	    if test -r $dir/libpcap.a ; then
9457		    libpcap=$dir/libpcap.a
9458		    d=$dir
9459		    	    fi
9460    done
9461    if test $libpcap = FAIL ; then
9462	    { echo "$as_me:$LINENO: result: not found" >&5
9463echo "${ECHO_T}not found" >&6; }
9464
9465	    #
9466	    # Look for pcap-config.
9467	    #
9468	    # Extract the first word of "pcap-config", so it can be a program name with args.
9469set dummy pcap-config; ac_word=$2
9470{ echo "$as_me:$LINENO: checking for $ac_word" >&5
9471echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9472if test "${ac_cv_path_PCAP_CONFIG+set}" = set; then
9473  echo $ECHO_N "(cached) $ECHO_C" >&6
9474else
9475  case $PCAP_CONFIG in
9476  [\\/]* | ?:[\\/]*)
9477  ac_cv_path_PCAP_CONFIG="$PCAP_CONFIG" # Let the user override the test with a path.
9478  ;;
9479  *)
9480  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9481for as_dir in $PATH
9482do
9483  IFS=$as_save_IFS
9484  test -z "$as_dir" && as_dir=.
9485  for ac_exec_ext in '' $ac_executable_extensions; do
9486  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9487    ac_cv_path_PCAP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9488    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9489    break 2
9490  fi
9491done
9492done
9493IFS=$as_save_IFS
9494
9495  ;;
9496esac
9497fi
9498PCAP_CONFIG=$ac_cv_path_PCAP_CONFIG
9499if test -n "$PCAP_CONFIG"; then
9500  { echo "$as_me:$LINENO: result: $PCAP_CONFIG" >&5
9501echo "${ECHO_T}$PCAP_CONFIG" >&6; }
9502else
9503  { echo "$as_me:$LINENO: result: no" >&5
9504echo "${ECHO_T}no" >&6; }
9505fi
9506
9507
9508	    if test -n "$PCAP_CONFIG" ; then
9509		#
9510		# Found - use it to get the include flags for
9511		# libpcap and the flags to link with libpcap.
9512		#
9513		V_INCLS="`\"$PCAP_CONFIG\" --cflags` $V_INCLS"
9514		libpcap="`\"$PCAP_CONFIG\" --libs`"
9515	    else
9516		#
9517		# Not found; look for pcap.
9518		#
9519		{ echo "$as_me:$LINENO: checking for main in -lpcap" >&5
9520echo $ECHO_N "checking for main in -lpcap... $ECHO_C" >&6; }
9521if test "${ac_cv_lib_pcap_main+set}" = set; then
9522  echo $ECHO_N "(cached) $ECHO_C" >&6
9523else
9524  ac_check_lib_save_LIBS=$LIBS
9525LIBS="-lpcap  $LIBS"
9526cat >conftest.$ac_ext <<_ACEOF
9527/* confdefs.h.  */
9528_ACEOF
9529cat confdefs.h >>conftest.$ac_ext
9530cat >>conftest.$ac_ext <<_ACEOF
9531/* end confdefs.h.  */
9532
9533
9534int
9535main ()
9536{
9537return main ();
9538  ;
9539  return 0;
9540}
9541_ACEOF
9542rm -f conftest.$ac_objext conftest$ac_exeext
9543if { (ac_try="$ac_link"
9544case "(($ac_try" in
9545  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9546  *) ac_try_echo=$ac_try;;
9547esac
9548eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9549  (eval "$ac_link") 2>conftest.er1
9550  ac_status=$?
9551  grep -v '^ *+' conftest.er1 >conftest.err
9552  rm -f conftest.er1
9553  cat conftest.err >&5
9554  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9555  (exit $ac_status); } && {
9556	 test -z "$ac_c_werror_flag" ||
9557	 test ! -s conftest.err
9558       } && test -s conftest$ac_exeext &&
9559       $as_test_x conftest$ac_exeext; then
9560  ac_cv_lib_pcap_main=yes
9561else
9562  echo "$as_me: failed program was:" >&5
9563sed 's/^/| /' conftest.$ac_ext >&5
9564
9565	ac_cv_lib_pcap_main=no
9566fi
9567
9568rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9569      conftest$ac_exeext conftest.$ac_ext
9570LIBS=$ac_check_lib_save_LIBS
9571fi
9572{ echo "$as_me:$LINENO: result: $ac_cv_lib_pcap_main" >&5
9573echo "${ECHO_T}$ac_cv_lib_pcap_main" >&6; }
9574if test $ac_cv_lib_pcap_main = yes; then
9575  libpcap="-lpcap"
9576fi
9577
9578		if test $libpcap = FAIL ; then
9579		    { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
9580echo "$as_me: error: see the INSTALL doc for more info" >&2;}
9581   { (exit 1); exit 1; }; }
9582		fi
9583																																								{ echo "$as_me:$LINENO: checking for extraneous pcap header directories" >&5
9584echo $ECHO_N "checking for extraneous pcap header directories... $ECHO_C" >&6; }
9585		if test \( ! -r /usr/local/include/pcap.h \) -a \
9586			\( ! -r /usr/include/pcap.h \); then
9587		    if test -r /usr/local/include/pcap/pcap.h; then
9588			d="/usr/local/include/pcap"
9589		    elif test -r /usr/include/pcap/pcap.h; then
9590			d="/usr/include/pcap"
9591		    fi
9592		fi
9593		if test -z "$d" ; then
9594		    { echo "$as_me:$LINENO: result: not found" >&5
9595echo "${ECHO_T}not found" >&6; }
9596		else
9597		    V_INCLS="-I$d $V_INCLS"
9598		    { echo "$as_me:$LINENO: result: found -- -I$d added" >&5
9599echo "${ECHO_T}found -- -I$d added" >&6; }
9600		fi
9601	    fi
9602    else
9603	    V_PCAPDEP=$libpcap
9604	    places=`ls $srcdir/.. | sed -e 's,/$,,' -e "s,^,$srcdir/../," | \
9605    	 		egrep '/libpcap-[0-9]*.[0-9]*(.[0-9]*)?([ab][0-9]*)?$'`
9606	    if test -r $d/pcap.h; then
9607		    V_INCLS="-I$d $V_INCLS"
9608	    elif test -r $places/pcap.h; then
9609		    V_INCLS="-I$places $V_INCLS"
9610	    else
9611                    { { echo "$as_me:$LINENO: error: cannot find pcap.h" >&5
9612echo "$as_me: error: cannot find pcap.h" >&2;}
9613   { (exit see INSTALL); exit see INSTALL; }; }
9614 	    fi
9615	    { echo "$as_me:$LINENO: result: $libpcap" >&5
9616echo "${ECHO_T}$libpcap" >&6; }
9617	    # Extract the first word of "pcap-config", so it can be a program name with args.
9618set dummy pcap-config; ac_word=$2
9619{ echo "$as_me:$LINENO: checking for $ac_word" >&5
9620echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9621if test "${ac_cv_path_PCAP_CONFIG+set}" = set; then
9622  echo $ECHO_N "(cached) $ECHO_C" >&6
9623else
9624  case $PCAP_CONFIG in
9625  [\\/]* | ?:[\\/]*)
9626  ac_cv_path_PCAP_CONFIG="$PCAP_CONFIG" # Let the user override the test with a path.
9627  ;;
9628  *)
9629  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9630for as_dir in $d
9631do
9632  IFS=$as_save_IFS
9633  test -z "$as_dir" && as_dir=.
9634  for ac_exec_ext in '' $ac_executable_extensions; do
9635  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9636    ac_cv_path_PCAP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9637    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9638    break 2
9639  fi
9640done
9641done
9642IFS=$as_save_IFS
9643
9644  ;;
9645esac
9646fi
9647PCAP_CONFIG=$ac_cv_path_PCAP_CONFIG
9648if test -n "$PCAP_CONFIG"; then
9649  { echo "$as_me:$LINENO: result: $PCAP_CONFIG" >&5
9650echo "${ECHO_T}$PCAP_CONFIG" >&6; }
9651else
9652  { echo "$as_me:$LINENO: result: no" >&5
9653echo "${ECHO_T}no" >&6; }
9654fi
9655
9656
9657	    if test -n "$PCAP_CONFIG"; then
9658		#
9659		# The libpcap directory has a pcap-config script.
9660		# Use it to get any additioal libraries needed
9661		# to link with the libpcap archive library in
9662		# that directory
9663		#
9664		libpcap="$libpcap `\"$PCAP_CONFIG\" --additional-libs --static`"
9665	    fi
9666    fi
9667    LIBS="$libpcap $LIBS"
9668    if ! test -n "$PCAP_CONFIG" ; then
9669	#
9670	# We don't have pcap-config; find out any additional link flags
9671	# we need.  (If we have pcap-config, we assume it tells us what
9672	# we need.)
9673	#
9674	case "$host_os" in
9675
9676	aix*)
9677	    #
9678	    # If libpcap is DLPI-based, we have to use /lib/pse.exp if
9679	    # present, as we use the STREAMS routines.
9680	    #
9681	    # (XXX - true only if we're linking with a static libpcap?)
9682	    #
9683	    pseexe="/lib/pse.exp"
9684	    { echo "$as_me:$LINENO: checking for $pseexe" >&5
9685echo $ECHO_N "checking for $pseexe... $ECHO_C" >&6; }
9686	    if test -f $pseexe ; then
9687		    { echo "$as_me:$LINENO: result: yes" >&5
9688echo "${ECHO_T}yes" >&6; }
9689		    LIBS="$LIBS -I:$pseexe"
9690	    fi
9691
9692	    #
9693	    # If libpcap is BPF-based, we need "-lodm" and "-lcfg", as
9694	    # we use them to load the BPF module.
9695	    #
9696	    # (XXX - true only if we're linking with a static libpcap?)
9697	    #
9698	    LIBS="$LIBS -lodm -lcfg"
9699	    ;;
9700	esac
9701    fi
9702
9703                        { echo "$as_me:$LINENO: checking for pcap_list_datalinks" >&5
9704echo $ECHO_N "checking for pcap_list_datalinks... $ECHO_C" >&6; }
9705if test "${ac_cv_func_pcap_list_datalinks+set}" = set; then
9706  echo $ECHO_N "(cached) $ECHO_C" >&6
9707else
9708  cat >conftest.$ac_ext <<_ACEOF
9709/* confdefs.h.  */
9710_ACEOF
9711cat confdefs.h >>conftest.$ac_ext
9712cat >>conftest.$ac_ext <<_ACEOF
9713/* end confdefs.h.  */
9714/* Define pcap_list_datalinks to an innocuous variant, in case <limits.h> declares pcap_list_datalinks.
9715   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9716#define pcap_list_datalinks innocuous_pcap_list_datalinks
9717
9718/* System header to define __stub macros and hopefully few prototypes,
9719    which can conflict with char pcap_list_datalinks (); below.
9720    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9721    <limits.h> exists even on freestanding compilers.  */
9722
9723#ifdef __STDC__
9724# include <limits.h>
9725#else
9726# include <assert.h>
9727#endif
9728
9729#undef pcap_list_datalinks
9730
9731/* Override any GCC internal prototype to avoid an error.
9732   Use char because int might match the return type of a GCC
9733   builtin and then its argument prototype would still apply.  */
9734#ifdef __cplusplus
9735extern "C"
9736#endif
9737char pcap_list_datalinks ();
9738/* The GNU C library defines this for functions which it implements
9739    to always fail with ENOSYS.  Some functions are actually named
9740    something starting with __ and the normal name is an alias.  */
9741#if defined __stub_pcap_list_datalinks || defined __stub___pcap_list_datalinks
9742choke me
9743#endif
9744
9745int
9746main ()
9747{
9748return pcap_list_datalinks ();
9749  ;
9750  return 0;
9751}
9752_ACEOF
9753rm -f conftest.$ac_objext conftest$ac_exeext
9754if { (ac_try="$ac_link"
9755case "(($ac_try" in
9756  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9757  *) ac_try_echo=$ac_try;;
9758esac
9759eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9760  (eval "$ac_link") 2>conftest.er1
9761  ac_status=$?
9762  grep -v '^ *+' conftest.er1 >conftest.err
9763  rm -f conftest.er1
9764  cat conftest.err >&5
9765  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9766  (exit $ac_status); } && {
9767	 test -z "$ac_c_werror_flag" ||
9768	 test ! -s conftest.err
9769       } && test -s conftest$ac_exeext &&
9770       $as_test_x conftest$ac_exeext; then
9771  ac_cv_func_pcap_list_datalinks=yes
9772else
9773  echo "$as_me: failed program was:" >&5
9774sed 's/^/| /' conftest.$ac_ext >&5
9775
9776	ac_cv_func_pcap_list_datalinks=no
9777fi
9778
9779rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9780      conftest$ac_exeext conftest.$ac_ext
9781fi
9782{ echo "$as_me:$LINENO: result: $ac_cv_func_pcap_list_datalinks" >&5
9783echo "${ECHO_T}$ac_cv_func_pcap_list_datalinks" >&6; }
9784if test $ac_cv_func_pcap_list_datalinks = yes; then
9785  cat >>confdefs.h <<\_ACEOF
9786#define HAVE_PCAP_LIST_DATALINKS 1
9787_ACEOF
9788
9789else
9790
9791	    case " $LIBOBJS " in
9792  *" datalinks.$ac_objext "* ) ;;
9793  *) LIBOBJS="$LIBOBJS datalinks.$ac_objext"
9794 ;;
9795esac
9796
9797
9798fi
9799
9800    { echo "$as_me:$LINENO: checking for pcap_set_datalink" >&5
9801echo $ECHO_N "checking for pcap_set_datalink... $ECHO_C" >&6; }
9802if test "${ac_cv_func_pcap_set_datalink+set}" = set; then
9803  echo $ECHO_N "(cached) $ECHO_C" >&6
9804else
9805  cat >conftest.$ac_ext <<_ACEOF
9806/* confdefs.h.  */
9807_ACEOF
9808cat confdefs.h >>conftest.$ac_ext
9809cat >>conftest.$ac_ext <<_ACEOF
9810/* end confdefs.h.  */
9811/* Define pcap_set_datalink to an innocuous variant, in case <limits.h> declares pcap_set_datalink.
9812   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9813#define pcap_set_datalink innocuous_pcap_set_datalink
9814
9815/* System header to define __stub macros and hopefully few prototypes,
9816    which can conflict with char pcap_set_datalink (); below.
9817    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9818    <limits.h> exists even on freestanding compilers.  */
9819
9820#ifdef __STDC__
9821# include <limits.h>
9822#else
9823# include <assert.h>
9824#endif
9825
9826#undef pcap_set_datalink
9827
9828/* Override any GCC internal prototype to avoid an error.
9829   Use char because int might match the return type of a GCC
9830   builtin and then its argument prototype would still apply.  */
9831#ifdef __cplusplus
9832extern "C"
9833#endif
9834char pcap_set_datalink ();
9835/* The GNU C library defines this for functions which it implements
9836    to always fail with ENOSYS.  Some functions are actually named
9837    something starting with __ and the normal name is an alias.  */
9838#if defined __stub_pcap_set_datalink || defined __stub___pcap_set_datalink
9839choke me
9840#endif
9841
9842int
9843main ()
9844{
9845return pcap_set_datalink ();
9846  ;
9847  return 0;
9848}
9849_ACEOF
9850rm -f conftest.$ac_objext conftest$ac_exeext
9851if { (ac_try="$ac_link"
9852case "(($ac_try" in
9853  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9854  *) ac_try_echo=$ac_try;;
9855esac
9856eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9857  (eval "$ac_link") 2>conftest.er1
9858  ac_status=$?
9859  grep -v '^ *+' conftest.er1 >conftest.err
9860  rm -f conftest.er1
9861  cat conftest.err >&5
9862  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9863  (exit $ac_status); } && {
9864	 test -z "$ac_c_werror_flag" ||
9865	 test ! -s conftest.err
9866       } && test -s conftest$ac_exeext &&
9867       $as_test_x conftest$ac_exeext; then
9868  ac_cv_func_pcap_set_datalink=yes
9869else
9870  echo "$as_me: failed program was:" >&5
9871sed 's/^/| /' conftest.$ac_ext >&5
9872
9873	ac_cv_func_pcap_set_datalink=no
9874fi
9875
9876rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9877      conftest$ac_exeext conftest.$ac_ext
9878fi
9879{ echo "$as_me:$LINENO: result: $ac_cv_func_pcap_set_datalink" >&5
9880echo "${ECHO_T}$ac_cv_func_pcap_set_datalink" >&6; }
9881if test $ac_cv_func_pcap_set_datalink = yes; then
9882  cat >>confdefs.h <<\_ACEOF
9883#define HAVE_PCAP_SET_DATALINK 1
9884_ACEOF
9885
9886fi
9887
9888    { echo "$as_me:$LINENO: checking for pcap_datalink_name_to_val" >&5
9889echo $ECHO_N "checking for pcap_datalink_name_to_val... $ECHO_C" >&6; }
9890if test "${ac_cv_func_pcap_datalink_name_to_val+set}" = set; then
9891  echo $ECHO_N "(cached) $ECHO_C" >&6
9892else
9893  cat >conftest.$ac_ext <<_ACEOF
9894/* confdefs.h.  */
9895_ACEOF
9896cat confdefs.h >>conftest.$ac_ext
9897cat >>conftest.$ac_ext <<_ACEOF
9898/* end confdefs.h.  */
9899/* Define pcap_datalink_name_to_val to an innocuous variant, in case <limits.h> declares pcap_datalink_name_to_val.
9900   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9901#define pcap_datalink_name_to_val innocuous_pcap_datalink_name_to_val
9902
9903/* System header to define __stub macros and hopefully few prototypes,
9904    which can conflict with char pcap_datalink_name_to_val (); below.
9905    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9906    <limits.h> exists even on freestanding compilers.  */
9907
9908#ifdef __STDC__
9909# include <limits.h>
9910#else
9911# include <assert.h>
9912#endif
9913
9914#undef pcap_datalink_name_to_val
9915
9916/* Override any GCC internal prototype to avoid an error.
9917   Use char because int might match the return type of a GCC
9918   builtin and then its argument prototype would still apply.  */
9919#ifdef __cplusplus
9920extern "C"
9921#endif
9922char pcap_datalink_name_to_val ();
9923/* The GNU C library defines this for functions which it implements
9924    to always fail with ENOSYS.  Some functions are actually named
9925    something starting with __ and the normal name is an alias.  */
9926#if defined __stub_pcap_datalink_name_to_val || defined __stub___pcap_datalink_name_to_val
9927choke me
9928#endif
9929
9930int
9931main ()
9932{
9933return pcap_datalink_name_to_val ();
9934  ;
9935  return 0;
9936}
9937_ACEOF
9938rm -f conftest.$ac_objext conftest$ac_exeext
9939if { (ac_try="$ac_link"
9940case "(($ac_try" in
9941  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9942  *) ac_try_echo=$ac_try;;
9943esac
9944eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9945  (eval "$ac_link") 2>conftest.er1
9946  ac_status=$?
9947  grep -v '^ *+' conftest.er1 >conftest.err
9948  rm -f conftest.er1
9949  cat conftest.err >&5
9950  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9951  (exit $ac_status); } && {
9952	 test -z "$ac_c_werror_flag" ||
9953	 test ! -s conftest.err
9954       } && test -s conftest$ac_exeext &&
9955       $as_test_x conftest$ac_exeext; then
9956  ac_cv_func_pcap_datalink_name_to_val=yes
9957else
9958  echo "$as_me: failed program was:" >&5
9959sed 's/^/| /' conftest.$ac_ext >&5
9960
9961	ac_cv_func_pcap_datalink_name_to_val=no
9962fi
9963
9964rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9965      conftest$ac_exeext conftest.$ac_ext
9966fi
9967{ echo "$as_me:$LINENO: result: $ac_cv_func_pcap_datalink_name_to_val" >&5
9968echo "${ECHO_T}$ac_cv_func_pcap_datalink_name_to_val" >&6; }
9969if test $ac_cv_func_pcap_datalink_name_to_val = yes; then
9970
9971	    cat >>confdefs.h <<\_ACEOF
9972#define HAVE_PCAP_DATALINK_NAME_TO_VAL 1
9973_ACEOF
9974
9975	    { echo "$as_me:$LINENO: checking for pcap_datalink_val_to_description" >&5
9976echo $ECHO_N "checking for pcap_datalink_val_to_description... $ECHO_C" >&6; }
9977if test "${ac_cv_func_pcap_datalink_val_to_description+set}" = set; then
9978  echo $ECHO_N "(cached) $ECHO_C" >&6
9979else
9980  cat >conftest.$ac_ext <<_ACEOF
9981/* confdefs.h.  */
9982_ACEOF
9983cat confdefs.h >>conftest.$ac_ext
9984cat >>conftest.$ac_ext <<_ACEOF
9985/* end confdefs.h.  */
9986/* Define pcap_datalink_val_to_description to an innocuous variant, in case <limits.h> declares pcap_datalink_val_to_description.
9987   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9988#define pcap_datalink_val_to_description innocuous_pcap_datalink_val_to_description
9989
9990/* System header to define __stub macros and hopefully few prototypes,
9991    which can conflict with char pcap_datalink_val_to_description (); below.
9992    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9993    <limits.h> exists even on freestanding compilers.  */
9994
9995#ifdef __STDC__
9996# include <limits.h>
9997#else
9998# include <assert.h>
9999#endif
10000
10001#undef pcap_datalink_val_to_description
10002
10003/* Override any GCC internal prototype to avoid an error.
10004   Use char because int might match the return type of a GCC
10005   builtin and then its argument prototype would still apply.  */
10006#ifdef __cplusplus
10007extern "C"
10008#endif
10009char pcap_datalink_val_to_description ();
10010/* The GNU C library defines this for functions which it implements
10011    to always fail with ENOSYS.  Some functions are actually named
10012    something starting with __ and the normal name is an alias.  */
10013#if defined __stub_pcap_datalink_val_to_description || defined __stub___pcap_datalink_val_to_description
10014choke me
10015#endif
10016
10017int
10018main ()
10019{
10020return pcap_datalink_val_to_description ();
10021  ;
10022  return 0;
10023}
10024_ACEOF
10025rm -f conftest.$ac_objext conftest$ac_exeext
10026if { (ac_try="$ac_link"
10027case "(($ac_try" in
10028  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10029  *) ac_try_echo=$ac_try;;
10030esac
10031eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10032  (eval "$ac_link") 2>conftest.er1
10033  ac_status=$?
10034  grep -v '^ *+' conftest.er1 >conftest.err
10035  rm -f conftest.er1
10036  cat conftest.err >&5
10037  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10038  (exit $ac_status); } && {
10039	 test -z "$ac_c_werror_flag" ||
10040	 test ! -s conftest.err
10041       } && test -s conftest$ac_exeext &&
10042       $as_test_x conftest$ac_exeext; then
10043  ac_cv_func_pcap_datalink_val_to_description=yes
10044else
10045  echo "$as_me: failed program was:" >&5
10046sed 's/^/| /' conftest.$ac_ext >&5
10047
10048	ac_cv_func_pcap_datalink_val_to_description=no
10049fi
10050
10051rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10052      conftest$ac_exeext conftest.$ac_ext
10053fi
10054{ echo "$as_me:$LINENO: result: $ac_cv_func_pcap_datalink_val_to_description" >&5
10055echo "${ECHO_T}$ac_cv_func_pcap_datalink_val_to_description" >&6; }
10056if test $ac_cv_func_pcap_datalink_val_to_description = yes; then
10057  cat >>confdefs.h <<\_ACEOF
10058#define HAVE_PCAP_DATALINK_VAL_TO_DESCRIPTION 1
10059_ACEOF
10060
10061else
10062
10063		    case " $LIBOBJS " in
10064  *" dlnames.$ac_objext "* ) ;;
10065  *) LIBOBJS="$LIBOBJS dlnames.$ac_objext"
10066 ;;
10067esac
10068
10069
10070fi
10071
10072
10073else
10074
10075	    case " $LIBOBJS " in
10076  *" dlnames.$ac_objext "* ) ;;
10077  *) LIBOBJS="$LIBOBJS dlnames.$ac_objext"
10078 ;;
10079esac
10080
10081
10082fi
10083
10084
10085
10086for ac_func in pcap_breakloop
10087do
10088as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10089{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10090echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10091if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10092  echo $ECHO_N "(cached) $ECHO_C" >&6
10093else
10094  cat >conftest.$ac_ext <<_ACEOF
10095/* confdefs.h.  */
10096_ACEOF
10097cat confdefs.h >>conftest.$ac_ext
10098cat >>conftest.$ac_ext <<_ACEOF
10099/* end confdefs.h.  */
10100/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10101   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10102#define $ac_func innocuous_$ac_func
10103
10104/* System header to define __stub macros and hopefully few prototypes,
10105    which can conflict with char $ac_func (); below.
10106    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10107    <limits.h> exists even on freestanding compilers.  */
10108
10109#ifdef __STDC__
10110# include <limits.h>
10111#else
10112# include <assert.h>
10113#endif
10114
10115#undef $ac_func
10116
10117/* Override any GCC internal prototype to avoid an error.
10118   Use char because int might match the return type of a GCC
10119   builtin and then its argument prototype would still apply.  */
10120#ifdef __cplusplus
10121extern "C"
10122#endif
10123char $ac_func ();
10124/* The GNU C library defines this for functions which it implements
10125    to always fail with ENOSYS.  Some functions are actually named
10126    something starting with __ and the normal name is an alias.  */
10127#if defined __stub_$ac_func || defined __stub___$ac_func
10128choke me
10129#endif
10130
10131int
10132main ()
10133{
10134return $ac_func ();
10135  ;
10136  return 0;
10137}
10138_ACEOF
10139rm -f conftest.$ac_objext conftest$ac_exeext
10140if { (ac_try="$ac_link"
10141case "(($ac_try" in
10142  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10143  *) ac_try_echo=$ac_try;;
10144esac
10145eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10146  (eval "$ac_link") 2>conftest.er1
10147  ac_status=$?
10148  grep -v '^ *+' conftest.er1 >conftest.err
10149  rm -f conftest.er1
10150  cat conftest.err >&5
10151  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10152  (exit $ac_status); } && {
10153	 test -z "$ac_c_werror_flag" ||
10154	 test ! -s conftest.err
10155       } && test -s conftest$ac_exeext &&
10156       $as_test_x conftest$ac_exeext; then
10157  eval "$as_ac_var=yes"
10158else
10159  echo "$as_me: failed program was:" >&5
10160sed 's/^/| /' conftest.$ac_ext >&5
10161
10162	eval "$as_ac_var=no"
10163fi
10164
10165rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10166      conftest$ac_exeext conftest.$ac_ext
10167fi
10168ac_res=`eval echo '${'$as_ac_var'}'`
10169	       { echo "$as_me:$LINENO: result: $ac_res" >&5
10170echo "${ECHO_T}$ac_res" >&6; }
10171if test `eval echo '${'$as_ac_var'}'` = yes; then
10172  cat >>confdefs.h <<_ACEOF
10173#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10174_ACEOF
10175
10176fi
10177done
10178
10179
10180                { echo "$as_me:$LINENO: checking for pcap_dump_ftell" >&5
10181echo $ECHO_N "checking for pcap_dump_ftell... $ECHO_C" >&6; }
10182if test "${ac_cv_func_pcap_dump_ftell+set}" = set; then
10183  echo $ECHO_N "(cached) $ECHO_C" >&6
10184else
10185  cat >conftest.$ac_ext <<_ACEOF
10186/* confdefs.h.  */
10187_ACEOF
10188cat confdefs.h >>conftest.$ac_ext
10189cat >>conftest.$ac_ext <<_ACEOF
10190/* end confdefs.h.  */
10191/* Define pcap_dump_ftell to an innocuous variant, in case <limits.h> declares pcap_dump_ftell.
10192   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10193#define pcap_dump_ftell innocuous_pcap_dump_ftell
10194
10195/* System header to define __stub macros and hopefully few prototypes,
10196    which can conflict with char pcap_dump_ftell (); below.
10197    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10198    <limits.h> exists even on freestanding compilers.  */
10199
10200#ifdef __STDC__
10201# include <limits.h>
10202#else
10203# include <assert.h>
10204#endif
10205
10206#undef pcap_dump_ftell
10207
10208/* Override any GCC internal prototype to avoid an error.
10209   Use char because int might match the return type of a GCC
10210   builtin and then its argument prototype would still apply.  */
10211#ifdef __cplusplus
10212extern "C"
10213#endif
10214char pcap_dump_ftell ();
10215/* The GNU C library defines this for functions which it implements
10216    to always fail with ENOSYS.  Some functions are actually named
10217    something starting with __ and the normal name is an alias.  */
10218#if defined __stub_pcap_dump_ftell || defined __stub___pcap_dump_ftell
10219choke me
10220#endif
10221
10222int
10223main ()
10224{
10225return pcap_dump_ftell ();
10226  ;
10227  return 0;
10228}
10229_ACEOF
10230rm -f conftest.$ac_objext conftest$ac_exeext
10231if { (ac_try="$ac_link"
10232case "(($ac_try" in
10233  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10234  *) ac_try_echo=$ac_try;;
10235esac
10236eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10237  (eval "$ac_link") 2>conftest.er1
10238  ac_status=$?
10239  grep -v '^ *+' conftest.er1 >conftest.err
10240  rm -f conftest.er1
10241  cat conftest.err >&5
10242  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10243  (exit $ac_status); } && {
10244	 test -z "$ac_c_werror_flag" ||
10245	 test ! -s conftest.err
10246       } && test -s conftest$ac_exeext &&
10247       $as_test_x conftest$ac_exeext; then
10248  ac_cv_func_pcap_dump_ftell=yes
10249else
10250  echo "$as_me: failed program was:" >&5
10251sed 's/^/| /' conftest.$ac_ext >&5
10252
10253	ac_cv_func_pcap_dump_ftell=no
10254fi
10255
10256rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10257      conftest$ac_exeext conftest.$ac_ext
10258fi
10259{ echo "$as_me:$LINENO: result: $ac_cv_func_pcap_dump_ftell" >&5
10260echo "${ECHO_T}$ac_cv_func_pcap_dump_ftell" >&6; }
10261if test $ac_cv_func_pcap_dump_ftell = yes; then
10262  cat >>confdefs.h <<\_ACEOF
10263#define HAVE_PCAP_DUMP_FTELL 1
10264_ACEOF
10265
10266else
10267
10268	    case " $LIBOBJS " in
10269  *" pcap_dump_ftell.$ac_objext "* ) ;;
10270  *) LIBOBJS="$LIBOBJS pcap_dump_ftell.$ac_objext"
10271 ;;
10272esac
10273
10274
10275fi
10276
10277
10278
10279#
10280# Check for these after AC_LBL_LIBPCAP, so we link with the appropriate
10281# libraries (e.g., "-lsocket -lnsl" on Solaris).
10282#
10283# We don't use AC_REPLACE_FUNCS because that uses AC_CHECK_FUNCS which
10284# use AC_CHECK_FUNC which doesn't let us specify the right #includes
10285# to make this work on BSD/OS 4.x.  BSD/OS 4.x ships with the BIND8
10286# resolver, and the way it defines inet_{ntop,pton} is rather strange;
10287# it does not ship with a libc symbol "inet_ntop()", it ships with
10288# "_inet_ntop()", and has a #define macro in one of the system headers
10289# to rename it.
10290#
10291{ echo "$as_me:$LINENO: checking for inet_ntop" >&5
10292echo $ECHO_N "checking for inet_ntop... $ECHO_C" >&6; }
10293cat >conftest.$ac_ext <<_ACEOF
10294/* confdefs.h.  */
10295_ACEOF
10296cat confdefs.h >>conftest.$ac_ext
10297cat >>conftest.$ac_ext <<_ACEOF
10298/* end confdefs.h.  */
10299#include <sys/types.h>
10300#include <sys/socket.h>
10301#include <netinet/in.h>
10302#include <arpa/inet.h>
10303int
10304main ()
10305{
10306char src[4], dst[128];
10307inet_ntop(AF_INET, src, dst, sizeof(dst));
10308  ;
10309  return 0;
10310}
10311_ACEOF
10312rm -f conftest.$ac_objext conftest$ac_exeext
10313if { (ac_try="$ac_link"
10314case "(($ac_try" in
10315  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10316  *) ac_try_echo=$ac_try;;
10317esac
10318eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10319  (eval "$ac_link") 2>conftest.er1
10320  ac_status=$?
10321  grep -v '^ *+' conftest.er1 >conftest.err
10322  rm -f conftest.er1
10323  cat conftest.err >&5
10324  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10325  (exit $ac_status); } && {
10326	 test -z "$ac_c_werror_flag" ||
10327	 test ! -s conftest.err
10328       } && test -s conftest$ac_exeext &&
10329       $as_test_x conftest$ac_exeext; then
10330  { echo "$as_me:$LINENO: result: yes" >&5
10331echo "${ECHO_T}yes" >&6; }
10332else
10333  echo "$as_me: failed program was:" >&5
10334sed 's/^/| /' conftest.$ac_ext >&5
10335
10336	{ echo "$as_me:$LINENO: result: no" >&5
10337echo "${ECHO_T}no" >&6; }
10338	case " $LIBOBJS " in
10339  *" inet_ntop.$ac_objext "* ) ;;
10340  *) LIBOBJS="$LIBOBJS inet_ntop.$ac_objext"
10341 ;;
10342esac
10343
10344fi
10345
10346rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10347      conftest$ac_exeext conftest.$ac_ext
10348{ echo "$as_me:$LINENO: checking for inet_pton" >&5
10349echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6; }
10350cat >conftest.$ac_ext <<_ACEOF
10351/* confdefs.h.  */
10352_ACEOF
10353cat confdefs.h >>conftest.$ac_ext
10354cat >>conftest.$ac_ext <<_ACEOF
10355/* end confdefs.h.  */
10356#include <sys/types.h>
10357#include <sys/socket.h>
10358#include <netinet/in.h>
10359#include <arpa/inet.h>
10360int
10361main ()
10362{
10363char src[128], dst[4];
10364inet_pton(AF_INET, src, dst);
10365  ;
10366  return 0;
10367}
10368_ACEOF
10369rm -f conftest.$ac_objext conftest$ac_exeext
10370if { (ac_try="$ac_link"
10371case "(($ac_try" in
10372  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10373  *) ac_try_echo=$ac_try;;
10374esac
10375eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10376  (eval "$ac_link") 2>conftest.er1
10377  ac_status=$?
10378  grep -v '^ *+' conftest.er1 >conftest.err
10379  rm -f conftest.er1
10380  cat conftest.err >&5
10381  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10382  (exit $ac_status); } && {
10383	 test -z "$ac_c_werror_flag" ||
10384	 test ! -s conftest.err
10385       } && test -s conftest$ac_exeext &&
10386       $as_test_x conftest$ac_exeext; then
10387  { echo "$as_me:$LINENO: result: yes" >&5
10388echo "${ECHO_T}yes" >&6; }
10389else
10390  echo "$as_me: failed program was:" >&5
10391sed 's/^/| /' conftest.$ac_ext >&5
10392
10393	{ echo "$as_me:$LINENO: result: no" >&5
10394echo "${ECHO_T}no" >&6; }
10395	case " $LIBOBJS " in
10396  *" inet_pton.$ac_objext "* ) ;;
10397  *) LIBOBJS="$LIBOBJS inet_pton.$ac_objext"
10398 ;;
10399esac
10400
10401fi
10402
10403rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10404      conftest$ac_exeext conftest.$ac_ext
10405{ echo "$as_me:$LINENO: checking for inet_aton" >&5
10406echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6; }
10407cat >conftest.$ac_ext <<_ACEOF
10408/* confdefs.h.  */
10409_ACEOF
10410cat confdefs.h >>conftest.$ac_ext
10411cat >>conftest.$ac_ext <<_ACEOF
10412/* end confdefs.h.  */
10413#include <sys/types.h>
10414#include <netinet/in.h>
10415#include <arpa/inet.h>
10416int
10417main ()
10418{
10419char src[128];
10420struct in_addr dst;
10421inet_aton(src, &dst);
10422  ;
10423  return 0;
10424}
10425_ACEOF
10426rm -f conftest.$ac_objext conftest$ac_exeext
10427if { (ac_try="$ac_link"
10428case "(($ac_try" in
10429  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10430  *) ac_try_echo=$ac_try;;
10431esac
10432eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10433  (eval "$ac_link") 2>conftest.er1
10434  ac_status=$?
10435  grep -v '^ *+' conftest.er1 >conftest.err
10436  rm -f conftest.er1
10437  cat conftest.err >&5
10438  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10439  (exit $ac_status); } && {
10440	 test -z "$ac_c_werror_flag" ||
10441	 test ! -s conftest.err
10442       } && test -s conftest$ac_exeext &&
10443       $as_test_x conftest$ac_exeext; then
10444  { echo "$as_me:$LINENO: result: yes" >&5
10445echo "${ECHO_T}yes" >&6; }
10446else
10447  echo "$as_me: failed program was:" >&5
10448sed 's/^/| /' conftest.$ac_ext >&5
10449
10450	{ echo "$as_me:$LINENO: result: no" >&5
10451echo "${ECHO_T}no" >&6; }
10452	case " $LIBOBJS " in
10453  *" inet_aton.$ac_objext "* ) ;;
10454  *) LIBOBJS="$LIBOBJS inet_aton.$ac_objext"
10455 ;;
10456esac
10457
10458fi
10459
10460rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10461      conftest$ac_exeext conftest.$ac_ext
10462
10463#
10464# Check for these after AC_LBL_LIBPCAP, for the same reason.
10465#
10466# You are in a twisty little maze of UN*Xes, all different.
10467# Some might not have ether_ntohost().
10468# Some might have it, but not declare it in any header file.
10469# Some might have it, but declare it in <netinet/if_ether.h>.
10470# Some might have it, but declare it in <netinet/ether.h>
10471# (And some might have it but document it as something declared in
10472# <netinet/ethernet.h>, although <netinet/if_ether.h> appears to work.)
10473#
10474# Before you is a C compiler.
10475#
10476
10477for ac_func in ether_ntohost
10478do
10479as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10480{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10481echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10482if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10483  echo $ECHO_N "(cached) $ECHO_C" >&6
10484else
10485  cat >conftest.$ac_ext <<_ACEOF
10486/* confdefs.h.  */
10487_ACEOF
10488cat confdefs.h >>conftest.$ac_ext
10489cat >>conftest.$ac_ext <<_ACEOF
10490/* end confdefs.h.  */
10491/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10492   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10493#define $ac_func innocuous_$ac_func
10494
10495/* System header to define __stub macros and hopefully few prototypes,
10496    which can conflict with char $ac_func (); below.
10497    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10498    <limits.h> exists even on freestanding compilers.  */
10499
10500#ifdef __STDC__
10501# include <limits.h>
10502#else
10503# include <assert.h>
10504#endif
10505
10506#undef $ac_func
10507
10508/* Override any GCC internal prototype to avoid an error.
10509   Use char because int might match the return type of a GCC
10510   builtin and then its argument prototype would still apply.  */
10511#ifdef __cplusplus
10512extern "C"
10513#endif
10514char $ac_func ();
10515/* The GNU C library defines this for functions which it implements
10516    to always fail with ENOSYS.  Some functions are actually named
10517    something starting with __ and the normal name is an alias.  */
10518#if defined __stub_$ac_func || defined __stub___$ac_func
10519choke me
10520#endif
10521
10522int
10523main ()
10524{
10525return $ac_func ();
10526  ;
10527  return 0;
10528}
10529_ACEOF
10530rm -f conftest.$ac_objext conftest$ac_exeext
10531if { (ac_try="$ac_link"
10532case "(($ac_try" in
10533  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10534  *) ac_try_echo=$ac_try;;
10535esac
10536eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10537  (eval "$ac_link") 2>conftest.er1
10538  ac_status=$?
10539  grep -v '^ *+' conftest.er1 >conftest.err
10540  rm -f conftest.er1
10541  cat conftest.err >&5
10542  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10543  (exit $ac_status); } && {
10544	 test -z "$ac_c_werror_flag" ||
10545	 test ! -s conftest.err
10546       } && test -s conftest$ac_exeext &&
10547       $as_test_x conftest$ac_exeext; then
10548  eval "$as_ac_var=yes"
10549else
10550  echo "$as_me: failed program was:" >&5
10551sed 's/^/| /' conftest.$ac_ext >&5
10552
10553	eval "$as_ac_var=no"
10554fi
10555
10556rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10557      conftest$ac_exeext conftest.$ac_ext
10558fi
10559ac_res=`eval echo '${'$as_ac_var'}'`
10560	       { echo "$as_me:$LINENO: result: $ac_res" >&5
10561echo "${ECHO_T}$ac_res" >&6; }
10562if test `eval echo '${'$as_ac_var'}'` = yes; then
10563  cat >>confdefs.h <<_ACEOF
10564#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10565_ACEOF
10566
10567    { echo "$as_me:$LINENO: checking for buggy ether_ntohost" >&5
10568echo $ECHO_N "checking for buggy ether_ntohost... $ECHO_C" >&6; }
10569if test "${ac_cv_buggy_ether_ntohost+set}" = set; then
10570  echo $ECHO_N "(cached) $ECHO_C" >&6
10571else
10572
10573	if test "$cross_compiling" = yes; then
10574  ac_cv_buggy_ether_ntohost="not while cross-compiling"
10575else
10576  cat >conftest.$ac_ext <<_ACEOF
10577/* confdefs.h.  */
10578_ACEOF
10579cat confdefs.h >>conftest.$ac_ext
10580cat >>conftest.$ac_ext <<_ACEOF
10581/* end confdefs.h.  */
10582
10583		#include <netdb.h>
10584		#include <sys/types.h>
10585		#include <sys/param.h>
10586		#include <sys/socket.h>
10587
10588		int
10589		main(int argc, char **argv)
10590		{
10591			u_char ea[6] = { 0xff, 0xff, 0xff, 0xff, 0xff };
10592			char name[MAXHOSTNAMELEN];
10593
10594			ether_ntohost(name, (struct ether_addr *)ea);
10595			exit(0);
10596		}
10597
10598_ACEOF
10599rm -f conftest$ac_exeext
10600if { (ac_try="$ac_link"
10601case "(($ac_try" in
10602  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10603  *) ac_try_echo=$ac_try;;
10604esac
10605eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10606  (eval "$ac_link") 2>&5
10607  ac_status=$?
10608  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10609  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10610  { (case "(($ac_try" in
10611  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10612  *) ac_try_echo=$ac_try;;
10613esac
10614eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10615  (eval "$ac_try") 2>&5
10616  ac_status=$?
10617  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10618  (exit $ac_status); }; }; then
10619  ac_cv_buggy_ether_ntohost=no
10620else
10621  echo "$as_me: program exited with status $ac_status" >&5
10622echo "$as_me: failed program was:" >&5
10623sed 's/^/| /' conftest.$ac_ext >&5
10624
10625( exit $ac_status )
10626ac_cv_buggy_ether_ntohost=yes
10627fi
10628rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10629fi
10630
10631
10632fi
10633{ echo "$as_me:$LINENO: result: $ac_cv_buggy_ether_ntohost" >&5
10634echo "${ECHO_T}$ac_cv_buggy_ether_ntohost" >&6; }
10635    if test "$ac_cv_buggy_ether_ntohost" = "no"; then
10636	cat >>confdefs.h <<\_ACEOF
10637#define USE_ETHER_NTOHOST 1
10638_ACEOF
10639
10640    fi
10641
10642fi
10643done
10644
10645if test "$ac_cv_func_ether_ntohost" = yes -a \
10646    "$ac_cv_buggy_ether_ntohost" = "no"; then
10647	#
10648	# OK, we have ether_ntohost().  Do we have <netinet/if_ether.h>?
10649	#
10650	if test "$ac_cv_header_netinet_if_ether_h" = yes; then
10651		#
10652		# Yes.  Does it declare ether_ntohost()?
10653		#
10654		{ echo "$as_me:$LINENO: checking whether ether_ntohost is declared" >&5
10655echo $ECHO_N "checking whether ether_ntohost is declared... $ECHO_C" >&6; }
10656if test "${ac_cv_have_decl_ether_ntohost+set}" = set; then
10657  echo $ECHO_N "(cached) $ECHO_C" >&6
10658else
10659  cat >conftest.$ac_ext <<_ACEOF
10660/* confdefs.h.  */
10661_ACEOF
10662cat confdefs.h >>conftest.$ac_ext
10663cat >>conftest.$ac_ext <<_ACEOF
10664/* end confdefs.h.  */
10665
10666#include <sys/types.h>
10667#include <sys/socket.h>
10668#include <netinet/in.h>
10669#include <arpa/inet.h>
10670struct mbuf;
10671struct rtentry;
10672#include <net/if.h>
10673#include <netinet/if_ether.h>
10674
10675
10676int
10677main ()
10678{
10679#ifndef ether_ntohost
10680  (void) ether_ntohost;
10681#endif
10682
10683  ;
10684  return 0;
10685}
10686_ACEOF
10687rm -f conftest.$ac_objext
10688if { (ac_try="$ac_compile"
10689case "(($ac_try" in
10690  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10691  *) ac_try_echo=$ac_try;;
10692esac
10693eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10694  (eval "$ac_compile") 2>conftest.er1
10695  ac_status=$?
10696  grep -v '^ *+' conftest.er1 >conftest.err
10697  rm -f conftest.er1
10698  cat conftest.err >&5
10699  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10700  (exit $ac_status); } && {
10701	 test -z "$ac_c_werror_flag" ||
10702	 test ! -s conftest.err
10703       } && test -s conftest.$ac_objext; then
10704  ac_cv_have_decl_ether_ntohost=yes
10705else
10706  echo "$as_me: failed program was:" >&5
10707sed 's/^/| /' conftest.$ac_ext >&5
10708
10709	ac_cv_have_decl_ether_ntohost=no
10710fi
10711
10712rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10713fi
10714{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_ether_ntohost" >&5
10715echo "${ECHO_T}$ac_cv_have_decl_ether_ntohost" >&6; }
10716if test $ac_cv_have_decl_ether_ntohost = yes; then
10717
10718
10719cat >>confdefs.h <<\_ACEOF
10720#define NETINET_IF_ETHER_H_DECLARES_ETHER_NTOHOST
10721_ACEOF
10722
10723
10724fi
10725
10726	fi
10727	#
10728	# Did that succeed?
10729	#
10730	if test "$ac_cv_have_decl_ether_ntohost" != yes; then
10731		#
10732		# No, how about <netinet/ether.h>, as on Linux?
10733		#
10734
10735for ac_header in netinet/ether.h
10736do
10737as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10738if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10739  { echo "$as_me:$LINENO: checking for $ac_header" >&5
10740echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10741if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10742  echo $ECHO_N "(cached) $ECHO_C" >&6
10743fi
10744ac_res=`eval echo '${'$as_ac_Header'}'`
10745	       { echo "$as_me:$LINENO: result: $ac_res" >&5
10746echo "${ECHO_T}$ac_res" >&6; }
10747else
10748  # Is the header compilable?
10749{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10750echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10751cat >conftest.$ac_ext <<_ACEOF
10752/* confdefs.h.  */
10753_ACEOF
10754cat confdefs.h >>conftest.$ac_ext
10755cat >>conftest.$ac_ext <<_ACEOF
10756/* end confdefs.h.  */
10757$ac_includes_default
10758#include <$ac_header>
10759_ACEOF
10760rm -f conftest.$ac_objext
10761if { (ac_try="$ac_compile"
10762case "(($ac_try" in
10763  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10764  *) ac_try_echo=$ac_try;;
10765esac
10766eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10767  (eval "$ac_compile") 2>conftest.er1
10768  ac_status=$?
10769  grep -v '^ *+' conftest.er1 >conftest.err
10770  rm -f conftest.er1
10771  cat conftest.err >&5
10772  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10773  (exit $ac_status); } && {
10774	 test -z "$ac_c_werror_flag" ||
10775	 test ! -s conftest.err
10776       } && test -s conftest.$ac_objext; then
10777  ac_header_compiler=yes
10778else
10779  echo "$as_me: failed program was:" >&5
10780sed 's/^/| /' conftest.$ac_ext >&5
10781
10782	ac_header_compiler=no
10783fi
10784
10785rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10786{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10787echo "${ECHO_T}$ac_header_compiler" >&6; }
10788
10789# Is the header present?
10790{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10791echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10792cat >conftest.$ac_ext <<_ACEOF
10793/* confdefs.h.  */
10794_ACEOF
10795cat confdefs.h >>conftest.$ac_ext
10796cat >>conftest.$ac_ext <<_ACEOF
10797/* end confdefs.h.  */
10798#include <$ac_header>
10799_ACEOF
10800if { (ac_try="$ac_cpp conftest.$ac_ext"
10801case "(($ac_try" in
10802  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10803  *) ac_try_echo=$ac_try;;
10804esac
10805eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10806  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10807  ac_status=$?
10808  grep -v '^ *+' conftest.er1 >conftest.err
10809  rm -f conftest.er1
10810  cat conftest.err >&5
10811  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10812  (exit $ac_status); } >/dev/null && {
10813	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10814	 test ! -s conftest.err
10815       }; then
10816  ac_header_preproc=yes
10817else
10818  echo "$as_me: failed program was:" >&5
10819sed 's/^/| /' conftest.$ac_ext >&5
10820
10821  ac_header_preproc=no
10822fi
10823
10824rm -f conftest.err conftest.$ac_ext
10825{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10826echo "${ECHO_T}$ac_header_preproc" >&6; }
10827
10828# So?  What about this header?
10829case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10830  yes:no: )
10831    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10832echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10833    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10834echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10835    ac_header_preproc=yes
10836    ;;
10837  no:yes:* )
10838    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10839echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10840    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10841echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10842    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10843echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10844    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10845echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10846    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10847echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10848    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10849echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10850
10851    ;;
10852esac
10853{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10854echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10855if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10856  echo $ECHO_N "(cached) $ECHO_C" >&6
10857else
10858  eval "$as_ac_Header=\$ac_header_preproc"
10859fi
10860ac_res=`eval echo '${'$as_ac_Header'}'`
10861	       { echo "$as_me:$LINENO: result: $ac_res" >&5
10862echo "${ECHO_T}$ac_res" >&6; }
10863
10864fi
10865if test `eval echo '${'$as_ac_Header'}'` = yes; then
10866  cat >>confdefs.h <<_ACEOF
10867#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10868_ACEOF
10869
10870fi
10871
10872done
10873
10874		if test "$ac_cv_header_netinet_ether_h" = yes; then
10875			#
10876			# We have it - does it declare ether_ntohost()?
10877			# Unset ac_cv_have_decl_ether_ntohost so we don't
10878			# treat the previous failure as a cached value and
10879			# suppress the next test.
10880			#
10881			unset ac_cv_have_decl_ether_ntohost
10882			{ echo "$as_me:$LINENO: checking whether ether_ntohost is declared" >&5
10883echo $ECHO_N "checking whether ether_ntohost is declared... $ECHO_C" >&6; }
10884if test "${ac_cv_have_decl_ether_ntohost+set}" = set; then
10885  echo $ECHO_N "(cached) $ECHO_C" >&6
10886else
10887  cat >conftest.$ac_ext <<_ACEOF
10888/* confdefs.h.  */
10889_ACEOF
10890cat confdefs.h >>conftest.$ac_ext
10891cat >>conftest.$ac_ext <<_ACEOF
10892/* end confdefs.h.  */
10893
10894#include <netinet/ether.h>
10895
10896
10897int
10898main ()
10899{
10900#ifndef ether_ntohost
10901  (void) ether_ntohost;
10902#endif
10903
10904  ;
10905  return 0;
10906}
10907_ACEOF
10908rm -f conftest.$ac_objext
10909if { (ac_try="$ac_compile"
10910case "(($ac_try" in
10911  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10912  *) ac_try_echo=$ac_try;;
10913esac
10914eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10915  (eval "$ac_compile") 2>conftest.er1
10916  ac_status=$?
10917  grep -v '^ *+' conftest.er1 >conftest.err
10918  rm -f conftest.er1
10919  cat conftest.err >&5
10920  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10921  (exit $ac_status); } && {
10922	 test -z "$ac_c_werror_flag" ||
10923	 test ! -s conftest.err
10924       } && test -s conftest.$ac_objext; then
10925  ac_cv_have_decl_ether_ntohost=yes
10926else
10927  echo "$as_me: failed program was:" >&5
10928sed 's/^/| /' conftest.$ac_ext >&5
10929
10930	ac_cv_have_decl_ether_ntohost=no
10931fi
10932
10933rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10934fi
10935{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_ether_ntohost" >&5
10936echo "${ECHO_T}$ac_cv_have_decl_ether_ntohost" >&6; }
10937if test $ac_cv_have_decl_ether_ntohost = yes; then
10938
10939
10940cat >>confdefs.h <<\_ACEOF
10941#define NETINET_ETHER_H_DECLARES_ETHER_NTOHOST
10942_ACEOF
10943
10944
10945fi
10946
10947		fi
10948	fi
10949	#
10950	# Is ether_ntohost() declared?
10951	#
10952	if test "$ac_cv_have_decl_ether_ntohost" != yes; then
10953		#
10954		# No, we'll have to declare it ourselves.
10955		# Do we have "struct ether_addr"?
10956		#
10957		{ echo "$as_me:$LINENO: checking for struct ether_addr" >&5
10958echo $ECHO_N "checking for struct ether_addr... $ECHO_C" >&6; }
10959if test "${ac_cv_type_struct_ether_addr+set}" = set; then
10960  echo $ECHO_N "(cached) $ECHO_C" >&6
10961else
10962  cat >conftest.$ac_ext <<_ACEOF
10963/* confdefs.h.  */
10964_ACEOF
10965cat confdefs.h >>conftest.$ac_ext
10966cat >>conftest.$ac_ext <<_ACEOF
10967/* end confdefs.h.  */
10968
10969#include <sys/types.h>
10970#include <sys/socket.h>
10971#include <netinet/in.h>
10972#include <arpa/inet.h>
10973struct mbuf;
10974struct rtentry;
10975#include <net/if.h>
10976#include <netinet/if_ether.h>
10977
10978
10979typedef struct ether_addr ac__type_new_;
10980int
10981main ()
10982{
10983if ((ac__type_new_ *) 0)
10984  return 0;
10985if (sizeof (ac__type_new_))
10986  return 0;
10987  ;
10988  return 0;
10989}
10990_ACEOF
10991rm -f conftest.$ac_objext
10992if { (ac_try="$ac_compile"
10993case "(($ac_try" in
10994  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10995  *) ac_try_echo=$ac_try;;
10996esac
10997eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10998  (eval "$ac_compile") 2>conftest.er1
10999  ac_status=$?
11000  grep -v '^ *+' conftest.er1 >conftest.err
11001  rm -f conftest.er1
11002  cat conftest.err >&5
11003  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11004  (exit $ac_status); } && {
11005	 test -z "$ac_c_werror_flag" ||
11006	 test ! -s conftest.err
11007       } && test -s conftest.$ac_objext; then
11008  ac_cv_type_struct_ether_addr=yes
11009else
11010  echo "$as_me: failed program was:" >&5
11011sed 's/^/| /' conftest.$ac_ext >&5
11012
11013	ac_cv_type_struct_ether_addr=no
11014fi
11015
11016rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11017fi
11018{ echo "$as_me:$LINENO: result: $ac_cv_type_struct_ether_addr" >&5
11019echo "${ECHO_T}$ac_cv_type_struct_ether_addr" >&6; }
11020if test $ac_cv_type_struct_ether_addr = yes; then
11021
11022cat >>confdefs.h <<_ACEOF
11023#define HAVE_STRUCT_ETHER_ADDR 1
11024_ACEOF
11025
11026
11027fi
11028
11029
11030cat >>confdefs.h <<\_ACEOF
11031#define HAVE_DECL_ETHER_NTOHOST 0
11032_ACEOF
11033
11034	else
11035
11036cat >>confdefs.h <<\_ACEOF
11037#define HAVE_DECL_ETHER_NTOHOST 1
11038_ACEOF
11039
11040	fi
11041fi
11042
11043# libdlpi is needed for Solaris 11 and later.
11044{ echo "$as_me:$LINENO: checking for dlpi_walk in -ldlpi" >&5
11045echo $ECHO_N "checking for dlpi_walk in -ldlpi... $ECHO_C" >&6; }
11046if test "${ac_cv_lib_dlpi_dlpi_walk+set}" = set; then
11047  echo $ECHO_N "(cached) $ECHO_C" >&6
11048else
11049  ac_check_lib_save_LIBS=$LIBS
11050LIBS="-ldlpi -L/lib $LIBS"
11051cat >conftest.$ac_ext <<_ACEOF
11052/* confdefs.h.  */
11053_ACEOF
11054cat confdefs.h >>conftest.$ac_ext
11055cat >>conftest.$ac_ext <<_ACEOF
11056/* end confdefs.h.  */
11057
11058/* Override any GCC internal prototype to avoid an error.
11059   Use char because int might match the return type of a GCC
11060   builtin and then its argument prototype would still apply.  */
11061#ifdef __cplusplus
11062extern "C"
11063#endif
11064char dlpi_walk ();
11065int
11066main ()
11067{
11068return dlpi_walk ();
11069  ;
11070  return 0;
11071}
11072_ACEOF
11073rm -f conftest.$ac_objext conftest$ac_exeext
11074if { (ac_try="$ac_link"
11075case "(($ac_try" in
11076  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11077  *) ac_try_echo=$ac_try;;
11078esac
11079eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11080  (eval "$ac_link") 2>conftest.er1
11081  ac_status=$?
11082  grep -v '^ *+' conftest.er1 >conftest.err
11083  rm -f conftest.er1
11084  cat conftest.err >&5
11085  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11086  (exit $ac_status); } && {
11087	 test -z "$ac_c_werror_flag" ||
11088	 test ! -s conftest.err
11089       } && test -s conftest$ac_exeext &&
11090       $as_test_x conftest$ac_exeext; then
11091  ac_cv_lib_dlpi_dlpi_walk=yes
11092else
11093  echo "$as_me: failed program was:" >&5
11094sed 's/^/| /' conftest.$ac_ext >&5
11095
11096	ac_cv_lib_dlpi_dlpi_walk=no
11097fi
11098
11099rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11100      conftest$ac_exeext conftest.$ac_ext
11101LIBS=$ac_check_lib_save_LIBS
11102fi
11103{ echo "$as_me:$LINENO: result: $ac_cv_lib_dlpi_dlpi_walk" >&5
11104echo "${ECHO_T}$ac_cv_lib_dlpi_dlpi_walk" >&6; }
11105if test $ac_cv_lib_dlpi_dlpi_walk = yes; then
11106  LIBS="$LIBS -ldlpi" LDFLAGS="-L/lib $LDFLAGS"
11107fi
11108
11109
11110
11111	{ echo "$as_me:$LINENO: checking if sockaddr struct has sa_len member" >&5
11112echo $ECHO_N "checking if sockaddr struct has sa_len member... $ECHO_C" >&6; }
11113	if test "${ac_cv_sockaddr_has_sa_len+set}" = set; then
11114  echo $ECHO_N "(cached) $ECHO_C" >&6
11115else
11116  cat >conftest.$ac_ext <<_ACEOF
11117/* confdefs.h.  */
11118_ACEOF
11119cat confdefs.h >>conftest.$ac_ext
11120cat >>conftest.$ac_ext <<_ACEOF
11121/* end confdefs.h.  */
11122
11123#		include <sys/types.h>
11124#		include <sys/socket.h>
11125int
11126main ()
11127{
11128u_int i = sizeof(((struct sockaddr *)0)->sa_len)
11129  ;
11130  return 0;
11131}
11132_ACEOF
11133rm -f conftest.$ac_objext
11134if { (ac_try="$ac_compile"
11135case "(($ac_try" in
11136  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11137  *) ac_try_echo=$ac_try;;
11138esac
11139eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11140  (eval "$ac_compile") 2>conftest.er1
11141  ac_status=$?
11142  grep -v '^ *+' conftest.er1 >conftest.err
11143  rm -f conftest.er1
11144  cat conftest.err >&5
11145  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11146  (exit $ac_status); } && {
11147	 test -z "$ac_c_werror_flag" ||
11148	 test ! -s conftest.err
11149       } && test -s conftest.$ac_objext; then
11150  ac_cv_sockaddr_has_sa_len=yes
11151else
11152  echo "$as_me: failed program was:" >&5
11153sed 's/^/| /' conftest.$ac_ext >&5
11154
11155	ac_cv_sockaddr_has_sa_len=no
11156fi
11157
11158rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11159fi
11160
11161	{ echo "$as_me:$LINENO: result: $ac_cv_sockaddr_has_sa_len" >&5
11162echo "${ECHO_T}$ac_cv_sockaddr_has_sa_len" >&6; }
11163		if test $ac_cv_sockaddr_has_sa_len = yes ; then
11164			cat >>confdefs.h <<\_ACEOF
11165#define HAVE_SOCKADDR_SA_LEN 1
11166_ACEOF
11167
11168	fi
11169
11170if test "$ac_cv_sockaddr_has_sa_len" = no; then
11171	missing_includes=yes
11172fi
11173
11174#
11175# Do we have the new open API?  Check for pcap_create, and assume that,
11176# if we do, we also have pcap_activate() and the other new routines.
11177
11178for ac_func in pcap_create
11179do
11180as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11181{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11182echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11183if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11184  echo $ECHO_N "(cached) $ECHO_C" >&6
11185else
11186  cat >conftest.$ac_ext <<_ACEOF
11187/* confdefs.h.  */
11188_ACEOF
11189cat confdefs.h >>conftest.$ac_ext
11190cat >>conftest.$ac_ext <<_ACEOF
11191/* end confdefs.h.  */
11192/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11193   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11194#define $ac_func innocuous_$ac_func
11195
11196/* System header to define __stub macros and hopefully few prototypes,
11197    which can conflict with char $ac_func (); below.
11198    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11199    <limits.h> exists even on freestanding compilers.  */
11200
11201#ifdef __STDC__
11202# include <limits.h>
11203#else
11204# include <assert.h>
11205#endif
11206
11207#undef $ac_func
11208
11209/* Override any GCC internal prototype to avoid an error.
11210   Use char because int might match the return type of a GCC
11211   builtin and then its argument prototype would still apply.  */
11212#ifdef __cplusplus
11213extern "C"
11214#endif
11215char $ac_func ();
11216/* The GNU C library defines this for functions which it implements
11217    to always fail with ENOSYS.  Some functions are actually named
11218    something starting with __ and the normal name is an alias.  */
11219#if defined __stub_$ac_func || defined __stub___$ac_func
11220choke me
11221#endif
11222
11223int
11224main ()
11225{
11226return $ac_func ();
11227  ;
11228  return 0;
11229}
11230_ACEOF
11231rm -f conftest.$ac_objext conftest$ac_exeext
11232if { (ac_try="$ac_link"
11233case "(($ac_try" in
11234  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11235  *) ac_try_echo=$ac_try;;
11236esac
11237eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11238  (eval "$ac_link") 2>conftest.er1
11239  ac_status=$?
11240  grep -v '^ *+' conftest.er1 >conftest.err
11241  rm -f conftest.er1
11242  cat conftest.err >&5
11243  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11244  (exit $ac_status); } && {
11245	 test -z "$ac_c_werror_flag" ||
11246	 test ! -s conftest.err
11247       } && test -s conftest$ac_exeext &&
11248       $as_test_x conftest$ac_exeext; then
11249  eval "$as_ac_var=yes"
11250else
11251  echo "$as_me: failed program was:" >&5
11252sed 's/^/| /' conftest.$ac_ext >&5
11253
11254	eval "$as_ac_var=no"
11255fi
11256
11257rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11258      conftest$ac_exeext conftest.$ac_ext
11259fi
11260ac_res=`eval echo '${'$as_ac_var'}'`
11261	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11262echo "${ECHO_T}$ac_res" >&6; }
11263if test `eval echo '${'$as_ac_var'}'` = yes; then
11264  cat >>confdefs.h <<_ACEOF
11265#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11266_ACEOF
11267
11268fi
11269done
11270
11271
11272
11273
11274
11275for ac_func in pcap_findalldevs pcap_dump_flush pcap_lib_version
11276do
11277as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11278{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11279echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11280if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11281  echo $ECHO_N "(cached) $ECHO_C" >&6
11282else
11283  cat >conftest.$ac_ext <<_ACEOF
11284/* confdefs.h.  */
11285_ACEOF
11286cat confdefs.h >>conftest.$ac_ext
11287cat >>conftest.$ac_ext <<_ACEOF
11288/* end confdefs.h.  */
11289/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11290   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11291#define $ac_func innocuous_$ac_func
11292
11293/* System header to define __stub macros and hopefully few prototypes,
11294    which can conflict with char $ac_func (); below.
11295    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11296    <limits.h> exists even on freestanding compilers.  */
11297
11298#ifdef __STDC__
11299# include <limits.h>
11300#else
11301# include <assert.h>
11302#endif
11303
11304#undef $ac_func
11305
11306/* Override any GCC internal prototype to avoid an error.
11307   Use char because int might match the return type of a GCC
11308   builtin and then its argument prototype would still apply.  */
11309#ifdef __cplusplus
11310extern "C"
11311#endif
11312char $ac_func ();
11313/* The GNU C library defines this for functions which it implements
11314    to always fail with ENOSYS.  Some functions are actually named
11315    something starting with __ and the normal name is an alias.  */
11316#if defined __stub_$ac_func || defined __stub___$ac_func
11317choke me
11318#endif
11319
11320int
11321main ()
11322{
11323return $ac_func ();
11324  ;
11325  return 0;
11326}
11327_ACEOF
11328rm -f conftest.$ac_objext conftest$ac_exeext
11329if { (ac_try="$ac_link"
11330case "(($ac_try" in
11331  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11332  *) ac_try_echo=$ac_try;;
11333esac
11334eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11335  (eval "$ac_link") 2>conftest.er1
11336  ac_status=$?
11337  grep -v '^ *+' conftest.er1 >conftest.err
11338  rm -f conftest.er1
11339  cat conftest.err >&5
11340  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11341  (exit $ac_status); } && {
11342	 test -z "$ac_c_werror_flag" ||
11343	 test ! -s conftest.err
11344       } && test -s conftest$ac_exeext &&
11345       $as_test_x conftest$ac_exeext; then
11346  eval "$as_ac_var=yes"
11347else
11348  echo "$as_me: failed program was:" >&5
11349sed 's/^/| /' conftest.$ac_ext >&5
11350
11351	eval "$as_ac_var=no"
11352fi
11353
11354rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11355      conftest$ac_exeext conftest.$ac_ext
11356fi
11357ac_res=`eval echo '${'$as_ac_var'}'`
11358	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11359echo "${ECHO_T}$ac_res" >&6; }
11360if test `eval echo '${'$as_ac_var'}'` = yes; then
11361  cat >>confdefs.h <<_ACEOF
11362#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11363_ACEOF
11364
11365fi
11366done
11367
11368if test $ac_cv_func_pcap_findalldevs = "yes" ; then
11369    savedppflags="$CPPLAGS"
11370    CPPFLAGS="$CPPFLAGS $V_INCLS"
11371    { echo "$as_me:$LINENO: checking for pcap_if_t" >&5
11372echo $ECHO_N "checking for pcap_if_t... $ECHO_C" >&6; }
11373if test "${ac_cv_type_pcap_if_t+set}" = set; then
11374  echo $ECHO_N "(cached) $ECHO_C" >&6
11375else
11376  cat >conftest.$ac_ext <<_ACEOF
11377/* confdefs.h.  */
11378_ACEOF
11379cat confdefs.h >>conftest.$ac_ext
11380cat >>conftest.$ac_ext <<_ACEOF
11381/* end confdefs.h.  */
11382#include <pcap.h>
11383
11384typedef pcap_if_t ac__type_new_;
11385int
11386main ()
11387{
11388if ((ac__type_new_ *) 0)
11389  return 0;
11390if (sizeof (ac__type_new_))
11391  return 0;
11392  ;
11393  return 0;
11394}
11395_ACEOF
11396rm -f conftest.$ac_objext
11397if { (ac_try="$ac_compile"
11398case "(($ac_try" in
11399  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11400  *) ac_try_echo=$ac_try;;
11401esac
11402eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11403  (eval "$ac_compile") 2>conftest.er1
11404  ac_status=$?
11405  grep -v '^ *+' conftest.er1 >conftest.err
11406  rm -f conftest.er1
11407  cat conftest.err >&5
11408  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11409  (exit $ac_status); } && {
11410	 test -z "$ac_c_werror_flag" ||
11411	 test ! -s conftest.err
11412       } && test -s conftest.$ac_objext; then
11413  ac_cv_type_pcap_if_t=yes
11414else
11415  echo "$as_me: failed program was:" >&5
11416sed 's/^/| /' conftest.$ac_ext >&5
11417
11418	ac_cv_type_pcap_if_t=no
11419fi
11420
11421rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11422fi
11423{ echo "$as_me:$LINENO: result: $ac_cv_type_pcap_if_t" >&5
11424echo "${ECHO_T}$ac_cv_type_pcap_if_t" >&6; }
11425if test $ac_cv_type_pcap_if_t = yes; then
11426
11427cat >>confdefs.h <<_ACEOF
11428#define HAVE_PCAP_IF_T 1
11429_ACEOF
11430
11431
11432fi
11433
11434    CPPFLAGS="$savedcppflags"
11435fi
11436
11437if test $ac_cv_func_pcap_lib_version = "no" ; then
11438    { echo "$as_me:$LINENO: checking whether pcap_version is defined by libpcap" >&5
11439echo $ECHO_N "checking whether pcap_version is defined by libpcap... $ECHO_C" >&6; }
11440    cat >conftest.$ac_ext <<_ACEOF
11441/* confdefs.h.  */
11442_ACEOF
11443cat confdefs.h >>conftest.$ac_ext
11444cat >>conftest.$ac_ext <<_ACEOF
11445/* end confdefs.h.  */
11446
11447int
11448main ()
11449{
11450
11451	extern char pcap_version[];
11452
11453	return (int)pcap_version;
11454
11455  ;
11456  return 0;
11457}
11458_ACEOF
11459rm -f conftest.$ac_objext conftest$ac_exeext
11460if { (ac_try="$ac_link"
11461case "(($ac_try" in
11462  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11463  *) ac_try_echo=$ac_try;;
11464esac
11465eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11466  (eval "$ac_link") 2>conftest.er1
11467  ac_status=$?
11468  grep -v '^ *+' conftest.er1 >conftest.err
11469  rm -f conftest.er1
11470  cat conftest.err >&5
11471  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11472  (exit $ac_status); } && {
11473	 test -z "$ac_c_werror_flag" ||
11474	 test ! -s conftest.err
11475       } && test -s conftest$ac_exeext &&
11476       $as_test_x conftest$ac_exeext; then
11477  ac_lbl_cv_pcap_version_defined=yes
11478else
11479  echo "$as_me: failed program was:" >&5
11480sed 's/^/| /' conftest.$ac_ext >&5
11481
11482	ac_lbl_cv_pcap_version_defined=no
11483fi
11484
11485rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11486      conftest$ac_exeext conftest.$ac_ext
11487    if test "$ac_lbl_cv_pcap_version_defined" = yes ; then
11488    	{ echo "$as_me:$LINENO: result: yes" >&5
11489echo "${ECHO_T}yes" >&6; }
11490	cat >>confdefs.h <<\_ACEOF
11491#define HAVE_PCAP_VERSION 1
11492_ACEOF
11493
11494    else
11495	{ echo "$as_me:$LINENO: result: no" >&5
11496echo "${ECHO_T}no" >&6; }
11497    fi
11498fi
11499{ echo "$as_me:$LINENO: checking whether pcap_debug is defined by libpcap" >&5
11500echo $ECHO_N "checking whether pcap_debug is defined by libpcap... $ECHO_C" >&6; }
11501cat >conftest.$ac_ext <<_ACEOF
11502/* confdefs.h.  */
11503_ACEOF
11504cat confdefs.h >>conftest.$ac_ext
11505cat >>conftest.$ac_ext <<_ACEOF
11506/* end confdefs.h.  */
11507
11508int
11509main ()
11510{
11511
11512	extern int pcap_debug;
11513
11514	return pcap_debug;
11515
11516  ;
11517  return 0;
11518}
11519_ACEOF
11520rm -f conftest.$ac_objext conftest$ac_exeext
11521if { (ac_try="$ac_link"
11522case "(($ac_try" in
11523  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11524  *) ac_try_echo=$ac_try;;
11525esac
11526eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11527  (eval "$ac_link") 2>conftest.er1
11528  ac_status=$?
11529  grep -v '^ *+' conftest.er1 >conftest.err
11530  rm -f conftest.er1
11531  cat conftest.err >&5
11532  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11533  (exit $ac_status); } && {
11534	 test -z "$ac_c_werror_flag" ||
11535	 test ! -s conftest.err
11536       } && test -s conftest$ac_exeext &&
11537       $as_test_x conftest$ac_exeext; then
11538  ac_lbl_cv_pcap_debug_defined=yes
11539else
11540  echo "$as_me: failed program was:" >&5
11541sed 's/^/| /' conftest.$ac_ext >&5
11542
11543	ac_lbl_cv_pcap_debug_defined=no
11544fi
11545
11546rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11547      conftest$ac_exeext conftest.$ac_ext
11548if test "$ac_lbl_cv_pcap_debug_defined" = yes ; then
11549	{ echo "$as_me:$LINENO: result: yes" >&5
11550echo "${ECHO_T}yes" >&6; }
11551	cat >>confdefs.h <<\_ACEOF
11552#define HAVE_PCAP_DEBUG 1
11553_ACEOF
11554
11555else
11556	{ echo "$as_me:$LINENO: result: no" >&5
11557echo "${ECHO_T}no" >&6; }
11558	#
11559	# OK, what about "yydebug"?
11560	#
11561	{ echo "$as_me:$LINENO: checking whether yydebug is defined by libpcap" >&5
11562echo $ECHO_N "checking whether yydebug is defined by libpcap... $ECHO_C" >&6; }
11563	cat >conftest.$ac_ext <<_ACEOF
11564/* confdefs.h.  */
11565_ACEOF
11566cat confdefs.h >>conftest.$ac_ext
11567cat >>conftest.$ac_ext <<_ACEOF
11568/* end confdefs.h.  */
11569
11570int
11571main ()
11572{
11573
11574		extern int yydebug;
11575
11576		return yydebug;
11577
11578  ;
11579  return 0;
11580}
11581_ACEOF
11582rm -f conftest.$ac_objext conftest$ac_exeext
11583if { (ac_try="$ac_link"
11584case "(($ac_try" in
11585  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11586  *) ac_try_echo=$ac_try;;
11587esac
11588eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11589  (eval "$ac_link") 2>conftest.er1
11590  ac_status=$?
11591  grep -v '^ *+' conftest.er1 >conftest.err
11592  rm -f conftest.er1
11593  cat conftest.err >&5
11594  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11595  (exit $ac_status); } && {
11596	 test -z "$ac_c_werror_flag" ||
11597	 test ! -s conftest.err
11598       } && test -s conftest$ac_exeext &&
11599       $as_test_x conftest$ac_exeext; then
11600  ac_lbl_cv_yydebug_defined=yes
11601else
11602  echo "$as_me: failed program was:" >&5
11603sed 's/^/| /' conftest.$ac_ext >&5
11604
11605	ac_lbl_cv_yydebug_defined=no
11606fi
11607
11608rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11609      conftest$ac_exeext conftest.$ac_ext
11610	if test "$ac_lbl_cv_yydebug_defined" = yes ; then
11611		{ echo "$as_me:$LINENO: result: yes" >&5
11612echo "${ECHO_T}yes" >&6; }
11613		cat >>confdefs.h <<\_ACEOF
11614#define HAVE_YYDEBUG 1
11615_ACEOF
11616
11617	else
11618		{ echo "$as_me:$LINENO: result: no" >&5
11619echo "${ECHO_T}no" >&6; }
11620	fi
11621fi
11622
11623for ac_func in bpf_dump
11624do
11625as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11626{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11627echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11628if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11629  echo $ECHO_N "(cached) $ECHO_C" >&6
11630else
11631  cat >conftest.$ac_ext <<_ACEOF
11632/* confdefs.h.  */
11633_ACEOF
11634cat confdefs.h >>conftest.$ac_ext
11635cat >>conftest.$ac_ext <<_ACEOF
11636/* end confdefs.h.  */
11637/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11638   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11639#define $ac_func innocuous_$ac_func
11640
11641/* System header to define __stub macros and hopefully few prototypes,
11642    which can conflict with char $ac_func (); below.
11643    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11644    <limits.h> exists even on freestanding compilers.  */
11645
11646#ifdef __STDC__
11647# include <limits.h>
11648#else
11649# include <assert.h>
11650#endif
11651
11652#undef $ac_func
11653
11654/* Override any GCC internal prototype to avoid an error.
11655   Use char because int might match the return type of a GCC
11656   builtin and then its argument prototype would still apply.  */
11657#ifdef __cplusplus
11658extern "C"
11659#endif
11660char $ac_func ();
11661/* The GNU C library defines this for functions which it implements
11662    to always fail with ENOSYS.  Some functions are actually named
11663    something starting with __ and the normal name is an alias.  */
11664#if defined __stub_$ac_func || defined __stub___$ac_func
11665choke me
11666#endif
11667
11668int
11669main ()
11670{
11671return $ac_func ();
11672  ;
11673  return 0;
11674}
11675_ACEOF
11676rm -f conftest.$ac_objext conftest$ac_exeext
11677if { (ac_try="$ac_link"
11678case "(($ac_try" in
11679  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11680  *) ac_try_echo=$ac_try;;
11681esac
11682eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11683  (eval "$ac_link") 2>conftest.er1
11684  ac_status=$?
11685  grep -v '^ *+' conftest.er1 >conftest.err
11686  rm -f conftest.er1
11687  cat conftest.err >&5
11688  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11689  (exit $ac_status); } && {
11690	 test -z "$ac_c_werror_flag" ||
11691	 test ! -s conftest.err
11692       } && test -s conftest$ac_exeext &&
11693       $as_test_x conftest$ac_exeext; then
11694  eval "$as_ac_var=yes"
11695else
11696  echo "$as_me: failed program was:" >&5
11697sed 's/^/| /' conftest.$ac_ext >&5
11698
11699	eval "$as_ac_var=no"
11700fi
11701
11702rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11703      conftest$ac_exeext conftest.$ac_ext
11704fi
11705ac_res=`eval echo '${'$as_ac_var'}'`
11706	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11707echo "${ECHO_T}$ac_res" >&6; }
11708if test `eval echo '${'$as_ac_var'}'` = yes; then
11709  cat >>confdefs.h <<_ACEOF
11710#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11711_ACEOF
11712
11713else
11714  case " $LIBOBJS " in
11715  *" $ac_func.$ac_objext "* ) ;;
11716  *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
11717 ;;
11718esac
11719
11720fi
11721done
11722
11723
11724V_GROUP=0
11725if test -f /etc/group -a ! -z "`grep '^wheel:' /etc/group`" ; then
11726	V_GROUP=wheel
11727fi
11728#
11729# Assume V7/BSD convention for man pages (file formats in section 5,
11730# miscellaneous info in section 7).
11731#
11732MAN_FILE_FORMATS=5
11733MAN_MISC_INFO=7
11734case "$host_os" in
11735
11736aix*)
11737		cat >>confdefs.h <<\_ACEOF
11738#define _SUN 1
11739_ACEOF
11740
11741	;;
11742
11743hpux*)
11744	#
11745	# Use System V conventions for man pages.
11746	#
11747	MAN_FILE_FORMATS=4
11748	MAN_MISC_INFO=5
11749	;;
11750
11751irix*)
11752	V_GROUP=sys
11753
11754	#
11755	# Use System V conventions for man pages.
11756	#
11757	MAN_FILE_FORMATS=4
11758	MAN_MISC_INFO=5
11759	;;
11760
11761osf*)
11762	V_GROUP=system
11763
11764	#
11765	# Use System V conventions for man pages.
11766	#
11767	MAN_FILE_FORMATS=4
11768	MAN_MISC_INFO=5
11769	;;
11770
11771solaris*)
11772	V_GROUP=sys
11773
11774	#
11775	# Use System V conventions for man pages.
11776	#
11777	MAN_FILE_FORMATS=4
11778	MAN_MISC_INFO=5
11779	;;
11780esac
11781
11782if test -f /dev/bpf0 -o -f /dev/bpf; then
11783	V_GROUP=bpf
11784fi
11785
11786#
11787# Check for some headers introduced in later versions of libpcap
11788# and used by some printers.
11789#
11790savedcppflags="$CPPFLAGS"
11791CPPFLAGS="$CPPFLAGS $V_INCLS"
11792
11793for ac_header in pcap/bluetooth.h
11794do
11795as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11796if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11797  { echo "$as_me:$LINENO: checking for $ac_header" >&5
11798echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11799if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11800  echo $ECHO_N "(cached) $ECHO_C" >&6
11801fi
11802ac_res=`eval echo '${'$as_ac_Header'}'`
11803	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11804echo "${ECHO_T}$ac_res" >&6; }
11805else
11806  # Is the header compilable?
11807{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11808echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11809cat >conftest.$ac_ext <<_ACEOF
11810/* confdefs.h.  */
11811_ACEOF
11812cat confdefs.h >>conftest.$ac_ext
11813cat >>conftest.$ac_ext <<_ACEOF
11814/* end confdefs.h.  */
11815$ac_includes_default
11816#include <$ac_header>
11817_ACEOF
11818rm -f conftest.$ac_objext
11819if { (ac_try="$ac_compile"
11820case "(($ac_try" in
11821  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11822  *) ac_try_echo=$ac_try;;
11823esac
11824eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11825  (eval "$ac_compile") 2>conftest.er1
11826  ac_status=$?
11827  grep -v '^ *+' conftest.er1 >conftest.err
11828  rm -f conftest.er1
11829  cat conftest.err >&5
11830  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11831  (exit $ac_status); } && {
11832	 test -z "$ac_c_werror_flag" ||
11833	 test ! -s conftest.err
11834       } && test -s conftest.$ac_objext; then
11835  ac_header_compiler=yes
11836else
11837  echo "$as_me: failed program was:" >&5
11838sed 's/^/| /' conftest.$ac_ext >&5
11839
11840	ac_header_compiler=no
11841fi
11842
11843rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11844{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11845echo "${ECHO_T}$ac_header_compiler" >&6; }
11846
11847# Is the header present?
11848{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11849echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11850cat >conftest.$ac_ext <<_ACEOF
11851/* confdefs.h.  */
11852_ACEOF
11853cat confdefs.h >>conftest.$ac_ext
11854cat >>conftest.$ac_ext <<_ACEOF
11855/* end confdefs.h.  */
11856#include <$ac_header>
11857_ACEOF
11858if { (ac_try="$ac_cpp conftest.$ac_ext"
11859case "(($ac_try" in
11860  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11861  *) ac_try_echo=$ac_try;;
11862esac
11863eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11864  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11865  ac_status=$?
11866  grep -v '^ *+' conftest.er1 >conftest.err
11867  rm -f conftest.er1
11868  cat conftest.err >&5
11869  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11870  (exit $ac_status); } >/dev/null && {
11871	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11872	 test ! -s conftest.err
11873       }; then
11874  ac_header_preproc=yes
11875else
11876  echo "$as_me: failed program was:" >&5
11877sed 's/^/| /' conftest.$ac_ext >&5
11878
11879  ac_header_preproc=no
11880fi
11881
11882rm -f conftest.err conftest.$ac_ext
11883{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11884echo "${ECHO_T}$ac_header_preproc" >&6; }
11885
11886# So?  What about this header?
11887case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11888  yes:no: )
11889    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11890echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11891    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11892echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11893    ac_header_preproc=yes
11894    ;;
11895  no:yes:* )
11896    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11897echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11898    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11899echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11900    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11901echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11902    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11903echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11904    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11905echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11906    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11907echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11908
11909    ;;
11910esac
11911{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11912echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11913if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11914  echo $ECHO_N "(cached) $ECHO_C" >&6
11915else
11916  eval "$as_ac_Header=\$ac_header_preproc"
11917fi
11918ac_res=`eval echo '${'$as_ac_Header'}'`
11919	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11920echo "${ECHO_T}$ac_res" >&6; }
11921
11922fi
11923if test `eval echo '${'$as_ac_Header'}'` = yes; then
11924  cat >>confdefs.h <<_ACEOF
11925#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11926_ACEOF
11927
11928fi
11929
11930done
11931
11932
11933for ac_header in pcap/usb.h
11934do
11935as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11936if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11937  { echo "$as_me:$LINENO: checking for $ac_header" >&5
11938echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11939if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11940  echo $ECHO_N "(cached) $ECHO_C" >&6
11941fi
11942ac_res=`eval echo '${'$as_ac_Header'}'`
11943	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11944echo "${ECHO_T}$ac_res" >&6; }
11945else
11946  # Is the header compilable?
11947{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11948echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11949cat >conftest.$ac_ext <<_ACEOF
11950/* confdefs.h.  */
11951_ACEOF
11952cat confdefs.h >>conftest.$ac_ext
11953cat >>conftest.$ac_ext <<_ACEOF
11954/* end confdefs.h.  */
11955$ac_includes_default
11956#include <$ac_header>
11957_ACEOF
11958rm -f conftest.$ac_objext
11959if { (ac_try="$ac_compile"
11960case "(($ac_try" in
11961  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11962  *) ac_try_echo=$ac_try;;
11963esac
11964eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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	 test -z "$ac_c_werror_flag" ||
11973	 test ! -s conftest.err
11974       } && test -s conftest.$ac_objext; then
11975  ac_header_compiler=yes
11976else
11977  echo "$as_me: failed program was:" >&5
11978sed 's/^/| /' conftest.$ac_ext >&5
11979
11980	ac_header_compiler=no
11981fi
11982
11983rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11984{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11985echo "${ECHO_T}$ac_header_compiler" >&6; }
11986
11987# Is the header present?
11988{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11989echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11990cat >conftest.$ac_ext <<_ACEOF
11991/* confdefs.h.  */
11992_ACEOF
11993cat confdefs.h >>conftest.$ac_ext
11994cat >>conftest.$ac_ext <<_ACEOF
11995/* end confdefs.h.  */
11996#include <$ac_header>
11997_ACEOF
11998if { (ac_try="$ac_cpp conftest.$ac_ext"
11999case "(($ac_try" in
12000  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12001  *) ac_try_echo=$ac_try;;
12002esac
12003eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12004  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12005  ac_status=$?
12006  grep -v '^ *+' conftest.er1 >conftest.err
12007  rm -f conftest.er1
12008  cat conftest.err >&5
12009  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12010  (exit $ac_status); } >/dev/null && {
12011	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12012	 test ! -s conftest.err
12013       }; then
12014  ac_header_preproc=yes
12015else
12016  echo "$as_me: failed program was:" >&5
12017sed 's/^/| /' conftest.$ac_ext >&5
12018
12019  ac_header_preproc=no
12020fi
12021
12022rm -f conftest.err conftest.$ac_ext
12023{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12024echo "${ECHO_T}$ac_header_preproc" >&6; }
12025
12026# So?  What about this header?
12027case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12028  yes:no: )
12029    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12030echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12031    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12032echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12033    ac_header_preproc=yes
12034    ;;
12035  no:yes:* )
12036    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12037echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12038    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12039echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12040    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12041echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12042    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12043echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12044    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12045echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12046    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12047echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12048
12049    ;;
12050esac
12051{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12052echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12053if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12054  echo $ECHO_N "(cached) $ECHO_C" >&6
12055else
12056  eval "$as_ac_Header=\$ac_header_preproc"
12057fi
12058ac_res=`eval echo '${'$as_ac_Header'}'`
12059	       { echo "$as_me:$LINENO: result: $ac_res" >&5
12060echo "${ECHO_T}$ac_res" >&6; }
12061
12062fi
12063if test `eval echo '${'$as_ac_Header'}'` = yes; then
12064  cat >>confdefs.h <<_ACEOF
12065#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12066_ACEOF
12067
12068fi
12069
12070done
12071
12072CPPFLAGS="$savedcppflags"
12073
12074
12075for ac_header in sys/bitypes.h
12076do
12077as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12078if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12079  { echo "$as_me:$LINENO: checking for $ac_header" >&5
12080echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12081if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12082  echo $ECHO_N "(cached) $ECHO_C" >&6
12083fi
12084ac_res=`eval echo '${'$as_ac_Header'}'`
12085	       { echo "$as_me:$LINENO: result: $ac_res" >&5
12086echo "${ECHO_T}$ac_res" >&6; }
12087else
12088  # Is the header compilable?
12089{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
12090echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12091cat >conftest.$ac_ext <<_ACEOF
12092/* confdefs.h.  */
12093_ACEOF
12094cat confdefs.h >>conftest.$ac_ext
12095cat >>conftest.$ac_ext <<_ACEOF
12096/* end confdefs.h.  */
12097$ac_includes_default
12098#include <$ac_header>
12099_ACEOF
12100rm -f conftest.$ac_objext
12101if { (ac_try="$ac_compile"
12102case "(($ac_try" in
12103  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12104  *) ac_try_echo=$ac_try;;
12105esac
12106eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12107  (eval "$ac_compile") 2>conftest.er1
12108  ac_status=$?
12109  grep -v '^ *+' conftest.er1 >conftest.err
12110  rm -f conftest.er1
12111  cat conftest.err >&5
12112  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12113  (exit $ac_status); } && {
12114	 test -z "$ac_c_werror_flag" ||
12115	 test ! -s conftest.err
12116       } && test -s conftest.$ac_objext; then
12117  ac_header_compiler=yes
12118else
12119  echo "$as_me: failed program was:" >&5
12120sed 's/^/| /' conftest.$ac_ext >&5
12121
12122	ac_header_compiler=no
12123fi
12124
12125rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12126{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12127echo "${ECHO_T}$ac_header_compiler" >&6; }
12128
12129# Is the header present?
12130{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
12131echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12132cat >conftest.$ac_ext <<_ACEOF
12133/* confdefs.h.  */
12134_ACEOF
12135cat confdefs.h >>conftest.$ac_ext
12136cat >>conftest.$ac_ext <<_ACEOF
12137/* end confdefs.h.  */
12138#include <$ac_header>
12139_ACEOF
12140if { (ac_try="$ac_cpp conftest.$ac_ext"
12141case "(($ac_try" in
12142  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12143  *) ac_try_echo=$ac_try;;
12144esac
12145eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12146  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12147  ac_status=$?
12148  grep -v '^ *+' conftest.er1 >conftest.err
12149  rm -f conftest.er1
12150  cat conftest.err >&5
12151  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12152  (exit $ac_status); } >/dev/null && {
12153	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12154	 test ! -s conftest.err
12155       }; then
12156  ac_header_preproc=yes
12157else
12158  echo "$as_me: failed program was:" >&5
12159sed 's/^/| /' conftest.$ac_ext >&5
12160
12161  ac_header_preproc=no
12162fi
12163
12164rm -f conftest.err conftest.$ac_ext
12165{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12166echo "${ECHO_T}$ac_header_preproc" >&6; }
12167
12168# So?  What about this header?
12169case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12170  yes:no: )
12171    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12172echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12173    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12174echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12175    ac_header_preproc=yes
12176    ;;
12177  no:yes:* )
12178    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12179echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12180    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12181echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12182    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12183echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12184    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12185echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12186    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12187echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12188    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12189echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12190
12191    ;;
12192esac
12193{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12194echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12195if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12196  echo $ECHO_N "(cached) $ECHO_C" >&6
12197else
12198  eval "$as_ac_Header=\$ac_header_preproc"
12199fi
12200ac_res=`eval echo '${'$as_ac_Header'}'`
12201	       { echo "$as_me:$LINENO: result: $ac_res" >&5
12202echo "${ECHO_T}$ac_res" >&6; }
12203
12204fi
12205if test `eval echo '${'$as_ac_Header'}'` = yes; then
12206  cat >>confdefs.h <<_ACEOF
12207#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12208_ACEOF
12209
12210fi
12211
12212done
12213
12214
12215{ echo "$as_me:$LINENO: checking for int8_t" >&5
12216echo $ECHO_N "checking for int8_t... $ECHO_C" >&6; }
12217if test "${ac_cv_type_int8_t+set}" = set; then
12218  echo $ECHO_N "(cached) $ECHO_C" >&6
12219else
12220  cat >conftest.$ac_ext <<_ACEOF
12221/* confdefs.h.  */
12222_ACEOF
12223cat confdefs.h >>conftest.$ac_ext
12224cat >>conftest.$ac_ext <<_ACEOF
12225/* end confdefs.h.  */
12226$ac_includes_default
12227#ifdef HAVE_SYS_BITYPES_H
12228#include <sys/bitypes.h>
12229#endif
12230
12231typedef int8_t ac__type_new_;
12232int
12233main ()
12234{
12235if ((ac__type_new_ *) 0)
12236  return 0;
12237if (sizeof (ac__type_new_))
12238  return 0;
12239  ;
12240  return 0;
12241}
12242_ACEOF
12243rm -f conftest.$ac_objext
12244if { (ac_try="$ac_compile"
12245case "(($ac_try" in
12246  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12247  *) ac_try_echo=$ac_try;;
12248esac
12249eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12250  (eval "$ac_compile") 2>conftest.er1
12251  ac_status=$?
12252  grep -v '^ *+' conftest.er1 >conftest.err
12253  rm -f conftest.er1
12254  cat conftest.err >&5
12255  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12256  (exit $ac_status); } && {
12257	 test -z "$ac_c_werror_flag" ||
12258	 test ! -s conftest.err
12259       } && test -s conftest.$ac_objext; then
12260  ac_cv_type_int8_t=yes
12261else
12262  echo "$as_me: failed program was:" >&5
12263sed 's/^/| /' conftest.$ac_ext >&5
12264
12265	ac_cv_type_int8_t=no
12266fi
12267
12268rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12269fi
12270{ echo "$as_me:$LINENO: result: $ac_cv_type_int8_t" >&5
12271echo "${ECHO_T}$ac_cv_type_int8_t" >&6; }
12272if test $ac_cv_type_int8_t = yes; then
12273  :
12274else
12275
12276cat >>confdefs.h <<\_ACEOF
12277#define int8_t signed char
12278_ACEOF
12279
12280fi
12281
12282{ echo "$as_me:$LINENO: checking for u_int8_t" >&5
12283echo $ECHO_N "checking for u_int8_t... $ECHO_C" >&6; }
12284if test "${ac_cv_type_u_int8_t+set}" = set; then
12285  echo $ECHO_N "(cached) $ECHO_C" >&6
12286else
12287  cat >conftest.$ac_ext <<_ACEOF
12288/* confdefs.h.  */
12289_ACEOF
12290cat confdefs.h >>conftest.$ac_ext
12291cat >>conftest.$ac_ext <<_ACEOF
12292/* end confdefs.h.  */
12293$ac_includes_default
12294#ifdef HAVE_SYS_BITYPES_H
12295#include <sys/bitypes.h>
12296#endif
12297
12298typedef u_int8_t ac__type_new_;
12299int
12300main ()
12301{
12302if ((ac__type_new_ *) 0)
12303  return 0;
12304if (sizeof (ac__type_new_))
12305  return 0;
12306  ;
12307  return 0;
12308}
12309_ACEOF
12310rm -f conftest.$ac_objext
12311if { (ac_try="$ac_compile"
12312case "(($ac_try" in
12313  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12314  *) ac_try_echo=$ac_try;;
12315esac
12316eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12317  (eval "$ac_compile") 2>conftest.er1
12318  ac_status=$?
12319  grep -v '^ *+' conftest.er1 >conftest.err
12320  rm -f conftest.er1
12321  cat conftest.err >&5
12322  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12323  (exit $ac_status); } && {
12324	 test -z "$ac_c_werror_flag" ||
12325	 test ! -s conftest.err
12326       } && test -s conftest.$ac_objext; then
12327  ac_cv_type_u_int8_t=yes
12328else
12329  echo "$as_me: failed program was:" >&5
12330sed 's/^/| /' conftest.$ac_ext >&5
12331
12332	ac_cv_type_u_int8_t=no
12333fi
12334
12335rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12336fi
12337{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int8_t" >&5
12338echo "${ECHO_T}$ac_cv_type_u_int8_t" >&6; }
12339if test $ac_cv_type_u_int8_t = yes; then
12340  :
12341else
12342
12343cat >>confdefs.h <<\_ACEOF
12344#define u_int8_t unsigned char
12345_ACEOF
12346
12347fi
12348
12349{ echo "$as_me:$LINENO: checking for int16_t" >&5
12350echo $ECHO_N "checking for int16_t... $ECHO_C" >&6; }
12351if test "${ac_cv_type_int16_t+set}" = set; then
12352  echo $ECHO_N "(cached) $ECHO_C" >&6
12353else
12354  cat >conftest.$ac_ext <<_ACEOF
12355/* confdefs.h.  */
12356_ACEOF
12357cat confdefs.h >>conftest.$ac_ext
12358cat >>conftest.$ac_ext <<_ACEOF
12359/* end confdefs.h.  */
12360$ac_includes_default
12361typedef int16_t ac__type_new_;
12362int
12363main ()
12364{
12365if ((ac__type_new_ *) 0)
12366  return 0;
12367if (sizeof (ac__type_new_))
12368  return 0;
12369  ;
12370  return 0;
12371}
12372_ACEOF
12373rm -f conftest.$ac_objext
12374if { (ac_try="$ac_compile"
12375case "(($ac_try" in
12376  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12377  *) ac_try_echo=$ac_try;;
12378esac
12379eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12380  (eval "$ac_compile") 2>conftest.er1
12381  ac_status=$?
12382  grep -v '^ *+' conftest.er1 >conftest.err
12383  rm -f conftest.er1
12384  cat conftest.err >&5
12385  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12386  (exit $ac_status); } && {
12387	 test -z "$ac_c_werror_flag" ||
12388	 test ! -s conftest.err
12389       } && test -s conftest.$ac_objext; then
12390  ac_cv_type_int16_t=yes
12391else
12392  echo "$as_me: failed program was:" >&5
12393sed 's/^/| /' conftest.$ac_ext >&5
12394
12395	ac_cv_type_int16_t=no
12396fi
12397
12398rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12399fi
12400{ echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
12401echo "${ECHO_T}$ac_cv_type_int16_t" >&6; }
12402if test $ac_cv_type_int16_t = yes; then
12403  :
12404else
12405
12406cat >>confdefs.h <<\_ACEOF
12407#define int16_t short
12408_ACEOF
12409
12410	$ac_includes_default
12411#ifdef HAVE_SYS_BITYPES_H
12412#include <sys/bitypes.h>
12413#endif
12414fi
12415
12416{ echo "$as_me:$LINENO: checking for u_int16_t" >&5
12417echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6; }
12418if test "${ac_cv_type_u_int16_t+set}" = set; then
12419  echo $ECHO_N "(cached) $ECHO_C" >&6
12420else
12421  cat >conftest.$ac_ext <<_ACEOF
12422/* confdefs.h.  */
12423_ACEOF
12424cat confdefs.h >>conftest.$ac_ext
12425cat >>conftest.$ac_ext <<_ACEOF
12426/* end confdefs.h.  */
12427$ac_includes_default
12428#ifdef HAVE_SYS_BITYPES_H
12429#include <sys/bitypes.h>
12430#endif
12431
12432typedef u_int16_t ac__type_new_;
12433int
12434main ()
12435{
12436if ((ac__type_new_ *) 0)
12437  return 0;
12438if (sizeof (ac__type_new_))
12439  return 0;
12440  ;
12441  return 0;
12442}
12443_ACEOF
12444rm -f conftest.$ac_objext
12445if { (ac_try="$ac_compile"
12446case "(($ac_try" in
12447  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12448  *) ac_try_echo=$ac_try;;
12449esac
12450eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12451  (eval "$ac_compile") 2>conftest.er1
12452  ac_status=$?
12453  grep -v '^ *+' conftest.er1 >conftest.err
12454  rm -f conftest.er1
12455  cat conftest.err >&5
12456  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12457  (exit $ac_status); } && {
12458	 test -z "$ac_c_werror_flag" ||
12459	 test ! -s conftest.err
12460       } && test -s conftest.$ac_objext; then
12461  ac_cv_type_u_int16_t=yes
12462else
12463  echo "$as_me: failed program was:" >&5
12464sed 's/^/| /' conftest.$ac_ext >&5
12465
12466	ac_cv_type_u_int16_t=no
12467fi
12468
12469rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12470fi
12471{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int16_t" >&5
12472echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6; }
12473if test $ac_cv_type_u_int16_t = yes; then
12474  :
12475else
12476
12477cat >>confdefs.h <<\_ACEOF
12478#define u_int16_t unsigned short
12479_ACEOF
12480
12481fi
12482
12483{ echo "$as_me:$LINENO: checking for int32_t" >&5
12484echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
12485if test "${ac_cv_type_int32_t+set}" = set; then
12486  echo $ECHO_N "(cached) $ECHO_C" >&6
12487else
12488  cat >conftest.$ac_ext <<_ACEOF
12489/* confdefs.h.  */
12490_ACEOF
12491cat confdefs.h >>conftest.$ac_ext
12492cat >>conftest.$ac_ext <<_ACEOF
12493/* end confdefs.h.  */
12494$ac_includes_default
12495#ifdef HAVE_SYS_BITYPES_H
12496#include <sys/bitypes.h>
12497#endif
12498
12499typedef int32_t ac__type_new_;
12500int
12501main ()
12502{
12503if ((ac__type_new_ *) 0)
12504  return 0;
12505if (sizeof (ac__type_new_))
12506  return 0;
12507  ;
12508  return 0;
12509}
12510_ACEOF
12511rm -f conftest.$ac_objext
12512if { (ac_try="$ac_compile"
12513case "(($ac_try" in
12514  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12515  *) ac_try_echo=$ac_try;;
12516esac
12517eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12518  (eval "$ac_compile") 2>conftest.er1
12519  ac_status=$?
12520  grep -v '^ *+' conftest.er1 >conftest.err
12521  rm -f conftest.er1
12522  cat conftest.err >&5
12523  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12524  (exit $ac_status); } && {
12525	 test -z "$ac_c_werror_flag" ||
12526	 test ! -s conftest.err
12527       } && test -s conftest.$ac_objext; then
12528  ac_cv_type_int32_t=yes
12529else
12530  echo "$as_me: failed program was:" >&5
12531sed 's/^/| /' conftest.$ac_ext >&5
12532
12533	ac_cv_type_int32_t=no
12534fi
12535
12536rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12537fi
12538{ echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
12539echo "${ECHO_T}$ac_cv_type_int32_t" >&6; }
12540if test $ac_cv_type_int32_t = yes; then
12541  :
12542else
12543
12544cat >>confdefs.h <<\_ACEOF
12545#define int32_t int
12546_ACEOF
12547
12548fi
12549
12550{ echo "$as_me:$LINENO: checking for u_int32_t" >&5
12551echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6; }
12552if test "${ac_cv_type_u_int32_t+set}" = set; then
12553  echo $ECHO_N "(cached) $ECHO_C" >&6
12554else
12555  cat >conftest.$ac_ext <<_ACEOF
12556/* confdefs.h.  */
12557_ACEOF
12558cat confdefs.h >>conftest.$ac_ext
12559cat >>conftest.$ac_ext <<_ACEOF
12560/* end confdefs.h.  */
12561$ac_includes_default
12562#ifdef HAVE_SYS_BITYPES_H
12563#include <sys/bitypes.h>
12564#endif
12565
12566typedef u_int32_t ac__type_new_;
12567int
12568main ()
12569{
12570if ((ac__type_new_ *) 0)
12571  return 0;
12572if (sizeof (ac__type_new_))
12573  return 0;
12574  ;
12575  return 0;
12576}
12577_ACEOF
12578rm -f conftest.$ac_objext
12579if { (ac_try="$ac_compile"
12580case "(($ac_try" in
12581  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12582  *) ac_try_echo=$ac_try;;
12583esac
12584eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12585  (eval "$ac_compile") 2>conftest.er1
12586  ac_status=$?
12587  grep -v '^ *+' conftest.er1 >conftest.err
12588  rm -f conftest.er1
12589  cat conftest.err >&5
12590  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12591  (exit $ac_status); } && {
12592	 test -z "$ac_c_werror_flag" ||
12593	 test ! -s conftest.err
12594       } && test -s conftest.$ac_objext; then
12595  ac_cv_type_u_int32_t=yes
12596else
12597  echo "$as_me: failed program was:" >&5
12598sed 's/^/| /' conftest.$ac_ext >&5
12599
12600	ac_cv_type_u_int32_t=no
12601fi
12602
12603rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12604fi
12605{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
12606echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6; }
12607if test $ac_cv_type_u_int32_t = yes; then
12608  :
12609else
12610
12611cat >>confdefs.h <<\_ACEOF
12612#define u_int32_t unsigned int
12613_ACEOF
12614
12615fi
12616
12617{ echo "$as_me:$LINENO: checking for int64_t" >&5
12618echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
12619if test "${ac_cv_type_int64_t+set}" = set; then
12620  echo $ECHO_N "(cached) $ECHO_C" >&6
12621else
12622  cat >conftest.$ac_ext <<_ACEOF
12623/* confdefs.h.  */
12624_ACEOF
12625cat confdefs.h >>conftest.$ac_ext
12626cat >>conftest.$ac_ext <<_ACEOF
12627/* end confdefs.h.  */
12628$ac_includes_default
12629#ifdef HAVE_SYS_BITYPES_H
12630#include <sys/bitypes.h>
12631#endif
12632
12633typedef int64_t ac__type_new_;
12634int
12635main ()
12636{
12637if ((ac__type_new_ *) 0)
12638  return 0;
12639if (sizeof (ac__type_new_))
12640  return 0;
12641  ;
12642  return 0;
12643}
12644_ACEOF
12645rm -f conftest.$ac_objext
12646if { (ac_try="$ac_compile"
12647case "(($ac_try" in
12648  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12649  *) ac_try_echo=$ac_try;;
12650esac
12651eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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	 test -z "$ac_c_werror_flag" ||
12660	 test ! -s conftest.err
12661       } && test -s conftest.$ac_objext; then
12662  ac_cv_type_int64_t=yes
12663else
12664  echo "$as_me: failed program was:" >&5
12665sed 's/^/| /' conftest.$ac_ext >&5
12666
12667	ac_cv_type_int64_t=no
12668fi
12669
12670rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12671fi
12672{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
12673echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
12674if test $ac_cv_type_int64_t = yes; then
12675  :
12676else
12677
12678cat >>confdefs.h <<\_ACEOF
12679#define int64_t long long
12680_ACEOF
12681
12682fi
12683
12684{ echo "$as_me:$LINENO: checking for u_int64_t" >&5
12685echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
12686if test "${ac_cv_type_u_int64_t+set}" = set; then
12687  echo $ECHO_N "(cached) $ECHO_C" >&6
12688else
12689  cat >conftest.$ac_ext <<_ACEOF
12690/* confdefs.h.  */
12691_ACEOF
12692cat confdefs.h >>conftest.$ac_ext
12693cat >>conftest.$ac_ext <<_ACEOF
12694/* end confdefs.h.  */
12695$ac_includes_default
12696#ifdef HAVE_SYS_BITYPES_H
12697#include <sys/bitypes.h>
12698#endif
12699
12700typedef u_int64_t ac__type_new_;
12701int
12702main ()
12703{
12704if ((ac__type_new_ *) 0)
12705  return 0;
12706if (sizeof (ac__type_new_))
12707  return 0;
12708  ;
12709  return 0;
12710}
12711_ACEOF
12712rm -f conftest.$ac_objext
12713if { (ac_try="$ac_compile"
12714case "(($ac_try" in
12715  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12716  *) ac_try_echo=$ac_try;;
12717esac
12718eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12719  (eval "$ac_compile") 2>conftest.er1
12720  ac_status=$?
12721  grep -v '^ *+' conftest.er1 >conftest.err
12722  rm -f conftest.er1
12723  cat conftest.err >&5
12724  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12725  (exit $ac_status); } && {
12726	 test -z "$ac_c_werror_flag" ||
12727	 test ! -s conftest.err
12728       } && test -s conftest.$ac_objext; then
12729  ac_cv_type_u_int64_t=yes
12730else
12731  echo "$as_me: failed program was:" >&5
12732sed 's/^/| /' conftest.$ac_ext >&5
12733
12734	ac_cv_type_u_int64_t=no
12735fi
12736
12737rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12738fi
12739{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
12740echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
12741if test $ac_cv_type_u_int64_t = yes; then
12742  :
12743else
12744
12745cat >>confdefs.h <<\_ACEOF
12746#define u_int64_t unsigned long long
12747_ACEOF
12748
12749fi
12750
12751
12752#
12753# We can't just check for <inttypes.h> - some systems have one that
12754# doesn't define all the PRI[doxu]64 macros.
12755#
12756
12757for ac_header in inttypes.h
12758do
12759as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12760if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12761  { echo "$as_me:$LINENO: checking for $ac_header" >&5
12762echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12763if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12764  echo $ECHO_N "(cached) $ECHO_C" >&6
12765fi
12766ac_res=`eval echo '${'$as_ac_Header'}'`
12767	       { echo "$as_me:$LINENO: result: $ac_res" >&5
12768echo "${ECHO_T}$ac_res" >&6; }
12769else
12770  # Is the header compilable?
12771{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
12772echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12773cat >conftest.$ac_ext <<_ACEOF
12774/* confdefs.h.  */
12775_ACEOF
12776cat confdefs.h >>conftest.$ac_ext
12777cat >>conftest.$ac_ext <<_ACEOF
12778/* end confdefs.h.  */
12779$ac_includes_default
12780#include <$ac_header>
12781_ACEOF
12782rm -f conftest.$ac_objext
12783if { (ac_try="$ac_compile"
12784case "(($ac_try" in
12785  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12786  *) ac_try_echo=$ac_try;;
12787esac
12788eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12789  (eval "$ac_compile") 2>conftest.er1
12790  ac_status=$?
12791  grep -v '^ *+' conftest.er1 >conftest.err
12792  rm -f conftest.er1
12793  cat conftest.err >&5
12794  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12795  (exit $ac_status); } && {
12796	 test -z "$ac_c_werror_flag" ||
12797	 test ! -s conftest.err
12798       } && test -s conftest.$ac_objext; then
12799  ac_header_compiler=yes
12800else
12801  echo "$as_me: failed program was:" >&5
12802sed 's/^/| /' conftest.$ac_ext >&5
12803
12804	ac_header_compiler=no
12805fi
12806
12807rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12808{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12809echo "${ECHO_T}$ac_header_compiler" >&6; }
12810
12811# Is the header present?
12812{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
12813echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12814cat >conftest.$ac_ext <<_ACEOF
12815/* confdefs.h.  */
12816_ACEOF
12817cat confdefs.h >>conftest.$ac_ext
12818cat >>conftest.$ac_ext <<_ACEOF
12819/* end confdefs.h.  */
12820#include <$ac_header>
12821_ACEOF
12822if { (ac_try="$ac_cpp conftest.$ac_ext"
12823case "(($ac_try" in
12824  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12825  *) ac_try_echo=$ac_try;;
12826esac
12827eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12828  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12829  ac_status=$?
12830  grep -v '^ *+' conftest.er1 >conftest.err
12831  rm -f conftest.er1
12832  cat conftest.err >&5
12833  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12834  (exit $ac_status); } >/dev/null && {
12835	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12836	 test ! -s conftest.err
12837       }; then
12838  ac_header_preproc=yes
12839else
12840  echo "$as_me: failed program was:" >&5
12841sed 's/^/| /' conftest.$ac_ext >&5
12842
12843  ac_header_preproc=no
12844fi
12845
12846rm -f conftest.err conftest.$ac_ext
12847{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12848echo "${ECHO_T}$ac_header_preproc" >&6; }
12849
12850# So?  What about this header?
12851case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12852  yes:no: )
12853    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12854echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12855    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12856echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12857    ac_header_preproc=yes
12858    ;;
12859  no:yes:* )
12860    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12861echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12862    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12863echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12864    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12865echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12866    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12867echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12868    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12869echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12870    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12871echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12872
12873    ;;
12874esac
12875{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12876echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12877if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12878  echo $ECHO_N "(cached) $ECHO_C" >&6
12879else
12880  eval "$as_ac_Header=\$ac_header_preproc"
12881fi
12882ac_res=`eval echo '${'$as_ac_Header'}'`
12883	       { echo "$as_me:$LINENO: result: $ac_res" >&5
12884echo "${ECHO_T}$ac_res" >&6; }
12885
12886fi
12887if test `eval echo '${'$as_ac_Header'}'` = yes; then
12888  cat >>confdefs.h <<_ACEOF
12889#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12890_ACEOF
12891
12892    #
12893    # OK, we have inttypes.h, but does it define those macros?
12894    #
12895    { echo "$as_me:$LINENO: checking whether inttypes.h defines the PRI[doxu]64 macros" >&5
12896echo $ECHO_N "checking whether inttypes.h defines the PRI[doxu]64 macros... $ECHO_C" >&6; }
12897    cat >conftest.$ac_ext <<_ACEOF
12898
12899	/* confdefs.h.  */
12900_ACEOF
12901cat confdefs.h >>conftest.$ac_ext
12902cat >>conftest.$ac_ext <<_ACEOF
12903/* end confdefs.h.  */
12904
12905	    #include <inttypes.h>
12906	    #include <stdio.h>
12907	    #include <sys/types.h>
12908	    #ifdef HAVE_SYS_BITYPES_H
12909	    #include <sys/bitypes.h>
12910	    #endif
12911
12912	    main()
12913	    {
12914	      printf("%" PRId64 "\n", (u_int64_t)1);
12915	      printf("%" PRIo64 "\n", (u_int64_t)1);
12916	      printf("%" PRIx64 "\n", (u_int64_t)1);
12917	      printf("%" PRIu64 "\n", (u_int64_t)1);
12918	    }
12919
12920
12921_ACEOF
12922rm -f conftest.$ac_objext
12923if { (ac_try="$ac_compile"
12924case "(($ac_try" in
12925  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12926  *) ac_try_echo=$ac_try;;
12927esac
12928eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12929  (eval "$ac_compile") 2>conftest.er1
12930  ac_status=$?
12931  grep -v '^ *+' conftest.er1 >conftest.err
12932  rm -f conftest.er1
12933  cat conftest.err >&5
12934  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12935  (exit $ac_status); } && {
12936	 test -z "$ac_c_werror_flag" ||
12937	 test ! -s conftest.err
12938       } && test -s conftest.$ac_objext; then
12939
12940	{ echo "$as_me:$LINENO: result: yes" >&5
12941echo "${ECHO_T}yes" >&6; }
12942	ac_lbl_inttypes_h_defines_formats=yes
12943
12944else
12945  echo "$as_me: failed program was:" >&5
12946sed 's/^/| /' conftest.$ac_ext >&5
12947
12948
12949	{ echo "$as_me:$LINENO: result: no" >&5
12950echo "${ECHO_T}no" >&6; }
12951	ac_lbl_inttypes_h_defines_formats=no
12952
12953fi
12954
12955rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12956
12957else
12958
12959    #
12960    # We don't have inttypes.h, so it obviously can't define those
12961    # macros.
12962    #
12963    ac_lbl_inttypes_h_defines_formats=no
12964
12965fi
12966
12967done
12968
12969if test "$ac_lbl_inttypes_h_defines_formats" = no; then
12970
12971    { echo "$as_me:$LINENO: checking whether %lx can be used to format 64-bit integers" >&5
12972echo $ECHO_N "checking whether %lx can be used to format 64-bit integers... $ECHO_C" >&6; }
12973    if test "$cross_compiling" = yes; then
12974  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12975See \`config.log' for more details." >&5
12976echo "$as_me: error: cannot run test program while cross compiling
12977See \`config.log' for more details." >&2;}
12978   { (exit 1); exit 1; }; }
12979else
12980  cat >conftest.$ac_ext <<_ACEOF
12981
12982	/* confdefs.h.  */
12983_ACEOF
12984cat confdefs.h >>conftest.$ac_ext
12985cat >>conftest.$ac_ext <<_ACEOF
12986/* end confdefs.h.  */
12987
12988#	    ifdef HAVE_INTTYPES_H
12989	    #include <inttypes.h>
12990#	    endif
12991#	    ifdef HAVE_SYS_BITYPES_H
12992            #include <sys/bitypes.h>
12993#	    endif
12994	    #include <stdio.h>
12995	    #include <sys/types.h>
12996
12997	    main()
12998	    {
12999	      u_int64_t t = 1;
13000	      char strbuf[16+1];
13001	      sprintf(strbuf, "%016lx", t << 32);
13002	      if (strcmp(strbuf, "0000000100000000") == 0)
13003		exit(0);
13004	      else
13005		exit(1);
13006	    }
13007
13008
13009_ACEOF
13010rm -f conftest$ac_exeext
13011if { (ac_try="$ac_link"
13012case "(($ac_try" in
13013  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13014  *) ac_try_echo=$ac_try;;
13015esac
13016eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13017  (eval "$ac_link") 2>&5
13018  ac_status=$?
13019  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13020  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13021  { (case "(($ac_try" in
13022  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13023  *) ac_try_echo=$ac_try;;
13024esac
13025eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13026  (eval "$ac_try") 2>&5
13027  ac_status=$?
13028  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13029  (exit $ac_status); }; }; then
13030
13031	cat >>confdefs.h <<\_ACEOF
13032#define PRId64 "ld"
13033_ACEOF
13034
13035	cat >>confdefs.h <<\_ACEOF
13036#define PRIo64 "lo"
13037_ACEOF
13038
13039	cat >>confdefs.h <<\_ACEOF
13040#define PRIx64 "lx"
13041_ACEOF
13042
13043	cat >>confdefs.h <<\_ACEOF
13044#define PRIu64 "lu"
13045_ACEOF
13046
13047	{ echo "$as_me:$LINENO: result: yes" >&5
13048echo "${ECHO_T}yes" >&6; }
13049
13050else
13051  echo "$as_me: program exited with status $ac_status" >&5
13052echo "$as_me: failed program was:" >&5
13053sed 's/^/| /' conftest.$ac_ext >&5
13054
13055( exit $ac_status )
13056
13057	{ echo "$as_me:$LINENO: result: no" >&5
13058echo "${ECHO_T}no" >&6; }
13059
13060
13061    { echo "$as_me:$LINENO: checking whether %llx can be used to format 64-bit integers" >&5
13062echo $ECHO_N "checking whether %llx can be used to format 64-bit integers... $ECHO_C" >&6; }
13063    if test "$cross_compiling" = yes; then
13064  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13065See \`config.log' for more details." >&5
13066echo "$as_me: error: cannot run test program while cross compiling
13067See \`config.log' for more details." >&2;}
13068   { (exit 1); exit 1; }; }
13069else
13070  cat >conftest.$ac_ext <<_ACEOF
13071
13072	/* confdefs.h.  */
13073_ACEOF
13074cat confdefs.h >>conftest.$ac_ext
13075cat >>conftest.$ac_ext <<_ACEOF
13076/* end confdefs.h.  */
13077
13078#	    ifdef HAVE_INTTYPES_H
13079	    #include <inttypes.h>
13080#	    endif
13081#	    ifdef HAVE_SYS_BITYPES_H
13082            #include <sys/bitypes.h>
13083#	    endif
13084	    #include <stdio.h>
13085	    #include <sys/types.h>
13086
13087	    main()
13088	    {
13089	      u_int64_t t = 1;
13090	      char strbuf[16+1];
13091	      sprintf(strbuf, "%016llx", t << 32);
13092	      if (strcmp(strbuf, "0000000100000000") == 0)
13093		exit(0);
13094	      else
13095		exit(1);
13096	    }
13097
13098
13099_ACEOF
13100rm -f conftest$ac_exeext
13101if { (ac_try="$ac_link"
13102case "(($ac_try" in
13103  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13104  *) ac_try_echo=$ac_try;;
13105esac
13106eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13107  (eval "$ac_link") 2>&5
13108  ac_status=$?
13109  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13110  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13111  { (case "(($ac_try" in
13112  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13113  *) ac_try_echo=$ac_try;;
13114esac
13115eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13116  (eval "$ac_try") 2>&5
13117  ac_status=$?
13118  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13119  (exit $ac_status); }; }; then
13120
13121	cat >>confdefs.h <<\_ACEOF
13122#define PRId64 "lld"
13123_ACEOF
13124
13125	cat >>confdefs.h <<\_ACEOF
13126#define PRIo64 "llo"
13127_ACEOF
13128
13129	cat >>confdefs.h <<\_ACEOF
13130#define PRIx64 "llx"
13131_ACEOF
13132
13133	cat >>confdefs.h <<\_ACEOF
13134#define PRIu64 "llu"
13135_ACEOF
13136
13137	{ echo "$as_me:$LINENO: result: yes" >&5
13138echo "${ECHO_T}yes" >&6; }
13139
13140else
13141  echo "$as_me: program exited with status $ac_status" >&5
13142echo "$as_me: failed program was:" >&5
13143sed 's/^/| /' conftest.$ac_ext >&5
13144
13145( exit $ac_status )
13146
13147	{ echo "$as_me:$LINENO: result: no" >&5
13148echo "${ECHO_T}no" >&6; }
13149
13150
13151    { echo "$as_me:$LINENO: checking whether %Lx can be used to format 64-bit integers" >&5
13152echo $ECHO_N "checking whether %Lx can be used to format 64-bit integers... $ECHO_C" >&6; }
13153    if test "$cross_compiling" = yes; then
13154  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13155See \`config.log' for more details." >&5
13156echo "$as_me: error: cannot run test program while cross compiling
13157See \`config.log' for more details." >&2;}
13158   { (exit 1); exit 1; }; }
13159else
13160  cat >conftest.$ac_ext <<_ACEOF
13161
13162	/* confdefs.h.  */
13163_ACEOF
13164cat confdefs.h >>conftest.$ac_ext
13165cat >>conftest.$ac_ext <<_ACEOF
13166/* end confdefs.h.  */
13167
13168#	    ifdef HAVE_INTTYPES_H
13169	    #include <inttypes.h>
13170#	    endif
13171#	    ifdef HAVE_SYS_BITYPES_H
13172            #include <sys/bitypes.h>
13173#	    endif
13174	    #include <stdio.h>
13175	    #include <sys/types.h>
13176
13177	    main()
13178	    {
13179	      u_int64_t t = 1;
13180	      char strbuf[16+1];
13181	      sprintf(strbuf, "%016Lx", t << 32);
13182	      if (strcmp(strbuf, "0000000100000000") == 0)
13183		exit(0);
13184	      else
13185		exit(1);
13186	    }
13187
13188
13189_ACEOF
13190rm -f conftest$ac_exeext
13191if { (ac_try="$ac_link"
13192case "(($ac_try" in
13193  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13194  *) ac_try_echo=$ac_try;;
13195esac
13196eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13197  (eval "$ac_link") 2>&5
13198  ac_status=$?
13199  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13200  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13201  { (case "(($ac_try" in
13202  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13203  *) ac_try_echo=$ac_try;;
13204esac
13205eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13206  (eval "$ac_try") 2>&5
13207  ac_status=$?
13208  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13209  (exit $ac_status); }; }; then
13210
13211	cat >>confdefs.h <<\_ACEOF
13212#define PRId64 "Ld"
13213_ACEOF
13214
13215	cat >>confdefs.h <<\_ACEOF
13216#define PRIo64 "Lo"
13217_ACEOF
13218
13219	cat >>confdefs.h <<\_ACEOF
13220#define PRIx64 "Lx"
13221_ACEOF
13222
13223	cat >>confdefs.h <<\_ACEOF
13224#define PRIu64 "Lu"
13225_ACEOF
13226
13227	{ echo "$as_me:$LINENO: result: yes" >&5
13228echo "${ECHO_T}yes" >&6; }
13229
13230else
13231  echo "$as_me: program exited with status $ac_status" >&5
13232echo "$as_me: failed program was:" >&5
13233sed 's/^/| /' conftest.$ac_ext >&5
13234
13235( exit $ac_status )
13236
13237	{ echo "$as_me:$LINENO: result: no" >&5
13238echo "${ECHO_T}no" >&6; }
13239
13240
13241    { echo "$as_me:$LINENO: checking whether %qx can be used to format 64-bit integers" >&5
13242echo $ECHO_N "checking whether %qx can be used to format 64-bit integers... $ECHO_C" >&6; }
13243    if test "$cross_compiling" = yes; then
13244  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13245See \`config.log' for more details." >&5
13246echo "$as_me: error: cannot run test program while cross compiling
13247See \`config.log' for more details." >&2;}
13248   { (exit 1); exit 1; }; }
13249else
13250  cat >conftest.$ac_ext <<_ACEOF
13251
13252	/* confdefs.h.  */
13253_ACEOF
13254cat confdefs.h >>conftest.$ac_ext
13255cat >>conftest.$ac_ext <<_ACEOF
13256/* end confdefs.h.  */
13257
13258#	    ifdef HAVE_INTTYPES_H
13259	    #include <inttypes.h>
13260#	    endif
13261#	    ifdef HAVE_SYS_BITYPES_H
13262            #include <sys/bitypes.h>
13263#	    endif
13264	    #include <stdio.h>
13265	    #include <sys/types.h>
13266
13267	    main()
13268	    {
13269	      u_int64_t t = 1;
13270	      char strbuf[16+1];
13271	      sprintf(strbuf, "%016qx", t << 32);
13272	      if (strcmp(strbuf, "0000000100000000") == 0)
13273		exit(0);
13274	      else
13275		exit(1);
13276	    }
13277
13278
13279_ACEOF
13280rm -f conftest$ac_exeext
13281if { (ac_try="$ac_link"
13282case "(($ac_try" in
13283  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13284  *) ac_try_echo=$ac_try;;
13285esac
13286eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13287  (eval "$ac_link") 2>&5
13288  ac_status=$?
13289  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13290  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13291  { (case "(($ac_try" in
13292  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13293  *) ac_try_echo=$ac_try;;
13294esac
13295eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13296  (eval "$ac_try") 2>&5
13297  ac_status=$?
13298  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13299  (exit $ac_status); }; }; then
13300
13301	cat >>confdefs.h <<\_ACEOF
13302#define PRId64 "qd"
13303_ACEOF
13304
13305	cat >>confdefs.h <<\_ACEOF
13306#define PRIo64 "qo"
13307_ACEOF
13308
13309	cat >>confdefs.h <<\_ACEOF
13310#define PRIx64 "qx"
13311_ACEOF
13312
13313	cat >>confdefs.h <<\_ACEOF
13314#define PRIu64 "qu"
13315_ACEOF
13316
13317	{ echo "$as_me:$LINENO: result: yes" >&5
13318echo "${ECHO_T}yes" >&6; }
13319
13320else
13321  echo "$as_me: program exited with status $ac_status" >&5
13322echo "$as_me: failed program was:" >&5
13323sed 's/^/| /' conftest.$ac_ext >&5
13324
13325( exit $ac_status )
13326
13327	{ echo "$as_me:$LINENO: result: no" >&5
13328echo "${ECHO_T}no" >&6; }
13329
13330	          { { echo "$as_me:$LINENO: error: neither %llx nor %Lx nor %qx worked on a 64-bit integer" >&5
13331echo "$as_me: error: neither %llx nor %Lx nor %qx worked on a 64-bit integer" >&2;}
13332   { (exit 1); exit 1; }; }
13333
13334
13335fi
13336rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13337fi
13338
13339
13340
13341
13342
13343fi
13344rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13345fi
13346
13347
13348
13349
13350
13351fi
13352rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13353fi
13354
13355
13356
13357
13358
13359fi
13360rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13361fi
13362
13363
13364
13365fi
13366
13367if test -n "$ac_tool_prefix"; then
13368  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13369set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13370{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13371echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13372if test "${ac_cv_prog_RANLIB+set}" = set; then
13373  echo $ECHO_N "(cached) $ECHO_C" >&6
13374else
13375  if test -n "$RANLIB"; then
13376  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13377else
13378as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13379for as_dir in $PATH
13380do
13381  IFS=$as_save_IFS
13382  test -z "$as_dir" && as_dir=.
13383  for ac_exec_ext in '' $ac_executable_extensions; do
13384  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13385    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13386    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13387    break 2
13388  fi
13389done
13390done
13391IFS=$as_save_IFS
13392
13393fi
13394fi
13395RANLIB=$ac_cv_prog_RANLIB
13396if test -n "$RANLIB"; then
13397  { echo "$as_me:$LINENO: result: $RANLIB" >&5
13398echo "${ECHO_T}$RANLIB" >&6; }
13399else
13400  { echo "$as_me:$LINENO: result: no" >&5
13401echo "${ECHO_T}no" >&6; }
13402fi
13403
13404
13405fi
13406if test -z "$ac_cv_prog_RANLIB"; then
13407  ac_ct_RANLIB=$RANLIB
13408  # Extract the first word of "ranlib", so it can be a program name with args.
13409set dummy ranlib; ac_word=$2
13410{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13411echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13412if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
13413  echo $ECHO_N "(cached) $ECHO_C" >&6
13414else
13415  if test -n "$ac_ct_RANLIB"; then
13416  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13417else
13418as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13419for as_dir in $PATH
13420do
13421  IFS=$as_save_IFS
13422  test -z "$as_dir" && as_dir=.
13423  for ac_exec_ext in '' $ac_executable_extensions; do
13424  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13425    ac_cv_prog_ac_ct_RANLIB="ranlib"
13426    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13427    break 2
13428  fi
13429done
13430done
13431IFS=$as_save_IFS
13432
13433fi
13434fi
13435ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13436if test -n "$ac_ct_RANLIB"; then
13437  { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
13438echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
13439else
13440  { echo "$as_me:$LINENO: result: no" >&5
13441echo "${ECHO_T}no" >&6; }
13442fi
13443
13444  if test "x$ac_ct_RANLIB" = x; then
13445    RANLIB=":"
13446  else
13447    case $cross_compiling:$ac_tool_warned in
13448yes:)
13449{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13450whose name does not start with the host triplet.  If you think this
13451configuration is useful to you, please write to autoconf@gnu.org." >&5
13452echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13453whose name does not start with the host triplet.  If you think this
13454configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13455ac_tool_warned=yes ;;
13456esac
13457    RANLIB=$ac_ct_RANLIB
13458  fi
13459else
13460  RANLIB="$ac_cv_prog_RANLIB"
13461fi
13462
13463
13464rm -f os-proto.h
13465    if test "${LBL_CFLAGS+set}" = set; then
13466	    V_CCOPT="$V_CCOPT ${LBL_CFLAGS}"
13467    fi
13468    if test -f .devel ; then
13469	    if test "$GCC" = yes ; then
13470		    if test "${LBL_CFLAGS+set}" != set; then
13471			    if test "$ac_cv_prog_cc_g" = yes ; then
13472				    V_CCOPT="-g $V_CCOPT"
13473			    fi
13474			    V_CCOPT="$V_CCOPT -Wall"
13475			    if test $ac_cv_lbl_gcc_vers -gt 1 ; then
13476				    V_CCOPT="$V_CCOPT -Wmissing-prototypes -Wstrict-prototypes -Wwrite-strings -Wpointer-arith -W"
13477			    fi
13478		    fi
13479	    else
13480		    case "$host_os" in
13481
13482		    irix6*)
13483			    V_CCOPT="$V_CCOPT -n32"
13484			    ;;
13485
13486		    *)
13487			    ;;
13488		    esac
13489	    fi
13490	    os=`echo $host_os | sed -e 's/\([0-9][0-9]*\)[^0-9].*$/\1/'`
13491	    name="lbl/os-$os.h"
13492	    if test -f $name ; then
13493		    ln -s $name os-proto.h
13494
13495cat >>confdefs.h <<\_ACEOF
13496#define HAVE_OS_PROTO_H 1
13497_ACEOF
13498
13499	    else
13500		    { echo "$as_me:$LINENO: WARNING: can't find $name" >&5
13501echo "$as_me: WARNING: can't find $name" >&2;}
13502	    fi
13503    fi
13504
13505{ echo "$as_me:$LINENO: checking if sockaddr struct has the sa_len member" >&5
13506echo $ECHO_N "checking if sockaddr struct has the sa_len member... $ECHO_C" >&6; }
13507    if test "${ac_cv_lbl_sockaddr_has_sa_len+set}" = set; then
13508  echo $ECHO_N "(cached) $ECHO_C" >&6
13509else
13510  cat >conftest.$ac_ext <<_ACEOF
13511/* confdefs.h.  */
13512_ACEOF
13513cat confdefs.h >>conftest.$ac_ext
13514cat >>conftest.$ac_ext <<_ACEOF
13515/* end confdefs.h.  */
13516
13517#	include <sys/types.h>
13518#	include <sys/socket.h>
13519int
13520main ()
13521{
13522u_int i = sizeof(((struct sockaddr *)0)->sa_len)
13523  ;
13524  return 0;
13525}
13526_ACEOF
13527rm -f conftest.$ac_objext
13528if { (ac_try="$ac_compile"
13529case "(($ac_try" in
13530  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13531  *) ac_try_echo=$ac_try;;
13532esac
13533eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13534  (eval "$ac_compile") 2>conftest.er1
13535  ac_status=$?
13536  grep -v '^ *+' conftest.er1 >conftest.err
13537  rm -f conftest.er1
13538  cat conftest.err >&5
13539  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13540  (exit $ac_status); } && {
13541	 test -z "$ac_c_werror_flag" ||
13542	 test ! -s conftest.err
13543       } && test -s conftest.$ac_objext; then
13544  ac_cv_lbl_sockaddr_has_sa_len=yes
13545else
13546  echo "$as_me: failed program was:" >&5
13547sed 's/^/| /' conftest.$ac_ext >&5
13548
13549	ac_cv_lbl_sockaddr_has_sa_len=no
13550fi
13551
13552rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13553fi
13554
13555    { echo "$as_me:$LINENO: result: $ac_cv_lbl_sockaddr_has_sa_len" >&5
13556echo "${ECHO_T}$ac_cv_lbl_sockaddr_has_sa_len" >&6; }
13557    if test $ac_cv_lbl_sockaddr_has_sa_len = yes ; then
13558
13559cat >>confdefs.h <<\_ACEOF
13560#define HAVE_SOCKADDR_SA_LEN 1
13561_ACEOF
13562
13563    fi
13564
13565{ echo "$as_me:$LINENO: checking if unaligned accesses fail" >&5
13566echo $ECHO_N "checking if unaligned accesses fail... $ECHO_C" >&6; }
13567    if test "${ac_cv_lbl_unaligned_fail+set}" = set; then
13568  echo $ECHO_N "(cached) $ECHO_C" >&6
13569else
13570  case "$host_cpu" in
13571
13572	#
13573	# These are CPU types where:
13574	#
13575	#	the CPU faults on an unaligned access, but at least some
13576	#	OSes that support that CPU catch the fault and simulate
13577	#	the unaligned access (e.g., Alpha/{Digital,Tru64} UNIX) -
13578	#	the simulation is slow, so we don't want to use it;
13579	#
13580	#	the CPU, I infer (from the old
13581	#
13582	# XXX: should also check that they don't do weird things (like on arm)
13583	#
13584	#	comment) doesn't fault on unaligned accesses, but doesn't
13585	#	do a normal unaligned fetch, either (e.g., presumably, ARM);
13586	#
13587	#	for whatever reason, the test program doesn't work
13588	#	(this has been claimed to be the case for several of those
13589	#	CPUs - I don't know what the problem is; the problem
13590	#	was reported as "the test program dumps core" for SuperH,
13591	#	but that's what the test program is *supposed* to do -
13592	#	it dumps core before it writes anything, so the test
13593	#	for an empty output file should find an empty output
13594	#	file and conclude that unaligned accesses don't work).
13595	#
13596	# This run-time test won't work if you're cross-compiling, so
13597	# in order to support cross-compiling for a particular CPU,
13598	# we have to wire in the list of CPU types anyway, as far as
13599	# I know, so perhaps we should just have a set of CPUs on
13600	# which we know it doesn't work, a set of CPUs on which we
13601	# know it does work, and have the script just fail on other
13602	# cpu types and update it when such a failure occurs.
13603	#
13604	alpha*|arm*|bfin*|hp*|mips*|sh*|sparc*|ia64|nv1)
13605		ac_cv_lbl_unaligned_fail=yes
13606		;;
13607
13608	*)
13609		cat >conftest.c <<EOF
13610#		include <sys/types.h>
13611#		include <sys/wait.h>
13612#		include <stdio.h>
13613		unsigned char a[5] = { 1, 2, 3, 4, 5 };
13614		main() {
13615		unsigned int i;
13616		pid_t pid;
13617		int status;
13618		/* avoid "core dumped" message */
13619		pid = fork();
13620		if (pid <  0)
13621			exit(2);
13622		if (pid > 0) {
13623			/* parent */
13624			pid = waitpid(pid, &status, 0);
13625			if (pid < 0)
13626				exit(3);
13627			exit(!WIFEXITED(status));
13628		}
13629		/* child */
13630		i = *(unsigned int *)&a[1];
13631		printf("%d\n", i);
13632		exit(0);
13633		}
13634EOF
13635		${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS \
13636		    conftest.c $LIBS >/dev/null 2>&1
13637		if test ! -x conftest ; then
13638						ac_cv_lbl_unaligned_fail=yes
13639		else
13640			./conftest >conftest.out
13641			if test ! -s conftest.out ; then
13642				ac_cv_lbl_unaligned_fail=yes
13643			else
13644				ac_cv_lbl_unaligned_fail=no
13645			fi
13646		fi
13647		rm -f -r conftest* core core.conftest
13648		;;
13649	esac
13650fi
13651
13652    { echo "$as_me:$LINENO: result: $ac_cv_lbl_unaligned_fail" >&5
13653echo "${ECHO_T}$ac_cv_lbl_unaligned_fail" >&6; }
13654    if test $ac_cv_lbl_unaligned_fail = yes ; then
13655
13656cat >>confdefs.h <<\_ACEOF
13657#define LBL_ALIGN 1
13658_ACEOF
13659
13660    fi
13661
13662
13663	{ echo "$as_me:$LINENO: checking for h_errno" >&5
13664echo $ECHO_N "checking for h_errno... $ECHO_C" >&6; }
13665	if test "${ac_cv_var_h_errno+set}" = set; then
13666  echo $ECHO_N "(cached) $ECHO_C" >&6
13667else
13668  cat >conftest.$ac_ext <<_ACEOF
13669/* confdefs.h.  */
13670_ACEOF
13671cat confdefs.h >>conftest.$ac_ext
13672cat >>conftest.$ac_ext <<_ACEOF
13673/* end confdefs.h.  */
13674
13675#		include <sys/types.h>
13676#		include <netdb.h>
13677int
13678main ()
13679{
13680int foo = h_errno;
13681  ;
13682  return 0;
13683}
13684_ACEOF
13685rm -f conftest.$ac_objext
13686if { (ac_try="$ac_compile"
13687case "(($ac_try" in
13688  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13689  *) ac_try_echo=$ac_try;;
13690esac
13691eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13692  (eval "$ac_compile") 2>conftest.er1
13693  ac_status=$?
13694  grep -v '^ *+' conftest.er1 >conftest.err
13695  rm -f conftest.er1
13696  cat conftest.err >&5
13697  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13698  (exit $ac_status); } && {
13699	 test -z "$ac_c_werror_flag" ||
13700	 test ! -s conftest.err
13701       } && test -s conftest.$ac_objext; then
13702  ac_cv_var_h_errno=yes
13703else
13704  echo "$as_me: failed program was:" >&5
13705sed 's/^/| /' conftest.$ac_ext >&5
13706
13707	ac_cv_var_h_errno=no
13708fi
13709
13710rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13711fi
13712
13713	{ echo "$as_me:$LINENO: result: $ac_cv_var_h_errno" >&5
13714echo "${ECHO_T}$ac_cv_var_h_errno" >&6; }
13715	if test "$ac_cv_var_h_errno" = "yes"; then
13716		cat >>confdefs.h <<\_ACEOF
13717#define HAVE_H_ERRNO 1
13718_ACEOF
13719
13720	fi
13721
13722
13723# Check for SSLeay
13724{ echo "$as_me:$LINENO: checking whether to use SSLeay libcrypto" >&5
13725echo $ECHO_N "checking whether to use SSLeay libcrypto... $ECHO_C" >&6; }
13726# Specify location for both includes and libraries.
13727want_libcrypto=youmama
13728
13729# Check whether --with-crypto was given.
13730if test "${with_crypto+set}" = set; then
13731  withval=$with_crypto;
13732	if test $withval = no
13733	then
13734		want_libcrypto=no
13735		{ echo "$as_me:$LINENO: result: no" >&5
13736echo "${ECHO_T}no" >&6; }
13737	elif test $withval = yes
13738	then
13739		want_libcrypto=yes
13740		{ echo "$as_me:$LINENO: result: yes" >&5
13741echo "${ECHO_T}yes" >&6; }
13742	else
13743		want_libcrypto=yes
13744		{ echo "$as_me:$LINENO: result: yes" >&5
13745echo "${ECHO_T}yes" >&6; }
13746		crypto_dir=$withval
13747	fi
13748
13749else
13750
13751	#
13752	# Use libcrypto if it's present, otherwise don't.
13753	#
13754	want_libcrypto=ifavailable
13755	{ echo "$as_me:$LINENO: result: yes, if available" >&5
13756echo "${ECHO_T}yes, if available" >&6; }
13757
13758fi
13759
13760if test "$want_libcrypto" != "no"; then
13761	ac_cv_ssleay_path=no
13762	incdir=no
13763	if test "x$crypto_dir" = x; then
13764		#
13765		# Location not specified; check the default locations.
13766		#
13767		{ echo "$as_me:$LINENO: checking where SSLeay is located" >&5
13768echo $ECHO_N "checking where SSLeay is located... $ECHO_C" >&6; }
13769		dirs="/usr /usr/local /usr/local/ssl /usr/pkg"
13770		if test "x${host_alias}" != x; then
13771			dirs="/usr/${host_alias} $dirs"
13772		fi
13773		for dir in $dirs; do
13774
13775	#
13776	# Find the last component of $libdir; it's not necessarily
13777	# "lib" - it might be "lib64" on, for example, x86-64
13778	# Linux systems.
13779	#
13780	# We assume the directory in which we're looking for
13781	# libcrypto has a subdirectory with that as its name.
13782	#
13783	tmplib=`echo "$libdir" | sed 's,.*/,,'`
13784
13785	#
13786	# XXX - is there a better way to check if a given library is
13787	# in a given directory than checking each of the possible
13788	# shared library suffixes?
13789	#
13790	# Are there any other suffixes we need to look for?  Do we
13791	# have to worry about ".so.{version}"?
13792	#
13793	# Or should we just look for "libcrypto.*"?
13794	#
13795	if test -d "$dir/$tmplib" -a \( -f "$dir/$tmplib/libcrypto.a" -o \
13796		          	    -f "$dir/$tmplib/libcrypto.so" -o \
13797		          	    -f "$dir/$tmplib/libcrypto.sl" -o \
13798			  	    -f "$dir/$tmplib/libcrypto.dylib" \); then
13799		ac_cv_ssleay_path="$dir"
13800	fi
13801
13802	#
13803	# Make sure we have the headers as well.
13804	#
13805	if test -d "$dir/include/openssl" -a -f "$dir/include/openssl/des.h"; then
13806		incdir="-I$dir/include"
13807	fi
13808
13809
13810			if test "$ac_cv_ssleay_path" != "no" -a "$incdir" != "no"; then
13811				break;
13812			else
13813				ac_cv_ssleay_path=no
13814				incdir=no
13815			fi
13816		done
13817		if test "$ac_cv_ssleay_path" != no; then
13818			{ echo "$as_me:$LINENO: result: $ac_cv_ssleay_path" >&5
13819echo "${ECHO_T}$ac_cv_ssleay_path" >&6; }
13820		fi
13821	else
13822		{ echo "$as_me:$LINENO: checking for SSLeay in $crypto_dir" >&5
13823echo $ECHO_N "checking for SSLeay in $crypto_dir... $ECHO_C" >&6; }
13824
13825	#
13826	# Find the last component of $libdir; it's not necessarily
13827	# "lib" - it might be "lib64" on, for example, x86-64
13828	# Linux systems.
13829	#
13830	# We assume the directory in which we're looking for
13831	# libcrypto has a subdirectory with that as its name.
13832	#
13833	tmplib=`echo "$libdir" | sed 's,.*/,,'`
13834
13835	#
13836	# XXX - is there a better way to check if a given library is
13837	# in a given directory than checking each of the possible
13838	# shared library suffixes?
13839	#
13840	# Are there any other suffixes we need to look for?  Do we
13841	# have to worry about ".so.{version}"?
13842	#
13843	# Or should we just look for "libcrypto.*"?
13844	#
13845	if test -d "$crypto_dir/$tmplib" -a \( -f "$crypto_dir/$tmplib/libcrypto.a" -o \
13846		          	    -f "$crypto_dir/$tmplib/libcrypto.so" -o \
13847		          	    -f "$crypto_dir/$tmplib/libcrypto.sl" -o \
13848			  	    -f "$crypto_dir/$tmplib/libcrypto.dylib" \); then
13849		ac_cv_ssleay_path="$crypto_dir"
13850	fi
13851
13852	#
13853	# Make sure we have the headers as well.
13854	#
13855	if test -d "$crypto_dir/include/openssl" -a -f "$crypto_dir/include/openssl/des.h"; then
13856		incdir="-I$crypto_dir/include"
13857	fi
13858
13859		if test "$ac_cv_ssleay_path" != no; then
13860			{ echo "$as_me:$LINENO: result: found" >&5
13861echo "${ECHO_T}found" >&6; }
13862		fi
13863	fi
13864	if test "$ac_cv_ssleay_path" != no; then
13865		V_INCLS="$V_INCLS $incdir"
13866		if test "$dir" != "/usr"; then
13867			LDFLAGS="-L$dir/lib $LDFLAGS"
13868		fi
13869		if test -f $ac_cv_ssleay_path/lib/libRSAglue.a; then
13870			LIBS="$LIBS -lRSAglue"
13871		fi
13872		if test -f $ac_cv_ssleay_path/lib/librsaref.a; then
13873			LIBS="$LIBS -lrsaref"
13874		fi
13875
13876{ echo "$as_me:$LINENO: checking for DES_cbc_encrypt in -lcrypto" >&5
13877echo $ECHO_N "checking for DES_cbc_encrypt in -lcrypto... $ECHO_C" >&6; }
13878if test "${ac_cv_lib_crypto_DES_cbc_encrypt+set}" = set; then
13879  echo $ECHO_N "(cached) $ECHO_C" >&6
13880else
13881  ac_check_lib_save_LIBS=$LIBS
13882LIBS="-lcrypto  $LIBS"
13883cat >conftest.$ac_ext <<_ACEOF
13884/* confdefs.h.  */
13885_ACEOF
13886cat confdefs.h >>conftest.$ac_ext
13887cat >>conftest.$ac_ext <<_ACEOF
13888/* end confdefs.h.  */
13889
13890/* Override any GCC internal prototype to avoid an error.
13891   Use char because int might match the return type of a GCC
13892   builtin and then its argument prototype would still apply.  */
13893#ifdef __cplusplus
13894extern "C"
13895#endif
13896char DES_cbc_encrypt ();
13897int
13898main ()
13899{
13900return DES_cbc_encrypt ();
13901  ;
13902  return 0;
13903}
13904_ACEOF
13905rm -f conftest.$ac_objext conftest$ac_exeext
13906if { (ac_try="$ac_link"
13907case "(($ac_try" in
13908  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13909  *) ac_try_echo=$ac_try;;
13910esac
13911eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13912  (eval "$ac_link") 2>conftest.er1
13913  ac_status=$?
13914  grep -v '^ *+' conftest.er1 >conftest.err
13915  rm -f conftest.er1
13916  cat conftest.err >&5
13917  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13918  (exit $ac_status); } && {
13919	 test -z "$ac_c_werror_flag" ||
13920	 test ! -s conftest.err
13921       } && test -s conftest$ac_exeext &&
13922       $as_test_x conftest$ac_exeext; then
13923  ac_cv_lib_crypto_DES_cbc_encrypt=yes
13924else
13925  echo "$as_me: failed program was:" >&5
13926sed 's/^/| /' conftest.$ac_ext >&5
13927
13928	ac_cv_lib_crypto_DES_cbc_encrypt=no
13929fi
13930
13931rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13932      conftest$ac_exeext conftest.$ac_ext
13933LIBS=$ac_check_lib_save_LIBS
13934fi
13935{ echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_DES_cbc_encrypt" >&5
13936echo "${ECHO_T}$ac_cv_lib_crypto_DES_cbc_encrypt" >&6; }
13937if test $ac_cv_lib_crypto_DES_cbc_encrypt = yes; then
13938  cat >>confdefs.h <<_ACEOF
13939#define HAVE_LIBCRYPTO 1
13940_ACEOF
13941
13942  LIBS="-lcrypto $LIBS"
13943
13944fi
13945
13946
13947		CPPFLAGS="$CPPFLAGS $V_INCLS"
13948
13949for ac_header in openssl/evp.h
13950do
13951as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13952if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13953  { echo "$as_me:$LINENO: checking for $ac_header" >&5
13954echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13955if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13956  echo $ECHO_N "(cached) $ECHO_C" >&6
13957fi
13958ac_res=`eval echo '${'$as_ac_Header'}'`
13959	       { echo "$as_me:$LINENO: result: $ac_res" >&5
13960echo "${ECHO_T}$ac_res" >&6; }
13961else
13962  # Is the header compilable?
13963{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
13964echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13965cat >conftest.$ac_ext <<_ACEOF
13966/* confdefs.h.  */
13967_ACEOF
13968cat confdefs.h >>conftest.$ac_ext
13969cat >>conftest.$ac_ext <<_ACEOF
13970/* end confdefs.h.  */
13971$ac_includes_default
13972#include <$ac_header>
13973_ACEOF
13974rm -f conftest.$ac_objext
13975if { (ac_try="$ac_compile"
13976case "(($ac_try" in
13977  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13978  *) ac_try_echo=$ac_try;;
13979esac
13980eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13981  (eval "$ac_compile") 2>conftest.er1
13982  ac_status=$?
13983  grep -v '^ *+' conftest.er1 >conftest.err
13984  rm -f conftest.er1
13985  cat conftest.err >&5
13986  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13987  (exit $ac_status); } && {
13988	 test -z "$ac_c_werror_flag" ||
13989	 test ! -s conftest.err
13990       } && test -s conftest.$ac_objext; then
13991  ac_header_compiler=yes
13992else
13993  echo "$as_me: failed program was:" >&5
13994sed 's/^/| /' conftest.$ac_ext >&5
13995
13996	ac_header_compiler=no
13997fi
13998
13999rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14000{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14001echo "${ECHO_T}$ac_header_compiler" >&6; }
14002
14003# Is the header present?
14004{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14005echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14006cat >conftest.$ac_ext <<_ACEOF
14007/* confdefs.h.  */
14008_ACEOF
14009cat confdefs.h >>conftest.$ac_ext
14010cat >>conftest.$ac_ext <<_ACEOF
14011/* end confdefs.h.  */
14012#include <$ac_header>
14013_ACEOF
14014if { (ac_try="$ac_cpp conftest.$ac_ext"
14015case "(($ac_try" in
14016  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14017  *) ac_try_echo=$ac_try;;
14018esac
14019eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14020  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14021  ac_status=$?
14022  grep -v '^ *+' conftest.er1 >conftest.err
14023  rm -f conftest.er1
14024  cat conftest.err >&5
14025  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14026  (exit $ac_status); } >/dev/null && {
14027	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14028	 test ! -s conftest.err
14029       }; then
14030  ac_header_preproc=yes
14031else
14032  echo "$as_me: failed program was:" >&5
14033sed 's/^/| /' conftest.$ac_ext >&5
14034
14035  ac_header_preproc=no
14036fi
14037
14038rm -f conftest.err conftest.$ac_ext
14039{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14040echo "${ECHO_T}$ac_header_preproc" >&6; }
14041
14042# So?  What about this header?
14043case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14044  yes:no: )
14045    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14046echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14047    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14048echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14049    ac_header_preproc=yes
14050    ;;
14051  no:yes:* )
14052    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14053echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14054    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14055echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14056    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14057echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14058    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14059echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14060    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14061echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14062    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14063echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14064
14065    ;;
14066esac
14067{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14068echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14069if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14070  echo $ECHO_N "(cached) $ECHO_C" >&6
14071else
14072  eval "$as_ac_Header=\$ac_header_preproc"
14073fi
14074ac_res=`eval echo '${'$as_ac_Header'}'`
14075	       { echo "$as_me:$LINENO: result: $ac_res" >&5
14076echo "${ECHO_T}$ac_res" >&6; }
14077
14078fi
14079if test `eval echo '${'$as_ac_Header'}'` = yes; then
14080  cat >>confdefs.h <<_ACEOF
14081#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14082_ACEOF
14083
14084fi
14085
14086done
14087
14088	else
14089		#
14090		# Not found.  Did the user explicitly ask for it?
14091		#
14092		{ echo "$as_me:$LINENO: result: not found" >&5
14093echo "${ECHO_T}not found" >&6; }
14094		if test "$want_libcrypto" = yes; then
14095			{ { echo "$as_me:$LINENO: error: SSLeay not found" >&5
14096echo "$as_me: error: SSLeay not found" >&2;}
14097   { (exit 1); exit 1; }; }
14098		fi
14099	fi
14100fi
14101
14102if test "$missing_includes" = "yes"; then
14103	CPPFLAGS="$CPPFLAGS -I\$(srcdir)/missing"
14104	V_INCLS="$V_INCLS -I\$(srcdir)/missing"
14105fi
14106
14107
14108
14109
14110
14111
14112
14113
14114
14115
14116# Find a good install program.  We prefer a C program (faster),
14117# so one script is as good as another.  But avoid the broken or
14118# incompatible versions:
14119# SysV /etc/install, /usr/sbin/install
14120# SunOS /usr/etc/install
14121# IRIX /sbin/install
14122# AIX /bin/install
14123# AmigaOS /C/install, which installs bootblocks on floppy discs
14124# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
14125# AFS /usr/afsws/bin/install, which mishandles nonexistent args
14126# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
14127# OS/2's system install, which has a completely different semantic
14128# ./install, which can be erroneously created by make from ./install.sh.
14129{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
14130echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
14131if test -z "$INSTALL"; then
14132if test "${ac_cv_path_install+set}" = set; then
14133  echo $ECHO_N "(cached) $ECHO_C" >&6
14134else
14135  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14136for as_dir in $PATH
14137do
14138  IFS=$as_save_IFS
14139  test -z "$as_dir" && as_dir=.
14140  # Account for people who put trailing slashes in PATH elements.
14141case $as_dir/ in
14142  ./ | .// | /cC/* | \
14143  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
14144  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
14145  /usr/ucb/* ) ;;
14146  *)
14147    # OSF1 and SCO ODT 3.0 have their own names for install.
14148    # Don't use installbsd from OSF since it installs stuff as root
14149    # by default.
14150    for ac_prog in ginstall scoinst install; do
14151      for ac_exec_ext in '' $ac_executable_extensions; do
14152	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
14153	  if test $ac_prog = install &&
14154	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
14155	    # AIX install.  It has an incompatible calling convention.
14156	    :
14157	  elif test $ac_prog = install &&
14158	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
14159	    # program-specific install script used by HP pwplus--don't use.
14160	    :
14161	  else
14162	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
14163	    break 3
14164	  fi
14165	fi
14166      done
14167    done
14168    ;;
14169esac
14170done
14171IFS=$as_save_IFS
14172
14173
14174fi
14175  if test "${ac_cv_path_install+set}" = set; then
14176    INSTALL=$ac_cv_path_install
14177  else
14178    # As a last resort, use the slow shell script.  Don't cache a
14179    # value for INSTALL within a source directory, because that will
14180    # break other packages using the cache if that directory is
14181    # removed, or if the value is a relative name.
14182    INSTALL=$ac_install_sh
14183  fi
14184fi
14185{ echo "$as_me:$LINENO: result: $INSTALL" >&5
14186echo "${ECHO_T}$INSTALL" >&6; }
14187
14188# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
14189# It thinks the first close brace ends the variable substitution.
14190test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
14191
14192test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
14193
14194test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
14195
14196
14197ac_config_headers="$ac_config_headers config.h"
14198
14199
14200ac_config_commands="$ac_config_commands default-1"
14201
14202ac_config_files="$ac_config_files Makefile tcpdump.1"
14203
14204cat >confcache <<\_ACEOF
14205# This file is a shell script that caches the results of configure
14206# tests run on this system so they can be shared between configure
14207# scripts and configure runs, see configure's option --config-cache.
14208# It is not useful on other systems.  If it contains results you don't
14209# want to keep, you may remove or edit it.
14210#
14211# config.status only pays attention to the cache file if you give it
14212# the --recheck option to rerun configure.
14213#
14214# `ac_cv_env_foo' variables (set or unset) will be overridden when
14215# loading this file, other *unset* `ac_cv_foo' will be assigned the
14216# following values.
14217
14218_ACEOF
14219
14220# The following way of writing the cache mishandles newlines in values,
14221# but we know of no workaround that is simple, portable, and efficient.
14222# So, we kill variables containing newlines.
14223# Ultrix sh set writes to stderr and can't be redirected directly,
14224# and sets the high bit in the cache file unless we assign to the vars.
14225(
14226  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14227    eval ac_val=\$$ac_var
14228    case $ac_val in #(
14229    *${as_nl}*)
14230      case $ac_var in #(
14231      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
14232echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
14233      esac
14234      case $ac_var in #(
14235      _ | IFS | as_nl) ;; #(
14236      *) $as_unset $ac_var ;;
14237      esac ;;
14238    esac
14239  done
14240
14241  (set) 2>&1 |
14242    case $as_nl`(ac_space=' '; set) 2>&1` in #(
14243    *${as_nl}ac_space=\ *)
14244      # `set' does not quote correctly, so add quotes (double-quote
14245      # substitution turns \\\\ into \\, and sed turns \\ into \).
14246      sed -n \
14247	"s/'/'\\\\''/g;
14248	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14249      ;; #(
14250    *)
14251      # `set' quotes correctly as required by POSIX, so do not add quotes.
14252      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14253      ;;
14254    esac |
14255    sort
14256) |
14257  sed '
14258     /^ac_cv_env_/b end
14259     t clear
14260     :clear
14261     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14262     t end
14263     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14264     :end' >>confcache
14265if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14266  if test -w "$cache_file"; then
14267    test "x$cache_file" != "x/dev/null" &&
14268      { echo "$as_me:$LINENO: updating cache $cache_file" >&5
14269echo "$as_me: updating cache $cache_file" >&6;}
14270    cat confcache >$cache_file
14271  else
14272    { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
14273echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14274  fi
14275fi
14276rm -f confcache
14277
14278test "x$prefix" = xNONE && prefix=$ac_default_prefix
14279# Let make expand exec_prefix.
14280test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14281
14282DEFS=-DHAVE_CONFIG_H
14283
14284ac_libobjs=
14285ac_ltlibobjs=
14286for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14287  # 1. Remove the extension, and $U if already installed.
14288  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14289  ac_i=`echo "$ac_i" | sed "$ac_script"`
14290  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
14291  #    will be set to the directory where LIBOBJS objects are built.
14292  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14293  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
14294done
14295LIBOBJS=$ac_libobjs
14296
14297LTLIBOBJS=$ac_ltlibobjs
14298
14299
14300
14301: ${CONFIG_STATUS=./config.status}
14302ac_clean_files_save=$ac_clean_files
14303ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14304{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
14305echo "$as_me: creating $CONFIG_STATUS" >&6;}
14306cat >$CONFIG_STATUS <<_ACEOF
14307#! $SHELL
14308# Generated by $as_me.
14309# Run this file to recreate the current configuration.
14310# Compiler output produced by configure, useful for debugging
14311# configure, is in config.log if it exists.
14312
14313debug=false
14314ac_cs_recheck=false
14315ac_cs_silent=false
14316SHELL=\${CONFIG_SHELL-$SHELL}
14317_ACEOF
14318
14319cat >>$CONFIG_STATUS <<\_ACEOF
14320## --------------------- ##
14321## M4sh Initialization.  ##
14322## --------------------- ##
14323
14324# Be more Bourne compatible
14325DUALCASE=1; export DUALCASE # for MKS sh
14326if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14327  emulate sh
14328  NULLCMD=:
14329  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
14330  # is contrary to our usage.  Disable this feature.
14331  alias -g '${1+"$@"}'='"$@"'
14332  setopt NO_GLOB_SUBST
14333else
14334  case `(set -o) 2>/dev/null` in
14335  *posix*) set -o posix ;;
14336esac
14337
14338fi
14339
14340
14341
14342
14343# PATH needs CR
14344# Avoid depending upon Character Ranges.
14345as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14346as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14347as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14348as_cr_digits='0123456789'
14349as_cr_alnum=$as_cr_Letters$as_cr_digits
14350
14351# The user is always right.
14352if test "${PATH_SEPARATOR+set}" != set; then
14353  echo "#! /bin/sh" >conf$$.sh
14354  echo  "exit 0"   >>conf$$.sh
14355  chmod +x conf$$.sh
14356  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14357    PATH_SEPARATOR=';'
14358  else
14359    PATH_SEPARATOR=:
14360  fi
14361  rm -f conf$$.sh
14362fi
14363
14364# Support unset when possible.
14365if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
14366  as_unset=unset
14367else
14368  as_unset=false
14369fi
14370
14371
14372# IFS
14373# We need space, tab and new line, in precisely that order.  Quoting is
14374# there to prevent editors from complaining about space-tab.
14375# (If _AS_PATH_WALK were called with IFS unset, it would disable word
14376# splitting by setting IFS to empty value.)
14377as_nl='
14378'
14379IFS=" ""	$as_nl"
14380
14381# Find who we are.  Look in the path if we contain no directory separator.
14382case $0 in
14383  *[\\/]* ) as_myself=$0 ;;
14384  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14385for as_dir in $PATH
14386do
14387  IFS=$as_save_IFS
14388  test -z "$as_dir" && as_dir=.
14389  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14390done
14391IFS=$as_save_IFS
14392
14393     ;;
14394esac
14395# We did not find ourselves, most probably we were run as `sh COMMAND'
14396# in which case we are not to be found in the path.
14397if test "x$as_myself" = x; then
14398  as_myself=$0
14399fi
14400if test ! -f "$as_myself"; then
14401  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14402  { (exit 1); exit 1; }
14403fi
14404
14405# Work around bugs in pre-3.0 UWIN ksh.
14406for as_var in ENV MAIL MAILPATH
14407do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
14408done
14409PS1='$ '
14410PS2='> '
14411PS4='+ '
14412
14413# NLS nuisances.
14414for as_var in \
14415  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
14416  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
14417  LC_TELEPHONE LC_TIME
14418do
14419  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
14420    eval $as_var=C; export $as_var
14421  else
14422    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
14423  fi
14424done
14425
14426# Required to use basename.
14427if expr a : '\(a\)' >/dev/null 2>&1 &&
14428   test "X`expr 00001 : '.*\(...\)'`" = X001; then
14429  as_expr=expr
14430else
14431  as_expr=false
14432fi
14433
14434if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14435  as_basename=basename
14436else
14437  as_basename=false
14438fi
14439
14440
14441# Name of the executable.
14442as_me=`$as_basename -- "$0" ||
14443$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14444	 X"$0" : 'X\(//\)$' \| \
14445	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14446echo X/"$0" |
14447    sed '/^.*\/\([^/][^/]*\)\/*$/{
14448	    s//\1/
14449	    q
14450	  }
14451	  /^X\/\(\/\/\)$/{
14452	    s//\1/
14453	    q
14454	  }
14455	  /^X\/\(\/\).*/{
14456	    s//\1/
14457	    q
14458	  }
14459	  s/.*/./; q'`
14460
14461# CDPATH.
14462$as_unset CDPATH
14463
14464
14465
14466  as_lineno_1=$LINENO
14467  as_lineno_2=$LINENO
14468  test "x$as_lineno_1" != "x$as_lineno_2" &&
14469  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
14470
14471  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
14472  # uniformly replaced by the line number.  The first 'sed' inserts a
14473  # line-number line after each line using $LINENO; the second 'sed'
14474  # does the real work.  The second script uses 'N' to pair each
14475  # line-number line with the line containing $LINENO, and appends
14476  # trailing '-' during substitution so that $LINENO is not a special
14477  # case at line end.
14478  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
14479  # scripts with optimization help from Paolo Bonzini.  Blame Lee
14480  # E. McMahon (1931-1989) for sed's syntax.  :-)
14481  sed -n '
14482    p
14483    /[$]LINENO/=
14484  ' <$as_myself |
14485    sed '
14486      s/[$]LINENO.*/&-/
14487      t lineno
14488      b
14489      :lineno
14490      N
14491      :loop
14492      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
14493      t loop
14494      s/-\n.*//
14495    ' >$as_me.lineno &&
14496  chmod +x "$as_me.lineno" ||
14497    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
14498   { (exit 1); exit 1; }; }
14499
14500  # Don't try to exec as it changes $[0], causing all sort of problems
14501  # (the dirname of $[0] is not the place where we might find the
14502  # original and so on.  Autoconf is especially sensitive to this).
14503  . "./$as_me.lineno"
14504  # Exit status is that of the last command.
14505  exit
14506}
14507
14508
14509if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14510  as_dirname=dirname
14511else
14512  as_dirname=false
14513fi
14514
14515ECHO_C= ECHO_N= ECHO_T=
14516case `echo -n x` in
14517-n*)
14518  case `echo 'x\c'` in
14519  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
14520  *)   ECHO_C='\c';;
14521  esac;;
14522*)
14523  ECHO_N='-n';;
14524esac
14525
14526if expr a : '\(a\)' >/dev/null 2>&1 &&
14527   test "X`expr 00001 : '.*\(...\)'`" = X001; then
14528  as_expr=expr
14529else
14530  as_expr=false
14531fi
14532
14533rm -f conf$$ conf$$.exe conf$$.file
14534if test -d conf$$.dir; then
14535  rm -f conf$$.dir/conf$$.file
14536else
14537  rm -f conf$$.dir
14538  mkdir conf$$.dir
14539fi
14540echo >conf$$.file
14541if ln -s conf$$.file conf$$ 2>/dev/null; then
14542  as_ln_s='ln -s'
14543  # ... but there are two gotchas:
14544  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14545  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14546  # In both cases, we have to default to `cp -p'.
14547  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14548    as_ln_s='cp -p'
14549elif ln conf$$.file conf$$ 2>/dev/null; then
14550  as_ln_s=ln
14551else
14552  as_ln_s='cp -p'
14553fi
14554rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14555rmdir conf$$.dir 2>/dev/null
14556
14557if mkdir -p . 2>/dev/null; then
14558  as_mkdir_p=:
14559else
14560  test -d ./-p && rmdir ./-p
14561  as_mkdir_p=false
14562fi
14563
14564if test -x / >/dev/null 2>&1; then
14565  as_test_x='test -x'
14566else
14567  if ls -dL / >/dev/null 2>&1; then
14568    as_ls_L_option=L
14569  else
14570    as_ls_L_option=
14571  fi
14572  as_test_x='
14573    eval sh -c '\''
14574      if test -d "$1"; then
14575        test -d "$1/.";
14576      else
14577	case $1 in
14578        -*)set "./$1";;
14579	esac;
14580	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
14581	???[sx]*):;;*)false;;esac;fi
14582    '\'' sh
14583  '
14584fi
14585as_executable_p=$as_test_x
14586
14587# Sed expression to map a string onto a valid CPP name.
14588as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14589
14590# Sed expression to map a string onto a valid variable name.
14591as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14592
14593
14594exec 6>&1
14595
14596# Save the log message, to keep $[0] and so on meaningful, and to
14597# report actual input values of CONFIG_FILES etc. instead of their
14598# values after options handling.
14599ac_log="
14600This file was extended by $as_me, which was
14601generated by GNU Autoconf 2.61.  Invocation command line was
14602
14603  CONFIG_FILES    = $CONFIG_FILES
14604  CONFIG_HEADERS  = $CONFIG_HEADERS
14605  CONFIG_LINKS    = $CONFIG_LINKS
14606  CONFIG_COMMANDS = $CONFIG_COMMANDS
14607  $ $0 $@
14608
14609on `(hostname || uname -n) 2>/dev/null | sed 1q`
14610"
14611
14612_ACEOF
14613
14614cat >>$CONFIG_STATUS <<_ACEOF
14615# Files that config.status was made for.
14616config_files="$ac_config_files"
14617config_headers="$ac_config_headers"
14618config_commands="$ac_config_commands"
14619
14620_ACEOF
14621
14622cat >>$CONFIG_STATUS <<\_ACEOF
14623ac_cs_usage="\
14624\`$as_me' instantiates files from templates according to the
14625current configuration.
14626
14627Usage: $0 [OPTIONS] [FILE]...
14628
14629  -h, --help       print this help, then exit
14630  -V, --version    print version number and configuration settings, then exit
14631  -q, --quiet      do not print progress messages
14632  -d, --debug      don't remove temporary files
14633      --recheck    update $as_me by reconfiguring in the same conditions
14634  --file=FILE[:TEMPLATE]
14635		   instantiate the configuration file FILE
14636  --header=FILE[:TEMPLATE]
14637		   instantiate the configuration header FILE
14638
14639Configuration files:
14640$config_files
14641
14642Configuration headers:
14643$config_headers
14644
14645Configuration commands:
14646$config_commands
14647
14648Report bugs to <bug-autoconf@gnu.org>."
14649
14650_ACEOF
14651cat >>$CONFIG_STATUS <<_ACEOF
14652ac_cs_version="\\
14653config.status
14654configured by $0, generated by GNU Autoconf 2.61,
14655  with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
14656
14657Copyright (C) 2006 Free Software Foundation, Inc.
14658This config.status script is free software; the Free Software Foundation
14659gives unlimited permission to copy, distribute and modify it."
14660
14661ac_pwd='$ac_pwd'
14662srcdir='$srcdir'
14663INSTALL='$INSTALL'
14664_ACEOF
14665
14666cat >>$CONFIG_STATUS <<\_ACEOF
14667# If no file are specified by the user, then we need to provide default
14668# value.  By we need to know if files were specified by the user.
14669ac_need_defaults=:
14670while test $# != 0
14671do
14672  case $1 in
14673  --*=*)
14674    ac_option=`expr "X$1" : 'X\([^=]*\)='`
14675    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14676    ac_shift=:
14677    ;;
14678  *)
14679    ac_option=$1
14680    ac_optarg=$2
14681    ac_shift=shift
14682    ;;
14683  esac
14684
14685  case $ac_option in
14686  # Handling of the options.
14687  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14688    ac_cs_recheck=: ;;
14689  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14690    echo "$ac_cs_version"; exit ;;
14691  --debug | --debu | --deb | --de | --d | -d )
14692    debug=: ;;
14693  --file | --fil | --fi | --f )
14694    $ac_shift
14695    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
14696    ac_need_defaults=false;;
14697  --header | --heade | --head | --hea )
14698    $ac_shift
14699    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
14700    ac_need_defaults=false;;
14701  --he | --h)
14702    # Conflict between --help and --header
14703    { echo "$as_me: error: ambiguous option: $1
14704Try \`$0 --help' for more information." >&2
14705   { (exit 1); exit 1; }; };;
14706  --help | --hel | -h )
14707    echo "$ac_cs_usage"; exit ;;
14708  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14709  | -silent | --silent | --silen | --sile | --sil | --si | --s)
14710    ac_cs_silent=: ;;
14711
14712  # This is an error.
14713  -*) { echo "$as_me: error: unrecognized option: $1
14714Try \`$0 --help' for more information." >&2
14715   { (exit 1); exit 1; }; } ;;
14716
14717  *) ac_config_targets="$ac_config_targets $1"
14718     ac_need_defaults=false ;;
14719
14720  esac
14721  shift
14722done
14723
14724ac_configure_extra_args=
14725
14726if $ac_cs_silent; then
14727  exec 6>/dev/null
14728  ac_configure_extra_args="$ac_configure_extra_args --silent"
14729fi
14730
14731_ACEOF
14732cat >>$CONFIG_STATUS <<_ACEOF
14733if \$ac_cs_recheck; then
14734  echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
14735  CONFIG_SHELL=$SHELL
14736  export CONFIG_SHELL
14737  exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14738fi
14739
14740_ACEOF
14741cat >>$CONFIG_STATUS <<\_ACEOF
14742exec 5>>config.log
14743{
14744  echo
14745  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14746## Running $as_me. ##
14747_ASBOX
14748  echo "$ac_log"
14749} >&5
14750
14751_ACEOF
14752cat >>$CONFIG_STATUS <<_ACEOF
14753#
14754# INIT-COMMANDS
14755#
14756
14757
14758_ACEOF
14759
14760cat >>$CONFIG_STATUS <<\_ACEOF
14761
14762# Handling of arguments.
14763for ac_config_target in $ac_config_targets
14764do
14765  case $ac_config_target in
14766    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14767    "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
14768    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14769    "tcpdump.1") CONFIG_FILES="$CONFIG_FILES tcpdump.1" ;;
14770
14771  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
14772echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
14773   { (exit 1); exit 1; }; };;
14774  esac
14775done
14776
14777
14778# If the user did not use the arguments to specify the items to instantiate,
14779# then the envvar interface is used.  Set only those that are not.
14780# We use the long form for the default assignment because of an extremely
14781# bizarre bug on SunOS 4.1.3.
14782if $ac_need_defaults; then
14783  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14784  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14785  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14786fi
14787
14788# Have a temporary directory for convenience.  Make it in the build tree
14789# simply because there is no reason against having it here, and in addition,
14790# creating and moving files from /tmp can sometimes cause problems.
14791# Hook for its removal unless debugging.
14792# Note that there is a small window in which the directory will not be cleaned:
14793# after its creation but before its name has been assigned to `$tmp'.
14794$debug ||
14795{
14796  tmp=
14797  trap 'exit_status=$?
14798  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14799' 0
14800  trap '{ (exit 1); exit 1; }' 1 2 13 15
14801}
14802# Create a (secure) tmp directory for tmp files.
14803
14804{
14805  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14806  test -n "$tmp" && test -d "$tmp"
14807}  ||
14808{
14809  tmp=./conf$$-$RANDOM
14810  (umask 077 && mkdir "$tmp")
14811} ||
14812{
14813   echo "$me: cannot create a temporary directory in ." >&2
14814   { (exit 1); exit 1; }
14815}
14816
14817#
14818# Set up the sed scripts for CONFIG_FILES section.
14819#
14820
14821# No need to generate the scripts if there are no CONFIG_FILES.
14822# This happens for instance when ./config.status config.h
14823if test -n "$CONFIG_FILES"; then
14824
14825_ACEOF
14826
14827
14828
14829ac_delim='%!_!# '
14830for ac_last_try in false false false false false :; do
14831  cat >conf$$subs.sed <<_ACEOF
14832SHELL!$SHELL$ac_delim
14833PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
14834PACKAGE_NAME!$PACKAGE_NAME$ac_delim
14835PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
14836PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
14837PACKAGE_STRING!$PACKAGE_STRING$ac_delim
14838PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
14839exec_prefix!$exec_prefix$ac_delim
14840prefix!$prefix$ac_delim
14841program_transform_name!$program_transform_name$ac_delim
14842bindir!$bindir$ac_delim
14843sbindir!$sbindir$ac_delim
14844libexecdir!$libexecdir$ac_delim
14845datarootdir!$datarootdir$ac_delim
14846datadir!$datadir$ac_delim
14847sysconfdir!$sysconfdir$ac_delim
14848sharedstatedir!$sharedstatedir$ac_delim
14849localstatedir!$localstatedir$ac_delim
14850includedir!$includedir$ac_delim
14851oldincludedir!$oldincludedir$ac_delim
14852docdir!$docdir$ac_delim
14853infodir!$infodir$ac_delim
14854htmldir!$htmldir$ac_delim
14855dvidir!$dvidir$ac_delim
14856pdfdir!$pdfdir$ac_delim
14857psdir!$psdir$ac_delim
14858libdir!$libdir$ac_delim
14859localedir!$localedir$ac_delim
14860mandir!$mandir$ac_delim
14861DEFS!$DEFS$ac_delim
14862ECHO_C!$ECHO_C$ac_delim
14863ECHO_N!$ECHO_N$ac_delim
14864ECHO_T!$ECHO_T$ac_delim
14865LIBS!$LIBS$ac_delim
14866build_alias!$build_alias$ac_delim
14867host_alias!$host_alias$ac_delim
14868target_alias!$target_alias$ac_delim
14869build!$build$ac_delim
14870build_cpu!$build_cpu$ac_delim
14871build_vendor!$build_vendor$ac_delim
14872build_os!$build_os$ac_delim
14873host!$host$ac_delim
14874host_cpu!$host_cpu$ac_delim
14875host_vendor!$host_vendor$ac_delim
14876host_os!$host_os$ac_delim
14877SHLICC2!$SHLICC2$ac_delim
14878CC!$CC$ac_delim
14879CFLAGS!$CFLAGS$ac_delim
14880LDFLAGS!$LDFLAGS$ac_delim
14881CPPFLAGS!$CPPFLAGS$ac_delim
14882ac_ct_CC!$ac_ct_CC$ac_delim
14883EXEEXT!$EXEEXT$ac_delim
14884OBJEXT!$OBJEXT$ac_delim
14885CPP!$CPP$ac_delim
14886GREP!$GREP$ac_delim
14887EGREP!$EGREP$ac_delim
14888LIBOBJS!$LIBOBJS$ac_delim
14889PCAP_CONFIG!$PCAP_CONFIG$ac_delim
14890RANLIB!$RANLIB$ac_delim
14891V_CCOPT!$V_CCOPT$ac_delim
14892V_DEFS!$V_DEFS$ac_delim
14893V_GROUP!$V_GROUP$ac_delim
14894V_INCLS!$V_INCLS$ac_delim
14895V_PCAPDEP!$V_PCAPDEP$ac_delim
14896LOCALSRC!$LOCALSRC$ac_delim
14897MAN_FILE_FORMATS!$MAN_FILE_FORMATS$ac_delim
14898MAN_MISC_INFO!$MAN_MISC_INFO$ac_delim
14899INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
14900INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
14901INSTALL_DATA!$INSTALL_DATA$ac_delim
14902LTLIBOBJS!$LTLIBOBJS$ac_delim
14903_ACEOF
14904
14905  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 71; then
14906    break
14907  elif $ac_last_try; then
14908    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14909echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14910   { (exit 1); exit 1; }; }
14911  else
14912    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14913  fi
14914done
14915
14916ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
14917if test -n "$ac_eof"; then
14918  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
14919  ac_eof=`expr $ac_eof + 1`
14920fi
14921
14922cat >>$CONFIG_STATUS <<_ACEOF
14923cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
14924/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
14925_ACEOF
14926sed '
14927s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
14928s/^/s,@/; s/!/@,|#_!!_#|/
14929:n
14930t n
14931s/'"$ac_delim"'$/,g/; t
14932s/$/\\/; p
14933N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
14934' >>$CONFIG_STATUS <conf$$subs.sed
14935rm -f conf$$subs.sed
14936cat >>$CONFIG_STATUS <<_ACEOF
14937:end
14938s/|#_!!_#|//g
14939CEOF$ac_eof
14940_ACEOF
14941
14942
14943# VPATH may cause trouble with some makes, so we remove $(srcdir),
14944# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14945# trailing colons and then remove the whole line if VPATH becomes empty
14946# (actually we leave an empty line to preserve line numbers).
14947if test "x$srcdir" = x.; then
14948  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
14949s/:*\$(srcdir):*/:/
14950s/:*\${srcdir}:*/:/
14951s/:*@srcdir@:*/:/
14952s/^\([^=]*=[	 ]*\):*/\1/
14953s/:*$//
14954s/^[^=]*=[	 ]*$//
14955}'
14956fi
14957
14958cat >>$CONFIG_STATUS <<\_ACEOF
14959fi # test -n "$CONFIG_FILES"
14960
14961
14962for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
14963do
14964  case $ac_tag in
14965  :[FHLC]) ac_mode=$ac_tag; continue;;
14966  esac
14967  case $ac_mode$ac_tag in
14968  :[FHL]*:*);;
14969  :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
14970echo "$as_me: error: Invalid tag $ac_tag." >&2;}
14971   { (exit 1); exit 1; }; };;
14972  :[FH]-) ac_tag=-:-;;
14973  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14974  esac
14975  ac_save_IFS=$IFS
14976  IFS=:
14977  set x $ac_tag
14978  IFS=$ac_save_IFS
14979  shift
14980  ac_file=$1
14981  shift
14982
14983  case $ac_mode in
14984  :L) ac_source=$1;;
14985  :[FH])
14986    ac_file_inputs=
14987    for ac_f
14988    do
14989      case $ac_f in
14990      -) ac_f="$tmp/stdin";;
14991      *) # Look for the file first in the build tree, then in the source tree
14992	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
14993	 # because $ac_f cannot contain `:'.
14994	 test -f "$ac_f" ||
14995	   case $ac_f in
14996	   [\\/$]*) false;;
14997	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14998	   esac ||
14999	   { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
15000echo "$as_me: error: cannot find input file: $ac_f" >&2;}
15001   { (exit 1); exit 1; }; };;
15002      esac
15003      ac_file_inputs="$ac_file_inputs $ac_f"
15004    done
15005
15006    # Let's still pretend it is `configure' which instantiates (i.e., don't
15007    # use $as_me), people would be surprised to read:
15008    #    /* config.h.  Generated by config.status.  */
15009    configure_input="Generated from "`IFS=:
15010	  echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
15011    if test x"$ac_file" != x-; then
15012      configure_input="$ac_file.  $configure_input"
15013      { echo "$as_me:$LINENO: creating $ac_file" >&5
15014echo "$as_me: creating $ac_file" >&6;}
15015    fi
15016
15017    case $ac_tag in
15018    *:-:* | *:-) cat >"$tmp/stdin";;
15019    esac
15020    ;;
15021  esac
15022
15023  ac_dir=`$as_dirname -- "$ac_file" ||
15024$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15025	 X"$ac_file" : 'X\(//\)[^/]' \| \
15026	 X"$ac_file" : 'X\(//\)$' \| \
15027	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15028echo X"$ac_file" |
15029    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15030	    s//\1/
15031	    q
15032	  }
15033	  /^X\(\/\/\)[^/].*/{
15034	    s//\1/
15035	    q
15036	  }
15037	  /^X\(\/\/\)$/{
15038	    s//\1/
15039	    q
15040	  }
15041	  /^X\(\/\).*/{
15042	    s//\1/
15043	    q
15044	  }
15045	  s/.*/./; q'`
15046  { as_dir="$ac_dir"
15047  case $as_dir in #(
15048  -*) as_dir=./$as_dir;;
15049  esac
15050  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
15051    as_dirs=
15052    while :; do
15053      case $as_dir in #(
15054      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
15055      *) as_qdir=$as_dir;;
15056      esac
15057      as_dirs="'$as_qdir' $as_dirs"
15058      as_dir=`$as_dirname -- "$as_dir" ||
15059$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15060	 X"$as_dir" : 'X\(//\)[^/]' \| \
15061	 X"$as_dir" : 'X\(//\)$' \| \
15062	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15063echo X"$as_dir" |
15064    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15065	    s//\1/
15066	    q
15067	  }
15068	  /^X\(\/\/\)[^/].*/{
15069	    s//\1/
15070	    q
15071	  }
15072	  /^X\(\/\/\)$/{
15073	    s//\1/
15074	    q
15075	  }
15076	  /^X\(\/\).*/{
15077	    s//\1/
15078	    q
15079	  }
15080	  s/.*/./; q'`
15081      test -d "$as_dir" && break
15082    done
15083    test -z "$as_dirs" || eval "mkdir $as_dirs"
15084  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
15085echo "$as_me: error: cannot create directory $as_dir" >&2;}
15086   { (exit 1); exit 1; }; }; }
15087  ac_builddir=.
15088
15089case "$ac_dir" in
15090.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15091*)
15092  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
15093  # A ".." for each directory in $ac_dir_suffix.
15094  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
15095  case $ac_top_builddir_sub in
15096  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15097  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15098  esac ;;
15099esac
15100ac_abs_top_builddir=$ac_pwd
15101ac_abs_builddir=$ac_pwd$ac_dir_suffix
15102# for backward compatibility:
15103ac_top_builddir=$ac_top_build_prefix
15104
15105case $srcdir in
15106  .)  # We are building in place.
15107    ac_srcdir=.
15108    ac_top_srcdir=$ac_top_builddir_sub
15109    ac_abs_top_srcdir=$ac_pwd ;;
15110  [\\/]* | ?:[\\/]* )  # Absolute name.
15111    ac_srcdir=$srcdir$ac_dir_suffix;
15112    ac_top_srcdir=$srcdir
15113    ac_abs_top_srcdir=$srcdir ;;
15114  *) # Relative name.
15115    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15116    ac_top_srcdir=$ac_top_build_prefix$srcdir
15117    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15118esac
15119ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15120
15121
15122  case $ac_mode in
15123  :F)
15124  #
15125  # CONFIG_FILE
15126  #
15127
15128  case $INSTALL in
15129  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15130  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15131  esac
15132_ACEOF
15133
15134cat >>$CONFIG_STATUS <<\_ACEOF
15135# If the template does not know about datarootdir, expand it.
15136# FIXME: This hack should be removed a few years after 2.60.
15137ac_datarootdir_hack=; ac_datarootdir_seen=
15138
15139case `sed -n '/datarootdir/ {
15140  p
15141  q
15142}
15143/@datadir@/p
15144/@docdir@/p
15145/@infodir@/p
15146/@localedir@/p
15147/@mandir@/p
15148' $ac_file_inputs` in
15149*datarootdir*) ac_datarootdir_seen=yes;;
15150*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15151  { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15152echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15153_ACEOF
15154cat >>$CONFIG_STATUS <<_ACEOF
15155  ac_datarootdir_hack='
15156  s&@datadir@&$datadir&g
15157  s&@docdir@&$docdir&g
15158  s&@infodir@&$infodir&g
15159  s&@localedir@&$localedir&g
15160  s&@mandir@&$mandir&g
15161    s&\\\${datarootdir}&$datarootdir&g' ;;
15162esac
15163_ACEOF
15164
15165# Neutralize VPATH when `$srcdir' = `.'.
15166# Shell code in configure.ac might set extrasub.
15167# FIXME: do we really want to maintain this feature?
15168cat >>$CONFIG_STATUS <<_ACEOF
15169  sed "$ac_vpsub
15170$extrasub
15171_ACEOF
15172cat >>$CONFIG_STATUS <<\_ACEOF
15173:t
15174/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15175s&@configure_input@&$configure_input&;t t
15176s&@top_builddir@&$ac_top_builddir_sub&;t t
15177s&@srcdir@&$ac_srcdir&;t t
15178s&@abs_srcdir@&$ac_abs_srcdir&;t t
15179s&@top_srcdir@&$ac_top_srcdir&;t t
15180s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15181s&@builddir@&$ac_builddir&;t t
15182s&@abs_builddir@&$ac_abs_builddir&;t t
15183s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15184s&@INSTALL@&$ac_INSTALL&;t t
15185$ac_datarootdir_hack
15186" $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
15187
15188test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15189  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15190  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15191  { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15192which seems to be undefined.  Please make sure it is defined." >&5
15193echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15194which seems to be undefined.  Please make sure it is defined." >&2;}
15195
15196  rm -f "$tmp/stdin"
15197  case $ac_file in
15198  -) cat "$tmp/out"; rm -f "$tmp/out";;
15199  *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
15200  esac
15201 ;;
15202  :H)
15203  #
15204  # CONFIG_HEADER
15205  #
15206_ACEOF
15207
15208# Transform confdefs.h into a sed script `conftest.defines', that
15209# substitutes the proper values into config.h.in to produce config.h.
15210rm -f conftest.defines conftest.tail
15211# First, append a space to every undef/define line, to ease matching.
15212echo 's/$/ /' >conftest.defines
15213# Then, protect against being on the right side of a sed subst, or in
15214# an unquoted here document, in config.status.  If some macros were
15215# called several times there might be several #defines for the same
15216# symbol, which is useless.  But do not sort them, since the last
15217# AC_DEFINE must be honored.
15218ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15219# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
15220# NAME is the cpp macro being defined, VALUE is the value it is being given.
15221# PARAMS is the parameter list in the macro definition--in most cases, it's
15222# just an empty string.
15223ac_dA='s,^\\([	 #]*\\)[^	 ]*\\([	 ]*'
15224ac_dB='\\)[	 (].*,\\1define\\2'
15225ac_dC=' '
15226ac_dD=' ,'
15227
15228uniq confdefs.h |
15229  sed -n '
15230	t rset
15231	:rset
15232	s/^[	 ]*#[	 ]*define[	 ][	 ]*//
15233	t ok
15234	d
15235	:ok
15236	s/[\\&,]/\\&/g
15237	s/^\('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
15238	s/^\('"$ac_word_re"'\)[	 ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
15239  ' >>conftest.defines
15240
15241# Remove the space that was appended to ease matching.
15242# Then replace #undef with comments.  This is necessary, for
15243# example, in the case of _POSIX_SOURCE, which is predefined and required
15244# on some systems where configure will not decide to define it.
15245# (The regexp can be short, since the line contains either #define or #undef.)
15246echo 's/ $//
15247s,^[	 #]*u.*,/* & */,' >>conftest.defines
15248
15249# Break up conftest.defines:
15250ac_max_sed_lines=50
15251
15252# First sed command is:	 sed -f defines.sed $ac_file_inputs >"$tmp/out1"
15253# Second one is:	 sed -f defines.sed "$tmp/out1" >"$tmp/out2"
15254# Third one will be:	 sed -f defines.sed "$tmp/out2" >"$tmp/out1"
15255# et cetera.
15256ac_in='$ac_file_inputs'
15257ac_out='"$tmp/out1"'
15258ac_nxt='"$tmp/out2"'
15259
15260while :
15261do
15262  # Write a here document:
15263    cat >>$CONFIG_STATUS <<_ACEOF
15264    # First, check the format of the line:
15265    cat >"\$tmp/defines.sed" <<\\CEOF
15266/^[	 ]*#[	 ]*undef[	 ][	 ]*$ac_word_re[	 ]*\$/b def
15267/^[	 ]*#[	 ]*define[	 ][	 ]*$ac_word_re[(	 ]/b def
15268b
15269:def
15270_ACEOF
15271  sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
15272  echo 'CEOF
15273    sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
15274  ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
15275  sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
15276  grep . conftest.tail >/dev/null || break
15277  rm -f conftest.defines
15278  mv conftest.tail conftest.defines
15279done
15280rm -f conftest.defines conftest.tail
15281
15282echo "ac_result=$ac_in" >>$CONFIG_STATUS
15283cat >>$CONFIG_STATUS <<\_ACEOF
15284  if test x"$ac_file" != x-; then
15285    echo "/* $configure_input  */" >"$tmp/config.h"
15286    cat "$ac_result" >>"$tmp/config.h"
15287    if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
15288      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
15289echo "$as_me: $ac_file is unchanged" >&6;}
15290    else
15291      rm -f $ac_file
15292      mv "$tmp/config.h" $ac_file
15293    fi
15294  else
15295    echo "/* $configure_input  */"
15296    cat "$ac_result"
15297  fi
15298  rm -f "$tmp/out12"
15299 ;;
15300
15301  :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
15302echo "$as_me: executing $ac_file commands" >&6;}
15303 ;;
15304  esac
15305
15306
15307  case $ac_file$ac_mode in
15308    "default-1":C) if test -f .devel; then
15309	echo timestamp > stamp-h
15310	cat Makefile-devel-adds >> Makefile
15311	make depend
15312fi ;;
15313
15314  esac
15315done # for ac_tag
15316
15317
15318{ (exit 0); exit 0; }
15319_ACEOF
15320chmod +x $CONFIG_STATUS
15321ac_clean_files=$ac_clean_files_save
15322
15323
15324# configure is writing to config.log, and then calls config.status.
15325# config.status does its own redirection, appending to config.log.
15326# Unfortunately, on DOS this fails, as config.log is still kept open
15327# by configure, so config.status won't be able to write to it; its
15328# output is simply discarded.  So we exec the FD to /dev/null,
15329# effectively closing config.log, so it can be properly (re)opened and
15330# appended to by config.status.  When coming back to configure, we
15331# need to make the FD available again.
15332if test "$no_create" != yes; then
15333  ac_cs_success=:
15334  ac_config_status_args=
15335  test "$silent" = yes &&
15336    ac_config_status_args="$ac_config_status_args --quiet"
15337  exec 5>/dev/null
15338  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15339  exec 5>>config.log
15340  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15341  # would make configure fail if this is the last instruction.
15342  $ac_cs_success || { (exit 1); exit 1; }
15343fi
15344
15345exit 0
15346