xref: /freebsd/contrib/libpcap/configure (revision 830940567b49bb0c08dfaed40418999e76616909)
1#! /bin/sh
2# From configure.in Revision: 1.138.2.22 .
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
678V_LEX
679V_YACC
680RANLIB
681V_CCOPT
682V_DEFS
683V_INCLS
684V_LIBS
685V_PCAP
686V_FINDALLDEVS
687SSRC
688DYEXT
689DAGLIBS
690DEPLIBS
691MAN_FILE_FORMATS
692MAN_MISC_INFO
693PCAP_SUPPORT_USB
694USB_SRC
695PCAP_SUPPORT_BT
696BT_SRC
697INSTALL_PROGRAM
698INSTALL_SCRIPT
699INSTALL_DATA
700LTLIBOBJS'
701ac_subst_files=''
702      ac_precious_vars='build_alias
703host_alias
704target_alias
705CC
706CFLAGS
707LDFLAGS
708LIBS
709CPPFLAGS
710CPP'
711
712
713# Initialize some variables set by options.
714ac_init_help=
715ac_init_version=false
716# The variables have the same names as the options, with
717# dashes changed to underlines.
718cache_file=/dev/null
719exec_prefix=NONE
720no_create=
721no_recursion=
722prefix=NONE
723program_prefix=NONE
724program_suffix=NONE
725program_transform_name=s,x,x,
726silent=
727site=
728srcdir=
729verbose=
730x_includes=NONE
731x_libraries=NONE
732
733# Installation directory options.
734# These are left unexpanded so users can "make install exec_prefix=/foo"
735# and all the variables that are supposed to be based on exec_prefix
736# by default will actually change.
737# Use braces instead of parens because sh, perl, etc. also accept them.
738# (The list follows the same order as the GNU Coding Standards.)
739bindir='${exec_prefix}/bin'
740sbindir='${exec_prefix}/sbin'
741libexecdir='${exec_prefix}/libexec'
742datarootdir='${prefix}/share'
743datadir='${datarootdir}'
744sysconfdir='${prefix}/etc'
745sharedstatedir='${prefix}/com'
746localstatedir='${prefix}/var'
747includedir='${prefix}/include'
748oldincludedir='/usr/include'
749docdir='${datarootdir}/doc/${PACKAGE}'
750infodir='${datarootdir}/info'
751htmldir='${docdir}'
752dvidir='${docdir}'
753pdfdir='${docdir}'
754psdir='${docdir}'
755libdir='${exec_prefix}/lib'
756localedir='${datarootdir}/locale'
757mandir='${datarootdir}/man'
758
759ac_prev=
760ac_dashdash=
761for ac_option
762do
763  # If the previous option needs an argument, assign it.
764  if test -n "$ac_prev"; then
765    eval $ac_prev=\$ac_option
766    ac_prev=
767    continue
768  fi
769
770  case $ac_option in
771  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
772  *)	ac_optarg=yes ;;
773  esac
774
775  # Accept the important Cygnus configure options, so we can diagnose typos.
776
777  case $ac_dashdash$ac_option in
778  --)
779    ac_dashdash=yes ;;
780
781  -bindir | --bindir | --bindi | --bind | --bin | --bi)
782    ac_prev=bindir ;;
783  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
784    bindir=$ac_optarg ;;
785
786  -build | --build | --buil | --bui | --bu)
787    ac_prev=build_alias ;;
788  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
789    build_alias=$ac_optarg ;;
790
791  -cache-file | --cache-file | --cache-fil | --cache-fi \
792  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
793    ac_prev=cache_file ;;
794  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
795  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
796    cache_file=$ac_optarg ;;
797
798  --config-cache | -C)
799    cache_file=config.cache ;;
800
801  -datadir | --datadir | --datadi | --datad)
802    ac_prev=datadir ;;
803  -datadir=* | --datadir=* | --datadi=* | --datad=*)
804    datadir=$ac_optarg ;;
805
806  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
807  | --dataroo | --dataro | --datar)
808    ac_prev=datarootdir ;;
809  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
810  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
811    datarootdir=$ac_optarg ;;
812
813  -disable-* | --disable-*)
814    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
815    # Reject names that are not valid shell variable names.
816    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
817      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
818   { (exit 1); exit 1; }; }
819    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
820    eval enable_$ac_feature=no ;;
821
822  -docdir | --docdir | --docdi | --doc | --do)
823    ac_prev=docdir ;;
824  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
825    docdir=$ac_optarg ;;
826
827  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
828    ac_prev=dvidir ;;
829  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
830    dvidir=$ac_optarg ;;
831
832  -enable-* | --enable-*)
833    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
834    # Reject names that are not valid shell variable names.
835    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
836      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
837   { (exit 1); exit 1; }; }
838    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
839    eval enable_$ac_feature=\$ac_optarg ;;
840
841  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
842  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
843  | --exec | --exe | --ex)
844    ac_prev=exec_prefix ;;
845  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
846  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
847  | --exec=* | --exe=* | --ex=*)
848    exec_prefix=$ac_optarg ;;
849
850  -gas | --gas | --ga | --g)
851    # Obsolete; use --with-gas.
852    with_gas=yes ;;
853
854  -help | --help | --hel | --he | -h)
855    ac_init_help=long ;;
856  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
857    ac_init_help=recursive ;;
858  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
859    ac_init_help=short ;;
860
861  -host | --host | --hos | --ho)
862    ac_prev=host_alias ;;
863  -host=* | --host=* | --hos=* | --ho=*)
864    host_alias=$ac_optarg ;;
865
866  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
867    ac_prev=htmldir ;;
868  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
869  | --ht=*)
870    htmldir=$ac_optarg ;;
871
872  -includedir | --includedir | --includedi | --included | --include \
873  | --includ | --inclu | --incl | --inc)
874    ac_prev=includedir ;;
875  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
876  | --includ=* | --inclu=* | --incl=* | --inc=*)
877    includedir=$ac_optarg ;;
878
879  -infodir | --infodir | --infodi | --infod | --info | --inf)
880    ac_prev=infodir ;;
881  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
882    infodir=$ac_optarg ;;
883
884  -libdir | --libdir | --libdi | --libd)
885    ac_prev=libdir ;;
886  -libdir=* | --libdir=* | --libdi=* | --libd=*)
887    libdir=$ac_optarg ;;
888
889  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
890  | --libexe | --libex | --libe)
891    ac_prev=libexecdir ;;
892  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
893  | --libexe=* | --libex=* | --libe=*)
894    libexecdir=$ac_optarg ;;
895
896  -localedir | --localedir | --localedi | --localed | --locale)
897    ac_prev=localedir ;;
898  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
899    localedir=$ac_optarg ;;
900
901  -localstatedir | --localstatedir | --localstatedi | --localstated \
902  | --localstate | --localstat | --localsta | --localst | --locals)
903    ac_prev=localstatedir ;;
904  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
905  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
906    localstatedir=$ac_optarg ;;
907
908  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
909    ac_prev=mandir ;;
910  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
911    mandir=$ac_optarg ;;
912
913  -nfp | --nfp | --nf)
914    # Obsolete; use --without-fp.
915    with_fp=no ;;
916
917  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
918  | --no-cr | --no-c | -n)
919    no_create=yes ;;
920
921  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
922  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
923    no_recursion=yes ;;
924
925  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
926  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
927  | --oldin | --oldi | --old | --ol | --o)
928    ac_prev=oldincludedir ;;
929  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
930  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
931  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
932    oldincludedir=$ac_optarg ;;
933
934  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
935    ac_prev=prefix ;;
936  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
937    prefix=$ac_optarg ;;
938
939  -program-prefix | --program-prefix | --program-prefi | --program-pref \
940  | --program-pre | --program-pr | --program-p)
941    ac_prev=program_prefix ;;
942  -program-prefix=* | --program-prefix=* | --program-prefi=* \
943  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
944    program_prefix=$ac_optarg ;;
945
946  -program-suffix | --program-suffix | --program-suffi | --program-suff \
947  | --program-suf | --program-su | --program-s)
948    ac_prev=program_suffix ;;
949  -program-suffix=* | --program-suffix=* | --program-suffi=* \
950  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
951    program_suffix=$ac_optarg ;;
952
953  -program-transform-name | --program-transform-name \
954  | --program-transform-nam | --program-transform-na \
955  | --program-transform-n | --program-transform- \
956  | --program-transform | --program-transfor \
957  | --program-transfo | --program-transf \
958  | --program-trans | --program-tran \
959  | --progr-tra | --program-tr | --program-t)
960    ac_prev=program_transform_name ;;
961  -program-transform-name=* | --program-transform-name=* \
962  | --program-transform-nam=* | --program-transform-na=* \
963  | --program-transform-n=* | --program-transform-=* \
964  | --program-transform=* | --program-transfor=* \
965  | --program-transfo=* | --program-transf=* \
966  | --program-trans=* | --program-tran=* \
967  | --progr-tra=* | --program-tr=* | --program-t=*)
968    program_transform_name=$ac_optarg ;;
969
970  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
971    ac_prev=pdfdir ;;
972  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
973    pdfdir=$ac_optarg ;;
974
975  -psdir | --psdir | --psdi | --psd | --ps)
976    ac_prev=psdir ;;
977  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
978    psdir=$ac_optarg ;;
979
980  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
981  | -silent | --silent | --silen | --sile | --sil)
982    silent=yes ;;
983
984  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
985    ac_prev=sbindir ;;
986  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
987  | --sbi=* | --sb=*)
988    sbindir=$ac_optarg ;;
989
990  -sharedstatedir | --sharedstatedir | --sharedstatedi \
991  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
992  | --sharedst | --shareds | --shared | --share | --shar \
993  | --sha | --sh)
994    ac_prev=sharedstatedir ;;
995  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
996  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
997  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
998  | --sha=* | --sh=*)
999    sharedstatedir=$ac_optarg ;;
1000
1001  -site | --site | --sit)
1002    ac_prev=site ;;
1003  -site=* | --site=* | --sit=*)
1004    site=$ac_optarg ;;
1005
1006  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1007    ac_prev=srcdir ;;
1008  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1009    srcdir=$ac_optarg ;;
1010
1011  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1012  | --syscon | --sysco | --sysc | --sys | --sy)
1013    ac_prev=sysconfdir ;;
1014  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1015  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1016    sysconfdir=$ac_optarg ;;
1017
1018  -target | --target | --targe | --targ | --tar | --ta | --t)
1019    ac_prev=target_alias ;;
1020  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1021    target_alias=$ac_optarg ;;
1022
1023  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1024    verbose=yes ;;
1025
1026  -version | --version | --versio | --versi | --vers | -V)
1027    ac_init_version=: ;;
1028
1029  -with-* | --with-*)
1030    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1031    # Reject names that are not valid shell variable names.
1032    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1033      { echo "$as_me: error: invalid package name: $ac_package" >&2
1034   { (exit 1); exit 1; }; }
1035    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1036    eval with_$ac_package=\$ac_optarg ;;
1037
1038  -without-* | --without-*)
1039    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1040    # Reject names that are not valid shell variable names.
1041    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1042      { echo "$as_me: error: invalid package name: $ac_package" >&2
1043   { (exit 1); exit 1; }; }
1044    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1045    eval with_$ac_package=no ;;
1046
1047  --x)
1048    # Obsolete; use --with-x.
1049    with_x=yes ;;
1050
1051  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1052  | --x-incl | --x-inc | --x-in | --x-i)
1053    ac_prev=x_includes ;;
1054  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1055  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1056    x_includes=$ac_optarg ;;
1057
1058  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1059  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1060    ac_prev=x_libraries ;;
1061  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1062  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1063    x_libraries=$ac_optarg ;;
1064
1065  -*) { echo "$as_me: error: unrecognized option: $ac_option
1066Try \`$0 --help' for more information." >&2
1067   { (exit 1); exit 1; }; }
1068    ;;
1069
1070  *=*)
1071    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1072    # Reject names that are not valid shell variable names.
1073    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1074      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1075   { (exit 1); exit 1; }; }
1076    eval $ac_envvar=\$ac_optarg
1077    export $ac_envvar ;;
1078
1079  *)
1080    # FIXME: should be removed in autoconf 3.0.
1081    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1082    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1083      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1084    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1085    ;;
1086
1087  esac
1088done
1089
1090if test -n "$ac_prev"; then
1091  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1092  { echo "$as_me: error: missing argument to $ac_option" >&2
1093   { (exit 1); exit 1; }; }
1094fi
1095
1096# Be sure to have absolute directory names.
1097for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1098		datadir sysconfdir sharedstatedir localstatedir includedir \
1099		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1100		libdir localedir mandir
1101do
1102  eval ac_val=\$$ac_var
1103  case $ac_val in
1104    [\\/$]* | ?:[\\/]* )  continue;;
1105    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1106  esac
1107  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1108   { (exit 1); exit 1; }; }
1109done
1110
1111# There might be people who depend on the old broken behavior: `$host'
1112# used to hold the argument of --host etc.
1113# FIXME: To remove some day.
1114build=$build_alias
1115host=$host_alias
1116target=$target_alias
1117
1118# FIXME: To remove some day.
1119if test "x$host_alias" != x; then
1120  if test "x$build_alias" = x; then
1121    cross_compiling=maybe
1122    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1123    If a cross compiler is detected then cross compile mode will be used." >&2
1124  elif test "x$build_alias" != "x$host_alias"; then
1125    cross_compiling=yes
1126  fi
1127fi
1128
1129ac_tool_prefix=
1130test -n "$host_alias" && ac_tool_prefix=$host_alias-
1131
1132test "$silent" = yes && exec 6>/dev/null
1133
1134
1135ac_pwd=`pwd` && test -n "$ac_pwd" &&
1136ac_ls_di=`ls -di .` &&
1137ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1138  { echo "$as_me: error: Working directory cannot be determined" >&2
1139   { (exit 1); exit 1; }; }
1140test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1141  { echo "$as_me: error: pwd does not report name of working directory" >&2
1142   { (exit 1); exit 1; }; }
1143
1144
1145# Find the source files, if location was not specified.
1146if test -z "$srcdir"; then
1147  ac_srcdir_defaulted=yes
1148  # Try the directory containing this script, then the parent directory.
1149  ac_confdir=`$as_dirname -- "$0" ||
1150$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1151	 X"$0" : 'X\(//\)[^/]' \| \
1152	 X"$0" : 'X\(//\)$' \| \
1153	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1154echo X"$0" |
1155    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1156	    s//\1/
1157	    q
1158	  }
1159	  /^X\(\/\/\)[^/].*/{
1160	    s//\1/
1161	    q
1162	  }
1163	  /^X\(\/\/\)$/{
1164	    s//\1/
1165	    q
1166	  }
1167	  /^X\(\/\).*/{
1168	    s//\1/
1169	    q
1170	  }
1171	  s/.*/./; q'`
1172  srcdir=$ac_confdir
1173  if test ! -r "$srcdir/$ac_unique_file"; then
1174    srcdir=..
1175  fi
1176else
1177  ac_srcdir_defaulted=no
1178fi
1179if test ! -r "$srcdir/$ac_unique_file"; then
1180  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1181  { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1182   { (exit 1); exit 1; }; }
1183fi
1184ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1185ac_abs_confdir=`(
1186	cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1187   { (exit 1); exit 1; }; }
1188	pwd)`
1189# When building in place, set srcdir=.
1190if test "$ac_abs_confdir" = "$ac_pwd"; then
1191  srcdir=.
1192fi
1193# Remove unnecessary trailing slashes from srcdir.
1194# Double slashes in file names in object file debugging info
1195# mess up M-x gdb in Emacs.
1196case $srcdir in
1197*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1198esac
1199for ac_var in $ac_precious_vars; do
1200  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1201  eval ac_env_${ac_var}_value=\$${ac_var}
1202  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1203  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1204done
1205
1206#
1207# Report the --help message.
1208#
1209if test "$ac_init_help" = "long"; then
1210  # Omit some internal or obsolete options to make the list less imposing.
1211  # This message is too long to be a string in the A/UX 3.1 sh.
1212  cat <<_ACEOF
1213\`configure' configures this package to adapt to many kinds of systems.
1214
1215Usage: $0 [OPTION]... [VAR=VALUE]...
1216
1217To assign environment variables (e.g., CC, CFLAGS...), specify them as
1218VAR=VALUE.  See below for descriptions of some of the useful variables.
1219
1220Defaults for the options are specified in brackets.
1221
1222Configuration:
1223  -h, --help              display this help and exit
1224      --help=short        display options specific to this package
1225      --help=recursive    display the short help of all the included packages
1226  -V, --version           display version information and exit
1227  -q, --quiet, --silent   do not print \`checking...' messages
1228      --cache-file=FILE   cache test results in FILE [disabled]
1229  -C, --config-cache      alias for \`--cache-file=config.cache'
1230  -n, --no-create         do not create output files
1231      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1232
1233Installation directories:
1234  --prefix=PREFIX         install architecture-independent files in PREFIX
1235			  [$ac_default_prefix]
1236  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1237			  [PREFIX]
1238
1239By default, \`make install' will install all the files in
1240\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1241an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1242for instance \`--prefix=\$HOME'.
1243
1244For better control, use the options below.
1245
1246Fine tuning of the installation directories:
1247  --bindir=DIR           user executables [EPREFIX/bin]
1248  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1249  --libexecdir=DIR       program executables [EPREFIX/libexec]
1250  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1251  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1252  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1253  --libdir=DIR           object code libraries [EPREFIX/lib]
1254  --includedir=DIR       C header files [PREFIX/include]
1255  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1256  --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1257  --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1258  --infodir=DIR          info documentation [DATAROOTDIR/info]
1259  --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1260  --mandir=DIR           man documentation [DATAROOTDIR/man]
1261  --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
1262  --htmldir=DIR          html documentation [DOCDIR]
1263  --dvidir=DIR           dvi documentation [DOCDIR]
1264  --pdfdir=DIR           pdf documentation [DOCDIR]
1265  --psdir=DIR            ps documentation [DOCDIR]
1266_ACEOF
1267
1268  cat <<\_ACEOF
1269
1270System types:
1271  --build=BUILD     configure for building on BUILD [guessed]
1272  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1273  --target=TARGET   configure for building compilers for TARGET [HOST]
1274_ACEOF
1275fi
1276
1277if test -n "$ac_init_help"; then
1278
1279  cat <<\_ACEOF
1280
1281Optional Features:
1282  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1283  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1284  --disable-largefile     omit support for large files
1285  --disable-protochain    disable \"protochain\" insn
1286  --enable-ipv6           build IPv6-capable version [default=yes, if getaddrinfo available]
1287  --enable-optimizer-dbg  build optimizer debugging code
1288  --enable-yydebug        build parser debugging code
1289
1290Optional Packages:
1291  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1292  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1293  --without-gcc           don't use gcc
1294  --with-sita             include SITA support
1295  --with-pcap=TYPE        use packet capture TYPE
1296  --with-dag[=DIR]        include Endace DAG support ("yes", "no" or DIR; default="yes" on BSD and Linux if present)
1297  --with-dag-includes=DIR   Endace DAG include directory
1298  --with-dag-libraries=DIR  Endace DAG library directory
1299  --with-septel[=DIR]     include Septel support (located in directory DIR, if supplied).  default=yes, on Linux, if present
1300  --without-flex          don't use flex
1301  --without-bison         don't use bison
1302
1303Some influential environment variables:
1304  CC          C compiler command
1305  CFLAGS      C compiler flags
1306  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1307              nonstandard directory <lib dir>
1308  LIBS        libraries to pass to the linker, e.g. -l<library>
1309  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1310              you have headers in a nonstandard directory <include dir>
1311  CPP         C preprocessor
1312
1313Use these variables to override the choices made by `configure' or to help
1314it to find libraries and programs with nonstandard names/locations.
1315
1316_ACEOF
1317ac_status=$?
1318fi
1319
1320if test "$ac_init_help" = "recursive"; then
1321  # If there are subdirs, report their specific --help.
1322  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1323    test -d "$ac_dir" || continue
1324    ac_builddir=.
1325
1326case "$ac_dir" in
1327.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1328*)
1329  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1330  # A ".." for each directory in $ac_dir_suffix.
1331  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1332  case $ac_top_builddir_sub in
1333  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1334  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1335  esac ;;
1336esac
1337ac_abs_top_builddir=$ac_pwd
1338ac_abs_builddir=$ac_pwd$ac_dir_suffix
1339# for backward compatibility:
1340ac_top_builddir=$ac_top_build_prefix
1341
1342case $srcdir in
1343  .)  # We are building in place.
1344    ac_srcdir=.
1345    ac_top_srcdir=$ac_top_builddir_sub
1346    ac_abs_top_srcdir=$ac_pwd ;;
1347  [\\/]* | ?:[\\/]* )  # Absolute name.
1348    ac_srcdir=$srcdir$ac_dir_suffix;
1349    ac_top_srcdir=$srcdir
1350    ac_abs_top_srcdir=$srcdir ;;
1351  *) # Relative name.
1352    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1353    ac_top_srcdir=$ac_top_build_prefix$srcdir
1354    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1355esac
1356ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1357
1358    cd "$ac_dir" || { ac_status=$?; continue; }
1359    # Check for guested configure.
1360    if test -f "$ac_srcdir/configure.gnu"; then
1361      echo &&
1362      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1363    elif test -f "$ac_srcdir/configure"; then
1364      echo &&
1365      $SHELL "$ac_srcdir/configure" --help=recursive
1366    else
1367      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1368    fi || ac_status=$?
1369    cd "$ac_pwd" || { ac_status=$?; break; }
1370  done
1371fi
1372
1373test -n "$ac_init_help" && exit $ac_status
1374if $ac_init_version; then
1375  cat <<\_ACEOF
1376configure
1377generated by GNU Autoconf 2.61
1378
1379Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
13802002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1381This configure script is free software; the Free Software Foundation
1382gives unlimited permission to copy, distribute and modify it.
1383_ACEOF
1384  exit
1385fi
1386cat >config.log <<_ACEOF
1387This file contains any messages produced by compilers while
1388running configure, to aid debugging if configure makes a mistake.
1389
1390It was created by $as_me, which was
1391generated by GNU Autoconf 2.61.  Invocation command line was
1392
1393  $ $0 $@
1394
1395_ACEOF
1396exec 5>>config.log
1397{
1398cat <<_ASUNAME
1399## --------- ##
1400## Platform. ##
1401## --------- ##
1402
1403hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1404uname -m = `(uname -m) 2>/dev/null || echo unknown`
1405uname -r = `(uname -r) 2>/dev/null || echo unknown`
1406uname -s = `(uname -s) 2>/dev/null || echo unknown`
1407uname -v = `(uname -v) 2>/dev/null || echo unknown`
1408
1409/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1410/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1411
1412/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1413/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1414/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1415/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1416/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1417/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1418/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1419
1420_ASUNAME
1421
1422as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1423for as_dir in $PATH
1424do
1425  IFS=$as_save_IFS
1426  test -z "$as_dir" && as_dir=.
1427  echo "PATH: $as_dir"
1428done
1429IFS=$as_save_IFS
1430
1431} >&5
1432
1433cat >&5 <<_ACEOF
1434
1435
1436## ----------- ##
1437## Core tests. ##
1438## ----------- ##
1439
1440_ACEOF
1441
1442
1443# Keep a trace of the command line.
1444# Strip out --no-create and --no-recursion so they do not pile up.
1445# Strip out --silent because we don't want to record it for future runs.
1446# Also quote any args containing shell meta-characters.
1447# Make two passes to allow for proper duplicate-argument suppression.
1448ac_configure_args=
1449ac_configure_args0=
1450ac_configure_args1=
1451ac_must_keep_next=false
1452for ac_pass in 1 2
1453do
1454  for ac_arg
1455  do
1456    case $ac_arg in
1457    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1458    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1459    | -silent | --silent | --silen | --sile | --sil)
1460      continue ;;
1461    *\'*)
1462      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1463    esac
1464    case $ac_pass in
1465    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1466    2)
1467      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1468      if test $ac_must_keep_next = true; then
1469	ac_must_keep_next=false # Got value, back to normal.
1470      else
1471	case $ac_arg in
1472	  *=* | --config-cache | -C | -disable-* | --disable-* \
1473	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1474	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1475	  | -with-* | --with-* | -without-* | --without-* | --x)
1476	    case "$ac_configure_args0 " in
1477	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1478	    esac
1479	    ;;
1480	  -* ) ac_must_keep_next=true ;;
1481	esac
1482      fi
1483      ac_configure_args="$ac_configure_args '$ac_arg'"
1484      ;;
1485    esac
1486  done
1487done
1488$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1489$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1490
1491# When interrupted or exit'd, cleanup temporary files, and complete
1492# config.log.  We remove comments because anyway the quotes in there
1493# would cause problems or look ugly.
1494# WARNING: Use '\'' to represent an apostrophe within the trap.
1495# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1496trap 'exit_status=$?
1497  # Save into config.log some information that might help in debugging.
1498  {
1499    echo
1500
1501    cat <<\_ASBOX
1502## ---------------- ##
1503## Cache variables. ##
1504## ---------------- ##
1505_ASBOX
1506    echo
1507    # The following way of writing the cache mishandles newlines in values,
1508(
1509  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1510    eval ac_val=\$$ac_var
1511    case $ac_val in #(
1512    *${as_nl}*)
1513      case $ac_var in #(
1514      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1515echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1516      esac
1517      case $ac_var in #(
1518      _ | IFS | as_nl) ;; #(
1519      *) $as_unset $ac_var ;;
1520      esac ;;
1521    esac
1522  done
1523  (set) 2>&1 |
1524    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1525    *${as_nl}ac_space=\ *)
1526      sed -n \
1527	"s/'\''/'\''\\\\'\'''\''/g;
1528	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1529      ;; #(
1530    *)
1531      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1532      ;;
1533    esac |
1534    sort
1535)
1536    echo
1537
1538    cat <<\_ASBOX
1539## ----------------- ##
1540## Output variables. ##
1541## ----------------- ##
1542_ASBOX
1543    echo
1544    for ac_var in $ac_subst_vars
1545    do
1546      eval ac_val=\$$ac_var
1547      case $ac_val in
1548      *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1549      esac
1550      echo "$ac_var='\''$ac_val'\''"
1551    done | sort
1552    echo
1553
1554    if test -n "$ac_subst_files"; then
1555      cat <<\_ASBOX
1556## ------------------- ##
1557## File substitutions. ##
1558## ------------------- ##
1559_ASBOX
1560      echo
1561      for ac_var in $ac_subst_files
1562      do
1563	eval ac_val=\$$ac_var
1564	case $ac_val in
1565	*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1566	esac
1567	echo "$ac_var='\''$ac_val'\''"
1568      done | sort
1569      echo
1570    fi
1571
1572    if test -s confdefs.h; then
1573      cat <<\_ASBOX
1574## ----------- ##
1575## confdefs.h. ##
1576## ----------- ##
1577_ASBOX
1578      echo
1579      cat confdefs.h
1580      echo
1581    fi
1582    test "$ac_signal" != 0 &&
1583      echo "$as_me: caught signal $ac_signal"
1584    echo "$as_me: exit $exit_status"
1585  } >&5
1586  rm -f core *.core core.conftest.* &&
1587    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1588    exit $exit_status
1589' 0
1590for ac_signal in 1 2 13 15; do
1591  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1592done
1593ac_signal=0
1594
1595# confdefs.h avoids OS command line length limits that DEFS can exceed.
1596rm -f -r conftest* confdefs.h
1597
1598# Predefined preprocessor variables.
1599
1600cat >>confdefs.h <<_ACEOF
1601#define PACKAGE_NAME "$PACKAGE_NAME"
1602_ACEOF
1603
1604
1605cat >>confdefs.h <<_ACEOF
1606#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1607_ACEOF
1608
1609
1610cat >>confdefs.h <<_ACEOF
1611#define PACKAGE_VERSION "$PACKAGE_VERSION"
1612_ACEOF
1613
1614
1615cat >>confdefs.h <<_ACEOF
1616#define PACKAGE_STRING "$PACKAGE_STRING"
1617_ACEOF
1618
1619
1620cat >>confdefs.h <<_ACEOF
1621#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1622_ACEOF
1623
1624
1625# Let the site file select an alternate cache file if it wants to.
1626# Prefer explicitly selected file to automatically selected ones.
1627if test -n "$CONFIG_SITE"; then
1628  set x "$CONFIG_SITE"
1629elif test "x$prefix" != xNONE; then
1630  set x "$prefix/share/config.site" "$prefix/etc/config.site"
1631else
1632  set x "$ac_default_prefix/share/config.site" \
1633	"$ac_default_prefix/etc/config.site"
1634fi
1635shift
1636for ac_site_file
1637do
1638  if test -r "$ac_site_file"; then
1639    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1640echo "$as_me: loading site script $ac_site_file" >&6;}
1641    sed 's/^/| /' "$ac_site_file" >&5
1642    . "$ac_site_file"
1643  fi
1644done
1645
1646if test -r "$cache_file"; then
1647  # Some versions of bash will fail to source /dev/null (special
1648  # files actually), so we avoid doing that.
1649  if test -f "$cache_file"; then
1650    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1651echo "$as_me: loading cache $cache_file" >&6;}
1652    case $cache_file in
1653      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1654      *)                      . "./$cache_file";;
1655    esac
1656  fi
1657else
1658  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1659echo "$as_me: creating cache $cache_file" >&6;}
1660  >$cache_file
1661fi
1662
1663# Check that the precious variables saved in the cache have kept the same
1664# value.
1665ac_cache_corrupted=false
1666for ac_var in $ac_precious_vars; do
1667  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1668  eval ac_new_set=\$ac_env_${ac_var}_set
1669  eval ac_old_val=\$ac_cv_env_${ac_var}_value
1670  eval ac_new_val=\$ac_env_${ac_var}_value
1671  case $ac_old_set,$ac_new_set in
1672    set,)
1673      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1674echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1675      ac_cache_corrupted=: ;;
1676    ,set)
1677      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1678echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1679      ac_cache_corrupted=: ;;
1680    ,);;
1681    *)
1682      if test "x$ac_old_val" != "x$ac_new_val"; then
1683	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1684echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1685	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1686echo "$as_me:   former value:  $ac_old_val" >&2;}
1687	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1688echo "$as_me:   current value: $ac_new_val" >&2;}
1689	ac_cache_corrupted=:
1690      fi;;
1691  esac
1692  # Pass precious variables to config.status.
1693  if test "$ac_new_set" = set; then
1694    case $ac_new_val in
1695    *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1696    *) ac_arg=$ac_var=$ac_new_val ;;
1697    esac
1698    case " $ac_configure_args " in
1699      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1700      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1701    esac
1702  fi
1703done
1704if $ac_cache_corrupted; then
1705  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1706echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1707  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1708echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1709   { (exit 1); exit 1; }; }
1710fi
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728ac_ext=c
1729ac_cpp='$CPP $CPPFLAGS'
1730ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1731ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1732ac_compiler_gnu=$ac_cv_c_compiler_gnu
1733
1734
1735
1736ac_aux_dir=
1737for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1738  if test -f "$ac_dir/install-sh"; then
1739    ac_aux_dir=$ac_dir
1740    ac_install_sh="$ac_aux_dir/install-sh -c"
1741    break
1742  elif test -f "$ac_dir/install.sh"; then
1743    ac_aux_dir=$ac_dir
1744    ac_install_sh="$ac_aux_dir/install.sh -c"
1745    break
1746  elif test -f "$ac_dir/shtool"; then
1747    ac_aux_dir=$ac_dir
1748    ac_install_sh="$ac_aux_dir/shtool install -c"
1749    break
1750  fi
1751done
1752if test -z "$ac_aux_dir"; then
1753  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1754echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1755   { (exit 1); exit 1; }; }
1756fi
1757
1758# These three variables are undocumented and unsupported,
1759# and are intended to be withdrawn in a future Autoconf release.
1760# They can cause serious problems if a builder's source tree is in a directory
1761# whose full name contains unusual characters.
1762ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1763ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1764ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1765
1766
1767# Make sure we can run config.sub.
1768$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1769  { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1770echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1771   { (exit 1); exit 1; }; }
1772
1773{ echo "$as_me:$LINENO: checking build system type" >&5
1774echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1775if test "${ac_cv_build+set}" = set; then
1776  echo $ECHO_N "(cached) $ECHO_C" >&6
1777else
1778  ac_build_alias=$build_alias
1779test "x$ac_build_alias" = x &&
1780  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1781test "x$ac_build_alias" = x &&
1782  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1783echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1784   { (exit 1); exit 1; }; }
1785ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1786  { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1787echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1788   { (exit 1); exit 1; }; }
1789
1790fi
1791{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1792echo "${ECHO_T}$ac_cv_build" >&6; }
1793case $ac_cv_build in
1794*-*-*) ;;
1795*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1796echo "$as_me: error: invalid value of canonical build" >&2;}
1797   { (exit 1); exit 1; }; };;
1798esac
1799build=$ac_cv_build
1800ac_save_IFS=$IFS; IFS='-'
1801set x $ac_cv_build
1802shift
1803build_cpu=$1
1804build_vendor=$2
1805shift; shift
1806# Remember, the first character of IFS is used to create $*,
1807# except with old shells:
1808build_os=$*
1809IFS=$ac_save_IFS
1810case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1811
1812
1813{ echo "$as_me:$LINENO: checking host system type" >&5
1814echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1815if test "${ac_cv_host+set}" = set; then
1816  echo $ECHO_N "(cached) $ECHO_C" >&6
1817else
1818  if test "x$host_alias" = x; then
1819  ac_cv_host=$ac_cv_build
1820else
1821  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1822    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1823echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1824   { (exit 1); exit 1; }; }
1825fi
1826
1827fi
1828{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1829echo "${ECHO_T}$ac_cv_host" >&6; }
1830case $ac_cv_host in
1831*-*-*) ;;
1832*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1833echo "$as_me: error: invalid value of canonical host" >&2;}
1834   { (exit 1); exit 1; }; };;
1835esac
1836host=$ac_cv_host
1837ac_save_IFS=$IFS; IFS='-'
1838set x $ac_cv_host
1839shift
1840host_cpu=$1
1841host_vendor=$2
1842shift; shift
1843# Remember, the first character of IFS is used to create $*,
1844# except with old shells:
1845host_os=$*
1846IFS=$ac_save_IFS
1847case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1848
1849
1850{ echo "$as_me:$LINENO: checking target system type" >&5
1851echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
1852if test "${ac_cv_target+set}" = set; then
1853  echo $ECHO_N "(cached) $ECHO_C" >&6
1854else
1855  if test "x$target_alias" = x; then
1856  ac_cv_target=$ac_cv_host
1857else
1858  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
1859    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
1860echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
1861   { (exit 1); exit 1; }; }
1862fi
1863
1864fi
1865{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1866echo "${ECHO_T}$ac_cv_target" >&6; }
1867case $ac_cv_target in
1868*-*-*) ;;
1869*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
1870echo "$as_me: error: invalid value of canonical target" >&2;}
1871   { (exit 1); exit 1; }; };;
1872esac
1873target=$ac_cv_target
1874ac_save_IFS=$IFS; IFS='-'
1875set x $ac_cv_target
1876shift
1877target_cpu=$1
1878target_vendor=$2
1879shift; shift
1880# Remember, the first character of IFS is used to create $*,
1881# except with old shells:
1882target_os=$*
1883IFS=$ac_save_IFS
1884case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
1885
1886
1887# The aliases save the names the user supplied, while $host etc.
1888# will get canonicalized.
1889test -n "$target_alias" &&
1890  test "$program_prefix$program_suffix$program_transform_name" = \
1891    NONENONEs,x,x, &&
1892  program_prefix=${target_alias}-
1893
1894
1895
1896
1897
1898
1899# Check whether --with-gcc was given.
1900if test "${with_gcc+set}" = set; then
1901  withval=$with_gcc;
1902fi
1903
1904    V_CCOPT="-O"
1905    V_INCLS=""
1906    if test "${srcdir}" != "." ; then
1907	    V_INCLS="-I\$(srcdir)"
1908    fi
1909    if test "${CFLAGS+set}" = set; then
1910	    LBL_CFLAGS="$CFLAGS"
1911    fi
1912    if test -z "$CC" ; then
1913	    case "$host_os" in
1914
1915	    bsdi*)
1916		    # Extract the first word of "shlicc2", so it can be a program name with args.
1917set dummy shlicc2; ac_word=$2
1918{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1919echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1920if test "${ac_cv_prog_SHLICC2+set}" = set; then
1921  echo $ECHO_N "(cached) $ECHO_C" >&6
1922else
1923  if test -n "$SHLICC2"; then
1924  ac_cv_prog_SHLICC2="$SHLICC2" # Let the user override the test.
1925else
1926as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1927for as_dir in $PATH
1928do
1929  IFS=$as_save_IFS
1930  test -z "$as_dir" && as_dir=.
1931  for ac_exec_ext in '' $ac_executable_extensions; do
1932  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1933    ac_cv_prog_SHLICC2="yes"
1934    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1935    break 2
1936  fi
1937done
1938done
1939IFS=$as_save_IFS
1940
1941  test -z "$ac_cv_prog_SHLICC2" && ac_cv_prog_SHLICC2="no"
1942fi
1943fi
1944SHLICC2=$ac_cv_prog_SHLICC2
1945if test -n "$SHLICC2"; then
1946  { echo "$as_me:$LINENO: result: $SHLICC2" >&5
1947echo "${ECHO_T}$SHLICC2" >&6; }
1948else
1949  { echo "$as_me:$LINENO: result: no" >&5
1950echo "${ECHO_T}no" >&6; }
1951fi
1952
1953
1954		    if test $SHLICC2 = yes ; then
1955			    CC=shlicc2
1956			    export CC
1957		    fi
1958		    ;;
1959	    esac
1960    fi
1961    if test -z "$CC" -a "$with_gcc" = no ; then
1962	    CC=cc
1963	    export CC
1964    fi
1965    ac_ext=c
1966ac_cpp='$CPP $CPPFLAGS'
1967ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1968ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1969ac_compiler_gnu=$ac_cv_c_compiler_gnu
1970if test -n "$ac_tool_prefix"; then
1971  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1972set dummy ${ac_tool_prefix}gcc; ac_word=$2
1973{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1974echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1975if test "${ac_cv_prog_CC+set}" = set; then
1976  echo $ECHO_N "(cached) $ECHO_C" >&6
1977else
1978  if test -n "$CC"; then
1979  ac_cv_prog_CC="$CC" # Let the user override the test.
1980else
1981as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1982for as_dir in $PATH
1983do
1984  IFS=$as_save_IFS
1985  test -z "$as_dir" && as_dir=.
1986  for ac_exec_ext in '' $ac_executable_extensions; do
1987  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1988    ac_cv_prog_CC="${ac_tool_prefix}gcc"
1989    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1990    break 2
1991  fi
1992done
1993done
1994IFS=$as_save_IFS
1995
1996fi
1997fi
1998CC=$ac_cv_prog_CC
1999if test -n "$CC"; then
2000  { echo "$as_me:$LINENO: result: $CC" >&5
2001echo "${ECHO_T}$CC" >&6; }
2002else
2003  { echo "$as_me:$LINENO: result: no" >&5
2004echo "${ECHO_T}no" >&6; }
2005fi
2006
2007
2008fi
2009if test -z "$ac_cv_prog_CC"; then
2010  ac_ct_CC=$CC
2011  # Extract the first word of "gcc", so it can be a program name with args.
2012set dummy gcc; ac_word=$2
2013{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2014echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2015if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2016  echo $ECHO_N "(cached) $ECHO_C" >&6
2017else
2018  if test -n "$ac_ct_CC"; then
2019  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2020else
2021as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2022for as_dir in $PATH
2023do
2024  IFS=$as_save_IFS
2025  test -z "$as_dir" && as_dir=.
2026  for ac_exec_ext in '' $ac_executable_extensions; do
2027  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2028    ac_cv_prog_ac_ct_CC="gcc"
2029    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2030    break 2
2031  fi
2032done
2033done
2034IFS=$as_save_IFS
2035
2036fi
2037fi
2038ac_ct_CC=$ac_cv_prog_ac_ct_CC
2039if test -n "$ac_ct_CC"; then
2040  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2041echo "${ECHO_T}$ac_ct_CC" >&6; }
2042else
2043  { echo "$as_me:$LINENO: result: no" >&5
2044echo "${ECHO_T}no" >&6; }
2045fi
2046
2047  if test "x$ac_ct_CC" = x; then
2048    CC=""
2049  else
2050    case $cross_compiling:$ac_tool_warned in
2051yes:)
2052{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2053whose name does not start with the host triplet.  If you think this
2054configuration is useful to you, please write to autoconf@gnu.org." >&5
2055echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2056whose name does not start with the host triplet.  If you think this
2057configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2058ac_tool_warned=yes ;;
2059esac
2060    CC=$ac_ct_CC
2061  fi
2062else
2063  CC="$ac_cv_prog_CC"
2064fi
2065
2066if test -z "$CC"; then
2067          if test -n "$ac_tool_prefix"; then
2068    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2069set dummy ${ac_tool_prefix}cc; ac_word=$2
2070{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2071echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2072if test "${ac_cv_prog_CC+set}" = set; then
2073  echo $ECHO_N "(cached) $ECHO_C" >&6
2074else
2075  if test -n "$CC"; then
2076  ac_cv_prog_CC="$CC" # Let the user override the test.
2077else
2078as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2079for as_dir in $PATH
2080do
2081  IFS=$as_save_IFS
2082  test -z "$as_dir" && as_dir=.
2083  for ac_exec_ext in '' $ac_executable_extensions; do
2084  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2085    ac_cv_prog_CC="${ac_tool_prefix}cc"
2086    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2087    break 2
2088  fi
2089done
2090done
2091IFS=$as_save_IFS
2092
2093fi
2094fi
2095CC=$ac_cv_prog_CC
2096if test -n "$CC"; then
2097  { echo "$as_me:$LINENO: result: $CC" >&5
2098echo "${ECHO_T}$CC" >&6; }
2099else
2100  { echo "$as_me:$LINENO: result: no" >&5
2101echo "${ECHO_T}no" >&6; }
2102fi
2103
2104
2105  fi
2106fi
2107if test -z "$CC"; then
2108  # Extract the first word of "cc", so it can be a program name with args.
2109set dummy cc; ac_word=$2
2110{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2111echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2112if test "${ac_cv_prog_CC+set}" = set; then
2113  echo $ECHO_N "(cached) $ECHO_C" >&6
2114else
2115  if test -n "$CC"; then
2116  ac_cv_prog_CC="$CC" # Let the user override the test.
2117else
2118  ac_prog_rejected=no
2119as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2120for as_dir in $PATH
2121do
2122  IFS=$as_save_IFS
2123  test -z "$as_dir" && as_dir=.
2124  for ac_exec_ext in '' $ac_executable_extensions; do
2125  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2126    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2127       ac_prog_rejected=yes
2128       continue
2129     fi
2130    ac_cv_prog_CC="cc"
2131    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2132    break 2
2133  fi
2134done
2135done
2136IFS=$as_save_IFS
2137
2138if test $ac_prog_rejected = yes; then
2139  # We found a bogon in the path, so make sure we never use it.
2140  set dummy $ac_cv_prog_CC
2141  shift
2142  if test $# != 0; then
2143    # We chose a different compiler from the bogus one.
2144    # However, it has the same basename, so the bogon will be chosen
2145    # first if we set CC to just the basename; use the full file name.
2146    shift
2147    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2148  fi
2149fi
2150fi
2151fi
2152CC=$ac_cv_prog_CC
2153if test -n "$CC"; then
2154  { echo "$as_me:$LINENO: result: $CC" >&5
2155echo "${ECHO_T}$CC" >&6; }
2156else
2157  { echo "$as_me:$LINENO: result: no" >&5
2158echo "${ECHO_T}no" >&6; }
2159fi
2160
2161
2162fi
2163if test -z "$CC"; then
2164  if test -n "$ac_tool_prefix"; then
2165  for ac_prog in cl.exe
2166  do
2167    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2168set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2169{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2170echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2171if test "${ac_cv_prog_CC+set}" = set; then
2172  echo $ECHO_N "(cached) $ECHO_C" >&6
2173else
2174  if test -n "$CC"; then
2175  ac_cv_prog_CC="$CC" # Let the user override the test.
2176else
2177as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2178for as_dir in $PATH
2179do
2180  IFS=$as_save_IFS
2181  test -z "$as_dir" && as_dir=.
2182  for ac_exec_ext in '' $ac_executable_extensions; do
2183  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2184    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2185    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2186    break 2
2187  fi
2188done
2189done
2190IFS=$as_save_IFS
2191
2192fi
2193fi
2194CC=$ac_cv_prog_CC
2195if test -n "$CC"; then
2196  { echo "$as_me:$LINENO: result: $CC" >&5
2197echo "${ECHO_T}$CC" >&6; }
2198else
2199  { echo "$as_me:$LINENO: result: no" >&5
2200echo "${ECHO_T}no" >&6; }
2201fi
2202
2203
2204    test -n "$CC" && break
2205  done
2206fi
2207if test -z "$CC"; then
2208  ac_ct_CC=$CC
2209  for ac_prog in cl.exe
2210do
2211  # Extract the first word of "$ac_prog", so it can be a program name with args.
2212set dummy $ac_prog; ac_word=$2
2213{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2214echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2215if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2216  echo $ECHO_N "(cached) $ECHO_C" >&6
2217else
2218  if test -n "$ac_ct_CC"; then
2219  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2220else
2221as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2222for as_dir in $PATH
2223do
2224  IFS=$as_save_IFS
2225  test -z "$as_dir" && as_dir=.
2226  for ac_exec_ext in '' $ac_executable_extensions; do
2227  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2228    ac_cv_prog_ac_ct_CC="$ac_prog"
2229    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2230    break 2
2231  fi
2232done
2233done
2234IFS=$as_save_IFS
2235
2236fi
2237fi
2238ac_ct_CC=$ac_cv_prog_ac_ct_CC
2239if test -n "$ac_ct_CC"; then
2240  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2241echo "${ECHO_T}$ac_ct_CC" >&6; }
2242else
2243  { echo "$as_me:$LINENO: result: no" >&5
2244echo "${ECHO_T}no" >&6; }
2245fi
2246
2247
2248  test -n "$ac_ct_CC" && break
2249done
2250
2251  if test "x$ac_ct_CC" = x; then
2252    CC=""
2253  else
2254    case $cross_compiling:$ac_tool_warned in
2255yes:)
2256{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2257whose name does not start with the host triplet.  If you think this
2258configuration is useful to you, please write to autoconf@gnu.org." >&5
2259echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2260whose name does not start with the host triplet.  If you think this
2261configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2262ac_tool_warned=yes ;;
2263esac
2264    CC=$ac_ct_CC
2265  fi
2266fi
2267
2268fi
2269
2270
2271test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2272See \`config.log' for more details." >&5
2273echo "$as_me: error: no acceptable C compiler found in \$PATH
2274See \`config.log' for more details." >&2;}
2275   { (exit 1); exit 1; }; }
2276
2277# Provide some information about the compiler.
2278echo "$as_me:$LINENO: checking for C compiler version" >&5
2279ac_compiler=`set X $ac_compile; echo $2`
2280{ (ac_try="$ac_compiler --version >&5"
2281case "(($ac_try" in
2282  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2283  *) ac_try_echo=$ac_try;;
2284esac
2285eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2286  (eval "$ac_compiler --version >&5") 2>&5
2287  ac_status=$?
2288  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2289  (exit $ac_status); }
2290{ (ac_try="$ac_compiler -v >&5"
2291case "(($ac_try" in
2292  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2293  *) ac_try_echo=$ac_try;;
2294esac
2295eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2296  (eval "$ac_compiler -v >&5") 2>&5
2297  ac_status=$?
2298  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2299  (exit $ac_status); }
2300{ (ac_try="$ac_compiler -V >&5"
2301case "(($ac_try" in
2302  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2303  *) ac_try_echo=$ac_try;;
2304esac
2305eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2306  (eval "$ac_compiler -V >&5") 2>&5
2307  ac_status=$?
2308  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2309  (exit $ac_status); }
2310
2311cat >conftest.$ac_ext <<_ACEOF
2312/* confdefs.h.  */
2313_ACEOF
2314cat confdefs.h >>conftest.$ac_ext
2315cat >>conftest.$ac_ext <<_ACEOF
2316/* end confdefs.h.  */
2317
2318int
2319main ()
2320{
2321
2322  ;
2323  return 0;
2324}
2325_ACEOF
2326ac_clean_files_save=$ac_clean_files
2327ac_clean_files="$ac_clean_files a.out a.exe b.out"
2328# Try to create an executable without -o first, disregard a.out.
2329# It will help us diagnose broken compilers, and finding out an intuition
2330# of exeext.
2331{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2332echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2333ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2334#
2335# List of possible output files, starting from the most likely.
2336# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2337# only as a last resort.  b.out is created by i960 compilers.
2338ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2339#
2340# The IRIX 6 linker writes into existing files which may not be
2341# executable, retaining their permissions.  Remove them first so a
2342# subsequent execution test works.
2343ac_rmfiles=
2344for ac_file in $ac_files
2345do
2346  case $ac_file in
2347    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2348    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2349  esac
2350done
2351rm -f $ac_rmfiles
2352
2353if { (ac_try="$ac_link_default"
2354case "(($ac_try" in
2355  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2356  *) ac_try_echo=$ac_try;;
2357esac
2358eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2359  (eval "$ac_link_default") 2>&5
2360  ac_status=$?
2361  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2362  (exit $ac_status); }; then
2363  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2364# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2365# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2366# so that the user can short-circuit this test for compilers unknown to
2367# Autoconf.
2368for ac_file in $ac_files ''
2369do
2370  test -f "$ac_file" || continue
2371  case $ac_file in
2372    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2373	;;
2374    [ab].out )
2375	# We found the default executable, but exeext='' is most
2376	# certainly right.
2377	break;;
2378    *.* )
2379        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2380	then :; else
2381	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2382	fi
2383	# We set ac_cv_exeext here because the later test for it is not
2384	# safe: cross compilers may not add the suffix if given an `-o'
2385	# argument, so we may need to know it at that point already.
2386	# Even if this section looks crufty: it has the advantage of
2387	# actually working.
2388	break;;
2389    * )
2390	break;;
2391  esac
2392done
2393test "$ac_cv_exeext" = no && ac_cv_exeext=
2394
2395else
2396  ac_file=''
2397fi
2398
2399{ echo "$as_me:$LINENO: result: $ac_file" >&5
2400echo "${ECHO_T}$ac_file" >&6; }
2401if test -z "$ac_file"; then
2402  echo "$as_me: failed program was:" >&5
2403sed 's/^/| /' conftest.$ac_ext >&5
2404
2405{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2406See \`config.log' for more details." >&5
2407echo "$as_me: error: C compiler cannot create executables
2408See \`config.log' for more details." >&2;}
2409   { (exit 77); exit 77; }; }
2410fi
2411
2412ac_exeext=$ac_cv_exeext
2413
2414# Check that the compiler produces executables we can run.  If not, either
2415# the compiler is broken, or we cross compile.
2416{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2417echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2418# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2419# If not cross compiling, check that we can run a simple program.
2420if test "$cross_compiling" != yes; then
2421  if { ac_try='./$ac_file'
2422  { (case "(($ac_try" in
2423  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2424  *) ac_try_echo=$ac_try;;
2425esac
2426eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2427  (eval "$ac_try") 2>&5
2428  ac_status=$?
2429  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2430  (exit $ac_status); }; }; then
2431    cross_compiling=no
2432  else
2433    if test "$cross_compiling" = maybe; then
2434	cross_compiling=yes
2435    else
2436	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2437If you meant to cross compile, use \`--host'.
2438See \`config.log' for more details." >&5
2439echo "$as_me: error: cannot run C compiled programs.
2440If you meant to cross compile, use \`--host'.
2441See \`config.log' for more details." >&2;}
2442   { (exit 1); exit 1; }; }
2443    fi
2444  fi
2445fi
2446{ echo "$as_me:$LINENO: result: yes" >&5
2447echo "${ECHO_T}yes" >&6; }
2448
2449rm -f a.out a.exe conftest$ac_cv_exeext b.out
2450ac_clean_files=$ac_clean_files_save
2451# Check that the compiler produces executables we can run.  If not, either
2452# the compiler is broken, or we cross compile.
2453{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2454echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2455{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2456echo "${ECHO_T}$cross_compiling" >&6; }
2457
2458{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2459echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2460if { (ac_try="$ac_link"
2461case "(($ac_try" in
2462  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2463  *) ac_try_echo=$ac_try;;
2464esac
2465eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2466  (eval "$ac_link") 2>&5
2467  ac_status=$?
2468  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2469  (exit $ac_status); }; then
2470  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2471# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2472# work properly (i.e., refer to `conftest.exe'), while it won't with
2473# `rm'.
2474for ac_file in conftest.exe conftest conftest.*; do
2475  test -f "$ac_file" || continue
2476  case $ac_file in
2477    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2478    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2479	  break;;
2480    * ) break;;
2481  esac
2482done
2483else
2484  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2485See \`config.log' for more details." >&5
2486echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2487See \`config.log' for more details." >&2;}
2488   { (exit 1); exit 1; }; }
2489fi
2490
2491rm -f conftest$ac_cv_exeext
2492{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2493echo "${ECHO_T}$ac_cv_exeext" >&6; }
2494
2495rm -f conftest.$ac_ext
2496EXEEXT=$ac_cv_exeext
2497ac_exeext=$EXEEXT
2498{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2499echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2500if test "${ac_cv_objext+set}" = set; then
2501  echo $ECHO_N "(cached) $ECHO_C" >&6
2502else
2503  cat >conftest.$ac_ext <<_ACEOF
2504/* confdefs.h.  */
2505_ACEOF
2506cat confdefs.h >>conftest.$ac_ext
2507cat >>conftest.$ac_ext <<_ACEOF
2508/* end confdefs.h.  */
2509
2510int
2511main ()
2512{
2513
2514  ;
2515  return 0;
2516}
2517_ACEOF
2518rm -f conftest.o conftest.obj
2519if { (ac_try="$ac_compile"
2520case "(($ac_try" in
2521  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2522  *) ac_try_echo=$ac_try;;
2523esac
2524eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2525  (eval "$ac_compile") 2>&5
2526  ac_status=$?
2527  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2528  (exit $ac_status); }; then
2529  for ac_file in conftest.o conftest.obj conftest.*; do
2530  test -f "$ac_file" || continue;
2531  case $ac_file in
2532    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2533    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2534       break;;
2535  esac
2536done
2537else
2538  echo "$as_me: failed program was:" >&5
2539sed 's/^/| /' conftest.$ac_ext >&5
2540
2541{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2542See \`config.log' for more details." >&5
2543echo "$as_me: error: cannot compute suffix of object files: cannot compile
2544See \`config.log' for more details." >&2;}
2545   { (exit 1); exit 1; }; }
2546fi
2547
2548rm -f conftest.$ac_cv_objext conftest.$ac_ext
2549fi
2550{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2551echo "${ECHO_T}$ac_cv_objext" >&6; }
2552OBJEXT=$ac_cv_objext
2553ac_objext=$OBJEXT
2554{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2555echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2556if test "${ac_cv_c_compiler_gnu+set}" = set; then
2557  echo $ECHO_N "(cached) $ECHO_C" >&6
2558else
2559  cat >conftest.$ac_ext <<_ACEOF
2560/* confdefs.h.  */
2561_ACEOF
2562cat confdefs.h >>conftest.$ac_ext
2563cat >>conftest.$ac_ext <<_ACEOF
2564/* end confdefs.h.  */
2565
2566int
2567main ()
2568{
2569#ifndef __GNUC__
2570       choke me
2571#endif
2572
2573  ;
2574  return 0;
2575}
2576_ACEOF
2577rm -f conftest.$ac_objext
2578if { (ac_try="$ac_compile"
2579case "(($ac_try" in
2580  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2581  *) ac_try_echo=$ac_try;;
2582esac
2583eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2584  (eval "$ac_compile") 2>conftest.er1
2585  ac_status=$?
2586  grep -v '^ *+' conftest.er1 >conftest.err
2587  rm -f conftest.er1
2588  cat conftest.err >&5
2589  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2590  (exit $ac_status); } && {
2591	 test -z "$ac_c_werror_flag" ||
2592	 test ! -s conftest.err
2593       } && test -s conftest.$ac_objext; then
2594  ac_compiler_gnu=yes
2595else
2596  echo "$as_me: failed program was:" >&5
2597sed 's/^/| /' conftest.$ac_ext >&5
2598
2599	ac_compiler_gnu=no
2600fi
2601
2602rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2603ac_cv_c_compiler_gnu=$ac_compiler_gnu
2604
2605fi
2606{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2607echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2608GCC=`test $ac_compiler_gnu = yes && echo yes`
2609ac_test_CFLAGS=${CFLAGS+set}
2610ac_save_CFLAGS=$CFLAGS
2611{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2612echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2613if test "${ac_cv_prog_cc_g+set}" = set; then
2614  echo $ECHO_N "(cached) $ECHO_C" >&6
2615else
2616  ac_save_c_werror_flag=$ac_c_werror_flag
2617   ac_c_werror_flag=yes
2618   ac_cv_prog_cc_g=no
2619   CFLAGS="-g"
2620   cat >conftest.$ac_ext <<_ACEOF
2621/* confdefs.h.  */
2622_ACEOF
2623cat confdefs.h >>conftest.$ac_ext
2624cat >>conftest.$ac_ext <<_ACEOF
2625/* end confdefs.h.  */
2626
2627int
2628main ()
2629{
2630
2631  ;
2632  return 0;
2633}
2634_ACEOF
2635rm -f conftest.$ac_objext
2636if { (ac_try="$ac_compile"
2637case "(($ac_try" in
2638  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2639  *) ac_try_echo=$ac_try;;
2640esac
2641eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2642  (eval "$ac_compile") 2>conftest.er1
2643  ac_status=$?
2644  grep -v '^ *+' conftest.er1 >conftest.err
2645  rm -f conftest.er1
2646  cat conftest.err >&5
2647  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2648  (exit $ac_status); } && {
2649	 test -z "$ac_c_werror_flag" ||
2650	 test ! -s conftest.err
2651       } && test -s conftest.$ac_objext; then
2652  ac_cv_prog_cc_g=yes
2653else
2654  echo "$as_me: failed program was:" >&5
2655sed 's/^/| /' conftest.$ac_ext >&5
2656
2657	CFLAGS=""
2658      cat >conftest.$ac_ext <<_ACEOF
2659/* confdefs.h.  */
2660_ACEOF
2661cat confdefs.h >>conftest.$ac_ext
2662cat >>conftest.$ac_ext <<_ACEOF
2663/* end confdefs.h.  */
2664
2665int
2666main ()
2667{
2668
2669  ;
2670  return 0;
2671}
2672_ACEOF
2673rm -f conftest.$ac_objext
2674if { (ac_try="$ac_compile"
2675case "(($ac_try" in
2676  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2677  *) ac_try_echo=$ac_try;;
2678esac
2679eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2680  (eval "$ac_compile") 2>conftest.er1
2681  ac_status=$?
2682  grep -v '^ *+' conftest.er1 >conftest.err
2683  rm -f conftest.er1
2684  cat conftest.err >&5
2685  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2686  (exit $ac_status); } && {
2687	 test -z "$ac_c_werror_flag" ||
2688	 test ! -s conftest.err
2689       } && test -s conftest.$ac_objext; then
2690  :
2691else
2692  echo "$as_me: failed program was:" >&5
2693sed 's/^/| /' conftest.$ac_ext >&5
2694
2695	ac_c_werror_flag=$ac_save_c_werror_flag
2696	 CFLAGS="-g"
2697	 cat >conftest.$ac_ext <<_ACEOF
2698/* confdefs.h.  */
2699_ACEOF
2700cat confdefs.h >>conftest.$ac_ext
2701cat >>conftest.$ac_ext <<_ACEOF
2702/* end confdefs.h.  */
2703
2704int
2705main ()
2706{
2707
2708  ;
2709  return 0;
2710}
2711_ACEOF
2712rm -f conftest.$ac_objext
2713if { (ac_try="$ac_compile"
2714case "(($ac_try" in
2715  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2716  *) ac_try_echo=$ac_try;;
2717esac
2718eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2719  (eval "$ac_compile") 2>conftest.er1
2720  ac_status=$?
2721  grep -v '^ *+' conftest.er1 >conftest.err
2722  rm -f conftest.er1
2723  cat conftest.err >&5
2724  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2725  (exit $ac_status); } && {
2726	 test -z "$ac_c_werror_flag" ||
2727	 test ! -s conftest.err
2728       } && test -s conftest.$ac_objext; then
2729  ac_cv_prog_cc_g=yes
2730else
2731  echo "$as_me: failed program was:" >&5
2732sed 's/^/| /' conftest.$ac_ext >&5
2733
2734
2735fi
2736
2737rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2738fi
2739
2740rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2741fi
2742
2743rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2744   ac_c_werror_flag=$ac_save_c_werror_flag
2745fi
2746{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2747echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2748if test "$ac_test_CFLAGS" = set; then
2749  CFLAGS=$ac_save_CFLAGS
2750elif test $ac_cv_prog_cc_g = yes; then
2751  if test "$GCC" = yes; then
2752    CFLAGS="-g -O2"
2753  else
2754    CFLAGS="-g"
2755  fi
2756else
2757  if test "$GCC" = yes; then
2758    CFLAGS="-O2"
2759  else
2760    CFLAGS=
2761  fi
2762fi
2763{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2764echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2765if test "${ac_cv_prog_cc_c89+set}" = set; then
2766  echo $ECHO_N "(cached) $ECHO_C" >&6
2767else
2768  ac_cv_prog_cc_c89=no
2769ac_save_CC=$CC
2770cat >conftest.$ac_ext <<_ACEOF
2771/* confdefs.h.  */
2772_ACEOF
2773cat confdefs.h >>conftest.$ac_ext
2774cat >>conftest.$ac_ext <<_ACEOF
2775/* end confdefs.h.  */
2776#include <stdarg.h>
2777#include <stdio.h>
2778#include <sys/types.h>
2779#include <sys/stat.h>
2780/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2781struct buf { int x; };
2782FILE * (*rcsopen) (struct buf *, struct stat *, int);
2783static char *e (p, i)
2784     char **p;
2785     int i;
2786{
2787  return p[i];
2788}
2789static char *f (char * (*g) (char **, int), char **p, ...)
2790{
2791  char *s;
2792  va_list v;
2793  va_start (v,p);
2794  s = g (p, va_arg (v,int));
2795  va_end (v);
2796  return s;
2797}
2798
2799/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2800   function prototypes and stuff, but not '\xHH' hex character constants.
2801   These don't provoke an error unfortunately, instead are silently treated
2802   as 'x'.  The following induces an error, until -std is added to get
2803   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2804   array size at least.  It's necessary to write '\x00'==0 to get something
2805   that's true only with -std.  */
2806int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2807
2808/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2809   inside strings and character constants.  */
2810#define FOO(x) 'x'
2811int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2812
2813int test (int i, double x);
2814struct s1 {int (*f) (int a);};
2815struct s2 {int (*f) (double a);};
2816int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2817int argc;
2818char **argv;
2819int
2820main ()
2821{
2822return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2823  ;
2824  return 0;
2825}
2826_ACEOF
2827for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2828	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2829do
2830  CC="$ac_save_CC $ac_arg"
2831  rm -f conftest.$ac_objext
2832if { (ac_try="$ac_compile"
2833case "(($ac_try" in
2834  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2835  *) ac_try_echo=$ac_try;;
2836esac
2837eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2838  (eval "$ac_compile") 2>conftest.er1
2839  ac_status=$?
2840  grep -v '^ *+' conftest.er1 >conftest.err
2841  rm -f conftest.er1
2842  cat conftest.err >&5
2843  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2844  (exit $ac_status); } && {
2845	 test -z "$ac_c_werror_flag" ||
2846	 test ! -s conftest.err
2847       } && test -s conftest.$ac_objext; then
2848  ac_cv_prog_cc_c89=$ac_arg
2849else
2850  echo "$as_me: failed program was:" >&5
2851sed 's/^/| /' conftest.$ac_ext >&5
2852
2853
2854fi
2855
2856rm -f core conftest.err conftest.$ac_objext
2857  test "x$ac_cv_prog_cc_c89" != "xno" && break
2858done
2859rm -f conftest.$ac_ext
2860CC=$ac_save_CC
2861
2862fi
2863# AC_CACHE_VAL
2864case "x$ac_cv_prog_cc_c89" in
2865  x)
2866    { echo "$as_me:$LINENO: result: none needed" >&5
2867echo "${ECHO_T}none needed" >&6; } ;;
2868  xno)
2869    { echo "$as_me:$LINENO: result: unsupported" >&5
2870echo "${ECHO_T}unsupported" >&6; } ;;
2871  *)
2872    CC="$CC $ac_cv_prog_cc_c89"
2873    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2874echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2875esac
2876
2877
2878ac_ext=c
2879ac_cpp='$CPP $CPPFLAGS'
2880ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2881ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2882ac_compiler_gnu=$ac_cv_c_compiler_gnu
2883
2884    if test "$GCC" = yes ; then
2885	    if test "$SHLICC2" = yes ; then
2886		    ac_cv_lbl_gcc_vers=2
2887		    V_CCOPT="-O2"
2888	    else
2889		    { echo "$as_me:$LINENO: checking gcc version" >&5
2890echo $ECHO_N "checking gcc version... $ECHO_C" >&6; }
2891		    if test "${ac_cv_lbl_gcc_vers+set}" = set; then
2892  echo $ECHO_N "(cached) $ECHO_C" >&6
2893else
2894  ac_cv_lbl_gcc_vers=`$CC -v 2>&1 | \
2895			    sed -e '/^gcc version /!d' \
2896				-e 's/^gcc version //' \
2897				-e 's/ .*//' -e 's/^[^0-9]*//' \
2898				-e 's/\..*//'`
2899fi
2900
2901		    { echo "$as_me:$LINENO: result: $ac_cv_lbl_gcc_vers" >&5
2902echo "${ECHO_T}$ac_cv_lbl_gcc_vers" >&6; }
2903		    if test $ac_cv_lbl_gcc_vers -gt 1 ; then
2904			    V_CCOPT="-O2"
2905		    fi
2906	    fi
2907    else
2908	    { echo "$as_me:$LINENO: checking that $CC handles ansi prototypes" >&5
2909echo $ECHO_N "checking that $CC handles ansi prototypes... $ECHO_C" >&6; }
2910	    if test "${ac_cv_lbl_cc_ansi_prototypes+set}" = set; then
2911  echo $ECHO_N "(cached) $ECHO_C" >&6
2912else
2913
2914cat >conftest.$ac_ext <<_ACEOF
2915/* confdefs.h.  */
2916_ACEOF
2917cat confdefs.h >>conftest.$ac_ext
2918cat >>conftest.$ac_ext <<_ACEOF
2919/* end confdefs.h.  */
2920#include <sys/types.h>
2921int
2922main ()
2923{
2924int frob(int, char *)
2925  ;
2926  return 0;
2927}
2928_ACEOF
2929rm -f conftest.$ac_objext
2930if { (ac_try="$ac_compile"
2931case "(($ac_try" in
2932  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2933  *) ac_try_echo=$ac_try;;
2934esac
2935eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2936  (eval "$ac_compile") 2>conftest.er1
2937  ac_status=$?
2938  grep -v '^ *+' conftest.er1 >conftest.err
2939  rm -f conftest.er1
2940  cat conftest.err >&5
2941  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2942  (exit $ac_status); } && {
2943	 test -z "$ac_c_werror_flag" ||
2944	 test ! -s conftest.err
2945       } && test -s conftest.$ac_objext; then
2946  ac_cv_lbl_cc_ansi_prototypes=yes
2947else
2948  echo "$as_me: failed program was:" >&5
2949sed 's/^/| /' conftest.$ac_ext >&5
2950
2951	ac_cv_lbl_cc_ansi_prototypes=no
2952fi
2953
2954rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2955fi
2956
2957	    { echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_ansi_prototypes" >&5
2958echo "${ECHO_T}$ac_cv_lbl_cc_ansi_prototypes" >&6; }
2959	    if test $ac_cv_lbl_cc_ansi_prototypes = no ; then
2960		    case "$host_os" in
2961
2962		    hpux*)
2963			    { echo "$as_me:$LINENO: checking for HP-UX ansi compiler ($CC -Aa -D_HPUX_SOURCE)" >&5
2964echo $ECHO_N "checking for HP-UX ansi compiler ($CC -Aa -D_HPUX_SOURCE)... $ECHO_C" >&6; }
2965			    savedcflags="$CFLAGS"
2966			    CFLAGS="-Aa -D_HPUX_SOURCE $CFLAGS"
2967			    if test "${ac_cv_lbl_cc_hpux_cc_aa+set}" = set; then
2968  echo $ECHO_N "(cached) $ECHO_C" >&6
2969else
2970  cat >conftest.$ac_ext <<_ACEOF
2971/* confdefs.h.  */
2972_ACEOF
2973cat confdefs.h >>conftest.$ac_ext
2974cat >>conftest.$ac_ext <<_ACEOF
2975/* end confdefs.h.  */
2976#include <sys/types.h>
2977int
2978main ()
2979{
2980int frob(int, char *)
2981  ;
2982  return 0;
2983}
2984_ACEOF
2985rm -f conftest.$ac_objext
2986if { (ac_try="$ac_compile"
2987case "(($ac_try" in
2988  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2989  *) ac_try_echo=$ac_try;;
2990esac
2991eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2992  (eval "$ac_compile") 2>conftest.er1
2993  ac_status=$?
2994  grep -v '^ *+' conftest.er1 >conftest.err
2995  rm -f conftest.er1
2996  cat conftest.err >&5
2997  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2998  (exit $ac_status); } && {
2999	 test -z "$ac_c_werror_flag" ||
3000	 test ! -s conftest.err
3001       } && test -s conftest.$ac_objext; then
3002  ac_cv_lbl_cc_hpux_cc_aa=yes
3003else
3004  echo "$as_me: failed program was:" >&5
3005sed 's/^/| /' conftest.$ac_ext >&5
3006
3007	ac_cv_lbl_cc_hpux_cc_aa=no
3008fi
3009
3010rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3011fi
3012
3013			    { echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_hpux_cc_aa" >&5
3014echo "${ECHO_T}$ac_cv_lbl_cc_hpux_cc_aa" >&6; }
3015			    if test $ac_cv_lbl_cc_hpux_cc_aa = no ; then
3016				    { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
3017echo "$as_me: error: see the INSTALL doc for more info" >&2;}
3018   { (exit 1); exit 1; }; }
3019			    fi
3020			    CFLAGS="$savedcflags"
3021			    V_CCOPT="-Aa $V_CCOPT"
3022
3023cat >>confdefs.h <<\_ACEOF
3024#define _HPUX_SOURCE 1
3025_ACEOF
3026
3027			    ;;
3028
3029		    *)
3030			    { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
3031echo "$as_me: error: see the INSTALL doc for more info" >&2;}
3032   { (exit 1); exit 1; }; }
3033			    ;;
3034		    esac
3035	    fi
3036	    V_INCLS="$V_INCLS -I/usr/local/include"
3037	    LDFLAGS="$LDFLAGS -L/usr/local/lib"
3038
3039	    case "$host_os" in
3040
3041	    irix*)
3042		    V_CCOPT="$V_CCOPT -xansi -signed -g3"
3043		    ;;
3044
3045	    osf*)
3046		    V_CCOPT="$V_CCOPT -std1 -g3"
3047		    ;;
3048
3049	    ultrix*)
3050		    { echo "$as_me:$LINENO: checking that Ultrix $CC hacks const in prototypes" >&5
3051echo $ECHO_N "checking that Ultrix $CC hacks const in prototypes... $ECHO_C" >&6; }
3052		    if test "${ac_cv_lbl_cc_const_proto+set}" = set; then
3053  echo $ECHO_N "(cached) $ECHO_C" >&6
3054else
3055  cat >conftest.$ac_ext <<_ACEOF
3056/* confdefs.h.  */
3057_ACEOF
3058cat confdefs.h >>conftest.$ac_ext
3059cat >>conftest.$ac_ext <<_ACEOF
3060/* end confdefs.h.  */
3061#include <sys/types.h>
3062int
3063main ()
3064{
3065struct a { int b; };
3066			    void c(const struct a *)
3067  ;
3068  return 0;
3069}
3070_ACEOF
3071rm -f conftest.$ac_objext
3072if { (ac_try="$ac_compile"
3073case "(($ac_try" in
3074  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3075  *) ac_try_echo=$ac_try;;
3076esac
3077eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3078  (eval "$ac_compile") 2>conftest.er1
3079  ac_status=$?
3080  grep -v '^ *+' conftest.er1 >conftest.err
3081  rm -f conftest.er1
3082  cat conftest.err >&5
3083  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3084  (exit $ac_status); } && {
3085	 test -z "$ac_c_werror_flag" ||
3086	 test ! -s conftest.err
3087       } && test -s conftest.$ac_objext; then
3088  ac_cv_lbl_cc_const_proto=yes
3089else
3090  echo "$as_me: failed program was:" >&5
3091sed 's/^/| /' conftest.$ac_ext >&5
3092
3093	ac_cv_lbl_cc_const_proto=no
3094fi
3095
3096rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3097fi
3098
3099		    { echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_const_proto" >&5
3100echo "${ECHO_T}$ac_cv_lbl_cc_const_proto" >&6; }
3101		    if test $ac_cv_lbl_cc_const_proto = no ; then
3102			    cat >>confdefs.h <<\_ACEOF
3103#define const
3104_ACEOF
3105
3106		    fi
3107		    ;;
3108	    esac
3109    fi
3110
3111{ echo "$as_me:$LINENO: checking for inline" >&5
3112echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
3113    save_CFLAGS="$CFLAGS"
3114    CFLAGS="$V_CCOPT"
3115    if test "${ac_cv_lbl_inline+set}" = set; then
3116  echo $ECHO_N "(cached) $ECHO_C" >&6
3117else
3118
3119	ac_cv_lbl_inline=""
3120	ac_lbl_cc_inline=no
3121	for ac_lbl_inline in inline __inline__ __inline
3122	do
3123	    cat >conftest.$ac_ext <<_ACEOF
3124/* confdefs.h.  */
3125_ACEOF
3126cat confdefs.h >>conftest.$ac_ext
3127cat >>conftest.$ac_ext <<_ACEOF
3128/* end confdefs.h.  */
3129#define inline $ac_lbl_inline
3130		static inline struct iltest *foo(void);
3131		struct iltest {
3132		    int iltest1;
3133		    int iltest2;
3134		};
3135
3136		static inline struct iltest *
3137		foo()
3138		{
3139		    static struct iltest xxx;
3140
3141		    return &xxx;
3142		}
3143int
3144main ()
3145{
3146
3147  ;
3148  return 0;
3149}
3150_ACEOF
3151rm -f conftest.$ac_objext
3152if { (ac_try="$ac_compile"
3153case "(($ac_try" in
3154  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3155  *) ac_try_echo=$ac_try;;
3156esac
3157eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3158  (eval "$ac_compile") 2>conftest.er1
3159  ac_status=$?
3160  grep -v '^ *+' conftest.er1 >conftest.err
3161  rm -f conftest.er1
3162  cat conftest.err >&5
3163  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3164  (exit $ac_status); } && {
3165	 test -z "$ac_c_werror_flag" ||
3166	 test ! -s conftest.err
3167       } && test -s conftest.$ac_objext; then
3168  ac_lbl_cc_inline=yes
3169else
3170  echo "$as_me: failed program was:" >&5
3171sed 's/^/| /' conftest.$ac_ext >&5
3172
3173
3174fi
3175
3176rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3177	    if test "$ac_lbl_cc_inline" = yes ; then
3178		break;
3179	    fi
3180	done
3181	if test "$ac_lbl_cc_inline" = yes ; then
3182	    ac_cv_lbl_inline=$ac_lbl_inline
3183	fi
3184fi
3185
3186    CFLAGS="$save_CFLAGS"
3187    if test ! -z "$ac_cv_lbl_inline" ; then
3188	{ echo "$as_me:$LINENO: result: $ac_cv_lbl_inline" >&5
3189echo "${ECHO_T}$ac_cv_lbl_inline" >&6; }
3190    else
3191	{ echo "$as_me:$LINENO: result: no" >&5
3192echo "${ECHO_T}no" >&6; }
3193    fi
3194
3195cat >>confdefs.h <<_ACEOF
3196#define inline $ac_cv_lbl_inline
3197_ACEOF
3198
3199
3200{ echo "$as_me:$LINENO: checking for __attribute__" >&5
3201echo $ECHO_N "checking for __attribute__... $ECHO_C" >&6; }
3202if test "${ac_cv___attribute__+set}" = set; then
3203  echo $ECHO_N "(cached) $ECHO_C" >&6
3204else
3205
3206cat >conftest.$ac_ext <<_ACEOF
3207/* confdefs.h.  */
3208_ACEOF
3209cat confdefs.h >>conftest.$ac_ext
3210cat >>conftest.$ac_ext <<_ACEOF
3211/* end confdefs.h.  */
3212
3213#include <stdlib.h>
3214
3215static void foo(void) __attribute__ ((noreturn));
3216
3217static void
3218foo(void)
3219{
3220  exit(1);
3221}
3222
3223int
3224main(int argc, char **argv)
3225{
3226  foo();
3227}
3228
3229_ACEOF
3230rm -f conftest.$ac_objext
3231if { (ac_try="$ac_compile"
3232case "(($ac_try" in
3233  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3234  *) ac_try_echo=$ac_try;;
3235esac
3236eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3237  (eval "$ac_compile") 2>conftest.er1
3238  ac_status=$?
3239  grep -v '^ *+' conftest.er1 >conftest.err
3240  rm -f conftest.er1
3241  cat conftest.err >&5
3242  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3243  (exit $ac_status); } && {
3244	 test -z "$ac_c_werror_flag" ||
3245	 test ! -s conftest.err
3246       } && test -s conftest.$ac_objext; then
3247  ac_cv___attribute__=yes
3248else
3249  echo "$as_me: failed program was:" >&5
3250sed 's/^/| /' conftest.$ac_ext >&5
3251
3252	ac_cv___attribute__=no
3253fi
3254
3255rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3256fi
3257
3258if test "$ac_cv___attribute__" = "yes"; then
3259
3260cat >>confdefs.h <<\_ACEOF
3261#define HAVE___ATTRIBUTE__ 1
3262_ACEOF
3263
3264  V_DEFS="$V_DEFS -D_U_=\"__attribute__((unused))\""
3265else
3266  V_DEFS="$V_DEFS -D_U_=\"\""
3267fi
3268{ echo "$as_me:$LINENO: result: $ac_cv___attribute__" >&5
3269echo "${ECHO_T}$ac_cv___attribute__" >&6; }
3270
3271
3272{ echo "$as_me:$LINENO: checking for u_int8_t using $CC" >&5
3273echo $ECHO_N "checking for u_int8_t using $CC... $ECHO_C" >&6; }
3274    if test "${ac_cv_lbl_have_u_int8_t+set}" = set; then
3275  echo $ECHO_N "(cached) $ECHO_C" >&6
3276else
3277  cat >conftest.$ac_ext <<_ACEOF
3278/* confdefs.h.  */
3279_ACEOF
3280cat confdefs.h >>conftest.$ac_ext
3281cat >>conftest.$ac_ext <<_ACEOF
3282/* end confdefs.h.  */
3283
3284#	include "confdefs.h"
3285#	include <sys/types.h>
3286#	if STDC_HEADERS
3287#	include <stdlib.h>
3288#	include <stddef.h>
3289#	endif
3290int
3291main ()
3292{
3293u_int8_t i
3294  ;
3295  return 0;
3296}
3297_ACEOF
3298rm -f conftest.$ac_objext
3299if { (ac_try="$ac_compile"
3300case "(($ac_try" in
3301  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3302  *) ac_try_echo=$ac_try;;
3303esac
3304eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3305  (eval "$ac_compile") 2>conftest.er1
3306  ac_status=$?
3307  grep -v '^ *+' conftest.er1 >conftest.err
3308  rm -f conftest.er1
3309  cat conftest.err >&5
3310  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3311  (exit $ac_status); } && {
3312	 test -z "$ac_c_werror_flag" ||
3313	 test ! -s conftest.err
3314       } && test -s conftest.$ac_objext; then
3315  ac_cv_lbl_have_u_int8_t=yes
3316else
3317  echo "$as_me: failed program was:" >&5
3318sed 's/^/| /' conftest.$ac_ext >&5
3319
3320	ac_cv_lbl_have_u_int8_t=no
3321fi
3322
3323rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3324fi
3325
3326    { echo "$as_me:$LINENO: result: $ac_cv_lbl_have_u_int8_t" >&5
3327echo "${ECHO_T}$ac_cv_lbl_have_u_int8_t" >&6; }
3328    if test $ac_cv_lbl_have_u_int8_t = no ; then
3329
3330cat >>confdefs.h <<\_ACEOF
3331#define u_int8_t u_char
3332_ACEOF
3333
3334    fi
3335{ echo "$as_me:$LINENO: checking for u_int16_t using $CC" >&5
3336echo $ECHO_N "checking for u_int16_t using $CC... $ECHO_C" >&6; }
3337    if test "${ac_cv_lbl_have_u_int16_t+set}" = set; then
3338  echo $ECHO_N "(cached) $ECHO_C" >&6
3339else
3340  cat >conftest.$ac_ext <<_ACEOF
3341/* confdefs.h.  */
3342_ACEOF
3343cat confdefs.h >>conftest.$ac_ext
3344cat >>conftest.$ac_ext <<_ACEOF
3345/* end confdefs.h.  */
3346
3347#	include "confdefs.h"
3348#	include <sys/types.h>
3349#	if STDC_HEADERS
3350#	include <stdlib.h>
3351#	include <stddef.h>
3352#	endif
3353int
3354main ()
3355{
3356u_int16_t i
3357  ;
3358  return 0;
3359}
3360_ACEOF
3361rm -f conftest.$ac_objext
3362if { (ac_try="$ac_compile"
3363case "(($ac_try" in
3364  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3365  *) ac_try_echo=$ac_try;;
3366esac
3367eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3368  (eval "$ac_compile") 2>conftest.er1
3369  ac_status=$?
3370  grep -v '^ *+' conftest.er1 >conftest.err
3371  rm -f conftest.er1
3372  cat conftest.err >&5
3373  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3374  (exit $ac_status); } && {
3375	 test -z "$ac_c_werror_flag" ||
3376	 test ! -s conftest.err
3377       } && test -s conftest.$ac_objext; then
3378  ac_cv_lbl_have_u_int16_t=yes
3379else
3380  echo "$as_me: failed program was:" >&5
3381sed 's/^/| /' conftest.$ac_ext >&5
3382
3383	ac_cv_lbl_have_u_int16_t=no
3384fi
3385
3386rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3387fi
3388
3389    { echo "$as_me:$LINENO: result: $ac_cv_lbl_have_u_int16_t" >&5
3390echo "${ECHO_T}$ac_cv_lbl_have_u_int16_t" >&6; }
3391    if test $ac_cv_lbl_have_u_int16_t = no ; then
3392
3393cat >>confdefs.h <<\_ACEOF
3394#define u_int16_t u_short
3395_ACEOF
3396
3397    fi
3398{ echo "$as_me:$LINENO: checking for u_int32_t using $CC" >&5
3399echo $ECHO_N "checking for u_int32_t using $CC... $ECHO_C" >&6; }
3400    if test "${ac_cv_lbl_have_u_int32_t+set}" = set; then
3401  echo $ECHO_N "(cached) $ECHO_C" >&6
3402else
3403  cat >conftest.$ac_ext <<_ACEOF
3404/* confdefs.h.  */
3405_ACEOF
3406cat confdefs.h >>conftest.$ac_ext
3407cat >>conftest.$ac_ext <<_ACEOF
3408/* end confdefs.h.  */
3409
3410#	include "confdefs.h"
3411#	include <sys/types.h>
3412#	if STDC_HEADERS
3413#	include <stdlib.h>
3414#	include <stddef.h>
3415#	endif
3416int
3417main ()
3418{
3419u_int32_t i
3420  ;
3421  return 0;
3422}
3423_ACEOF
3424rm -f conftest.$ac_objext
3425if { (ac_try="$ac_compile"
3426case "(($ac_try" in
3427  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3428  *) ac_try_echo=$ac_try;;
3429esac
3430eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3431  (eval "$ac_compile") 2>conftest.er1
3432  ac_status=$?
3433  grep -v '^ *+' conftest.er1 >conftest.err
3434  rm -f conftest.er1
3435  cat conftest.err >&5
3436  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3437  (exit $ac_status); } && {
3438	 test -z "$ac_c_werror_flag" ||
3439	 test ! -s conftest.err
3440       } && test -s conftest.$ac_objext; then
3441  ac_cv_lbl_have_u_int32_t=yes
3442else
3443  echo "$as_me: failed program was:" >&5
3444sed 's/^/| /' conftest.$ac_ext >&5
3445
3446	ac_cv_lbl_have_u_int32_t=no
3447fi
3448
3449rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3450fi
3451
3452    { echo "$as_me:$LINENO: result: $ac_cv_lbl_have_u_int32_t" >&5
3453echo "${ECHO_T}$ac_cv_lbl_have_u_int32_t" >&6; }
3454    if test $ac_cv_lbl_have_u_int32_t = no ; then
3455
3456cat >>confdefs.h <<\_ACEOF
3457#define u_int32_t u_int
3458_ACEOF
3459
3460    fi
3461{ echo "$as_me:$LINENO: checking for u_int64_t using $CC" >&5
3462echo $ECHO_N "checking for u_int64_t using $CC... $ECHO_C" >&6; }
3463    if test "${ac_cv_lbl_have_u_int64_t+set}" = set; then
3464  echo $ECHO_N "(cached) $ECHO_C" >&6
3465else
3466  cat >conftest.$ac_ext <<_ACEOF
3467/* confdefs.h.  */
3468_ACEOF
3469cat confdefs.h >>conftest.$ac_ext
3470cat >>conftest.$ac_ext <<_ACEOF
3471/* end confdefs.h.  */
3472
3473#	include "confdefs.h"
3474#	include <sys/types.h>
3475#	if STDC_HEADERS
3476#	include <stdlib.h>
3477#	include <stddef.h>
3478#	endif
3479int
3480main ()
3481{
3482u_int64_t i
3483  ;
3484  return 0;
3485}
3486_ACEOF
3487rm -f conftest.$ac_objext
3488if { (ac_try="$ac_compile"
3489case "(($ac_try" in
3490  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3491  *) ac_try_echo=$ac_try;;
3492esac
3493eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3494  (eval "$ac_compile") 2>conftest.er1
3495  ac_status=$?
3496  grep -v '^ *+' conftest.er1 >conftest.err
3497  rm -f conftest.er1
3498  cat conftest.err >&5
3499  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3500  (exit $ac_status); } && {
3501	 test -z "$ac_c_werror_flag" ||
3502	 test ! -s conftest.err
3503       } && test -s conftest.$ac_objext; then
3504  ac_cv_lbl_have_u_int64_t=yes
3505else
3506  echo "$as_me: failed program was:" >&5
3507sed 's/^/| /' conftest.$ac_ext >&5
3508
3509	ac_cv_lbl_have_u_int64_t=no
3510fi
3511
3512rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3513fi
3514
3515    { echo "$as_me:$LINENO: result: $ac_cv_lbl_have_u_int64_t" >&5
3516echo "${ECHO_T}$ac_cv_lbl_have_u_int64_t" >&6; }
3517    if test $ac_cv_lbl_have_u_int64_t = no ; then
3518
3519cat >>confdefs.h <<\_ACEOF
3520#define u_int64_t unsigned long long
3521_ACEOF
3522
3523    fi
3524
3525#
3526# Try to arrange for large file support.
3527#
3528# Check whether --enable-largefile was given.
3529if test "${enable_largefile+set}" = set; then
3530  enableval=$enable_largefile;
3531fi
3532
3533if test "$enable_largefile" != no; then
3534
3535  { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
3536echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
3537if test "${ac_cv_sys_largefile_CC+set}" = set; then
3538  echo $ECHO_N "(cached) $ECHO_C" >&6
3539else
3540  ac_cv_sys_largefile_CC=no
3541     if test "$GCC" != yes; then
3542       ac_save_CC=$CC
3543       while :; do
3544	 # IRIX 6.2 and later do not support large files by default,
3545	 # so use the C compiler's -n32 option if that helps.
3546	 cat >conftest.$ac_ext <<_ACEOF
3547/* confdefs.h.  */
3548_ACEOF
3549cat confdefs.h >>conftest.$ac_ext
3550cat >>conftest.$ac_ext <<_ACEOF
3551/* end confdefs.h.  */
3552#include <sys/types.h>
3553 /* Check that off_t can represent 2**63 - 1 correctly.
3554    We can't simply define LARGE_OFF_T to be 9223372036854775807,
3555    since some C++ compilers masquerading as C compilers
3556    incorrectly reject 9223372036854775807.  */
3557#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3558  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3559		       && LARGE_OFF_T % 2147483647 == 1)
3560		      ? 1 : -1];
3561int
3562main ()
3563{
3564
3565  ;
3566  return 0;
3567}
3568_ACEOF
3569	 rm -f conftest.$ac_objext
3570if { (ac_try="$ac_compile"
3571case "(($ac_try" in
3572  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3573  *) ac_try_echo=$ac_try;;
3574esac
3575eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3576  (eval "$ac_compile") 2>conftest.er1
3577  ac_status=$?
3578  grep -v '^ *+' conftest.er1 >conftest.err
3579  rm -f conftest.er1
3580  cat conftest.err >&5
3581  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3582  (exit $ac_status); } && {
3583	 test -z "$ac_c_werror_flag" ||
3584	 test ! -s conftest.err
3585       } && test -s conftest.$ac_objext; then
3586  break
3587else
3588  echo "$as_me: failed program was:" >&5
3589sed 's/^/| /' conftest.$ac_ext >&5
3590
3591
3592fi
3593
3594rm -f core conftest.err conftest.$ac_objext
3595	 CC="$CC -n32"
3596	 rm -f conftest.$ac_objext
3597if { (ac_try="$ac_compile"
3598case "(($ac_try" in
3599  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3600  *) ac_try_echo=$ac_try;;
3601esac
3602eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3603  (eval "$ac_compile") 2>conftest.er1
3604  ac_status=$?
3605  grep -v '^ *+' conftest.er1 >conftest.err
3606  rm -f conftest.er1
3607  cat conftest.err >&5
3608  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3609  (exit $ac_status); } && {
3610	 test -z "$ac_c_werror_flag" ||
3611	 test ! -s conftest.err
3612       } && test -s conftest.$ac_objext; then
3613  ac_cv_sys_largefile_CC=' -n32'; break
3614else
3615  echo "$as_me: failed program was:" >&5
3616sed 's/^/| /' conftest.$ac_ext >&5
3617
3618
3619fi
3620
3621rm -f core conftest.err conftest.$ac_objext
3622	 break
3623       done
3624       CC=$ac_save_CC
3625       rm -f conftest.$ac_ext
3626    fi
3627fi
3628{ echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
3629echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
3630  if test "$ac_cv_sys_largefile_CC" != no; then
3631    CC=$CC$ac_cv_sys_largefile_CC
3632  fi
3633
3634  { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
3635echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
3636if test "${ac_cv_sys_file_offset_bits+set}" = set; then
3637  echo $ECHO_N "(cached) $ECHO_C" >&6
3638else
3639  while :; do
3640  cat >conftest.$ac_ext <<_ACEOF
3641/* confdefs.h.  */
3642_ACEOF
3643cat confdefs.h >>conftest.$ac_ext
3644cat >>conftest.$ac_ext <<_ACEOF
3645/* end confdefs.h.  */
3646#include <sys/types.h>
3647 /* Check that off_t can represent 2**63 - 1 correctly.
3648    We can't simply define LARGE_OFF_T to be 9223372036854775807,
3649    since some C++ compilers masquerading as C compilers
3650    incorrectly reject 9223372036854775807.  */
3651#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3652  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3653		       && LARGE_OFF_T % 2147483647 == 1)
3654		      ? 1 : -1];
3655int
3656main ()
3657{
3658
3659  ;
3660  return 0;
3661}
3662_ACEOF
3663rm -f conftest.$ac_objext
3664if { (ac_try="$ac_compile"
3665case "(($ac_try" in
3666  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3667  *) ac_try_echo=$ac_try;;
3668esac
3669eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3670  (eval "$ac_compile") 2>conftest.er1
3671  ac_status=$?
3672  grep -v '^ *+' conftest.er1 >conftest.err
3673  rm -f conftest.er1
3674  cat conftest.err >&5
3675  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3676  (exit $ac_status); } && {
3677	 test -z "$ac_c_werror_flag" ||
3678	 test ! -s conftest.err
3679       } && test -s conftest.$ac_objext; then
3680  ac_cv_sys_file_offset_bits=no; break
3681else
3682  echo "$as_me: failed program was:" >&5
3683sed 's/^/| /' conftest.$ac_ext >&5
3684
3685
3686fi
3687
3688rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3689  cat >conftest.$ac_ext <<_ACEOF
3690/* confdefs.h.  */
3691_ACEOF
3692cat confdefs.h >>conftest.$ac_ext
3693cat >>conftest.$ac_ext <<_ACEOF
3694/* end confdefs.h.  */
3695#define _FILE_OFFSET_BITS 64
3696#include <sys/types.h>
3697 /* Check that off_t can represent 2**63 - 1 correctly.
3698    We can't simply define LARGE_OFF_T to be 9223372036854775807,
3699    since some C++ compilers masquerading as C compilers
3700    incorrectly reject 9223372036854775807.  */
3701#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3702  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3703		       && LARGE_OFF_T % 2147483647 == 1)
3704		      ? 1 : -1];
3705int
3706main ()
3707{
3708
3709  ;
3710  return 0;
3711}
3712_ACEOF
3713rm -f conftest.$ac_objext
3714if { (ac_try="$ac_compile"
3715case "(($ac_try" in
3716  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3717  *) ac_try_echo=$ac_try;;
3718esac
3719eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3720  (eval "$ac_compile") 2>conftest.er1
3721  ac_status=$?
3722  grep -v '^ *+' conftest.er1 >conftest.err
3723  rm -f conftest.er1
3724  cat conftest.err >&5
3725  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3726  (exit $ac_status); } && {
3727	 test -z "$ac_c_werror_flag" ||
3728	 test ! -s conftest.err
3729       } && test -s conftest.$ac_objext; then
3730  ac_cv_sys_file_offset_bits=64; break
3731else
3732  echo "$as_me: failed program was:" >&5
3733sed 's/^/| /' conftest.$ac_ext >&5
3734
3735
3736fi
3737
3738rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3739  ac_cv_sys_file_offset_bits=unknown
3740  break
3741done
3742fi
3743{ echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
3744echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
3745case $ac_cv_sys_file_offset_bits in #(
3746  no | unknown) ;;
3747  *)
3748cat >>confdefs.h <<_ACEOF
3749#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
3750_ACEOF
3751;;
3752esac
3753rm -f conftest*
3754  if test $ac_cv_sys_file_offset_bits = unknown; then
3755    { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
3756echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
3757if test "${ac_cv_sys_large_files+set}" = set; then
3758  echo $ECHO_N "(cached) $ECHO_C" >&6
3759else
3760  while :; do
3761  cat >conftest.$ac_ext <<_ACEOF
3762/* confdefs.h.  */
3763_ACEOF
3764cat confdefs.h >>conftest.$ac_ext
3765cat >>conftest.$ac_ext <<_ACEOF
3766/* end confdefs.h.  */
3767#include <sys/types.h>
3768 /* Check that off_t can represent 2**63 - 1 correctly.
3769    We can't simply define LARGE_OFF_T to be 9223372036854775807,
3770    since some C++ compilers masquerading as C compilers
3771    incorrectly reject 9223372036854775807.  */
3772#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3773  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3774		       && LARGE_OFF_T % 2147483647 == 1)
3775		      ? 1 : -1];
3776int
3777main ()
3778{
3779
3780  ;
3781  return 0;
3782}
3783_ACEOF
3784rm -f conftest.$ac_objext
3785if { (ac_try="$ac_compile"
3786case "(($ac_try" in
3787  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3788  *) ac_try_echo=$ac_try;;
3789esac
3790eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3791  (eval "$ac_compile") 2>conftest.er1
3792  ac_status=$?
3793  grep -v '^ *+' conftest.er1 >conftest.err
3794  rm -f conftest.er1
3795  cat conftest.err >&5
3796  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3797  (exit $ac_status); } && {
3798	 test -z "$ac_c_werror_flag" ||
3799	 test ! -s conftest.err
3800       } && test -s conftest.$ac_objext; then
3801  ac_cv_sys_large_files=no; break
3802else
3803  echo "$as_me: failed program was:" >&5
3804sed 's/^/| /' conftest.$ac_ext >&5
3805
3806
3807fi
3808
3809rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3810  cat >conftest.$ac_ext <<_ACEOF
3811/* confdefs.h.  */
3812_ACEOF
3813cat confdefs.h >>conftest.$ac_ext
3814cat >>conftest.$ac_ext <<_ACEOF
3815/* end confdefs.h.  */
3816#define _LARGE_FILES 1
3817#include <sys/types.h>
3818 /* Check that off_t can represent 2**63 - 1 correctly.
3819    We can't simply define LARGE_OFF_T to be 9223372036854775807,
3820    since some C++ compilers masquerading as C compilers
3821    incorrectly reject 9223372036854775807.  */
3822#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3823  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3824		       && LARGE_OFF_T % 2147483647 == 1)
3825		      ? 1 : -1];
3826int
3827main ()
3828{
3829
3830  ;
3831  return 0;
3832}
3833_ACEOF
3834rm -f conftest.$ac_objext
3835if { (ac_try="$ac_compile"
3836case "(($ac_try" in
3837  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3838  *) ac_try_echo=$ac_try;;
3839esac
3840eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3841  (eval "$ac_compile") 2>conftest.er1
3842  ac_status=$?
3843  grep -v '^ *+' conftest.er1 >conftest.err
3844  rm -f conftest.er1
3845  cat conftest.err >&5
3846  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3847  (exit $ac_status); } && {
3848	 test -z "$ac_c_werror_flag" ||
3849	 test ! -s conftest.err
3850       } && test -s conftest.$ac_objext; then
3851  ac_cv_sys_large_files=1; break
3852else
3853  echo "$as_me: failed program was:" >&5
3854sed 's/^/| /' conftest.$ac_ext >&5
3855
3856
3857fi
3858
3859rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3860  ac_cv_sys_large_files=unknown
3861  break
3862done
3863fi
3864{ echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
3865echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
3866case $ac_cv_sys_large_files in #(
3867  no | unknown) ;;
3868  *)
3869cat >>confdefs.h <<_ACEOF
3870#define _LARGE_FILES $ac_cv_sys_large_files
3871_ACEOF
3872;;
3873esac
3874rm -f conftest*
3875  fi
3876fi
3877
3878{ echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
3879echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
3880if test "${ac_cv_sys_largefile_source+set}" = set; then
3881  echo $ECHO_N "(cached) $ECHO_C" >&6
3882else
3883  while :; do
3884  cat >conftest.$ac_ext <<_ACEOF
3885/* confdefs.h.  */
3886_ACEOF
3887cat confdefs.h >>conftest.$ac_ext
3888cat >>conftest.$ac_ext <<_ACEOF
3889/* end confdefs.h.  */
3890#include <stdio.h>
3891int
3892main ()
3893{
3894return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
3895  ;
3896  return 0;
3897}
3898_ACEOF
3899rm -f conftest.$ac_objext conftest$ac_exeext
3900if { (ac_try="$ac_link"
3901case "(($ac_try" in
3902  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3903  *) ac_try_echo=$ac_try;;
3904esac
3905eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3906  (eval "$ac_link") 2>conftest.er1
3907  ac_status=$?
3908  grep -v '^ *+' conftest.er1 >conftest.err
3909  rm -f conftest.er1
3910  cat conftest.err >&5
3911  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3912  (exit $ac_status); } && {
3913	 test -z "$ac_c_werror_flag" ||
3914	 test ! -s conftest.err
3915       } && test -s conftest$ac_exeext &&
3916       $as_test_x conftest$ac_exeext; then
3917  ac_cv_sys_largefile_source=no; break
3918else
3919  echo "$as_me: failed program was:" >&5
3920sed 's/^/| /' conftest.$ac_ext >&5
3921
3922
3923fi
3924
3925rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3926      conftest$ac_exeext conftest.$ac_ext
3927  cat >conftest.$ac_ext <<_ACEOF
3928/* confdefs.h.  */
3929_ACEOF
3930cat confdefs.h >>conftest.$ac_ext
3931cat >>conftest.$ac_ext <<_ACEOF
3932/* end confdefs.h.  */
3933#define _LARGEFILE_SOURCE 1
3934#include <stdio.h>
3935int
3936main ()
3937{
3938return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
3939  ;
3940  return 0;
3941}
3942_ACEOF
3943rm -f conftest.$ac_objext conftest$ac_exeext
3944if { (ac_try="$ac_link"
3945case "(($ac_try" in
3946  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3947  *) ac_try_echo=$ac_try;;
3948esac
3949eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3950  (eval "$ac_link") 2>conftest.er1
3951  ac_status=$?
3952  grep -v '^ *+' conftest.er1 >conftest.err
3953  rm -f conftest.er1
3954  cat conftest.err >&5
3955  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3956  (exit $ac_status); } && {
3957	 test -z "$ac_c_werror_flag" ||
3958	 test ! -s conftest.err
3959       } && test -s conftest$ac_exeext &&
3960       $as_test_x conftest$ac_exeext; then
3961  ac_cv_sys_largefile_source=1; break
3962else
3963  echo "$as_me: failed program was:" >&5
3964sed 's/^/| /' conftest.$ac_ext >&5
3965
3966
3967fi
3968
3969rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3970      conftest$ac_exeext conftest.$ac_ext
3971  ac_cv_sys_largefile_source=unknown
3972  break
3973done
3974fi
3975{ echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
3976echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
3977case $ac_cv_sys_largefile_source in #(
3978  no | unknown) ;;
3979  *)
3980cat >>confdefs.h <<_ACEOF
3981#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
3982_ACEOF
3983;;
3984esac
3985rm -f conftest*
3986
3987# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
3988# in glibc 2.1.3, but that breaks too many other things.
3989# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
3990if test $ac_cv_sys_largefile_source != unknown; then
3991
3992cat >>confdefs.h <<\_ACEOF
3993#define HAVE_FSEEKO 1
3994_ACEOF
3995
3996fi
3997
3998
3999ac_ext=c
4000ac_cpp='$CPP $CPPFLAGS'
4001ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4002ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4003ac_compiler_gnu=$ac_cv_c_compiler_gnu
4004{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4005echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4006# On Suns, sometimes $CPP names a directory.
4007if test -n "$CPP" && test -d "$CPP"; then
4008  CPP=
4009fi
4010if test -z "$CPP"; then
4011  if test "${ac_cv_prog_CPP+set}" = set; then
4012  echo $ECHO_N "(cached) $ECHO_C" >&6
4013else
4014      # Double quotes because CPP needs to be expanded
4015    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4016    do
4017      ac_preproc_ok=false
4018for ac_c_preproc_warn_flag in '' yes
4019do
4020  # Use a header file that comes with gcc, so configuring glibc
4021  # with a fresh cross-compiler works.
4022  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4023  # <limits.h> exists even on freestanding compilers.
4024  # On the NeXT, cc -E runs the code through the compiler's parser,
4025  # not just through cpp. "Syntax error" is here to catch this case.
4026  cat >conftest.$ac_ext <<_ACEOF
4027/* confdefs.h.  */
4028_ACEOF
4029cat confdefs.h >>conftest.$ac_ext
4030cat >>conftest.$ac_ext <<_ACEOF
4031/* end confdefs.h.  */
4032#ifdef __STDC__
4033# include <limits.h>
4034#else
4035# include <assert.h>
4036#endif
4037		     Syntax error
4038_ACEOF
4039if { (ac_try="$ac_cpp conftest.$ac_ext"
4040case "(($ac_try" in
4041  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4042  *) ac_try_echo=$ac_try;;
4043esac
4044eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4045  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4046  ac_status=$?
4047  grep -v '^ *+' conftest.er1 >conftest.err
4048  rm -f conftest.er1
4049  cat conftest.err >&5
4050  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4051  (exit $ac_status); } >/dev/null && {
4052	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4053	 test ! -s conftest.err
4054       }; then
4055  :
4056else
4057  echo "$as_me: failed program was:" >&5
4058sed 's/^/| /' conftest.$ac_ext >&5
4059
4060  # Broken: fails on valid input.
4061continue
4062fi
4063
4064rm -f conftest.err conftest.$ac_ext
4065
4066  # OK, works on sane cases.  Now check whether nonexistent headers
4067  # can be detected and how.
4068  cat >conftest.$ac_ext <<_ACEOF
4069/* confdefs.h.  */
4070_ACEOF
4071cat confdefs.h >>conftest.$ac_ext
4072cat >>conftest.$ac_ext <<_ACEOF
4073/* end confdefs.h.  */
4074#include <ac_nonexistent.h>
4075_ACEOF
4076if { (ac_try="$ac_cpp conftest.$ac_ext"
4077case "(($ac_try" in
4078  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4079  *) ac_try_echo=$ac_try;;
4080esac
4081eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4082  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4083  ac_status=$?
4084  grep -v '^ *+' conftest.er1 >conftest.err
4085  rm -f conftest.er1
4086  cat conftest.err >&5
4087  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4088  (exit $ac_status); } >/dev/null && {
4089	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4090	 test ! -s conftest.err
4091       }; then
4092  # Broken: success on invalid input.
4093continue
4094else
4095  echo "$as_me: failed program was:" >&5
4096sed 's/^/| /' conftest.$ac_ext >&5
4097
4098  # Passes both tests.
4099ac_preproc_ok=:
4100break
4101fi
4102
4103rm -f conftest.err conftest.$ac_ext
4104
4105done
4106# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4107rm -f conftest.err conftest.$ac_ext
4108if $ac_preproc_ok; then
4109  break
4110fi
4111
4112    done
4113    ac_cv_prog_CPP=$CPP
4114
4115fi
4116  CPP=$ac_cv_prog_CPP
4117else
4118  ac_cv_prog_CPP=$CPP
4119fi
4120{ echo "$as_me:$LINENO: result: $CPP" >&5
4121echo "${ECHO_T}$CPP" >&6; }
4122ac_preproc_ok=false
4123for ac_c_preproc_warn_flag in '' yes
4124do
4125  # Use a header file that comes with gcc, so configuring glibc
4126  # with a fresh cross-compiler works.
4127  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4128  # <limits.h> exists even on freestanding compilers.
4129  # On the NeXT, cc -E runs the code through the compiler's parser,
4130  # not just through cpp. "Syntax error" is here to catch this case.
4131  cat >conftest.$ac_ext <<_ACEOF
4132/* confdefs.h.  */
4133_ACEOF
4134cat confdefs.h >>conftest.$ac_ext
4135cat >>conftest.$ac_ext <<_ACEOF
4136/* end confdefs.h.  */
4137#ifdef __STDC__
4138# include <limits.h>
4139#else
4140# include <assert.h>
4141#endif
4142		     Syntax error
4143_ACEOF
4144if { (ac_try="$ac_cpp conftest.$ac_ext"
4145case "(($ac_try" in
4146  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4147  *) ac_try_echo=$ac_try;;
4148esac
4149eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4150  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4151  ac_status=$?
4152  grep -v '^ *+' conftest.er1 >conftest.err
4153  rm -f conftest.er1
4154  cat conftest.err >&5
4155  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4156  (exit $ac_status); } >/dev/null && {
4157	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4158	 test ! -s conftest.err
4159       }; then
4160  :
4161else
4162  echo "$as_me: failed program was:" >&5
4163sed 's/^/| /' conftest.$ac_ext >&5
4164
4165  # Broken: fails on valid input.
4166continue
4167fi
4168
4169rm -f conftest.err conftest.$ac_ext
4170
4171  # OK, works on sane cases.  Now check whether nonexistent headers
4172  # can be detected and how.
4173  cat >conftest.$ac_ext <<_ACEOF
4174/* confdefs.h.  */
4175_ACEOF
4176cat confdefs.h >>conftest.$ac_ext
4177cat >>conftest.$ac_ext <<_ACEOF
4178/* end confdefs.h.  */
4179#include <ac_nonexistent.h>
4180_ACEOF
4181if { (ac_try="$ac_cpp conftest.$ac_ext"
4182case "(($ac_try" in
4183  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4184  *) ac_try_echo=$ac_try;;
4185esac
4186eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4187  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4188  ac_status=$?
4189  grep -v '^ *+' conftest.er1 >conftest.err
4190  rm -f conftest.er1
4191  cat conftest.err >&5
4192  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4193  (exit $ac_status); } >/dev/null && {
4194	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4195	 test ! -s conftest.err
4196       }; then
4197  # Broken: success on invalid input.
4198continue
4199else
4200  echo "$as_me: failed program was:" >&5
4201sed 's/^/| /' conftest.$ac_ext >&5
4202
4203  # Passes both tests.
4204ac_preproc_ok=:
4205break
4206fi
4207
4208rm -f conftest.err conftest.$ac_ext
4209
4210done
4211# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4212rm -f conftest.err conftest.$ac_ext
4213if $ac_preproc_ok; then
4214  :
4215else
4216  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4217See \`config.log' for more details." >&5
4218echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4219See \`config.log' for more details." >&2;}
4220   { (exit 1); exit 1; }; }
4221fi
4222
4223ac_ext=c
4224ac_cpp='$CPP $CPPFLAGS'
4225ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4226ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4227ac_compiler_gnu=$ac_cv_c_compiler_gnu
4228
4229
4230{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4231echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4232if test "${ac_cv_path_GREP+set}" = set; then
4233  echo $ECHO_N "(cached) $ECHO_C" >&6
4234else
4235  # Extract the first word of "grep ggrep" to use in msg output
4236if test -z "$GREP"; then
4237set dummy grep ggrep; ac_prog_name=$2
4238if test "${ac_cv_path_GREP+set}" = set; then
4239  echo $ECHO_N "(cached) $ECHO_C" >&6
4240else
4241  ac_path_GREP_found=false
4242# Loop through the user's path and test for each of PROGNAME-LIST
4243as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4244for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4245do
4246  IFS=$as_save_IFS
4247  test -z "$as_dir" && as_dir=.
4248  for ac_prog in grep ggrep; do
4249  for ac_exec_ext in '' $ac_executable_extensions; do
4250    ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4251    { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4252    # Check for GNU ac_path_GREP and select it if it is found.
4253  # Check for GNU $ac_path_GREP
4254case `"$ac_path_GREP" --version 2>&1` in
4255*GNU*)
4256  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4257*)
4258  ac_count=0
4259  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4260  while :
4261  do
4262    cat "conftest.in" "conftest.in" >"conftest.tmp"
4263    mv "conftest.tmp" "conftest.in"
4264    cp "conftest.in" "conftest.nl"
4265    echo 'GREP' >> "conftest.nl"
4266    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4267    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4268    ac_count=`expr $ac_count + 1`
4269    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4270      # Best one so far, save it but keep looking for a better one
4271      ac_cv_path_GREP="$ac_path_GREP"
4272      ac_path_GREP_max=$ac_count
4273    fi
4274    # 10*(2^10) chars as input seems more than enough
4275    test $ac_count -gt 10 && break
4276  done
4277  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4278esac
4279
4280
4281    $ac_path_GREP_found && break 3
4282  done
4283done
4284
4285done
4286IFS=$as_save_IFS
4287
4288
4289fi
4290
4291GREP="$ac_cv_path_GREP"
4292if test -z "$GREP"; then
4293  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4294echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4295   { (exit 1); exit 1; }; }
4296fi
4297
4298else
4299  ac_cv_path_GREP=$GREP
4300fi
4301
4302
4303fi
4304{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4305echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4306 GREP="$ac_cv_path_GREP"
4307
4308
4309{ echo "$as_me:$LINENO: checking for egrep" >&5
4310echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4311if test "${ac_cv_path_EGREP+set}" = set; then
4312  echo $ECHO_N "(cached) $ECHO_C" >&6
4313else
4314  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4315   then ac_cv_path_EGREP="$GREP -E"
4316   else
4317     # Extract the first word of "egrep" to use in msg output
4318if test -z "$EGREP"; then
4319set dummy egrep; ac_prog_name=$2
4320if test "${ac_cv_path_EGREP+set}" = set; then
4321  echo $ECHO_N "(cached) $ECHO_C" >&6
4322else
4323  ac_path_EGREP_found=false
4324# Loop through the user's path and test for each of PROGNAME-LIST
4325as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4326for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4327do
4328  IFS=$as_save_IFS
4329  test -z "$as_dir" && as_dir=.
4330  for ac_prog in egrep; do
4331  for ac_exec_ext in '' $ac_executable_extensions; do
4332    ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4333    { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4334    # Check for GNU ac_path_EGREP and select it if it is found.
4335  # Check for GNU $ac_path_EGREP
4336case `"$ac_path_EGREP" --version 2>&1` in
4337*GNU*)
4338  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4339*)
4340  ac_count=0
4341  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4342  while :
4343  do
4344    cat "conftest.in" "conftest.in" >"conftest.tmp"
4345    mv "conftest.tmp" "conftest.in"
4346    cp "conftest.in" "conftest.nl"
4347    echo 'EGREP' >> "conftest.nl"
4348    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4349    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4350    ac_count=`expr $ac_count + 1`
4351    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4352      # Best one so far, save it but keep looking for a better one
4353      ac_cv_path_EGREP="$ac_path_EGREP"
4354      ac_path_EGREP_max=$ac_count
4355    fi
4356    # 10*(2^10) chars as input seems more than enough
4357    test $ac_count -gt 10 && break
4358  done
4359  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4360esac
4361
4362
4363    $ac_path_EGREP_found && break 3
4364  done
4365done
4366
4367done
4368IFS=$as_save_IFS
4369
4370
4371fi
4372
4373EGREP="$ac_cv_path_EGREP"
4374if test -z "$EGREP"; then
4375  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4376echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4377   { (exit 1); exit 1; }; }
4378fi
4379
4380else
4381  ac_cv_path_EGREP=$EGREP
4382fi
4383
4384
4385   fi
4386fi
4387{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4388echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4389 EGREP="$ac_cv_path_EGREP"
4390
4391
4392{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4393echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4394if test "${ac_cv_header_stdc+set}" = set; then
4395  echo $ECHO_N "(cached) $ECHO_C" >&6
4396else
4397  cat >conftest.$ac_ext <<_ACEOF
4398/* confdefs.h.  */
4399_ACEOF
4400cat confdefs.h >>conftest.$ac_ext
4401cat >>conftest.$ac_ext <<_ACEOF
4402/* end confdefs.h.  */
4403#include <stdlib.h>
4404#include <stdarg.h>
4405#include <string.h>
4406#include <float.h>
4407
4408int
4409main ()
4410{
4411
4412  ;
4413  return 0;
4414}
4415_ACEOF
4416rm -f conftest.$ac_objext
4417if { (ac_try="$ac_compile"
4418case "(($ac_try" in
4419  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4420  *) ac_try_echo=$ac_try;;
4421esac
4422eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4423  (eval "$ac_compile") 2>conftest.er1
4424  ac_status=$?
4425  grep -v '^ *+' conftest.er1 >conftest.err
4426  rm -f conftest.er1
4427  cat conftest.err >&5
4428  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4429  (exit $ac_status); } && {
4430	 test -z "$ac_c_werror_flag" ||
4431	 test ! -s conftest.err
4432       } && test -s conftest.$ac_objext; then
4433  ac_cv_header_stdc=yes
4434else
4435  echo "$as_me: failed program was:" >&5
4436sed 's/^/| /' conftest.$ac_ext >&5
4437
4438	ac_cv_header_stdc=no
4439fi
4440
4441rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4442
4443if test $ac_cv_header_stdc = yes; then
4444  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4445  cat >conftest.$ac_ext <<_ACEOF
4446/* confdefs.h.  */
4447_ACEOF
4448cat confdefs.h >>conftest.$ac_ext
4449cat >>conftest.$ac_ext <<_ACEOF
4450/* end confdefs.h.  */
4451#include <string.h>
4452
4453_ACEOF
4454if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4455  $EGREP "memchr" >/dev/null 2>&1; then
4456  :
4457else
4458  ac_cv_header_stdc=no
4459fi
4460rm -f conftest*
4461
4462fi
4463
4464if test $ac_cv_header_stdc = yes; then
4465  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4466  cat >conftest.$ac_ext <<_ACEOF
4467/* confdefs.h.  */
4468_ACEOF
4469cat confdefs.h >>conftest.$ac_ext
4470cat >>conftest.$ac_ext <<_ACEOF
4471/* end confdefs.h.  */
4472#include <stdlib.h>
4473
4474_ACEOF
4475if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4476  $EGREP "free" >/dev/null 2>&1; then
4477  :
4478else
4479  ac_cv_header_stdc=no
4480fi
4481rm -f conftest*
4482
4483fi
4484
4485if test $ac_cv_header_stdc = yes; then
4486  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4487  if test "$cross_compiling" = yes; then
4488  :
4489else
4490  cat >conftest.$ac_ext <<_ACEOF
4491/* confdefs.h.  */
4492_ACEOF
4493cat confdefs.h >>conftest.$ac_ext
4494cat >>conftest.$ac_ext <<_ACEOF
4495/* end confdefs.h.  */
4496#include <ctype.h>
4497#include <stdlib.h>
4498#if ((' ' & 0x0FF) == 0x020)
4499# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4500# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4501#else
4502# define ISLOWER(c) \
4503		   (('a' <= (c) && (c) <= 'i') \
4504		     || ('j' <= (c) && (c) <= 'r') \
4505		     || ('s' <= (c) && (c) <= 'z'))
4506# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4507#endif
4508
4509#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4510int
4511main ()
4512{
4513  int i;
4514  for (i = 0; i < 256; i++)
4515    if (XOR (islower (i), ISLOWER (i))
4516	|| toupper (i) != TOUPPER (i))
4517      return 2;
4518  return 0;
4519}
4520_ACEOF
4521rm -f conftest$ac_exeext
4522if { (ac_try="$ac_link"
4523case "(($ac_try" in
4524  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4525  *) ac_try_echo=$ac_try;;
4526esac
4527eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4528  (eval "$ac_link") 2>&5
4529  ac_status=$?
4530  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4531  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4532  { (case "(($ac_try" in
4533  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4534  *) ac_try_echo=$ac_try;;
4535esac
4536eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4537  (eval "$ac_try") 2>&5
4538  ac_status=$?
4539  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4540  (exit $ac_status); }; }; then
4541  :
4542else
4543  echo "$as_me: program exited with status $ac_status" >&5
4544echo "$as_me: failed program was:" >&5
4545sed 's/^/| /' conftest.$ac_ext >&5
4546
4547( exit $ac_status )
4548ac_cv_header_stdc=no
4549fi
4550rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4551fi
4552
4553
4554fi
4555fi
4556{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4557echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4558if test $ac_cv_header_stdc = yes; then
4559
4560cat >>confdefs.h <<\_ACEOF
4561#define STDC_HEADERS 1
4562_ACEOF
4563
4564fi
4565
4566# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4567
4568
4569
4570
4571
4572
4573
4574
4575
4576for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4577		  inttypes.h stdint.h unistd.h
4578do
4579as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4580{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4581echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4582if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4583  echo $ECHO_N "(cached) $ECHO_C" >&6
4584else
4585  cat >conftest.$ac_ext <<_ACEOF
4586/* confdefs.h.  */
4587_ACEOF
4588cat confdefs.h >>conftest.$ac_ext
4589cat >>conftest.$ac_ext <<_ACEOF
4590/* end confdefs.h.  */
4591$ac_includes_default
4592
4593#include <$ac_header>
4594_ACEOF
4595rm -f conftest.$ac_objext
4596if { (ac_try="$ac_compile"
4597case "(($ac_try" in
4598  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4599  *) ac_try_echo=$ac_try;;
4600esac
4601eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4602  (eval "$ac_compile") 2>conftest.er1
4603  ac_status=$?
4604  grep -v '^ *+' conftest.er1 >conftest.err
4605  rm -f conftest.er1
4606  cat conftest.err >&5
4607  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4608  (exit $ac_status); } && {
4609	 test -z "$ac_c_werror_flag" ||
4610	 test ! -s conftest.err
4611       } && test -s conftest.$ac_objext; then
4612  eval "$as_ac_Header=yes"
4613else
4614  echo "$as_me: failed program was:" >&5
4615sed 's/^/| /' conftest.$ac_ext >&5
4616
4617	eval "$as_ac_Header=no"
4618fi
4619
4620rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4621fi
4622ac_res=`eval echo '${'$as_ac_Header'}'`
4623	       { echo "$as_me:$LINENO: result: $ac_res" >&5
4624echo "${ECHO_T}$ac_res" >&6; }
4625if test `eval echo '${'$as_ac_Header'}'` = yes; then
4626  cat >>confdefs.h <<_ACEOF
4627#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4628_ACEOF
4629
4630fi
4631
4632done
4633
4634
4635
4636
4637
4638
4639for ac_header in sys/ioccom.h sys/sockio.h limits.h paths.h
4640do
4641as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4642if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4643  { echo "$as_me:$LINENO: checking for $ac_header" >&5
4644echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4645if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4646  echo $ECHO_N "(cached) $ECHO_C" >&6
4647fi
4648ac_res=`eval echo '${'$as_ac_Header'}'`
4649	       { echo "$as_me:$LINENO: result: $ac_res" >&5
4650echo "${ECHO_T}$ac_res" >&6; }
4651else
4652  # Is the header compilable?
4653{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
4654echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4655cat >conftest.$ac_ext <<_ACEOF
4656/* confdefs.h.  */
4657_ACEOF
4658cat confdefs.h >>conftest.$ac_ext
4659cat >>conftest.$ac_ext <<_ACEOF
4660/* end confdefs.h.  */
4661$ac_includes_default
4662#include <$ac_header>
4663_ACEOF
4664rm -f conftest.$ac_objext
4665if { (ac_try="$ac_compile"
4666case "(($ac_try" in
4667  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4668  *) ac_try_echo=$ac_try;;
4669esac
4670eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4671  (eval "$ac_compile") 2>conftest.er1
4672  ac_status=$?
4673  grep -v '^ *+' conftest.er1 >conftest.err
4674  rm -f conftest.er1
4675  cat conftest.err >&5
4676  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4677  (exit $ac_status); } && {
4678	 test -z "$ac_c_werror_flag" ||
4679	 test ! -s conftest.err
4680       } && test -s conftest.$ac_objext; then
4681  ac_header_compiler=yes
4682else
4683  echo "$as_me: failed program was:" >&5
4684sed 's/^/| /' conftest.$ac_ext >&5
4685
4686	ac_header_compiler=no
4687fi
4688
4689rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4690{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4691echo "${ECHO_T}$ac_header_compiler" >&6; }
4692
4693# Is the header present?
4694{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
4695echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4696cat >conftest.$ac_ext <<_ACEOF
4697/* confdefs.h.  */
4698_ACEOF
4699cat confdefs.h >>conftest.$ac_ext
4700cat >>conftest.$ac_ext <<_ACEOF
4701/* end confdefs.h.  */
4702#include <$ac_header>
4703_ACEOF
4704if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 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); } >/dev/null && {
4717	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4718	 test ! -s conftest.err
4719       }; then
4720  ac_header_preproc=yes
4721else
4722  echo "$as_me: failed program was:" >&5
4723sed 's/^/| /' conftest.$ac_ext >&5
4724
4725  ac_header_preproc=no
4726fi
4727
4728rm -f conftest.err conftest.$ac_ext
4729{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4730echo "${ECHO_T}$ac_header_preproc" >&6; }
4731
4732# So?  What about this header?
4733case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4734  yes:no: )
4735    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4736echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4737    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4738echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4739    ac_header_preproc=yes
4740    ;;
4741  no:yes:* )
4742    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4743echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4744    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4745echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4746    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4747echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4748    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4749echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4750    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4751echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4752    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4753echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4754
4755    ;;
4756esac
4757{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4758echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4759if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4760  echo $ECHO_N "(cached) $ECHO_C" >&6
4761else
4762  eval "$as_ac_Header=\$ac_header_preproc"
4763fi
4764ac_res=`eval echo '${'$as_ac_Header'}'`
4765	       { echo "$as_me:$LINENO: result: $ac_res" >&5
4766echo "${ECHO_T}$ac_res" >&6; }
4767
4768fi
4769if test `eval echo '${'$as_ac_Header'}'` = yes; then
4770  cat >>confdefs.h <<_ACEOF
4771#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4772_ACEOF
4773
4774fi
4775
4776done
4777
4778
4779for ac_header in net/pfvar.h
4780do
4781as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4782{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4783echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4784if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4785  echo $ECHO_N "(cached) $ECHO_C" >&6
4786else
4787  cat >conftest.$ac_ext <<_ACEOF
4788/* confdefs.h.  */
4789_ACEOF
4790cat confdefs.h >>conftest.$ac_ext
4791cat >>conftest.$ac_ext <<_ACEOF
4792/* end confdefs.h.  */
4793#include <sys/types.h>
4794#include <sys/socket.h>
4795#include <net/if.h>
4796
4797#include <$ac_header>
4798_ACEOF
4799rm -f conftest.$ac_objext
4800if { (ac_try="$ac_compile"
4801case "(($ac_try" in
4802  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4803  *) ac_try_echo=$ac_try;;
4804esac
4805eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4806  (eval "$ac_compile") 2>conftest.er1
4807  ac_status=$?
4808  grep -v '^ *+' conftest.er1 >conftest.err
4809  rm -f conftest.er1
4810  cat conftest.err >&5
4811  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4812  (exit $ac_status); } && {
4813	 test -z "$ac_c_werror_flag" ||
4814	 test ! -s conftest.err
4815       } && test -s conftest.$ac_objext; then
4816  eval "$as_ac_Header=yes"
4817else
4818  echo "$as_me: failed program was:" >&5
4819sed 's/^/| /' conftest.$ac_ext >&5
4820
4821	eval "$as_ac_Header=no"
4822fi
4823
4824rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4825fi
4826ac_res=`eval echo '${'$as_ac_Header'}'`
4827	       { echo "$as_me:$LINENO: result: $ac_res" >&5
4828echo "${ECHO_T}$ac_res" >&6; }
4829if test `eval echo '${'$as_ac_Header'}'` = yes; then
4830  cat >>confdefs.h <<_ACEOF
4831#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4832_ACEOF
4833
4834fi
4835
4836done
4837
4838if test "$ac_cv_header_net_pfvar_h" = yes; then
4839	#
4840	# Check for various PF actions.
4841	#
4842	{ echo "$as_me:$LINENO: checking whether net/pfvar.h defines PF_NAT through PF_NORDR" >&5
4843echo $ECHO_N "checking whether net/pfvar.h defines PF_NAT through PF_NORDR... $ECHO_C" >&6; }
4844	cat >conftest.$ac_ext <<_ACEOF
4845/* confdefs.h.  */
4846_ACEOF
4847cat confdefs.h >>conftest.$ac_ext
4848cat >>conftest.$ac_ext <<_ACEOF
4849/* end confdefs.h.  */
4850#include <sys/types.h>
4851	    #include <sys/socket.h>
4852	    #include <net/if.h>
4853	    #include <net/pfvar.h>
4854int
4855main ()
4856{
4857return PF_NAT+PF_NONAT+PF_BINAT+PF_NOBINAT+PF_RDR+PF_NORDR;
4858  ;
4859  return 0;
4860}
4861_ACEOF
4862rm -f conftest.$ac_objext
4863if { (ac_try="$ac_compile"
4864case "(($ac_try" in
4865  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4866  *) ac_try_echo=$ac_try;;
4867esac
4868eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4869  (eval "$ac_compile") 2>conftest.er1
4870  ac_status=$?
4871  grep -v '^ *+' conftest.er1 >conftest.err
4872  rm -f conftest.er1
4873  cat conftest.err >&5
4874  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4875  (exit $ac_status); } && {
4876	 test -z "$ac_c_werror_flag" ||
4877	 test ! -s conftest.err
4878       } && test -s conftest.$ac_objext; then
4879
4880		{ echo "$as_me:$LINENO: result: yes" >&5
4881echo "${ECHO_T}yes" >&6; }
4882
4883cat >>confdefs.h <<\_ACEOF
4884#define HAVE_PF_NAT_THROUGH_PF_NORDR 1
4885_ACEOF
4886
4887
4888else
4889  echo "$as_me: failed program was:" >&5
4890sed 's/^/| /' conftest.$ac_ext >&5
4891
4892	{ echo "$as_me:$LINENO: result: no" >&5
4893echo "${ECHO_T}no" >&6; }
4894fi
4895
4896rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4897fi
4898
4899for ac_header in netinet/if_ether.h
4900do
4901as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4902{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4903echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4904if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4905  echo $ECHO_N "(cached) $ECHO_C" >&6
4906else
4907  cat >conftest.$ac_ext <<_ACEOF
4908/* confdefs.h.  */
4909_ACEOF
4910cat confdefs.h >>conftest.$ac_ext
4911cat >>conftest.$ac_ext <<_ACEOF
4912/* end confdefs.h.  */
4913#include <sys/types.h>
4914#include <sys/socket.h>
4915
4916#include <$ac_header>
4917_ACEOF
4918rm -f conftest.$ac_objext
4919if { (ac_try="$ac_compile"
4920case "(($ac_try" in
4921  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4922  *) ac_try_echo=$ac_try;;
4923esac
4924eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4925  (eval "$ac_compile") 2>conftest.er1
4926  ac_status=$?
4927  grep -v '^ *+' conftest.er1 >conftest.err
4928  rm -f conftest.er1
4929  cat conftest.err >&5
4930  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4931  (exit $ac_status); } && {
4932	 test -z "$ac_c_werror_flag" ||
4933	 test ! -s conftest.err
4934       } && test -s conftest.$ac_objext; then
4935  eval "$as_ac_Header=yes"
4936else
4937  echo "$as_me: failed program was:" >&5
4938sed 's/^/| /' conftest.$ac_ext >&5
4939
4940	eval "$as_ac_Header=no"
4941fi
4942
4943rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4944fi
4945ac_res=`eval echo '${'$as_ac_Header'}'`
4946	       { echo "$as_me:$LINENO: result: $ac_res" >&5
4947echo "${ECHO_T}$ac_res" >&6; }
4948if test `eval echo '${'$as_ac_Header'}'` = yes; then
4949  cat >>confdefs.h <<_ACEOF
4950#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4951_ACEOF
4952
4953fi
4954
4955done
4956
4957if test "$ac_cv_header_netinet_if_ether_h" != yes; then
4958	#
4959	# The simple test didn't work.
4960	# Do we need to include <net/if.h> first?
4961	# Unset ac_cv_header_netinet_if_ether_h so we don't
4962	# treat the previous failure as a cached value and
4963	# suppress the next test.
4964	#
4965	{ echo "$as_me:$LINENO: Rechecking with some additional includes" >&5
4966echo "$as_me: Rechecking with some additional includes" >&6;}
4967	unset ac_cv_header_netinet_if_ether_h
4968
4969for ac_header in netinet/if_ether.h
4970do
4971as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4972{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4973echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4974if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4975  echo $ECHO_N "(cached) $ECHO_C" >&6
4976else
4977  cat >conftest.$ac_ext <<_ACEOF
4978/* confdefs.h.  */
4979_ACEOF
4980cat confdefs.h >>conftest.$ac_ext
4981cat >>conftest.$ac_ext <<_ACEOF
4982/* end confdefs.h.  */
4983#include <sys/types.h>
4984#include <sys/socket.h>
4985#include <netinet/in.h>
4986struct mbuf;
4987struct rtentry;
4988#include <net/if.h>
4989
4990#include <$ac_header>
4991_ACEOF
4992rm -f conftest.$ac_objext
4993if { (ac_try="$ac_compile"
4994case "(($ac_try" in
4995  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4996  *) ac_try_echo=$ac_try;;
4997esac
4998eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4999  (eval "$ac_compile") 2>conftest.er1
5000  ac_status=$?
5001  grep -v '^ *+' conftest.er1 >conftest.err
5002  rm -f conftest.er1
5003  cat conftest.err >&5
5004  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5005  (exit $ac_status); } && {
5006	 test -z "$ac_c_werror_flag" ||
5007	 test ! -s conftest.err
5008       } && test -s conftest.$ac_objext; then
5009  eval "$as_ac_Header=yes"
5010else
5011  echo "$as_me: failed program was:" >&5
5012sed 's/^/| /' conftest.$ac_ext >&5
5013
5014	eval "$as_ac_Header=no"
5015fi
5016
5017rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5018fi
5019ac_res=`eval echo '${'$as_ac_Header'}'`
5020	       { echo "$as_me:$LINENO: result: $ac_res" >&5
5021echo "${ECHO_T}$ac_res" >&6; }
5022if test `eval echo '${'$as_ac_Header'}'` = yes; then
5023  cat >>confdefs.h <<_ACEOF
5024#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5025_ACEOF
5026
5027fi
5028
5029done
5030
5031fi
5032
5033if test "$GCC" = yes ; then
5034	    { echo "$as_me:$LINENO: checking for ANSI ioctl definitions" >&5
5035echo $ECHO_N "checking for ANSI ioctl definitions... $ECHO_C" >&6; }
5036	    if test "${ac_cv_lbl_gcc_fixincludes+set}" = set; then
5037  echo $ECHO_N "(cached) $ECHO_C" >&6
5038else
5039  cat >conftest.$ac_ext <<_ACEOF
5040/* confdefs.h.  */
5041_ACEOF
5042cat confdefs.h >>conftest.$ac_ext
5043cat >>conftest.$ac_ext <<_ACEOF
5044/* end confdefs.h.  */
5045/*
5046		     * This generates a "duplicate case value" when fixincludes
5047		     * has not be run.
5048		     */
5049#		include <sys/types.h>
5050#		include <sys/time.h>
5051#		include <sys/ioctl.h>
5052#		ifdef HAVE_SYS_IOCCOM_H
5053#		include <sys/ioccom.h>
5054#		endif
5055int
5056main ()
5057{
5058switch (0) {
5059		    case _IO('A', 1):;
5060		    case _IO('B', 1):;
5061		    }
5062  ;
5063  return 0;
5064}
5065_ACEOF
5066rm -f conftest.$ac_objext
5067if { (ac_try="$ac_compile"
5068case "(($ac_try" in
5069  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5070  *) ac_try_echo=$ac_try;;
5071esac
5072eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5073  (eval "$ac_compile") 2>conftest.er1
5074  ac_status=$?
5075  grep -v '^ *+' conftest.er1 >conftest.err
5076  rm -f conftest.er1
5077  cat conftest.err >&5
5078  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5079  (exit $ac_status); } && {
5080	 test -z "$ac_c_werror_flag" ||
5081	 test ! -s conftest.err
5082       } && test -s conftest.$ac_objext; then
5083  ac_cv_lbl_gcc_fixincludes=yes
5084else
5085  echo "$as_me: failed program was:" >&5
5086sed 's/^/| /' conftest.$ac_ext >&5
5087
5088	ac_cv_lbl_gcc_fixincludes=no
5089fi
5090
5091rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5092fi
5093
5094	    { echo "$as_me:$LINENO: result: $ac_cv_lbl_gcc_fixincludes" >&5
5095echo "${ECHO_T}$ac_cv_lbl_gcc_fixincludes" >&6; }
5096	    if test $ac_cv_lbl_gcc_fixincludes = no ; then
5097		    # Don't cache failure
5098		    unset ac_cv_lbl_gcc_fixincludes
5099		    { { echo "$as_me:$LINENO: error: see the INSTALL for more info" >&5
5100echo "$as_me: error: see the INSTALL for more info" >&2;}
5101   { (exit 1); exit 1; }; }
5102	    fi
5103    fi
5104
5105
5106
5107for ac_func in strerror strlcpy
5108do
5109as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5110{ echo "$as_me:$LINENO: checking for $ac_func" >&5
5111echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5112if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5113  echo $ECHO_N "(cached) $ECHO_C" >&6
5114else
5115  cat >conftest.$ac_ext <<_ACEOF
5116/* confdefs.h.  */
5117_ACEOF
5118cat confdefs.h >>conftest.$ac_ext
5119cat >>conftest.$ac_ext <<_ACEOF
5120/* end confdefs.h.  */
5121/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5122   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5123#define $ac_func innocuous_$ac_func
5124
5125/* System header to define __stub macros and hopefully few prototypes,
5126    which can conflict with char $ac_func (); below.
5127    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5128    <limits.h> exists even on freestanding compilers.  */
5129
5130#ifdef __STDC__
5131# include <limits.h>
5132#else
5133# include <assert.h>
5134#endif
5135
5136#undef $ac_func
5137
5138/* Override any GCC internal prototype to avoid an error.
5139   Use char because int might match the return type of a GCC
5140   builtin and then its argument prototype would still apply.  */
5141#ifdef __cplusplus
5142extern "C"
5143#endif
5144char $ac_func ();
5145/* The GNU C library defines this for functions which it implements
5146    to always fail with ENOSYS.  Some functions are actually named
5147    something starting with __ and the normal name is an alias.  */
5148#if defined __stub_$ac_func || defined __stub___$ac_func
5149choke me
5150#endif
5151
5152int
5153main ()
5154{
5155return $ac_func ();
5156  ;
5157  return 0;
5158}
5159_ACEOF
5160rm -f conftest.$ac_objext conftest$ac_exeext
5161if { (ac_try="$ac_link"
5162case "(($ac_try" in
5163  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5164  *) ac_try_echo=$ac_try;;
5165esac
5166eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5167  (eval "$ac_link") 2>conftest.er1
5168  ac_status=$?
5169  grep -v '^ *+' conftest.er1 >conftest.err
5170  rm -f conftest.er1
5171  cat conftest.err >&5
5172  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5173  (exit $ac_status); } && {
5174	 test -z "$ac_c_werror_flag" ||
5175	 test ! -s conftest.err
5176       } && test -s conftest$ac_exeext &&
5177       $as_test_x conftest$ac_exeext; then
5178  eval "$as_ac_var=yes"
5179else
5180  echo "$as_me: failed program was:" >&5
5181sed 's/^/| /' conftest.$ac_ext >&5
5182
5183	eval "$as_ac_var=no"
5184fi
5185
5186rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5187      conftest$ac_exeext conftest.$ac_ext
5188fi
5189ac_res=`eval echo '${'$as_ac_var'}'`
5190	       { echo "$as_me:$LINENO: result: $ac_res" >&5
5191echo "${ECHO_T}$ac_res" >&6; }
5192if test `eval echo '${'$as_ac_var'}'` = yes; then
5193  cat >>confdefs.h <<_ACEOF
5194#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5195_ACEOF
5196
5197fi
5198done
5199
5200
5201needsnprintf=no
5202
5203
5204for ac_func in vsnprintf snprintf
5205do
5206as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5207{ echo "$as_me:$LINENO: checking for $ac_func" >&5
5208echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5209if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5210  echo $ECHO_N "(cached) $ECHO_C" >&6
5211else
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 $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5219   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5220#define $ac_func innocuous_$ac_func
5221
5222/* System header to define __stub macros and hopefully few prototypes,
5223    which can conflict with char $ac_func (); below.
5224    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5225    <limits.h> exists even on freestanding compilers.  */
5226
5227#ifdef __STDC__
5228# include <limits.h>
5229#else
5230# include <assert.h>
5231#endif
5232
5233#undef $ac_func
5234
5235/* Override any GCC internal prototype to avoid an error.
5236   Use char because int might match the return type of a GCC
5237   builtin and then its argument prototype would still apply.  */
5238#ifdef __cplusplus
5239extern "C"
5240#endif
5241char $ac_func ();
5242/* The GNU C library defines this for functions which it implements
5243    to always fail with ENOSYS.  Some functions are actually named
5244    something starting with __ and the normal name is an alias.  */
5245#if defined __stub_$ac_func || defined __stub___$ac_func
5246choke me
5247#endif
5248
5249int
5250main ()
5251{
5252return $ac_func ();
5253  ;
5254  return 0;
5255}
5256_ACEOF
5257rm -f conftest.$ac_objext conftest$ac_exeext
5258if { (ac_try="$ac_link"
5259case "(($ac_try" in
5260  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5261  *) ac_try_echo=$ac_try;;
5262esac
5263eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5264  (eval "$ac_link") 2>conftest.er1
5265  ac_status=$?
5266  grep -v '^ *+' conftest.er1 >conftest.err
5267  rm -f conftest.er1
5268  cat conftest.err >&5
5269  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5270  (exit $ac_status); } && {
5271	 test -z "$ac_c_werror_flag" ||
5272	 test ! -s conftest.err
5273       } && test -s conftest$ac_exeext &&
5274       $as_test_x conftest$ac_exeext; then
5275  eval "$as_ac_var=yes"
5276else
5277  echo "$as_me: failed program was:" >&5
5278sed 's/^/| /' conftest.$ac_ext >&5
5279
5280	eval "$as_ac_var=no"
5281fi
5282
5283rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5284      conftest$ac_exeext conftest.$ac_ext
5285fi
5286ac_res=`eval echo '${'$as_ac_var'}'`
5287	       { echo "$as_me:$LINENO: result: $ac_res" >&5
5288echo "${ECHO_T}$ac_res" >&6; }
5289if test `eval echo '${'$as_ac_var'}'` = yes; then
5290  cat >>confdefs.h <<_ACEOF
5291#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5292_ACEOF
5293
5294else
5295  needsnprintf=yes
5296fi
5297done
5298
5299if test $needsnprintf = yes; then
5300	case " $LIBOBJS " in
5301  *" snprintf.$ac_objext "* ) ;;
5302  *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
5303 ;;
5304esac
5305
5306fi
5307
5308#
5309# Do this before checking for ether_hostton(), as it's a
5310# "gethostbyname() -ish function".
5311#
5312
5313    # Most operating systems have gethostbyname() in the default searched
5314    # libraries (i.e. libc):
5315    # Some OSes (eg. Solaris) place it in libnsl
5316    # Some strange OSes (SINIX) have it in libsocket:
5317    { echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
5318echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6; }
5319if test "${ac_cv_search_gethostbyname+set}" = set; then
5320  echo $ECHO_N "(cached) $ECHO_C" >&6
5321else
5322  ac_func_search_save_LIBS=$LIBS
5323cat >conftest.$ac_ext <<_ACEOF
5324/* confdefs.h.  */
5325_ACEOF
5326cat confdefs.h >>conftest.$ac_ext
5327cat >>conftest.$ac_ext <<_ACEOF
5328/* end confdefs.h.  */
5329
5330/* Override any GCC internal prototype to avoid an error.
5331   Use char because int might match the return type of a GCC
5332   builtin and then its argument prototype would still apply.  */
5333#ifdef __cplusplus
5334extern "C"
5335#endif
5336char gethostbyname ();
5337int
5338main ()
5339{
5340return gethostbyname ();
5341  ;
5342  return 0;
5343}
5344_ACEOF
5345for ac_lib in '' nsl socket resolv; do
5346  if test -z "$ac_lib"; then
5347    ac_res="none required"
5348  else
5349    ac_res=-l$ac_lib
5350    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5351  fi
5352  rm -f conftest.$ac_objext conftest$ac_exeext
5353if { (ac_try="$ac_link"
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_link") 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); } && {
5366	 test -z "$ac_c_werror_flag" ||
5367	 test ! -s conftest.err
5368       } && test -s conftest$ac_exeext &&
5369       $as_test_x conftest$ac_exeext; then
5370  ac_cv_search_gethostbyname=$ac_res
5371else
5372  echo "$as_me: failed program was:" >&5
5373sed 's/^/| /' conftest.$ac_ext >&5
5374
5375
5376fi
5377
5378rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5379      conftest$ac_exeext
5380  if test "${ac_cv_search_gethostbyname+set}" = set; then
5381  break
5382fi
5383done
5384if test "${ac_cv_search_gethostbyname+set}" = set; then
5385  :
5386else
5387  ac_cv_search_gethostbyname=no
5388fi
5389rm conftest.$ac_ext
5390LIBS=$ac_func_search_save_LIBS
5391fi
5392{ echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
5393echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6; }
5394ac_res=$ac_cv_search_gethostbyname
5395if test "$ac_res" != no; then
5396  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5397
5398fi
5399
5400    # Unfortunately libsocket sometimes depends on libnsl and
5401    # AC_SEARCH_LIBS isn't up to the task of handling dependencies like this.
5402    if test "$ac_cv_search_gethostbyname" = "no"
5403    then
5404	{ echo "$as_me:$LINENO: checking for gethostbyname in -lsocket" >&5
5405echo $ECHO_N "checking for gethostbyname in -lsocket... $ECHO_C" >&6; }
5406if test "${ac_cv_lib_socket_gethostbyname+set}" = set; then
5407  echo $ECHO_N "(cached) $ECHO_C" >&6
5408else
5409  ac_check_lib_save_LIBS=$LIBS
5410LIBS="-lsocket -lnsl $LIBS"
5411cat >conftest.$ac_ext <<_ACEOF
5412/* confdefs.h.  */
5413_ACEOF
5414cat confdefs.h >>conftest.$ac_ext
5415cat >>conftest.$ac_ext <<_ACEOF
5416/* end confdefs.h.  */
5417
5418/* Override any GCC internal prototype to avoid an error.
5419   Use char because int might match the return type of a GCC
5420   builtin and then its argument prototype would still apply.  */
5421#ifdef __cplusplus
5422extern "C"
5423#endif
5424char gethostbyname ();
5425int
5426main ()
5427{
5428return gethostbyname ();
5429  ;
5430  return 0;
5431}
5432_ACEOF
5433rm -f conftest.$ac_objext conftest$ac_exeext
5434if { (ac_try="$ac_link"
5435case "(($ac_try" in
5436  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5437  *) ac_try_echo=$ac_try;;
5438esac
5439eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5440  (eval "$ac_link") 2>conftest.er1
5441  ac_status=$?
5442  grep -v '^ *+' conftest.er1 >conftest.err
5443  rm -f conftest.er1
5444  cat conftest.err >&5
5445  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5446  (exit $ac_status); } && {
5447	 test -z "$ac_c_werror_flag" ||
5448	 test ! -s conftest.err
5449       } && test -s conftest$ac_exeext &&
5450       $as_test_x conftest$ac_exeext; then
5451  ac_cv_lib_socket_gethostbyname=yes
5452else
5453  echo "$as_me: failed program was:" >&5
5454sed 's/^/| /' conftest.$ac_ext >&5
5455
5456	ac_cv_lib_socket_gethostbyname=no
5457fi
5458
5459rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5460      conftest$ac_exeext conftest.$ac_ext
5461LIBS=$ac_check_lib_save_LIBS
5462fi
5463{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_gethostbyname" >&5
5464echo "${ECHO_T}$ac_cv_lib_socket_gethostbyname" >&6; }
5465if test $ac_cv_lib_socket_gethostbyname = yes; then
5466  LIBS="-lsocket -lnsl $LIBS"
5467fi
5468
5469    fi
5470    { echo "$as_me:$LINENO: checking for library containing socket" >&5
5471echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6; }
5472if test "${ac_cv_search_socket+set}" = set; then
5473  echo $ECHO_N "(cached) $ECHO_C" >&6
5474else
5475  ac_func_search_save_LIBS=$LIBS
5476cat >conftest.$ac_ext <<_ACEOF
5477/* confdefs.h.  */
5478_ACEOF
5479cat confdefs.h >>conftest.$ac_ext
5480cat >>conftest.$ac_ext <<_ACEOF
5481/* end confdefs.h.  */
5482
5483/* Override any GCC internal prototype to avoid an error.
5484   Use char because int might match the return type of a GCC
5485   builtin and then its argument prototype would still apply.  */
5486#ifdef __cplusplus
5487extern "C"
5488#endif
5489char socket ();
5490int
5491main ()
5492{
5493return socket ();
5494  ;
5495  return 0;
5496}
5497_ACEOF
5498for ac_lib in '' socket; do
5499  if test -z "$ac_lib"; then
5500    ac_res="none required"
5501  else
5502    ac_res=-l$ac_lib
5503    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5504  fi
5505  rm -f conftest.$ac_objext conftest$ac_exeext
5506if { (ac_try="$ac_link"
5507case "(($ac_try" in
5508  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5509  *) ac_try_echo=$ac_try;;
5510esac
5511eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5512  (eval "$ac_link") 2>conftest.er1
5513  ac_status=$?
5514  grep -v '^ *+' conftest.er1 >conftest.err
5515  rm -f conftest.er1
5516  cat conftest.err >&5
5517  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5518  (exit $ac_status); } && {
5519	 test -z "$ac_c_werror_flag" ||
5520	 test ! -s conftest.err
5521       } && test -s conftest$ac_exeext &&
5522       $as_test_x conftest$ac_exeext; then
5523  ac_cv_search_socket=$ac_res
5524else
5525  echo "$as_me: failed program was:" >&5
5526sed 's/^/| /' conftest.$ac_ext >&5
5527
5528
5529fi
5530
5531rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5532      conftest$ac_exeext
5533  if test "${ac_cv_search_socket+set}" = set; then
5534  break
5535fi
5536done
5537if test "${ac_cv_search_socket+set}" = set; then
5538  :
5539else
5540  ac_cv_search_socket=no
5541fi
5542rm conftest.$ac_ext
5543LIBS=$ac_func_search_save_LIBS
5544fi
5545{ echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
5546echo "${ECHO_T}$ac_cv_search_socket" >&6; }
5547ac_res=$ac_cv_search_socket
5548if test "$ac_res" != no; then
5549  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5550
5551else
5552  { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
5553echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
5554if test "${ac_cv_lib_socket_socket+set}" = set; then
5555  echo $ECHO_N "(cached) $ECHO_C" >&6
5556else
5557  ac_check_lib_save_LIBS=$LIBS
5558LIBS="-lsocket -lnsl $LIBS"
5559cat >conftest.$ac_ext <<_ACEOF
5560/* confdefs.h.  */
5561_ACEOF
5562cat confdefs.h >>conftest.$ac_ext
5563cat >>conftest.$ac_ext <<_ACEOF
5564/* end confdefs.h.  */
5565
5566/* Override any GCC internal prototype to avoid an error.
5567   Use char because int might match the return type of a GCC
5568   builtin and then its argument prototype would still apply.  */
5569#ifdef __cplusplus
5570extern "C"
5571#endif
5572char socket ();
5573int
5574main ()
5575{
5576return socket ();
5577  ;
5578  return 0;
5579}
5580_ACEOF
5581rm -f conftest.$ac_objext conftest$ac_exeext
5582if { (ac_try="$ac_link"
5583case "(($ac_try" in
5584  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5585  *) ac_try_echo=$ac_try;;
5586esac
5587eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5588  (eval "$ac_link") 2>conftest.er1
5589  ac_status=$?
5590  grep -v '^ *+' conftest.er1 >conftest.err
5591  rm -f conftest.er1
5592  cat conftest.err >&5
5593  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5594  (exit $ac_status); } && {
5595	 test -z "$ac_c_werror_flag" ||
5596	 test ! -s conftest.err
5597       } && test -s conftest$ac_exeext &&
5598       $as_test_x conftest$ac_exeext; then
5599  ac_cv_lib_socket_socket=yes
5600else
5601  echo "$as_me: failed program was:" >&5
5602sed 's/^/| /' conftest.$ac_ext >&5
5603
5604	ac_cv_lib_socket_socket=no
5605fi
5606
5607rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5608      conftest$ac_exeext conftest.$ac_ext
5609LIBS=$ac_check_lib_save_LIBS
5610fi
5611{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
5612echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
5613if test $ac_cv_lib_socket_socket = yes; then
5614  LIBS="-lsocket -lnsl $LIBS"
5615fi
5616
5617fi
5618
5619    # DLPI needs putmsg under HPUX so test for -lstr while we're at it
5620    { echo "$as_me:$LINENO: checking for library containing putmsg" >&5
5621echo $ECHO_N "checking for library containing putmsg... $ECHO_C" >&6; }
5622if test "${ac_cv_search_putmsg+set}" = set; then
5623  echo $ECHO_N "(cached) $ECHO_C" >&6
5624else
5625  ac_func_search_save_LIBS=$LIBS
5626cat >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
5633/* Override any GCC internal prototype to avoid an error.
5634   Use char because int might match the return type of a GCC
5635   builtin and then its argument prototype would still apply.  */
5636#ifdef __cplusplus
5637extern "C"
5638#endif
5639char putmsg ();
5640int
5641main ()
5642{
5643return putmsg ();
5644  ;
5645  return 0;
5646}
5647_ACEOF
5648for ac_lib in '' str; do
5649  if test -z "$ac_lib"; then
5650    ac_res="none required"
5651  else
5652    ac_res=-l$ac_lib
5653    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5654  fi
5655  rm -f conftest.$ac_objext conftest$ac_exeext
5656if { (ac_try="$ac_link"
5657case "(($ac_try" in
5658  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5659  *) ac_try_echo=$ac_try;;
5660esac
5661eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5662  (eval "$ac_link") 2>conftest.er1
5663  ac_status=$?
5664  grep -v '^ *+' conftest.er1 >conftest.err
5665  rm -f conftest.er1
5666  cat conftest.err >&5
5667  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5668  (exit $ac_status); } && {
5669	 test -z "$ac_c_werror_flag" ||
5670	 test ! -s conftest.err
5671       } && test -s conftest$ac_exeext &&
5672       $as_test_x conftest$ac_exeext; then
5673  ac_cv_search_putmsg=$ac_res
5674else
5675  echo "$as_me: failed program was:" >&5
5676sed 's/^/| /' conftest.$ac_ext >&5
5677
5678
5679fi
5680
5681rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5682      conftest$ac_exeext
5683  if test "${ac_cv_search_putmsg+set}" = set; then
5684  break
5685fi
5686done
5687if test "${ac_cv_search_putmsg+set}" = set; then
5688  :
5689else
5690  ac_cv_search_putmsg=no
5691fi
5692rm conftest.$ac_ext
5693LIBS=$ac_func_search_save_LIBS
5694fi
5695{ echo "$as_me:$LINENO: result: $ac_cv_search_putmsg" >&5
5696echo "${ECHO_T}$ac_cv_search_putmsg" >&6; }
5697ac_res=$ac_cv_search_putmsg
5698if test "$ac_res" != no; then
5699  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5700
5701fi
5702
5703
5704
5705#
5706# You are in a twisty little maze of UN*Xes, all different.
5707# Some might not have ether_hostton().
5708# Some might have it, but not declare it in any header file.
5709# Some might have it, but declare it in <netinet/if_ether.h>.
5710# Some might have it, but declare it in <netinet/ether.h>
5711# (And some might have it but document it as something declared in
5712# <netinet/ethernet.h>, although <netinet/if_ether.h> appears to work.)
5713#
5714# Before you is a C compiler.
5715#
5716
5717for ac_func in ether_hostton
5718do
5719as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5720{ echo "$as_me:$LINENO: checking for $ac_func" >&5
5721echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5722if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5723  echo $ECHO_N "(cached) $ECHO_C" >&6
5724else
5725  cat >conftest.$ac_ext <<_ACEOF
5726/* confdefs.h.  */
5727_ACEOF
5728cat confdefs.h >>conftest.$ac_ext
5729cat >>conftest.$ac_ext <<_ACEOF
5730/* end confdefs.h.  */
5731/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5732   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5733#define $ac_func innocuous_$ac_func
5734
5735/* System header to define __stub macros and hopefully few prototypes,
5736    which can conflict with char $ac_func (); below.
5737    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5738    <limits.h> exists even on freestanding compilers.  */
5739
5740#ifdef __STDC__
5741# include <limits.h>
5742#else
5743# include <assert.h>
5744#endif
5745
5746#undef $ac_func
5747
5748/* Override any GCC internal prototype to avoid an error.
5749   Use char because int might match the return type of a GCC
5750   builtin and then its argument prototype would still apply.  */
5751#ifdef __cplusplus
5752extern "C"
5753#endif
5754char $ac_func ();
5755/* The GNU C library defines this for functions which it implements
5756    to always fail with ENOSYS.  Some functions are actually named
5757    something starting with __ and the normal name is an alias.  */
5758#if defined __stub_$ac_func || defined __stub___$ac_func
5759choke me
5760#endif
5761
5762int
5763main ()
5764{
5765return $ac_func ();
5766  ;
5767  return 0;
5768}
5769_ACEOF
5770rm -f conftest.$ac_objext conftest$ac_exeext
5771if { (ac_try="$ac_link"
5772case "(($ac_try" in
5773  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5774  *) ac_try_echo=$ac_try;;
5775esac
5776eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5777  (eval "$ac_link") 2>conftest.er1
5778  ac_status=$?
5779  grep -v '^ *+' conftest.er1 >conftest.err
5780  rm -f conftest.er1
5781  cat conftest.err >&5
5782  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5783  (exit $ac_status); } && {
5784	 test -z "$ac_c_werror_flag" ||
5785	 test ! -s conftest.err
5786       } && test -s conftest$ac_exeext &&
5787       $as_test_x conftest$ac_exeext; then
5788  eval "$as_ac_var=yes"
5789else
5790  echo "$as_me: failed program was:" >&5
5791sed 's/^/| /' conftest.$ac_ext >&5
5792
5793	eval "$as_ac_var=no"
5794fi
5795
5796rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5797      conftest$ac_exeext conftest.$ac_ext
5798fi
5799ac_res=`eval echo '${'$as_ac_var'}'`
5800	       { echo "$as_me:$LINENO: result: $ac_res" >&5
5801echo "${ECHO_T}$ac_res" >&6; }
5802if test `eval echo '${'$as_ac_var'}'` = yes; then
5803  cat >>confdefs.h <<_ACEOF
5804#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5805_ACEOF
5806
5807fi
5808done
5809
5810if test "$ac_cv_func_ether_hostton" = yes; then
5811	#
5812	# OK, we have ether_hostton().  Do we have <netinet/if_ether.h>?
5813	#
5814	if test "$ac_cv_header_netinet_if_ether_h" = yes; then
5815		#
5816		# Yes.  Does it declare ether_hostton()?
5817		#
5818		{ echo "$as_me:$LINENO: checking whether ether_hostton is declared" >&5
5819echo $ECHO_N "checking whether ether_hostton is declared... $ECHO_C" >&6; }
5820if test "${ac_cv_have_decl_ether_hostton+set}" = set; then
5821  echo $ECHO_N "(cached) $ECHO_C" >&6
5822else
5823  cat >conftest.$ac_ext <<_ACEOF
5824/* confdefs.h.  */
5825_ACEOF
5826cat confdefs.h >>conftest.$ac_ext
5827cat >>conftest.$ac_ext <<_ACEOF
5828/* end confdefs.h.  */
5829
5830#include <sys/types.h>
5831#include <sys/socket.h>
5832#include <netinet/in.h>
5833#include <arpa/inet.h>
5834struct mbuf;
5835struct rtentry;
5836#include <net/if.h>
5837#include <netinet/if_ether.h>
5838
5839
5840int
5841main ()
5842{
5843#ifndef ether_hostton
5844  (void) ether_hostton;
5845#endif
5846
5847  ;
5848  return 0;
5849}
5850_ACEOF
5851rm -f conftest.$ac_objext
5852if { (ac_try="$ac_compile"
5853case "(($ac_try" in
5854  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5855  *) ac_try_echo=$ac_try;;
5856esac
5857eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5858  (eval "$ac_compile") 2>conftest.er1
5859  ac_status=$?
5860  grep -v '^ *+' conftest.er1 >conftest.err
5861  rm -f conftest.er1
5862  cat conftest.err >&5
5863  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5864  (exit $ac_status); } && {
5865	 test -z "$ac_c_werror_flag" ||
5866	 test ! -s conftest.err
5867       } && test -s conftest.$ac_objext; then
5868  ac_cv_have_decl_ether_hostton=yes
5869else
5870  echo "$as_me: failed program was:" >&5
5871sed 's/^/| /' conftest.$ac_ext >&5
5872
5873	ac_cv_have_decl_ether_hostton=no
5874fi
5875
5876rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5877fi
5878{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_ether_hostton" >&5
5879echo "${ECHO_T}$ac_cv_have_decl_ether_hostton" >&6; }
5880if test $ac_cv_have_decl_ether_hostton = yes; then
5881
5882
5883cat >>confdefs.h <<\_ACEOF
5884#define NETINET_IF_ETHER_H_DECLARES_ETHER_HOSTTON
5885_ACEOF
5886
5887
5888fi
5889
5890	fi
5891	#
5892	# Did that succeed?
5893	#
5894	if test "$ac_cv_have_decl_ether_hostton" != yes; then
5895		#
5896		# No, how about <netinet/ether.h>, as on Linux?
5897		#
5898
5899for ac_header in netinet/ether.h
5900do
5901as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5902if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5903  { echo "$as_me:$LINENO: checking for $ac_header" >&5
5904echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5905if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5906  echo $ECHO_N "(cached) $ECHO_C" >&6
5907fi
5908ac_res=`eval echo '${'$as_ac_Header'}'`
5909	       { echo "$as_me:$LINENO: result: $ac_res" >&5
5910echo "${ECHO_T}$ac_res" >&6; }
5911else
5912  # Is the header compilable?
5913{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
5914echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5915cat >conftest.$ac_ext <<_ACEOF
5916/* confdefs.h.  */
5917_ACEOF
5918cat confdefs.h >>conftest.$ac_ext
5919cat >>conftest.$ac_ext <<_ACEOF
5920/* end confdefs.h.  */
5921$ac_includes_default
5922#include <$ac_header>
5923_ACEOF
5924rm -f conftest.$ac_objext
5925if { (ac_try="$ac_compile"
5926case "(($ac_try" in
5927  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5928  *) ac_try_echo=$ac_try;;
5929esac
5930eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5931  (eval "$ac_compile") 2>conftest.er1
5932  ac_status=$?
5933  grep -v '^ *+' conftest.er1 >conftest.err
5934  rm -f conftest.er1
5935  cat conftest.err >&5
5936  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5937  (exit $ac_status); } && {
5938	 test -z "$ac_c_werror_flag" ||
5939	 test ! -s conftest.err
5940       } && test -s conftest.$ac_objext; then
5941  ac_header_compiler=yes
5942else
5943  echo "$as_me: failed program was:" >&5
5944sed 's/^/| /' conftest.$ac_ext >&5
5945
5946	ac_header_compiler=no
5947fi
5948
5949rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5950{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5951echo "${ECHO_T}$ac_header_compiler" >&6; }
5952
5953# Is the header present?
5954{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
5955echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5956cat >conftest.$ac_ext <<_ACEOF
5957/* confdefs.h.  */
5958_ACEOF
5959cat confdefs.h >>conftest.$ac_ext
5960cat >>conftest.$ac_ext <<_ACEOF
5961/* end confdefs.h.  */
5962#include <$ac_header>
5963_ACEOF
5964if { (ac_try="$ac_cpp conftest.$ac_ext"
5965case "(($ac_try" in
5966  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5967  *) ac_try_echo=$ac_try;;
5968esac
5969eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5970  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5971  ac_status=$?
5972  grep -v '^ *+' conftest.er1 >conftest.err
5973  rm -f conftest.er1
5974  cat conftest.err >&5
5975  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5976  (exit $ac_status); } >/dev/null && {
5977	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5978	 test ! -s conftest.err
5979       }; then
5980  ac_header_preproc=yes
5981else
5982  echo "$as_me: failed program was:" >&5
5983sed 's/^/| /' conftest.$ac_ext >&5
5984
5985  ac_header_preproc=no
5986fi
5987
5988rm -f conftest.err conftest.$ac_ext
5989{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5990echo "${ECHO_T}$ac_header_preproc" >&6; }
5991
5992# So?  What about this header?
5993case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5994  yes:no: )
5995    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5996echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5997    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5998echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5999    ac_header_preproc=yes
6000    ;;
6001  no:yes:* )
6002    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6003echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6004    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6005echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6006    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6007echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6008    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6009echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6010    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6011echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6012    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6013echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6014
6015    ;;
6016esac
6017{ echo "$as_me:$LINENO: checking for $ac_header" >&5
6018echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6019if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6020  echo $ECHO_N "(cached) $ECHO_C" >&6
6021else
6022  eval "$as_ac_Header=\$ac_header_preproc"
6023fi
6024ac_res=`eval echo '${'$as_ac_Header'}'`
6025	       { echo "$as_me:$LINENO: result: $ac_res" >&5
6026echo "${ECHO_T}$ac_res" >&6; }
6027
6028fi
6029if test `eval echo '${'$as_ac_Header'}'` = yes; then
6030  cat >>confdefs.h <<_ACEOF
6031#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6032_ACEOF
6033
6034fi
6035
6036done
6037
6038		if test "$ac_cv_header_netinet_ether_h" = yes; then
6039			#
6040			# We have it - does it declare ether_hostton()?
6041			# Unset ac_cv_have_decl_ether_hostton so we don't
6042			# treat the previous failure as a cached value and
6043			# suppress the next test.
6044			#
6045			unset ac_cv_have_decl_ether_hostton
6046			{ echo "$as_me:$LINENO: checking whether ether_hostton is declared" >&5
6047echo $ECHO_N "checking whether ether_hostton is declared... $ECHO_C" >&6; }
6048if test "${ac_cv_have_decl_ether_hostton+set}" = set; then
6049  echo $ECHO_N "(cached) $ECHO_C" >&6
6050else
6051  cat >conftest.$ac_ext <<_ACEOF
6052/* confdefs.h.  */
6053_ACEOF
6054cat confdefs.h >>conftest.$ac_ext
6055cat >>conftest.$ac_ext <<_ACEOF
6056/* end confdefs.h.  */
6057
6058#include <netinet/ether.h>
6059
6060
6061int
6062main ()
6063{
6064#ifndef ether_hostton
6065  (void) ether_hostton;
6066#endif
6067
6068  ;
6069  return 0;
6070}
6071_ACEOF
6072rm -f conftest.$ac_objext
6073if { (ac_try="$ac_compile"
6074case "(($ac_try" in
6075  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6076  *) ac_try_echo=$ac_try;;
6077esac
6078eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6079  (eval "$ac_compile") 2>conftest.er1
6080  ac_status=$?
6081  grep -v '^ *+' conftest.er1 >conftest.err
6082  rm -f conftest.er1
6083  cat conftest.err >&5
6084  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6085  (exit $ac_status); } && {
6086	 test -z "$ac_c_werror_flag" ||
6087	 test ! -s conftest.err
6088       } && test -s conftest.$ac_objext; then
6089  ac_cv_have_decl_ether_hostton=yes
6090else
6091  echo "$as_me: failed program was:" >&5
6092sed 's/^/| /' conftest.$ac_ext >&5
6093
6094	ac_cv_have_decl_ether_hostton=no
6095fi
6096
6097rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6098fi
6099{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_ether_hostton" >&5
6100echo "${ECHO_T}$ac_cv_have_decl_ether_hostton" >&6; }
6101if test $ac_cv_have_decl_ether_hostton = yes; then
6102
6103
6104cat >>confdefs.h <<\_ACEOF
6105#define NETINET_ETHER_H_DECLARES_ETHER_HOSTTON
6106_ACEOF
6107
6108
6109fi
6110
6111		fi
6112	fi
6113	#
6114	# Is ether_hostton() declared?
6115	#
6116	if test "$ac_cv_have_decl_ether_hostton" != yes; then
6117		#
6118		# No, we'll have to declare it ourselves.
6119		# Do we have "struct ether_addr"?
6120		#
6121		{ echo "$as_me:$LINENO: checking for struct ether_addr" >&5
6122echo $ECHO_N "checking for struct ether_addr... $ECHO_C" >&6; }
6123if test "${ac_cv_type_struct_ether_addr+set}" = set; then
6124  echo $ECHO_N "(cached) $ECHO_C" >&6
6125else
6126  cat >conftest.$ac_ext <<_ACEOF
6127/* confdefs.h.  */
6128_ACEOF
6129cat confdefs.h >>conftest.$ac_ext
6130cat >>conftest.$ac_ext <<_ACEOF
6131/* end confdefs.h.  */
6132
6133#include <sys/types.h>
6134#include <sys/socket.h>
6135#include <netinet/in.h>
6136#include <arpa/inet.h>
6137struct mbuf;
6138struct rtentry;
6139#include <net/if.h>
6140#include <netinet/if_ether.h>
6141
6142
6143typedef struct ether_addr ac__type_new_;
6144int
6145main ()
6146{
6147if ((ac__type_new_ *) 0)
6148  return 0;
6149if (sizeof (ac__type_new_))
6150  return 0;
6151  ;
6152  return 0;
6153}
6154_ACEOF
6155rm -f conftest.$ac_objext
6156if { (ac_try="$ac_compile"
6157case "(($ac_try" in
6158  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6159  *) ac_try_echo=$ac_try;;
6160esac
6161eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6162  (eval "$ac_compile") 2>conftest.er1
6163  ac_status=$?
6164  grep -v '^ *+' conftest.er1 >conftest.err
6165  rm -f conftest.er1
6166  cat conftest.err >&5
6167  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6168  (exit $ac_status); } && {
6169	 test -z "$ac_c_werror_flag" ||
6170	 test ! -s conftest.err
6171       } && test -s conftest.$ac_objext; then
6172  ac_cv_type_struct_ether_addr=yes
6173else
6174  echo "$as_me: failed program was:" >&5
6175sed 's/^/| /' conftest.$ac_ext >&5
6176
6177	ac_cv_type_struct_ether_addr=no
6178fi
6179
6180rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6181fi
6182{ echo "$as_me:$LINENO: result: $ac_cv_type_struct_ether_addr" >&5
6183echo "${ECHO_T}$ac_cv_type_struct_ether_addr" >&6; }
6184if test $ac_cv_type_struct_ether_addr = yes; then
6185
6186cat >>confdefs.h <<_ACEOF
6187#define HAVE_STRUCT_ETHER_ADDR 1
6188_ACEOF
6189
6190
6191fi
6192
6193
6194cat >>confdefs.h <<\_ACEOF
6195#define HAVE_DECL_ETHER_HOSTTON 0
6196_ACEOF
6197
6198	else
6199
6200cat >>confdefs.h <<\_ACEOF
6201#define HAVE_DECL_ETHER_HOSTTON 1
6202_ACEOF
6203
6204	fi
6205fi
6206
6207{ echo "$as_me:$LINENO: checking if --disable-protochain option is specified" >&5
6208echo $ECHO_N "checking if --disable-protochain option is specified... $ECHO_C" >&6; }
6209# Check whether --enable-protochain was given.
6210if test "${enable_protochain+set}" = set; then
6211  enableval=$enable_protochain;
6212fi
6213
6214case "x$enable_protochain" in
6215xyes)	enable_protochain=enabled	;;
6216xno)	enable_protochain=disabled	;;
6217x)	enable_protochain=enabled	;;
6218esac
6219
6220if test "$enable_protochain" = "disabled"; then
6221
6222cat >>confdefs.h <<\_ACEOF
6223#define NO_PROTOCHAIN 1
6224_ACEOF
6225
6226fi
6227{ echo "$as_me:$LINENO: result: ${enable_protochain}" >&5
6228echo "${ECHO_T}${enable_protochain}" >&6; }
6229
6230#
6231# SITA support is mutually exclusive with native capture support;
6232# "--with-sita" selects SITA support.
6233#
6234
6235# Check whether --with-sita was given.
6236if test "${with_sita+set}" = set; then
6237  withval=$with_sita;
6238
6239cat >>confdefs.h <<\_ACEOF
6240#define SITA 1
6241_ACEOF
6242
6243	{ echo "$as_me:$LINENO: Enabling SITA ACN support" >&5
6244echo "$as_me: Enabling SITA ACN support" >&6;}
6245	V_PCAP=sita
6246	V_FINDALLDEVS=sita
6247
6248else
6249
6250if test -z "$with_pcap" && test "$cross_compiling" = yes; then
6251	{ { echo "$as_me:$LINENO: error: pcap type not determined when cross-compiling; use --with-pcap=..." >&5
6252echo "$as_me: error: pcap type not determined when cross-compiling; use --with-pcap=..." >&2;}
6253   { (exit 1); exit 1; }; }
6254fi
6255
6256# Check whether --with-pcap was given.
6257if test "${with_pcap+set}" = set; then
6258  withval=$with_pcap;
6259fi
6260
6261{ echo "$as_me:$LINENO: checking packet capture type" >&5
6262echo $ECHO_N "checking packet capture type... $ECHO_C" >&6; }
6263if test ! -z "$with_pcap" ; then
6264	V_PCAP="$withval"
6265elif test -r /dev/bpf ; then
6266	#
6267	# Cloning BPF device.
6268	#
6269	V_PCAP=bpf
6270
6271cat >>confdefs.h <<\_ACEOF
6272#define HAVE_CLONING_BPF 1
6273_ACEOF
6274
6275elif test -r /dev/bpf0 ; then
6276	V_PCAP=bpf
6277elif test -r /usr/include/net/pfilt.h ; then
6278	V_PCAP=pf
6279elif test -r /dev/enet ; then
6280	V_PCAP=enet
6281elif test -r /dev/nit ; then
6282	V_PCAP=snit
6283elif test -r /usr/include/sys/net/nit.h ; then
6284	V_PCAP=nit
6285elif test -r /usr/include/linux/socket.h ; then
6286	V_PCAP=linux
6287elif test -r /usr/include/net/raw.h ; then
6288	V_PCAP=snoop
6289elif test -r /usr/include/odmi.h ; then
6290	#
6291	# On AIX, the BPF devices might not yet be present - they're
6292	# created the first time libpcap runs after booting.
6293	# We check for odmi.h instead.
6294	#
6295	V_PCAP=bpf
6296elif test -r /usr/include/sys/dlpi.h ; then
6297	V_PCAP=dlpi
6298elif test -c /dev/bpf0 ; then		# check again in case not readable
6299	V_PCAP=bpf
6300elif test -c /dev/enet ; then		# check again in case not readable
6301	V_PCAP=enet
6302elif test -c /dev/nit ; then		# check again in case not readable
6303	V_PCAP=snit
6304else
6305	V_PCAP=null
6306fi
6307{ echo "$as_me:$LINENO: result: $V_PCAP" >&5
6308echo "${ECHO_T}$V_PCAP" >&6; }
6309
6310#
6311# Do capture-mechanism-dependent tests.
6312#
6313case "$V_PCAP" in
6314dlpi)
6315	#
6316	# Checks to see if Solaris has the public libdlpi(3LIB) library.
6317	# Note: The existence of /usr/include/libdlpi.h does not mean it is the
6318	# public libdlpi(3LIB) version. Before libdlpi was made public, a
6319	# private version also existed, which did not have the same APIs.
6320	# Due to a gcc bug, the default search path for 32-bit libraries does
6321	# not include /lib, we add it explicitly here.
6322	# [http://bugs.opensolaris.org/view_bug.do?bug_id=6619485].
6323	# Also, due to the bug above applications that link to libpcap with
6324	# libdlpi will have to add "-L/lib" option to "configure".
6325	#
6326	saved_ldflags=$LDFLAGS
6327	LDFLAGS="$LIBS -L/lib"
6328	{ echo "$as_me:$LINENO: checking for dlpi_walk in -ldlpi" >&5
6329echo $ECHO_N "checking for dlpi_walk in -ldlpi... $ECHO_C" >&6; }
6330if test "${ac_cv_lib_dlpi_dlpi_walk+set}" = set; then
6331  echo $ECHO_N "(cached) $ECHO_C" >&6
6332else
6333  ac_check_lib_save_LIBS=$LIBS
6334LIBS="-ldlpi  $LIBS"
6335cat >conftest.$ac_ext <<_ACEOF
6336/* confdefs.h.  */
6337_ACEOF
6338cat confdefs.h >>conftest.$ac_ext
6339cat >>conftest.$ac_ext <<_ACEOF
6340/* end confdefs.h.  */
6341
6342/* Override any GCC internal prototype to avoid an error.
6343   Use char because int might match the return type of a GCC
6344   builtin and then its argument prototype would still apply.  */
6345#ifdef __cplusplus
6346extern "C"
6347#endif
6348char dlpi_walk ();
6349int
6350main ()
6351{
6352return dlpi_walk ();
6353  ;
6354  return 0;
6355}
6356_ACEOF
6357rm -f conftest.$ac_objext conftest$ac_exeext
6358if { (ac_try="$ac_link"
6359case "(($ac_try" in
6360  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6361  *) ac_try_echo=$ac_try;;
6362esac
6363eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6364  (eval "$ac_link") 2>conftest.er1
6365  ac_status=$?
6366  grep -v '^ *+' conftest.er1 >conftest.err
6367  rm -f conftest.er1
6368  cat conftest.err >&5
6369  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6370  (exit $ac_status); } && {
6371	 test -z "$ac_c_werror_flag" ||
6372	 test ! -s conftest.err
6373       } && test -s conftest$ac_exeext &&
6374       $as_test_x conftest$ac_exeext; then
6375  ac_cv_lib_dlpi_dlpi_walk=yes
6376else
6377  echo "$as_me: failed program was:" >&5
6378sed 's/^/| /' conftest.$ac_ext >&5
6379
6380	ac_cv_lib_dlpi_dlpi_walk=no
6381fi
6382
6383rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6384      conftest$ac_exeext conftest.$ac_ext
6385LIBS=$ac_check_lib_save_LIBS
6386fi
6387{ echo "$as_me:$LINENO: result: $ac_cv_lib_dlpi_dlpi_walk" >&5
6388echo "${ECHO_T}$ac_cv_lib_dlpi_dlpi_walk" >&6; }
6389if test $ac_cv_lib_dlpi_dlpi_walk = yes; then
6390  LIBS="-ldlpi $LIBS"
6391		V_PCAP=libdlpi
6392
6393cat >>confdefs.h <<\_ACEOF
6394#define HAVE_LIBDLPI 1
6395_ACEOF
6396
6397else
6398  V_PCAP=dlpi
6399fi
6400
6401	LDFLAGS=$saved_ldflags
6402
6403	#
6404	# Checks whether <sys/dlpi.h> is usable, to catch weird SCO
6405	# versions of DLPI.
6406	#
6407	{ echo "$as_me:$LINENO: checking whether <sys/dlpi.h> is usable" >&5
6408echo $ECHO_N "checking whether <sys/dlpi.h> is usable... $ECHO_C" >&6; }
6409	if test "${ac_cv_sys_dlpi_usable+set}" = set; then
6410  echo $ECHO_N "(cached) $ECHO_C" >&6
6411else
6412  cat >conftest.$ac_ext <<_ACEOF
6413/* confdefs.h.  */
6414_ACEOF
6415cat confdefs.h >>conftest.$ac_ext
6416cat >>conftest.$ac_ext <<_ACEOF
6417/* end confdefs.h.  */
6418
6419			#include <sys/types.h>
6420			#include <sys/time.h>
6421			#include <sys/dlpi.h>
6422
6423int
6424main ()
6425{
6426int i = DL_PROMISC_PHYS;
6427  ;
6428  return 0;
6429}
6430_ACEOF
6431rm -f conftest.$ac_objext
6432if { (ac_try="$ac_compile"
6433case "(($ac_try" in
6434  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6435  *) ac_try_echo=$ac_try;;
6436esac
6437eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6438  (eval "$ac_compile") 2>conftest.er1
6439  ac_status=$?
6440  grep -v '^ *+' conftest.er1 >conftest.err
6441  rm -f conftest.er1
6442  cat conftest.err >&5
6443  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6444  (exit $ac_status); } && {
6445	 test -z "$ac_c_werror_flag" ||
6446	 test ! -s conftest.err
6447       } && test -s conftest.$ac_objext; then
6448  ac_cv_sys_dlpi_usable=yes
6449else
6450  echo "$as_me: failed program was:" >&5
6451sed 's/^/| /' conftest.$ac_ext >&5
6452
6453	ac_cv_sys_dlpi_usable=no
6454fi
6455
6456rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6457fi
6458
6459	{ echo "$as_me:$LINENO: result: $ac_cv_sys_dlpi_usable" >&5
6460echo "${ECHO_T}$ac_cv_sys_dlpi_usable" >&6; }
6461	if test $ac_cv_sys_dlpi_usable = no ; then
6462		{ { echo "$as_me:$LINENO: error: <sys/dlpi.h> is not usable on this system; it probably has a non-standard DLPI" >&5
6463echo "$as_me: error: <sys/dlpi.h> is not usable on this system; it probably has a non-standard DLPI" >&2;}
6464   { (exit 1); exit 1; }; }
6465	fi
6466
6467	#
6468	# Check whether we have a /dev/dlpi device or have multiple devices.
6469	#
6470	{ echo "$as_me:$LINENO: checking for /dev/dlpi device" >&5
6471echo $ECHO_N "checking for /dev/dlpi device... $ECHO_C" >&6; }
6472	if test -c /dev/dlpi ; then
6473		{ echo "$as_me:$LINENO: result: yes" >&5
6474echo "${ECHO_T}yes" >&6; }
6475
6476cat >>confdefs.h <<\_ACEOF
6477#define HAVE_DEV_DLPI 1
6478_ACEOF
6479
6480	else
6481		{ echo "$as_me:$LINENO: result: no" >&5
6482echo "${ECHO_T}no" >&6; }
6483		dir="/dev/dlpi"
6484		{ echo "$as_me:$LINENO: checking for $dir directory" >&5
6485echo $ECHO_N "checking for $dir directory... $ECHO_C" >&6; }
6486		if test -d $dir ; then
6487			{ echo "$as_me:$LINENO: result: yes" >&5
6488echo "${ECHO_T}yes" >&6; }
6489
6490cat >>confdefs.h <<_ACEOF
6491#define PCAP_DEV_PREFIX "$dir"
6492_ACEOF
6493
6494		else
6495			{ echo "$as_me:$LINENO: result: no" >&5
6496echo "${ECHO_T}no" >&6; }
6497		fi
6498	fi
6499
6500	#
6501	# This check is for Solaris with DLPI support for passive modes.
6502	# See dlpi(7P) for more details.
6503	#
6504	{ echo "$as_me:$LINENO: checking if dl_passive_req_t struct exists" >&5
6505echo $ECHO_N "checking if dl_passive_req_t struct exists... $ECHO_C" >&6; }
6506       if test "${ac_cv_lbl_has_dl_passive_req_t+set}" = set; then
6507  echo $ECHO_N "(cached) $ECHO_C" >&6
6508else
6509  cat >conftest.$ac_ext <<_ACEOF
6510/* confdefs.h.  */
6511_ACEOF
6512cat confdefs.h >>conftest.$ac_ext
6513cat >>conftest.$ac_ext <<_ACEOF
6514/* end confdefs.h.  */
6515
6516#       include <sys/types.h>
6517#       include <sys/dlpi.h>
6518int
6519main ()
6520{
6521u_int i = sizeof(dl_passive_req_t)
6522  ;
6523  return 0;
6524}
6525_ACEOF
6526rm -f conftest.$ac_objext
6527if { (ac_try="$ac_compile"
6528case "(($ac_try" in
6529  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6530  *) ac_try_echo=$ac_try;;
6531esac
6532eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6533  (eval "$ac_compile") 2>conftest.er1
6534  ac_status=$?
6535  grep -v '^ *+' conftest.er1 >conftest.err
6536  rm -f conftest.er1
6537  cat conftest.err >&5
6538  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6539  (exit $ac_status); } && {
6540	 test -z "$ac_c_werror_flag" ||
6541	 test ! -s conftest.err
6542       } && test -s conftest.$ac_objext; then
6543  ac_cv_lbl_has_dl_passive_req_t=yes
6544else
6545  echo "$as_me: failed program was:" >&5
6546sed 's/^/| /' conftest.$ac_ext >&5
6547
6548	ac_cv_lbl_has_dl_passive_req_t=no
6549fi
6550
6551rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6552fi
6553
6554    { echo "$as_me:$LINENO: result: $ac_cv_lbl_has_dl_passive_req_t" >&5
6555echo "${ECHO_T}$ac_cv_lbl_has_dl_passive_req_t" >&6; }
6556    if test $ac_cv_lbl_has_dl_passive_req_t = yes ; then
6557
6558cat >>confdefs.h <<\_ACEOF
6559#define HAVE_DLPI_PASSIVE 1
6560_ACEOF
6561
6562    fi
6563	;;
6564
6565linux)
6566	{ echo "$as_me:$LINENO: checking Linux kernel version" >&5
6567echo $ECHO_N "checking Linux kernel version... $ECHO_C" >&6; }
6568 	if test "$cross_compiling" = yes; then
6569 		if test "${ac_cv_linux_vers+set}" = set; then
6570  echo $ECHO_N "(cached) $ECHO_C" >&6
6571else
6572  ac_cv_linux_vers=unknown
6573fi
6574
6575 	else
6576 		if test "${ac_cv_linux_vers+set}" = set; then
6577  echo $ECHO_N "(cached) $ECHO_C" >&6
6578else
6579  ac_cv_linux_vers=`uname -r 2>&1 | \
6580 			sed -n -e '$s/.* //' -e '$s/\..*//p'`
6581fi
6582
6583 	fi
6584	{ echo "$as_me:$LINENO: result: $ac_cv_linux_vers" >&5
6585echo "${ECHO_T}$ac_cv_linux_vers" >&6; }
6586 	if test $ac_cv_linux_vers = unknown ; then
6587 		{ { echo "$as_me:$LINENO: error: cannot determine linux version when cross-compiling" >&5
6588echo "$as_me: error: cannot determine linux version when cross-compiling" >&2;}
6589   { (exit 1); exit 1; }; }
6590 	fi
6591	if test $ac_cv_linux_vers -lt 2 ; then
6592		{ { echo "$as_me:$LINENO: error: version 2 or higher required; see the INSTALL doc for more info" >&5
6593echo "$as_me: error: version 2 or higher required; see the INSTALL doc for more info" >&2;}
6594   { (exit 1); exit 1; }; }
6595	fi
6596
6597for ac_header in linux/wireless.h
6598do
6599as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6600{ echo "$as_me:$LINENO: checking for $ac_header" >&5
6601echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6602if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6603  echo $ECHO_N "(cached) $ECHO_C" >&6
6604else
6605  cat >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
6612#include <sys/socket.h>
6613#include <net/if.h>
6614#include <linux/types.h>
6615
6616
6617#include <$ac_header>
6618_ACEOF
6619rm -f conftest.$ac_objext
6620if { (ac_try="$ac_compile"
6621case "(($ac_try" in
6622  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6623  *) ac_try_echo=$ac_try;;
6624esac
6625eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6626  (eval "$ac_compile") 2>conftest.er1
6627  ac_status=$?
6628  grep -v '^ *+' conftest.er1 >conftest.err
6629  rm -f conftest.er1
6630  cat conftest.err >&5
6631  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6632  (exit $ac_status); } && {
6633	 test -z "$ac_c_werror_flag" ||
6634	 test ! -s conftest.err
6635       } && test -s conftest.$ac_objext; then
6636  eval "$as_ac_Header=yes"
6637else
6638  echo "$as_me: failed program was:" >&5
6639sed 's/^/| /' conftest.$ac_ext >&5
6640
6641	eval "$as_ac_Header=no"
6642fi
6643
6644rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6645fi
6646ac_res=`eval echo '${'$as_ac_Header'}'`
6647	       { echo "$as_me:$LINENO: result: $ac_res" >&5
6648echo "${ECHO_T}$ac_res" >&6; }
6649if test `eval echo '${'$as_ac_Header'}'` = yes; then
6650  cat >>confdefs.h <<_ACEOF
6651#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6652_ACEOF
6653
6654fi
6655
6656done
6657
6658	for ac_header in
6659do
6660as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6661if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6662  { echo "$as_me:$LINENO: checking for $ac_header" >&5
6663echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6664if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6665  echo $ECHO_N "(cached) $ECHO_C" >&6
6666fi
6667ac_res=`eval echo '${'$as_ac_Header'}'`
6668	       { echo "$as_me:$LINENO: result: $ac_res" >&5
6669echo "${ECHO_T}$ac_res" >&6; }
6670else
6671  # Is the header compilable?
6672{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
6673echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6674cat >conftest.$ac_ext <<_ACEOF
6675/* confdefs.h.  */
6676_ACEOF
6677cat confdefs.h >>conftest.$ac_ext
6678cat >>conftest.$ac_ext <<_ACEOF
6679/* end confdefs.h.  */
6680$ac_includes_default
6681#include <$ac_header>
6682_ACEOF
6683rm -f conftest.$ac_objext
6684if { (ac_try="$ac_compile"
6685case "(($ac_try" in
6686  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6687  *) ac_try_echo=$ac_try;;
6688esac
6689eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6690  (eval "$ac_compile") 2>conftest.er1
6691  ac_status=$?
6692  grep -v '^ *+' conftest.er1 >conftest.err
6693  rm -f conftest.er1
6694  cat conftest.err >&5
6695  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6696  (exit $ac_status); } && {
6697	 test -z "$ac_c_werror_flag" ||
6698	 test ! -s conftest.err
6699       } && test -s conftest.$ac_objext; then
6700  ac_header_compiler=yes
6701else
6702  echo "$as_me: failed program was:" >&5
6703sed 's/^/| /' conftest.$ac_ext >&5
6704
6705	ac_header_compiler=no
6706fi
6707
6708rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6709{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6710echo "${ECHO_T}$ac_header_compiler" >&6; }
6711
6712# Is the header present?
6713{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
6714echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6715cat >conftest.$ac_ext <<_ACEOF
6716/* confdefs.h.  */
6717_ACEOF
6718cat confdefs.h >>conftest.$ac_ext
6719cat >>conftest.$ac_ext <<_ACEOF
6720/* end confdefs.h.  */
6721#include <$ac_header>
6722_ACEOF
6723if { (ac_try="$ac_cpp conftest.$ac_ext"
6724case "(($ac_try" in
6725  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6726  *) ac_try_echo=$ac_try;;
6727esac
6728eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6729  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6730  ac_status=$?
6731  grep -v '^ *+' conftest.er1 >conftest.err
6732  rm -f conftest.er1
6733  cat conftest.err >&5
6734  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6735  (exit $ac_status); } >/dev/null && {
6736	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6737	 test ! -s conftest.err
6738       }; then
6739  ac_header_preproc=yes
6740else
6741  echo "$as_me: failed program was:" >&5
6742sed 's/^/| /' conftest.$ac_ext >&5
6743
6744  ac_header_preproc=no
6745fi
6746
6747rm -f conftest.err conftest.$ac_ext
6748{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6749echo "${ECHO_T}$ac_header_preproc" >&6; }
6750
6751# So?  What about this header?
6752case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6753  yes:no: )
6754    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6755echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6756    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6757echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6758    ac_header_preproc=yes
6759    ;;
6760  no:yes:* )
6761    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6762echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6763    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6764echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6765    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6766echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6767    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6768echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6769    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6770echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6771    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6772echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6773
6774    ;;
6775esac
6776{ echo "$as_me:$LINENO: checking for $ac_header" >&5
6777echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6778if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6779  echo $ECHO_N "(cached) $ECHO_C" >&6
6780else
6781  eval "$as_ac_Header=\$ac_header_preproc"
6782fi
6783ac_res=`eval echo '${'$as_ac_Header'}'`
6784	       { echo "$as_me:$LINENO: result: $ac_res" >&5
6785echo "${ECHO_T}$ac_res" >&6; }
6786
6787fi
6788if test `eval echo '${'$as_ac_Header'}'` = yes; then
6789  cat >>confdefs.h <<_ACEOF
6790#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6791_ACEOF
6792
6793fi
6794
6795done
6796
6797	{ echo "$as_me:$LINENO: checking if if_packet.h has tpacket_stats defined" >&5
6798echo $ECHO_N "checking if if_packet.h has tpacket_stats defined... $ECHO_C" >&6; }
6799   if test "${ac_cv_lbl_tpacket_stats+set}" = set; then
6800  echo $ECHO_N "(cached) $ECHO_C" >&6
6801else
6802  cat >conftest.$ac_ext <<_ACEOF
6803/* confdefs.h.  */
6804_ACEOF
6805cat confdefs.h >>conftest.$ac_ext
6806cat >>conftest.$ac_ext <<_ACEOF
6807/* end confdefs.h.  */
6808
6809#  include <linux/if_packet.h>
6810int
6811main ()
6812{
6813struct tpacket_stats stats
6814  ;
6815  return 0;
6816}
6817_ACEOF
6818rm -f conftest.$ac_objext
6819if { (ac_try="$ac_compile"
6820case "(($ac_try" in
6821  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6822  *) ac_try_echo=$ac_try;;
6823esac
6824eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6825  (eval "$ac_compile") 2>conftest.er1
6826  ac_status=$?
6827  grep -v '^ *+' conftest.er1 >conftest.err
6828  rm -f conftest.er1
6829  cat conftest.err >&5
6830  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6831  (exit $ac_status); } && {
6832	 test -z "$ac_c_werror_flag" ||
6833	 test ! -s conftest.err
6834       } && test -s conftest.$ac_objext; then
6835  ac_cv_lbl_tpacket_stats=yes
6836else
6837  echo "$as_me: failed program was:" >&5
6838sed 's/^/| /' conftest.$ac_ext >&5
6839
6840	ac_cv_lbl_tpacket_stats=no
6841fi
6842
6843rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6844fi
6845
6846   { echo "$as_me:$LINENO: result: $ac_cv_lbl_tpacket_stats" >&5
6847echo "${ECHO_T}$ac_cv_lbl_tpacket_stats" >&6; }
6848   if test $ac_cv_lbl_tpacket_stats = yes; then
6849
6850cat >>confdefs.h <<\_ACEOF
6851#define HAVE_TPACKET_STATS 1
6852_ACEOF
6853
6854   fi
6855	{ echo "$as_me:$LINENO: checking if tpacket_auxdata struct has tp_vlan_tci member" >&5
6856echo $ECHO_N "checking if tpacket_auxdata struct has tp_vlan_tci member... $ECHO_C" >&6; }
6857    if test "${ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1+set}" = set; then
6858  echo $ECHO_N "(cached) $ECHO_C" >&6
6859else
6860  cat >conftest.$ac_ext <<_ACEOF
6861/* confdefs.h.  */
6862_ACEOF
6863cat confdefs.h >>conftest.$ac_ext
6864cat >>conftest.$ac_ext <<_ACEOF
6865/* end confdefs.h.  */
6866
6867#	include <linux/if_packet.h>
6868int
6869main ()
6870{
6871u_int i = sizeof(((struct tpacket_auxdata *)0)->tp_vlan_tci)
6872  ;
6873  return 0;
6874}
6875_ACEOF
6876rm -f conftest.$ac_objext
6877if { (ac_try="$ac_compile"
6878case "(($ac_try" in
6879  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6880  *) ac_try_echo=$ac_try;;
6881esac
6882eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6883  (eval "$ac_compile") 2>conftest.er1
6884  ac_status=$?
6885  grep -v '^ *+' conftest.er1 >conftest.err
6886  rm -f conftest.er1
6887  cat conftest.err >&5
6888  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6889  (exit $ac_status); } && {
6890	 test -z "$ac_c_werror_flag" ||
6891	 test ! -s conftest.err
6892       } && test -s conftest.$ac_objext; then
6893  ac_cv_lbl_linux_tpacket_auxdata_tp_vlan_tci=yes
6894else
6895  echo "$as_me: failed program was:" >&5
6896sed 's/^/| /' conftest.$ac_ext >&5
6897
6898	ac_cv_lbl_linux_tpacket_auxdata_tp_vlan_tci=no
6899fi
6900
6901rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6902fi
6903
6904    { echo "$as_me:$LINENO: result: $ac_cv_lbl_linux_tpacket_auxdata_tp_vlan_tci" >&5
6905echo "${ECHO_T}$ac_cv_lbl_linux_tpacket_auxdata_tp_vlan_tci" >&6; }
6906    if test $ac_cv_lbl_linux_tpacket_auxdata_tp_vlan_tci = yes ; then
6907
6908cat >>confdefs.h <<\_ACEOF
6909#define HAVE_LINUX_TPACKET_AUXDATA_TP_VLAN_TCI 1
6910_ACEOF
6911
6912    fi
6913	;;
6914
6915bpf)
6916	#
6917	# Check whether we have the *BSD-style ioctls.
6918	#
6919
6920for ac_header in net/if_media.h
6921do
6922as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6923if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6924  { echo "$as_me:$LINENO: checking for $ac_header" >&5
6925echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6926if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6927  echo $ECHO_N "(cached) $ECHO_C" >&6
6928fi
6929ac_res=`eval echo '${'$as_ac_Header'}'`
6930	       { echo "$as_me:$LINENO: result: $ac_res" >&5
6931echo "${ECHO_T}$ac_res" >&6; }
6932else
6933  # Is the header compilable?
6934{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
6935echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6936cat >conftest.$ac_ext <<_ACEOF
6937/* confdefs.h.  */
6938_ACEOF
6939cat confdefs.h >>conftest.$ac_ext
6940cat >>conftest.$ac_ext <<_ACEOF
6941/* end confdefs.h.  */
6942$ac_includes_default
6943#include <$ac_header>
6944_ACEOF
6945rm -f conftest.$ac_objext
6946if { (ac_try="$ac_compile"
6947case "(($ac_try" in
6948  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6949  *) ac_try_echo=$ac_try;;
6950esac
6951eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6952  (eval "$ac_compile") 2>conftest.er1
6953  ac_status=$?
6954  grep -v '^ *+' conftest.er1 >conftest.err
6955  rm -f conftest.er1
6956  cat conftest.err >&5
6957  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6958  (exit $ac_status); } && {
6959	 test -z "$ac_c_werror_flag" ||
6960	 test ! -s conftest.err
6961       } && test -s conftest.$ac_objext; then
6962  ac_header_compiler=yes
6963else
6964  echo "$as_me: failed program was:" >&5
6965sed 's/^/| /' conftest.$ac_ext >&5
6966
6967	ac_header_compiler=no
6968fi
6969
6970rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6971{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6972echo "${ECHO_T}$ac_header_compiler" >&6; }
6973
6974# Is the header present?
6975{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
6976echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6977cat >conftest.$ac_ext <<_ACEOF
6978/* confdefs.h.  */
6979_ACEOF
6980cat confdefs.h >>conftest.$ac_ext
6981cat >>conftest.$ac_ext <<_ACEOF
6982/* end confdefs.h.  */
6983#include <$ac_header>
6984_ACEOF
6985if { (ac_try="$ac_cpp conftest.$ac_ext"
6986case "(($ac_try" in
6987  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6988  *) ac_try_echo=$ac_try;;
6989esac
6990eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6991  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6992  ac_status=$?
6993  grep -v '^ *+' conftest.er1 >conftest.err
6994  rm -f conftest.er1
6995  cat conftest.err >&5
6996  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6997  (exit $ac_status); } >/dev/null && {
6998	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6999	 test ! -s conftest.err
7000       }; then
7001  ac_header_preproc=yes
7002else
7003  echo "$as_me: failed program was:" >&5
7004sed 's/^/| /' conftest.$ac_ext >&5
7005
7006  ac_header_preproc=no
7007fi
7008
7009rm -f conftest.err conftest.$ac_ext
7010{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7011echo "${ECHO_T}$ac_header_preproc" >&6; }
7012
7013# So?  What about this header?
7014case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7015  yes:no: )
7016    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7017echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7018    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7019echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7020    ac_header_preproc=yes
7021    ;;
7022  no:yes:* )
7023    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7024echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7025    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7026echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7027    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7028echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7029    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7030echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7031    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7032echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7033    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7034echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7035
7036    ;;
7037esac
7038{ echo "$as_me:$LINENO: checking for $ac_header" >&5
7039echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7040if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7041  echo $ECHO_N "(cached) $ECHO_C" >&6
7042else
7043  eval "$as_ac_Header=\$ac_header_preproc"
7044fi
7045ac_res=`eval echo '${'$as_ac_Header'}'`
7046	       { echo "$as_me:$LINENO: result: $ac_res" >&5
7047echo "${ECHO_T}$ac_res" >&6; }
7048
7049fi
7050if test `eval echo '${'$as_ac_Header'}'` = yes; then
7051  cat >>confdefs.h <<_ACEOF
7052#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7053_ACEOF
7054
7055fi
7056
7057done
7058
7059
7060	{ echo "$as_me:$LINENO: checking whether the system supports zerocopy BPF" >&5
7061echo $ECHO_N "checking whether the system supports zerocopy BPF... $ECHO_C" >&6; }
7062	cat >conftest.$ac_ext <<_ACEOF
7063/* confdefs.h.  */
7064_ACEOF
7065cat confdefs.h >>conftest.$ac_ext
7066cat >>conftest.$ac_ext <<_ACEOF
7067/* end confdefs.h.  */
7068#include <sys/socket.h>
7069	    #include <sys/ioctl.h>
7070	    #include <net/if.h>
7071	    #include <net/bpf.h>
7072int
7073main ()
7074{
7075return (BIOCROTZBUF + BPF_BUFMODE_ZBUF);
7076  ;
7077  return 0;
7078}
7079_ACEOF
7080rm -f conftest.$ac_objext
7081if { (ac_try="$ac_compile"
7082case "(($ac_try" in
7083  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7084  *) ac_try_echo=$ac_try;;
7085esac
7086eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7087  (eval "$ac_compile") 2>conftest.er1
7088  ac_status=$?
7089  grep -v '^ *+' conftest.er1 >conftest.err
7090  rm -f conftest.er1
7091  cat conftest.err >&5
7092  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7093  (exit $ac_status); } && {
7094	 test -z "$ac_c_werror_flag" ||
7095	 test ! -s conftest.err
7096       } && test -s conftest.$ac_objext; then
7097
7098		{ echo "$as_me:$LINENO: result: yes" >&5
7099echo "${ECHO_T}yes" >&6; }
7100
7101cat >>confdefs.h <<\_ACEOF
7102#define HAVE_ZEROCOPY_BPF 1
7103_ACEOF
7104
7105
7106else
7107  echo "$as_me: failed program was:" >&5
7108sed 's/^/| /' conftest.$ac_ext >&5
7109
7110	{ echo "$as_me:$LINENO: result: no" >&5
7111echo "${ECHO_T}no" >&6; }
7112fi
7113
7114rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7115	;;
7116
7117dag)
7118	V_DEFS="$V_DEFS -DDAG_ONLY"
7119	;;
7120
7121septel)
7122	V_DEFS="$V_DEFS -DSEPTEL_ONLY"
7123	;;
7124
7125null)
7126	{ echo "$as_me:$LINENO: WARNING: cannot determine packet capture interface" >&5
7127echo "$as_me: WARNING: cannot determine packet capture interface" >&2;}
7128	{ echo "$as_me:$LINENO: WARNING: (see the INSTALL doc for more info)" >&5
7129echo "$as_me: WARNING: (see the INSTALL doc for more info)" >&2;}
7130	;;
7131esac
7132
7133if test "$V_PCAP" = null
7134then
7135	#
7136	# We can't capture, so we can't open any capture
7137	# devices, so we won't return any interfaces.
7138	#
7139	V_FINDALLDEVS=null
7140else
7141	{ echo "$as_me:$LINENO: checking for getifaddrs" >&5
7142echo $ECHO_N "checking for getifaddrs... $ECHO_C" >&6; }
7143if test "${ac_cv_func_getifaddrs+set}" = set; then
7144  echo $ECHO_N "(cached) $ECHO_C" >&6
7145else
7146  cat >conftest.$ac_ext <<_ACEOF
7147/* confdefs.h.  */
7148_ACEOF
7149cat confdefs.h >>conftest.$ac_ext
7150cat >>conftest.$ac_ext <<_ACEOF
7151/* end confdefs.h.  */
7152/* Define getifaddrs to an innocuous variant, in case <limits.h> declares getifaddrs.
7153   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7154#define getifaddrs innocuous_getifaddrs
7155
7156/* System header to define __stub macros and hopefully few prototypes,
7157    which can conflict with char getifaddrs (); below.
7158    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7159    <limits.h> exists even on freestanding compilers.  */
7160
7161#ifdef __STDC__
7162# include <limits.h>
7163#else
7164# include <assert.h>
7165#endif
7166
7167#undef getifaddrs
7168
7169/* Override any GCC internal prototype to avoid an error.
7170   Use char because int might match the return type of a GCC
7171   builtin and then its argument prototype would still apply.  */
7172#ifdef __cplusplus
7173extern "C"
7174#endif
7175char getifaddrs ();
7176/* The GNU C library defines this for functions which it implements
7177    to always fail with ENOSYS.  Some functions are actually named
7178    something starting with __ and the normal name is an alias.  */
7179#if defined __stub_getifaddrs || defined __stub___getifaddrs
7180choke me
7181#endif
7182
7183int
7184main ()
7185{
7186return getifaddrs ();
7187  ;
7188  return 0;
7189}
7190_ACEOF
7191rm -f conftest.$ac_objext conftest$ac_exeext
7192if { (ac_try="$ac_link"
7193case "(($ac_try" in
7194  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7195  *) ac_try_echo=$ac_try;;
7196esac
7197eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7198  (eval "$ac_link") 2>conftest.er1
7199  ac_status=$?
7200  grep -v '^ *+' conftest.er1 >conftest.err
7201  rm -f conftest.er1
7202  cat conftest.err >&5
7203  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7204  (exit $ac_status); } && {
7205	 test -z "$ac_c_werror_flag" ||
7206	 test ! -s conftest.err
7207       } && test -s conftest$ac_exeext &&
7208       $as_test_x conftest$ac_exeext; then
7209  ac_cv_func_getifaddrs=yes
7210else
7211  echo "$as_me: failed program was:" >&5
7212sed 's/^/| /' conftest.$ac_ext >&5
7213
7214	ac_cv_func_getifaddrs=no
7215fi
7216
7217rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7218      conftest$ac_exeext conftest.$ac_ext
7219fi
7220{ echo "$as_me:$LINENO: result: $ac_cv_func_getifaddrs" >&5
7221echo "${ECHO_T}$ac_cv_func_getifaddrs" >&6; }
7222if test $ac_cv_func_getifaddrs = yes; then
7223
7224		#
7225		# We have "getifaddrs()"; make sure we have <ifaddrs.h>
7226		# as well, just in case some platform is really weird.
7227		#
7228		if test "${ac_cv_header_ifaddrs_h+set}" = set; then
7229  { echo "$as_me:$LINENO: checking for ifaddrs.h" >&5
7230echo $ECHO_N "checking for ifaddrs.h... $ECHO_C" >&6; }
7231if test "${ac_cv_header_ifaddrs_h+set}" = set; then
7232  echo $ECHO_N "(cached) $ECHO_C" >&6
7233fi
7234{ echo "$as_me:$LINENO: result: $ac_cv_header_ifaddrs_h" >&5
7235echo "${ECHO_T}$ac_cv_header_ifaddrs_h" >&6; }
7236else
7237  # Is the header compilable?
7238{ echo "$as_me:$LINENO: checking ifaddrs.h usability" >&5
7239echo $ECHO_N "checking ifaddrs.h usability... $ECHO_C" >&6; }
7240cat >conftest.$ac_ext <<_ACEOF
7241/* confdefs.h.  */
7242_ACEOF
7243cat confdefs.h >>conftest.$ac_ext
7244cat >>conftest.$ac_ext <<_ACEOF
7245/* end confdefs.h.  */
7246$ac_includes_default
7247#include <ifaddrs.h>
7248_ACEOF
7249rm -f conftest.$ac_objext
7250if { (ac_try="$ac_compile"
7251case "(($ac_try" in
7252  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7253  *) ac_try_echo=$ac_try;;
7254esac
7255eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7256  (eval "$ac_compile") 2>conftest.er1
7257  ac_status=$?
7258  grep -v '^ *+' conftest.er1 >conftest.err
7259  rm -f conftest.er1
7260  cat conftest.err >&5
7261  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7262  (exit $ac_status); } && {
7263	 test -z "$ac_c_werror_flag" ||
7264	 test ! -s conftest.err
7265       } && test -s conftest.$ac_objext; then
7266  ac_header_compiler=yes
7267else
7268  echo "$as_me: failed program was:" >&5
7269sed 's/^/| /' conftest.$ac_ext >&5
7270
7271	ac_header_compiler=no
7272fi
7273
7274rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7275{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7276echo "${ECHO_T}$ac_header_compiler" >&6; }
7277
7278# Is the header present?
7279{ echo "$as_me:$LINENO: checking ifaddrs.h presence" >&5
7280echo $ECHO_N "checking ifaddrs.h presence... $ECHO_C" >&6; }
7281cat >conftest.$ac_ext <<_ACEOF
7282/* confdefs.h.  */
7283_ACEOF
7284cat confdefs.h >>conftest.$ac_ext
7285cat >>conftest.$ac_ext <<_ACEOF
7286/* end confdefs.h.  */
7287#include <ifaddrs.h>
7288_ACEOF
7289if { (ac_try="$ac_cpp conftest.$ac_ext"
7290case "(($ac_try" in
7291  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7292  *) ac_try_echo=$ac_try;;
7293esac
7294eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7295  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7296  ac_status=$?
7297  grep -v '^ *+' conftest.er1 >conftest.err
7298  rm -f conftest.er1
7299  cat conftest.err >&5
7300  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7301  (exit $ac_status); } >/dev/null && {
7302	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7303	 test ! -s conftest.err
7304       }; then
7305  ac_header_preproc=yes
7306else
7307  echo "$as_me: failed program was:" >&5
7308sed 's/^/| /' conftest.$ac_ext >&5
7309
7310  ac_header_preproc=no
7311fi
7312
7313rm -f conftest.err conftest.$ac_ext
7314{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7315echo "${ECHO_T}$ac_header_preproc" >&6; }
7316
7317# So?  What about this header?
7318case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7319  yes:no: )
7320    { echo "$as_me:$LINENO: WARNING: ifaddrs.h: accepted by the compiler, rejected by the preprocessor!" >&5
7321echo "$as_me: WARNING: ifaddrs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7322    { echo "$as_me:$LINENO: WARNING: ifaddrs.h: proceeding with the compiler's result" >&5
7323echo "$as_me: WARNING: ifaddrs.h: proceeding with the compiler's result" >&2;}
7324    ac_header_preproc=yes
7325    ;;
7326  no:yes:* )
7327    { echo "$as_me:$LINENO: WARNING: ifaddrs.h: present but cannot be compiled" >&5
7328echo "$as_me: WARNING: ifaddrs.h: present but cannot be compiled" >&2;}
7329    { echo "$as_me:$LINENO: WARNING: ifaddrs.h:     check for missing prerequisite headers?" >&5
7330echo "$as_me: WARNING: ifaddrs.h:     check for missing prerequisite headers?" >&2;}
7331    { echo "$as_me:$LINENO: WARNING: ifaddrs.h: see the Autoconf documentation" >&5
7332echo "$as_me: WARNING: ifaddrs.h: see the Autoconf documentation" >&2;}
7333    { echo "$as_me:$LINENO: WARNING: ifaddrs.h:     section \"Present But Cannot Be Compiled\"" >&5
7334echo "$as_me: WARNING: ifaddrs.h:     section \"Present But Cannot Be Compiled\"" >&2;}
7335    { echo "$as_me:$LINENO: WARNING: ifaddrs.h: proceeding with the preprocessor's result" >&5
7336echo "$as_me: WARNING: ifaddrs.h: proceeding with the preprocessor's result" >&2;}
7337    { echo "$as_me:$LINENO: WARNING: ifaddrs.h: in the future, the compiler will take precedence" >&5
7338echo "$as_me: WARNING: ifaddrs.h: in the future, the compiler will take precedence" >&2;}
7339
7340    ;;
7341esac
7342{ echo "$as_me:$LINENO: checking for ifaddrs.h" >&5
7343echo $ECHO_N "checking for ifaddrs.h... $ECHO_C" >&6; }
7344if test "${ac_cv_header_ifaddrs_h+set}" = set; then
7345  echo $ECHO_N "(cached) $ECHO_C" >&6
7346else
7347  ac_cv_header_ifaddrs_h=$ac_header_preproc
7348fi
7349{ echo "$as_me:$LINENO: result: $ac_cv_header_ifaddrs_h" >&5
7350echo "${ECHO_T}$ac_cv_header_ifaddrs_h" >&6; }
7351
7352fi
7353if test $ac_cv_header_ifaddrs_h = yes; then
7354
7355		    #
7356		    # We have the header, so we use "getifaddrs()" to
7357		    # get the list of interfaces.
7358		    #
7359		    V_FINDALLDEVS=getad
7360
7361else
7362
7363		    #
7364		    # We don't have the header - give up.
7365		    # XXX - we could also fall back on some other
7366		    # mechanism, but, for now, this'll catch this
7367		    # problem so that we can at least try to figure
7368		    # out something to do on systems with "getifaddrs()"
7369		    # but without "ifaddrs.h", if there is something
7370		    # we can do on those systems.
7371		    #
7372		    { { echo "$as_me:$LINENO: error: Your system has getifaddrs() but doesn't have a usable <ifaddrs.h>." >&5
7373echo "$as_me: error: Your system has getifaddrs() but doesn't have a usable <ifaddrs.h>." >&2;}
7374   { (exit 1); exit 1; }; }
7375
7376fi
7377
7378
7379
7380else
7381
7382		#
7383		# Well, we don't have "getifaddrs()", so we have to use
7384		# some other mechanism; determine what that mechanism is.
7385		#
7386		# The first thing we use is the type of capture mechanism,
7387		# which is somewhat of a proxy for the OS we're using.
7388		#
7389		case "$V_PCAP" in
7390
7391		dlpi|libdlpi)
7392
7393
7394for ac_header in sys/bufmod.h sys/dlpi_ext.h
7395do
7396as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7397if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7398  { echo "$as_me:$LINENO: checking for $ac_header" >&5
7399echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7400if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7401  echo $ECHO_N "(cached) $ECHO_C" >&6
7402fi
7403ac_res=`eval echo '${'$as_ac_Header'}'`
7404	       { echo "$as_me:$LINENO: result: $ac_res" >&5
7405echo "${ECHO_T}$ac_res" >&6; }
7406else
7407  # Is the header compilable?
7408{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
7409echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7410cat >conftest.$ac_ext <<_ACEOF
7411/* confdefs.h.  */
7412_ACEOF
7413cat confdefs.h >>conftest.$ac_ext
7414cat >>conftest.$ac_ext <<_ACEOF
7415/* end confdefs.h.  */
7416$ac_includes_default
7417#include <$ac_header>
7418_ACEOF
7419rm -f conftest.$ac_objext
7420if { (ac_try="$ac_compile"
7421case "(($ac_try" in
7422  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7423  *) ac_try_echo=$ac_try;;
7424esac
7425eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7426  (eval "$ac_compile") 2>conftest.er1
7427  ac_status=$?
7428  grep -v '^ *+' conftest.er1 >conftest.err
7429  rm -f conftest.er1
7430  cat conftest.err >&5
7431  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7432  (exit $ac_status); } && {
7433	 test -z "$ac_c_werror_flag" ||
7434	 test ! -s conftest.err
7435       } && test -s conftest.$ac_objext; then
7436  ac_header_compiler=yes
7437else
7438  echo "$as_me: failed program was:" >&5
7439sed 's/^/| /' conftest.$ac_ext >&5
7440
7441	ac_header_compiler=no
7442fi
7443
7444rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7445{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7446echo "${ECHO_T}$ac_header_compiler" >&6; }
7447
7448# Is the header present?
7449{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
7450echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7451cat >conftest.$ac_ext <<_ACEOF
7452/* confdefs.h.  */
7453_ACEOF
7454cat confdefs.h >>conftest.$ac_ext
7455cat >>conftest.$ac_ext <<_ACEOF
7456/* end confdefs.h.  */
7457#include <$ac_header>
7458_ACEOF
7459if { (ac_try="$ac_cpp conftest.$ac_ext"
7460case "(($ac_try" in
7461  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7462  *) ac_try_echo=$ac_try;;
7463esac
7464eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7465  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7466  ac_status=$?
7467  grep -v '^ *+' conftest.er1 >conftest.err
7468  rm -f conftest.er1
7469  cat conftest.err >&5
7470  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7471  (exit $ac_status); } >/dev/null && {
7472	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7473	 test ! -s conftest.err
7474       }; then
7475  ac_header_preproc=yes
7476else
7477  echo "$as_me: failed program was:" >&5
7478sed 's/^/| /' conftest.$ac_ext >&5
7479
7480  ac_header_preproc=no
7481fi
7482
7483rm -f conftest.err conftest.$ac_ext
7484{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7485echo "${ECHO_T}$ac_header_preproc" >&6; }
7486
7487# So?  What about this header?
7488case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7489  yes:no: )
7490    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7491echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7492    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7493echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7494    ac_header_preproc=yes
7495    ;;
7496  no:yes:* )
7497    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7498echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7499    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7500echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7501    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7502echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7503    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7504echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7505    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7506echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7507    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7508echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7509
7510    ;;
7511esac
7512{ echo "$as_me:$LINENO: checking for $ac_header" >&5
7513echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7514if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7515  echo $ECHO_N "(cached) $ECHO_C" >&6
7516else
7517  eval "$as_ac_Header=\$ac_header_preproc"
7518fi
7519ac_res=`eval echo '${'$as_ac_Header'}'`
7520	       { echo "$as_me:$LINENO: result: $ac_res" >&5
7521echo "${ECHO_T}$ac_res" >&6; }
7522
7523fi
7524if test `eval echo '${'$as_ac_Header'}'` = yes; then
7525  cat >>confdefs.h <<_ACEOF
7526#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7527_ACEOF
7528
7529fi
7530
7531done
7532
7533			#
7534			# This might be Solaris 8 or later, with
7535			# SIOCGLIFCONF, or it might be some other OS
7536			# or some older version of Solaris, with
7537			# just SIOCGIFCONF.
7538			#
7539			{ echo "$as_me:$LINENO: checking whether we have SIOCGLIFCONF" >&5
7540echo $ECHO_N "checking whether we have SIOCGLIFCONF... $ECHO_C" >&6; }
7541			if test "${ac_cv_lbl_have_siocglifconf+set}" = set; then
7542  echo $ECHO_N "(cached) $ECHO_C" >&6
7543else
7544  cat >conftest.$ac_ext <<_ACEOF
7545/* confdefs.h.  */
7546_ACEOF
7547cat confdefs.h >>conftest.$ac_ext
7548cat >>conftest.$ac_ext <<_ACEOF
7549/* end confdefs.h.  */
7550#include <sys/param.h>
7551				#include <sys/file.h>
7552				#include <sys/ioctl.h>
7553				#include <sys/socket.h>
7554				#include <sys/sockio.h>
7555int
7556main ()
7557{
7558ioctl(0, SIOCGLIFCONF, (char *)0);
7559  ;
7560  return 0;
7561}
7562_ACEOF
7563rm -f conftest.$ac_objext
7564if { (ac_try="$ac_compile"
7565case "(($ac_try" in
7566  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7567  *) ac_try_echo=$ac_try;;
7568esac
7569eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7570  (eval "$ac_compile") 2>conftest.er1
7571  ac_status=$?
7572  grep -v '^ *+' conftest.er1 >conftest.err
7573  rm -f conftest.er1
7574  cat conftest.err >&5
7575  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7576  (exit $ac_status); } && {
7577	 test -z "$ac_c_werror_flag" ||
7578	 test ! -s conftest.err
7579       } && test -s conftest.$ac_objext; then
7580  ac_cv_lbl_have_siocglifconf=yes
7581else
7582  echo "$as_me: failed program was:" >&5
7583sed 's/^/| /' conftest.$ac_ext >&5
7584
7585	ac_cv_lbl_have_siocglifconf=no
7586fi
7587
7588rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7589fi
7590
7591			{ echo "$as_me:$LINENO: result: $ac_cv_lbl_have_siocglifconf" >&5
7592echo "${ECHO_T}$ac_cv_lbl_have_siocglifconf" >&6; }
7593			if test $ac_cv_lbl_have_siocglifconf = yes ; then
7594				V_FINDALLDEVS=glifc
7595			else
7596				V_FINDALLDEVS=gifc
7597			fi
7598			#
7599			# Needed for common functions used by pcap-[dlpi,libdlpi].c
7600			#
7601		 	SSRC="dlpisubs.c"
7602			;;
7603
7604		*)
7605			#
7606			# Assume we just have SIOCGIFCONF.
7607			# (XXX - on at least later Linux kernels, there's
7608			# another mechanism, and we should be using that
7609			# instead.)
7610			#
7611			V_FINDALLDEVS=gifc
7612			;;
7613		esac
7614fi
7615
7616fi
7617
7618fi
7619
7620
7621{ echo "$as_me:$LINENO: checking for socklen_t" >&5
7622echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
7623cat >conftest.$ac_ext <<_ACEOF
7624/* confdefs.h.  */
7625_ACEOF
7626cat confdefs.h >>conftest.$ac_ext
7627cat >>conftest.$ac_ext <<_ACEOF
7628/* end confdefs.h.  */
7629
7630	#include <sys/types.h>
7631	#include <sys/socket.h>
7632
7633int
7634main ()
7635{
7636 socklen_t x;
7637  ;
7638  return 0;
7639}
7640_ACEOF
7641rm -f conftest.$ac_objext
7642if { (ac_try="$ac_compile"
7643case "(($ac_try" in
7644  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7645  *) ac_try_echo=$ac_try;;
7646esac
7647eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7648  (eval "$ac_compile") 2>conftest.er1
7649  ac_status=$?
7650  grep -v '^ *+' conftest.er1 >conftest.err
7651  rm -f conftest.er1
7652  cat conftest.err >&5
7653  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7654  (exit $ac_status); } && {
7655	 test -z "$ac_c_werror_flag" ||
7656	 test ! -s conftest.err
7657       } && test -s conftest.$ac_objext; then
7658  have_socklen_t=yes
7659else
7660  echo "$as_me: failed program was:" >&5
7661sed 's/^/| /' conftest.$ac_ext >&5
7662
7663	have_socklen_t=no
7664fi
7665
7666rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7667if test "x$have_socklen_t" = "xyes"; then
7668
7669cat >>confdefs.h <<\_ACEOF
7670#define HAVE_SOCKLEN_T 1
7671_ACEOF
7672
7673fi
7674{ echo "$as_me:$LINENO: result: $have_socklen_t" >&5
7675echo "${ECHO_T}$have_socklen_t" >&6; }
7676
7677# Check whether --enable-ipv6 was given.
7678if test "${enable_ipv6+set}" = set; then
7679  enableval=$enable_ipv6;
7680else
7681  enable_ipv6=ifavailable
7682fi
7683
7684if test "$enable_ipv6" != "no"; then
7685	{ echo "$as_me:$LINENO: checking for getaddrinfo" >&5
7686echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6; }
7687if test "${ac_cv_func_getaddrinfo+set}" = set; then
7688  echo $ECHO_N "(cached) $ECHO_C" >&6
7689else
7690  cat >conftest.$ac_ext <<_ACEOF
7691/* confdefs.h.  */
7692_ACEOF
7693cat confdefs.h >>conftest.$ac_ext
7694cat >>conftest.$ac_ext <<_ACEOF
7695/* end confdefs.h.  */
7696/* Define getaddrinfo to an innocuous variant, in case <limits.h> declares getaddrinfo.
7697   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7698#define getaddrinfo innocuous_getaddrinfo
7699
7700/* System header to define __stub macros and hopefully few prototypes,
7701    which can conflict with char getaddrinfo (); below.
7702    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7703    <limits.h> exists even on freestanding compilers.  */
7704
7705#ifdef __STDC__
7706# include <limits.h>
7707#else
7708# include <assert.h>
7709#endif
7710
7711#undef getaddrinfo
7712
7713/* Override any GCC internal prototype to avoid an error.
7714   Use char because int might match the return type of a GCC
7715   builtin and then its argument prototype would still apply.  */
7716#ifdef __cplusplus
7717extern "C"
7718#endif
7719char getaddrinfo ();
7720/* The GNU C library defines this for functions which it implements
7721    to always fail with ENOSYS.  Some functions are actually named
7722    something starting with __ and the normal name is an alias.  */
7723#if defined __stub_getaddrinfo || defined __stub___getaddrinfo
7724choke me
7725#endif
7726
7727int
7728main ()
7729{
7730return getaddrinfo ();
7731  ;
7732  return 0;
7733}
7734_ACEOF
7735rm -f conftest.$ac_objext conftest$ac_exeext
7736if { (ac_try="$ac_link"
7737case "(($ac_try" in
7738  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7739  *) ac_try_echo=$ac_try;;
7740esac
7741eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7742  (eval "$ac_link") 2>conftest.er1
7743  ac_status=$?
7744  grep -v '^ *+' conftest.er1 >conftest.err
7745  rm -f conftest.er1
7746  cat conftest.err >&5
7747  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7748  (exit $ac_status); } && {
7749	 test -z "$ac_c_werror_flag" ||
7750	 test ! -s conftest.err
7751       } && test -s conftest$ac_exeext &&
7752       $as_test_x conftest$ac_exeext; then
7753  ac_cv_func_getaddrinfo=yes
7754else
7755  echo "$as_me: failed program was:" >&5
7756sed 's/^/| /' conftest.$ac_ext >&5
7757
7758	ac_cv_func_getaddrinfo=no
7759fi
7760
7761rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7762      conftest$ac_exeext conftest.$ac_ext
7763fi
7764{ echo "$as_me:$LINENO: result: $ac_cv_func_getaddrinfo" >&5
7765echo "${ECHO_T}$ac_cv_func_getaddrinfo" >&6; }
7766if test $ac_cv_func_getaddrinfo = yes; then
7767
7768
7769cat >>confdefs.h <<\_ACEOF
7770#define INET6 1
7771_ACEOF
7772
7773
7774else
7775
7776		if test "$enable_ipv6" != "ifavailable"; then
7777			{ { echo "$as_me:$LINENO: error: --enable-ipv6 was given, but getaddrinfo isn't available
7778See \`config.log' for more details." >&5
7779echo "$as_me: error: --enable-ipv6 was given, but getaddrinfo isn't available
7780See \`config.log' for more details." >&2;}
7781   { (exit 1); exit 1; }; }
7782		fi
7783
7784fi
7785
7786fi
7787
7788{ echo "$as_me:$LINENO: checking whether to build optimizer debugging code" >&5
7789echo $ECHO_N "checking whether to build optimizer debugging code... $ECHO_C" >&6; }
7790# Check whether --enable-optimizer-dbg was given.
7791if test "${enable_optimizer_dbg+set}" = set; then
7792  enableval=$enable_optimizer_dbg;
7793fi
7794
7795if test "$enable_optimizer_dbg" = "yes"; then
7796
7797cat >>confdefs.h <<\_ACEOF
7798#define BDEBUG 1
7799_ACEOF
7800
7801fi
7802{ echo "$as_me:$LINENO: result: ${enable_optimizer_dbg-no}" >&5
7803echo "${ECHO_T}${enable_optimizer_dbg-no}" >&6; }
7804
7805{ echo "$as_me:$LINENO: checking whether to build parser debugging code" >&5
7806echo $ECHO_N "checking whether to build parser debugging code... $ECHO_C" >&6; }
7807# Check whether --enable-yydebug was given.
7808if test "${enable_yydebug+set}" = set; then
7809  enableval=$enable_yydebug;
7810fi
7811
7812if test "$enable_yydebug" = "yes"; then
7813
7814cat >>confdefs.h <<\_ACEOF
7815#define YYDEBUG 1
7816_ACEOF
7817
7818fi
7819{ echo "$as_me:$LINENO: result: ${enable_yydebug-no}" >&5
7820echo "${ECHO_T}${enable_yydebug-no}" >&6; }
7821
7822{ echo "$as_me:$LINENO: checking whether we have /proc/net/dev" >&5
7823echo $ECHO_N "checking whether we have /proc/net/dev... $ECHO_C" >&6; }
7824if test -r /proc/net/dev ; then
7825	ac_cv_lbl_proc_net_dev=yes
7826else
7827	ac_cv_lbl_proc_net_dev=no
7828fi
7829if test $ac_cv_lbl_proc_net_dev = yes; then
7830
7831cat >>confdefs.h <<\_ACEOF
7832#define HAVE_PROC_NET_DEV 1
7833_ACEOF
7834
7835fi
7836{ echo "$as_me:$LINENO: result: $ac_cv_lbl_proc_net_dev" >&5
7837echo "${ECHO_T}$ac_cv_lbl_proc_net_dev" >&6; }
7838
7839# Check for Endace DAG card support.
7840
7841# Check whether --with-dag was given.
7842if test "${with_dag+set}" = set; then
7843  withval=$with_dag;
7844	if test "$withval" = no
7845	then
7846		# User doesn't want DAG support.
7847		want_dag=no
7848	elif test "$withval" = yes
7849	then
7850		# User wants DAG support but hasn't specified a directory.
7851		want_dag=yes
7852	else
7853		# User wants DAG support and has specified a directory, so use the provided value.
7854		want_dag=yes
7855		dag_root=$withval
7856	fi
7857
7858else
7859
7860	#
7861	# Use DAG API if present, otherwise don't
7862	#
7863	want_dag=ifpresent
7864
7865fi
7866
7867
7868
7869# Check whether --with-dag-includes was given.
7870if test "${with_dag_includes+set}" = set; then
7871  withval=$with_dag_includes;
7872	# User wants DAG support and has specified a header directory, so use the provided value.
7873	want_dag=yes
7874	dag_include_dir=$withval
7875
7876fi
7877
7878
7879
7880# Check whether --with-dag-libraries was given.
7881if test "${with_dag_libraries+set}" = set; then
7882  withval=$with_dag_libraries;
7883	# User wants DAG support and has specified a library directory, so use the provided value.
7884	want_dag=yes
7885	dag_lib_dir=$withval
7886
7887fi
7888
7889
7890case "$V_PCAP" in
7891linux|bpf|dag)
7892	#
7893	# We support the DAG API if we're on Linux or BSD, or if we're
7894	# building a DAG-only libpcap.
7895	#
7896	;;
7897*)
7898	#
7899	# If the user explicitly requested DAG, tell them it's not
7900	# supported.
7901	#
7902	# If they expressed no preference, don't include it.
7903	#
7904	if test $want_dag = yes; then
7905		{ { echo "$as_me:$LINENO: error: DAG support is only available with 'linux' 'bpf' and 'dag' packet capture types" >&5
7906echo "$as_me: error: DAG support is only available with 'linux' 'bpf' and 'dag' packet capture types" >&2;}
7907   { (exit 1); exit 1; }; }
7908	elif test $want_dag = yes; then
7909		want_dag=no
7910	fi
7911	;;
7912esac
7913
7914ac_cv_lbl_dag_api=no
7915if test "$want_dag" != no; then
7916
7917	{ echo "$as_me:$LINENO: checking whether we have DAG API headers" >&5
7918echo $ECHO_N "checking whether we have DAG API headers... $ECHO_C" >&6; }
7919
7920	# If necessary, set default paths for DAG API headers and libraries.
7921	if test -z "$dag_root"; then
7922	    dag_root=/usr/local
7923	fi
7924
7925	if test -z "$dag_include_dir"; then
7926		dag_include_dir="$dag_root/include"
7927	fi
7928
7929	if test -z "$dag_lib_dir"; then
7930	    dag_lib_dir="$dag_root/lib"
7931	fi
7932
7933	if test -z "$dag_tools_dir"; then
7934	    dag_tools_dir="$dag_root/tools"
7935		fi
7936
7937	if test -r $dag_include_dir/dagapi.h; then
7938		ac_cv_lbl_dag_api=yes
7939	fi
7940	{ echo "$as_me:$LINENO: result: $ac_cv_lbl_dag_api ($dag_include_dir)" >&5
7941echo "${ECHO_T}$ac_cv_lbl_dag_api ($dag_include_dir)" >&6; }
7942fi
7943
7944if test $ac_cv_lbl_dag_api = yes; then
7945
7946	{ echo "$as_me:$LINENO: checking dagapi.o" >&5
7947echo $ECHO_N "checking dagapi.o... $ECHO_C" >&6; }
7948	dagapi_obj=no
7949	if test -r $dag_tools_dir/dagapi.o; then
7950		# 2.4.x.
7951		dagapi_obj=$dag_tools_dir/dagapi.o
7952	elif test -r $dag_lib_dir/dagapi.o; then
7953		# 2.5.x.
7954		dagapi_obj=$dag_lib_dir/dagapi.o
7955	elif test -r $dag_lib_dir/libdag.a; then
7956		# 2.5.x.
7957		ar x $dag_lib_dir/libdag.a dagapi.o 2>/dev/null
7958		if test -r ./dagapi.o; then
7959		    dagapi_obj=./dagapi.o
7960		else
7961		    ar x $dag_lib_dir/libdag.a libdag_la-dagapi.o 2>/dev/null
7962		    if test -r ./libdag_la-dagapi.o; then
7963		       dagapi_obj=./libdag_la-dagapi.o
7964		    fi
7965		fi
7966	fi
7967
7968	if test $dagapi_obj = no; then
7969		{ echo "$as_me:$LINENO: result: no (checked $dag_lib_dir  $dag_tools_dir  $dag_lib_dir/libdag.a)" >&5
7970echo "${ECHO_T}no (checked $dag_lib_dir  $dag_tools_dir  $dag_lib_dir/libdag.a)" >&6; }
7971			ac_cv_lbl_dag_api=no
7972	else
7973		{ echo "$as_me:$LINENO: result: yes ($dagapi_obj)" >&5
7974echo "${ECHO_T}yes ($dagapi_obj)" >&6; }
7975	fi
7976fi
7977
7978if test $ac_cv_lbl_dag_api = yes; then
7979
7980	{ echo "$as_me:$LINENO: checking dagopts.o" >&5
7981echo $ECHO_N "checking dagopts.o... $ECHO_C" >&6; }
7982	dagopts_obj=no
7983	if test -r $dag_tools_dir/dagopts.o; then
7984		# 2.4.x.
7985		dagopts_obj=$dag_tools_dir/dagopts.o
7986	elif test -r $dag_lib_dir/dagopts.o; then
7987		# 2.5.x.
7988		dagopts_obj=$dag_lib_dir/dagopts.o
7989	elif test -r $dag_lib_dir/libdag.a; then
7990		# 2.5.x.
7991		ar x $dag_lib_dir/libdag.a dagopts.o 2>/dev/null
7992		if test -r ./dagopts.o; then
7993		    dagopts_obj=./dagopts.o
7994		else
7995		    ar x $dag_lib_dir/libdag.a libdag_la-dagopts.o 2>/dev/null
7996		    if test -r ./libdag_la-dagopts.o; then
7997		       dagopts_obj=./libdag_la-dagopts.o
7998		    fi
7999		fi
8000	fi
8001
8002	if test $dagopts_obj = no; then
8003		{ echo "$as_me:$LINENO: result: no (checked $dag_lib_dir  $dag_tools_dir  $dag_lib_dir/libdag.a)" >&5
8004echo "${ECHO_T}no (checked $dag_lib_dir  $dag_tools_dir  $dag_lib_dir/libdag.a)" >&6; }
8005		ac_cv_lbl_dag_api=no
8006	else
8007		{ echo "$as_me:$LINENO: result: yes ($dagopts_obj)" >&5
8008echo "${ECHO_T}yes ($dagopts_obj)" >&6; }
8009	fi
8010fi
8011
8012if test $ac_cv_lbl_dag_api = yes; then
8013	# Under 2.5.x only we need to add dagreg.o.
8014	if test -r $dag_include_dir/dagreg.h; then
8015		{ echo "$as_me:$LINENO: checking dagreg.o" >&5
8016echo $ECHO_N "checking dagreg.o... $ECHO_C" >&6; }
8017		dagreg_obj=no
8018		if test -r $dag_lib_dir/dagreg.o; then
8019			# Object file is ready and waiting.
8020			dagreg_obj=$dag_lib_dir/dagreg.o
8021		elif test -r $dag_lib_dir/libdag.a; then
8022			# Extract from libdag.a.
8023			ar x $dag_lib_dir/libdag.a dagreg.o 2>/dev/null
8024			if test -r ./dagreg.o; then
8025				dagreg_obj=./dagreg.o
8026			else
8027				ar x $dag_lib_dir/libdag.a libdag_la-dagreg.o 2>/dev/null
8028				if test -r ./libdag_la-dagreg.o; then
8029				   dagreg_obj=./libdag_la-dagreg.o
8030				fi
8031			fi
8032		fi
8033
8034		if test $dagreg_obj = no; then
8035			{ echo "$as_me:$LINENO: result: no (checked $dag_lib_dir  $dag_lib_dir/libdag.a)" >&5
8036echo "${ECHO_T}no (checked $dag_lib_dir  $dag_lib_dir/libdag.a)" >&6; }
8037			ac_cv_lbl_dag_api=no
8038		else
8039			{ echo "$as_me:$LINENO: result: yes ($dagreg_obj)" >&5
8040echo "${ECHO_T}yes ($dagreg_obj)" >&6; }
8041		fi
8042	fi
8043fi
8044
8045if test $ac_cv_lbl_dag_api = yes; then
8046	V_INCLS="$V_INCLS -I$dag_include_dir"
8047	V_LIBS="$V_LIBS $dagapi_obj $dagopts_obj $dagreg_obj"
8048	if test $V_PCAP != dag ; then
8049		 SSRC="pcap-dag.c"
8050	fi
8051
8052	# See if we can find a general version string.
8053	# Don't need to save and restore LIBS to prevent -ldag being
8054	# included if there's a found-action (arg 3).
8055	saved_ldflags=$LDFLAGS
8056	LDFLAGS="-L$dag_lib_dir"
8057	{ echo "$as_me:$LINENO: checking for dag_attach_stream in -ldag" >&5
8058echo $ECHO_N "checking for dag_attach_stream in -ldag... $ECHO_C" >&6; }
8059if test "${ac_cv_lib_dag_dag_attach_stream+set}" = set; then
8060  echo $ECHO_N "(cached) $ECHO_C" >&6
8061else
8062  ac_check_lib_save_LIBS=$LIBS
8063LIBS="-ldag  $LIBS"
8064cat >conftest.$ac_ext <<_ACEOF
8065/* confdefs.h.  */
8066_ACEOF
8067cat confdefs.h >>conftest.$ac_ext
8068cat >>conftest.$ac_ext <<_ACEOF
8069/* end confdefs.h.  */
8070
8071/* Override any GCC internal prototype to avoid an error.
8072   Use char because int might match the return type of a GCC
8073   builtin and then its argument prototype would still apply.  */
8074#ifdef __cplusplus
8075extern "C"
8076#endif
8077char dag_attach_stream ();
8078int
8079main ()
8080{
8081return dag_attach_stream ();
8082  ;
8083  return 0;
8084}
8085_ACEOF
8086rm -f conftest.$ac_objext conftest$ac_exeext
8087if { (ac_try="$ac_link"
8088case "(($ac_try" in
8089  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8090  *) ac_try_echo=$ac_try;;
8091esac
8092eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8093  (eval "$ac_link") 2>conftest.er1
8094  ac_status=$?
8095  grep -v '^ *+' conftest.er1 >conftest.err
8096  rm -f conftest.er1
8097  cat conftest.err >&5
8098  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8099  (exit $ac_status); } && {
8100	 test -z "$ac_c_werror_flag" ||
8101	 test ! -s conftest.err
8102       } && test -s conftest$ac_exeext &&
8103       $as_test_x conftest$ac_exeext; then
8104  ac_cv_lib_dag_dag_attach_stream=yes
8105else
8106  echo "$as_me: failed program was:" >&5
8107sed 's/^/| /' conftest.$ac_ext >&5
8108
8109	ac_cv_lib_dag_dag_attach_stream=no
8110fi
8111
8112rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8113      conftest$ac_exeext conftest.$ac_ext
8114LIBS=$ac_check_lib_save_LIBS
8115fi
8116{ echo "$as_me:$LINENO: result: $ac_cv_lib_dag_dag_attach_stream" >&5
8117echo "${ECHO_T}$ac_cv_lib_dag_dag_attach_stream" >&6; }
8118if test $ac_cv_lib_dag_dag_attach_stream = yes; then
8119  dag_streams="1"
8120else
8121  dag_streams="0"
8122fi
8123
8124	{ echo "$as_me:$LINENO: checking for dag_get_erf_types in -ldag" >&5
8125echo $ECHO_N "checking for dag_get_erf_types in -ldag... $ECHO_C" >&6; }
8126if test "${ac_cv_lib_dag_dag_get_erf_types+set}" = set; then
8127  echo $ECHO_N "(cached) $ECHO_C" >&6
8128else
8129  ac_check_lib_save_LIBS=$LIBS
8130LIBS="-ldag  $LIBS"
8131cat >conftest.$ac_ext <<_ACEOF
8132/* confdefs.h.  */
8133_ACEOF
8134cat confdefs.h >>conftest.$ac_ext
8135cat >>conftest.$ac_ext <<_ACEOF
8136/* end confdefs.h.  */
8137
8138/* Override any GCC internal prototype to avoid an error.
8139   Use char because int might match the return type of a GCC
8140   builtin and then its argument prototype would still apply.  */
8141#ifdef __cplusplus
8142extern "C"
8143#endif
8144char dag_get_erf_types ();
8145int
8146main ()
8147{
8148return dag_get_erf_types ();
8149  ;
8150  return 0;
8151}
8152_ACEOF
8153rm -f conftest.$ac_objext conftest$ac_exeext
8154if { (ac_try="$ac_link"
8155case "(($ac_try" in
8156  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8157  *) ac_try_echo=$ac_try;;
8158esac
8159eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8160  (eval "$ac_link") 2>conftest.er1
8161  ac_status=$?
8162  grep -v '^ *+' conftest.er1 >conftest.err
8163  rm -f conftest.er1
8164  cat conftest.err >&5
8165  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8166  (exit $ac_status); } && {
8167	 test -z "$ac_c_werror_flag" ||
8168	 test ! -s conftest.err
8169       } && test -s conftest$ac_exeext &&
8170       $as_test_x conftest$ac_exeext; then
8171  ac_cv_lib_dag_dag_get_erf_types=yes
8172else
8173  echo "$as_me: failed program was:" >&5
8174sed 's/^/| /' conftest.$ac_ext >&5
8175
8176	ac_cv_lib_dag_dag_get_erf_types=no
8177fi
8178
8179rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8180      conftest$ac_exeext conftest.$ac_ext
8181LIBS=$ac_check_lib_save_LIBS
8182fi
8183{ echo "$as_me:$LINENO: result: $ac_cv_lib_dag_dag_get_erf_types" >&5
8184echo "${ECHO_T}$ac_cv_lib_dag_dag_get_erf_types" >&6; }
8185if test $ac_cv_lib_dag_dag_get_erf_types = yes; then
8186
8187
8188cat >>confdefs.h <<\_ACEOF
8189#define HAVE_DAG_GET_ERF_TYPES 1
8190_ACEOF
8191
8192fi
8193
8194	{ echo "$as_me:$LINENO: checking for dag_get_stream_erf_types in -ldag" >&5
8195echo $ECHO_N "checking for dag_get_stream_erf_types in -ldag... $ECHO_C" >&6; }
8196if test "${ac_cv_lib_dag_dag_get_stream_erf_types+set}" = set; then
8197  echo $ECHO_N "(cached) $ECHO_C" >&6
8198else
8199  ac_check_lib_save_LIBS=$LIBS
8200LIBS="-ldag  $LIBS"
8201cat >conftest.$ac_ext <<_ACEOF
8202/* confdefs.h.  */
8203_ACEOF
8204cat confdefs.h >>conftest.$ac_ext
8205cat >>conftest.$ac_ext <<_ACEOF
8206/* end confdefs.h.  */
8207
8208/* Override any GCC internal prototype to avoid an error.
8209   Use char because int might match the return type of a GCC
8210   builtin and then its argument prototype would still apply.  */
8211#ifdef __cplusplus
8212extern "C"
8213#endif
8214char dag_get_stream_erf_types ();
8215int
8216main ()
8217{
8218return dag_get_stream_erf_types ();
8219  ;
8220  return 0;
8221}
8222_ACEOF
8223rm -f conftest.$ac_objext conftest$ac_exeext
8224if { (ac_try="$ac_link"
8225case "(($ac_try" in
8226  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8227  *) ac_try_echo=$ac_try;;
8228esac
8229eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8230  (eval "$ac_link") 2>conftest.er1
8231  ac_status=$?
8232  grep -v '^ *+' conftest.er1 >conftest.err
8233  rm -f conftest.er1
8234  cat conftest.err >&5
8235  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8236  (exit $ac_status); } && {
8237	 test -z "$ac_c_werror_flag" ||
8238	 test ! -s conftest.err
8239       } && test -s conftest$ac_exeext &&
8240       $as_test_x conftest$ac_exeext; then
8241  ac_cv_lib_dag_dag_get_stream_erf_types=yes
8242else
8243  echo "$as_me: failed program was:" >&5
8244sed 's/^/| /' conftest.$ac_ext >&5
8245
8246	ac_cv_lib_dag_dag_get_stream_erf_types=no
8247fi
8248
8249rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8250      conftest$ac_exeext conftest.$ac_ext
8251LIBS=$ac_check_lib_save_LIBS
8252fi
8253{ echo "$as_me:$LINENO: result: $ac_cv_lib_dag_dag_get_stream_erf_types" >&5
8254echo "${ECHO_T}$ac_cv_lib_dag_dag_get_stream_erf_types" >&6; }
8255if test $ac_cv_lib_dag_dag_get_stream_erf_types = yes; then
8256
8257
8258cat >>confdefs.h <<\_ACEOF
8259#define HAVE_DAG_GET_STREAM_ERF_TYPES 1
8260_ACEOF
8261
8262fi
8263
8264	LDFLAGS=$saved_ldflags
8265
8266	if test "$dag_streams" = 1; then
8267
8268cat >>confdefs.h <<\_ACEOF
8269#define HAVE_DAG_STREAMS_API 1
8270_ACEOF
8271
8272		DAGLIBS="-ldag"
8273	fi
8274
8275
8276cat >>confdefs.h <<\_ACEOF
8277#define HAVE_DAG_API 1
8278_ACEOF
8279
8280fi
8281
8282{ echo "$as_me:$LINENO: checking whether we have the DAG API" >&5
8283echo $ECHO_N "checking whether we have the DAG API... $ECHO_C" >&6; }
8284
8285if test $ac_cv_lbl_dag_api = no; then
8286	{ echo "$as_me:$LINENO: result: no" >&5
8287echo "${ECHO_T}no" >&6; }
8288	if test "$want_dag" = yes; then
8289        	# User wanted DAG support but we couldn't find it.
8290		{ { echo "$as_me:$LINENO: error: DAG API requested, but not found at $dag_root: use --without-dag" >&5
8291echo "$as_me: error: DAG API requested, but not found at $dag_root: use --without-dag" >&2;}
8292   { (exit 1); exit 1; }; }
8293	fi
8294
8295	if test "$V_PCAP" = dag; then
8296		# User requested "dag" capture type but the DAG API wasn't
8297		# found.
8298		{ { 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
8299echo "$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;}
8300   { (exit 1); exit 1; }; }
8301	fi
8302else
8303	{ echo "$as_me:$LINENO: result: yes" >&5
8304echo "${ECHO_T}yes" >&6; }
8305fi
8306
8307
8308# Check whether --with-septel was given.
8309if test "${with_septel+set}" = set; then
8310  withval=$with_septel;
8311	if test "$withval" = no
8312	then
8313		want_septel=no
8314	elif test "$withval" = yes
8315	then
8316		want_septel=yes
8317		septel_root=
8318	else
8319		want_septel=yes
8320		septel_root=$withval
8321	fi
8322
8323else
8324
8325	#
8326	# Use Septel API if present, otherwise don't
8327	#
8328	want_septel=ifpresent
8329	septel_root=./../septel
8330
8331fi
8332
8333ac_cv_lbl_septel_api=no
8334case "$V_PCAP" in
8335linux|septel)
8336	#
8337	# We support the Septel API if we're on Linux, or if we're building
8338	# a Septel-only libpcap.
8339	#
8340	;;
8341*)
8342	#
8343	# If the user explicitly requested Septel, tell them it's not
8344	# supported.
8345	#
8346	# If they expressed no preference, don't include it.
8347	#
8348	if test $want_septel = yes; then
8349		{ { echo "$as_me:$LINENO: error: Septel support only available with 'linux' and 'septel' packet capture types" >&5
8350echo "$as_me: error: Septel support only available with 'linux' and 'septel' packet capture types" >&2;}
8351   { (exit 1); exit 1; }; }
8352	elif test $want_septel = yes; then
8353		want_septel=no
8354	fi
8355	;;
8356esac
8357
8358if test "$with_septel" != no; then
8359	{ echo "$as_me:$LINENO: checking whether we have Septel API" >&5
8360echo $ECHO_N "checking whether we have Septel API... $ECHO_C" >&6; }
8361
8362	if test -z "$septel_root"; then
8363		septel_root=$srcdir/../septel
8364
8365	fi
8366
8367	septel_tools_dir="$septel_root"
8368	septel_include_dir="$septel_root/INC"
8369	DEF="-DHAVE_SEPTEL_API"
8370
8371	ac_cv_lbl_septel_api=no
8372	if test -r "$septel_include_dir/msg.h"; then
8373		V_INCLS="$V_INCLS -I$septel_include_dir"
8374		V_DEFS="$V_DEFS $DEF"
8375		V_LIBS="$V_LIBS $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 "
8376
8377		if test "$V_PCAP" != septel ; then
8378			 SSRC="pcap-septel.c"
8379
8380		fi
8381		ac_cv_lbl_septel_api=yes
8382	fi
8383
8384	{ echo "$as_me:$LINENO: result: $ac_cv_lbl_septel_api" >&5
8385echo "${ECHO_T}$ac_cv_lbl_septel_api" >&6; }
8386	if test $ac_cv_lbl_septel_api = no; then
8387		if test "$want_septel" = yes; then
8388			{ { echo "$as_me:$LINENO: error: Septel API not found under directory $septel_root; use --without-septel" >&5
8389echo "$as_me: error: Septel API not found under directory $septel_root; use --without-septel" >&2;}
8390   { (exit 1); exit 1; }; }
8391		fi
8392	else
8393
8394cat >>confdefs.h <<\_ACEOF
8395#define HAVE_SEPTEL_API 1
8396_ACEOF
8397
8398	fi
8399fi
8400
8401if test "$V_PCAP" = septel -a "$ac_cv_lbl_septel_api" = no; then
8402	{ { echo "$as_me:$LINENO: error: Specifying the capture type as 'septel' requires the Septel API to be present; use --with-septel=DIR" >&5
8403echo "$as_me: error: Specifying the capture type as 'septel' requires the Septel API to be present; use --with-septel=DIR" >&2;}
8404   { (exit 1); exit 1; }; }
8405fi
8406
8407
8408
8409# Check whether --with-flex was given.
8410if test "${with_flex+set}" = set; then
8411  withval=$with_flex;
8412fi
8413
8414
8415# Check whether --with-bison was given.
8416if test "${with_bison+set}" = set; then
8417  withval=$with_bison;
8418fi
8419
8420    if test "$with_flex" = no ; then
8421	    V_LEX=lex
8422    else
8423	    for ac_prog in flex
8424do
8425  # Extract the first word of "$ac_prog", so it can be a program name with args.
8426set dummy $ac_prog; ac_word=$2
8427{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8428echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8429if test "${ac_cv_prog_V_LEX+set}" = set; then
8430  echo $ECHO_N "(cached) $ECHO_C" >&6
8431else
8432  if test -n "$V_LEX"; then
8433  ac_cv_prog_V_LEX="$V_LEX" # Let the user override the test.
8434else
8435as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8436for as_dir in $PATH
8437do
8438  IFS=$as_save_IFS
8439  test -z "$as_dir" && as_dir=.
8440  for ac_exec_ext in '' $ac_executable_extensions; do
8441  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8442    ac_cv_prog_V_LEX="$ac_prog"
8443    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8444    break 2
8445  fi
8446done
8447done
8448IFS=$as_save_IFS
8449
8450fi
8451fi
8452V_LEX=$ac_cv_prog_V_LEX
8453if test -n "$V_LEX"; then
8454  { echo "$as_me:$LINENO: result: $V_LEX" >&5
8455echo "${ECHO_T}$V_LEX" >&6; }
8456else
8457  { echo "$as_me:$LINENO: result: no" >&5
8458echo "${ECHO_T}no" >&6; }
8459fi
8460
8461
8462  test -n "$V_LEX" && break
8463done
8464test -n "$V_LEX" || V_LEX="lex"
8465
8466    fi
8467    if test "$V_LEX" = flex ; then
8468	    # The -V flag was added in 2.4
8469	    { echo "$as_me:$LINENO: checking for flex 2.4 or higher" >&5
8470echo $ECHO_N "checking for flex 2.4 or higher... $ECHO_C" >&6; }
8471	    if test "${ac_cv_lbl_flex_v24+set}" = set; then
8472  echo $ECHO_N "(cached) $ECHO_C" >&6
8473else
8474  if flex -V >/dev/null 2>&1; then
8475			ac_cv_lbl_flex_v24=yes
8476		else
8477			ac_cv_lbl_flex_v24=no
8478		fi
8479fi
8480
8481	    { echo "$as_me:$LINENO: result: $ac_cv_lbl_flex_v24" >&5
8482echo "${ECHO_T}$ac_cv_lbl_flex_v24" >&6; }
8483	    if test $ac_cv_lbl_flex_v24 = no ; then
8484		    s="2.4 or higher required"
8485		    { echo "$as_me:$LINENO: WARNING: ignoring obsolete flex executable ($s)" >&5
8486echo "$as_me: WARNING: ignoring obsolete flex executable ($s)" >&2;}
8487		    V_LEX=lex
8488	    fi
8489    fi
8490    if test "$with_bison" = no ; then
8491	    V_YACC=yacc
8492    else
8493	    for ac_prog in bison
8494do
8495  # Extract the first word of "$ac_prog", so it can be a program name with args.
8496set dummy $ac_prog; ac_word=$2
8497{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8498echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8499if test "${ac_cv_prog_V_YACC+set}" = set; then
8500  echo $ECHO_N "(cached) $ECHO_C" >&6
8501else
8502  if test -n "$V_YACC"; then
8503  ac_cv_prog_V_YACC="$V_YACC" # Let the user override the test.
8504else
8505as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8506for as_dir in $PATH
8507do
8508  IFS=$as_save_IFS
8509  test -z "$as_dir" && as_dir=.
8510  for ac_exec_ext in '' $ac_executable_extensions; do
8511  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8512    ac_cv_prog_V_YACC="$ac_prog"
8513    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8514    break 2
8515  fi
8516done
8517done
8518IFS=$as_save_IFS
8519
8520fi
8521fi
8522V_YACC=$ac_cv_prog_V_YACC
8523if test -n "$V_YACC"; then
8524  { echo "$as_me:$LINENO: result: $V_YACC" >&5
8525echo "${ECHO_T}$V_YACC" >&6; }
8526else
8527  { echo "$as_me:$LINENO: result: no" >&5
8528echo "${ECHO_T}no" >&6; }
8529fi
8530
8531
8532  test -n "$V_YACC" && break
8533done
8534test -n "$V_YACC" || V_YACC="yacc"
8535
8536    fi
8537    if test "$V_YACC" = bison ; then
8538	    V_YACC="$V_YACC -y"
8539    fi
8540    if test "$V_LEX" != lex -a "$V_YACC" = yacc -o "$V_LEX" = lex -a "$V_YACC" != yacc ; then
8541	    { echo "$as_me:$LINENO: WARNING: don't have both flex and bison; reverting to lex/yacc" >&5
8542echo "$as_me: WARNING: don't have both flex and bison; reverting to lex/yacc" >&2;}
8543	    V_LEX=lex
8544	    V_YACC=yacc
8545    fi
8546    if test "$V_LEX" = flex -a -n "pcap_" ; then
8547	    V_LEX="$V_LEX -Ppcap_"
8548	    V_YACC="$V_YACC -p pcap_"
8549    fi
8550if test "$V_LEX" = lex ; then
8551# Some versions of lex can't handle the definitions section of scanner.l .
8552# Try lexing it and complain if it can't deal.
8553	{ echo "$as_me:$LINENO: checking for capable lex" >&5
8554echo $ECHO_N "checking for capable lex... $ECHO_C" >&6; }
8555if test "${tcpdump_cv_capable_lex+set}" = set; then
8556  echo $ECHO_N "(cached) $ECHO_C" >&6
8557else
8558  if lex -t scanner.l > /dev/null 2>&1; then
8559			tcpdump_cv_capable_lex=yes
8560		else
8561			tcpdump_cv_capable_lex=insufficient
8562		fi
8563fi
8564{ echo "$as_me:$LINENO: result: $tcpdump_cv_capable_lex" >&5
8565echo "${ECHO_T}$tcpdump_cv_capable_lex" >&6; }
8566	if test $tcpdump_cv_capable_lex = insufficient ; then
8567		{ { echo "$as_me:$LINENO: error: Your operating system's lex is insufficient to compile
8568 libpcap.  flex is a lex replacement that has many advantages, including
8569 being able to compile libpcap.  For more information, see
8570 http://www.gnu.org/software/flex/flex.html ." >&5
8571echo "$as_me: error: Your operating system's lex is insufficient to compile
8572 libpcap.  flex is a lex replacement that has many advantages, including
8573 being able to compile libpcap.  For more information, see
8574 http://www.gnu.org/software/flex/flex.html ." >&2;}
8575   { (exit 1); exit 1; }; }
8576	fi
8577fi
8578
8579#
8580# Assume a.out/ELF convention for shared library names (".so"), and
8581# V7/BSD convention for man pages (file formats in section 5,
8582# miscellaneous info in section 7).
8583#
8584DYEXT="so"
8585MAN_FILE_FORMATS=5
8586MAN_MISC_INFO=7
8587case "$host_os" in
8588
8589aix*)
8590
8591cat >>confdefs.h <<\_ACEOF
8592#define _SUN 1
8593_ACEOF
8594
8595
8596	# We need "-lodm" and "-lcfg", as libpcap requires them on
8597	# AIX.
8598	DEPLIBS="-lodm -lcfg"
8599	;;
8600
8601darwin*)
8602	DYEXT="dylib"
8603	V_CCOPT="$V_CCOPT -fno-common"
8604	;;
8605
8606hpux9*)
8607
8608cat >>confdefs.h <<\_ACEOF
8609#define HAVE_HPUX9 1
8610_ACEOF
8611
8612
8613	#
8614	# Use System V conventions for man pages.
8615	#
8616	MAN_FILE_FORMATS=4
8617	MAN_MISC_INFO=5
8618	;;
8619
8620hpux10.0*)
8621
8622	#
8623	# Use System V conventions for man pages.
8624	#
8625	MAN_FILE_FORMATS=4
8626	MAN_MISC_INFO=5
8627	;;
8628
8629hpux10.1*)
8630
8631	#
8632	# Use System V conventions for man pages.
8633	#
8634	MAN_FILE_FORMATS=4
8635	MAN_MISC_INFO=5
8636	;;
8637
8638hpux*)
8639
8640cat >>confdefs.h <<\_ACEOF
8641#define HAVE_HPUX10_20_OR_LATER 1
8642_ACEOF
8643
8644
8645	#
8646	# Use System V conventions for man pages.
8647	#
8648	MAN_FILE_FORMATS=4
8649	MAN_MISC_INFO=5
8650	;;
8651
8652irix*)
8653	#
8654	# Use System V conventions for man pages.
8655	#
8656	MAN_FILE_FORMATS=4
8657	MAN_MISC_INFO=5
8658	;;
8659
8660linux*)
8661	V_CCOPT="$V_CCOPT -fPIC"
8662	;;
8663
8664osf*)
8665	#
8666	# Use System V conventions for man pages.
8667	#
8668	MAN_FILE_FORMATS=4
8669	MAN_MISC_INFO=5
8670	;;
8671
8672sinix*)
8673	{ echo "$as_me:$LINENO: checking if SINIX compiler defines sinix" >&5
8674echo $ECHO_N "checking if SINIX compiler defines sinix... $ECHO_C" >&6; }
8675	if test "${ac_cv_cc_sinix_defined+set}" = set; then
8676  echo $ECHO_N "(cached) $ECHO_C" >&6
8677else
8678  cat >conftest.$ac_ext <<_ACEOF
8679/* confdefs.h.  */
8680_ACEOF
8681cat confdefs.h >>conftest.$ac_ext
8682cat >>conftest.$ac_ext <<_ACEOF
8683/* end confdefs.h.  */
8684
8685int
8686main ()
8687{
8688int i = sinix;
8689  ;
8690  return 0;
8691}
8692_ACEOF
8693rm -f conftest.$ac_objext
8694if { (ac_try="$ac_compile"
8695case "(($ac_try" in
8696  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8697  *) ac_try_echo=$ac_try;;
8698esac
8699eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8700  (eval "$ac_compile") 2>conftest.er1
8701  ac_status=$?
8702  grep -v '^ *+' conftest.er1 >conftest.err
8703  rm -f conftest.er1
8704  cat conftest.err >&5
8705  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8706  (exit $ac_status); } && {
8707	 test -z "$ac_c_werror_flag" ||
8708	 test ! -s conftest.err
8709       } && test -s conftest.$ac_objext; then
8710  ac_cv_cc_sinix_defined=yes
8711else
8712  echo "$as_me: failed program was:" >&5
8713sed 's/^/| /' conftest.$ac_ext >&5
8714
8715	ac_cv_cc_sinix_defined=no
8716fi
8717
8718rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8719fi
8720
8721	    { echo "$as_me:$LINENO: result: $ac_cv_cc_sinix_defined" >&5
8722echo "${ECHO_T}$ac_cv_cc_sinix_defined" >&6; }
8723	    if test $ac_cv_cc_sinix_defined = no ; then
8724
8725cat >>confdefs.h <<\_ACEOF
8726#define sinix 1
8727_ACEOF
8728
8729	    fi
8730	;;
8731
8732solaris*)
8733
8734cat >>confdefs.h <<\_ACEOF
8735#define HAVE_SOLARIS 1
8736_ACEOF
8737
8738
8739	#
8740	# Use System V conventions for man pages.
8741	#
8742	MAN_FILE_FORMATS=4
8743	MAN_MISC_INFO=5
8744	;;
8745esac
8746
8747if test -n "$ac_tool_prefix"; then
8748  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8749set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8750{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8751echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8752if test "${ac_cv_prog_RANLIB+set}" = set; then
8753  echo $ECHO_N "(cached) $ECHO_C" >&6
8754else
8755  if test -n "$RANLIB"; then
8756  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8757else
8758as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8759for as_dir in $PATH
8760do
8761  IFS=$as_save_IFS
8762  test -z "$as_dir" && as_dir=.
8763  for ac_exec_ext in '' $ac_executable_extensions; do
8764  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8765    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8766    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8767    break 2
8768  fi
8769done
8770done
8771IFS=$as_save_IFS
8772
8773fi
8774fi
8775RANLIB=$ac_cv_prog_RANLIB
8776if test -n "$RANLIB"; then
8777  { echo "$as_me:$LINENO: result: $RANLIB" >&5
8778echo "${ECHO_T}$RANLIB" >&6; }
8779else
8780  { echo "$as_me:$LINENO: result: no" >&5
8781echo "${ECHO_T}no" >&6; }
8782fi
8783
8784
8785fi
8786if test -z "$ac_cv_prog_RANLIB"; then
8787  ac_ct_RANLIB=$RANLIB
8788  # Extract the first word of "ranlib", so it can be a program name with args.
8789set dummy ranlib; ac_word=$2
8790{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8791echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8792if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8793  echo $ECHO_N "(cached) $ECHO_C" >&6
8794else
8795  if test -n "$ac_ct_RANLIB"; then
8796  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8797else
8798as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8799for as_dir in $PATH
8800do
8801  IFS=$as_save_IFS
8802  test -z "$as_dir" && as_dir=.
8803  for ac_exec_ext in '' $ac_executable_extensions; do
8804  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8805    ac_cv_prog_ac_ct_RANLIB="ranlib"
8806    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8807    break 2
8808  fi
8809done
8810done
8811IFS=$as_save_IFS
8812
8813fi
8814fi
8815ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8816if test -n "$ac_ct_RANLIB"; then
8817  { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8818echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
8819else
8820  { echo "$as_me:$LINENO: result: no" >&5
8821echo "${ECHO_T}no" >&6; }
8822fi
8823
8824  if test "x$ac_ct_RANLIB" = x; then
8825    RANLIB=":"
8826  else
8827    case $cross_compiling:$ac_tool_warned in
8828yes:)
8829{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8830whose name does not start with the host triplet.  If you think this
8831configuration is useful to you, please write to autoconf@gnu.org." >&5
8832echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8833whose name does not start with the host triplet.  If you think this
8834configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8835ac_tool_warned=yes ;;
8836esac
8837    RANLIB=$ac_ct_RANLIB
8838  fi
8839else
8840  RANLIB="$ac_cv_prog_RANLIB"
8841fi
8842
8843
8844rm -f os-proto.h
8845    if test "${LBL_CFLAGS+set}" = set; then
8846	    V_CCOPT="$V_CCOPT ${LBL_CFLAGS}"
8847    fi
8848    if test -f .devel ; then
8849	    if test "$GCC" = yes ; then
8850		    if test "${LBL_CFLAGS+set}" != set; then
8851			    if test "$ac_cv_prog_cc_g" = yes ; then
8852				    V_CCOPT="-g $V_CCOPT"
8853			    fi
8854			    V_CCOPT="$V_CCOPT -Wall"
8855			    if test $ac_cv_lbl_gcc_vers -gt 1 ; then
8856				    V_CCOPT="$V_CCOPT -Wmissing-prototypes -Wstrict-prototypes"
8857			    fi
8858		    fi
8859	    else
8860		    case "$host_os" in
8861
8862		    irix6*)
8863			    V_CCOPT="$V_CCOPT -n32"
8864			    ;;
8865
8866		    *)
8867			    ;;
8868		    esac
8869	    fi
8870	    os=`echo $host_os | sed -e 's/\([0-9][0-9]*\)[^0-9].*$/\1/'`
8871	    name="lbl/os-$os.h"
8872	    if test -f $name ; then
8873		    ln -s $name os-proto.h
8874
8875cat >>confdefs.h <<\_ACEOF
8876#define HAVE_OS_PROTO_H 1
8877_ACEOF
8878
8879	    else
8880		    { echo "$as_me:$LINENO: WARNING: can't find $name" >&5
8881echo "$as_me: WARNING: can't find $name" >&2;}
8882	    fi
8883    fi
8884
8885{ echo "$as_me:$LINENO: checking if sockaddr struct has sa_len member" >&5
8886echo $ECHO_N "checking if sockaddr struct has sa_len member... $ECHO_C" >&6; }
8887    if test "${ac_cv_lbl_sockaddr_has_sa_len+set}" = set; then
8888  echo $ECHO_N "(cached) $ECHO_C" >&6
8889else
8890  cat >conftest.$ac_ext <<_ACEOF
8891/* confdefs.h.  */
8892_ACEOF
8893cat confdefs.h >>conftest.$ac_ext
8894cat >>conftest.$ac_ext <<_ACEOF
8895/* end confdefs.h.  */
8896
8897#	include <sys/types.h>
8898#	include <sys/socket.h>
8899int
8900main ()
8901{
8902u_int i = sizeof(((struct sockaddr *)0)->sa_len)
8903  ;
8904  return 0;
8905}
8906_ACEOF
8907rm -f conftest.$ac_objext
8908if { (ac_try="$ac_compile"
8909case "(($ac_try" in
8910  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8911  *) ac_try_echo=$ac_try;;
8912esac
8913eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8914  (eval "$ac_compile") 2>conftest.er1
8915  ac_status=$?
8916  grep -v '^ *+' conftest.er1 >conftest.err
8917  rm -f conftest.er1
8918  cat conftest.err >&5
8919  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8920  (exit $ac_status); } && {
8921	 test -z "$ac_c_werror_flag" ||
8922	 test ! -s conftest.err
8923       } && test -s conftest.$ac_objext; then
8924  ac_cv_lbl_sockaddr_has_sa_len=yes
8925else
8926  echo "$as_me: failed program was:" >&5
8927sed 's/^/| /' conftest.$ac_ext >&5
8928
8929	ac_cv_lbl_sockaddr_has_sa_len=no
8930fi
8931
8932rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8933fi
8934
8935    { echo "$as_me:$LINENO: result: $ac_cv_lbl_sockaddr_has_sa_len" >&5
8936echo "${ECHO_T}$ac_cv_lbl_sockaddr_has_sa_len" >&6; }
8937    if test $ac_cv_lbl_sockaddr_has_sa_len = yes ; then
8938
8939cat >>confdefs.h <<\_ACEOF
8940#define HAVE_SOCKADDR_SA_LEN 1
8941_ACEOF
8942
8943    fi
8944
8945{ echo "$as_me:$LINENO: checking if sockaddr_storage struct exists" >&5
8946echo $ECHO_N "checking if sockaddr_storage struct exists... $ECHO_C" >&6; }
8947    if test "${ac_cv_lbl_has_sockaddr_storage+set}" = set; then
8948  echo $ECHO_N "(cached) $ECHO_C" >&6
8949else
8950  cat >conftest.$ac_ext <<_ACEOF
8951/* confdefs.h.  */
8952_ACEOF
8953cat confdefs.h >>conftest.$ac_ext
8954cat >>conftest.$ac_ext <<_ACEOF
8955/* end confdefs.h.  */
8956
8957#	include <sys/types.h>
8958#	include <sys/socket.h>
8959int
8960main ()
8961{
8962u_int i = sizeof (struct sockaddr_storage)
8963  ;
8964  return 0;
8965}
8966_ACEOF
8967rm -f conftest.$ac_objext
8968if { (ac_try="$ac_compile"
8969case "(($ac_try" in
8970  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8971  *) ac_try_echo=$ac_try;;
8972esac
8973eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8974  (eval "$ac_compile") 2>conftest.er1
8975  ac_status=$?
8976  grep -v '^ *+' conftest.er1 >conftest.err
8977  rm -f conftest.er1
8978  cat conftest.err >&5
8979  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8980  (exit $ac_status); } && {
8981	 test -z "$ac_c_werror_flag" ||
8982	 test ! -s conftest.err
8983       } && test -s conftest.$ac_objext; then
8984  ac_cv_lbl_has_sockaddr_storage=yes
8985else
8986  echo "$as_me: failed program was:" >&5
8987sed 's/^/| /' conftest.$ac_ext >&5
8988
8989	ac_cv_lbl_has_sockaddr_storage=no
8990fi
8991
8992rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8993fi
8994
8995    { echo "$as_me:$LINENO: result: $ac_cv_lbl_has_sockaddr_storage" >&5
8996echo "${ECHO_T}$ac_cv_lbl_has_sockaddr_storage" >&6; }
8997    if test $ac_cv_lbl_has_sockaddr_storage = yes ; then
8998
8999cat >>confdefs.h <<\_ACEOF
9000#define HAVE_SOCKADDR_STORAGE 1
9001_ACEOF
9002
9003    fi
9004
9005{ echo "$as_me:$LINENO: checking if dl_hp_ppa_info_t struct has dl_module_id_1 member" >&5
9006echo $ECHO_N "checking if dl_hp_ppa_info_t struct has dl_module_id_1 member... $ECHO_C" >&6; }
9007    if test "${ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1+set}" = set; then
9008  echo $ECHO_N "(cached) $ECHO_C" >&6
9009else
9010  cat >conftest.$ac_ext <<_ACEOF
9011/* confdefs.h.  */
9012_ACEOF
9013cat confdefs.h >>conftest.$ac_ext
9014cat >>conftest.$ac_ext <<_ACEOF
9015/* end confdefs.h.  */
9016
9017#	include <sys/types.h>
9018#	include <sys/dlpi.h>
9019#	include <sys/dlpi_ext.h>
9020int
9021main ()
9022{
9023u_int i = sizeof(((dl_hp_ppa_info_t *)0)->dl_module_id_1)
9024  ;
9025  return 0;
9026}
9027_ACEOF
9028rm -f conftest.$ac_objext
9029if { (ac_try="$ac_compile"
9030case "(($ac_try" in
9031  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9032  *) ac_try_echo=$ac_try;;
9033esac
9034eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9035  (eval "$ac_compile") 2>conftest.er1
9036  ac_status=$?
9037  grep -v '^ *+' conftest.er1 >conftest.err
9038  rm -f conftest.er1
9039  cat conftest.err >&5
9040  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9041  (exit $ac_status); } && {
9042	 test -z "$ac_c_werror_flag" ||
9043	 test ! -s conftest.err
9044       } && test -s conftest.$ac_objext; then
9045  ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1=yes
9046else
9047  echo "$as_me: failed program was:" >&5
9048sed 's/^/| /' conftest.$ac_ext >&5
9049
9050	ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1=no
9051fi
9052
9053rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9054fi
9055
9056    { echo "$as_me:$LINENO: result: $ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1" >&5
9057echo "${ECHO_T}$ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1" >&6; }
9058    if test $ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1 = yes ; then
9059
9060cat >>confdefs.h <<\_ACEOF
9061#define HAVE_HP_PPA_INFO_T_DL_MODULE_ID_1 1
9062_ACEOF
9063
9064    fi
9065
9066{ echo "$as_me:$LINENO: checking if unaligned accesses fail" >&5
9067echo $ECHO_N "checking if unaligned accesses fail... $ECHO_C" >&6; }
9068    if test "${ac_cv_lbl_unaligned_fail+set}" = set; then
9069  echo $ECHO_N "(cached) $ECHO_C" >&6
9070else
9071  case "$host_cpu" in
9072
9073	#
9074	# These are CPU types where:
9075	#
9076	#	the CPU faults on an unaligned access, but at least some
9077	#	OSes that support that CPU catch the fault and simulate
9078	#	the unaligned access (e.g., Alpha/{Digital,Tru64} UNIX) -
9079	#	the simulation is slow, so we don't want to use it;
9080	#
9081	#	the CPU, I infer (from the old
9082	#
9083	# XXX: should also check that they don't do weird things (like on arm)
9084	#
9085	#	comment) doesn't fault on unaligned accesses, but doesn't
9086	#	do a normal unaligned fetch, either (e.g., presumably, ARM);
9087	#
9088	#	for whatever reason, the test program doesn't work
9089	#	(this has been claimed to be the case for several of those
9090	#	CPUs - I don't know what the problem is; the problem
9091	#	was reported as "the test program dumps core" for SuperH,
9092	#	but that's what the test program is *supposed* to do -
9093	#	it dumps core before it writes anything, so the test
9094	#	for an empty output file should find an empty output
9095	#	file and conclude that unaligned accesses don't work).
9096	#
9097	# This run-time test won't work if you're cross-compiling, so
9098	# in order to support cross-compiling for a particular CPU,
9099	# we have to wire in the list of CPU types anyway, as far as
9100	# I know, so perhaps we should just have a set of CPUs on
9101	# which we know it doesn't work, a set of CPUs on which we
9102	# know it does work, and have the script just fail on other
9103	# cpu types and update it when such a failure occurs.
9104	#
9105	alpha*|arm*|bfin*|hp*|mips*|sh*|sparc*|ia64|nv1)
9106		ac_cv_lbl_unaligned_fail=yes
9107		;;
9108
9109	*)
9110		cat >conftest.c <<EOF
9111#		include <sys/types.h>
9112#		include <sys/wait.h>
9113#		include <stdio.h>
9114		unsigned char a[5] = { 1, 2, 3, 4, 5 };
9115		main() {
9116		unsigned int i;
9117		pid_t pid;
9118		int status;
9119		/* avoid "core dumped" message */
9120		pid = fork();
9121		if (pid <  0)
9122			exit(2);
9123		if (pid > 0) {
9124			/* parent */
9125			pid = waitpid(pid, &status, 0);
9126			if (pid < 0)
9127				exit(3);
9128			exit(!WIFEXITED(status));
9129		}
9130		/* child */
9131		i = *(unsigned int *)&a[1];
9132		printf("%d\n", i);
9133		exit(0);
9134		}
9135EOF
9136		${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS \
9137		    conftest.c $LIBS >/dev/null 2>&1
9138		if test ! -x conftest ; then
9139						ac_cv_lbl_unaligned_fail=yes
9140		else
9141			./conftest >conftest.out
9142			if test ! -s conftest.out ; then
9143				ac_cv_lbl_unaligned_fail=yes
9144			else
9145				ac_cv_lbl_unaligned_fail=no
9146			fi
9147		fi
9148		rm -f conftest* core core.conftest
9149		;;
9150	esac
9151fi
9152
9153    { echo "$as_me:$LINENO: result: $ac_cv_lbl_unaligned_fail" >&5
9154echo "${ECHO_T}$ac_cv_lbl_unaligned_fail" >&6; }
9155    if test $ac_cv_lbl_unaligned_fail = yes ; then
9156
9157cat >>confdefs.h <<\_ACEOF
9158#define LBL_ALIGN 1
9159_ACEOF
9160
9161    fi
9162
9163#
9164# Makefile.in includes rules to generate version.h, so we assume
9165# that it will be generated if autoconf is used.
9166#
9167
9168cat >>confdefs.h <<\_ACEOF
9169#define HAVE_VERSION_H 1
9170_ACEOF
9171
9172
9173rm -f net
9174ln -s ${srcdir}/bpf/net net
9175
9176
9177
9178
9179
9180
9181
9182
9183
9184
9185
9186
9187
9188
9189
9190
9191{ echo "$as_me:$LINENO: checking for USB sniffing support" >&5
9192echo $ECHO_N "checking for USB sniffing support... $ECHO_C" >&6; }
9193case "$host_os" in
9194linux*)
9195
9196cat >>confdefs.h <<\_ACEOF
9197#define PCAP_SUPPORT_USB 1
9198_ACEOF
9199
9200       USB_SRC=pcap-usb-linux.c
9201       { echo "$as_me:$LINENO: result: yes" >&5
9202echo "${ECHO_T}yes" >&6; }
9203       ac_usb_dev_name=`udevinfo -q name -p /sys/class/usb_device/usbmon 2>/dev/null`
9204       if test $? -ne 0 ; then
9205               ac_usb_dev_name="usbmon"
9206       fi
9207
9208cat >>confdefs.h <<_ACEOF
9209#define LINUX_USB_MON_DEV "/dev/$ac_usb_dev_name"
9210_ACEOF
9211
9212       { echo "$as_me:$LINENO: Device for USB sniffing is /dev/$ac_usb_dev_name" >&5
9213echo "$as_me: Device for USB sniffing is /dev/$ac_usb_dev_name" >&6;}
9214       ;;
9215*)
9216       { echo "$as_me:$LINENO: result: no" >&5
9217echo "${ECHO_T}no" >&6; }
9218       ;;
9219esac
9220
9221
9222
9223case "$host_os" in
9224linux*)
9225       if test "${ac_cv_header_bluetooth_bluetooth_h+set}" = set; then
9226  { echo "$as_me:$LINENO: checking for bluetooth/bluetooth.h" >&5
9227echo $ECHO_N "checking for bluetooth/bluetooth.h... $ECHO_C" >&6; }
9228if test "${ac_cv_header_bluetooth_bluetooth_h+set}" = set; then
9229  echo $ECHO_N "(cached) $ECHO_C" >&6
9230fi
9231{ echo "$as_me:$LINENO: result: $ac_cv_header_bluetooth_bluetooth_h" >&5
9232echo "${ECHO_T}$ac_cv_header_bluetooth_bluetooth_h" >&6; }
9233else
9234  # Is the header compilable?
9235{ echo "$as_me:$LINENO: checking bluetooth/bluetooth.h usability" >&5
9236echo $ECHO_N "checking bluetooth/bluetooth.h usability... $ECHO_C" >&6; }
9237cat >conftest.$ac_ext <<_ACEOF
9238/* confdefs.h.  */
9239_ACEOF
9240cat confdefs.h >>conftest.$ac_ext
9241cat >>conftest.$ac_ext <<_ACEOF
9242/* end confdefs.h.  */
9243$ac_includes_default
9244#include <bluetooth/bluetooth.h>
9245_ACEOF
9246rm -f conftest.$ac_objext
9247if { (ac_try="$ac_compile"
9248case "(($ac_try" in
9249  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9250  *) ac_try_echo=$ac_try;;
9251esac
9252eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9253  (eval "$ac_compile") 2>conftest.er1
9254  ac_status=$?
9255  grep -v '^ *+' conftest.er1 >conftest.err
9256  rm -f conftest.er1
9257  cat conftest.err >&5
9258  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9259  (exit $ac_status); } && {
9260	 test -z "$ac_c_werror_flag" ||
9261	 test ! -s conftest.err
9262       } && test -s conftest.$ac_objext; then
9263  ac_header_compiler=yes
9264else
9265  echo "$as_me: failed program was:" >&5
9266sed 's/^/| /' conftest.$ac_ext >&5
9267
9268	ac_header_compiler=no
9269fi
9270
9271rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9272{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9273echo "${ECHO_T}$ac_header_compiler" >&6; }
9274
9275# Is the header present?
9276{ echo "$as_me:$LINENO: checking bluetooth/bluetooth.h presence" >&5
9277echo $ECHO_N "checking bluetooth/bluetooth.h presence... $ECHO_C" >&6; }
9278cat >conftest.$ac_ext <<_ACEOF
9279/* confdefs.h.  */
9280_ACEOF
9281cat confdefs.h >>conftest.$ac_ext
9282cat >>conftest.$ac_ext <<_ACEOF
9283/* end confdefs.h.  */
9284#include <bluetooth/bluetooth.h>
9285_ACEOF
9286if { (ac_try="$ac_cpp conftest.$ac_ext"
9287case "(($ac_try" in
9288  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9289  *) ac_try_echo=$ac_try;;
9290esac
9291eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9292  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9293  ac_status=$?
9294  grep -v '^ *+' conftest.er1 >conftest.err
9295  rm -f conftest.er1
9296  cat conftest.err >&5
9297  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9298  (exit $ac_status); } >/dev/null && {
9299	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9300	 test ! -s conftest.err
9301       }; then
9302  ac_header_preproc=yes
9303else
9304  echo "$as_me: failed program was:" >&5
9305sed 's/^/| /' conftest.$ac_ext >&5
9306
9307  ac_header_preproc=no
9308fi
9309
9310rm -f conftest.err conftest.$ac_ext
9311{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9312echo "${ECHO_T}$ac_header_preproc" >&6; }
9313
9314# So?  What about this header?
9315case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9316  yes:no: )
9317    { echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h: accepted by the compiler, rejected by the preprocessor!" >&5
9318echo "$as_me: WARNING: bluetooth/bluetooth.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9319    { echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h: proceeding with the compiler's result" >&5
9320echo "$as_me: WARNING: bluetooth/bluetooth.h: proceeding with the compiler's result" >&2;}
9321    ac_header_preproc=yes
9322    ;;
9323  no:yes:* )
9324    { echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h: present but cannot be compiled" >&5
9325echo "$as_me: WARNING: bluetooth/bluetooth.h: present but cannot be compiled" >&2;}
9326    { echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h:     check for missing prerequisite headers?" >&5
9327echo "$as_me: WARNING: bluetooth/bluetooth.h:     check for missing prerequisite headers?" >&2;}
9328    { echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h: see the Autoconf documentation" >&5
9329echo "$as_me: WARNING: bluetooth/bluetooth.h: see the Autoconf documentation" >&2;}
9330    { echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h:     section \"Present But Cannot Be Compiled\"" >&5
9331echo "$as_me: WARNING: bluetooth/bluetooth.h:     section \"Present But Cannot Be Compiled\"" >&2;}
9332    { echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h: proceeding with the preprocessor's result" >&5
9333echo "$as_me: WARNING: bluetooth/bluetooth.h: proceeding with the preprocessor's result" >&2;}
9334    { echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h: in the future, the compiler will take precedence" >&5
9335echo "$as_me: WARNING: bluetooth/bluetooth.h: in the future, the compiler will take precedence" >&2;}
9336
9337    ;;
9338esac
9339{ echo "$as_me:$LINENO: checking for bluetooth/bluetooth.h" >&5
9340echo $ECHO_N "checking for bluetooth/bluetooth.h... $ECHO_C" >&6; }
9341if test "${ac_cv_header_bluetooth_bluetooth_h+set}" = set; then
9342  echo $ECHO_N "(cached) $ECHO_C" >&6
9343else
9344  ac_cv_header_bluetooth_bluetooth_h=$ac_header_preproc
9345fi
9346{ echo "$as_me:$LINENO: result: $ac_cv_header_bluetooth_bluetooth_h" >&5
9347echo "${ECHO_T}$ac_cv_header_bluetooth_bluetooth_h" >&6; }
9348
9349fi
9350if test $ac_cv_header_bluetooth_bluetooth_h = yes; then
9351
9352
9353cat >>confdefs.h <<\_ACEOF
9354#define PCAP_SUPPORT_BT 1
9355_ACEOF
9356
9357          BT_SRC=pcap-bt-linux.c
9358          { echo "$as_me:$LINENO: Bluetooth sniffing is supported" >&5
9359echo "$as_me: Bluetooth sniffing is supported" >&6;}
9360
9361else
9362  { echo "$as_me:$LINENO: Bluetooth sniffing is not supported; install bluez-lib devel to enable it" >&5
9363echo "$as_me: Bluetooth sniffing is not supported; install bluez-lib devel to enable it" >&6;}
9364
9365fi
9366
9367
9368       ;;
9369*)
9370       { echo "$as_me:$LINENO: no Bluetooth sniffing support" >&5
9371echo "$as_me: no Bluetooth sniffing support" >&6;}
9372       ;;
9373esac
9374
9375
9376
9377# Find a good install program.  We prefer a C program (faster),
9378# so one script is as good as another.  But avoid the broken or
9379# incompatible versions:
9380# SysV /etc/install, /usr/sbin/install
9381# SunOS /usr/etc/install
9382# IRIX /sbin/install
9383# AIX /bin/install
9384# AmigaOS /C/install, which installs bootblocks on floppy discs
9385# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
9386# AFS /usr/afsws/bin/install, which mishandles nonexistent args
9387# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
9388# OS/2's system install, which has a completely different semantic
9389# ./install, which can be erroneously created by make from ./install.sh.
9390{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
9391echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
9392if test -z "$INSTALL"; then
9393if test "${ac_cv_path_install+set}" = set; then
9394  echo $ECHO_N "(cached) $ECHO_C" >&6
9395else
9396  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9397for as_dir in $PATH
9398do
9399  IFS=$as_save_IFS
9400  test -z "$as_dir" && as_dir=.
9401  # Account for people who put trailing slashes in PATH elements.
9402case $as_dir/ in
9403  ./ | .// | /cC/* | \
9404  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
9405  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
9406  /usr/ucb/* ) ;;
9407  *)
9408    # OSF1 and SCO ODT 3.0 have their own names for install.
9409    # Don't use installbsd from OSF since it installs stuff as root
9410    # by default.
9411    for ac_prog in ginstall scoinst install; do
9412      for ac_exec_ext in '' $ac_executable_extensions; do
9413	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
9414	  if test $ac_prog = install &&
9415	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
9416	    # AIX install.  It has an incompatible calling convention.
9417	    :
9418	  elif test $ac_prog = install &&
9419	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
9420	    # program-specific install script used by HP pwplus--don't use.
9421	    :
9422	  else
9423	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
9424	    break 3
9425	  fi
9426	fi
9427      done
9428    done
9429    ;;
9430esac
9431done
9432IFS=$as_save_IFS
9433
9434
9435fi
9436  if test "${ac_cv_path_install+set}" = set; then
9437    INSTALL=$ac_cv_path_install
9438  else
9439    # As a last resort, use the slow shell script.  Don't cache a
9440    # value for INSTALL within a source directory, because that will
9441    # break other packages using the cache if that directory is
9442    # removed, or if the value is a relative name.
9443    INSTALL=$ac_install_sh
9444  fi
9445fi
9446{ echo "$as_me:$LINENO: result: $INSTALL" >&5
9447echo "${ECHO_T}$INSTALL" >&6; }
9448
9449# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
9450# It thinks the first close brace ends the variable substitution.
9451test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
9452
9453test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
9454
9455test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
9456
9457
9458ac_config_headers="$ac_config_headers config.h"
9459
9460
9461ac_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"
9462
9463cat >confcache <<\_ACEOF
9464# This file is a shell script that caches the results of configure
9465# tests run on this system so they can be shared between configure
9466# scripts and configure runs, see configure's option --config-cache.
9467# It is not useful on other systems.  If it contains results you don't
9468# want to keep, you may remove or edit it.
9469#
9470# config.status only pays attention to the cache file if you give it
9471# the --recheck option to rerun configure.
9472#
9473# `ac_cv_env_foo' variables (set or unset) will be overridden when
9474# loading this file, other *unset* `ac_cv_foo' will be assigned the
9475# following values.
9476
9477_ACEOF
9478
9479# The following way of writing the cache mishandles newlines in values,
9480# but we know of no workaround that is simple, portable, and efficient.
9481# So, we kill variables containing newlines.
9482# Ultrix sh set writes to stderr and can't be redirected directly,
9483# and sets the high bit in the cache file unless we assign to the vars.
9484(
9485  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
9486    eval ac_val=\$$ac_var
9487    case $ac_val in #(
9488    *${as_nl}*)
9489      case $ac_var in #(
9490      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
9491echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
9492      esac
9493      case $ac_var in #(
9494      _ | IFS | as_nl) ;; #(
9495      *) $as_unset $ac_var ;;
9496      esac ;;
9497    esac
9498  done
9499
9500  (set) 2>&1 |
9501    case $as_nl`(ac_space=' '; set) 2>&1` in #(
9502    *${as_nl}ac_space=\ *)
9503      # `set' does not quote correctly, so add quotes (double-quote
9504      # substitution turns \\\\ into \\, and sed turns \\ into \).
9505      sed -n \
9506	"s/'/'\\\\''/g;
9507	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9508      ;; #(
9509    *)
9510      # `set' quotes correctly as required by POSIX, so do not add quotes.
9511      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
9512      ;;
9513    esac |
9514    sort
9515) |
9516  sed '
9517     /^ac_cv_env_/b end
9518     t clear
9519     :clear
9520     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9521     t end
9522     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9523     :end' >>confcache
9524if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
9525  if test -w "$cache_file"; then
9526    test "x$cache_file" != "x/dev/null" &&
9527      { echo "$as_me:$LINENO: updating cache $cache_file" >&5
9528echo "$as_me: updating cache $cache_file" >&6;}
9529    cat confcache >$cache_file
9530  else
9531    { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
9532echo "$as_me: not updating unwritable cache $cache_file" >&6;}
9533  fi
9534fi
9535rm -f confcache
9536
9537test "x$prefix" = xNONE && prefix=$ac_default_prefix
9538# Let make expand exec_prefix.
9539test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9540
9541DEFS=-DHAVE_CONFIG_H
9542
9543ac_libobjs=
9544ac_ltlibobjs=
9545for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9546  # 1. Remove the extension, and $U if already installed.
9547  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
9548  ac_i=`echo "$ac_i" | sed "$ac_script"`
9549  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
9550  #    will be set to the directory where LIBOBJS objects are built.
9551  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
9552  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
9553done
9554LIBOBJS=$ac_libobjs
9555
9556LTLIBOBJS=$ac_ltlibobjs
9557
9558
9559
9560: ${CONFIG_STATUS=./config.status}
9561ac_clean_files_save=$ac_clean_files
9562ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9563{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
9564echo "$as_me: creating $CONFIG_STATUS" >&6;}
9565cat >$CONFIG_STATUS <<_ACEOF
9566#! $SHELL
9567# Generated by $as_me.
9568# Run this file to recreate the current configuration.
9569# Compiler output produced by configure, useful for debugging
9570# configure, is in config.log if it exists.
9571
9572debug=false
9573ac_cs_recheck=false
9574ac_cs_silent=false
9575SHELL=\${CONFIG_SHELL-$SHELL}
9576_ACEOF
9577
9578cat >>$CONFIG_STATUS <<\_ACEOF
9579## --------------------- ##
9580## M4sh Initialization.  ##
9581## --------------------- ##
9582
9583# Be more Bourne compatible
9584DUALCASE=1; export DUALCASE # for MKS sh
9585if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
9586  emulate sh
9587  NULLCMD=:
9588  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
9589  # is contrary to our usage.  Disable this feature.
9590  alias -g '${1+"$@"}'='"$@"'
9591  setopt NO_GLOB_SUBST
9592else
9593  case `(set -o) 2>/dev/null` in
9594  *posix*) set -o posix ;;
9595esac
9596
9597fi
9598
9599
9600
9601
9602# PATH needs CR
9603# Avoid depending upon Character Ranges.
9604as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9605as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9606as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9607as_cr_digits='0123456789'
9608as_cr_alnum=$as_cr_Letters$as_cr_digits
9609
9610# The user is always right.
9611if test "${PATH_SEPARATOR+set}" != set; then
9612  echo "#! /bin/sh" >conf$$.sh
9613  echo  "exit 0"   >>conf$$.sh
9614  chmod +x conf$$.sh
9615  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9616    PATH_SEPARATOR=';'
9617  else
9618    PATH_SEPARATOR=:
9619  fi
9620  rm -f conf$$.sh
9621fi
9622
9623# Support unset when possible.
9624if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9625  as_unset=unset
9626else
9627  as_unset=false
9628fi
9629
9630
9631# IFS
9632# We need space, tab and new line, in precisely that order.  Quoting is
9633# there to prevent editors from complaining about space-tab.
9634# (If _AS_PATH_WALK were called with IFS unset, it would disable word
9635# splitting by setting IFS to empty value.)
9636as_nl='
9637'
9638IFS=" ""	$as_nl"
9639
9640# Find who we are.  Look in the path if we contain no directory separator.
9641case $0 in
9642  *[\\/]* ) as_myself=$0 ;;
9643  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9644for as_dir in $PATH
9645do
9646  IFS=$as_save_IFS
9647  test -z "$as_dir" && as_dir=.
9648  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9649done
9650IFS=$as_save_IFS
9651
9652     ;;
9653esac
9654# We did not find ourselves, most probably we were run as `sh COMMAND'
9655# in which case we are not to be found in the path.
9656if test "x$as_myself" = x; then
9657  as_myself=$0
9658fi
9659if test ! -f "$as_myself"; then
9660  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
9661  { (exit 1); exit 1; }
9662fi
9663
9664# Work around bugs in pre-3.0 UWIN ksh.
9665for as_var in ENV MAIL MAILPATH
9666do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
9667done
9668PS1='$ '
9669PS2='> '
9670PS4='+ '
9671
9672# NLS nuisances.
9673for as_var in \
9674  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
9675  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
9676  LC_TELEPHONE LC_TIME
9677do
9678  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
9679    eval $as_var=C; export $as_var
9680  else
9681    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
9682  fi
9683done
9684
9685# Required to use basename.
9686if expr a : '\(a\)' >/dev/null 2>&1 &&
9687   test "X`expr 00001 : '.*\(...\)'`" = X001; then
9688  as_expr=expr
9689else
9690  as_expr=false
9691fi
9692
9693if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
9694  as_basename=basename
9695else
9696  as_basename=false
9697fi
9698
9699
9700# Name of the executable.
9701as_me=`$as_basename -- "$0" ||
9702$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9703	 X"$0" : 'X\(//\)$' \| \
9704	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
9705echo X/"$0" |
9706    sed '/^.*\/\([^/][^/]*\)\/*$/{
9707	    s//\1/
9708	    q
9709	  }
9710	  /^X\/\(\/\/\)$/{
9711	    s//\1/
9712	    q
9713	  }
9714	  /^X\/\(\/\).*/{
9715	    s//\1/
9716	    q
9717	  }
9718	  s/.*/./; q'`
9719
9720# CDPATH.
9721$as_unset CDPATH
9722
9723
9724
9725  as_lineno_1=$LINENO
9726  as_lineno_2=$LINENO
9727  test "x$as_lineno_1" != "x$as_lineno_2" &&
9728  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
9729
9730  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
9731  # uniformly replaced by the line number.  The first 'sed' inserts a
9732  # line-number line after each line using $LINENO; the second 'sed'
9733  # does the real work.  The second script uses 'N' to pair each
9734  # line-number line with the line containing $LINENO, and appends
9735  # trailing '-' during substitution so that $LINENO is not a special
9736  # case at line end.
9737  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
9738  # scripts with optimization help from Paolo Bonzini.  Blame Lee
9739  # E. McMahon (1931-1989) for sed's syntax.  :-)
9740  sed -n '
9741    p
9742    /[$]LINENO/=
9743  ' <$as_myself |
9744    sed '
9745      s/[$]LINENO.*/&-/
9746      t lineno
9747      b
9748      :lineno
9749      N
9750      :loop
9751      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
9752      t loop
9753      s/-\n.*//
9754    ' >$as_me.lineno &&
9755  chmod +x "$as_me.lineno" ||
9756    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
9757   { (exit 1); exit 1; }; }
9758
9759  # Don't try to exec as it changes $[0], causing all sort of problems
9760  # (the dirname of $[0] is not the place where we might find the
9761  # original and so on.  Autoconf is especially sensitive to this).
9762  . "./$as_me.lineno"
9763  # Exit status is that of the last command.
9764  exit
9765}
9766
9767
9768if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
9769  as_dirname=dirname
9770else
9771  as_dirname=false
9772fi
9773
9774ECHO_C= ECHO_N= ECHO_T=
9775case `echo -n x` in
9776-n*)
9777  case `echo 'x\c'` in
9778  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
9779  *)   ECHO_C='\c';;
9780  esac;;
9781*)
9782  ECHO_N='-n';;
9783esac
9784
9785if expr a : '\(a\)' >/dev/null 2>&1 &&
9786   test "X`expr 00001 : '.*\(...\)'`" = X001; then
9787  as_expr=expr
9788else
9789  as_expr=false
9790fi
9791
9792rm -f conf$$ conf$$.exe conf$$.file
9793if test -d conf$$.dir; then
9794  rm -f conf$$.dir/conf$$.file
9795else
9796  rm -f conf$$.dir
9797  mkdir conf$$.dir
9798fi
9799echo >conf$$.file
9800if ln -s conf$$.file conf$$ 2>/dev/null; then
9801  as_ln_s='ln -s'
9802  # ... but there are two gotchas:
9803  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
9804  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
9805  # In both cases, we have to default to `cp -p'.
9806  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
9807    as_ln_s='cp -p'
9808elif ln conf$$.file conf$$ 2>/dev/null; then
9809  as_ln_s=ln
9810else
9811  as_ln_s='cp -p'
9812fi
9813rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
9814rmdir conf$$.dir 2>/dev/null
9815
9816if mkdir -p . 2>/dev/null; then
9817  as_mkdir_p=:
9818else
9819  test -d ./-p && rmdir ./-p
9820  as_mkdir_p=false
9821fi
9822
9823if test -x / >/dev/null 2>&1; then
9824  as_test_x='test -x'
9825else
9826  if ls -dL / >/dev/null 2>&1; then
9827    as_ls_L_option=L
9828  else
9829    as_ls_L_option=
9830  fi
9831  as_test_x='
9832    eval sh -c '\''
9833      if test -d "$1"; then
9834        test -d "$1/.";
9835      else
9836	case $1 in
9837        -*)set "./$1";;
9838	esac;
9839	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
9840	???[sx]*):;;*)false;;esac;fi
9841    '\'' sh
9842  '
9843fi
9844as_executable_p=$as_test_x
9845
9846# Sed expression to map a string onto a valid CPP name.
9847as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9848
9849# Sed expression to map a string onto a valid variable name.
9850as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9851
9852
9853exec 6>&1
9854
9855# Save the log message, to keep $[0] and so on meaningful, and to
9856# report actual input values of CONFIG_FILES etc. instead of their
9857# values after options handling.
9858ac_log="
9859This file was extended by $as_me, which was
9860generated by GNU Autoconf 2.61.  Invocation command line was
9861
9862  CONFIG_FILES    = $CONFIG_FILES
9863  CONFIG_HEADERS  = $CONFIG_HEADERS
9864  CONFIG_LINKS    = $CONFIG_LINKS
9865  CONFIG_COMMANDS = $CONFIG_COMMANDS
9866  $ $0 $@
9867
9868on `(hostname || uname -n) 2>/dev/null | sed 1q`
9869"
9870
9871_ACEOF
9872
9873cat >>$CONFIG_STATUS <<_ACEOF
9874# Files that config.status was made for.
9875config_files="$ac_config_files"
9876config_headers="$ac_config_headers"
9877
9878_ACEOF
9879
9880cat >>$CONFIG_STATUS <<\_ACEOF
9881ac_cs_usage="\
9882\`$as_me' instantiates files from templates according to the
9883current configuration.
9884
9885Usage: $0 [OPTIONS] [FILE]...
9886
9887  -h, --help       print this help, then exit
9888  -V, --version    print version number and configuration settings, then exit
9889  -q, --quiet      do not print progress messages
9890  -d, --debug      don't remove temporary files
9891      --recheck    update $as_me by reconfiguring in the same conditions
9892  --file=FILE[:TEMPLATE]
9893		   instantiate the configuration file FILE
9894  --header=FILE[:TEMPLATE]
9895		   instantiate the configuration header FILE
9896
9897Configuration files:
9898$config_files
9899
9900Configuration headers:
9901$config_headers
9902
9903Report bugs to <bug-autoconf@gnu.org>."
9904
9905_ACEOF
9906cat >>$CONFIG_STATUS <<_ACEOF
9907ac_cs_version="\\
9908config.status
9909configured by $0, generated by GNU Autoconf 2.61,
9910  with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
9911
9912Copyright (C) 2006 Free Software Foundation, Inc.
9913This config.status script is free software; the Free Software Foundation
9914gives unlimited permission to copy, distribute and modify it."
9915
9916ac_pwd='$ac_pwd'
9917srcdir='$srcdir'
9918INSTALL='$INSTALL'
9919_ACEOF
9920
9921cat >>$CONFIG_STATUS <<\_ACEOF
9922# If no file are specified by the user, then we need to provide default
9923# value.  By we need to know if files were specified by the user.
9924ac_need_defaults=:
9925while test $# != 0
9926do
9927  case $1 in
9928  --*=*)
9929    ac_option=`expr "X$1" : 'X\([^=]*\)='`
9930    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
9931    ac_shift=:
9932    ;;
9933  *)
9934    ac_option=$1
9935    ac_optarg=$2
9936    ac_shift=shift
9937    ;;
9938  esac
9939
9940  case $ac_option in
9941  # Handling of the options.
9942  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9943    ac_cs_recheck=: ;;
9944  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
9945    echo "$ac_cs_version"; exit ;;
9946  --debug | --debu | --deb | --de | --d | -d )
9947    debug=: ;;
9948  --file | --fil | --fi | --f )
9949    $ac_shift
9950    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
9951    ac_need_defaults=false;;
9952  --header | --heade | --head | --hea )
9953    $ac_shift
9954    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
9955    ac_need_defaults=false;;
9956  --he | --h)
9957    # Conflict between --help and --header
9958    { echo "$as_me: error: ambiguous option: $1
9959Try \`$0 --help' for more information." >&2
9960   { (exit 1); exit 1; }; };;
9961  --help | --hel | -h )
9962    echo "$ac_cs_usage"; exit ;;
9963  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9964  | -silent | --silent | --silen | --sile | --sil | --si | --s)
9965    ac_cs_silent=: ;;
9966
9967  # This is an error.
9968  -*) { echo "$as_me: error: unrecognized option: $1
9969Try \`$0 --help' for more information." >&2
9970   { (exit 1); exit 1; }; } ;;
9971
9972  *) ac_config_targets="$ac_config_targets $1"
9973     ac_need_defaults=false ;;
9974
9975  esac
9976  shift
9977done
9978
9979ac_configure_extra_args=
9980
9981if $ac_cs_silent; then
9982  exec 6>/dev/null
9983  ac_configure_extra_args="$ac_configure_extra_args --silent"
9984fi
9985
9986_ACEOF
9987cat >>$CONFIG_STATUS <<_ACEOF
9988if \$ac_cs_recheck; then
9989  echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
9990  CONFIG_SHELL=$SHELL
9991  export CONFIG_SHELL
9992  exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9993fi
9994
9995_ACEOF
9996cat >>$CONFIG_STATUS <<\_ACEOF
9997exec 5>>config.log
9998{
9999  echo
10000  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10001## Running $as_me. ##
10002_ASBOX
10003  echo "$ac_log"
10004} >&5
10005
10006_ACEOF
10007cat >>$CONFIG_STATUS <<_ACEOF
10008_ACEOF
10009
10010cat >>$CONFIG_STATUS <<\_ACEOF
10011
10012# Handling of arguments.
10013for ac_config_target in $ac_config_targets
10014do
10015  case $ac_config_target in
10016    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
10017    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
10018    "pcap-filter.manmisc") CONFIG_FILES="$CONFIG_FILES pcap-filter.manmisc" ;;
10019    "pcap-linktype.manmisc") CONFIG_FILES="$CONFIG_FILES pcap-linktype.manmisc" ;;
10020    "pcap-savefile.manfile") CONFIG_FILES="$CONFIG_FILES pcap-savefile.manfile" ;;
10021    "pcap.3pcap") CONFIG_FILES="$CONFIG_FILES pcap.3pcap" ;;
10022    "pcap_compile.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_compile.3pcap" ;;
10023    "pcap_datalink.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_datalink.3pcap" ;;
10024    "pcap_dump_open.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_dump_open.3pcap" ;;
10025    "pcap_list_datalinks.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_list_datalinks.3pcap" ;;
10026    "pcap_open_dead.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_open_dead.3pcap" ;;
10027    "pcap_open_offline.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_open_offline.3pcap" ;;
10028
10029  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
10030echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
10031   { (exit 1); exit 1; }; };;
10032  esac
10033done
10034
10035
10036# If the user did not use the arguments to specify the items to instantiate,
10037# then the envvar interface is used.  Set only those that are not.
10038# We use the long form for the default assignment because of an extremely
10039# bizarre bug on SunOS 4.1.3.
10040if $ac_need_defaults; then
10041  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10042  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10043fi
10044
10045# Have a temporary directory for convenience.  Make it in the build tree
10046# simply because there is no reason against having it here, and in addition,
10047# creating and moving files from /tmp can sometimes cause problems.
10048# Hook for its removal unless debugging.
10049# Note that there is a small window in which the directory will not be cleaned:
10050# after its creation but before its name has been assigned to `$tmp'.
10051$debug ||
10052{
10053  tmp=
10054  trap 'exit_status=$?
10055  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
10056' 0
10057  trap '{ (exit 1); exit 1; }' 1 2 13 15
10058}
10059# Create a (secure) tmp directory for tmp files.
10060
10061{
10062  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
10063  test -n "$tmp" && test -d "$tmp"
10064}  ||
10065{
10066  tmp=./conf$$-$RANDOM
10067  (umask 077 && mkdir "$tmp")
10068} ||
10069{
10070   echo "$me: cannot create a temporary directory in ." >&2
10071   { (exit 1); exit 1; }
10072}
10073
10074#
10075# Set up the sed scripts for CONFIG_FILES section.
10076#
10077
10078# No need to generate the scripts if there are no CONFIG_FILES.
10079# This happens for instance when ./config.status config.h
10080if test -n "$CONFIG_FILES"; then
10081
10082_ACEOF
10083
10084
10085
10086ac_delim='%!_!# '
10087for ac_last_try in false false false false false :; do
10088  cat >conf$$subs.sed <<_ACEOF
10089SHELL!$SHELL$ac_delim
10090PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
10091PACKAGE_NAME!$PACKAGE_NAME$ac_delim
10092PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
10093PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
10094PACKAGE_STRING!$PACKAGE_STRING$ac_delim
10095PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
10096exec_prefix!$exec_prefix$ac_delim
10097prefix!$prefix$ac_delim
10098program_transform_name!$program_transform_name$ac_delim
10099bindir!$bindir$ac_delim
10100sbindir!$sbindir$ac_delim
10101libexecdir!$libexecdir$ac_delim
10102datarootdir!$datarootdir$ac_delim
10103datadir!$datadir$ac_delim
10104sysconfdir!$sysconfdir$ac_delim
10105sharedstatedir!$sharedstatedir$ac_delim
10106localstatedir!$localstatedir$ac_delim
10107includedir!$includedir$ac_delim
10108oldincludedir!$oldincludedir$ac_delim
10109docdir!$docdir$ac_delim
10110infodir!$infodir$ac_delim
10111htmldir!$htmldir$ac_delim
10112dvidir!$dvidir$ac_delim
10113pdfdir!$pdfdir$ac_delim
10114psdir!$psdir$ac_delim
10115libdir!$libdir$ac_delim
10116localedir!$localedir$ac_delim
10117mandir!$mandir$ac_delim
10118DEFS!$DEFS$ac_delim
10119ECHO_C!$ECHO_C$ac_delim
10120ECHO_N!$ECHO_N$ac_delim
10121ECHO_T!$ECHO_T$ac_delim
10122LIBS!$LIBS$ac_delim
10123build_alias!$build_alias$ac_delim
10124host_alias!$host_alias$ac_delim
10125target_alias!$target_alias$ac_delim
10126build!$build$ac_delim
10127build_cpu!$build_cpu$ac_delim
10128build_vendor!$build_vendor$ac_delim
10129build_os!$build_os$ac_delim
10130host!$host$ac_delim
10131host_cpu!$host_cpu$ac_delim
10132host_vendor!$host_vendor$ac_delim
10133host_os!$host_os$ac_delim
10134target!$target$ac_delim
10135target_cpu!$target_cpu$ac_delim
10136target_vendor!$target_vendor$ac_delim
10137target_os!$target_os$ac_delim
10138SHLICC2!$SHLICC2$ac_delim
10139CC!$CC$ac_delim
10140CFLAGS!$CFLAGS$ac_delim
10141LDFLAGS!$LDFLAGS$ac_delim
10142CPPFLAGS!$CPPFLAGS$ac_delim
10143ac_ct_CC!$ac_ct_CC$ac_delim
10144EXEEXT!$EXEEXT$ac_delim
10145OBJEXT!$OBJEXT$ac_delim
10146CPP!$CPP$ac_delim
10147GREP!$GREP$ac_delim
10148EGREP!$EGREP$ac_delim
10149LIBOBJS!$LIBOBJS$ac_delim
10150V_LEX!$V_LEX$ac_delim
10151V_YACC!$V_YACC$ac_delim
10152RANLIB!$RANLIB$ac_delim
10153V_CCOPT!$V_CCOPT$ac_delim
10154V_DEFS!$V_DEFS$ac_delim
10155V_INCLS!$V_INCLS$ac_delim
10156V_LIBS!$V_LIBS$ac_delim
10157V_PCAP!$V_PCAP$ac_delim
10158V_FINDALLDEVS!$V_FINDALLDEVS$ac_delim
10159SSRC!$SSRC$ac_delim
10160DYEXT!$DYEXT$ac_delim
10161DAGLIBS!$DAGLIBS$ac_delim
10162DEPLIBS!$DEPLIBS$ac_delim
10163MAN_FILE_FORMATS!$MAN_FILE_FORMATS$ac_delim
10164MAN_MISC_INFO!$MAN_MISC_INFO$ac_delim
10165PCAP_SUPPORT_USB!$PCAP_SUPPORT_USB$ac_delim
10166USB_SRC!$USB_SRC$ac_delim
10167PCAP_SUPPORT_BT!$PCAP_SUPPORT_BT$ac_delim
10168BT_SRC!$BT_SRC$ac_delim
10169INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
10170INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
10171INSTALL_DATA!$INSTALL_DATA$ac_delim
10172LTLIBOBJS!$LTLIBOBJS$ac_delim
10173_ACEOF
10174
10175  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 84; then
10176    break
10177  elif $ac_last_try; then
10178    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
10179echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
10180   { (exit 1); exit 1; }; }
10181  else
10182    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10183  fi
10184done
10185
10186ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
10187if test -n "$ac_eof"; then
10188  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
10189  ac_eof=`expr $ac_eof + 1`
10190fi
10191
10192cat >>$CONFIG_STATUS <<_ACEOF
10193cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
10194/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
10195_ACEOF
10196sed '
10197s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
10198s/^/s,@/; s/!/@,|#_!!_#|/
10199:n
10200t n
10201s/'"$ac_delim"'$/,g/; t
10202s/$/\\/; p
10203N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
10204' >>$CONFIG_STATUS <conf$$subs.sed
10205rm -f conf$$subs.sed
10206cat >>$CONFIG_STATUS <<_ACEOF
10207:end
10208s/|#_!!_#|//g
10209CEOF$ac_eof
10210_ACEOF
10211
10212
10213# VPATH may cause trouble with some makes, so we remove $(srcdir),
10214# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10215# trailing colons and then remove the whole line if VPATH becomes empty
10216# (actually we leave an empty line to preserve line numbers).
10217if test "x$srcdir" = x.; then
10218  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
10219s/:*\$(srcdir):*/:/
10220s/:*\${srcdir}:*/:/
10221s/:*@srcdir@:*/:/
10222s/^\([^=]*=[	 ]*\):*/\1/
10223s/:*$//
10224s/^[^=]*=[	 ]*$//
10225}'
10226fi
10227
10228cat >>$CONFIG_STATUS <<\_ACEOF
10229fi # test -n "$CONFIG_FILES"
10230
10231
10232for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS
10233do
10234  case $ac_tag in
10235  :[FHLC]) ac_mode=$ac_tag; continue;;
10236  esac
10237  case $ac_mode$ac_tag in
10238  :[FHL]*:*);;
10239  :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
10240echo "$as_me: error: Invalid tag $ac_tag." >&2;}
10241   { (exit 1); exit 1; }; };;
10242  :[FH]-) ac_tag=-:-;;
10243  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
10244  esac
10245  ac_save_IFS=$IFS
10246  IFS=:
10247  set x $ac_tag
10248  IFS=$ac_save_IFS
10249  shift
10250  ac_file=$1
10251  shift
10252
10253  case $ac_mode in
10254  :L) ac_source=$1;;
10255  :[FH])
10256    ac_file_inputs=
10257    for ac_f
10258    do
10259      case $ac_f in
10260      -) ac_f="$tmp/stdin";;
10261      *) # Look for the file first in the build tree, then in the source tree
10262	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
10263	 # because $ac_f cannot contain `:'.
10264	 test -f "$ac_f" ||
10265	   case $ac_f in
10266	   [\\/$]*) false;;
10267	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
10268	   esac ||
10269	   { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
10270echo "$as_me: error: cannot find input file: $ac_f" >&2;}
10271   { (exit 1); exit 1; }; };;
10272      esac
10273      ac_file_inputs="$ac_file_inputs $ac_f"
10274    done
10275
10276    # Let's still pretend it is `configure' which instantiates (i.e., don't
10277    # use $as_me), people would be surprised to read:
10278    #    /* config.h.  Generated by config.status.  */
10279    configure_input="Generated from "`IFS=:
10280	  echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
10281    if test x"$ac_file" != x-; then
10282      configure_input="$ac_file.  $configure_input"
10283      { echo "$as_me:$LINENO: creating $ac_file" >&5
10284echo "$as_me: creating $ac_file" >&6;}
10285    fi
10286
10287    case $ac_tag in
10288    *:-:* | *:-) cat >"$tmp/stdin";;
10289    esac
10290    ;;
10291  esac
10292
10293  ac_dir=`$as_dirname -- "$ac_file" ||
10294$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10295	 X"$ac_file" : 'X\(//\)[^/]' \| \
10296	 X"$ac_file" : 'X\(//\)$' \| \
10297	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
10298echo X"$ac_file" |
10299    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10300	    s//\1/
10301	    q
10302	  }
10303	  /^X\(\/\/\)[^/].*/{
10304	    s//\1/
10305	    q
10306	  }
10307	  /^X\(\/\/\)$/{
10308	    s//\1/
10309	    q
10310	  }
10311	  /^X\(\/\).*/{
10312	    s//\1/
10313	    q
10314	  }
10315	  s/.*/./; q'`
10316  { as_dir="$ac_dir"
10317  case $as_dir in #(
10318  -*) as_dir=./$as_dir;;
10319  esac
10320  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
10321    as_dirs=
10322    while :; do
10323      case $as_dir in #(
10324      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
10325      *) as_qdir=$as_dir;;
10326      esac
10327      as_dirs="'$as_qdir' $as_dirs"
10328      as_dir=`$as_dirname -- "$as_dir" ||
10329$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10330	 X"$as_dir" : 'X\(//\)[^/]' \| \
10331	 X"$as_dir" : 'X\(//\)$' \| \
10332	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
10333echo X"$as_dir" |
10334    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10335	    s//\1/
10336	    q
10337	  }
10338	  /^X\(\/\/\)[^/].*/{
10339	    s//\1/
10340	    q
10341	  }
10342	  /^X\(\/\/\)$/{
10343	    s//\1/
10344	    q
10345	  }
10346	  /^X\(\/\).*/{
10347	    s//\1/
10348	    q
10349	  }
10350	  s/.*/./; q'`
10351      test -d "$as_dir" && break
10352    done
10353    test -z "$as_dirs" || eval "mkdir $as_dirs"
10354  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
10355echo "$as_me: error: cannot create directory $as_dir" >&2;}
10356   { (exit 1); exit 1; }; }; }
10357  ac_builddir=.
10358
10359case "$ac_dir" in
10360.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
10361*)
10362  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10363  # A ".." for each directory in $ac_dir_suffix.
10364  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
10365  case $ac_top_builddir_sub in
10366  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
10367  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
10368  esac ;;
10369esac
10370ac_abs_top_builddir=$ac_pwd
10371ac_abs_builddir=$ac_pwd$ac_dir_suffix
10372# for backward compatibility:
10373ac_top_builddir=$ac_top_build_prefix
10374
10375case $srcdir in
10376  .)  # We are building in place.
10377    ac_srcdir=.
10378    ac_top_srcdir=$ac_top_builddir_sub
10379    ac_abs_top_srcdir=$ac_pwd ;;
10380  [\\/]* | ?:[\\/]* )  # Absolute name.
10381    ac_srcdir=$srcdir$ac_dir_suffix;
10382    ac_top_srcdir=$srcdir
10383    ac_abs_top_srcdir=$srcdir ;;
10384  *) # Relative name.
10385    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
10386    ac_top_srcdir=$ac_top_build_prefix$srcdir
10387    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
10388esac
10389ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
10390
10391
10392  case $ac_mode in
10393  :F)
10394  #
10395  # CONFIG_FILE
10396  #
10397
10398  case $INSTALL in
10399  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
10400  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
10401  esac
10402_ACEOF
10403
10404cat >>$CONFIG_STATUS <<\_ACEOF
10405# If the template does not know about datarootdir, expand it.
10406# FIXME: This hack should be removed a few years after 2.60.
10407ac_datarootdir_hack=; ac_datarootdir_seen=
10408
10409case `sed -n '/datarootdir/ {
10410  p
10411  q
10412}
10413/@datadir@/p
10414/@docdir@/p
10415/@infodir@/p
10416/@localedir@/p
10417/@mandir@/p
10418' $ac_file_inputs` in
10419*datarootdir*) ac_datarootdir_seen=yes;;
10420*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
10421  { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
10422echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
10423_ACEOF
10424cat >>$CONFIG_STATUS <<_ACEOF
10425  ac_datarootdir_hack='
10426  s&@datadir@&$datadir&g
10427  s&@docdir@&$docdir&g
10428  s&@infodir@&$infodir&g
10429  s&@localedir@&$localedir&g
10430  s&@mandir@&$mandir&g
10431    s&\\\${datarootdir}&$datarootdir&g' ;;
10432esac
10433_ACEOF
10434
10435# Neutralize VPATH when `$srcdir' = `.'.
10436# Shell code in configure.ac might set extrasub.
10437# FIXME: do we really want to maintain this feature?
10438cat >>$CONFIG_STATUS <<_ACEOF
10439  sed "$ac_vpsub
10440$extrasub
10441_ACEOF
10442cat >>$CONFIG_STATUS <<\_ACEOF
10443:t
10444/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10445s&@configure_input@&$configure_input&;t t
10446s&@top_builddir@&$ac_top_builddir_sub&;t t
10447s&@srcdir@&$ac_srcdir&;t t
10448s&@abs_srcdir@&$ac_abs_srcdir&;t t
10449s&@top_srcdir@&$ac_top_srcdir&;t t
10450s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
10451s&@builddir@&$ac_builddir&;t t
10452s&@abs_builddir@&$ac_abs_builddir&;t t
10453s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
10454s&@INSTALL@&$ac_INSTALL&;t t
10455$ac_datarootdir_hack
10456" $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
10457
10458test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
10459  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
10460  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
10461  { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10462which seems to be undefined.  Please make sure it is defined." >&5
10463echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10464which seems to be undefined.  Please make sure it is defined." >&2;}
10465
10466  rm -f "$tmp/stdin"
10467  case $ac_file in
10468  -) cat "$tmp/out"; rm -f "$tmp/out";;
10469  *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
10470  esac
10471 ;;
10472  :H)
10473  #
10474  # CONFIG_HEADER
10475  #
10476_ACEOF
10477
10478# Transform confdefs.h into a sed script `conftest.defines', that
10479# substitutes the proper values into config.h.in to produce config.h.
10480rm -f conftest.defines conftest.tail
10481# First, append a space to every undef/define line, to ease matching.
10482echo 's/$/ /' >conftest.defines
10483# Then, protect against being on the right side of a sed subst, or in
10484# an unquoted here document, in config.status.  If some macros were
10485# called several times there might be several #defines for the same
10486# symbol, which is useless.  But do not sort them, since the last
10487# AC_DEFINE must be honored.
10488ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
10489# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
10490# NAME is the cpp macro being defined, VALUE is the value it is being given.
10491# PARAMS is the parameter list in the macro definition--in most cases, it's
10492# just an empty string.
10493ac_dA='s,^\\([	 #]*\\)[^	 ]*\\([	 ]*'
10494ac_dB='\\)[	 (].*,\\1define\\2'
10495ac_dC=' '
10496ac_dD=' ,'
10497
10498uniq confdefs.h |
10499  sed -n '
10500	t rset
10501	:rset
10502	s/^[	 ]*#[	 ]*define[	 ][	 ]*//
10503	t ok
10504	d
10505	:ok
10506	s/[\\&,]/\\&/g
10507	s/^\('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
10508	s/^\('"$ac_word_re"'\)[	 ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
10509  ' >>conftest.defines
10510
10511# Remove the space that was appended to ease matching.
10512# Then replace #undef with comments.  This is necessary, for
10513# example, in the case of _POSIX_SOURCE, which is predefined and required
10514# on some systems where configure will not decide to define it.
10515# (The regexp can be short, since the line contains either #define or #undef.)
10516echo 's/ $//
10517s,^[	 #]*u.*,/* & */,' >>conftest.defines
10518
10519# Break up conftest.defines:
10520ac_max_sed_lines=50
10521
10522# First sed command is:	 sed -f defines.sed $ac_file_inputs >"$tmp/out1"
10523# Second one is:	 sed -f defines.sed "$tmp/out1" >"$tmp/out2"
10524# Third one will be:	 sed -f defines.sed "$tmp/out2" >"$tmp/out1"
10525# et cetera.
10526ac_in='$ac_file_inputs'
10527ac_out='"$tmp/out1"'
10528ac_nxt='"$tmp/out2"'
10529
10530while :
10531do
10532  # Write a here document:
10533    cat >>$CONFIG_STATUS <<_ACEOF
10534    # First, check the format of the line:
10535    cat >"\$tmp/defines.sed" <<\\CEOF
10536/^[	 ]*#[	 ]*undef[	 ][	 ]*$ac_word_re[	 ]*\$/b def
10537/^[	 ]*#[	 ]*define[	 ][	 ]*$ac_word_re[(	 ]/b def
10538b
10539:def
10540_ACEOF
10541  sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
10542  echo 'CEOF
10543    sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
10544  ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
10545  sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
10546  grep . conftest.tail >/dev/null || break
10547  rm -f conftest.defines
10548  mv conftest.tail conftest.defines
10549done
10550rm -f conftest.defines conftest.tail
10551
10552echo "ac_result=$ac_in" >>$CONFIG_STATUS
10553cat >>$CONFIG_STATUS <<\_ACEOF
10554  if test x"$ac_file" != x-; then
10555    echo "/* $configure_input  */" >"$tmp/config.h"
10556    cat "$ac_result" >>"$tmp/config.h"
10557    if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
10558      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
10559echo "$as_me: $ac_file is unchanged" >&6;}
10560    else
10561      rm -f $ac_file
10562      mv "$tmp/config.h" $ac_file
10563    fi
10564  else
10565    echo "/* $configure_input  */"
10566    cat "$ac_result"
10567  fi
10568  rm -f "$tmp/out12"
10569 ;;
10570
10571
10572  esac
10573
10574done # for ac_tag
10575
10576
10577{ (exit 0); exit 0; }
10578_ACEOF
10579chmod +x $CONFIG_STATUS
10580ac_clean_files=$ac_clean_files_save
10581
10582
10583# configure is writing to config.log, and then calls config.status.
10584# config.status does its own redirection, appending to config.log.
10585# Unfortunately, on DOS this fails, as config.log is still kept open
10586# by configure, so config.status won't be able to write to it; its
10587# output is simply discarded.  So we exec the FD to /dev/null,
10588# effectively closing config.log, so it can be properly (re)opened and
10589# appended to by config.status.  When coming back to configure, we
10590# need to make the FD available again.
10591if test "$no_create" != yes; then
10592  ac_cs_success=:
10593  ac_config_status_args=
10594  test "$silent" = yes &&
10595    ac_config_status_args="$ac_config_status_args --quiet"
10596  exec 5>/dev/null
10597  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10598  exec 5>>config.log
10599  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10600  # would make configure fail if this is the last instruction.
10601  $ac_cs_success || { (exit 1); exit 1; }
10602fi
10603
10604
10605if test -f .devel ; then
10606	make depend
10607fi
10608exit 0
10609