xref: /freebsd/contrib/libpcap/configure (revision bb15ca603fa442c72dde3f3cb8b46db6970e3950)
1#! /bin/sh
2# From configure.in Revision: 1.168 .
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="pcap.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
662target
663target_cpu
664target_vendor
665target_os
666SHLICC2
667CC
668CFLAGS
669LDFLAGS
670CPPFLAGS
671ac_ct_CC
672EXEEXT
673OBJEXT
674CPP
675GREP
676EGREP
677LIBOBJS
678HAVE_LINUX_TPACKET_AUXDATA
679V_LEX
680V_YACC
681RANLIB
682V_CCOPT
683V_DEFS
684V_FINDALLDEVS
685V_INCLS
686V_PCAP
687V_SHLIB_CMD
688V_SHLIB_OPT
689V_SONAME_OPT
690V_RPATH_OPT
691ADDLOBJS
692ADDLARCHIVEOBJS
693SSRC
694DYEXT
695MAN_FILE_FORMATS
696MAN_MISC_INFO
697PCAP_SUPPORT_USB
698USB_SRC
699PCAP_SUPPORT_BT
700BT_SRC
701PCAP_SUPPORT_CAN
702CAN_SRC
703INSTALL_PROGRAM
704INSTALL_SCRIPT
705INSTALL_DATA
706LTLIBOBJS'
707ac_subst_files=''
708      ac_precious_vars='build_alias
709host_alias
710target_alias
711CC
712CFLAGS
713LDFLAGS
714LIBS
715CPPFLAGS
716CPP'
717
718
719# Initialize some variables set by options.
720ac_init_help=
721ac_init_version=false
722# The variables have the same names as the options, with
723# dashes changed to underlines.
724cache_file=/dev/null
725exec_prefix=NONE
726no_create=
727no_recursion=
728prefix=NONE
729program_prefix=NONE
730program_suffix=NONE
731program_transform_name=s,x,x,
732silent=
733site=
734srcdir=
735verbose=
736x_includes=NONE
737x_libraries=NONE
738
739# Installation directory options.
740# These are left unexpanded so users can "make install exec_prefix=/foo"
741# and all the variables that are supposed to be based on exec_prefix
742# by default will actually change.
743# Use braces instead of parens because sh, perl, etc. also accept them.
744# (The list follows the same order as the GNU Coding Standards.)
745bindir='${exec_prefix}/bin'
746sbindir='${exec_prefix}/sbin'
747libexecdir='${exec_prefix}/libexec'
748datarootdir='${prefix}/share'
749datadir='${datarootdir}'
750sysconfdir='${prefix}/etc'
751sharedstatedir='${prefix}/com'
752localstatedir='${prefix}/var'
753includedir='${prefix}/include'
754oldincludedir='/usr/include'
755docdir='${datarootdir}/doc/${PACKAGE}'
756infodir='${datarootdir}/info'
757htmldir='${docdir}'
758dvidir='${docdir}'
759pdfdir='${docdir}'
760psdir='${docdir}'
761libdir='${exec_prefix}/lib'
762localedir='${datarootdir}/locale'
763mandir='${datarootdir}/man'
764
765ac_prev=
766ac_dashdash=
767for ac_option
768do
769  # If the previous option needs an argument, assign it.
770  if test -n "$ac_prev"; then
771    eval $ac_prev=\$ac_option
772    ac_prev=
773    continue
774  fi
775
776  case $ac_option in
777  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
778  *)	ac_optarg=yes ;;
779  esac
780
781  # Accept the important Cygnus configure options, so we can diagnose typos.
782
783  case $ac_dashdash$ac_option in
784  --)
785    ac_dashdash=yes ;;
786
787  -bindir | --bindir | --bindi | --bind | --bin | --bi)
788    ac_prev=bindir ;;
789  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
790    bindir=$ac_optarg ;;
791
792  -build | --build | --buil | --bui | --bu)
793    ac_prev=build_alias ;;
794  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
795    build_alias=$ac_optarg ;;
796
797  -cache-file | --cache-file | --cache-fil | --cache-fi \
798  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
799    ac_prev=cache_file ;;
800  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
801  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
802    cache_file=$ac_optarg ;;
803
804  --config-cache | -C)
805    cache_file=config.cache ;;
806
807  -datadir | --datadir | --datadi | --datad)
808    ac_prev=datadir ;;
809  -datadir=* | --datadir=* | --datadi=* | --datad=*)
810    datadir=$ac_optarg ;;
811
812  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
813  | --dataroo | --dataro | --datar)
814    ac_prev=datarootdir ;;
815  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
816  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
817    datarootdir=$ac_optarg ;;
818
819  -disable-* | --disable-*)
820    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
821    # Reject names that are not valid shell variable names.
822    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
823      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
824   { (exit 1); exit 1; }; }
825    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
826    eval enable_$ac_feature=no ;;
827
828  -docdir | --docdir | --docdi | --doc | --do)
829    ac_prev=docdir ;;
830  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
831    docdir=$ac_optarg ;;
832
833  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
834    ac_prev=dvidir ;;
835  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
836    dvidir=$ac_optarg ;;
837
838  -enable-* | --enable-*)
839    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
840    # Reject names that are not valid shell variable names.
841    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
842      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
843   { (exit 1); exit 1; }; }
844    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
845    eval enable_$ac_feature=\$ac_optarg ;;
846
847  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
848  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
849  | --exec | --exe | --ex)
850    ac_prev=exec_prefix ;;
851  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
852  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
853  | --exec=* | --exe=* | --ex=*)
854    exec_prefix=$ac_optarg ;;
855
856  -gas | --gas | --ga | --g)
857    # Obsolete; use --with-gas.
858    with_gas=yes ;;
859
860  -help | --help | --hel | --he | -h)
861    ac_init_help=long ;;
862  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
863    ac_init_help=recursive ;;
864  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
865    ac_init_help=short ;;
866
867  -host | --host | --hos | --ho)
868    ac_prev=host_alias ;;
869  -host=* | --host=* | --hos=* | --ho=*)
870    host_alias=$ac_optarg ;;
871
872  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
873    ac_prev=htmldir ;;
874  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
875  | --ht=*)
876    htmldir=$ac_optarg ;;
877
878  -includedir | --includedir | --includedi | --included | --include \
879  | --includ | --inclu | --incl | --inc)
880    ac_prev=includedir ;;
881  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
882  | --includ=* | --inclu=* | --incl=* | --inc=*)
883    includedir=$ac_optarg ;;
884
885  -infodir | --infodir | --infodi | --infod | --info | --inf)
886    ac_prev=infodir ;;
887  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
888    infodir=$ac_optarg ;;
889
890  -libdir | --libdir | --libdi | --libd)
891    ac_prev=libdir ;;
892  -libdir=* | --libdir=* | --libdi=* | --libd=*)
893    libdir=$ac_optarg ;;
894
895  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
896  | --libexe | --libex | --libe)
897    ac_prev=libexecdir ;;
898  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
899  | --libexe=* | --libex=* | --libe=*)
900    libexecdir=$ac_optarg ;;
901
902  -localedir | --localedir | --localedi | --localed | --locale)
903    ac_prev=localedir ;;
904  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
905    localedir=$ac_optarg ;;
906
907  -localstatedir | --localstatedir | --localstatedi | --localstated \
908  | --localstate | --localstat | --localsta | --localst | --locals)
909    ac_prev=localstatedir ;;
910  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
911  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
912    localstatedir=$ac_optarg ;;
913
914  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
915    ac_prev=mandir ;;
916  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
917    mandir=$ac_optarg ;;
918
919  -nfp | --nfp | --nf)
920    # Obsolete; use --without-fp.
921    with_fp=no ;;
922
923  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
924  | --no-cr | --no-c | -n)
925    no_create=yes ;;
926
927  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
928  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
929    no_recursion=yes ;;
930
931  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
932  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
933  | --oldin | --oldi | --old | --ol | --o)
934    ac_prev=oldincludedir ;;
935  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
936  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
937  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
938    oldincludedir=$ac_optarg ;;
939
940  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
941    ac_prev=prefix ;;
942  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
943    prefix=$ac_optarg ;;
944
945  -program-prefix | --program-prefix | --program-prefi | --program-pref \
946  | --program-pre | --program-pr | --program-p)
947    ac_prev=program_prefix ;;
948  -program-prefix=* | --program-prefix=* | --program-prefi=* \
949  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
950    program_prefix=$ac_optarg ;;
951
952  -program-suffix | --program-suffix | --program-suffi | --program-suff \
953  | --program-suf | --program-su | --program-s)
954    ac_prev=program_suffix ;;
955  -program-suffix=* | --program-suffix=* | --program-suffi=* \
956  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
957    program_suffix=$ac_optarg ;;
958
959  -program-transform-name | --program-transform-name \
960  | --program-transform-nam | --program-transform-na \
961  | --program-transform-n | --program-transform- \
962  | --program-transform | --program-transfor \
963  | --program-transfo | --program-transf \
964  | --program-trans | --program-tran \
965  | --progr-tra | --program-tr | --program-t)
966    ac_prev=program_transform_name ;;
967  -program-transform-name=* | --program-transform-name=* \
968  | --program-transform-nam=* | --program-transform-na=* \
969  | --program-transform-n=* | --program-transform-=* \
970  | --program-transform=* | --program-transfor=* \
971  | --program-transfo=* | --program-transf=* \
972  | --program-trans=* | --program-tran=* \
973  | --progr-tra=* | --program-tr=* | --program-t=*)
974    program_transform_name=$ac_optarg ;;
975
976  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
977    ac_prev=pdfdir ;;
978  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
979    pdfdir=$ac_optarg ;;
980
981  -psdir | --psdir | --psdi | --psd | --ps)
982    ac_prev=psdir ;;
983  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
984    psdir=$ac_optarg ;;
985
986  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
987  | -silent | --silent | --silen | --sile | --sil)
988    silent=yes ;;
989
990  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
991    ac_prev=sbindir ;;
992  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
993  | --sbi=* | --sb=*)
994    sbindir=$ac_optarg ;;
995
996  -sharedstatedir | --sharedstatedir | --sharedstatedi \
997  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
998  | --sharedst | --shareds | --shared | --share | --shar \
999  | --sha | --sh)
1000    ac_prev=sharedstatedir ;;
1001  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1002  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1003  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1004  | --sha=* | --sh=*)
1005    sharedstatedir=$ac_optarg ;;
1006
1007  -site | --site | --sit)
1008    ac_prev=site ;;
1009  -site=* | --site=* | --sit=*)
1010    site=$ac_optarg ;;
1011
1012  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1013    ac_prev=srcdir ;;
1014  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1015    srcdir=$ac_optarg ;;
1016
1017  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1018  | --syscon | --sysco | --sysc | --sys | --sy)
1019    ac_prev=sysconfdir ;;
1020  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1021  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1022    sysconfdir=$ac_optarg ;;
1023
1024  -target | --target | --targe | --targ | --tar | --ta | --t)
1025    ac_prev=target_alias ;;
1026  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1027    target_alias=$ac_optarg ;;
1028
1029  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1030    verbose=yes ;;
1031
1032  -version | --version | --versio | --versi | --vers | -V)
1033    ac_init_version=: ;;
1034
1035  -with-* | --with-*)
1036    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1037    # Reject names that are not valid shell variable names.
1038    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1039      { echo "$as_me: error: invalid package name: $ac_package" >&2
1040   { (exit 1); exit 1; }; }
1041    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1042    eval with_$ac_package=\$ac_optarg ;;
1043
1044  -without-* | --without-*)
1045    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1046    # Reject names that are not valid shell variable names.
1047    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1048      { echo "$as_me: error: invalid package name: $ac_package" >&2
1049   { (exit 1); exit 1; }; }
1050    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1051    eval with_$ac_package=no ;;
1052
1053  --x)
1054    # Obsolete; use --with-x.
1055    with_x=yes ;;
1056
1057  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1058  | --x-incl | --x-inc | --x-in | --x-i)
1059    ac_prev=x_includes ;;
1060  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1061  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1062    x_includes=$ac_optarg ;;
1063
1064  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1065  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1066    ac_prev=x_libraries ;;
1067  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1068  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1069    x_libraries=$ac_optarg ;;
1070
1071  -*) { echo "$as_me: error: unrecognized option: $ac_option
1072Try \`$0 --help' for more information." >&2
1073   { (exit 1); exit 1; }; }
1074    ;;
1075
1076  *=*)
1077    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1078    # Reject names that are not valid shell variable names.
1079    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1080      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1081   { (exit 1); exit 1; }; }
1082    eval $ac_envvar=\$ac_optarg
1083    export $ac_envvar ;;
1084
1085  *)
1086    # FIXME: should be removed in autoconf 3.0.
1087    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1088    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1089      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1090    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1091    ;;
1092
1093  esac
1094done
1095
1096if test -n "$ac_prev"; then
1097  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1098  { echo "$as_me: error: missing argument to $ac_option" >&2
1099   { (exit 1); exit 1; }; }
1100fi
1101
1102# Be sure to have absolute directory names.
1103for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1104		datadir sysconfdir sharedstatedir localstatedir includedir \
1105		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1106		libdir localedir mandir
1107do
1108  eval ac_val=\$$ac_var
1109  case $ac_val in
1110    [\\/$]* | ?:[\\/]* )  continue;;
1111    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1112  esac
1113  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1114   { (exit 1); exit 1; }; }
1115done
1116
1117# There might be people who depend on the old broken behavior: `$host'
1118# used to hold the argument of --host etc.
1119# FIXME: To remove some day.
1120build=$build_alias
1121host=$host_alias
1122target=$target_alias
1123
1124# FIXME: To remove some day.
1125if test "x$host_alias" != x; then
1126  if test "x$build_alias" = x; then
1127    cross_compiling=maybe
1128    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1129    If a cross compiler is detected then cross compile mode will be used." >&2
1130  elif test "x$build_alias" != "x$host_alias"; then
1131    cross_compiling=yes
1132  fi
1133fi
1134
1135ac_tool_prefix=
1136test -n "$host_alias" && ac_tool_prefix=$host_alias-
1137
1138test "$silent" = yes && exec 6>/dev/null
1139
1140
1141ac_pwd=`pwd` && test -n "$ac_pwd" &&
1142ac_ls_di=`ls -di .` &&
1143ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1144  { echo "$as_me: error: Working directory cannot be determined" >&2
1145   { (exit 1); exit 1; }; }
1146test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1147  { echo "$as_me: error: pwd does not report name of working directory" >&2
1148   { (exit 1); exit 1; }; }
1149
1150
1151# Find the source files, if location was not specified.
1152if test -z "$srcdir"; then
1153  ac_srcdir_defaulted=yes
1154  # Try the directory containing this script, then the parent directory.
1155  ac_confdir=`$as_dirname -- "$0" ||
1156$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1157	 X"$0" : 'X\(//\)[^/]' \| \
1158	 X"$0" : 'X\(//\)$' \| \
1159	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1160echo X"$0" |
1161    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1162	    s//\1/
1163	    q
1164	  }
1165	  /^X\(\/\/\)[^/].*/{
1166	    s//\1/
1167	    q
1168	  }
1169	  /^X\(\/\/\)$/{
1170	    s//\1/
1171	    q
1172	  }
1173	  /^X\(\/\).*/{
1174	    s//\1/
1175	    q
1176	  }
1177	  s/.*/./; q'`
1178  srcdir=$ac_confdir
1179  if test ! -r "$srcdir/$ac_unique_file"; then
1180    srcdir=..
1181  fi
1182else
1183  ac_srcdir_defaulted=no
1184fi
1185if test ! -r "$srcdir/$ac_unique_file"; then
1186  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1187  { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1188   { (exit 1); exit 1; }; }
1189fi
1190ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1191ac_abs_confdir=`(
1192	cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1193   { (exit 1); exit 1; }; }
1194	pwd)`
1195# When building in place, set srcdir=.
1196if test "$ac_abs_confdir" = "$ac_pwd"; then
1197  srcdir=.
1198fi
1199# Remove unnecessary trailing slashes from srcdir.
1200# Double slashes in file names in object file debugging info
1201# mess up M-x gdb in Emacs.
1202case $srcdir in
1203*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1204esac
1205for ac_var in $ac_precious_vars; do
1206  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1207  eval ac_env_${ac_var}_value=\$${ac_var}
1208  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1209  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1210done
1211
1212#
1213# Report the --help message.
1214#
1215if test "$ac_init_help" = "long"; then
1216  # Omit some internal or obsolete options to make the list less imposing.
1217  # This message is too long to be a string in the A/UX 3.1 sh.
1218  cat <<_ACEOF
1219\`configure' configures this package to adapt to many kinds of systems.
1220
1221Usage: $0 [OPTION]... [VAR=VALUE]...
1222
1223To assign environment variables (e.g., CC, CFLAGS...), specify them as
1224VAR=VALUE.  See below for descriptions of some of the useful variables.
1225
1226Defaults for the options are specified in brackets.
1227
1228Configuration:
1229  -h, --help              display this help and exit
1230      --help=short        display options specific to this package
1231      --help=recursive    display the short help of all the included packages
1232  -V, --version           display version information and exit
1233  -q, --quiet, --silent   do not print \`checking...' messages
1234      --cache-file=FILE   cache test results in FILE [disabled]
1235  -C, --config-cache      alias for \`--cache-file=config.cache'
1236  -n, --no-create         do not create output files
1237      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1238
1239Installation directories:
1240  --prefix=PREFIX         install architecture-independent files in PREFIX
1241			  [$ac_default_prefix]
1242  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1243			  [PREFIX]
1244
1245By default, \`make install' will install all the files in
1246\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1247an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1248for instance \`--prefix=\$HOME'.
1249
1250For better control, use the options below.
1251
1252Fine tuning of the installation directories:
1253  --bindir=DIR           user executables [EPREFIX/bin]
1254  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1255  --libexecdir=DIR       program executables [EPREFIX/libexec]
1256  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1257  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1258  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1259  --libdir=DIR           object code libraries [EPREFIX/lib]
1260  --includedir=DIR       C header files [PREFIX/include]
1261  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1262  --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1263  --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1264  --infodir=DIR          info documentation [DATAROOTDIR/info]
1265  --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1266  --mandir=DIR           man documentation [DATAROOTDIR/man]
1267  --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
1268  --htmldir=DIR          html documentation [DOCDIR]
1269  --dvidir=DIR           dvi documentation [DOCDIR]
1270  --pdfdir=DIR           pdf documentation [DOCDIR]
1271  --psdir=DIR            ps documentation [DOCDIR]
1272_ACEOF
1273
1274  cat <<\_ACEOF
1275
1276System types:
1277  --build=BUILD     configure for building on BUILD [guessed]
1278  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1279  --target=TARGET   configure for building compilers for TARGET [HOST]
1280_ACEOF
1281fi
1282
1283if test -n "$ac_init_help"; then
1284
1285  cat <<\_ACEOF
1286
1287Optional Features:
1288  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1289  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1290  --disable-largefile     omit support for large files
1291  --disable-protochain    disable \"protochain\" insn
1292  --enable-ipv6           build IPv6-capable version [default=yes, if
1293                          getaddrinfo available]
1294  --enable-optimizer-dbg  build optimizer debugging code
1295  --enable-yydebug        build parser debugging code
1296  --enable-bluetooth      enable Bluetooth support [default=yes, if support
1297                          available]
1298  --enable-can            enable CAN support [default=yes, if support
1299                          available]
1300
1301Optional Packages:
1302  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1303  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1304  --without-gcc           don't use gcc
1305  --with-sita             include SITA support
1306  --with-pcap=TYPE        use packet capture TYPE
1307  --without-libnl         disable libnl support [default=yes, on Linux, if
1308                          present]
1309  --with-dag[=DIR]        include Endace DAG support ["yes", "no" or DIR;
1310                          default="yes" on BSD and Linux if present]
1311  --with-dag-includes=DIR Endace DAG include directory
1312  --with-dag-libraries=DIR
1313                          Endace DAG library directory
1314  --with-septel[=DIR]     include Septel support (located in directory DIR, if
1315                          supplied). [default=yes, on Linux, if present]
1316  --with-snf[=DIR]        include Myricom SNF support ["yes", "no" or DIR;
1317                          default="yes" on BSD and Linux if present]
1318  --with-snf-includes=DIR Myricom SNF include directory
1319  --with-snf-libraries=DIR
1320                          Myricom SNF library directory
1321  --without-flex          don't use flex
1322  --without-bison         don't use bison
1323
1324Some influential environment variables:
1325  CC          C compiler command
1326  CFLAGS      C compiler flags
1327  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1328              nonstandard directory <lib dir>
1329  LIBS        libraries to pass to the linker, e.g. -l<library>
1330  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1331              you have headers in a nonstandard directory <include dir>
1332  CPP         C preprocessor
1333
1334Use these variables to override the choices made by `configure' or to help
1335it to find libraries and programs with nonstandard names/locations.
1336
1337_ACEOF
1338ac_status=$?
1339fi
1340
1341if test "$ac_init_help" = "recursive"; then
1342  # If there are subdirs, report their specific --help.
1343  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1344    test -d "$ac_dir" || continue
1345    ac_builddir=.
1346
1347case "$ac_dir" in
1348.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1349*)
1350  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1351  # A ".." for each directory in $ac_dir_suffix.
1352  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1353  case $ac_top_builddir_sub in
1354  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1355  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1356  esac ;;
1357esac
1358ac_abs_top_builddir=$ac_pwd
1359ac_abs_builddir=$ac_pwd$ac_dir_suffix
1360# for backward compatibility:
1361ac_top_builddir=$ac_top_build_prefix
1362
1363case $srcdir in
1364  .)  # We are building in place.
1365    ac_srcdir=.
1366    ac_top_srcdir=$ac_top_builddir_sub
1367    ac_abs_top_srcdir=$ac_pwd ;;
1368  [\\/]* | ?:[\\/]* )  # Absolute name.
1369    ac_srcdir=$srcdir$ac_dir_suffix;
1370    ac_top_srcdir=$srcdir
1371    ac_abs_top_srcdir=$srcdir ;;
1372  *) # Relative name.
1373    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1374    ac_top_srcdir=$ac_top_build_prefix$srcdir
1375    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1376esac
1377ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1378
1379    cd "$ac_dir" || { ac_status=$?; continue; }
1380    # Check for guested configure.
1381    if test -f "$ac_srcdir/configure.gnu"; then
1382      echo &&
1383      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1384    elif test -f "$ac_srcdir/configure"; then
1385      echo &&
1386      $SHELL "$ac_srcdir/configure" --help=recursive
1387    else
1388      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1389    fi || ac_status=$?
1390    cd "$ac_pwd" || { ac_status=$?; break; }
1391  done
1392fi
1393
1394test -n "$ac_init_help" && exit $ac_status
1395if $ac_init_version; then
1396  cat <<\_ACEOF
1397configure
1398generated by GNU Autoconf 2.61
1399
1400Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
14012002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1402This configure script is free software; the Free Software Foundation
1403gives unlimited permission to copy, distribute and modify it.
1404_ACEOF
1405  exit
1406fi
1407cat >config.log <<_ACEOF
1408This file contains any messages produced by compilers while
1409running configure, to aid debugging if configure makes a mistake.
1410
1411It was created by $as_me, which was
1412generated by GNU Autoconf 2.61.  Invocation command line was
1413
1414  $ $0 $@
1415
1416_ACEOF
1417exec 5>>config.log
1418{
1419cat <<_ASUNAME
1420## --------- ##
1421## Platform. ##
1422## --------- ##
1423
1424hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1425uname -m = `(uname -m) 2>/dev/null || echo unknown`
1426uname -r = `(uname -r) 2>/dev/null || echo unknown`
1427uname -s = `(uname -s) 2>/dev/null || echo unknown`
1428uname -v = `(uname -v) 2>/dev/null || echo unknown`
1429
1430/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1431/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1432
1433/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1434/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1435/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1436/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1437/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1438/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1439/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1440
1441_ASUNAME
1442
1443as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1444for as_dir in $PATH
1445do
1446  IFS=$as_save_IFS
1447  test -z "$as_dir" && as_dir=.
1448  echo "PATH: $as_dir"
1449done
1450IFS=$as_save_IFS
1451
1452} >&5
1453
1454cat >&5 <<_ACEOF
1455
1456
1457## ----------- ##
1458## Core tests. ##
1459## ----------- ##
1460
1461_ACEOF
1462
1463
1464# Keep a trace of the command line.
1465# Strip out --no-create and --no-recursion so they do not pile up.
1466# Strip out --silent because we don't want to record it for future runs.
1467# Also quote any args containing shell meta-characters.
1468# Make two passes to allow for proper duplicate-argument suppression.
1469ac_configure_args=
1470ac_configure_args0=
1471ac_configure_args1=
1472ac_must_keep_next=false
1473for ac_pass in 1 2
1474do
1475  for ac_arg
1476  do
1477    case $ac_arg in
1478    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1479    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1480    | -silent | --silent | --silen | --sile | --sil)
1481      continue ;;
1482    *\'*)
1483      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1484    esac
1485    case $ac_pass in
1486    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1487    2)
1488      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1489      if test $ac_must_keep_next = true; then
1490	ac_must_keep_next=false # Got value, back to normal.
1491      else
1492	case $ac_arg in
1493	  *=* | --config-cache | -C | -disable-* | --disable-* \
1494	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1495	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1496	  | -with-* | --with-* | -without-* | --without-* | --x)
1497	    case "$ac_configure_args0 " in
1498	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1499	    esac
1500	    ;;
1501	  -* ) ac_must_keep_next=true ;;
1502	esac
1503      fi
1504      ac_configure_args="$ac_configure_args '$ac_arg'"
1505      ;;
1506    esac
1507  done
1508done
1509$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1510$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1511
1512# When interrupted or exit'd, cleanup temporary files, and complete
1513# config.log.  We remove comments because anyway the quotes in there
1514# would cause problems or look ugly.
1515# WARNING: Use '\'' to represent an apostrophe within the trap.
1516# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1517trap 'exit_status=$?
1518  # Save into config.log some information that might help in debugging.
1519  {
1520    echo
1521
1522    cat <<\_ASBOX
1523## ---------------- ##
1524## Cache variables. ##
1525## ---------------- ##
1526_ASBOX
1527    echo
1528    # The following way of writing the cache mishandles newlines in values,
1529(
1530  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1531    eval ac_val=\$$ac_var
1532    case $ac_val in #(
1533    *${as_nl}*)
1534      case $ac_var in #(
1535      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1536echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1537      esac
1538      case $ac_var in #(
1539      _ | IFS | as_nl) ;; #(
1540      *) $as_unset $ac_var ;;
1541      esac ;;
1542    esac
1543  done
1544  (set) 2>&1 |
1545    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1546    *${as_nl}ac_space=\ *)
1547      sed -n \
1548	"s/'\''/'\''\\\\'\'''\''/g;
1549	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1550      ;; #(
1551    *)
1552      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1553      ;;
1554    esac |
1555    sort
1556)
1557    echo
1558
1559    cat <<\_ASBOX
1560## ----------------- ##
1561## Output variables. ##
1562## ----------------- ##
1563_ASBOX
1564    echo
1565    for ac_var in $ac_subst_vars
1566    do
1567      eval ac_val=\$$ac_var
1568      case $ac_val in
1569      *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1570      esac
1571      echo "$ac_var='\''$ac_val'\''"
1572    done | sort
1573    echo
1574
1575    if test -n "$ac_subst_files"; then
1576      cat <<\_ASBOX
1577## ------------------- ##
1578## File substitutions. ##
1579## ------------------- ##
1580_ASBOX
1581      echo
1582      for ac_var in $ac_subst_files
1583      do
1584	eval ac_val=\$$ac_var
1585	case $ac_val in
1586	*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1587	esac
1588	echo "$ac_var='\''$ac_val'\''"
1589      done | sort
1590      echo
1591    fi
1592
1593    if test -s confdefs.h; then
1594      cat <<\_ASBOX
1595## ----------- ##
1596## confdefs.h. ##
1597## ----------- ##
1598_ASBOX
1599      echo
1600      cat confdefs.h
1601      echo
1602    fi
1603    test "$ac_signal" != 0 &&
1604      echo "$as_me: caught signal $ac_signal"
1605    echo "$as_me: exit $exit_status"
1606  } >&5
1607  rm -f core *.core core.conftest.* &&
1608    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1609    exit $exit_status
1610' 0
1611for ac_signal in 1 2 13 15; do
1612  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1613done
1614ac_signal=0
1615
1616# confdefs.h avoids OS command line length limits that DEFS can exceed.
1617rm -f -r conftest* confdefs.h
1618
1619# Predefined preprocessor variables.
1620
1621cat >>confdefs.h <<_ACEOF
1622#define PACKAGE_NAME "$PACKAGE_NAME"
1623_ACEOF
1624
1625
1626cat >>confdefs.h <<_ACEOF
1627#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1628_ACEOF
1629
1630
1631cat >>confdefs.h <<_ACEOF
1632#define PACKAGE_VERSION "$PACKAGE_VERSION"
1633_ACEOF
1634
1635
1636cat >>confdefs.h <<_ACEOF
1637#define PACKAGE_STRING "$PACKAGE_STRING"
1638_ACEOF
1639
1640
1641cat >>confdefs.h <<_ACEOF
1642#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1643_ACEOF
1644
1645
1646# Let the site file select an alternate cache file if it wants to.
1647# Prefer explicitly selected file to automatically selected ones.
1648if test -n "$CONFIG_SITE"; then
1649  set x "$CONFIG_SITE"
1650elif test "x$prefix" != xNONE; then
1651  set x "$prefix/share/config.site" "$prefix/etc/config.site"
1652else
1653  set x "$ac_default_prefix/share/config.site" \
1654	"$ac_default_prefix/etc/config.site"
1655fi
1656shift
1657for ac_site_file
1658do
1659  if test -r "$ac_site_file"; then
1660    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1661echo "$as_me: loading site script $ac_site_file" >&6;}
1662    sed 's/^/| /' "$ac_site_file" >&5
1663    . "$ac_site_file"
1664  fi
1665done
1666
1667if test -r "$cache_file"; then
1668  # Some versions of bash will fail to source /dev/null (special
1669  # files actually), so we avoid doing that.
1670  if test -f "$cache_file"; then
1671    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1672echo "$as_me: loading cache $cache_file" >&6;}
1673    case $cache_file in
1674      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1675      *)                      . "./$cache_file";;
1676    esac
1677  fi
1678else
1679  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1680echo "$as_me: creating cache $cache_file" >&6;}
1681  >$cache_file
1682fi
1683
1684# Check that the precious variables saved in the cache have kept the same
1685# value.
1686ac_cache_corrupted=false
1687for ac_var in $ac_precious_vars; do
1688  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1689  eval ac_new_set=\$ac_env_${ac_var}_set
1690  eval ac_old_val=\$ac_cv_env_${ac_var}_value
1691  eval ac_new_val=\$ac_env_${ac_var}_value
1692  case $ac_old_set,$ac_new_set in
1693    set,)
1694      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1695echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1696      ac_cache_corrupted=: ;;
1697    ,set)
1698      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1699echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1700      ac_cache_corrupted=: ;;
1701    ,);;
1702    *)
1703      if test "x$ac_old_val" != "x$ac_new_val"; then
1704	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1705echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1706	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1707echo "$as_me:   former value:  $ac_old_val" >&2;}
1708	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1709echo "$as_me:   current value: $ac_new_val" >&2;}
1710	ac_cache_corrupted=:
1711      fi;;
1712  esac
1713  # Pass precious variables to config.status.
1714  if test "$ac_new_set" = set; then
1715    case $ac_new_val in
1716    *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1717    *) ac_arg=$ac_var=$ac_new_val ;;
1718    esac
1719    case " $ac_configure_args " in
1720      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1721      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1722    esac
1723  fi
1724done
1725if $ac_cache_corrupted; then
1726  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1727echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1728  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1729echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1730   { (exit 1); exit 1; }; }
1731fi
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749ac_ext=c
1750ac_cpp='$CPP $CPPFLAGS'
1751ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1752ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1753ac_compiler_gnu=$ac_cv_c_compiler_gnu
1754
1755
1756
1757ac_aux_dir=
1758for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1759  if test -f "$ac_dir/install-sh"; then
1760    ac_aux_dir=$ac_dir
1761    ac_install_sh="$ac_aux_dir/install-sh -c"
1762    break
1763  elif test -f "$ac_dir/install.sh"; then
1764    ac_aux_dir=$ac_dir
1765    ac_install_sh="$ac_aux_dir/install.sh -c"
1766    break
1767  elif test -f "$ac_dir/shtool"; then
1768    ac_aux_dir=$ac_dir
1769    ac_install_sh="$ac_aux_dir/shtool install -c"
1770    break
1771  fi
1772done
1773if test -z "$ac_aux_dir"; then
1774  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1775echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1776   { (exit 1); exit 1; }; }
1777fi
1778
1779# These three variables are undocumented and unsupported,
1780# and are intended to be withdrawn in a future Autoconf release.
1781# They can cause serious problems if a builder's source tree is in a directory
1782# whose full name contains unusual characters.
1783ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1784ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1785ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1786
1787
1788# Make sure we can run config.sub.
1789$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1790  { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1791echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1792   { (exit 1); exit 1; }; }
1793
1794{ echo "$as_me:$LINENO: checking build system type" >&5
1795echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1796if test "${ac_cv_build+set}" = set; then
1797  echo $ECHO_N "(cached) $ECHO_C" >&6
1798else
1799  ac_build_alias=$build_alias
1800test "x$ac_build_alias" = x &&
1801  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1802test "x$ac_build_alias" = x &&
1803  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1804echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1805   { (exit 1); exit 1; }; }
1806ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1807  { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1808echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1809   { (exit 1); exit 1; }; }
1810
1811fi
1812{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1813echo "${ECHO_T}$ac_cv_build" >&6; }
1814case $ac_cv_build in
1815*-*-*) ;;
1816*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1817echo "$as_me: error: invalid value of canonical build" >&2;}
1818   { (exit 1); exit 1; }; };;
1819esac
1820build=$ac_cv_build
1821ac_save_IFS=$IFS; IFS='-'
1822set x $ac_cv_build
1823shift
1824build_cpu=$1
1825build_vendor=$2
1826shift; shift
1827# Remember, the first character of IFS is used to create $*,
1828# except with old shells:
1829build_os=$*
1830IFS=$ac_save_IFS
1831case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1832
1833
1834{ echo "$as_me:$LINENO: checking host system type" >&5
1835echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1836if test "${ac_cv_host+set}" = set; then
1837  echo $ECHO_N "(cached) $ECHO_C" >&6
1838else
1839  if test "x$host_alias" = x; then
1840  ac_cv_host=$ac_cv_build
1841else
1842  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1843    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1844echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1845   { (exit 1); exit 1; }; }
1846fi
1847
1848fi
1849{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1850echo "${ECHO_T}$ac_cv_host" >&6; }
1851case $ac_cv_host in
1852*-*-*) ;;
1853*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1854echo "$as_me: error: invalid value of canonical host" >&2;}
1855   { (exit 1); exit 1; }; };;
1856esac
1857host=$ac_cv_host
1858ac_save_IFS=$IFS; IFS='-'
1859set x $ac_cv_host
1860shift
1861host_cpu=$1
1862host_vendor=$2
1863shift; shift
1864# Remember, the first character of IFS is used to create $*,
1865# except with old shells:
1866host_os=$*
1867IFS=$ac_save_IFS
1868case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1869
1870
1871{ echo "$as_me:$LINENO: checking target system type" >&5
1872echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
1873if test "${ac_cv_target+set}" = set; then
1874  echo $ECHO_N "(cached) $ECHO_C" >&6
1875else
1876  if test "x$target_alias" = x; then
1877  ac_cv_target=$ac_cv_host
1878else
1879  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
1880    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
1881echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
1882   { (exit 1); exit 1; }; }
1883fi
1884
1885fi
1886{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1887echo "${ECHO_T}$ac_cv_target" >&6; }
1888case $ac_cv_target in
1889*-*-*) ;;
1890*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
1891echo "$as_me: error: invalid value of canonical target" >&2;}
1892   { (exit 1); exit 1; }; };;
1893esac
1894target=$ac_cv_target
1895ac_save_IFS=$IFS; IFS='-'
1896set x $ac_cv_target
1897shift
1898target_cpu=$1
1899target_vendor=$2
1900shift; shift
1901# Remember, the first character of IFS is used to create $*,
1902# except with old shells:
1903target_os=$*
1904IFS=$ac_save_IFS
1905case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
1906
1907
1908# The aliases save the names the user supplied, while $host etc.
1909# will get canonicalized.
1910test -n "$target_alias" &&
1911  test "$program_prefix$program_suffix$program_transform_name" = \
1912    NONENONEs,x,x, &&
1913  program_prefix=${target_alias}-
1914
1915
1916
1917
1918
1919
1920
1921# Check whether --with-gcc was given.
1922if test "${with_gcc+set}" = set; then
1923  withval=$with_gcc;
1924fi
1925
1926    V_CCOPT="-O"
1927    V_INCLS=""
1928    if test "${srcdir}" != "." ; then
1929	    V_INCLS="-I\$(srcdir)"
1930    fi
1931    if test "${CFLAGS+set}" = set; then
1932	    LBL_CFLAGS="$CFLAGS"
1933    fi
1934    if test -z "$CC" ; then
1935	    case "$host_os" in
1936
1937	    bsdi*)
1938		    # Extract the first word of "shlicc2", so it can be a program name with args.
1939set dummy shlicc2; ac_word=$2
1940{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1941echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1942if test "${ac_cv_prog_SHLICC2+set}" = set; then
1943  echo $ECHO_N "(cached) $ECHO_C" >&6
1944else
1945  if test -n "$SHLICC2"; then
1946  ac_cv_prog_SHLICC2="$SHLICC2" # Let the user override the test.
1947else
1948as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1949for as_dir in $PATH
1950do
1951  IFS=$as_save_IFS
1952  test -z "$as_dir" && as_dir=.
1953  for ac_exec_ext in '' $ac_executable_extensions; do
1954  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1955    ac_cv_prog_SHLICC2="yes"
1956    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1957    break 2
1958  fi
1959done
1960done
1961IFS=$as_save_IFS
1962
1963  test -z "$ac_cv_prog_SHLICC2" && ac_cv_prog_SHLICC2="no"
1964fi
1965fi
1966SHLICC2=$ac_cv_prog_SHLICC2
1967if test -n "$SHLICC2"; then
1968  { echo "$as_me:$LINENO: result: $SHLICC2" >&5
1969echo "${ECHO_T}$SHLICC2" >&6; }
1970else
1971  { echo "$as_me:$LINENO: result: no" >&5
1972echo "${ECHO_T}no" >&6; }
1973fi
1974
1975
1976		    if test $SHLICC2 = yes ; then
1977			    CC=shlicc2
1978			    export CC
1979		    fi
1980		    ;;
1981	    esac
1982    fi
1983    if test -z "$CC" -a "$with_gcc" = no ; then
1984	    CC=cc
1985	    export CC
1986    fi
1987
1988ac_ext=c
1989ac_cpp='$CPP $CPPFLAGS'
1990ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1991ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1992ac_compiler_gnu=$ac_cv_c_compiler_gnu
1993if test -n "$ac_tool_prefix"; then
1994  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1995set dummy ${ac_tool_prefix}gcc; ac_word=$2
1996{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1997echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1998if test "${ac_cv_prog_CC+set}" = set; then
1999  echo $ECHO_N "(cached) $ECHO_C" >&6
2000else
2001  if test -n "$CC"; then
2002  ac_cv_prog_CC="$CC" # Let the user override the test.
2003else
2004as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2005for as_dir in $PATH
2006do
2007  IFS=$as_save_IFS
2008  test -z "$as_dir" && as_dir=.
2009  for ac_exec_ext in '' $ac_executable_extensions; do
2010  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2011    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2012    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2013    break 2
2014  fi
2015done
2016done
2017IFS=$as_save_IFS
2018
2019fi
2020fi
2021CC=$ac_cv_prog_CC
2022if test -n "$CC"; then
2023  { echo "$as_me:$LINENO: result: $CC" >&5
2024echo "${ECHO_T}$CC" >&6; }
2025else
2026  { echo "$as_me:$LINENO: result: no" >&5
2027echo "${ECHO_T}no" >&6; }
2028fi
2029
2030
2031fi
2032if test -z "$ac_cv_prog_CC"; then
2033  ac_ct_CC=$CC
2034  # Extract the first word of "gcc", so it can be a program name with args.
2035set dummy gcc; ac_word=$2
2036{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2037echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2038if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2039  echo $ECHO_N "(cached) $ECHO_C" >&6
2040else
2041  if test -n "$ac_ct_CC"; then
2042  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2043else
2044as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2045for as_dir in $PATH
2046do
2047  IFS=$as_save_IFS
2048  test -z "$as_dir" && as_dir=.
2049  for ac_exec_ext in '' $ac_executable_extensions; do
2050  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2051    ac_cv_prog_ac_ct_CC="gcc"
2052    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2053    break 2
2054  fi
2055done
2056done
2057IFS=$as_save_IFS
2058
2059fi
2060fi
2061ac_ct_CC=$ac_cv_prog_ac_ct_CC
2062if test -n "$ac_ct_CC"; then
2063  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2064echo "${ECHO_T}$ac_ct_CC" >&6; }
2065else
2066  { echo "$as_me:$LINENO: result: no" >&5
2067echo "${ECHO_T}no" >&6; }
2068fi
2069
2070  if test "x$ac_ct_CC" = x; then
2071    CC=""
2072  else
2073    case $cross_compiling:$ac_tool_warned in
2074yes:)
2075{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2076whose name does not start with the host triplet.  If you think this
2077configuration is useful to you, please write to autoconf@gnu.org." >&5
2078echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2079whose name does not start with the host triplet.  If you think this
2080configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2081ac_tool_warned=yes ;;
2082esac
2083    CC=$ac_ct_CC
2084  fi
2085else
2086  CC="$ac_cv_prog_CC"
2087fi
2088
2089if test -z "$CC"; then
2090          if test -n "$ac_tool_prefix"; then
2091    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2092set dummy ${ac_tool_prefix}cc; ac_word=$2
2093{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2094echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2095if test "${ac_cv_prog_CC+set}" = set; then
2096  echo $ECHO_N "(cached) $ECHO_C" >&6
2097else
2098  if test -n "$CC"; then
2099  ac_cv_prog_CC="$CC" # Let the user override the test.
2100else
2101as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2102for as_dir in $PATH
2103do
2104  IFS=$as_save_IFS
2105  test -z "$as_dir" && as_dir=.
2106  for ac_exec_ext in '' $ac_executable_extensions; do
2107  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2108    ac_cv_prog_CC="${ac_tool_prefix}cc"
2109    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2110    break 2
2111  fi
2112done
2113done
2114IFS=$as_save_IFS
2115
2116fi
2117fi
2118CC=$ac_cv_prog_CC
2119if test -n "$CC"; then
2120  { echo "$as_me:$LINENO: result: $CC" >&5
2121echo "${ECHO_T}$CC" >&6; }
2122else
2123  { echo "$as_me:$LINENO: result: no" >&5
2124echo "${ECHO_T}no" >&6; }
2125fi
2126
2127
2128  fi
2129fi
2130if test -z "$CC"; then
2131  # Extract the first word of "cc", so it can be a program name with args.
2132set dummy cc; ac_word=$2
2133{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2134echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2135if test "${ac_cv_prog_CC+set}" = set; then
2136  echo $ECHO_N "(cached) $ECHO_C" >&6
2137else
2138  if test -n "$CC"; then
2139  ac_cv_prog_CC="$CC" # Let the user override the test.
2140else
2141  ac_prog_rejected=no
2142as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2143for as_dir in $PATH
2144do
2145  IFS=$as_save_IFS
2146  test -z "$as_dir" && as_dir=.
2147  for ac_exec_ext in '' $ac_executable_extensions; do
2148  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2149    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2150       ac_prog_rejected=yes
2151       continue
2152     fi
2153    ac_cv_prog_CC="cc"
2154    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2155    break 2
2156  fi
2157done
2158done
2159IFS=$as_save_IFS
2160
2161if test $ac_prog_rejected = yes; then
2162  # We found a bogon in the path, so make sure we never use it.
2163  set dummy $ac_cv_prog_CC
2164  shift
2165  if test $# != 0; then
2166    # We chose a different compiler from the bogus one.
2167    # However, it has the same basename, so the bogon will be chosen
2168    # first if we set CC to just the basename; use the full file name.
2169    shift
2170    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2171  fi
2172fi
2173fi
2174fi
2175CC=$ac_cv_prog_CC
2176if test -n "$CC"; then
2177  { echo "$as_me:$LINENO: result: $CC" >&5
2178echo "${ECHO_T}$CC" >&6; }
2179else
2180  { echo "$as_me:$LINENO: result: no" >&5
2181echo "${ECHO_T}no" >&6; }
2182fi
2183
2184
2185fi
2186if test -z "$CC"; then
2187  if test -n "$ac_tool_prefix"; then
2188  for ac_prog in cl.exe
2189  do
2190    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2191set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2192{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2193echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2194if test "${ac_cv_prog_CC+set}" = set; then
2195  echo $ECHO_N "(cached) $ECHO_C" >&6
2196else
2197  if test -n "$CC"; then
2198  ac_cv_prog_CC="$CC" # Let the user override the test.
2199else
2200as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2201for as_dir in $PATH
2202do
2203  IFS=$as_save_IFS
2204  test -z "$as_dir" && as_dir=.
2205  for ac_exec_ext in '' $ac_executable_extensions; do
2206  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2207    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2208    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2209    break 2
2210  fi
2211done
2212done
2213IFS=$as_save_IFS
2214
2215fi
2216fi
2217CC=$ac_cv_prog_CC
2218if test -n "$CC"; then
2219  { echo "$as_me:$LINENO: result: $CC" >&5
2220echo "${ECHO_T}$CC" >&6; }
2221else
2222  { echo "$as_me:$LINENO: result: no" >&5
2223echo "${ECHO_T}no" >&6; }
2224fi
2225
2226
2227    test -n "$CC" && break
2228  done
2229fi
2230if test -z "$CC"; then
2231  ac_ct_CC=$CC
2232  for ac_prog in cl.exe
2233do
2234  # Extract the first word of "$ac_prog", so it can be a program name with args.
2235set dummy $ac_prog; ac_word=$2
2236{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2237echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2238if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2239  echo $ECHO_N "(cached) $ECHO_C" >&6
2240else
2241  if test -n "$ac_ct_CC"; then
2242  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2243else
2244as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2245for as_dir in $PATH
2246do
2247  IFS=$as_save_IFS
2248  test -z "$as_dir" && as_dir=.
2249  for ac_exec_ext in '' $ac_executable_extensions; do
2250  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2251    ac_cv_prog_ac_ct_CC="$ac_prog"
2252    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2253    break 2
2254  fi
2255done
2256done
2257IFS=$as_save_IFS
2258
2259fi
2260fi
2261ac_ct_CC=$ac_cv_prog_ac_ct_CC
2262if test -n "$ac_ct_CC"; then
2263  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2264echo "${ECHO_T}$ac_ct_CC" >&6; }
2265else
2266  { echo "$as_me:$LINENO: result: no" >&5
2267echo "${ECHO_T}no" >&6; }
2268fi
2269
2270
2271  test -n "$ac_ct_CC" && break
2272done
2273
2274  if test "x$ac_ct_CC" = x; then
2275    CC=""
2276  else
2277    case $cross_compiling:$ac_tool_warned in
2278yes:)
2279{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2280whose name does not start with the host triplet.  If you think this
2281configuration is useful to you, please write to autoconf@gnu.org." >&5
2282echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2283whose name does not start with the host triplet.  If you think this
2284configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2285ac_tool_warned=yes ;;
2286esac
2287    CC=$ac_ct_CC
2288  fi
2289fi
2290
2291fi
2292
2293
2294test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2295See \`config.log' for more details." >&5
2296echo "$as_me: error: no acceptable C compiler found in \$PATH
2297See \`config.log' for more details." >&2;}
2298   { (exit 1); exit 1; }; }
2299
2300# Provide some information about the compiler.
2301echo "$as_me:$LINENO: checking for C compiler version" >&5
2302ac_compiler=`set X $ac_compile; echo $2`
2303{ (ac_try="$ac_compiler --version >&5"
2304case "(($ac_try" in
2305  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2306  *) ac_try_echo=$ac_try;;
2307esac
2308eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2309  (eval "$ac_compiler --version >&5") 2>&5
2310  ac_status=$?
2311  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2312  (exit $ac_status); }
2313{ (ac_try="$ac_compiler -v >&5"
2314case "(($ac_try" in
2315  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2316  *) ac_try_echo=$ac_try;;
2317esac
2318eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2319  (eval "$ac_compiler -v >&5") 2>&5
2320  ac_status=$?
2321  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2322  (exit $ac_status); }
2323{ (ac_try="$ac_compiler -V >&5"
2324case "(($ac_try" in
2325  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2326  *) ac_try_echo=$ac_try;;
2327esac
2328eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2329  (eval "$ac_compiler -V >&5") 2>&5
2330  ac_status=$?
2331  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2332  (exit $ac_status); }
2333
2334cat >conftest.$ac_ext <<_ACEOF
2335/* confdefs.h.  */
2336_ACEOF
2337cat confdefs.h >>conftest.$ac_ext
2338cat >>conftest.$ac_ext <<_ACEOF
2339/* end confdefs.h.  */
2340
2341int
2342main ()
2343{
2344
2345  ;
2346  return 0;
2347}
2348_ACEOF
2349ac_clean_files_save=$ac_clean_files
2350ac_clean_files="$ac_clean_files a.out a.exe b.out"
2351# Try to create an executable without -o first, disregard a.out.
2352# It will help us diagnose broken compilers, and finding out an intuition
2353# of exeext.
2354{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2355echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2356ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2357#
2358# List of possible output files, starting from the most likely.
2359# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2360# only as a last resort.  b.out is created by i960 compilers.
2361ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2362#
2363# The IRIX 6 linker writes into existing files which may not be
2364# executable, retaining their permissions.  Remove them first so a
2365# subsequent execution test works.
2366ac_rmfiles=
2367for ac_file in $ac_files
2368do
2369  case $ac_file in
2370    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2371    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2372  esac
2373done
2374rm -f $ac_rmfiles
2375
2376if { (ac_try="$ac_link_default"
2377case "(($ac_try" in
2378  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2379  *) ac_try_echo=$ac_try;;
2380esac
2381eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2382  (eval "$ac_link_default") 2>&5
2383  ac_status=$?
2384  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2385  (exit $ac_status); }; then
2386  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2387# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2388# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2389# so that the user can short-circuit this test for compilers unknown to
2390# Autoconf.
2391for ac_file in $ac_files ''
2392do
2393  test -f "$ac_file" || continue
2394  case $ac_file in
2395    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2396	;;
2397    [ab].out )
2398	# We found the default executable, but exeext='' is most
2399	# certainly right.
2400	break;;
2401    *.* )
2402        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2403	then :; else
2404	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2405	fi
2406	# We set ac_cv_exeext here because the later test for it is not
2407	# safe: cross compilers may not add the suffix if given an `-o'
2408	# argument, so we may need to know it at that point already.
2409	# Even if this section looks crufty: it has the advantage of
2410	# actually working.
2411	break;;
2412    * )
2413	break;;
2414  esac
2415done
2416test "$ac_cv_exeext" = no && ac_cv_exeext=
2417
2418else
2419  ac_file=''
2420fi
2421
2422{ echo "$as_me:$LINENO: result: $ac_file" >&5
2423echo "${ECHO_T}$ac_file" >&6; }
2424if test -z "$ac_file"; then
2425  echo "$as_me: failed program was:" >&5
2426sed 's/^/| /' conftest.$ac_ext >&5
2427
2428{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2429See \`config.log' for more details." >&5
2430echo "$as_me: error: C compiler cannot create executables
2431See \`config.log' for more details." >&2;}
2432   { (exit 77); exit 77; }; }
2433fi
2434
2435ac_exeext=$ac_cv_exeext
2436
2437# Check that the compiler produces executables we can run.  If not, either
2438# the compiler is broken, or we cross compile.
2439{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2440echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2441# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2442# If not cross compiling, check that we can run a simple program.
2443if test "$cross_compiling" != yes; then
2444  if { ac_try='./$ac_file'
2445  { (case "(($ac_try" in
2446  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2447  *) ac_try_echo=$ac_try;;
2448esac
2449eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2450  (eval "$ac_try") 2>&5
2451  ac_status=$?
2452  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2453  (exit $ac_status); }; }; then
2454    cross_compiling=no
2455  else
2456    if test "$cross_compiling" = maybe; then
2457	cross_compiling=yes
2458    else
2459	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2460If you meant to cross compile, use \`--host'.
2461See \`config.log' for more details." >&5
2462echo "$as_me: error: cannot run C compiled programs.
2463If you meant to cross compile, use \`--host'.
2464See \`config.log' for more details." >&2;}
2465   { (exit 1); exit 1; }; }
2466    fi
2467  fi
2468fi
2469{ echo "$as_me:$LINENO: result: yes" >&5
2470echo "${ECHO_T}yes" >&6; }
2471
2472rm -f a.out a.exe conftest$ac_cv_exeext b.out
2473ac_clean_files=$ac_clean_files_save
2474# Check that the compiler produces executables we can run.  If not, either
2475# the compiler is broken, or we cross compile.
2476{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2477echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2478{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2479echo "${ECHO_T}$cross_compiling" >&6; }
2480
2481{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2482echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2483if { (ac_try="$ac_link"
2484case "(($ac_try" in
2485  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2486  *) ac_try_echo=$ac_try;;
2487esac
2488eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2489  (eval "$ac_link") 2>&5
2490  ac_status=$?
2491  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2492  (exit $ac_status); }; then
2493  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2494# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2495# work properly (i.e., refer to `conftest.exe'), while it won't with
2496# `rm'.
2497for ac_file in conftest.exe conftest conftest.*; do
2498  test -f "$ac_file" || continue
2499  case $ac_file in
2500    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2501    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2502	  break;;
2503    * ) break;;
2504  esac
2505done
2506else
2507  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2508See \`config.log' for more details." >&5
2509echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2510See \`config.log' for more details." >&2;}
2511   { (exit 1); exit 1; }; }
2512fi
2513
2514rm -f conftest$ac_cv_exeext
2515{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2516echo "${ECHO_T}$ac_cv_exeext" >&6; }
2517
2518rm -f conftest.$ac_ext
2519EXEEXT=$ac_cv_exeext
2520ac_exeext=$EXEEXT
2521{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2522echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2523if test "${ac_cv_objext+set}" = set; then
2524  echo $ECHO_N "(cached) $ECHO_C" >&6
2525else
2526  cat >conftest.$ac_ext <<_ACEOF
2527/* confdefs.h.  */
2528_ACEOF
2529cat confdefs.h >>conftest.$ac_ext
2530cat >>conftest.$ac_ext <<_ACEOF
2531/* end confdefs.h.  */
2532
2533int
2534main ()
2535{
2536
2537  ;
2538  return 0;
2539}
2540_ACEOF
2541rm -f conftest.o conftest.obj
2542if { (ac_try="$ac_compile"
2543case "(($ac_try" in
2544  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2545  *) ac_try_echo=$ac_try;;
2546esac
2547eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2548  (eval "$ac_compile") 2>&5
2549  ac_status=$?
2550  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2551  (exit $ac_status); }; then
2552  for ac_file in conftest.o conftest.obj conftest.*; do
2553  test -f "$ac_file" || continue;
2554  case $ac_file in
2555    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2556    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2557       break;;
2558  esac
2559done
2560else
2561  echo "$as_me: failed program was:" >&5
2562sed 's/^/| /' conftest.$ac_ext >&5
2563
2564{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2565See \`config.log' for more details." >&5
2566echo "$as_me: error: cannot compute suffix of object files: cannot compile
2567See \`config.log' for more details." >&2;}
2568   { (exit 1); exit 1; }; }
2569fi
2570
2571rm -f conftest.$ac_cv_objext conftest.$ac_ext
2572fi
2573{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2574echo "${ECHO_T}$ac_cv_objext" >&6; }
2575OBJEXT=$ac_cv_objext
2576ac_objext=$OBJEXT
2577{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2578echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2579if test "${ac_cv_c_compiler_gnu+set}" = set; then
2580  echo $ECHO_N "(cached) $ECHO_C" >&6
2581else
2582  cat >conftest.$ac_ext <<_ACEOF
2583/* confdefs.h.  */
2584_ACEOF
2585cat confdefs.h >>conftest.$ac_ext
2586cat >>conftest.$ac_ext <<_ACEOF
2587/* end confdefs.h.  */
2588
2589int
2590main ()
2591{
2592#ifndef __GNUC__
2593       choke me
2594#endif
2595
2596  ;
2597  return 0;
2598}
2599_ACEOF
2600rm -f conftest.$ac_objext
2601if { (ac_try="$ac_compile"
2602case "(($ac_try" in
2603  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2604  *) ac_try_echo=$ac_try;;
2605esac
2606eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2607  (eval "$ac_compile") 2>conftest.er1
2608  ac_status=$?
2609  grep -v '^ *+' conftest.er1 >conftest.err
2610  rm -f conftest.er1
2611  cat conftest.err >&5
2612  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2613  (exit $ac_status); } && {
2614	 test -z "$ac_c_werror_flag" ||
2615	 test ! -s conftest.err
2616       } && test -s conftest.$ac_objext; then
2617  ac_compiler_gnu=yes
2618else
2619  echo "$as_me: failed program was:" >&5
2620sed 's/^/| /' conftest.$ac_ext >&5
2621
2622	ac_compiler_gnu=no
2623fi
2624
2625rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2626ac_cv_c_compiler_gnu=$ac_compiler_gnu
2627
2628fi
2629{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2630echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2631GCC=`test $ac_compiler_gnu = yes && echo yes`
2632ac_test_CFLAGS=${CFLAGS+set}
2633ac_save_CFLAGS=$CFLAGS
2634{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2635echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2636if test "${ac_cv_prog_cc_g+set}" = set; then
2637  echo $ECHO_N "(cached) $ECHO_C" >&6
2638else
2639  ac_save_c_werror_flag=$ac_c_werror_flag
2640   ac_c_werror_flag=yes
2641   ac_cv_prog_cc_g=no
2642   CFLAGS="-g"
2643   cat >conftest.$ac_ext <<_ACEOF
2644/* confdefs.h.  */
2645_ACEOF
2646cat confdefs.h >>conftest.$ac_ext
2647cat >>conftest.$ac_ext <<_ACEOF
2648/* end confdefs.h.  */
2649
2650int
2651main ()
2652{
2653
2654  ;
2655  return 0;
2656}
2657_ACEOF
2658rm -f conftest.$ac_objext
2659if { (ac_try="$ac_compile"
2660case "(($ac_try" in
2661  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2662  *) ac_try_echo=$ac_try;;
2663esac
2664eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2665  (eval "$ac_compile") 2>conftest.er1
2666  ac_status=$?
2667  grep -v '^ *+' conftest.er1 >conftest.err
2668  rm -f conftest.er1
2669  cat conftest.err >&5
2670  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2671  (exit $ac_status); } && {
2672	 test -z "$ac_c_werror_flag" ||
2673	 test ! -s conftest.err
2674       } && test -s conftest.$ac_objext; then
2675  ac_cv_prog_cc_g=yes
2676else
2677  echo "$as_me: failed program was:" >&5
2678sed 's/^/| /' conftest.$ac_ext >&5
2679
2680	CFLAGS=""
2681      cat >conftest.$ac_ext <<_ACEOF
2682/* confdefs.h.  */
2683_ACEOF
2684cat confdefs.h >>conftest.$ac_ext
2685cat >>conftest.$ac_ext <<_ACEOF
2686/* end confdefs.h.  */
2687
2688int
2689main ()
2690{
2691
2692  ;
2693  return 0;
2694}
2695_ACEOF
2696rm -f conftest.$ac_objext
2697if { (ac_try="$ac_compile"
2698case "(($ac_try" in
2699  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2700  *) ac_try_echo=$ac_try;;
2701esac
2702eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2703  (eval "$ac_compile") 2>conftest.er1
2704  ac_status=$?
2705  grep -v '^ *+' conftest.er1 >conftest.err
2706  rm -f conftest.er1
2707  cat conftest.err >&5
2708  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2709  (exit $ac_status); } && {
2710	 test -z "$ac_c_werror_flag" ||
2711	 test ! -s conftest.err
2712       } && test -s conftest.$ac_objext; then
2713  :
2714else
2715  echo "$as_me: failed program was:" >&5
2716sed 's/^/| /' conftest.$ac_ext >&5
2717
2718	ac_c_werror_flag=$ac_save_c_werror_flag
2719	 CFLAGS="-g"
2720	 cat >conftest.$ac_ext <<_ACEOF
2721/* confdefs.h.  */
2722_ACEOF
2723cat confdefs.h >>conftest.$ac_ext
2724cat >>conftest.$ac_ext <<_ACEOF
2725/* end confdefs.h.  */
2726
2727int
2728main ()
2729{
2730
2731  ;
2732  return 0;
2733}
2734_ACEOF
2735rm -f conftest.$ac_objext
2736if { (ac_try="$ac_compile"
2737case "(($ac_try" in
2738  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2739  *) ac_try_echo=$ac_try;;
2740esac
2741eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2742  (eval "$ac_compile") 2>conftest.er1
2743  ac_status=$?
2744  grep -v '^ *+' conftest.er1 >conftest.err
2745  rm -f conftest.er1
2746  cat conftest.err >&5
2747  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2748  (exit $ac_status); } && {
2749	 test -z "$ac_c_werror_flag" ||
2750	 test ! -s conftest.err
2751       } && test -s conftest.$ac_objext; then
2752  ac_cv_prog_cc_g=yes
2753else
2754  echo "$as_me: failed program was:" >&5
2755sed 's/^/| /' conftest.$ac_ext >&5
2756
2757
2758fi
2759
2760rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2761fi
2762
2763rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2764fi
2765
2766rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2767   ac_c_werror_flag=$ac_save_c_werror_flag
2768fi
2769{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2770echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2771if test "$ac_test_CFLAGS" = set; then
2772  CFLAGS=$ac_save_CFLAGS
2773elif test $ac_cv_prog_cc_g = yes; then
2774  if test "$GCC" = yes; then
2775    CFLAGS="-g -O2"
2776  else
2777    CFLAGS="-g"
2778  fi
2779else
2780  if test "$GCC" = yes; then
2781    CFLAGS="-O2"
2782  else
2783    CFLAGS=
2784  fi
2785fi
2786{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2787echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2788if test "${ac_cv_prog_cc_c89+set}" = set; then
2789  echo $ECHO_N "(cached) $ECHO_C" >&6
2790else
2791  ac_cv_prog_cc_c89=no
2792ac_save_CC=$CC
2793cat >conftest.$ac_ext <<_ACEOF
2794/* confdefs.h.  */
2795_ACEOF
2796cat confdefs.h >>conftest.$ac_ext
2797cat >>conftest.$ac_ext <<_ACEOF
2798/* end confdefs.h.  */
2799#include <stdarg.h>
2800#include <stdio.h>
2801#include <sys/types.h>
2802#include <sys/stat.h>
2803/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2804struct buf { int x; };
2805FILE * (*rcsopen) (struct buf *, struct stat *, int);
2806static char *e (p, i)
2807     char **p;
2808     int i;
2809{
2810  return p[i];
2811}
2812static char *f (char * (*g) (char **, int), char **p, ...)
2813{
2814  char *s;
2815  va_list v;
2816  va_start (v,p);
2817  s = g (p, va_arg (v,int));
2818  va_end (v);
2819  return s;
2820}
2821
2822/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2823   function prototypes and stuff, but not '\xHH' hex character constants.
2824   These don't provoke an error unfortunately, instead are silently treated
2825   as 'x'.  The following induces an error, until -std is added to get
2826   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2827   array size at least.  It's necessary to write '\x00'==0 to get something
2828   that's true only with -std.  */
2829int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2830
2831/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2832   inside strings and character constants.  */
2833#define FOO(x) 'x'
2834int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2835
2836int test (int i, double x);
2837struct s1 {int (*f) (int a);};
2838struct s2 {int (*f) (double a);};
2839int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2840int argc;
2841char **argv;
2842int
2843main ()
2844{
2845return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2846  ;
2847  return 0;
2848}
2849_ACEOF
2850for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2851	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2852do
2853  CC="$ac_save_CC $ac_arg"
2854  rm -f conftest.$ac_objext
2855if { (ac_try="$ac_compile"
2856case "(($ac_try" in
2857  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2858  *) ac_try_echo=$ac_try;;
2859esac
2860eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2861  (eval "$ac_compile") 2>conftest.er1
2862  ac_status=$?
2863  grep -v '^ *+' conftest.er1 >conftest.err
2864  rm -f conftest.er1
2865  cat conftest.err >&5
2866  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2867  (exit $ac_status); } && {
2868	 test -z "$ac_c_werror_flag" ||
2869	 test ! -s conftest.err
2870       } && test -s conftest.$ac_objext; then
2871  ac_cv_prog_cc_c89=$ac_arg
2872else
2873  echo "$as_me: failed program was:" >&5
2874sed 's/^/| /' conftest.$ac_ext >&5
2875
2876
2877fi
2878
2879rm -f core conftest.err conftest.$ac_objext
2880  test "x$ac_cv_prog_cc_c89" != "xno" && break
2881done
2882rm -f conftest.$ac_ext
2883CC=$ac_save_CC
2884
2885fi
2886# AC_CACHE_VAL
2887case "x$ac_cv_prog_cc_c89" in
2888  x)
2889    { echo "$as_me:$LINENO: result: none needed" >&5
2890echo "${ECHO_T}none needed" >&6; } ;;
2891  xno)
2892    { echo "$as_me:$LINENO: result: unsupported" >&5
2893echo "${ECHO_T}unsupported" >&6; } ;;
2894  *)
2895    CC="$CC $ac_cv_prog_cc_c89"
2896    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2897echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2898esac
2899
2900
2901ac_ext=c
2902ac_cpp='$CPP $CPPFLAGS'
2903ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2904ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2905ac_compiler_gnu=$ac_cv_c_compiler_gnu
2906
2907
2908
2909
2910
2911    if test "$GCC" = yes ; then
2912	    if test "$SHLICC2" = yes ; then
2913		    ac_cv_lbl_gcc_vers=2
2914		    V_CCOPT="-O2"
2915	    else
2916		    { echo "$as_me:$LINENO: checking gcc version" >&5
2917echo $ECHO_N "checking gcc version... $ECHO_C" >&6; }
2918		    if test "${ac_cv_lbl_gcc_vers+set}" = set; then
2919  echo $ECHO_N "(cached) $ECHO_C" >&6
2920else
2921  ac_cv_lbl_gcc_vers=`$CC -v 2>&1 | \
2922			    sed -e '/^gcc version /!d' \
2923				-e 's/^gcc version //' \
2924				-e 's/ .*//' -e 's/^[^0-9]*//' \
2925				-e 's/\..*//'`
2926fi
2927
2928		    { echo "$as_me:$LINENO: result: $ac_cv_lbl_gcc_vers" >&5
2929echo "${ECHO_T}$ac_cv_lbl_gcc_vers" >&6; }
2930		    if test $ac_cv_lbl_gcc_vers -gt 1 ; then
2931			    V_CCOPT="-O2"
2932		    fi
2933	    fi
2934    else
2935	    { echo "$as_me:$LINENO: checking that $CC handles ansi prototypes" >&5
2936echo $ECHO_N "checking that $CC handles ansi prototypes... $ECHO_C" >&6; }
2937	    if test "${ac_cv_lbl_cc_ansi_prototypes+set}" = set; then
2938  echo $ECHO_N "(cached) $ECHO_C" >&6
2939else
2940
2941cat >conftest.$ac_ext <<_ACEOF
2942/* confdefs.h.  */
2943_ACEOF
2944cat confdefs.h >>conftest.$ac_ext
2945cat >>conftest.$ac_ext <<_ACEOF
2946/* end confdefs.h.  */
2947#include <sys/types.h>
2948int
2949main ()
2950{
2951int frob(int, char *)
2952  ;
2953  return 0;
2954}
2955_ACEOF
2956rm -f conftest.$ac_objext
2957if { (ac_try="$ac_compile"
2958case "(($ac_try" in
2959  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2960  *) ac_try_echo=$ac_try;;
2961esac
2962eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2963  (eval "$ac_compile") 2>conftest.er1
2964  ac_status=$?
2965  grep -v '^ *+' conftest.er1 >conftest.err
2966  rm -f conftest.er1
2967  cat conftest.err >&5
2968  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2969  (exit $ac_status); } && {
2970	 test -z "$ac_c_werror_flag" ||
2971	 test ! -s conftest.err
2972       } && test -s conftest.$ac_objext; then
2973  ac_cv_lbl_cc_ansi_prototypes=yes
2974else
2975  echo "$as_me: failed program was:" >&5
2976sed 's/^/| /' conftest.$ac_ext >&5
2977
2978	ac_cv_lbl_cc_ansi_prototypes=no
2979fi
2980
2981rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2982fi
2983
2984	    { echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_ansi_prototypes" >&5
2985echo "${ECHO_T}$ac_cv_lbl_cc_ansi_prototypes" >&6; }
2986	    if test $ac_cv_lbl_cc_ansi_prototypes = no ; then
2987		    case "$host_os" in
2988
2989		    hpux*)
2990			    { echo "$as_me:$LINENO: checking for HP-UX ansi compiler ($CC -Aa -D_HPUX_SOURCE)" >&5
2991echo $ECHO_N "checking for HP-UX ansi compiler ($CC -Aa -D_HPUX_SOURCE)... $ECHO_C" >&6; }
2992			    savedcflags="$CFLAGS"
2993			    CFLAGS="-Aa -D_HPUX_SOURCE $CFLAGS"
2994			    if test "${ac_cv_lbl_cc_hpux_cc_aa+set}" = set; then
2995  echo $ECHO_N "(cached) $ECHO_C" >&6
2996else
2997  cat >conftest.$ac_ext <<_ACEOF
2998/* confdefs.h.  */
2999_ACEOF
3000cat confdefs.h >>conftest.$ac_ext
3001cat >>conftest.$ac_ext <<_ACEOF
3002/* end confdefs.h.  */
3003#include <sys/types.h>
3004int
3005main ()
3006{
3007int frob(int, char *)
3008  ;
3009  return 0;
3010}
3011_ACEOF
3012rm -f conftest.$ac_objext
3013if { (ac_try="$ac_compile"
3014case "(($ac_try" in
3015  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3016  *) ac_try_echo=$ac_try;;
3017esac
3018eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3019  (eval "$ac_compile") 2>conftest.er1
3020  ac_status=$?
3021  grep -v '^ *+' conftest.er1 >conftest.err
3022  rm -f conftest.er1
3023  cat conftest.err >&5
3024  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3025  (exit $ac_status); } && {
3026	 test -z "$ac_c_werror_flag" ||
3027	 test ! -s conftest.err
3028       } && test -s conftest.$ac_objext; then
3029  ac_cv_lbl_cc_hpux_cc_aa=yes
3030else
3031  echo "$as_me: failed program was:" >&5
3032sed 's/^/| /' conftest.$ac_ext >&5
3033
3034	ac_cv_lbl_cc_hpux_cc_aa=no
3035fi
3036
3037rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3038fi
3039
3040			    { echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_hpux_cc_aa" >&5
3041echo "${ECHO_T}$ac_cv_lbl_cc_hpux_cc_aa" >&6; }
3042			    if test $ac_cv_lbl_cc_hpux_cc_aa = no ; then
3043				    { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
3044echo "$as_me: error: see the INSTALL doc for more info" >&2;}
3045   { (exit 1); exit 1; }; }
3046			    fi
3047			    CFLAGS="$savedcflags"
3048			    V_CCOPT="-Aa $V_CCOPT"
3049
3050cat >>confdefs.h <<\_ACEOF
3051#define _HPUX_SOURCE 1
3052_ACEOF
3053
3054			    ;;
3055
3056		    osf*)
3057			    { echo "$as_me:$LINENO: checking for ansi mode in DEC compiler ($CC -std1)" >&5
3058echo $ECHO_N "checking for ansi mode in DEC compiler ($CC -std1)... $ECHO_C" >&6; }
3059			    savedcflags="$CFLAGS"
3060			    CFLAGS="-std1"
3061			    if test "${ac_cv_lbl_cc_osf1_cc_std1+set}" = set; then
3062  echo $ECHO_N "(cached) $ECHO_C" >&6
3063else
3064  cat >conftest.$ac_ext <<_ACEOF
3065/* confdefs.h.  */
3066_ACEOF
3067cat confdefs.h >>conftest.$ac_ext
3068cat >>conftest.$ac_ext <<_ACEOF
3069/* end confdefs.h.  */
3070#include <sys/types.h>
3071int
3072main ()
3073{
3074int frob(int, char *)
3075  ;
3076  return 0;
3077}
3078_ACEOF
3079rm -f conftest.$ac_objext
3080if { (ac_try="$ac_compile"
3081case "(($ac_try" in
3082  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3083  *) ac_try_echo=$ac_try;;
3084esac
3085eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3086  (eval "$ac_compile") 2>conftest.er1
3087  ac_status=$?
3088  grep -v '^ *+' conftest.er1 >conftest.err
3089  rm -f conftest.er1
3090  cat conftest.err >&5
3091  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3092  (exit $ac_status); } && {
3093	 test -z "$ac_c_werror_flag" ||
3094	 test ! -s conftest.err
3095       } && test -s conftest.$ac_objext; then
3096  ac_cv_lbl_cc_osf1_cc_std1=yes
3097else
3098  echo "$as_me: failed program was:" >&5
3099sed 's/^/| /' conftest.$ac_ext >&5
3100
3101	ac_cv_lbl_cc_osf1_cc_std1=no
3102fi
3103
3104rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3105fi
3106
3107			    { echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_osf1_cc_std1" >&5
3108echo "${ECHO_T}$ac_cv_lbl_cc_osf1_cc_std1" >&6; }
3109			    if test $ac_cv_lbl_cc_osf1_cc_std1 = no ; then
3110				    { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
3111echo "$as_me: error: see the INSTALL doc for more info" >&2;}
3112   { (exit 1); exit 1; }; }
3113			    fi
3114			    CFLAGS="$savedcflags"
3115			    V_CCOPT="-std1 $V_CCOPT"
3116			    ;;
3117
3118		    *)
3119			    { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
3120echo "$as_me: error: see the INSTALL doc for more info" >&2;}
3121   { (exit 1); exit 1; }; }
3122			    ;;
3123		    esac
3124	    fi
3125	    V_INCLS="$V_INCLS -I/usr/local/include"
3126	    LDFLAGS="$LDFLAGS -L/usr/local/lib"
3127
3128	    case "$host_os" in
3129
3130	    irix*)
3131		    V_CCOPT="$V_CCOPT -xansi -signed -g3"
3132		    ;;
3133
3134	    osf*)
3135	    	    #
3136		    # Presumed to be DEC OSF/1, Digital UNIX, or
3137		    # Tru64 UNIX.
3138		    #
3139		    V_CCOPT="$V_CCOPT -g3"
3140		    ;;
3141
3142	    ultrix*)
3143		    { echo "$as_me:$LINENO: checking that Ultrix $CC hacks const in prototypes" >&5
3144echo $ECHO_N "checking that Ultrix $CC hacks const in prototypes... $ECHO_C" >&6; }
3145		    if test "${ac_cv_lbl_cc_const_proto+set}" = set; then
3146  echo $ECHO_N "(cached) $ECHO_C" >&6
3147else
3148  cat >conftest.$ac_ext <<_ACEOF
3149/* confdefs.h.  */
3150_ACEOF
3151cat confdefs.h >>conftest.$ac_ext
3152cat >>conftest.$ac_ext <<_ACEOF
3153/* end confdefs.h.  */
3154#include <sys/types.h>
3155int
3156main ()
3157{
3158struct a { int b; };
3159			    void c(const struct a *)
3160  ;
3161  return 0;
3162}
3163_ACEOF
3164rm -f conftest.$ac_objext
3165if { (ac_try="$ac_compile"
3166case "(($ac_try" in
3167  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3168  *) ac_try_echo=$ac_try;;
3169esac
3170eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3171  (eval "$ac_compile") 2>conftest.er1
3172  ac_status=$?
3173  grep -v '^ *+' conftest.er1 >conftest.err
3174  rm -f conftest.er1
3175  cat conftest.err >&5
3176  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3177  (exit $ac_status); } && {
3178	 test -z "$ac_c_werror_flag" ||
3179	 test ! -s conftest.err
3180       } && test -s conftest.$ac_objext; then
3181  ac_cv_lbl_cc_const_proto=yes
3182else
3183  echo "$as_me: failed program was:" >&5
3184sed 's/^/| /' conftest.$ac_ext >&5
3185
3186	ac_cv_lbl_cc_const_proto=no
3187fi
3188
3189rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3190fi
3191
3192		    { echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_const_proto" >&5
3193echo "${ECHO_T}$ac_cv_lbl_cc_const_proto" >&6; }
3194		    if test $ac_cv_lbl_cc_const_proto = no ; then
3195
3196cat >>confdefs.h <<\_ACEOF
3197#define const
3198_ACEOF
3199
3200		    fi
3201		    ;;
3202	    esac
3203    fi
3204
3205
3206    if test "$GCC" = yes ; then
3207	    #
3208	    # On platforms where we build a shared library:
3209	    #
3210	    #	add options to generate position-independent code,
3211	    #	if necessary (it's the default in AIX and Darwin/OS X);
3212	    #
3213	    #	define option to set the soname of the shared library,
3214	    #	if the OS supports that;
3215	    #
3216	    #	add options to specify, at link time, a directory to
3217	    #	add to the run-time search path, if that's necessary.
3218	    #
3219	    V_SHLIB_CMD="\$(CC)"
3220	    V_SHLIB_OPT="-shared"
3221	    case "$host_os" in
3222
3223	    aix*)
3224		    ;;
3225
3226	    freebsd*|netbsd*|openbsd*|dragonfly*|linux*|osf*)
3227	    	    #
3228		    # Platforms where the linker is the GNU linker
3229		    # or accepts command-line arguments like
3230		    # those the GNU linker accepts.
3231		    #
3232		    V_CCOPT="$V_CCOPT -fpic"
3233		    V_SONAME_OPT="-Wl,-soname,"
3234		    V_RPATH_OPT="-Wl,-rpath,"
3235		    ;;
3236
3237	    hpux*)
3238		    V_CCOPT="$V_CCOPT -fpic"
3239	    	    #
3240		    # XXX - this assumes GCC is using the HP linker,
3241		    # rather than the GNU linker, and that the "+h"
3242		    # option is used on all HP-UX platforms, both .sl
3243		    # and .so.
3244		    #
3245		    V_SONAME_OPT="-Wl,+h,"
3246		    #
3247		    # By default, directories specifed with -L
3248		    # are added to the run-time search path, so
3249		    # we don't add them in pcap-config.
3250		    #
3251		    ;;
3252
3253	    solaris*)
3254		    V_CCOPT="$V_CCOPT -fpic"
3255		    #
3256		    # XXX - this assumes GCC is using the Sun linker,
3257		    # rather than the GNU linker.
3258		    #
3259		    V_SONAME_OPT="-Wl,-h,"
3260		    V_RPATH_OPT="-Wl,-R,"
3261		    ;;
3262	    esac
3263    else
3264	    #
3265	    # Set the appropriate compiler flags and, on platforms
3266	    # where we build a shared library:
3267	    #
3268	    #	add options to generate position-independent code,
3269	    #	if necessary (it's the default in Darwin/OS X);
3270	    #
3271	    #	if we generate ".so" shared libraries, define the
3272	    #	appropriate options for building the shared library;
3273	    #
3274	    #	add options to specify, at link time, a directory to
3275	    #	add to the run-time search path, if that's necessary.
3276	    #
3277	    # Note: spaces after V_SONAME_OPT are significant; on
3278	    # some platforms the soname is passed with a GCC-like
3279	    # "-Wl,-soname,{soname}" option, with the soname part
3280	    # of the option, while on other platforms the C compiler
3281	    # driver takes it as a regular option with the soname
3282	    # following the option.  The same applies to V_RPATH_OPT.
3283	    #
3284	    case "$host_os" in
3285
3286	    aix*)
3287		    V_SHLIB_CMD="\$(CC)"
3288		    V_SHLIB_OPT="-G -bnoentry -bexpall"
3289		    ;;
3290
3291	    freebsd*|netbsd*|openbsd*|dragonfly*|linux*)
3292		    #
3293		    # "cc" is GCC.
3294		    #
3295		    V_CCOPT="$V_CCOPT -fpic"
3296		    V_SHLIB_CMD="\$(CC)"
3297		    V_SHLIB_OPT="-shared"
3298		    V_SONAME_OPT="-Wl,-soname,"
3299		    V_RPATH_OPT="-Wl,-rpath,"
3300		    ;;
3301
3302	    hpux*)
3303		    V_CCOPT="$V_CCOPT +z"
3304		    V_SHLIB_CMD="\$(LD)"
3305		    V_SHLIB_OPT="-b"
3306		    V_SONAME_OPT="+h "
3307		    #
3308		    # By default, directories specifed with -L
3309		    # are added to the run-time search path, so
3310		    # we don't add them in pcap-config.
3311		    #
3312		    ;;
3313
3314	    osf*)
3315	    	    #
3316		    # Presumed to be DEC OSF/1, Digital UNIX, or
3317		    # Tru64 UNIX.
3318		    #
3319		    V_SHLIB_CMD="\$(CC)"
3320		    V_SHLIB_OPT="-shared"
3321		    V_SONAME_OPT="-soname "
3322		    V_RPATH_OPT="-rpath "
3323		    ;;
3324
3325	    solaris*)
3326		    V_CCOPT="$V_CCOPT -Kpic"
3327		    V_SHLIB_CMD="\$(CC)"
3328		    V_SHLIB_OPT="-G"
3329		    V_SONAME_OPT="-h "
3330		    V_RPATH_OPT="-R"
3331		    ;;
3332	    esac
3333    fi
3334
3335{ echo "$as_me:$LINENO: checking for inline" >&5
3336echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
3337    save_CFLAGS="$CFLAGS"
3338    CFLAGS="$V_CCOPT"
3339    if test "${ac_cv_lbl_inline+set}" = set; then
3340  echo $ECHO_N "(cached) $ECHO_C" >&6
3341else
3342
3343	ac_cv_lbl_inline=""
3344	ac_lbl_cc_inline=no
3345	for ac_lbl_inline in inline __inline__ __inline
3346	do
3347	    cat >conftest.$ac_ext <<_ACEOF
3348/* confdefs.h.  */
3349_ACEOF
3350cat confdefs.h >>conftest.$ac_ext
3351cat >>conftest.$ac_ext <<_ACEOF
3352/* end confdefs.h.  */
3353#define inline $ac_lbl_inline
3354		static inline struct iltest *foo(void);
3355		struct iltest {
3356		    int iltest1;
3357		    int iltest2;
3358		};
3359
3360		static inline struct iltest *
3361		foo()
3362		{
3363		    static struct iltest xxx;
3364
3365		    return &xxx;
3366		}
3367int
3368main ()
3369{
3370
3371  ;
3372  return 0;
3373}
3374_ACEOF
3375rm -f conftest.$ac_objext
3376if { (ac_try="$ac_compile"
3377case "(($ac_try" in
3378  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3379  *) ac_try_echo=$ac_try;;
3380esac
3381eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3382  (eval "$ac_compile") 2>conftest.er1
3383  ac_status=$?
3384  grep -v '^ *+' conftest.er1 >conftest.err
3385  rm -f conftest.er1
3386  cat conftest.err >&5
3387  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3388  (exit $ac_status); } && {
3389	 test -z "$ac_c_werror_flag" ||
3390	 test ! -s conftest.err
3391       } && test -s conftest.$ac_objext; then
3392  ac_lbl_cc_inline=yes
3393else
3394  echo "$as_me: failed program was:" >&5
3395sed 's/^/| /' conftest.$ac_ext >&5
3396
3397
3398fi
3399
3400rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3401	    if test "$ac_lbl_cc_inline" = yes ; then
3402		break;
3403	    fi
3404	done
3405	if test "$ac_lbl_cc_inline" = yes ; then
3406	    ac_cv_lbl_inline=$ac_lbl_inline
3407	fi
3408fi
3409
3410    CFLAGS="$save_CFLAGS"
3411    if test ! -z "$ac_cv_lbl_inline" ; then
3412	{ echo "$as_me:$LINENO: result: $ac_cv_lbl_inline" >&5
3413echo "${ECHO_T}$ac_cv_lbl_inline" >&6; }
3414    else
3415	{ echo "$as_me:$LINENO: result: no" >&5
3416echo "${ECHO_T}no" >&6; }
3417    fi
3418
3419cat >>confdefs.h <<_ACEOF
3420#define inline $ac_cv_lbl_inline
3421_ACEOF
3422
3423
3424{ echo "$as_me:$LINENO: checking for __attribute__" >&5
3425echo $ECHO_N "checking for __attribute__... $ECHO_C" >&6; }
3426if test "${ac_cv___attribute__+set}" = set; then
3427  echo $ECHO_N "(cached) $ECHO_C" >&6
3428else
3429
3430cat >conftest.$ac_ext <<_ACEOF
3431/* confdefs.h.  */
3432_ACEOF
3433cat confdefs.h >>conftest.$ac_ext
3434cat >>conftest.$ac_ext <<_ACEOF
3435/* end confdefs.h.  */
3436
3437#include <stdlib.h>
3438
3439static void foo(void) __attribute__ ((noreturn));
3440
3441static void
3442foo(void)
3443{
3444  exit(1);
3445}
3446
3447int
3448main(int argc, char **argv)
3449{
3450  foo();
3451}
3452
3453_ACEOF
3454rm -f conftest.$ac_objext
3455if { (ac_try="$ac_compile"
3456case "(($ac_try" in
3457  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3458  *) ac_try_echo=$ac_try;;
3459esac
3460eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3461  (eval "$ac_compile") 2>conftest.er1
3462  ac_status=$?
3463  grep -v '^ *+' conftest.er1 >conftest.err
3464  rm -f conftest.er1
3465  cat conftest.err >&5
3466  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3467  (exit $ac_status); } && {
3468	 test -z "$ac_c_werror_flag" ||
3469	 test ! -s conftest.err
3470       } && test -s conftest.$ac_objext; then
3471  ac_cv___attribute__=yes
3472else
3473  echo "$as_me: failed program was:" >&5
3474sed 's/^/| /' conftest.$ac_ext >&5
3475
3476	ac_cv___attribute__=no
3477fi
3478
3479rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3480fi
3481
3482if test "$ac_cv___attribute__" = "yes"; then
3483
3484cat >>confdefs.h <<\_ACEOF
3485#define HAVE___ATTRIBUTE__ 1
3486_ACEOF
3487
3488  V_DEFS="$V_DEFS -D_U_=\"__attribute__((unused))\""
3489else
3490  V_DEFS="$V_DEFS -D_U_=\"\""
3491fi
3492{ echo "$as_me:$LINENO: result: $ac_cv___attribute__" >&5
3493echo "${ECHO_T}$ac_cv___attribute__" >&6; }
3494
3495
3496ac_ext=c
3497ac_cpp='$CPP $CPPFLAGS'
3498ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3499ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3500ac_compiler_gnu=$ac_cv_c_compiler_gnu
3501{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3502echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3503# On Suns, sometimes $CPP names a directory.
3504if test -n "$CPP" && test -d "$CPP"; then
3505  CPP=
3506fi
3507if test -z "$CPP"; then
3508  if test "${ac_cv_prog_CPP+set}" = set; then
3509  echo $ECHO_N "(cached) $ECHO_C" >&6
3510else
3511      # Double quotes because CPP needs to be expanded
3512    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3513    do
3514      ac_preproc_ok=false
3515for ac_c_preproc_warn_flag in '' yes
3516do
3517  # Use a header file that comes with gcc, so configuring glibc
3518  # with a fresh cross-compiler works.
3519  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3520  # <limits.h> exists even on freestanding compilers.
3521  # On the NeXT, cc -E runs the code through the compiler's parser,
3522  # not just through cpp. "Syntax error" is here to catch this case.
3523  cat >conftest.$ac_ext <<_ACEOF
3524/* confdefs.h.  */
3525_ACEOF
3526cat confdefs.h >>conftest.$ac_ext
3527cat >>conftest.$ac_ext <<_ACEOF
3528/* end confdefs.h.  */
3529#ifdef __STDC__
3530# include <limits.h>
3531#else
3532# include <assert.h>
3533#endif
3534		     Syntax error
3535_ACEOF
3536if { (ac_try="$ac_cpp conftest.$ac_ext"
3537case "(($ac_try" in
3538  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3539  *) ac_try_echo=$ac_try;;
3540esac
3541eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3542  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3543  ac_status=$?
3544  grep -v '^ *+' conftest.er1 >conftest.err
3545  rm -f conftest.er1
3546  cat conftest.err >&5
3547  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3548  (exit $ac_status); } >/dev/null && {
3549	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3550	 test ! -s conftest.err
3551       }; then
3552  :
3553else
3554  echo "$as_me: failed program was:" >&5
3555sed 's/^/| /' conftest.$ac_ext >&5
3556
3557  # Broken: fails on valid input.
3558continue
3559fi
3560
3561rm -f conftest.err conftest.$ac_ext
3562
3563  # OK, works on sane cases.  Now check whether nonexistent headers
3564  # can be detected and how.
3565  cat >conftest.$ac_ext <<_ACEOF
3566/* confdefs.h.  */
3567_ACEOF
3568cat confdefs.h >>conftest.$ac_ext
3569cat >>conftest.$ac_ext <<_ACEOF
3570/* end confdefs.h.  */
3571#include <ac_nonexistent.h>
3572_ACEOF
3573if { (ac_try="$ac_cpp conftest.$ac_ext"
3574case "(($ac_try" in
3575  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3576  *) ac_try_echo=$ac_try;;
3577esac
3578eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3579  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3580  ac_status=$?
3581  grep -v '^ *+' conftest.er1 >conftest.err
3582  rm -f conftest.er1
3583  cat conftest.err >&5
3584  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3585  (exit $ac_status); } >/dev/null && {
3586	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3587	 test ! -s conftest.err
3588       }; then
3589  # Broken: success on invalid input.
3590continue
3591else
3592  echo "$as_me: failed program was:" >&5
3593sed 's/^/| /' conftest.$ac_ext >&5
3594
3595  # Passes both tests.
3596ac_preproc_ok=:
3597break
3598fi
3599
3600rm -f conftest.err conftest.$ac_ext
3601
3602done
3603# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3604rm -f conftest.err conftest.$ac_ext
3605if $ac_preproc_ok; then
3606  break
3607fi
3608
3609    done
3610    ac_cv_prog_CPP=$CPP
3611
3612fi
3613  CPP=$ac_cv_prog_CPP
3614else
3615  ac_cv_prog_CPP=$CPP
3616fi
3617{ echo "$as_me:$LINENO: result: $CPP" >&5
3618echo "${ECHO_T}$CPP" >&6; }
3619ac_preproc_ok=false
3620for ac_c_preproc_warn_flag in '' yes
3621do
3622  # Use a header file that comes with gcc, so configuring glibc
3623  # with a fresh cross-compiler works.
3624  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3625  # <limits.h> exists even on freestanding compilers.
3626  # On the NeXT, cc -E runs the code through the compiler's parser,
3627  # not just through cpp. "Syntax error" is here to catch this case.
3628  cat >conftest.$ac_ext <<_ACEOF
3629/* confdefs.h.  */
3630_ACEOF
3631cat confdefs.h >>conftest.$ac_ext
3632cat >>conftest.$ac_ext <<_ACEOF
3633/* end confdefs.h.  */
3634#ifdef __STDC__
3635# include <limits.h>
3636#else
3637# include <assert.h>
3638#endif
3639		     Syntax error
3640_ACEOF
3641if { (ac_try="$ac_cpp conftest.$ac_ext"
3642case "(($ac_try" in
3643  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3644  *) ac_try_echo=$ac_try;;
3645esac
3646eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3647  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3648  ac_status=$?
3649  grep -v '^ *+' conftest.er1 >conftest.err
3650  rm -f conftest.er1
3651  cat conftest.err >&5
3652  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3653  (exit $ac_status); } >/dev/null && {
3654	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3655	 test ! -s conftest.err
3656       }; then
3657  :
3658else
3659  echo "$as_me: failed program was:" >&5
3660sed 's/^/| /' conftest.$ac_ext >&5
3661
3662  # Broken: fails on valid input.
3663continue
3664fi
3665
3666rm -f conftest.err conftest.$ac_ext
3667
3668  # OK, works on sane cases.  Now check whether nonexistent headers
3669  # can be detected and how.
3670  cat >conftest.$ac_ext <<_ACEOF
3671/* confdefs.h.  */
3672_ACEOF
3673cat confdefs.h >>conftest.$ac_ext
3674cat >>conftest.$ac_ext <<_ACEOF
3675/* end confdefs.h.  */
3676#include <ac_nonexistent.h>
3677_ACEOF
3678if { (ac_try="$ac_cpp conftest.$ac_ext"
3679case "(($ac_try" in
3680  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3681  *) ac_try_echo=$ac_try;;
3682esac
3683eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3684  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3685  ac_status=$?
3686  grep -v '^ *+' conftest.er1 >conftest.err
3687  rm -f conftest.er1
3688  cat conftest.err >&5
3689  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3690  (exit $ac_status); } >/dev/null && {
3691	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3692	 test ! -s conftest.err
3693       }; then
3694  # Broken: success on invalid input.
3695continue
3696else
3697  echo "$as_me: failed program was:" >&5
3698sed 's/^/| /' conftest.$ac_ext >&5
3699
3700  # Passes both tests.
3701ac_preproc_ok=:
3702break
3703fi
3704
3705rm -f conftest.err conftest.$ac_ext
3706
3707done
3708# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3709rm -f conftest.err conftest.$ac_ext
3710if $ac_preproc_ok; then
3711  :
3712else
3713  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3714See \`config.log' for more details." >&5
3715echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3716See \`config.log' for more details." >&2;}
3717   { (exit 1); exit 1; }; }
3718fi
3719
3720ac_ext=c
3721ac_cpp='$CPP $CPPFLAGS'
3722ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3723ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3724ac_compiler_gnu=$ac_cv_c_compiler_gnu
3725
3726
3727{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3728echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3729if test "${ac_cv_path_GREP+set}" = set; then
3730  echo $ECHO_N "(cached) $ECHO_C" >&6
3731else
3732  # Extract the first word of "grep ggrep" to use in msg output
3733if test -z "$GREP"; then
3734set dummy grep ggrep; ac_prog_name=$2
3735if test "${ac_cv_path_GREP+set}" = set; then
3736  echo $ECHO_N "(cached) $ECHO_C" >&6
3737else
3738  ac_path_GREP_found=false
3739# Loop through the user's path and test for each of PROGNAME-LIST
3740as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3741for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3742do
3743  IFS=$as_save_IFS
3744  test -z "$as_dir" && as_dir=.
3745  for ac_prog in grep ggrep; do
3746  for ac_exec_ext in '' $ac_executable_extensions; do
3747    ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3748    { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3749    # Check for GNU ac_path_GREP and select it if it is found.
3750  # Check for GNU $ac_path_GREP
3751case `"$ac_path_GREP" --version 2>&1` in
3752*GNU*)
3753  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3754*)
3755  ac_count=0
3756  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3757  while :
3758  do
3759    cat "conftest.in" "conftest.in" >"conftest.tmp"
3760    mv "conftest.tmp" "conftest.in"
3761    cp "conftest.in" "conftest.nl"
3762    echo 'GREP' >> "conftest.nl"
3763    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3764    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3765    ac_count=`expr $ac_count + 1`
3766    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3767      # Best one so far, save it but keep looking for a better one
3768      ac_cv_path_GREP="$ac_path_GREP"
3769      ac_path_GREP_max=$ac_count
3770    fi
3771    # 10*(2^10) chars as input seems more than enough
3772    test $ac_count -gt 10 && break
3773  done
3774  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3775esac
3776
3777
3778    $ac_path_GREP_found && break 3
3779  done
3780done
3781
3782done
3783IFS=$as_save_IFS
3784
3785
3786fi
3787
3788GREP="$ac_cv_path_GREP"
3789if test -z "$GREP"; then
3790  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3791echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3792   { (exit 1); exit 1; }; }
3793fi
3794
3795else
3796  ac_cv_path_GREP=$GREP
3797fi
3798
3799
3800fi
3801{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3802echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3803 GREP="$ac_cv_path_GREP"
3804
3805
3806{ echo "$as_me:$LINENO: checking for egrep" >&5
3807echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3808if test "${ac_cv_path_EGREP+set}" = set; then
3809  echo $ECHO_N "(cached) $ECHO_C" >&6
3810else
3811  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3812   then ac_cv_path_EGREP="$GREP -E"
3813   else
3814     # Extract the first word of "egrep" to use in msg output
3815if test -z "$EGREP"; then
3816set dummy egrep; ac_prog_name=$2
3817if test "${ac_cv_path_EGREP+set}" = set; then
3818  echo $ECHO_N "(cached) $ECHO_C" >&6
3819else
3820  ac_path_EGREP_found=false
3821# Loop through the user's path and test for each of PROGNAME-LIST
3822as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3823for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3824do
3825  IFS=$as_save_IFS
3826  test -z "$as_dir" && as_dir=.
3827  for ac_prog in egrep; do
3828  for ac_exec_ext in '' $ac_executable_extensions; do
3829    ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3830    { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3831    # Check for GNU ac_path_EGREP and select it if it is found.
3832  # Check for GNU $ac_path_EGREP
3833case `"$ac_path_EGREP" --version 2>&1` in
3834*GNU*)
3835  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3836*)
3837  ac_count=0
3838  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3839  while :
3840  do
3841    cat "conftest.in" "conftest.in" >"conftest.tmp"
3842    mv "conftest.tmp" "conftest.in"
3843    cp "conftest.in" "conftest.nl"
3844    echo 'EGREP' >> "conftest.nl"
3845    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3846    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3847    ac_count=`expr $ac_count + 1`
3848    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3849      # Best one so far, save it but keep looking for a better one
3850      ac_cv_path_EGREP="$ac_path_EGREP"
3851      ac_path_EGREP_max=$ac_count
3852    fi
3853    # 10*(2^10) chars as input seems more than enough
3854    test $ac_count -gt 10 && break
3855  done
3856  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3857esac
3858
3859
3860    $ac_path_EGREP_found && break 3
3861  done
3862done
3863
3864done
3865IFS=$as_save_IFS
3866
3867
3868fi
3869
3870EGREP="$ac_cv_path_EGREP"
3871if test -z "$EGREP"; then
3872  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3873echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3874   { (exit 1); exit 1; }; }
3875fi
3876
3877else
3878  ac_cv_path_EGREP=$EGREP
3879fi
3880
3881
3882   fi
3883fi
3884{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3885echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3886 EGREP="$ac_cv_path_EGREP"
3887
3888
3889{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3890echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3891if test "${ac_cv_header_stdc+set}" = set; then
3892  echo $ECHO_N "(cached) $ECHO_C" >&6
3893else
3894  cat >conftest.$ac_ext <<_ACEOF
3895/* confdefs.h.  */
3896_ACEOF
3897cat confdefs.h >>conftest.$ac_ext
3898cat >>conftest.$ac_ext <<_ACEOF
3899/* end confdefs.h.  */
3900#include <stdlib.h>
3901#include <stdarg.h>
3902#include <string.h>
3903#include <float.h>
3904
3905int
3906main ()
3907{
3908
3909  ;
3910  return 0;
3911}
3912_ACEOF
3913rm -f conftest.$ac_objext
3914if { (ac_try="$ac_compile"
3915case "(($ac_try" in
3916  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3917  *) ac_try_echo=$ac_try;;
3918esac
3919eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3920  (eval "$ac_compile") 2>conftest.er1
3921  ac_status=$?
3922  grep -v '^ *+' conftest.er1 >conftest.err
3923  rm -f conftest.er1
3924  cat conftest.err >&5
3925  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3926  (exit $ac_status); } && {
3927	 test -z "$ac_c_werror_flag" ||
3928	 test ! -s conftest.err
3929       } && test -s conftest.$ac_objext; then
3930  ac_cv_header_stdc=yes
3931else
3932  echo "$as_me: failed program was:" >&5
3933sed 's/^/| /' conftest.$ac_ext >&5
3934
3935	ac_cv_header_stdc=no
3936fi
3937
3938rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3939
3940if test $ac_cv_header_stdc = yes; then
3941  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3942  cat >conftest.$ac_ext <<_ACEOF
3943/* confdefs.h.  */
3944_ACEOF
3945cat confdefs.h >>conftest.$ac_ext
3946cat >>conftest.$ac_ext <<_ACEOF
3947/* end confdefs.h.  */
3948#include <string.h>
3949
3950_ACEOF
3951if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3952  $EGREP "memchr" >/dev/null 2>&1; then
3953  :
3954else
3955  ac_cv_header_stdc=no
3956fi
3957rm -f -r conftest*
3958
3959fi
3960
3961if test $ac_cv_header_stdc = yes; then
3962  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3963  cat >conftest.$ac_ext <<_ACEOF
3964/* confdefs.h.  */
3965_ACEOF
3966cat confdefs.h >>conftest.$ac_ext
3967cat >>conftest.$ac_ext <<_ACEOF
3968/* end confdefs.h.  */
3969#include <stdlib.h>
3970
3971_ACEOF
3972if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3973  $EGREP "free" >/dev/null 2>&1; then
3974  :
3975else
3976  ac_cv_header_stdc=no
3977fi
3978rm -f -r conftest*
3979
3980fi
3981
3982if test $ac_cv_header_stdc = yes; then
3983  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3984  if test "$cross_compiling" = yes; then
3985  :
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 <ctype.h>
3994#include <stdlib.h>
3995#if ((' ' & 0x0FF) == 0x020)
3996# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3997# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3998#else
3999# define ISLOWER(c) \
4000		   (('a' <= (c) && (c) <= 'i') \
4001		     || ('j' <= (c) && (c) <= 'r') \
4002		     || ('s' <= (c) && (c) <= 'z'))
4003# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4004#endif
4005
4006#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4007int
4008main ()
4009{
4010  int i;
4011  for (i = 0; i < 256; i++)
4012    if (XOR (islower (i), ISLOWER (i))
4013	|| toupper (i) != TOUPPER (i))
4014      return 2;
4015  return 0;
4016}
4017_ACEOF
4018rm -f conftest$ac_exeext
4019if { (ac_try="$ac_link"
4020case "(($ac_try" in
4021  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4022  *) ac_try_echo=$ac_try;;
4023esac
4024eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4025  (eval "$ac_link") 2>&5
4026  ac_status=$?
4027  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4028  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4029  { (case "(($ac_try" in
4030  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4031  *) ac_try_echo=$ac_try;;
4032esac
4033eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4034  (eval "$ac_try") 2>&5
4035  ac_status=$?
4036  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4037  (exit $ac_status); }; }; then
4038  :
4039else
4040  echo "$as_me: program exited with status $ac_status" >&5
4041echo "$as_me: failed program was:" >&5
4042sed 's/^/| /' conftest.$ac_ext >&5
4043
4044( exit $ac_status )
4045ac_cv_header_stdc=no
4046fi
4047rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4048fi
4049
4050
4051fi
4052fi
4053{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4054echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4055if test $ac_cv_header_stdc = yes; then
4056
4057cat >>confdefs.h <<\_ACEOF
4058#define STDC_HEADERS 1
4059_ACEOF
4060
4061fi
4062
4063# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4064
4065
4066
4067
4068
4069
4070
4071
4072
4073for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4074		  inttypes.h stdint.h unistd.h
4075do
4076as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4077{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4078echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4079if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4080  echo $ECHO_N "(cached) $ECHO_C" >&6
4081else
4082  cat >conftest.$ac_ext <<_ACEOF
4083/* confdefs.h.  */
4084_ACEOF
4085cat confdefs.h >>conftest.$ac_ext
4086cat >>conftest.$ac_ext <<_ACEOF
4087/* end confdefs.h.  */
4088$ac_includes_default
4089
4090#include <$ac_header>
4091_ACEOF
4092rm -f conftest.$ac_objext
4093if { (ac_try="$ac_compile"
4094case "(($ac_try" in
4095  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4096  *) ac_try_echo=$ac_try;;
4097esac
4098eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4099  (eval "$ac_compile") 2>conftest.er1
4100  ac_status=$?
4101  grep -v '^ *+' conftest.er1 >conftest.err
4102  rm -f conftest.er1
4103  cat conftest.err >&5
4104  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4105  (exit $ac_status); } && {
4106	 test -z "$ac_c_werror_flag" ||
4107	 test ! -s conftest.err
4108       } && test -s conftest.$ac_objext; then
4109  eval "$as_ac_Header=yes"
4110else
4111  echo "$as_me: failed program was:" >&5
4112sed 's/^/| /' conftest.$ac_ext >&5
4113
4114	eval "$as_ac_Header=no"
4115fi
4116
4117rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4118fi
4119ac_res=`eval echo '${'$as_ac_Header'}'`
4120	       { echo "$as_me:$LINENO: result: $ac_res" >&5
4121echo "${ECHO_T}$ac_res" >&6; }
4122if test `eval echo '${'$as_ac_Header'}'` = yes; then
4123  cat >>confdefs.h <<_ACEOF
4124#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4125_ACEOF
4126
4127fi
4128
4129done
4130
4131
4132
4133for ac_header in sys/bitypes.h
4134do
4135as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4136if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4137  { echo "$as_me:$LINENO: checking for $ac_header" >&5
4138echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4139if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4140  echo $ECHO_N "(cached) $ECHO_C" >&6
4141fi
4142ac_res=`eval echo '${'$as_ac_Header'}'`
4143	       { echo "$as_me:$LINENO: result: $ac_res" >&5
4144echo "${ECHO_T}$ac_res" >&6; }
4145else
4146  # Is the header compilable?
4147{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
4148echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4149cat >conftest.$ac_ext <<_ACEOF
4150/* confdefs.h.  */
4151_ACEOF
4152cat confdefs.h >>conftest.$ac_ext
4153cat >>conftest.$ac_ext <<_ACEOF
4154/* end confdefs.h.  */
4155$ac_includes_default
4156#include <$ac_header>
4157_ACEOF
4158rm -f conftest.$ac_objext
4159if { (ac_try="$ac_compile"
4160case "(($ac_try" in
4161  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4162  *) ac_try_echo=$ac_try;;
4163esac
4164eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4165  (eval "$ac_compile") 2>conftest.er1
4166  ac_status=$?
4167  grep -v '^ *+' conftest.er1 >conftest.err
4168  rm -f conftest.er1
4169  cat conftest.err >&5
4170  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4171  (exit $ac_status); } && {
4172	 test -z "$ac_c_werror_flag" ||
4173	 test ! -s conftest.err
4174       } && test -s conftest.$ac_objext; then
4175  ac_header_compiler=yes
4176else
4177  echo "$as_me: failed program was:" >&5
4178sed 's/^/| /' conftest.$ac_ext >&5
4179
4180	ac_header_compiler=no
4181fi
4182
4183rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4184{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4185echo "${ECHO_T}$ac_header_compiler" >&6; }
4186
4187# Is the header present?
4188{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
4189echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4190cat >conftest.$ac_ext <<_ACEOF
4191/* confdefs.h.  */
4192_ACEOF
4193cat confdefs.h >>conftest.$ac_ext
4194cat >>conftest.$ac_ext <<_ACEOF
4195/* end confdefs.h.  */
4196#include <$ac_header>
4197_ACEOF
4198if { (ac_try="$ac_cpp conftest.$ac_ext"
4199case "(($ac_try" in
4200  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4201  *) ac_try_echo=$ac_try;;
4202esac
4203eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4204  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4205  ac_status=$?
4206  grep -v '^ *+' conftest.er1 >conftest.err
4207  rm -f conftest.er1
4208  cat conftest.err >&5
4209  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4210  (exit $ac_status); } >/dev/null && {
4211	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4212	 test ! -s conftest.err
4213       }; then
4214  ac_header_preproc=yes
4215else
4216  echo "$as_me: failed program was:" >&5
4217sed 's/^/| /' conftest.$ac_ext >&5
4218
4219  ac_header_preproc=no
4220fi
4221
4222rm -f conftest.err conftest.$ac_ext
4223{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4224echo "${ECHO_T}$ac_header_preproc" >&6; }
4225
4226# So?  What about this header?
4227case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4228  yes:no: )
4229    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4230echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4231    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4232echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4233    ac_header_preproc=yes
4234    ;;
4235  no:yes:* )
4236    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4237echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4238    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4239echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4240    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4241echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4242    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4243echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4244    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4245echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4246    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4247echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4248
4249    ;;
4250esac
4251{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4252echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4253if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4254  echo $ECHO_N "(cached) $ECHO_C" >&6
4255else
4256  eval "$as_ac_Header=\$ac_header_preproc"
4257fi
4258ac_res=`eval echo '${'$as_ac_Header'}'`
4259	       { echo "$as_me:$LINENO: result: $ac_res" >&5
4260echo "${ECHO_T}$ac_res" >&6; }
4261
4262fi
4263if test `eval echo '${'$as_ac_Header'}'` = yes; then
4264  cat >>confdefs.h <<_ACEOF
4265#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4266_ACEOF
4267
4268fi
4269
4270done
4271
4272
4273{ echo "$as_me:$LINENO: checking for int8_t" >&5
4274echo $ECHO_N "checking for int8_t... $ECHO_C" >&6; }
4275if test "${ac_cv_type_int8_t+set}" = set; then
4276  echo $ECHO_N "(cached) $ECHO_C" >&6
4277else
4278  cat >conftest.$ac_ext <<_ACEOF
4279/* confdefs.h.  */
4280_ACEOF
4281cat confdefs.h >>conftest.$ac_ext
4282cat >>conftest.$ac_ext <<_ACEOF
4283/* end confdefs.h.  */
4284$ac_includes_default
4285#ifdef HAVE_SYS_BITYPES_H
4286#include <sys/bitypes.h>
4287#endif
4288
4289typedef int8_t ac__type_new_;
4290int
4291main ()
4292{
4293if ((ac__type_new_ *) 0)
4294  return 0;
4295if (sizeof (ac__type_new_))
4296  return 0;
4297  ;
4298  return 0;
4299}
4300_ACEOF
4301rm -f conftest.$ac_objext
4302if { (ac_try="$ac_compile"
4303case "(($ac_try" in
4304  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4305  *) ac_try_echo=$ac_try;;
4306esac
4307eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4308  (eval "$ac_compile") 2>conftest.er1
4309  ac_status=$?
4310  grep -v '^ *+' conftest.er1 >conftest.err
4311  rm -f conftest.er1
4312  cat conftest.err >&5
4313  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4314  (exit $ac_status); } && {
4315	 test -z "$ac_c_werror_flag" ||
4316	 test ! -s conftest.err
4317       } && test -s conftest.$ac_objext; then
4318  ac_cv_type_int8_t=yes
4319else
4320  echo "$as_me: failed program was:" >&5
4321sed 's/^/| /' conftest.$ac_ext >&5
4322
4323	ac_cv_type_int8_t=no
4324fi
4325
4326rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4327fi
4328{ echo "$as_me:$LINENO: result: $ac_cv_type_int8_t" >&5
4329echo "${ECHO_T}$ac_cv_type_int8_t" >&6; }
4330if test $ac_cv_type_int8_t = yes; then
4331  :
4332else
4333
4334cat >>confdefs.h <<\_ACEOF
4335#define int8_t signed char
4336_ACEOF
4337
4338fi
4339
4340{ echo "$as_me:$LINENO: checking for u_int8_t" >&5
4341echo $ECHO_N "checking for u_int8_t... $ECHO_C" >&6; }
4342if test "${ac_cv_type_u_int8_t+set}" = set; then
4343  echo $ECHO_N "(cached) $ECHO_C" >&6
4344else
4345  cat >conftest.$ac_ext <<_ACEOF
4346/* confdefs.h.  */
4347_ACEOF
4348cat confdefs.h >>conftest.$ac_ext
4349cat >>conftest.$ac_ext <<_ACEOF
4350/* end confdefs.h.  */
4351$ac_includes_default
4352#ifdef HAVE_SYS_BITYPES_H
4353#include <sys/bitypes.h>
4354#endif
4355
4356typedef u_int8_t ac__type_new_;
4357int
4358main ()
4359{
4360if ((ac__type_new_ *) 0)
4361  return 0;
4362if (sizeof (ac__type_new_))
4363  return 0;
4364  ;
4365  return 0;
4366}
4367_ACEOF
4368rm -f conftest.$ac_objext
4369if { (ac_try="$ac_compile"
4370case "(($ac_try" in
4371  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4372  *) ac_try_echo=$ac_try;;
4373esac
4374eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4375  (eval "$ac_compile") 2>conftest.er1
4376  ac_status=$?
4377  grep -v '^ *+' conftest.er1 >conftest.err
4378  rm -f conftest.er1
4379  cat conftest.err >&5
4380  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4381  (exit $ac_status); } && {
4382	 test -z "$ac_c_werror_flag" ||
4383	 test ! -s conftest.err
4384       } && test -s conftest.$ac_objext; then
4385  ac_cv_type_u_int8_t=yes
4386else
4387  echo "$as_me: failed program was:" >&5
4388sed 's/^/| /' conftest.$ac_ext >&5
4389
4390	ac_cv_type_u_int8_t=no
4391fi
4392
4393rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4394fi
4395{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int8_t" >&5
4396echo "${ECHO_T}$ac_cv_type_u_int8_t" >&6; }
4397if test $ac_cv_type_u_int8_t = yes; then
4398  :
4399else
4400
4401cat >>confdefs.h <<\_ACEOF
4402#define u_int8_t unsigned char
4403_ACEOF
4404
4405fi
4406
4407{ echo "$as_me:$LINENO: checking for int16_t" >&5
4408echo $ECHO_N "checking for int16_t... $ECHO_C" >&6; }
4409if test "${ac_cv_type_int16_t+set}" = set; then
4410  echo $ECHO_N "(cached) $ECHO_C" >&6
4411else
4412  cat >conftest.$ac_ext <<_ACEOF
4413/* confdefs.h.  */
4414_ACEOF
4415cat confdefs.h >>conftest.$ac_ext
4416cat >>conftest.$ac_ext <<_ACEOF
4417/* end confdefs.h.  */
4418$ac_includes_default
4419typedef int16_t ac__type_new_;
4420int
4421main ()
4422{
4423if ((ac__type_new_ *) 0)
4424  return 0;
4425if (sizeof (ac__type_new_))
4426  return 0;
4427  ;
4428  return 0;
4429}
4430_ACEOF
4431rm -f conftest.$ac_objext
4432if { (ac_try="$ac_compile"
4433case "(($ac_try" in
4434  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4435  *) ac_try_echo=$ac_try;;
4436esac
4437eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4438  (eval "$ac_compile") 2>conftest.er1
4439  ac_status=$?
4440  grep -v '^ *+' conftest.er1 >conftest.err
4441  rm -f conftest.er1
4442  cat conftest.err >&5
4443  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4444  (exit $ac_status); } && {
4445	 test -z "$ac_c_werror_flag" ||
4446	 test ! -s conftest.err
4447       } && test -s conftest.$ac_objext; then
4448  ac_cv_type_int16_t=yes
4449else
4450  echo "$as_me: failed program was:" >&5
4451sed 's/^/| /' conftest.$ac_ext >&5
4452
4453	ac_cv_type_int16_t=no
4454fi
4455
4456rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4457fi
4458{ echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
4459echo "${ECHO_T}$ac_cv_type_int16_t" >&6; }
4460if test $ac_cv_type_int16_t = yes; then
4461  :
4462else
4463
4464cat >>confdefs.h <<\_ACEOF
4465#define int16_t short
4466_ACEOF
4467
4468	$ac_includes_default
4469#ifdef HAVE_SYS_BITYPES_H
4470#include <sys/bitypes.h>
4471#endif
4472fi
4473
4474{ echo "$as_me:$LINENO: checking for u_int16_t" >&5
4475echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6; }
4476if test "${ac_cv_type_u_int16_t+set}" = set; then
4477  echo $ECHO_N "(cached) $ECHO_C" >&6
4478else
4479  cat >conftest.$ac_ext <<_ACEOF
4480/* confdefs.h.  */
4481_ACEOF
4482cat confdefs.h >>conftest.$ac_ext
4483cat >>conftest.$ac_ext <<_ACEOF
4484/* end confdefs.h.  */
4485$ac_includes_default
4486#ifdef HAVE_SYS_BITYPES_H
4487#include <sys/bitypes.h>
4488#endif
4489
4490typedef u_int16_t ac__type_new_;
4491int
4492main ()
4493{
4494if ((ac__type_new_ *) 0)
4495  return 0;
4496if (sizeof (ac__type_new_))
4497  return 0;
4498  ;
4499  return 0;
4500}
4501_ACEOF
4502rm -f conftest.$ac_objext
4503if { (ac_try="$ac_compile"
4504case "(($ac_try" in
4505  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4506  *) ac_try_echo=$ac_try;;
4507esac
4508eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4509  (eval "$ac_compile") 2>conftest.er1
4510  ac_status=$?
4511  grep -v '^ *+' conftest.er1 >conftest.err
4512  rm -f conftest.er1
4513  cat conftest.err >&5
4514  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4515  (exit $ac_status); } && {
4516	 test -z "$ac_c_werror_flag" ||
4517	 test ! -s conftest.err
4518       } && test -s conftest.$ac_objext; then
4519  ac_cv_type_u_int16_t=yes
4520else
4521  echo "$as_me: failed program was:" >&5
4522sed 's/^/| /' conftest.$ac_ext >&5
4523
4524	ac_cv_type_u_int16_t=no
4525fi
4526
4527rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4528fi
4529{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int16_t" >&5
4530echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6; }
4531if test $ac_cv_type_u_int16_t = yes; then
4532  :
4533else
4534
4535cat >>confdefs.h <<\_ACEOF
4536#define u_int16_t unsigned short
4537_ACEOF
4538
4539fi
4540
4541{ echo "$as_me:$LINENO: checking for int32_t" >&5
4542echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
4543if test "${ac_cv_type_int32_t+set}" = set; then
4544  echo $ECHO_N "(cached) $ECHO_C" >&6
4545else
4546  cat >conftest.$ac_ext <<_ACEOF
4547/* confdefs.h.  */
4548_ACEOF
4549cat confdefs.h >>conftest.$ac_ext
4550cat >>conftest.$ac_ext <<_ACEOF
4551/* end confdefs.h.  */
4552$ac_includes_default
4553#ifdef HAVE_SYS_BITYPES_H
4554#include <sys/bitypes.h>
4555#endif
4556
4557typedef int32_t ac__type_new_;
4558int
4559main ()
4560{
4561if ((ac__type_new_ *) 0)
4562  return 0;
4563if (sizeof (ac__type_new_))
4564  return 0;
4565  ;
4566  return 0;
4567}
4568_ACEOF
4569rm -f conftest.$ac_objext
4570if { (ac_try="$ac_compile"
4571case "(($ac_try" in
4572  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4573  *) ac_try_echo=$ac_try;;
4574esac
4575eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4576  (eval "$ac_compile") 2>conftest.er1
4577  ac_status=$?
4578  grep -v '^ *+' conftest.er1 >conftest.err
4579  rm -f conftest.er1
4580  cat conftest.err >&5
4581  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4582  (exit $ac_status); } && {
4583	 test -z "$ac_c_werror_flag" ||
4584	 test ! -s conftest.err
4585       } && test -s conftest.$ac_objext; then
4586  ac_cv_type_int32_t=yes
4587else
4588  echo "$as_me: failed program was:" >&5
4589sed 's/^/| /' conftest.$ac_ext >&5
4590
4591	ac_cv_type_int32_t=no
4592fi
4593
4594rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4595fi
4596{ echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
4597echo "${ECHO_T}$ac_cv_type_int32_t" >&6; }
4598if test $ac_cv_type_int32_t = yes; then
4599  :
4600else
4601
4602cat >>confdefs.h <<\_ACEOF
4603#define int32_t int
4604_ACEOF
4605
4606fi
4607
4608{ echo "$as_me:$LINENO: checking for u_int32_t" >&5
4609echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6; }
4610if test "${ac_cv_type_u_int32_t+set}" = set; then
4611  echo $ECHO_N "(cached) $ECHO_C" >&6
4612else
4613  cat >conftest.$ac_ext <<_ACEOF
4614/* confdefs.h.  */
4615_ACEOF
4616cat confdefs.h >>conftest.$ac_ext
4617cat >>conftest.$ac_ext <<_ACEOF
4618/* end confdefs.h.  */
4619$ac_includes_default
4620#ifdef HAVE_SYS_BITYPES_H
4621#include <sys/bitypes.h>
4622#endif
4623
4624typedef u_int32_t ac__type_new_;
4625int
4626main ()
4627{
4628if ((ac__type_new_ *) 0)
4629  return 0;
4630if (sizeof (ac__type_new_))
4631  return 0;
4632  ;
4633  return 0;
4634}
4635_ACEOF
4636rm -f conftest.$ac_objext
4637if { (ac_try="$ac_compile"
4638case "(($ac_try" in
4639  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4640  *) ac_try_echo=$ac_try;;
4641esac
4642eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4643  (eval "$ac_compile") 2>conftest.er1
4644  ac_status=$?
4645  grep -v '^ *+' conftest.er1 >conftest.err
4646  rm -f conftest.er1
4647  cat conftest.err >&5
4648  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4649  (exit $ac_status); } && {
4650	 test -z "$ac_c_werror_flag" ||
4651	 test ! -s conftest.err
4652       } && test -s conftest.$ac_objext; then
4653  ac_cv_type_u_int32_t=yes
4654else
4655  echo "$as_me: failed program was:" >&5
4656sed 's/^/| /' conftest.$ac_ext >&5
4657
4658	ac_cv_type_u_int32_t=no
4659fi
4660
4661rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4662fi
4663{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
4664echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6; }
4665if test $ac_cv_type_u_int32_t = yes; then
4666  :
4667else
4668
4669cat >>confdefs.h <<\_ACEOF
4670#define u_int32_t unsigned int
4671_ACEOF
4672
4673fi
4674
4675{ echo "$as_me:$LINENO: checking for int64_t" >&5
4676echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
4677if test "${ac_cv_type_int64_t+set}" = set; then
4678  echo $ECHO_N "(cached) $ECHO_C" >&6
4679else
4680  cat >conftest.$ac_ext <<_ACEOF
4681/* confdefs.h.  */
4682_ACEOF
4683cat confdefs.h >>conftest.$ac_ext
4684cat >>conftest.$ac_ext <<_ACEOF
4685/* end confdefs.h.  */
4686$ac_includes_default
4687#ifdef HAVE_SYS_BITYPES_H
4688#include <sys/bitypes.h>
4689#endif
4690
4691typedef int64_t ac__type_new_;
4692int
4693main ()
4694{
4695if ((ac__type_new_ *) 0)
4696  return 0;
4697if (sizeof (ac__type_new_))
4698  return 0;
4699  ;
4700  return 0;
4701}
4702_ACEOF
4703rm -f conftest.$ac_objext
4704if { (ac_try="$ac_compile"
4705case "(($ac_try" in
4706  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4707  *) ac_try_echo=$ac_try;;
4708esac
4709eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4710  (eval "$ac_compile") 2>conftest.er1
4711  ac_status=$?
4712  grep -v '^ *+' conftest.er1 >conftest.err
4713  rm -f conftest.er1
4714  cat conftest.err >&5
4715  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4716  (exit $ac_status); } && {
4717	 test -z "$ac_c_werror_flag" ||
4718	 test ! -s conftest.err
4719       } && test -s conftest.$ac_objext; then
4720  ac_cv_type_int64_t=yes
4721else
4722  echo "$as_me: failed program was:" >&5
4723sed 's/^/| /' conftest.$ac_ext >&5
4724
4725	ac_cv_type_int64_t=no
4726fi
4727
4728rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4729fi
4730{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
4731echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
4732if test $ac_cv_type_int64_t = yes; then
4733  :
4734else
4735
4736cat >>confdefs.h <<\_ACEOF
4737#define int64_t long long
4738_ACEOF
4739
4740fi
4741
4742{ echo "$as_me:$LINENO: checking for u_int64_t" >&5
4743echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
4744if test "${ac_cv_type_u_int64_t+set}" = set; then
4745  echo $ECHO_N "(cached) $ECHO_C" >&6
4746else
4747  cat >conftest.$ac_ext <<_ACEOF
4748/* confdefs.h.  */
4749_ACEOF
4750cat confdefs.h >>conftest.$ac_ext
4751cat >>conftest.$ac_ext <<_ACEOF
4752/* end confdefs.h.  */
4753$ac_includes_default
4754#ifdef HAVE_SYS_BITYPES_H
4755#include <sys/bitypes.h>
4756#endif
4757
4758typedef u_int64_t ac__type_new_;
4759int
4760main ()
4761{
4762if ((ac__type_new_ *) 0)
4763  return 0;
4764if (sizeof (ac__type_new_))
4765  return 0;
4766  ;
4767  return 0;
4768}
4769_ACEOF
4770rm -f conftest.$ac_objext
4771if { (ac_try="$ac_compile"
4772case "(($ac_try" in
4773  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4774  *) ac_try_echo=$ac_try;;
4775esac
4776eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4777  (eval "$ac_compile") 2>conftest.er1
4778  ac_status=$?
4779  grep -v '^ *+' conftest.er1 >conftest.err
4780  rm -f conftest.er1
4781  cat conftest.err >&5
4782  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4783  (exit $ac_status); } && {
4784	 test -z "$ac_c_werror_flag" ||
4785	 test ! -s conftest.err
4786       } && test -s conftest.$ac_objext; then
4787  ac_cv_type_u_int64_t=yes
4788else
4789  echo "$as_me: failed program was:" >&5
4790sed 's/^/| /' conftest.$ac_ext >&5
4791
4792	ac_cv_type_u_int64_t=no
4793fi
4794
4795rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4796fi
4797{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
4798echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
4799if test $ac_cv_type_u_int64_t = yes; then
4800  :
4801else
4802
4803cat >>confdefs.h <<\_ACEOF
4804#define u_int64_t unsigned long long
4805_ACEOF
4806
4807fi
4808
4809
4810#
4811# Try to arrange for large file support.
4812#
4813# Check whether --enable-largefile was given.
4814if test "${enable_largefile+set}" = set; then
4815  enableval=$enable_largefile;
4816fi
4817
4818if test "$enable_largefile" != no; then
4819
4820  { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4821echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
4822if test "${ac_cv_sys_largefile_CC+set}" = set; then
4823  echo $ECHO_N "(cached) $ECHO_C" >&6
4824else
4825  ac_cv_sys_largefile_CC=no
4826     if test "$GCC" != yes; then
4827       ac_save_CC=$CC
4828       while :; do
4829	 # IRIX 6.2 and later do not support large files by default,
4830	 # so use the C compiler's -n32 option if that helps.
4831	 cat >conftest.$ac_ext <<_ACEOF
4832/* confdefs.h.  */
4833_ACEOF
4834cat confdefs.h >>conftest.$ac_ext
4835cat >>conftest.$ac_ext <<_ACEOF
4836/* end confdefs.h.  */
4837#include <sys/types.h>
4838 /* Check that off_t can represent 2**63 - 1 correctly.
4839    We can't simply define LARGE_OFF_T to be 9223372036854775807,
4840    since some C++ compilers masquerading as C compilers
4841    incorrectly reject 9223372036854775807.  */
4842#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4843  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4844		       && LARGE_OFF_T % 2147483647 == 1)
4845		      ? 1 : -1];
4846int
4847main ()
4848{
4849
4850  ;
4851  return 0;
4852}
4853_ACEOF
4854	 rm -f conftest.$ac_objext
4855if { (ac_try="$ac_compile"
4856case "(($ac_try" in
4857  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4858  *) ac_try_echo=$ac_try;;
4859esac
4860eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4861  (eval "$ac_compile") 2>conftest.er1
4862  ac_status=$?
4863  grep -v '^ *+' conftest.er1 >conftest.err
4864  rm -f conftest.er1
4865  cat conftest.err >&5
4866  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4867  (exit $ac_status); } && {
4868	 test -z "$ac_c_werror_flag" ||
4869	 test ! -s conftest.err
4870       } && test -s conftest.$ac_objext; then
4871  break
4872else
4873  echo "$as_me: failed program was:" >&5
4874sed 's/^/| /' conftest.$ac_ext >&5
4875
4876
4877fi
4878
4879rm -f core conftest.err conftest.$ac_objext
4880	 CC="$CC -n32"
4881	 rm -f conftest.$ac_objext
4882if { (ac_try="$ac_compile"
4883case "(($ac_try" in
4884  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4885  *) ac_try_echo=$ac_try;;
4886esac
4887eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4888  (eval "$ac_compile") 2>conftest.er1
4889  ac_status=$?
4890  grep -v '^ *+' conftest.er1 >conftest.err
4891  rm -f conftest.er1
4892  cat conftest.err >&5
4893  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4894  (exit $ac_status); } && {
4895	 test -z "$ac_c_werror_flag" ||
4896	 test ! -s conftest.err
4897       } && test -s conftest.$ac_objext; then
4898  ac_cv_sys_largefile_CC=' -n32'; break
4899else
4900  echo "$as_me: failed program was:" >&5
4901sed 's/^/| /' conftest.$ac_ext >&5
4902
4903
4904fi
4905
4906rm -f core conftest.err conftest.$ac_objext
4907	 break
4908       done
4909       CC=$ac_save_CC
4910       rm -f conftest.$ac_ext
4911    fi
4912fi
4913{ echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4914echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
4915  if test "$ac_cv_sys_largefile_CC" != no; then
4916    CC=$CC$ac_cv_sys_largefile_CC
4917  fi
4918
4919  { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4920echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
4921if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4922  echo $ECHO_N "(cached) $ECHO_C" >&6
4923else
4924  while :; do
4925  cat >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#include <sys/types.h>
4932 /* Check that off_t can represent 2**63 - 1 correctly.
4933    We can't simply define LARGE_OFF_T to be 9223372036854775807,
4934    since some C++ compilers masquerading as C compilers
4935    incorrectly reject 9223372036854775807.  */
4936#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4937  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4938		       && LARGE_OFF_T % 2147483647 == 1)
4939		      ? 1 : -1];
4940int
4941main ()
4942{
4943
4944  ;
4945  return 0;
4946}
4947_ACEOF
4948rm -f conftest.$ac_objext
4949if { (ac_try="$ac_compile"
4950case "(($ac_try" in
4951  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4952  *) ac_try_echo=$ac_try;;
4953esac
4954eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4955  (eval "$ac_compile") 2>conftest.er1
4956  ac_status=$?
4957  grep -v '^ *+' conftest.er1 >conftest.err
4958  rm -f conftest.er1
4959  cat conftest.err >&5
4960  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4961  (exit $ac_status); } && {
4962	 test -z "$ac_c_werror_flag" ||
4963	 test ! -s conftest.err
4964       } && test -s conftest.$ac_objext; then
4965  ac_cv_sys_file_offset_bits=no; break
4966else
4967  echo "$as_me: failed program was:" >&5
4968sed 's/^/| /' conftest.$ac_ext >&5
4969
4970
4971fi
4972
4973rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4974  cat >conftest.$ac_ext <<_ACEOF
4975/* confdefs.h.  */
4976_ACEOF
4977cat confdefs.h >>conftest.$ac_ext
4978cat >>conftest.$ac_ext <<_ACEOF
4979/* end confdefs.h.  */
4980#define _FILE_OFFSET_BITS 64
4981#include <sys/types.h>
4982 /* Check that off_t can represent 2**63 - 1 correctly.
4983    We can't simply define LARGE_OFF_T to be 9223372036854775807,
4984    since some C++ compilers masquerading as C compilers
4985    incorrectly reject 9223372036854775807.  */
4986#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4987  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4988		       && LARGE_OFF_T % 2147483647 == 1)
4989		      ? 1 : -1];
4990int
4991main ()
4992{
4993
4994  ;
4995  return 0;
4996}
4997_ACEOF
4998rm -f conftest.$ac_objext
4999if { (ac_try="$ac_compile"
5000case "(($ac_try" in
5001  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5002  *) ac_try_echo=$ac_try;;
5003esac
5004eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5005  (eval "$ac_compile") 2>conftest.er1
5006  ac_status=$?
5007  grep -v '^ *+' conftest.er1 >conftest.err
5008  rm -f conftest.er1
5009  cat conftest.err >&5
5010  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5011  (exit $ac_status); } && {
5012	 test -z "$ac_c_werror_flag" ||
5013	 test ! -s conftest.err
5014       } && test -s conftest.$ac_objext; then
5015  ac_cv_sys_file_offset_bits=64; break
5016else
5017  echo "$as_me: failed program was:" >&5
5018sed 's/^/| /' conftest.$ac_ext >&5
5019
5020
5021fi
5022
5023rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5024  ac_cv_sys_file_offset_bits=unknown
5025  break
5026done
5027fi
5028{ echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5029echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
5030case $ac_cv_sys_file_offset_bits in #(
5031  no | unknown) ;;
5032  *)
5033cat >>confdefs.h <<_ACEOF
5034#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5035_ACEOF
5036;;
5037esac
5038rm -f -r conftest*
5039  if test $ac_cv_sys_file_offset_bits = unknown; then
5040    { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5041echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
5042if test "${ac_cv_sys_large_files+set}" = set; then
5043  echo $ECHO_N "(cached) $ECHO_C" >&6
5044else
5045  while :; do
5046  cat >conftest.$ac_ext <<_ACEOF
5047/* confdefs.h.  */
5048_ACEOF
5049cat confdefs.h >>conftest.$ac_ext
5050cat >>conftest.$ac_ext <<_ACEOF
5051/* end confdefs.h.  */
5052#include <sys/types.h>
5053 /* Check that off_t can represent 2**63 - 1 correctly.
5054    We can't simply define LARGE_OFF_T to be 9223372036854775807,
5055    since some C++ compilers masquerading as C compilers
5056    incorrectly reject 9223372036854775807.  */
5057#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5058  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5059		       && LARGE_OFF_T % 2147483647 == 1)
5060		      ? 1 : -1];
5061int
5062main ()
5063{
5064
5065  ;
5066  return 0;
5067}
5068_ACEOF
5069rm -f conftest.$ac_objext
5070if { (ac_try="$ac_compile"
5071case "(($ac_try" in
5072  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5073  *) ac_try_echo=$ac_try;;
5074esac
5075eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5076  (eval "$ac_compile") 2>conftest.er1
5077  ac_status=$?
5078  grep -v '^ *+' conftest.er1 >conftest.err
5079  rm -f conftest.er1
5080  cat conftest.err >&5
5081  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5082  (exit $ac_status); } && {
5083	 test -z "$ac_c_werror_flag" ||
5084	 test ! -s conftest.err
5085       } && test -s conftest.$ac_objext; then
5086  ac_cv_sys_large_files=no; break
5087else
5088  echo "$as_me: failed program was:" >&5
5089sed 's/^/| /' conftest.$ac_ext >&5
5090
5091
5092fi
5093
5094rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5095  cat >conftest.$ac_ext <<_ACEOF
5096/* confdefs.h.  */
5097_ACEOF
5098cat confdefs.h >>conftest.$ac_ext
5099cat >>conftest.$ac_ext <<_ACEOF
5100/* end confdefs.h.  */
5101#define _LARGE_FILES 1
5102#include <sys/types.h>
5103 /* Check that off_t can represent 2**63 - 1 correctly.
5104    We can't simply define LARGE_OFF_T to be 9223372036854775807,
5105    since some C++ compilers masquerading as C compilers
5106    incorrectly reject 9223372036854775807.  */
5107#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5108  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5109		       && LARGE_OFF_T % 2147483647 == 1)
5110		      ? 1 : -1];
5111int
5112main ()
5113{
5114
5115  ;
5116  return 0;
5117}
5118_ACEOF
5119rm -f conftest.$ac_objext
5120if { (ac_try="$ac_compile"
5121case "(($ac_try" in
5122  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5123  *) ac_try_echo=$ac_try;;
5124esac
5125eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5126  (eval "$ac_compile") 2>conftest.er1
5127  ac_status=$?
5128  grep -v '^ *+' conftest.er1 >conftest.err
5129  rm -f conftest.er1
5130  cat conftest.err >&5
5131  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5132  (exit $ac_status); } && {
5133	 test -z "$ac_c_werror_flag" ||
5134	 test ! -s conftest.err
5135       } && test -s conftest.$ac_objext; then
5136  ac_cv_sys_large_files=1; break
5137else
5138  echo "$as_me: failed program was:" >&5
5139sed 's/^/| /' conftest.$ac_ext >&5
5140
5141
5142fi
5143
5144rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5145  ac_cv_sys_large_files=unknown
5146  break
5147done
5148fi
5149{ echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5150echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
5151case $ac_cv_sys_large_files in #(
5152  no | unknown) ;;
5153  *)
5154cat >>confdefs.h <<_ACEOF
5155#define _LARGE_FILES $ac_cv_sys_large_files
5156_ACEOF
5157;;
5158esac
5159rm -f -r conftest*
5160  fi
5161fi
5162
5163{ echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
5164echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
5165if test "${ac_cv_sys_largefile_source+set}" = set; then
5166  echo $ECHO_N "(cached) $ECHO_C" >&6
5167else
5168  while :; do
5169  cat >conftest.$ac_ext <<_ACEOF
5170/* confdefs.h.  */
5171_ACEOF
5172cat confdefs.h >>conftest.$ac_ext
5173cat >>conftest.$ac_ext <<_ACEOF
5174/* end confdefs.h.  */
5175#include <stdio.h>
5176int
5177main ()
5178{
5179return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
5180  ;
5181  return 0;
5182}
5183_ACEOF
5184rm -f conftest.$ac_objext conftest$ac_exeext
5185if { (ac_try="$ac_link"
5186case "(($ac_try" in
5187  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5188  *) ac_try_echo=$ac_try;;
5189esac
5190eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5191  (eval "$ac_link") 2>conftest.er1
5192  ac_status=$?
5193  grep -v '^ *+' conftest.er1 >conftest.err
5194  rm -f conftest.er1
5195  cat conftest.err >&5
5196  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5197  (exit $ac_status); } && {
5198	 test -z "$ac_c_werror_flag" ||
5199	 test ! -s conftest.err
5200       } && test -s conftest$ac_exeext &&
5201       $as_test_x conftest$ac_exeext; then
5202  ac_cv_sys_largefile_source=no; break
5203else
5204  echo "$as_me: failed program was:" >&5
5205sed 's/^/| /' conftest.$ac_ext >&5
5206
5207
5208fi
5209
5210rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5211      conftest$ac_exeext conftest.$ac_ext
5212  cat >conftest.$ac_ext <<_ACEOF
5213/* confdefs.h.  */
5214_ACEOF
5215cat confdefs.h >>conftest.$ac_ext
5216cat >>conftest.$ac_ext <<_ACEOF
5217/* end confdefs.h.  */
5218#define _LARGEFILE_SOURCE 1
5219#include <stdio.h>
5220int
5221main ()
5222{
5223return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
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  ac_cv_sys_largefile_source=1; break
5247else
5248  echo "$as_me: failed program was:" >&5
5249sed 's/^/| /' conftest.$ac_ext >&5
5250
5251
5252fi
5253
5254rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5255      conftest$ac_exeext conftest.$ac_ext
5256  ac_cv_sys_largefile_source=unknown
5257  break
5258done
5259fi
5260{ echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
5261echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
5262case $ac_cv_sys_largefile_source in #(
5263  no | unknown) ;;
5264  *)
5265cat >>confdefs.h <<_ACEOF
5266#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
5267_ACEOF
5268;;
5269esac
5270rm -f -r conftest*
5271
5272# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
5273# in glibc 2.1.3, but that breaks too many other things.
5274# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
5275if test $ac_cv_sys_largefile_source != unknown; then
5276
5277cat >>confdefs.h <<\_ACEOF
5278#define HAVE_FSEEKO 1
5279_ACEOF
5280
5281fi
5282
5283
5284
5285
5286
5287
5288for ac_header in sys/ioccom.h sys/sockio.h limits.h paths.h
5289do
5290as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5291if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5292  { echo "$as_me:$LINENO: checking for $ac_header" >&5
5293echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5294if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5295  echo $ECHO_N "(cached) $ECHO_C" >&6
5296fi
5297ac_res=`eval echo '${'$as_ac_Header'}'`
5298	       { echo "$as_me:$LINENO: result: $ac_res" >&5
5299echo "${ECHO_T}$ac_res" >&6; }
5300else
5301  # Is the header compilable?
5302{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
5303echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5304cat >conftest.$ac_ext <<_ACEOF
5305/* confdefs.h.  */
5306_ACEOF
5307cat confdefs.h >>conftest.$ac_ext
5308cat >>conftest.$ac_ext <<_ACEOF
5309/* end confdefs.h.  */
5310$ac_includes_default
5311#include <$ac_header>
5312_ACEOF
5313rm -f conftest.$ac_objext
5314if { (ac_try="$ac_compile"
5315case "(($ac_try" in
5316  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5317  *) ac_try_echo=$ac_try;;
5318esac
5319eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5320  (eval "$ac_compile") 2>conftest.er1
5321  ac_status=$?
5322  grep -v '^ *+' conftest.er1 >conftest.err
5323  rm -f conftest.er1
5324  cat conftest.err >&5
5325  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5326  (exit $ac_status); } && {
5327	 test -z "$ac_c_werror_flag" ||
5328	 test ! -s conftest.err
5329       } && test -s conftest.$ac_objext; then
5330  ac_header_compiler=yes
5331else
5332  echo "$as_me: failed program was:" >&5
5333sed 's/^/| /' conftest.$ac_ext >&5
5334
5335	ac_header_compiler=no
5336fi
5337
5338rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5339{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5340echo "${ECHO_T}$ac_header_compiler" >&6; }
5341
5342# Is the header present?
5343{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
5344echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5345cat >conftest.$ac_ext <<_ACEOF
5346/* confdefs.h.  */
5347_ACEOF
5348cat confdefs.h >>conftest.$ac_ext
5349cat >>conftest.$ac_ext <<_ACEOF
5350/* end confdefs.h.  */
5351#include <$ac_header>
5352_ACEOF
5353if { (ac_try="$ac_cpp conftest.$ac_ext"
5354case "(($ac_try" in
5355  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5356  *) ac_try_echo=$ac_try;;
5357esac
5358eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5359  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5360  ac_status=$?
5361  grep -v '^ *+' conftest.er1 >conftest.err
5362  rm -f conftest.er1
5363  cat conftest.err >&5
5364  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5365  (exit $ac_status); } >/dev/null && {
5366	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5367	 test ! -s conftest.err
5368       }; then
5369  ac_header_preproc=yes
5370else
5371  echo "$as_me: failed program was:" >&5
5372sed 's/^/| /' conftest.$ac_ext >&5
5373
5374  ac_header_preproc=no
5375fi
5376
5377rm -f conftest.err conftest.$ac_ext
5378{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5379echo "${ECHO_T}$ac_header_preproc" >&6; }
5380
5381# So?  What about this header?
5382case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5383  yes:no: )
5384    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5385echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5386    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5387echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5388    ac_header_preproc=yes
5389    ;;
5390  no:yes:* )
5391    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5392echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5393    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5394echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5395    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5396echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5397    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5398echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5399    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5400echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5401    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5402echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5403
5404    ;;
5405esac
5406{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5407echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5408if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5409  echo $ECHO_N "(cached) $ECHO_C" >&6
5410else
5411  eval "$as_ac_Header=\$ac_header_preproc"
5412fi
5413ac_res=`eval echo '${'$as_ac_Header'}'`
5414	       { echo "$as_me:$LINENO: result: $ac_res" >&5
5415echo "${ECHO_T}$ac_res" >&6; }
5416
5417fi
5418if test `eval echo '${'$as_ac_Header'}'` = yes; then
5419  cat >>confdefs.h <<_ACEOF
5420#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5421_ACEOF
5422
5423fi
5424
5425done
5426
5427
5428for ac_header in net/pfvar.h
5429do
5430as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5431{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5432echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5433if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5434  echo $ECHO_N "(cached) $ECHO_C" >&6
5435else
5436  cat >conftest.$ac_ext <<_ACEOF
5437/* confdefs.h.  */
5438_ACEOF
5439cat confdefs.h >>conftest.$ac_ext
5440cat >>conftest.$ac_ext <<_ACEOF
5441/* end confdefs.h.  */
5442#include <sys/types.h>
5443#include <sys/socket.h>
5444#include <net/if.h>
5445
5446#include <$ac_header>
5447_ACEOF
5448rm -f conftest.$ac_objext
5449if { (ac_try="$ac_compile"
5450case "(($ac_try" in
5451  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5452  *) ac_try_echo=$ac_try;;
5453esac
5454eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5455  (eval "$ac_compile") 2>conftest.er1
5456  ac_status=$?
5457  grep -v '^ *+' conftest.er1 >conftest.err
5458  rm -f conftest.er1
5459  cat conftest.err >&5
5460  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5461  (exit $ac_status); } && {
5462	 test -z "$ac_c_werror_flag" ||
5463	 test ! -s conftest.err
5464       } && test -s conftest.$ac_objext; then
5465  eval "$as_ac_Header=yes"
5466else
5467  echo "$as_me: failed program was:" >&5
5468sed 's/^/| /' conftest.$ac_ext >&5
5469
5470	eval "$as_ac_Header=no"
5471fi
5472
5473rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5474fi
5475ac_res=`eval echo '${'$as_ac_Header'}'`
5476	       { echo "$as_me:$LINENO: result: $ac_res" >&5
5477echo "${ECHO_T}$ac_res" >&6; }
5478if test `eval echo '${'$as_ac_Header'}'` = yes; then
5479  cat >>confdefs.h <<_ACEOF
5480#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5481_ACEOF
5482
5483fi
5484
5485done
5486
5487if test "$ac_cv_header_net_pfvar_h" = yes; then
5488	#
5489	# Check for various PF actions.
5490	#
5491	{ echo "$as_me:$LINENO: checking whether net/pfvar.h defines PF_NAT through PF_NORDR" >&5
5492echo $ECHO_N "checking whether net/pfvar.h defines PF_NAT through PF_NORDR... $ECHO_C" >&6; }
5493	cat >conftest.$ac_ext <<_ACEOF
5494/* confdefs.h.  */
5495_ACEOF
5496cat confdefs.h >>conftest.$ac_ext
5497cat >>conftest.$ac_ext <<_ACEOF
5498/* end confdefs.h.  */
5499#include <sys/types.h>
5500	    #include <sys/socket.h>
5501	    #include <net/if.h>
5502	    #include <net/pfvar.h>
5503int
5504main ()
5505{
5506return PF_NAT+PF_NONAT+PF_BINAT+PF_NOBINAT+PF_RDR+PF_NORDR;
5507  ;
5508  return 0;
5509}
5510_ACEOF
5511rm -f conftest.$ac_objext
5512if { (ac_try="$ac_compile"
5513case "(($ac_try" in
5514  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5515  *) ac_try_echo=$ac_try;;
5516esac
5517eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5518  (eval "$ac_compile") 2>conftest.er1
5519  ac_status=$?
5520  grep -v '^ *+' conftest.er1 >conftest.err
5521  rm -f conftest.er1
5522  cat conftest.err >&5
5523  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5524  (exit $ac_status); } && {
5525	 test -z "$ac_c_werror_flag" ||
5526	 test ! -s conftest.err
5527       } && test -s conftest.$ac_objext; then
5528
5529		{ echo "$as_me:$LINENO: result: yes" >&5
5530echo "${ECHO_T}yes" >&6; }
5531
5532cat >>confdefs.h <<\_ACEOF
5533#define HAVE_PF_NAT_THROUGH_PF_NORDR 1
5534_ACEOF
5535
5536
5537else
5538  echo "$as_me: failed program was:" >&5
5539sed 's/^/| /' conftest.$ac_ext >&5
5540
5541	{ echo "$as_me:$LINENO: result: no" >&5
5542echo "${ECHO_T}no" >&6; }
5543fi
5544
5545rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5546fi
5547
5548for ac_header in netinet/if_ether.h
5549do
5550as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5551{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5552echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5553if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5554  echo $ECHO_N "(cached) $ECHO_C" >&6
5555else
5556  cat >conftest.$ac_ext <<_ACEOF
5557/* confdefs.h.  */
5558_ACEOF
5559cat confdefs.h >>conftest.$ac_ext
5560cat >>conftest.$ac_ext <<_ACEOF
5561/* end confdefs.h.  */
5562#include <sys/types.h>
5563#include <sys/socket.h>
5564
5565#include <$ac_header>
5566_ACEOF
5567rm -f conftest.$ac_objext
5568if { (ac_try="$ac_compile"
5569case "(($ac_try" in
5570  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5571  *) ac_try_echo=$ac_try;;
5572esac
5573eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5574  (eval "$ac_compile") 2>conftest.er1
5575  ac_status=$?
5576  grep -v '^ *+' conftest.er1 >conftest.err
5577  rm -f conftest.er1
5578  cat conftest.err >&5
5579  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5580  (exit $ac_status); } && {
5581	 test -z "$ac_c_werror_flag" ||
5582	 test ! -s conftest.err
5583       } && test -s conftest.$ac_objext; then
5584  eval "$as_ac_Header=yes"
5585else
5586  echo "$as_me: failed program was:" >&5
5587sed 's/^/| /' conftest.$ac_ext >&5
5588
5589	eval "$as_ac_Header=no"
5590fi
5591
5592rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5593fi
5594ac_res=`eval echo '${'$as_ac_Header'}'`
5595	       { echo "$as_me:$LINENO: result: $ac_res" >&5
5596echo "${ECHO_T}$ac_res" >&6; }
5597if test `eval echo '${'$as_ac_Header'}'` = yes; then
5598  cat >>confdefs.h <<_ACEOF
5599#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5600_ACEOF
5601
5602fi
5603
5604done
5605
5606if test "$ac_cv_header_netinet_if_ether_h" != yes; then
5607	#
5608	# The simple test didn't work.
5609	# Do we need to include <net/if.h> first?
5610	# Unset ac_cv_header_netinet_if_ether_h so we don't
5611	# treat the previous failure as a cached value and
5612	# suppress the next test.
5613	#
5614	{ echo "$as_me:$LINENO: Rechecking with some additional includes" >&5
5615echo "$as_me: Rechecking with some additional includes" >&6;}
5616	unset ac_cv_header_netinet_if_ether_h
5617
5618for ac_header in netinet/if_ether.h
5619do
5620as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5621{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5622echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5623if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5624  echo $ECHO_N "(cached) $ECHO_C" >&6
5625else
5626  cat >conftest.$ac_ext <<_ACEOF
5627/* confdefs.h.  */
5628_ACEOF
5629cat confdefs.h >>conftest.$ac_ext
5630cat >>conftest.$ac_ext <<_ACEOF
5631/* end confdefs.h.  */
5632#include <sys/types.h>
5633#include <sys/socket.h>
5634#include <netinet/in.h>
5635struct mbuf;
5636struct rtentry;
5637#include <net/if.h>
5638
5639#include <$ac_header>
5640_ACEOF
5641rm -f conftest.$ac_objext
5642if { (ac_try="$ac_compile"
5643case "(($ac_try" in
5644  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5645  *) ac_try_echo=$ac_try;;
5646esac
5647eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5648  (eval "$ac_compile") 2>conftest.er1
5649  ac_status=$?
5650  grep -v '^ *+' conftest.er1 >conftest.err
5651  rm -f conftest.er1
5652  cat conftest.err >&5
5653  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5654  (exit $ac_status); } && {
5655	 test -z "$ac_c_werror_flag" ||
5656	 test ! -s conftest.err
5657       } && test -s conftest.$ac_objext; then
5658  eval "$as_ac_Header=yes"
5659else
5660  echo "$as_me: failed program was:" >&5
5661sed 's/^/| /' conftest.$ac_ext >&5
5662
5663	eval "$as_ac_Header=no"
5664fi
5665
5666rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5667fi
5668ac_res=`eval echo '${'$as_ac_Header'}'`
5669	       { echo "$as_me:$LINENO: result: $ac_res" >&5
5670echo "${ECHO_T}$ac_res" >&6; }
5671if test `eval echo '${'$as_ac_Header'}'` = yes; then
5672  cat >>confdefs.h <<_ACEOF
5673#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5674_ACEOF
5675
5676fi
5677
5678done
5679
5680fi
5681
5682if test "$GCC" = yes ; then
5683	    { echo "$as_me:$LINENO: checking for ANSI ioctl definitions" >&5
5684echo $ECHO_N "checking for ANSI ioctl definitions... $ECHO_C" >&6; }
5685	    if test "${ac_cv_lbl_gcc_fixincludes+set}" = set; then
5686  echo $ECHO_N "(cached) $ECHO_C" >&6
5687else
5688  cat >conftest.$ac_ext <<_ACEOF
5689/* confdefs.h.  */
5690_ACEOF
5691cat confdefs.h >>conftest.$ac_ext
5692cat >>conftest.$ac_ext <<_ACEOF
5693/* end confdefs.h.  */
5694/*
5695		     * This generates a "duplicate case value" when fixincludes
5696		     * has not be run.
5697		     */
5698#		include <sys/types.h>
5699#		include <sys/time.h>
5700#		include <sys/ioctl.h>
5701#		ifdef HAVE_SYS_IOCCOM_H
5702#		include <sys/ioccom.h>
5703#		endif
5704int
5705main ()
5706{
5707switch (0) {
5708		    case _IO('A', 1):;
5709		    case _IO('B', 1):;
5710		    }
5711  ;
5712  return 0;
5713}
5714_ACEOF
5715rm -f conftest.$ac_objext
5716if { (ac_try="$ac_compile"
5717case "(($ac_try" in
5718  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5719  *) ac_try_echo=$ac_try;;
5720esac
5721eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5722  (eval "$ac_compile") 2>conftest.er1
5723  ac_status=$?
5724  grep -v '^ *+' conftest.er1 >conftest.err
5725  rm -f conftest.er1
5726  cat conftest.err >&5
5727  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5728  (exit $ac_status); } && {
5729	 test -z "$ac_c_werror_flag" ||
5730	 test ! -s conftest.err
5731       } && test -s conftest.$ac_objext; then
5732  ac_cv_lbl_gcc_fixincludes=yes
5733else
5734  echo "$as_me: failed program was:" >&5
5735sed 's/^/| /' conftest.$ac_ext >&5
5736
5737	ac_cv_lbl_gcc_fixincludes=no
5738fi
5739
5740rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5741fi
5742
5743	    { echo "$as_me:$LINENO: result: $ac_cv_lbl_gcc_fixincludes" >&5
5744echo "${ECHO_T}$ac_cv_lbl_gcc_fixincludes" >&6; }
5745	    if test $ac_cv_lbl_gcc_fixincludes = no ; then
5746		    # Don't cache failure
5747		    unset ac_cv_lbl_gcc_fixincludes
5748		    { { echo "$as_me:$LINENO: error: see the INSTALL for more info" >&5
5749echo "$as_me: error: see the INSTALL for more info" >&2;}
5750   { (exit 1); exit 1; }; }
5751	    fi
5752    fi
5753
5754
5755
5756for ac_func in strerror strlcpy
5757do
5758as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5759{ echo "$as_me:$LINENO: checking for $ac_func" >&5
5760echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5761if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5762  echo $ECHO_N "(cached) $ECHO_C" >&6
5763else
5764  cat >conftest.$ac_ext <<_ACEOF
5765/* confdefs.h.  */
5766_ACEOF
5767cat confdefs.h >>conftest.$ac_ext
5768cat >>conftest.$ac_ext <<_ACEOF
5769/* end confdefs.h.  */
5770/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5771   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5772#define $ac_func innocuous_$ac_func
5773
5774/* System header to define __stub macros and hopefully few prototypes,
5775    which can conflict with char $ac_func (); below.
5776    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5777    <limits.h> exists even on freestanding compilers.  */
5778
5779#ifdef __STDC__
5780# include <limits.h>
5781#else
5782# include <assert.h>
5783#endif
5784
5785#undef $ac_func
5786
5787/* Override any GCC internal prototype to avoid an error.
5788   Use char because int might match the return type of a GCC
5789   builtin and then its argument prototype would still apply.  */
5790#ifdef __cplusplus
5791extern "C"
5792#endif
5793char $ac_func ();
5794/* The GNU C library defines this for functions which it implements
5795    to always fail with ENOSYS.  Some functions are actually named
5796    something starting with __ and the normal name is an alias.  */
5797#if defined __stub_$ac_func || defined __stub___$ac_func
5798choke me
5799#endif
5800
5801int
5802main ()
5803{
5804return $ac_func ();
5805  ;
5806  return 0;
5807}
5808_ACEOF
5809rm -f conftest.$ac_objext conftest$ac_exeext
5810if { (ac_try="$ac_link"
5811case "(($ac_try" in
5812  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5813  *) ac_try_echo=$ac_try;;
5814esac
5815eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5816  (eval "$ac_link") 2>conftest.er1
5817  ac_status=$?
5818  grep -v '^ *+' conftest.er1 >conftest.err
5819  rm -f conftest.er1
5820  cat conftest.err >&5
5821  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5822  (exit $ac_status); } && {
5823	 test -z "$ac_c_werror_flag" ||
5824	 test ! -s conftest.err
5825       } && test -s conftest$ac_exeext &&
5826       $as_test_x conftest$ac_exeext; then
5827  eval "$as_ac_var=yes"
5828else
5829  echo "$as_me: failed program was:" >&5
5830sed 's/^/| /' conftest.$ac_ext >&5
5831
5832	eval "$as_ac_var=no"
5833fi
5834
5835rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5836      conftest$ac_exeext conftest.$ac_ext
5837fi
5838ac_res=`eval echo '${'$as_ac_var'}'`
5839	       { echo "$as_me:$LINENO: result: $ac_res" >&5
5840echo "${ECHO_T}$ac_res" >&6; }
5841if test `eval echo '${'$as_ac_var'}'` = yes; then
5842  cat >>confdefs.h <<_ACEOF
5843#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5844_ACEOF
5845
5846fi
5847done
5848
5849
5850needsnprintf=no
5851
5852
5853for ac_func in vsnprintf snprintf
5854do
5855as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5856{ echo "$as_me:$LINENO: checking for $ac_func" >&5
5857echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5858if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5859  echo $ECHO_N "(cached) $ECHO_C" >&6
5860else
5861  cat >conftest.$ac_ext <<_ACEOF
5862/* confdefs.h.  */
5863_ACEOF
5864cat confdefs.h >>conftest.$ac_ext
5865cat >>conftest.$ac_ext <<_ACEOF
5866/* end confdefs.h.  */
5867/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5868   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5869#define $ac_func innocuous_$ac_func
5870
5871/* System header to define __stub macros and hopefully few prototypes,
5872    which can conflict with char $ac_func (); below.
5873    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5874    <limits.h> exists even on freestanding compilers.  */
5875
5876#ifdef __STDC__
5877# include <limits.h>
5878#else
5879# include <assert.h>
5880#endif
5881
5882#undef $ac_func
5883
5884/* Override any GCC internal prototype to avoid an error.
5885   Use char because int might match the return type of a GCC
5886   builtin and then its argument prototype would still apply.  */
5887#ifdef __cplusplus
5888extern "C"
5889#endif
5890char $ac_func ();
5891/* The GNU C library defines this for functions which it implements
5892    to always fail with ENOSYS.  Some functions are actually named
5893    something starting with __ and the normal name is an alias.  */
5894#if defined __stub_$ac_func || defined __stub___$ac_func
5895choke me
5896#endif
5897
5898int
5899main ()
5900{
5901return $ac_func ();
5902  ;
5903  return 0;
5904}
5905_ACEOF
5906rm -f conftest.$ac_objext conftest$ac_exeext
5907if { (ac_try="$ac_link"
5908case "(($ac_try" in
5909  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5910  *) ac_try_echo=$ac_try;;
5911esac
5912eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5913  (eval "$ac_link") 2>conftest.er1
5914  ac_status=$?
5915  grep -v '^ *+' conftest.er1 >conftest.err
5916  rm -f conftest.er1
5917  cat conftest.err >&5
5918  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5919  (exit $ac_status); } && {
5920	 test -z "$ac_c_werror_flag" ||
5921	 test ! -s conftest.err
5922       } && test -s conftest$ac_exeext &&
5923       $as_test_x conftest$ac_exeext; then
5924  eval "$as_ac_var=yes"
5925else
5926  echo "$as_me: failed program was:" >&5
5927sed 's/^/| /' conftest.$ac_ext >&5
5928
5929	eval "$as_ac_var=no"
5930fi
5931
5932rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5933      conftest$ac_exeext conftest.$ac_ext
5934fi
5935ac_res=`eval echo '${'$as_ac_var'}'`
5936	       { echo "$as_me:$LINENO: result: $ac_res" >&5
5937echo "${ECHO_T}$ac_res" >&6; }
5938if test `eval echo '${'$as_ac_var'}'` = yes; then
5939  cat >>confdefs.h <<_ACEOF
5940#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5941_ACEOF
5942
5943else
5944  needsnprintf=yes
5945fi
5946done
5947
5948if test $needsnprintf = yes; then
5949	case " $LIBOBJS " in
5950  *" snprintf.$ac_objext "* ) ;;
5951  *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
5952 ;;
5953esac
5954
5955fi
5956
5957#
5958# Do this before checking for ether_hostton(), as it's a
5959# "gethostbyname() -ish function".
5960#
5961
5962    # Most operating systems have gethostbyname() in the default searched
5963    # libraries (i.e. libc):
5964    # Some OSes (eg. Solaris) place it in libnsl
5965    # Some strange OSes (SINIX) have it in libsocket:
5966    { echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
5967echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6; }
5968if test "${ac_cv_search_gethostbyname+set}" = set; then
5969  echo $ECHO_N "(cached) $ECHO_C" >&6
5970else
5971  ac_func_search_save_LIBS=$LIBS
5972cat >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
5979/* Override any GCC internal prototype to avoid an error.
5980   Use char because int might match the return type of a GCC
5981   builtin and then its argument prototype would still apply.  */
5982#ifdef __cplusplus
5983extern "C"
5984#endif
5985char gethostbyname ();
5986int
5987main ()
5988{
5989return gethostbyname ();
5990  ;
5991  return 0;
5992}
5993_ACEOF
5994for ac_lib in '' nsl socket resolv; do
5995  if test -z "$ac_lib"; then
5996    ac_res="none required"
5997  else
5998    ac_res=-l$ac_lib
5999    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6000  fi
6001  rm -f conftest.$ac_objext conftest$ac_exeext
6002if { (ac_try="$ac_link"
6003case "(($ac_try" in
6004  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6005  *) ac_try_echo=$ac_try;;
6006esac
6007eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6008  (eval "$ac_link") 2>conftest.er1
6009  ac_status=$?
6010  grep -v '^ *+' conftest.er1 >conftest.err
6011  rm -f conftest.er1
6012  cat conftest.err >&5
6013  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6014  (exit $ac_status); } && {
6015	 test -z "$ac_c_werror_flag" ||
6016	 test ! -s conftest.err
6017       } && test -s conftest$ac_exeext &&
6018       $as_test_x conftest$ac_exeext; then
6019  ac_cv_search_gethostbyname=$ac_res
6020else
6021  echo "$as_me: failed program was:" >&5
6022sed 's/^/| /' conftest.$ac_ext >&5
6023
6024
6025fi
6026
6027rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6028      conftest$ac_exeext
6029  if test "${ac_cv_search_gethostbyname+set}" = set; then
6030  break
6031fi
6032done
6033if test "${ac_cv_search_gethostbyname+set}" = set; then
6034  :
6035else
6036  ac_cv_search_gethostbyname=no
6037fi
6038rm conftest.$ac_ext
6039LIBS=$ac_func_search_save_LIBS
6040fi
6041{ echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
6042echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6; }
6043ac_res=$ac_cv_search_gethostbyname
6044if test "$ac_res" != no; then
6045  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6046
6047fi
6048
6049    # Unfortunately libsocket sometimes depends on libnsl and
6050    # AC_SEARCH_LIBS isn't up to the task of handling dependencies like this.
6051    if test "$ac_cv_search_gethostbyname" = "no"
6052    then
6053	{ echo "$as_me:$LINENO: checking for gethostbyname in -lsocket" >&5
6054echo $ECHO_N "checking for gethostbyname in -lsocket... $ECHO_C" >&6; }
6055if test "${ac_cv_lib_socket_gethostbyname+set}" = set; then
6056  echo $ECHO_N "(cached) $ECHO_C" >&6
6057else
6058  ac_check_lib_save_LIBS=$LIBS
6059LIBS="-lsocket -lnsl $LIBS"
6060cat >conftest.$ac_ext <<_ACEOF
6061/* confdefs.h.  */
6062_ACEOF
6063cat confdefs.h >>conftest.$ac_ext
6064cat >>conftest.$ac_ext <<_ACEOF
6065/* end confdefs.h.  */
6066
6067/* Override any GCC internal prototype to avoid an error.
6068   Use char because int might match the return type of a GCC
6069   builtin and then its argument prototype would still apply.  */
6070#ifdef __cplusplus
6071extern "C"
6072#endif
6073char gethostbyname ();
6074int
6075main ()
6076{
6077return gethostbyname ();
6078  ;
6079  return 0;
6080}
6081_ACEOF
6082rm -f conftest.$ac_objext conftest$ac_exeext
6083if { (ac_try="$ac_link"
6084case "(($ac_try" in
6085  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6086  *) ac_try_echo=$ac_try;;
6087esac
6088eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6089  (eval "$ac_link") 2>conftest.er1
6090  ac_status=$?
6091  grep -v '^ *+' conftest.er1 >conftest.err
6092  rm -f conftest.er1
6093  cat conftest.err >&5
6094  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6095  (exit $ac_status); } && {
6096	 test -z "$ac_c_werror_flag" ||
6097	 test ! -s conftest.err
6098       } && test -s conftest$ac_exeext &&
6099       $as_test_x conftest$ac_exeext; then
6100  ac_cv_lib_socket_gethostbyname=yes
6101else
6102  echo "$as_me: failed program was:" >&5
6103sed 's/^/| /' conftest.$ac_ext >&5
6104
6105	ac_cv_lib_socket_gethostbyname=no
6106fi
6107
6108rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6109      conftest$ac_exeext conftest.$ac_ext
6110LIBS=$ac_check_lib_save_LIBS
6111fi
6112{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_gethostbyname" >&5
6113echo "${ECHO_T}$ac_cv_lib_socket_gethostbyname" >&6; }
6114if test $ac_cv_lib_socket_gethostbyname = yes; then
6115  LIBS="-lsocket -lnsl $LIBS"
6116fi
6117
6118    fi
6119    { echo "$as_me:$LINENO: checking for library containing socket" >&5
6120echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6; }
6121if test "${ac_cv_search_socket+set}" = set; then
6122  echo $ECHO_N "(cached) $ECHO_C" >&6
6123else
6124  ac_func_search_save_LIBS=$LIBS
6125cat >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
6132/* Override any GCC internal prototype to avoid an error.
6133   Use char because int might match the return type of a GCC
6134   builtin and then its argument prototype would still apply.  */
6135#ifdef __cplusplus
6136extern "C"
6137#endif
6138char socket ();
6139int
6140main ()
6141{
6142return socket ();
6143  ;
6144  return 0;
6145}
6146_ACEOF
6147for ac_lib in '' socket; do
6148  if test -z "$ac_lib"; then
6149    ac_res="none required"
6150  else
6151    ac_res=-l$ac_lib
6152    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6153  fi
6154  rm -f conftest.$ac_objext conftest$ac_exeext
6155if { (ac_try="$ac_link"
6156case "(($ac_try" in
6157  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6158  *) ac_try_echo=$ac_try;;
6159esac
6160eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6161  (eval "$ac_link") 2>conftest.er1
6162  ac_status=$?
6163  grep -v '^ *+' conftest.er1 >conftest.err
6164  rm -f conftest.er1
6165  cat conftest.err >&5
6166  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6167  (exit $ac_status); } && {
6168	 test -z "$ac_c_werror_flag" ||
6169	 test ! -s conftest.err
6170       } && test -s conftest$ac_exeext &&
6171       $as_test_x conftest$ac_exeext; then
6172  ac_cv_search_socket=$ac_res
6173else
6174  echo "$as_me: failed program was:" >&5
6175sed 's/^/| /' conftest.$ac_ext >&5
6176
6177
6178fi
6179
6180rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6181      conftest$ac_exeext
6182  if test "${ac_cv_search_socket+set}" = set; then
6183  break
6184fi
6185done
6186if test "${ac_cv_search_socket+set}" = set; then
6187  :
6188else
6189  ac_cv_search_socket=no
6190fi
6191rm conftest.$ac_ext
6192LIBS=$ac_func_search_save_LIBS
6193fi
6194{ echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
6195echo "${ECHO_T}$ac_cv_search_socket" >&6; }
6196ac_res=$ac_cv_search_socket
6197if test "$ac_res" != no; then
6198  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6199
6200else
6201  { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
6202echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
6203if test "${ac_cv_lib_socket_socket+set}" = set; then
6204  echo $ECHO_N "(cached) $ECHO_C" >&6
6205else
6206  ac_check_lib_save_LIBS=$LIBS
6207LIBS="-lsocket -lnsl $LIBS"
6208cat >conftest.$ac_ext <<_ACEOF
6209/* confdefs.h.  */
6210_ACEOF
6211cat confdefs.h >>conftest.$ac_ext
6212cat >>conftest.$ac_ext <<_ACEOF
6213/* end confdefs.h.  */
6214
6215/* Override any GCC internal prototype to avoid an error.
6216   Use char because int might match the return type of a GCC
6217   builtin and then its argument prototype would still apply.  */
6218#ifdef __cplusplus
6219extern "C"
6220#endif
6221char socket ();
6222int
6223main ()
6224{
6225return socket ();
6226  ;
6227  return 0;
6228}
6229_ACEOF
6230rm -f conftest.$ac_objext conftest$ac_exeext
6231if { (ac_try="$ac_link"
6232case "(($ac_try" in
6233  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6234  *) ac_try_echo=$ac_try;;
6235esac
6236eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6237  (eval "$ac_link") 2>conftest.er1
6238  ac_status=$?
6239  grep -v '^ *+' conftest.er1 >conftest.err
6240  rm -f conftest.er1
6241  cat conftest.err >&5
6242  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6243  (exit $ac_status); } && {
6244	 test -z "$ac_c_werror_flag" ||
6245	 test ! -s conftest.err
6246       } && test -s conftest$ac_exeext &&
6247       $as_test_x conftest$ac_exeext; then
6248  ac_cv_lib_socket_socket=yes
6249else
6250  echo "$as_me: failed program was:" >&5
6251sed 's/^/| /' conftest.$ac_ext >&5
6252
6253	ac_cv_lib_socket_socket=no
6254fi
6255
6256rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6257      conftest$ac_exeext conftest.$ac_ext
6258LIBS=$ac_check_lib_save_LIBS
6259fi
6260{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
6261echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
6262if test $ac_cv_lib_socket_socket = yes; then
6263  LIBS="-lsocket -lnsl $LIBS"
6264fi
6265
6266fi
6267
6268    # DLPI needs putmsg under HPUX so test for -lstr while we're at it
6269    { echo "$as_me:$LINENO: checking for library containing putmsg" >&5
6270echo $ECHO_N "checking for library containing putmsg... $ECHO_C" >&6; }
6271if test "${ac_cv_search_putmsg+set}" = set; then
6272  echo $ECHO_N "(cached) $ECHO_C" >&6
6273else
6274  ac_func_search_save_LIBS=$LIBS
6275cat >conftest.$ac_ext <<_ACEOF
6276/* confdefs.h.  */
6277_ACEOF
6278cat confdefs.h >>conftest.$ac_ext
6279cat >>conftest.$ac_ext <<_ACEOF
6280/* end confdefs.h.  */
6281
6282/* Override any GCC internal prototype to avoid an error.
6283   Use char because int might match the return type of a GCC
6284   builtin and then its argument prototype would still apply.  */
6285#ifdef __cplusplus
6286extern "C"
6287#endif
6288char putmsg ();
6289int
6290main ()
6291{
6292return putmsg ();
6293  ;
6294  return 0;
6295}
6296_ACEOF
6297for ac_lib in '' str; do
6298  if test -z "$ac_lib"; then
6299    ac_res="none required"
6300  else
6301    ac_res=-l$ac_lib
6302    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6303  fi
6304  rm -f conftest.$ac_objext conftest$ac_exeext
6305if { (ac_try="$ac_link"
6306case "(($ac_try" in
6307  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6308  *) ac_try_echo=$ac_try;;
6309esac
6310eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6311  (eval "$ac_link") 2>conftest.er1
6312  ac_status=$?
6313  grep -v '^ *+' conftest.er1 >conftest.err
6314  rm -f conftest.er1
6315  cat conftest.err >&5
6316  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6317  (exit $ac_status); } && {
6318	 test -z "$ac_c_werror_flag" ||
6319	 test ! -s conftest.err
6320       } && test -s conftest$ac_exeext &&
6321       $as_test_x conftest$ac_exeext; then
6322  ac_cv_search_putmsg=$ac_res
6323else
6324  echo "$as_me: failed program was:" >&5
6325sed 's/^/| /' conftest.$ac_ext >&5
6326
6327
6328fi
6329
6330rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6331      conftest$ac_exeext
6332  if test "${ac_cv_search_putmsg+set}" = set; then
6333  break
6334fi
6335done
6336if test "${ac_cv_search_putmsg+set}" = set; then
6337  :
6338else
6339  ac_cv_search_putmsg=no
6340fi
6341rm conftest.$ac_ext
6342LIBS=$ac_func_search_save_LIBS
6343fi
6344{ echo "$as_me:$LINENO: result: $ac_cv_search_putmsg" >&5
6345echo "${ECHO_T}$ac_cv_search_putmsg" >&6; }
6346ac_res=$ac_cv_search_putmsg
6347if test "$ac_res" != no; then
6348  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6349
6350fi
6351
6352
6353
6354#
6355# You are in a twisty little maze of UN*Xes, all different.
6356# Some might not have ether_hostton().
6357# Some might have it, but not declare it in any header file.
6358# Some might have it, but declare it in <netinet/if_ether.h>.
6359# Some might have it, but declare it in <netinet/ether.h>
6360# (And some might have it but document it as something declared in
6361# <netinet/ethernet.h>, although <netinet/if_ether.h> appears to work.)
6362#
6363# Before you is a C compiler.
6364#
6365
6366for ac_func in ether_hostton
6367do
6368as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6369{ echo "$as_me:$LINENO: checking for $ac_func" >&5
6370echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6371if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6372  echo $ECHO_N "(cached) $ECHO_C" >&6
6373else
6374  cat >conftest.$ac_ext <<_ACEOF
6375/* confdefs.h.  */
6376_ACEOF
6377cat confdefs.h >>conftest.$ac_ext
6378cat >>conftest.$ac_ext <<_ACEOF
6379/* end confdefs.h.  */
6380/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6381   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6382#define $ac_func innocuous_$ac_func
6383
6384/* System header to define __stub macros and hopefully few prototypes,
6385    which can conflict with char $ac_func (); below.
6386    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6387    <limits.h> exists even on freestanding compilers.  */
6388
6389#ifdef __STDC__
6390# include <limits.h>
6391#else
6392# include <assert.h>
6393#endif
6394
6395#undef $ac_func
6396
6397/* Override any GCC internal prototype to avoid an error.
6398   Use char because int might match the return type of a GCC
6399   builtin and then its argument prototype would still apply.  */
6400#ifdef __cplusplus
6401extern "C"
6402#endif
6403char $ac_func ();
6404/* The GNU C library defines this for functions which it implements
6405    to always fail with ENOSYS.  Some functions are actually named
6406    something starting with __ and the normal name is an alias.  */
6407#if defined __stub_$ac_func || defined __stub___$ac_func
6408choke me
6409#endif
6410
6411int
6412main ()
6413{
6414return $ac_func ();
6415  ;
6416  return 0;
6417}
6418_ACEOF
6419rm -f conftest.$ac_objext conftest$ac_exeext
6420if { (ac_try="$ac_link"
6421case "(($ac_try" in
6422  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6423  *) ac_try_echo=$ac_try;;
6424esac
6425eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6426  (eval "$ac_link") 2>conftest.er1
6427  ac_status=$?
6428  grep -v '^ *+' conftest.er1 >conftest.err
6429  rm -f conftest.er1
6430  cat conftest.err >&5
6431  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6432  (exit $ac_status); } && {
6433	 test -z "$ac_c_werror_flag" ||
6434	 test ! -s conftest.err
6435       } && test -s conftest$ac_exeext &&
6436       $as_test_x conftest$ac_exeext; then
6437  eval "$as_ac_var=yes"
6438else
6439  echo "$as_me: failed program was:" >&5
6440sed 's/^/| /' conftest.$ac_ext >&5
6441
6442	eval "$as_ac_var=no"
6443fi
6444
6445rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6446      conftest$ac_exeext conftest.$ac_ext
6447fi
6448ac_res=`eval echo '${'$as_ac_var'}'`
6449	       { echo "$as_me:$LINENO: result: $ac_res" >&5
6450echo "${ECHO_T}$ac_res" >&6; }
6451if test `eval echo '${'$as_ac_var'}'` = yes; then
6452  cat >>confdefs.h <<_ACEOF
6453#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6454_ACEOF
6455
6456fi
6457done
6458
6459if test "$ac_cv_func_ether_hostton" = yes; then
6460	#
6461	# OK, we have ether_hostton().  Do we have <netinet/if_ether.h>?
6462	#
6463	if test "$ac_cv_header_netinet_if_ether_h" = yes; then
6464		#
6465		# Yes.  Does it declare ether_hostton()?
6466		#
6467		{ echo "$as_me:$LINENO: checking whether ether_hostton is declared" >&5
6468echo $ECHO_N "checking whether ether_hostton is declared... $ECHO_C" >&6; }
6469if test "${ac_cv_have_decl_ether_hostton+set}" = set; then
6470  echo $ECHO_N "(cached) $ECHO_C" >&6
6471else
6472  cat >conftest.$ac_ext <<_ACEOF
6473/* confdefs.h.  */
6474_ACEOF
6475cat confdefs.h >>conftest.$ac_ext
6476cat >>conftest.$ac_ext <<_ACEOF
6477/* end confdefs.h.  */
6478
6479#include <sys/types.h>
6480#include <sys/socket.h>
6481#include <netinet/in.h>
6482#include <arpa/inet.h>
6483struct mbuf;
6484struct rtentry;
6485#include <net/if.h>
6486#include <netinet/if_ether.h>
6487
6488
6489int
6490main ()
6491{
6492#ifndef ether_hostton
6493  (void) ether_hostton;
6494#endif
6495
6496  ;
6497  return 0;
6498}
6499_ACEOF
6500rm -f conftest.$ac_objext
6501if { (ac_try="$ac_compile"
6502case "(($ac_try" in
6503  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6504  *) ac_try_echo=$ac_try;;
6505esac
6506eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6507  (eval "$ac_compile") 2>conftest.er1
6508  ac_status=$?
6509  grep -v '^ *+' conftest.er1 >conftest.err
6510  rm -f conftest.er1
6511  cat conftest.err >&5
6512  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6513  (exit $ac_status); } && {
6514	 test -z "$ac_c_werror_flag" ||
6515	 test ! -s conftest.err
6516       } && test -s conftest.$ac_objext; then
6517  ac_cv_have_decl_ether_hostton=yes
6518else
6519  echo "$as_me: failed program was:" >&5
6520sed 's/^/| /' conftest.$ac_ext >&5
6521
6522	ac_cv_have_decl_ether_hostton=no
6523fi
6524
6525rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6526fi
6527{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_ether_hostton" >&5
6528echo "${ECHO_T}$ac_cv_have_decl_ether_hostton" >&6; }
6529if test $ac_cv_have_decl_ether_hostton = yes; then
6530
6531
6532cat >>confdefs.h <<\_ACEOF
6533#define NETINET_IF_ETHER_H_DECLARES_ETHER_HOSTTON
6534_ACEOF
6535
6536
6537fi
6538
6539	fi
6540	#
6541	# Did that succeed?
6542	#
6543	if test "$ac_cv_have_decl_ether_hostton" != yes; then
6544		#
6545		# No, how about <netinet/ether.h>, as on Linux?
6546		#
6547
6548for ac_header in netinet/ether.h
6549do
6550as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6551if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6552  { echo "$as_me:$LINENO: checking for $ac_header" >&5
6553echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6554if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6555  echo $ECHO_N "(cached) $ECHO_C" >&6
6556fi
6557ac_res=`eval echo '${'$as_ac_Header'}'`
6558	       { echo "$as_me:$LINENO: result: $ac_res" >&5
6559echo "${ECHO_T}$ac_res" >&6; }
6560else
6561  # Is the header compilable?
6562{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
6563echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6564cat >conftest.$ac_ext <<_ACEOF
6565/* confdefs.h.  */
6566_ACEOF
6567cat confdefs.h >>conftest.$ac_ext
6568cat >>conftest.$ac_ext <<_ACEOF
6569/* end confdefs.h.  */
6570$ac_includes_default
6571#include <$ac_header>
6572_ACEOF
6573rm -f conftest.$ac_objext
6574if { (ac_try="$ac_compile"
6575case "(($ac_try" in
6576  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6577  *) ac_try_echo=$ac_try;;
6578esac
6579eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6580  (eval "$ac_compile") 2>conftest.er1
6581  ac_status=$?
6582  grep -v '^ *+' conftest.er1 >conftest.err
6583  rm -f conftest.er1
6584  cat conftest.err >&5
6585  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6586  (exit $ac_status); } && {
6587	 test -z "$ac_c_werror_flag" ||
6588	 test ! -s conftest.err
6589       } && test -s conftest.$ac_objext; then
6590  ac_header_compiler=yes
6591else
6592  echo "$as_me: failed program was:" >&5
6593sed 's/^/| /' conftest.$ac_ext >&5
6594
6595	ac_header_compiler=no
6596fi
6597
6598rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6599{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6600echo "${ECHO_T}$ac_header_compiler" >&6; }
6601
6602# Is the header present?
6603{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
6604echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6605cat >conftest.$ac_ext <<_ACEOF
6606/* confdefs.h.  */
6607_ACEOF
6608cat confdefs.h >>conftest.$ac_ext
6609cat >>conftest.$ac_ext <<_ACEOF
6610/* end confdefs.h.  */
6611#include <$ac_header>
6612_ACEOF
6613if { (ac_try="$ac_cpp conftest.$ac_ext"
6614case "(($ac_try" in
6615  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6616  *) ac_try_echo=$ac_try;;
6617esac
6618eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6619  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6620  ac_status=$?
6621  grep -v '^ *+' conftest.er1 >conftest.err
6622  rm -f conftest.er1
6623  cat conftest.err >&5
6624  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6625  (exit $ac_status); } >/dev/null && {
6626	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6627	 test ! -s conftest.err
6628       }; then
6629  ac_header_preproc=yes
6630else
6631  echo "$as_me: failed program was:" >&5
6632sed 's/^/| /' conftest.$ac_ext >&5
6633
6634  ac_header_preproc=no
6635fi
6636
6637rm -f conftest.err conftest.$ac_ext
6638{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6639echo "${ECHO_T}$ac_header_preproc" >&6; }
6640
6641# So?  What about this header?
6642case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6643  yes:no: )
6644    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6645echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6646    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6647echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6648    ac_header_preproc=yes
6649    ;;
6650  no:yes:* )
6651    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6652echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6653    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6654echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6655    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6656echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6657    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6658echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6659    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6660echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6661    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6662echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6663
6664    ;;
6665esac
6666{ echo "$as_me:$LINENO: checking for $ac_header" >&5
6667echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6668if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6669  echo $ECHO_N "(cached) $ECHO_C" >&6
6670else
6671  eval "$as_ac_Header=\$ac_header_preproc"
6672fi
6673ac_res=`eval echo '${'$as_ac_Header'}'`
6674	       { echo "$as_me:$LINENO: result: $ac_res" >&5
6675echo "${ECHO_T}$ac_res" >&6; }
6676
6677fi
6678if test `eval echo '${'$as_ac_Header'}'` = yes; then
6679  cat >>confdefs.h <<_ACEOF
6680#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6681_ACEOF
6682
6683fi
6684
6685done
6686
6687		if test "$ac_cv_header_netinet_ether_h" = yes; then
6688			#
6689			# We have it - does it declare ether_hostton()?
6690			# Unset ac_cv_have_decl_ether_hostton so we don't
6691			# treat the previous failure as a cached value and
6692			# suppress the next test.
6693			#
6694			unset ac_cv_have_decl_ether_hostton
6695			{ echo "$as_me:$LINENO: checking whether ether_hostton is declared" >&5
6696echo $ECHO_N "checking whether ether_hostton is declared... $ECHO_C" >&6; }
6697if test "${ac_cv_have_decl_ether_hostton+set}" = set; then
6698  echo $ECHO_N "(cached) $ECHO_C" >&6
6699else
6700  cat >conftest.$ac_ext <<_ACEOF
6701/* confdefs.h.  */
6702_ACEOF
6703cat confdefs.h >>conftest.$ac_ext
6704cat >>conftest.$ac_ext <<_ACEOF
6705/* end confdefs.h.  */
6706
6707#include <netinet/ether.h>
6708
6709
6710int
6711main ()
6712{
6713#ifndef ether_hostton
6714  (void) ether_hostton;
6715#endif
6716
6717  ;
6718  return 0;
6719}
6720_ACEOF
6721rm -f conftest.$ac_objext
6722if { (ac_try="$ac_compile"
6723case "(($ac_try" in
6724  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6725  *) ac_try_echo=$ac_try;;
6726esac
6727eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6728  (eval "$ac_compile") 2>conftest.er1
6729  ac_status=$?
6730  grep -v '^ *+' conftest.er1 >conftest.err
6731  rm -f conftest.er1
6732  cat conftest.err >&5
6733  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6734  (exit $ac_status); } && {
6735	 test -z "$ac_c_werror_flag" ||
6736	 test ! -s conftest.err
6737       } && test -s conftest.$ac_objext; then
6738  ac_cv_have_decl_ether_hostton=yes
6739else
6740  echo "$as_me: failed program was:" >&5
6741sed 's/^/| /' conftest.$ac_ext >&5
6742
6743	ac_cv_have_decl_ether_hostton=no
6744fi
6745
6746rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6747fi
6748{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_ether_hostton" >&5
6749echo "${ECHO_T}$ac_cv_have_decl_ether_hostton" >&6; }
6750if test $ac_cv_have_decl_ether_hostton = yes; then
6751
6752
6753cat >>confdefs.h <<\_ACEOF
6754#define NETINET_ETHER_H_DECLARES_ETHER_HOSTTON
6755_ACEOF
6756
6757
6758fi
6759
6760		fi
6761	fi
6762	#
6763	# Is ether_hostton() declared?
6764	#
6765	if test "$ac_cv_have_decl_ether_hostton" != yes; then
6766		#
6767		# No, we'll have to declare it ourselves.
6768		# Do we have "struct ether_addr"?
6769		#
6770		{ echo "$as_me:$LINENO: checking for struct ether_addr" >&5
6771echo $ECHO_N "checking for struct ether_addr... $ECHO_C" >&6; }
6772if test "${ac_cv_type_struct_ether_addr+set}" = set; then
6773  echo $ECHO_N "(cached) $ECHO_C" >&6
6774else
6775  cat >conftest.$ac_ext <<_ACEOF
6776/* confdefs.h.  */
6777_ACEOF
6778cat confdefs.h >>conftest.$ac_ext
6779cat >>conftest.$ac_ext <<_ACEOF
6780/* end confdefs.h.  */
6781
6782#include <sys/types.h>
6783#include <sys/socket.h>
6784#include <netinet/in.h>
6785#include <arpa/inet.h>
6786struct mbuf;
6787struct rtentry;
6788#include <net/if.h>
6789#include <netinet/if_ether.h>
6790
6791
6792typedef struct ether_addr ac__type_new_;
6793int
6794main ()
6795{
6796if ((ac__type_new_ *) 0)
6797  return 0;
6798if (sizeof (ac__type_new_))
6799  return 0;
6800  ;
6801  return 0;
6802}
6803_ACEOF
6804rm -f conftest.$ac_objext
6805if { (ac_try="$ac_compile"
6806case "(($ac_try" in
6807  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6808  *) ac_try_echo=$ac_try;;
6809esac
6810eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6811  (eval "$ac_compile") 2>conftest.er1
6812  ac_status=$?
6813  grep -v '^ *+' conftest.er1 >conftest.err
6814  rm -f conftest.er1
6815  cat conftest.err >&5
6816  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6817  (exit $ac_status); } && {
6818	 test -z "$ac_c_werror_flag" ||
6819	 test ! -s conftest.err
6820       } && test -s conftest.$ac_objext; then
6821  ac_cv_type_struct_ether_addr=yes
6822else
6823  echo "$as_me: failed program was:" >&5
6824sed 's/^/| /' conftest.$ac_ext >&5
6825
6826	ac_cv_type_struct_ether_addr=no
6827fi
6828
6829rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6830fi
6831{ echo "$as_me:$LINENO: result: $ac_cv_type_struct_ether_addr" >&5
6832echo "${ECHO_T}$ac_cv_type_struct_ether_addr" >&6; }
6833if test $ac_cv_type_struct_ether_addr = yes; then
6834
6835cat >>confdefs.h <<_ACEOF
6836#define HAVE_STRUCT_ETHER_ADDR 1
6837_ACEOF
6838
6839
6840fi
6841
6842
6843cat >>confdefs.h <<\_ACEOF
6844#define HAVE_DECL_ETHER_HOSTTON 0
6845_ACEOF
6846
6847	else
6848
6849cat >>confdefs.h <<\_ACEOF
6850#define HAVE_DECL_ETHER_HOSTTON 1
6851_ACEOF
6852
6853	fi
6854fi
6855
6856{ echo "$as_me:$LINENO: checking if --disable-protochain option is specified" >&5
6857echo $ECHO_N "checking if --disable-protochain option is specified... $ECHO_C" >&6; }
6858# Check whether --enable-protochain was given.
6859if test "${enable_protochain+set}" = set; then
6860  enableval=$enable_protochain;
6861fi
6862
6863case "x$enable_protochain" in
6864xyes)	enable_protochain=enabled	;;
6865xno)	enable_protochain=disabled	;;
6866x)	enable_protochain=enabled	;;
6867esac
6868
6869if test "$enable_protochain" = "disabled"; then
6870
6871cat >>confdefs.h <<\_ACEOF
6872#define NO_PROTOCHAIN 1
6873_ACEOF
6874
6875fi
6876{ echo "$as_me:$LINENO: result: ${enable_protochain}" >&5
6877echo "${ECHO_T}${enable_protochain}" >&6; }
6878
6879#
6880# SITA support is mutually exclusive with native capture support;
6881# "--with-sita" selects SITA support.
6882#
6883
6884# Check whether --with-sita was given.
6885if test "${with_sita+set}" = set; then
6886  withval=$with_sita;
6887	if test ! "x$withval" = "xno" ; then
6888
6889cat >>confdefs.h <<\_ACEOF
6890#define SITA 1
6891_ACEOF
6892
6893		{ echo "$as_me:$LINENO: Enabling SITA ACN support" >&5
6894echo "$as_me: Enabling SITA ACN support" >&6;}
6895		V_PCAP=sita
6896		V_FINDALLDEVS=sita
6897	fi
6898
6899else
6900
6901if test -z "$with_pcap" && test "$cross_compiling" = yes; then
6902	{ { echo "$as_me:$LINENO: error: pcap type not determined when cross-compiling; use --with-pcap=..." >&5
6903echo "$as_me: error: pcap type not determined when cross-compiling; use --with-pcap=..." >&2;}
6904   { (exit 1); exit 1; }; }
6905fi
6906
6907# Check whether --with-pcap was given.
6908if test "${with_pcap+set}" = set; then
6909  withval=$with_pcap;
6910fi
6911
6912{ echo "$as_me:$LINENO: checking packet capture type" >&5
6913echo $ECHO_N "checking packet capture type... $ECHO_C" >&6; }
6914if test ! -z "$with_pcap" ; then
6915	V_PCAP="$withval"
6916elif test -r /dev/bpf -o -h /dev/bpf ; then
6917	#
6918	# Cloning BPF device.
6919	#
6920	V_PCAP=bpf
6921
6922cat >>confdefs.h <<\_ACEOF
6923#define HAVE_CLONING_BPF 1
6924_ACEOF
6925
6926elif test -r /dev/bpf0 ; then
6927	V_PCAP=bpf
6928elif test -r /usr/include/net/pfilt.h ; then
6929	V_PCAP=pf
6930elif test -r /dev/enet ; then
6931	V_PCAP=enet
6932elif test -r /dev/nit ; then
6933	V_PCAP=snit
6934elif test -r /usr/include/sys/net/nit.h ; then
6935	V_PCAP=nit
6936elif test -r /usr/include/linux/socket.h ; then
6937	V_PCAP=linux
6938elif test -r /usr/include/net/raw.h ; then
6939	V_PCAP=snoop
6940elif test -r /usr/include/odmi.h ; then
6941	#
6942	# On AIX, the BPF devices might not yet be present - they're
6943	# created the first time libpcap runs after booting.
6944	# We check for odmi.h instead.
6945	#
6946	V_PCAP=bpf
6947elif test -c /dev/bpf0 ; then		# check again in case not readable
6948	V_PCAP=bpf
6949elif test -r /usr/include/sys/dlpi.h ; then
6950	V_PCAP=dlpi
6951elif test -c /dev/enet ; then		# check again in case not readable
6952	V_PCAP=enet
6953elif test -c /dev/nit ; then		# check again in case not readable
6954	V_PCAP=snit
6955else
6956	V_PCAP=null
6957fi
6958{ echo "$as_me:$LINENO: result: $V_PCAP" >&5
6959echo "${ECHO_T}$V_PCAP" >&6; }
6960
6961#
6962# Do capture-mechanism-dependent tests.
6963#
6964case "$V_PCAP" in
6965dlpi)
6966	#
6967	# Checks to see if Solaris has the public libdlpi(3LIB) library.
6968	# Note: The existence of /usr/include/libdlpi.h does not mean it is the
6969	# public libdlpi(3LIB) version. Before libdlpi was made public, a
6970	# private version also existed, which did not have the same APIs.
6971	# Due to a gcc bug, the default search path for 32-bit libraries does
6972	# not include /lib, we add it explicitly here.
6973	# [http://bugs.opensolaris.org/view_bug.do?bug_id=6619485].
6974	# Also, due to the bug above applications that link to libpcap with
6975	# libdlpi will have to add "-L/lib" option to "configure".
6976	#
6977	saved_ldflags=$LDFLAGS
6978	LDFLAGS="$LIBS -L/lib"
6979	{ echo "$as_me:$LINENO: checking for dlpi_walk in -ldlpi" >&5
6980echo $ECHO_N "checking for dlpi_walk in -ldlpi... $ECHO_C" >&6; }
6981if test "${ac_cv_lib_dlpi_dlpi_walk+set}" = set; then
6982  echo $ECHO_N "(cached) $ECHO_C" >&6
6983else
6984  ac_check_lib_save_LIBS=$LIBS
6985LIBS="-ldlpi  $LIBS"
6986cat >conftest.$ac_ext <<_ACEOF
6987/* confdefs.h.  */
6988_ACEOF
6989cat confdefs.h >>conftest.$ac_ext
6990cat >>conftest.$ac_ext <<_ACEOF
6991/* end confdefs.h.  */
6992
6993/* Override any GCC internal prototype to avoid an error.
6994   Use char because int might match the return type of a GCC
6995   builtin and then its argument prototype would still apply.  */
6996#ifdef __cplusplus
6997extern "C"
6998#endif
6999char dlpi_walk ();
7000int
7001main ()
7002{
7003return dlpi_walk ();
7004  ;
7005  return 0;
7006}
7007_ACEOF
7008rm -f conftest.$ac_objext conftest$ac_exeext
7009if { (ac_try="$ac_link"
7010case "(($ac_try" in
7011  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7012  *) ac_try_echo=$ac_try;;
7013esac
7014eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7015  (eval "$ac_link") 2>conftest.er1
7016  ac_status=$?
7017  grep -v '^ *+' conftest.er1 >conftest.err
7018  rm -f conftest.er1
7019  cat conftest.err >&5
7020  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7021  (exit $ac_status); } && {
7022	 test -z "$ac_c_werror_flag" ||
7023	 test ! -s conftest.err
7024       } && test -s conftest$ac_exeext &&
7025       $as_test_x conftest$ac_exeext; then
7026  ac_cv_lib_dlpi_dlpi_walk=yes
7027else
7028  echo "$as_me: failed program was:" >&5
7029sed 's/^/| /' conftest.$ac_ext >&5
7030
7031	ac_cv_lib_dlpi_dlpi_walk=no
7032fi
7033
7034rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7035      conftest$ac_exeext conftest.$ac_ext
7036LIBS=$ac_check_lib_save_LIBS
7037fi
7038{ echo "$as_me:$LINENO: result: $ac_cv_lib_dlpi_dlpi_walk" >&5
7039echo "${ECHO_T}$ac_cv_lib_dlpi_dlpi_walk" >&6; }
7040if test $ac_cv_lib_dlpi_dlpi_walk = yes; then
7041  LIBS="-ldlpi $LIBS"
7042		V_PCAP=libdlpi
7043
7044cat >>confdefs.h <<\_ACEOF
7045#define HAVE_LIBDLPI 1
7046_ACEOF
7047
7048else
7049  V_PCAP=dlpi
7050fi
7051
7052	LDFLAGS=$saved_ldflags
7053
7054	#
7055	# Checks whether <sys/dlpi.h> is usable, to catch weird SCO
7056	# versions of DLPI.
7057	#
7058	{ echo "$as_me:$LINENO: checking whether <sys/dlpi.h> is usable" >&5
7059echo $ECHO_N "checking whether <sys/dlpi.h> is usable... $ECHO_C" >&6; }
7060	if test "${ac_cv_sys_dlpi_usable+set}" = set; then
7061  echo $ECHO_N "(cached) $ECHO_C" >&6
7062else
7063  cat >conftest.$ac_ext <<_ACEOF
7064/* confdefs.h.  */
7065_ACEOF
7066cat confdefs.h >>conftest.$ac_ext
7067cat >>conftest.$ac_ext <<_ACEOF
7068/* end confdefs.h.  */
7069
7070			#include <sys/types.h>
7071			#include <sys/time.h>
7072			#include <sys/dlpi.h>
7073
7074int
7075main ()
7076{
7077int i = DL_PROMISC_PHYS;
7078  ;
7079  return 0;
7080}
7081_ACEOF
7082rm -f conftest.$ac_objext
7083if { (ac_try="$ac_compile"
7084case "(($ac_try" in
7085  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7086  *) ac_try_echo=$ac_try;;
7087esac
7088eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7089  (eval "$ac_compile") 2>conftest.er1
7090  ac_status=$?
7091  grep -v '^ *+' conftest.er1 >conftest.err
7092  rm -f conftest.er1
7093  cat conftest.err >&5
7094  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7095  (exit $ac_status); } && {
7096	 test -z "$ac_c_werror_flag" ||
7097	 test ! -s conftest.err
7098       } && test -s conftest.$ac_objext; then
7099  ac_cv_sys_dlpi_usable=yes
7100else
7101  echo "$as_me: failed program was:" >&5
7102sed 's/^/| /' conftest.$ac_ext >&5
7103
7104	ac_cv_sys_dlpi_usable=no
7105fi
7106
7107rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7108fi
7109
7110	{ echo "$as_me:$LINENO: result: $ac_cv_sys_dlpi_usable" >&5
7111echo "${ECHO_T}$ac_cv_sys_dlpi_usable" >&6; }
7112	if test $ac_cv_sys_dlpi_usable = no ; then
7113		{ { echo "$as_me:$LINENO: error: <sys/dlpi.h> is not usable on this system; it probably has a non-standard DLPI" >&5
7114echo "$as_me: error: <sys/dlpi.h> is not usable on this system; it probably has a non-standard DLPI" >&2;}
7115   { (exit 1); exit 1; }; }
7116	fi
7117
7118	#
7119	# Check whether we have a /dev/dlpi device or have multiple devices.
7120	#
7121	{ echo "$as_me:$LINENO: checking for /dev/dlpi device" >&5
7122echo $ECHO_N "checking for /dev/dlpi device... $ECHO_C" >&6; }
7123	if test -c /dev/dlpi ; then
7124		{ echo "$as_me:$LINENO: result: yes" >&5
7125echo "${ECHO_T}yes" >&6; }
7126
7127cat >>confdefs.h <<\_ACEOF
7128#define HAVE_DEV_DLPI 1
7129_ACEOF
7130
7131	else
7132		{ echo "$as_me:$LINENO: result: no" >&5
7133echo "${ECHO_T}no" >&6; }
7134		dir="/dev/dlpi"
7135		{ echo "$as_me:$LINENO: checking for $dir directory" >&5
7136echo $ECHO_N "checking for $dir directory... $ECHO_C" >&6; }
7137		if test -d $dir ; then
7138			{ echo "$as_me:$LINENO: result: yes" >&5
7139echo "${ECHO_T}yes" >&6; }
7140
7141cat >>confdefs.h <<_ACEOF
7142#define PCAP_DEV_PREFIX "$dir"
7143_ACEOF
7144
7145		else
7146			{ echo "$as_me:$LINENO: result: no" >&5
7147echo "${ECHO_T}no" >&6; }
7148		fi
7149	fi
7150
7151	#
7152	# This check is for Solaris with DLPI support for passive modes.
7153	# See dlpi(7P) for more details.
7154	#
7155	{ echo "$as_me:$LINENO: checking if dl_passive_req_t struct exists" >&5
7156echo $ECHO_N "checking if dl_passive_req_t struct exists... $ECHO_C" >&6; }
7157       if test "${ac_cv_lbl_has_dl_passive_req_t+set}" = set; then
7158  echo $ECHO_N "(cached) $ECHO_C" >&6
7159else
7160  cat >conftest.$ac_ext <<_ACEOF
7161/* confdefs.h.  */
7162_ACEOF
7163cat confdefs.h >>conftest.$ac_ext
7164cat >>conftest.$ac_ext <<_ACEOF
7165/* end confdefs.h.  */
7166
7167#       include <sys/types.h>
7168#       include <sys/dlpi.h>
7169int
7170main ()
7171{
7172u_int i = sizeof(dl_passive_req_t)
7173  ;
7174  return 0;
7175}
7176_ACEOF
7177rm -f conftest.$ac_objext
7178if { (ac_try="$ac_compile"
7179case "(($ac_try" in
7180  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7181  *) ac_try_echo=$ac_try;;
7182esac
7183eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7184  (eval "$ac_compile") 2>conftest.er1
7185  ac_status=$?
7186  grep -v '^ *+' conftest.er1 >conftest.err
7187  rm -f conftest.er1
7188  cat conftest.err >&5
7189  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7190  (exit $ac_status); } && {
7191	 test -z "$ac_c_werror_flag" ||
7192	 test ! -s conftest.err
7193       } && test -s conftest.$ac_objext; then
7194  ac_cv_lbl_has_dl_passive_req_t=yes
7195else
7196  echo "$as_me: failed program was:" >&5
7197sed 's/^/| /' conftest.$ac_ext >&5
7198
7199	ac_cv_lbl_has_dl_passive_req_t=no
7200fi
7201
7202rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7203fi
7204
7205    { echo "$as_me:$LINENO: result: $ac_cv_lbl_has_dl_passive_req_t" >&5
7206echo "${ECHO_T}$ac_cv_lbl_has_dl_passive_req_t" >&6; }
7207    if test $ac_cv_lbl_has_dl_passive_req_t = yes ; then
7208
7209cat >>confdefs.h <<\_ACEOF
7210#define HAVE_DLPI_PASSIVE 1
7211_ACEOF
7212
7213    fi
7214	;;
7215
7216linux)
7217	{ echo "$as_me:$LINENO: checking Linux kernel version" >&5
7218echo $ECHO_N "checking Linux kernel version... $ECHO_C" >&6; }
7219 	if test "$cross_compiling" = yes; then
7220 		if test "${ac_cv_linux_vers+set}" = set; then
7221  echo $ECHO_N "(cached) $ECHO_C" >&6
7222else
7223  ac_cv_linux_vers=unknown
7224fi
7225
7226 	else
7227 		if test "${ac_cv_linux_vers+set}" = set; then
7228  echo $ECHO_N "(cached) $ECHO_C" >&6
7229else
7230  ac_cv_linux_vers=`uname -r 2>&1 | \
7231 			sed -n -e '$s/.* //' -e '$s/\..*//p'`
7232fi
7233
7234 	fi
7235	{ echo "$as_me:$LINENO: result: $ac_cv_linux_vers" >&5
7236echo "${ECHO_T}$ac_cv_linux_vers" >&6; }
7237 	if test $ac_cv_linux_vers = unknown ; then
7238 		{ { echo "$as_me:$LINENO: error: cannot determine linux version when cross-compiling" >&5
7239echo "$as_me: error: cannot determine linux version when cross-compiling" >&2;}
7240   { (exit 1); exit 1; }; }
7241 	fi
7242	if test $ac_cv_linux_vers -lt 2 ; then
7243		{ { echo "$as_me:$LINENO: error: version 2 or higher required; see the INSTALL doc for more info" >&5
7244echo "$as_me: error: version 2 or higher required; see the INSTALL doc for more info" >&2;}
7245   { (exit 1); exit 1; }; }
7246	fi
7247
7248	#
7249	# Do we have the wireless extensions?
7250	#
7251
7252for ac_header in linux/wireless.h
7253do
7254as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7255{ echo "$as_me:$LINENO: checking for $ac_header" >&5
7256echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7257if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7258  echo $ECHO_N "(cached) $ECHO_C" >&6
7259else
7260  cat >conftest.$ac_ext <<_ACEOF
7261/* confdefs.h.  */
7262_ACEOF
7263cat confdefs.h >>conftest.$ac_ext
7264cat >>conftest.$ac_ext <<_ACEOF
7265/* end confdefs.h.  */
7266
7267#include <sys/socket.h>
7268#include <linux/if.h>
7269#include <linux/types.h>
7270
7271
7272#include <$ac_header>
7273_ACEOF
7274rm -f conftest.$ac_objext
7275if { (ac_try="$ac_compile"
7276case "(($ac_try" in
7277  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7278  *) ac_try_echo=$ac_try;;
7279esac
7280eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7281  (eval "$ac_compile") 2>conftest.er1
7282  ac_status=$?
7283  grep -v '^ *+' conftest.er1 >conftest.err
7284  rm -f conftest.er1
7285  cat conftest.err >&5
7286  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7287  (exit $ac_status); } && {
7288	 test -z "$ac_c_werror_flag" ||
7289	 test ! -s conftest.err
7290       } && test -s conftest.$ac_objext; then
7291  eval "$as_ac_Header=yes"
7292else
7293  echo "$as_me: failed program was:" >&5
7294sed 's/^/| /' conftest.$ac_ext >&5
7295
7296	eval "$as_ac_Header=no"
7297fi
7298
7299rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7300fi
7301ac_res=`eval echo '${'$as_ac_Header'}'`
7302	       { echo "$as_me:$LINENO: result: $ac_res" >&5
7303echo "${ECHO_T}$ac_res" >&6; }
7304if test `eval echo '${'$as_ac_Header'}'` = yes; then
7305  cat >>confdefs.h <<_ACEOF
7306#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7307_ACEOF
7308
7309fi
7310
7311done
7312
7313
7314	#
7315	# Do we have libnl?
7316	#
7317
7318# Check whether --with-libnl was given.
7319if test "${with_libnl+set}" = set; then
7320  withval=$with_libnl; with_libnl=$withval
7321fi
7322
7323
7324	if test x$with_libnl != xno ; then
7325		{ echo "$as_me:$LINENO: checking for nl_handle_alloc in -lnl" >&5
7326echo $ECHO_N "checking for nl_handle_alloc in -lnl... $ECHO_C" >&6; }
7327if test "${ac_cv_lib_nl_nl_handle_alloc+set}" = set; then
7328  echo $ECHO_N "(cached) $ECHO_C" >&6
7329else
7330  ac_check_lib_save_LIBS=$LIBS
7331LIBS="-lnl  $LIBS"
7332cat >conftest.$ac_ext <<_ACEOF
7333/* confdefs.h.  */
7334_ACEOF
7335cat confdefs.h >>conftest.$ac_ext
7336cat >>conftest.$ac_ext <<_ACEOF
7337/* end confdefs.h.  */
7338
7339/* Override any GCC internal prototype to avoid an error.
7340   Use char because int might match the return type of a GCC
7341   builtin and then its argument prototype would still apply.  */
7342#ifdef __cplusplus
7343extern "C"
7344#endif
7345char nl_handle_alloc ();
7346int
7347main ()
7348{
7349return nl_handle_alloc ();
7350  ;
7351  return 0;
7352}
7353_ACEOF
7354rm -f conftest.$ac_objext conftest$ac_exeext
7355if { (ac_try="$ac_link"
7356case "(($ac_try" in
7357  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7358  *) ac_try_echo=$ac_try;;
7359esac
7360eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7361  (eval "$ac_link") 2>conftest.er1
7362  ac_status=$?
7363  grep -v '^ *+' conftest.er1 >conftest.err
7364  rm -f conftest.er1
7365  cat conftest.err >&5
7366  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7367  (exit $ac_status); } && {
7368	 test -z "$ac_c_werror_flag" ||
7369	 test ! -s conftest.err
7370       } && test -s conftest$ac_exeext &&
7371       $as_test_x conftest$ac_exeext; then
7372  ac_cv_lib_nl_nl_handle_alloc=yes
7373else
7374  echo "$as_me: failed program was:" >&5
7375sed 's/^/| /' conftest.$ac_ext >&5
7376
7377	ac_cv_lib_nl_nl_handle_alloc=no
7378fi
7379
7380rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7381      conftest$ac_exeext conftest.$ac_ext
7382LIBS=$ac_check_lib_save_LIBS
7383fi
7384{ echo "$as_me:$LINENO: result: $ac_cv_lib_nl_nl_handle_alloc" >&5
7385echo "${ECHO_T}$ac_cv_lib_nl_nl_handle_alloc" >&6; }
7386if test $ac_cv_lib_nl_nl_handle_alloc = yes; then
7387  LIBS="-lnl $LIBS"
7388
7389cat >>confdefs.h <<\_ACEOF
7390#define HAVE_LIBNL 1
7391_ACEOF
7392
7393else
7394  if test x$with_libnl = xyes ; then
7395				{ { echo "$as_me:$LINENO: error: libnl support requested but libnl not found" >&5
7396echo "$as_me: error: libnl support requested but libnl not found" >&2;}
7397   { (exit 1); exit 1; }; }
7398			fi
7399
7400fi
7401
7402	fi
7403
7404	{ echo "$as_me:$LINENO: checking if if_packet.h has tpacket_stats defined" >&5
7405echo $ECHO_N "checking if if_packet.h has tpacket_stats defined... $ECHO_C" >&6; }
7406   if test "${ac_cv_lbl_tpacket_stats+set}" = set; then
7407  echo $ECHO_N "(cached) $ECHO_C" >&6
7408else
7409  cat >conftest.$ac_ext <<_ACEOF
7410/* confdefs.h.  */
7411_ACEOF
7412cat confdefs.h >>conftest.$ac_ext
7413cat >>conftest.$ac_ext <<_ACEOF
7414/* end confdefs.h.  */
7415
7416#  include <linux/if_packet.h>
7417int
7418main ()
7419{
7420struct tpacket_stats stats
7421  ;
7422  return 0;
7423}
7424_ACEOF
7425rm -f conftest.$ac_objext
7426if { (ac_try="$ac_compile"
7427case "(($ac_try" in
7428  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7429  *) ac_try_echo=$ac_try;;
7430esac
7431eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7432  (eval "$ac_compile") 2>conftest.er1
7433  ac_status=$?
7434  grep -v '^ *+' conftest.er1 >conftest.err
7435  rm -f conftest.er1
7436  cat conftest.err >&5
7437  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7438  (exit $ac_status); } && {
7439	 test -z "$ac_c_werror_flag" ||
7440	 test ! -s conftest.err
7441       } && test -s conftest.$ac_objext; then
7442  ac_cv_lbl_tpacket_stats=yes
7443else
7444  echo "$as_me: failed program was:" >&5
7445sed 's/^/| /' conftest.$ac_ext >&5
7446
7447	ac_cv_lbl_tpacket_stats=no
7448fi
7449
7450rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7451fi
7452
7453   { echo "$as_me:$LINENO: result: $ac_cv_lbl_tpacket_stats" >&5
7454echo "${ECHO_T}$ac_cv_lbl_tpacket_stats" >&6; }
7455   if test $ac_cv_lbl_tpacket_stats = yes; then
7456
7457cat >>confdefs.h <<\_ACEOF
7458#define HAVE_TPACKET_STATS 1
7459_ACEOF
7460
7461   fi
7462	{ echo "$as_me:$LINENO: checking if tpacket_auxdata struct has tp_vlan_tci member" >&5
7463echo $ECHO_N "checking if tpacket_auxdata struct has tp_vlan_tci member... $ECHO_C" >&6; }
7464    if test "${ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1+set}" = set; then
7465  echo $ECHO_N "(cached) $ECHO_C" >&6
7466else
7467  cat >conftest.$ac_ext <<_ACEOF
7468/* confdefs.h.  */
7469_ACEOF
7470cat confdefs.h >>conftest.$ac_ext
7471cat >>conftest.$ac_ext <<_ACEOF
7472/* end confdefs.h.  */
7473
7474#	include <linux/if_packet.h>
7475int
7476main ()
7477{
7478u_int i = sizeof(((struct tpacket_auxdata *)0)->tp_vlan_tci)
7479  ;
7480  return 0;
7481}
7482_ACEOF
7483rm -f conftest.$ac_objext
7484if { (ac_try="$ac_compile"
7485case "(($ac_try" in
7486  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7487  *) ac_try_echo=$ac_try;;
7488esac
7489eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7490  (eval "$ac_compile") 2>conftest.er1
7491  ac_status=$?
7492  grep -v '^ *+' conftest.er1 >conftest.err
7493  rm -f conftest.er1
7494  cat conftest.err >&5
7495  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7496  (exit $ac_status); } && {
7497	 test -z "$ac_c_werror_flag" ||
7498	 test ! -s conftest.err
7499       } && test -s conftest.$ac_objext; then
7500  ac_cv_lbl_linux_tpacket_auxdata_tp_vlan_tci=yes
7501else
7502  echo "$as_me: failed program was:" >&5
7503sed 's/^/| /' conftest.$ac_ext >&5
7504
7505	ac_cv_lbl_linux_tpacket_auxdata_tp_vlan_tci=no
7506fi
7507
7508rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7509fi
7510
7511    { echo "$as_me:$LINENO: result: $ac_cv_lbl_linux_tpacket_auxdata_tp_vlan_tci" >&5
7512echo "${ECHO_T}$ac_cv_lbl_linux_tpacket_auxdata_tp_vlan_tci" >&6; }
7513    if test $ac_cv_lbl_linux_tpacket_auxdata_tp_vlan_tci = yes ; then
7514	    HAVE_LINUX_TPACKET_AUXDATA=tp_vlan_tci
7515
7516
7517cat >>confdefs.h <<\_ACEOF
7518#define HAVE_LINUX_TPACKET_AUXDATA_TP_VLAN_TCI 1
7519_ACEOF
7520
7521    fi
7522	;;
7523
7524bpf)
7525	#
7526	# Check whether we have the *BSD-style ioctls.
7527	#
7528
7529for ac_header in net/if_media.h
7530do
7531as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7532if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7533  { echo "$as_me:$LINENO: checking for $ac_header" >&5
7534echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7535if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7536  echo $ECHO_N "(cached) $ECHO_C" >&6
7537fi
7538ac_res=`eval echo '${'$as_ac_Header'}'`
7539	       { echo "$as_me:$LINENO: result: $ac_res" >&5
7540echo "${ECHO_T}$ac_res" >&6; }
7541else
7542  # Is the header compilable?
7543{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
7544echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7545cat >conftest.$ac_ext <<_ACEOF
7546/* confdefs.h.  */
7547_ACEOF
7548cat confdefs.h >>conftest.$ac_ext
7549cat >>conftest.$ac_ext <<_ACEOF
7550/* end confdefs.h.  */
7551$ac_includes_default
7552#include <$ac_header>
7553_ACEOF
7554rm -f conftest.$ac_objext
7555if { (ac_try="$ac_compile"
7556case "(($ac_try" in
7557  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7558  *) ac_try_echo=$ac_try;;
7559esac
7560eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7561  (eval "$ac_compile") 2>conftest.er1
7562  ac_status=$?
7563  grep -v '^ *+' conftest.er1 >conftest.err
7564  rm -f conftest.er1
7565  cat conftest.err >&5
7566  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7567  (exit $ac_status); } && {
7568	 test -z "$ac_c_werror_flag" ||
7569	 test ! -s conftest.err
7570       } && test -s conftest.$ac_objext; then
7571  ac_header_compiler=yes
7572else
7573  echo "$as_me: failed program was:" >&5
7574sed 's/^/| /' conftest.$ac_ext >&5
7575
7576	ac_header_compiler=no
7577fi
7578
7579rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7580{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7581echo "${ECHO_T}$ac_header_compiler" >&6; }
7582
7583# Is the header present?
7584{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
7585echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7586cat >conftest.$ac_ext <<_ACEOF
7587/* confdefs.h.  */
7588_ACEOF
7589cat confdefs.h >>conftest.$ac_ext
7590cat >>conftest.$ac_ext <<_ACEOF
7591/* end confdefs.h.  */
7592#include <$ac_header>
7593_ACEOF
7594if { (ac_try="$ac_cpp conftest.$ac_ext"
7595case "(($ac_try" in
7596  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7597  *) ac_try_echo=$ac_try;;
7598esac
7599eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7600  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7601  ac_status=$?
7602  grep -v '^ *+' conftest.er1 >conftest.err
7603  rm -f conftest.er1
7604  cat conftest.err >&5
7605  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7606  (exit $ac_status); } >/dev/null && {
7607	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7608	 test ! -s conftest.err
7609       }; then
7610  ac_header_preproc=yes
7611else
7612  echo "$as_me: failed program was:" >&5
7613sed 's/^/| /' conftest.$ac_ext >&5
7614
7615  ac_header_preproc=no
7616fi
7617
7618rm -f conftest.err conftest.$ac_ext
7619{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7620echo "${ECHO_T}$ac_header_preproc" >&6; }
7621
7622# So?  What about this header?
7623case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7624  yes:no: )
7625    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7626echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7627    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7628echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7629    ac_header_preproc=yes
7630    ;;
7631  no:yes:* )
7632    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7633echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7634    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7635echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7636    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7637echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7638    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7639echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7640    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7641echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7642    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7643echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7644
7645    ;;
7646esac
7647{ echo "$as_me:$LINENO: checking for $ac_header" >&5
7648echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7649if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7650  echo $ECHO_N "(cached) $ECHO_C" >&6
7651else
7652  eval "$as_ac_Header=\$ac_header_preproc"
7653fi
7654ac_res=`eval echo '${'$as_ac_Header'}'`
7655	       { echo "$as_me:$LINENO: result: $ac_res" >&5
7656echo "${ECHO_T}$ac_res" >&6; }
7657
7658fi
7659if test `eval echo '${'$as_ac_Header'}'` = yes; then
7660  cat >>confdefs.h <<_ACEOF
7661#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7662_ACEOF
7663
7664fi
7665
7666done
7667
7668
7669	{ echo "$as_me:$LINENO: checking whether the system supports zerocopy BPF" >&5
7670echo $ECHO_N "checking whether the system supports zerocopy BPF... $ECHO_C" >&6; }
7671	cat >conftest.$ac_ext <<_ACEOF
7672/* confdefs.h.  */
7673_ACEOF
7674cat confdefs.h >>conftest.$ac_ext
7675cat >>conftest.$ac_ext <<_ACEOF
7676/* end confdefs.h.  */
7677#include <sys/socket.h>
7678	    #include <sys/ioctl.h>
7679	    #include <net/if.h>
7680	    #include <net/bpf.h>
7681int
7682main ()
7683{
7684return (BIOCROTZBUF + BPF_BUFMODE_ZBUF);
7685  ;
7686  return 0;
7687}
7688_ACEOF
7689rm -f conftest.$ac_objext
7690if { (ac_try="$ac_compile"
7691case "(($ac_try" in
7692  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7693  *) ac_try_echo=$ac_try;;
7694esac
7695eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7696  (eval "$ac_compile") 2>conftest.er1
7697  ac_status=$?
7698  grep -v '^ *+' conftest.er1 >conftest.err
7699  rm -f conftest.er1
7700  cat conftest.err >&5
7701  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7702  (exit $ac_status); } && {
7703	 test -z "$ac_c_werror_flag" ||
7704	 test ! -s conftest.err
7705       } && test -s conftest.$ac_objext; then
7706
7707		{ echo "$as_me:$LINENO: result: yes" >&5
7708echo "${ECHO_T}yes" >&6; }
7709
7710cat >>confdefs.h <<\_ACEOF
7711#define HAVE_ZEROCOPY_BPF 1
7712_ACEOF
7713
7714
7715else
7716  echo "$as_me: failed program was:" >&5
7717sed 's/^/| /' conftest.$ac_ext >&5
7718
7719	{ echo "$as_me:$LINENO: result: no" >&5
7720echo "${ECHO_T}no" >&6; }
7721fi
7722
7723rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7724
7725	    #
7726	    # Check whether we have struct BPF_TIMEVAL.
7727	    #
7728	    { echo "$as_me:$LINENO: checking for struct BPF_TIMEVAL" >&5
7729echo $ECHO_N "checking for struct BPF_TIMEVAL... $ECHO_C" >&6; }
7730if test "${ac_cv_type_struct_BPF_TIMEVAL+set}" = set; then
7731  echo $ECHO_N "(cached) $ECHO_C" >&6
7732else
7733  cat >conftest.$ac_ext <<_ACEOF
7734/* confdefs.h.  */
7735_ACEOF
7736cat confdefs.h >>conftest.$ac_ext
7737cat >>conftest.$ac_ext <<_ACEOF
7738/* end confdefs.h.  */
7739
7740#include <sys/types.h>
7741#include <sys/ioctl.h>
7742#ifdef HAVE_SYS_IOCCOM_H
7743#include <sys/ioccom.h>
7744#endif
7745#include <net/bpf.h>
7746
7747
7748typedef struct BPF_TIMEVAL ac__type_new_;
7749int
7750main ()
7751{
7752if ((ac__type_new_ *) 0)
7753  return 0;
7754if (sizeof (ac__type_new_))
7755  return 0;
7756  ;
7757  return 0;
7758}
7759_ACEOF
7760rm -f conftest.$ac_objext
7761if { (ac_try="$ac_compile"
7762case "(($ac_try" in
7763  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7764  *) ac_try_echo=$ac_try;;
7765esac
7766eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7767  (eval "$ac_compile") 2>conftest.er1
7768  ac_status=$?
7769  grep -v '^ *+' conftest.er1 >conftest.err
7770  rm -f conftest.er1
7771  cat conftest.err >&5
7772  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7773  (exit $ac_status); } && {
7774	 test -z "$ac_c_werror_flag" ||
7775	 test ! -s conftest.err
7776       } && test -s conftest.$ac_objext; then
7777  ac_cv_type_struct_BPF_TIMEVAL=yes
7778else
7779  echo "$as_me: failed program was:" >&5
7780sed 's/^/| /' conftest.$ac_ext >&5
7781
7782	ac_cv_type_struct_BPF_TIMEVAL=no
7783fi
7784
7785rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7786fi
7787{ echo "$as_me:$LINENO: result: $ac_cv_type_struct_BPF_TIMEVAL" >&5
7788echo "${ECHO_T}$ac_cv_type_struct_BPF_TIMEVAL" >&6; }
7789if test $ac_cv_type_struct_BPF_TIMEVAL = yes; then
7790
7791cat >>confdefs.h <<_ACEOF
7792#define HAVE_STRUCT_BPF_TIMEVAL 1
7793_ACEOF
7794
7795
7796fi
7797
7798	;;
7799
7800dag)
7801	V_DEFS="$V_DEFS -DDAG_ONLY"
7802	;;
7803
7804septel)
7805	V_DEFS="$V_DEFS -DSEPTEL_ONLY"
7806	;;
7807
7808snf)
7809	V_DEFS="$V_DEFS -DSNF_ONLY"
7810	;;
7811
7812null)
7813	{ echo "$as_me:$LINENO: WARNING: cannot determine packet capture interface" >&5
7814echo "$as_me: WARNING: cannot determine packet capture interface" >&2;}
7815	{ echo "$as_me:$LINENO: WARNING: (see the INSTALL doc for more info)" >&5
7816echo "$as_me: WARNING: (see the INSTALL doc for more info)" >&2;}
7817	;;
7818esac
7819
7820if test "$V_PCAP" = null
7821then
7822	#
7823	# We can't capture, so we can't open any capture
7824	# devices, so we won't return any interfaces.
7825	#
7826	V_FINDALLDEVS=null
7827else
7828	{ echo "$as_me:$LINENO: checking for getifaddrs" >&5
7829echo $ECHO_N "checking for getifaddrs... $ECHO_C" >&6; }
7830if test "${ac_cv_func_getifaddrs+set}" = set; then
7831  echo $ECHO_N "(cached) $ECHO_C" >&6
7832else
7833  cat >conftest.$ac_ext <<_ACEOF
7834/* confdefs.h.  */
7835_ACEOF
7836cat confdefs.h >>conftest.$ac_ext
7837cat >>conftest.$ac_ext <<_ACEOF
7838/* end confdefs.h.  */
7839/* Define getifaddrs to an innocuous variant, in case <limits.h> declares getifaddrs.
7840   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7841#define getifaddrs innocuous_getifaddrs
7842
7843/* System header to define __stub macros and hopefully few prototypes,
7844    which can conflict with char getifaddrs (); below.
7845    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7846    <limits.h> exists even on freestanding compilers.  */
7847
7848#ifdef __STDC__
7849# include <limits.h>
7850#else
7851# include <assert.h>
7852#endif
7853
7854#undef getifaddrs
7855
7856/* Override any GCC internal prototype to avoid an error.
7857   Use char because int might match the return type of a GCC
7858   builtin and then its argument prototype would still apply.  */
7859#ifdef __cplusplus
7860extern "C"
7861#endif
7862char getifaddrs ();
7863/* The GNU C library defines this for functions which it implements
7864    to always fail with ENOSYS.  Some functions are actually named
7865    something starting with __ and the normal name is an alias.  */
7866#if defined __stub_getifaddrs || defined __stub___getifaddrs
7867choke me
7868#endif
7869
7870int
7871main ()
7872{
7873return getifaddrs ();
7874  ;
7875  return 0;
7876}
7877_ACEOF
7878rm -f conftest.$ac_objext conftest$ac_exeext
7879if { (ac_try="$ac_link"
7880case "(($ac_try" in
7881  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7882  *) ac_try_echo=$ac_try;;
7883esac
7884eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7885  (eval "$ac_link") 2>conftest.er1
7886  ac_status=$?
7887  grep -v '^ *+' conftest.er1 >conftest.err
7888  rm -f conftest.er1
7889  cat conftest.err >&5
7890  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7891  (exit $ac_status); } && {
7892	 test -z "$ac_c_werror_flag" ||
7893	 test ! -s conftest.err
7894       } && test -s conftest$ac_exeext &&
7895       $as_test_x conftest$ac_exeext; then
7896  ac_cv_func_getifaddrs=yes
7897else
7898  echo "$as_me: failed program was:" >&5
7899sed 's/^/| /' conftest.$ac_ext >&5
7900
7901	ac_cv_func_getifaddrs=no
7902fi
7903
7904rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7905      conftest$ac_exeext conftest.$ac_ext
7906fi
7907{ echo "$as_me:$LINENO: result: $ac_cv_func_getifaddrs" >&5
7908echo "${ECHO_T}$ac_cv_func_getifaddrs" >&6; }
7909if test $ac_cv_func_getifaddrs = yes; then
7910
7911		#
7912		# We have "getifaddrs()"; make sure we have <ifaddrs.h>
7913		# as well, just in case some platform is really weird.
7914		#
7915		if test "${ac_cv_header_ifaddrs_h+set}" = set; then
7916  { echo "$as_me:$LINENO: checking for ifaddrs.h" >&5
7917echo $ECHO_N "checking for ifaddrs.h... $ECHO_C" >&6; }
7918if test "${ac_cv_header_ifaddrs_h+set}" = set; then
7919  echo $ECHO_N "(cached) $ECHO_C" >&6
7920fi
7921{ echo "$as_me:$LINENO: result: $ac_cv_header_ifaddrs_h" >&5
7922echo "${ECHO_T}$ac_cv_header_ifaddrs_h" >&6; }
7923else
7924  # Is the header compilable?
7925{ echo "$as_me:$LINENO: checking ifaddrs.h usability" >&5
7926echo $ECHO_N "checking ifaddrs.h usability... $ECHO_C" >&6; }
7927cat >conftest.$ac_ext <<_ACEOF
7928/* confdefs.h.  */
7929_ACEOF
7930cat confdefs.h >>conftest.$ac_ext
7931cat >>conftest.$ac_ext <<_ACEOF
7932/* end confdefs.h.  */
7933$ac_includes_default
7934#include <ifaddrs.h>
7935_ACEOF
7936rm -f conftest.$ac_objext
7937if { (ac_try="$ac_compile"
7938case "(($ac_try" in
7939  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7940  *) ac_try_echo=$ac_try;;
7941esac
7942eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7943  (eval "$ac_compile") 2>conftest.er1
7944  ac_status=$?
7945  grep -v '^ *+' conftest.er1 >conftest.err
7946  rm -f conftest.er1
7947  cat conftest.err >&5
7948  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7949  (exit $ac_status); } && {
7950	 test -z "$ac_c_werror_flag" ||
7951	 test ! -s conftest.err
7952       } && test -s conftest.$ac_objext; then
7953  ac_header_compiler=yes
7954else
7955  echo "$as_me: failed program was:" >&5
7956sed 's/^/| /' conftest.$ac_ext >&5
7957
7958	ac_header_compiler=no
7959fi
7960
7961rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7962{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7963echo "${ECHO_T}$ac_header_compiler" >&6; }
7964
7965# Is the header present?
7966{ echo "$as_me:$LINENO: checking ifaddrs.h presence" >&5
7967echo $ECHO_N "checking ifaddrs.h presence... $ECHO_C" >&6; }
7968cat >conftest.$ac_ext <<_ACEOF
7969/* confdefs.h.  */
7970_ACEOF
7971cat confdefs.h >>conftest.$ac_ext
7972cat >>conftest.$ac_ext <<_ACEOF
7973/* end confdefs.h.  */
7974#include <ifaddrs.h>
7975_ACEOF
7976if { (ac_try="$ac_cpp conftest.$ac_ext"
7977case "(($ac_try" in
7978  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7979  *) ac_try_echo=$ac_try;;
7980esac
7981eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7982  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7983  ac_status=$?
7984  grep -v '^ *+' conftest.er1 >conftest.err
7985  rm -f conftest.er1
7986  cat conftest.err >&5
7987  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7988  (exit $ac_status); } >/dev/null && {
7989	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7990	 test ! -s conftest.err
7991       }; then
7992  ac_header_preproc=yes
7993else
7994  echo "$as_me: failed program was:" >&5
7995sed 's/^/| /' conftest.$ac_ext >&5
7996
7997  ac_header_preproc=no
7998fi
7999
8000rm -f conftest.err conftest.$ac_ext
8001{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8002echo "${ECHO_T}$ac_header_preproc" >&6; }
8003
8004# So?  What about this header?
8005case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8006  yes:no: )
8007    { echo "$as_me:$LINENO: WARNING: ifaddrs.h: accepted by the compiler, rejected by the preprocessor!" >&5
8008echo "$as_me: WARNING: ifaddrs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8009    { echo "$as_me:$LINENO: WARNING: ifaddrs.h: proceeding with the compiler's result" >&5
8010echo "$as_me: WARNING: ifaddrs.h: proceeding with the compiler's result" >&2;}
8011    ac_header_preproc=yes
8012    ;;
8013  no:yes:* )
8014    { echo "$as_me:$LINENO: WARNING: ifaddrs.h: present but cannot be compiled" >&5
8015echo "$as_me: WARNING: ifaddrs.h: present but cannot be compiled" >&2;}
8016    { echo "$as_me:$LINENO: WARNING: ifaddrs.h:     check for missing prerequisite headers?" >&5
8017echo "$as_me: WARNING: ifaddrs.h:     check for missing prerequisite headers?" >&2;}
8018    { echo "$as_me:$LINENO: WARNING: ifaddrs.h: see the Autoconf documentation" >&5
8019echo "$as_me: WARNING: ifaddrs.h: see the Autoconf documentation" >&2;}
8020    { echo "$as_me:$LINENO: WARNING: ifaddrs.h:     section \"Present But Cannot Be Compiled\"" >&5
8021echo "$as_me: WARNING: ifaddrs.h:     section \"Present But Cannot Be Compiled\"" >&2;}
8022    { echo "$as_me:$LINENO: WARNING: ifaddrs.h: proceeding with the preprocessor's result" >&5
8023echo "$as_me: WARNING: ifaddrs.h: proceeding with the preprocessor's result" >&2;}
8024    { echo "$as_me:$LINENO: WARNING: ifaddrs.h: in the future, the compiler will take precedence" >&5
8025echo "$as_me: WARNING: ifaddrs.h: in the future, the compiler will take precedence" >&2;}
8026
8027    ;;
8028esac
8029{ echo "$as_me:$LINENO: checking for ifaddrs.h" >&5
8030echo $ECHO_N "checking for ifaddrs.h... $ECHO_C" >&6; }
8031if test "${ac_cv_header_ifaddrs_h+set}" = set; then
8032  echo $ECHO_N "(cached) $ECHO_C" >&6
8033else
8034  ac_cv_header_ifaddrs_h=$ac_header_preproc
8035fi
8036{ echo "$as_me:$LINENO: result: $ac_cv_header_ifaddrs_h" >&5
8037echo "${ECHO_T}$ac_cv_header_ifaddrs_h" >&6; }
8038
8039fi
8040if test $ac_cv_header_ifaddrs_h = yes; then
8041
8042		    #
8043		    # We have the header, so we use "getifaddrs()" to
8044		    # get the list of interfaces.
8045		    #
8046		    V_FINDALLDEVS=getad
8047
8048else
8049
8050		    #
8051		    # We don't have the header - give up.
8052		    # XXX - we could also fall back on some other
8053		    # mechanism, but, for now, this'll catch this
8054		    # problem so that we can at least try to figure
8055		    # out something to do on systems with "getifaddrs()"
8056		    # but without "ifaddrs.h", if there is something
8057		    # we can do on those systems.
8058		    #
8059		    { { echo "$as_me:$LINENO: error: Your system has getifaddrs() but doesn't have a usable <ifaddrs.h>." >&5
8060echo "$as_me: error: Your system has getifaddrs() but doesn't have a usable <ifaddrs.h>." >&2;}
8061   { (exit 1); exit 1; }; }
8062
8063fi
8064
8065
8066
8067else
8068
8069		#
8070		# Well, we don't have "getifaddrs()", so we have to use
8071		# some other mechanism; determine what that mechanism is.
8072		#
8073		# The first thing we use is the type of capture mechanism,
8074		# which is somewhat of a proxy for the OS we're using.
8075		#
8076		case "$V_PCAP" in
8077
8078		dlpi|libdlpi)
8079
8080
8081for ac_header in sys/bufmod.h sys/dlpi_ext.h
8082do
8083as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8084if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8085  { echo "$as_me:$LINENO: checking for $ac_header" >&5
8086echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8087if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8088  echo $ECHO_N "(cached) $ECHO_C" >&6
8089fi
8090ac_res=`eval echo '${'$as_ac_Header'}'`
8091	       { echo "$as_me:$LINENO: result: $ac_res" >&5
8092echo "${ECHO_T}$ac_res" >&6; }
8093else
8094  # Is the header compilable?
8095{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8096echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8097cat >conftest.$ac_ext <<_ACEOF
8098/* confdefs.h.  */
8099_ACEOF
8100cat confdefs.h >>conftest.$ac_ext
8101cat >>conftest.$ac_ext <<_ACEOF
8102/* end confdefs.h.  */
8103$ac_includes_default
8104#include <$ac_header>
8105_ACEOF
8106rm -f conftest.$ac_objext
8107if { (ac_try="$ac_compile"
8108case "(($ac_try" in
8109  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8110  *) ac_try_echo=$ac_try;;
8111esac
8112eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8113  (eval "$ac_compile") 2>conftest.er1
8114  ac_status=$?
8115  grep -v '^ *+' conftest.er1 >conftest.err
8116  rm -f conftest.er1
8117  cat conftest.err >&5
8118  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8119  (exit $ac_status); } && {
8120	 test -z "$ac_c_werror_flag" ||
8121	 test ! -s conftest.err
8122       } && test -s conftest.$ac_objext; then
8123  ac_header_compiler=yes
8124else
8125  echo "$as_me: failed program was:" >&5
8126sed 's/^/| /' conftest.$ac_ext >&5
8127
8128	ac_header_compiler=no
8129fi
8130
8131rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8132{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8133echo "${ECHO_T}$ac_header_compiler" >&6; }
8134
8135# Is the header present?
8136{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8137echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8138cat >conftest.$ac_ext <<_ACEOF
8139/* confdefs.h.  */
8140_ACEOF
8141cat confdefs.h >>conftest.$ac_ext
8142cat >>conftest.$ac_ext <<_ACEOF
8143/* end confdefs.h.  */
8144#include <$ac_header>
8145_ACEOF
8146if { (ac_try="$ac_cpp conftest.$ac_ext"
8147case "(($ac_try" in
8148  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8149  *) ac_try_echo=$ac_try;;
8150esac
8151eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8152  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8153  ac_status=$?
8154  grep -v '^ *+' conftest.er1 >conftest.err
8155  rm -f conftest.er1
8156  cat conftest.err >&5
8157  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8158  (exit $ac_status); } >/dev/null && {
8159	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8160	 test ! -s conftest.err
8161       }; then
8162  ac_header_preproc=yes
8163else
8164  echo "$as_me: failed program was:" >&5
8165sed 's/^/| /' conftest.$ac_ext >&5
8166
8167  ac_header_preproc=no
8168fi
8169
8170rm -f conftest.err conftest.$ac_ext
8171{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8172echo "${ECHO_T}$ac_header_preproc" >&6; }
8173
8174# So?  What about this header?
8175case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8176  yes:no: )
8177    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8178echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8179    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8180echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8181    ac_header_preproc=yes
8182    ;;
8183  no:yes:* )
8184    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8185echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8186    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8187echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8188    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8189echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8190    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8191echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8192    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8193echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8194    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8195echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8196
8197    ;;
8198esac
8199{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8200echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8201if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8202  echo $ECHO_N "(cached) $ECHO_C" >&6
8203else
8204  eval "$as_ac_Header=\$ac_header_preproc"
8205fi
8206ac_res=`eval echo '${'$as_ac_Header'}'`
8207	       { echo "$as_me:$LINENO: result: $ac_res" >&5
8208echo "${ECHO_T}$ac_res" >&6; }
8209
8210fi
8211if test `eval echo '${'$as_ac_Header'}'` = yes; then
8212  cat >>confdefs.h <<_ACEOF
8213#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8214_ACEOF
8215
8216fi
8217
8218done
8219
8220			#
8221			# This might be Solaris 8 or later, with
8222			# SIOCGLIFCONF, or it might be some other OS
8223			# or some older version of Solaris, with
8224			# just SIOCGIFCONF.
8225			#
8226			{ echo "$as_me:$LINENO: checking whether we have SIOCGLIFCONF" >&5
8227echo $ECHO_N "checking whether we have SIOCGLIFCONF... $ECHO_C" >&6; }
8228			if test "${ac_cv_lbl_have_siocglifconf+set}" = set; then
8229  echo $ECHO_N "(cached) $ECHO_C" >&6
8230else
8231  cat >conftest.$ac_ext <<_ACEOF
8232/* confdefs.h.  */
8233_ACEOF
8234cat confdefs.h >>conftest.$ac_ext
8235cat >>conftest.$ac_ext <<_ACEOF
8236/* end confdefs.h.  */
8237#include <sys/param.h>
8238				#include <sys/file.h>
8239				#include <sys/ioctl.h>
8240				#include <sys/socket.h>
8241				#include <sys/sockio.h>
8242int
8243main ()
8244{
8245ioctl(0, SIOCGLIFCONF, (char *)0);
8246  ;
8247  return 0;
8248}
8249_ACEOF
8250rm -f conftest.$ac_objext
8251if { (ac_try="$ac_compile"
8252case "(($ac_try" in
8253  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8254  *) ac_try_echo=$ac_try;;
8255esac
8256eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8257  (eval "$ac_compile") 2>conftest.er1
8258  ac_status=$?
8259  grep -v '^ *+' conftest.er1 >conftest.err
8260  rm -f conftest.er1
8261  cat conftest.err >&5
8262  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8263  (exit $ac_status); } && {
8264	 test -z "$ac_c_werror_flag" ||
8265	 test ! -s conftest.err
8266       } && test -s conftest.$ac_objext; then
8267  ac_cv_lbl_have_siocglifconf=yes
8268else
8269  echo "$as_me: failed program was:" >&5
8270sed 's/^/| /' conftest.$ac_ext >&5
8271
8272	ac_cv_lbl_have_siocglifconf=no
8273fi
8274
8275rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8276fi
8277
8278			{ echo "$as_me:$LINENO: result: $ac_cv_lbl_have_siocglifconf" >&5
8279echo "${ECHO_T}$ac_cv_lbl_have_siocglifconf" >&6; }
8280			if test $ac_cv_lbl_have_siocglifconf = yes ; then
8281				V_FINDALLDEVS=glifc
8282			else
8283				V_FINDALLDEVS=gifc
8284			fi
8285			#
8286			# Needed for common functions used by pcap-[dlpi,libdlpi].c
8287			#
8288		 	SSRC="dlpisubs.c"
8289			;;
8290
8291		*)
8292			#
8293			# Assume we just have SIOCGIFCONF.
8294			# (XXX - on at least later Linux kernels, there's
8295			# another mechanism, and we should be using that
8296			# instead.)
8297			#
8298			V_FINDALLDEVS=gifc
8299			;;
8300		esac
8301fi
8302
8303fi
8304
8305fi
8306
8307
8308{ echo "$as_me:$LINENO: checking for socklen_t" >&5
8309echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
8310cat >conftest.$ac_ext <<_ACEOF
8311/* confdefs.h.  */
8312_ACEOF
8313cat confdefs.h >>conftest.$ac_ext
8314cat >>conftest.$ac_ext <<_ACEOF
8315/* end confdefs.h.  */
8316
8317	#include <sys/types.h>
8318	#include <sys/socket.h>
8319
8320int
8321main ()
8322{
8323 socklen_t x;
8324  ;
8325  return 0;
8326}
8327_ACEOF
8328rm -f conftest.$ac_objext
8329if { (ac_try="$ac_compile"
8330case "(($ac_try" in
8331  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8332  *) ac_try_echo=$ac_try;;
8333esac
8334eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8335  (eval "$ac_compile") 2>conftest.er1
8336  ac_status=$?
8337  grep -v '^ *+' conftest.er1 >conftest.err
8338  rm -f conftest.er1
8339  cat conftest.err >&5
8340  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8341  (exit $ac_status); } && {
8342	 test -z "$ac_c_werror_flag" ||
8343	 test ! -s conftest.err
8344       } && test -s conftest.$ac_objext; then
8345  have_socklen_t=yes
8346else
8347  echo "$as_me: failed program was:" >&5
8348sed 's/^/| /' conftest.$ac_ext >&5
8349
8350	have_socklen_t=no
8351fi
8352
8353rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8354if test "x$have_socklen_t" = "xyes"; then
8355
8356cat >>confdefs.h <<\_ACEOF
8357#define HAVE_SOCKLEN_T 1
8358_ACEOF
8359
8360fi
8361{ echo "$as_me:$LINENO: result: $have_socklen_t" >&5
8362echo "${ECHO_T}$have_socklen_t" >&6; }
8363
8364# Check whether --enable-ipv6 was given.
8365if test "${enable_ipv6+set}" = set; then
8366  enableval=$enable_ipv6;
8367else
8368  enable_ipv6=ifavailable
8369fi
8370
8371if test "$enable_ipv6" != "no"; then
8372	{ echo "$as_me:$LINENO: checking for getaddrinfo" >&5
8373echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6; }
8374if test "${ac_cv_func_getaddrinfo+set}" = set; then
8375  echo $ECHO_N "(cached) $ECHO_C" >&6
8376else
8377  cat >conftest.$ac_ext <<_ACEOF
8378/* confdefs.h.  */
8379_ACEOF
8380cat confdefs.h >>conftest.$ac_ext
8381cat >>conftest.$ac_ext <<_ACEOF
8382/* end confdefs.h.  */
8383/* Define getaddrinfo to an innocuous variant, in case <limits.h> declares getaddrinfo.
8384   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8385#define getaddrinfo innocuous_getaddrinfo
8386
8387/* System header to define __stub macros and hopefully few prototypes,
8388    which can conflict with char getaddrinfo (); below.
8389    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8390    <limits.h> exists even on freestanding compilers.  */
8391
8392#ifdef __STDC__
8393# include <limits.h>
8394#else
8395# include <assert.h>
8396#endif
8397
8398#undef getaddrinfo
8399
8400/* Override any GCC internal prototype to avoid an error.
8401   Use char because int might match the return type of a GCC
8402   builtin and then its argument prototype would still apply.  */
8403#ifdef __cplusplus
8404extern "C"
8405#endif
8406char getaddrinfo ();
8407/* The GNU C library defines this for functions which it implements
8408    to always fail with ENOSYS.  Some functions are actually named
8409    something starting with __ and the normal name is an alias.  */
8410#if defined __stub_getaddrinfo || defined __stub___getaddrinfo
8411choke me
8412#endif
8413
8414int
8415main ()
8416{
8417return getaddrinfo ();
8418  ;
8419  return 0;
8420}
8421_ACEOF
8422rm -f conftest.$ac_objext conftest$ac_exeext
8423if { (ac_try="$ac_link"
8424case "(($ac_try" in
8425  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8426  *) ac_try_echo=$ac_try;;
8427esac
8428eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8429  (eval "$ac_link") 2>conftest.er1
8430  ac_status=$?
8431  grep -v '^ *+' conftest.er1 >conftest.err
8432  rm -f conftest.er1
8433  cat conftest.err >&5
8434  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8435  (exit $ac_status); } && {
8436	 test -z "$ac_c_werror_flag" ||
8437	 test ! -s conftest.err
8438       } && test -s conftest$ac_exeext &&
8439       $as_test_x conftest$ac_exeext; then
8440  ac_cv_func_getaddrinfo=yes
8441else
8442  echo "$as_me: failed program was:" >&5
8443sed 's/^/| /' conftest.$ac_ext >&5
8444
8445	ac_cv_func_getaddrinfo=no
8446fi
8447
8448rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8449      conftest$ac_exeext conftest.$ac_ext
8450fi
8451{ echo "$as_me:$LINENO: result: $ac_cv_func_getaddrinfo" >&5
8452echo "${ECHO_T}$ac_cv_func_getaddrinfo" >&6; }
8453if test $ac_cv_func_getaddrinfo = yes; then
8454
8455
8456cat >>confdefs.h <<\_ACEOF
8457#define INET6 1
8458_ACEOF
8459
8460
8461else
8462
8463		if test "$enable_ipv6" != "ifavailable"; then
8464			{ { echo "$as_me:$LINENO: error: --enable-ipv6 was given, but getaddrinfo isn't available
8465See \`config.log' for more details." >&5
8466echo "$as_me: error: --enable-ipv6 was given, but getaddrinfo isn't available
8467See \`config.log' for more details." >&2;}
8468   { (exit 1); exit 1; }; }
8469		fi
8470
8471fi
8472
8473fi
8474
8475{ echo "$as_me:$LINENO: checking whether to build optimizer debugging code" >&5
8476echo $ECHO_N "checking whether to build optimizer debugging code... $ECHO_C" >&6; }
8477# Check whether --enable-optimizer-dbg was given.
8478if test "${enable_optimizer_dbg+set}" = set; then
8479  enableval=$enable_optimizer_dbg;
8480fi
8481
8482if test "$enable_optimizer_dbg" = "yes"; then
8483
8484cat >>confdefs.h <<\_ACEOF
8485#define BDEBUG 1
8486_ACEOF
8487
8488fi
8489{ echo "$as_me:$LINENO: result: ${enable_optimizer_dbg-no}" >&5
8490echo "${ECHO_T}${enable_optimizer_dbg-no}" >&6; }
8491
8492{ echo "$as_me:$LINENO: checking whether to build parser debugging code" >&5
8493echo $ECHO_N "checking whether to build parser debugging code... $ECHO_C" >&6; }
8494# Check whether --enable-yydebug was given.
8495if test "${enable_yydebug+set}" = set; then
8496  enableval=$enable_yydebug;
8497fi
8498
8499if test "$enable_yydebug" = "yes"; then
8500
8501cat >>confdefs.h <<\_ACEOF
8502#define YYDEBUG 1
8503_ACEOF
8504
8505fi
8506{ echo "$as_me:$LINENO: result: ${enable_yydebug-no}" >&5
8507echo "${ECHO_T}${enable_yydebug-no}" >&6; }
8508
8509# Check for Endace DAG card support.
8510
8511# Check whether --with-dag was given.
8512if test "${with_dag+set}" = set; then
8513  withval=$with_dag;
8514	if test "$withval" = no
8515	then
8516		# User doesn't want DAG support.
8517		want_dag=no
8518	elif test "$withval" = yes
8519	then
8520		# User wants DAG support but hasn't specified a directory.
8521		want_dag=yes
8522	else
8523		# User wants DAG support and has specified a directory, so use the provided value.
8524		want_dag=yes
8525		dag_root=$withval
8526	fi
8527
8528else
8529
8530	#
8531	# Use DAG API if present, otherwise don't
8532	#
8533	want_dag=ifpresent
8534
8535fi
8536
8537
8538
8539# Check whether --with-dag-includes was given.
8540if test "${with_dag_includes+set}" = set; then
8541  withval=$with_dag_includes;
8542	# User wants DAG support and has specified a header directory, so use the provided value.
8543	want_dag=yes
8544	dag_include_dir=$withval
8545
8546fi
8547
8548
8549
8550# Check whether --with-dag-libraries was given.
8551if test "${with_dag_libraries+set}" = set; then
8552  withval=$with_dag_libraries;
8553	# User wants DAG support and has specified a library directory, so use the provided value.
8554	want_dag=yes
8555	dag_lib_dir=$withval
8556
8557fi
8558
8559
8560case "$V_PCAP" in
8561linux|bpf|dag)
8562	#
8563	# We support the DAG API if we're on Linux or BSD, or if we're
8564	# building a DAG-only libpcap.
8565	#
8566	;;
8567*)
8568	#
8569	# If the user explicitly requested DAG, tell them it's not
8570	# supported.
8571	#
8572	# If they expressed no preference, don't include it.
8573	#
8574	if test $want_dag = yes; then
8575		{ { echo "$as_me:$LINENO: error: DAG support is only available with 'linux' 'bpf' and 'dag' packet capture types" >&5
8576echo "$as_me: error: DAG support is only available with 'linux' 'bpf' and 'dag' packet capture types" >&2;}
8577   { (exit 1); exit 1; }; }
8578	elif test $want_dag = yes; then
8579		want_dag=no
8580	fi
8581	;;
8582esac
8583
8584ac_cv_lbl_dag_api=no
8585if test "$want_dag" != no; then
8586
8587	{ echo "$as_me:$LINENO: checking whether we have DAG API headers" >&5
8588echo $ECHO_N "checking whether we have DAG API headers... $ECHO_C" >&6; }
8589
8590	# If necessary, set default paths for DAG API headers and libraries.
8591	if test -z "$dag_root"; then
8592	    dag_root=/usr/local
8593	fi
8594
8595	if test -z "$dag_include_dir"; then
8596		dag_include_dir="$dag_root/include"
8597	fi
8598
8599	if test -z "$dag_lib_dir"; then
8600	    dag_lib_dir="$dag_root/lib"
8601	fi
8602
8603	if test -z "$dag_tools_dir"; then
8604	    dag_tools_dir="$dag_root/tools"
8605		fi
8606
8607	if test -r $dag_include_dir/dagapi.h; then
8608		ac_cv_lbl_dag_api=yes
8609	fi
8610	{ echo "$as_me:$LINENO: result: $ac_cv_lbl_dag_api ($dag_include_dir)" >&5
8611echo "${ECHO_T}$ac_cv_lbl_dag_api ($dag_include_dir)" >&6; }
8612fi
8613
8614if test $ac_cv_lbl_dag_api = yes; then
8615
8616	{ echo "$as_me:$LINENO: checking dagapi.o" >&5
8617echo $ECHO_N "checking dagapi.o... $ECHO_C" >&6; }
8618	dagapi_obj=no
8619	if test -r $dag_tools_dir/dagapi.o; then
8620		# 2.4.x.
8621		dagapi_obj=$dag_tools_dir/dagapi.o
8622	elif test -r $dag_lib_dir/dagapi.o; then
8623		# 2.5.x.
8624		dagapi_obj=$dag_lib_dir/dagapi.o
8625	elif test -r $dag_lib_dir/libdag.a; then
8626		# 2.5.x.
8627		ar x $dag_lib_dir/libdag.a dagapi.o 2>/dev/null
8628		if test -r ./dagapi.o; then
8629		    dagapi_obj=./dagapi.o
8630		else
8631		    ar x $dag_lib_dir/libdag.a libdag_la-dagapi.o 2>/dev/null
8632		    if test -r ./libdag_la-dagapi.o; then
8633		       dagapi_obj=./libdag_la-dagapi.o
8634		    fi
8635		fi
8636	fi
8637
8638	if test $dagapi_obj = no; then
8639		{ echo "$as_me:$LINENO: result: no (checked $dag_lib_dir  $dag_tools_dir  $dag_lib_dir/libdag.a)" >&5
8640echo "${ECHO_T}no (checked $dag_lib_dir  $dag_tools_dir  $dag_lib_dir/libdag.a)" >&6; }
8641			ac_cv_lbl_dag_api=no
8642	else
8643		{ echo "$as_me:$LINENO: result: yes ($dagapi_obj)" >&5
8644echo "${ECHO_T}yes ($dagapi_obj)" >&6; }
8645	fi
8646fi
8647
8648if test $ac_cv_lbl_dag_api = yes; then
8649
8650	{ echo "$as_me:$LINENO: checking dagopts.o" >&5
8651echo $ECHO_N "checking dagopts.o... $ECHO_C" >&6; }
8652	dagopts_obj=no
8653	if test -r $dag_tools_dir/dagopts.o; then
8654		# 2.4.x.
8655		dagopts_obj=$dag_tools_dir/dagopts.o
8656	elif test -r $dag_lib_dir/dagopts.o; then
8657		# 2.5.x.
8658		dagopts_obj=$dag_lib_dir/dagopts.o
8659	elif test -r $dag_lib_dir/libdag.a; then
8660		# 2.5.x.
8661		ar x $dag_lib_dir/libdag.a dagopts.o 2>/dev/null
8662		if test -r ./dagopts.o; then
8663		    dagopts_obj=./dagopts.o
8664		else
8665		    ar x $dag_lib_dir/libdag.a libdag_la-dagopts.o 2>/dev/null
8666		    if test -r ./libdag_la-dagopts.o; then
8667		       dagopts_obj=./libdag_la-dagopts.o
8668		    fi
8669		fi
8670	fi
8671
8672	if test $dagopts_obj = no; then
8673		{ echo "$as_me:$LINENO: result: no (checked $dag_lib_dir  $dag_tools_dir  $dag_lib_dir/libdag.a)" >&5
8674echo "${ECHO_T}no (checked $dag_lib_dir  $dag_tools_dir  $dag_lib_dir/libdag.a)" >&6; }
8675		ac_cv_lbl_dag_api=no
8676	else
8677		{ echo "$as_me:$LINENO: result: yes ($dagopts_obj)" >&5
8678echo "${ECHO_T}yes ($dagopts_obj)" >&6; }
8679	fi
8680fi
8681
8682if test $ac_cv_lbl_dag_api = yes; then
8683	# Under 2.5.x only we need to add dagreg.o.
8684	if test -r $dag_include_dir/dagreg.h; then
8685		{ echo "$as_me:$LINENO: checking dagreg.o" >&5
8686echo $ECHO_N "checking dagreg.o... $ECHO_C" >&6; }
8687		dagreg_obj=no
8688		if test -r $dag_lib_dir/dagreg.o; then
8689			# Object file is ready and waiting.
8690			dagreg_obj=$dag_lib_dir/dagreg.o
8691		elif test -r $dag_lib_dir/libdag.a; then
8692			# Extract from libdag.a.
8693			ar x $dag_lib_dir/libdag.a dagreg.o 2>/dev/null
8694			if test -r ./dagreg.o; then
8695				dagreg_obj=./dagreg.o
8696			else
8697				ar x $dag_lib_dir/libdag.a libdag_la-dagreg.o 2>/dev/null
8698				if test -r ./libdag_la-dagreg.o; then
8699				   dagreg_obj=./libdag_la-dagreg.o
8700				fi
8701			fi
8702		fi
8703
8704		if test $dagreg_obj = no; then
8705			{ echo "$as_me:$LINENO: result: no (checked $dag_lib_dir  $dag_lib_dir/libdag.a)" >&5
8706echo "${ECHO_T}no (checked $dag_lib_dir  $dag_lib_dir/libdag.a)" >&6; }
8707			ac_cv_lbl_dag_api=no
8708		else
8709			{ echo "$as_me:$LINENO: result: yes ($dagreg_obj)" >&5
8710echo "${ECHO_T}yes ($dagreg_obj)" >&6; }
8711		fi
8712	fi
8713fi
8714
8715if test $ac_cv_lbl_dag_api = yes; then
8716        # Under 2.5.x only we need to add dagutil.o.
8717        if test -r $dag_include_dir/dagutil.h; then
8718                { echo "$as_me:$LINENO: checking dagutil.o" >&5
8719echo $ECHO_N "checking dagutil.o... $ECHO_C" >&6; }
8720                dagutil_obj=no
8721                if test -r $dag_lib_dir/dagutil.o; then
8722                        # Object file is ready and waiting.
8723                        dagutil_obj=$dag_lib_dir/dagutil.o
8724                elif test -r $dag_lib_dir/libdag.a; then
8725                        # Extract from libdag.a.
8726                        ar x $dag_lib_dir/libdag.a dagutil.o 2>/dev/null
8727                        if test -r ./dagutil.o; then
8728                                dagutil_obj=./dagutil.o
8729                        else
8730                                ar x $dag_lib_dir/libdag.a libdag_la-dagutil.o 2>/dev/null
8731                                if test -r ./libdag_la-dagutil.o; then
8732                                   dagutil_obj=./libdag_la-dagutil.o
8733                                fi
8734                        fi
8735                fi
8736
8737                if test $dagutil_obj = no; then
8738                        { echo "$as_me:$LINENO: result: no (checked $dag_lib_dir  $dag_lib_dir/libdag.a)" >&5
8739echo "${ECHO_T}no (checked $dag_lib_dir  $dag_lib_dir/libdag.a)" >&6; }
8740                        ac_cv_lbl_dag_api=no
8741                else
8742                        { echo "$as_me:$LINENO: result: yes ($dagutil_obj)" >&5
8743echo "${ECHO_T}yes ($dagutil_obj)" >&6; }
8744                fi
8745        fi
8746fi
8747
8748if test $ac_cv_lbl_dag_api = yes; then
8749	V_INCLS="$V_INCLS -I$dag_include_dir"
8750	ADDLARCHIVEOBJS="$ADDLARCHIVEOBJS $dagapi_obj $dagopts_obj $dagreg_obj $dagutil_obj"
8751	if test $V_PCAP != dag ; then
8752		 SSRC="pcap-dag.c"
8753	fi
8754
8755	# See if we can find a general version string.
8756	# Don't need to save and restore LIBS to prevent -ldag being
8757	# included if there's a found-action (arg 3).
8758	saved_ldflags=$LDFLAGS
8759	LDFLAGS="-L$dag_lib_dir"
8760	{ echo "$as_me:$LINENO: checking for dag_attach_stream in -ldag" >&5
8761echo $ECHO_N "checking for dag_attach_stream in -ldag... $ECHO_C" >&6; }
8762if test "${ac_cv_lib_dag_dag_attach_stream+set}" = set; then
8763  echo $ECHO_N "(cached) $ECHO_C" >&6
8764else
8765  ac_check_lib_save_LIBS=$LIBS
8766LIBS="-ldag  $LIBS"
8767cat >conftest.$ac_ext <<_ACEOF
8768/* confdefs.h.  */
8769_ACEOF
8770cat confdefs.h >>conftest.$ac_ext
8771cat >>conftest.$ac_ext <<_ACEOF
8772/* end confdefs.h.  */
8773
8774/* Override any GCC internal prototype to avoid an error.
8775   Use char because int might match the return type of a GCC
8776   builtin and then its argument prototype would still apply.  */
8777#ifdef __cplusplus
8778extern "C"
8779#endif
8780char dag_attach_stream ();
8781int
8782main ()
8783{
8784return dag_attach_stream ();
8785  ;
8786  return 0;
8787}
8788_ACEOF
8789rm -f conftest.$ac_objext conftest$ac_exeext
8790if { (ac_try="$ac_link"
8791case "(($ac_try" in
8792  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8793  *) ac_try_echo=$ac_try;;
8794esac
8795eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8796  (eval "$ac_link") 2>conftest.er1
8797  ac_status=$?
8798  grep -v '^ *+' conftest.er1 >conftest.err
8799  rm -f conftest.er1
8800  cat conftest.err >&5
8801  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8802  (exit $ac_status); } && {
8803	 test -z "$ac_c_werror_flag" ||
8804	 test ! -s conftest.err
8805       } && test -s conftest$ac_exeext &&
8806       $as_test_x conftest$ac_exeext; then
8807  ac_cv_lib_dag_dag_attach_stream=yes
8808else
8809  echo "$as_me: failed program was:" >&5
8810sed 's/^/| /' conftest.$ac_ext >&5
8811
8812	ac_cv_lib_dag_dag_attach_stream=no
8813fi
8814
8815rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8816      conftest$ac_exeext conftest.$ac_ext
8817LIBS=$ac_check_lib_save_LIBS
8818fi
8819{ echo "$as_me:$LINENO: result: $ac_cv_lib_dag_dag_attach_stream" >&5
8820echo "${ECHO_T}$ac_cv_lib_dag_dag_attach_stream" >&6; }
8821if test $ac_cv_lib_dag_dag_attach_stream = yes; then
8822  dag_streams="1"
8823else
8824  dag_streams="0"
8825fi
8826
8827	{ echo "$as_me:$LINENO: checking for dag_get_erf_types in -ldag" >&5
8828echo $ECHO_N "checking for dag_get_erf_types in -ldag... $ECHO_C" >&6; }
8829if test "${ac_cv_lib_dag_dag_get_erf_types+set}" = set; then
8830  echo $ECHO_N "(cached) $ECHO_C" >&6
8831else
8832  ac_check_lib_save_LIBS=$LIBS
8833LIBS="-ldag  $LIBS"
8834cat >conftest.$ac_ext <<_ACEOF
8835/* confdefs.h.  */
8836_ACEOF
8837cat confdefs.h >>conftest.$ac_ext
8838cat >>conftest.$ac_ext <<_ACEOF
8839/* end confdefs.h.  */
8840
8841/* Override any GCC internal prototype to avoid an error.
8842   Use char because int might match the return type of a GCC
8843   builtin and then its argument prototype would still apply.  */
8844#ifdef __cplusplus
8845extern "C"
8846#endif
8847char dag_get_erf_types ();
8848int
8849main ()
8850{
8851return dag_get_erf_types ();
8852  ;
8853  return 0;
8854}
8855_ACEOF
8856rm -f conftest.$ac_objext conftest$ac_exeext
8857if { (ac_try="$ac_link"
8858case "(($ac_try" in
8859  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8860  *) ac_try_echo=$ac_try;;
8861esac
8862eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8863  (eval "$ac_link") 2>conftest.er1
8864  ac_status=$?
8865  grep -v '^ *+' conftest.er1 >conftest.err
8866  rm -f conftest.er1
8867  cat conftest.err >&5
8868  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8869  (exit $ac_status); } && {
8870	 test -z "$ac_c_werror_flag" ||
8871	 test ! -s conftest.err
8872       } && test -s conftest$ac_exeext &&
8873       $as_test_x conftest$ac_exeext; then
8874  ac_cv_lib_dag_dag_get_erf_types=yes
8875else
8876  echo "$as_me: failed program was:" >&5
8877sed 's/^/| /' conftest.$ac_ext >&5
8878
8879	ac_cv_lib_dag_dag_get_erf_types=no
8880fi
8881
8882rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8883      conftest$ac_exeext conftest.$ac_ext
8884LIBS=$ac_check_lib_save_LIBS
8885fi
8886{ echo "$as_me:$LINENO: result: $ac_cv_lib_dag_dag_get_erf_types" >&5
8887echo "${ECHO_T}$ac_cv_lib_dag_dag_get_erf_types" >&6; }
8888if test $ac_cv_lib_dag_dag_get_erf_types = yes; then
8889
8890
8891cat >>confdefs.h <<\_ACEOF
8892#define HAVE_DAG_GET_ERF_TYPES 1
8893_ACEOF
8894
8895fi
8896
8897	{ echo "$as_me:$LINENO: checking for dag_get_stream_erf_types in -ldag" >&5
8898echo $ECHO_N "checking for dag_get_stream_erf_types in -ldag... $ECHO_C" >&6; }
8899if test "${ac_cv_lib_dag_dag_get_stream_erf_types+set}" = set; then
8900  echo $ECHO_N "(cached) $ECHO_C" >&6
8901else
8902  ac_check_lib_save_LIBS=$LIBS
8903LIBS="-ldag  $LIBS"
8904cat >conftest.$ac_ext <<_ACEOF
8905/* confdefs.h.  */
8906_ACEOF
8907cat confdefs.h >>conftest.$ac_ext
8908cat >>conftest.$ac_ext <<_ACEOF
8909/* end confdefs.h.  */
8910
8911/* Override any GCC internal prototype to avoid an error.
8912   Use char because int might match the return type of a GCC
8913   builtin and then its argument prototype would still apply.  */
8914#ifdef __cplusplus
8915extern "C"
8916#endif
8917char dag_get_stream_erf_types ();
8918int
8919main ()
8920{
8921return dag_get_stream_erf_types ();
8922  ;
8923  return 0;
8924}
8925_ACEOF
8926rm -f conftest.$ac_objext conftest$ac_exeext
8927if { (ac_try="$ac_link"
8928case "(($ac_try" in
8929  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8930  *) ac_try_echo=$ac_try;;
8931esac
8932eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8933  (eval "$ac_link") 2>conftest.er1
8934  ac_status=$?
8935  grep -v '^ *+' conftest.er1 >conftest.err
8936  rm -f conftest.er1
8937  cat conftest.err >&5
8938  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8939  (exit $ac_status); } && {
8940	 test -z "$ac_c_werror_flag" ||
8941	 test ! -s conftest.err
8942       } && test -s conftest$ac_exeext &&
8943       $as_test_x conftest$ac_exeext; then
8944  ac_cv_lib_dag_dag_get_stream_erf_types=yes
8945else
8946  echo "$as_me: failed program was:" >&5
8947sed 's/^/| /' conftest.$ac_ext >&5
8948
8949	ac_cv_lib_dag_dag_get_stream_erf_types=no
8950fi
8951
8952rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8953      conftest$ac_exeext conftest.$ac_ext
8954LIBS=$ac_check_lib_save_LIBS
8955fi
8956{ echo "$as_me:$LINENO: result: $ac_cv_lib_dag_dag_get_stream_erf_types" >&5
8957echo "${ECHO_T}$ac_cv_lib_dag_dag_get_stream_erf_types" >&6; }
8958if test $ac_cv_lib_dag_dag_get_stream_erf_types = yes; then
8959
8960
8961cat >>confdefs.h <<\_ACEOF
8962#define HAVE_DAG_GET_STREAM_ERF_TYPES 1
8963_ACEOF
8964
8965fi
8966
8967	LDFLAGS=$saved_ldflags
8968
8969	if test "$dag_streams" = 1; then
8970
8971cat >>confdefs.h <<\_ACEOF
8972#define HAVE_DAG_STREAMS_API 1
8973_ACEOF
8974
8975		LIBS="$LIBS -ldag"
8976	fi
8977
8978
8979cat >>confdefs.h <<\_ACEOF
8980#define HAVE_DAG_API 1
8981_ACEOF
8982
8983fi
8984
8985{ echo "$as_me:$LINENO: checking whether we have the DAG API" >&5
8986echo $ECHO_N "checking whether we have the DAG API... $ECHO_C" >&6; }
8987
8988if test $ac_cv_lbl_dag_api = no; then
8989	{ echo "$as_me:$LINENO: result: no" >&5
8990echo "${ECHO_T}no" >&6; }
8991	if test "$want_dag" = yes; then
8992        	# User wanted DAG support but we couldn't find it.
8993		{ { echo "$as_me:$LINENO: error: DAG API requested, but not found at $dag_root: use --without-dag" >&5
8994echo "$as_me: error: DAG API requested, but not found at $dag_root: use --without-dag" >&2;}
8995   { (exit 1); exit 1; }; }
8996	fi
8997
8998	if test "$V_PCAP" = dag; then
8999		# User requested "dag" capture type but the DAG API wasn't
9000		# found.
9001		{ { echo "$as_me:$LINENO: error: Specifying the capture type as \"dag\" requires the DAG API to be present; use the --with-dag options to specify the location. (Try \"./configure --help\" for more information.)" >&5
9002echo "$as_me: error: Specifying the capture type as \"dag\" requires the DAG API to be present; use the --with-dag options to specify the location. (Try \"./configure --help\" for more information.)" >&2;}
9003   { (exit 1); exit 1; }; }
9004	fi
9005else
9006	{ echo "$as_me:$LINENO: result: yes" >&5
9007echo "${ECHO_T}yes" >&6; }
9008fi
9009
9010
9011# Check whether --with-septel was given.
9012if test "${with_septel+set}" = set; then
9013  withval=$with_septel;
9014	if test "$withval" = no
9015	then
9016		want_septel=no
9017	elif test "$withval" = yes
9018	then
9019		want_septel=yes
9020		septel_root=
9021	else
9022		want_septel=yes
9023		septel_root=$withval
9024	fi
9025
9026else
9027
9028	#
9029	# Use Septel API if present, otherwise don't
9030	#
9031	want_septel=ifpresent
9032	septel_root=./../septel
9033
9034fi
9035
9036ac_cv_lbl_septel_api=no
9037case "$V_PCAP" in
9038linux|septel)
9039	#
9040	# We support the Septel API if we're on Linux, or if we're building
9041	# a Septel-only libpcap.
9042	#
9043	;;
9044*)
9045	#
9046	# If the user explicitly requested Septel, tell them it's not
9047	# supported.
9048	#
9049	# If they expressed no preference, don't include it.
9050	#
9051	if test $want_septel = yes; then
9052		{ { echo "$as_me:$LINENO: error: Septel support only available with 'linux' and 'septel' packet capture types" >&5
9053echo "$as_me: error: Septel support only available with 'linux' and 'septel' packet capture types" >&2;}
9054   { (exit 1); exit 1; }; }
9055	elif test $want_septel = yes; then
9056		want_septel=no
9057	fi
9058	;;
9059esac
9060
9061if test "$with_septel" != no; then
9062	{ echo "$as_me:$LINENO: checking whether we have Septel API" >&5
9063echo $ECHO_N "checking whether we have Septel API... $ECHO_C" >&6; }
9064
9065	if test -z "$septel_root"; then
9066		septel_root=$srcdir/../septel
9067	fi
9068
9069	septel_tools_dir="$septel_root"
9070	septel_include_dir="$septel_root/INC"
9071
9072	ac_cv_lbl_septel_api=no
9073	if test -r "$septel_include_dir/msg.h"; then
9074		V_INCLS="$V_INCLS -I$septel_include_dir"
9075		ADDLOBJS="$ADDLOBJS $septel_tools_dir/asciibin.o $septel_tools_dir/bit2byte.o $septel_tools_dir/confirm.o $septel_tools_dir/fmtmsg.o $septel_tools_dir/gct_unix.o $septel_tools_dir/hqueue.o $septel_tools_dir/ident.o $septel_tools_dir/mem.o $septel_tools_dir/pack.o $septel_tools_dir/parse.o $septel_tools_dir/pool.o $septel_tools_dir/sdlsig.o $septel_tools_dir/strtonum.o $septel_tools_dir/timer.o $septel_tools_dir/trace.o"
9076		ADDLARCHIVEOBJS="$ADDLARCHIVEOBJS $septel_tools_dir/asciibin.o $septel_tools_dir/bit2byte.o $septel_tools_dir/confirm.o $septel_tools_dir/fmtmsg.o $septel_tools_dir/gct_unix.o $septel_tools_dir/hqueue.o $septel_tools_dir/ident.o $septel_tools_dir/mem.o $septel_tools_dir/pack.o $septel_tools_dir/parse.o $septel_tools_dir/pool.o $septel_tools_dir/sdlsig.o $septel_tools_dir/strtonum.o $septel_tools_dir/timer.o $septel_tools_dir/trace.o"
9077
9078		if test "$V_PCAP" != septel ; then
9079			 SSRC="pcap-septel.c"
9080		fi
9081		ac_cv_lbl_septel_api=yes
9082	fi
9083
9084	{ echo "$as_me:$LINENO: result: $ac_cv_lbl_septel_api" >&5
9085echo "${ECHO_T}$ac_cv_lbl_septel_api" >&6; }
9086	if test $ac_cv_lbl_septel_api = no; then
9087		if test "$want_septel" = yes; then
9088			{ { echo "$as_me:$LINENO: error: Septel API not found under directory $septel_root; use --without-septel" >&5
9089echo "$as_me: error: Septel API not found under directory $septel_root; use --without-septel" >&2;}
9090   { (exit 1); exit 1; }; }
9091		fi
9092	else
9093
9094cat >>confdefs.h <<\_ACEOF
9095#define HAVE_SEPTEL_API 1
9096_ACEOF
9097
9098	fi
9099fi
9100
9101if test "$V_PCAP" = septel -a "$ac_cv_lbl_septel_api" = no; then
9102	{ { echo "$as_me:$LINENO: error: Specifying the capture type as 'septel' requires the Septel API to be present; use --with-septel=DIR" >&5
9103echo "$as_me: error: Specifying the capture type as 'septel' requires the Septel API to be present; use --with-septel=DIR" >&2;}
9104   { (exit 1); exit 1; }; }
9105fi
9106
9107# Check for Myricom SNF support.
9108
9109# Check whether --with-snf was given.
9110if test "${with_snf+set}" = set; then
9111  withval=$with_snf;
9112	if test "$withval" = no
9113	then
9114		# User explicitly doesn't want SNF
9115		want_snf=no
9116	elif test "$withval" = yes
9117	then
9118		# User wants SNF support but hasn't specific a directory.
9119		want_snf=yes
9120	else
9121		# User wants SNF support with a specified directory.
9122		want_snf=yes
9123		snf_root=$withval
9124	fi
9125
9126else
9127
9128	#
9129	# Use Sniffer API if present, otherwise don't
9130	#
9131	want_snf=ifpresent
9132
9133fi
9134
9135
9136
9137# Check whether --with-snf-includes was given.
9138if test "${with_snf_includes+set}" = set; then
9139  withval=$with_snf_includes;
9140	# User wants SNF with specific header directory
9141	want_snf=yes
9142	snf_include_dir=$withval
9143
9144fi
9145
9146
9147
9148# Check whether --with-snf-libraries was given.
9149if test "${with_snf_libraries+set}" = set; then
9150  withval=$with_snf_libraries;
9151	# User wants SNF with specific lib directory
9152	want_snf=yes
9153	snf_lib_dir=$withval
9154
9155fi
9156
9157
9158case "$V_PCAP" in
9159bpf|linux|snf)
9160	#
9161	# We support the Sniffer API if we're on BSD, Linux, or if we're
9162	# building a Sniffer-only libpcap.
9163	#
9164	;;
9165*)
9166	#
9167	# If the user explicitly requested Sniffer, tell them it's not
9168	# supported.
9169	#
9170	# If they expressed no preference, don't include it.
9171	#
9172	if test $want_snf = yes; then
9173		{ { echo "$as_me:$LINENO: error: Myricom SNF support only available with 'bpf' 'linux' and 'snf' packet capture types" >&5
9174echo "$as_me: error: Myricom SNF support only available with 'bpf' 'linux' and 'snf' packet capture types" >&2;}
9175   { (exit 1); exit 1; }; }
9176	elif test $want_snf = yes; then
9177		want_snf=no
9178	fi
9179	;;
9180esac
9181
9182ac_cv_lbl_snf_api=no
9183if test "$with_snf" != no; then
9184
9185	{ echo "$as_me:$LINENO: checking whether we have Myricom Sniffer API" >&5
9186echo $ECHO_N "checking whether we have Myricom Sniffer API... $ECHO_C" >&6; }
9187
9188	if test -z "$snf_root"; then
9189		snf_root=/opt/snf
9190	fi
9191
9192	if test -z "$snf_include_dir"; then
9193		snf_include_dir="$snf_root/include"
9194	fi
9195
9196	if test -z "$snf_lib_dir"; then
9197		snf_lib_dir="$snf_root/lib"
9198	fi
9199
9200	if test -f "$snf_include_dir/snf.h"; then
9201		ac_cv_lbl_snf_api=yes
9202	fi
9203	{ echo "$as_me:$LINENO: result: $ac_cv_lbl_snf_api ($snf_root)" >&5
9204echo "${ECHO_T}$ac_cv_lbl_snf_api ($snf_root)" >&6; }
9205
9206	if test $ac_cv_lbl_snf_api = no; then
9207		if test "$want_snf" = yes; then
9208			{ { echo "$as_me:$LINENO: error: SNF API headers not found under $snf_include_dir; use --without-snf" >&5
9209echo "$as_me: error: SNF API headers not found under $snf_include_dir; use --without-snf" >&2;}
9210   { (exit 1); exit 1; }; }
9211		fi
9212	else
9213		saved_ldflags=$LDFLAGS
9214		LDFLAGS="$LDFLAGS -L$snf_lib_dir"
9215		{ echo "$as_me:$LINENO: checking for snf_init in -lsnf" >&5
9216echo $ECHO_N "checking for snf_init in -lsnf... $ECHO_C" >&6; }
9217if test "${ac_cv_lib_snf_snf_init+set}" = set; then
9218  echo $ECHO_N "(cached) $ECHO_C" >&6
9219else
9220  ac_check_lib_save_LIBS=$LIBS
9221LIBS="-lsnf  $LIBS"
9222cat >conftest.$ac_ext <<_ACEOF
9223/* confdefs.h.  */
9224_ACEOF
9225cat confdefs.h >>conftest.$ac_ext
9226cat >>conftest.$ac_ext <<_ACEOF
9227/* end confdefs.h.  */
9228
9229/* Override any GCC internal prototype to avoid an error.
9230   Use char because int might match the return type of a GCC
9231   builtin and then its argument prototype would still apply.  */
9232#ifdef __cplusplus
9233extern "C"
9234#endif
9235char snf_init ();
9236int
9237main ()
9238{
9239return snf_init ();
9240  ;
9241  return 0;
9242}
9243_ACEOF
9244rm -f conftest.$ac_objext conftest$ac_exeext
9245if { (ac_try="$ac_link"
9246case "(($ac_try" in
9247  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9248  *) ac_try_echo=$ac_try;;
9249esac
9250eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9251  (eval "$ac_link") 2>conftest.er1
9252  ac_status=$?
9253  grep -v '^ *+' conftest.er1 >conftest.err
9254  rm -f conftest.er1
9255  cat conftest.err >&5
9256  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9257  (exit $ac_status); } && {
9258	 test -z "$ac_c_werror_flag" ||
9259	 test ! -s conftest.err
9260       } && test -s conftest$ac_exeext &&
9261       $as_test_x conftest$ac_exeext; then
9262  ac_cv_lib_snf_snf_init=yes
9263else
9264  echo "$as_me: failed program was:" >&5
9265sed 's/^/| /' conftest.$ac_ext >&5
9266
9267	ac_cv_lib_snf_snf_init=no
9268fi
9269
9270rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9271      conftest$ac_exeext conftest.$ac_ext
9272LIBS=$ac_check_lib_save_LIBS
9273fi
9274{ echo "$as_me:$LINENO: result: $ac_cv_lib_snf_snf_init" >&5
9275echo "${ECHO_T}$ac_cv_lib_snf_snf_init" >&6; }
9276if test $ac_cv_lib_snf_snf_init = yes; then
9277  ac_cv_lbl_snf_api="yes"
9278else
9279  ac_cv_lbl_snf_api="no"
9280fi
9281
9282		LDFLAGS="$saved_ldflags"
9283
9284		if test $ac_cv_lbl_snf_api = no; then
9285			if test "$want_snf" = yes; then
9286				{ { echo "$as_me:$LINENO: error: SNF API cannot correctly be linked check config.log; use --without-snf" >&5
9287echo "$as_me: error: SNF API cannot correctly be linked check config.log; use --without-snf" >&2;}
9288   { (exit 1); exit 1; }; }
9289			fi
9290		else
9291			V_INCLS="$V_INCLS -I$snf_include_dir"
9292			LIBS="$LIBS -lsnf"
9293			LDFLAGS="$LDFLAGS -L$snf_lib_dir"
9294			if test "$V_PCAP" != snf ; then
9295				SSRC="pcap-snf.c"
9296			fi
9297
9298cat >>confdefs.h <<\_ACEOF
9299#define HAVE_SNF_API 1
9300_ACEOF
9301
9302		fi
9303	fi
9304fi
9305
9306if test "$V_PCAP" = snf -a "$ac_cv_lbl_snf_api" = no; then
9307	{ { echo "$as_me:$LINENO: error: Specifying the capture type as 'snf' requires the Myricom Sniffer API to be present; use --with-snf=DIR" >&5
9308echo "$as_me: error: Specifying the capture type as 'snf' requires the Myricom Sniffer API to be present; use --with-snf=DIR" >&2;}
9309   { (exit 1); exit 1; }; }
9310fi
9311
9312
9313# Check whether --with-flex was given.
9314if test "${with_flex+set}" = set; then
9315  withval=$with_flex;
9316fi
9317
9318
9319# Check whether --with-bison was given.
9320if test "${with_bison+set}" = set; then
9321  withval=$with_bison;
9322fi
9323
9324    if test "$with_flex" = no ; then
9325	    V_LEX=lex
9326    else
9327	    for ac_prog in flex
9328do
9329  # Extract the first word of "$ac_prog", so it can be a program name with args.
9330set dummy $ac_prog; ac_word=$2
9331{ echo "$as_me:$LINENO: checking for $ac_word" >&5
9332echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9333if test "${ac_cv_prog_V_LEX+set}" = set; then
9334  echo $ECHO_N "(cached) $ECHO_C" >&6
9335else
9336  if test -n "$V_LEX"; then
9337  ac_cv_prog_V_LEX="$V_LEX" # Let the user override the test.
9338else
9339as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9340for as_dir in $PATH
9341do
9342  IFS=$as_save_IFS
9343  test -z "$as_dir" && as_dir=.
9344  for ac_exec_ext in '' $ac_executable_extensions; do
9345  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9346    ac_cv_prog_V_LEX="$ac_prog"
9347    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9348    break 2
9349  fi
9350done
9351done
9352IFS=$as_save_IFS
9353
9354fi
9355fi
9356V_LEX=$ac_cv_prog_V_LEX
9357if test -n "$V_LEX"; then
9358  { echo "$as_me:$LINENO: result: $V_LEX" >&5
9359echo "${ECHO_T}$V_LEX" >&6; }
9360else
9361  { echo "$as_me:$LINENO: result: no" >&5
9362echo "${ECHO_T}no" >&6; }
9363fi
9364
9365
9366  test -n "$V_LEX" && break
9367done
9368test -n "$V_LEX" || V_LEX="lex"
9369
9370    fi
9371    if test "$V_LEX" = flex ; then
9372	    # The -V flag was added in 2.4
9373	    { echo "$as_me:$LINENO: checking for flex 2.4 or higher" >&5
9374echo $ECHO_N "checking for flex 2.4 or higher... $ECHO_C" >&6; }
9375	    if test "${ac_cv_lbl_flex_v24+set}" = set; then
9376  echo $ECHO_N "(cached) $ECHO_C" >&6
9377else
9378  if flex -V >/dev/null 2>&1; then
9379			ac_cv_lbl_flex_v24=yes
9380		else
9381			ac_cv_lbl_flex_v24=no
9382		fi
9383fi
9384
9385	    { echo "$as_me:$LINENO: result: $ac_cv_lbl_flex_v24" >&5
9386echo "${ECHO_T}$ac_cv_lbl_flex_v24" >&6; }
9387	    if test $ac_cv_lbl_flex_v24 = no ; then
9388		    s="2.4 or higher required"
9389		    { echo "$as_me:$LINENO: WARNING: ignoring obsolete flex executable ($s)" >&5
9390echo "$as_me: WARNING: ignoring obsolete flex executable ($s)" >&2;}
9391		    V_LEX=lex
9392	    fi
9393    fi
9394    if test "$with_bison" = no ; then
9395	    V_YACC=yacc
9396    else
9397	    for ac_prog in bison
9398do
9399  # Extract the first word of "$ac_prog", so it can be a program name with args.
9400set dummy $ac_prog; ac_word=$2
9401{ echo "$as_me:$LINENO: checking for $ac_word" >&5
9402echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9403if test "${ac_cv_prog_V_YACC+set}" = set; then
9404  echo $ECHO_N "(cached) $ECHO_C" >&6
9405else
9406  if test -n "$V_YACC"; then
9407  ac_cv_prog_V_YACC="$V_YACC" # Let the user override the test.
9408else
9409as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9410for as_dir in $PATH
9411do
9412  IFS=$as_save_IFS
9413  test -z "$as_dir" && as_dir=.
9414  for ac_exec_ext in '' $ac_executable_extensions; do
9415  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9416    ac_cv_prog_V_YACC="$ac_prog"
9417    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9418    break 2
9419  fi
9420done
9421done
9422IFS=$as_save_IFS
9423
9424fi
9425fi
9426V_YACC=$ac_cv_prog_V_YACC
9427if test -n "$V_YACC"; then
9428  { echo "$as_me:$LINENO: result: $V_YACC" >&5
9429echo "${ECHO_T}$V_YACC" >&6; }
9430else
9431  { echo "$as_me:$LINENO: result: no" >&5
9432echo "${ECHO_T}no" >&6; }
9433fi
9434
9435
9436  test -n "$V_YACC" && break
9437done
9438test -n "$V_YACC" || V_YACC="yacc"
9439
9440    fi
9441    if test "$V_YACC" = bison ; then
9442	    V_YACC="$V_YACC -y"
9443    fi
9444    if test "$V_LEX" != lex -a "$V_YACC" = yacc -o "$V_LEX" = lex -a "$V_YACC" != yacc ; then
9445	    { echo "$as_me:$LINENO: WARNING: don't have both flex and bison; reverting to lex/yacc" >&5
9446echo "$as_me: WARNING: don't have both flex and bison; reverting to lex/yacc" >&2;}
9447	    V_LEX=lex
9448	    V_YACC=yacc
9449    fi
9450    if test "$V_LEX" = flex -a -n "pcap_" ; then
9451	    V_LEX="$V_LEX -Ppcap_"
9452	    V_YACC="$V_YACC -p pcap_"
9453    fi
9454if test "$V_LEX" = lex ; then
9455# Some versions of lex can't handle the definitions section of scanner.l .
9456# Try lexing it and complain if it can't deal.
9457	{ echo "$as_me:$LINENO: checking for capable lex" >&5
9458echo $ECHO_N "checking for capable lex... $ECHO_C" >&6; }
9459if test "${tcpdump_cv_capable_lex+set}" = set; then
9460  echo $ECHO_N "(cached) $ECHO_C" >&6
9461else
9462  if lex -t scanner.l > /dev/null 2>&1; then
9463			tcpdump_cv_capable_lex=yes
9464		else
9465			tcpdump_cv_capable_lex=insufficient
9466		fi
9467fi
9468{ echo "$as_me:$LINENO: result: $tcpdump_cv_capable_lex" >&5
9469echo "${ECHO_T}$tcpdump_cv_capable_lex" >&6; }
9470	if test $tcpdump_cv_capable_lex = insufficient ; then
9471		{ { echo "$as_me:$LINENO: error: Your operating system's lex is insufficient to compile
9472 libpcap.  flex is a lex replacement that has many advantages, including
9473 being able to compile libpcap.  For more information, see
9474 http://www.gnu.org/software/flex/flex.html ." >&5
9475echo "$as_me: error: Your operating system's lex is insufficient to compile
9476 libpcap.  flex is a lex replacement that has many advantages, including
9477 being able to compile libpcap.  For more information, see
9478 http://www.gnu.org/software/flex/flex.html ." >&2;}
9479   { (exit 1); exit 1; }; }
9480	fi
9481fi
9482
9483#
9484# Assume, by default, no support for shared libraries and V7/BSD convention
9485# for man pages (file formats in section 5, miscellaneous info in section 7).
9486# Individual cases can override this.
9487#
9488DYEXT="none"
9489MAN_FILE_FORMATS=5
9490MAN_MISC_INFO=7
9491case "$host_os" in
9492
9493aix*)
9494
9495cat >>confdefs.h <<\_ACEOF
9496#define _SUN 1
9497_ACEOF
9498
9499
9500	#
9501	# AIX makes it fun to build shared and static libraries,
9502	# because they're *both* ".a" archive libraries.  We
9503	# build the static library for the benefit of the traditional
9504	# scheme of building libpcap and tcpdump in subdirectories of
9505	# the same directory, with tcpdump statically linked with the
9506	# libpcap in question, but we also build a shared library as
9507	# "libpcap.shareda" and install *it*, rather than the static
9508	# library, as "libpcap.a".
9509	#
9510	DYEXT="shareda"
9511
9512	case "$V_PCAP" in
9513
9514	dlpi)
9515		#
9516		# If we're using DLPI, applications will need to
9517		# use /lib/pse.exp if present, as we use the
9518		# STREAMS routines.
9519		#
9520		pseexe="/lib/pse.exp"
9521		{ echo "$as_me:$LINENO: checking for $pseexe" >&5
9522echo $ECHO_N "checking for $pseexe... $ECHO_C" >&6; }
9523		if test -f $pseexe ; then
9524			{ echo "$as_me:$LINENO: result: yes" >&5
9525echo "${ECHO_T}yes" >&6; }
9526			LIBS="-I:$pseexe"
9527		fi
9528		;;
9529
9530	bpf)
9531		#
9532		# If we're using BPF, we need "-lodm" and "-lcfg", as
9533		# we use them to load the BPF module.
9534		#
9535		LIBS="-lodm -lcfg"
9536		;;
9537	esac
9538	;;
9539
9540darwin*)
9541	DYEXT="dylib"
9542	V_CCOPT="$V_CCOPT -fno-common"
9543	;;
9544
9545hpux9*)
9546
9547cat >>confdefs.h <<\_ACEOF
9548#define HAVE_HPUX9 1
9549_ACEOF
9550
9551
9552	#
9553	# Use System V conventions for man pages.
9554	#
9555	MAN_FILE_FORMATS=4
9556	MAN_MISC_INFO=5
9557	;;
9558
9559hpux10.0*)
9560
9561	#
9562	# Use System V conventions for man pages.
9563	#
9564	MAN_FILE_FORMATS=4
9565	MAN_MISC_INFO=5
9566	;;
9567
9568hpux10.1*)
9569
9570	#
9571	# Use System V conventions for man pages.
9572	#
9573	MAN_FILE_FORMATS=4
9574	MAN_MISC_INFO=5
9575	;;
9576
9577hpux*)
9578
9579cat >>confdefs.h <<\_ACEOF
9580#define HAVE_HPUX10_20_OR_LATER 1
9581_ACEOF
9582
9583	if test "`uname -m`" = "ia64"; then
9584		DYEXT="so"
9585	else
9586		DYEXT="sl"
9587	fi
9588
9589	#
9590	# "-b" builds a shared library; "+h" sets the soname.
9591	#
9592	SHLIB_OPT="-b"
9593	SONAME_OPT="+h"
9594
9595	#
9596	# Use System V conventions for man pages.
9597	#
9598	MAN_FILE_FORMATS=4
9599	MAN_MISC_INFO=5
9600	;;
9601
9602irix*)
9603	#
9604	# Use System V conventions for man pages.
9605	#
9606	MAN_FILE_FORMATS=4
9607	MAN_MISC_INFO=5
9608	;;
9609
9610linux*|freebsd*|netbsd*|openbsd*|dragonfly*)
9611	DYEXT="so"
9612
9613	#
9614	# Compiler assumed to be GCC; run-time linker may require a -R
9615	# flag.
9616	#
9617	if test "$libdir" != "/usr/lib"; then
9618		V_RFLAGS=-Wl,-R$libdir
9619	fi
9620	;;
9621
9622osf*)
9623	DYEXT="so"
9624
9625	#
9626	# Use System V conventions for man pages.
9627	#
9628	MAN_FILE_FORMATS=4
9629	MAN_MISC_INFO=5
9630	;;
9631
9632sinix*)
9633	{ echo "$as_me:$LINENO: checking if SINIX compiler defines sinix" >&5
9634echo $ECHO_N "checking if SINIX compiler defines sinix... $ECHO_C" >&6; }
9635	if test "${ac_cv_cc_sinix_defined+set}" = set; then
9636  echo $ECHO_N "(cached) $ECHO_C" >&6
9637else
9638  cat >conftest.$ac_ext <<_ACEOF
9639/* confdefs.h.  */
9640_ACEOF
9641cat confdefs.h >>conftest.$ac_ext
9642cat >>conftest.$ac_ext <<_ACEOF
9643/* end confdefs.h.  */
9644
9645int
9646main ()
9647{
9648int i = sinix;
9649  ;
9650  return 0;
9651}
9652_ACEOF
9653rm -f conftest.$ac_objext
9654if { (ac_try="$ac_compile"
9655case "(($ac_try" in
9656  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9657  *) ac_try_echo=$ac_try;;
9658esac
9659eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9660  (eval "$ac_compile") 2>conftest.er1
9661  ac_status=$?
9662  grep -v '^ *+' conftest.er1 >conftest.err
9663  rm -f conftest.er1
9664  cat conftest.err >&5
9665  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9666  (exit $ac_status); } && {
9667	 test -z "$ac_c_werror_flag" ||
9668	 test ! -s conftest.err
9669       } && test -s conftest.$ac_objext; then
9670  ac_cv_cc_sinix_defined=yes
9671else
9672  echo "$as_me: failed program was:" >&5
9673sed 's/^/| /' conftest.$ac_ext >&5
9674
9675	ac_cv_cc_sinix_defined=no
9676fi
9677
9678rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9679fi
9680
9681	    { echo "$as_me:$LINENO: result: $ac_cv_cc_sinix_defined" >&5
9682echo "${ECHO_T}$ac_cv_cc_sinix_defined" >&6; }
9683	    if test $ac_cv_cc_sinix_defined = no ; then
9684
9685cat >>confdefs.h <<\_ACEOF
9686#define sinix 1
9687_ACEOF
9688
9689	    fi
9690	;;
9691
9692solaris*)
9693
9694cat >>confdefs.h <<\_ACEOF
9695#define HAVE_SOLARIS 1
9696_ACEOF
9697
9698
9699	DYEXT="so"
9700	#
9701	# Use System V conventions for man pages.
9702	#
9703	MAN_FILE_FORMATS=4
9704	MAN_MISC_INFO=5
9705	;;
9706esac
9707
9708if test -n "$ac_tool_prefix"; then
9709  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
9710set dummy ${ac_tool_prefix}ranlib; ac_word=$2
9711{ echo "$as_me:$LINENO: checking for $ac_word" >&5
9712echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9713if test "${ac_cv_prog_RANLIB+set}" = set; then
9714  echo $ECHO_N "(cached) $ECHO_C" >&6
9715else
9716  if test -n "$RANLIB"; then
9717  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9718else
9719as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9720for as_dir in $PATH
9721do
9722  IFS=$as_save_IFS
9723  test -z "$as_dir" && as_dir=.
9724  for ac_exec_ext in '' $ac_executable_extensions; do
9725  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9726    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
9727    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9728    break 2
9729  fi
9730done
9731done
9732IFS=$as_save_IFS
9733
9734fi
9735fi
9736RANLIB=$ac_cv_prog_RANLIB
9737if test -n "$RANLIB"; then
9738  { echo "$as_me:$LINENO: result: $RANLIB" >&5
9739echo "${ECHO_T}$RANLIB" >&6; }
9740else
9741  { echo "$as_me:$LINENO: result: no" >&5
9742echo "${ECHO_T}no" >&6; }
9743fi
9744
9745
9746fi
9747if test -z "$ac_cv_prog_RANLIB"; then
9748  ac_ct_RANLIB=$RANLIB
9749  # Extract the first word of "ranlib", so it can be a program name with args.
9750set dummy ranlib; ac_word=$2
9751{ echo "$as_me:$LINENO: checking for $ac_word" >&5
9752echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9753if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
9754  echo $ECHO_N "(cached) $ECHO_C" >&6
9755else
9756  if test -n "$ac_ct_RANLIB"; then
9757  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9758else
9759as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9760for as_dir in $PATH
9761do
9762  IFS=$as_save_IFS
9763  test -z "$as_dir" && as_dir=.
9764  for ac_exec_ext in '' $ac_executable_extensions; do
9765  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9766    ac_cv_prog_ac_ct_RANLIB="ranlib"
9767    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9768    break 2
9769  fi
9770done
9771done
9772IFS=$as_save_IFS
9773
9774fi
9775fi
9776ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
9777if test -n "$ac_ct_RANLIB"; then
9778  { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
9779echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
9780else
9781  { echo "$as_me:$LINENO: result: no" >&5
9782echo "${ECHO_T}no" >&6; }
9783fi
9784
9785  if test "x$ac_ct_RANLIB" = x; then
9786    RANLIB=":"
9787  else
9788    case $cross_compiling:$ac_tool_warned in
9789yes:)
9790{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
9791whose name does not start with the host triplet.  If you think this
9792configuration is useful to you, please write to autoconf@gnu.org." >&5
9793echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
9794whose name does not start with the host triplet.  If you think this
9795configuration is useful to you, please write to autoconf@gnu.org." >&2;}
9796ac_tool_warned=yes ;;
9797esac
9798    RANLIB=$ac_ct_RANLIB
9799  fi
9800else
9801  RANLIB="$ac_cv_prog_RANLIB"
9802fi
9803
9804
9805rm -f os-proto.h
9806    if test "${LBL_CFLAGS+set}" = set; then
9807	    V_CCOPT="$V_CCOPT ${LBL_CFLAGS}"
9808    fi
9809    if test -f .devel ; then
9810	    if test "$GCC" = yes ; then
9811		    if test "${LBL_CFLAGS+set}" != set; then
9812			    if test "$ac_cv_prog_cc_g" = yes ; then
9813				    V_CCOPT="-g $V_CCOPT"
9814			    fi
9815			    V_CCOPT="$V_CCOPT -Wall"
9816			    if test $ac_cv_lbl_gcc_vers -gt 1 ; then
9817				    V_CCOPT="$V_CCOPT -Wmissing-prototypes -Wstrict-prototypes"
9818			    fi
9819		    fi
9820	    else
9821		    case "$host_os" in
9822
9823		    irix6*)
9824			    V_CCOPT="$V_CCOPT -n32"
9825			    ;;
9826
9827		    *)
9828			    ;;
9829		    esac
9830	    fi
9831	    os=`echo $host_os | sed -e 's/\([0-9][0-9]*\)[^0-9].*$/\1/'`
9832	    name="lbl/os-$os.h"
9833	    if test -f $name ; then
9834		    ln -s $name os-proto.h
9835
9836cat >>confdefs.h <<\_ACEOF
9837#define HAVE_OS_PROTO_H 1
9838_ACEOF
9839
9840	    else
9841		    { echo "$as_me:$LINENO: WARNING: can't find $name" >&5
9842echo "$as_me: WARNING: can't find $name" >&2;}
9843	    fi
9844    fi
9845
9846{ echo "$as_me:$LINENO: checking if sockaddr struct has the sa_len member" >&5
9847echo $ECHO_N "checking if sockaddr struct has the sa_len member... $ECHO_C" >&6; }
9848    if test "${ac_cv_lbl_sockaddr_has_sa_len+set}" = set; then
9849  echo $ECHO_N "(cached) $ECHO_C" >&6
9850else
9851  cat >conftest.$ac_ext <<_ACEOF
9852/* confdefs.h.  */
9853_ACEOF
9854cat confdefs.h >>conftest.$ac_ext
9855cat >>conftest.$ac_ext <<_ACEOF
9856/* end confdefs.h.  */
9857
9858#	include <sys/types.h>
9859#	include <sys/socket.h>
9860int
9861main ()
9862{
9863u_int i = sizeof(((struct sockaddr *)0)->sa_len)
9864  ;
9865  return 0;
9866}
9867_ACEOF
9868rm -f conftest.$ac_objext
9869if { (ac_try="$ac_compile"
9870case "(($ac_try" in
9871  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9872  *) ac_try_echo=$ac_try;;
9873esac
9874eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9875  (eval "$ac_compile") 2>conftest.er1
9876  ac_status=$?
9877  grep -v '^ *+' conftest.er1 >conftest.err
9878  rm -f conftest.er1
9879  cat conftest.err >&5
9880  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9881  (exit $ac_status); } && {
9882	 test -z "$ac_c_werror_flag" ||
9883	 test ! -s conftest.err
9884       } && test -s conftest.$ac_objext; then
9885  ac_cv_lbl_sockaddr_has_sa_len=yes
9886else
9887  echo "$as_me: failed program was:" >&5
9888sed 's/^/| /' conftest.$ac_ext >&5
9889
9890	ac_cv_lbl_sockaddr_has_sa_len=no
9891fi
9892
9893rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9894fi
9895
9896    { echo "$as_me:$LINENO: result: $ac_cv_lbl_sockaddr_has_sa_len" >&5
9897echo "${ECHO_T}$ac_cv_lbl_sockaddr_has_sa_len" >&6; }
9898    if test $ac_cv_lbl_sockaddr_has_sa_len = yes ; then
9899
9900cat >>confdefs.h <<\_ACEOF
9901#define HAVE_SOCKADDR_SA_LEN 1
9902_ACEOF
9903
9904    fi
9905
9906{ echo "$as_me:$LINENO: checking if sockaddr_storage struct exists" >&5
9907echo $ECHO_N "checking if sockaddr_storage struct exists... $ECHO_C" >&6; }
9908    if test "${ac_cv_lbl_has_sockaddr_storage+set}" = set; then
9909  echo $ECHO_N "(cached) $ECHO_C" >&6
9910else
9911  cat >conftest.$ac_ext <<_ACEOF
9912/* confdefs.h.  */
9913_ACEOF
9914cat confdefs.h >>conftest.$ac_ext
9915cat >>conftest.$ac_ext <<_ACEOF
9916/* end confdefs.h.  */
9917
9918#	include <sys/types.h>
9919#	include <sys/socket.h>
9920int
9921main ()
9922{
9923u_int i = sizeof (struct sockaddr_storage)
9924  ;
9925  return 0;
9926}
9927_ACEOF
9928rm -f conftest.$ac_objext
9929if { (ac_try="$ac_compile"
9930case "(($ac_try" in
9931  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9932  *) ac_try_echo=$ac_try;;
9933esac
9934eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9935  (eval "$ac_compile") 2>conftest.er1
9936  ac_status=$?
9937  grep -v '^ *+' conftest.er1 >conftest.err
9938  rm -f conftest.er1
9939  cat conftest.err >&5
9940  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9941  (exit $ac_status); } && {
9942	 test -z "$ac_c_werror_flag" ||
9943	 test ! -s conftest.err
9944       } && test -s conftest.$ac_objext; then
9945  ac_cv_lbl_has_sockaddr_storage=yes
9946else
9947  echo "$as_me: failed program was:" >&5
9948sed 's/^/| /' conftest.$ac_ext >&5
9949
9950	ac_cv_lbl_has_sockaddr_storage=no
9951fi
9952
9953rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9954fi
9955
9956    { echo "$as_me:$LINENO: result: $ac_cv_lbl_has_sockaddr_storage" >&5
9957echo "${ECHO_T}$ac_cv_lbl_has_sockaddr_storage" >&6; }
9958    if test $ac_cv_lbl_has_sockaddr_storage = yes ; then
9959
9960cat >>confdefs.h <<\_ACEOF
9961#define HAVE_SOCKADDR_STORAGE 1
9962_ACEOF
9963
9964    fi
9965
9966{ echo "$as_me:$LINENO: checking if dl_hp_ppa_info_t struct has dl_module_id_1 member" >&5
9967echo $ECHO_N "checking if dl_hp_ppa_info_t struct has dl_module_id_1 member... $ECHO_C" >&6; }
9968    if test "${ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1+set}" = set; then
9969  echo $ECHO_N "(cached) $ECHO_C" >&6
9970else
9971  cat >conftest.$ac_ext <<_ACEOF
9972/* confdefs.h.  */
9973_ACEOF
9974cat confdefs.h >>conftest.$ac_ext
9975cat >>conftest.$ac_ext <<_ACEOF
9976/* end confdefs.h.  */
9977
9978#	include <sys/types.h>
9979#	include <sys/dlpi.h>
9980#	include <sys/dlpi_ext.h>
9981int
9982main ()
9983{
9984u_int i = sizeof(((dl_hp_ppa_info_t *)0)->dl_module_id_1)
9985  ;
9986  return 0;
9987}
9988_ACEOF
9989rm -f conftest.$ac_objext
9990if { (ac_try="$ac_compile"
9991case "(($ac_try" in
9992  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9993  *) ac_try_echo=$ac_try;;
9994esac
9995eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9996  (eval "$ac_compile") 2>conftest.er1
9997  ac_status=$?
9998  grep -v '^ *+' conftest.er1 >conftest.err
9999  rm -f conftest.er1
10000  cat conftest.err >&5
10001  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10002  (exit $ac_status); } && {
10003	 test -z "$ac_c_werror_flag" ||
10004	 test ! -s conftest.err
10005       } && test -s conftest.$ac_objext; then
10006  ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1=yes
10007else
10008  echo "$as_me: failed program was:" >&5
10009sed 's/^/| /' conftest.$ac_ext >&5
10010
10011	ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1=no
10012fi
10013
10014rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10015fi
10016
10017    { echo "$as_me:$LINENO: result: $ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1" >&5
10018echo "${ECHO_T}$ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1" >&6; }
10019    if test $ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1 = yes ; then
10020
10021cat >>confdefs.h <<\_ACEOF
10022#define HAVE_HP_PPA_INFO_T_DL_MODULE_ID_1 1
10023_ACEOF
10024
10025    fi
10026
10027{ echo "$as_me:$LINENO: checking if unaligned accesses fail" >&5
10028echo $ECHO_N "checking if unaligned accesses fail... $ECHO_C" >&6; }
10029    if test "${ac_cv_lbl_unaligned_fail+set}" = set; then
10030  echo $ECHO_N "(cached) $ECHO_C" >&6
10031else
10032  case "$host_cpu" in
10033
10034	#
10035	# These are CPU types where:
10036	#
10037	#	the CPU faults on an unaligned access, but at least some
10038	#	OSes that support that CPU catch the fault and simulate
10039	#	the unaligned access (e.g., Alpha/{Digital,Tru64} UNIX) -
10040	#	the simulation is slow, so we don't want to use it;
10041	#
10042	#	the CPU, I infer (from the old
10043	#
10044	# XXX: should also check that they don't do weird things (like on arm)
10045	#
10046	#	comment) doesn't fault on unaligned accesses, but doesn't
10047	#	do a normal unaligned fetch, either (e.g., presumably, ARM);
10048	#
10049	#	for whatever reason, the test program doesn't work
10050	#	(this has been claimed to be the case for several of those
10051	#	CPUs - I don't know what the problem is; the problem
10052	#	was reported as "the test program dumps core" for SuperH,
10053	#	but that's what the test program is *supposed* to do -
10054	#	it dumps core before it writes anything, so the test
10055	#	for an empty output file should find an empty output
10056	#	file and conclude that unaligned accesses don't work).
10057	#
10058	# This run-time test won't work if you're cross-compiling, so
10059	# in order to support cross-compiling for a particular CPU,
10060	# we have to wire in the list of CPU types anyway, as far as
10061	# I know, so perhaps we should just have a set of CPUs on
10062	# which we know it doesn't work, a set of CPUs on which we
10063	# know it does work, and have the script just fail on other
10064	# cpu types and update it when such a failure occurs.
10065	#
10066	alpha*|arm*|bfin*|hp*|mips*|sh*|sparc*|ia64|nv1)
10067		ac_cv_lbl_unaligned_fail=yes
10068		;;
10069
10070	*)
10071		cat >conftest.c <<EOF
10072#		include <sys/types.h>
10073#		include <sys/wait.h>
10074#		include <stdio.h>
10075		unsigned char a[5] = { 1, 2, 3, 4, 5 };
10076		main() {
10077		unsigned int i;
10078		pid_t pid;
10079		int status;
10080		/* avoid "core dumped" message */
10081		pid = fork();
10082		if (pid <  0)
10083			exit(2);
10084		if (pid > 0) {
10085			/* parent */
10086			pid = waitpid(pid, &status, 0);
10087			if (pid < 0)
10088				exit(3);
10089			exit(!WIFEXITED(status));
10090		}
10091		/* child */
10092		i = *(unsigned int *)&a[1];
10093		printf("%d\n", i);
10094		exit(0);
10095		}
10096EOF
10097		${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS \
10098		    conftest.c $LIBS >/dev/null 2>&1
10099		if test ! -x conftest ; then
10100						ac_cv_lbl_unaligned_fail=yes
10101		else
10102			./conftest >conftest.out
10103			if test ! -s conftest.out ; then
10104				ac_cv_lbl_unaligned_fail=yes
10105			else
10106				ac_cv_lbl_unaligned_fail=no
10107			fi
10108		fi
10109		rm -f -r conftest* core core.conftest
10110		;;
10111	esac
10112fi
10113
10114    { echo "$as_me:$LINENO: result: $ac_cv_lbl_unaligned_fail" >&5
10115echo "${ECHO_T}$ac_cv_lbl_unaligned_fail" >&6; }
10116    if test $ac_cv_lbl_unaligned_fail = yes ; then
10117
10118cat >>confdefs.h <<\_ACEOF
10119#define LBL_ALIGN 1
10120_ACEOF
10121
10122    fi
10123
10124#
10125# Makefile.in includes rules to generate version.h, so we assume
10126# that it will be generated if autoconf is used.
10127#
10128
10129cat >>confdefs.h <<\_ACEOF
10130#define HAVE_VERSION_H 1
10131_ACEOF
10132
10133
10134rm -f net
10135ln -s ${srcdir}/bpf/net net
10136
10137
10138
10139
10140
10141
10142
10143
10144
10145
10146
10147
10148
10149
10150
10151
10152
10153
10154
10155{ echo "$as_me:$LINENO: checking for USB sniffing support" >&5
10156echo $ECHO_N "checking for USB sniffing support... $ECHO_C" >&6; }
10157case "$host_os" in
10158linux*)
10159
10160cat >>confdefs.h <<\_ACEOF
10161#define PCAP_SUPPORT_USB 1
10162_ACEOF
10163
10164       USB_SRC=pcap-usb-linux.c
10165       { echo "$as_me:$LINENO: result: yes" >&5
10166echo "${ECHO_T}yes" >&6; }
10167       ac_usb_dev_name=`udevinfo -q name -p /sys/class/usb_device/usbmon 2>/dev/null`
10168       if test $? -ne 0 ; then
10169               ac_usb_dev_name="usbmon"
10170       fi
10171
10172cat >>confdefs.h <<_ACEOF
10173#define LINUX_USB_MON_DEV "/dev/$ac_usb_dev_name"
10174_ACEOF
10175
10176       { echo "$as_me:$LINENO: Device for USB sniffing is /dev/$ac_usb_dev_name" >&5
10177echo "$as_me: Device for USB sniffing is /dev/$ac_usb_dev_name" >&6;}
10178
10179for ac_header in linux/usbdevice_fs.h
10180do
10181as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10182if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10183  { echo "$as_me:$LINENO: checking for $ac_header" >&5
10184echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10185if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10186  echo $ECHO_N "(cached) $ECHO_C" >&6
10187fi
10188ac_res=`eval echo '${'$as_ac_Header'}'`
10189	       { echo "$as_me:$LINENO: result: $ac_res" >&5
10190echo "${ECHO_T}$ac_res" >&6; }
10191else
10192  # Is the header compilable?
10193{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10194echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10195cat >conftest.$ac_ext <<_ACEOF
10196/* confdefs.h.  */
10197_ACEOF
10198cat confdefs.h >>conftest.$ac_ext
10199cat >>conftest.$ac_ext <<_ACEOF
10200/* end confdefs.h.  */
10201$ac_includes_default
10202#include <$ac_header>
10203_ACEOF
10204rm -f conftest.$ac_objext
10205if { (ac_try="$ac_compile"
10206case "(($ac_try" in
10207  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10208  *) ac_try_echo=$ac_try;;
10209esac
10210eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10211  (eval "$ac_compile") 2>conftest.er1
10212  ac_status=$?
10213  grep -v '^ *+' conftest.er1 >conftest.err
10214  rm -f conftest.er1
10215  cat conftest.err >&5
10216  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10217  (exit $ac_status); } && {
10218	 test -z "$ac_c_werror_flag" ||
10219	 test ! -s conftest.err
10220       } && test -s conftest.$ac_objext; then
10221  ac_header_compiler=yes
10222else
10223  echo "$as_me: failed program was:" >&5
10224sed 's/^/| /' conftest.$ac_ext >&5
10225
10226	ac_header_compiler=no
10227fi
10228
10229rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10230{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10231echo "${ECHO_T}$ac_header_compiler" >&6; }
10232
10233# Is the header present?
10234{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10235echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10236cat >conftest.$ac_ext <<_ACEOF
10237/* confdefs.h.  */
10238_ACEOF
10239cat confdefs.h >>conftest.$ac_ext
10240cat >>conftest.$ac_ext <<_ACEOF
10241/* end confdefs.h.  */
10242#include <$ac_header>
10243_ACEOF
10244if { (ac_try="$ac_cpp conftest.$ac_ext"
10245case "(($ac_try" in
10246  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10247  *) ac_try_echo=$ac_try;;
10248esac
10249eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10250  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10251  ac_status=$?
10252  grep -v '^ *+' conftest.er1 >conftest.err
10253  rm -f conftest.er1
10254  cat conftest.err >&5
10255  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10256  (exit $ac_status); } >/dev/null && {
10257	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10258	 test ! -s conftest.err
10259       }; then
10260  ac_header_preproc=yes
10261else
10262  echo "$as_me: failed program was:" >&5
10263sed 's/^/| /' conftest.$ac_ext >&5
10264
10265  ac_header_preproc=no
10266fi
10267
10268rm -f conftest.err conftest.$ac_ext
10269{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10270echo "${ECHO_T}$ac_header_preproc" >&6; }
10271
10272# So?  What about this header?
10273case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10274  yes:no: )
10275    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10276echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10277    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10278echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10279    ac_header_preproc=yes
10280    ;;
10281  no:yes:* )
10282    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10283echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10284    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10285echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10286    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10287echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10288    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10289echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10290    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10291echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10292    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10293echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10294
10295    ;;
10296esac
10297{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10298echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10299if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10300  echo $ECHO_N "(cached) $ECHO_C" >&6
10301else
10302  eval "$as_ac_Header=\$ac_header_preproc"
10303fi
10304ac_res=`eval echo '${'$as_ac_Header'}'`
10305	       { echo "$as_me:$LINENO: result: $ac_res" >&5
10306echo "${ECHO_T}$ac_res" >&6; }
10307
10308fi
10309if test `eval echo '${'$as_ac_Header'}'` = yes; then
10310  cat >>confdefs.h <<_ACEOF
10311#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10312_ACEOF
10313
10314fi
10315
10316done
10317
10318       if test "$ac_cv_header_linux_usbdevice_fs_h" = yes; then
10319         #
10320         # OK, does it define bRequestType?  Older versions of the kernel
10321         # define fields with names like "requesttype, "request", and
10322         # "value", rather than "bRequestType", "bRequest", and
10323         # "wValue".
10324         #
10325         { echo "$as_me:$LINENO: checking if usbdevfs_ctrltransfer struct has bRequestType member" >&5
10326echo $ECHO_N "checking if usbdevfs_ctrltransfer struct has bRequestType member... $ECHO_C" >&6; }
10327         if test "${ac_cv_usbdevfs_ctrltransfer_has_bRequestType+set}" = set; then
10328  echo $ECHO_N "(cached) $ECHO_C" >&6
10329else
10330  cat >conftest.$ac_ext <<_ACEOF
10331/* confdefs.h.  */
10332_ACEOF
10333cat confdefs.h >>conftest.$ac_ext
10334cat >>conftest.$ac_ext <<_ACEOF
10335/* end confdefs.h.  */
10336
10337$ac_includes_default
10338#ifdef HAVE_SYS_BITYPES_H
10339#include <sys/bitypes.h>
10340#endif
10341#            include <linux/usbdevice_fs.h>
10342int
10343main ()
10344{
10345u_int i = sizeof(((struct usbdevfs_ctrltransfer *)0)->bRequestType)
10346  ;
10347  return 0;
10348}
10349_ACEOF
10350rm -f conftest.$ac_objext
10351if { (ac_try="$ac_compile"
10352case "(($ac_try" in
10353  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10354  *) ac_try_echo=$ac_try;;
10355esac
10356eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10357  (eval "$ac_compile") 2>conftest.er1
10358  ac_status=$?
10359  grep -v '^ *+' conftest.er1 >conftest.err
10360  rm -f conftest.er1
10361  cat conftest.err >&5
10362  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10363  (exit $ac_status); } && {
10364	 test -z "$ac_c_werror_flag" ||
10365	 test ! -s conftest.err
10366       } && test -s conftest.$ac_objext; then
10367  ac_cv_usbdevfs_ctrltransfer_has_bRequestType=yes
10368else
10369  echo "$as_me: failed program was:" >&5
10370sed 's/^/| /' conftest.$ac_ext >&5
10371
10372	ac_cv_usbdevfs_ctrltransfer_has_bRequestType=no
10373fi
10374
10375rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10376fi
10377
10378         { echo "$as_me:$LINENO: result: $ac_cv_usbdevfs_ctrltransfer_has_bRequestType" >&5
10379echo "${ECHO_T}$ac_cv_usbdevfs_ctrltransfer_has_bRequestType" >&6; }
10380         if test $ac_cv_usbdevfs_ctrltransfer_has_bRequestType = yes ; then
10381
10382cat >>confdefs.h <<\_ACEOF
10383#define HAVE_USBDEVFS_CTRLTRANSFER_BREQUESTTYPE 1
10384_ACEOF
10385
10386         fi
10387       fi
10388       ;;
10389*)
10390       { echo "$as_me:$LINENO: result: no" >&5
10391echo "${ECHO_T}no" >&6; }
10392       ;;
10393esac
10394
10395
10396
10397# Check whether --enable-bluetooth was given.
10398if test "${enable_bluetooth+set}" = set; then
10399  enableval=$enable_bluetooth;
10400else
10401  enable_bluetooth=yes
10402fi
10403
10404
10405if test "x$enable_bluetooth" != "xno" ; then
10406		case "$host_os" in
10407	linux*)
10408	       if test "${ac_cv_header_bluetooth_bluetooth_h+set}" = set; then
10409  { echo "$as_me:$LINENO: checking for bluetooth/bluetooth.h" >&5
10410echo $ECHO_N "checking for bluetooth/bluetooth.h... $ECHO_C" >&6; }
10411if test "${ac_cv_header_bluetooth_bluetooth_h+set}" = set; then
10412  echo $ECHO_N "(cached) $ECHO_C" >&6
10413fi
10414{ echo "$as_me:$LINENO: result: $ac_cv_header_bluetooth_bluetooth_h" >&5
10415echo "${ECHO_T}$ac_cv_header_bluetooth_bluetooth_h" >&6; }
10416else
10417  # Is the header compilable?
10418{ echo "$as_me:$LINENO: checking bluetooth/bluetooth.h usability" >&5
10419echo $ECHO_N "checking bluetooth/bluetooth.h usability... $ECHO_C" >&6; }
10420cat >conftest.$ac_ext <<_ACEOF
10421/* confdefs.h.  */
10422_ACEOF
10423cat confdefs.h >>conftest.$ac_ext
10424cat >>conftest.$ac_ext <<_ACEOF
10425/* end confdefs.h.  */
10426$ac_includes_default
10427#include <bluetooth/bluetooth.h>
10428_ACEOF
10429rm -f conftest.$ac_objext
10430if { (ac_try="$ac_compile"
10431case "(($ac_try" in
10432  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10433  *) ac_try_echo=$ac_try;;
10434esac
10435eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10436  (eval "$ac_compile") 2>conftest.er1
10437  ac_status=$?
10438  grep -v '^ *+' conftest.er1 >conftest.err
10439  rm -f conftest.er1
10440  cat conftest.err >&5
10441  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10442  (exit $ac_status); } && {
10443	 test -z "$ac_c_werror_flag" ||
10444	 test ! -s conftest.err
10445       } && test -s conftest.$ac_objext; then
10446  ac_header_compiler=yes
10447else
10448  echo "$as_me: failed program was:" >&5
10449sed 's/^/| /' conftest.$ac_ext >&5
10450
10451	ac_header_compiler=no
10452fi
10453
10454rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10455{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10456echo "${ECHO_T}$ac_header_compiler" >&6; }
10457
10458# Is the header present?
10459{ echo "$as_me:$LINENO: checking bluetooth/bluetooth.h presence" >&5
10460echo $ECHO_N "checking bluetooth/bluetooth.h presence... $ECHO_C" >&6; }
10461cat >conftest.$ac_ext <<_ACEOF
10462/* confdefs.h.  */
10463_ACEOF
10464cat confdefs.h >>conftest.$ac_ext
10465cat >>conftest.$ac_ext <<_ACEOF
10466/* end confdefs.h.  */
10467#include <bluetooth/bluetooth.h>
10468_ACEOF
10469if { (ac_try="$ac_cpp conftest.$ac_ext"
10470case "(($ac_try" in
10471  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10472  *) ac_try_echo=$ac_try;;
10473esac
10474eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10475  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10476  ac_status=$?
10477  grep -v '^ *+' conftest.er1 >conftest.err
10478  rm -f conftest.er1
10479  cat conftest.err >&5
10480  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10481  (exit $ac_status); } >/dev/null && {
10482	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10483	 test ! -s conftest.err
10484       }; then
10485  ac_header_preproc=yes
10486else
10487  echo "$as_me: failed program was:" >&5
10488sed 's/^/| /' conftest.$ac_ext >&5
10489
10490  ac_header_preproc=no
10491fi
10492
10493rm -f conftest.err conftest.$ac_ext
10494{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10495echo "${ECHO_T}$ac_header_preproc" >&6; }
10496
10497# So?  What about this header?
10498case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10499  yes:no: )
10500    { echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h: accepted by the compiler, rejected by the preprocessor!" >&5
10501echo "$as_me: WARNING: bluetooth/bluetooth.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10502    { echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h: proceeding with the compiler's result" >&5
10503echo "$as_me: WARNING: bluetooth/bluetooth.h: proceeding with the compiler's result" >&2;}
10504    ac_header_preproc=yes
10505    ;;
10506  no:yes:* )
10507    { echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h: present but cannot be compiled" >&5
10508echo "$as_me: WARNING: bluetooth/bluetooth.h: present but cannot be compiled" >&2;}
10509    { echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h:     check for missing prerequisite headers?" >&5
10510echo "$as_me: WARNING: bluetooth/bluetooth.h:     check for missing prerequisite headers?" >&2;}
10511    { echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h: see the Autoconf documentation" >&5
10512echo "$as_me: WARNING: bluetooth/bluetooth.h: see the Autoconf documentation" >&2;}
10513    { echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h:     section \"Present But Cannot Be Compiled\"" >&5
10514echo "$as_me: WARNING: bluetooth/bluetooth.h:     section \"Present But Cannot Be Compiled\"" >&2;}
10515    { echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h: proceeding with the preprocessor's result" >&5
10516echo "$as_me: WARNING: bluetooth/bluetooth.h: proceeding with the preprocessor's result" >&2;}
10517    { echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h: in the future, the compiler will take precedence" >&5
10518echo "$as_me: WARNING: bluetooth/bluetooth.h: in the future, the compiler will take precedence" >&2;}
10519
10520    ;;
10521esac
10522{ echo "$as_me:$LINENO: checking for bluetooth/bluetooth.h" >&5
10523echo $ECHO_N "checking for bluetooth/bluetooth.h... $ECHO_C" >&6; }
10524if test "${ac_cv_header_bluetooth_bluetooth_h+set}" = set; then
10525  echo $ECHO_N "(cached) $ECHO_C" >&6
10526else
10527  ac_cv_header_bluetooth_bluetooth_h=$ac_header_preproc
10528fi
10529{ echo "$as_me:$LINENO: result: $ac_cv_header_bluetooth_bluetooth_h" >&5
10530echo "${ECHO_T}$ac_cv_header_bluetooth_bluetooth_h" >&6; }
10531
10532fi
10533if test $ac_cv_header_bluetooth_bluetooth_h = yes; then
10534
10535
10536cat >>confdefs.h <<\_ACEOF
10537#define PCAP_SUPPORT_BT 1
10538_ACEOF
10539
10540	          BT_SRC=pcap-bt-linux.c
10541	          { echo "$as_me:$LINENO: Bluetooth sniffing is supported" >&5
10542echo "$as_me: Bluetooth sniffing is supported" >&6;}
10543
10544else
10545  { echo "$as_me:$LINENO: Bluetooth sniffing is not supported; install bluez-lib devel to enable it" >&5
10546echo "$as_me: Bluetooth sniffing is not supported; install bluez-lib devel to enable it" >&6;}
10547
10548fi
10549
10550
10551	       ;;
10552	*)
10553	       { echo "$as_me:$LINENO: no Bluetooth sniffing support implemented for $host_os" >&5
10554echo "$as_me: no Bluetooth sniffing support implemented for $host_os" >&6;}
10555	       ;;
10556	esac
10557
10558
10559fi
10560
10561# Check whether --enable-can was given.
10562if test "${enable_can+set}" = set; then
10563  enableval=$enable_can;
10564else
10565  enable_can=yes
10566fi
10567
10568
10569if test "x$enable_can" != "xno" ; then
10570		case "$host_os" in
10571	linux*)
10572		{ echo "$as_me:$LINENO: checking for linux/can.h" >&5
10573echo $ECHO_N "checking for linux/can.h... $ECHO_C" >&6; }
10574if test "${ac_cv_header_linux_can_h+set}" = set; then
10575  echo $ECHO_N "(cached) $ECHO_C" >&6
10576else
10577  cat >conftest.$ac_ext <<_ACEOF
10578/* confdefs.h.  */
10579_ACEOF
10580cat confdefs.h >>conftest.$ac_ext
10581cat >>conftest.$ac_ext <<_ACEOF
10582/* end confdefs.h.  */
10583#include <sys/socket.h>
10584
10585
10586#include <linux/can.h>
10587_ACEOF
10588rm -f conftest.$ac_objext
10589if { (ac_try="$ac_compile"
10590case "(($ac_try" in
10591  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10592  *) ac_try_echo=$ac_try;;
10593esac
10594eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10595  (eval "$ac_compile") 2>conftest.er1
10596  ac_status=$?
10597  grep -v '^ *+' conftest.er1 >conftest.err
10598  rm -f conftest.er1
10599  cat conftest.err >&5
10600  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10601  (exit $ac_status); } && {
10602	 test -z "$ac_c_werror_flag" ||
10603	 test ! -s conftest.err
10604       } && test -s conftest.$ac_objext; then
10605  ac_cv_header_linux_can_h=yes
10606else
10607  echo "$as_me: failed program was:" >&5
10608sed 's/^/| /' conftest.$ac_ext >&5
10609
10610	ac_cv_header_linux_can_h=no
10611fi
10612
10613rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10614fi
10615{ echo "$as_me:$LINENO: result: $ac_cv_header_linux_can_h" >&5
10616echo "${ECHO_T}$ac_cv_header_linux_can_h" >&6; }
10617if test $ac_cv_header_linux_can_h = yes; then
10618
10619cat >>confdefs.h <<\_ACEOF
10620#define PCAP_SUPPORT_CAN 1
10621_ACEOF
10622
10623			CAN_SRC=pcap-can-linux.c
10624			{ echo "$as_me:$LINENO: CAN sniffing is supported" >&5
10625echo "$as_me: CAN sniffing is supported" >&6;}
10626else
10627  { echo "$as_me:$LINENO: CAN sniffing is not supported" >&5
10628echo "$as_me: CAN sniffing is not supported" >&6;}
10629fi
10630
10631
10632		;;
10633	*)
10634		{ echo "$as_me:$LINENO: no CAN sniffing support implemented for $host_os" >&5
10635echo "$as_me: no CAN sniffing support implemented for $host_os" >&6;}
10636		;;
10637	esac
10638
10639
10640fi
10641
10642# Find a good install program.  We prefer a C program (faster),
10643# so one script is as good as another.  But avoid the broken or
10644# incompatible versions:
10645# SysV /etc/install, /usr/sbin/install
10646# SunOS /usr/etc/install
10647# IRIX /sbin/install
10648# AIX /bin/install
10649# AmigaOS /C/install, which installs bootblocks on floppy discs
10650# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
10651# AFS /usr/afsws/bin/install, which mishandles nonexistent args
10652# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
10653# OS/2's system install, which has a completely different semantic
10654# ./install, which can be erroneously created by make from ./install.sh.
10655{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
10656echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
10657if test -z "$INSTALL"; then
10658if test "${ac_cv_path_install+set}" = set; then
10659  echo $ECHO_N "(cached) $ECHO_C" >&6
10660else
10661  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10662for as_dir in $PATH
10663do
10664  IFS=$as_save_IFS
10665  test -z "$as_dir" && as_dir=.
10666  # Account for people who put trailing slashes in PATH elements.
10667case $as_dir/ in
10668  ./ | .// | /cC/* | \
10669  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
10670  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
10671  /usr/ucb/* ) ;;
10672  *)
10673    # OSF1 and SCO ODT 3.0 have their own names for install.
10674    # Don't use installbsd from OSF since it installs stuff as root
10675    # by default.
10676    for ac_prog in ginstall scoinst install; do
10677      for ac_exec_ext in '' $ac_executable_extensions; do
10678	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
10679	  if test $ac_prog = install &&
10680	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
10681	    # AIX install.  It has an incompatible calling convention.
10682	    :
10683	  elif test $ac_prog = install &&
10684	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
10685	    # program-specific install script used by HP pwplus--don't use.
10686	    :
10687	  else
10688	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
10689	    break 3
10690	  fi
10691	fi
10692      done
10693    done
10694    ;;
10695esac
10696done
10697IFS=$as_save_IFS
10698
10699
10700fi
10701  if test "${ac_cv_path_install+set}" = set; then
10702    INSTALL=$ac_cv_path_install
10703  else
10704    # As a last resort, use the slow shell script.  Don't cache a
10705    # value for INSTALL within a source directory, because that will
10706    # break other packages using the cache if that directory is
10707    # removed, or if the value is a relative name.
10708    INSTALL=$ac_install_sh
10709  fi
10710fi
10711{ echo "$as_me:$LINENO: result: $INSTALL" >&5
10712echo "${ECHO_T}$INSTALL" >&6; }
10713
10714# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
10715# It thinks the first close brace ends the variable substitution.
10716test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
10717
10718test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
10719
10720test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
10721
10722
10723ac_config_headers="$ac_config_headers config.h"
10724
10725
10726ac_config_files="$ac_config_files Makefile pcap-filter.manmisc pcap-linktype.manmisc pcap-savefile.manfile pcap.3pcap pcap_compile.3pcap pcap_datalink.3pcap pcap_dump_open.3pcap pcap_list_datalinks.3pcap pcap_open_dead.3pcap pcap_open_offline.3pcap"
10727
10728cat >confcache <<\_ACEOF
10729# This file is a shell script that caches the results of configure
10730# tests run on this system so they can be shared between configure
10731# scripts and configure runs, see configure's option --config-cache.
10732# It is not useful on other systems.  If it contains results you don't
10733# want to keep, you may remove or edit it.
10734#
10735# config.status only pays attention to the cache file if you give it
10736# the --recheck option to rerun configure.
10737#
10738# `ac_cv_env_foo' variables (set or unset) will be overridden when
10739# loading this file, other *unset* `ac_cv_foo' will be assigned the
10740# following values.
10741
10742_ACEOF
10743
10744# The following way of writing the cache mishandles newlines in values,
10745# but we know of no workaround that is simple, portable, and efficient.
10746# So, we kill variables containing newlines.
10747# Ultrix sh set writes to stderr and can't be redirected directly,
10748# and sets the high bit in the cache file unless we assign to the vars.
10749(
10750  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10751    eval ac_val=\$$ac_var
10752    case $ac_val in #(
10753    *${as_nl}*)
10754      case $ac_var in #(
10755      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
10756echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
10757      esac
10758      case $ac_var in #(
10759      _ | IFS | as_nl) ;; #(
10760      *) $as_unset $ac_var ;;
10761      esac ;;
10762    esac
10763  done
10764
10765  (set) 2>&1 |
10766    case $as_nl`(ac_space=' '; set) 2>&1` in #(
10767    *${as_nl}ac_space=\ *)
10768      # `set' does not quote correctly, so add quotes (double-quote
10769      # substitution turns \\\\ into \\, and sed turns \\ into \).
10770      sed -n \
10771	"s/'/'\\\\''/g;
10772	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10773      ;; #(
10774    *)
10775      # `set' quotes correctly as required by POSIX, so do not add quotes.
10776      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10777      ;;
10778    esac |
10779    sort
10780) |
10781  sed '
10782     /^ac_cv_env_/b end
10783     t clear
10784     :clear
10785     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10786     t end
10787     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10788     :end' >>confcache
10789if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10790  if test -w "$cache_file"; then
10791    test "x$cache_file" != "x/dev/null" &&
10792      { echo "$as_me:$LINENO: updating cache $cache_file" >&5
10793echo "$as_me: updating cache $cache_file" >&6;}
10794    cat confcache >$cache_file
10795  else
10796    { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
10797echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10798  fi
10799fi
10800rm -f confcache
10801
10802test "x$prefix" = xNONE && prefix=$ac_default_prefix
10803# Let make expand exec_prefix.
10804test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10805
10806DEFS=-DHAVE_CONFIG_H
10807
10808ac_libobjs=
10809ac_ltlibobjs=
10810for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10811  # 1. Remove the extension, and $U if already installed.
10812  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10813  ac_i=`echo "$ac_i" | sed "$ac_script"`
10814  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
10815  #    will be set to the directory where LIBOBJS objects are built.
10816  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10817  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
10818done
10819LIBOBJS=$ac_libobjs
10820
10821LTLIBOBJS=$ac_ltlibobjs
10822
10823
10824
10825: ${CONFIG_STATUS=./config.status}
10826ac_clean_files_save=$ac_clean_files
10827ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10828{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
10829echo "$as_me: creating $CONFIG_STATUS" >&6;}
10830cat >$CONFIG_STATUS <<_ACEOF
10831#! $SHELL
10832# Generated by $as_me.
10833# Run this file to recreate the current configuration.
10834# Compiler output produced by configure, useful for debugging
10835# configure, is in config.log if it exists.
10836
10837debug=false
10838ac_cs_recheck=false
10839ac_cs_silent=false
10840SHELL=\${CONFIG_SHELL-$SHELL}
10841_ACEOF
10842
10843cat >>$CONFIG_STATUS <<\_ACEOF
10844## --------------------- ##
10845## M4sh Initialization.  ##
10846## --------------------- ##
10847
10848# Be more Bourne compatible
10849DUALCASE=1; export DUALCASE # for MKS sh
10850if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
10851  emulate sh
10852  NULLCMD=:
10853  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
10854  # is contrary to our usage.  Disable this feature.
10855  alias -g '${1+"$@"}'='"$@"'
10856  setopt NO_GLOB_SUBST
10857else
10858  case `(set -o) 2>/dev/null` in
10859  *posix*) set -o posix ;;
10860esac
10861
10862fi
10863
10864
10865
10866
10867# PATH needs CR
10868# Avoid depending upon Character Ranges.
10869as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10870as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10871as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10872as_cr_digits='0123456789'
10873as_cr_alnum=$as_cr_Letters$as_cr_digits
10874
10875# The user is always right.
10876if test "${PATH_SEPARATOR+set}" != set; then
10877  echo "#! /bin/sh" >conf$$.sh
10878  echo  "exit 0"   >>conf$$.sh
10879  chmod +x conf$$.sh
10880  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10881    PATH_SEPARATOR=';'
10882  else
10883    PATH_SEPARATOR=:
10884  fi
10885  rm -f conf$$.sh
10886fi
10887
10888# Support unset when possible.
10889if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10890  as_unset=unset
10891else
10892  as_unset=false
10893fi
10894
10895
10896# IFS
10897# We need space, tab and new line, in precisely that order.  Quoting is
10898# there to prevent editors from complaining about space-tab.
10899# (If _AS_PATH_WALK were called with IFS unset, it would disable word
10900# splitting by setting IFS to empty value.)
10901as_nl='
10902'
10903IFS=" ""	$as_nl"
10904
10905# Find who we are.  Look in the path if we contain no directory separator.
10906case $0 in
10907  *[\\/]* ) as_myself=$0 ;;
10908  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10909for as_dir in $PATH
10910do
10911  IFS=$as_save_IFS
10912  test -z "$as_dir" && as_dir=.
10913  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10914done
10915IFS=$as_save_IFS
10916
10917     ;;
10918esac
10919# We did not find ourselves, most probably we were run as `sh COMMAND'
10920# in which case we are not to be found in the path.
10921if test "x$as_myself" = x; then
10922  as_myself=$0
10923fi
10924if test ! -f "$as_myself"; then
10925  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10926  { (exit 1); exit 1; }
10927fi
10928
10929# Work around bugs in pre-3.0 UWIN ksh.
10930for as_var in ENV MAIL MAILPATH
10931do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
10932done
10933PS1='$ '
10934PS2='> '
10935PS4='+ '
10936
10937# NLS nuisances.
10938for as_var in \
10939  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
10940  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
10941  LC_TELEPHONE LC_TIME
10942do
10943  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
10944    eval $as_var=C; export $as_var
10945  else
10946    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
10947  fi
10948done
10949
10950# Required to use basename.
10951if expr a : '\(a\)' >/dev/null 2>&1 &&
10952   test "X`expr 00001 : '.*\(...\)'`" = X001; then
10953  as_expr=expr
10954else
10955  as_expr=false
10956fi
10957
10958if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
10959  as_basename=basename
10960else
10961  as_basename=false
10962fi
10963
10964
10965# Name of the executable.
10966as_me=`$as_basename -- "$0" ||
10967$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10968	 X"$0" : 'X\(//\)$' \| \
10969	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
10970echo X/"$0" |
10971    sed '/^.*\/\([^/][^/]*\)\/*$/{
10972	    s//\1/
10973	    q
10974	  }
10975	  /^X\/\(\/\/\)$/{
10976	    s//\1/
10977	    q
10978	  }
10979	  /^X\/\(\/\).*/{
10980	    s//\1/
10981	    q
10982	  }
10983	  s/.*/./; q'`
10984
10985# CDPATH.
10986$as_unset CDPATH
10987
10988
10989
10990  as_lineno_1=$LINENO
10991  as_lineno_2=$LINENO
10992  test "x$as_lineno_1" != "x$as_lineno_2" &&
10993  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
10994
10995  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
10996  # uniformly replaced by the line number.  The first 'sed' inserts a
10997  # line-number line after each line using $LINENO; the second 'sed'
10998  # does the real work.  The second script uses 'N' to pair each
10999  # line-number line with the line containing $LINENO, and appends
11000  # trailing '-' during substitution so that $LINENO is not a special
11001  # case at line end.
11002  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11003  # scripts with optimization help from Paolo Bonzini.  Blame Lee
11004  # E. McMahon (1931-1989) for sed's syntax.  :-)
11005  sed -n '
11006    p
11007    /[$]LINENO/=
11008  ' <$as_myself |
11009    sed '
11010      s/[$]LINENO.*/&-/
11011      t lineno
11012      b
11013      :lineno
11014      N
11015      :loop
11016      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
11017      t loop
11018      s/-\n.*//
11019    ' >$as_me.lineno &&
11020  chmod +x "$as_me.lineno" ||
11021    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
11022   { (exit 1); exit 1; }; }
11023
11024  # Don't try to exec as it changes $[0], causing all sort of problems
11025  # (the dirname of $[0] is not the place where we might find the
11026  # original and so on.  Autoconf is especially sensitive to this).
11027  . "./$as_me.lineno"
11028  # Exit status is that of the last command.
11029  exit
11030}
11031
11032
11033if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11034  as_dirname=dirname
11035else
11036  as_dirname=false
11037fi
11038
11039ECHO_C= ECHO_N= ECHO_T=
11040case `echo -n x` in
11041-n*)
11042  case `echo 'x\c'` in
11043  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
11044  *)   ECHO_C='\c';;
11045  esac;;
11046*)
11047  ECHO_N='-n';;
11048esac
11049
11050if expr a : '\(a\)' >/dev/null 2>&1 &&
11051   test "X`expr 00001 : '.*\(...\)'`" = X001; then
11052  as_expr=expr
11053else
11054  as_expr=false
11055fi
11056
11057rm -f conf$$ conf$$.exe conf$$.file
11058if test -d conf$$.dir; then
11059  rm -f conf$$.dir/conf$$.file
11060else
11061  rm -f conf$$.dir
11062  mkdir conf$$.dir
11063fi
11064echo >conf$$.file
11065if ln -s conf$$.file conf$$ 2>/dev/null; then
11066  as_ln_s='ln -s'
11067  # ... but there are two gotchas:
11068  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11069  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11070  # In both cases, we have to default to `cp -p'.
11071  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11072    as_ln_s='cp -p'
11073elif ln conf$$.file conf$$ 2>/dev/null; then
11074  as_ln_s=ln
11075else
11076  as_ln_s='cp -p'
11077fi
11078rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11079rmdir conf$$.dir 2>/dev/null
11080
11081if mkdir -p . 2>/dev/null; then
11082  as_mkdir_p=:
11083else
11084  test -d ./-p && rmdir ./-p
11085  as_mkdir_p=false
11086fi
11087
11088if test -x / >/dev/null 2>&1; then
11089  as_test_x='test -x'
11090else
11091  if ls -dL / >/dev/null 2>&1; then
11092    as_ls_L_option=L
11093  else
11094    as_ls_L_option=
11095  fi
11096  as_test_x='
11097    eval sh -c '\''
11098      if test -d "$1"; then
11099        test -d "$1/.";
11100      else
11101	case $1 in
11102        -*)set "./$1";;
11103	esac;
11104	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
11105	???[sx]*):;;*)false;;esac;fi
11106    '\'' sh
11107  '
11108fi
11109as_executable_p=$as_test_x
11110
11111# Sed expression to map a string onto a valid CPP name.
11112as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11113
11114# Sed expression to map a string onto a valid variable name.
11115as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11116
11117
11118exec 6>&1
11119
11120# Save the log message, to keep $[0] and so on meaningful, and to
11121# report actual input values of CONFIG_FILES etc. instead of their
11122# values after options handling.
11123ac_log="
11124This file was extended by $as_me, which was
11125generated by GNU Autoconf 2.61.  Invocation command line was
11126
11127  CONFIG_FILES    = $CONFIG_FILES
11128  CONFIG_HEADERS  = $CONFIG_HEADERS
11129  CONFIG_LINKS    = $CONFIG_LINKS
11130  CONFIG_COMMANDS = $CONFIG_COMMANDS
11131  $ $0 $@
11132
11133on `(hostname || uname -n) 2>/dev/null | sed 1q`
11134"
11135
11136_ACEOF
11137
11138cat >>$CONFIG_STATUS <<_ACEOF
11139# Files that config.status was made for.
11140config_files="$ac_config_files"
11141config_headers="$ac_config_headers"
11142
11143_ACEOF
11144
11145cat >>$CONFIG_STATUS <<\_ACEOF
11146ac_cs_usage="\
11147\`$as_me' instantiates files from templates according to the
11148current configuration.
11149
11150Usage: $0 [OPTIONS] [FILE]...
11151
11152  -h, --help       print this help, then exit
11153  -V, --version    print version number and configuration settings, then exit
11154  -q, --quiet      do not print progress messages
11155  -d, --debug      don't remove temporary files
11156      --recheck    update $as_me by reconfiguring in the same conditions
11157  --file=FILE[:TEMPLATE]
11158		   instantiate the configuration file FILE
11159  --header=FILE[:TEMPLATE]
11160		   instantiate the configuration header FILE
11161
11162Configuration files:
11163$config_files
11164
11165Configuration headers:
11166$config_headers
11167
11168Report bugs to <bug-autoconf@gnu.org>."
11169
11170_ACEOF
11171cat >>$CONFIG_STATUS <<_ACEOF
11172ac_cs_version="\\
11173config.status
11174configured by $0, generated by GNU Autoconf 2.61,
11175  with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
11176
11177Copyright (C) 2006 Free Software Foundation, Inc.
11178This config.status script is free software; the Free Software Foundation
11179gives unlimited permission to copy, distribute and modify it."
11180
11181ac_pwd='$ac_pwd'
11182srcdir='$srcdir'
11183INSTALL='$INSTALL'
11184_ACEOF
11185
11186cat >>$CONFIG_STATUS <<\_ACEOF
11187# If no file are specified by the user, then we need to provide default
11188# value.  By we need to know if files were specified by the user.
11189ac_need_defaults=:
11190while test $# != 0
11191do
11192  case $1 in
11193  --*=*)
11194    ac_option=`expr "X$1" : 'X\([^=]*\)='`
11195    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11196    ac_shift=:
11197    ;;
11198  *)
11199    ac_option=$1
11200    ac_optarg=$2
11201    ac_shift=shift
11202    ;;
11203  esac
11204
11205  case $ac_option in
11206  # Handling of the options.
11207  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11208    ac_cs_recheck=: ;;
11209  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11210    echo "$ac_cs_version"; exit ;;
11211  --debug | --debu | --deb | --de | --d | -d )
11212    debug=: ;;
11213  --file | --fil | --fi | --f )
11214    $ac_shift
11215    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
11216    ac_need_defaults=false;;
11217  --header | --heade | --head | --hea )
11218    $ac_shift
11219    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
11220    ac_need_defaults=false;;
11221  --he | --h)
11222    # Conflict between --help and --header
11223    { echo "$as_me: error: ambiguous option: $1
11224Try \`$0 --help' for more information." >&2
11225   { (exit 1); exit 1; }; };;
11226  --help | --hel | -h )
11227    echo "$ac_cs_usage"; exit ;;
11228  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11229  | -silent | --silent | --silen | --sile | --sil | --si | --s)
11230    ac_cs_silent=: ;;
11231
11232  # This is an error.
11233  -*) { echo "$as_me: error: unrecognized option: $1
11234Try \`$0 --help' for more information." >&2
11235   { (exit 1); exit 1; }; } ;;
11236
11237  *) ac_config_targets="$ac_config_targets $1"
11238     ac_need_defaults=false ;;
11239
11240  esac
11241  shift
11242done
11243
11244ac_configure_extra_args=
11245
11246if $ac_cs_silent; then
11247  exec 6>/dev/null
11248  ac_configure_extra_args="$ac_configure_extra_args --silent"
11249fi
11250
11251_ACEOF
11252cat >>$CONFIG_STATUS <<_ACEOF
11253if \$ac_cs_recheck; then
11254  echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
11255  CONFIG_SHELL=$SHELL
11256  export CONFIG_SHELL
11257  exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11258fi
11259
11260_ACEOF
11261cat >>$CONFIG_STATUS <<\_ACEOF
11262exec 5>>config.log
11263{
11264  echo
11265  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11266## Running $as_me. ##
11267_ASBOX
11268  echo "$ac_log"
11269} >&5
11270
11271_ACEOF
11272cat >>$CONFIG_STATUS <<_ACEOF
11273_ACEOF
11274
11275cat >>$CONFIG_STATUS <<\_ACEOF
11276
11277# Handling of arguments.
11278for ac_config_target in $ac_config_targets
11279do
11280  case $ac_config_target in
11281    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11282    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11283    "pcap-filter.manmisc") CONFIG_FILES="$CONFIG_FILES pcap-filter.manmisc" ;;
11284    "pcap-linktype.manmisc") CONFIG_FILES="$CONFIG_FILES pcap-linktype.manmisc" ;;
11285    "pcap-savefile.manfile") CONFIG_FILES="$CONFIG_FILES pcap-savefile.manfile" ;;
11286    "pcap.3pcap") CONFIG_FILES="$CONFIG_FILES pcap.3pcap" ;;
11287    "pcap_compile.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_compile.3pcap" ;;
11288    "pcap_datalink.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_datalink.3pcap" ;;
11289    "pcap_dump_open.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_dump_open.3pcap" ;;
11290    "pcap_list_datalinks.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_list_datalinks.3pcap" ;;
11291    "pcap_open_dead.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_open_dead.3pcap" ;;
11292    "pcap_open_offline.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_open_offline.3pcap" ;;
11293
11294  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
11295echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
11296   { (exit 1); exit 1; }; };;
11297  esac
11298done
11299
11300
11301# If the user did not use the arguments to specify the items to instantiate,
11302# then the envvar interface is used.  Set only those that are not.
11303# We use the long form for the default assignment because of an extremely
11304# bizarre bug on SunOS 4.1.3.
11305if $ac_need_defaults; then
11306  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11307  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11308fi
11309
11310# Have a temporary directory for convenience.  Make it in the build tree
11311# simply because there is no reason against having it here, and in addition,
11312# creating and moving files from /tmp can sometimes cause problems.
11313# Hook for its removal unless debugging.
11314# Note that there is a small window in which the directory will not be cleaned:
11315# after its creation but before its name has been assigned to `$tmp'.
11316$debug ||
11317{
11318  tmp=
11319  trap 'exit_status=$?
11320  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
11321' 0
11322  trap '{ (exit 1); exit 1; }' 1 2 13 15
11323}
11324# Create a (secure) tmp directory for tmp files.
11325
11326{
11327  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11328  test -n "$tmp" && test -d "$tmp"
11329}  ||
11330{
11331  tmp=./conf$$-$RANDOM
11332  (umask 077 && mkdir "$tmp")
11333} ||
11334{
11335   echo "$me: cannot create a temporary directory in ." >&2
11336   { (exit 1); exit 1; }
11337}
11338
11339#
11340# Set up the sed scripts for CONFIG_FILES section.
11341#
11342
11343# No need to generate the scripts if there are no CONFIG_FILES.
11344# This happens for instance when ./config.status config.h
11345if test -n "$CONFIG_FILES"; then
11346
11347_ACEOF
11348
11349
11350
11351ac_delim='%!_!# '
11352for ac_last_try in false false false false false :; do
11353  cat >conf$$subs.sed <<_ACEOF
11354SHELL!$SHELL$ac_delim
11355PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
11356PACKAGE_NAME!$PACKAGE_NAME$ac_delim
11357PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
11358PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
11359PACKAGE_STRING!$PACKAGE_STRING$ac_delim
11360PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
11361exec_prefix!$exec_prefix$ac_delim
11362prefix!$prefix$ac_delim
11363program_transform_name!$program_transform_name$ac_delim
11364bindir!$bindir$ac_delim
11365sbindir!$sbindir$ac_delim
11366libexecdir!$libexecdir$ac_delim
11367datarootdir!$datarootdir$ac_delim
11368datadir!$datadir$ac_delim
11369sysconfdir!$sysconfdir$ac_delim
11370sharedstatedir!$sharedstatedir$ac_delim
11371localstatedir!$localstatedir$ac_delim
11372includedir!$includedir$ac_delim
11373oldincludedir!$oldincludedir$ac_delim
11374docdir!$docdir$ac_delim
11375infodir!$infodir$ac_delim
11376htmldir!$htmldir$ac_delim
11377dvidir!$dvidir$ac_delim
11378pdfdir!$pdfdir$ac_delim
11379psdir!$psdir$ac_delim
11380libdir!$libdir$ac_delim
11381localedir!$localedir$ac_delim
11382mandir!$mandir$ac_delim
11383DEFS!$DEFS$ac_delim
11384ECHO_C!$ECHO_C$ac_delim
11385ECHO_N!$ECHO_N$ac_delim
11386ECHO_T!$ECHO_T$ac_delim
11387LIBS!$LIBS$ac_delim
11388build_alias!$build_alias$ac_delim
11389host_alias!$host_alias$ac_delim
11390target_alias!$target_alias$ac_delim
11391build!$build$ac_delim
11392build_cpu!$build_cpu$ac_delim
11393build_vendor!$build_vendor$ac_delim
11394build_os!$build_os$ac_delim
11395host!$host$ac_delim
11396host_cpu!$host_cpu$ac_delim
11397host_vendor!$host_vendor$ac_delim
11398host_os!$host_os$ac_delim
11399target!$target$ac_delim
11400target_cpu!$target_cpu$ac_delim
11401target_vendor!$target_vendor$ac_delim
11402target_os!$target_os$ac_delim
11403SHLICC2!$SHLICC2$ac_delim
11404CC!$CC$ac_delim
11405CFLAGS!$CFLAGS$ac_delim
11406LDFLAGS!$LDFLAGS$ac_delim
11407CPPFLAGS!$CPPFLAGS$ac_delim
11408ac_ct_CC!$ac_ct_CC$ac_delim
11409EXEEXT!$EXEEXT$ac_delim
11410OBJEXT!$OBJEXT$ac_delim
11411CPP!$CPP$ac_delim
11412GREP!$GREP$ac_delim
11413EGREP!$EGREP$ac_delim
11414LIBOBJS!$LIBOBJS$ac_delim
11415HAVE_LINUX_TPACKET_AUXDATA!$HAVE_LINUX_TPACKET_AUXDATA$ac_delim
11416V_LEX!$V_LEX$ac_delim
11417V_YACC!$V_YACC$ac_delim
11418RANLIB!$RANLIB$ac_delim
11419V_CCOPT!$V_CCOPT$ac_delim
11420V_DEFS!$V_DEFS$ac_delim
11421V_FINDALLDEVS!$V_FINDALLDEVS$ac_delim
11422V_INCLS!$V_INCLS$ac_delim
11423V_PCAP!$V_PCAP$ac_delim
11424V_SHLIB_CMD!$V_SHLIB_CMD$ac_delim
11425V_SHLIB_OPT!$V_SHLIB_OPT$ac_delim
11426V_SONAME_OPT!$V_SONAME_OPT$ac_delim
11427V_RPATH_OPT!$V_RPATH_OPT$ac_delim
11428ADDLOBJS!$ADDLOBJS$ac_delim
11429ADDLARCHIVEOBJS!$ADDLARCHIVEOBJS$ac_delim
11430SSRC!$SSRC$ac_delim
11431DYEXT!$DYEXT$ac_delim
11432MAN_FILE_FORMATS!$MAN_FILE_FORMATS$ac_delim
11433MAN_MISC_INFO!$MAN_MISC_INFO$ac_delim
11434PCAP_SUPPORT_USB!$PCAP_SUPPORT_USB$ac_delim
11435USB_SRC!$USB_SRC$ac_delim
11436PCAP_SUPPORT_BT!$PCAP_SUPPORT_BT$ac_delim
11437BT_SRC!$BT_SRC$ac_delim
11438PCAP_SUPPORT_CAN!$PCAP_SUPPORT_CAN$ac_delim
11439CAN_SRC!$CAN_SRC$ac_delim
11440INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
11441INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
11442INSTALL_DATA!$INSTALL_DATA$ac_delim
11443LTLIBOBJS!$LTLIBOBJS$ac_delim
11444_ACEOF
11445
11446  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 90; then
11447    break
11448  elif $ac_last_try; then
11449    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
11450echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
11451   { (exit 1); exit 1; }; }
11452  else
11453    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11454  fi
11455done
11456
11457ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
11458if test -n "$ac_eof"; then
11459  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
11460  ac_eof=`expr $ac_eof + 1`
11461fi
11462
11463cat >>$CONFIG_STATUS <<_ACEOF
11464cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
11465/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
11466_ACEOF
11467sed '
11468s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
11469s/^/s,@/; s/!/@,|#_!!_#|/
11470:n
11471t n
11472s/'"$ac_delim"'$/,g/; t
11473s/$/\\/; p
11474N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
11475' >>$CONFIG_STATUS <conf$$subs.sed
11476rm -f conf$$subs.sed
11477cat >>$CONFIG_STATUS <<_ACEOF
11478:end
11479s/|#_!!_#|//g
11480CEOF$ac_eof
11481_ACEOF
11482
11483
11484# VPATH may cause trouble with some makes, so we remove $(srcdir),
11485# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11486# trailing colons and then remove the whole line if VPATH becomes empty
11487# (actually we leave an empty line to preserve line numbers).
11488if test "x$srcdir" = x.; then
11489  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
11490s/:*\$(srcdir):*/:/
11491s/:*\${srcdir}:*/:/
11492s/:*@srcdir@:*/:/
11493s/^\([^=]*=[	 ]*\):*/\1/
11494s/:*$//
11495s/^[^=]*=[	 ]*$//
11496}'
11497fi
11498
11499cat >>$CONFIG_STATUS <<\_ACEOF
11500fi # test -n "$CONFIG_FILES"
11501
11502
11503for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS
11504do
11505  case $ac_tag in
11506  :[FHLC]) ac_mode=$ac_tag; continue;;
11507  esac
11508  case $ac_mode$ac_tag in
11509  :[FHL]*:*);;
11510  :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
11511echo "$as_me: error: Invalid tag $ac_tag." >&2;}
11512   { (exit 1); exit 1; }; };;
11513  :[FH]-) ac_tag=-:-;;
11514  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11515  esac
11516  ac_save_IFS=$IFS
11517  IFS=:
11518  set x $ac_tag
11519  IFS=$ac_save_IFS
11520  shift
11521  ac_file=$1
11522  shift
11523
11524  case $ac_mode in
11525  :L) ac_source=$1;;
11526  :[FH])
11527    ac_file_inputs=
11528    for ac_f
11529    do
11530      case $ac_f in
11531      -) ac_f="$tmp/stdin";;
11532      *) # Look for the file first in the build tree, then in the source tree
11533	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
11534	 # because $ac_f cannot contain `:'.
11535	 test -f "$ac_f" ||
11536	   case $ac_f in
11537	   [\\/$]*) false;;
11538	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11539	   esac ||
11540	   { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
11541echo "$as_me: error: cannot find input file: $ac_f" >&2;}
11542   { (exit 1); exit 1; }; };;
11543      esac
11544      ac_file_inputs="$ac_file_inputs $ac_f"
11545    done
11546
11547    # Let's still pretend it is `configure' which instantiates (i.e., don't
11548    # use $as_me), people would be surprised to read:
11549    #    /* config.h.  Generated by config.status.  */
11550    configure_input="Generated from "`IFS=:
11551	  echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
11552    if test x"$ac_file" != x-; then
11553      configure_input="$ac_file.  $configure_input"
11554      { echo "$as_me:$LINENO: creating $ac_file" >&5
11555echo "$as_me: creating $ac_file" >&6;}
11556    fi
11557
11558    case $ac_tag in
11559    *:-:* | *:-) cat >"$tmp/stdin";;
11560    esac
11561    ;;
11562  esac
11563
11564  ac_dir=`$as_dirname -- "$ac_file" ||
11565$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11566	 X"$ac_file" : 'X\(//\)[^/]' \| \
11567	 X"$ac_file" : 'X\(//\)$' \| \
11568	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11569echo X"$ac_file" |
11570    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11571	    s//\1/
11572	    q
11573	  }
11574	  /^X\(\/\/\)[^/].*/{
11575	    s//\1/
11576	    q
11577	  }
11578	  /^X\(\/\/\)$/{
11579	    s//\1/
11580	    q
11581	  }
11582	  /^X\(\/\).*/{
11583	    s//\1/
11584	    q
11585	  }
11586	  s/.*/./; q'`
11587  { as_dir="$ac_dir"
11588  case $as_dir in #(
11589  -*) as_dir=./$as_dir;;
11590  esac
11591  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
11592    as_dirs=
11593    while :; do
11594      case $as_dir in #(
11595      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
11596      *) as_qdir=$as_dir;;
11597      esac
11598      as_dirs="'$as_qdir' $as_dirs"
11599      as_dir=`$as_dirname -- "$as_dir" ||
11600$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11601	 X"$as_dir" : 'X\(//\)[^/]' \| \
11602	 X"$as_dir" : 'X\(//\)$' \| \
11603	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11604echo X"$as_dir" |
11605    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11606	    s//\1/
11607	    q
11608	  }
11609	  /^X\(\/\/\)[^/].*/{
11610	    s//\1/
11611	    q
11612	  }
11613	  /^X\(\/\/\)$/{
11614	    s//\1/
11615	    q
11616	  }
11617	  /^X\(\/\).*/{
11618	    s//\1/
11619	    q
11620	  }
11621	  s/.*/./; q'`
11622      test -d "$as_dir" && break
11623    done
11624    test -z "$as_dirs" || eval "mkdir $as_dirs"
11625  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
11626echo "$as_me: error: cannot create directory $as_dir" >&2;}
11627   { (exit 1); exit 1; }; }; }
11628  ac_builddir=.
11629
11630case "$ac_dir" in
11631.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11632*)
11633  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11634  # A ".." for each directory in $ac_dir_suffix.
11635  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
11636  case $ac_top_builddir_sub in
11637  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11638  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11639  esac ;;
11640esac
11641ac_abs_top_builddir=$ac_pwd
11642ac_abs_builddir=$ac_pwd$ac_dir_suffix
11643# for backward compatibility:
11644ac_top_builddir=$ac_top_build_prefix
11645
11646case $srcdir in
11647  .)  # We are building in place.
11648    ac_srcdir=.
11649    ac_top_srcdir=$ac_top_builddir_sub
11650    ac_abs_top_srcdir=$ac_pwd ;;
11651  [\\/]* | ?:[\\/]* )  # Absolute name.
11652    ac_srcdir=$srcdir$ac_dir_suffix;
11653    ac_top_srcdir=$srcdir
11654    ac_abs_top_srcdir=$srcdir ;;
11655  *) # Relative name.
11656    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11657    ac_top_srcdir=$ac_top_build_prefix$srcdir
11658    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
11659esac
11660ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
11661
11662
11663  case $ac_mode in
11664  :F)
11665  #
11666  # CONFIG_FILE
11667  #
11668
11669  case $INSTALL in
11670  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11671  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
11672  esac
11673_ACEOF
11674
11675cat >>$CONFIG_STATUS <<\_ACEOF
11676# If the template does not know about datarootdir, expand it.
11677# FIXME: This hack should be removed a few years after 2.60.
11678ac_datarootdir_hack=; ac_datarootdir_seen=
11679
11680case `sed -n '/datarootdir/ {
11681  p
11682  q
11683}
11684/@datadir@/p
11685/@docdir@/p
11686/@infodir@/p
11687/@localedir@/p
11688/@mandir@/p
11689' $ac_file_inputs` in
11690*datarootdir*) ac_datarootdir_seen=yes;;
11691*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
11692  { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11693echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11694_ACEOF
11695cat >>$CONFIG_STATUS <<_ACEOF
11696  ac_datarootdir_hack='
11697  s&@datadir@&$datadir&g
11698  s&@docdir@&$docdir&g
11699  s&@infodir@&$infodir&g
11700  s&@localedir@&$localedir&g
11701  s&@mandir@&$mandir&g
11702    s&\\\${datarootdir}&$datarootdir&g' ;;
11703esac
11704_ACEOF
11705
11706# Neutralize VPATH when `$srcdir' = `.'.
11707# Shell code in configure.ac might set extrasub.
11708# FIXME: do we really want to maintain this feature?
11709cat >>$CONFIG_STATUS <<_ACEOF
11710  sed "$ac_vpsub
11711$extrasub
11712_ACEOF
11713cat >>$CONFIG_STATUS <<\_ACEOF
11714:t
11715/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11716s&@configure_input@&$configure_input&;t t
11717s&@top_builddir@&$ac_top_builddir_sub&;t t
11718s&@srcdir@&$ac_srcdir&;t t
11719s&@abs_srcdir@&$ac_abs_srcdir&;t t
11720s&@top_srcdir@&$ac_top_srcdir&;t t
11721s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
11722s&@builddir@&$ac_builddir&;t t
11723s&@abs_builddir@&$ac_abs_builddir&;t t
11724s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
11725s&@INSTALL@&$ac_INSTALL&;t t
11726$ac_datarootdir_hack
11727" $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
11728
11729test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11730  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
11731  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
11732  { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11733which seems to be undefined.  Please make sure it is defined." >&5
11734echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11735which seems to be undefined.  Please make sure it is defined." >&2;}
11736
11737  rm -f "$tmp/stdin"
11738  case $ac_file in
11739  -) cat "$tmp/out"; rm -f "$tmp/out";;
11740  *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
11741  esac
11742 ;;
11743  :H)
11744  #
11745  # CONFIG_HEADER
11746  #
11747_ACEOF
11748
11749# Transform confdefs.h into a sed script `conftest.defines', that
11750# substitutes the proper values into config.h.in to produce config.h.
11751rm -f conftest.defines conftest.tail
11752# First, append a space to every undef/define line, to ease matching.
11753echo 's/$/ /' >conftest.defines
11754# Then, protect against being on the right side of a sed subst, or in
11755# an unquoted here document, in config.status.  If some macros were
11756# called several times there might be several #defines for the same
11757# symbol, which is useless.  But do not sort them, since the last
11758# AC_DEFINE must be honored.
11759ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11760# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
11761# NAME is the cpp macro being defined, VALUE is the value it is being given.
11762# PARAMS is the parameter list in the macro definition--in most cases, it's
11763# just an empty string.
11764ac_dA='s,^\\([	 #]*\\)[^	 ]*\\([	 ]*'
11765ac_dB='\\)[	 (].*,\\1define\\2'
11766ac_dC=' '
11767ac_dD=' ,'
11768
11769uniq confdefs.h |
11770  sed -n '
11771	t rset
11772	:rset
11773	s/^[	 ]*#[	 ]*define[	 ][	 ]*//
11774	t ok
11775	d
11776	:ok
11777	s/[\\&,]/\\&/g
11778	s/^\('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
11779	s/^\('"$ac_word_re"'\)[	 ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
11780  ' >>conftest.defines
11781
11782# Remove the space that was appended to ease matching.
11783# Then replace #undef with comments.  This is necessary, for
11784# example, in the case of _POSIX_SOURCE, which is predefined and required
11785# on some systems where configure will not decide to define it.
11786# (The regexp can be short, since the line contains either #define or #undef.)
11787echo 's/ $//
11788s,^[	 #]*u.*,/* & */,' >>conftest.defines
11789
11790# Break up conftest.defines:
11791ac_max_sed_lines=50
11792
11793# First sed command is:	 sed -f defines.sed $ac_file_inputs >"$tmp/out1"
11794# Second one is:	 sed -f defines.sed "$tmp/out1" >"$tmp/out2"
11795# Third one will be:	 sed -f defines.sed "$tmp/out2" >"$tmp/out1"
11796# et cetera.
11797ac_in='$ac_file_inputs'
11798ac_out='"$tmp/out1"'
11799ac_nxt='"$tmp/out2"'
11800
11801while :
11802do
11803  # Write a here document:
11804    cat >>$CONFIG_STATUS <<_ACEOF
11805    # First, check the format of the line:
11806    cat >"\$tmp/defines.sed" <<\\CEOF
11807/^[	 ]*#[	 ]*undef[	 ][	 ]*$ac_word_re[	 ]*\$/b def
11808/^[	 ]*#[	 ]*define[	 ][	 ]*$ac_word_re[(	 ]/b def
11809b
11810:def
11811_ACEOF
11812  sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
11813  echo 'CEOF
11814    sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
11815  ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
11816  sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
11817  grep . conftest.tail >/dev/null || break
11818  rm -f conftest.defines
11819  mv conftest.tail conftest.defines
11820done
11821rm -f conftest.defines conftest.tail
11822
11823echo "ac_result=$ac_in" >>$CONFIG_STATUS
11824cat >>$CONFIG_STATUS <<\_ACEOF
11825  if test x"$ac_file" != x-; then
11826    echo "/* $configure_input  */" >"$tmp/config.h"
11827    cat "$ac_result" >>"$tmp/config.h"
11828    if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
11829      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
11830echo "$as_me: $ac_file is unchanged" >&6;}
11831    else
11832      rm -f $ac_file
11833      mv "$tmp/config.h" $ac_file
11834    fi
11835  else
11836    echo "/* $configure_input  */"
11837    cat "$ac_result"
11838  fi
11839  rm -f "$tmp/out12"
11840 ;;
11841
11842
11843  esac
11844
11845done # for ac_tag
11846
11847
11848{ (exit 0); exit 0; }
11849_ACEOF
11850chmod +x $CONFIG_STATUS
11851ac_clean_files=$ac_clean_files_save
11852
11853
11854# configure is writing to config.log, and then calls config.status.
11855# config.status does its own redirection, appending to config.log.
11856# Unfortunately, on DOS this fails, as config.log is still kept open
11857# by configure, so config.status won't be able to write to it; its
11858# output is simply discarded.  So we exec the FD to /dev/null,
11859# effectively closing config.log, so it can be properly (re)opened and
11860# appended to by config.status.  When coming back to configure, we
11861# need to make the FD available again.
11862if test "$no_create" != yes; then
11863  ac_cs_success=:
11864  ac_config_status_args=
11865  test "$silent" = yes &&
11866    ac_config_status_args="$ac_config_status_args --quiet"
11867  exec 5>/dev/null
11868  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11869  exec 5>>config.log
11870  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11871  # would make configure fail if this is the last instruction.
11872  $ac_cs_success || { (exit 1); exit 1; }
11873fi
11874
11875
11876if test -f .devel ; then
11877	make depend
11878fi
11879exit 0
11880