1#! /bin/sh
2# From configure.in Revision: 1.188.2.8 .
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
674V_CCOPT
675V_DEFS
676V_GROUP
677V_INCLS
678V_PCAPDEP
679LOCALSRC
680INSTALL_PROGRAM
681INSTALL_SCRIPT
682INSTALL_DATA
683LTLIBOBJS'
684ac_subst_files=''
685      ac_precious_vars='build_alias
686host_alias
687target_alias
688CC
689CFLAGS
690LDFLAGS
691LIBS
692CPPFLAGS
693CPP'
694
695
696# Initialize some variables set by options.
697ac_init_help=
698ac_init_version=false
699# The variables have the same names as the options, with
700# dashes changed to underlines.
701cache_file=/dev/null
702exec_prefix=NONE
703no_create=
704no_recursion=
705prefix=NONE
706program_prefix=NONE
707program_suffix=NONE
708program_transform_name=s,x,x,
709silent=
710site=
711srcdir=
712verbose=
713x_includes=NONE
714x_libraries=NONE
715
716# Installation directory options.
717# These are left unexpanded so users can "make install exec_prefix=/foo"
718# and all the variables that are supposed to be based on exec_prefix
719# by default will actually change.
720# Use braces instead of parens because sh, perl, etc. also accept them.
721# (The list follows the same order as the GNU Coding Standards.)
722bindir='${exec_prefix}/bin'
723sbindir='${exec_prefix}/sbin'
724libexecdir='${exec_prefix}/libexec'
725datarootdir='${prefix}/share'
726datadir='${datarootdir}'
727sysconfdir='${prefix}/etc'
728sharedstatedir='${prefix}/com'
729localstatedir='${prefix}/var'
730includedir='${prefix}/include'
731oldincludedir='/usr/include'
732docdir='${datarootdir}/doc/${PACKAGE}'
733infodir='${datarootdir}/info'
734htmldir='${docdir}'
735dvidir='${docdir}'
736pdfdir='${docdir}'
737psdir='${docdir}'
738libdir='${exec_prefix}/lib'
739localedir='${datarootdir}/locale'
740mandir='${datarootdir}/man'
741
742ac_prev=
743ac_dashdash=
744for ac_option
745do
746  # If the previous option needs an argument, assign it.
747  if test -n "$ac_prev"; then
748    eval $ac_prev=\$ac_option
749    ac_prev=
750    continue
751  fi
752
753  case $ac_option in
754  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
755  *)	ac_optarg=yes ;;
756  esac
757
758  # Accept the important Cygnus configure options, so we can diagnose typos.
759
760  case $ac_dashdash$ac_option in
761  --)
762    ac_dashdash=yes ;;
763
764  -bindir | --bindir | --bindi | --bind | --bin | --bi)
765    ac_prev=bindir ;;
766  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
767    bindir=$ac_optarg ;;
768
769  -build | --build | --buil | --bui | --bu)
770    ac_prev=build_alias ;;
771  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
772    build_alias=$ac_optarg ;;
773
774  -cache-file | --cache-file | --cache-fil | --cache-fi \
775  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
776    ac_prev=cache_file ;;
777  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
778  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
779    cache_file=$ac_optarg ;;
780
781  --config-cache | -C)
782    cache_file=config.cache ;;
783
784  -datadir | --datadir | --datadi | --datad)
785    ac_prev=datadir ;;
786  -datadir=* | --datadir=* | --datadi=* | --datad=*)
787    datadir=$ac_optarg ;;
788
789  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
790  | --dataroo | --dataro | --datar)
791    ac_prev=datarootdir ;;
792  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
793  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
794    datarootdir=$ac_optarg ;;
795
796  -disable-* | --disable-*)
797    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
798    # Reject names that are not valid shell variable names.
799    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
800      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
801   { (exit 1); exit 1; }; }
802    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
803    eval enable_$ac_feature=no ;;
804
805  -docdir | --docdir | --docdi | --doc | --do)
806    ac_prev=docdir ;;
807  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
808    docdir=$ac_optarg ;;
809
810  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
811    ac_prev=dvidir ;;
812  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
813    dvidir=$ac_optarg ;;
814
815  -enable-* | --enable-*)
816    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
817    # Reject names that are not valid shell variable names.
818    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
819      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
820   { (exit 1); exit 1; }; }
821    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
822    eval enable_$ac_feature=\$ac_optarg ;;
823
824  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
825  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
826  | --exec | --exe | --ex)
827    ac_prev=exec_prefix ;;
828  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
829  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
830  | --exec=* | --exe=* | --ex=*)
831    exec_prefix=$ac_optarg ;;
832
833  -gas | --gas | --ga | --g)
834    # Obsolete; use --with-gas.
835    with_gas=yes ;;
836
837  -help | --help | --hel | --he | -h)
838    ac_init_help=long ;;
839  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
840    ac_init_help=recursive ;;
841  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
842    ac_init_help=short ;;
843
844  -host | --host | --hos | --ho)
845    ac_prev=host_alias ;;
846  -host=* | --host=* | --hos=* | --ho=*)
847    host_alias=$ac_optarg ;;
848
849  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
850    ac_prev=htmldir ;;
851  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
852  | --ht=*)
853    htmldir=$ac_optarg ;;
854
855  -includedir | --includedir | --includedi | --included | --include \
856  | --includ | --inclu | --incl | --inc)
857    ac_prev=includedir ;;
858  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
859  | --includ=* | --inclu=* | --incl=* | --inc=*)
860    includedir=$ac_optarg ;;
861
862  -infodir | --infodir | --infodi | --infod | --info | --inf)
863    ac_prev=infodir ;;
864  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
865    infodir=$ac_optarg ;;
866
867  -libdir | --libdir | --libdi | --libd)
868    ac_prev=libdir ;;
869  -libdir=* | --libdir=* | --libdi=* | --libd=*)
870    libdir=$ac_optarg ;;
871
872  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
873  | --libexe | --libex | --libe)
874    ac_prev=libexecdir ;;
875  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
876  | --libexe=* | --libex=* | --libe=*)
877    libexecdir=$ac_optarg ;;
878
879  -localedir | --localedir | --localedi | --localed | --locale)
880    ac_prev=localedir ;;
881  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
882    localedir=$ac_optarg ;;
883
884  -localstatedir | --localstatedir | --localstatedi | --localstated \
885  | --localstate | --localstat | --localsta | --localst | --locals)
886    ac_prev=localstatedir ;;
887  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
888  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
889    localstatedir=$ac_optarg ;;
890
891  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
892    ac_prev=mandir ;;
893  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
894    mandir=$ac_optarg ;;
895
896  -nfp | --nfp | --nf)
897    # Obsolete; use --without-fp.
898    with_fp=no ;;
899
900  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
901  | --no-cr | --no-c | -n)
902    no_create=yes ;;
903
904  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
905  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
906    no_recursion=yes ;;
907
908  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
909  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
910  | --oldin | --oldi | --old | --ol | --o)
911    ac_prev=oldincludedir ;;
912  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
913  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
914  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
915    oldincludedir=$ac_optarg ;;
916
917  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
918    ac_prev=prefix ;;
919  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
920    prefix=$ac_optarg ;;
921
922  -program-prefix | --program-prefix | --program-prefi | --program-pref \
923  | --program-pre | --program-pr | --program-p)
924    ac_prev=program_prefix ;;
925  -program-prefix=* | --program-prefix=* | --program-prefi=* \
926  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
927    program_prefix=$ac_optarg ;;
928
929  -program-suffix | --program-suffix | --program-suffi | --program-suff \
930  | --program-suf | --program-su | --program-s)
931    ac_prev=program_suffix ;;
932  -program-suffix=* | --program-suffix=* | --program-suffi=* \
933  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
934    program_suffix=$ac_optarg ;;
935
936  -program-transform-name | --program-transform-name \
937  | --program-transform-nam | --program-transform-na \
938  | --program-transform-n | --program-transform- \
939  | --program-transform | --program-transfor \
940  | --program-transfo | --program-transf \
941  | --program-trans | --program-tran \
942  | --progr-tra | --program-tr | --program-t)
943    ac_prev=program_transform_name ;;
944  -program-transform-name=* | --program-transform-name=* \
945  | --program-transform-nam=* | --program-transform-na=* \
946  | --program-transform-n=* | --program-transform-=* \
947  | --program-transform=* | --program-transfor=* \
948  | --program-transfo=* | --program-transf=* \
949  | --program-trans=* | --program-tran=* \
950  | --progr-tra=* | --program-tr=* | --program-t=*)
951    program_transform_name=$ac_optarg ;;
952
953  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
954    ac_prev=pdfdir ;;
955  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
956    pdfdir=$ac_optarg ;;
957
958  -psdir | --psdir | --psdi | --psd | --ps)
959    ac_prev=psdir ;;
960  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
961    psdir=$ac_optarg ;;
962
963  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
964  | -silent | --silent | --silen | --sile | --sil)
965    silent=yes ;;
966
967  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
968    ac_prev=sbindir ;;
969  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
970  | --sbi=* | --sb=*)
971    sbindir=$ac_optarg ;;
972
973  -sharedstatedir | --sharedstatedir | --sharedstatedi \
974  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
975  | --sharedst | --shareds | --shared | --share | --shar \
976  | --sha | --sh)
977    ac_prev=sharedstatedir ;;
978  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
979  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
980  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
981  | --sha=* | --sh=*)
982    sharedstatedir=$ac_optarg ;;
983
984  -site | --site | --sit)
985    ac_prev=site ;;
986  -site=* | --site=* | --sit=*)
987    site=$ac_optarg ;;
988
989  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
990    ac_prev=srcdir ;;
991  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
992    srcdir=$ac_optarg ;;
993
994  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
995  | --syscon | --sysco | --sysc | --sys | --sy)
996    ac_prev=sysconfdir ;;
997  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
998  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
999    sysconfdir=$ac_optarg ;;
1000
1001  -target | --target | --targe | --targ | --tar | --ta | --t)
1002    ac_prev=target_alias ;;
1003  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1004    target_alias=$ac_optarg ;;
1005
1006  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1007    verbose=yes ;;
1008
1009  -version | --version | --versio | --versi | --vers | -V)
1010    ac_init_version=: ;;
1011
1012  -with-* | --with-*)
1013    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1014    # Reject names that are not valid shell variable names.
1015    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1016      { echo "$as_me: error: invalid package name: $ac_package" >&2
1017   { (exit 1); exit 1; }; }
1018    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1019    eval with_$ac_package=\$ac_optarg ;;
1020
1021  -without-* | --without-*)
1022    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1023    # Reject names that are not valid shell variable names.
1024    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1025      { echo "$as_me: error: invalid package name: $ac_package" >&2
1026   { (exit 1); exit 1; }; }
1027    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1028    eval with_$ac_package=no ;;
1029
1030  --x)
1031    # Obsolete; use --with-x.
1032    with_x=yes ;;
1033
1034  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1035  | --x-incl | --x-inc | --x-in | --x-i)
1036    ac_prev=x_includes ;;
1037  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1038  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1039    x_includes=$ac_optarg ;;
1040
1041  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1042  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1043    ac_prev=x_libraries ;;
1044  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1045  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1046    x_libraries=$ac_optarg ;;
1047
1048  -*) { echo "$as_me: error: unrecognized option: $ac_option
1049Try \`$0 --help' for more information." >&2
1050   { (exit 1); exit 1; }; }
1051    ;;
1052
1053  *=*)
1054    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1055    # Reject names that are not valid shell variable names.
1056    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1057      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1058   { (exit 1); exit 1; }; }
1059    eval $ac_envvar=\$ac_optarg
1060    export $ac_envvar ;;
1061
1062  *)
1063    # FIXME: should be removed in autoconf 3.0.
1064    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1065    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1066      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1067    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1068    ;;
1069
1070  esac
1071done
1072
1073if test -n "$ac_prev"; then
1074  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1075  { echo "$as_me: error: missing argument to $ac_option" >&2
1076   { (exit 1); exit 1; }; }
1077fi
1078
1079# Be sure to have absolute directory names.
1080for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1081		datadir sysconfdir sharedstatedir localstatedir includedir \
1082		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1083		libdir localedir mandir
1084do
1085  eval ac_val=\$$ac_var
1086  case $ac_val in
1087    [\\/$]* | ?:[\\/]* )  continue;;
1088    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1089  esac
1090  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1091   { (exit 1); exit 1; }; }
1092done
1093
1094# There might be people who depend on the old broken behavior: `$host'
1095# used to hold the argument of --host etc.
1096# FIXME: To remove some day.
1097build=$build_alias
1098host=$host_alias
1099target=$target_alias
1100
1101# FIXME: To remove some day.
1102if test "x$host_alias" != x; then
1103  if test "x$build_alias" = x; then
1104    cross_compiling=maybe
1105    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1106    If a cross compiler is detected then cross compile mode will be used." >&2
1107  elif test "x$build_alias" != "x$host_alias"; then
1108    cross_compiling=yes
1109  fi
1110fi
1111
1112ac_tool_prefix=
1113test -n "$host_alias" && ac_tool_prefix=$host_alias-
1114
1115test "$silent" = yes && exec 6>/dev/null
1116
1117
1118ac_pwd=`pwd` && test -n "$ac_pwd" &&
1119ac_ls_di=`ls -di .` &&
1120ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1121  { echo "$as_me: error: Working directory cannot be determined" >&2
1122   { (exit 1); exit 1; }; }
1123test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1124  { echo "$as_me: error: pwd does not report name of working directory" >&2
1125   { (exit 1); exit 1; }; }
1126
1127
1128# Find the source files, if location was not specified.
1129if test -z "$srcdir"; then
1130  ac_srcdir_defaulted=yes
1131  # Try the directory containing this script, then the parent directory.
1132  ac_confdir=`$as_dirname -- "$0" ||
1133$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1134	 X"$0" : 'X\(//\)[^/]' \| \
1135	 X"$0" : 'X\(//\)$' \| \
1136	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1137echo X"$0" |
1138    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1139	    s//\1/
1140	    q
1141	  }
1142	  /^X\(\/\/\)[^/].*/{
1143	    s//\1/
1144	    q
1145	  }
1146	  /^X\(\/\/\)$/{
1147	    s//\1/
1148	    q
1149	  }
1150	  /^X\(\/\).*/{
1151	    s//\1/
1152	    q
1153	  }
1154	  s/.*/./; q'`
1155  srcdir=$ac_confdir
1156  if test ! -r "$srcdir/$ac_unique_file"; then
1157    srcdir=..
1158  fi
1159else
1160  ac_srcdir_defaulted=no
1161fi
1162if test ! -r "$srcdir/$ac_unique_file"; then
1163  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1164  { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1165   { (exit 1); exit 1; }; }
1166fi
1167ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1168ac_abs_confdir=`(
1169	cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1170   { (exit 1); exit 1; }; }
1171	pwd)`
1172# When building in place, set srcdir=.
1173if test "$ac_abs_confdir" = "$ac_pwd"; then
1174  srcdir=.
1175fi
1176# Remove unnecessary trailing slashes from srcdir.
1177# Double slashes in file names in object file debugging info
1178# mess up M-x gdb in Emacs.
1179case $srcdir in
1180*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1181esac
1182for ac_var in $ac_precious_vars; do
1183  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1184  eval ac_env_${ac_var}_value=\$${ac_var}
1185  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1186  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1187done
1188
1189#
1190# Report the --help message.
1191#
1192if test "$ac_init_help" = "long"; then
1193  # Omit some internal or obsolete options to make the list less imposing.
1194  # This message is too long to be a string in the A/UX 3.1 sh.
1195  cat <<_ACEOF
1196\`configure' configures this package to adapt to many kinds of systems.
1197
1198Usage: $0 [OPTION]... [VAR=VALUE]...
1199
1200To assign environment variables (e.g., CC, CFLAGS...), specify them as
1201VAR=VALUE.  See below for descriptions of some of the useful variables.
1202
1203Defaults for the options are specified in brackets.
1204
1205Configuration:
1206  -h, --help              display this help and exit
1207      --help=short        display options specific to this package
1208      --help=recursive    display the short help of all the included packages
1209  -V, --version           display version information and exit
1210  -q, --quiet, --silent   do not print \`checking...' messages
1211      --cache-file=FILE   cache test results in FILE [disabled]
1212  -C, --config-cache      alias for \`--cache-file=config.cache'
1213  -n, --no-create         do not create output files
1214      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1215
1216Installation directories:
1217  --prefix=PREFIX         install architecture-independent files in PREFIX
1218			  [$ac_default_prefix]
1219  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1220			  [PREFIX]
1221
1222By default, \`make install' will install all the files in
1223\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1224an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1225for instance \`--prefix=\$HOME'.
1226
1227For better control, use the options below.
1228
1229Fine tuning of the installation directories:
1230  --bindir=DIR           user executables [EPREFIX/bin]
1231  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1232  --libexecdir=DIR       program executables [EPREFIX/libexec]
1233  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1234  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1235  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1236  --libdir=DIR           object code libraries [EPREFIX/lib]
1237  --includedir=DIR       C header files [PREFIX/include]
1238  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1239  --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1240  --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1241  --infodir=DIR          info documentation [DATAROOTDIR/info]
1242  --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1243  --mandir=DIR           man documentation [DATAROOTDIR/man]
1244  --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
1245  --htmldir=DIR          html documentation [DOCDIR]
1246  --dvidir=DIR           dvi documentation [DOCDIR]
1247  --pdfdir=DIR           pdf documentation [DOCDIR]
1248  --psdir=DIR            ps documentation [DOCDIR]
1249_ACEOF
1250
1251  cat <<\_ACEOF
1252
1253System types:
1254  --build=BUILD     configure for building on BUILD [guessed]
1255  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1256_ACEOF
1257fi
1258
1259if test -n "$ac_init_help"; then
1260
1261  cat <<\_ACEOF
1262
1263Optional Features:
1264  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1265  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1266  --enable-smb            enable possibly-buggy SMB printer default=yes
1267  --disable-smb           disable possibly-buggy SMB printer
1268  --enable-ipv6           enable ipv6 (with ipv4) support
1269  --disable-ipv6          disable ipv6 support
1270
1271Optional Packages:
1272  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1273  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1274  --without-gcc           don't use gcc
1275  --with-user=USERNAME    drop privileges by default to USERNAME
1276  --with-chroot=DIRECTORY when dropping privileges, chroot to DIRECTORY
1277  --without-crypto        disable crypto support
1278
1279Some influential environment variables:
1280  CC          C compiler command
1281  CFLAGS      C compiler flags
1282  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1283              nonstandard directory <lib dir>
1284  LIBS        libraries to pass to the linker, e.g. -l<library>
1285  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1286              you have headers in a nonstandard directory <include dir>
1287  CPP         C preprocessor
1288
1289Use these variables to override the choices made by `configure' or to help
1290it to find libraries and programs with nonstandard names/locations.
1291
1292_ACEOF
1293ac_status=$?
1294fi
1295
1296if test "$ac_init_help" = "recursive"; then
1297  # If there are subdirs, report their specific --help.
1298  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1299    test -d "$ac_dir" || continue
1300    ac_builddir=.
1301
1302case "$ac_dir" in
1303.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1304*)
1305  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1306  # A ".." for each directory in $ac_dir_suffix.
1307  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1308  case $ac_top_builddir_sub in
1309  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1310  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1311  esac ;;
1312esac
1313ac_abs_top_builddir=$ac_pwd
1314ac_abs_builddir=$ac_pwd$ac_dir_suffix
1315# for backward compatibility:
1316ac_top_builddir=$ac_top_build_prefix
1317
1318case $srcdir in
1319  .)  # We are building in place.
1320    ac_srcdir=.
1321    ac_top_srcdir=$ac_top_builddir_sub
1322    ac_abs_top_srcdir=$ac_pwd ;;
1323  [\\/]* | ?:[\\/]* )  # Absolute name.
1324    ac_srcdir=$srcdir$ac_dir_suffix;
1325    ac_top_srcdir=$srcdir
1326    ac_abs_top_srcdir=$srcdir ;;
1327  *) # Relative name.
1328    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1329    ac_top_srcdir=$ac_top_build_prefix$srcdir
1330    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1331esac
1332ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1333
1334    cd "$ac_dir" || { ac_status=$?; continue; }
1335    # Check for guested configure.
1336    if test -f "$ac_srcdir/configure.gnu"; then
1337      echo &&
1338      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1339    elif test -f "$ac_srcdir/configure"; then
1340      echo &&
1341      $SHELL "$ac_srcdir/configure" --help=recursive
1342    else
1343      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1344    fi || ac_status=$?
1345    cd "$ac_pwd" || { ac_status=$?; break; }
1346  done
1347fi
1348
1349test -n "$ac_init_help" && exit $ac_status
1350if $ac_init_version; then
1351  cat <<\_ACEOF
1352configure
1353generated by GNU Autoconf 2.61
1354
1355Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
13562002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1357This configure script is free software; the Free Software Foundation
1358gives unlimited permission to copy, distribute and modify it.
1359_ACEOF
1360  exit
1361fi
1362cat >config.log <<_ACEOF
1363This file contains any messages produced by compilers while
1364running configure, to aid debugging if configure makes a mistake.
1365
1366It was created by $as_me, which was
1367generated by GNU Autoconf 2.61.  Invocation command line was
1368
1369  $ $0 $@
1370
1371_ACEOF
1372exec 5>>config.log
1373{
1374cat <<_ASUNAME
1375## --------- ##
1376## Platform. ##
1377## --------- ##
1378
1379hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1380uname -m = `(uname -m) 2>/dev/null || echo unknown`
1381uname -r = `(uname -r) 2>/dev/null || echo unknown`
1382uname -s = `(uname -s) 2>/dev/null || echo unknown`
1383uname -v = `(uname -v) 2>/dev/null || echo unknown`
1384
1385/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1386/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1387
1388/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1389/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1390/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1391/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1392/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1393/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1394/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1395
1396_ASUNAME
1397
1398as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1399for as_dir in $PATH
1400do
1401  IFS=$as_save_IFS
1402  test -z "$as_dir" && as_dir=.
1403  echo "PATH: $as_dir"
1404done
1405IFS=$as_save_IFS
1406
1407} >&5
1408
1409cat >&5 <<_ACEOF
1410
1411
1412## ----------- ##
1413## Core tests. ##
1414## ----------- ##
1415
1416_ACEOF
1417
1418
1419# Keep a trace of the command line.
1420# Strip out --no-create and --no-recursion so they do not pile up.
1421# Strip out --silent because we don't want to record it for future runs.
1422# Also quote any args containing shell meta-characters.
1423# Make two passes to allow for proper duplicate-argument suppression.
1424ac_configure_args=
1425ac_configure_args0=
1426ac_configure_args1=
1427ac_must_keep_next=false
1428for ac_pass in 1 2
1429do
1430  for ac_arg
1431  do
1432    case $ac_arg in
1433    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1434    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1435    | -silent | --silent | --silen | --sile | --sil)
1436      continue ;;
1437    *\'*)
1438      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1439    esac
1440    case $ac_pass in
1441    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1442    2)
1443      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1444      if test $ac_must_keep_next = true; then
1445	ac_must_keep_next=false # Got value, back to normal.
1446      else
1447	case $ac_arg in
1448	  *=* | --config-cache | -C | -disable-* | --disable-* \
1449	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1450	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1451	  | -with-* | --with-* | -without-* | --without-* | --x)
1452	    case "$ac_configure_args0 " in
1453	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1454	    esac
1455	    ;;
1456	  -* ) ac_must_keep_next=true ;;
1457	esac
1458      fi
1459      ac_configure_args="$ac_configure_args '$ac_arg'"
1460      ;;
1461    esac
1462  done
1463done
1464$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1465$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1466
1467# When interrupted or exit'd, cleanup temporary files, and complete
1468# config.log.  We remove comments because anyway the quotes in there
1469# would cause problems or look ugly.
1470# WARNING: Use '\'' to represent an apostrophe within the trap.
1471# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1472trap 'exit_status=$?
1473  # Save into config.log some information that might help in debugging.
1474  {
1475    echo
1476
1477    cat <<\_ASBOX
1478## ---------------- ##
1479## Cache variables. ##
1480## ---------------- ##
1481_ASBOX
1482    echo
1483    # The following way of writing the cache mishandles newlines in values,
1484(
1485  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1486    eval ac_val=\$$ac_var
1487    case $ac_val in #(
1488    *${as_nl}*)
1489      case $ac_var in #(
1490      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1491echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1492      esac
1493      case $ac_var in #(
1494      _ | IFS | as_nl) ;; #(
1495      *) $as_unset $ac_var ;;
1496      esac ;;
1497    esac
1498  done
1499  (set) 2>&1 |
1500    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1501    *${as_nl}ac_space=\ *)
1502      sed -n \
1503	"s/'\''/'\''\\\\'\'''\''/g;
1504	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1505      ;; #(
1506    *)
1507      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1508      ;;
1509    esac |
1510    sort
1511)
1512    echo
1513
1514    cat <<\_ASBOX
1515## ----------------- ##
1516## Output variables. ##
1517## ----------------- ##
1518_ASBOX
1519    echo
1520    for ac_var in $ac_subst_vars
1521    do
1522      eval ac_val=\$$ac_var
1523      case $ac_val in
1524      *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1525      esac
1526      echo "$ac_var='\''$ac_val'\''"
1527    done | sort
1528    echo
1529
1530    if test -n "$ac_subst_files"; then
1531      cat <<\_ASBOX
1532## ------------------- ##
1533## File substitutions. ##
1534## ------------------- ##
1535_ASBOX
1536      echo
1537      for ac_var in $ac_subst_files
1538      do
1539	eval ac_val=\$$ac_var
1540	case $ac_val in
1541	*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1542	esac
1543	echo "$ac_var='\''$ac_val'\''"
1544      done | sort
1545      echo
1546    fi
1547
1548    if test -s confdefs.h; then
1549      cat <<\_ASBOX
1550## ----------- ##
1551## confdefs.h. ##
1552## ----------- ##
1553_ASBOX
1554      echo
1555      cat confdefs.h
1556      echo
1557    fi
1558    test "$ac_signal" != 0 &&
1559      echo "$as_me: caught signal $ac_signal"
1560    echo "$as_me: exit $exit_status"
1561  } >&5
1562  rm -f core *.core core.conftest.* &&
1563    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1564    exit $exit_status
1565' 0
1566for ac_signal in 1 2 13 15; do
1567  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1568done
1569ac_signal=0
1570
1571# confdefs.h avoids OS command line length limits that DEFS can exceed.
1572rm -f -r conftest* confdefs.h
1573
1574# Predefined preprocessor variables.
1575
1576cat >>confdefs.h <<_ACEOF
1577#define PACKAGE_NAME "$PACKAGE_NAME"
1578_ACEOF
1579
1580
1581cat >>confdefs.h <<_ACEOF
1582#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1583_ACEOF
1584
1585
1586cat >>confdefs.h <<_ACEOF
1587#define PACKAGE_VERSION "$PACKAGE_VERSION"
1588_ACEOF
1589
1590
1591cat >>confdefs.h <<_ACEOF
1592#define PACKAGE_STRING "$PACKAGE_STRING"
1593_ACEOF
1594
1595
1596cat >>confdefs.h <<_ACEOF
1597#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1598_ACEOF
1599
1600
1601# Let the site file select an alternate cache file if it wants to.
1602# Prefer explicitly selected file to automatically selected ones.
1603if test -n "$CONFIG_SITE"; then
1604  set x "$CONFIG_SITE"
1605elif test "x$prefix" != xNONE; then
1606  set x "$prefix/share/config.site" "$prefix/etc/config.site"
1607else
1608  set x "$ac_default_prefix/share/config.site" \
1609	"$ac_default_prefix/etc/config.site"
1610fi
1611shift
1612for ac_site_file
1613do
1614  if test -r "$ac_site_file"; then
1615    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1616echo "$as_me: loading site script $ac_site_file" >&6;}
1617    sed 's/^/| /' "$ac_site_file" >&5
1618    . "$ac_site_file"
1619  fi
1620done
1621
1622if test -r "$cache_file"; then
1623  # Some versions of bash will fail to source /dev/null (special
1624  # files actually), so we avoid doing that.
1625  if test -f "$cache_file"; then
1626    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1627echo "$as_me: loading cache $cache_file" >&6;}
1628    case $cache_file in
1629      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1630      *)                      . "./$cache_file";;
1631    esac
1632  fi
1633else
1634  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1635echo "$as_me: creating cache $cache_file" >&6;}
1636  >$cache_file
1637fi
1638
1639# Check that the precious variables saved in the cache have kept the same
1640# value.
1641ac_cache_corrupted=false
1642for ac_var in $ac_precious_vars; do
1643  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1644  eval ac_new_set=\$ac_env_${ac_var}_set
1645  eval ac_old_val=\$ac_cv_env_${ac_var}_value
1646  eval ac_new_val=\$ac_env_${ac_var}_value
1647  case $ac_old_set,$ac_new_set in
1648    set,)
1649      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1650echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1651      ac_cache_corrupted=: ;;
1652    ,set)
1653      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1654echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1655      ac_cache_corrupted=: ;;
1656    ,);;
1657    *)
1658      if test "x$ac_old_val" != "x$ac_new_val"; then
1659	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1660echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1661	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1662echo "$as_me:   former value:  $ac_old_val" >&2;}
1663	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1664echo "$as_me:   current value: $ac_new_val" >&2;}
1665	ac_cache_corrupted=:
1666      fi;;
1667  esac
1668  # Pass precious variables to config.status.
1669  if test "$ac_new_set" = set; then
1670    case $ac_new_val in
1671    *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1672    *) ac_arg=$ac_var=$ac_new_val ;;
1673    esac
1674    case " $ac_configure_args " in
1675      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1676      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1677    esac
1678  fi
1679done
1680if $ac_cache_corrupted; then
1681  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1682echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1683  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1684echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1685   { (exit 1); exit 1; }; }
1686fi
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704ac_ext=c
1705ac_cpp='$CPP $CPPFLAGS'
1706ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1707ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1708ac_compiler_gnu=$ac_cv_c_compiler_gnu
1709
1710
1711
1712ac_aux_dir=
1713for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1714  if test -f "$ac_dir/install-sh"; then
1715    ac_aux_dir=$ac_dir
1716    ac_install_sh="$ac_aux_dir/install-sh -c"
1717    break
1718  elif test -f "$ac_dir/install.sh"; then
1719    ac_aux_dir=$ac_dir
1720    ac_install_sh="$ac_aux_dir/install.sh -c"
1721    break
1722  elif test -f "$ac_dir/shtool"; then
1723    ac_aux_dir=$ac_dir
1724    ac_install_sh="$ac_aux_dir/shtool install -c"
1725    break
1726  fi
1727done
1728if test -z "$ac_aux_dir"; then
1729  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1730echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1731   { (exit 1); exit 1; }; }
1732fi
1733
1734# These three variables are undocumented and unsupported,
1735# and are intended to be withdrawn in a future Autoconf release.
1736# They can cause serious problems if a builder's source tree is in a directory
1737# whose full name contains unusual characters.
1738ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1739ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1740ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1741
1742
1743# Make sure we can run config.sub.
1744$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1745  { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1746echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1747   { (exit 1); exit 1; }; }
1748
1749{ echo "$as_me:$LINENO: checking build system type" >&5
1750echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1751if test "${ac_cv_build+set}" = set; then
1752  echo $ECHO_N "(cached) $ECHO_C" >&6
1753else
1754  ac_build_alias=$build_alias
1755test "x$ac_build_alias" = x &&
1756  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1757test "x$ac_build_alias" = x &&
1758  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1759echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1760   { (exit 1); exit 1; }; }
1761ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1762  { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1763echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1764   { (exit 1); exit 1; }; }
1765
1766fi
1767{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1768echo "${ECHO_T}$ac_cv_build" >&6; }
1769case $ac_cv_build in
1770*-*-*) ;;
1771*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1772echo "$as_me: error: invalid value of canonical build" >&2;}
1773   { (exit 1); exit 1; }; };;
1774esac
1775build=$ac_cv_build
1776ac_save_IFS=$IFS; IFS='-'
1777set x $ac_cv_build
1778shift
1779build_cpu=$1
1780build_vendor=$2
1781shift; shift
1782# Remember, the first character of IFS is used to create $*,
1783# except with old shells:
1784build_os=$*
1785IFS=$ac_save_IFS
1786case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1787
1788
1789{ echo "$as_me:$LINENO: checking host system type" >&5
1790echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1791if test "${ac_cv_host+set}" = set; then
1792  echo $ECHO_N "(cached) $ECHO_C" >&6
1793else
1794  if test "x$host_alias" = x; then
1795  ac_cv_host=$ac_cv_build
1796else
1797  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1798    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1799echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1800   { (exit 1); exit 1; }; }
1801fi
1802
1803fi
1804{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1805echo "${ECHO_T}$ac_cv_host" >&6; }
1806case $ac_cv_host in
1807*-*-*) ;;
1808*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1809echo "$as_me: error: invalid value of canonical host" >&2;}
1810   { (exit 1); exit 1; }; };;
1811esac
1812host=$ac_cv_host
1813ac_save_IFS=$IFS; IFS='-'
1814set x $ac_cv_host
1815shift
1816host_cpu=$1
1817host_vendor=$2
1818shift; shift
1819# Remember, the first character of IFS is used to create $*,
1820# except with old shells:
1821host_os=$*
1822IFS=$ac_save_IFS
1823case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1824
1825
1826
1827
1828
1829
1830
1831
1832# Check whether --with-gcc was given.
1833if test "${with_gcc+set}" = set; then
1834  withval=$with_gcc;
1835fi
1836
1837    V_CCOPT="-O"
1838    V_INCLS=""
1839    if test "${srcdir}" != "." ; then
1840	    V_INCLS="-I\$(srcdir)"
1841    fi
1842    if test "${CFLAGS+set}" = set; then
1843	    LBL_CFLAGS="$CFLAGS"
1844    fi
1845    if test -z "$CC" ; then
1846	    case "$host_os" in
1847
1848	    bsdi*)
1849		    # Extract the first word of "shlicc2", so it can be a program name with args.
1850set dummy shlicc2; ac_word=$2
1851{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1852echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1853if test "${ac_cv_prog_SHLICC2+set}" = set; then
1854  echo $ECHO_N "(cached) $ECHO_C" >&6
1855else
1856  if test -n "$SHLICC2"; then
1857  ac_cv_prog_SHLICC2="$SHLICC2" # Let the user override the test.
1858else
1859as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1860for as_dir in $PATH
1861do
1862  IFS=$as_save_IFS
1863  test -z "$as_dir" && as_dir=.
1864  for ac_exec_ext in '' $ac_executable_extensions; do
1865  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1866    ac_cv_prog_SHLICC2="yes"
1867    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1868    break 2
1869  fi
1870done
1871done
1872IFS=$as_save_IFS
1873
1874  test -z "$ac_cv_prog_SHLICC2" && ac_cv_prog_SHLICC2="no"
1875fi
1876fi
1877SHLICC2=$ac_cv_prog_SHLICC2
1878if test -n "$SHLICC2"; then
1879  { echo "$as_me:$LINENO: result: $SHLICC2" >&5
1880echo "${ECHO_T}$SHLICC2" >&6; }
1881else
1882  { echo "$as_me:$LINENO: result: no" >&5
1883echo "${ECHO_T}no" >&6; }
1884fi
1885
1886
1887		    if test $SHLICC2 = yes ; then
1888			    CC=shlicc2
1889			    export CC
1890		    fi
1891		    ;;
1892	    esac
1893    fi
1894    if test -z "$CC" -a "$with_gcc" = no ; then
1895	    CC=cc
1896	    export CC
1897    fi
1898    ac_ext=c
1899ac_cpp='$CPP $CPPFLAGS'
1900ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1901ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1902ac_compiler_gnu=$ac_cv_c_compiler_gnu
1903if test -n "$ac_tool_prefix"; then
1904  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1905set dummy ${ac_tool_prefix}gcc; ac_word=$2
1906{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1907echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1908if test "${ac_cv_prog_CC+set}" = set; then
1909  echo $ECHO_N "(cached) $ECHO_C" >&6
1910else
1911  if test -n "$CC"; then
1912  ac_cv_prog_CC="$CC" # Let the user override the test.
1913else
1914as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1915for as_dir in $PATH
1916do
1917  IFS=$as_save_IFS
1918  test -z "$as_dir" && as_dir=.
1919  for ac_exec_ext in '' $ac_executable_extensions; do
1920  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1921    ac_cv_prog_CC="${ac_tool_prefix}gcc"
1922    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1923    break 2
1924  fi
1925done
1926done
1927IFS=$as_save_IFS
1928
1929fi
1930fi
1931CC=$ac_cv_prog_CC
1932if test -n "$CC"; then
1933  { echo "$as_me:$LINENO: result: $CC" >&5
1934echo "${ECHO_T}$CC" >&6; }
1935else
1936  { echo "$as_me:$LINENO: result: no" >&5
1937echo "${ECHO_T}no" >&6; }
1938fi
1939
1940
1941fi
1942if test -z "$ac_cv_prog_CC"; then
1943  ac_ct_CC=$CC
1944  # Extract the first word of "gcc", so it can be a program name with args.
1945set dummy gcc; ac_word=$2
1946{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1947echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1948if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1949  echo $ECHO_N "(cached) $ECHO_C" >&6
1950else
1951  if test -n "$ac_ct_CC"; then
1952  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1953else
1954as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1955for as_dir in $PATH
1956do
1957  IFS=$as_save_IFS
1958  test -z "$as_dir" && as_dir=.
1959  for ac_exec_ext in '' $ac_executable_extensions; do
1960  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1961    ac_cv_prog_ac_ct_CC="gcc"
1962    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1963    break 2
1964  fi
1965done
1966done
1967IFS=$as_save_IFS
1968
1969fi
1970fi
1971ac_ct_CC=$ac_cv_prog_ac_ct_CC
1972if test -n "$ac_ct_CC"; then
1973  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1974echo "${ECHO_T}$ac_ct_CC" >&6; }
1975else
1976  { echo "$as_me:$LINENO: result: no" >&5
1977echo "${ECHO_T}no" >&6; }
1978fi
1979
1980  if test "x$ac_ct_CC" = x; then
1981    CC=""
1982  else
1983    case $cross_compiling:$ac_tool_warned in
1984yes:)
1985{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1986whose name does not start with the host triplet.  If you think this
1987configuration is useful to you, please write to autoconf@gnu.org." >&5
1988echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1989whose name does not start with the host triplet.  If you think this
1990configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1991ac_tool_warned=yes ;;
1992esac
1993    CC=$ac_ct_CC
1994  fi
1995else
1996  CC="$ac_cv_prog_CC"
1997fi
1998
1999if test -z "$CC"; then
2000          if test -n "$ac_tool_prefix"; then
2001    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2002set dummy ${ac_tool_prefix}cc; ac_word=$2
2003{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2004echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2005if test "${ac_cv_prog_CC+set}" = set; then
2006  echo $ECHO_N "(cached) $ECHO_C" >&6
2007else
2008  if test -n "$CC"; then
2009  ac_cv_prog_CC="$CC" # Let the user override the test.
2010else
2011as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2012for as_dir in $PATH
2013do
2014  IFS=$as_save_IFS
2015  test -z "$as_dir" && as_dir=.
2016  for ac_exec_ext in '' $ac_executable_extensions; do
2017  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2018    ac_cv_prog_CC="${ac_tool_prefix}cc"
2019    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2020    break 2
2021  fi
2022done
2023done
2024IFS=$as_save_IFS
2025
2026fi
2027fi
2028CC=$ac_cv_prog_CC
2029if test -n "$CC"; then
2030  { echo "$as_me:$LINENO: result: $CC" >&5
2031echo "${ECHO_T}$CC" >&6; }
2032else
2033  { echo "$as_me:$LINENO: result: no" >&5
2034echo "${ECHO_T}no" >&6; }
2035fi
2036
2037
2038  fi
2039fi
2040if test -z "$CC"; then
2041  # Extract the first word of "cc", so it can be a program name with args.
2042set dummy cc; ac_word=$2
2043{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2044echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2045if test "${ac_cv_prog_CC+set}" = set; then
2046  echo $ECHO_N "(cached) $ECHO_C" >&6
2047else
2048  if test -n "$CC"; then
2049  ac_cv_prog_CC="$CC" # Let the user override the test.
2050else
2051  ac_prog_rejected=no
2052as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2053for as_dir in $PATH
2054do
2055  IFS=$as_save_IFS
2056  test -z "$as_dir" && as_dir=.
2057  for ac_exec_ext in '' $ac_executable_extensions; do
2058  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2059    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2060       ac_prog_rejected=yes
2061       continue
2062     fi
2063    ac_cv_prog_CC="cc"
2064    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2065    break 2
2066  fi
2067done
2068done
2069IFS=$as_save_IFS
2070
2071if test $ac_prog_rejected = yes; then
2072  # We found a bogon in the path, so make sure we never use it.
2073  set dummy $ac_cv_prog_CC
2074  shift
2075  if test $# != 0; then
2076    # We chose a different compiler from the bogus one.
2077    # However, it has the same basename, so the bogon will be chosen
2078    # first if we set CC to just the basename; use the full file name.
2079    shift
2080    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2081  fi
2082fi
2083fi
2084fi
2085CC=$ac_cv_prog_CC
2086if test -n "$CC"; then
2087  { echo "$as_me:$LINENO: result: $CC" >&5
2088echo "${ECHO_T}$CC" >&6; }
2089else
2090  { echo "$as_me:$LINENO: result: no" >&5
2091echo "${ECHO_T}no" >&6; }
2092fi
2093
2094
2095fi
2096if test -z "$CC"; then
2097  if test -n "$ac_tool_prefix"; then
2098  for ac_prog in cl.exe
2099  do
2100    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2101set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2102{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2103echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2104if test "${ac_cv_prog_CC+set}" = set; then
2105  echo $ECHO_N "(cached) $ECHO_C" >&6
2106else
2107  if test -n "$CC"; then
2108  ac_cv_prog_CC="$CC" # Let the user override the test.
2109else
2110as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2111for as_dir in $PATH
2112do
2113  IFS=$as_save_IFS
2114  test -z "$as_dir" && as_dir=.
2115  for ac_exec_ext in '' $ac_executable_extensions; do
2116  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2117    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2118    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2119    break 2
2120  fi
2121done
2122done
2123IFS=$as_save_IFS
2124
2125fi
2126fi
2127CC=$ac_cv_prog_CC
2128if test -n "$CC"; then
2129  { echo "$as_me:$LINENO: result: $CC" >&5
2130echo "${ECHO_T}$CC" >&6; }
2131else
2132  { echo "$as_me:$LINENO: result: no" >&5
2133echo "${ECHO_T}no" >&6; }
2134fi
2135
2136
2137    test -n "$CC" && break
2138  done
2139fi
2140if test -z "$CC"; then
2141  ac_ct_CC=$CC
2142  for ac_prog in cl.exe
2143do
2144  # Extract the first word of "$ac_prog", so it can be a program name with args.
2145set dummy $ac_prog; ac_word=$2
2146{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2147echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2148if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2149  echo $ECHO_N "(cached) $ECHO_C" >&6
2150else
2151  if test -n "$ac_ct_CC"; then
2152  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2153else
2154as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2155for as_dir in $PATH
2156do
2157  IFS=$as_save_IFS
2158  test -z "$as_dir" && as_dir=.
2159  for ac_exec_ext in '' $ac_executable_extensions; do
2160  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2161    ac_cv_prog_ac_ct_CC="$ac_prog"
2162    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2163    break 2
2164  fi
2165done
2166done
2167IFS=$as_save_IFS
2168
2169fi
2170fi
2171ac_ct_CC=$ac_cv_prog_ac_ct_CC
2172if test -n "$ac_ct_CC"; then
2173  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2174echo "${ECHO_T}$ac_ct_CC" >&6; }
2175else
2176  { echo "$as_me:$LINENO: result: no" >&5
2177echo "${ECHO_T}no" >&6; }
2178fi
2179
2180
2181  test -n "$ac_ct_CC" && break
2182done
2183
2184  if test "x$ac_ct_CC" = x; then
2185    CC=""
2186  else
2187    case $cross_compiling:$ac_tool_warned in
2188yes:)
2189{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2190whose name does not start with the host triplet.  If you think this
2191configuration is useful to you, please write to autoconf@gnu.org." >&5
2192echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2193whose name does not start with the host triplet.  If you think this
2194configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2195ac_tool_warned=yes ;;
2196esac
2197    CC=$ac_ct_CC
2198  fi
2199fi
2200
2201fi
2202
2203
2204test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2205See \`config.log' for more details." >&5
2206echo "$as_me: error: no acceptable C compiler found in \$PATH
2207See \`config.log' for more details." >&2;}
2208   { (exit 1); exit 1; }; }
2209
2210# Provide some information about the compiler.
2211echo "$as_me:$LINENO: checking for C compiler version" >&5
2212ac_compiler=`set X $ac_compile; echo $2`
2213{ (ac_try="$ac_compiler --version >&5"
2214case "(($ac_try" in
2215  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2216  *) ac_try_echo=$ac_try;;
2217esac
2218eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2219  (eval "$ac_compiler --version >&5") 2>&5
2220  ac_status=$?
2221  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2222  (exit $ac_status); }
2223{ (ac_try="$ac_compiler -v >&5"
2224case "(($ac_try" in
2225  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2226  *) ac_try_echo=$ac_try;;
2227esac
2228eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2229  (eval "$ac_compiler -v >&5") 2>&5
2230  ac_status=$?
2231  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2232  (exit $ac_status); }
2233{ (ac_try="$ac_compiler -V >&5"
2234case "(($ac_try" in
2235  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2236  *) ac_try_echo=$ac_try;;
2237esac
2238eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2239  (eval "$ac_compiler -V >&5") 2>&5
2240  ac_status=$?
2241  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2242  (exit $ac_status); }
2243
2244cat >conftest.$ac_ext <<_ACEOF
2245/* confdefs.h.  */
2246_ACEOF
2247cat confdefs.h >>conftest.$ac_ext
2248cat >>conftest.$ac_ext <<_ACEOF
2249/* end confdefs.h.  */
2250
2251int
2252main ()
2253{
2254
2255  ;
2256  return 0;
2257}
2258_ACEOF
2259ac_clean_files_save=$ac_clean_files
2260ac_clean_files="$ac_clean_files a.out a.exe b.out"
2261# Try to create an executable without -o first, disregard a.out.
2262# It will help us diagnose broken compilers, and finding out an intuition
2263# of exeext.
2264{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2265echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2266ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2267#
2268# List of possible output files, starting from the most likely.
2269# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2270# only as a last resort.  b.out is created by i960 compilers.
2271ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2272#
2273# The IRIX 6 linker writes into existing files which may not be
2274# executable, retaining their permissions.  Remove them first so a
2275# subsequent execution test works.
2276ac_rmfiles=
2277for ac_file in $ac_files
2278do
2279  case $ac_file in
2280    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2281    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2282  esac
2283done
2284rm -f $ac_rmfiles
2285
2286if { (ac_try="$ac_link_default"
2287case "(($ac_try" in
2288  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2289  *) ac_try_echo=$ac_try;;
2290esac
2291eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2292  (eval "$ac_link_default") 2>&5
2293  ac_status=$?
2294  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2295  (exit $ac_status); }; then
2296  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2297# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2298# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2299# so that the user can short-circuit this test for compilers unknown to
2300# Autoconf.
2301for ac_file in $ac_files ''
2302do
2303  test -f "$ac_file" || continue
2304  case $ac_file in
2305    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2306	;;
2307    [ab].out )
2308	# We found the default executable, but exeext='' is most
2309	# certainly right.
2310	break;;
2311    *.* )
2312        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2313	then :; else
2314	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2315	fi
2316	# We set ac_cv_exeext here because the later test for it is not
2317	# safe: cross compilers may not add the suffix if given an `-o'
2318	# argument, so we may need to know it at that point already.
2319	# Even if this section looks crufty: it has the advantage of
2320	# actually working.
2321	break;;
2322    * )
2323	break;;
2324  esac
2325done
2326test "$ac_cv_exeext" = no && ac_cv_exeext=
2327
2328else
2329  ac_file=''
2330fi
2331
2332{ echo "$as_me:$LINENO: result: $ac_file" >&5
2333echo "${ECHO_T}$ac_file" >&6; }
2334if test -z "$ac_file"; then
2335  echo "$as_me: failed program was:" >&5
2336sed 's/^/| /' conftest.$ac_ext >&5
2337
2338{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2339See \`config.log' for more details." >&5
2340echo "$as_me: error: C compiler cannot create executables
2341See \`config.log' for more details." >&2;}
2342   { (exit 77); exit 77; }; }
2343fi
2344
2345ac_exeext=$ac_cv_exeext
2346
2347# Check that the compiler produces executables we can run.  If not, either
2348# the compiler is broken, or we cross compile.
2349{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2350echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2351# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2352# If not cross compiling, check that we can run a simple program.
2353if test "$cross_compiling" != yes; then
2354  if { ac_try='./$ac_file'
2355  { (case "(($ac_try" in
2356  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2357  *) ac_try_echo=$ac_try;;
2358esac
2359eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2360  (eval "$ac_try") 2>&5
2361  ac_status=$?
2362  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2363  (exit $ac_status); }; }; then
2364    cross_compiling=no
2365  else
2366    if test "$cross_compiling" = maybe; then
2367	cross_compiling=yes
2368    else
2369	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2370If you meant to cross compile, use \`--host'.
2371See \`config.log' for more details." >&5
2372echo "$as_me: error: cannot run C compiled programs.
2373If you meant to cross compile, use \`--host'.
2374See \`config.log' for more details." >&2;}
2375   { (exit 1); exit 1; }; }
2376    fi
2377  fi
2378fi
2379{ echo "$as_me:$LINENO: result: yes" >&5
2380echo "${ECHO_T}yes" >&6; }
2381
2382rm -f a.out a.exe conftest$ac_cv_exeext b.out
2383ac_clean_files=$ac_clean_files_save
2384# Check that the compiler produces executables we can run.  If not, either
2385# the compiler is broken, or we cross compile.
2386{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2387echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2388{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2389echo "${ECHO_T}$cross_compiling" >&6; }
2390
2391{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2392echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2393if { (ac_try="$ac_link"
2394case "(($ac_try" in
2395  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2396  *) ac_try_echo=$ac_try;;
2397esac
2398eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2399  (eval "$ac_link") 2>&5
2400  ac_status=$?
2401  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2402  (exit $ac_status); }; then
2403  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2404# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2405# work properly (i.e., refer to `conftest.exe'), while it won't with
2406# `rm'.
2407for ac_file in conftest.exe conftest conftest.*; do
2408  test -f "$ac_file" || continue
2409  case $ac_file in
2410    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2411    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2412	  break;;
2413    * ) break;;
2414  esac
2415done
2416else
2417  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2418See \`config.log' for more details." >&5
2419echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2420See \`config.log' for more details." >&2;}
2421   { (exit 1); exit 1; }; }
2422fi
2423
2424rm -f conftest$ac_cv_exeext
2425{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2426echo "${ECHO_T}$ac_cv_exeext" >&6; }
2427
2428rm -f conftest.$ac_ext
2429EXEEXT=$ac_cv_exeext
2430ac_exeext=$EXEEXT
2431{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2432echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2433if test "${ac_cv_objext+set}" = set; then
2434  echo $ECHO_N "(cached) $ECHO_C" >&6
2435else
2436  cat >conftest.$ac_ext <<_ACEOF
2437/* confdefs.h.  */
2438_ACEOF
2439cat confdefs.h >>conftest.$ac_ext
2440cat >>conftest.$ac_ext <<_ACEOF
2441/* end confdefs.h.  */
2442
2443int
2444main ()
2445{
2446
2447  ;
2448  return 0;
2449}
2450_ACEOF
2451rm -f conftest.o conftest.obj
2452if { (ac_try="$ac_compile"
2453case "(($ac_try" in
2454  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2455  *) ac_try_echo=$ac_try;;
2456esac
2457eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2458  (eval "$ac_compile") 2>&5
2459  ac_status=$?
2460  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2461  (exit $ac_status); }; then
2462  for ac_file in conftest.o conftest.obj conftest.*; do
2463  test -f "$ac_file" || continue;
2464  case $ac_file in
2465    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2466    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2467       break;;
2468  esac
2469done
2470else
2471  echo "$as_me: failed program was:" >&5
2472sed 's/^/| /' conftest.$ac_ext >&5
2473
2474{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2475See \`config.log' for more details." >&5
2476echo "$as_me: error: cannot compute suffix of object files: cannot compile
2477See \`config.log' for more details." >&2;}
2478   { (exit 1); exit 1; }; }
2479fi
2480
2481rm -f conftest.$ac_cv_objext conftest.$ac_ext
2482fi
2483{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2484echo "${ECHO_T}$ac_cv_objext" >&6; }
2485OBJEXT=$ac_cv_objext
2486ac_objext=$OBJEXT
2487{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2488echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2489if test "${ac_cv_c_compiler_gnu+set}" = set; then
2490  echo $ECHO_N "(cached) $ECHO_C" >&6
2491else
2492  cat >conftest.$ac_ext <<_ACEOF
2493/* confdefs.h.  */
2494_ACEOF
2495cat confdefs.h >>conftest.$ac_ext
2496cat >>conftest.$ac_ext <<_ACEOF
2497/* end confdefs.h.  */
2498
2499int
2500main ()
2501{
2502#ifndef __GNUC__
2503       choke me
2504#endif
2505
2506  ;
2507  return 0;
2508}
2509_ACEOF
2510rm -f conftest.$ac_objext
2511if { (ac_try="$ac_compile"
2512case "(($ac_try" in
2513  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2514  *) ac_try_echo=$ac_try;;
2515esac
2516eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2517  (eval "$ac_compile") 2>conftest.er1
2518  ac_status=$?
2519  grep -v '^ *+' conftest.er1 >conftest.err
2520  rm -f conftest.er1
2521  cat conftest.err >&5
2522  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2523  (exit $ac_status); } && {
2524	 test -z "$ac_c_werror_flag" ||
2525	 test ! -s conftest.err
2526       } && test -s conftest.$ac_objext; then
2527  ac_compiler_gnu=yes
2528else
2529  echo "$as_me: failed program was:" >&5
2530sed 's/^/| /' conftest.$ac_ext >&5
2531
2532	ac_compiler_gnu=no
2533fi
2534
2535rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2536ac_cv_c_compiler_gnu=$ac_compiler_gnu
2537
2538fi
2539{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2540echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2541GCC=`test $ac_compiler_gnu = yes && echo yes`
2542ac_test_CFLAGS=${CFLAGS+set}
2543ac_save_CFLAGS=$CFLAGS
2544{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2545echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2546if test "${ac_cv_prog_cc_g+set}" = set; then
2547  echo $ECHO_N "(cached) $ECHO_C" >&6
2548else
2549  ac_save_c_werror_flag=$ac_c_werror_flag
2550   ac_c_werror_flag=yes
2551   ac_cv_prog_cc_g=no
2552   CFLAGS="-g"
2553   cat >conftest.$ac_ext <<_ACEOF
2554/* confdefs.h.  */
2555_ACEOF
2556cat confdefs.h >>conftest.$ac_ext
2557cat >>conftest.$ac_ext <<_ACEOF
2558/* end confdefs.h.  */
2559
2560int
2561main ()
2562{
2563
2564  ;
2565  return 0;
2566}
2567_ACEOF
2568rm -f conftest.$ac_objext
2569if { (ac_try="$ac_compile"
2570case "(($ac_try" in
2571  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2572  *) ac_try_echo=$ac_try;;
2573esac
2574eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2575  (eval "$ac_compile") 2>conftest.er1
2576  ac_status=$?
2577  grep -v '^ *+' conftest.er1 >conftest.err
2578  rm -f conftest.er1
2579  cat conftest.err >&5
2580  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2581  (exit $ac_status); } && {
2582	 test -z "$ac_c_werror_flag" ||
2583	 test ! -s conftest.err
2584       } && test -s conftest.$ac_objext; then
2585  ac_cv_prog_cc_g=yes
2586else
2587  echo "$as_me: failed program was:" >&5
2588sed 's/^/| /' conftest.$ac_ext >&5
2589
2590	CFLAGS=""
2591      cat >conftest.$ac_ext <<_ACEOF
2592/* confdefs.h.  */
2593_ACEOF
2594cat confdefs.h >>conftest.$ac_ext
2595cat >>conftest.$ac_ext <<_ACEOF
2596/* end confdefs.h.  */
2597
2598int
2599main ()
2600{
2601
2602  ;
2603  return 0;
2604}
2605_ACEOF
2606rm -f conftest.$ac_objext
2607if { (ac_try="$ac_compile"
2608case "(($ac_try" in
2609  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2610  *) ac_try_echo=$ac_try;;
2611esac
2612eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2613  (eval "$ac_compile") 2>conftest.er1
2614  ac_status=$?
2615  grep -v '^ *+' conftest.er1 >conftest.err
2616  rm -f conftest.er1
2617  cat conftest.err >&5
2618  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2619  (exit $ac_status); } && {
2620	 test -z "$ac_c_werror_flag" ||
2621	 test ! -s conftest.err
2622       } && test -s conftest.$ac_objext; then
2623  :
2624else
2625  echo "$as_me: failed program was:" >&5
2626sed 's/^/| /' conftest.$ac_ext >&5
2627
2628	ac_c_werror_flag=$ac_save_c_werror_flag
2629	 CFLAGS="-g"
2630	 cat >conftest.$ac_ext <<_ACEOF
2631/* confdefs.h.  */
2632_ACEOF
2633cat confdefs.h >>conftest.$ac_ext
2634cat >>conftest.$ac_ext <<_ACEOF
2635/* end confdefs.h.  */
2636
2637int
2638main ()
2639{
2640
2641  ;
2642  return 0;
2643}
2644_ACEOF
2645rm -f conftest.$ac_objext
2646if { (ac_try="$ac_compile"
2647case "(($ac_try" in
2648  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2649  *) ac_try_echo=$ac_try;;
2650esac
2651eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2652  (eval "$ac_compile") 2>conftest.er1
2653  ac_status=$?
2654  grep -v '^ *+' conftest.er1 >conftest.err
2655  rm -f conftest.er1
2656  cat conftest.err >&5
2657  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2658  (exit $ac_status); } && {
2659	 test -z "$ac_c_werror_flag" ||
2660	 test ! -s conftest.err
2661       } && test -s conftest.$ac_objext; then
2662  ac_cv_prog_cc_g=yes
2663else
2664  echo "$as_me: failed program was:" >&5
2665sed 's/^/| /' conftest.$ac_ext >&5
2666
2667
2668fi
2669
2670rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2671fi
2672
2673rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2674fi
2675
2676rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2677   ac_c_werror_flag=$ac_save_c_werror_flag
2678fi
2679{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2680echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2681if test "$ac_test_CFLAGS" = set; then
2682  CFLAGS=$ac_save_CFLAGS
2683elif test $ac_cv_prog_cc_g = yes; then
2684  if test "$GCC" = yes; then
2685    CFLAGS="-g -O2"
2686  else
2687    CFLAGS="-g"
2688  fi
2689else
2690  if test "$GCC" = yes; then
2691    CFLAGS="-O2"
2692  else
2693    CFLAGS=
2694  fi
2695fi
2696{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2697echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2698if test "${ac_cv_prog_cc_c89+set}" = set; then
2699  echo $ECHO_N "(cached) $ECHO_C" >&6
2700else
2701  ac_cv_prog_cc_c89=no
2702ac_save_CC=$CC
2703cat >conftest.$ac_ext <<_ACEOF
2704/* confdefs.h.  */
2705_ACEOF
2706cat confdefs.h >>conftest.$ac_ext
2707cat >>conftest.$ac_ext <<_ACEOF
2708/* end confdefs.h.  */
2709#include <stdarg.h>
2710#include <stdio.h>
2711#include <sys/types.h>
2712#include <sys/stat.h>
2713/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2714struct buf { int x; };
2715FILE * (*rcsopen) (struct buf *, struct stat *, int);
2716static char *e (p, i)
2717     char **p;
2718     int i;
2719{
2720  return p[i];
2721}
2722static char *f (char * (*g) (char **, int), char **p, ...)
2723{
2724  char *s;
2725  va_list v;
2726  va_start (v,p);
2727  s = g (p, va_arg (v,int));
2728  va_end (v);
2729  return s;
2730}
2731
2732/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2733   function prototypes and stuff, but not '\xHH' hex character constants.
2734   These don't provoke an error unfortunately, instead are silently treated
2735   as 'x'.  The following induces an error, until -std is added to get
2736   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2737   array size at least.  It's necessary to write '\x00'==0 to get something
2738   that's true only with -std.  */
2739int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2740
2741/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2742   inside strings and character constants.  */
2743#define FOO(x) 'x'
2744int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2745
2746int test (int i, double x);
2747struct s1 {int (*f) (int a);};
2748struct s2 {int (*f) (double a);};
2749int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2750int argc;
2751char **argv;
2752int
2753main ()
2754{
2755return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2756  ;
2757  return 0;
2758}
2759_ACEOF
2760for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2761	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2762do
2763  CC="$ac_save_CC $ac_arg"
2764  rm -f conftest.$ac_objext
2765if { (ac_try="$ac_compile"
2766case "(($ac_try" in
2767  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2768  *) ac_try_echo=$ac_try;;
2769esac
2770eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2771  (eval "$ac_compile") 2>conftest.er1
2772  ac_status=$?
2773  grep -v '^ *+' conftest.er1 >conftest.err
2774  rm -f conftest.er1
2775  cat conftest.err >&5
2776  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2777  (exit $ac_status); } && {
2778	 test -z "$ac_c_werror_flag" ||
2779	 test ! -s conftest.err
2780       } && test -s conftest.$ac_objext; then
2781  ac_cv_prog_cc_c89=$ac_arg
2782else
2783  echo "$as_me: failed program was:" >&5
2784sed 's/^/| /' conftest.$ac_ext >&5
2785
2786
2787fi
2788
2789rm -f core conftest.err conftest.$ac_objext
2790  test "x$ac_cv_prog_cc_c89" != "xno" && break
2791done
2792rm -f conftest.$ac_ext
2793CC=$ac_save_CC
2794
2795fi
2796# AC_CACHE_VAL
2797case "x$ac_cv_prog_cc_c89" in
2798  x)
2799    { echo "$as_me:$LINENO: result: none needed" >&5
2800echo "${ECHO_T}none needed" >&6; } ;;
2801  xno)
2802    { echo "$as_me:$LINENO: result: unsupported" >&5
2803echo "${ECHO_T}unsupported" >&6; } ;;
2804  *)
2805    CC="$CC $ac_cv_prog_cc_c89"
2806    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2807echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2808esac
2809
2810
2811ac_ext=c
2812ac_cpp='$CPP $CPPFLAGS'
2813ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2814ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2815ac_compiler_gnu=$ac_cv_c_compiler_gnu
2816
2817    if test "$GCC" = yes ; then
2818	    if test "$SHLICC2" = yes ; then
2819		    ac_cv_lbl_gcc_vers=2
2820		    V_CCOPT="-O2"
2821	    else
2822		    { echo "$as_me:$LINENO: checking gcc version" >&5
2823echo $ECHO_N "checking gcc version... $ECHO_C" >&6; }
2824		    if test "${ac_cv_lbl_gcc_vers+set}" = set; then
2825  echo $ECHO_N "(cached) $ECHO_C" >&6
2826else
2827  ac_cv_lbl_gcc_vers=`$CC -v 2>&1 | \
2828			    sed -e '/^gcc version /!d' \
2829				-e 's/^gcc version //' \
2830				-e 's/ .*//' -e 's/^[^0-9]*//' \
2831				-e 's/\..*//'`
2832fi
2833
2834		    { echo "$as_me:$LINENO: result: $ac_cv_lbl_gcc_vers" >&5
2835echo "${ECHO_T}$ac_cv_lbl_gcc_vers" >&6; }
2836		    if test $ac_cv_lbl_gcc_vers -gt 1 ; then
2837			    V_CCOPT="-O2"
2838		    fi
2839	    fi
2840    else
2841	    { echo "$as_me:$LINENO: checking that $CC handles ansi prototypes" >&5
2842echo $ECHO_N "checking that $CC handles ansi prototypes... $ECHO_C" >&6; }
2843	    if test "${ac_cv_lbl_cc_ansi_prototypes+set}" = set; then
2844  echo $ECHO_N "(cached) $ECHO_C" >&6
2845else
2846
2847cat >conftest.$ac_ext <<_ACEOF
2848/* confdefs.h.  */
2849_ACEOF
2850cat confdefs.h >>conftest.$ac_ext
2851cat >>conftest.$ac_ext <<_ACEOF
2852/* end confdefs.h.  */
2853#include <sys/types.h>
2854int
2855main ()
2856{
2857int frob(int, char *)
2858  ;
2859  return 0;
2860}
2861_ACEOF
2862rm -f conftest.$ac_objext
2863if { (ac_try="$ac_compile"
2864case "(($ac_try" in
2865  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2866  *) ac_try_echo=$ac_try;;
2867esac
2868eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2869  (eval "$ac_compile") 2>conftest.er1
2870  ac_status=$?
2871  grep -v '^ *+' conftest.er1 >conftest.err
2872  rm -f conftest.er1
2873  cat conftest.err >&5
2874  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2875  (exit $ac_status); } && {
2876	 test -z "$ac_c_werror_flag" ||
2877	 test ! -s conftest.err
2878       } && test -s conftest.$ac_objext; then
2879  ac_cv_lbl_cc_ansi_prototypes=yes
2880else
2881  echo "$as_me: failed program was:" >&5
2882sed 's/^/| /' conftest.$ac_ext >&5
2883
2884	ac_cv_lbl_cc_ansi_prototypes=no
2885fi
2886
2887rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2888fi
2889
2890	    { echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_ansi_prototypes" >&5
2891echo "${ECHO_T}$ac_cv_lbl_cc_ansi_prototypes" >&6; }
2892	    if test $ac_cv_lbl_cc_ansi_prototypes = no ; then
2893		    case "$host_os" in
2894
2895		    hpux*)
2896			    { echo "$as_me:$LINENO: checking for HP-UX ansi compiler ($CC -Aa -D_HPUX_SOURCE)" >&5
2897echo $ECHO_N "checking for HP-UX ansi compiler ($CC -Aa -D_HPUX_SOURCE)... $ECHO_C" >&6; }
2898			    savedcflags="$CFLAGS"
2899			    CFLAGS="-Aa -D_HPUX_SOURCE $CFLAGS"
2900			    if test "${ac_cv_lbl_cc_hpux_cc_aa+set}" = set; then
2901  echo $ECHO_N "(cached) $ECHO_C" >&6
2902else
2903  cat >conftest.$ac_ext <<_ACEOF
2904/* confdefs.h.  */
2905_ACEOF
2906cat confdefs.h >>conftest.$ac_ext
2907cat >>conftest.$ac_ext <<_ACEOF
2908/* end confdefs.h.  */
2909#include <sys/types.h>
2910int
2911main ()
2912{
2913int frob(int, char *)
2914  ;
2915  return 0;
2916}
2917_ACEOF
2918rm -f conftest.$ac_objext
2919if { (ac_try="$ac_compile"
2920case "(($ac_try" in
2921  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2922  *) ac_try_echo=$ac_try;;
2923esac
2924eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2925  (eval "$ac_compile") 2>conftest.er1
2926  ac_status=$?
2927  grep -v '^ *+' conftest.er1 >conftest.err
2928  rm -f conftest.er1
2929  cat conftest.err >&5
2930  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2931  (exit $ac_status); } && {
2932	 test -z "$ac_c_werror_flag" ||
2933	 test ! -s conftest.err
2934       } && test -s conftest.$ac_objext; then
2935  ac_cv_lbl_cc_hpux_cc_aa=yes
2936else
2937  echo "$as_me: failed program was:" >&5
2938sed 's/^/| /' conftest.$ac_ext >&5
2939
2940	ac_cv_lbl_cc_hpux_cc_aa=no
2941fi
2942
2943rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2944fi
2945
2946			    { echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_hpux_cc_aa" >&5
2947echo "${ECHO_T}$ac_cv_lbl_cc_hpux_cc_aa" >&6; }
2948			    if test $ac_cv_lbl_cc_hpux_cc_aa = no ; then
2949				    { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
2950echo "$as_me: error: see the INSTALL doc for more info" >&2;}
2951   { (exit 1); exit 1; }; }
2952			    fi
2953			    CFLAGS="$savedcflags"
2954			    V_CCOPT="-Aa $V_CCOPT"
2955			    cat >>confdefs.h <<\_ACEOF
2956#define _HPUX_SOURCE 1
2957_ACEOF
2958
2959			    ;;
2960
2961		    *)
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			    ;;
2966		    esac
2967	    fi
2968	    V_INCLS="$V_INCLS -I/usr/local/include"
2969	    LDFLAGS="$LDFLAGS -L/usr/local/lib"
2970
2971	    case "$host_os" in
2972
2973	    irix*)
2974		    V_CCOPT="$V_CCOPT -xansi -signed -O"
2975		    ;;
2976
2977	    osf*)
2978		    V_CCOPT="$V_CCOPT -std1 -O"
2979		    ;;
2980
2981	    ultrix*)
2982		    { echo "$as_me:$LINENO: checking that Ultrix $CC hacks const in prototypes" >&5
2983echo $ECHO_N "checking that Ultrix $CC hacks const in prototypes... $ECHO_C" >&6; }
2984		    if test "${ac_cv_lbl_cc_const_proto+set}" = set; then
2985  echo $ECHO_N "(cached) $ECHO_C" >&6
2986else
2987  cat >conftest.$ac_ext <<_ACEOF
2988/* confdefs.h.  */
2989_ACEOF
2990cat confdefs.h >>conftest.$ac_ext
2991cat >>conftest.$ac_ext <<_ACEOF
2992/* end confdefs.h.  */
2993#include <sys/types.h>
2994int
2995main ()
2996{
2997struct a { int b; };
2998			    void c(const struct a *)
2999  ;
3000  return 0;
3001}
3002_ACEOF
3003rm -f conftest.$ac_objext
3004if { (ac_try="$ac_compile"
3005case "(($ac_try" in
3006  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3007  *) ac_try_echo=$ac_try;;
3008esac
3009eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3010  (eval "$ac_compile") 2>conftest.er1
3011  ac_status=$?
3012  grep -v '^ *+' conftest.er1 >conftest.err
3013  rm -f conftest.er1
3014  cat conftest.err >&5
3015  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3016  (exit $ac_status); } && {
3017	 test -z "$ac_c_werror_flag" ||
3018	 test ! -s conftest.err
3019       } && test -s conftest.$ac_objext; then
3020  ac_cv_lbl_cc_const_proto=yes
3021else
3022  echo "$as_me: failed program was:" >&5
3023sed 's/^/| /' conftest.$ac_ext >&5
3024
3025	ac_cv_lbl_cc_const_proto=no
3026fi
3027
3028rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3029fi
3030
3031		    { echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_const_proto" >&5
3032echo "${ECHO_T}$ac_cv_lbl_cc_const_proto" >&6; }
3033		    if test $ac_cv_lbl_cc_const_proto = no ; then
3034			    cat >>confdefs.h <<\_ACEOF
3035#define const
3036_ACEOF
3037
3038		    fi
3039		    ;;
3040	    esac
3041    fi
3042
3043{ echo "$as_me:$LINENO: checking for inline" >&5
3044echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
3045    if test "${ac_cv_lbl_inline+set}" = set; then
3046  echo $ECHO_N "(cached) $ECHO_C" >&6
3047else
3048
3049	ac_cv_lbl_inline=""
3050	ac_lbl_cc_inline=no
3051	for ac_lbl_inline in inline __inline__ __inline
3052	do
3053	    cat >conftest.$ac_ext <<_ACEOF
3054/* confdefs.h.  */
3055_ACEOF
3056cat confdefs.h >>conftest.$ac_ext
3057cat >>conftest.$ac_ext <<_ACEOF
3058/* end confdefs.h.  */
3059#define inline $ac_lbl_inline
3060		static inline struct iltest *foo(void);
3061		struct iltest {
3062		    int iltest1;
3063		    int iltest2;
3064		};
3065
3066		static inline struct iltest *
3067		foo()
3068		{
3069		    static struct iltest xxx;
3070
3071		    return &xxx;
3072		}
3073int
3074main ()
3075{
3076
3077  ;
3078  return 0;
3079}
3080_ACEOF
3081rm -f conftest.$ac_objext
3082if { (ac_try="$ac_compile"
3083case "(($ac_try" in
3084  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3085  *) ac_try_echo=$ac_try;;
3086esac
3087eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3088  (eval "$ac_compile") 2>conftest.er1
3089  ac_status=$?
3090  grep -v '^ *+' conftest.er1 >conftest.err
3091  rm -f conftest.er1
3092  cat conftest.err >&5
3093  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3094  (exit $ac_status); } && {
3095	 test -z "$ac_c_werror_flag" ||
3096	 test ! -s conftest.err
3097       } && test -s conftest.$ac_objext; then
3098  ac_lbl_cc_inline=yes
3099else
3100  echo "$as_me: failed program was:" >&5
3101sed 's/^/| /' conftest.$ac_ext >&5
3102
3103
3104fi
3105
3106rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3107	    if test "$ac_lbl_cc_inline" = yes ; then
3108		break;
3109	    fi
3110	done
3111	if test "$ac_lbl_cc_inline" = yes ; then
3112	    ac_cv_lbl_inline=$ac_lbl_inline
3113	fi
3114fi
3115
3116    if test ! -z "$ac_cv_lbl_inline" ; then
3117	{ echo "$as_me:$LINENO: result: $ac_cv_lbl_inline" >&5
3118echo "${ECHO_T}$ac_cv_lbl_inline" >&6; }
3119    else
3120	{ echo "$as_me:$LINENO: result: no" >&5
3121echo "${ECHO_T}no" >&6; }
3122    fi
3123
3124cat >>confdefs.h <<_ACEOF
3125#define inline $ac_cv_lbl_inline
3126_ACEOF
3127
3128
3129{ echo "$as_me:$LINENO: checking for __attribute__" >&5
3130echo $ECHO_N "checking for __attribute__... $ECHO_C" >&6; }
3131if test "${ac_cv___attribute__+set}" = set; then
3132  echo $ECHO_N "(cached) $ECHO_C" >&6
3133else
3134
3135cat >conftest.$ac_ext <<_ACEOF
3136/* confdefs.h.  */
3137_ACEOF
3138cat confdefs.h >>conftest.$ac_ext
3139cat >>conftest.$ac_ext <<_ACEOF
3140/* end confdefs.h.  */
3141
3142#include <stdlib.h>
3143
3144static void foo(void) __attribute__ ((noreturn));
3145
3146static void
3147foo(void)
3148{
3149  exit(1);
3150}
3151
3152int
3153main(int argc, char **argv)
3154{
3155  foo();
3156}
3157
3158_ACEOF
3159rm -f conftest.$ac_objext
3160if { (ac_try="$ac_compile"
3161case "(($ac_try" in
3162  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3163  *) ac_try_echo=$ac_try;;
3164esac
3165eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3166  (eval "$ac_compile") 2>conftest.er1
3167  ac_status=$?
3168  grep -v '^ *+' conftest.er1 >conftest.err
3169  rm -f conftest.er1
3170  cat conftest.err >&5
3171  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3172  (exit $ac_status); } && {
3173	 test -z "$ac_c_werror_flag" ||
3174	 test ! -s conftest.err
3175       } && test -s conftest.$ac_objext; then
3176  ac_cv___attribute__=yes
3177else
3178  echo "$as_me: failed program was:" >&5
3179sed 's/^/| /' conftest.$ac_ext >&5
3180
3181	ac_cv___attribute__=no
3182fi
3183
3184rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3185fi
3186
3187if test "$ac_cv___attribute__" = "yes"; then
3188
3189cat >>confdefs.h <<\_ACEOF
3190#define HAVE___ATTRIBUTE__ 1
3191_ACEOF
3192
3193  V_DEFS="$V_DEFS -D_U_=\"__attribute__((unused))\""
3194else
3195  V_DEFS="$V_DEFS -D_U_=\"\""
3196fi
3197{ echo "$as_me:$LINENO: result: $ac_cv___attribute__" >&5
3198echo "${ECHO_T}$ac_cv___attribute__" >&6; }
3199
3200ac_ext=c
3201ac_cpp='$CPP $CPPFLAGS'
3202ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3203ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3204ac_compiler_gnu=$ac_cv_c_compiler_gnu
3205{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3206echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3207# On Suns, sometimes $CPP names a directory.
3208if test -n "$CPP" && test -d "$CPP"; then
3209  CPP=
3210fi
3211if test -z "$CPP"; then
3212  if test "${ac_cv_prog_CPP+set}" = set; then
3213  echo $ECHO_N "(cached) $ECHO_C" >&6
3214else
3215      # Double quotes because CPP needs to be expanded
3216    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3217    do
3218      ac_preproc_ok=false
3219for ac_c_preproc_warn_flag in '' yes
3220do
3221  # Use a header file that comes with gcc, so configuring glibc
3222  # with a fresh cross-compiler works.
3223  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3224  # <limits.h> exists even on freestanding compilers.
3225  # On the NeXT, cc -E runs the code through the compiler's parser,
3226  # not just through cpp. "Syntax error" is here to catch this case.
3227  cat >conftest.$ac_ext <<_ACEOF
3228/* confdefs.h.  */
3229_ACEOF
3230cat confdefs.h >>conftest.$ac_ext
3231cat >>conftest.$ac_ext <<_ACEOF
3232/* end confdefs.h.  */
3233#ifdef __STDC__
3234# include <limits.h>
3235#else
3236# include <assert.h>
3237#endif
3238		     Syntax error
3239_ACEOF
3240if { (ac_try="$ac_cpp conftest.$ac_ext"
3241case "(($ac_try" in
3242  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3243  *) ac_try_echo=$ac_try;;
3244esac
3245eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3246  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3247  ac_status=$?
3248  grep -v '^ *+' conftest.er1 >conftest.err
3249  rm -f conftest.er1
3250  cat conftest.err >&5
3251  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3252  (exit $ac_status); } >/dev/null && {
3253	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3254	 test ! -s conftest.err
3255       }; then
3256  :
3257else
3258  echo "$as_me: failed program was:" >&5
3259sed 's/^/| /' conftest.$ac_ext >&5
3260
3261  # Broken: fails on valid input.
3262continue
3263fi
3264
3265rm -f conftest.err conftest.$ac_ext
3266
3267  # OK, works on sane cases.  Now check whether nonexistent headers
3268  # can be detected and how.
3269  cat >conftest.$ac_ext <<_ACEOF
3270/* confdefs.h.  */
3271_ACEOF
3272cat confdefs.h >>conftest.$ac_ext
3273cat >>conftest.$ac_ext <<_ACEOF
3274/* end confdefs.h.  */
3275#include <ac_nonexistent.h>
3276_ACEOF
3277if { (ac_try="$ac_cpp conftest.$ac_ext"
3278case "(($ac_try" in
3279  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3280  *) ac_try_echo=$ac_try;;
3281esac
3282eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3283  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3284  ac_status=$?
3285  grep -v '^ *+' conftest.er1 >conftest.err
3286  rm -f conftest.er1
3287  cat conftest.err >&5
3288  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3289  (exit $ac_status); } >/dev/null && {
3290	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3291	 test ! -s conftest.err
3292       }; then
3293  # Broken: success on invalid input.
3294continue
3295else
3296  echo "$as_me: failed program was:" >&5
3297sed 's/^/| /' conftest.$ac_ext >&5
3298
3299  # Passes both tests.
3300ac_preproc_ok=:
3301break
3302fi
3303
3304rm -f conftest.err conftest.$ac_ext
3305
3306done
3307# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3308rm -f conftest.err conftest.$ac_ext
3309if $ac_preproc_ok; then
3310  break
3311fi
3312
3313    done
3314    ac_cv_prog_CPP=$CPP
3315
3316fi
3317  CPP=$ac_cv_prog_CPP
3318else
3319  ac_cv_prog_CPP=$CPP
3320fi
3321{ echo "$as_me:$LINENO: result: $CPP" >&5
3322echo "${ECHO_T}$CPP" >&6; }
3323ac_preproc_ok=false
3324for ac_c_preproc_warn_flag in '' yes
3325do
3326  # Use a header file that comes with gcc, so configuring glibc
3327  # with a fresh cross-compiler works.
3328  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3329  # <limits.h> exists even on freestanding compilers.
3330  # On the NeXT, cc -E runs the code through the compiler's parser,
3331  # not just through cpp. "Syntax error" is here to catch this case.
3332  cat >conftest.$ac_ext <<_ACEOF
3333/* confdefs.h.  */
3334_ACEOF
3335cat confdefs.h >>conftest.$ac_ext
3336cat >>conftest.$ac_ext <<_ACEOF
3337/* end confdefs.h.  */
3338#ifdef __STDC__
3339# include <limits.h>
3340#else
3341# include <assert.h>
3342#endif
3343		     Syntax error
3344_ACEOF
3345if { (ac_try="$ac_cpp conftest.$ac_ext"
3346case "(($ac_try" in
3347  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3348  *) ac_try_echo=$ac_try;;
3349esac
3350eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3351  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3352  ac_status=$?
3353  grep -v '^ *+' conftest.er1 >conftest.err
3354  rm -f conftest.er1
3355  cat conftest.err >&5
3356  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3357  (exit $ac_status); } >/dev/null && {
3358	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3359	 test ! -s conftest.err
3360       }; then
3361  :
3362else
3363  echo "$as_me: failed program was:" >&5
3364sed 's/^/| /' conftest.$ac_ext >&5
3365
3366  # Broken: fails on valid input.
3367continue
3368fi
3369
3370rm -f conftest.err conftest.$ac_ext
3371
3372  # OK, works on sane cases.  Now check whether nonexistent headers
3373  # can be detected and how.
3374  cat >conftest.$ac_ext <<_ACEOF
3375/* confdefs.h.  */
3376_ACEOF
3377cat confdefs.h >>conftest.$ac_ext
3378cat >>conftest.$ac_ext <<_ACEOF
3379/* end confdefs.h.  */
3380#include <ac_nonexistent.h>
3381_ACEOF
3382if { (ac_try="$ac_cpp conftest.$ac_ext"
3383case "(($ac_try" in
3384  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3385  *) ac_try_echo=$ac_try;;
3386esac
3387eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3388  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3389  ac_status=$?
3390  grep -v '^ *+' conftest.er1 >conftest.err
3391  rm -f conftest.er1
3392  cat conftest.err >&5
3393  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3394  (exit $ac_status); } >/dev/null && {
3395	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3396	 test ! -s conftest.err
3397       }; then
3398  # Broken: success on invalid input.
3399continue
3400else
3401  echo "$as_me: failed program was:" >&5
3402sed 's/^/| /' conftest.$ac_ext >&5
3403
3404  # Passes both tests.
3405ac_preproc_ok=:
3406break
3407fi
3408
3409rm -f conftest.err conftest.$ac_ext
3410
3411done
3412# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3413rm -f conftest.err conftest.$ac_ext
3414if $ac_preproc_ok; then
3415  :
3416else
3417  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3418See \`config.log' for more details." >&5
3419echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3420See \`config.log' for more details." >&2;}
3421   { (exit 1); exit 1; }; }
3422fi
3423
3424ac_ext=c
3425ac_cpp='$CPP $CPPFLAGS'
3426ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3427ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3428ac_compiler_gnu=$ac_cv_c_compiler_gnu
3429
3430
3431{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3432echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3433if test "${ac_cv_path_GREP+set}" = set; then
3434  echo $ECHO_N "(cached) $ECHO_C" >&6
3435else
3436  # Extract the first word of "grep ggrep" to use in msg output
3437if test -z "$GREP"; then
3438set dummy grep ggrep; ac_prog_name=$2
3439if test "${ac_cv_path_GREP+set}" = set; then
3440  echo $ECHO_N "(cached) $ECHO_C" >&6
3441else
3442  ac_path_GREP_found=false
3443# Loop through the user's path and test for each of PROGNAME-LIST
3444as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3445for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3446do
3447  IFS=$as_save_IFS
3448  test -z "$as_dir" && as_dir=.
3449  for ac_prog in grep ggrep; do
3450  for ac_exec_ext in '' $ac_executable_extensions; do
3451    ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3452    { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3453    # Check for GNU ac_path_GREP and select it if it is found.
3454  # Check for GNU $ac_path_GREP
3455case `"$ac_path_GREP" --version 2>&1` in
3456*GNU*)
3457  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3458*)
3459  ac_count=0
3460  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3461  while :
3462  do
3463    cat "conftest.in" "conftest.in" >"conftest.tmp"
3464    mv "conftest.tmp" "conftest.in"
3465    cp "conftest.in" "conftest.nl"
3466    echo 'GREP' >> "conftest.nl"
3467    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3468    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3469    ac_count=`expr $ac_count + 1`
3470    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3471      # Best one so far, save it but keep looking for a better one
3472      ac_cv_path_GREP="$ac_path_GREP"
3473      ac_path_GREP_max=$ac_count
3474    fi
3475    # 10*(2^10) chars as input seems more than enough
3476    test $ac_count -gt 10 && break
3477  done
3478  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3479esac
3480
3481
3482    $ac_path_GREP_found && break 3
3483  done
3484done
3485
3486done
3487IFS=$as_save_IFS
3488
3489
3490fi
3491
3492GREP="$ac_cv_path_GREP"
3493if test -z "$GREP"; then
3494  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3495echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3496   { (exit 1); exit 1; }; }
3497fi
3498
3499else
3500  ac_cv_path_GREP=$GREP
3501fi
3502
3503
3504fi
3505{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3506echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3507 GREP="$ac_cv_path_GREP"
3508
3509
3510{ echo "$as_me:$LINENO: checking for egrep" >&5
3511echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3512if test "${ac_cv_path_EGREP+set}" = set; then
3513  echo $ECHO_N "(cached) $ECHO_C" >&6
3514else
3515  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3516   then ac_cv_path_EGREP="$GREP -E"
3517   else
3518     # Extract the first word of "egrep" to use in msg output
3519if test -z "$EGREP"; then
3520set dummy egrep; ac_prog_name=$2
3521if test "${ac_cv_path_EGREP+set}" = set; then
3522  echo $ECHO_N "(cached) $ECHO_C" >&6
3523else
3524  ac_path_EGREP_found=false
3525# Loop through the user's path and test for each of PROGNAME-LIST
3526as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3527for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3528do
3529  IFS=$as_save_IFS
3530  test -z "$as_dir" && as_dir=.
3531  for ac_prog in egrep; do
3532  for ac_exec_ext in '' $ac_executable_extensions; do
3533    ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3534    { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3535    # Check for GNU ac_path_EGREP and select it if it is found.
3536  # Check for GNU $ac_path_EGREP
3537case `"$ac_path_EGREP" --version 2>&1` in
3538*GNU*)
3539  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3540*)
3541  ac_count=0
3542  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3543  while :
3544  do
3545    cat "conftest.in" "conftest.in" >"conftest.tmp"
3546    mv "conftest.tmp" "conftest.in"
3547    cp "conftest.in" "conftest.nl"
3548    echo 'EGREP' >> "conftest.nl"
3549    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3550    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3551    ac_count=`expr $ac_count + 1`
3552    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3553      # Best one so far, save it but keep looking for a better one
3554      ac_cv_path_EGREP="$ac_path_EGREP"
3555      ac_path_EGREP_max=$ac_count
3556    fi
3557    # 10*(2^10) chars as input seems more than enough
3558    test $ac_count -gt 10 && break
3559  done
3560  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3561esac
3562
3563
3564    $ac_path_EGREP_found && break 3
3565  done
3566done
3567
3568done
3569IFS=$as_save_IFS
3570
3571
3572fi
3573
3574EGREP="$ac_cv_path_EGREP"
3575if test -z "$EGREP"; then
3576  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3577echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3578   { (exit 1); exit 1; }; }
3579fi
3580
3581else
3582  ac_cv_path_EGREP=$EGREP
3583fi
3584
3585
3586   fi
3587fi
3588{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3589echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3590 EGREP="$ac_cv_path_EGREP"
3591
3592
3593{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3594echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3595if test "${ac_cv_header_stdc+set}" = set; then
3596  echo $ECHO_N "(cached) $ECHO_C" >&6
3597else
3598  cat >conftest.$ac_ext <<_ACEOF
3599/* confdefs.h.  */
3600_ACEOF
3601cat confdefs.h >>conftest.$ac_ext
3602cat >>conftest.$ac_ext <<_ACEOF
3603/* end confdefs.h.  */
3604#include <stdlib.h>
3605#include <stdarg.h>
3606#include <string.h>
3607#include <float.h>
3608
3609int
3610main ()
3611{
3612
3613  ;
3614  return 0;
3615}
3616_ACEOF
3617rm -f conftest.$ac_objext
3618if { (ac_try="$ac_compile"
3619case "(($ac_try" in
3620  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3621  *) ac_try_echo=$ac_try;;
3622esac
3623eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3624  (eval "$ac_compile") 2>conftest.er1
3625  ac_status=$?
3626  grep -v '^ *+' conftest.er1 >conftest.err
3627  rm -f conftest.er1
3628  cat conftest.err >&5
3629  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3630  (exit $ac_status); } && {
3631	 test -z "$ac_c_werror_flag" ||
3632	 test ! -s conftest.err
3633       } && test -s conftest.$ac_objext; then
3634  ac_cv_header_stdc=yes
3635else
3636  echo "$as_me: failed program was:" >&5
3637sed 's/^/| /' conftest.$ac_ext >&5
3638
3639	ac_cv_header_stdc=no
3640fi
3641
3642rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3643
3644if test $ac_cv_header_stdc = yes; then
3645  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3646  cat >conftest.$ac_ext <<_ACEOF
3647/* confdefs.h.  */
3648_ACEOF
3649cat confdefs.h >>conftest.$ac_ext
3650cat >>conftest.$ac_ext <<_ACEOF
3651/* end confdefs.h.  */
3652#include <string.h>
3653
3654_ACEOF
3655if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3656  $EGREP "memchr" >/dev/null 2>&1; then
3657  :
3658else
3659  ac_cv_header_stdc=no
3660fi
3661rm -f conftest*
3662
3663fi
3664
3665if test $ac_cv_header_stdc = yes; then
3666  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3667  cat >conftest.$ac_ext <<_ACEOF
3668/* confdefs.h.  */
3669_ACEOF
3670cat confdefs.h >>conftest.$ac_ext
3671cat >>conftest.$ac_ext <<_ACEOF
3672/* end confdefs.h.  */
3673#include <stdlib.h>
3674
3675_ACEOF
3676if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3677  $EGREP "free" >/dev/null 2>&1; then
3678  :
3679else
3680  ac_cv_header_stdc=no
3681fi
3682rm -f conftest*
3683
3684fi
3685
3686if test $ac_cv_header_stdc = yes; then
3687  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3688  if test "$cross_compiling" = yes; then
3689  :
3690else
3691  cat >conftest.$ac_ext <<_ACEOF
3692/* confdefs.h.  */
3693_ACEOF
3694cat confdefs.h >>conftest.$ac_ext
3695cat >>conftest.$ac_ext <<_ACEOF
3696/* end confdefs.h.  */
3697#include <ctype.h>
3698#include <stdlib.h>
3699#if ((' ' & 0x0FF) == 0x020)
3700# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3701# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3702#else
3703# define ISLOWER(c) \
3704		   (('a' <= (c) && (c) <= 'i') \
3705		     || ('j' <= (c) && (c) <= 'r') \
3706		     || ('s' <= (c) && (c) <= 'z'))
3707# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3708#endif
3709
3710#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3711int
3712main ()
3713{
3714  int i;
3715  for (i = 0; i < 256; i++)
3716    if (XOR (islower (i), ISLOWER (i))
3717	|| toupper (i) != TOUPPER (i))
3718      return 2;
3719  return 0;
3720}
3721_ACEOF
3722rm -f conftest$ac_exeext
3723if { (ac_try="$ac_link"
3724case "(($ac_try" in
3725  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3726  *) ac_try_echo=$ac_try;;
3727esac
3728eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3729  (eval "$ac_link") 2>&5
3730  ac_status=$?
3731  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3732  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3733  { (case "(($ac_try" in
3734  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3735  *) ac_try_echo=$ac_try;;
3736esac
3737eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3738  (eval "$ac_try") 2>&5
3739  ac_status=$?
3740  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3741  (exit $ac_status); }; }; then
3742  :
3743else
3744  echo "$as_me: program exited with status $ac_status" >&5
3745echo "$as_me: failed program was:" >&5
3746sed 's/^/| /' conftest.$ac_ext >&5
3747
3748( exit $ac_status )
3749ac_cv_header_stdc=no
3750fi
3751rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3752fi
3753
3754
3755fi
3756fi
3757{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3758echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3759if test $ac_cv_header_stdc = yes; then
3760
3761cat >>confdefs.h <<\_ACEOF
3762#define STDC_HEADERS 1
3763_ACEOF
3764
3765fi
3766
3767# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3768
3769
3770
3771
3772
3773
3774
3775
3776
3777for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3778		  inttypes.h stdint.h unistd.h
3779do
3780as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3781{ echo "$as_me:$LINENO: checking for $ac_header" >&5
3782echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3783if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3784  echo $ECHO_N "(cached) $ECHO_C" >&6
3785else
3786  cat >conftest.$ac_ext <<_ACEOF
3787/* confdefs.h.  */
3788_ACEOF
3789cat confdefs.h >>conftest.$ac_ext
3790cat >>conftest.$ac_ext <<_ACEOF
3791/* end confdefs.h.  */
3792$ac_includes_default
3793
3794#include <$ac_header>
3795_ACEOF
3796rm -f conftest.$ac_objext
3797if { (ac_try="$ac_compile"
3798case "(($ac_try" in
3799  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3800  *) ac_try_echo=$ac_try;;
3801esac
3802eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3803  (eval "$ac_compile") 2>conftest.er1
3804  ac_status=$?
3805  grep -v '^ *+' conftest.er1 >conftest.err
3806  rm -f conftest.er1
3807  cat conftest.err >&5
3808  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3809  (exit $ac_status); } && {
3810	 test -z "$ac_c_werror_flag" ||
3811	 test ! -s conftest.err
3812       } && test -s conftest.$ac_objext; then
3813  eval "$as_ac_Header=yes"
3814else
3815  echo "$as_me: failed program was:" >&5
3816sed 's/^/| /' conftest.$ac_ext >&5
3817
3818	eval "$as_ac_Header=no"
3819fi
3820
3821rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3822fi
3823ac_res=`eval echo '${'$as_ac_Header'}'`
3824	       { echo "$as_me:$LINENO: result: $ac_res" >&5
3825echo "${ECHO_T}$ac_res" >&6; }
3826if test `eval echo '${'$as_ac_Header'}'` = yes; then
3827  cat >>confdefs.h <<_ACEOF
3828#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3829_ACEOF
3830
3831fi
3832
3833done
3834
3835
3836
3837
3838
3839for ac_header in fcntl.h rpc/rpcent.h netdnet/dnetdb.h
3840do
3841as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3842if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3843  { echo "$as_me:$LINENO: checking for $ac_header" >&5
3844echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3845if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3846  echo $ECHO_N "(cached) $ECHO_C" >&6
3847fi
3848ac_res=`eval echo '${'$as_ac_Header'}'`
3849	       { echo "$as_me:$LINENO: result: $ac_res" >&5
3850echo "${ECHO_T}$ac_res" >&6; }
3851else
3852  # Is the header compilable?
3853{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
3854echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
3855cat >conftest.$ac_ext <<_ACEOF
3856/* confdefs.h.  */
3857_ACEOF
3858cat confdefs.h >>conftest.$ac_ext
3859cat >>conftest.$ac_ext <<_ACEOF
3860/* end confdefs.h.  */
3861$ac_includes_default
3862#include <$ac_header>
3863_ACEOF
3864rm -f conftest.$ac_objext
3865if { (ac_try="$ac_compile"
3866case "(($ac_try" in
3867  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3868  *) ac_try_echo=$ac_try;;
3869esac
3870eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3871  (eval "$ac_compile") 2>conftest.er1
3872  ac_status=$?
3873  grep -v '^ *+' conftest.er1 >conftest.err
3874  rm -f conftest.er1
3875  cat conftest.err >&5
3876  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3877  (exit $ac_status); } && {
3878	 test -z "$ac_c_werror_flag" ||
3879	 test ! -s conftest.err
3880       } && test -s conftest.$ac_objext; then
3881  ac_header_compiler=yes
3882else
3883  echo "$as_me: failed program was:" >&5
3884sed 's/^/| /' conftest.$ac_ext >&5
3885
3886	ac_header_compiler=no
3887fi
3888
3889rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3890{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3891echo "${ECHO_T}$ac_header_compiler" >&6; }
3892
3893# Is the header present?
3894{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
3895echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
3896cat >conftest.$ac_ext <<_ACEOF
3897/* confdefs.h.  */
3898_ACEOF
3899cat confdefs.h >>conftest.$ac_ext
3900cat >>conftest.$ac_ext <<_ACEOF
3901/* end confdefs.h.  */
3902#include <$ac_header>
3903_ACEOF
3904if { (ac_try="$ac_cpp conftest.$ac_ext"
3905case "(($ac_try" in
3906  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3907  *) ac_try_echo=$ac_try;;
3908esac
3909eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3910  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3911  ac_status=$?
3912  grep -v '^ *+' conftest.er1 >conftest.err
3913  rm -f conftest.er1
3914  cat conftest.err >&5
3915  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3916  (exit $ac_status); } >/dev/null && {
3917	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3918	 test ! -s conftest.err
3919       }; then
3920  ac_header_preproc=yes
3921else
3922  echo "$as_me: failed program was:" >&5
3923sed 's/^/| /' conftest.$ac_ext >&5
3924
3925  ac_header_preproc=no
3926fi
3927
3928rm -f conftest.err conftest.$ac_ext
3929{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3930echo "${ECHO_T}$ac_header_preproc" >&6; }
3931
3932# So?  What about this header?
3933case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3934  yes:no: )
3935    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3936echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3937    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3938echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3939    ac_header_preproc=yes
3940    ;;
3941  no:yes:* )
3942    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3943echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3944    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
3945echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
3946    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3947echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3948    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
3949echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
3950    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3951echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3952    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3953echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3954
3955    ;;
3956esac
3957{ echo "$as_me:$LINENO: checking for $ac_header" >&5
3958echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3959if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3960  echo $ECHO_N "(cached) $ECHO_C" >&6
3961else
3962  eval "$as_ac_Header=\$ac_header_preproc"
3963fi
3964ac_res=`eval echo '${'$as_ac_Header'}'`
3965	       { echo "$as_me:$LINENO: result: $ac_res" >&5
3966echo "${ECHO_T}$ac_res" >&6; }
3967
3968fi
3969if test `eval echo '${'$as_ac_Header'}'` = yes; then
3970  cat >>confdefs.h <<_ACEOF
3971#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3972_ACEOF
3973
3974fi
3975
3976done
3977
3978
3979for ac_header in net/pfvar.h
3980do
3981as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3982{ echo "$as_me:$LINENO: checking for $ac_header" >&5
3983echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3984if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3985  echo $ECHO_N "(cached) $ECHO_C" >&6
3986else
3987  cat >conftest.$ac_ext <<_ACEOF
3988/* confdefs.h.  */
3989_ACEOF
3990cat confdefs.h >>conftest.$ac_ext
3991cat >>conftest.$ac_ext <<_ACEOF
3992/* end confdefs.h.  */
3993#include <sys/types.h>
3994#include <sys/socket.h>
3995#include <net/if.h>
3996
3997#include <$ac_header>
3998_ACEOF
3999rm -f conftest.$ac_objext
4000if { (ac_try="$ac_compile"
4001case "(($ac_try" in
4002  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4003  *) ac_try_echo=$ac_try;;
4004esac
4005eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4006  (eval "$ac_compile") 2>conftest.er1
4007  ac_status=$?
4008  grep -v '^ *+' conftest.er1 >conftest.err
4009  rm -f conftest.er1
4010  cat conftest.err >&5
4011  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4012  (exit $ac_status); } && {
4013	 test -z "$ac_c_werror_flag" ||
4014	 test ! -s conftest.err
4015       } && test -s conftest.$ac_objext; then
4016  eval "$as_ac_Header=yes"
4017else
4018  echo "$as_me: failed program was:" >&5
4019sed 's/^/| /' conftest.$ac_ext >&5
4020
4021	eval "$as_ac_Header=no"
4022fi
4023
4024rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4025fi
4026ac_res=`eval echo '${'$as_ac_Header'}'`
4027	       { echo "$as_me:$LINENO: result: $ac_res" >&5
4028echo "${ECHO_T}$ac_res" >&6; }
4029if test `eval echo '${'$as_ac_Header'}'` = yes; then
4030  cat >>confdefs.h <<_ACEOF
4031#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4032_ACEOF
4033
4034fi
4035
4036done
4037
4038if test "$ac_cv_header_net_pfvar_h" == yes; then
4039	LOCALSRC="print-pflog.c $LOCALSRC"
4040fi
4041
4042for ac_header in netinet/if_ether.h
4043do
4044as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4045{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4046echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4047if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4048  echo $ECHO_N "(cached) $ECHO_C" >&6
4049else
4050  cat >conftest.$ac_ext <<_ACEOF
4051/* confdefs.h.  */
4052_ACEOF
4053cat confdefs.h >>conftest.$ac_ext
4054cat >>conftest.$ac_ext <<_ACEOF
4055/* end confdefs.h.  */
4056#include <sys/types.h>
4057#include <sys/socket.h>
4058
4059#include <$ac_header>
4060_ACEOF
4061rm -f conftest.$ac_objext
4062if { (ac_try="$ac_compile"
4063case "(($ac_try" in
4064  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4065  *) ac_try_echo=$ac_try;;
4066esac
4067eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4068  (eval "$ac_compile") 2>conftest.er1
4069  ac_status=$?
4070  grep -v '^ *+' conftest.er1 >conftest.err
4071  rm -f conftest.er1
4072  cat conftest.err >&5
4073  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4074  (exit $ac_status); } && {
4075	 test -z "$ac_c_werror_flag" ||
4076	 test ! -s conftest.err
4077       } && test -s conftest.$ac_objext; then
4078  eval "$as_ac_Header=yes"
4079else
4080  echo "$as_me: failed program was:" >&5
4081sed 's/^/| /' conftest.$ac_ext >&5
4082
4083	eval "$as_ac_Header=no"
4084fi
4085
4086rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4087fi
4088ac_res=`eval echo '${'$as_ac_Header'}'`
4089	       { echo "$as_me:$LINENO: result: $ac_res" >&5
4090echo "${ECHO_T}$ac_res" >&6; }
4091if test `eval echo '${'$as_ac_Header'}'` = yes; then
4092  cat >>confdefs.h <<_ACEOF
4093#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4094_ACEOF
4095
4096fi
4097
4098done
4099
4100if test "$ac_cv_header_netinet_if_ether_h" != yes; then
4101	#
4102	# The simple test didn't work.
4103	# Do we need to include <net/if.h> first?
4104	# Unset ac_cv_header_netinet_if_ether_h so we don't
4105	# treat the previous failure as a cached value and
4106	# suppress the next test.
4107	#
4108	{ echo "$as_me:$LINENO: Rechecking with some additional includes" >&5
4109echo "$as_me: Rechecking with some additional includes" >&6;}
4110	unset ac_cv_header_netinet_if_ether_h
4111
4112for ac_header in netinet/if_ether.h
4113do
4114as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4115{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4116echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4117if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4118  echo $ECHO_N "(cached) $ECHO_C" >&6
4119else
4120  cat >conftest.$ac_ext <<_ACEOF
4121/* confdefs.h.  */
4122_ACEOF
4123cat confdefs.h >>conftest.$ac_ext
4124cat >>conftest.$ac_ext <<_ACEOF
4125/* end confdefs.h.  */
4126#include <sys/types.h>
4127#include <sys/socket.h>
4128#include <netinet/in.h>
4129struct mbuf;
4130struct rtentry;
4131#include <net/if.h>
4132
4133#include <$ac_header>
4134_ACEOF
4135rm -f conftest.$ac_objext
4136if { (ac_try="$ac_compile"
4137case "(($ac_try" in
4138  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4139  *) ac_try_echo=$ac_try;;
4140esac
4141eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4142  (eval "$ac_compile") 2>conftest.er1
4143  ac_status=$?
4144  grep -v '^ *+' conftest.er1 >conftest.err
4145  rm -f conftest.er1
4146  cat conftest.err >&5
4147  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4148  (exit $ac_status); } && {
4149	 test -z "$ac_c_werror_flag" ||
4150	 test ! -s conftest.err
4151       } && test -s conftest.$ac_objext; then
4152  eval "$as_ac_Header=yes"
4153else
4154  echo "$as_me: failed program was:" >&5
4155sed 's/^/| /' conftest.$ac_ext >&5
4156
4157	eval "$as_ac_Header=no"
4158fi
4159
4160rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4161fi
4162ac_res=`eval echo '${'$as_ac_Header'}'`
4163	       { echo "$as_me:$LINENO: result: $ac_res" >&5
4164echo "${ECHO_T}$ac_res" >&6; }
4165if test `eval echo '${'$as_ac_Header'}'` = yes; then
4166  cat >>confdefs.h <<_ACEOF
4167#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4168_ACEOF
4169
4170fi
4171
4172done
4173
4174fi
4175
4176{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
4177echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
4178if test "${ac_cv_header_time+set}" = set; then
4179  echo $ECHO_N "(cached) $ECHO_C" >&6
4180else
4181  cat >conftest.$ac_ext <<_ACEOF
4182/* confdefs.h.  */
4183_ACEOF
4184cat confdefs.h >>conftest.$ac_ext
4185cat >>conftest.$ac_ext <<_ACEOF
4186/* end confdefs.h.  */
4187#include <sys/types.h>
4188#include <sys/time.h>
4189#include <time.h>
4190
4191int
4192main ()
4193{
4194if ((struct tm *) 0)
4195return 0;
4196  ;
4197  return 0;
4198}
4199_ACEOF
4200rm -f conftest.$ac_objext
4201if { (ac_try="$ac_compile"
4202case "(($ac_try" in
4203  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4204  *) ac_try_echo=$ac_try;;
4205esac
4206eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4207  (eval "$ac_compile") 2>conftest.er1
4208  ac_status=$?
4209  grep -v '^ *+' conftest.er1 >conftest.err
4210  rm -f conftest.er1
4211  cat conftest.err >&5
4212  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4213  (exit $ac_status); } && {
4214	 test -z "$ac_c_werror_flag" ||
4215	 test ! -s conftest.err
4216       } && test -s conftest.$ac_objext; then
4217  ac_cv_header_time=yes
4218else
4219  echo "$as_me: failed program was:" >&5
4220sed 's/^/| /' conftest.$ac_ext >&5
4221
4222	ac_cv_header_time=no
4223fi
4224
4225rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4226fi
4227{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
4228echo "${ECHO_T}$ac_cv_header_time" >&6; }
4229if test $ac_cv_header_time = yes; then
4230
4231cat >>confdefs.h <<\_ACEOF
4232#define TIME_WITH_SYS_TIME 1
4233_ACEOF
4234
4235fi
4236
4237
4238case "$host_os" in
4239
4240linux*)
4241	{ echo "$as_me:$LINENO: checking Linux kernel version" >&5
4242echo $ECHO_N "checking Linux kernel version... $ECHO_C" >&6; }
4243 	if test "$cross_compiling" = yes; then
4244 		if test "${ac_cv_linux_vers+set}" = set; then
4245  echo $ECHO_N "(cached) $ECHO_C" >&6
4246else
4247  ac_cv_linux_vers=unknown
4248fi
4249
4250 	else
4251 		if test "${ac_cv_linux_vers+set}" = set; then
4252  echo $ECHO_N "(cached) $ECHO_C" >&6
4253else
4254  ac_cv_linux_vers=`uname -r 2>&1 | \
4255 			sed -n -e '$s/.* //' -e '$s/\..*//p'`
4256fi
4257
4258 	fi
4259	{ echo "$as_me:$LINENO: result: $ac_cv_linux_vers" >&5
4260echo "${ECHO_T}$ac_cv_linux_vers" >&6; }
4261 	if test $ac_cv_linux_vers = unknown ; then
4262 		{ { echo "$as_me:$LINENO: error: cannot determine linux version when cross-compiling" >&5
4263echo "$as_me: error: cannot determine linux version when cross-compiling" >&2;}
4264   { (exit 1); exit 1; }; }
4265 	fi
4266	if test $ac_cv_linux_vers -lt 2 ; then
4267		{ { echo "$as_me:$LINENO: error: version 2 or higher required; see the INSTALL doc for more info" >&5
4268echo "$as_me: error: version 2 or higher required; see the INSTALL doc for more info" >&2;}
4269   { (exit 1); exit 1; }; }
4270	fi
4271	;;
4272
4273*)
4274	;;
4275esac
4276
4277
4278
4279for ac_header in smi.h
4280do
4281as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4282if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4283  { echo "$as_me:$LINENO: checking for $ac_header" >&5
4284echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4285if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4286  echo $ECHO_N "(cached) $ECHO_C" >&6
4287fi
4288ac_res=`eval echo '${'$as_ac_Header'}'`
4289	       { echo "$as_me:$LINENO: result: $ac_res" >&5
4290echo "${ECHO_T}$ac_res" >&6; }
4291else
4292  # Is the header compilable?
4293{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
4294echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4295cat >conftest.$ac_ext <<_ACEOF
4296/* confdefs.h.  */
4297_ACEOF
4298cat confdefs.h >>conftest.$ac_ext
4299cat >>conftest.$ac_ext <<_ACEOF
4300/* end confdefs.h.  */
4301$ac_includes_default
4302#include <$ac_header>
4303_ACEOF
4304rm -f conftest.$ac_objext
4305if { (ac_try="$ac_compile"
4306case "(($ac_try" in
4307  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4308  *) ac_try_echo=$ac_try;;
4309esac
4310eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4311  (eval "$ac_compile") 2>conftest.er1
4312  ac_status=$?
4313  grep -v '^ *+' conftest.er1 >conftest.err
4314  rm -f conftest.er1
4315  cat conftest.err >&5
4316  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4317  (exit $ac_status); } && {
4318	 test -z "$ac_c_werror_flag" ||
4319	 test ! -s conftest.err
4320       } && test -s conftest.$ac_objext; then
4321  ac_header_compiler=yes
4322else
4323  echo "$as_me: failed program was:" >&5
4324sed 's/^/| /' conftest.$ac_ext >&5
4325
4326	ac_header_compiler=no
4327fi
4328
4329rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4330{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4331echo "${ECHO_T}$ac_header_compiler" >&6; }
4332
4333# Is the header present?
4334{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
4335echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4336cat >conftest.$ac_ext <<_ACEOF
4337/* confdefs.h.  */
4338_ACEOF
4339cat confdefs.h >>conftest.$ac_ext
4340cat >>conftest.$ac_ext <<_ACEOF
4341/* end confdefs.h.  */
4342#include <$ac_header>
4343_ACEOF
4344if { (ac_try="$ac_cpp conftest.$ac_ext"
4345case "(($ac_try" in
4346  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4347  *) ac_try_echo=$ac_try;;
4348esac
4349eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4350  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4351  ac_status=$?
4352  grep -v '^ *+' conftest.er1 >conftest.err
4353  rm -f conftest.er1
4354  cat conftest.err >&5
4355  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4356  (exit $ac_status); } >/dev/null && {
4357	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4358	 test ! -s conftest.err
4359       }; then
4360  ac_header_preproc=yes
4361else
4362  echo "$as_me: failed program was:" >&5
4363sed 's/^/| /' conftest.$ac_ext >&5
4364
4365  ac_header_preproc=no
4366fi
4367
4368rm -f conftest.err conftest.$ac_ext
4369{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4370echo "${ECHO_T}$ac_header_preproc" >&6; }
4371
4372# So?  What about this header?
4373case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4374  yes:no: )
4375    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4376echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4377    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4378echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4379    ac_header_preproc=yes
4380    ;;
4381  no:yes:* )
4382    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4383echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4384    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4385echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4386    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4387echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4388    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4389echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4390    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4391echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4392    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4393echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4394
4395    ;;
4396esac
4397{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4398echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4399if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4400  echo $ECHO_N "(cached) $ECHO_C" >&6
4401else
4402  eval "$as_ac_Header=\$ac_header_preproc"
4403fi
4404ac_res=`eval echo '${'$as_ac_Header'}'`
4405	       { echo "$as_me:$LINENO: result: $ac_res" >&5
4406echo "${ECHO_T}$ac_res" >&6; }
4407
4408fi
4409if test `eval echo '${'$as_ac_Header'}'` = yes; then
4410  cat >>confdefs.h <<_ACEOF
4411#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4412_ACEOF
4413
4414fi
4415
4416done
4417
4418
4419{ echo "$as_me:$LINENO: checking for smiInit in -lsmi" >&5
4420echo $ECHO_N "checking for smiInit in -lsmi... $ECHO_C" >&6; }
4421if test "${ac_cv_lib_smi_smiInit+set}" = set; then
4422  echo $ECHO_N "(cached) $ECHO_C" >&6
4423else
4424  ac_check_lib_save_LIBS=$LIBS
4425LIBS="-lsmi  $LIBS"
4426cat >conftest.$ac_ext <<_ACEOF
4427/* confdefs.h.  */
4428_ACEOF
4429cat confdefs.h >>conftest.$ac_ext
4430cat >>conftest.$ac_ext <<_ACEOF
4431/* end confdefs.h.  */
4432
4433/* Override any GCC internal prototype to avoid an error.
4434   Use char because int might match the return type of a GCC
4435   builtin and then its argument prototype would still apply.  */
4436#ifdef __cplusplus
4437extern "C"
4438#endif
4439char smiInit ();
4440int
4441main ()
4442{
4443return smiInit ();
4444  ;
4445  return 0;
4446}
4447_ACEOF
4448rm -f conftest.$ac_objext conftest$ac_exeext
4449if { (ac_try="$ac_link"
4450case "(($ac_try" in
4451  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4452  *) ac_try_echo=$ac_try;;
4453esac
4454eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4455  (eval "$ac_link") 2>conftest.er1
4456  ac_status=$?
4457  grep -v '^ *+' conftest.er1 >conftest.err
4458  rm -f conftest.er1
4459  cat conftest.err >&5
4460  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4461  (exit $ac_status); } && {
4462	 test -z "$ac_c_werror_flag" ||
4463	 test ! -s conftest.err
4464       } && test -s conftest$ac_exeext &&
4465       $as_test_x conftest$ac_exeext; then
4466  ac_cv_lib_smi_smiInit=yes
4467else
4468  echo "$as_me: failed program was:" >&5
4469sed 's/^/| /' conftest.$ac_ext >&5
4470
4471	ac_cv_lib_smi_smiInit=no
4472fi
4473
4474rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4475      conftest$ac_exeext conftest.$ac_ext
4476LIBS=$ac_check_lib_save_LIBS
4477fi
4478{ echo "$as_me:$LINENO: result: $ac_cv_lib_smi_smiInit" >&5
4479echo "${ECHO_T}$ac_cv_lib_smi_smiInit" >&6; }
4480if test $ac_cv_lib_smi_smiInit = yes; then
4481  cat >>confdefs.h <<_ACEOF
4482#define HAVE_LIBSMI 1
4483_ACEOF
4484
4485  LIBS="-lsmi $LIBS"
4486
4487fi
4488
4489if test "$ac_cv_header_smi_h" = yes -a "$ac_cv_lib_smi_smiInit" = yes
4490then
4491{ echo "$as_me:$LINENO: checking whether to enable libsmi" >&5
4492echo $ECHO_N "checking whether to enable libsmi... $ECHO_C" >&6; }
4493        if test "$cross_compiling" = yes; then
4494   { echo "$as_me:$LINENO: result: not when cross-compiling" >&5
4495echo "${ECHO_T}not when cross-compiling" >&6; }
4496  libsmi=no
4497
4498else
4499  cat >conftest.$ac_ext <<_ACEOF
4500/* confdefs.h.  */
4501_ACEOF
4502cat confdefs.h >>conftest.$ac_ext
4503cat >>conftest.$ac_ext <<_ACEOF
4504/* end confdefs.h.  */
4505 /* libsmi available check */
4506#include <smi.h>
4507main()
4508{
4509  int current, revision, age, n;
4510  const int required = 2;
4511  if (smiInit(""))
4512    exit(1);
4513  if (strcmp(SMI_LIBRARY_VERSION, smi_library_version))
4514    exit(2);
4515  n = sscanf(smi_library_version, "%d:%d:%d", &current, &revision, &age);
4516  if (n != 3)
4517    exit(3);
4518  if (required < current - age || required > current)
4519    exit(4);
4520  exit(0);
4521}
4522
4523_ACEOF
4524rm -f conftest$ac_exeext
4525if { (ac_try="$ac_link"
4526case "(($ac_try" in
4527  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4528  *) ac_try_echo=$ac_try;;
4529esac
4530eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4531  (eval "$ac_link") 2>&5
4532  ac_status=$?
4533  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4534  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4535  { (case "(($ac_try" in
4536  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4537  *) ac_try_echo=$ac_try;;
4538esac
4539eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4540  (eval "$ac_try") 2>&5
4541  ac_status=$?
4542  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4543  (exit $ac_status); }; }; then
4544   { echo "$as_me:$LINENO: result: yes" >&5
4545echo "${ECHO_T}yes" >&6; }
4546  cat >>confdefs.h <<\_ACEOF
4547#define LIBSMI 1
4548_ACEOF
4549
4550  libsmi=yes
4551else
4552  echo "$as_me: program exited with status $ac_status" >&5
4553echo "$as_me: failed program was:" >&5
4554sed 's/^/| /' conftest.$ac_ext >&5
4555
4556( exit $ac_status )
4557 case $? in
4558  1) { echo "$as_me:$LINENO: result: no - smiInit failed" >&5
4559echo "${ECHO_T}no - smiInit failed" >&6; } ;;
4560  2) { echo "$as_me:$LINENO: result: no - header/library version mismatch" >&5
4561echo "${ECHO_T}no - header/library version mismatch" >&6; } ;;
4562  3) { echo "$as_me:$LINENO: result: no - can't determine library version" >&5
4563echo "${ECHO_T}no - can't determine library version" >&6; } ;;
4564  4) { echo "$as_me:$LINENO: result: no - too old" >&5
4565echo "${ECHO_T}no - too old" >&6; } ;;
4566  *) { echo "$as_me:$LINENO: result: no" >&5
4567echo "${ECHO_T}no" >&6; } ;;
4568  esac
4569  libsmi=no
4570fi
4571rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4572fi
4573
4574
4575fi
4576
4577{ echo "$as_me:$LINENO: checking whether to enable the possibly-buggy SMB printer" >&5
4578echo $ECHO_N "checking whether to enable the possibly-buggy SMB printer... $ECHO_C" >&6; }
4579# Check whether --enable-smb was given.
4580if test "${enable_smb+set}" = set; then
4581  enableval=$enable_smb;
4582else
4583  enableval=yes
4584fi
4585
4586case "$enableval" in
4587yes)	{ echo "$as_me:$LINENO: result: yes" >&5
4588echo "${ECHO_T}yes" >&6; }
4589	{ echo "$as_me:$LINENO: WARNING: The SMB printer may have exploitable buffer overflows!!!" >&5
4590echo "$as_me: WARNING: The SMB printer may have exploitable buffer overflows!!!" >&2;}
4591	cat >>confdefs.h <<\_ACEOF
4592#define TCPDUMP_DO_SMB 1
4593_ACEOF
4594
4595	LOCALSRC="print-smb.c smbutil.c $LOCALSRC"
4596	;;
4597*)	{ echo "$as_me:$LINENO: result: no" >&5
4598echo "${ECHO_T}no" >&6; }
4599	;;
4600esac
4601
4602
4603# Check whether --with-user was given.
4604if test "${with_user+set}" = set; then
4605  withval=$with_user;
4606fi
4607
4608{ echo "$as_me:$LINENO: checking whether to drop root privileges by default" >&5
4609echo $ECHO_N "checking whether to drop root privileges by default... $ECHO_C" >&6; }
4610if test ! -z "$with_user" ; then
4611        cat >>confdefs.h <<_ACEOF
4612#define WITH_USER "$withval"
4613_ACEOF
4614
4615       { echo "$as_me:$LINENO: result: to \"$withval\"" >&5
4616echo "${ECHO_T}to \"$withval\"" >&6; }
4617else
4618       { echo "$as_me:$LINENO: result: no" >&5
4619echo "${ECHO_T}no" >&6; }
4620fi
4621
4622
4623# Check whether --with-chroot was given.
4624if test "${with_chroot+set}" = set; then
4625  withval=$with_chroot;
4626fi
4627
4628{ echo "$as_me:$LINENO: checking whether to chroot" >&5
4629echo $ECHO_N "checking whether to chroot... $ECHO_C" >&6; }
4630if test ! -z "$with_chroot" ; then
4631        cat >>confdefs.h <<_ACEOF
4632#define WITH_CHROOT "$withval"
4633_ACEOF
4634
4635       { echo "$as_me:$LINENO: result: to \"$withval\"" >&5
4636echo "${ECHO_T}to \"$withval\"" >&6; }
4637else
4638       { echo "$as_me:$LINENO: result: no" >&5
4639echo "${ECHO_T}no" >&6; }
4640fi
4641
4642{ echo "$as_me:$LINENO: checking whether to enable ipv6" >&5
4643echo $ECHO_N "checking whether to enable ipv6... $ECHO_C" >&6; }
4644# Check whether --enable-ipv6 was given.
4645if test "${enable_ipv6+set}" = set; then
4646  enableval=$enable_ipv6;  case "$enableval" in
4647yes)   { echo "$as_me:$LINENO: result: yes" >&5
4648echo "${ECHO_T}yes" >&6; }
4649       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"
4650       cat >>confdefs.h <<\_ACEOF
4651#define INET6 1
4652_ACEOF
4653
4654       ipv6=yes
4655       ;;
4656*)
4657       { echo "$as_me:$LINENO: result: no" >&5
4658echo "${ECHO_T}no" >&6; }
4659       ipv6=no
4660       ;;
4661  esac
4662else
4663  if test "$cross_compiling" = yes; then
4664   { echo "$as_me:$LINENO: result: no" >&5
4665echo "${ECHO_T}no" >&6; }
4666  ipv6=no
4667
4668else
4669  cat >conftest.$ac_ext <<_ACEOF
4670/* confdefs.h.  */
4671_ACEOF
4672cat confdefs.h >>conftest.$ac_ext
4673cat >>conftest.$ac_ext <<_ACEOF
4674/* end confdefs.h.  */
4675 /* AF_INET6 available check */
4676#include <sys/types.h>
4677#include <sys/socket.h>
4678main()
4679{
4680 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
4681   exit(1);
4682 else
4683   exit(0);
4684}
4685
4686_ACEOF
4687rm -f conftest$ac_exeext
4688if { (ac_try="$ac_link"
4689case "(($ac_try" in
4690  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4691  *) ac_try_echo=$ac_try;;
4692esac
4693eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4694  (eval "$ac_link") 2>&5
4695  ac_status=$?
4696  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4697  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4698  { (case "(($ac_try" in
4699  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4700  *) ac_try_echo=$ac_try;;
4701esac
4702eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4703  (eval "$ac_try") 2>&5
4704  ac_status=$?
4705  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4706  (exit $ac_status); }; }; then
4707   { echo "$as_me:$LINENO: result: yes" >&5
4708echo "${ECHO_T}yes" >&6; }
4709  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"
4710  cat >>confdefs.h <<\_ACEOF
4711#define INET6 1
4712_ACEOF
4713
4714  ipv6=yes
4715else
4716  echo "$as_me: program exited with status $ac_status" >&5
4717echo "$as_me: failed program was:" >&5
4718sed 's/^/| /' conftest.$ac_ext >&5
4719
4720( exit $ac_status )
4721 { echo "$as_me:$LINENO: result: no" >&5
4722echo "${ECHO_T}no" >&6; }
4723  ipv6=no
4724fi
4725rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4726fi
4727
4728
4729fi
4730
4731
4732ipv6type=unknown
4733ipv6lib=none
4734ipv6trylibc=no
4735
4736if test "$ipv6" = "yes"; then
4737	{ echo "$as_me:$LINENO: checking ipv6 stack type" >&5
4738echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6; }
4739	for i in inria kame linux-glibc linux-libinet6 toshiba v6d zeta; do
4740		case $i in
4741		inria)
4742						cat >conftest.$ac_ext <<_ACEOF
4743/* confdefs.h.  */
4744_ACEOF
4745cat confdefs.h >>conftest.$ac_ext
4746cat >>conftest.$ac_ext <<_ACEOF
4747/* end confdefs.h.  */
4748#include <netinet/in.h>
4749#ifdef IPV6_INRIA_VERSION
4750yes
4751#endif
4752_ACEOF
4753if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4754  $EGREP "yes" >/dev/null 2>&1; then
4755  ipv6type=$i;
4756				CFLAGS="-DINET6 $CFLAGS"
4757fi
4758rm -f conftest*
4759
4760			;;
4761		kame)
4762						cat >conftest.$ac_ext <<_ACEOF
4763/* confdefs.h.  */
4764_ACEOF
4765cat confdefs.h >>conftest.$ac_ext
4766cat >>conftest.$ac_ext <<_ACEOF
4767/* end confdefs.h.  */
4768#include <netinet/in.h>
4769#ifdef __KAME__
4770yes
4771#endif
4772_ACEOF
4773if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4774  $EGREP "yes" >/dev/null 2>&1; then
4775  ipv6type=$i;
4776				ipv6lib=inet6;
4777				ipv6libdir=/usr/local/v6/lib;
4778				ipv6trylibc=yes;
4779				CFLAGS="-DINET6 $CFLAGS"
4780fi
4781rm -f conftest*
4782
4783			;;
4784		linux-glibc)
4785						cat >conftest.$ac_ext <<_ACEOF
4786/* confdefs.h.  */
4787_ACEOF
4788cat confdefs.h >>conftest.$ac_ext
4789cat >>conftest.$ac_ext <<_ACEOF
4790/* end confdefs.h.  */
4791#include <features.h>
4792#if defined(__GLIBC__) && __GLIBC__ >= 2 && __GLIBC_MINOR__ >= 1
4793yes
4794#endif
4795_ACEOF
4796if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4797  $EGREP "yes" >/dev/null 2>&1; then
4798  ipv6type=$i;
4799				CFLAGS="-DINET6 $CFLAGS"
4800fi
4801rm -f conftest*
4802
4803			;;
4804		linux-libinet6)
4805																		if test -d /usr/inet6 -o -f /usr/include/netinet/ip6.h; then
4806				ipv6type=$i
4807				ipv6lib=inet6
4808				ipv6libdir=/usr/inet6/lib
4809				ipv6trylibc=yes;
4810				CFLAGS="-DINET6 -I/usr/inet6/include $CFLAGS"
4811			fi
4812			;;
4813		toshiba)
4814			cat >conftest.$ac_ext <<_ACEOF
4815/* confdefs.h.  */
4816_ACEOF
4817cat confdefs.h >>conftest.$ac_ext
4818cat >>conftest.$ac_ext <<_ACEOF
4819/* end confdefs.h.  */
4820#include <sys/param.h>
4821#ifdef _TOSHIBA_INET6
4822yes
4823#endif
4824_ACEOF
4825if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4826  $EGREP "yes" >/dev/null 2>&1; then
4827  ipv6type=$i;
4828				ipv6lib=inet6;
4829				ipv6libdir=/usr/local/v6/lib;
4830				CFLAGS="-DINET6 $CFLAGS"
4831fi
4832rm -f conftest*
4833
4834			;;
4835		v6d)
4836			cat >conftest.$ac_ext <<_ACEOF
4837/* confdefs.h.  */
4838_ACEOF
4839cat confdefs.h >>conftest.$ac_ext
4840cat >>conftest.$ac_ext <<_ACEOF
4841/* end confdefs.h.  */
4842#include </usr/local/v6/include/sys/v6config.h>
4843#ifdef __V6D__
4844yes
4845#endif
4846_ACEOF
4847if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4848  $EGREP "yes" >/dev/null 2>&1; then
4849  ipv6type=$i;
4850				ipv6lib=v6;
4851				ipv6libdir=/usr/local/v6/lib;
4852				CFLAGS="-I/usr/local/v6/include $CFLAGS"
4853fi
4854rm -f conftest*
4855
4856			;;
4857		zeta)
4858			cat >conftest.$ac_ext <<_ACEOF
4859/* confdefs.h.  */
4860_ACEOF
4861cat confdefs.h >>conftest.$ac_ext
4862cat >>conftest.$ac_ext <<_ACEOF
4863/* end confdefs.h.  */
4864#include <sys/param.h>
4865#ifdef _ZETA_MINAMI_INET6
4866yes
4867#endif
4868_ACEOF
4869if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4870  $EGREP "yes" >/dev/null 2>&1; then
4871  ipv6type=$i;
4872				ipv6lib=inet6;
4873				ipv6libdir=/usr/local/v6/lib;
4874				CFLAGS="-DINET6 $CFLAGS"
4875fi
4876rm -f conftest*
4877
4878			;;
4879		esac
4880		if test "$ipv6type" != "unknown"; then
4881			break
4882		fi
4883	done
4884	{ echo "$as_me:$LINENO: result: $ipv6type" >&5
4885echo "${ECHO_T}$ipv6type" >&6; }
4886fi
4887
4888if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
4889	if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then
4890		LIBS="-L$ipv6libdir -l$ipv6lib $LIBS"
4891		echo "You have $ipv6lib library, using it"
4892	else
4893		if test "$ipv6trylibc" = "yes"; then
4894			echo "You do not have $ipv6lib library, using libc"
4895		else
4896			echo 'Fatal: no $ipv6lib library found.  cannot continue.'
4897			echo "You need to fetch lib$ipv6lib.a from appropriate"
4898			echo 'ipv6 kit and compile beforehand.'
4899			exit 1
4900		fi
4901	fi
4902fi
4903
4904
4905if test "$ipv6" = "yes"; then
4906	#
4907	# XXX - on Tru64 UNIX 5.1, there is no "getaddrinfo()"
4908	# function in libc; there are "ngetaddrinfo()" and
4909	# "ogetaddrinfo()" functions, and <netdb.h> #defines
4910	# "getaddrinfo" to be either "ngetaddrinfo" or
4911	# "ogetaddrinfo", depending on whether _SOCKADDR_LEN
4912	# or _XOPEN_SOURCE_EXTENDED are defined or not.
4913	#
4914	# So this test doesn't work on Tru64 5.1, and possibly
4915	# on other 5.x releases.  This causes the configure
4916	# script to become confused, and results in libpcap
4917	# being unbuildable.
4918	#
4919	{ echo "$as_me:$LINENO: checking for library containing getaddrinfo" >&5
4920echo $ECHO_N "checking for library containing getaddrinfo... $ECHO_C" >&6; }
4921if test "${ac_cv_search_getaddrinfo+set}" = set; then
4922  echo $ECHO_N "(cached) $ECHO_C" >&6
4923else
4924  ac_func_search_save_LIBS=$LIBS
4925cat >conftest.$ac_ext <<_ACEOF
4926/* confdefs.h.  */
4927_ACEOF
4928cat confdefs.h >>conftest.$ac_ext
4929cat >>conftest.$ac_ext <<_ACEOF
4930/* end confdefs.h.  */
4931
4932/* Override any GCC internal prototype to avoid an error.
4933   Use char because int might match the return type of a GCC
4934   builtin and then its argument prototype would still apply.  */
4935#ifdef __cplusplus
4936extern "C"
4937#endif
4938char getaddrinfo ();
4939int
4940main ()
4941{
4942return getaddrinfo ();
4943  ;
4944  return 0;
4945}
4946_ACEOF
4947for ac_lib in '' socket; do
4948  if test -z "$ac_lib"; then
4949    ac_res="none required"
4950  else
4951    ac_res=-l$ac_lib
4952    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
4953  fi
4954  rm -f conftest.$ac_objext conftest$ac_exeext
4955if { (ac_try="$ac_link"
4956case "(($ac_try" in
4957  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4958  *) ac_try_echo=$ac_try;;
4959esac
4960eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4961  (eval "$ac_link") 2>conftest.er1
4962  ac_status=$?
4963  grep -v '^ *+' conftest.er1 >conftest.err
4964  rm -f conftest.er1
4965  cat conftest.err >&5
4966  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4967  (exit $ac_status); } && {
4968	 test -z "$ac_c_werror_flag" ||
4969	 test ! -s conftest.err
4970       } && test -s conftest$ac_exeext &&
4971       $as_test_x conftest$ac_exeext; then
4972  ac_cv_search_getaddrinfo=$ac_res
4973else
4974  echo "$as_me: failed program was:" >&5
4975sed 's/^/| /' conftest.$ac_ext >&5
4976
4977
4978fi
4979
4980rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4981      conftest$ac_exeext
4982  if test "${ac_cv_search_getaddrinfo+set}" = set; then
4983  break
4984fi
4985done
4986if test "${ac_cv_search_getaddrinfo+set}" = set; then
4987  :
4988else
4989  ac_cv_search_getaddrinfo=no
4990fi
4991rm conftest.$ac_ext
4992LIBS=$ac_func_search_save_LIBS
4993fi
4994{ echo "$as_me:$LINENO: result: $ac_cv_search_getaddrinfo" >&5
4995echo "${ECHO_T}$ac_cv_search_getaddrinfo" >&6; }
4996ac_res=$ac_cv_search_getaddrinfo
4997if test "$ac_res" != no; then
4998  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4999  	{ echo "$as_me:$LINENO: checking getaddrinfo bug" >&5
5000echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6; }
5001	if test "${td_cv_buggygetaddrinfo+set}" = set; then
5002  echo $ECHO_N "(cached) $ECHO_C" >&6
5003else
5004  if test "$cross_compiling" = yes; then
5005  td_cv_buggygetaddrinfo=yes
5006else
5007  cat >conftest.$ac_ext <<_ACEOF
5008/* confdefs.h.  */
5009_ACEOF
5010cat confdefs.h >>conftest.$ac_ext
5011cat >>conftest.$ac_ext <<_ACEOF
5012/* end confdefs.h.  */
5013
5014#include <sys/types.h>
5015#include <netdb.h>
5016#include <string.h>
5017#include <sys/socket.h>
5018#include <netinet/in.h>
5019
5020main()
5021{
5022  int passive, gaierr, inet4 = 0, inet6 = 0;
5023  struct addrinfo hints, *ai, *aitop;
5024  char straddr[INET6_ADDRSTRLEN], strport[16];
5025
5026  for (passive = 0; passive <= 1; passive++) {
5027    memset(&hints, 0, sizeof(hints));
5028    hints.ai_family = AF_UNSPEC;
5029    hints.ai_flags = passive ? AI_PASSIVE : 0;
5030    hints.ai_socktype = SOCK_STREAM;
5031    hints.ai_protocol = IPPROTO_TCP;
5032    if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
5033      (void)gai_strerror(gaierr);
5034      goto bad;
5035    }
5036    for (ai = aitop; ai; ai = ai->ai_next) {
5037      if (ai->ai_addr == NULL ||
5038          ai->ai_addrlen == 0 ||
5039          getnameinfo(ai->ai_addr, ai->ai_addrlen,
5040                      straddr, sizeof(straddr), strport, sizeof(strport),
5041                      NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
5042        goto bad;
5043      }
5044      switch (ai->ai_family) {
5045      case AF_INET:
5046        if (strcmp(strport, "54321") != 0) {
5047          goto bad;
5048        }
5049        if (passive) {
5050          if (strcmp(straddr, "0.0.0.0") != 0) {
5051            goto bad;
5052          }
5053        } else {
5054          if (strcmp(straddr, "127.0.0.1") != 0) {
5055            goto bad;
5056          }
5057        }
5058        inet4++;
5059        break;
5060      case AF_INET6:
5061        if (strcmp(strport, "54321") != 0) {
5062          goto bad;
5063        }
5064        if (passive) {
5065          if (strcmp(straddr, "::") != 0) {
5066            goto bad;
5067          }
5068        } else {
5069          if (strcmp(straddr, "::1") != 0) {
5070            goto bad;
5071          }
5072        }
5073        inet6++;
5074        break;
5075      case AF_UNSPEC:
5076        goto bad;
5077        break;
5078#ifdef AF_UNIX
5079      case AF_UNIX:
5080#else
5081#ifdef AF_LOCAL
5082      case AF_LOCAL:
5083#endif
5084#endif
5085      default:
5086        /* another family support? */
5087        break;
5088      }
5089    }
5090  }
5091
5092  /* supported family should be 2, unsupported family should be 0 */
5093  if (!(inet4 == 0 || inet4 == 2))
5094    goto bad;
5095  if (!(inet6 == 0 || inet6 == 2))
5096    goto bad;
5097
5098  if (aitop)
5099    freeaddrinfo(aitop);
5100  exit(0);
5101
5102 bad:
5103  if (aitop)
5104    freeaddrinfo(aitop);
5105  exit(1);
5106}
5107
5108_ACEOF
5109rm -f conftest$ac_exeext
5110if { (ac_try="$ac_link"
5111case "(($ac_try" in
5112  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5113  *) ac_try_echo=$ac_try;;
5114esac
5115eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5116  (eval "$ac_link") 2>&5
5117  ac_status=$?
5118  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5119  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5120  { (case "(($ac_try" in
5121  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5122  *) ac_try_echo=$ac_try;;
5123esac
5124eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5125  (eval "$ac_try") 2>&5
5126  ac_status=$?
5127  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5128  (exit $ac_status); }; }; then
5129  td_cv_buggygetaddrinfo=no
5130else
5131  echo "$as_me: program exited with status $ac_status" >&5
5132echo "$as_me: failed program was:" >&5
5133sed 's/^/| /' conftest.$ac_ext >&5
5134
5135( exit $ac_status )
5136td_cv_buggygetaddrinfo=yes
5137fi
5138rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5139fi
5140
5141
5142fi
5143
5144	if test "$td_cv_buggygetaddrinfo" = no; then
5145		{ echo "$as_me:$LINENO: result: good" >&5
5146echo "${ECHO_T}good" >&6; }
5147	else
5148		{ echo "$as_me:$LINENO: result: buggy" >&5
5149echo "${ECHO_T}buggy" >&6; }
5150	fi
5151
5152	if test "$td_cv_buggygetaddrinfo" = "yes"; then
5153		#
5154		# XXX - it doesn't appear that "ipv6type" can ever be
5155		# set to "linux".  Should this be testing for
5156		# "linux-glibc", or for that *or* "linux-libinet6"?
5157		# If the latter, note that "linux-libinet6" is also
5158		# the type given to some non-Linux OSes.
5159		#
5160		if test "$ipv6type" != "linux"; then
5161			echo 'Fatal: You must get working getaddrinfo() function.'
5162			echo '       or you can specify "--disable-ipv6"'.
5163			exit 1
5164		else
5165			echo 'Warning: getaddrinfo() implementation on your system seems be buggy.'
5166			echo '         Better upgrade your system library to newest version'
5167			echo '         of GNU C library (aka glibc).'
5168		fi
5169	fi
5170
5171fi
5172
5173
5174
5175for ac_func in getaddrinfo getnameinfo
5176do
5177as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5178{ echo "$as_me:$LINENO: checking for $ac_func" >&5
5179echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5180if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5181  echo $ECHO_N "(cached) $ECHO_C" >&6
5182else
5183  cat >conftest.$ac_ext <<_ACEOF
5184/* confdefs.h.  */
5185_ACEOF
5186cat confdefs.h >>conftest.$ac_ext
5187cat >>conftest.$ac_ext <<_ACEOF
5188/* end confdefs.h.  */
5189/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5190   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5191#define $ac_func innocuous_$ac_func
5192
5193/* System header to define __stub macros and hopefully few prototypes,
5194    which can conflict with char $ac_func (); below.
5195    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5196    <limits.h> exists even on freestanding compilers.  */
5197
5198#ifdef __STDC__
5199# include <limits.h>
5200#else
5201# include <assert.h>
5202#endif
5203
5204#undef $ac_func
5205
5206/* Override any GCC internal prototype to avoid an error.
5207   Use char because int might match the return type of a GCC
5208   builtin and then its argument prototype would still apply.  */
5209#ifdef __cplusplus
5210extern "C"
5211#endif
5212char $ac_func ();
5213/* The GNU C library defines this for functions which it implements
5214    to always fail with ENOSYS.  Some functions are actually named
5215    something starting with __ and the normal name is an alias.  */
5216#if defined __stub_$ac_func || defined __stub___$ac_func
5217choke me
5218#endif
5219
5220int
5221main ()
5222{
5223return $ac_func ();
5224  ;
5225  return 0;
5226}
5227_ACEOF
5228rm -f conftest.$ac_objext conftest$ac_exeext
5229if { (ac_try="$ac_link"
5230case "(($ac_try" in
5231  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5232  *) ac_try_echo=$ac_try;;
5233esac
5234eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5235  (eval "$ac_link") 2>conftest.er1
5236  ac_status=$?
5237  grep -v '^ *+' conftest.er1 >conftest.err
5238  rm -f conftest.er1
5239  cat conftest.err >&5
5240  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5241  (exit $ac_status); } && {
5242	 test -z "$ac_c_werror_flag" ||
5243	 test ! -s conftest.err
5244       } && test -s conftest$ac_exeext &&
5245       $as_test_x conftest$ac_exeext; then
5246  eval "$as_ac_var=yes"
5247else
5248  echo "$as_me: failed program was:" >&5
5249sed 's/^/| /' conftest.$ac_ext >&5
5250
5251	eval "$as_ac_var=no"
5252fi
5253
5254rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5255      conftest$ac_exeext conftest.$ac_ext
5256fi
5257ac_res=`eval echo '${'$as_ac_var'}'`
5258	       { echo "$as_me:$LINENO: result: $ac_res" >&5
5259echo "${ECHO_T}$ac_res" >&6; }
5260if test `eval echo '${'$as_ac_var'}'` = yes; then
5261  cat >>confdefs.h <<_ACEOF
5262#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5263_ACEOF
5264
5265else
5266  case " $LIBOBJS " in
5267  *" $ac_func.$ac_objext "* ) ;;
5268  *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
5269 ;;
5270esac
5271
5272fi
5273done
5274
5275
5276fi
5277
5278{ echo "$as_me:$LINENO: checking for dnet_htoa declaration in netdnet/dnetdb.h" >&5
5279echo $ECHO_N "checking for dnet_htoa declaration in netdnet/dnetdb.h... $ECHO_C" >&6; }
5280if test "${td_cv_decl_netdnet_dnetdb_h_dnet_htoa+set}" = set; then
5281  echo $ECHO_N "(cached) $ECHO_C" >&6
5282else
5283  cat >conftest.$ac_ext <<_ACEOF
5284/* confdefs.h.  */
5285_ACEOF
5286cat confdefs.h >>conftest.$ac_ext
5287cat >>conftest.$ac_ext <<_ACEOF
5288/* end confdefs.h.  */
5289#include <netdnet/dnetdb.h>
5290
5291_ACEOF
5292if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5293  $EGREP "dnet_htoa" >/dev/null 2>&1; then
5294  td_cv_decl_netdnet_dnetdb_h_dnet_htoa=yes
5295else
5296  td_cv_decl_netdnet_dnetdb_h_dnet_htoa=no
5297fi
5298rm -f conftest*
5299
5300fi
5301{ echo "$as_me:$LINENO: result: $td_cv_decl_netdnet_dnetdb_h_dnet_htoa" >&5
5302echo "${ECHO_T}$td_cv_decl_netdnet_dnetdb_h_dnet_htoa" >&6; }
5303if test "$td_cv_decl_netdnet_dnetdb_h_dnet_htoa" = yes; then
5304	cat >>confdefs.h <<\_ACEOF
5305#define HAVE_NETDNET_DNETDB_H_DNET_HTOA 1
5306_ACEOF
5307
5308fi
5309
5310{ echo "$as_me:$LINENO: checking for char" >&5
5311echo $ECHO_N "checking for char... $ECHO_C" >&6; }
5312if test "${ac_cv_type_char+set}" = set; then
5313  echo $ECHO_N "(cached) $ECHO_C" >&6
5314else
5315  cat >conftest.$ac_ext <<_ACEOF
5316/* confdefs.h.  */
5317_ACEOF
5318cat confdefs.h >>conftest.$ac_ext
5319cat >>conftest.$ac_ext <<_ACEOF
5320/* end confdefs.h.  */
5321$ac_includes_default
5322typedef char ac__type_new_;
5323int
5324main ()
5325{
5326if ((ac__type_new_ *) 0)
5327  return 0;
5328if (sizeof (ac__type_new_))
5329  return 0;
5330  ;
5331  return 0;
5332}
5333_ACEOF
5334rm -f conftest.$ac_objext
5335if { (ac_try="$ac_compile"
5336case "(($ac_try" in
5337  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5338  *) ac_try_echo=$ac_try;;
5339esac
5340eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5341  (eval "$ac_compile") 2>conftest.er1
5342  ac_status=$?
5343  grep -v '^ *+' conftest.er1 >conftest.err
5344  rm -f conftest.er1
5345  cat conftest.err >&5
5346  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5347  (exit $ac_status); } && {
5348	 test -z "$ac_c_werror_flag" ||
5349	 test ! -s conftest.err
5350       } && test -s conftest.$ac_objext; then
5351  ac_cv_type_char=yes
5352else
5353  echo "$as_me: failed program was:" >&5
5354sed 's/^/| /' conftest.$ac_ext >&5
5355
5356	ac_cv_type_char=no
5357fi
5358
5359rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5360fi
5361{ echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
5362echo "${ECHO_T}$ac_cv_type_char" >&6; }
5363
5364# The cast to long int works around a bug in the HP C Compiler
5365# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5366# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5367# This bug is HP SR number 8606223364.
5368{ echo "$as_me:$LINENO: checking size of char" >&5
5369echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
5370if test "${ac_cv_sizeof_char+set}" = set; then
5371  echo $ECHO_N "(cached) $ECHO_C" >&6
5372else
5373  if test "$cross_compiling" = yes; then
5374  # Depending upon the size, compute the lo and hi bounds.
5375cat >conftest.$ac_ext <<_ACEOF
5376/* confdefs.h.  */
5377_ACEOF
5378cat confdefs.h >>conftest.$ac_ext
5379cat >>conftest.$ac_ext <<_ACEOF
5380/* end confdefs.h.  */
5381$ac_includes_default
5382   typedef char ac__type_sizeof_;
5383int
5384main ()
5385{
5386static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
5387test_array [0] = 0
5388
5389  ;
5390  return 0;
5391}
5392_ACEOF
5393rm -f conftest.$ac_objext
5394if { (ac_try="$ac_compile"
5395case "(($ac_try" in
5396  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5397  *) ac_try_echo=$ac_try;;
5398esac
5399eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5400  (eval "$ac_compile") 2>conftest.er1
5401  ac_status=$?
5402  grep -v '^ *+' conftest.er1 >conftest.err
5403  rm -f conftest.er1
5404  cat conftest.err >&5
5405  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5406  (exit $ac_status); } && {
5407	 test -z "$ac_c_werror_flag" ||
5408	 test ! -s conftest.err
5409       } && test -s conftest.$ac_objext; then
5410  ac_lo=0 ac_mid=0
5411  while :; do
5412    cat >conftest.$ac_ext <<_ACEOF
5413/* confdefs.h.  */
5414_ACEOF
5415cat confdefs.h >>conftest.$ac_ext
5416cat >>conftest.$ac_ext <<_ACEOF
5417/* end confdefs.h.  */
5418$ac_includes_default
5419   typedef char ac__type_sizeof_;
5420int
5421main ()
5422{
5423static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5424test_array [0] = 0
5425
5426  ;
5427  return 0;
5428}
5429_ACEOF
5430rm -f conftest.$ac_objext
5431if { (ac_try="$ac_compile"
5432case "(($ac_try" in
5433  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5434  *) ac_try_echo=$ac_try;;
5435esac
5436eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5437  (eval "$ac_compile") 2>conftest.er1
5438  ac_status=$?
5439  grep -v '^ *+' conftest.er1 >conftest.err
5440  rm -f conftest.er1
5441  cat conftest.err >&5
5442  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5443  (exit $ac_status); } && {
5444	 test -z "$ac_c_werror_flag" ||
5445	 test ! -s conftest.err
5446       } && test -s conftest.$ac_objext; then
5447  ac_hi=$ac_mid; break
5448else
5449  echo "$as_me: failed program was:" >&5
5450sed 's/^/| /' conftest.$ac_ext >&5
5451
5452	ac_lo=`expr $ac_mid + 1`
5453			if test $ac_lo -le $ac_mid; then
5454			  ac_lo= ac_hi=
5455			  break
5456			fi
5457			ac_mid=`expr 2 '*' $ac_mid + 1`
5458fi
5459
5460rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5461  done
5462else
5463  echo "$as_me: failed program was:" >&5
5464sed 's/^/| /' conftest.$ac_ext >&5
5465
5466	cat >conftest.$ac_ext <<_ACEOF
5467/* confdefs.h.  */
5468_ACEOF
5469cat confdefs.h >>conftest.$ac_ext
5470cat >>conftest.$ac_ext <<_ACEOF
5471/* end confdefs.h.  */
5472$ac_includes_default
5473   typedef char ac__type_sizeof_;
5474int
5475main ()
5476{
5477static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
5478test_array [0] = 0
5479
5480  ;
5481  return 0;
5482}
5483_ACEOF
5484rm -f conftest.$ac_objext
5485if { (ac_try="$ac_compile"
5486case "(($ac_try" in
5487  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5488  *) ac_try_echo=$ac_try;;
5489esac
5490eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5491  (eval "$ac_compile") 2>conftest.er1
5492  ac_status=$?
5493  grep -v '^ *+' conftest.er1 >conftest.err
5494  rm -f conftest.er1
5495  cat conftest.err >&5
5496  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5497  (exit $ac_status); } && {
5498	 test -z "$ac_c_werror_flag" ||
5499	 test ! -s conftest.err
5500       } && test -s conftest.$ac_objext; then
5501  ac_hi=-1 ac_mid=-1
5502  while :; do
5503    cat >conftest.$ac_ext <<_ACEOF
5504/* confdefs.h.  */
5505_ACEOF
5506cat confdefs.h >>conftest.$ac_ext
5507cat >>conftest.$ac_ext <<_ACEOF
5508/* end confdefs.h.  */
5509$ac_includes_default
5510   typedef char ac__type_sizeof_;
5511int
5512main ()
5513{
5514static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
5515test_array [0] = 0
5516
5517  ;
5518  return 0;
5519}
5520_ACEOF
5521rm -f conftest.$ac_objext
5522if { (ac_try="$ac_compile"
5523case "(($ac_try" in
5524  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5525  *) ac_try_echo=$ac_try;;
5526esac
5527eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5528  (eval "$ac_compile") 2>conftest.er1
5529  ac_status=$?
5530  grep -v '^ *+' conftest.er1 >conftest.err
5531  rm -f conftest.er1
5532  cat conftest.err >&5
5533  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5534  (exit $ac_status); } && {
5535	 test -z "$ac_c_werror_flag" ||
5536	 test ! -s conftest.err
5537       } && test -s conftest.$ac_objext; then
5538  ac_lo=$ac_mid; break
5539else
5540  echo "$as_me: failed program was:" >&5
5541sed 's/^/| /' conftest.$ac_ext >&5
5542
5543	ac_hi=`expr '(' $ac_mid ')' - 1`
5544			if test $ac_mid -le $ac_hi; then
5545			  ac_lo= ac_hi=
5546			  break
5547			fi
5548			ac_mid=`expr 2 '*' $ac_mid`
5549fi
5550
5551rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5552  done
5553else
5554  echo "$as_me: failed program was:" >&5
5555sed 's/^/| /' conftest.$ac_ext >&5
5556
5557	ac_lo= ac_hi=
5558fi
5559
5560rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5561fi
5562
5563rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5564# Binary search between lo and hi bounds.
5565while test "x$ac_lo" != "x$ac_hi"; do
5566  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5567  cat >conftest.$ac_ext <<_ACEOF
5568/* confdefs.h.  */
5569_ACEOF
5570cat confdefs.h >>conftest.$ac_ext
5571cat >>conftest.$ac_ext <<_ACEOF
5572/* end confdefs.h.  */
5573$ac_includes_default
5574   typedef char ac__type_sizeof_;
5575int
5576main ()
5577{
5578static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5579test_array [0] = 0
5580
5581  ;
5582  return 0;
5583}
5584_ACEOF
5585rm -f conftest.$ac_objext
5586if { (ac_try="$ac_compile"
5587case "(($ac_try" in
5588  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5589  *) ac_try_echo=$ac_try;;
5590esac
5591eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5592  (eval "$ac_compile") 2>conftest.er1
5593  ac_status=$?
5594  grep -v '^ *+' conftest.er1 >conftest.err
5595  rm -f conftest.er1
5596  cat conftest.err >&5
5597  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5598  (exit $ac_status); } && {
5599	 test -z "$ac_c_werror_flag" ||
5600	 test ! -s conftest.err
5601       } && test -s conftest.$ac_objext; then
5602  ac_hi=$ac_mid
5603else
5604  echo "$as_me: failed program was:" >&5
5605sed 's/^/| /' conftest.$ac_ext >&5
5606
5607	ac_lo=`expr '(' $ac_mid ')' + 1`
5608fi
5609
5610rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5611done
5612case $ac_lo in
5613?*) ac_cv_sizeof_char=$ac_lo;;
5614'') if test "$ac_cv_type_char" = yes; then
5615     { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
5616See \`config.log' for more details." >&5
5617echo "$as_me: error: cannot compute sizeof (char)
5618See \`config.log' for more details." >&2;}
5619   { (exit 77); exit 77; }; }
5620   else
5621     ac_cv_sizeof_char=0
5622   fi ;;
5623esac
5624else
5625  cat >conftest.$ac_ext <<_ACEOF
5626/* confdefs.h.  */
5627_ACEOF
5628cat confdefs.h >>conftest.$ac_ext
5629cat >>conftest.$ac_ext <<_ACEOF
5630/* end confdefs.h.  */
5631$ac_includes_default
5632   typedef char ac__type_sizeof_;
5633static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
5634static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
5635#include <stdio.h>
5636#include <stdlib.h>
5637int
5638main ()
5639{
5640
5641  FILE *f = fopen ("conftest.val", "w");
5642  if (! f)
5643    return 1;
5644  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
5645    {
5646      long int i = longval ();
5647      if (i != ((long int) (sizeof (ac__type_sizeof_))))
5648	return 1;
5649      fprintf (f, "%ld\n", i);
5650    }
5651  else
5652    {
5653      unsigned long int i = ulongval ();
5654      if (i != ((long int) (sizeof (ac__type_sizeof_))))
5655	return 1;
5656      fprintf (f, "%lu\n", i);
5657    }
5658  return ferror (f) || fclose (f) != 0;
5659
5660  ;
5661  return 0;
5662}
5663_ACEOF
5664rm -f conftest$ac_exeext
5665if { (ac_try="$ac_link"
5666case "(($ac_try" in
5667  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5668  *) ac_try_echo=$ac_try;;
5669esac
5670eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5671  (eval "$ac_link") 2>&5
5672  ac_status=$?
5673  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5674  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5675  { (case "(($ac_try" in
5676  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5677  *) ac_try_echo=$ac_try;;
5678esac
5679eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5680  (eval "$ac_try") 2>&5
5681  ac_status=$?
5682  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5683  (exit $ac_status); }; }; then
5684  ac_cv_sizeof_char=`cat conftest.val`
5685else
5686  echo "$as_me: program exited with status $ac_status" >&5
5687echo "$as_me: failed program was:" >&5
5688sed 's/^/| /' conftest.$ac_ext >&5
5689
5690( exit $ac_status )
5691if test "$ac_cv_type_char" = yes; then
5692     { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
5693See \`config.log' for more details." >&5
5694echo "$as_me: error: cannot compute sizeof (char)
5695See \`config.log' for more details." >&2;}
5696   { (exit 77); exit 77; }; }
5697   else
5698     ac_cv_sizeof_char=0
5699   fi
5700fi
5701rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5702fi
5703rm -f conftest.val
5704fi
5705{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
5706echo "${ECHO_T}$ac_cv_sizeof_char" >&6; }
5707
5708
5709
5710cat >>confdefs.h <<_ACEOF
5711#define SIZEOF_CHAR $ac_cv_sizeof_char
5712_ACEOF
5713
5714
5715{ echo "$as_me:$LINENO: checking for short" >&5
5716echo $ECHO_N "checking for short... $ECHO_C" >&6; }
5717if test "${ac_cv_type_short+set}" = set; then
5718  echo $ECHO_N "(cached) $ECHO_C" >&6
5719else
5720  cat >conftest.$ac_ext <<_ACEOF
5721/* confdefs.h.  */
5722_ACEOF
5723cat confdefs.h >>conftest.$ac_ext
5724cat >>conftest.$ac_ext <<_ACEOF
5725/* end confdefs.h.  */
5726$ac_includes_default
5727typedef short ac__type_new_;
5728int
5729main ()
5730{
5731if ((ac__type_new_ *) 0)
5732  return 0;
5733if (sizeof (ac__type_new_))
5734  return 0;
5735  ;
5736  return 0;
5737}
5738_ACEOF
5739rm -f conftest.$ac_objext
5740if { (ac_try="$ac_compile"
5741case "(($ac_try" in
5742  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5743  *) ac_try_echo=$ac_try;;
5744esac
5745eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5746  (eval "$ac_compile") 2>conftest.er1
5747  ac_status=$?
5748  grep -v '^ *+' conftest.er1 >conftest.err
5749  rm -f conftest.er1
5750  cat conftest.err >&5
5751  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5752  (exit $ac_status); } && {
5753	 test -z "$ac_c_werror_flag" ||
5754	 test ! -s conftest.err
5755       } && test -s conftest.$ac_objext; then
5756  ac_cv_type_short=yes
5757else
5758  echo "$as_me: failed program was:" >&5
5759sed 's/^/| /' conftest.$ac_ext >&5
5760
5761	ac_cv_type_short=no
5762fi
5763
5764rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5765fi
5766{ echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
5767echo "${ECHO_T}$ac_cv_type_short" >&6; }
5768
5769# The cast to long int works around a bug in the HP C Compiler
5770# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5771# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5772# This bug is HP SR number 8606223364.
5773{ echo "$as_me:$LINENO: checking size of short" >&5
5774echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
5775if test "${ac_cv_sizeof_short+set}" = set; then
5776  echo $ECHO_N "(cached) $ECHO_C" >&6
5777else
5778  if test "$cross_compiling" = yes; then
5779  # Depending upon the size, compute the lo and hi bounds.
5780cat >conftest.$ac_ext <<_ACEOF
5781/* confdefs.h.  */
5782_ACEOF
5783cat confdefs.h >>conftest.$ac_ext
5784cat >>conftest.$ac_ext <<_ACEOF
5785/* end confdefs.h.  */
5786$ac_includes_default
5787   typedef short ac__type_sizeof_;
5788int
5789main ()
5790{
5791static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
5792test_array [0] = 0
5793
5794  ;
5795  return 0;
5796}
5797_ACEOF
5798rm -f conftest.$ac_objext
5799if { (ac_try="$ac_compile"
5800case "(($ac_try" in
5801  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5802  *) ac_try_echo=$ac_try;;
5803esac
5804eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5805  (eval "$ac_compile") 2>conftest.er1
5806  ac_status=$?
5807  grep -v '^ *+' conftest.er1 >conftest.err
5808  rm -f conftest.er1
5809  cat conftest.err >&5
5810  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5811  (exit $ac_status); } && {
5812	 test -z "$ac_c_werror_flag" ||
5813	 test ! -s conftest.err
5814       } && test -s conftest.$ac_objext; then
5815  ac_lo=0 ac_mid=0
5816  while :; do
5817    cat >conftest.$ac_ext <<_ACEOF
5818/* confdefs.h.  */
5819_ACEOF
5820cat confdefs.h >>conftest.$ac_ext
5821cat >>conftest.$ac_ext <<_ACEOF
5822/* end confdefs.h.  */
5823$ac_includes_default
5824   typedef short ac__type_sizeof_;
5825int
5826main ()
5827{
5828static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5829test_array [0] = 0
5830
5831  ;
5832  return 0;
5833}
5834_ACEOF
5835rm -f conftest.$ac_objext
5836if { (ac_try="$ac_compile"
5837case "(($ac_try" in
5838  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5839  *) ac_try_echo=$ac_try;;
5840esac
5841eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5842  (eval "$ac_compile") 2>conftest.er1
5843  ac_status=$?
5844  grep -v '^ *+' conftest.er1 >conftest.err
5845  rm -f conftest.er1
5846  cat conftest.err >&5
5847  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5848  (exit $ac_status); } && {
5849	 test -z "$ac_c_werror_flag" ||
5850	 test ! -s conftest.err
5851       } && test -s conftest.$ac_objext; then
5852  ac_hi=$ac_mid; break
5853else
5854  echo "$as_me: failed program was:" >&5
5855sed 's/^/| /' conftest.$ac_ext >&5
5856
5857	ac_lo=`expr $ac_mid + 1`
5858			if test $ac_lo -le $ac_mid; then
5859			  ac_lo= ac_hi=
5860			  break
5861			fi
5862			ac_mid=`expr 2 '*' $ac_mid + 1`
5863fi
5864
5865rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5866  done
5867else
5868  echo "$as_me: failed program was:" >&5
5869sed 's/^/| /' conftest.$ac_ext >&5
5870
5871	cat >conftest.$ac_ext <<_ACEOF
5872/* confdefs.h.  */
5873_ACEOF
5874cat confdefs.h >>conftest.$ac_ext
5875cat >>conftest.$ac_ext <<_ACEOF
5876/* end confdefs.h.  */
5877$ac_includes_default
5878   typedef short ac__type_sizeof_;
5879int
5880main ()
5881{
5882static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
5883test_array [0] = 0
5884
5885  ;
5886  return 0;
5887}
5888_ACEOF
5889rm -f conftest.$ac_objext
5890if { (ac_try="$ac_compile"
5891case "(($ac_try" in
5892  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5893  *) ac_try_echo=$ac_try;;
5894esac
5895eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5896  (eval "$ac_compile") 2>conftest.er1
5897  ac_status=$?
5898  grep -v '^ *+' conftest.er1 >conftest.err
5899  rm -f conftest.er1
5900  cat conftest.err >&5
5901  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5902  (exit $ac_status); } && {
5903	 test -z "$ac_c_werror_flag" ||
5904	 test ! -s conftest.err
5905       } && test -s conftest.$ac_objext; then
5906  ac_hi=-1 ac_mid=-1
5907  while :; do
5908    cat >conftest.$ac_ext <<_ACEOF
5909/* confdefs.h.  */
5910_ACEOF
5911cat confdefs.h >>conftest.$ac_ext
5912cat >>conftest.$ac_ext <<_ACEOF
5913/* end confdefs.h.  */
5914$ac_includes_default
5915   typedef short ac__type_sizeof_;
5916int
5917main ()
5918{
5919static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
5920test_array [0] = 0
5921
5922  ;
5923  return 0;
5924}
5925_ACEOF
5926rm -f conftest.$ac_objext
5927if { (ac_try="$ac_compile"
5928case "(($ac_try" in
5929  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5930  *) ac_try_echo=$ac_try;;
5931esac
5932eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5933  (eval "$ac_compile") 2>conftest.er1
5934  ac_status=$?
5935  grep -v '^ *+' conftest.er1 >conftest.err
5936  rm -f conftest.er1
5937  cat conftest.err >&5
5938  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5939  (exit $ac_status); } && {
5940	 test -z "$ac_c_werror_flag" ||
5941	 test ! -s conftest.err
5942       } && test -s conftest.$ac_objext; then
5943  ac_lo=$ac_mid; break
5944else
5945  echo "$as_me: failed program was:" >&5
5946sed 's/^/| /' conftest.$ac_ext >&5
5947
5948	ac_hi=`expr '(' $ac_mid ')' - 1`
5949			if test $ac_mid -le $ac_hi; then
5950			  ac_lo= ac_hi=
5951			  break
5952			fi
5953			ac_mid=`expr 2 '*' $ac_mid`
5954fi
5955
5956rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5957  done
5958else
5959  echo "$as_me: failed program was:" >&5
5960sed 's/^/| /' conftest.$ac_ext >&5
5961
5962	ac_lo= ac_hi=
5963fi
5964
5965rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5966fi
5967
5968rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5969# Binary search between lo and hi bounds.
5970while test "x$ac_lo" != "x$ac_hi"; do
5971  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5972  cat >conftest.$ac_ext <<_ACEOF
5973/* confdefs.h.  */
5974_ACEOF
5975cat confdefs.h >>conftest.$ac_ext
5976cat >>conftest.$ac_ext <<_ACEOF
5977/* end confdefs.h.  */
5978$ac_includes_default
5979   typedef short ac__type_sizeof_;
5980int
5981main ()
5982{
5983static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5984test_array [0] = 0
5985
5986  ;
5987  return 0;
5988}
5989_ACEOF
5990rm -f conftest.$ac_objext
5991if { (ac_try="$ac_compile"
5992case "(($ac_try" in
5993  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5994  *) ac_try_echo=$ac_try;;
5995esac
5996eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5997  (eval "$ac_compile") 2>conftest.er1
5998  ac_status=$?
5999  grep -v '^ *+' conftest.er1 >conftest.err
6000  rm -f conftest.er1
6001  cat conftest.err >&5
6002  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6003  (exit $ac_status); } && {
6004	 test -z "$ac_c_werror_flag" ||
6005	 test ! -s conftest.err
6006       } && test -s conftest.$ac_objext; then
6007  ac_hi=$ac_mid
6008else
6009  echo "$as_me: failed program was:" >&5
6010sed 's/^/| /' conftest.$ac_ext >&5
6011
6012	ac_lo=`expr '(' $ac_mid ')' + 1`
6013fi
6014
6015rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6016done
6017case $ac_lo in
6018?*) ac_cv_sizeof_short=$ac_lo;;
6019'') if test "$ac_cv_type_short" = yes; then
6020     { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
6021See \`config.log' for more details." >&5
6022echo "$as_me: error: cannot compute sizeof (short)
6023See \`config.log' for more details." >&2;}
6024   { (exit 77); exit 77; }; }
6025   else
6026     ac_cv_sizeof_short=0
6027   fi ;;
6028esac
6029else
6030  cat >conftest.$ac_ext <<_ACEOF
6031/* confdefs.h.  */
6032_ACEOF
6033cat confdefs.h >>conftest.$ac_ext
6034cat >>conftest.$ac_ext <<_ACEOF
6035/* end confdefs.h.  */
6036$ac_includes_default
6037   typedef short ac__type_sizeof_;
6038static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
6039static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
6040#include <stdio.h>
6041#include <stdlib.h>
6042int
6043main ()
6044{
6045
6046  FILE *f = fopen ("conftest.val", "w");
6047  if (! f)
6048    return 1;
6049  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
6050    {
6051      long int i = longval ();
6052      if (i != ((long int) (sizeof (ac__type_sizeof_))))
6053	return 1;
6054      fprintf (f, "%ld\n", i);
6055    }
6056  else
6057    {
6058      unsigned long int i = ulongval ();
6059      if (i != ((long int) (sizeof (ac__type_sizeof_))))
6060	return 1;
6061      fprintf (f, "%lu\n", i);
6062    }
6063  return ferror (f) || fclose (f) != 0;
6064
6065  ;
6066  return 0;
6067}
6068_ACEOF
6069rm -f conftest$ac_exeext
6070if { (ac_try="$ac_link"
6071case "(($ac_try" in
6072  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6073  *) ac_try_echo=$ac_try;;
6074esac
6075eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6076  (eval "$ac_link") 2>&5
6077  ac_status=$?
6078  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6079  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6080  { (case "(($ac_try" in
6081  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6082  *) ac_try_echo=$ac_try;;
6083esac
6084eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6085  (eval "$ac_try") 2>&5
6086  ac_status=$?
6087  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6088  (exit $ac_status); }; }; then
6089  ac_cv_sizeof_short=`cat conftest.val`
6090else
6091  echo "$as_me: program exited with status $ac_status" >&5
6092echo "$as_me: failed program was:" >&5
6093sed 's/^/| /' conftest.$ac_ext >&5
6094
6095( exit $ac_status )
6096if test "$ac_cv_type_short" = yes; then
6097     { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
6098See \`config.log' for more details." >&5
6099echo "$as_me: error: cannot compute sizeof (short)
6100See \`config.log' for more details." >&2;}
6101   { (exit 77); exit 77; }; }
6102   else
6103     ac_cv_sizeof_short=0
6104   fi
6105fi
6106rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6107fi
6108rm -f conftest.val
6109fi
6110{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
6111echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
6112
6113
6114
6115cat >>confdefs.h <<_ACEOF
6116#define SIZEOF_SHORT $ac_cv_sizeof_short
6117_ACEOF
6118
6119
6120{ echo "$as_me:$LINENO: checking for int" >&5
6121echo $ECHO_N "checking for int... $ECHO_C" >&6; }
6122if test "${ac_cv_type_int+set}" = set; then
6123  echo $ECHO_N "(cached) $ECHO_C" >&6
6124else
6125  cat >conftest.$ac_ext <<_ACEOF
6126/* confdefs.h.  */
6127_ACEOF
6128cat confdefs.h >>conftest.$ac_ext
6129cat >>conftest.$ac_ext <<_ACEOF
6130/* end confdefs.h.  */
6131$ac_includes_default
6132typedef int ac__type_new_;
6133int
6134main ()
6135{
6136if ((ac__type_new_ *) 0)
6137  return 0;
6138if (sizeof (ac__type_new_))
6139  return 0;
6140  ;
6141  return 0;
6142}
6143_ACEOF
6144rm -f conftest.$ac_objext
6145if { (ac_try="$ac_compile"
6146case "(($ac_try" in
6147  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6148  *) ac_try_echo=$ac_try;;
6149esac
6150eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6151  (eval "$ac_compile") 2>conftest.er1
6152  ac_status=$?
6153  grep -v '^ *+' conftest.er1 >conftest.err
6154  rm -f conftest.er1
6155  cat conftest.err >&5
6156  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6157  (exit $ac_status); } && {
6158	 test -z "$ac_c_werror_flag" ||
6159	 test ! -s conftest.err
6160       } && test -s conftest.$ac_objext; then
6161  ac_cv_type_int=yes
6162else
6163  echo "$as_me: failed program was:" >&5
6164sed 's/^/| /' conftest.$ac_ext >&5
6165
6166	ac_cv_type_int=no
6167fi
6168
6169rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6170fi
6171{ echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
6172echo "${ECHO_T}$ac_cv_type_int" >&6; }
6173
6174# The cast to long int works around a bug in the HP C Compiler
6175# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6176# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6177# This bug is HP SR number 8606223364.
6178{ echo "$as_me:$LINENO: checking size of int" >&5
6179echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
6180if test "${ac_cv_sizeof_int+set}" = set; then
6181  echo $ECHO_N "(cached) $ECHO_C" >&6
6182else
6183  if test "$cross_compiling" = yes; then
6184  # Depending upon the size, compute the lo and hi bounds.
6185cat >conftest.$ac_ext <<_ACEOF
6186/* confdefs.h.  */
6187_ACEOF
6188cat confdefs.h >>conftest.$ac_ext
6189cat >>conftest.$ac_ext <<_ACEOF
6190/* end confdefs.h.  */
6191$ac_includes_default
6192   typedef int ac__type_sizeof_;
6193int
6194main ()
6195{
6196static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
6197test_array [0] = 0
6198
6199  ;
6200  return 0;
6201}
6202_ACEOF
6203rm -f conftest.$ac_objext
6204if { (ac_try="$ac_compile"
6205case "(($ac_try" in
6206  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6207  *) ac_try_echo=$ac_try;;
6208esac
6209eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6210  (eval "$ac_compile") 2>conftest.er1
6211  ac_status=$?
6212  grep -v '^ *+' conftest.er1 >conftest.err
6213  rm -f conftest.er1
6214  cat conftest.err >&5
6215  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6216  (exit $ac_status); } && {
6217	 test -z "$ac_c_werror_flag" ||
6218	 test ! -s conftest.err
6219       } && test -s conftest.$ac_objext; then
6220  ac_lo=0 ac_mid=0
6221  while :; do
6222    cat >conftest.$ac_ext <<_ACEOF
6223/* confdefs.h.  */
6224_ACEOF
6225cat confdefs.h >>conftest.$ac_ext
6226cat >>conftest.$ac_ext <<_ACEOF
6227/* end confdefs.h.  */
6228$ac_includes_default
6229   typedef int ac__type_sizeof_;
6230int
6231main ()
6232{
6233static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6234test_array [0] = 0
6235
6236  ;
6237  return 0;
6238}
6239_ACEOF
6240rm -f conftest.$ac_objext
6241if { (ac_try="$ac_compile"
6242case "(($ac_try" in
6243  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6244  *) ac_try_echo=$ac_try;;
6245esac
6246eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6247  (eval "$ac_compile") 2>conftest.er1
6248  ac_status=$?
6249  grep -v '^ *+' conftest.er1 >conftest.err
6250  rm -f conftest.er1
6251  cat conftest.err >&5
6252  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6253  (exit $ac_status); } && {
6254	 test -z "$ac_c_werror_flag" ||
6255	 test ! -s conftest.err
6256       } && test -s conftest.$ac_objext; then
6257  ac_hi=$ac_mid; break
6258else
6259  echo "$as_me: failed program was:" >&5
6260sed 's/^/| /' conftest.$ac_ext >&5
6261
6262	ac_lo=`expr $ac_mid + 1`
6263			if test $ac_lo -le $ac_mid; then
6264			  ac_lo= ac_hi=
6265			  break
6266			fi
6267			ac_mid=`expr 2 '*' $ac_mid + 1`
6268fi
6269
6270rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6271  done
6272else
6273  echo "$as_me: failed program was:" >&5
6274sed 's/^/| /' conftest.$ac_ext >&5
6275
6276	cat >conftest.$ac_ext <<_ACEOF
6277/* confdefs.h.  */
6278_ACEOF
6279cat confdefs.h >>conftest.$ac_ext
6280cat >>conftest.$ac_ext <<_ACEOF
6281/* end confdefs.h.  */
6282$ac_includes_default
6283   typedef int ac__type_sizeof_;
6284int
6285main ()
6286{
6287static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
6288test_array [0] = 0
6289
6290  ;
6291  return 0;
6292}
6293_ACEOF
6294rm -f conftest.$ac_objext
6295if { (ac_try="$ac_compile"
6296case "(($ac_try" in
6297  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6298  *) ac_try_echo=$ac_try;;
6299esac
6300eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6301  (eval "$ac_compile") 2>conftest.er1
6302  ac_status=$?
6303  grep -v '^ *+' conftest.er1 >conftest.err
6304  rm -f conftest.er1
6305  cat conftest.err >&5
6306  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6307  (exit $ac_status); } && {
6308	 test -z "$ac_c_werror_flag" ||
6309	 test ! -s conftest.err
6310       } && test -s conftest.$ac_objext; then
6311  ac_hi=-1 ac_mid=-1
6312  while :; do
6313    cat >conftest.$ac_ext <<_ACEOF
6314/* confdefs.h.  */
6315_ACEOF
6316cat confdefs.h >>conftest.$ac_ext
6317cat >>conftest.$ac_ext <<_ACEOF
6318/* end confdefs.h.  */
6319$ac_includes_default
6320   typedef int ac__type_sizeof_;
6321int
6322main ()
6323{
6324static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
6325test_array [0] = 0
6326
6327  ;
6328  return 0;
6329}
6330_ACEOF
6331rm -f conftest.$ac_objext
6332if { (ac_try="$ac_compile"
6333case "(($ac_try" in
6334  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6335  *) ac_try_echo=$ac_try;;
6336esac
6337eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6338  (eval "$ac_compile") 2>conftest.er1
6339  ac_status=$?
6340  grep -v '^ *+' conftest.er1 >conftest.err
6341  rm -f conftest.er1
6342  cat conftest.err >&5
6343  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6344  (exit $ac_status); } && {
6345	 test -z "$ac_c_werror_flag" ||
6346	 test ! -s conftest.err
6347       } && test -s conftest.$ac_objext; then
6348  ac_lo=$ac_mid; break
6349else
6350  echo "$as_me: failed program was:" >&5
6351sed 's/^/| /' conftest.$ac_ext >&5
6352
6353	ac_hi=`expr '(' $ac_mid ')' - 1`
6354			if test $ac_mid -le $ac_hi; then
6355			  ac_lo= ac_hi=
6356			  break
6357			fi
6358			ac_mid=`expr 2 '*' $ac_mid`
6359fi
6360
6361rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6362  done
6363else
6364  echo "$as_me: failed program was:" >&5
6365sed 's/^/| /' conftest.$ac_ext >&5
6366
6367	ac_lo= ac_hi=
6368fi
6369
6370rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6371fi
6372
6373rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6374# Binary search between lo and hi bounds.
6375while test "x$ac_lo" != "x$ac_hi"; do
6376  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6377  cat >conftest.$ac_ext <<_ACEOF
6378/* confdefs.h.  */
6379_ACEOF
6380cat confdefs.h >>conftest.$ac_ext
6381cat >>conftest.$ac_ext <<_ACEOF
6382/* end confdefs.h.  */
6383$ac_includes_default
6384   typedef int ac__type_sizeof_;
6385int
6386main ()
6387{
6388static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6389test_array [0] = 0
6390
6391  ;
6392  return 0;
6393}
6394_ACEOF
6395rm -f conftest.$ac_objext
6396if { (ac_try="$ac_compile"
6397case "(($ac_try" in
6398  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6399  *) ac_try_echo=$ac_try;;
6400esac
6401eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6402  (eval "$ac_compile") 2>conftest.er1
6403  ac_status=$?
6404  grep -v '^ *+' conftest.er1 >conftest.err
6405  rm -f conftest.er1
6406  cat conftest.err >&5
6407  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6408  (exit $ac_status); } && {
6409	 test -z "$ac_c_werror_flag" ||
6410	 test ! -s conftest.err
6411       } && test -s conftest.$ac_objext; then
6412  ac_hi=$ac_mid
6413else
6414  echo "$as_me: failed program was:" >&5
6415sed 's/^/| /' conftest.$ac_ext >&5
6416
6417	ac_lo=`expr '(' $ac_mid ')' + 1`
6418fi
6419
6420rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6421done
6422case $ac_lo in
6423?*) ac_cv_sizeof_int=$ac_lo;;
6424'') if test "$ac_cv_type_int" = yes; then
6425     { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
6426See \`config.log' for more details." >&5
6427echo "$as_me: error: cannot compute sizeof (int)
6428See \`config.log' for more details." >&2;}
6429   { (exit 77); exit 77; }; }
6430   else
6431     ac_cv_sizeof_int=0
6432   fi ;;
6433esac
6434else
6435  cat >conftest.$ac_ext <<_ACEOF
6436/* confdefs.h.  */
6437_ACEOF
6438cat confdefs.h >>conftest.$ac_ext
6439cat >>conftest.$ac_ext <<_ACEOF
6440/* end confdefs.h.  */
6441$ac_includes_default
6442   typedef int ac__type_sizeof_;
6443static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
6444static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
6445#include <stdio.h>
6446#include <stdlib.h>
6447int
6448main ()
6449{
6450
6451  FILE *f = fopen ("conftest.val", "w");
6452  if (! f)
6453    return 1;
6454  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
6455    {
6456      long int i = longval ();
6457      if (i != ((long int) (sizeof (ac__type_sizeof_))))
6458	return 1;
6459      fprintf (f, "%ld\n", i);
6460    }
6461  else
6462    {
6463      unsigned long int i = ulongval ();
6464      if (i != ((long int) (sizeof (ac__type_sizeof_))))
6465	return 1;
6466      fprintf (f, "%lu\n", i);
6467    }
6468  return ferror (f) || fclose (f) != 0;
6469
6470  ;
6471  return 0;
6472}
6473_ACEOF
6474rm -f conftest$ac_exeext
6475if { (ac_try="$ac_link"
6476case "(($ac_try" in
6477  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6478  *) ac_try_echo=$ac_try;;
6479esac
6480eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6481  (eval "$ac_link") 2>&5
6482  ac_status=$?
6483  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6484  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6485  { (case "(($ac_try" in
6486  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6487  *) ac_try_echo=$ac_try;;
6488esac
6489eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6490  (eval "$ac_try") 2>&5
6491  ac_status=$?
6492  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6493  (exit $ac_status); }; }; then
6494  ac_cv_sizeof_int=`cat conftest.val`
6495else
6496  echo "$as_me: program exited with status $ac_status" >&5
6497echo "$as_me: failed program was:" >&5
6498sed 's/^/| /' conftest.$ac_ext >&5
6499
6500( exit $ac_status )
6501if test "$ac_cv_type_int" = yes; then
6502     { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
6503See \`config.log' for more details." >&5
6504echo "$as_me: error: cannot compute sizeof (int)
6505See \`config.log' for more details." >&2;}
6506   { (exit 77); exit 77; }; }
6507   else
6508     ac_cv_sizeof_int=0
6509   fi
6510fi
6511rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6512fi
6513rm -f conftest.val
6514fi
6515{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
6516echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
6517
6518
6519
6520cat >>confdefs.h <<_ACEOF
6521#define SIZEOF_INT $ac_cv_sizeof_int
6522_ACEOF
6523
6524
6525{ echo "$as_me:$LINENO: checking for long" >&5
6526echo $ECHO_N "checking for long... $ECHO_C" >&6; }
6527if test "${ac_cv_type_long+set}" = set; then
6528  echo $ECHO_N "(cached) $ECHO_C" >&6
6529else
6530  cat >conftest.$ac_ext <<_ACEOF
6531/* confdefs.h.  */
6532_ACEOF
6533cat confdefs.h >>conftest.$ac_ext
6534cat >>conftest.$ac_ext <<_ACEOF
6535/* end confdefs.h.  */
6536$ac_includes_default
6537typedef long ac__type_new_;
6538int
6539main ()
6540{
6541if ((ac__type_new_ *) 0)
6542  return 0;
6543if (sizeof (ac__type_new_))
6544  return 0;
6545  ;
6546  return 0;
6547}
6548_ACEOF
6549rm -f conftest.$ac_objext
6550if { (ac_try="$ac_compile"
6551case "(($ac_try" in
6552  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6553  *) ac_try_echo=$ac_try;;
6554esac
6555eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6556  (eval "$ac_compile") 2>conftest.er1
6557  ac_status=$?
6558  grep -v '^ *+' conftest.er1 >conftest.err
6559  rm -f conftest.er1
6560  cat conftest.err >&5
6561  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6562  (exit $ac_status); } && {
6563	 test -z "$ac_c_werror_flag" ||
6564	 test ! -s conftest.err
6565       } && test -s conftest.$ac_objext; then
6566  ac_cv_type_long=yes
6567else
6568  echo "$as_me: failed program was:" >&5
6569sed 's/^/| /' conftest.$ac_ext >&5
6570
6571	ac_cv_type_long=no
6572fi
6573
6574rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6575fi
6576{ echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
6577echo "${ECHO_T}$ac_cv_type_long" >&6; }
6578
6579# The cast to long int works around a bug in the HP C Compiler
6580# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6581# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6582# This bug is HP SR number 8606223364.
6583{ echo "$as_me:$LINENO: checking size of long" >&5
6584echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
6585if test "${ac_cv_sizeof_long+set}" = set; then
6586  echo $ECHO_N "(cached) $ECHO_C" >&6
6587else
6588  if test "$cross_compiling" = yes; then
6589  # Depending upon the size, compute the lo and hi bounds.
6590cat >conftest.$ac_ext <<_ACEOF
6591/* confdefs.h.  */
6592_ACEOF
6593cat confdefs.h >>conftest.$ac_ext
6594cat >>conftest.$ac_ext <<_ACEOF
6595/* end confdefs.h.  */
6596$ac_includes_default
6597   typedef long ac__type_sizeof_;
6598int
6599main ()
6600{
6601static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
6602test_array [0] = 0
6603
6604  ;
6605  return 0;
6606}
6607_ACEOF
6608rm -f conftest.$ac_objext
6609if { (ac_try="$ac_compile"
6610case "(($ac_try" in
6611  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6612  *) ac_try_echo=$ac_try;;
6613esac
6614eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6615  (eval "$ac_compile") 2>conftest.er1
6616  ac_status=$?
6617  grep -v '^ *+' conftest.er1 >conftest.err
6618  rm -f conftest.er1
6619  cat conftest.err >&5
6620  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6621  (exit $ac_status); } && {
6622	 test -z "$ac_c_werror_flag" ||
6623	 test ! -s conftest.err
6624       } && test -s conftest.$ac_objext; then
6625  ac_lo=0 ac_mid=0
6626  while :; do
6627    cat >conftest.$ac_ext <<_ACEOF
6628/* confdefs.h.  */
6629_ACEOF
6630cat confdefs.h >>conftest.$ac_ext
6631cat >>conftest.$ac_ext <<_ACEOF
6632/* end confdefs.h.  */
6633$ac_includes_default
6634   typedef long ac__type_sizeof_;
6635int
6636main ()
6637{
6638static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6639test_array [0] = 0
6640
6641  ;
6642  return 0;
6643}
6644_ACEOF
6645rm -f conftest.$ac_objext
6646if { (ac_try="$ac_compile"
6647case "(($ac_try" in
6648  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6649  *) ac_try_echo=$ac_try;;
6650esac
6651eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6652  (eval "$ac_compile") 2>conftest.er1
6653  ac_status=$?
6654  grep -v '^ *+' conftest.er1 >conftest.err
6655  rm -f conftest.er1
6656  cat conftest.err >&5
6657  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6658  (exit $ac_status); } && {
6659	 test -z "$ac_c_werror_flag" ||
6660	 test ! -s conftest.err
6661       } && test -s conftest.$ac_objext; then
6662  ac_hi=$ac_mid; break
6663else
6664  echo "$as_me: failed program was:" >&5
6665sed 's/^/| /' conftest.$ac_ext >&5
6666
6667	ac_lo=`expr $ac_mid + 1`
6668			if test $ac_lo -le $ac_mid; then
6669			  ac_lo= ac_hi=
6670			  break
6671			fi
6672			ac_mid=`expr 2 '*' $ac_mid + 1`
6673fi
6674
6675rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6676  done
6677else
6678  echo "$as_me: failed program was:" >&5
6679sed 's/^/| /' conftest.$ac_ext >&5
6680
6681	cat >conftest.$ac_ext <<_ACEOF
6682/* confdefs.h.  */
6683_ACEOF
6684cat confdefs.h >>conftest.$ac_ext
6685cat >>conftest.$ac_ext <<_ACEOF
6686/* end confdefs.h.  */
6687$ac_includes_default
6688   typedef long ac__type_sizeof_;
6689int
6690main ()
6691{
6692static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
6693test_array [0] = 0
6694
6695  ;
6696  return 0;
6697}
6698_ACEOF
6699rm -f conftest.$ac_objext
6700if { (ac_try="$ac_compile"
6701case "(($ac_try" in
6702  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6703  *) ac_try_echo=$ac_try;;
6704esac
6705eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6706  (eval "$ac_compile") 2>conftest.er1
6707  ac_status=$?
6708  grep -v '^ *+' conftest.er1 >conftest.err
6709  rm -f conftest.er1
6710  cat conftest.err >&5
6711  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6712  (exit $ac_status); } && {
6713	 test -z "$ac_c_werror_flag" ||
6714	 test ! -s conftest.err
6715       } && test -s conftest.$ac_objext; then
6716  ac_hi=-1 ac_mid=-1
6717  while :; do
6718    cat >conftest.$ac_ext <<_ACEOF
6719/* confdefs.h.  */
6720_ACEOF
6721cat confdefs.h >>conftest.$ac_ext
6722cat >>conftest.$ac_ext <<_ACEOF
6723/* end confdefs.h.  */
6724$ac_includes_default
6725   typedef long ac__type_sizeof_;
6726int
6727main ()
6728{
6729static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
6730test_array [0] = 0
6731
6732  ;
6733  return 0;
6734}
6735_ACEOF
6736rm -f conftest.$ac_objext
6737if { (ac_try="$ac_compile"
6738case "(($ac_try" in
6739  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6740  *) ac_try_echo=$ac_try;;
6741esac
6742eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6743  (eval "$ac_compile") 2>conftest.er1
6744  ac_status=$?
6745  grep -v '^ *+' conftest.er1 >conftest.err
6746  rm -f conftest.er1
6747  cat conftest.err >&5
6748  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6749  (exit $ac_status); } && {
6750	 test -z "$ac_c_werror_flag" ||
6751	 test ! -s conftest.err
6752       } && test -s conftest.$ac_objext; then
6753  ac_lo=$ac_mid; break
6754else
6755  echo "$as_me: failed program was:" >&5
6756sed 's/^/| /' conftest.$ac_ext >&5
6757
6758	ac_hi=`expr '(' $ac_mid ')' - 1`
6759			if test $ac_mid -le $ac_hi; then
6760			  ac_lo= ac_hi=
6761			  break
6762			fi
6763			ac_mid=`expr 2 '*' $ac_mid`
6764fi
6765
6766rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6767  done
6768else
6769  echo "$as_me: failed program was:" >&5
6770sed 's/^/| /' conftest.$ac_ext >&5
6771
6772	ac_lo= ac_hi=
6773fi
6774
6775rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6776fi
6777
6778rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6779# Binary search between lo and hi bounds.
6780while test "x$ac_lo" != "x$ac_hi"; do
6781  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6782  cat >conftest.$ac_ext <<_ACEOF
6783/* confdefs.h.  */
6784_ACEOF
6785cat confdefs.h >>conftest.$ac_ext
6786cat >>conftest.$ac_ext <<_ACEOF
6787/* end confdefs.h.  */
6788$ac_includes_default
6789   typedef long ac__type_sizeof_;
6790int
6791main ()
6792{
6793static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6794test_array [0] = 0
6795
6796  ;
6797  return 0;
6798}
6799_ACEOF
6800rm -f conftest.$ac_objext
6801if { (ac_try="$ac_compile"
6802case "(($ac_try" in
6803  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6804  *) ac_try_echo=$ac_try;;
6805esac
6806eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6807  (eval "$ac_compile") 2>conftest.er1
6808  ac_status=$?
6809  grep -v '^ *+' conftest.er1 >conftest.err
6810  rm -f conftest.er1
6811  cat conftest.err >&5
6812  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6813  (exit $ac_status); } && {
6814	 test -z "$ac_c_werror_flag" ||
6815	 test ! -s conftest.err
6816       } && test -s conftest.$ac_objext; then
6817  ac_hi=$ac_mid
6818else
6819  echo "$as_me: failed program was:" >&5
6820sed 's/^/| /' conftest.$ac_ext >&5
6821
6822	ac_lo=`expr '(' $ac_mid ')' + 1`
6823fi
6824
6825rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6826done
6827case $ac_lo in
6828?*) ac_cv_sizeof_long=$ac_lo;;
6829'') if test "$ac_cv_type_long" = yes; then
6830     { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
6831See \`config.log' for more details." >&5
6832echo "$as_me: error: cannot compute sizeof (long)
6833See \`config.log' for more details." >&2;}
6834   { (exit 77); exit 77; }; }
6835   else
6836     ac_cv_sizeof_long=0
6837   fi ;;
6838esac
6839else
6840  cat >conftest.$ac_ext <<_ACEOF
6841/* confdefs.h.  */
6842_ACEOF
6843cat confdefs.h >>conftest.$ac_ext
6844cat >>conftest.$ac_ext <<_ACEOF
6845/* end confdefs.h.  */
6846$ac_includes_default
6847   typedef long ac__type_sizeof_;
6848static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
6849static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
6850#include <stdio.h>
6851#include <stdlib.h>
6852int
6853main ()
6854{
6855
6856  FILE *f = fopen ("conftest.val", "w");
6857  if (! f)
6858    return 1;
6859  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
6860    {
6861      long int i = longval ();
6862      if (i != ((long int) (sizeof (ac__type_sizeof_))))
6863	return 1;
6864      fprintf (f, "%ld\n", i);
6865    }
6866  else
6867    {
6868      unsigned long int i = ulongval ();
6869      if (i != ((long int) (sizeof (ac__type_sizeof_))))
6870	return 1;
6871      fprintf (f, "%lu\n", i);
6872    }
6873  return ferror (f) || fclose (f) != 0;
6874
6875  ;
6876  return 0;
6877}
6878_ACEOF
6879rm -f conftest$ac_exeext
6880if { (ac_try="$ac_link"
6881case "(($ac_try" in
6882  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6883  *) ac_try_echo=$ac_try;;
6884esac
6885eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6886  (eval "$ac_link") 2>&5
6887  ac_status=$?
6888  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6889  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6890  { (case "(($ac_try" in
6891  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6892  *) ac_try_echo=$ac_try;;
6893esac
6894eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6895  (eval "$ac_try") 2>&5
6896  ac_status=$?
6897  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6898  (exit $ac_status); }; }; then
6899  ac_cv_sizeof_long=`cat conftest.val`
6900else
6901  echo "$as_me: program exited with status $ac_status" >&5
6902echo "$as_me: failed program was:" >&5
6903sed 's/^/| /' conftest.$ac_ext >&5
6904
6905( exit $ac_status )
6906if test "$ac_cv_type_long" = yes; then
6907     { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
6908See \`config.log' for more details." >&5
6909echo "$as_me: error: cannot compute sizeof (long)
6910See \`config.log' for more details." >&2;}
6911   { (exit 77); exit 77; }; }
6912   else
6913     ac_cv_sizeof_long=0
6914   fi
6915fi
6916rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6917fi
6918rm -f conftest.val
6919fi
6920{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
6921echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
6922
6923
6924
6925cat >>confdefs.h <<_ACEOF
6926#define SIZEOF_LONG $ac_cv_sizeof_long
6927_ACEOF
6928
6929
6930{ echo "$as_me:$LINENO: checking for long long" >&5
6931echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
6932if test "${ac_cv_type_long_long+set}" = set; then
6933  echo $ECHO_N "(cached) $ECHO_C" >&6
6934else
6935  cat >conftest.$ac_ext <<_ACEOF
6936/* confdefs.h.  */
6937_ACEOF
6938cat confdefs.h >>conftest.$ac_ext
6939cat >>conftest.$ac_ext <<_ACEOF
6940/* end confdefs.h.  */
6941$ac_includes_default
6942typedef long long ac__type_new_;
6943int
6944main ()
6945{
6946if ((ac__type_new_ *) 0)
6947  return 0;
6948if (sizeof (ac__type_new_))
6949  return 0;
6950  ;
6951  return 0;
6952}
6953_ACEOF
6954rm -f conftest.$ac_objext
6955if { (ac_try="$ac_compile"
6956case "(($ac_try" in
6957  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6958  *) ac_try_echo=$ac_try;;
6959esac
6960eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6961  (eval "$ac_compile") 2>conftest.er1
6962  ac_status=$?
6963  grep -v '^ *+' conftest.er1 >conftest.err
6964  rm -f conftest.er1
6965  cat conftest.err >&5
6966  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6967  (exit $ac_status); } && {
6968	 test -z "$ac_c_werror_flag" ||
6969	 test ! -s conftest.err
6970       } && test -s conftest.$ac_objext; then
6971  ac_cv_type_long_long=yes
6972else
6973  echo "$as_me: failed program was:" >&5
6974sed 's/^/| /' conftest.$ac_ext >&5
6975
6976	ac_cv_type_long_long=no
6977fi
6978
6979rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6980fi
6981{ echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
6982echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
6983
6984# The cast to long int works around a bug in the HP C Compiler
6985# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6986# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6987# This bug is HP SR number 8606223364.
6988{ echo "$as_me:$LINENO: checking size of long long" >&5
6989echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
6990if test "${ac_cv_sizeof_long_long+set}" = set; then
6991  echo $ECHO_N "(cached) $ECHO_C" >&6
6992else
6993  if test "$cross_compiling" = yes; then
6994  # Depending upon the size, compute the lo and hi bounds.
6995cat >conftest.$ac_ext <<_ACEOF
6996/* confdefs.h.  */
6997_ACEOF
6998cat confdefs.h >>conftest.$ac_ext
6999cat >>conftest.$ac_ext <<_ACEOF
7000/* end confdefs.h.  */
7001$ac_includes_default
7002   typedef long long ac__type_sizeof_;
7003int
7004main ()
7005{
7006static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7007test_array [0] = 0
7008
7009  ;
7010  return 0;
7011}
7012_ACEOF
7013rm -f conftest.$ac_objext
7014if { (ac_try="$ac_compile"
7015case "(($ac_try" in
7016  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7017  *) ac_try_echo=$ac_try;;
7018esac
7019eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7020  (eval "$ac_compile") 2>conftest.er1
7021  ac_status=$?
7022  grep -v '^ *+' conftest.er1 >conftest.err
7023  rm -f conftest.er1
7024  cat conftest.err >&5
7025  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7026  (exit $ac_status); } && {
7027	 test -z "$ac_c_werror_flag" ||
7028	 test ! -s conftest.err
7029       } && test -s conftest.$ac_objext; then
7030  ac_lo=0 ac_mid=0
7031  while :; do
7032    cat >conftest.$ac_ext <<_ACEOF
7033/* confdefs.h.  */
7034_ACEOF
7035cat confdefs.h >>conftest.$ac_ext
7036cat >>conftest.$ac_ext <<_ACEOF
7037/* end confdefs.h.  */
7038$ac_includes_default
7039   typedef long long ac__type_sizeof_;
7040int
7041main ()
7042{
7043static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7044test_array [0] = 0
7045
7046  ;
7047  return 0;
7048}
7049_ACEOF
7050rm -f conftest.$ac_objext
7051if { (ac_try="$ac_compile"
7052case "(($ac_try" in
7053  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7054  *) ac_try_echo=$ac_try;;
7055esac
7056eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7057  (eval "$ac_compile") 2>conftest.er1
7058  ac_status=$?
7059  grep -v '^ *+' conftest.er1 >conftest.err
7060  rm -f conftest.er1
7061  cat conftest.err >&5
7062  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7063  (exit $ac_status); } && {
7064	 test -z "$ac_c_werror_flag" ||
7065	 test ! -s conftest.err
7066       } && test -s conftest.$ac_objext; then
7067  ac_hi=$ac_mid; break
7068else
7069  echo "$as_me: failed program was:" >&5
7070sed 's/^/| /' conftest.$ac_ext >&5
7071
7072	ac_lo=`expr $ac_mid + 1`
7073			if test $ac_lo -le $ac_mid; then
7074			  ac_lo= ac_hi=
7075			  break
7076			fi
7077			ac_mid=`expr 2 '*' $ac_mid + 1`
7078fi
7079
7080rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7081  done
7082else
7083  echo "$as_me: failed program was:" >&5
7084sed 's/^/| /' conftest.$ac_ext >&5
7085
7086	cat >conftest.$ac_ext <<_ACEOF
7087/* confdefs.h.  */
7088_ACEOF
7089cat confdefs.h >>conftest.$ac_ext
7090cat >>conftest.$ac_ext <<_ACEOF
7091/* end confdefs.h.  */
7092$ac_includes_default
7093   typedef long long ac__type_sizeof_;
7094int
7095main ()
7096{
7097static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
7098test_array [0] = 0
7099
7100  ;
7101  return 0;
7102}
7103_ACEOF
7104rm -f conftest.$ac_objext
7105if { (ac_try="$ac_compile"
7106case "(($ac_try" in
7107  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7108  *) ac_try_echo=$ac_try;;
7109esac
7110eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7111  (eval "$ac_compile") 2>conftest.er1
7112  ac_status=$?
7113  grep -v '^ *+' conftest.er1 >conftest.err
7114  rm -f conftest.er1
7115  cat conftest.err >&5
7116  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7117  (exit $ac_status); } && {
7118	 test -z "$ac_c_werror_flag" ||
7119	 test ! -s conftest.err
7120       } && test -s conftest.$ac_objext; then
7121  ac_hi=-1 ac_mid=-1
7122  while :; do
7123    cat >conftest.$ac_ext <<_ACEOF
7124/* confdefs.h.  */
7125_ACEOF
7126cat confdefs.h >>conftest.$ac_ext
7127cat >>conftest.$ac_ext <<_ACEOF
7128/* end confdefs.h.  */
7129$ac_includes_default
7130   typedef long long ac__type_sizeof_;
7131int
7132main ()
7133{
7134static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
7135test_array [0] = 0
7136
7137  ;
7138  return 0;
7139}
7140_ACEOF
7141rm -f conftest.$ac_objext
7142if { (ac_try="$ac_compile"
7143case "(($ac_try" in
7144  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7145  *) ac_try_echo=$ac_try;;
7146esac
7147eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7148  (eval "$ac_compile") 2>conftest.er1
7149  ac_status=$?
7150  grep -v '^ *+' conftest.er1 >conftest.err
7151  rm -f conftest.er1
7152  cat conftest.err >&5
7153  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7154  (exit $ac_status); } && {
7155	 test -z "$ac_c_werror_flag" ||
7156	 test ! -s conftest.err
7157       } && test -s conftest.$ac_objext; then
7158  ac_lo=$ac_mid; break
7159else
7160  echo "$as_me: failed program was:" >&5
7161sed 's/^/| /' conftest.$ac_ext >&5
7162
7163	ac_hi=`expr '(' $ac_mid ')' - 1`
7164			if test $ac_mid -le $ac_hi; then
7165			  ac_lo= ac_hi=
7166			  break
7167			fi
7168			ac_mid=`expr 2 '*' $ac_mid`
7169fi
7170
7171rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7172  done
7173else
7174  echo "$as_me: failed program was:" >&5
7175sed 's/^/| /' conftest.$ac_ext >&5
7176
7177	ac_lo= ac_hi=
7178fi
7179
7180rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7181fi
7182
7183rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7184# Binary search between lo and hi bounds.
7185while test "x$ac_lo" != "x$ac_hi"; do
7186  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7187  cat >conftest.$ac_ext <<_ACEOF
7188/* confdefs.h.  */
7189_ACEOF
7190cat confdefs.h >>conftest.$ac_ext
7191cat >>conftest.$ac_ext <<_ACEOF
7192/* end confdefs.h.  */
7193$ac_includes_default
7194   typedef long long ac__type_sizeof_;
7195int
7196main ()
7197{
7198static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7199test_array [0] = 0
7200
7201  ;
7202  return 0;
7203}
7204_ACEOF
7205rm -f conftest.$ac_objext
7206if { (ac_try="$ac_compile"
7207case "(($ac_try" in
7208  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7209  *) ac_try_echo=$ac_try;;
7210esac
7211eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7212  (eval "$ac_compile") 2>conftest.er1
7213  ac_status=$?
7214  grep -v '^ *+' conftest.er1 >conftest.err
7215  rm -f conftest.er1
7216  cat conftest.err >&5
7217  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7218  (exit $ac_status); } && {
7219	 test -z "$ac_c_werror_flag" ||
7220	 test ! -s conftest.err
7221       } && test -s conftest.$ac_objext; then
7222  ac_hi=$ac_mid
7223else
7224  echo "$as_me: failed program was:" >&5
7225sed 's/^/| /' conftest.$ac_ext >&5
7226
7227	ac_lo=`expr '(' $ac_mid ')' + 1`
7228fi
7229
7230rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7231done
7232case $ac_lo in
7233?*) ac_cv_sizeof_long_long=$ac_lo;;
7234'') if test "$ac_cv_type_long_long" = yes; then
7235     { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
7236See \`config.log' for more details." >&5
7237echo "$as_me: error: cannot compute sizeof (long long)
7238See \`config.log' for more details." >&2;}
7239   { (exit 77); exit 77; }; }
7240   else
7241     ac_cv_sizeof_long_long=0
7242   fi ;;
7243esac
7244else
7245  cat >conftest.$ac_ext <<_ACEOF
7246/* confdefs.h.  */
7247_ACEOF
7248cat confdefs.h >>conftest.$ac_ext
7249cat >>conftest.$ac_ext <<_ACEOF
7250/* end confdefs.h.  */
7251$ac_includes_default
7252   typedef long long ac__type_sizeof_;
7253static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7254static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
7255#include <stdio.h>
7256#include <stdlib.h>
7257int
7258main ()
7259{
7260
7261  FILE *f = fopen ("conftest.val", "w");
7262  if (! f)
7263    return 1;
7264  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
7265    {
7266      long int i = longval ();
7267      if (i != ((long int) (sizeof (ac__type_sizeof_))))
7268	return 1;
7269      fprintf (f, "%ld\n", i);
7270    }
7271  else
7272    {
7273      unsigned long int i = ulongval ();
7274      if (i != ((long int) (sizeof (ac__type_sizeof_))))
7275	return 1;
7276      fprintf (f, "%lu\n", i);
7277    }
7278  return ferror (f) || fclose (f) != 0;
7279
7280  ;
7281  return 0;
7282}
7283_ACEOF
7284rm -f conftest$ac_exeext
7285if { (ac_try="$ac_link"
7286case "(($ac_try" in
7287  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7288  *) ac_try_echo=$ac_try;;
7289esac
7290eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7291  (eval "$ac_link") 2>&5
7292  ac_status=$?
7293  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7294  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7295  { (case "(($ac_try" in
7296  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7297  *) ac_try_echo=$ac_try;;
7298esac
7299eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7300  (eval "$ac_try") 2>&5
7301  ac_status=$?
7302  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7303  (exit $ac_status); }; }; then
7304  ac_cv_sizeof_long_long=`cat conftest.val`
7305else
7306  echo "$as_me: program exited with status $ac_status" >&5
7307echo "$as_me: failed program was:" >&5
7308sed 's/^/| /' conftest.$ac_ext >&5
7309
7310( exit $ac_status )
7311if test "$ac_cv_type_long_long" = yes; then
7312     { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
7313See \`config.log' for more details." >&5
7314echo "$as_me: error: cannot compute sizeof (long long)
7315See \`config.log' for more details." >&2;}
7316   { (exit 77); exit 77; }; }
7317   else
7318     ac_cv_sizeof_long_long=0
7319   fi
7320fi
7321rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7322fi
7323rm -f conftest.val
7324fi
7325{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
7326echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
7327
7328
7329
7330cat >>confdefs.h <<_ACEOF
7331#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
7332_ACEOF
7333
7334
7335
7336
7337
7338	{ echo "$as_me:$LINENO: checking for addrinfo" >&5
7339echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6; }
7340	if test "${ac_cv_addrinfo+set}" = set; then
7341  echo $ECHO_N "(cached) $ECHO_C" >&6
7342else
7343  cat >conftest.$ac_ext <<_ACEOF
7344/* confdefs.h.  */
7345_ACEOF
7346cat confdefs.h >>conftest.$ac_ext
7347cat >>conftest.$ac_ext <<_ACEOF
7348/* end confdefs.h.  */
7349
7350#		include <netdb.h>
7351int
7352main ()
7353{
7354struct addrinfo a
7355  ;
7356  return 0;
7357}
7358_ACEOF
7359rm -f conftest.$ac_objext
7360if { (ac_try="$ac_compile"
7361case "(($ac_try" in
7362  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7363  *) ac_try_echo=$ac_try;;
7364esac
7365eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7366  (eval "$ac_compile") 2>conftest.er1
7367  ac_status=$?
7368  grep -v '^ *+' conftest.er1 >conftest.err
7369  rm -f conftest.er1
7370  cat conftest.err >&5
7371  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7372  (exit $ac_status); } && {
7373	 test -z "$ac_c_werror_flag" ||
7374	 test ! -s conftest.err
7375       } && test -s conftest.$ac_objext; then
7376  ac_cv_addrinfo=yes
7377else
7378  echo "$as_me: failed program was:" >&5
7379sed 's/^/| /' conftest.$ac_ext >&5
7380
7381	ac_cv_addrinfo=no
7382fi
7383
7384rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7385fi
7386
7387	{ echo "$as_me:$LINENO: result: $ac_cv_addrinfo" >&5
7388echo "${ECHO_T}$ac_cv_addrinfo" >&6; }
7389	if test $ac_cv_addrinfo = yes; then
7390		cat >>confdefs.h <<\_ACEOF
7391#define HAVE_ADDRINFO 1
7392_ACEOF
7393
7394	else
7395		cat >>confdefs.h <<\_ACEOF
7396#define NEED_ADDRINFO_H 1
7397_ACEOF
7398
7399	fi
7400
7401if test "$ac_cv_addrinfo" = no; then
7402	missing_includes=yes
7403fi
7404
7405
7406	{ echo "$as_me:$LINENO: checking for NI_MAXSERV" >&5
7407echo $ECHO_N "checking for NI_MAXSERV... $ECHO_C" >&6; }
7408	if test "${ac_cv_maxserv+set}" = set; then
7409  echo $ECHO_N "(cached) $ECHO_C" >&6
7410else
7411  cat >conftest.$ac_ext <<_ACEOF
7412/* confdefs.h.  */
7413_ACEOF
7414cat confdefs.h >>conftest.$ac_ext
7415cat >>conftest.$ac_ext <<_ACEOF
7416/* end confdefs.h.  */
7417#include <netdb.h>
7418#ifdef NI_MAXSERV
7419yes
7420#endif
7421_ACEOF
7422if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7423  $EGREP "yes" >/dev/null 2>&1; then
7424  ac_cv_maxserv=yes
7425else
7426  ac_cv_maxserv=no
7427fi
7428rm -f conftest*
7429
7430fi
7431
7432	{ echo "$as_me:$LINENO: result: $ac_cv_maxserv" >&5
7433echo "${ECHO_T}$ac_cv_maxserv" >&6; }
7434	if test $ac_cv_maxserv != yes; then
7435		cat >>confdefs.h <<\_ACEOF
7436#define NEED_ADDRINFO_H 1
7437_ACEOF
7438
7439	fi
7440
7441if test "$ac_cv_maxserv" = no; then
7442	missing_includes=yes
7443fi
7444
7445
7446	{ echo "$as_me:$LINENO: checking for NI_NAMEREQD" >&5
7447echo $ECHO_N "checking for NI_NAMEREQD... $ECHO_C" >&6; }
7448	if test "${ac_cv_namereqd+set}" = set; then
7449  echo $ECHO_N "(cached) $ECHO_C" >&6
7450else
7451  cat >conftest.$ac_ext <<_ACEOF
7452/* confdefs.h.  */
7453_ACEOF
7454cat confdefs.h >>conftest.$ac_ext
7455cat >>conftest.$ac_ext <<_ACEOF
7456/* end confdefs.h.  */
7457#include <netdb.h>
7458#ifdef NI_NOFQDN
7459yes
7460#endif
7461_ACEOF
7462if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7463  $EGREP "yes" >/dev/null 2>&1; then
7464  ac_cv_namereqd=yes
7465else
7466  ac_cv_namereqd=no
7467fi
7468rm -f conftest*
7469
7470fi
7471
7472	{ echo "$as_me:$LINENO: result: $ac_cv_namereqd" >&5
7473echo "${ECHO_T}$ac_cv_namereqd" >&6; }
7474	if test $ac_cv_namereqd != yes; then
7475		cat >>confdefs.h <<\_ACEOF
7476#define NEED_ADDRINFO_H 1
7477_ACEOF
7478
7479	fi
7480
7481if test "$ac_cv_namereqd" = no; then
7482	missing_includes=yes
7483fi
7484
7485
7486	{ echo "$as_me:$LINENO: checking for sockaddr_storage" >&5
7487echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6; }
7488	if test "${ac_cv_sa_storage+set}" = set; then
7489  echo $ECHO_N "(cached) $ECHO_C" >&6
7490else
7491  cat >conftest.$ac_ext <<_ACEOF
7492/* confdefs.h.  */
7493_ACEOF
7494cat confdefs.h >>conftest.$ac_ext
7495cat >>conftest.$ac_ext <<_ACEOF
7496/* end confdefs.h.  */
7497
7498#		include <sys/types.h>
7499#		include <sys/socket.h>
7500int
7501main ()
7502{
7503struct sockaddr_storage s
7504  ;
7505  return 0;
7506}
7507_ACEOF
7508rm -f conftest.$ac_objext
7509if { (ac_try="$ac_compile"
7510case "(($ac_try" in
7511  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7512  *) ac_try_echo=$ac_try;;
7513esac
7514eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7515  (eval "$ac_compile") 2>conftest.er1
7516  ac_status=$?
7517  grep -v '^ *+' conftest.er1 >conftest.err
7518  rm -f conftest.er1
7519  cat conftest.err >&5
7520  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7521  (exit $ac_status); } && {
7522	 test -z "$ac_c_werror_flag" ||
7523	 test ! -s conftest.err
7524       } && test -s conftest.$ac_objext; then
7525  ac_cv_sa_storage=yes
7526else
7527  echo "$as_me: failed program was:" >&5
7528sed 's/^/| /' conftest.$ac_ext >&5
7529
7530	ac_cv_sa_storage=no
7531fi
7532
7533rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7534fi
7535
7536	{ echo "$as_me:$LINENO: result: $ac_cv_sa_storage" >&5
7537echo "${ECHO_T}$ac_cv_sa_storage" >&6; }
7538	if test $ac_cv_sa_storage = yes; then
7539		cat >>confdefs.h <<\_ACEOF
7540#define HAVE_SOCKADDR_STORAGE 1
7541_ACEOF
7542
7543	fi
7544
7545if test "$ac_cv_sa_storage" = no; then
7546	missing_includes=yes
7547fi
7548
7549
7550	ac_cv_addrsz=yes
7551	{ echo "$as_me:$LINENO: checking for INADDRSZ" >&5
7552echo $ECHO_N "checking for INADDRSZ... $ECHO_C" >&6; }
7553	if test "${ac_cv_inaddrsz+set}" = set; then
7554  echo $ECHO_N "(cached) $ECHO_C" >&6
7555else
7556  cat >conftest.$ac_ext <<_ACEOF
7557/* confdefs.h.  */
7558_ACEOF
7559cat confdefs.h >>conftest.$ac_ext
7560cat >>conftest.$ac_ext <<_ACEOF
7561/* end confdefs.h.  */
7562
7563#		include <arpa/nameser.h>
7564int
7565main ()
7566{
7567int a = INADDRSZ
7568  ;
7569  return 0;
7570}
7571_ACEOF
7572rm -f conftest.$ac_objext
7573if { (ac_try="$ac_compile"
7574case "(($ac_try" in
7575  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7576  *) ac_try_echo=$ac_try;;
7577esac
7578eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7579  (eval "$ac_compile") 2>conftest.er1
7580  ac_status=$?
7581  grep -v '^ *+' conftest.er1 >conftest.err
7582  rm -f conftest.er1
7583  cat conftest.err >&5
7584  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7585  (exit $ac_status); } && {
7586	 test -z "$ac_c_werror_flag" ||
7587	 test ! -s conftest.err
7588       } && test -s conftest.$ac_objext; then
7589  ac_cv_inaddrsz=yes
7590else
7591  echo "$as_me: failed program was:" >&5
7592sed 's/^/| /' conftest.$ac_ext >&5
7593
7594	ac_cv_inaddrsz=no
7595fi
7596
7597rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7598fi
7599
7600	{ echo "$as_me:$LINENO: result: $ac_cv_inaddrsz" >&5
7601echo "${ECHO_T}$ac_cv_inaddrsz" >&6; }
7602	if test $ac_cv_inaddrsz = yes; then
7603		cat >>confdefs.h <<\_ACEOF
7604#define HAVE_INADDRSZ 1
7605_ACEOF
7606
7607	else
7608		ac_cv_addrsz=no
7609	fi
7610	{ echo "$as_me:$LINENO: checking for IN6ADDRSZ" >&5
7611echo $ECHO_N "checking for IN6ADDRSZ... $ECHO_C" >&6; }
7612	if test "${ac_cv_in6addrsz+set}" = set; then
7613  echo $ECHO_N "(cached) $ECHO_C" >&6
7614else
7615  cat >conftest.$ac_ext <<_ACEOF
7616/* confdefs.h.  */
7617_ACEOF
7618cat confdefs.h >>conftest.$ac_ext
7619cat >>conftest.$ac_ext <<_ACEOF
7620/* end confdefs.h.  */
7621
7622#		include <arpa/nameser.h>
7623int
7624main ()
7625{
7626int a = IN6ADDRSZ
7627  ;
7628  return 0;
7629}
7630_ACEOF
7631rm -f conftest.$ac_objext
7632if { (ac_try="$ac_compile"
7633case "(($ac_try" in
7634  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7635  *) ac_try_echo=$ac_try;;
7636esac
7637eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7638  (eval "$ac_compile") 2>conftest.er1
7639  ac_status=$?
7640  grep -v '^ *+' conftest.er1 >conftest.err
7641  rm -f conftest.er1
7642  cat conftest.err >&5
7643  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7644  (exit $ac_status); } && {
7645	 test -z "$ac_c_werror_flag" ||
7646	 test ! -s conftest.err
7647       } && test -s conftest.$ac_objext; then
7648  ac_cv_in6addrsz=yes
7649else
7650  echo "$as_me: failed program was:" >&5
7651sed 's/^/| /' conftest.$ac_ext >&5
7652
7653	ac_cv_in6addrsz=no
7654fi
7655
7656rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7657fi
7658
7659	{ echo "$as_me:$LINENO: result: $ac_cv_in6addrsz" >&5
7660echo "${ECHO_T}$ac_cv_in6addrsz" >&6; }
7661	if test $ac_cv_in6addrsz = yes; then
7662		cat >>confdefs.h <<\_ACEOF
7663#define HAVE_IN6ADDRSZ 1
7664_ACEOF
7665
7666	else
7667		ac_cv_addrsz=no
7668	fi
7669
7670if test "$ac_cv_addrsz" = no; then
7671	missing_includes=yes
7672fi
7673
7674
7675	{ echo "$as_me:$LINENO: checking for RES_USE_INET6" >&5
7676echo $ECHO_N "checking for RES_USE_INET6... $ECHO_C" >&6; }
7677	if test "${ac_cv_res_inet6+set}" = set; then
7678  echo $ECHO_N "(cached) $ECHO_C" >&6
7679else
7680  cat >conftest.$ac_ext <<_ACEOF
7681/* confdefs.h.  */
7682_ACEOF
7683cat confdefs.h >>conftest.$ac_ext
7684cat >>conftest.$ac_ext <<_ACEOF
7685/* end confdefs.h.  */
7686
7687#		include <sys/types.h>
7688#		include <netinet/in.h>
7689#		include <resolv.h>
7690int
7691main ()
7692{
7693int a = RES_USE_INET6
7694  ;
7695  return 0;
7696}
7697_ACEOF
7698rm -f conftest.$ac_objext
7699if { (ac_try="$ac_compile"
7700case "(($ac_try" in
7701  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7702  *) ac_try_echo=$ac_try;;
7703esac
7704eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7705  (eval "$ac_compile") 2>conftest.er1
7706  ac_status=$?
7707  grep -v '^ *+' conftest.er1 >conftest.err
7708  rm -f conftest.er1
7709  cat conftest.err >&5
7710  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7711  (exit $ac_status); } && {
7712	 test -z "$ac_c_werror_flag" ||
7713	 test ! -s conftest.err
7714       } && test -s conftest.$ac_objext; then
7715  ac_cv_res_inet6=yes
7716else
7717  echo "$as_me: failed program was:" >&5
7718sed 's/^/| /' conftest.$ac_ext >&5
7719
7720	ac_cv_res_inet6=no
7721fi
7722
7723rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7724fi
7725
7726	{ echo "$as_me:$LINENO: result: $ac_cv_res_inet6" >&5
7727echo "${ECHO_T}$ac_cv_res_inet6" >&6; }
7728	if test $ac_cv_res_inet6 = yes; then
7729		cat >>confdefs.h <<\_ACEOF
7730#define HAVE_RES_USE_INET6 1
7731_ACEOF
7732
7733	fi
7734
7735if test "$ac_cv_res_inet6" = no; then
7736	missing_includes=yes
7737fi
7738
7739
7740	{ echo "$as_me:$LINENO: checking for res_state_ext" >&5
7741echo $ECHO_N "checking for res_state_ext... $ECHO_C" >&6; }
7742	if test "${ac_cv_res_state_ext+set}" = set; then
7743  echo $ECHO_N "(cached) $ECHO_C" >&6
7744else
7745  cat >conftest.$ac_ext <<_ACEOF
7746/* confdefs.h.  */
7747_ACEOF
7748cat confdefs.h >>conftest.$ac_ext
7749cat >>conftest.$ac_ext <<_ACEOF
7750/* end confdefs.h.  */
7751
7752#		include <sys/types.h>
7753#		include <netinet/in.h>
7754#		include <netinet6/in6.h>
7755#		include <resolv.h>
7756int
7757main ()
7758{
7759struct __res_state_ext e
7760  ;
7761  return 0;
7762}
7763_ACEOF
7764rm -f conftest.$ac_objext
7765if { (ac_try="$ac_compile"
7766case "(($ac_try" in
7767  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7768  *) ac_try_echo=$ac_try;;
7769esac
7770eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7771  (eval "$ac_compile") 2>conftest.er1
7772  ac_status=$?
7773  grep -v '^ *+' conftest.er1 >conftest.err
7774  rm -f conftest.er1
7775  cat conftest.err >&5
7776  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7777  (exit $ac_status); } && {
7778	 test -z "$ac_c_werror_flag" ||
7779	 test ! -s conftest.err
7780       } && test -s conftest.$ac_objext; then
7781  ac_cv_res_state_ext=yes
7782else
7783  echo "$as_me: failed program was:" >&5
7784sed 's/^/| /' conftest.$ac_ext >&5
7785
7786	ac_cv_res_state_ext=no
7787fi
7788
7789rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7790fi
7791
7792	{ echo "$as_me:$LINENO: result: $ac_cv_res_state_ext" >&5
7793echo "${ECHO_T}$ac_cv_res_state_ext" >&6; }
7794	if test $ac_cv_res_state_ext = yes; then
7795		cat >>confdefs.h <<\_ACEOF
7796#define HAVE_RES_STATE_EXT 1
7797_ACEOF
7798
7799	fi
7800
7801if test "$ac_cv_res_state_ext" = no; then
7802	missing_includes=yes
7803fi
7804
7805
7806	{ echo "$as_me:$LINENO: checking for nsort in res_state" >&5
7807echo $ECHO_N "checking for nsort in res_state... $ECHO_C" >&6; }
7808	if test "${ac_cv_res_state+set}" = set; then
7809  echo $ECHO_N "(cached) $ECHO_C" >&6
7810else
7811  cat >conftest.$ac_ext <<_ACEOF
7812/* confdefs.h.  */
7813_ACEOF
7814cat confdefs.h >>conftest.$ac_ext
7815cat >>conftest.$ac_ext <<_ACEOF
7816/* end confdefs.h.  */
7817
7818#		include <sys/types.h>
7819#		include <netinet/in.h>
7820#		include <netinet6/in6.h>
7821#		include <resolv.h>
7822int
7823main ()
7824{
7825struct __res_state e; e.nsort = 0
7826  ;
7827  return 0;
7828}
7829_ACEOF
7830rm -f conftest.$ac_objext
7831if { (ac_try="$ac_compile"
7832case "(($ac_try" in
7833  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7834  *) ac_try_echo=$ac_try;;
7835esac
7836eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7837  (eval "$ac_compile") 2>conftest.er1
7838  ac_status=$?
7839  grep -v '^ *+' conftest.er1 >conftest.err
7840  rm -f conftest.er1
7841  cat conftest.err >&5
7842  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7843  (exit $ac_status); } && {
7844	 test -z "$ac_c_werror_flag" ||
7845	 test ! -s conftest.err
7846       } && test -s conftest.$ac_objext; then
7847  ac_cv_res_state=yes
7848else
7849  echo "$as_me: failed program was:" >&5
7850sed 's/^/| /' conftest.$ac_ext >&5
7851
7852	ac_cv_res_state=no
7853fi
7854
7855rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7856fi
7857
7858	{ echo "$as_me:$LINENO: result: $ac_cv_res_state" >&5
7859echo "${ECHO_T}$ac_cv_res_state" >&6; }
7860	if test $ac_cv_res_state = yes; then
7861		cat >>confdefs.h <<\_ACEOF
7862#define HAVE_NEW_RES_STATE 1
7863_ACEOF
7864
7865	fi
7866
7867
7868
7869
7870
7871
7872
7873
7874
7875for ac_func in vfprintf strcasecmp strlcat strlcpy strdup strsep
7876do
7877as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7878{ echo "$as_me:$LINENO: checking for $ac_func" >&5
7879echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7880if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7881  echo $ECHO_N "(cached) $ECHO_C" >&6
7882else
7883  cat >conftest.$ac_ext <<_ACEOF
7884/* confdefs.h.  */
7885_ACEOF
7886cat confdefs.h >>conftest.$ac_ext
7887cat >>conftest.$ac_ext <<_ACEOF
7888/* end confdefs.h.  */
7889/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7890   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7891#define $ac_func innocuous_$ac_func
7892
7893/* System header to define __stub macros and hopefully few prototypes,
7894    which can conflict with char $ac_func (); below.
7895    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7896    <limits.h> exists even on freestanding compilers.  */
7897
7898#ifdef __STDC__
7899# include <limits.h>
7900#else
7901# include <assert.h>
7902#endif
7903
7904#undef $ac_func
7905
7906/* Override any GCC internal prototype to avoid an error.
7907   Use char because int might match the return type of a GCC
7908   builtin and then its argument prototype would still apply.  */
7909#ifdef __cplusplus
7910extern "C"
7911#endif
7912char $ac_func ();
7913/* The GNU C library defines this for functions which it implements
7914    to always fail with ENOSYS.  Some functions are actually named
7915    something starting with __ and the normal name is an alias.  */
7916#if defined __stub_$ac_func || defined __stub___$ac_func
7917choke me
7918#endif
7919
7920int
7921main ()
7922{
7923return $ac_func ();
7924  ;
7925  return 0;
7926}
7927_ACEOF
7928rm -f conftest.$ac_objext conftest$ac_exeext
7929if { (ac_try="$ac_link"
7930case "(($ac_try" in
7931  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7932  *) ac_try_echo=$ac_try;;
7933esac
7934eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7935  (eval "$ac_link") 2>conftest.er1
7936  ac_status=$?
7937  grep -v '^ *+' conftest.er1 >conftest.err
7938  rm -f conftest.er1
7939  cat conftest.err >&5
7940  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7941  (exit $ac_status); } && {
7942	 test -z "$ac_c_werror_flag" ||
7943	 test ! -s conftest.err
7944       } && test -s conftest$ac_exeext &&
7945       $as_test_x conftest$ac_exeext; then
7946  eval "$as_ac_var=yes"
7947else
7948  echo "$as_me: failed program was:" >&5
7949sed 's/^/| /' conftest.$ac_ext >&5
7950
7951	eval "$as_ac_var=no"
7952fi
7953
7954rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7955      conftest$ac_exeext conftest.$ac_ext
7956fi
7957ac_res=`eval echo '${'$as_ac_var'}'`
7958	       { echo "$as_me:$LINENO: result: $ac_res" >&5
7959echo "${ECHO_T}$ac_res" >&6; }
7960if test `eval echo '${'$as_ac_var'}'` = yes; then
7961  cat >>confdefs.h <<_ACEOF
7962#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7963_ACEOF
7964
7965else
7966  case " $LIBOBJS " in
7967  *" $ac_func.$ac_objext "* ) ;;
7968  *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
7969 ;;
7970esac
7971
7972fi
7973done
7974
7975
7976
7977for ac_func in strftime
7978do
7979as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7980{ echo "$as_me:$LINENO: checking for $ac_func" >&5
7981echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7982if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7983  echo $ECHO_N "(cached) $ECHO_C" >&6
7984else
7985  cat >conftest.$ac_ext <<_ACEOF
7986/* confdefs.h.  */
7987_ACEOF
7988cat confdefs.h >>conftest.$ac_ext
7989cat >>conftest.$ac_ext <<_ACEOF
7990/* end confdefs.h.  */
7991/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7992   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7993#define $ac_func innocuous_$ac_func
7994
7995/* System header to define __stub macros and hopefully few prototypes,
7996    which can conflict with char $ac_func (); below.
7997    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7998    <limits.h> exists even on freestanding compilers.  */
7999
8000#ifdef __STDC__
8001# include <limits.h>
8002#else
8003# include <assert.h>
8004#endif
8005
8006#undef $ac_func
8007
8008/* Override any GCC internal prototype to avoid an error.
8009   Use char because int might match the return type of a GCC
8010   builtin and then its argument prototype would still apply.  */
8011#ifdef __cplusplus
8012extern "C"
8013#endif
8014char $ac_func ();
8015/* The GNU C library defines this for functions which it implements
8016    to always fail with ENOSYS.  Some functions are actually named
8017    something starting with __ and the normal name is an alias.  */
8018#if defined __stub_$ac_func || defined __stub___$ac_func
8019choke me
8020#endif
8021
8022int
8023main ()
8024{
8025return $ac_func ();
8026  ;
8027  return 0;
8028}
8029_ACEOF
8030rm -f conftest.$ac_objext conftest$ac_exeext
8031if { (ac_try="$ac_link"
8032case "(($ac_try" in
8033  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8034  *) ac_try_echo=$ac_try;;
8035esac
8036eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8037  (eval "$ac_link") 2>conftest.er1
8038  ac_status=$?
8039  grep -v '^ *+' conftest.er1 >conftest.err
8040  rm -f conftest.er1
8041  cat conftest.err >&5
8042  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8043  (exit $ac_status); } && {
8044	 test -z "$ac_c_werror_flag" ||
8045	 test ! -s conftest.err
8046       } && test -s conftest$ac_exeext &&
8047       $as_test_x conftest$ac_exeext; then
8048  eval "$as_ac_var=yes"
8049else
8050  echo "$as_me: failed program was:" >&5
8051sed 's/^/| /' conftest.$ac_ext >&5
8052
8053	eval "$as_ac_var=no"
8054fi
8055
8056rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8057      conftest$ac_exeext conftest.$ac_ext
8058fi
8059ac_res=`eval echo '${'$as_ac_var'}'`
8060	       { echo "$as_me:$LINENO: result: $ac_res" >&5
8061echo "${ECHO_T}$ac_res" >&6; }
8062if test `eval echo '${'$as_ac_var'}'` = yes; then
8063  cat >>confdefs.h <<_ACEOF
8064#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8065_ACEOF
8066
8067fi
8068done
8069
8070
8071
8072for ac_func in setlinebuf alarm
8073do
8074as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8075{ echo "$as_me:$LINENO: checking for $ac_func" >&5
8076echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8077if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8078  echo $ECHO_N "(cached) $ECHO_C" >&6
8079else
8080  cat >conftest.$ac_ext <<_ACEOF
8081/* confdefs.h.  */
8082_ACEOF
8083cat confdefs.h >>conftest.$ac_ext
8084cat >>conftest.$ac_ext <<_ACEOF
8085/* end confdefs.h.  */
8086/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8087   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8088#define $ac_func innocuous_$ac_func
8089
8090/* System header to define __stub macros and hopefully few prototypes,
8091    which can conflict with char $ac_func (); below.
8092    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8093    <limits.h> exists even on freestanding compilers.  */
8094
8095#ifdef __STDC__
8096# include <limits.h>
8097#else
8098# include <assert.h>
8099#endif
8100
8101#undef $ac_func
8102
8103/* Override any GCC internal prototype to avoid an error.
8104   Use char because int might match the return type of a GCC
8105   builtin and then its argument prototype would still apply.  */
8106#ifdef __cplusplus
8107extern "C"
8108#endif
8109char $ac_func ();
8110/* The GNU C library defines this for functions which it implements
8111    to always fail with ENOSYS.  Some functions are actually named
8112    something starting with __ and the normal name is an alias.  */
8113#if defined __stub_$ac_func || defined __stub___$ac_func
8114choke me
8115#endif
8116
8117int
8118main ()
8119{
8120return $ac_func ();
8121  ;
8122  return 0;
8123}
8124_ACEOF
8125rm -f conftest.$ac_objext conftest$ac_exeext
8126if { (ac_try="$ac_link"
8127case "(($ac_try" in
8128  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8129  *) ac_try_echo=$ac_try;;
8130esac
8131eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8132  (eval "$ac_link") 2>conftest.er1
8133  ac_status=$?
8134  grep -v '^ *+' conftest.er1 >conftest.err
8135  rm -f conftest.er1
8136  cat conftest.err >&5
8137  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8138  (exit $ac_status); } && {
8139	 test -z "$ac_c_werror_flag" ||
8140	 test ! -s conftest.err
8141       } && test -s conftest$ac_exeext &&
8142       $as_test_x conftest$ac_exeext; then
8143  eval "$as_ac_var=yes"
8144else
8145  echo "$as_me: failed program was:" >&5
8146sed 's/^/| /' conftest.$ac_ext >&5
8147
8148	eval "$as_ac_var=no"
8149fi
8150
8151rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8152      conftest$ac_exeext conftest.$ac_ext
8153fi
8154ac_res=`eval echo '${'$as_ac_var'}'`
8155	       { echo "$as_me:$LINENO: result: $ac_res" >&5
8156echo "${ECHO_T}$ac_res" >&6; }
8157if test `eval echo '${'$as_ac_var'}'` = yes; then
8158  cat >>confdefs.h <<_ACEOF
8159#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8160_ACEOF
8161
8162fi
8163done
8164
8165
8166needsnprintf=no
8167
8168
8169for ac_func in vsnprintf snprintf
8170do
8171as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8172{ echo "$as_me:$LINENO: checking for $ac_func" >&5
8173echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8174if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8175  echo $ECHO_N "(cached) $ECHO_C" >&6
8176else
8177  cat >conftest.$ac_ext <<_ACEOF
8178/* confdefs.h.  */
8179_ACEOF
8180cat confdefs.h >>conftest.$ac_ext
8181cat >>conftest.$ac_ext <<_ACEOF
8182/* end confdefs.h.  */
8183/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8184   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8185#define $ac_func innocuous_$ac_func
8186
8187/* System header to define __stub macros and hopefully few prototypes,
8188    which can conflict with char $ac_func (); below.
8189    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8190    <limits.h> exists even on freestanding compilers.  */
8191
8192#ifdef __STDC__
8193# include <limits.h>
8194#else
8195# include <assert.h>
8196#endif
8197
8198#undef $ac_func
8199
8200/* Override any GCC internal prototype to avoid an error.
8201   Use char because int might match the return type of a GCC
8202   builtin and then its argument prototype would still apply.  */
8203#ifdef __cplusplus
8204extern "C"
8205#endif
8206char $ac_func ();
8207/* The GNU C library defines this for functions which it implements
8208    to always fail with ENOSYS.  Some functions are actually named
8209    something starting with __ and the normal name is an alias.  */
8210#if defined __stub_$ac_func || defined __stub___$ac_func
8211choke me
8212#endif
8213
8214int
8215main ()
8216{
8217return $ac_func ();
8218  ;
8219  return 0;
8220}
8221_ACEOF
8222rm -f conftest.$ac_objext conftest$ac_exeext
8223if { (ac_try="$ac_link"
8224case "(($ac_try" in
8225  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8226  *) ac_try_echo=$ac_try;;
8227esac
8228eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8229  (eval "$ac_link") 2>conftest.er1
8230  ac_status=$?
8231  grep -v '^ *+' conftest.er1 >conftest.err
8232  rm -f conftest.er1
8233  cat conftest.err >&5
8234  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8235  (exit $ac_status); } && {
8236	 test -z "$ac_c_werror_flag" ||
8237	 test ! -s conftest.err
8238       } && test -s conftest$ac_exeext &&
8239       $as_test_x conftest$ac_exeext; then
8240  eval "$as_ac_var=yes"
8241else
8242  echo "$as_me: failed program was:" >&5
8243sed 's/^/| /' conftest.$ac_ext >&5
8244
8245	eval "$as_ac_var=no"
8246fi
8247
8248rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8249      conftest$ac_exeext conftest.$ac_ext
8250fi
8251ac_res=`eval echo '${'$as_ac_var'}'`
8252	       { echo "$as_me:$LINENO: result: $ac_res" >&5
8253echo "${ECHO_T}$ac_res" >&6; }
8254if test `eval echo '${'$as_ac_var'}'` = yes; then
8255  cat >>confdefs.h <<_ACEOF
8256#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8257_ACEOF
8258
8259else
8260  needsnprintf=yes
8261fi
8262done
8263
8264if test $needsnprintf = yes; then
8265	case " $LIBOBJS " in
8266  *" snprintf.$ac_objext "* ) ;;
8267  *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
8268 ;;
8269esac
8270
8271fi
8272
8273
8274    { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
8275echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
8276if test "${ac_cv_type_signal+set}" = set; then
8277  echo $ECHO_N "(cached) $ECHO_C" >&6
8278else
8279  cat >conftest.$ac_ext <<_ACEOF
8280/* confdefs.h.  */
8281_ACEOF
8282cat confdefs.h >>conftest.$ac_ext
8283cat >>conftest.$ac_ext <<_ACEOF
8284/* end confdefs.h.  */
8285#include <sys/types.h>
8286#include <signal.h>
8287
8288int
8289main ()
8290{
8291return *(signal (0, 0)) (0) == 1;
8292  ;
8293  return 0;
8294}
8295_ACEOF
8296rm -f conftest.$ac_objext
8297if { (ac_try="$ac_compile"
8298case "(($ac_try" in
8299  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8300  *) ac_try_echo=$ac_try;;
8301esac
8302eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8303  (eval "$ac_compile") 2>conftest.er1
8304  ac_status=$?
8305  grep -v '^ *+' conftest.er1 >conftest.err
8306  rm -f conftest.er1
8307  cat conftest.err >&5
8308  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8309  (exit $ac_status); } && {
8310	 test -z "$ac_c_werror_flag" ||
8311	 test ! -s conftest.err
8312       } && test -s conftest.$ac_objext; then
8313  ac_cv_type_signal=int
8314else
8315  echo "$as_me: failed program was:" >&5
8316sed 's/^/| /' conftest.$ac_ext >&5
8317
8318	ac_cv_type_signal=void
8319fi
8320
8321rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8322fi
8323{ echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
8324echo "${ECHO_T}$ac_cv_type_signal" >&6; }
8325
8326cat >>confdefs.h <<_ACEOF
8327#define RETSIGTYPE $ac_cv_type_signal
8328_ACEOF
8329
8330
8331    if test "$ac_cv_type_signal" = void ; then
8332	    cat >>confdefs.h <<\_ACEOF
8333#define RETSIGVAL
8334_ACEOF
8335
8336    else
8337	    cat >>confdefs.h <<\_ACEOF
8338#define RETSIGVAL (0)
8339_ACEOF
8340
8341    fi
8342    case "$host_os" in
8343
8344    irix*)
8345	    cat >>confdefs.h <<\_ACEOF
8346#define _BSD_SIGNALS 1
8347_ACEOF
8348
8349	    ;;
8350
8351    *)
8352
8353for ac_func in sigaction
8354do
8355as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8356{ echo "$as_me:$LINENO: checking for $ac_func" >&5
8357echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8358if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8359  echo $ECHO_N "(cached) $ECHO_C" >&6
8360else
8361  cat >conftest.$ac_ext <<_ACEOF
8362/* confdefs.h.  */
8363_ACEOF
8364cat confdefs.h >>conftest.$ac_ext
8365cat >>conftest.$ac_ext <<_ACEOF
8366/* end confdefs.h.  */
8367/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8368   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8369#define $ac_func innocuous_$ac_func
8370
8371/* System header to define __stub macros and hopefully few prototypes,
8372    which can conflict with char $ac_func (); below.
8373    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8374    <limits.h> exists even on freestanding compilers.  */
8375
8376#ifdef __STDC__
8377# include <limits.h>
8378#else
8379# include <assert.h>
8380#endif
8381
8382#undef $ac_func
8383
8384/* Override any GCC internal prototype to avoid an error.
8385   Use char because int might match the return type of a GCC
8386   builtin and then its argument prototype would still apply.  */
8387#ifdef __cplusplus
8388extern "C"
8389#endif
8390char $ac_func ();
8391/* The GNU C library defines this for functions which it implements
8392    to always fail with ENOSYS.  Some functions are actually named
8393    something starting with __ and the normal name is an alias.  */
8394#if defined __stub_$ac_func || defined __stub___$ac_func
8395choke me
8396#endif
8397
8398int
8399main ()
8400{
8401return $ac_func ();
8402  ;
8403  return 0;
8404}
8405_ACEOF
8406rm -f conftest.$ac_objext conftest$ac_exeext
8407if { (ac_try="$ac_link"
8408case "(($ac_try" in
8409  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8410  *) ac_try_echo=$ac_try;;
8411esac
8412eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8413  (eval "$ac_link") 2>conftest.er1
8414  ac_status=$?
8415  grep -v '^ *+' conftest.er1 >conftest.err
8416  rm -f conftest.er1
8417  cat conftest.err >&5
8418  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8419  (exit $ac_status); } && {
8420	 test -z "$ac_c_werror_flag" ||
8421	 test ! -s conftest.err
8422       } && test -s conftest$ac_exeext &&
8423       $as_test_x conftest$ac_exeext; then
8424  eval "$as_ac_var=yes"
8425else
8426  echo "$as_me: failed program was:" >&5
8427sed 's/^/| /' conftest.$ac_ext >&5
8428
8429	eval "$as_ac_var=no"
8430fi
8431
8432rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8433      conftest$ac_exeext conftest.$ac_ext
8434fi
8435ac_res=`eval echo '${'$as_ac_var'}'`
8436	       { echo "$as_me:$LINENO: result: $ac_res" >&5
8437echo "${ECHO_T}$ac_res" >&6; }
8438if test `eval echo '${'$as_ac_var'}'` = yes; then
8439  cat >>confdefs.h <<_ACEOF
8440#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8441_ACEOF
8442
8443fi
8444done
8445
8446	    if test $ac_cv_func_sigaction = no ; then
8447
8448for ac_func in sigset
8449do
8450as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8451{ echo "$as_me:$LINENO: checking for $ac_func" >&5
8452echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8453if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8454  echo $ECHO_N "(cached) $ECHO_C" >&6
8455else
8456  cat >conftest.$ac_ext <<_ACEOF
8457/* confdefs.h.  */
8458_ACEOF
8459cat confdefs.h >>conftest.$ac_ext
8460cat >>conftest.$ac_ext <<_ACEOF
8461/* end confdefs.h.  */
8462/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8463   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8464#define $ac_func innocuous_$ac_func
8465
8466/* System header to define __stub macros and hopefully few prototypes,
8467    which can conflict with char $ac_func (); below.
8468    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8469    <limits.h> exists even on freestanding compilers.  */
8470
8471#ifdef __STDC__
8472# include <limits.h>
8473#else
8474# include <assert.h>
8475#endif
8476
8477#undef $ac_func
8478
8479/* Override any GCC internal prototype to avoid an error.
8480   Use char because int might match the return type of a GCC
8481   builtin and then its argument prototype would still apply.  */
8482#ifdef __cplusplus
8483extern "C"
8484#endif
8485char $ac_func ();
8486/* The GNU C library defines this for functions which it implements
8487    to always fail with ENOSYS.  Some functions are actually named
8488    something starting with __ and the normal name is an alias.  */
8489#if defined __stub_$ac_func || defined __stub___$ac_func
8490choke me
8491#endif
8492
8493int
8494main ()
8495{
8496return $ac_func ();
8497  ;
8498  return 0;
8499}
8500_ACEOF
8501rm -f conftest.$ac_objext conftest$ac_exeext
8502if { (ac_try="$ac_link"
8503case "(($ac_try" in
8504  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8505  *) ac_try_echo=$ac_try;;
8506esac
8507eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8508  (eval "$ac_link") 2>conftest.er1
8509  ac_status=$?
8510  grep -v '^ *+' conftest.er1 >conftest.err
8511  rm -f conftest.er1
8512  cat conftest.err >&5
8513  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8514  (exit $ac_status); } && {
8515	 test -z "$ac_c_werror_flag" ||
8516	 test ! -s conftest.err
8517       } && test -s conftest$ac_exeext &&
8518       $as_test_x conftest$ac_exeext; then
8519  eval "$as_ac_var=yes"
8520else
8521  echo "$as_me: failed program was:" >&5
8522sed 's/^/| /' conftest.$ac_ext >&5
8523
8524	eval "$as_ac_var=no"
8525fi
8526
8527rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8528      conftest$ac_exeext conftest.$ac_ext
8529fi
8530ac_res=`eval echo '${'$as_ac_var'}'`
8531	       { echo "$as_me:$LINENO: result: $ac_res" >&5
8532echo "${ECHO_T}$ac_res" >&6; }
8533if test `eval echo '${'$as_ac_var'}'` = yes; then
8534  cat >>confdefs.h <<_ACEOF
8535#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8536_ACEOF
8537
8538fi
8539done
8540
8541	    fi
8542	    ;;
8543    esac
8544
8545{ echo "$as_me:$LINENO: checking for library containing dnet_htoa" >&5
8546echo $ECHO_N "checking for library containing dnet_htoa... $ECHO_C" >&6; }
8547if test "${ac_cv_search_dnet_htoa+set}" = set; then
8548  echo $ECHO_N "(cached) $ECHO_C" >&6
8549else
8550  ac_func_search_save_LIBS=$LIBS
8551cat >conftest.$ac_ext <<_ACEOF
8552/* confdefs.h.  */
8553_ACEOF
8554cat confdefs.h >>conftest.$ac_ext
8555cat >>conftest.$ac_ext <<_ACEOF
8556/* end confdefs.h.  */
8557
8558/* Override any GCC internal prototype to avoid an error.
8559   Use char because int might match the return type of a GCC
8560   builtin and then its argument prototype would still apply.  */
8561#ifdef __cplusplus
8562extern "C"
8563#endif
8564char dnet_htoa ();
8565int
8566main ()
8567{
8568return dnet_htoa ();
8569  ;
8570  return 0;
8571}
8572_ACEOF
8573for ac_lib in '' dnet; do
8574  if test -z "$ac_lib"; then
8575    ac_res="none required"
8576  else
8577    ac_res=-l$ac_lib
8578    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8579  fi
8580  rm -f conftest.$ac_objext conftest$ac_exeext
8581if { (ac_try="$ac_link"
8582case "(($ac_try" in
8583  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8584  *) ac_try_echo=$ac_try;;
8585esac
8586eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8587  (eval "$ac_link") 2>conftest.er1
8588  ac_status=$?
8589  grep -v '^ *+' conftest.er1 >conftest.err
8590  rm -f conftest.er1
8591  cat conftest.err >&5
8592  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8593  (exit $ac_status); } && {
8594	 test -z "$ac_c_werror_flag" ||
8595	 test ! -s conftest.err
8596       } && test -s conftest$ac_exeext &&
8597       $as_test_x conftest$ac_exeext; then
8598  ac_cv_search_dnet_htoa=$ac_res
8599else
8600  echo "$as_me: failed program was:" >&5
8601sed 's/^/| /' conftest.$ac_ext >&5
8602
8603
8604fi
8605
8606rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8607      conftest$ac_exeext
8608  if test "${ac_cv_search_dnet_htoa+set}" = set; then
8609  break
8610fi
8611done
8612if test "${ac_cv_search_dnet_htoa+set}" = set; then
8613  :
8614else
8615  ac_cv_search_dnet_htoa=no
8616fi
8617rm conftest.$ac_ext
8618LIBS=$ac_func_search_save_LIBS
8619fi
8620{ echo "$as_me:$LINENO: result: $ac_cv_search_dnet_htoa" >&5
8621echo "${ECHO_T}$ac_cv_search_dnet_htoa" >&6; }
8622ac_res=$ac_cv_search_dnet_htoa
8623if test "$ac_res" != no; then
8624  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8625  cat >>confdefs.h <<\_ACEOF
8626#define HAVE_DNET_HTOA 1
8627_ACEOF
8628
8629fi
8630
8631
8632
8633{ echo "$as_me:$LINENO: checking for main in -lrpc" >&5
8634echo $ECHO_N "checking for main in -lrpc... $ECHO_C" >&6; }
8635if test "${ac_cv_lib_rpc_main+set}" = set; then
8636  echo $ECHO_N "(cached) $ECHO_C" >&6
8637else
8638  ac_check_lib_save_LIBS=$LIBS
8639LIBS="-lrpc  $LIBS"
8640cat >conftest.$ac_ext <<_ACEOF
8641/* confdefs.h.  */
8642_ACEOF
8643cat confdefs.h >>conftest.$ac_ext
8644cat >>conftest.$ac_ext <<_ACEOF
8645/* end confdefs.h.  */
8646
8647
8648int
8649main ()
8650{
8651return main ();
8652  ;
8653  return 0;
8654}
8655_ACEOF
8656rm -f conftest.$ac_objext conftest$ac_exeext
8657if { (ac_try="$ac_link"
8658case "(($ac_try" in
8659  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8660  *) ac_try_echo=$ac_try;;
8661esac
8662eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8663  (eval "$ac_link") 2>conftest.er1
8664  ac_status=$?
8665  grep -v '^ *+' conftest.er1 >conftest.err
8666  rm -f conftest.er1
8667  cat conftest.err >&5
8668  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8669  (exit $ac_status); } && {
8670	 test -z "$ac_c_werror_flag" ||
8671	 test ! -s conftest.err
8672       } && test -s conftest$ac_exeext &&
8673       $as_test_x conftest$ac_exeext; then
8674  ac_cv_lib_rpc_main=yes
8675else
8676  echo "$as_me: failed program was:" >&5
8677sed 's/^/| /' conftest.$ac_ext >&5
8678
8679	ac_cv_lib_rpc_main=no
8680fi
8681
8682rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8683      conftest$ac_exeext conftest.$ac_ext
8684LIBS=$ac_check_lib_save_LIBS
8685fi
8686{ echo "$as_me:$LINENO: result: $ac_cv_lib_rpc_main" >&5
8687echo "${ECHO_T}$ac_cv_lib_rpc_main" >&6; }
8688if test $ac_cv_lib_rpc_main = yes; then
8689  cat >>confdefs.h <<_ACEOF
8690#define HAVE_LIBRPC 1
8691_ACEOF
8692
8693  LIBS="-lrpc $LIBS"
8694
8695fi
8696
8697{ echo "$as_me:$LINENO: checking for library containing getrpcbynumber" >&5
8698echo $ECHO_N "checking for library containing getrpcbynumber... $ECHO_C" >&6; }
8699if test "${ac_cv_search_getrpcbynumber+set}" = set; then
8700  echo $ECHO_N "(cached) $ECHO_C" >&6
8701else
8702  ac_func_search_save_LIBS=$LIBS
8703cat >conftest.$ac_ext <<_ACEOF
8704/* confdefs.h.  */
8705_ACEOF
8706cat confdefs.h >>conftest.$ac_ext
8707cat >>conftest.$ac_ext <<_ACEOF
8708/* end confdefs.h.  */
8709
8710/* Override any GCC internal prototype to avoid an error.
8711   Use char because int might match the return type of a GCC
8712   builtin and then its argument prototype would still apply.  */
8713#ifdef __cplusplus
8714extern "C"
8715#endif
8716char getrpcbynumber ();
8717int
8718main ()
8719{
8720return getrpcbynumber ();
8721  ;
8722  return 0;
8723}
8724_ACEOF
8725for ac_lib in '' nsl; do
8726  if test -z "$ac_lib"; then
8727    ac_res="none required"
8728  else
8729    ac_res=-l$ac_lib
8730    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8731  fi
8732  rm -f conftest.$ac_objext conftest$ac_exeext
8733if { (ac_try="$ac_link"
8734case "(($ac_try" in
8735  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8736  *) ac_try_echo=$ac_try;;
8737esac
8738eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8739  (eval "$ac_link") 2>conftest.er1
8740  ac_status=$?
8741  grep -v '^ *+' conftest.er1 >conftest.err
8742  rm -f conftest.er1
8743  cat conftest.err >&5
8744  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8745  (exit $ac_status); } && {
8746	 test -z "$ac_c_werror_flag" ||
8747	 test ! -s conftest.err
8748       } && test -s conftest$ac_exeext &&
8749       $as_test_x conftest$ac_exeext; then
8750  ac_cv_search_getrpcbynumber=$ac_res
8751else
8752  echo "$as_me: failed program was:" >&5
8753sed 's/^/| /' conftest.$ac_ext >&5
8754
8755
8756fi
8757
8758rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8759      conftest$ac_exeext
8760  if test "${ac_cv_search_getrpcbynumber+set}" = set; then
8761  break
8762fi
8763done
8764if test "${ac_cv_search_getrpcbynumber+set}" = set; then
8765  :
8766else
8767  ac_cv_search_getrpcbynumber=no
8768fi
8769rm conftest.$ac_ext
8770LIBS=$ac_func_search_save_LIBS
8771fi
8772{ echo "$as_me:$LINENO: result: $ac_cv_search_getrpcbynumber" >&5
8773echo "${ECHO_T}$ac_cv_search_getrpcbynumber" >&6; }
8774ac_res=$ac_cv_search_getrpcbynumber
8775if test "$ac_res" != no; then
8776  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8777  cat >>confdefs.h <<\_ACEOF
8778#define HAVE_GETRPCBYNUMBER 1
8779_ACEOF
8780
8781fi
8782
8783
8784
8785
8786    # Most operating systems have gethostbyname() in the default searched
8787    # libraries (i.e. libc):
8788    # Some OSes (eg. Solaris) place it in libnsl
8789    # Some strange OSes (SINIX) have it in libsocket:
8790    { echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
8791echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6; }
8792if test "${ac_cv_search_gethostbyname+set}" = set; then
8793  echo $ECHO_N "(cached) $ECHO_C" >&6
8794else
8795  ac_func_search_save_LIBS=$LIBS
8796cat >conftest.$ac_ext <<_ACEOF
8797/* confdefs.h.  */
8798_ACEOF
8799cat confdefs.h >>conftest.$ac_ext
8800cat >>conftest.$ac_ext <<_ACEOF
8801/* end confdefs.h.  */
8802
8803/* Override any GCC internal prototype to avoid an error.
8804   Use char because int might match the return type of a GCC
8805   builtin and then its argument prototype would still apply.  */
8806#ifdef __cplusplus
8807extern "C"
8808#endif
8809char gethostbyname ();
8810int
8811main ()
8812{
8813return gethostbyname ();
8814  ;
8815  return 0;
8816}
8817_ACEOF
8818for ac_lib in '' nsl socket resolv; do
8819  if test -z "$ac_lib"; then
8820    ac_res="none required"
8821  else
8822    ac_res=-l$ac_lib
8823    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8824  fi
8825  rm -f conftest.$ac_objext conftest$ac_exeext
8826if { (ac_try="$ac_link"
8827case "(($ac_try" in
8828  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8829  *) ac_try_echo=$ac_try;;
8830esac
8831eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8832  (eval "$ac_link") 2>conftest.er1
8833  ac_status=$?
8834  grep -v '^ *+' conftest.er1 >conftest.err
8835  rm -f conftest.er1
8836  cat conftest.err >&5
8837  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8838  (exit $ac_status); } && {
8839	 test -z "$ac_c_werror_flag" ||
8840	 test ! -s conftest.err
8841       } && test -s conftest$ac_exeext &&
8842       $as_test_x conftest$ac_exeext; then
8843  ac_cv_search_gethostbyname=$ac_res
8844else
8845  echo "$as_me: failed program was:" >&5
8846sed 's/^/| /' conftest.$ac_ext >&5
8847
8848
8849fi
8850
8851rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8852      conftest$ac_exeext
8853  if test "${ac_cv_search_gethostbyname+set}" = set; then
8854  break
8855fi
8856done
8857if test "${ac_cv_search_gethostbyname+set}" = set; then
8858  :
8859else
8860  ac_cv_search_gethostbyname=no
8861fi
8862rm conftest.$ac_ext
8863LIBS=$ac_func_search_save_LIBS
8864fi
8865{ echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
8866echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6; }
8867ac_res=$ac_cv_search_gethostbyname
8868if test "$ac_res" != no; then
8869  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8870
8871fi
8872
8873    # Unfortunately libsocket sometimes depends on libnsl and
8874    # AC_SEARCH_LIBS isn't up to the task of handling dependencies like this.
8875    if test "$ac_cv_search_gethostbyname" = "no"
8876    then
8877	{ echo "$as_me:$LINENO: checking for gethostbyname in -lsocket" >&5
8878echo $ECHO_N "checking for gethostbyname in -lsocket... $ECHO_C" >&6; }
8879if test "${ac_cv_lib_socket_gethostbyname+set}" = set; then
8880  echo $ECHO_N "(cached) $ECHO_C" >&6
8881else
8882  ac_check_lib_save_LIBS=$LIBS
8883LIBS="-lsocket -lnsl $LIBS"
8884cat >conftest.$ac_ext <<_ACEOF
8885/* confdefs.h.  */
8886_ACEOF
8887cat confdefs.h >>conftest.$ac_ext
8888cat >>conftest.$ac_ext <<_ACEOF
8889/* end confdefs.h.  */
8890
8891/* Override any GCC internal prototype to avoid an error.
8892   Use char because int might match the return type of a GCC
8893   builtin and then its argument prototype would still apply.  */
8894#ifdef __cplusplus
8895extern "C"
8896#endif
8897char gethostbyname ();
8898int
8899main ()
8900{
8901return gethostbyname ();
8902  ;
8903  return 0;
8904}
8905_ACEOF
8906rm -f conftest.$ac_objext conftest$ac_exeext
8907if { (ac_try="$ac_link"
8908case "(($ac_try" in
8909  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8910  *) ac_try_echo=$ac_try;;
8911esac
8912eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8913  (eval "$ac_link") 2>conftest.er1
8914  ac_status=$?
8915  grep -v '^ *+' conftest.er1 >conftest.err
8916  rm -f conftest.er1
8917  cat conftest.err >&5
8918  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8919  (exit $ac_status); } && {
8920	 test -z "$ac_c_werror_flag" ||
8921	 test ! -s conftest.err
8922       } && test -s conftest$ac_exeext &&
8923       $as_test_x conftest$ac_exeext; then
8924  ac_cv_lib_socket_gethostbyname=yes
8925else
8926  echo "$as_me: failed program was:" >&5
8927sed 's/^/| /' conftest.$ac_ext >&5
8928
8929	ac_cv_lib_socket_gethostbyname=no
8930fi
8931
8932rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8933      conftest$ac_exeext conftest.$ac_ext
8934LIBS=$ac_check_lib_save_LIBS
8935fi
8936{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_gethostbyname" >&5
8937echo "${ECHO_T}$ac_cv_lib_socket_gethostbyname" >&6; }
8938if test $ac_cv_lib_socket_gethostbyname = yes; then
8939  LIBS="-lsocket -lnsl $LIBS"
8940fi
8941
8942    fi
8943    { echo "$as_me:$LINENO: checking for library containing socket" >&5
8944echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6; }
8945if test "${ac_cv_search_socket+set}" = set; then
8946  echo $ECHO_N "(cached) $ECHO_C" >&6
8947else
8948  ac_func_search_save_LIBS=$LIBS
8949cat >conftest.$ac_ext <<_ACEOF
8950/* confdefs.h.  */
8951_ACEOF
8952cat confdefs.h >>conftest.$ac_ext
8953cat >>conftest.$ac_ext <<_ACEOF
8954/* end confdefs.h.  */
8955
8956/* Override any GCC internal prototype to avoid an error.
8957   Use char because int might match the return type of a GCC
8958   builtin and then its argument prototype would still apply.  */
8959#ifdef __cplusplus
8960extern "C"
8961#endif
8962char socket ();
8963int
8964main ()
8965{
8966return socket ();
8967  ;
8968  return 0;
8969}
8970_ACEOF
8971for ac_lib in '' socket; do
8972  if test -z "$ac_lib"; then
8973    ac_res="none required"
8974  else
8975    ac_res=-l$ac_lib
8976    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8977  fi
8978  rm -f conftest.$ac_objext conftest$ac_exeext
8979if { (ac_try="$ac_link"
8980case "(($ac_try" in
8981  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8982  *) ac_try_echo=$ac_try;;
8983esac
8984eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8985  (eval "$ac_link") 2>conftest.er1
8986  ac_status=$?
8987  grep -v '^ *+' conftest.er1 >conftest.err
8988  rm -f conftest.er1
8989  cat conftest.err >&5
8990  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8991  (exit $ac_status); } && {
8992	 test -z "$ac_c_werror_flag" ||
8993	 test ! -s conftest.err
8994       } && test -s conftest$ac_exeext &&
8995       $as_test_x conftest$ac_exeext; then
8996  ac_cv_search_socket=$ac_res
8997else
8998  echo "$as_me: failed program was:" >&5
8999sed 's/^/| /' conftest.$ac_ext >&5
9000
9001
9002fi
9003
9004rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9005      conftest$ac_exeext
9006  if test "${ac_cv_search_socket+set}" = set; then
9007  break
9008fi
9009done
9010if test "${ac_cv_search_socket+set}" = set; then
9011  :
9012else
9013  ac_cv_search_socket=no
9014fi
9015rm conftest.$ac_ext
9016LIBS=$ac_func_search_save_LIBS
9017fi
9018{ echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
9019echo "${ECHO_T}$ac_cv_search_socket" >&6; }
9020ac_res=$ac_cv_search_socket
9021if test "$ac_res" != no; then
9022  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9023
9024else
9025  { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
9026echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
9027if test "${ac_cv_lib_socket_socket+set}" = set; then
9028  echo $ECHO_N "(cached) $ECHO_C" >&6
9029else
9030  ac_check_lib_save_LIBS=$LIBS
9031LIBS="-lsocket -lnsl $LIBS"
9032cat >conftest.$ac_ext <<_ACEOF
9033/* confdefs.h.  */
9034_ACEOF
9035cat confdefs.h >>conftest.$ac_ext
9036cat >>conftest.$ac_ext <<_ACEOF
9037/* end confdefs.h.  */
9038
9039/* Override any GCC internal prototype to avoid an error.
9040   Use char because int might match the return type of a GCC
9041   builtin and then its argument prototype would still apply.  */
9042#ifdef __cplusplus
9043extern "C"
9044#endif
9045char socket ();
9046int
9047main ()
9048{
9049return socket ();
9050  ;
9051  return 0;
9052}
9053_ACEOF
9054rm -f conftest.$ac_objext conftest$ac_exeext
9055if { (ac_try="$ac_link"
9056case "(($ac_try" in
9057  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9058  *) ac_try_echo=$ac_try;;
9059esac
9060eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9061  (eval "$ac_link") 2>conftest.er1
9062  ac_status=$?
9063  grep -v '^ *+' conftest.er1 >conftest.err
9064  rm -f conftest.er1
9065  cat conftest.err >&5
9066  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9067  (exit $ac_status); } && {
9068	 test -z "$ac_c_werror_flag" ||
9069	 test ! -s conftest.err
9070       } && test -s conftest$ac_exeext &&
9071       $as_test_x conftest$ac_exeext; then
9072  ac_cv_lib_socket_socket=yes
9073else
9074  echo "$as_me: failed program was:" >&5
9075sed 's/^/| /' conftest.$ac_ext >&5
9076
9077	ac_cv_lib_socket_socket=no
9078fi
9079
9080rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9081      conftest$ac_exeext conftest.$ac_ext
9082LIBS=$ac_check_lib_save_LIBS
9083fi
9084{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
9085echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
9086if test $ac_cv_lib_socket_socket = yes; then
9087  LIBS="-lsocket -lnsl $LIBS"
9088fi
9089
9090fi
9091
9092    # DLPI needs putmsg under HPUX so test for -lstr while we're at it
9093    { echo "$as_me:$LINENO: checking for library containing putmsg" >&5
9094echo $ECHO_N "checking for library containing putmsg... $ECHO_C" >&6; }
9095if test "${ac_cv_search_putmsg+set}" = set; then
9096  echo $ECHO_N "(cached) $ECHO_C" >&6
9097else
9098  ac_func_search_save_LIBS=$LIBS
9099cat >conftest.$ac_ext <<_ACEOF
9100/* confdefs.h.  */
9101_ACEOF
9102cat confdefs.h >>conftest.$ac_ext
9103cat >>conftest.$ac_ext <<_ACEOF
9104/* end confdefs.h.  */
9105
9106/* Override any GCC internal prototype to avoid an error.
9107   Use char because int might match the return type of a GCC
9108   builtin and then its argument prototype would still apply.  */
9109#ifdef __cplusplus
9110extern "C"
9111#endif
9112char putmsg ();
9113int
9114main ()
9115{
9116return putmsg ();
9117  ;
9118  return 0;
9119}
9120_ACEOF
9121for ac_lib in '' str; do
9122  if test -z "$ac_lib"; then
9123    ac_res="none required"
9124  else
9125    ac_res=-l$ac_lib
9126    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9127  fi
9128  rm -f conftest.$ac_objext conftest$ac_exeext
9129if { (ac_try="$ac_link"
9130case "(($ac_try" in
9131  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9132  *) ac_try_echo=$ac_try;;
9133esac
9134eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9135  (eval "$ac_link") 2>conftest.er1
9136  ac_status=$?
9137  grep -v '^ *+' conftest.er1 >conftest.err
9138  rm -f conftest.er1
9139  cat conftest.err >&5
9140  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9141  (exit $ac_status); } && {
9142	 test -z "$ac_c_werror_flag" ||
9143	 test ! -s conftest.err
9144       } && test -s conftest$ac_exeext &&
9145       $as_test_x conftest$ac_exeext; then
9146  ac_cv_search_putmsg=$ac_res
9147else
9148  echo "$as_me: failed program was:" >&5
9149sed 's/^/| /' conftest.$ac_ext >&5
9150
9151
9152fi
9153
9154rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9155      conftest$ac_exeext
9156  if test "${ac_cv_search_putmsg+set}" = set; then
9157  break
9158fi
9159done
9160if test "${ac_cv_search_putmsg+set}" = set; then
9161  :
9162else
9163  ac_cv_search_putmsg=no
9164fi
9165rm conftest.$ac_ext
9166LIBS=$ac_func_search_save_LIBS
9167fi
9168{ echo "$as_me:$LINENO: result: $ac_cv_search_putmsg" >&5
9169echo "${ECHO_T}$ac_cv_search_putmsg" >&6; }
9170ac_res=$ac_cv_search_putmsg
9171if test "$ac_res" != no; then
9172  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9173
9174fi
9175
9176
9177
9178                LBL_LIBS="$LIBS"
9179    pfopen=/usr/examples/packetfilter/pfopen.c
9180    if test -f $pfopen ; then
9181
9182for ac_func in pfopen
9183do
9184as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9185{ echo "$as_me:$LINENO: checking for $ac_func" >&5
9186echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9187if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9188  echo $ECHO_N "(cached) $ECHO_C" >&6
9189else
9190  cat >conftest.$ac_ext <<_ACEOF
9191/* confdefs.h.  */
9192_ACEOF
9193cat confdefs.h >>conftest.$ac_ext
9194cat >>conftest.$ac_ext <<_ACEOF
9195/* end confdefs.h.  */
9196/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9197   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9198#define $ac_func innocuous_$ac_func
9199
9200/* System header to define __stub macros and hopefully few prototypes,
9201    which can conflict with char $ac_func (); below.
9202    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9203    <limits.h> exists even on freestanding compilers.  */
9204
9205#ifdef __STDC__
9206# include <limits.h>
9207#else
9208# include <assert.h>
9209#endif
9210
9211#undef $ac_func
9212
9213/* Override any GCC internal prototype to avoid an error.
9214   Use char because int might match the return type of a GCC
9215   builtin and then its argument prototype would still apply.  */
9216#ifdef __cplusplus
9217extern "C"
9218#endif
9219char $ac_func ();
9220/* The GNU C library defines this for functions which it implements
9221    to always fail with ENOSYS.  Some functions are actually named
9222    something starting with __ and the normal name is an alias.  */
9223#if defined __stub_$ac_func || defined __stub___$ac_func
9224choke me
9225#endif
9226
9227int
9228main ()
9229{
9230return $ac_func ();
9231  ;
9232  return 0;
9233}
9234_ACEOF
9235rm -f conftest.$ac_objext conftest$ac_exeext
9236if { (ac_try="$ac_link"
9237case "(($ac_try" in
9238  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9239  *) ac_try_echo=$ac_try;;
9240esac
9241eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9242  (eval "$ac_link") 2>conftest.er1
9243  ac_status=$?
9244  grep -v '^ *+' conftest.er1 >conftest.err
9245  rm -f conftest.er1
9246  cat conftest.err >&5
9247  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9248  (exit $ac_status); } && {
9249	 test -z "$ac_c_werror_flag" ||
9250	 test ! -s conftest.err
9251       } && test -s conftest$ac_exeext &&
9252       $as_test_x conftest$ac_exeext; then
9253  eval "$as_ac_var=yes"
9254else
9255  echo "$as_me: failed program was:" >&5
9256sed 's/^/| /' conftest.$ac_ext >&5
9257
9258	eval "$as_ac_var=no"
9259fi
9260
9261rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9262      conftest$ac_exeext conftest.$ac_ext
9263fi
9264ac_res=`eval echo '${'$as_ac_var'}'`
9265	       { echo "$as_me:$LINENO: result: $ac_res" >&5
9266echo "${ECHO_T}$ac_res" >&6; }
9267if test `eval echo '${'$as_ac_var'}'` = yes; then
9268  cat >>confdefs.h <<_ACEOF
9269#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9270_ACEOF
9271
9272fi
9273done
9274
9275	    if test $ac_cv_func_pfopen = "no" ; then
9276		    { echo "$as_me:$LINENO: result: Using $pfopen" >&5
9277echo "${ECHO_T}Using $pfopen" >&6; }
9278		    LIBS="$LIBS $pfopen"
9279	    fi
9280    fi
9281    { echo "$as_me:$LINENO: checking for local pcap library" >&5
9282echo $ECHO_N "checking for local pcap library... $ECHO_C" >&6; }
9283    libpcap=FAIL
9284    lastdir=FAIL
9285    places=`ls $srcdir/.. | sed -e 's,/$,,' -e "s,^,$srcdir/../," | \
9286	egrep '/libpcap-[0-9]*.[0-9]*(.[0-9]*)?([ab][0-9]*)?$'`
9287    for dir in $places $srcdir/../libpcap $srcdir/libpcap ; do
9288	    basedir=`echo $dir | sed -e 's/[ab][0-9]*$//'`
9289	    if test $lastdir = $basedir ; then
9290		    		    continue;
9291	    fi
9292	    lastdir=$dir
9293	    if test -r $dir/libpcap.a ; then
9294		    libpcap=$dir/libpcap.a
9295		    d=$dir
9296		    	    fi
9297    done
9298    if test $libpcap = FAIL ; then
9299	    { echo "$as_me:$LINENO: result: not found" >&5
9300echo "${ECHO_T}not found" >&6; }
9301	    { echo "$as_me:$LINENO: checking for main in -lpcap" >&5
9302echo $ECHO_N "checking for main in -lpcap... $ECHO_C" >&6; }
9303if test "${ac_cv_lib_pcap_main+set}" = set; then
9304  echo $ECHO_N "(cached) $ECHO_C" >&6
9305else
9306  ac_check_lib_save_LIBS=$LIBS
9307LIBS="-lpcap  $LIBS"
9308cat >conftest.$ac_ext <<_ACEOF
9309/* confdefs.h.  */
9310_ACEOF
9311cat confdefs.h >>conftest.$ac_ext
9312cat >>conftest.$ac_ext <<_ACEOF
9313/* end confdefs.h.  */
9314
9315
9316int
9317main ()
9318{
9319return main ();
9320  ;
9321  return 0;
9322}
9323_ACEOF
9324rm -f conftest.$ac_objext conftest$ac_exeext
9325if { (ac_try="$ac_link"
9326case "(($ac_try" in
9327  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9328  *) ac_try_echo=$ac_try;;
9329esac
9330eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9331  (eval "$ac_link") 2>conftest.er1
9332  ac_status=$?
9333  grep -v '^ *+' conftest.er1 >conftest.err
9334  rm -f conftest.er1
9335  cat conftest.err >&5
9336  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9337  (exit $ac_status); } && {
9338	 test -z "$ac_c_werror_flag" ||
9339	 test ! -s conftest.err
9340       } && test -s conftest$ac_exeext &&
9341       $as_test_x conftest$ac_exeext; then
9342  ac_cv_lib_pcap_main=yes
9343else
9344  echo "$as_me: failed program was:" >&5
9345sed 's/^/| /' conftest.$ac_ext >&5
9346
9347	ac_cv_lib_pcap_main=no
9348fi
9349
9350rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9351      conftest$ac_exeext conftest.$ac_ext
9352LIBS=$ac_check_lib_save_LIBS
9353fi
9354{ echo "$as_me:$LINENO: result: $ac_cv_lib_pcap_main" >&5
9355echo "${ECHO_T}$ac_cv_lib_pcap_main" >&6; }
9356if test $ac_cv_lib_pcap_main = yes; then
9357  libpcap="-lpcap"
9358fi
9359
9360	    if test $libpcap = FAIL ; then
9361		    { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
9362echo "$as_me: error: see the INSTALL doc for more info" >&2;}
9363   { (exit 1); exit 1; }; }
9364	    fi
9365	    	    	    	    	    	    	    	    	    	    	    	    	    	    	    	    { echo "$as_me:$LINENO: checking for extraneous pcap header directories" >&5
9366echo $ECHO_N "checking for extraneous pcap header directories... $ECHO_C" >&6; }
9367	    if test \( ! -r /usr/local/include/pcap.h \) -a \
9368			\( ! -r /usr/include/pcap.h \); then
9369		if test -r /usr/local/include/pcap/pcap.h; then
9370		    d="/usr/local/include/pcap"
9371		elif test -r /usr/include/pcap/pcap.h; then
9372		    d="/usr/include/pcap"
9373		fi
9374	    fi
9375	    if test -z "$d" ; then
9376		{ echo "$as_me:$LINENO: result: not found" >&5
9377echo "${ECHO_T}not found" >&6; }
9378	    else
9379		V_INCLS="-I$d $V_INCLS"
9380		{ echo "$as_me:$LINENO: result: found -- -I$d added" >&5
9381echo "${ECHO_T}found -- -I$d added" >&6; }
9382	    fi
9383    else
9384	    V_PCAPDEP=$libpcap
9385	    places=`ls $srcdir/.. | sed -e 's,/$,,' -e "s,^,$srcdir/../," | \
9386    	 		egrep '/libpcap-[0-9]*.[0-9]*(.[0-9]*)?([ab][0-9]*)?$'`
9387	    if test -r $d/pcap.h; then
9388		    V_INCLS="-I$d $V_INCLS"
9389	    elif test -r $places/pcap.h; then
9390		    V_INCLS="-I$places $V_INCLS"
9391	    else
9392                    { { echo "$as_me:$LINENO: error: cannot find pcap.h" >&5
9393echo "$as_me: error: cannot find pcap.h" >&2;}
9394   { (exit see INSTALL); exit see INSTALL; }; }
9395 	    fi
9396	    { echo "$as_me:$LINENO: result: $libpcap" >&5
9397echo "${ECHO_T}$libpcap" >&6; }
9398    fi
9399    LIBS="$libpcap $LIBS"
9400    case "$host_os" in
9401
9402    aix*)
9403	    pseexe="/lib/pse.exp"
9404	    { echo "$as_me:$LINENO: checking for $pseexe" >&5
9405echo $ECHO_N "checking for $pseexe... $ECHO_C" >&6; }
9406	    if test -f $pseexe ; then
9407		    { echo "$as_me:$LINENO: result: yes" >&5
9408echo "${ECHO_T}yes" >&6; }
9409		    LIBS="$LIBS -I:$pseexe"
9410	    fi
9411	    #
9412	    # We need "-lodm" and "-lcfg", as libpcap requires them on
9413	    # AIX, and we just build a static libpcap.a and thus can't
9414	    # arrange that when you link with libpcap you automatically
9415	    # link with those libraries.
9416	    #
9417	    LIBS="$LIBS -lodm -lcfg"
9418	    ;;
9419    esac
9420
9421                        { echo "$as_me:$LINENO: checking for pcap_list_datalinks" >&5
9422echo $ECHO_N "checking for pcap_list_datalinks... $ECHO_C" >&6; }
9423if test "${ac_cv_func_pcap_list_datalinks+set}" = set; then
9424  echo $ECHO_N "(cached) $ECHO_C" >&6
9425else
9426  cat >conftest.$ac_ext <<_ACEOF
9427/* confdefs.h.  */
9428_ACEOF
9429cat confdefs.h >>conftest.$ac_ext
9430cat >>conftest.$ac_ext <<_ACEOF
9431/* end confdefs.h.  */
9432/* Define pcap_list_datalinks to an innocuous variant, in case <limits.h> declares pcap_list_datalinks.
9433   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9434#define pcap_list_datalinks innocuous_pcap_list_datalinks
9435
9436/* System header to define __stub macros and hopefully few prototypes,
9437    which can conflict with char pcap_list_datalinks (); below.
9438    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9439    <limits.h> exists even on freestanding compilers.  */
9440
9441#ifdef __STDC__
9442# include <limits.h>
9443#else
9444# include <assert.h>
9445#endif
9446
9447#undef pcap_list_datalinks
9448
9449/* Override any GCC internal prototype to avoid an error.
9450   Use char because int might match the return type of a GCC
9451   builtin and then its argument prototype would still apply.  */
9452#ifdef __cplusplus
9453extern "C"
9454#endif
9455char pcap_list_datalinks ();
9456/* The GNU C library defines this for functions which it implements
9457    to always fail with ENOSYS.  Some functions are actually named
9458    something starting with __ and the normal name is an alias.  */
9459#if defined __stub_pcap_list_datalinks || defined __stub___pcap_list_datalinks
9460choke me
9461#endif
9462
9463int
9464main ()
9465{
9466return pcap_list_datalinks ();
9467  ;
9468  return 0;
9469}
9470_ACEOF
9471rm -f conftest.$ac_objext conftest$ac_exeext
9472if { (ac_try="$ac_link"
9473case "(($ac_try" in
9474  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9475  *) ac_try_echo=$ac_try;;
9476esac
9477eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9478  (eval "$ac_link") 2>conftest.er1
9479  ac_status=$?
9480  grep -v '^ *+' conftest.er1 >conftest.err
9481  rm -f conftest.er1
9482  cat conftest.err >&5
9483  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9484  (exit $ac_status); } && {
9485	 test -z "$ac_c_werror_flag" ||
9486	 test ! -s conftest.err
9487       } && test -s conftest$ac_exeext &&
9488       $as_test_x conftest$ac_exeext; then
9489  ac_cv_func_pcap_list_datalinks=yes
9490else
9491  echo "$as_me: failed program was:" >&5
9492sed 's/^/| /' conftest.$ac_ext >&5
9493
9494	ac_cv_func_pcap_list_datalinks=no
9495fi
9496
9497rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9498      conftest$ac_exeext conftest.$ac_ext
9499fi
9500{ echo "$as_me:$LINENO: result: $ac_cv_func_pcap_list_datalinks" >&5
9501echo "${ECHO_T}$ac_cv_func_pcap_list_datalinks" >&6; }
9502if test $ac_cv_func_pcap_list_datalinks = yes; then
9503  cat >>confdefs.h <<\_ACEOF
9504#define HAVE_PCAP_LIST_DATALINKS 1
9505_ACEOF
9506
9507else
9508
9509	    case " $LIBOBJS " in
9510  *" datalinks.$ac_objext "* ) ;;
9511  *) LIBOBJS="$LIBOBJS datalinks.$ac_objext"
9512 ;;
9513esac
9514
9515
9516fi
9517
9518    { echo "$as_me:$LINENO: checking for pcap_set_datalink" >&5
9519echo $ECHO_N "checking for pcap_set_datalink... $ECHO_C" >&6; }
9520if test "${ac_cv_func_pcap_set_datalink+set}" = set; then
9521  echo $ECHO_N "(cached) $ECHO_C" >&6
9522else
9523  cat >conftest.$ac_ext <<_ACEOF
9524/* confdefs.h.  */
9525_ACEOF
9526cat confdefs.h >>conftest.$ac_ext
9527cat >>conftest.$ac_ext <<_ACEOF
9528/* end confdefs.h.  */
9529/* Define pcap_set_datalink to an innocuous variant, in case <limits.h> declares pcap_set_datalink.
9530   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9531#define pcap_set_datalink innocuous_pcap_set_datalink
9532
9533/* System header to define __stub macros and hopefully few prototypes,
9534    which can conflict with char pcap_set_datalink (); below.
9535    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9536    <limits.h> exists even on freestanding compilers.  */
9537
9538#ifdef __STDC__
9539# include <limits.h>
9540#else
9541# include <assert.h>
9542#endif
9543
9544#undef pcap_set_datalink
9545
9546/* Override any GCC internal prototype to avoid an error.
9547   Use char because int might match the return type of a GCC
9548   builtin and then its argument prototype would still apply.  */
9549#ifdef __cplusplus
9550extern "C"
9551#endif
9552char pcap_set_datalink ();
9553/* The GNU C library defines this for functions which it implements
9554    to always fail with ENOSYS.  Some functions are actually named
9555    something starting with __ and the normal name is an alias.  */
9556#if defined __stub_pcap_set_datalink || defined __stub___pcap_set_datalink
9557choke me
9558#endif
9559
9560int
9561main ()
9562{
9563return pcap_set_datalink ();
9564  ;
9565  return 0;
9566}
9567_ACEOF
9568rm -f conftest.$ac_objext conftest$ac_exeext
9569if { (ac_try="$ac_link"
9570case "(($ac_try" in
9571  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9572  *) ac_try_echo=$ac_try;;
9573esac
9574eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9575  (eval "$ac_link") 2>conftest.er1
9576  ac_status=$?
9577  grep -v '^ *+' conftest.er1 >conftest.err
9578  rm -f conftest.er1
9579  cat conftest.err >&5
9580  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9581  (exit $ac_status); } && {
9582	 test -z "$ac_c_werror_flag" ||
9583	 test ! -s conftest.err
9584       } && test -s conftest$ac_exeext &&
9585       $as_test_x conftest$ac_exeext; then
9586  ac_cv_func_pcap_set_datalink=yes
9587else
9588  echo "$as_me: failed program was:" >&5
9589sed 's/^/| /' conftest.$ac_ext >&5
9590
9591	ac_cv_func_pcap_set_datalink=no
9592fi
9593
9594rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9595      conftest$ac_exeext conftest.$ac_ext
9596fi
9597{ echo "$as_me:$LINENO: result: $ac_cv_func_pcap_set_datalink" >&5
9598echo "${ECHO_T}$ac_cv_func_pcap_set_datalink" >&6; }
9599if test $ac_cv_func_pcap_set_datalink = yes; then
9600  cat >>confdefs.h <<\_ACEOF
9601#define HAVE_PCAP_SET_DATALINK 1
9602_ACEOF
9603
9604fi
9605
9606    { echo "$as_me:$LINENO: checking for pcap_datalink_name_to_val" >&5
9607echo $ECHO_N "checking for pcap_datalink_name_to_val... $ECHO_C" >&6; }
9608if test "${ac_cv_func_pcap_datalink_name_to_val+set}" = set; then
9609  echo $ECHO_N "(cached) $ECHO_C" >&6
9610else
9611  cat >conftest.$ac_ext <<_ACEOF
9612/* confdefs.h.  */
9613_ACEOF
9614cat confdefs.h >>conftest.$ac_ext
9615cat >>conftest.$ac_ext <<_ACEOF
9616/* end confdefs.h.  */
9617/* Define pcap_datalink_name_to_val to an innocuous variant, in case <limits.h> declares pcap_datalink_name_to_val.
9618   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9619#define pcap_datalink_name_to_val innocuous_pcap_datalink_name_to_val
9620
9621/* System header to define __stub macros and hopefully few prototypes,
9622    which can conflict with char pcap_datalink_name_to_val (); below.
9623    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9624    <limits.h> exists even on freestanding compilers.  */
9625
9626#ifdef __STDC__
9627# include <limits.h>
9628#else
9629# include <assert.h>
9630#endif
9631
9632#undef pcap_datalink_name_to_val
9633
9634/* Override any GCC internal prototype to avoid an error.
9635   Use char because int might match the return type of a GCC
9636   builtin and then its argument prototype would still apply.  */
9637#ifdef __cplusplus
9638extern "C"
9639#endif
9640char pcap_datalink_name_to_val ();
9641/* The GNU C library defines this for functions which it implements
9642    to always fail with ENOSYS.  Some functions are actually named
9643    something starting with __ and the normal name is an alias.  */
9644#if defined __stub_pcap_datalink_name_to_val || defined __stub___pcap_datalink_name_to_val
9645choke me
9646#endif
9647
9648int
9649main ()
9650{
9651return pcap_datalink_name_to_val ();
9652  ;
9653  return 0;
9654}
9655_ACEOF
9656rm -f conftest.$ac_objext conftest$ac_exeext
9657if { (ac_try="$ac_link"
9658case "(($ac_try" in
9659  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9660  *) ac_try_echo=$ac_try;;
9661esac
9662eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9663  (eval "$ac_link") 2>conftest.er1
9664  ac_status=$?
9665  grep -v '^ *+' conftest.er1 >conftest.err
9666  rm -f conftest.er1
9667  cat conftest.err >&5
9668  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9669  (exit $ac_status); } && {
9670	 test -z "$ac_c_werror_flag" ||
9671	 test ! -s conftest.err
9672       } && test -s conftest$ac_exeext &&
9673       $as_test_x conftest$ac_exeext; then
9674  ac_cv_func_pcap_datalink_name_to_val=yes
9675else
9676  echo "$as_me: failed program was:" >&5
9677sed 's/^/| /' conftest.$ac_ext >&5
9678
9679	ac_cv_func_pcap_datalink_name_to_val=no
9680fi
9681
9682rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9683      conftest$ac_exeext conftest.$ac_ext
9684fi
9685{ echo "$as_me:$LINENO: result: $ac_cv_func_pcap_datalink_name_to_val" >&5
9686echo "${ECHO_T}$ac_cv_func_pcap_datalink_name_to_val" >&6; }
9687if test $ac_cv_func_pcap_datalink_name_to_val = yes; then
9688
9689	    cat >>confdefs.h <<\_ACEOF
9690#define HAVE_PCAP_DATALINK_NAME_TO_VAL 1
9691_ACEOF
9692
9693	    { echo "$as_me:$LINENO: checking for pcap_datalink_val_to_description" >&5
9694echo $ECHO_N "checking for pcap_datalink_val_to_description... $ECHO_C" >&6; }
9695if test "${ac_cv_func_pcap_datalink_val_to_description+set}" = set; then
9696  echo $ECHO_N "(cached) $ECHO_C" >&6
9697else
9698  cat >conftest.$ac_ext <<_ACEOF
9699/* confdefs.h.  */
9700_ACEOF
9701cat confdefs.h >>conftest.$ac_ext
9702cat >>conftest.$ac_ext <<_ACEOF
9703/* end confdefs.h.  */
9704/* Define pcap_datalink_val_to_description to an innocuous variant, in case <limits.h> declares pcap_datalink_val_to_description.
9705   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9706#define pcap_datalink_val_to_description innocuous_pcap_datalink_val_to_description
9707
9708/* System header to define __stub macros and hopefully few prototypes,
9709    which can conflict with char pcap_datalink_val_to_description (); below.
9710    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9711    <limits.h> exists even on freestanding compilers.  */
9712
9713#ifdef __STDC__
9714# include <limits.h>
9715#else
9716# include <assert.h>
9717#endif
9718
9719#undef pcap_datalink_val_to_description
9720
9721/* Override any GCC internal prototype to avoid an error.
9722   Use char because int might match the return type of a GCC
9723   builtin and then its argument prototype would still apply.  */
9724#ifdef __cplusplus
9725extern "C"
9726#endif
9727char pcap_datalink_val_to_description ();
9728/* The GNU C library defines this for functions which it implements
9729    to always fail with ENOSYS.  Some functions are actually named
9730    something starting with __ and the normal name is an alias.  */
9731#if defined __stub_pcap_datalink_val_to_description || defined __stub___pcap_datalink_val_to_description
9732choke me
9733#endif
9734
9735int
9736main ()
9737{
9738return pcap_datalink_val_to_description ();
9739  ;
9740  return 0;
9741}
9742_ACEOF
9743rm -f conftest.$ac_objext conftest$ac_exeext
9744if { (ac_try="$ac_link"
9745case "(($ac_try" in
9746  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9747  *) ac_try_echo=$ac_try;;
9748esac
9749eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9750  (eval "$ac_link") 2>conftest.er1
9751  ac_status=$?
9752  grep -v '^ *+' conftest.er1 >conftest.err
9753  rm -f conftest.er1
9754  cat conftest.err >&5
9755  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9756  (exit $ac_status); } && {
9757	 test -z "$ac_c_werror_flag" ||
9758	 test ! -s conftest.err
9759       } && test -s conftest$ac_exeext &&
9760       $as_test_x conftest$ac_exeext; then
9761  ac_cv_func_pcap_datalink_val_to_description=yes
9762else
9763  echo "$as_me: failed program was:" >&5
9764sed 's/^/| /' conftest.$ac_ext >&5
9765
9766	ac_cv_func_pcap_datalink_val_to_description=no
9767fi
9768
9769rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9770      conftest$ac_exeext conftest.$ac_ext
9771fi
9772{ echo "$as_me:$LINENO: result: $ac_cv_func_pcap_datalink_val_to_description" >&5
9773echo "${ECHO_T}$ac_cv_func_pcap_datalink_val_to_description" >&6; }
9774if test $ac_cv_func_pcap_datalink_val_to_description = yes; then
9775  cat >>confdefs.h <<\_ACEOF
9776#define HAVE_PCAP_DATALINK_VAL_TO_DESCRIPTION 1
9777_ACEOF
9778
9779else
9780
9781		    case " $LIBOBJS " in
9782  *" dlnames.$ac_objext "* ) ;;
9783  *) LIBOBJS="$LIBOBJS dlnames.$ac_objext"
9784 ;;
9785esac
9786
9787
9788fi
9789
9790
9791else
9792
9793	    case " $LIBOBJS " in
9794  *" dlnames.$ac_objext "* ) ;;
9795  *) LIBOBJS="$LIBOBJS dlnames.$ac_objext"
9796 ;;
9797esac
9798
9799
9800fi
9801
9802
9803
9804for ac_func in pcap_breakloop
9805do
9806as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9807{ echo "$as_me:$LINENO: checking for $ac_func" >&5
9808echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9809if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9810  echo $ECHO_N "(cached) $ECHO_C" >&6
9811else
9812  cat >conftest.$ac_ext <<_ACEOF
9813/* confdefs.h.  */
9814_ACEOF
9815cat confdefs.h >>conftest.$ac_ext
9816cat >>conftest.$ac_ext <<_ACEOF
9817/* end confdefs.h.  */
9818/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9819   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9820#define $ac_func innocuous_$ac_func
9821
9822/* System header to define __stub macros and hopefully few prototypes,
9823    which can conflict with char $ac_func (); below.
9824    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9825    <limits.h> exists even on freestanding compilers.  */
9826
9827#ifdef __STDC__
9828# include <limits.h>
9829#else
9830# include <assert.h>
9831#endif
9832
9833#undef $ac_func
9834
9835/* Override any GCC internal prototype to avoid an error.
9836   Use char because int might match the return type of a GCC
9837   builtin and then its argument prototype would still apply.  */
9838#ifdef __cplusplus
9839extern "C"
9840#endif
9841char $ac_func ();
9842/* The GNU C library defines this for functions which it implements
9843    to always fail with ENOSYS.  Some functions are actually named
9844    something starting with __ and the normal name is an alias.  */
9845#if defined __stub_$ac_func || defined __stub___$ac_func
9846choke me
9847#endif
9848
9849int
9850main ()
9851{
9852return $ac_func ();
9853  ;
9854  return 0;
9855}
9856_ACEOF
9857rm -f conftest.$ac_objext conftest$ac_exeext
9858if { (ac_try="$ac_link"
9859case "(($ac_try" in
9860  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9861  *) ac_try_echo=$ac_try;;
9862esac
9863eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9864  (eval "$ac_link") 2>conftest.er1
9865  ac_status=$?
9866  grep -v '^ *+' conftest.er1 >conftest.err
9867  rm -f conftest.er1
9868  cat conftest.err >&5
9869  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9870  (exit $ac_status); } && {
9871	 test -z "$ac_c_werror_flag" ||
9872	 test ! -s conftest.err
9873       } && test -s conftest$ac_exeext &&
9874       $as_test_x conftest$ac_exeext; then
9875  eval "$as_ac_var=yes"
9876else
9877  echo "$as_me: failed program was:" >&5
9878sed 's/^/| /' conftest.$ac_ext >&5
9879
9880	eval "$as_ac_var=no"
9881fi
9882
9883rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9884      conftest$ac_exeext conftest.$ac_ext
9885fi
9886ac_res=`eval echo '${'$as_ac_var'}'`
9887	       { echo "$as_me:$LINENO: result: $ac_res" >&5
9888echo "${ECHO_T}$ac_res" >&6; }
9889if test `eval echo '${'$as_ac_var'}'` = yes; then
9890  cat >>confdefs.h <<_ACEOF
9891#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9892_ACEOF
9893
9894fi
9895done
9896
9897
9898                { echo "$as_me:$LINENO: checking for pcap_dump_ftell" >&5
9899echo $ECHO_N "checking for pcap_dump_ftell... $ECHO_C" >&6; }
9900if test "${ac_cv_func_pcap_dump_ftell+set}" = set; then
9901  echo $ECHO_N "(cached) $ECHO_C" >&6
9902else
9903  cat >conftest.$ac_ext <<_ACEOF
9904/* confdefs.h.  */
9905_ACEOF
9906cat confdefs.h >>conftest.$ac_ext
9907cat >>conftest.$ac_ext <<_ACEOF
9908/* end confdefs.h.  */
9909/* Define pcap_dump_ftell to an innocuous variant, in case <limits.h> declares pcap_dump_ftell.
9910   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9911#define pcap_dump_ftell innocuous_pcap_dump_ftell
9912
9913/* System header to define __stub macros and hopefully few prototypes,
9914    which can conflict with char pcap_dump_ftell (); below.
9915    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9916    <limits.h> exists even on freestanding compilers.  */
9917
9918#ifdef __STDC__
9919# include <limits.h>
9920#else
9921# include <assert.h>
9922#endif
9923
9924#undef pcap_dump_ftell
9925
9926/* Override any GCC internal prototype to avoid an error.
9927   Use char because int might match the return type of a GCC
9928   builtin and then its argument prototype would still apply.  */
9929#ifdef __cplusplus
9930extern "C"
9931#endif
9932char pcap_dump_ftell ();
9933/* The GNU C library defines this for functions which it implements
9934    to always fail with ENOSYS.  Some functions are actually named
9935    something starting with __ and the normal name is an alias.  */
9936#if defined __stub_pcap_dump_ftell || defined __stub___pcap_dump_ftell
9937choke me
9938#endif
9939
9940int
9941main ()
9942{
9943return pcap_dump_ftell ();
9944  ;
9945  return 0;
9946}
9947_ACEOF
9948rm -f conftest.$ac_objext conftest$ac_exeext
9949if { (ac_try="$ac_link"
9950case "(($ac_try" in
9951  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9952  *) ac_try_echo=$ac_try;;
9953esac
9954eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9955  (eval "$ac_link") 2>conftest.er1
9956  ac_status=$?
9957  grep -v '^ *+' conftest.er1 >conftest.err
9958  rm -f conftest.er1
9959  cat conftest.err >&5
9960  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9961  (exit $ac_status); } && {
9962	 test -z "$ac_c_werror_flag" ||
9963	 test ! -s conftest.err
9964       } && test -s conftest$ac_exeext &&
9965       $as_test_x conftest$ac_exeext; then
9966  ac_cv_func_pcap_dump_ftell=yes
9967else
9968  echo "$as_me: failed program was:" >&5
9969sed 's/^/| /' conftest.$ac_ext >&5
9970
9971	ac_cv_func_pcap_dump_ftell=no
9972fi
9973
9974rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9975      conftest$ac_exeext conftest.$ac_ext
9976fi
9977{ echo "$as_me:$LINENO: result: $ac_cv_func_pcap_dump_ftell" >&5
9978echo "${ECHO_T}$ac_cv_func_pcap_dump_ftell" >&6; }
9979if test $ac_cv_func_pcap_dump_ftell = yes; then
9980  cat >>confdefs.h <<\_ACEOF
9981#define HAVE_PCAP_DUMP_FTELL 1
9982_ACEOF
9983
9984else
9985
9986	    case " $LIBOBJS " in
9987  *" pcap_dump_ftell.$ac_objext "* ) ;;
9988  *) LIBOBJS="$LIBOBJS pcap_dump_ftell.$ac_objext"
9989 ;;
9990esac
9991
9992
9993fi
9994
9995
9996
9997#
9998# Check for these after AC_LBL_LIBPCAP, so we link with the appropriate
9999# libraries (e.g., "-lsocket -lnsl" on Solaris).
10000#
10001# We don't use AC_REPLACE_FUNCS because that uses AC_CHECK_FUNCS which
10002# use AC_CHECK_FUNC which doesn't let us specify the right #includes
10003# to make this work on BSD/OS 4.x.  BSD/OS 4.x ships with the BIND8
10004# resolver, and the way it defines inet_{ntop,pton} is rather strange;
10005# it does not ship with a libc symbol "inet_ntop()", it ships with
10006# "_inet_ntop()", and has a #define macro in one of the system headers
10007# to rename it.
10008#
10009{ echo "$as_me:$LINENO: checking for inet_ntop" >&5
10010echo $ECHO_N "checking for inet_ntop... $ECHO_C" >&6; }
10011cat >conftest.$ac_ext <<_ACEOF
10012/* confdefs.h.  */
10013_ACEOF
10014cat confdefs.h >>conftest.$ac_ext
10015cat >>conftest.$ac_ext <<_ACEOF
10016/* end confdefs.h.  */
10017#include <sys/types.h>
10018#include <sys/socket.h>
10019#include <netinet/in.h>
10020#include <arpa/inet.h>
10021int
10022main ()
10023{
10024char src[4], dst[128];
10025inet_ntop(AF_INET, src, dst, sizeof(dst));
10026  ;
10027  return 0;
10028}
10029_ACEOF
10030rm -f conftest.$ac_objext conftest$ac_exeext
10031if { (ac_try="$ac_link"
10032case "(($ac_try" in
10033  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10034  *) ac_try_echo=$ac_try;;
10035esac
10036eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10037  (eval "$ac_link") 2>conftest.er1
10038  ac_status=$?
10039  grep -v '^ *+' conftest.er1 >conftest.err
10040  rm -f conftest.er1
10041  cat conftest.err >&5
10042  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10043  (exit $ac_status); } && {
10044	 test -z "$ac_c_werror_flag" ||
10045	 test ! -s conftest.err
10046       } && test -s conftest$ac_exeext &&
10047       $as_test_x conftest$ac_exeext; then
10048  { echo "$as_me:$LINENO: result: yes" >&5
10049echo "${ECHO_T}yes" >&6; }
10050else
10051  echo "$as_me: failed program was:" >&5
10052sed 's/^/| /' conftest.$ac_ext >&5
10053
10054	{ echo "$as_me:$LINENO: result: no" >&5
10055echo "${ECHO_T}no" >&6; }
10056	case " $LIBOBJS " in
10057  *" inet_ntop.$ac_objext "* ) ;;
10058  *) LIBOBJS="$LIBOBJS inet_ntop.$ac_objext"
10059 ;;
10060esac
10061
10062fi
10063
10064rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10065      conftest$ac_exeext conftest.$ac_ext
10066{ echo "$as_me:$LINENO: checking for inet_pton" >&5
10067echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6; }
10068cat >conftest.$ac_ext <<_ACEOF
10069/* confdefs.h.  */
10070_ACEOF
10071cat confdefs.h >>conftest.$ac_ext
10072cat >>conftest.$ac_ext <<_ACEOF
10073/* end confdefs.h.  */
10074#include <sys/types.h>
10075#include <sys/socket.h>
10076#include <netinet/in.h>
10077#include <arpa/inet.h>
10078int
10079main ()
10080{
10081char src[128], dst[4];
10082inet_pton(AF_INET, src, dst);
10083  ;
10084  return 0;
10085}
10086_ACEOF
10087rm -f conftest.$ac_objext conftest$ac_exeext
10088if { (ac_try="$ac_link"
10089case "(($ac_try" in
10090  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10091  *) ac_try_echo=$ac_try;;
10092esac
10093eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10094  (eval "$ac_link") 2>conftest.er1
10095  ac_status=$?
10096  grep -v '^ *+' conftest.er1 >conftest.err
10097  rm -f conftest.er1
10098  cat conftest.err >&5
10099  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10100  (exit $ac_status); } && {
10101	 test -z "$ac_c_werror_flag" ||
10102	 test ! -s conftest.err
10103       } && test -s conftest$ac_exeext &&
10104       $as_test_x conftest$ac_exeext; then
10105  { echo "$as_me:$LINENO: result: yes" >&5
10106echo "${ECHO_T}yes" >&6; }
10107else
10108  echo "$as_me: failed program was:" >&5
10109sed 's/^/| /' conftest.$ac_ext >&5
10110
10111	{ echo "$as_me:$LINENO: result: no" >&5
10112echo "${ECHO_T}no" >&6; }
10113	case " $LIBOBJS " in
10114  *" inet_pton.$ac_objext "* ) ;;
10115  *) LIBOBJS="$LIBOBJS inet_pton.$ac_objext"
10116 ;;
10117esac
10118
10119fi
10120
10121rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10122      conftest$ac_exeext conftest.$ac_ext
10123{ echo "$as_me:$LINENO: checking for inet_aton" >&5
10124echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6; }
10125cat >conftest.$ac_ext <<_ACEOF
10126/* confdefs.h.  */
10127_ACEOF
10128cat confdefs.h >>conftest.$ac_ext
10129cat >>conftest.$ac_ext <<_ACEOF
10130/* end confdefs.h.  */
10131#include <sys/types.h>
10132#include <netinet/in.h>
10133#include <arpa/inet.h>
10134int
10135main ()
10136{
10137char src[128];
10138struct in_addr dst;
10139inet_aton(src, &dst);
10140  ;
10141  return 0;
10142}
10143_ACEOF
10144rm -f conftest.$ac_objext conftest$ac_exeext
10145if { (ac_try="$ac_link"
10146case "(($ac_try" in
10147  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10148  *) ac_try_echo=$ac_try;;
10149esac
10150eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10151  (eval "$ac_link") 2>conftest.er1
10152  ac_status=$?
10153  grep -v '^ *+' conftest.er1 >conftest.err
10154  rm -f conftest.er1
10155  cat conftest.err >&5
10156  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10157  (exit $ac_status); } && {
10158	 test -z "$ac_c_werror_flag" ||
10159	 test ! -s conftest.err
10160       } && test -s conftest$ac_exeext &&
10161       $as_test_x conftest$ac_exeext; then
10162  { echo "$as_me:$LINENO: result: yes" >&5
10163echo "${ECHO_T}yes" >&6; }
10164else
10165  echo "$as_me: failed program was:" >&5
10166sed 's/^/| /' conftest.$ac_ext >&5
10167
10168	{ echo "$as_me:$LINENO: result: no" >&5
10169echo "${ECHO_T}no" >&6; }
10170	case " $LIBOBJS " in
10171  *" inet_aton.$ac_objext "* ) ;;
10172  *) LIBOBJS="$LIBOBJS inet_aton.$ac_objext"
10173 ;;
10174esac
10175
10176fi
10177
10178rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10179      conftest$ac_exeext conftest.$ac_ext
10180
10181#
10182# Check for these after AC_LBL_LIBPCAP, for the same reason.
10183#
10184# You are in a twisty little maze of UN*Xes, all different.
10185# Some might not have ether_ntohost().
10186# Some might have it, but not declare it in any header file.
10187# Some might have it, but declare it in <netinet/if_ether.h>.
10188# Some might have it, but declare it in <netinet/ether.h>
10189# (And some might have it but document it as something declared in
10190# <netinet/ethernet.h>, although <netinet/if_ether.h> appears to work.)
10191#
10192# Before you is a C compiler.
10193#
10194
10195for ac_func in ether_ntohost
10196do
10197as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10198{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10199echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10200if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10201  echo $ECHO_N "(cached) $ECHO_C" >&6
10202else
10203  cat >conftest.$ac_ext <<_ACEOF
10204/* confdefs.h.  */
10205_ACEOF
10206cat confdefs.h >>conftest.$ac_ext
10207cat >>conftest.$ac_ext <<_ACEOF
10208/* end confdefs.h.  */
10209/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10210   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10211#define $ac_func innocuous_$ac_func
10212
10213/* System header to define __stub macros and hopefully few prototypes,
10214    which can conflict with char $ac_func (); below.
10215    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10216    <limits.h> exists even on freestanding compilers.  */
10217
10218#ifdef __STDC__
10219# include <limits.h>
10220#else
10221# include <assert.h>
10222#endif
10223
10224#undef $ac_func
10225
10226/* Override any GCC internal prototype to avoid an error.
10227   Use char because int might match the return type of a GCC
10228   builtin and then its argument prototype would still apply.  */
10229#ifdef __cplusplus
10230extern "C"
10231#endif
10232char $ac_func ();
10233/* The GNU C library defines this for functions which it implements
10234    to always fail with ENOSYS.  Some functions are actually named
10235    something starting with __ and the normal name is an alias.  */
10236#if defined __stub_$ac_func || defined __stub___$ac_func
10237choke me
10238#endif
10239
10240int
10241main ()
10242{
10243return $ac_func ();
10244  ;
10245  return 0;
10246}
10247_ACEOF
10248rm -f conftest.$ac_objext conftest$ac_exeext
10249if { (ac_try="$ac_link"
10250case "(($ac_try" in
10251  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10252  *) ac_try_echo=$ac_try;;
10253esac
10254eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10255  (eval "$ac_link") 2>conftest.er1
10256  ac_status=$?
10257  grep -v '^ *+' conftest.er1 >conftest.err
10258  rm -f conftest.er1
10259  cat conftest.err >&5
10260  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10261  (exit $ac_status); } && {
10262	 test -z "$ac_c_werror_flag" ||
10263	 test ! -s conftest.err
10264       } && test -s conftest$ac_exeext &&
10265       $as_test_x conftest$ac_exeext; then
10266  eval "$as_ac_var=yes"
10267else
10268  echo "$as_me: failed program was:" >&5
10269sed 's/^/| /' conftest.$ac_ext >&5
10270
10271	eval "$as_ac_var=no"
10272fi
10273
10274rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10275      conftest$ac_exeext conftest.$ac_ext
10276fi
10277ac_res=`eval echo '${'$as_ac_var'}'`
10278	       { echo "$as_me:$LINENO: result: $ac_res" >&5
10279echo "${ECHO_T}$ac_res" >&6; }
10280if test `eval echo '${'$as_ac_var'}'` = yes; then
10281  cat >>confdefs.h <<_ACEOF
10282#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10283_ACEOF
10284
10285    { echo "$as_me:$LINENO: checking for buggy ether_ntohost" >&5
10286echo $ECHO_N "checking for buggy ether_ntohost... $ECHO_C" >&6; }
10287if test "${ac_cv_buggy_ether_ntohost+set}" = set; then
10288  echo $ECHO_N "(cached) $ECHO_C" >&6
10289else
10290
10291	if test "$cross_compiling" = yes; then
10292  ac_cv_buggy_ether_ntohost="not while cross-compiling"
10293else
10294  cat >conftest.$ac_ext <<_ACEOF
10295/* confdefs.h.  */
10296_ACEOF
10297cat confdefs.h >>conftest.$ac_ext
10298cat >>conftest.$ac_ext <<_ACEOF
10299/* end confdefs.h.  */
10300
10301		#include <netdb.h>
10302		#include <sys/types.h>
10303		#include <sys/param.h>
10304		#include <sys/socket.h>
10305
10306		int
10307		main(int argc, char **argv)
10308		{
10309			u_char ea[6] = { 0xff, 0xff, 0xff, 0xff, 0xff };
10310			char name[MAXHOSTNAMELEN];
10311
10312			ether_ntohost(name, (struct ether_addr *)ea);
10313			exit(0);
10314		}
10315
10316_ACEOF
10317rm -f conftest$ac_exeext
10318if { (ac_try="$ac_link"
10319case "(($ac_try" in
10320  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10321  *) ac_try_echo=$ac_try;;
10322esac
10323eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10324  (eval "$ac_link") 2>&5
10325  ac_status=$?
10326  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10327  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10328  { (case "(($ac_try" in
10329  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10330  *) ac_try_echo=$ac_try;;
10331esac
10332eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10333  (eval "$ac_try") 2>&5
10334  ac_status=$?
10335  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10336  (exit $ac_status); }; }; then
10337  ac_cv_buggy_ether_ntohost=no
10338else
10339  echo "$as_me: program exited with status $ac_status" >&5
10340echo "$as_me: failed program was:" >&5
10341sed 's/^/| /' conftest.$ac_ext >&5
10342
10343( exit $ac_status )
10344ac_cv_buggy_ether_ntohost=yes
10345fi
10346rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10347fi
10348
10349
10350fi
10351{ echo "$as_me:$LINENO: result: $ac_cv_buggy_ether_ntohost" >&5
10352echo "${ECHO_T}$ac_cv_buggy_ether_ntohost" >&6; }
10353    if test "$ac_cv_buggy_ether_ntohost" = "no"; then
10354	cat >>confdefs.h <<\_ACEOF
10355#define USE_ETHER_NTOHOST 1
10356_ACEOF
10357
10358    fi
10359
10360fi
10361done
10362
10363if test "$ac_cv_func_ether_ntohost" = yes -a \
10364    "$ac_cv_buggy_ether_ntohost" = "no"; then
10365	#
10366	# OK, we have ether_ntohost().  Do we have <netinet/if_ether.h>?
10367	#
10368	if test "$ac_cv_header_netinet_if_ether_h" = yes; then
10369		#
10370		# Yes.  Does it declare ether_ntohost()?
10371		#
10372		{ echo "$as_me:$LINENO: checking whether ether_ntohost is declared" >&5
10373echo $ECHO_N "checking whether ether_ntohost is declared... $ECHO_C" >&6; }
10374if test "${ac_cv_have_decl_ether_ntohost+set}" = set; then
10375  echo $ECHO_N "(cached) $ECHO_C" >&6
10376else
10377  cat >conftest.$ac_ext <<_ACEOF
10378/* confdefs.h.  */
10379_ACEOF
10380cat confdefs.h >>conftest.$ac_ext
10381cat >>conftest.$ac_ext <<_ACEOF
10382/* end confdefs.h.  */
10383
10384#include <sys/types.h>
10385#include <sys/socket.h>
10386#include <netinet/in.h>
10387#include <arpa/inet.h>
10388struct mbuf;
10389struct rtentry;
10390#include <net/if.h>
10391#include <netinet/if_ether.h>
10392
10393
10394int
10395main ()
10396{
10397#ifndef ether_ntohost
10398  (void) ether_ntohost;
10399#endif
10400
10401  ;
10402  return 0;
10403}
10404_ACEOF
10405rm -f conftest.$ac_objext
10406if { (ac_try="$ac_compile"
10407case "(($ac_try" in
10408  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10409  *) ac_try_echo=$ac_try;;
10410esac
10411eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10412  (eval "$ac_compile") 2>conftest.er1
10413  ac_status=$?
10414  grep -v '^ *+' conftest.er1 >conftest.err
10415  rm -f conftest.er1
10416  cat conftest.err >&5
10417  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10418  (exit $ac_status); } && {
10419	 test -z "$ac_c_werror_flag" ||
10420	 test ! -s conftest.err
10421       } && test -s conftest.$ac_objext; then
10422  ac_cv_have_decl_ether_ntohost=yes
10423else
10424  echo "$as_me: failed program was:" >&5
10425sed 's/^/| /' conftest.$ac_ext >&5
10426
10427	ac_cv_have_decl_ether_ntohost=no
10428fi
10429
10430rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10431fi
10432{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_ether_ntohost" >&5
10433echo "${ECHO_T}$ac_cv_have_decl_ether_ntohost" >&6; }
10434if test $ac_cv_have_decl_ether_ntohost = yes; then
10435
10436
10437cat >>confdefs.h <<\_ACEOF
10438#define NETINET_IF_ETHER_H_DECLARES_ETHER_NTOHOST
10439_ACEOF
10440
10441
10442fi
10443
10444	fi
10445	#
10446	# Did that succeed?
10447	#
10448	if test "$ac_cv_have_decl_ether_ntohost" != yes; then
10449		#
10450		# No, how about <netinet/ether.h>, as on Linux?
10451		#
10452
10453for ac_header in netinet/ether.h
10454do
10455as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10456if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10457  { echo "$as_me:$LINENO: checking for $ac_header" >&5
10458echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10459if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10460  echo $ECHO_N "(cached) $ECHO_C" >&6
10461fi
10462ac_res=`eval echo '${'$as_ac_Header'}'`
10463	       { echo "$as_me:$LINENO: result: $ac_res" >&5
10464echo "${ECHO_T}$ac_res" >&6; }
10465else
10466  # Is the header compilable?
10467{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10468echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10469cat >conftest.$ac_ext <<_ACEOF
10470/* confdefs.h.  */
10471_ACEOF
10472cat confdefs.h >>conftest.$ac_ext
10473cat >>conftest.$ac_ext <<_ACEOF
10474/* end confdefs.h.  */
10475$ac_includes_default
10476#include <$ac_header>
10477_ACEOF
10478rm -f conftest.$ac_objext
10479if { (ac_try="$ac_compile"
10480case "(($ac_try" in
10481  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10482  *) ac_try_echo=$ac_try;;
10483esac
10484eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10485  (eval "$ac_compile") 2>conftest.er1
10486  ac_status=$?
10487  grep -v '^ *+' conftest.er1 >conftest.err
10488  rm -f conftest.er1
10489  cat conftest.err >&5
10490  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10491  (exit $ac_status); } && {
10492	 test -z "$ac_c_werror_flag" ||
10493	 test ! -s conftest.err
10494       } && test -s conftest.$ac_objext; then
10495  ac_header_compiler=yes
10496else
10497  echo "$as_me: failed program was:" >&5
10498sed 's/^/| /' conftest.$ac_ext >&5
10499
10500	ac_header_compiler=no
10501fi
10502
10503rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10504{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10505echo "${ECHO_T}$ac_header_compiler" >&6; }
10506
10507# Is the header present?
10508{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10509echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10510cat >conftest.$ac_ext <<_ACEOF
10511/* confdefs.h.  */
10512_ACEOF
10513cat confdefs.h >>conftest.$ac_ext
10514cat >>conftest.$ac_ext <<_ACEOF
10515/* end confdefs.h.  */
10516#include <$ac_header>
10517_ACEOF
10518if { (ac_try="$ac_cpp conftest.$ac_ext"
10519case "(($ac_try" in
10520  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10521  *) ac_try_echo=$ac_try;;
10522esac
10523eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10524  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10525  ac_status=$?
10526  grep -v '^ *+' conftest.er1 >conftest.err
10527  rm -f conftest.er1
10528  cat conftest.err >&5
10529  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10530  (exit $ac_status); } >/dev/null && {
10531	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10532	 test ! -s conftest.err
10533       }; then
10534  ac_header_preproc=yes
10535else
10536  echo "$as_me: failed program was:" >&5
10537sed 's/^/| /' conftest.$ac_ext >&5
10538
10539  ac_header_preproc=no
10540fi
10541
10542rm -f conftest.err conftest.$ac_ext
10543{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10544echo "${ECHO_T}$ac_header_preproc" >&6; }
10545
10546# So?  What about this header?
10547case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10548  yes:no: )
10549    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10550echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10551    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10552echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10553    ac_header_preproc=yes
10554    ;;
10555  no:yes:* )
10556    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10557echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10558    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10559echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10560    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10561echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10562    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10563echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10564    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10565echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10566    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10567echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10568
10569    ;;
10570esac
10571{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10572echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10573if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10574  echo $ECHO_N "(cached) $ECHO_C" >&6
10575else
10576  eval "$as_ac_Header=\$ac_header_preproc"
10577fi
10578ac_res=`eval echo '${'$as_ac_Header'}'`
10579	       { echo "$as_me:$LINENO: result: $ac_res" >&5
10580echo "${ECHO_T}$ac_res" >&6; }
10581
10582fi
10583if test `eval echo '${'$as_ac_Header'}'` = yes; then
10584  cat >>confdefs.h <<_ACEOF
10585#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10586_ACEOF
10587
10588fi
10589
10590done
10591
10592		if test "$ac_cv_header_netinet_ether_h" = yes; then
10593			#
10594			# We have it - does it declare ether_ntohost()?
10595			# Unset ac_cv_have_decl_ether_ntohost so we don't
10596			# treat the previous failure as a cached value and
10597			# suppress the next test.
10598			#
10599			unset ac_cv_have_decl_ether_ntohost
10600			{ echo "$as_me:$LINENO: checking whether ether_ntohost is declared" >&5
10601echo $ECHO_N "checking whether ether_ntohost is declared... $ECHO_C" >&6; }
10602if test "${ac_cv_have_decl_ether_ntohost+set}" = set; then
10603  echo $ECHO_N "(cached) $ECHO_C" >&6
10604else
10605  cat >conftest.$ac_ext <<_ACEOF
10606/* confdefs.h.  */
10607_ACEOF
10608cat confdefs.h >>conftest.$ac_ext
10609cat >>conftest.$ac_ext <<_ACEOF
10610/* end confdefs.h.  */
10611
10612#include <netinet/ether.h>
10613
10614
10615int
10616main ()
10617{
10618#ifndef ether_ntohost
10619  (void) ether_ntohost;
10620#endif
10621
10622  ;
10623  return 0;
10624}
10625_ACEOF
10626rm -f conftest.$ac_objext
10627if { (ac_try="$ac_compile"
10628case "(($ac_try" in
10629  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10630  *) ac_try_echo=$ac_try;;
10631esac
10632eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10633  (eval "$ac_compile") 2>conftest.er1
10634  ac_status=$?
10635  grep -v '^ *+' conftest.er1 >conftest.err
10636  rm -f conftest.er1
10637  cat conftest.err >&5
10638  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10639  (exit $ac_status); } && {
10640	 test -z "$ac_c_werror_flag" ||
10641	 test ! -s conftest.err
10642       } && test -s conftest.$ac_objext; then
10643  ac_cv_have_decl_ether_ntohost=yes
10644else
10645  echo "$as_me: failed program was:" >&5
10646sed 's/^/| /' conftest.$ac_ext >&5
10647
10648	ac_cv_have_decl_ether_ntohost=no
10649fi
10650
10651rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10652fi
10653{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_ether_ntohost" >&5
10654echo "${ECHO_T}$ac_cv_have_decl_ether_ntohost" >&6; }
10655if test $ac_cv_have_decl_ether_ntohost = yes; then
10656
10657
10658cat >>confdefs.h <<\_ACEOF
10659#define NETINET_ETHER_H_DECLARES_ETHER_NTOHOST
10660_ACEOF
10661
10662
10663fi
10664
10665		fi
10666	fi
10667	#
10668	# Is ether_ntohost() declared?
10669	#
10670	if test "$ac_cv_have_decl_ether_ntohost" != yes; then
10671		#
10672		# No, we'll have to declare it ourselves.
10673		# Do we have "struct ether_addr"?
10674		#
10675		{ echo "$as_me:$LINENO: checking for struct ether_addr" >&5
10676echo $ECHO_N "checking for struct ether_addr... $ECHO_C" >&6; }
10677if test "${ac_cv_type_struct_ether_addr+set}" = set; then
10678  echo $ECHO_N "(cached) $ECHO_C" >&6
10679else
10680  cat >conftest.$ac_ext <<_ACEOF
10681/* confdefs.h.  */
10682_ACEOF
10683cat confdefs.h >>conftest.$ac_ext
10684cat >>conftest.$ac_ext <<_ACEOF
10685/* end confdefs.h.  */
10686
10687#include <sys/types.h>
10688#include <sys/socket.h>
10689#include <netinet/in.h>
10690#include <arpa/inet.h>
10691struct mbuf;
10692struct rtentry;
10693#include <net/if.h>
10694#include <netinet/if_ether.h>
10695
10696
10697typedef struct ether_addr ac__type_new_;
10698int
10699main ()
10700{
10701if ((ac__type_new_ *) 0)
10702  return 0;
10703if (sizeof (ac__type_new_))
10704  return 0;
10705  ;
10706  return 0;
10707}
10708_ACEOF
10709rm -f conftest.$ac_objext
10710if { (ac_try="$ac_compile"
10711case "(($ac_try" in
10712  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10713  *) ac_try_echo=$ac_try;;
10714esac
10715eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10716  (eval "$ac_compile") 2>conftest.er1
10717  ac_status=$?
10718  grep -v '^ *+' conftest.er1 >conftest.err
10719  rm -f conftest.er1
10720  cat conftest.err >&5
10721  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10722  (exit $ac_status); } && {
10723	 test -z "$ac_c_werror_flag" ||
10724	 test ! -s conftest.err
10725       } && test -s conftest.$ac_objext; then
10726  ac_cv_type_struct_ether_addr=yes
10727else
10728  echo "$as_me: failed program was:" >&5
10729sed 's/^/| /' conftest.$ac_ext >&5
10730
10731	ac_cv_type_struct_ether_addr=no
10732fi
10733
10734rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10735fi
10736{ echo "$as_me:$LINENO: result: $ac_cv_type_struct_ether_addr" >&5
10737echo "${ECHO_T}$ac_cv_type_struct_ether_addr" >&6; }
10738if test $ac_cv_type_struct_ether_addr = yes; then
10739
10740cat >>confdefs.h <<_ACEOF
10741#define HAVE_STRUCT_ETHER_ADDR 1
10742_ACEOF
10743
10744
10745fi
10746
10747
10748cat >>confdefs.h <<\_ACEOF
10749#define HAVE_DECL_ETHER_NTOHOST 0
10750_ACEOF
10751
10752	else
10753
10754cat >>confdefs.h <<\_ACEOF
10755#define HAVE_DECL_ETHER_NTOHOST 1
10756_ACEOF
10757
10758	fi
10759fi
10760
10761
10762	{ echo "$as_me:$LINENO: checking if sockaddr struct has sa_len member" >&5
10763echo $ECHO_N "checking if sockaddr struct has sa_len member... $ECHO_C" >&6; }
10764	if test "${ac_cv_sockaddr_has_sa_len+set}" = set; then
10765  echo $ECHO_N "(cached) $ECHO_C" >&6
10766else
10767  cat >conftest.$ac_ext <<_ACEOF
10768/* confdefs.h.  */
10769_ACEOF
10770cat confdefs.h >>conftest.$ac_ext
10771cat >>conftest.$ac_ext <<_ACEOF
10772/* end confdefs.h.  */
10773
10774#		include <sys/types.h>
10775#		include <sys/socket.h>
10776int
10777main ()
10778{
10779u_int i = sizeof(((struct sockaddr *)0)->sa_len)
10780  ;
10781  return 0;
10782}
10783_ACEOF
10784rm -f conftest.$ac_objext
10785if { (ac_try="$ac_compile"
10786case "(($ac_try" in
10787  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10788  *) ac_try_echo=$ac_try;;
10789esac
10790eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10791  (eval "$ac_compile") 2>conftest.er1
10792  ac_status=$?
10793  grep -v '^ *+' conftest.er1 >conftest.err
10794  rm -f conftest.er1
10795  cat conftest.err >&5
10796  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10797  (exit $ac_status); } && {
10798	 test -z "$ac_c_werror_flag" ||
10799	 test ! -s conftest.err
10800       } && test -s conftest.$ac_objext; then
10801  ac_cv_sockaddr_has_sa_len=yes
10802else
10803  echo "$as_me: failed program was:" >&5
10804sed 's/^/| /' conftest.$ac_ext >&5
10805
10806	ac_cv_sockaddr_has_sa_len=no
10807fi
10808
10809rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10810fi
10811
10812	{ echo "$as_me:$LINENO: result: $ac_cv_sockaddr_has_sa_len" >&5
10813echo "${ECHO_T}$ac_cv_sockaddr_has_sa_len" >&6; }
10814		if test $ac_cv_sockaddr_has_sa_len = yes ; then
10815			cat >>confdefs.h <<\_ACEOF
10816#define HAVE_SOCKADDR_SA_LEN 1
10817_ACEOF
10818
10819	fi
10820
10821if test "$ac_cv_sockaddr_has_sa_len" = no; then
10822	missing_includes=yes
10823fi
10824
10825
10826
10827
10828for ac_func in pcap_findalldevs pcap_dump_flush pcap_lib_version
10829do
10830as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10831{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10832echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10833if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10834  echo $ECHO_N "(cached) $ECHO_C" >&6
10835else
10836  cat >conftest.$ac_ext <<_ACEOF
10837/* confdefs.h.  */
10838_ACEOF
10839cat confdefs.h >>conftest.$ac_ext
10840cat >>conftest.$ac_ext <<_ACEOF
10841/* end confdefs.h.  */
10842/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10843   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10844#define $ac_func innocuous_$ac_func
10845
10846/* System header to define __stub macros and hopefully few prototypes,
10847    which can conflict with char $ac_func (); below.
10848    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10849    <limits.h> exists even on freestanding compilers.  */
10850
10851#ifdef __STDC__
10852# include <limits.h>
10853#else
10854# include <assert.h>
10855#endif
10856
10857#undef $ac_func
10858
10859/* Override any GCC internal prototype to avoid an error.
10860   Use char because int might match the return type of a GCC
10861   builtin and then its argument prototype would still apply.  */
10862#ifdef __cplusplus
10863extern "C"
10864#endif
10865char $ac_func ();
10866/* The GNU C library defines this for functions which it implements
10867    to always fail with ENOSYS.  Some functions are actually named
10868    something starting with __ and the normal name is an alias.  */
10869#if defined __stub_$ac_func || defined __stub___$ac_func
10870choke me
10871#endif
10872
10873int
10874main ()
10875{
10876return $ac_func ();
10877  ;
10878  return 0;
10879}
10880_ACEOF
10881rm -f conftest.$ac_objext conftest$ac_exeext
10882if { (ac_try="$ac_link"
10883case "(($ac_try" in
10884  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10885  *) ac_try_echo=$ac_try;;
10886esac
10887eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10888  (eval "$ac_link") 2>conftest.er1
10889  ac_status=$?
10890  grep -v '^ *+' conftest.er1 >conftest.err
10891  rm -f conftest.er1
10892  cat conftest.err >&5
10893  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10894  (exit $ac_status); } && {
10895	 test -z "$ac_c_werror_flag" ||
10896	 test ! -s conftest.err
10897       } && test -s conftest$ac_exeext &&
10898       $as_test_x conftest$ac_exeext; then
10899  eval "$as_ac_var=yes"
10900else
10901  echo "$as_me: failed program was:" >&5
10902sed 's/^/| /' conftest.$ac_ext >&5
10903
10904	eval "$as_ac_var=no"
10905fi
10906
10907rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10908      conftest$ac_exeext conftest.$ac_ext
10909fi
10910ac_res=`eval echo '${'$as_ac_var'}'`
10911	       { echo "$as_me:$LINENO: result: $ac_res" >&5
10912echo "${ECHO_T}$ac_res" >&6; }
10913if test `eval echo '${'$as_ac_var'}'` = yes; then
10914  cat >>confdefs.h <<_ACEOF
10915#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10916_ACEOF
10917
10918fi
10919done
10920
10921if test $ac_cv_func_pcap_findalldevs = "yes" ; then
10922    savedcflags="$CFLAGS"
10923    CFLAGS="$CFLAGS $V_INCLS"
10924    { echo "$as_me:$LINENO: checking for pcap_if_t" >&5
10925echo $ECHO_N "checking for pcap_if_t... $ECHO_C" >&6; }
10926if test "${ac_cv_type_pcap_if_t+set}" = set; then
10927  echo $ECHO_N "(cached) $ECHO_C" >&6
10928else
10929  cat >conftest.$ac_ext <<_ACEOF
10930/* confdefs.h.  */
10931_ACEOF
10932cat confdefs.h >>conftest.$ac_ext
10933cat >>conftest.$ac_ext <<_ACEOF
10934/* end confdefs.h.  */
10935#include <pcap.h>
10936
10937typedef pcap_if_t ac__type_new_;
10938int
10939main ()
10940{
10941if ((ac__type_new_ *) 0)
10942  return 0;
10943if (sizeof (ac__type_new_))
10944  return 0;
10945  ;
10946  return 0;
10947}
10948_ACEOF
10949rm -f conftest.$ac_objext
10950if { (ac_try="$ac_compile"
10951case "(($ac_try" in
10952  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10953  *) ac_try_echo=$ac_try;;
10954esac
10955eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10956  (eval "$ac_compile") 2>conftest.er1
10957  ac_status=$?
10958  grep -v '^ *+' conftest.er1 >conftest.err
10959  rm -f conftest.er1
10960  cat conftest.err >&5
10961  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10962  (exit $ac_status); } && {
10963	 test -z "$ac_c_werror_flag" ||
10964	 test ! -s conftest.err
10965       } && test -s conftest.$ac_objext; then
10966  ac_cv_type_pcap_if_t=yes
10967else
10968  echo "$as_me: failed program was:" >&5
10969sed 's/^/| /' conftest.$ac_ext >&5
10970
10971	ac_cv_type_pcap_if_t=no
10972fi
10973
10974rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10975fi
10976{ echo "$as_me:$LINENO: result: $ac_cv_type_pcap_if_t" >&5
10977echo "${ECHO_T}$ac_cv_type_pcap_if_t" >&6; }
10978if test $ac_cv_type_pcap_if_t = yes; then
10979
10980cat >>confdefs.h <<_ACEOF
10981#define HAVE_PCAP_IF_T 1
10982_ACEOF
10983
10984
10985fi
10986
10987    CFLAGS="$savedcflags"
10988fi
10989
10990if test $ac_cv_func_pcap_lib_version = "no" ; then
10991    { echo "$as_me:$LINENO: checking whether pcap_version is defined by libpcap" >&5
10992echo $ECHO_N "checking whether pcap_version is defined by libpcap... $ECHO_C" >&6; }
10993    cat >conftest.$ac_ext <<_ACEOF
10994/* confdefs.h.  */
10995_ACEOF
10996cat confdefs.h >>conftest.$ac_ext
10997cat >>conftest.$ac_ext <<_ACEOF
10998/* end confdefs.h.  */
10999
11000int
11001main ()
11002{
11003
11004	extern char pcap_version[];
11005
11006	return (int)pcap_version;
11007
11008  ;
11009  return 0;
11010}
11011_ACEOF
11012rm -f conftest.$ac_objext conftest$ac_exeext
11013if { (ac_try="$ac_link"
11014case "(($ac_try" in
11015  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11016  *) ac_try_echo=$ac_try;;
11017esac
11018eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11019  (eval "$ac_link") 2>conftest.er1
11020  ac_status=$?
11021  grep -v '^ *+' conftest.er1 >conftest.err
11022  rm -f conftest.er1
11023  cat conftest.err >&5
11024  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11025  (exit $ac_status); } && {
11026	 test -z "$ac_c_werror_flag" ||
11027	 test ! -s conftest.err
11028       } && test -s conftest$ac_exeext &&
11029       $as_test_x conftest$ac_exeext; then
11030  ac_lbl_cv_pcap_version_defined=yes
11031else
11032  echo "$as_me: failed program was:" >&5
11033sed 's/^/| /' conftest.$ac_ext >&5
11034
11035	ac_lbl_cv_pcap_version_defined=no
11036fi
11037
11038rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11039      conftest$ac_exeext conftest.$ac_ext
11040    if test "$ac_lbl_cv_pcap_version_defined" = yes ; then
11041    	{ echo "$as_me:$LINENO: result: yes" >&5
11042echo "${ECHO_T}yes" >&6; }
11043	cat >>confdefs.h <<\_ACEOF
11044#define HAVE_PCAP_VERSION 1
11045_ACEOF
11046
11047    else
11048	{ echo "$as_me:$LINENO: result: no" >&5
11049echo "${ECHO_T}no" >&6; }
11050    fi
11051fi
11052{ echo "$as_me:$LINENO: checking whether pcap_debug is defined by libpcap" >&5
11053echo $ECHO_N "checking whether pcap_debug is defined by libpcap... $ECHO_C" >&6; }
11054cat >conftest.$ac_ext <<_ACEOF
11055/* confdefs.h.  */
11056_ACEOF
11057cat confdefs.h >>conftest.$ac_ext
11058cat >>conftest.$ac_ext <<_ACEOF
11059/* end confdefs.h.  */
11060
11061int
11062main ()
11063{
11064
11065	extern int pcap_debug;
11066
11067	return pcap_debug;
11068
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_lbl_cv_pcap_debug_defined=yes
11092else
11093  echo "$as_me: failed program was:" >&5
11094sed 's/^/| /' conftest.$ac_ext >&5
11095
11096	ac_lbl_cv_pcap_debug_defined=no
11097fi
11098
11099rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11100      conftest$ac_exeext conftest.$ac_ext
11101if test "$ac_lbl_cv_pcap_debug_defined" = yes ; then
11102	{ echo "$as_me:$LINENO: result: yes" >&5
11103echo "${ECHO_T}yes" >&6; }
11104	cat >>confdefs.h <<\_ACEOF
11105#define HAVE_PCAP_DEBUG 1
11106_ACEOF
11107
11108else
11109	{ echo "$as_me:$LINENO: result: no" >&5
11110echo "${ECHO_T}no" >&6; }
11111	#
11112	# OK, what about "yydebug"?
11113	#
11114	{ echo "$as_me:$LINENO: checking whether yydebug is defined by libpcap" >&5
11115echo $ECHO_N "checking whether yydebug is defined by libpcap... $ECHO_C" >&6; }
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
11123int
11124main ()
11125{
11126
11127		extern int yydebug;
11128
11129		return yydebug;
11130
11131  ;
11132  return 0;
11133}
11134_ACEOF
11135rm -f conftest.$ac_objext conftest$ac_exeext
11136if { (ac_try="$ac_link"
11137case "(($ac_try" in
11138  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11139  *) ac_try_echo=$ac_try;;
11140esac
11141eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11142  (eval "$ac_link") 2>conftest.er1
11143  ac_status=$?
11144  grep -v '^ *+' conftest.er1 >conftest.err
11145  rm -f conftest.er1
11146  cat conftest.err >&5
11147  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11148  (exit $ac_status); } && {
11149	 test -z "$ac_c_werror_flag" ||
11150	 test ! -s conftest.err
11151       } && test -s conftest$ac_exeext &&
11152       $as_test_x conftest$ac_exeext; then
11153  ac_lbl_cv_yydebug_defined=yes
11154else
11155  echo "$as_me: failed program was:" >&5
11156sed 's/^/| /' conftest.$ac_ext >&5
11157
11158	ac_lbl_cv_yydebug_defined=no
11159fi
11160
11161rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11162      conftest$ac_exeext conftest.$ac_ext
11163	if test "$ac_lbl_cv_yydebug_defined" = yes ; then
11164		{ echo "$as_me:$LINENO: result: yes" >&5
11165echo "${ECHO_T}yes" >&6; }
11166		cat >>confdefs.h <<\_ACEOF
11167#define HAVE_YYDEBUG 1
11168_ACEOF
11169
11170	else
11171		{ echo "$as_me:$LINENO: result: no" >&5
11172echo "${ECHO_T}no" >&6; }
11173	fi
11174fi
11175
11176for ac_func in bpf_dump
11177do
11178as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11179{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11180echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11181if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11182  echo $ECHO_N "(cached) $ECHO_C" >&6
11183else
11184  cat >conftest.$ac_ext <<_ACEOF
11185/* confdefs.h.  */
11186_ACEOF
11187cat confdefs.h >>conftest.$ac_ext
11188cat >>conftest.$ac_ext <<_ACEOF
11189/* end confdefs.h.  */
11190/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11191   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11192#define $ac_func innocuous_$ac_func
11193
11194/* System header to define __stub macros and hopefully few prototypes,
11195    which can conflict with char $ac_func (); below.
11196    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11197    <limits.h> exists even on freestanding compilers.  */
11198
11199#ifdef __STDC__
11200# include <limits.h>
11201#else
11202# include <assert.h>
11203#endif
11204
11205#undef $ac_func
11206
11207/* Override any GCC internal prototype to avoid an error.
11208   Use char because int might match the return type of a GCC
11209   builtin and then its argument prototype would still apply.  */
11210#ifdef __cplusplus
11211extern "C"
11212#endif
11213char $ac_func ();
11214/* The GNU C library defines this for functions which it implements
11215    to always fail with ENOSYS.  Some functions are actually named
11216    something starting with __ and the normal name is an alias.  */
11217#if defined __stub_$ac_func || defined __stub___$ac_func
11218choke me
11219#endif
11220
11221int
11222main ()
11223{
11224return $ac_func ();
11225  ;
11226  return 0;
11227}
11228_ACEOF
11229rm -f conftest.$ac_objext conftest$ac_exeext
11230if { (ac_try="$ac_link"
11231case "(($ac_try" in
11232  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11233  *) ac_try_echo=$ac_try;;
11234esac
11235eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11236  (eval "$ac_link") 2>conftest.er1
11237  ac_status=$?
11238  grep -v '^ *+' conftest.er1 >conftest.err
11239  rm -f conftest.er1
11240  cat conftest.err >&5
11241  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11242  (exit $ac_status); } && {
11243	 test -z "$ac_c_werror_flag" ||
11244	 test ! -s conftest.err
11245       } && test -s conftest$ac_exeext &&
11246       $as_test_x conftest$ac_exeext; then
11247  eval "$as_ac_var=yes"
11248else
11249  echo "$as_me: failed program was:" >&5
11250sed 's/^/| /' conftest.$ac_ext >&5
11251
11252	eval "$as_ac_var=no"
11253fi
11254
11255rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11256      conftest$ac_exeext conftest.$ac_ext
11257fi
11258ac_res=`eval echo '${'$as_ac_var'}'`
11259	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11260echo "${ECHO_T}$ac_res" >&6; }
11261if test `eval echo '${'$as_ac_var'}'` = yes; then
11262  cat >>confdefs.h <<_ACEOF
11263#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11264_ACEOF
11265
11266else
11267  case " $LIBOBJS " in
11268  *" $ac_func.$ac_objext "* ) ;;
11269  *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
11270 ;;
11271esac
11272
11273fi
11274done
11275
11276
11277V_GROUP=0
11278if test -f /etc/group -a ! -z "`grep '^wheel:' /etc/group`" ; then
11279	V_GROUP=wheel
11280fi
11281case "$host_os" in
11282
11283aix*)
11284		cat >>confdefs.h <<\_ACEOF
11285#define _SUN 1
11286_ACEOF
11287
11288	;;
11289
11290irix*)
11291	V_GROUP=sys
11292	;;
11293
11294osf*)
11295	V_GROUP=system
11296	;;
11297
11298solaris*)
11299	V_GROUP=sys
11300	;;
11301esac
11302
11303if test -f /dev/bpf0 ; then
11304	V_GROUP=bpf
11305fi
11306
11307
11308for ac_header in sys/bitypes.h
11309do
11310as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11311if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11312  { echo "$as_me:$LINENO: checking for $ac_header" >&5
11313echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11314if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11315  echo $ECHO_N "(cached) $ECHO_C" >&6
11316fi
11317ac_res=`eval echo '${'$as_ac_Header'}'`
11318	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11319echo "${ECHO_T}$ac_res" >&6; }
11320else
11321  # Is the header compilable?
11322{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11323echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11324cat >conftest.$ac_ext <<_ACEOF
11325/* confdefs.h.  */
11326_ACEOF
11327cat confdefs.h >>conftest.$ac_ext
11328cat >>conftest.$ac_ext <<_ACEOF
11329/* end confdefs.h.  */
11330$ac_includes_default
11331#include <$ac_header>
11332_ACEOF
11333rm -f conftest.$ac_objext
11334if { (ac_try="$ac_compile"
11335case "(($ac_try" in
11336  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11337  *) ac_try_echo=$ac_try;;
11338esac
11339eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11340  (eval "$ac_compile") 2>conftest.er1
11341  ac_status=$?
11342  grep -v '^ *+' conftest.er1 >conftest.err
11343  rm -f conftest.er1
11344  cat conftest.err >&5
11345  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11346  (exit $ac_status); } && {
11347	 test -z "$ac_c_werror_flag" ||
11348	 test ! -s conftest.err
11349       } && test -s conftest.$ac_objext; then
11350  ac_header_compiler=yes
11351else
11352  echo "$as_me: failed program was:" >&5
11353sed 's/^/| /' conftest.$ac_ext >&5
11354
11355	ac_header_compiler=no
11356fi
11357
11358rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11359{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11360echo "${ECHO_T}$ac_header_compiler" >&6; }
11361
11362# Is the header present?
11363{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11364echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11365cat >conftest.$ac_ext <<_ACEOF
11366/* confdefs.h.  */
11367_ACEOF
11368cat confdefs.h >>conftest.$ac_ext
11369cat >>conftest.$ac_ext <<_ACEOF
11370/* end confdefs.h.  */
11371#include <$ac_header>
11372_ACEOF
11373if { (ac_try="$ac_cpp conftest.$ac_ext"
11374case "(($ac_try" in
11375  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11376  *) ac_try_echo=$ac_try;;
11377esac
11378eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11379  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11380  ac_status=$?
11381  grep -v '^ *+' conftest.er1 >conftest.err
11382  rm -f conftest.er1
11383  cat conftest.err >&5
11384  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11385  (exit $ac_status); } >/dev/null && {
11386	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11387	 test ! -s conftest.err
11388       }; then
11389  ac_header_preproc=yes
11390else
11391  echo "$as_me: failed program was:" >&5
11392sed 's/^/| /' conftest.$ac_ext >&5
11393
11394  ac_header_preproc=no
11395fi
11396
11397rm -f conftest.err conftest.$ac_ext
11398{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11399echo "${ECHO_T}$ac_header_preproc" >&6; }
11400
11401# So?  What about this header?
11402case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11403  yes:no: )
11404    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11405echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11406    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11407echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11408    ac_header_preproc=yes
11409    ;;
11410  no:yes:* )
11411    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11412echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11413    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11414echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11415    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11416echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11417    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11418echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11419    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11420echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11421    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11422echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11423
11424    ;;
11425esac
11426{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11427echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11428if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11429  echo $ECHO_N "(cached) $ECHO_C" >&6
11430else
11431  eval "$as_ac_Header=\$ac_header_preproc"
11432fi
11433ac_res=`eval echo '${'$as_ac_Header'}'`
11434	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11435echo "${ECHO_T}$ac_res" >&6; }
11436
11437fi
11438if test `eval echo '${'$as_ac_Header'}'` = yes; then
11439  cat >>confdefs.h <<_ACEOF
11440#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11441_ACEOF
11442
11443fi
11444
11445done
11446
11447
11448{ echo "$as_me:$LINENO: checking for int8_t" >&5
11449echo $ECHO_N "checking for int8_t... $ECHO_C" >&6; }
11450if test "${ac_cv_type_int8_t+set}" = set; then
11451  echo $ECHO_N "(cached) $ECHO_C" >&6
11452else
11453  cat >conftest.$ac_ext <<_ACEOF
11454/* confdefs.h.  */
11455_ACEOF
11456cat confdefs.h >>conftest.$ac_ext
11457cat >>conftest.$ac_ext <<_ACEOF
11458/* end confdefs.h.  */
11459$ac_includes_default
11460typedef int8_t ac__type_new_;
11461int
11462main ()
11463{
11464if ((ac__type_new_ *) 0)
11465  return 0;
11466if (sizeof (ac__type_new_))
11467  return 0;
11468  ;
11469  return 0;
11470}
11471_ACEOF
11472rm -f conftest.$ac_objext
11473if { (ac_try="$ac_compile"
11474case "(($ac_try" in
11475  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11476  *) ac_try_echo=$ac_try;;
11477esac
11478eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11479  (eval "$ac_compile") 2>conftest.er1
11480  ac_status=$?
11481  grep -v '^ *+' conftest.er1 >conftest.err
11482  rm -f conftest.er1
11483  cat conftest.err >&5
11484  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11485  (exit $ac_status); } && {
11486	 test -z "$ac_c_werror_flag" ||
11487	 test ! -s conftest.err
11488       } && test -s conftest.$ac_objext; then
11489  ac_cv_type_int8_t=yes
11490else
11491  echo "$as_me: failed program was:" >&5
11492sed 's/^/| /' conftest.$ac_ext >&5
11493
11494	ac_cv_type_int8_t=no
11495fi
11496
11497rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11498fi
11499{ echo "$as_me:$LINENO: result: $ac_cv_type_int8_t" >&5
11500echo "${ECHO_T}$ac_cv_type_int8_t" >&6; }
11501if test $ac_cv_type_int8_t = yes; then
11502  :
11503else
11504
11505cat >>confdefs.h <<\_ACEOF
11506#define int8_t signed char
11507_ACEOF
11508
11509fi
11510
11511{ echo "$as_me:$LINENO: checking for u_int8_t" >&5
11512echo $ECHO_N "checking for u_int8_t... $ECHO_C" >&6; }
11513if test "${ac_cv_type_u_int8_t+set}" = set; then
11514  echo $ECHO_N "(cached) $ECHO_C" >&6
11515else
11516  cat >conftest.$ac_ext <<_ACEOF
11517/* confdefs.h.  */
11518_ACEOF
11519cat confdefs.h >>conftest.$ac_ext
11520cat >>conftest.$ac_ext <<_ACEOF
11521/* end confdefs.h.  */
11522$ac_includes_default
11523#ifdef HAVE_SYS_BITYPES_H
11524#include <sys/bitypes.h>
11525#endif
11526
11527typedef u_int8_t ac__type_new_;
11528int
11529main ()
11530{
11531if ((ac__type_new_ *) 0)
11532  return 0;
11533if (sizeof (ac__type_new_))
11534  return 0;
11535  ;
11536  return 0;
11537}
11538_ACEOF
11539rm -f conftest.$ac_objext
11540if { (ac_try="$ac_compile"
11541case "(($ac_try" in
11542  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11543  *) ac_try_echo=$ac_try;;
11544esac
11545eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11546  (eval "$ac_compile") 2>conftest.er1
11547  ac_status=$?
11548  grep -v '^ *+' conftest.er1 >conftest.err
11549  rm -f conftest.er1
11550  cat conftest.err >&5
11551  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11552  (exit $ac_status); } && {
11553	 test -z "$ac_c_werror_flag" ||
11554	 test ! -s conftest.err
11555       } && test -s conftest.$ac_objext; then
11556  ac_cv_type_u_int8_t=yes
11557else
11558  echo "$as_me: failed program was:" >&5
11559sed 's/^/| /' conftest.$ac_ext >&5
11560
11561	ac_cv_type_u_int8_t=no
11562fi
11563
11564rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11565fi
11566{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int8_t" >&5
11567echo "${ECHO_T}$ac_cv_type_u_int8_t" >&6; }
11568if test $ac_cv_type_u_int8_t = yes; then
11569  :
11570else
11571
11572cat >>confdefs.h <<\_ACEOF
11573#define u_int8_t unsigned char
11574_ACEOF
11575
11576fi
11577
11578{ echo "$as_me:$LINENO: checking for int16_t" >&5
11579echo $ECHO_N "checking for int16_t... $ECHO_C" >&6; }
11580if test "${ac_cv_type_int16_t+set}" = set; then
11581  echo $ECHO_N "(cached) $ECHO_C" >&6
11582else
11583  cat >conftest.$ac_ext <<_ACEOF
11584/* confdefs.h.  */
11585_ACEOF
11586cat confdefs.h >>conftest.$ac_ext
11587cat >>conftest.$ac_ext <<_ACEOF
11588/* end confdefs.h.  */
11589$ac_includes_default
11590typedef int16_t ac__type_new_;
11591int
11592main ()
11593{
11594if ((ac__type_new_ *) 0)
11595  return 0;
11596if (sizeof (ac__type_new_))
11597  return 0;
11598  ;
11599  return 0;
11600}
11601_ACEOF
11602rm -f conftest.$ac_objext
11603if { (ac_try="$ac_compile"
11604case "(($ac_try" in
11605  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11606  *) ac_try_echo=$ac_try;;
11607esac
11608eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11609  (eval "$ac_compile") 2>conftest.er1
11610  ac_status=$?
11611  grep -v '^ *+' conftest.er1 >conftest.err
11612  rm -f conftest.er1
11613  cat conftest.err >&5
11614  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11615  (exit $ac_status); } && {
11616	 test -z "$ac_c_werror_flag" ||
11617	 test ! -s conftest.err
11618       } && test -s conftest.$ac_objext; then
11619  ac_cv_type_int16_t=yes
11620else
11621  echo "$as_me: failed program was:" >&5
11622sed 's/^/| /' conftest.$ac_ext >&5
11623
11624	ac_cv_type_int16_t=no
11625fi
11626
11627rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11628fi
11629{ echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
11630echo "${ECHO_T}$ac_cv_type_int16_t" >&6; }
11631if test $ac_cv_type_int16_t = yes; then
11632  :
11633else
11634
11635cat >>confdefs.h <<\_ACEOF
11636#define int16_t short
11637_ACEOF
11638
11639fi
11640
11641{ echo "$as_me:$LINENO: checking for u_int16_t" >&5
11642echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6; }
11643if test "${ac_cv_type_u_int16_t+set}" = set; then
11644  echo $ECHO_N "(cached) $ECHO_C" >&6
11645else
11646  cat >conftest.$ac_ext <<_ACEOF
11647/* confdefs.h.  */
11648_ACEOF
11649cat confdefs.h >>conftest.$ac_ext
11650cat >>conftest.$ac_ext <<_ACEOF
11651/* end confdefs.h.  */
11652$ac_includes_default
11653#ifdef HAVE_SYS_BITYPES_H
11654#include <sys/bitypes.h>
11655#endif
11656
11657typedef u_int16_t ac__type_new_;
11658int
11659main ()
11660{
11661if ((ac__type_new_ *) 0)
11662  return 0;
11663if (sizeof (ac__type_new_))
11664  return 0;
11665  ;
11666  return 0;
11667}
11668_ACEOF
11669rm -f conftest.$ac_objext
11670if { (ac_try="$ac_compile"
11671case "(($ac_try" in
11672  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11673  *) ac_try_echo=$ac_try;;
11674esac
11675eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11676  (eval "$ac_compile") 2>conftest.er1
11677  ac_status=$?
11678  grep -v '^ *+' conftest.er1 >conftest.err
11679  rm -f conftest.er1
11680  cat conftest.err >&5
11681  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11682  (exit $ac_status); } && {
11683	 test -z "$ac_c_werror_flag" ||
11684	 test ! -s conftest.err
11685       } && test -s conftest.$ac_objext; then
11686  ac_cv_type_u_int16_t=yes
11687else
11688  echo "$as_me: failed program was:" >&5
11689sed 's/^/| /' conftest.$ac_ext >&5
11690
11691	ac_cv_type_u_int16_t=no
11692fi
11693
11694rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11695fi
11696{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int16_t" >&5
11697echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6; }
11698if test $ac_cv_type_u_int16_t = yes; then
11699  :
11700else
11701
11702cat >>confdefs.h <<\_ACEOF
11703#define u_int16_t unsigned short
11704_ACEOF
11705
11706fi
11707
11708{ echo "$as_me:$LINENO: checking for int32_t" >&5
11709echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
11710if test "${ac_cv_type_int32_t+set}" = set; then
11711  echo $ECHO_N "(cached) $ECHO_C" >&6
11712else
11713  cat >conftest.$ac_ext <<_ACEOF
11714/* confdefs.h.  */
11715_ACEOF
11716cat confdefs.h >>conftest.$ac_ext
11717cat >>conftest.$ac_ext <<_ACEOF
11718/* end confdefs.h.  */
11719$ac_includes_default
11720typedef int32_t ac__type_new_;
11721int
11722main ()
11723{
11724if ((ac__type_new_ *) 0)
11725  return 0;
11726if (sizeof (ac__type_new_))
11727  return 0;
11728  ;
11729  return 0;
11730}
11731_ACEOF
11732rm -f conftest.$ac_objext
11733if { (ac_try="$ac_compile"
11734case "(($ac_try" in
11735  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11736  *) ac_try_echo=$ac_try;;
11737esac
11738eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11739  (eval "$ac_compile") 2>conftest.er1
11740  ac_status=$?
11741  grep -v '^ *+' conftest.er1 >conftest.err
11742  rm -f conftest.er1
11743  cat conftest.err >&5
11744  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11745  (exit $ac_status); } && {
11746	 test -z "$ac_c_werror_flag" ||
11747	 test ! -s conftest.err
11748       } && test -s conftest.$ac_objext; then
11749  ac_cv_type_int32_t=yes
11750else
11751  echo "$as_me: failed program was:" >&5
11752sed 's/^/| /' conftest.$ac_ext >&5
11753
11754	ac_cv_type_int32_t=no
11755fi
11756
11757rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11758fi
11759{ echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
11760echo "${ECHO_T}$ac_cv_type_int32_t" >&6; }
11761if test $ac_cv_type_int32_t = yes; then
11762  :
11763else
11764
11765cat >>confdefs.h <<\_ACEOF
11766#define int32_t int
11767_ACEOF
11768
11769fi
11770
11771{ echo "$as_me:$LINENO: checking for u_int32_t" >&5
11772echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6; }
11773if test "${ac_cv_type_u_int32_t+set}" = set; then
11774  echo $ECHO_N "(cached) $ECHO_C" >&6
11775else
11776  cat >conftest.$ac_ext <<_ACEOF
11777/* confdefs.h.  */
11778_ACEOF
11779cat confdefs.h >>conftest.$ac_ext
11780cat >>conftest.$ac_ext <<_ACEOF
11781/* end confdefs.h.  */
11782$ac_includes_default
11783#ifdef HAVE_SYS_BITYPES_H
11784#include <sys/bitypes.h>
11785#endif
11786
11787typedef u_int32_t ac__type_new_;
11788int
11789main ()
11790{
11791if ((ac__type_new_ *) 0)
11792  return 0;
11793if (sizeof (ac__type_new_))
11794  return 0;
11795  ;
11796  return 0;
11797}
11798_ACEOF
11799rm -f conftest.$ac_objext
11800if { (ac_try="$ac_compile"
11801case "(($ac_try" in
11802  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11803  *) ac_try_echo=$ac_try;;
11804esac
11805eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11806  (eval "$ac_compile") 2>conftest.er1
11807  ac_status=$?
11808  grep -v '^ *+' conftest.er1 >conftest.err
11809  rm -f conftest.er1
11810  cat conftest.err >&5
11811  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11812  (exit $ac_status); } && {
11813	 test -z "$ac_c_werror_flag" ||
11814	 test ! -s conftest.err
11815       } && test -s conftest.$ac_objext; then
11816  ac_cv_type_u_int32_t=yes
11817else
11818  echo "$as_me: failed program was:" >&5
11819sed 's/^/| /' conftest.$ac_ext >&5
11820
11821	ac_cv_type_u_int32_t=no
11822fi
11823
11824rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11825fi
11826{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
11827echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6; }
11828if test $ac_cv_type_u_int32_t = yes; then
11829  :
11830else
11831
11832cat >>confdefs.h <<\_ACEOF
11833#define u_int32_t unsigned int
11834_ACEOF
11835
11836fi
11837
11838{ echo "$as_me:$LINENO: checking for int64_t" >&5
11839echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
11840if test "${ac_cv_type_int64_t+set}" = set; then
11841  echo $ECHO_N "(cached) $ECHO_C" >&6
11842else
11843  cat >conftest.$ac_ext <<_ACEOF
11844/* confdefs.h.  */
11845_ACEOF
11846cat confdefs.h >>conftest.$ac_ext
11847cat >>conftest.$ac_ext <<_ACEOF
11848/* end confdefs.h.  */
11849$ac_includes_default
11850typedef int64_t ac__type_new_;
11851int
11852main ()
11853{
11854if ((ac__type_new_ *) 0)
11855  return 0;
11856if (sizeof (ac__type_new_))
11857  return 0;
11858  ;
11859  return 0;
11860}
11861_ACEOF
11862rm -f conftest.$ac_objext
11863if { (ac_try="$ac_compile"
11864case "(($ac_try" in
11865  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11866  *) ac_try_echo=$ac_try;;
11867esac
11868eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11869  (eval "$ac_compile") 2>conftest.er1
11870  ac_status=$?
11871  grep -v '^ *+' conftest.er1 >conftest.err
11872  rm -f conftest.er1
11873  cat conftest.err >&5
11874  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11875  (exit $ac_status); } && {
11876	 test -z "$ac_c_werror_flag" ||
11877	 test ! -s conftest.err
11878       } && test -s conftest.$ac_objext; then
11879  ac_cv_type_int64_t=yes
11880else
11881  echo "$as_me: failed program was:" >&5
11882sed 's/^/| /' conftest.$ac_ext >&5
11883
11884	ac_cv_type_int64_t=no
11885fi
11886
11887rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11888fi
11889{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
11890echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
11891if test $ac_cv_type_int64_t = yes; then
11892  :
11893else
11894
11895cat >>confdefs.h <<\_ACEOF
11896#define int64_t long long
11897_ACEOF
11898
11899fi
11900
11901{ echo "$as_me:$LINENO: checking for u_int64_t" >&5
11902echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
11903if test "${ac_cv_type_u_int64_t+set}" = set; then
11904  echo $ECHO_N "(cached) $ECHO_C" >&6
11905else
11906  cat >conftest.$ac_ext <<_ACEOF
11907/* confdefs.h.  */
11908_ACEOF
11909cat confdefs.h >>conftest.$ac_ext
11910cat >>conftest.$ac_ext <<_ACEOF
11911/* end confdefs.h.  */
11912$ac_includes_default
11913#ifdef HAVE_SYS_BITYPES_H
11914#include <sys/bitypes.h>
11915#endif
11916
11917typedef u_int64_t ac__type_new_;
11918int
11919main ()
11920{
11921if ((ac__type_new_ *) 0)
11922  return 0;
11923if (sizeof (ac__type_new_))
11924  return 0;
11925  ;
11926  return 0;
11927}
11928_ACEOF
11929rm -f conftest.$ac_objext
11930if { (ac_try="$ac_compile"
11931case "(($ac_try" in
11932  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11933  *) ac_try_echo=$ac_try;;
11934esac
11935eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11936  (eval "$ac_compile") 2>conftest.er1
11937  ac_status=$?
11938  grep -v '^ *+' conftest.er1 >conftest.err
11939  rm -f conftest.er1
11940  cat conftest.err >&5
11941  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11942  (exit $ac_status); } && {
11943	 test -z "$ac_c_werror_flag" ||
11944	 test ! -s conftest.err
11945       } && test -s conftest.$ac_objext; then
11946  ac_cv_type_u_int64_t=yes
11947else
11948  echo "$as_me: failed program was:" >&5
11949sed 's/^/| /' conftest.$ac_ext >&5
11950
11951	ac_cv_type_u_int64_t=no
11952fi
11953
11954rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11955fi
11956{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
11957echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
11958if test $ac_cv_type_u_int64_t = yes; then
11959  :
11960else
11961
11962cat >>confdefs.h <<\_ACEOF
11963#define u_int64_t unsigned long long
11964_ACEOF
11965
11966fi
11967
11968
11969#
11970# We can't just check for <inttypes.h> - some systems have one that
11971# doesn't define all the PRI[doxu]64 macros.
11972#
11973
11974for ac_header in inttypes.h
11975do
11976as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11977if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11978  { echo "$as_me:$LINENO: checking for $ac_header" >&5
11979echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11980if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11981  echo $ECHO_N "(cached) $ECHO_C" >&6
11982fi
11983ac_res=`eval echo '${'$as_ac_Header'}'`
11984	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11985echo "${ECHO_T}$ac_res" >&6; }
11986else
11987  # Is the header compilable?
11988{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11989echo $ECHO_N "checking $ac_header usability... $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$ac_includes_default
11997#include <$ac_header>
11998_ACEOF
11999rm -f conftest.$ac_objext
12000if { (ac_try="$ac_compile"
12001case "(($ac_try" in
12002  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12003  *) ac_try_echo=$ac_try;;
12004esac
12005eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12006  (eval "$ac_compile") 2>conftest.er1
12007  ac_status=$?
12008  grep -v '^ *+' conftest.er1 >conftest.err
12009  rm -f conftest.er1
12010  cat conftest.err >&5
12011  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12012  (exit $ac_status); } && {
12013	 test -z "$ac_c_werror_flag" ||
12014	 test ! -s conftest.err
12015       } && test -s conftest.$ac_objext; then
12016  ac_header_compiler=yes
12017else
12018  echo "$as_me: failed program was:" >&5
12019sed 's/^/| /' conftest.$ac_ext >&5
12020
12021	ac_header_compiler=no
12022fi
12023
12024rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12025{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12026echo "${ECHO_T}$ac_header_compiler" >&6; }
12027
12028# Is the header present?
12029{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
12030echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12031cat >conftest.$ac_ext <<_ACEOF
12032/* confdefs.h.  */
12033_ACEOF
12034cat confdefs.h >>conftest.$ac_ext
12035cat >>conftest.$ac_ext <<_ACEOF
12036/* end confdefs.h.  */
12037#include <$ac_header>
12038_ACEOF
12039if { (ac_try="$ac_cpp conftest.$ac_ext"
12040case "(($ac_try" in
12041  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12042  *) ac_try_echo=$ac_try;;
12043esac
12044eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12045  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12046  ac_status=$?
12047  grep -v '^ *+' conftest.er1 >conftest.err
12048  rm -f conftest.er1
12049  cat conftest.err >&5
12050  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12051  (exit $ac_status); } >/dev/null && {
12052	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12053	 test ! -s conftest.err
12054       }; then
12055  ac_header_preproc=yes
12056else
12057  echo "$as_me: failed program was:" >&5
12058sed 's/^/| /' conftest.$ac_ext >&5
12059
12060  ac_header_preproc=no
12061fi
12062
12063rm -f conftest.err conftest.$ac_ext
12064{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12065echo "${ECHO_T}$ac_header_preproc" >&6; }
12066
12067# So?  What about this header?
12068case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12069  yes:no: )
12070    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12071echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12072    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12073echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12074    ac_header_preproc=yes
12075    ;;
12076  no:yes:* )
12077    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12078echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12079    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12080echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12081    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12082echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12083    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12084echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12085    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12086echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12087    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12088echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12089
12090    ;;
12091esac
12092{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12093echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12094if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12095  echo $ECHO_N "(cached) $ECHO_C" >&6
12096else
12097  eval "$as_ac_Header=\$ac_header_preproc"
12098fi
12099ac_res=`eval echo '${'$as_ac_Header'}'`
12100	       { echo "$as_me:$LINENO: result: $ac_res" >&5
12101echo "${ECHO_T}$ac_res" >&6; }
12102
12103fi
12104if test `eval echo '${'$as_ac_Header'}'` = yes; then
12105  cat >>confdefs.h <<_ACEOF
12106#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12107_ACEOF
12108
12109    #
12110    # OK, we have inttypes.h, but does it define those macros?
12111    #
12112    { echo "$as_me:$LINENO: checking whether inttypes.h defines the PRI[doxu]64 macros" >&5
12113echo $ECHO_N "checking whether inttypes.h defines the PRI[doxu]64 macros... $ECHO_C" >&6; }
12114    cat >conftest.$ac_ext <<_ACEOF
12115
12116	/* confdefs.h.  */
12117_ACEOF
12118cat confdefs.h >>conftest.$ac_ext
12119cat >>conftest.$ac_ext <<_ACEOF
12120/* end confdefs.h.  */
12121
12122	    #include <inttypes.h>
12123	    #include <stdio.h>
12124	    #include <sys/types.h>
12125	    #ifdef HAVE_SYS_BITYPES_H
12126	    #include <sys/bitypes.h>
12127	    #endif
12128
12129	    main()
12130	    {
12131	      printf("%" PRId64 "\n", (u_int64_t)1);
12132	      printf("%" PRIo64 "\n", (u_int64_t)1);
12133	      printf("%" PRIx64 "\n", (u_int64_t)1);
12134	      printf("%" PRIu64 "\n", (u_int64_t)1);
12135	    }
12136
12137
12138_ACEOF
12139rm -f conftest.$ac_objext
12140if { (ac_try="$ac_compile"
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_compile") 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); } && {
12153	 test -z "$ac_c_werror_flag" ||
12154	 test ! -s conftest.err
12155       } && test -s conftest.$ac_objext; then
12156
12157	{ echo "$as_me:$LINENO: result: yes" >&5
12158echo "${ECHO_T}yes" >&6; }
12159	ac_lbl_inttypes_h_defines_formats=yes
12160
12161else
12162  echo "$as_me: failed program was:" >&5
12163sed 's/^/| /' conftest.$ac_ext >&5
12164
12165
12166	{ echo "$as_me:$LINENO: result: no" >&5
12167echo "${ECHO_T}no" >&6; }
12168	ac_lbl_inttypes_h_defines_formats=no
12169
12170fi
12171
12172rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12173
12174else
12175
12176    #
12177    # We don't have inttypes.h, so it obviously can't define those
12178    # macros.
12179    #
12180    ac_lbl_inttypes_h_defines_formats=no
12181
12182fi
12183
12184done
12185
12186if test "$ac_lbl_inttypes_h_defines_formats" = no; then
12187
12188    { echo "$as_me:$LINENO: checking whether %lx can be used to format 64-bit integers" >&5
12189echo $ECHO_N "checking whether %lx can be used to format 64-bit integers... $ECHO_C" >&6; }
12190    if test "$cross_compiling" = yes; then
12191  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12192See \`config.log' for more details." >&5
12193echo "$as_me: error: cannot run test program while cross compiling
12194See \`config.log' for more details." >&2;}
12195   { (exit 1); exit 1; }; }
12196else
12197  cat >conftest.$ac_ext <<_ACEOF
12198
12199	/* confdefs.h.  */
12200_ACEOF
12201cat confdefs.h >>conftest.$ac_ext
12202cat >>conftest.$ac_ext <<_ACEOF
12203/* end confdefs.h.  */
12204
12205#	    ifdef HAVE_INTTYPES_H
12206	    #include <inttypes.h>
12207#	    endif
12208#	    ifdef HAVE_SYS_BITYPES_H
12209            #include <sys/bitypes.h>
12210#	    endif
12211	    #include <stdio.h>
12212	    #include <sys/types.h>
12213
12214	    main()
12215	    {
12216	      u_int64_t t = 1;
12217	      char strbuf[16+1];
12218	      sprintf(strbuf, "%016lx", t << 32);
12219	      if (strcmp(strbuf, "0000000100000000") == 0)
12220		exit(0);
12221	      else
12222		exit(1);
12223	    }
12224
12225
12226_ACEOF
12227rm -f conftest$ac_exeext
12228if { (ac_try="$ac_link"
12229case "(($ac_try" in
12230  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12231  *) ac_try_echo=$ac_try;;
12232esac
12233eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12234  (eval "$ac_link") 2>&5
12235  ac_status=$?
12236  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12237  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12238  { (case "(($ac_try" in
12239  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12240  *) ac_try_echo=$ac_try;;
12241esac
12242eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12243  (eval "$ac_try") 2>&5
12244  ac_status=$?
12245  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12246  (exit $ac_status); }; }; then
12247
12248	cat >>confdefs.h <<\_ACEOF
12249#define PRId64 "ld"
12250_ACEOF
12251
12252	cat >>confdefs.h <<\_ACEOF
12253#define PRIo64 "lo"
12254_ACEOF
12255
12256	cat >>confdefs.h <<\_ACEOF
12257#define PRIx64 "lx"
12258_ACEOF
12259
12260	cat >>confdefs.h <<\_ACEOF
12261#define PRIu64 "lu"
12262_ACEOF
12263
12264	{ echo "$as_me:$LINENO: result: yes" >&5
12265echo "${ECHO_T}yes" >&6; }
12266
12267else
12268  echo "$as_me: program exited with status $ac_status" >&5
12269echo "$as_me: failed program was:" >&5
12270sed 's/^/| /' conftest.$ac_ext >&5
12271
12272( exit $ac_status )
12273
12274	{ echo "$as_me:$LINENO: result: no" >&5
12275echo "${ECHO_T}no" >&6; }
12276
12277
12278    { echo "$as_me:$LINENO: checking whether %llx can be used to format 64-bit integers" >&5
12279echo $ECHO_N "checking whether %llx can be used to format 64-bit integers... $ECHO_C" >&6; }
12280    if test "$cross_compiling" = yes; then
12281  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12282See \`config.log' for more details." >&5
12283echo "$as_me: error: cannot run test program while cross compiling
12284See \`config.log' for more details." >&2;}
12285   { (exit 1); exit 1; }; }
12286else
12287  cat >conftest.$ac_ext <<_ACEOF
12288
12289	/* confdefs.h.  */
12290_ACEOF
12291cat confdefs.h >>conftest.$ac_ext
12292cat >>conftest.$ac_ext <<_ACEOF
12293/* end confdefs.h.  */
12294
12295#	    ifdef HAVE_INTTYPES_H
12296	    #include <inttypes.h>
12297#	    endif
12298#	    ifdef HAVE_SYS_BITYPES_H
12299            #include <sys/bitypes.h>
12300#	    endif
12301	    #include <stdio.h>
12302	    #include <sys/types.h>
12303
12304	    main()
12305	    {
12306	      u_int64_t t = 1;
12307	      char strbuf[16+1];
12308	      sprintf(strbuf, "%016llx", t << 32);
12309	      if (strcmp(strbuf, "0000000100000000") == 0)
12310		exit(0);
12311	      else
12312		exit(1);
12313	    }
12314
12315
12316_ACEOF
12317rm -f conftest$ac_exeext
12318if { (ac_try="$ac_link"
12319case "(($ac_try" in
12320  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12321  *) ac_try_echo=$ac_try;;
12322esac
12323eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12324  (eval "$ac_link") 2>&5
12325  ac_status=$?
12326  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12327  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12328  { (case "(($ac_try" in
12329  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12330  *) ac_try_echo=$ac_try;;
12331esac
12332eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12333  (eval "$ac_try") 2>&5
12334  ac_status=$?
12335  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12336  (exit $ac_status); }; }; then
12337
12338	cat >>confdefs.h <<\_ACEOF
12339#define PRId64 "lld"
12340_ACEOF
12341
12342	cat >>confdefs.h <<\_ACEOF
12343#define PRIo64 "llo"
12344_ACEOF
12345
12346	cat >>confdefs.h <<\_ACEOF
12347#define PRIx64 "llx"
12348_ACEOF
12349
12350	cat >>confdefs.h <<\_ACEOF
12351#define PRIu64 "llu"
12352_ACEOF
12353
12354	{ echo "$as_me:$LINENO: result: yes" >&5
12355echo "${ECHO_T}yes" >&6; }
12356
12357else
12358  echo "$as_me: program exited with status $ac_status" >&5
12359echo "$as_me: failed program was:" >&5
12360sed 's/^/| /' conftest.$ac_ext >&5
12361
12362( exit $ac_status )
12363
12364	{ echo "$as_me:$LINENO: result: no" >&5
12365echo "${ECHO_T}no" >&6; }
12366
12367
12368    { echo "$as_me:$LINENO: checking whether %Lx can be used to format 64-bit integers" >&5
12369echo $ECHO_N "checking whether %Lx can be used to format 64-bit integers... $ECHO_C" >&6; }
12370    if test "$cross_compiling" = yes; then
12371  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12372See \`config.log' for more details." >&5
12373echo "$as_me: error: cannot run test program while cross compiling
12374See \`config.log' for more details." >&2;}
12375   { (exit 1); exit 1; }; }
12376else
12377  cat >conftest.$ac_ext <<_ACEOF
12378
12379	/* confdefs.h.  */
12380_ACEOF
12381cat confdefs.h >>conftest.$ac_ext
12382cat >>conftest.$ac_ext <<_ACEOF
12383/* end confdefs.h.  */
12384
12385#	    ifdef HAVE_INTTYPES_H
12386	    #include <inttypes.h>
12387#	    endif
12388#	    ifdef HAVE_SYS_BITYPES_H
12389            #include <sys/bitypes.h>
12390#	    endif
12391	    #include <stdio.h>
12392	    #include <sys/types.h>
12393
12394	    main()
12395	    {
12396	      u_int64_t t = 1;
12397	      char strbuf[16+1];
12398	      sprintf(strbuf, "%016Lx", t << 32);
12399	      if (strcmp(strbuf, "0000000100000000") == 0)
12400		exit(0);
12401	      else
12402		exit(1);
12403	    }
12404
12405
12406_ACEOF
12407rm -f conftest$ac_exeext
12408if { (ac_try="$ac_link"
12409case "(($ac_try" in
12410  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12411  *) ac_try_echo=$ac_try;;
12412esac
12413eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12414  (eval "$ac_link") 2>&5
12415  ac_status=$?
12416  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12417  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12418  { (case "(($ac_try" in
12419  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12420  *) ac_try_echo=$ac_try;;
12421esac
12422eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12423  (eval "$ac_try") 2>&5
12424  ac_status=$?
12425  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12426  (exit $ac_status); }; }; then
12427
12428	cat >>confdefs.h <<\_ACEOF
12429#define PRId64 "Ld"
12430_ACEOF
12431
12432	cat >>confdefs.h <<\_ACEOF
12433#define PRIo64 "Lo"
12434_ACEOF
12435
12436	cat >>confdefs.h <<\_ACEOF
12437#define PRIx64 "Lx"
12438_ACEOF
12439
12440	cat >>confdefs.h <<\_ACEOF
12441#define PRIu64 "Lu"
12442_ACEOF
12443
12444	{ echo "$as_me:$LINENO: result: yes" >&5
12445echo "${ECHO_T}yes" >&6; }
12446
12447else
12448  echo "$as_me: program exited with status $ac_status" >&5
12449echo "$as_me: failed program was:" >&5
12450sed 's/^/| /' conftest.$ac_ext >&5
12451
12452( exit $ac_status )
12453
12454	{ echo "$as_me:$LINENO: result: no" >&5
12455echo "${ECHO_T}no" >&6; }
12456
12457
12458    { echo "$as_me:$LINENO: checking whether %qx can be used to format 64-bit integers" >&5
12459echo $ECHO_N "checking whether %qx can be used to format 64-bit integers... $ECHO_C" >&6; }
12460    if test "$cross_compiling" = yes; then
12461  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12462See \`config.log' for more details." >&5
12463echo "$as_me: error: cannot run test program while cross compiling
12464See \`config.log' for more details." >&2;}
12465   { (exit 1); exit 1; }; }
12466else
12467  cat >conftest.$ac_ext <<_ACEOF
12468
12469	/* confdefs.h.  */
12470_ACEOF
12471cat confdefs.h >>conftest.$ac_ext
12472cat >>conftest.$ac_ext <<_ACEOF
12473/* end confdefs.h.  */
12474
12475#	    ifdef HAVE_INTTYPES_H
12476	    #include <inttypes.h>
12477#	    endif
12478#	    ifdef HAVE_SYS_BITYPES_H
12479            #include <sys/bitypes.h>
12480#	    endif
12481	    #include <stdio.h>
12482	    #include <sys/types.h>
12483
12484	    main()
12485	    {
12486	      u_int64_t t = 1;
12487	      char strbuf[16+1];
12488	      sprintf(strbuf, "%016qx", t << 32);
12489	      if (strcmp(strbuf, "0000000100000000") == 0)
12490		exit(0);
12491	      else
12492		exit(1);
12493	    }
12494
12495
12496_ACEOF
12497rm -f conftest$ac_exeext
12498if { (ac_try="$ac_link"
12499case "(($ac_try" in
12500  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12501  *) ac_try_echo=$ac_try;;
12502esac
12503eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12504  (eval "$ac_link") 2>&5
12505  ac_status=$?
12506  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12507  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12508  { (case "(($ac_try" in
12509  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12510  *) ac_try_echo=$ac_try;;
12511esac
12512eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12513  (eval "$ac_try") 2>&5
12514  ac_status=$?
12515  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12516  (exit $ac_status); }; }; then
12517
12518	cat >>confdefs.h <<\_ACEOF
12519#define PRId64 "qd"
12520_ACEOF
12521
12522	cat >>confdefs.h <<\_ACEOF
12523#define PRIo64 "qo"
12524_ACEOF
12525
12526	cat >>confdefs.h <<\_ACEOF
12527#define PRIx64 "qx"
12528_ACEOF
12529
12530	cat >>confdefs.h <<\_ACEOF
12531#define PRIu64 "qu"
12532_ACEOF
12533
12534	{ echo "$as_me:$LINENO: result: yes" >&5
12535echo "${ECHO_T}yes" >&6; }
12536
12537else
12538  echo "$as_me: program exited with status $ac_status" >&5
12539echo "$as_me: failed program was:" >&5
12540sed 's/^/| /' conftest.$ac_ext >&5
12541
12542( exit $ac_status )
12543
12544	{ echo "$as_me:$LINENO: result: no" >&5
12545echo "${ECHO_T}no" >&6; }
12546
12547	          { { echo "$as_me:$LINENO: error: neither %llx nor %Lx nor %qx worked on a 64-bit integer" >&5
12548echo "$as_me: error: neither %llx nor %Lx nor %qx worked on a 64-bit integer" >&2;}
12549   { (exit 1); exit 1; }; }
12550
12551
12552fi
12553rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12554fi
12555
12556
12557
12558
12559
12560fi
12561rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12562fi
12563
12564
12565
12566
12567
12568fi
12569rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12570fi
12571
12572
12573
12574
12575
12576fi
12577rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12578fi
12579
12580
12581
12582fi
12583
12584rm -f os-proto.h
12585    if test "${LBL_CFLAGS+set}" = set; then
12586	    V_CCOPT="$V_CCOPT ${LBL_CFLAGS}"
12587    fi
12588    if test -f .devel ; then
12589	    if test "$GCC" = yes ; then
12590		    if test "${LBL_CFLAGS+set}" != set; then
12591			    if test "$ac_cv_prog_cc_g" = yes ; then
12592				    V_CCOPT="-g $V_CCOPT"
12593			    fi
12594			    V_CCOPT="$V_CCOPT -Wall"
12595			    if test $ac_cv_lbl_gcc_vers -gt 1 ; then
12596				    V_CCOPT="$V_CCOPT -Wmissing-prototypes -Wstrict-prototypes -Wwrite-strings -Wpointer-arith -W"
12597			    fi
12598		    fi
12599	    else
12600		    case "$host_os" in
12601
12602		    irix6*)
12603			    V_CCOPT="$V_CCOPT -n32"
12604			    ;;
12605
12606		    *)
12607			    ;;
12608		    esac
12609	    fi
12610	    os=`echo $host_os | sed -e 's/\([0-9][0-9]*\)[^0-9].*$/\1/'`
12611	    name="lbl/os-$os.h"
12612	    if test -f $name ; then
12613		    ln -s $name os-proto.h
12614		    cat >>confdefs.h <<\_ACEOF
12615#define HAVE_OS_PROTO_H 1
12616_ACEOF
12617
12618	    else
12619		    { echo "$as_me:$LINENO: WARNING: can't find $name" >&5
12620echo "$as_me: WARNING: can't find $name" >&2;}
12621	    fi
12622    fi
12623
12624{ echo "$as_me:$LINENO: checking if sockaddr struct has sa_len member" >&5
12625echo $ECHO_N "checking if sockaddr struct has sa_len member... $ECHO_C" >&6; }
12626    if test "${ac_cv_lbl_sockaddr_has_sa_len+set}" = set; then
12627  echo $ECHO_N "(cached) $ECHO_C" >&6
12628else
12629  cat >conftest.$ac_ext <<_ACEOF
12630/* confdefs.h.  */
12631_ACEOF
12632cat confdefs.h >>conftest.$ac_ext
12633cat >>conftest.$ac_ext <<_ACEOF
12634/* end confdefs.h.  */
12635
12636#	include <sys/types.h>
12637#	include <sys/socket.h>
12638int
12639main ()
12640{
12641u_int i = sizeof(((struct sockaddr *)0)->sa_len)
12642  ;
12643  return 0;
12644}
12645_ACEOF
12646rm -f conftest.$ac_objext
12647if { (ac_try="$ac_compile"
12648case "(($ac_try" in
12649  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12650  *) ac_try_echo=$ac_try;;
12651esac
12652eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12653  (eval "$ac_compile") 2>conftest.er1
12654  ac_status=$?
12655  grep -v '^ *+' conftest.er1 >conftest.err
12656  rm -f conftest.er1
12657  cat conftest.err >&5
12658  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12659  (exit $ac_status); } && {
12660	 test -z "$ac_c_werror_flag" ||
12661	 test ! -s conftest.err
12662       } && test -s conftest.$ac_objext; then
12663  ac_cv_lbl_sockaddr_has_sa_len=yes
12664else
12665  echo "$as_me: failed program was:" >&5
12666sed 's/^/| /' conftest.$ac_ext >&5
12667
12668	ac_cv_lbl_sockaddr_has_sa_len=no
12669fi
12670
12671rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12672fi
12673
12674    { echo "$as_me:$LINENO: result: $ac_cv_lbl_sockaddr_has_sa_len" >&5
12675echo "${ECHO_T}$ac_cv_lbl_sockaddr_has_sa_len" >&6; }
12676    if test $ac_cv_lbl_sockaddr_has_sa_len = yes ; then
12677	    cat >>confdefs.h <<\_ACEOF
12678#define HAVE_SOCKADDR_SA_LEN 1
12679_ACEOF
12680
12681    fi
12682
12683{ echo "$as_me:$LINENO: checking if unaligned accesses fail" >&5
12684echo $ECHO_N "checking if unaligned accesses fail... $ECHO_C" >&6; }
12685    if test "${ac_cv_lbl_unaligned_fail+set}" = set; then
12686  echo $ECHO_N "(cached) $ECHO_C" >&6
12687else
12688  case "$host_cpu" in
12689
12690	#
12691	# These are CPU types where:
12692	#
12693	#	the CPU faults on an unaligned access, but at least some
12694	#	OSes that support that CPU catch the fault and simulate
12695	#	the unaligned access (e.g., Alpha/{Digital,Tru64} UNIX) -
12696	#	the simulation is slow, so we don't want to use it;
12697	#
12698	#	the CPU, I infer (from the old
12699	#
12700	# XXX: should also check that they don't do weird things (like on arm)
12701	#
12702	#	comment) doesn't fault on unaligned accesses, but doesn't
12703	#	do a normal unaligned fetch, either (e.g., presumably, ARM);
12704	#
12705	#	for whatever reason, the test program doesn't work
12706	#	(this has been claimed to be the case for several of those
12707	#	CPUs - I don't know what the problem is; the problem
12708	#	was reported as "the test program dumps core" for SuperH,
12709	#	but that's what the test program is *supposed* to do -
12710	#	it dumps core before it writes anything, so the test
12711	#	for an empty output file should find an empty output
12712	#	file and conclude that unaligned accesses don't work).
12713	#
12714	# This run-time test won't work if you're cross-compiling, so
12715	# in order to support cross-compiling for a particular CPU,
12716	# we have to wire in the list of CPU types anyway, as far as
12717	# I know, so perhaps we should just have a set of CPUs on
12718	# which we know it doesn't work, a set of CPUs on which we
12719	# know it does work, and have the script just fail on other
12720	# cpu types and update it when such a failure occurs.
12721	#
12722	alpha*|arm*|hp*|mips*|sh*|sparc*|ia64|nv1)
12723		ac_cv_lbl_unaligned_fail=yes
12724		;;
12725
12726	*)
12727		cat >conftest.c <<EOF
12728#		include <sys/types.h>
12729#		include <sys/wait.h>
12730#		include <stdio.h>
12731		unsigned char a[5] = { 1, 2, 3, 4, 5 };
12732		main() {
12733		unsigned int i;
12734		pid_t pid;
12735		int status;
12736		/* avoid "core dumped" message */
12737		pid = fork();
12738		if (pid <  0)
12739			exit(2);
12740		if (pid > 0) {
12741			/* parent */
12742			pid = waitpid(pid, &status, 0);
12743			if (pid < 0)
12744				exit(3);
12745			exit(!WIFEXITED(status));
12746		}
12747		/* child */
12748		i = *(unsigned int *)&a[1];
12749		printf("%d\n", i);
12750		exit(0);
12751		}
12752EOF
12753		${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS \
12754		    conftest.c $LIBS >/dev/null 2>&1
12755		if test ! -x conftest ; then
12756						ac_cv_lbl_unaligned_fail=yes
12757		else
12758			./conftest >conftest.out
12759			if test ! -s conftest.out ; then
12760				ac_cv_lbl_unaligned_fail=yes
12761			else
12762				ac_cv_lbl_unaligned_fail=no
12763			fi
12764		fi
12765		rm -f conftest* core core.conftest
12766		;;
12767	esac
12768fi
12769
12770    { echo "$as_me:$LINENO: result: $ac_cv_lbl_unaligned_fail" >&5
12771echo "${ECHO_T}$ac_cv_lbl_unaligned_fail" >&6; }
12772    if test $ac_cv_lbl_unaligned_fail = yes ; then
12773	    cat >>confdefs.h <<\_ACEOF
12774#define LBL_ALIGN 1
12775_ACEOF
12776
12777    fi
12778
12779
12780	{ echo "$as_me:$LINENO: checking for h_errno" >&5
12781echo $ECHO_N "checking for h_errno... $ECHO_C" >&6; }
12782	if test "${ac_cv_var_h_errno+set}" = set; then
12783  echo $ECHO_N "(cached) $ECHO_C" >&6
12784else
12785  cat >conftest.$ac_ext <<_ACEOF
12786/* confdefs.h.  */
12787_ACEOF
12788cat confdefs.h >>conftest.$ac_ext
12789cat >>conftest.$ac_ext <<_ACEOF
12790/* end confdefs.h.  */
12791
12792#		include <sys/types.h>
12793#		include <netdb.h>
12794int
12795main ()
12796{
12797int foo = h_errno;
12798  ;
12799  return 0;
12800}
12801_ACEOF
12802rm -f conftest.$ac_objext
12803if { (ac_try="$ac_compile"
12804case "(($ac_try" in
12805  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12806  *) ac_try_echo=$ac_try;;
12807esac
12808eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12809  (eval "$ac_compile") 2>conftest.er1
12810  ac_status=$?
12811  grep -v '^ *+' conftest.er1 >conftest.err
12812  rm -f conftest.er1
12813  cat conftest.err >&5
12814  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12815  (exit $ac_status); } && {
12816	 test -z "$ac_c_werror_flag" ||
12817	 test ! -s conftest.err
12818       } && test -s conftest.$ac_objext; then
12819  ac_cv_var_h_errno=yes
12820else
12821  echo "$as_me: failed program was:" >&5
12822sed 's/^/| /' conftest.$ac_ext >&5
12823
12824	ac_cv_var_h_errno=no
12825fi
12826
12827rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12828fi
12829
12830	{ echo "$as_me:$LINENO: result: $ac_cv_var_h_errno" >&5
12831echo "${ECHO_T}$ac_cv_var_h_errno" >&6; }
12832	if test "$ac_cv_var_h_errno" = "yes"; then
12833		cat >>confdefs.h <<\_ACEOF
12834#define HAVE_H_ERRNO 1
12835_ACEOF
12836
12837	fi
12838
12839
12840
12841# Check whether --with-crypto was given.
12842if test "${with_crypto+set}" = set; then
12843  withval=$with_crypto;
12844else
12845
12846{ echo "$as_me:$LINENO: checking for SSLeay" >&5
12847echo $ECHO_N "checking for SSLeay... $ECHO_C" >&6; }
12848ac_cv_ssleay_path=no
12849incdir=no
12850
12851#
12852# If Xprefix is set in the environment, use that value.
12853# XXX - this should arguably be done by having --with-crypto take an
12854# optional argument, and have that argument be used to set Xprefix
12855# if present.
12856#
12857if test -z "$Xprefix"; then
12858	Xprefix=`eval echo $prefix`
12859fi
12860
12861for dir in $Xprefix /usr/${host_alias} /usr /usr/local /usr/local/ssl /usr/pkg; do
12862	#
12863	# XXX - is there a better way to check if a given library is
12864	# in a given directory than checking each of the possible
12865	# shared library suffixes?
12866	#
12867	# Are there any other suffixes we need to look for?  Do we have to
12868	# worry about ".so.{version}"?
12869	#
12870	# Or should we just look for "libcrypto.*"?
12871	#
12872	if test -d $dir/lib -a \( -f $dir/lib/libcrypto.a -o \
12873			          -f $dir/lib/libcrypto.so -o \
12874			          -f $dir/lib/libcrypto.sl -o \
12875				  -f $dir/lib/libcrypto.dylib \); then
12876		ac_cv_ssleay_path=$dir
12877	fi
12878	if test -d $dir/include/openssl -a -f $dir/include/openssl/des.h; then
12879		incdir="-I$dir/include"
12880	fi
12881	if test "$ac_cv_ssleay_path" != "no" -a "$incdir" != "no"; then
12882		break;
12883	else
12884		ac_cv_ssleay_path=no
12885		incdir=no
12886	fi
12887done
12888{ echo "$as_me:$LINENO: result: $ac_cv_ssleay_path" >&5
12889echo "${ECHO_T}$ac_cv_ssleay_path" >&6; }
12890if test "$ac_cv_ssleay_path" != no; then
12891	V_INCLS="$V_INCLS $incdir"
12892	LDFLAGS="-L$dir/lib $LDFLAGS"
12893	if test -f $ac_cv_ssleay_path/lib/libRSAglue.a; then
12894		LIBS="$LIBS -lRSAglue"
12895	fi
12896	if test -f $ac_cv_ssleay_path/lib/librsaref.a; then
12897		LIBS="$LIBS -lrsaref"
12898	fi
12899
12900{ echo "$as_me:$LINENO: checking for DES_cbc_encrypt in -lcrypto" >&5
12901echo $ECHO_N "checking for DES_cbc_encrypt in -lcrypto... $ECHO_C" >&6; }
12902if test "${ac_cv_lib_crypto_DES_cbc_encrypt+set}" = set; then
12903  echo $ECHO_N "(cached) $ECHO_C" >&6
12904else
12905  ac_check_lib_save_LIBS=$LIBS
12906LIBS="-lcrypto  $LIBS"
12907cat >conftest.$ac_ext <<_ACEOF
12908/* confdefs.h.  */
12909_ACEOF
12910cat confdefs.h >>conftest.$ac_ext
12911cat >>conftest.$ac_ext <<_ACEOF
12912/* end confdefs.h.  */
12913
12914/* Override any GCC internal prototype to avoid an error.
12915   Use char because int might match the return type of a GCC
12916   builtin and then its argument prototype would still apply.  */
12917#ifdef __cplusplus
12918extern "C"
12919#endif
12920char DES_cbc_encrypt ();
12921int
12922main ()
12923{
12924return DES_cbc_encrypt ();
12925  ;
12926  return 0;
12927}
12928_ACEOF
12929rm -f conftest.$ac_objext conftest$ac_exeext
12930if { (ac_try="$ac_link"
12931case "(($ac_try" in
12932  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12933  *) ac_try_echo=$ac_try;;
12934esac
12935eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12936  (eval "$ac_link") 2>conftest.er1
12937  ac_status=$?
12938  grep -v '^ *+' conftest.er1 >conftest.err
12939  rm -f conftest.er1
12940  cat conftest.err >&5
12941  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12942  (exit $ac_status); } && {
12943	 test -z "$ac_c_werror_flag" ||
12944	 test ! -s conftest.err
12945       } && test -s conftest$ac_exeext &&
12946       $as_test_x conftest$ac_exeext; then
12947  ac_cv_lib_crypto_DES_cbc_encrypt=yes
12948else
12949  echo "$as_me: failed program was:" >&5
12950sed 's/^/| /' conftest.$ac_ext >&5
12951
12952	ac_cv_lib_crypto_DES_cbc_encrypt=no
12953fi
12954
12955rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12956      conftest$ac_exeext conftest.$ac_ext
12957LIBS=$ac_check_lib_save_LIBS
12958fi
12959{ echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_DES_cbc_encrypt" >&5
12960echo "${ECHO_T}$ac_cv_lib_crypto_DES_cbc_encrypt" >&6; }
12961if test $ac_cv_lib_crypto_DES_cbc_encrypt = yes; then
12962  cat >>confdefs.h <<_ACEOF
12963#define HAVE_LIBCRYPTO 1
12964_ACEOF
12965
12966  LIBS="-lcrypto $LIBS"
12967
12968fi
12969
12970
12971	CPPFLAGS="$CPPFLAGS $V_INCLS"
12972
12973for ac_header in openssl/evp.h
12974do
12975as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12976if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12977  { echo "$as_me:$LINENO: checking for $ac_header" >&5
12978echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12979if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12980  echo $ECHO_N "(cached) $ECHO_C" >&6
12981fi
12982ac_res=`eval echo '${'$as_ac_Header'}'`
12983	       { echo "$as_me:$LINENO: result: $ac_res" >&5
12984echo "${ECHO_T}$ac_res" >&6; }
12985else
12986  # Is the header compilable?
12987{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
12988echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12989cat >conftest.$ac_ext <<_ACEOF
12990/* confdefs.h.  */
12991_ACEOF
12992cat confdefs.h >>conftest.$ac_ext
12993cat >>conftest.$ac_ext <<_ACEOF
12994/* end confdefs.h.  */
12995$ac_includes_default
12996#include <$ac_header>
12997_ACEOF
12998rm -f conftest.$ac_objext
12999if { (ac_try="$ac_compile"
13000case "(($ac_try" in
13001  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13002  *) ac_try_echo=$ac_try;;
13003esac
13004eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13005  (eval "$ac_compile") 2>conftest.er1
13006  ac_status=$?
13007  grep -v '^ *+' conftest.er1 >conftest.err
13008  rm -f conftest.er1
13009  cat conftest.err >&5
13010  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13011  (exit $ac_status); } && {
13012	 test -z "$ac_c_werror_flag" ||
13013	 test ! -s conftest.err
13014       } && test -s conftest.$ac_objext; then
13015  ac_header_compiler=yes
13016else
13017  echo "$as_me: failed program was:" >&5
13018sed 's/^/| /' conftest.$ac_ext >&5
13019
13020	ac_header_compiler=no
13021fi
13022
13023rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13024{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13025echo "${ECHO_T}$ac_header_compiler" >&6; }
13026
13027# Is the header present?
13028{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
13029echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13030cat >conftest.$ac_ext <<_ACEOF
13031/* confdefs.h.  */
13032_ACEOF
13033cat confdefs.h >>conftest.$ac_ext
13034cat >>conftest.$ac_ext <<_ACEOF
13035/* end confdefs.h.  */
13036#include <$ac_header>
13037_ACEOF
13038if { (ac_try="$ac_cpp conftest.$ac_ext"
13039case "(($ac_try" in
13040  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13041  *) ac_try_echo=$ac_try;;
13042esac
13043eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13044  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13045  ac_status=$?
13046  grep -v '^ *+' conftest.er1 >conftest.err
13047  rm -f conftest.er1
13048  cat conftest.err >&5
13049  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13050  (exit $ac_status); } >/dev/null && {
13051	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13052	 test ! -s conftest.err
13053       }; then
13054  ac_header_preproc=yes
13055else
13056  echo "$as_me: failed program was:" >&5
13057sed 's/^/| /' conftest.$ac_ext >&5
13058
13059  ac_header_preproc=no
13060fi
13061
13062rm -f conftest.err conftest.$ac_ext
13063{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13064echo "${ECHO_T}$ac_header_preproc" >&6; }
13065
13066# So?  What about this header?
13067case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13068  yes:no: )
13069    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13070echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13071    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13072echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13073    ac_header_preproc=yes
13074    ;;
13075  no:yes:* )
13076    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13077echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13078    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13079echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13080    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13081echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13082    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13083echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13084    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13085echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13086    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13087echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13088
13089    ;;
13090esac
13091{ echo "$as_me:$LINENO: checking for $ac_header" >&5
13092echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13093if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13094  echo $ECHO_N "(cached) $ECHO_C" >&6
13095else
13096  eval "$as_ac_Header=\$ac_header_preproc"
13097fi
13098ac_res=`eval echo '${'$as_ac_Header'}'`
13099	       { echo "$as_me:$LINENO: result: $ac_res" >&5
13100echo "${ECHO_T}$ac_res" >&6; }
13101
13102fi
13103if test `eval echo '${'$as_ac_Header'}'` = yes; then
13104  cat >>confdefs.h <<_ACEOF
13105#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13106_ACEOF
13107
13108fi
13109
13110done
13111
13112fi
13113
13114fi
13115
13116
13117if test "$missing_includes" = "yes"; then
13118	CPPFLAGS="$CPPFLAGS -I\$(srcdir)/missing"
13119	V_INCLS="$V_INCLS -I\$(srcdir)/missing"
13120fi
13121
13122
13123
13124
13125
13126
13127
13128
13129# Find a good install program.  We prefer a C program (faster),
13130# so one script is as good as another.  But avoid the broken or
13131# incompatible versions:
13132# SysV /etc/install, /usr/sbin/install
13133# SunOS /usr/etc/install
13134# IRIX /sbin/install
13135# AIX /bin/install
13136# AmigaOS /C/install, which installs bootblocks on floppy discs
13137# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
13138# AFS /usr/afsws/bin/install, which mishandles nonexistent args
13139# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
13140# OS/2's system install, which has a completely different semantic
13141# ./install, which can be erroneously created by make from ./install.sh.
13142{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
13143echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
13144if test -z "$INSTALL"; then
13145if test "${ac_cv_path_install+set}" = set; then
13146  echo $ECHO_N "(cached) $ECHO_C" >&6
13147else
13148  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13149for as_dir in $PATH
13150do
13151  IFS=$as_save_IFS
13152  test -z "$as_dir" && as_dir=.
13153  # Account for people who put trailing slashes in PATH elements.
13154case $as_dir/ in
13155  ./ | .// | /cC/* | \
13156  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
13157  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
13158  /usr/ucb/* ) ;;
13159  *)
13160    # OSF1 and SCO ODT 3.0 have their own names for install.
13161    # Don't use installbsd from OSF since it installs stuff as root
13162    # by default.
13163    for ac_prog in ginstall scoinst install; do
13164      for ac_exec_ext in '' $ac_executable_extensions; do
13165	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
13166	  if test $ac_prog = install &&
13167	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
13168	    # AIX install.  It has an incompatible calling convention.
13169	    :
13170	  elif test $ac_prog = install &&
13171	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
13172	    # program-specific install script used by HP pwplus--don't use.
13173	    :
13174	  else
13175	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
13176	    break 3
13177	  fi
13178	fi
13179      done
13180    done
13181    ;;
13182esac
13183done
13184IFS=$as_save_IFS
13185
13186
13187fi
13188  if test "${ac_cv_path_install+set}" = set; then
13189    INSTALL=$ac_cv_path_install
13190  else
13191    # As a last resort, use the slow shell script.  Don't cache a
13192    # value for INSTALL within a source directory, because that will
13193    # break other packages using the cache if that directory is
13194    # removed, or if the value is a relative name.
13195    INSTALL=$ac_install_sh
13196  fi
13197fi
13198{ echo "$as_me:$LINENO: result: $INSTALL" >&5
13199echo "${ECHO_T}$INSTALL" >&6; }
13200
13201# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
13202# It thinks the first close brace ends the variable substitution.
13203test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
13204
13205test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
13206
13207test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
13208
13209
13210ac_config_headers="$ac_config_headers config.h"
13211
13212
13213ac_config_commands="$ac_config_commands default-1"
13214
13215ac_config_files="$ac_config_files Makefile"
13216
13217cat >confcache <<\_ACEOF
13218# This file is a shell script that caches the results of configure
13219# tests run on this system so they can be shared between configure
13220# scripts and configure runs, see configure's option --config-cache.
13221# It is not useful on other systems.  If it contains results you don't
13222# want to keep, you may remove or edit it.
13223#
13224# config.status only pays attention to the cache file if you give it
13225# the --recheck option to rerun configure.
13226#
13227# `ac_cv_env_foo' variables (set or unset) will be overridden when
13228# loading this file, other *unset* `ac_cv_foo' will be assigned the
13229# following values.
13230
13231_ACEOF
13232
13233# The following way of writing the cache mishandles newlines in values,
13234# but we know of no workaround that is simple, portable, and efficient.
13235# So, we kill variables containing newlines.
13236# Ultrix sh set writes to stderr and can't be redirected directly,
13237# and sets the high bit in the cache file unless we assign to the vars.
13238(
13239  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13240    eval ac_val=\$$ac_var
13241    case $ac_val in #(
13242    *${as_nl}*)
13243      case $ac_var in #(
13244      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
13245echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
13246      esac
13247      case $ac_var in #(
13248      _ | IFS | as_nl) ;; #(
13249      *) $as_unset $ac_var ;;
13250      esac ;;
13251    esac
13252  done
13253
13254  (set) 2>&1 |
13255    case $as_nl`(ac_space=' '; set) 2>&1` in #(
13256    *${as_nl}ac_space=\ *)
13257      # `set' does not quote correctly, so add quotes (double-quote
13258      # substitution turns \\\\ into \\, and sed turns \\ into \).
13259      sed -n \
13260	"s/'/'\\\\''/g;
13261	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13262      ;; #(
13263    *)
13264      # `set' quotes correctly as required by POSIX, so do not add quotes.
13265      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13266      ;;
13267    esac |
13268    sort
13269) |
13270  sed '
13271     /^ac_cv_env_/b end
13272     t clear
13273     :clear
13274     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13275     t end
13276     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13277     :end' >>confcache
13278if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13279  if test -w "$cache_file"; then
13280    test "x$cache_file" != "x/dev/null" &&
13281      { echo "$as_me:$LINENO: updating cache $cache_file" >&5
13282echo "$as_me: updating cache $cache_file" >&6;}
13283    cat confcache >$cache_file
13284  else
13285    { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
13286echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13287  fi
13288fi
13289rm -f confcache
13290
13291test "x$prefix" = xNONE && prefix=$ac_default_prefix
13292# Let make expand exec_prefix.
13293test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13294
13295DEFS=-DHAVE_CONFIG_H
13296
13297ac_libobjs=
13298ac_ltlibobjs=
13299for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13300  # 1. Remove the extension, and $U if already installed.
13301  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13302  ac_i=`echo "$ac_i" | sed "$ac_script"`
13303  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
13304  #    will be set to the directory where LIBOBJS objects are built.
13305  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13306  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
13307done
13308LIBOBJS=$ac_libobjs
13309
13310LTLIBOBJS=$ac_ltlibobjs
13311
13312
13313
13314: ${CONFIG_STATUS=./config.status}
13315ac_clean_files_save=$ac_clean_files
13316ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13317{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
13318echo "$as_me: creating $CONFIG_STATUS" >&6;}
13319cat >$CONFIG_STATUS <<_ACEOF
13320#! $SHELL
13321# Generated by $as_me.
13322# Run this file to recreate the current configuration.
13323# Compiler output produced by configure, useful for debugging
13324# configure, is in config.log if it exists.
13325
13326debug=false
13327ac_cs_recheck=false
13328ac_cs_silent=false
13329SHELL=\${CONFIG_SHELL-$SHELL}
13330_ACEOF
13331
13332cat >>$CONFIG_STATUS <<\_ACEOF
13333## --------------------- ##
13334## M4sh Initialization.  ##
13335## --------------------- ##
13336
13337# Be more Bourne compatible
13338DUALCASE=1; export DUALCASE # for MKS sh
13339if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
13340  emulate sh
13341  NULLCMD=:
13342  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
13343  # is contrary to our usage.  Disable this feature.
13344  alias -g '${1+"$@"}'='"$@"'
13345  setopt NO_GLOB_SUBST
13346else
13347  case `(set -o) 2>/dev/null` in
13348  *posix*) set -o posix ;;
13349esac
13350
13351fi
13352
13353
13354
13355
13356# PATH needs CR
13357# Avoid depending upon Character Ranges.
13358as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13359as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13360as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13361as_cr_digits='0123456789'
13362as_cr_alnum=$as_cr_Letters$as_cr_digits
13363
13364# The user is always right.
13365if test "${PATH_SEPARATOR+set}" != set; then
13366  echo "#! /bin/sh" >conf$$.sh
13367  echo  "exit 0"   >>conf$$.sh
13368  chmod +x conf$$.sh
13369  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13370    PATH_SEPARATOR=';'
13371  else
13372    PATH_SEPARATOR=:
13373  fi
13374  rm -f conf$$.sh
13375fi
13376
13377# Support unset when possible.
13378if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13379  as_unset=unset
13380else
13381  as_unset=false
13382fi
13383
13384
13385# IFS
13386# We need space, tab and new line, in precisely that order.  Quoting is
13387# there to prevent editors from complaining about space-tab.
13388# (If _AS_PATH_WALK were called with IFS unset, it would disable word
13389# splitting by setting IFS to empty value.)
13390as_nl='
13391'
13392IFS=" ""	$as_nl"
13393
13394# Find who we are.  Look in the path if we contain no directory separator.
13395case $0 in
13396  *[\\/]* ) as_myself=$0 ;;
13397  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13398for as_dir in $PATH
13399do
13400  IFS=$as_save_IFS
13401  test -z "$as_dir" && as_dir=.
13402  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13403done
13404IFS=$as_save_IFS
13405
13406     ;;
13407esac
13408# We did not find ourselves, most probably we were run as `sh COMMAND'
13409# in which case we are not to be found in the path.
13410if test "x$as_myself" = x; then
13411  as_myself=$0
13412fi
13413if test ! -f "$as_myself"; then
13414  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13415  { (exit 1); exit 1; }
13416fi
13417
13418# Work around bugs in pre-3.0 UWIN ksh.
13419for as_var in ENV MAIL MAILPATH
13420do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
13421done
13422PS1='$ '
13423PS2='> '
13424PS4='+ '
13425
13426# NLS nuisances.
13427for as_var in \
13428  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
13429  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
13430  LC_TELEPHONE LC_TIME
13431do
13432  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
13433    eval $as_var=C; export $as_var
13434  else
13435    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
13436  fi
13437done
13438
13439# Required to use basename.
13440if expr a : '\(a\)' >/dev/null 2>&1 &&
13441   test "X`expr 00001 : '.*\(...\)'`" = X001; then
13442  as_expr=expr
13443else
13444  as_expr=false
13445fi
13446
13447if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13448  as_basename=basename
13449else
13450  as_basename=false
13451fi
13452
13453
13454# Name of the executable.
13455as_me=`$as_basename -- "$0" ||
13456$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13457	 X"$0" : 'X\(//\)$' \| \
13458	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13459echo X/"$0" |
13460    sed '/^.*\/\([^/][^/]*\)\/*$/{
13461	    s//\1/
13462	    q
13463	  }
13464	  /^X\/\(\/\/\)$/{
13465	    s//\1/
13466	    q
13467	  }
13468	  /^X\/\(\/\).*/{
13469	    s//\1/
13470	    q
13471	  }
13472	  s/.*/./; q'`
13473
13474# CDPATH.
13475$as_unset CDPATH
13476
13477
13478
13479  as_lineno_1=$LINENO
13480  as_lineno_2=$LINENO
13481  test "x$as_lineno_1" != "x$as_lineno_2" &&
13482  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
13483
13484  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
13485  # uniformly replaced by the line number.  The first 'sed' inserts a
13486  # line-number line after each line using $LINENO; the second 'sed'
13487  # does the real work.  The second script uses 'N' to pair each
13488  # line-number line with the line containing $LINENO, and appends
13489  # trailing '-' during substitution so that $LINENO is not a special
13490  # case at line end.
13491  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
13492  # scripts with optimization help from Paolo Bonzini.  Blame Lee
13493  # E. McMahon (1931-1989) for sed's syntax.  :-)
13494  sed -n '
13495    p
13496    /[$]LINENO/=
13497  ' <$as_myself |
13498    sed '
13499      s/[$]LINENO.*/&-/
13500      t lineno
13501      b
13502      :lineno
13503      N
13504      :loop
13505      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
13506      t loop
13507      s/-\n.*//
13508    ' >$as_me.lineno &&
13509  chmod +x "$as_me.lineno" ||
13510    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
13511   { (exit 1); exit 1; }; }
13512
13513  # Don't try to exec as it changes $[0], causing all sort of problems
13514  # (the dirname of $[0] is not the place where we might find the
13515  # original and so on.  Autoconf is especially sensitive to this).
13516  . "./$as_me.lineno"
13517  # Exit status is that of the last command.
13518  exit
13519}
13520
13521
13522if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13523  as_dirname=dirname
13524else
13525  as_dirname=false
13526fi
13527
13528ECHO_C= ECHO_N= ECHO_T=
13529case `echo -n x` in
13530-n*)
13531  case `echo 'x\c'` in
13532  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
13533  *)   ECHO_C='\c';;
13534  esac;;
13535*)
13536  ECHO_N='-n';;
13537esac
13538
13539if expr a : '\(a\)' >/dev/null 2>&1 &&
13540   test "X`expr 00001 : '.*\(...\)'`" = X001; then
13541  as_expr=expr
13542else
13543  as_expr=false
13544fi
13545
13546rm -f conf$$ conf$$.exe conf$$.file
13547if test -d conf$$.dir; then
13548  rm -f conf$$.dir/conf$$.file
13549else
13550  rm -f conf$$.dir
13551  mkdir conf$$.dir
13552fi
13553echo >conf$$.file
13554if ln -s conf$$.file conf$$ 2>/dev/null; then
13555  as_ln_s='ln -s'
13556  # ... but there are two gotchas:
13557  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13558  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13559  # In both cases, we have to default to `cp -p'.
13560  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13561    as_ln_s='cp -p'
13562elif ln conf$$.file conf$$ 2>/dev/null; then
13563  as_ln_s=ln
13564else
13565  as_ln_s='cp -p'
13566fi
13567rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13568rmdir conf$$.dir 2>/dev/null
13569
13570if mkdir -p . 2>/dev/null; then
13571  as_mkdir_p=:
13572else
13573  test -d ./-p && rmdir ./-p
13574  as_mkdir_p=false
13575fi
13576
13577if test -x / >/dev/null 2>&1; then
13578  as_test_x='test -x'
13579else
13580  if ls -dL / >/dev/null 2>&1; then
13581    as_ls_L_option=L
13582  else
13583    as_ls_L_option=
13584  fi
13585  as_test_x='
13586    eval sh -c '\''
13587      if test -d "$1"; then
13588        test -d "$1/.";
13589      else
13590	case $1 in
13591        -*)set "./$1";;
13592	esac;
13593	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
13594	???[sx]*):;;*)false;;esac;fi
13595    '\'' sh
13596  '
13597fi
13598as_executable_p=$as_test_x
13599
13600# Sed expression to map a string onto a valid CPP name.
13601as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13602
13603# Sed expression to map a string onto a valid variable name.
13604as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13605
13606
13607exec 6>&1
13608
13609# Save the log message, to keep $[0] and so on meaningful, and to
13610# report actual input values of CONFIG_FILES etc. instead of their
13611# values after options handling.
13612ac_log="
13613This file was extended by $as_me, which was
13614generated by GNU Autoconf 2.61.  Invocation command line was
13615
13616  CONFIG_FILES    = $CONFIG_FILES
13617  CONFIG_HEADERS  = $CONFIG_HEADERS
13618  CONFIG_LINKS    = $CONFIG_LINKS
13619  CONFIG_COMMANDS = $CONFIG_COMMANDS
13620  $ $0 $@
13621
13622on `(hostname || uname -n) 2>/dev/null | sed 1q`
13623"
13624
13625_ACEOF
13626
13627cat >>$CONFIG_STATUS <<_ACEOF
13628# Files that config.status was made for.
13629config_files="$ac_config_files"
13630config_headers="$ac_config_headers"
13631config_commands="$ac_config_commands"
13632
13633_ACEOF
13634
13635cat >>$CONFIG_STATUS <<\_ACEOF
13636ac_cs_usage="\
13637\`$as_me' instantiates files from templates according to the
13638current configuration.
13639
13640Usage: $0 [OPTIONS] [FILE]...
13641
13642  -h, --help       print this help, then exit
13643  -V, --version    print version number and configuration settings, then exit
13644  -q, --quiet      do not print progress messages
13645  -d, --debug      don't remove temporary files
13646      --recheck    update $as_me by reconfiguring in the same conditions
13647  --file=FILE[:TEMPLATE]
13648		   instantiate the configuration file FILE
13649  --header=FILE[:TEMPLATE]
13650		   instantiate the configuration header FILE
13651
13652Configuration files:
13653$config_files
13654
13655Configuration headers:
13656$config_headers
13657
13658Configuration commands:
13659$config_commands
13660
13661Report bugs to <bug-autoconf@gnu.org>."
13662
13663_ACEOF
13664cat >>$CONFIG_STATUS <<_ACEOF
13665ac_cs_version="\\
13666config.status
13667configured by $0, generated by GNU Autoconf 2.61,
13668  with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
13669
13670Copyright (C) 2006 Free Software Foundation, Inc.
13671This config.status script is free software; the Free Software Foundation
13672gives unlimited permission to copy, distribute and modify it."
13673
13674ac_pwd='$ac_pwd'
13675srcdir='$srcdir'
13676INSTALL='$INSTALL'
13677_ACEOF
13678
13679cat >>$CONFIG_STATUS <<\_ACEOF
13680# If no file are specified by the user, then we need to provide default
13681# value.  By we need to know if files were specified by the user.
13682ac_need_defaults=:
13683while test $# != 0
13684do
13685  case $1 in
13686  --*=*)
13687    ac_option=`expr "X$1" : 'X\([^=]*\)='`
13688    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13689    ac_shift=:
13690    ;;
13691  *)
13692    ac_option=$1
13693    ac_optarg=$2
13694    ac_shift=shift
13695    ;;
13696  esac
13697
13698  case $ac_option in
13699  # Handling of the options.
13700  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13701    ac_cs_recheck=: ;;
13702  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13703    echo "$ac_cs_version"; exit ;;
13704  --debug | --debu | --deb | --de | --d | -d )
13705    debug=: ;;
13706  --file | --fil | --fi | --f )
13707    $ac_shift
13708    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
13709    ac_need_defaults=false;;
13710  --header | --heade | --head | --hea )
13711    $ac_shift
13712    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
13713    ac_need_defaults=false;;
13714  --he | --h)
13715    # Conflict between --help and --header
13716    { echo "$as_me: error: ambiguous option: $1
13717Try \`$0 --help' for more information." >&2
13718   { (exit 1); exit 1; }; };;
13719  --help | --hel | -h )
13720    echo "$ac_cs_usage"; exit ;;
13721  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13722  | -silent | --silent | --silen | --sile | --sil | --si | --s)
13723    ac_cs_silent=: ;;
13724
13725  # This is an error.
13726  -*) { echo "$as_me: error: unrecognized option: $1
13727Try \`$0 --help' for more information." >&2
13728   { (exit 1); exit 1; }; } ;;
13729
13730  *) ac_config_targets="$ac_config_targets $1"
13731     ac_need_defaults=false ;;
13732
13733  esac
13734  shift
13735done
13736
13737ac_configure_extra_args=
13738
13739if $ac_cs_silent; then
13740  exec 6>/dev/null
13741  ac_configure_extra_args="$ac_configure_extra_args --silent"
13742fi
13743
13744_ACEOF
13745cat >>$CONFIG_STATUS <<_ACEOF
13746if \$ac_cs_recheck; then
13747  echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
13748  CONFIG_SHELL=$SHELL
13749  export CONFIG_SHELL
13750  exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13751fi
13752
13753_ACEOF
13754cat >>$CONFIG_STATUS <<\_ACEOF
13755exec 5>>config.log
13756{
13757  echo
13758  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13759## Running $as_me. ##
13760_ASBOX
13761  echo "$ac_log"
13762} >&5
13763
13764_ACEOF
13765cat >>$CONFIG_STATUS <<_ACEOF
13766#
13767# INIT-COMMANDS
13768#
13769
13770
13771_ACEOF
13772
13773cat >>$CONFIG_STATUS <<\_ACEOF
13774
13775# Handling of arguments.
13776for ac_config_target in $ac_config_targets
13777do
13778  case $ac_config_target in
13779    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13780    "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
13781    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13782
13783  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13784echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13785   { (exit 1); exit 1; }; };;
13786  esac
13787done
13788
13789
13790# If the user did not use the arguments to specify the items to instantiate,
13791# then the envvar interface is used.  Set only those that are not.
13792# We use the long form for the default assignment because of an extremely
13793# bizarre bug on SunOS 4.1.3.
13794if $ac_need_defaults; then
13795  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13796  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13797  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13798fi
13799
13800# Have a temporary directory for convenience.  Make it in the build tree
13801# simply because there is no reason against having it here, and in addition,
13802# creating and moving files from /tmp can sometimes cause problems.
13803# Hook for its removal unless debugging.
13804# Note that there is a small window in which the directory will not be cleaned:
13805# after its creation but before its name has been assigned to `$tmp'.
13806$debug ||
13807{
13808  tmp=
13809  trap 'exit_status=$?
13810  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
13811' 0
13812  trap '{ (exit 1); exit 1; }' 1 2 13 15
13813}
13814# Create a (secure) tmp directory for tmp files.
13815
13816{
13817  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13818  test -n "$tmp" && test -d "$tmp"
13819}  ||
13820{
13821  tmp=./conf$$-$RANDOM
13822  (umask 077 && mkdir "$tmp")
13823} ||
13824{
13825   echo "$me: cannot create a temporary directory in ." >&2
13826   { (exit 1); exit 1; }
13827}
13828
13829#
13830# Set up the sed scripts for CONFIG_FILES section.
13831#
13832
13833# No need to generate the scripts if there are no CONFIG_FILES.
13834# This happens for instance when ./config.status config.h
13835if test -n "$CONFIG_FILES"; then
13836
13837_ACEOF
13838
13839
13840
13841ac_delim='%!_!# '
13842for ac_last_try in false false false false false :; do
13843  cat >conf$$subs.sed <<_ACEOF
13844SHELL!$SHELL$ac_delim
13845PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
13846PACKAGE_NAME!$PACKAGE_NAME$ac_delim
13847PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
13848PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
13849PACKAGE_STRING!$PACKAGE_STRING$ac_delim
13850PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
13851exec_prefix!$exec_prefix$ac_delim
13852prefix!$prefix$ac_delim
13853program_transform_name!$program_transform_name$ac_delim
13854bindir!$bindir$ac_delim
13855sbindir!$sbindir$ac_delim
13856libexecdir!$libexecdir$ac_delim
13857datarootdir!$datarootdir$ac_delim
13858datadir!$datadir$ac_delim
13859sysconfdir!$sysconfdir$ac_delim
13860sharedstatedir!$sharedstatedir$ac_delim
13861localstatedir!$localstatedir$ac_delim
13862includedir!$includedir$ac_delim
13863oldincludedir!$oldincludedir$ac_delim
13864docdir!$docdir$ac_delim
13865infodir!$infodir$ac_delim
13866htmldir!$htmldir$ac_delim
13867dvidir!$dvidir$ac_delim
13868pdfdir!$pdfdir$ac_delim
13869psdir!$psdir$ac_delim
13870libdir!$libdir$ac_delim
13871localedir!$localedir$ac_delim
13872mandir!$mandir$ac_delim
13873DEFS!$DEFS$ac_delim
13874ECHO_C!$ECHO_C$ac_delim
13875ECHO_N!$ECHO_N$ac_delim
13876ECHO_T!$ECHO_T$ac_delim
13877LIBS!$LIBS$ac_delim
13878build_alias!$build_alias$ac_delim
13879host_alias!$host_alias$ac_delim
13880target_alias!$target_alias$ac_delim
13881build!$build$ac_delim
13882build_cpu!$build_cpu$ac_delim
13883build_vendor!$build_vendor$ac_delim
13884build_os!$build_os$ac_delim
13885host!$host$ac_delim
13886host_cpu!$host_cpu$ac_delim
13887host_vendor!$host_vendor$ac_delim
13888host_os!$host_os$ac_delim
13889SHLICC2!$SHLICC2$ac_delim
13890CC!$CC$ac_delim
13891CFLAGS!$CFLAGS$ac_delim
13892LDFLAGS!$LDFLAGS$ac_delim
13893CPPFLAGS!$CPPFLAGS$ac_delim
13894ac_ct_CC!$ac_ct_CC$ac_delim
13895EXEEXT!$EXEEXT$ac_delim
13896OBJEXT!$OBJEXT$ac_delim
13897CPP!$CPP$ac_delim
13898GREP!$GREP$ac_delim
13899EGREP!$EGREP$ac_delim
13900LIBOBJS!$LIBOBJS$ac_delim
13901V_CCOPT!$V_CCOPT$ac_delim
13902V_DEFS!$V_DEFS$ac_delim
13903V_GROUP!$V_GROUP$ac_delim
13904V_INCLS!$V_INCLS$ac_delim
13905V_PCAPDEP!$V_PCAPDEP$ac_delim
13906LOCALSRC!$LOCALSRC$ac_delim
13907INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
13908INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
13909INSTALL_DATA!$INSTALL_DATA$ac_delim
13910LTLIBOBJS!$LTLIBOBJS$ac_delim
13911_ACEOF
13912
13913  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 67; then
13914    break
13915  elif $ac_last_try; then
13916    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13917echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13918   { (exit 1); exit 1; }; }
13919  else
13920    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13921  fi
13922done
13923
13924ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
13925if test -n "$ac_eof"; then
13926  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
13927  ac_eof=`expr $ac_eof + 1`
13928fi
13929
13930cat >>$CONFIG_STATUS <<_ACEOF
13931cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
13932/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
13933_ACEOF
13934sed '
13935s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
13936s/^/s,@/; s/!/@,|#_!!_#|/
13937:n
13938t n
13939s/'"$ac_delim"'$/,g/; t
13940s/$/\\/; p
13941N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
13942' >>$CONFIG_STATUS <conf$$subs.sed
13943rm -f conf$$subs.sed
13944cat >>$CONFIG_STATUS <<_ACEOF
13945:end
13946s/|#_!!_#|//g
13947CEOF$ac_eof
13948_ACEOF
13949
13950
13951# VPATH may cause trouble with some makes, so we remove $(srcdir),
13952# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13953# trailing colons and then remove the whole line if VPATH becomes empty
13954# (actually we leave an empty line to preserve line numbers).
13955if test "x$srcdir" = x.; then
13956  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
13957s/:*\$(srcdir):*/:/
13958s/:*\${srcdir}:*/:/
13959s/:*@srcdir@:*/:/
13960s/^\([^=]*=[	 ]*\):*/\1/
13961s/:*$//
13962s/^[^=]*=[	 ]*$//
13963}'
13964fi
13965
13966cat >>$CONFIG_STATUS <<\_ACEOF
13967fi # test -n "$CONFIG_FILES"
13968
13969
13970for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
13971do
13972  case $ac_tag in
13973  :[FHLC]) ac_mode=$ac_tag; continue;;
13974  esac
13975  case $ac_mode$ac_tag in
13976  :[FHL]*:*);;
13977  :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
13978echo "$as_me: error: Invalid tag $ac_tag." >&2;}
13979   { (exit 1); exit 1; }; };;
13980  :[FH]-) ac_tag=-:-;;
13981  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13982  esac
13983  ac_save_IFS=$IFS
13984  IFS=:
13985  set x $ac_tag
13986  IFS=$ac_save_IFS
13987  shift
13988  ac_file=$1
13989  shift
13990
13991  case $ac_mode in
13992  :L) ac_source=$1;;
13993  :[FH])
13994    ac_file_inputs=
13995    for ac_f
13996    do
13997      case $ac_f in
13998      -) ac_f="$tmp/stdin";;
13999      *) # Look for the file first in the build tree, then in the source tree
14000	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
14001	 # because $ac_f cannot contain `:'.
14002	 test -f "$ac_f" ||
14003	   case $ac_f in
14004	   [\\/$]*) false;;
14005	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14006	   esac ||
14007	   { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
14008echo "$as_me: error: cannot find input file: $ac_f" >&2;}
14009   { (exit 1); exit 1; }; };;
14010      esac
14011      ac_file_inputs="$ac_file_inputs $ac_f"
14012    done
14013
14014    # Let's still pretend it is `configure' which instantiates (i.e., don't
14015    # use $as_me), people would be surprised to read:
14016    #    /* config.h.  Generated by config.status.  */
14017    configure_input="Generated from "`IFS=:
14018	  echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
14019    if test x"$ac_file" != x-; then
14020      configure_input="$ac_file.  $configure_input"
14021      { echo "$as_me:$LINENO: creating $ac_file" >&5
14022echo "$as_me: creating $ac_file" >&6;}
14023    fi
14024
14025    case $ac_tag in
14026    *:-:* | *:-) cat >"$tmp/stdin";;
14027    esac
14028    ;;
14029  esac
14030
14031  ac_dir=`$as_dirname -- "$ac_file" ||
14032$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14033	 X"$ac_file" : 'X\(//\)[^/]' \| \
14034	 X"$ac_file" : 'X\(//\)$' \| \
14035	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14036echo X"$ac_file" |
14037    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14038	    s//\1/
14039	    q
14040	  }
14041	  /^X\(\/\/\)[^/].*/{
14042	    s//\1/
14043	    q
14044	  }
14045	  /^X\(\/\/\)$/{
14046	    s//\1/
14047	    q
14048	  }
14049	  /^X\(\/\).*/{
14050	    s//\1/
14051	    q
14052	  }
14053	  s/.*/./; q'`
14054  { as_dir="$ac_dir"
14055  case $as_dir in #(
14056  -*) as_dir=./$as_dir;;
14057  esac
14058  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
14059    as_dirs=
14060    while :; do
14061      case $as_dir in #(
14062      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
14063      *) as_qdir=$as_dir;;
14064      esac
14065      as_dirs="'$as_qdir' $as_dirs"
14066      as_dir=`$as_dirname -- "$as_dir" ||
14067$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14068	 X"$as_dir" : 'X\(//\)[^/]' \| \
14069	 X"$as_dir" : 'X\(//\)$' \| \
14070	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14071echo X"$as_dir" |
14072    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14073	    s//\1/
14074	    q
14075	  }
14076	  /^X\(\/\/\)[^/].*/{
14077	    s//\1/
14078	    q
14079	  }
14080	  /^X\(\/\/\)$/{
14081	    s//\1/
14082	    q
14083	  }
14084	  /^X\(\/\).*/{
14085	    s//\1/
14086	    q
14087	  }
14088	  s/.*/./; q'`
14089      test -d "$as_dir" && break
14090    done
14091    test -z "$as_dirs" || eval "mkdir $as_dirs"
14092  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
14093echo "$as_me: error: cannot create directory $as_dir" >&2;}
14094   { (exit 1); exit 1; }; }; }
14095  ac_builddir=.
14096
14097case "$ac_dir" in
14098.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14099*)
14100  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
14101  # A ".." for each directory in $ac_dir_suffix.
14102  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
14103  case $ac_top_builddir_sub in
14104  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14105  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14106  esac ;;
14107esac
14108ac_abs_top_builddir=$ac_pwd
14109ac_abs_builddir=$ac_pwd$ac_dir_suffix
14110# for backward compatibility:
14111ac_top_builddir=$ac_top_build_prefix
14112
14113case $srcdir in
14114  .)  # We are building in place.
14115    ac_srcdir=.
14116    ac_top_srcdir=$ac_top_builddir_sub
14117    ac_abs_top_srcdir=$ac_pwd ;;
14118  [\\/]* | ?:[\\/]* )  # Absolute name.
14119    ac_srcdir=$srcdir$ac_dir_suffix;
14120    ac_top_srcdir=$srcdir
14121    ac_abs_top_srcdir=$srcdir ;;
14122  *) # Relative name.
14123    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14124    ac_top_srcdir=$ac_top_build_prefix$srcdir
14125    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14126esac
14127ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14128
14129
14130  case $ac_mode in
14131  :F)
14132  #
14133  # CONFIG_FILE
14134  #
14135
14136  case $INSTALL in
14137  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14138  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14139  esac
14140_ACEOF
14141
14142cat >>$CONFIG_STATUS <<\_ACEOF
14143# If the template does not know about datarootdir, expand it.
14144# FIXME: This hack should be removed a few years after 2.60.
14145ac_datarootdir_hack=; ac_datarootdir_seen=
14146
14147case `sed -n '/datarootdir/ {
14148  p
14149  q
14150}
14151/@datadir@/p
14152/@docdir@/p
14153/@infodir@/p
14154/@localedir@/p
14155/@mandir@/p
14156' $ac_file_inputs` in
14157*datarootdir*) ac_datarootdir_seen=yes;;
14158*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14159  { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14160echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14161_ACEOF
14162cat >>$CONFIG_STATUS <<_ACEOF
14163  ac_datarootdir_hack='
14164  s&@datadir@&$datadir&g
14165  s&@docdir@&$docdir&g
14166  s&@infodir@&$infodir&g
14167  s&@localedir@&$localedir&g
14168  s&@mandir@&$mandir&g
14169    s&\\\${datarootdir}&$datarootdir&g' ;;
14170esac
14171_ACEOF
14172
14173# Neutralize VPATH when `$srcdir' = `.'.
14174# Shell code in configure.ac might set extrasub.
14175# FIXME: do we really want to maintain this feature?
14176cat >>$CONFIG_STATUS <<_ACEOF
14177  sed "$ac_vpsub
14178$extrasub
14179_ACEOF
14180cat >>$CONFIG_STATUS <<\_ACEOF
14181:t
14182/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14183s&@configure_input@&$configure_input&;t t
14184s&@top_builddir@&$ac_top_builddir_sub&;t t
14185s&@srcdir@&$ac_srcdir&;t t
14186s&@abs_srcdir@&$ac_abs_srcdir&;t t
14187s&@top_srcdir@&$ac_top_srcdir&;t t
14188s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14189s&@builddir@&$ac_builddir&;t t
14190s&@abs_builddir@&$ac_abs_builddir&;t t
14191s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14192s&@INSTALL@&$ac_INSTALL&;t t
14193$ac_datarootdir_hack
14194" $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
14195
14196test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14197  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14198  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14199  { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14200which seems to be undefined.  Please make sure it is defined." >&5
14201echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14202which seems to be undefined.  Please make sure it is defined." >&2;}
14203
14204  rm -f "$tmp/stdin"
14205  case $ac_file in
14206  -) cat "$tmp/out"; rm -f "$tmp/out";;
14207  *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
14208  esac
14209 ;;
14210  :H)
14211  #
14212  # CONFIG_HEADER
14213  #
14214_ACEOF
14215
14216# Transform confdefs.h into a sed script `conftest.defines', that
14217# substitutes the proper values into config.h.in to produce config.h.
14218rm -f conftest.defines conftest.tail
14219# First, append a space to every undef/define line, to ease matching.
14220echo 's/$/ /' >conftest.defines
14221# Then, protect against being on the right side of a sed subst, or in
14222# an unquoted here document, in config.status.  If some macros were
14223# called several times there might be several #defines for the same
14224# symbol, which is useless.  But do not sort them, since the last
14225# AC_DEFINE must be honored.
14226ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14227# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
14228# NAME is the cpp macro being defined, VALUE is the value it is being given.
14229# PARAMS is the parameter list in the macro definition--in most cases, it's
14230# just an empty string.
14231ac_dA='s,^\\([	 #]*\\)[^	 ]*\\([	 ]*'
14232ac_dB='\\)[	 (].*,\\1define\\2'
14233ac_dC=' '
14234ac_dD=' ,'
14235
14236uniq confdefs.h |
14237  sed -n '
14238	t rset
14239	:rset
14240	s/^[	 ]*#[	 ]*define[	 ][	 ]*//
14241	t ok
14242	d
14243	:ok
14244	s/[\\&,]/\\&/g
14245	s/^\('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
14246	s/^\('"$ac_word_re"'\)[	 ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
14247  ' >>conftest.defines
14248
14249# Remove the space that was appended to ease matching.
14250# Then replace #undef with comments.  This is necessary, for
14251# example, in the case of _POSIX_SOURCE, which is predefined and required
14252# on some systems where configure will not decide to define it.
14253# (The regexp can be short, since the line contains either #define or #undef.)
14254echo 's/ $//
14255s,^[	 #]*u.*,/* & */,' >>conftest.defines
14256
14257# Break up conftest.defines:
14258ac_max_sed_lines=50
14259
14260# First sed command is:	 sed -f defines.sed $ac_file_inputs >"$tmp/out1"
14261# Second one is:	 sed -f defines.sed "$tmp/out1" >"$tmp/out2"
14262# Third one will be:	 sed -f defines.sed "$tmp/out2" >"$tmp/out1"
14263# et cetera.
14264ac_in='$ac_file_inputs'
14265ac_out='"$tmp/out1"'
14266ac_nxt='"$tmp/out2"'
14267
14268while :
14269do
14270  # Write a here document:
14271    cat >>$CONFIG_STATUS <<_ACEOF
14272    # First, check the format of the line:
14273    cat >"\$tmp/defines.sed" <<\\CEOF
14274/^[	 ]*#[	 ]*undef[	 ][	 ]*$ac_word_re[	 ]*\$/b def
14275/^[	 ]*#[	 ]*define[	 ][	 ]*$ac_word_re[(	 ]/b def
14276b
14277:def
14278_ACEOF
14279  sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
14280  echo 'CEOF
14281    sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
14282  ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
14283  sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
14284  grep . conftest.tail >/dev/null || break
14285  rm -f conftest.defines
14286  mv conftest.tail conftest.defines
14287done
14288rm -f conftest.defines conftest.tail
14289
14290echo "ac_result=$ac_in" >>$CONFIG_STATUS
14291cat >>$CONFIG_STATUS <<\_ACEOF
14292  if test x"$ac_file" != x-; then
14293    echo "/* $configure_input  */" >"$tmp/config.h"
14294    cat "$ac_result" >>"$tmp/config.h"
14295    if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
14296      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
14297echo "$as_me: $ac_file is unchanged" >&6;}
14298    else
14299      rm -f $ac_file
14300      mv "$tmp/config.h" $ac_file
14301    fi
14302  else
14303    echo "/* $configure_input  */"
14304    cat "$ac_result"
14305  fi
14306  rm -f "$tmp/out12"
14307 ;;
14308
14309  :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
14310echo "$as_me: executing $ac_file commands" >&6;}
14311 ;;
14312  esac
14313
14314
14315  case $ac_file$ac_mode in
14316    "default-1":C) if test -f .devel; then
14317	echo timestamp > stamp-h
14318	cat Makefile-devel-adds >> Makefile
14319	make depend
14320fi ;;
14321
14322  esac
14323done # for ac_tag
14324
14325
14326{ (exit 0); exit 0; }
14327_ACEOF
14328chmod +x $CONFIG_STATUS
14329ac_clean_files=$ac_clean_files_save
14330
14331
14332# configure is writing to config.log, and then calls config.status.
14333# config.status does its own redirection, appending to config.log.
14334# Unfortunately, on DOS this fails, as config.log is still kept open
14335# by configure, so config.status won't be able to write to it; its
14336# output is simply discarded.  So we exec the FD to /dev/null,
14337# effectively closing config.log, so it can be properly (re)opened and
14338# appended to by config.status.  When coming back to configure, we
14339# need to make the FD available again.
14340if test "$no_create" != yes; then
14341  ac_cs_success=:
14342  ac_config_status_args=
14343  test "$silent" = yes &&
14344    ac_config_status_args="$ac_config_status_args --quiet"
14345  exec 5>/dev/null
14346  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14347  exec 5>>config.log
14348  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14349  # would make configure fail if this is the last instruction.
14350  $ac_cs_success || { (exit 1); exit 1; }
14351fi
14352
14353exit 0
14354