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