1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for pcap 1.9.1.
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='pcap'
579PACKAGE_TARNAME='pcap'
580PACKAGE_VERSION='1.9.1'
581PACKAGE_STRING='pcap 1.9.1'
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
626RDMA_SRC
627PCAP_SUPPORT_RDMASNIFF
628DBUS_SRC
629PCAP_SUPPORT_DBUS
630PKGCONFIG
631BT_MONITOR_SRC
632BT_SRC
633PCAP_SUPPORT_BT
634NETMAP_SRC
635PCAP_SUPPORT_NETMAP
636NETFILTER_SRC
637PCAP_SUPPORT_NETFILTER
638USB_SRC
639PCAP_SUPPORT_USB
640EXTRA_NETWORK_LIBS
641RPCAPD_LIBS
642INSTALL_RPCAPD
643BUILD_RPCAPD
644PTHREAD_LIBS
645MAN_ADMIN_COMMANDS
646MAN_MISC_INFO
647MAN_FILE_FORMATS
648MAN_DEVICES
649DYEXT
650SSRC
651ADDLARCHIVEOBJS
652ADDLOBJS
653V_YACC
654V_RPATH_OPT
655V_SONAME_OPT
656V_SHLIB_OPT
657V_SHLIB_CMD
658V_SHLIB_CCOPT
659V_PCAP
660V_LEX
661V_INCLS
662V_FINDALLDEVS
663V_DEFS
664V_PROG_LDFLAGS_FAT
665V_PROG_CCOPT_FAT
666V_LIB_LDFLAGS_FAT
667V_LIB_CCOPT_FAT
668V_CCOPT
669MKDEP
670DEPENDENCY_CFLAG
671LN_S
672AR
673RANLIB
674YFLAGS
675YACC
676LEXLIB
677LEX_OUTPUT_ROOT
678LEX
679PCAP_SUPPORT_PACKET_RING
680VALGRINDTEST_SRC
681LIBOBJS
682EGREP
683GREP
684CPP
685OBJEXT
686EXEEXT
687ac_ct_CC
688CPPFLAGS
689LDFLAGS
690CFLAGS
691CC
692SHLICC2
693target_os
694target_vendor
695target_cpu
696target
697host_os
698host_vendor
699host_cpu
700host
701build_os
702build_vendor
703build_cpu
704build
705target_alias
706host_alias
707build_alias
708LIBS
709ECHO_T
710ECHO_N
711ECHO_C
712DEFS
713mandir
714localedir
715libdir
716psdir
717pdfdir
718dvidir
719htmldir
720infodir
721docdir
722oldincludedir
723includedir
724runstatedir
725localstatedir
726sharedstatedir
727sysconfdir
728datadir
729datarootdir
730libexecdir
731sbindir
732bindir
733program_transform_name
734prefix
735exec_prefix
736PACKAGE_URL
737PACKAGE_BUGREPORT
738PACKAGE_STRING
739PACKAGE_VERSION
740PACKAGE_TARNAME
741PACKAGE_NAME
742PATH_SEPARATOR
743SHELL'
744ac_subst_files=''
745ac_user_opts='
746enable_option_checking
747with_gcc
748enable_largefile
749enable_protochain
750with_sita
751with_pcap
752with_libnl
753enable_packet_ring
754enable_ipv6
755with_dag
756with_dag_includes
757with_dag_libraries
758with_septel
759with_snf
760with_snf_includes
761with_snf_libraries
762with_turbocap
763enable_remote
764enable_optimizer_dbg
765enable_yydebug
766enable_universal
767enable_shared
768enable_usb
769enable_netmap
770enable_bluetooth
771enable_dbus
772enable_rdma
773'
774      ac_precious_vars='build_alias
775host_alias
776target_alias
777CC
778CFLAGS
779LDFLAGS
780LIBS
781CPPFLAGS
782CPP
783YACC
784YFLAGS'
785
786
787# Initialize some variables set by options.
788ac_init_help=
789ac_init_version=false
790ac_unrecognized_opts=
791ac_unrecognized_sep=
792# The variables have the same names as the options, with
793# dashes changed to underlines.
794cache_file=/dev/null
795exec_prefix=NONE
796no_create=
797no_recursion=
798prefix=NONE
799program_prefix=NONE
800program_suffix=NONE
801program_transform_name=s,x,x,
802silent=
803site=
804srcdir=
805verbose=
806x_includes=NONE
807x_libraries=NONE
808
809# Installation directory options.
810# These are left unexpanded so users can "make install exec_prefix=/foo"
811# and all the variables that are supposed to be based on exec_prefix
812# by default will actually change.
813# Use braces instead of parens because sh, perl, etc. also accept them.
814# (The list follows the same order as the GNU Coding Standards.)
815bindir='${exec_prefix}/bin'
816sbindir='${exec_prefix}/sbin'
817libexecdir='${exec_prefix}/libexec'
818datarootdir='${prefix}/share'
819datadir='${datarootdir}'
820sysconfdir='${prefix}/etc'
821sharedstatedir='${prefix}/com'
822localstatedir='${prefix}/var'
823runstatedir='${localstatedir}/run'
824includedir='${prefix}/include'
825oldincludedir='/usr/include'
826docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
827infodir='${datarootdir}/info'
828htmldir='${docdir}'
829dvidir='${docdir}'
830pdfdir='${docdir}'
831psdir='${docdir}'
832libdir='${exec_prefix}/lib'
833localedir='${datarootdir}/locale'
834mandir='${datarootdir}/man'
835
836ac_prev=
837ac_dashdash=
838for ac_option
839do
840  # If the previous option needs an argument, assign it.
841  if test -n "$ac_prev"; then
842    eval $ac_prev=\$ac_option
843    ac_prev=
844    continue
845  fi
846
847  case $ac_option in
848  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
849  *=)   ac_optarg= ;;
850  *)    ac_optarg=yes ;;
851  esac
852
853  # Accept the important Cygnus configure options, so we can diagnose typos.
854
855  case $ac_dashdash$ac_option in
856  --)
857    ac_dashdash=yes ;;
858
859  -bindir | --bindir | --bindi | --bind | --bin | --bi)
860    ac_prev=bindir ;;
861  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
862    bindir=$ac_optarg ;;
863
864  -build | --build | --buil | --bui | --bu)
865    ac_prev=build_alias ;;
866  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
867    build_alias=$ac_optarg ;;
868
869  -cache-file | --cache-file | --cache-fil | --cache-fi \
870  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
871    ac_prev=cache_file ;;
872  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
873  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
874    cache_file=$ac_optarg ;;
875
876  --config-cache | -C)
877    cache_file=config.cache ;;
878
879  -datadir | --datadir | --datadi | --datad)
880    ac_prev=datadir ;;
881  -datadir=* | --datadir=* | --datadi=* | --datad=*)
882    datadir=$ac_optarg ;;
883
884  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
885  | --dataroo | --dataro | --datar)
886    ac_prev=datarootdir ;;
887  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
888  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
889    datarootdir=$ac_optarg ;;
890
891  -disable-* | --disable-*)
892    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
893    # Reject names that are not valid shell variable names.
894    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
895      as_fn_error $? "invalid feature name: $ac_useropt"
896    ac_useropt_orig=$ac_useropt
897    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
898    case $ac_user_opts in
899      *"
900"enable_$ac_useropt"
901"*) ;;
902      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
903	 ac_unrecognized_sep=', ';;
904    esac
905    eval enable_$ac_useropt=no ;;
906
907  -docdir | --docdir | --docdi | --doc | --do)
908    ac_prev=docdir ;;
909  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
910    docdir=$ac_optarg ;;
911
912  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
913    ac_prev=dvidir ;;
914  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
915    dvidir=$ac_optarg ;;
916
917  -enable-* | --enable-*)
918    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
919    # Reject names that are not valid shell variable names.
920    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
921      as_fn_error $? "invalid feature name: $ac_useropt"
922    ac_useropt_orig=$ac_useropt
923    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
924    case $ac_user_opts in
925      *"
926"enable_$ac_useropt"
927"*) ;;
928      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
929	 ac_unrecognized_sep=', ';;
930    esac
931    eval enable_$ac_useropt=\$ac_optarg ;;
932
933  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
934  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
935  | --exec | --exe | --ex)
936    ac_prev=exec_prefix ;;
937  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
938  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
939  | --exec=* | --exe=* | --ex=*)
940    exec_prefix=$ac_optarg ;;
941
942  -gas | --gas | --ga | --g)
943    # Obsolete; use --with-gas.
944    with_gas=yes ;;
945
946  -help | --help | --hel | --he | -h)
947    ac_init_help=long ;;
948  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
949    ac_init_help=recursive ;;
950  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
951    ac_init_help=short ;;
952
953  -host | --host | --hos | --ho)
954    ac_prev=host_alias ;;
955  -host=* | --host=* | --hos=* | --ho=*)
956    host_alias=$ac_optarg ;;
957
958  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
959    ac_prev=htmldir ;;
960  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
961  | --ht=*)
962    htmldir=$ac_optarg ;;
963
964  -includedir | --includedir | --includedi | --included | --include \
965  | --includ | --inclu | --incl | --inc)
966    ac_prev=includedir ;;
967  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
968  | --includ=* | --inclu=* | --incl=* | --inc=*)
969    includedir=$ac_optarg ;;
970
971  -infodir | --infodir | --infodi | --infod | --info | --inf)
972    ac_prev=infodir ;;
973  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
974    infodir=$ac_optarg ;;
975
976  -libdir | --libdir | --libdi | --libd)
977    ac_prev=libdir ;;
978  -libdir=* | --libdir=* | --libdi=* | --libd=*)
979    libdir=$ac_optarg ;;
980
981  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
982  | --libexe | --libex | --libe)
983    ac_prev=libexecdir ;;
984  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
985  | --libexe=* | --libex=* | --libe=*)
986    libexecdir=$ac_optarg ;;
987
988  -localedir | --localedir | --localedi | --localed | --locale)
989    ac_prev=localedir ;;
990  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
991    localedir=$ac_optarg ;;
992
993  -localstatedir | --localstatedir | --localstatedi | --localstated \
994  | --localstate | --localstat | --localsta | --localst | --locals)
995    ac_prev=localstatedir ;;
996  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
997  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
998    localstatedir=$ac_optarg ;;
999
1000  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1001    ac_prev=mandir ;;
1002  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1003    mandir=$ac_optarg ;;
1004
1005  -nfp | --nfp | --nf)
1006    # Obsolete; use --without-fp.
1007    with_fp=no ;;
1008
1009  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1010  | --no-cr | --no-c | -n)
1011    no_create=yes ;;
1012
1013  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1014  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1015    no_recursion=yes ;;
1016
1017  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1018  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1019  | --oldin | --oldi | --old | --ol | --o)
1020    ac_prev=oldincludedir ;;
1021  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1022  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1023  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1024    oldincludedir=$ac_optarg ;;
1025
1026  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1027    ac_prev=prefix ;;
1028  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1029    prefix=$ac_optarg ;;
1030
1031  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1032  | --program-pre | --program-pr | --program-p)
1033    ac_prev=program_prefix ;;
1034  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1035  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1036    program_prefix=$ac_optarg ;;
1037
1038  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1039  | --program-suf | --program-su | --program-s)
1040    ac_prev=program_suffix ;;
1041  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1042  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1043    program_suffix=$ac_optarg ;;
1044
1045  -program-transform-name | --program-transform-name \
1046  | --program-transform-nam | --program-transform-na \
1047  | --program-transform-n | --program-transform- \
1048  | --program-transform | --program-transfor \
1049  | --program-transfo | --program-transf \
1050  | --program-trans | --program-tran \
1051  | --progr-tra | --program-tr | --program-t)
1052    ac_prev=program_transform_name ;;
1053  -program-transform-name=* | --program-transform-name=* \
1054  | --program-transform-nam=* | --program-transform-na=* \
1055  | --program-transform-n=* | --program-transform-=* \
1056  | --program-transform=* | --program-transfor=* \
1057  | --program-transfo=* | --program-transf=* \
1058  | --program-trans=* | --program-tran=* \
1059  | --progr-tra=* | --program-tr=* | --program-t=*)
1060    program_transform_name=$ac_optarg ;;
1061
1062  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1063    ac_prev=pdfdir ;;
1064  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1065    pdfdir=$ac_optarg ;;
1066
1067  -psdir | --psdir | --psdi | --psd | --ps)
1068    ac_prev=psdir ;;
1069  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1070    psdir=$ac_optarg ;;
1071
1072  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1073  | -silent | --silent | --silen | --sile | --sil)
1074    silent=yes ;;
1075
1076  -runstatedir | --runstatedir | --runstatedi | --runstated \
1077  | --runstate | --runstat | --runsta | --runst | --runs \
1078  | --run | --ru | --r)
1079    ac_prev=runstatedir ;;
1080  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1081  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1082  | --run=* | --ru=* | --r=*)
1083    runstatedir=$ac_optarg ;;
1084
1085  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1086    ac_prev=sbindir ;;
1087  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1088  | --sbi=* | --sb=*)
1089    sbindir=$ac_optarg ;;
1090
1091  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1092  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1093  | --sharedst | --shareds | --shared | --share | --shar \
1094  | --sha | --sh)
1095    ac_prev=sharedstatedir ;;
1096  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1097  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1098  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1099  | --sha=* | --sh=*)
1100    sharedstatedir=$ac_optarg ;;
1101
1102  -site | --site | --sit)
1103    ac_prev=site ;;
1104  -site=* | --site=* | --sit=*)
1105    site=$ac_optarg ;;
1106
1107  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1108    ac_prev=srcdir ;;
1109  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1110    srcdir=$ac_optarg ;;
1111
1112  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1113  | --syscon | --sysco | --sysc | --sys | --sy)
1114    ac_prev=sysconfdir ;;
1115  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1116  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1117    sysconfdir=$ac_optarg ;;
1118
1119  -target | --target | --targe | --targ | --tar | --ta | --t)
1120    ac_prev=target_alias ;;
1121  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1122    target_alias=$ac_optarg ;;
1123
1124  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1125    verbose=yes ;;
1126
1127  -version | --version | --versio | --versi | --vers | -V)
1128    ac_init_version=: ;;
1129
1130  -with-* | --with-*)
1131    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1132    # Reject names that are not valid shell variable names.
1133    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1134      as_fn_error $? "invalid package name: $ac_useropt"
1135    ac_useropt_orig=$ac_useropt
1136    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1137    case $ac_user_opts in
1138      *"
1139"with_$ac_useropt"
1140"*) ;;
1141      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1142	 ac_unrecognized_sep=', ';;
1143    esac
1144    eval with_$ac_useropt=\$ac_optarg ;;
1145
1146  -without-* | --without-*)
1147    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1148    # Reject names that are not valid shell variable names.
1149    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1150      as_fn_error $? "invalid package name: $ac_useropt"
1151    ac_useropt_orig=$ac_useropt
1152    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1153    case $ac_user_opts in
1154      *"
1155"with_$ac_useropt"
1156"*) ;;
1157      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1158	 ac_unrecognized_sep=', ';;
1159    esac
1160    eval with_$ac_useropt=no ;;
1161
1162  --x)
1163    # Obsolete; use --with-x.
1164    with_x=yes ;;
1165
1166  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1167  | --x-incl | --x-inc | --x-in | --x-i)
1168    ac_prev=x_includes ;;
1169  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1170  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1171    x_includes=$ac_optarg ;;
1172
1173  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1174  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1175    ac_prev=x_libraries ;;
1176  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1177  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1178    x_libraries=$ac_optarg ;;
1179
1180  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1181Try \`$0 --help' for more information"
1182    ;;
1183
1184  *=*)
1185    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1186    # Reject names that are not valid shell variable names.
1187    case $ac_envvar in #(
1188      '' | [0-9]* | *[!_$as_cr_alnum]* )
1189      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1190    esac
1191    eval $ac_envvar=\$ac_optarg
1192    export $ac_envvar ;;
1193
1194  *)
1195    # FIXME: should be removed in autoconf 3.0.
1196    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1197    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1198      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1199    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1200    ;;
1201
1202  esac
1203done
1204
1205if test -n "$ac_prev"; then
1206  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1207  as_fn_error $? "missing argument to $ac_option"
1208fi
1209
1210if test -n "$ac_unrecognized_opts"; then
1211  case $enable_option_checking in
1212    no) ;;
1213    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1214    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1215  esac
1216fi
1217
1218# Check all directory arguments for consistency.
1219for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1220		datadir sysconfdir sharedstatedir localstatedir includedir \
1221		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1222		libdir localedir mandir runstatedir
1223do
1224  eval ac_val=\$$ac_var
1225  # Remove trailing slashes.
1226  case $ac_val in
1227    */ )
1228      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1229      eval $ac_var=\$ac_val;;
1230  esac
1231  # Be sure to have absolute directory names.
1232  case $ac_val in
1233    [\\/$]* | ?:[\\/]* )  continue;;
1234    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1235  esac
1236  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1237done
1238
1239# There might be people who depend on the old broken behavior: `$host'
1240# used to hold the argument of --host etc.
1241# FIXME: To remove some day.
1242build=$build_alias
1243host=$host_alias
1244target=$target_alias
1245
1246# FIXME: To remove some day.
1247if test "x$host_alias" != x; then
1248  if test "x$build_alias" = x; then
1249    cross_compiling=maybe
1250  elif test "x$build_alias" != "x$host_alias"; then
1251    cross_compiling=yes
1252  fi
1253fi
1254
1255ac_tool_prefix=
1256test -n "$host_alias" && ac_tool_prefix=$host_alias-
1257
1258test "$silent" = yes && exec 6>/dev/null
1259
1260
1261ac_pwd=`pwd` && test -n "$ac_pwd" &&
1262ac_ls_di=`ls -di .` &&
1263ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1264  as_fn_error $? "working directory cannot be determined"
1265test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1266  as_fn_error $? "pwd does not report name of working directory"
1267
1268
1269# Find the source files, if location was not specified.
1270if test -z "$srcdir"; then
1271  ac_srcdir_defaulted=yes
1272  # Try the directory containing this script, then the parent directory.
1273  ac_confdir=`$as_dirname -- "$as_myself" ||
1274$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1275	 X"$as_myself" : 'X\(//\)[^/]' \| \
1276	 X"$as_myself" : 'X\(//\)$' \| \
1277	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1278$as_echo X"$as_myself" |
1279    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1280	    s//\1/
1281	    q
1282	  }
1283	  /^X\(\/\/\)[^/].*/{
1284	    s//\1/
1285	    q
1286	  }
1287	  /^X\(\/\/\)$/{
1288	    s//\1/
1289	    q
1290	  }
1291	  /^X\(\/\).*/{
1292	    s//\1/
1293	    q
1294	  }
1295	  s/.*/./; q'`
1296  srcdir=$ac_confdir
1297  if test ! -r "$srcdir/$ac_unique_file"; then
1298    srcdir=..
1299  fi
1300else
1301  ac_srcdir_defaulted=no
1302fi
1303if test ! -r "$srcdir/$ac_unique_file"; then
1304  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1305  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1306fi
1307ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1308ac_abs_confdir=`(
1309	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1310	pwd)`
1311# When building in place, set srcdir=.
1312if test "$ac_abs_confdir" = "$ac_pwd"; then
1313  srcdir=.
1314fi
1315# Remove unnecessary trailing slashes from srcdir.
1316# Double slashes in file names in object file debugging info
1317# mess up M-x gdb in Emacs.
1318case $srcdir in
1319*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1320esac
1321for ac_var in $ac_precious_vars; do
1322  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1323  eval ac_env_${ac_var}_value=\$${ac_var}
1324  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1325  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1326done
1327
1328#
1329# Report the --help message.
1330#
1331if test "$ac_init_help" = "long"; then
1332  # Omit some internal or obsolete options to make the list less imposing.
1333  # This message is too long to be a string in the A/UX 3.1 sh.
1334  cat <<_ACEOF
1335\`configure' configures pcap 1.9.1 to adapt to many kinds of systems.
1336
1337Usage: $0 [OPTION]... [VAR=VALUE]...
1338
1339To assign environment variables (e.g., CC, CFLAGS...), specify them as
1340VAR=VALUE.  See below for descriptions of some of the useful variables.
1341
1342Defaults for the options are specified in brackets.
1343
1344Configuration:
1345  -h, --help              display this help and exit
1346      --help=short        display options specific to this package
1347      --help=recursive    display the short help of all the included packages
1348  -V, --version           display version information and exit
1349  -q, --quiet, --silent   do not print \`checking ...' messages
1350      --cache-file=FILE   cache test results in FILE [disabled]
1351  -C, --config-cache      alias for \`--cache-file=config.cache'
1352  -n, --no-create         do not create output files
1353      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1354
1355Installation directories:
1356  --prefix=PREFIX         install architecture-independent files in PREFIX
1357                          [$ac_default_prefix]
1358  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1359                          [PREFIX]
1360
1361By default, \`make install' will install all the files in
1362\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1363an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1364for instance \`--prefix=\$HOME'.
1365
1366For better control, use the options below.
1367
1368Fine tuning of the installation directories:
1369  --bindir=DIR            user executables [EPREFIX/bin]
1370  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1371  --libexecdir=DIR        program executables [EPREFIX/libexec]
1372  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1373  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1374  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1375  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1376  --libdir=DIR            object code libraries [EPREFIX/lib]
1377  --includedir=DIR        C header files [PREFIX/include]
1378  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1379  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1380  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1381  --infodir=DIR           info documentation [DATAROOTDIR/info]
1382  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1383  --mandir=DIR            man documentation [DATAROOTDIR/man]
1384  --docdir=DIR            documentation root [DATAROOTDIR/doc/pcap]
1385  --htmldir=DIR           html documentation [DOCDIR]
1386  --dvidir=DIR            dvi documentation [DOCDIR]
1387  --pdfdir=DIR            pdf documentation [DOCDIR]
1388  --psdir=DIR             ps documentation [DOCDIR]
1389_ACEOF
1390
1391  cat <<\_ACEOF
1392
1393System types:
1394  --build=BUILD     configure for building on BUILD [guessed]
1395  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1396  --target=TARGET   configure for building compilers for TARGET [HOST]
1397_ACEOF
1398fi
1399
1400if test -n "$ac_init_help"; then
1401  case $ac_init_help in
1402     short | recursive ) echo "Configuration of pcap 1.9.1:";;
1403   esac
1404  cat <<\_ACEOF
1405
1406Optional Features:
1407  --disable-option-checking  ignore unrecognized --enable/--with options
1408  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1409  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1410  --disable-largefile     omit support for large files
1411  --disable-protochain    disable \"protochain\" insn
1412  --enable-packet-ring    enable packet ring support on Linux [default=yes]
1413  --enable-ipv6           build IPv6-capable version [default=yes]
1414  --enable-remote         enable remote packet capture [default=no]
1415  --disable-remote        disable remote packet capture
1416  --enable-optimizer-dbg  build optimizer debugging code
1417  --enable-yydebug        build parser debugging code
1418  --disable-universal     don't build universal on macOS
1419  --enable-shared         build shared libraries [default=yes, if support
1420                          available]
1421  --enable-usb            enable USB capture support [default=yes, if support
1422                          available]
1423  --enable-netmap         enable netmap support [default=yes, if support
1424                          available]
1425  --enable-bluetooth      enable Bluetooth support [default=yes, if support
1426                          available]
1427  --enable-dbus           enable D-Bus capture support [default=yes, if
1428                          support available]
1429  --enable-rdma           enable RDMA capture support [default=yes, if support
1430                          available]
1431
1432Optional Packages:
1433  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1434  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1435  --without-gcc           don't use gcc
1436  --with-sita             include SITA support
1437  --with-pcap=TYPE        use packet capture TYPE
1438  --without-libnl         disable libnl support [default=yes, on Linux, if
1439                          present]
1440  --with-dag[=DIR]        include Endace DAG support (located in directory
1441                          DIR, if supplied). [default=yes, if present]
1442  --with-dag-includes=IDIR
1443                          Endace DAG include directory, if not DIR/include
1444  --with-dag-libraries=LDIR
1445                          Endace DAG library directory, if not DIR/lib
1446  --with-septel[=DIR]     include Septel support (located in directory DIR, if
1447                          supplied). [default=yes, if present]
1448  --with-snf[=DIR]        include Myricom SNF support (located in directory
1449                          DIR, if supplied). [default=yes, if present]
1450  --with-snf-includes=IDIR
1451                          Myricom SNF include directory, if not DIR/include
1452  --with-snf-libraries=LDIR
1453                          Myricom SNF library directory, if not DIR/lib
1454  --with-turbocap[=DIR]   include Riverbed TurboCap support (located in
1455                          directory DIR, if supplied). [default=yes, if
1456                          present]
1457
1458Some influential environment variables:
1459  CC          C compiler command
1460  CFLAGS      C compiler flags
1461  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1462              nonstandard directory <lib dir>
1463  LIBS        libraries to pass to the linker, e.g. -l<library>
1464  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1465              you have headers in a nonstandard directory <include dir>
1466  CPP         C preprocessor
1467  YACC        The `Yet Another Compiler Compiler' implementation to use.
1468              Defaults to the first program found out of: `bison -y', `byacc',
1469              `yacc'.
1470  YFLAGS      The list of arguments that will be passed by default to $YACC.
1471              This script will default YFLAGS to the empty string to avoid a
1472              default value of `-d' given by some make applications.
1473
1474Use these variables to override the choices made by `configure' or to help
1475it to find libraries and programs with nonstandard names/locations.
1476
1477Report bugs to the package provider.
1478_ACEOF
1479ac_status=$?
1480fi
1481
1482if test "$ac_init_help" = "recursive"; then
1483  # If there are subdirs, report their specific --help.
1484  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1485    test -d "$ac_dir" ||
1486      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1487      continue
1488    ac_builddir=.
1489
1490case "$ac_dir" in
1491.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1492*)
1493  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1494  # A ".." for each directory in $ac_dir_suffix.
1495  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1496  case $ac_top_builddir_sub in
1497  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1498  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1499  esac ;;
1500esac
1501ac_abs_top_builddir=$ac_pwd
1502ac_abs_builddir=$ac_pwd$ac_dir_suffix
1503# for backward compatibility:
1504ac_top_builddir=$ac_top_build_prefix
1505
1506case $srcdir in
1507  .)  # We are building in place.
1508    ac_srcdir=.
1509    ac_top_srcdir=$ac_top_builddir_sub
1510    ac_abs_top_srcdir=$ac_pwd ;;
1511  [\\/]* | ?:[\\/]* )  # Absolute name.
1512    ac_srcdir=$srcdir$ac_dir_suffix;
1513    ac_top_srcdir=$srcdir
1514    ac_abs_top_srcdir=$srcdir ;;
1515  *) # Relative name.
1516    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1517    ac_top_srcdir=$ac_top_build_prefix$srcdir
1518    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1519esac
1520ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1521
1522    cd "$ac_dir" || { ac_status=$?; continue; }
1523    # Check for guested configure.
1524    if test -f "$ac_srcdir/configure.gnu"; then
1525      echo &&
1526      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1527    elif test -f "$ac_srcdir/configure"; then
1528      echo &&
1529      $SHELL "$ac_srcdir/configure" --help=recursive
1530    else
1531      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1532    fi || ac_status=$?
1533    cd "$ac_pwd" || { ac_status=$?; break; }
1534  done
1535fi
1536
1537test -n "$ac_init_help" && exit $ac_status
1538if $ac_init_version; then
1539  cat <<\_ACEOF
1540pcap configure 1.9.1
1541generated by GNU Autoconf 2.69
1542
1543Copyright (C) 2012 Free Software Foundation, Inc.
1544This configure script is free software; the Free Software Foundation
1545gives unlimited permission to copy, distribute and modify it.
1546_ACEOF
1547  exit
1548fi
1549
1550## ------------------------ ##
1551## Autoconf initialization. ##
1552## ------------------------ ##
1553
1554# ac_fn_c_try_compile LINENO
1555# --------------------------
1556# Try to compile conftest.$ac_ext, and return whether this succeeded.
1557ac_fn_c_try_compile ()
1558{
1559  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1560  rm -f conftest.$ac_objext
1561  if { { ac_try="$ac_compile"
1562case "(($ac_try" in
1563  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1564  *) ac_try_echo=$ac_try;;
1565esac
1566eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1567$as_echo "$ac_try_echo"; } >&5
1568  (eval "$ac_compile") 2>conftest.err
1569  ac_status=$?
1570  if test -s conftest.err; then
1571    grep -v '^ *+' conftest.err >conftest.er1
1572    cat conftest.er1 >&5
1573    mv -f conftest.er1 conftest.err
1574  fi
1575  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1576  test $ac_status = 0; } && {
1577	 test -z "$ac_c_werror_flag" ||
1578	 test ! -s conftest.err
1579       } && test -s conftest.$ac_objext; then :
1580  ac_retval=0
1581else
1582  $as_echo "$as_me: failed program was:" >&5
1583sed 's/^/| /' conftest.$ac_ext >&5
1584
1585	ac_retval=1
1586fi
1587  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1588  as_fn_set_status $ac_retval
1589
1590} # ac_fn_c_try_compile
1591
1592# ac_fn_c_try_link LINENO
1593# -----------------------
1594# Try to link conftest.$ac_ext, and return whether this succeeded.
1595ac_fn_c_try_link ()
1596{
1597  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1598  rm -f conftest.$ac_objext conftest$ac_exeext
1599  if { { ac_try="$ac_link"
1600case "(($ac_try" in
1601  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1602  *) ac_try_echo=$ac_try;;
1603esac
1604eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1605$as_echo "$ac_try_echo"; } >&5
1606  (eval "$ac_link") 2>conftest.err
1607  ac_status=$?
1608  if test -s conftest.err; then
1609    grep -v '^ *+' conftest.err >conftest.er1
1610    cat conftest.er1 >&5
1611    mv -f conftest.er1 conftest.err
1612  fi
1613  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1614  test $ac_status = 0; } && {
1615	 test -z "$ac_c_werror_flag" ||
1616	 test ! -s conftest.err
1617       } && test -s conftest$ac_exeext && {
1618	 test "$cross_compiling" = yes ||
1619	 test -x conftest$ac_exeext
1620       }; then :
1621  ac_retval=0
1622else
1623  $as_echo "$as_me: failed program was:" >&5
1624sed 's/^/| /' conftest.$ac_ext >&5
1625
1626	ac_retval=1
1627fi
1628  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1629  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1630  # interfere with the next link command; also delete a directory that is
1631  # left behind by Apple's compiler.  We do this before executing the actions.
1632  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1633  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1634  as_fn_set_status $ac_retval
1635
1636} # ac_fn_c_try_link
1637
1638# ac_fn_c_try_cpp LINENO
1639# ----------------------
1640# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1641ac_fn_c_try_cpp ()
1642{
1643  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1644  if { { ac_try="$ac_cpp conftest.$ac_ext"
1645case "(($ac_try" in
1646  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1647  *) ac_try_echo=$ac_try;;
1648esac
1649eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1650$as_echo "$ac_try_echo"; } >&5
1651  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1652  ac_status=$?
1653  if test -s conftest.err; then
1654    grep -v '^ *+' conftest.err >conftest.er1
1655    cat conftest.er1 >&5
1656    mv -f conftest.er1 conftest.err
1657  fi
1658  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1659  test $ac_status = 0; } > conftest.i && {
1660	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1661	 test ! -s conftest.err
1662       }; then :
1663  ac_retval=0
1664else
1665  $as_echo "$as_me: failed program was:" >&5
1666sed 's/^/| /' conftest.$ac_ext >&5
1667
1668    ac_retval=1
1669fi
1670  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1671  as_fn_set_status $ac_retval
1672
1673} # ac_fn_c_try_cpp
1674
1675# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1676# -------------------------------------------------------
1677# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1678# the include files in INCLUDES and setting the cache variable VAR
1679# accordingly.
1680ac_fn_c_check_header_mongrel ()
1681{
1682  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1683  if eval \${$3+:} false; then :
1684  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1685$as_echo_n "checking for $2... " >&6; }
1686if eval \${$3+:} false; then :
1687  $as_echo_n "(cached) " >&6
1688fi
1689eval ac_res=\$$3
1690	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1691$as_echo "$ac_res" >&6; }
1692else
1693  # Is the header compilable?
1694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1695$as_echo_n "checking $2 usability... " >&6; }
1696cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1697/* end confdefs.h.  */
1698$4
1699#include <$2>
1700_ACEOF
1701if ac_fn_c_try_compile "$LINENO"; then :
1702  ac_header_compiler=yes
1703else
1704  ac_header_compiler=no
1705fi
1706rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1708$as_echo "$ac_header_compiler" >&6; }
1709
1710# Is the header present?
1711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1712$as_echo_n "checking $2 presence... " >&6; }
1713cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1714/* end confdefs.h.  */
1715#include <$2>
1716_ACEOF
1717if ac_fn_c_try_cpp "$LINENO"; then :
1718  ac_header_preproc=yes
1719else
1720  ac_header_preproc=no
1721fi
1722rm -f conftest.err conftest.i conftest.$ac_ext
1723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1724$as_echo "$ac_header_preproc" >&6; }
1725
1726# So?  What about this header?
1727case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1728  yes:no: )
1729    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1730$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1731    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1732$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1733    ;;
1734  no:yes:* )
1735    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1736$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1737    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1738$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1739    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1740$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1741    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1742$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1743    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1744$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1745    ;;
1746esac
1747  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1748$as_echo_n "checking for $2... " >&6; }
1749if eval \${$3+:} false; then :
1750  $as_echo_n "(cached) " >&6
1751else
1752  eval "$3=\$ac_header_compiler"
1753fi
1754eval ac_res=\$$3
1755	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1756$as_echo "$ac_res" >&6; }
1757fi
1758  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1759
1760} # ac_fn_c_check_header_mongrel
1761
1762# ac_fn_c_try_run LINENO
1763# ----------------------
1764# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1765# that executables *can* be run.
1766ac_fn_c_try_run ()
1767{
1768  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1769  if { { ac_try="$ac_link"
1770case "(($ac_try" in
1771  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1772  *) ac_try_echo=$ac_try;;
1773esac
1774eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1775$as_echo "$ac_try_echo"; } >&5
1776  (eval "$ac_link") 2>&5
1777  ac_status=$?
1778  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1779  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1780  { { case "(($ac_try" in
1781  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1782  *) ac_try_echo=$ac_try;;
1783esac
1784eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1785$as_echo "$ac_try_echo"; } >&5
1786  (eval "$ac_try") 2>&5
1787  ac_status=$?
1788  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1789  test $ac_status = 0; }; }; then :
1790  ac_retval=0
1791else
1792  $as_echo "$as_me: program exited with status $ac_status" >&5
1793       $as_echo "$as_me: failed program was:" >&5
1794sed 's/^/| /' conftest.$ac_ext >&5
1795
1796       ac_retval=$ac_status
1797fi
1798  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1799  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1800  as_fn_set_status $ac_retval
1801
1802} # ac_fn_c_try_run
1803
1804# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1805# -------------------------------------------------------
1806# Tests whether HEADER exists and can be compiled using the include files in
1807# INCLUDES, setting the cache variable VAR accordingly.
1808ac_fn_c_check_header_compile ()
1809{
1810  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1811  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1812$as_echo_n "checking for $2... " >&6; }
1813if eval \${$3+:} false; then :
1814  $as_echo_n "(cached) " >&6
1815else
1816  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1817/* end confdefs.h.  */
1818$4
1819#include <$2>
1820_ACEOF
1821if ac_fn_c_try_compile "$LINENO"; then :
1822  eval "$3=yes"
1823else
1824  eval "$3=no"
1825fi
1826rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1827fi
1828eval ac_res=\$$3
1829	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1830$as_echo "$ac_res" >&6; }
1831  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1832
1833} # ac_fn_c_check_header_compile
1834
1835# ac_fn_c_check_func LINENO FUNC VAR
1836# ----------------------------------
1837# Tests whether FUNC exists, setting the cache variable VAR accordingly
1838ac_fn_c_check_func ()
1839{
1840  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1841  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1842$as_echo_n "checking for $2... " >&6; }
1843if eval \${$3+:} false; then :
1844  $as_echo_n "(cached) " >&6
1845else
1846  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1847/* end confdefs.h.  */
1848/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1849   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1850#define $2 innocuous_$2
1851
1852/* System header to define __stub macros and hopefully few prototypes,
1853    which can conflict with char $2 (); below.
1854    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1855    <limits.h> exists even on freestanding compilers.  */
1856
1857#ifdef __STDC__
1858# include <limits.h>
1859#else
1860# include <assert.h>
1861#endif
1862
1863#undef $2
1864
1865/* Override any GCC internal prototype to avoid an error.
1866   Use char because int might match the return type of a GCC
1867   builtin and then its argument prototype would still apply.  */
1868#ifdef __cplusplus
1869extern "C"
1870#endif
1871char $2 ();
1872/* The GNU C library defines this for functions which it implements
1873    to always fail with ENOSYS.  Some functions are actually named
1874    something starting with __ and the normal name is an alias.  */
1875#if defined __stub_$2 || defined __stub___$2
1876choke me
1877#endif
1878
1879int
1880main ()
1881{
1882return $2 ();
1883  ;
1884  return 0;
1885}
1886_ACEOF
1887if ac_fn_c_try_link "$LINENO"; then :
1888  eval "$3=yes"
1889else
1890  eval "$3=no"
1891fi
1892rm -f core conftest.err conftest.$ac_objext \
1893    conftest$ac_exeext conftest.$ac_ext
1894fi
1895eval ac_res=\$$3
1896	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1897$as_echo "$ac_res" >&6; }
1898  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1899
1900} # ac_fn_c_check_func
1901
1902# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1903# ---------------------------------------------
1904# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1905# accordingly.
1906ac_fn_c_check_decl ()
1907{
1908  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1909  as_decl_name=`echo $2|sed 's/ *(.*//'`
1910  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1911  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1912$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1913if eval \${$3+:} false; then :
1914  $as_echo_n "(cached) " >&6
1915else
1916  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1917/* end confdefs.h.  */
1918$4
1919int
1920main ()
1921{
1922#ifndef $as_decl_name
1923#ifdef __cplusplus
1924  (void) $as_decl_use;
1925#else
1926  (void) $as_decl_name;
1927#endif
1928#endif
1929
1930  ;
1931  return 0;
1932}
1933_ACEOF
1934if ac_fn_c_try_compile "$LINENO"; then :
1935  eval "$3=yes"
1936else
1937  eval "$3=no"
1938fi
1939rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1940fi
1941eval ac_res=\$$3
1942	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1943$as_echo "$ac_res" >&6; }
1944  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1945
1946} # ac_fn_c_check_decl
1947
1948# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1949# -------------------------------------------
1950# Tests whether TYPE exists after having included INCLUDES, setting cache
1951# variable VAR accordingly.
1952ac_fn_c_check_type ()
1953{
1954  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1955  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1956$as_echo_n "checking for $2... " >&6; }
1957if eval \${$3+:} false; then :
1958  $as_echo_n "(cached) " >&6
1959else
1960  eval "$3=no"
1961  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1962/* end confdefs.h.  */
1963$4
1964int
1965main ()
1966{
1967if (sizeof ($2))
1968	 return 0;
1969  ;
1970  return 0;
1971}
1972_ACEOF
1973if ac_fn_c_try_compile "$LINENO"; then :
1974  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1975/* end confdefs.h.  */
1976$4
1977int
1978main ()
1979{
1980if (sizeof (($2)))
1981	    return 0;
1982  ;
1983  return 0;
1984}
1985_ACEOF
1986if ac_fn_c_try_compile "$LINENO"; then :
1987
1988else
1989  eval "$3=yes"
1990fi
1991rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1992fi
1993rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1994fi
1995eval ac_res=\$$3
1996	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1997$as_echo "$ac_res" >&6; }
1998  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1999
2000} # ac_fn_c_check_type
2001
2002# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2003# ----------------------------------------------------
2004# Tries to find if the field MEMBER exists in type AGGR, after including
2005# INCLUDES, setting cache variable VAR accordingly.
2006ac_fn_c_check_member ()
2007{
2008  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2009  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2010$as_echo_n "checking for $2.$3... " >&6; }
2011if eval \${$4+:} false; then :
2012  $as_echo_n "(cached) " >&6
2013else
2014  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2015/* end confdefs.h.  */
2016$5
2017int
2018main ()
2019{
2020static $2 ac_aggr;
2021if (ac_aggr.$3)
2022return 0;
2023  ;
2024  return 0;
2025}
2026_ACEOF
2027if ac_fn_c_try_compile "$LINENO"; then :
2028  eval "$4=yes"
2029else
2030  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2031/* end confdefs.h.  */
2032$5
2033int
2034main ()
2035{
2036static $2 ac_aggr;
2037if (sizeof ac_aggr.$3)
2038return 0;
2039  ;
2040  return 0;
2041}
2042_ACEOF
2043if ac_fn_c_try_compile "$LINENO"; then :
2044  eval "$4=yes"
2045else
2046  eval "$4=no"
2047fi
2048rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2049fi
2050rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2051fi
2052eval ac_res=\$$4
2053	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2054$as_echo "$ac_res" >&6; }
2055  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2056
2057} # ac_fn_c_check_member
2058cat >config.log <<_ACEOF
2059This file contains any messages produced by compilers while
2060running configure, to aid debugging if configure makes a mistake.
2061
2062It was created by pcap $as_me 1.9.1, which was
2063generated by GNU Autoconf 2.69.  Invocation command line was
2064
2065  $ $0 $@
2066
2067_ACEOF
2068exec 5>>config.log
2069{
2070cat <<_ASUNAME
2071## --------- ##
2072## Platform. ##
2073## --------- ##
2074
2075hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2076uname -m = `(uname -m) 2>/dev/null || echo unknown`
2077uname -r = `(uname -r) 2>/dev/null || echo unknown`
2078uname -s = `(uname -s) 2>/dev/null || echo unknown`
2079uname -v = `(uname -v) 2>/dev/null || echo unknown`
2080
2081/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2082/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2083
2084/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2085/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2086/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2087/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2088/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2089/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2090/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2091
2092_ASUNAME
2093
2094as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2095for as_dir in $PATH
2096do
2097  IFS=$as_save_IFS
2098  test -z "$as_dir" && as_dir=.
2099    $as_echo "PATH: $as_dir"
2100  done
2101IFS=$as_save_IFS
2102
2103} >&5
2104
2105cat >&5 <<_ACEOF
2106
2107
2108## ----------- ##
2109## Core tests. ##
2110## ----------- ##
2111
2112_ACEOF
2113
2114
2115# Keep a trace of the command line.
2116# Strip out --no-create and --no-recursion so they do not pile up.
2117# Strip out --silent because we don't want to record it for future runs.
2118# Also quote any args containing shell meta-characters.
2119# Make two passes to allow for proper duplicate-argument suppression.
2120ac_configure_args=
2121ac_configure_args0=
2122ac_configure_args1=
2123ac_must_keep_next=false
2124for ac_pass in 1 2
2125do
2126  for ac_arg
2127  do
2128    case $ac_arg in
2129    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2130    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2131    | -silent | --silent | --silen | --sile | --sil)
2132      continue ;;
2133    *\'*)
2134      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2135    esac
2136    case $ac_pass in
2137    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2138    2)
2139      as_fn_append ac_configure_args1 " '$ac_arg'"
2140      if test $ac_must_keep_next = true; then
2141	ac_must_keep_next=false # Got value, back to normal.
2142      else
2143	case $ac_arg in
2144	  *=* | --config-cache | -C | -disable-* | --disable-* \
2145	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2146	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2147	  | -with-* | --with-* | -without-* | --without-* | --x)
2148	    case "$ac_configure_args0 " in
2149	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2150	    esac
2151	    ;;
2152	  -* ) ac_must_keep_next=true ;;
2153	esac
2154      fi
2155      as_fn_append ac_configure_args " '$ac_arg'"
2156      ;;
2157    esac
2158  done
2159done
2160{ ac_configure_args0=; unset ac_configure_args0;}
2161{ ac_configure_args1=; unset ac_configure_args1;}
2162
2163# When interrupted or exit'd, cleanup temporary files, and complete
2164# config.log.  We remove comments because anyway the quotes in there
2165# would cause problems or look ugly.
2166# WARNING: Use '\'' to represent an apostrophe within the trap.
2167# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2168trap 'exit_status=$?
2169  # Save into config.log some information that might help in debugging.
2170  {
2171    echo
2172
2173    $as_echo "## ---------------- ##
2174## Cache variables. ##
2175## ---------------- ##"
2176    echo
2177    # The following way of writing the cache mishandles newlines in values,
2178(
2179  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2180    eval ac_val=\$$ac_var
2181    case $ac_val in #(
2182    *${as_nl}*)
2183      case $ac_var in #(
2184      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2185$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2186      esac
2187      case $ac_var in #(
2188      _ | IFS | as_nl) ;; #(
2189      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2190      *) { eval $ac_var=; unset $ac_var;} ;;
2191      esac ;;
2192    esac
2193  done
2194  (set) 2>&1 |
2195    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2196    *${as_nl}ac_space=\ *)
2197      sed -n \
2198	"s/'\''/'\''\\\\'\'''\''/g;
2199	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2200      ;; #(
2201    *)
2202      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2203      ;;
2204    esac |
2205    sort
2206)
2207    echo
2208
2209    $as_echo "## ----------------- ##
2210## Output variables. ##
2211## ----------------- ##"
2212    echo
2213    for ac_var in $ac_subst_vars
2214    do
2215      eval ac_val=\$$ac_var
2216      case $ac_val in
2217      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2218      esac
2219      $as_echo "$ac_var='\''$ac_val'\''"
2220    done | sort
2221    echo
2222
2223    if test -n "$ac_subst_files"; then
2224      $as_echo "## ------------------- ##
2225## File substitutions. ##
2226## ------------------- ##"
2227      echo
2228      for ac_var in $ac_subst_files
2229      do
2230	eval ac_val=\$$ac_var
2231	case $ac_val in
2232	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2233	esac
2234	$as_echo "$ac_var='\''$ac_val'\''"
2235      done | sort
2236      echo
2237    fi
2238
2239    if test -s confdefs.h; then
2240      $as_echo "## ----------- ##
2241## confdefs.h. ##
2242## ----------- ##"
2243      echo
2244      cat confdefs.h
2245      echo
2246    fi
2247    test "$ac_signal" != 0 &&
2248      $as_echo "$as_me: caught signal $ac_signal"
2249    $as_echo "$as_me: exit $exit_status"
2250  } >&5
2251  rm -f core *.core core.conftest.* &&
2252    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2253    exit $exit_status
2254' 0
2255for ac_signal in 1 2 13 15; do
2256  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2257done
2258ac_signal=0
2259
2260# confdefs.h avoids OS command line length limits that DEFS can exceed.
2261rm -f -r conftest* confdefs.h
2262
2263$as_echo "/* confdefs.h */" > confdefs.h
2264
2265# Predefined preprocessor variables.
2266
2267cat >>confdefs.h <<_ACEOF
2268#define PACKAGE_NAME "$PACKAGE_NAME"
2269_ACEOF
2270
2271cat >>confdefs.h <<_ACEOF
2272#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2273_ACEOF
2274
2275cat >>confdefs.h <<_ACEOF
2276#define PACKAGE_VERSION "$PACKAGE_VERSION"
2277_ACEOF
2278
2279cat >>confdefs.h <<_ACEOF
2280#define PACKAGE_STRING "$PACKAGE_STRING"
2281_ACEOF
2282
2283cat >>confdefs.h <<_ACEOF
2284#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2285_ACEOF
2286
2287cat >>confdefs.h <<_ACEOF
2288#define PACKAGE_URL "$PACKAGE_URL"
2289_ACEOF
2290
2291
2292# Let the site file select an alternate cache file if it wants to.
2293# Prefer an explicitly selected file to automatically selected ones.
2294ac_site_file1=NONE
2295ac_site_file2=NONE
2296if test -n "$CONFIG_SITE"; then
2297  # We do not want a PATH search for config.site.
2298  case $CONFIG_SITE in #((
2299    -*)  ac_site_file1=./$CONFIG_SITE;;
2300    */*) ac_site_file1=$CONFIG_SITE;;
2301    *)   ac_site_file1=./$CONFIG_SITE;;
2302  esac
2303elif test "x$prefix" != xNONE; then
2304  ac_site_file1=$prefix/share/config.site
2305  ac_site_file2=$prefix/etc/config.site
2306else
2307  ac_site_file1=$ac_default_prefix/share/config.site
2308  ac_site_file2=$ac_default_prefix/etc/config.site
2309fi
2310for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2311do
2312  test "x$ac_site_file" = xNONE && continue
2313  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2314    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2315$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2316    sed 's/^/| /' "$ac_site_file" >&5
2317    . "$ac_site_file" \
2318      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2319$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2320as_fn_error $? "failed to load site script $ac_site_file
2321See \`config.log' for more details" "$LINENO" 5; }
2322  fi
2323done
2324
2325if test -r "$cache_file"; then
2326  # Some versions of bash will fail to source /dev/null (special files
2327  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2328  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2329    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2330$as_echo "$as_me: loading cache $cache_file" >&6;}
2331    case $cache_file in
2332      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2333      *)                      . "./$cache_file";;
2334    esac
2335  fi
2336else
2337  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2338$as_echo "$as_me: creating cache $cache_file" >&6;}
2339  >$cache_file
2340fi
2341
2342# Check that the precious variables saved in the cache have kept the same
2343# value.
2344ac_cache_corrupted=false
2345for ac_var in $ac_precious_vars; do
2346  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2347  eval ac_new_set=\$ac_env_${ac_var}_set
2348  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2349  eval ac_new_val=\$ac_env_${ac_var}_value
2350  case $ac_old_set,$ac_new_set in
2351    set,)
2352      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2353$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2354      ac_cache_corrupted=: ;;
2355    ,set)
2356      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2357$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2358      ac_cache_corrupted=: ;;
2359    ,);;
2360    *)
2361      if test "x$ac_old_val" != "x$ac_new_val"; then
2362	# differences in whitespace do not lead to failure.
2363	ac_old_val_w=`echo x $ac_old_val`
2364	ac_new_val_w=`echo x $ac_new_val`
2365	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2366	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2367$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2368	  ac_cache_corrupted=:
2369	else
2370	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2371$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2372	  eval $ac_var=\$ac_old_val
2373	fi
2374	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2375$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2376	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2377$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2378      fi;;
2379  esac
2380  # Pass precious variables to config.status.
2381  if test "$ac_new_set" = set; then
2382    case $ac_new_val in
2383    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2384    *) ac_arg=$ac_var=$ac_new_val ;;
2385    esac
2386    case " $ac_configure_args " in
2387      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2388      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2389    esac
2390  fi
2391done
2392if $ac_cache_corrupted; then
2393  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2394$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2395  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2396$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2397  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2398fi
2399## -------------------- ##
2400## Main body of script. ##
2401## -------------------- ##
2402
2403ac_ext=c
2404ac_cpp='$CPP $CPPFLAGS'
2405ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2406ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2407ac_compiler_gnu=$ac_cv_c_compiler_gnu
2408
2409
2410
2411
2412
2413ac_aux_dir=
2414for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2415  if test -f "$ac_dir/install-sh"; then
2416    ac_aux_dir=$ac_dir
2417    ac_install_sh="$ac_aux_dir/install-sh -c"
2418    break
2419  elif test -f "$ac_dir/install.sh"; then
2420    ac_aux_dir=$ac_dir
2421    ac_install_sh="$ac_aux_dir/install.sh -c"
2422    break
2423  elif test -f "$ac_dir/shtool"; then
2424    ac_aux_dir=$ac_dir
2425    ac_install_sh="$ac_aux_dir/shtool install -c"
2426    break
2427  fi
2428done
2429if test -z "$ac_aux_dir"; then
2430  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2431fi
2432
2433# These three variables are undocumented and unsupported,
2434# and are intended to be withdrawn in a future Autoconf release.
2435# They can cause serious problems if a builder's source tree is in a directory
2436# whose full name contains unusual characters.
2437ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2438ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2439ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2440
2441
2442# Make sure we can run config.sub.
2443$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2444  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2445
2446{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2447$as_echo_n "checking build system type... " >&6; }
2448if ${ac_cv_build+:} false; then :
2449  $as_echo_n "(cached) " >&6
2450else
2451  ac_build_alias=$build_alias
2452test "x$ac_build_alias" = x &&
2453  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2454test "x$ac_build_alias" = x &&
2455  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2456ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2457  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2458
2459fi
2460{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2461$as_echo "$ac_cv_build" >&6; }
2462case $ac_cv_build in
2463*-*-*) ;;
2464*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2465esac
2466build=$ac_cv_build
2467ac_save_IFS=$IFS; IFS='-'
2468set x $ac_cv_build
2469shift
2470build_cpu=$1
2471build_vendor=$2
2472shift; shift
2473# Remember, the first character of IFS is used to create $*,
2474# except with old shells:
2475build_os=$*
2476IFS=$ac_save_IFS
2477case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2478
2479
2480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2481$as_echo_n "checking host system type... " >&6; }
2482if ${ac_cv_host+:} false; then :
2483  $as_echo_n "(cached) " >&6
2484else
2485  if test "x$host_alias" = x; then
2486  ac_cv_host=$ac_cv_build
2487else
2488  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2489    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2490fi
2491
2492fi
2493{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2494$as_echo "$ac_cv_host" >&6; }
2495case $ac_cv_host in
2496*-*-*) ;;
2497*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2498esac
2499host=$ac_cv_host
2500ac_save_IFS=$IFS; IFS='-'
2501set x $ac_cv_host
2502shift
2503host_cpu=$1
2504host_vendor=$2
2505shift; shift
2506# Remember, the first character of IFS is used to create $*,
2507# except with old shells:
2508host_os=$*
2509IFS=$ac_save_IFS
2510case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2511
2512
2513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2514$as_echo_n "checking target system type... " >&6; }
2515if ${ac_cv_target+:} false; then :
2516  $as_echo_n "(cached) " >&6
2517else
2518  if test "x$target_alias" = x; then
2519  ac_cv_target=$ac_cv_host
2520else
2521  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2522    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2523fi
2524
2525fi
2526{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2527$as_echo "$ac_cv_target" >&6; }
2528case $ac_cv_target in
2529*-*-*) ;;
2530*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2531esac
2532target=$ac_cv_target
2533ac_save_IFS=$IFS; IFS='-'
2534set x $ac_cv_target
2535shift
2536target_cpu=$1
2537target_vendor=$2
2538shift; shift
2539# Remember, the first character of IFS is used to create $*,
2540# except with old shells:
2541target_os=$*
2542IFS=$ac_save_IFS
2543case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2544
2545
2546# The aliases save the names the user supplied, while $host etc.
2547# will get canonicalized.
2548test -n "$target_alias" &&
2549  test "$program_prefix$program_suffix$program_transform_name" = \
2550    NONENONEs,x,x, &&
2551  program_prefix=${target_alias}-
2552
2553
2554
2555
2556
2557
2558
2559
2560# Check whether --with-gcc was given.
2561if test "${with_gcc+set}" = set; then :
2562  withval=$with_gcc;
2563fi
2564
2565    V_CCOPT=""
2566    if test "${srcdir}" != "." ; then
2567	    V_CCOPT="-I\$(srcdir)"
2568    fi
2569    if test "${CFLAGS+set}" = set; then
2570	    LBL_CFLAGS="$CFLAGS"
2571    fi
2572    if test -z "$CC" ; then
2573	    case "$host_os" in
2574
2575	    bsdi*)
2576		    # Extract the first word of "shlicc2", so it can be a program name with args.
2577set dummy shlicc2; ac_word=$2
2578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2579$as_echo_n "checking for $ac_word... " >&6; }
2580if ${ac_cv_prog_SHLICC2+:} false; then :
2581  $as_echo_n "(cached) " >&6
2582else
2583  if test -n "$SHLICC2"; then
2584  ac_cv_prog_SHLICC2="$SHLICC2" # Let the user override the test.
2585else
2586as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2587for as_dir in $PATH
2588do
2589  IFS=$as_save_IFS
2590  test -z "$as_dir" && as_dir=.
2591    for ac_exec_ext in '' $ac_executable_extensions; do
2592  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2593    ac_cv_prog_SHLICC2="yes"
2594    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2595    break 2
2596  fi
2597done
2598  done
2599IFS=$as_save_IFS
2600
2601  test -z "$ac_cv_prog_SHLICC2" && ac_cv_prog_SHLICC2="no"
2602fi
2603fi
2604SHLICC2=$ac_cv_prog_SHLICC2
2605if test -n "$SHLICC2"; then
2606  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHLICC2" >&5
2607$as_echo "$SHLICC2" >&6; }
2608else
2609  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2610$as_echo "no" >&6; }
2611fi
2612
2613
2614		    if test $SHLICC2 = yes ; then
2615			    CC=shlicc2
2616			    export CC
2617		    fi
2618		    ;;
2619	    esac
2620    fi
2621    if test -z "$CC" -a "$with_gcc" = no ; then
2622	    CC=cc
2623	    export CC
2624    fi
2625
2626#
2627# Try to enable as many C99 features as we can.
2628# At minimum, we want C++/C99-style // comments.
2629#
2630ac_ext=c
2631ac_cpp='$CPP $CPPFLAGS'
2632ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2633ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2634ac_compiler_gnu=$ac_cv_c_compiler_gnu
2635if test -n "$ac_tool_prefix"; then
2636  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2637set dummy ${ac_tool_prefix}gcc; ac_word=$2
2638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2639$as_echo_n "checking for $ac_word... " >&6; }
2640if ${ac_cv_prog_CC+:} false; then :
2641  $as_echo_n "(cached) " >&6
2642else
2643  if test -n "$CC"; then
2644  ac_cv_prog_CC="$CC" # Let the user override the test.
2645else
2646as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2647for as_dir in $PATH
2648do
2649  IFS=$as_save_IFS
2650  test -z "$as_dir" && as_dir=.
2651    for ac_exec_ext in '' $ac_executable_extensions; do
2652  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2653    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2654    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2655    break 2
2656  fi
2657done
2658  done
2659IFS=$as_save_IFS
2660
2661fi
2662fi
2663CC=$ac_cv_prog_CC
2664if test -n "$CC"; then
2665  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2666$as_echo "$CC" >&6; }
2667else
2668  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2669$as_echo "no" >&6; }
2670fi
2671
2672
2673fi
2674if test -z "$ac_cv_prog_CC"; then
2675  ac_ct_CC=$CC
2676  # Extract the first word of "gcc", so it can be a program name with args.
2677set dummy gcc; ac_word=$2
2678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2679$as_echo_n "checking for $ac_word... " >&6; }
2680if ${ac_cv_prog_ac_ct_CC+:} false; then :
2681  $as_echo_n "(cached) " >&6
2682else
2683  if test -n "$ac_ct_CC"; then
2684  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2685else
2686as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2687for as_dir in $PATH
2688do
2689  IFS=$as_save_IFS
2690  test -z "$as_dir" && as_dir=.
2691    for ac_exec_ext in '' $ac_executable_extensions; do
2692  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2693    ac_cv_prog_ac_ct_CC="gcc"
2694    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2695    break 2
2696  fi
2697done
2698  done
2699IFS=$as_save_IFS
2700
2701fi
2702fi
2703ac_ct_CC=$ac_cv_prog_ac_ct_CC
2704if test -n "$ac_ct_CC"; then
2705  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2706$as_echo "$ac_ct_CC" >&6; }
2707else
2708  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2709$as_echo "no" >&6; }
2710fi
2711
2712  if test "x$ac_ct_CC" = x; then
2713    CC=""
2714  else
2715    case $cross_compiling:$ac_tool_warned in
2716yes:)
2717{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2718$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2719ac_tool_warned=yes ;;
2720esac
2721    CC=$ac_ct_CC
2722  fi
2723else
2724  CC="$ac_cv_prog_CC"
2725fi
2726
2727if test -z "$CC"; then
2728          if test -n "$ac_tool_prefix"; then
2729    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2730set dummy ${ac_tool_prefix}cc; ac_word=$2
2731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2732$as_echo_n "checking for $ac_word... " >&6; }
2733if ${ac_cv_prog_CC+:} false; then :
2734  $as_echo_n "(cached) " >&6
2735else
2736  if test -n "$CC"; then
2737  ac_cv_prog_CC="$CC" # Let the user override the test.
2738else
2739as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2740for as_dir in $PATH
2741do
2742  IFS=$as_save_IFS
2743  test -z "$as_dir" && as_dir=.
2744    for ac_exec_ext in '' $ac_executable_extensions; do
2745  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2746    ac_cv_prog_CC="${ac_tool_prefix}cc"
2747    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2748    break 2
2749  fi
2750done
2751  done
2752IFS=$as_save_IFS
2753
2754fi
2755fi
2756CC=$ac_cv_prog_CC
2757if test -n "$CC"; then
2758  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2759$as_echo "$CC" >&6; }
2760else
2761  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2762$as_echo "no" >&6; }
2763fi
2764
2765
2766  fi
2767fi
2768if test -z "$CC"; then
2769  # Extract the first word of "cc", so it can be a program name with args.
2770set dummy cc; ac_word=$2
2771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2772$as_echo_n "checking for $ac_word... " >&6; }
2773if ${ac_cv_prog_CC+:} false; then :
2774  $as_echo_n "(cached) " >&6
2775else
2776  if test -n "$CC"; then
2777  ac_cv_prog_CC="$CC" # Let the user override the test.
2778else
2779  ac_prog_rejected=no
2780as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2781for as_dir in $PATH
2782do
2783  IFS=$as_save_IFS
2784  test -z "$as_dir" && as_dir=.
2785    for ac_exec_ext in '' $ac_executable_extensions; do
2786  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2787    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2788       ac_prog_rejected=yes
2789       continue
2790     fi
2791    ac_cv_prog_CC="cc"
2792    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2793    break 2
2794  fi
2795done
2796  done
2797IFS=$as_save_IFS
2798
2799if test $ac_prog_rejected = yes; then
2800  # We found a bogon in the path, so make sure we never use it.
2801  set dummy $ac_cv_prog_CC
2802  shift
2803  if test $# != 0; then
2804    # We chose a different compiler from the bogus one.
2805    # However, it has the same basename, so the bogon will be chosen
2806    # first if we set CC to just the basename; use the full file name.
2807    shift
2808    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2809  fi
2810fi
2811fi
2812fi
2813CC=$ac_cv_prog_CC
2814if test -n "$CC"; then
2815  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2816$as_echo "$CC" >&6; }
2817else
2818  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2819$as_echo "no" >&6; }
2820fi
2821
2822
2823fi
2824if test -z "$CC"; then
2825  if test -n "$ac_tool_prefix"; then
2826  for ac_prog in cl.exe
2827  do
2828    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2829set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2831$as_echo_n "checking for $ac_word... " >&6; }
2832if ${ac_cv_prog_CC+:} false; then :
2833  $as_echo_n "(cached) " >&6
2834else
2835  if test -n "$CC"; then
2836  ac_cv_prog_CC="$CC" # Let the user override the test.
2837else
2838as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2839for as_dir in $PATH
2840do
2841  IFS=$as_save_IFS
2842  test -z "$as_dir" && as_dir=.
2843    for ac_exec_ext in '' $ac_executable_extensions; do
2844  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2845    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2846    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2847    break 2
2848  fi
2849done
2850  done
2851IFS=$as_save_IFS
2852
2853fi
2854fi
2855CC=$ac_cv_prog_CC
2856if test -n "$CC"; then
2857  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2858$as_echo "$CC" >&6; }
2859else
2860  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2861$as_echo "no" >&6; }
2862fi
2863
2864
2865    test -n "$CC" && break
2866  done
2867fi
2868if test -z "$CC"; then
2869  ac_ct_CC=$CC
2870  for ac_prog in cl.exe
2871do
2872  # Extract the first word of "$ac_prog", so it can be a program name with args.
2873set dummy $ac_prog; ac_word=$2
2874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2875$as_echo_n "checking for $ac_word... " >&6; }
2876if ${ac_cv_prog_ac_ct_CC+:} false; then :
2877  $as_echo_n "(cached) " >&6
2878else
2879  if test -n "$ac_ct_CC"; then
2880  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2881else
2882as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2883for as_dir in $PATH
2884do
2885  IFS=$as_save_IFS
2886  test -z "$as_dir" && as_dir=.
2887    for ac_exec_ext in '' $ac_executable_extensions; do
2888  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2889    ac_cv_prog_ac_ct_CC="$ac_prog"
2890    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2891    break 2
2892  fi
2893done
2894  done
2895IFS=$as_save_IFS
2896
2897fi
2898fi
2899ac_ct_CC=$ac_cv_prog_ac_ct_CC
2900if test -n "$ac_ct_CC"; then
2901  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2902$as_echo "$ac_ct_CC" >&6; }
2903else
2904  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2905$as_echo "no" >&6; }
2906fi
2907
2908
2909  test -n "$ac_ct_CC" && break
2910done
2911
2912  if test "x$ac_ct_CC" = x; then
2913    CC=""
2914  else
2915    case $cross_compiling:$ac_tool_warned in
2916yes:)
2917{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2918$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2919ac_tool_warned=yes ;;
2920esac
2921    CC=$ac_ct_CC
2922  fi
2923fi
2924
2925fi
2926
2927
2928test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2929$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2930as_fn_error $? "no acceptable C compiler found in \$PATH
2931See \`config.log' for more details" "$LINENO" 5; }
2932
2933# Provide some information about the compiler.
2934$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2935set X $ac_compile
2936ac_compiler=$2
2937for ac_option in --version -v -V -qversion; do
2938  { { ac_try="$ac_compiler $ac_option >&5"
2939case "(($ac_try" in
2940  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2941  *) ac_try_echo=$ac_try;;
2942esac
2943eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2944$as_echo "$ac_try_echo"; } >&5
2945  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2946  ac_status=$?
2947  if test -s conftest.err; then
2948    sed '10a\
2949... rest of stderr output deleted ...
2950         10q' conftest.err >conftest.er1
2951    cat conftest.er1 >&5
2952  fi
2953  rm -f conftest.er1 conftest.err
2954  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2955  test $ac_status = 0; }
2956done
2957
2958cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2959/* end confdefs.h.  */
2960
2961int
2962main ()
2963{
2964
2965  ;
2966  return 0;
2967}
2968_ACEOF
2969ac_clean_files_save=$ac_clean_files
2970ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2971# Try to create an executable without -o first, disregard a.out.
2972# It will help us diagnose broken compilers, and finding out an intuition
2973# of exeext.
2974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2975$as_echo_n "checking whether the C compiler works... " >&6; }
2976ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2977
2978# The possible output files:
2979ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2980
2981ac_rmfiles=
2982for ac_file in $ac_files
2983do
2984  case $ac_file in
2985    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2986    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2987  esac
2988done
2989rm -f $ac_rmfiles
2990
2991if { { ac_try="$ac_link_default"
2992case "(($ac_try" in
2993  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2994  *) ac_try_echo=$ac_try;;
2995esac
2996eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2997$as_echo "$ac_try_echo"; } >&5
2998  (eval "$ac_link_default") 2>&5
2999  ac_status=$?
3000  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3001  test $ac_status = 0; }; then :
3002  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3003# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3004# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3005# so that the user can short-circuit this test for compilers unknown to
3006# Autoconf.
3007for ac_file in $ac_files ''
3008do
3009  test -f "$ac_file" || continue
3010  case $ac_file in
3011    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3012	;;
3013    [ab].out )
3014	# We found the default executable, but exeext='' is most
3015	# certainly right.
3016	break;;
3017    *.* )
3018	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3019	then :; else
3020	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3021	fi
3022	# We set ac_cv_exeext here because the later test for it is not
3023	# safe: cross compilers may not add the suffix if given an `-o'
3024	# argument, so we may need to know it at that point already.
3025	# Even if this section looks crufty: it has the advantage of
3026	# actually working.
3027	break;;
3028    * )
3029	break;;
3030  esac
3031done
3032test "$ac_cv_exeext" = no && ac_cv_exeext=
3033
3034else
3035  ac_file=''
3036fi
3037if test -z "$ac_file"; then :
3038  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3039$as_echo "no" >&6; }
3040$as_echo "$as_me: failed program was:" >&5
3041sed 's/^/| /' conftest.$ac_ext >&5
3042
3043{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3044$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3045as_fn_error 77 "C compiler cannot create executables
3046See \`config.log' for more details" "$LINENO" 5; }
3047else
3048  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3049$as_echo "yes" >&6; }
3050fi
3051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3052$as_echo_n "checking for C compiler default output file name... " >&6; }
3053{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3054$as_echo "$ac_file" >&6; }
3055ac_exeext=$ac_cv_exeext
3056
3057rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3058ac_clean_files=$ac_clean_files_save
3059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3060$as_echo_n "checking for suffix of executables... " >&6; }
3061if { { ac_try="$ac_link"
3062case "(($ac_try" in
3063  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3064  *) ac_try_echo=$ac_try;;
3065esac
3066eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3067$as_echo "$ac_try_echo"; } >&5
3068  (eval "$ac_link") 2>&5
3069  ac_status=$?
3070  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3071  test $ac_status = 0; }; then :
3072  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3073# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3074# work properly (i.e., refer to `conftest.exe'), while it won't with
3075# `rm'.
3076for ac_file in conftest.exe conftest conftest.*; do
3077  test -f "$ac_file" || continue
3078  case $ac_file in
3079    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3080    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3081	  break;;
3082    * ) break;;
3083  esac
3084done
3085else
3086  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3087$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3088as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3089See \`config.log' for more details" "$LINENO" 5; }
3090fi
3091rm -f conftest conftest$ac_cv_exeext
3092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3093$as_echo "$ac_cv_exeext" >&6; }
3094
3095rm -f conftest.$ac_ext
3096EXEEXT=$ac_cv_exeext
3097ac_exeext=$EXEEXT
3098cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3099/* end confdefs.h.  */
3100#include <stdio.h>
3101int
3102main ()
3103{
3104FILE *f = fopen ("conftest.out", "w");
3105 return ferror (f) || fclose (f) != 0;
3106
3107  ;
3108  return 0;
3109}
3110_ACEOF
3111ac_clean_files="$ac_clean_files conftest.out"
3112# Check that the compiler produces executables we can run.  If not, either
3113# the compiler is broken, or we cross compile.
3114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3115$as_echo_n "checking whether we are cross compiling... " >&6; }
3116if test "$cross_compiling" != yes; then
3117  { { ac_try="$ac_link"
3118case "(($ac_try" in
3119  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3120  *) ac_try_echo=$ac_try;;
3121esac
3122eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3123$as_echo "$ac_try_echo"; } >&5
3124  (eval "$ac_link") 2>&5
3125  ac_status=$?
3126  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3127  test $ac_status = 0; }
3128  if { ac_try='./conftest$ac_cv_exeext'
3129  { { case "(($ac_try" in
3130  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3131  *) ac_try_echo=$ac_try;;
3132esac
3133eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3134$as_echo "$ac_try_echo"; } >&5
3135  (eval "$ac_try") 2>&5
3136  ac_status=$?
3137  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3138  test $ac_status = 0; }; }; then
3139    cross_compiling=no
3140  else
3141    if test "$cross_compiling" = maybe; then
3142	cross_compiling=yes
3143    else
3144	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3145$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3146as_fn_error $? "cannot run C compiled programs.
3147If you meant to cross compile, use \`--host'.
3148See \`config.log' for more details" "$LINENO" 5; }
3149    fi
3150  fi
3151fi
3152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3153$as_echo "$cross_compiling" >&6; }
3154
3155rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3156ac_clean_files=$ac_clean_files_save
3157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3158$as_echo_n "checking for suffix of object files... " >&6; }
3159if ${ac_cv_objext+:} false; then :
3160  $as_echo_n "(cached) " >&6
3161else
3162  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3163/* end confdefs.h.  */
3164
3165int
3166main ()
3167{
3168
3169  ;
3170  return 0;
3171}
3172_ACEOF
3173rm -f conftest.o conftest.obj
3174if { { ac_try="$ac_compile"
3175case "(($ac_try" in
3176  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3177  *) ac_try_echo=$ac_try;;
3178esac
3179eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3180$as_echo "$ac_try_echo"; } >&5
3181  (eval "$ac_compile") 2>&5
3182  ac_status=$?
3183  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3184  test $ac_status = 0; }; then :
3185  for ac_file in conftest.o conftest.obj conftest.*; do
3186  test -f "$ac_file" || continue;
3187  case $ac_file in
3188    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3189    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3190       break;;
3191  esac
3192done
3193else
3194  $as_echo "$as_me: failed program was:" >&5
3195sed 's/^/| /' conftest.$ac_ext >&5
3196
3197{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3198$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3199as_fn_error $? "cannot compute suffix of object files: cannot compile
3200See \`config.log' for more details" "$LINENO" 5; }
3201fi
3202rm -f conftest.$ac_cv_objext conftest.$ac_ext
3203fi
3204{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3205$as_echo "$ac_cv_objext" >&6; }
3206OBJEXT=$ac_cv_objext
3207ac_objext=$OBJEXT
3208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3209$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3210if ${ac_cv_c_compiler_gnu+:} false; then :
3211  $as_echo_n "(cached) " >&6
3212else
3213  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3214/* end confdefs.h.  */
3215
3216int
3217main ()
3218{
3219#ifndef __GNUC__
3220       choke me
3221#endif
3222
3223  ;
3224  return 0;
3225}
3226_ACEOF
3227if ac_fn_c_try_compile "$LINENO"; then :
3228  ac_compiler_gnu=yes
3229else
3230  ac_compiler_gnu=no
3231fi
3232rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3233ac_cv_c_compiler_gnu=$ac_compiler_gnu
3234
3235fi
3236{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3237$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3238if test $ac_compiler_gnu = yes; then
3239  GCC=yes
3240else
3241  GCC=
3242fi
3243ac_test_CFLAGS=${CFLAGS+set}
3244ac_save_CFLAGS=$CFLAGS
3245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3246$as_echo_n "checking whether $CC accepts -g... " >&6; }
3247if ${ac_cv_prog_cc_g+:} false; then :
3248  $as_echo_n "(cached) " >&6
3249else
3250  ac_save_c_werror_flag=$ac_c_werror_flag
3251   ac_c_werror_flag=yes
3252   ac_cv_prog_cc_g=no
3253   CFLAGS="-g"
3254   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3255/* end confdefs.h.  */
3256
3257int
3258main ()
3259{
3260
3261  ;
3262  return 0;
3263}
3264_ACEOF
3265if ac_fn_c_try_compile "$LINENO"; then :
3266  ac_cv_prog_cc_g=yes
3267else
3268  CFLAGS=""
3269      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3270/* end confdefs.h.  */
3271
3272int
3273main ()
3274{
3275
3276  ;
3277  return 0;
3278}
3279_ACEOF
3280if ac_fn_c_try_compile "$LINENO"; then :
3281
3282else
3283  ac_c_werror_flag=$ac_save_c_werror_flag
3284	 CFLAGS="-g"
3285	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3286/* end confdefs.h.  */
3287
3288int
3289main ()
3290{
3291
3292  ;
3293  return 0;
3294}
3295_ACEOF
3296if ac_fn_c_try_compile "$LINENO"; then :
3297  ac_cv_prog_cc_g=yes
3298fi
3299rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3300fi
3301rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3302fi
3303rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3304   ac_c_werror_flag=$ac_save_c_werror_flag
3305fi
3306{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3307$as_echo "$ac_cv_prog_cc_g" >&6; }
3308if test "$ac_test_CFLAGS" = set; then
3309  CFLAGS=$ac_save_CFLAGS
3310elif test $ac_cv_prog_cc_g = yes; then
3311  if test "$GCC" = yes; then
3312    CFLAGS="-g -O2"
3313  else
3314    CFLAGS="-g"
3315  fi
3316else
3317  if test "$GCC" = yes; then
3318    CFLAGS="-O2"
3319  else
3320    CFLAGS=
3321  fi
3322fi
3323{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3324$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3325if ${ac_cv_prog_cc_c89+:} false; then :
3326  $as_echo_n "(cached) " >&6
3327else
3328  ac_cv_prog_cc_c89=no
3329ac_save_CC=$CC
3330cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3331/* end confdefs.h.  */
3332#include <stdarg.h>
3333#include <stdio.h>
3334struct stat;
3335/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3336struct buf { int x; };
3337FILE * (*rcsopen) (struct buf *, struct stat *, int);
3338static char *e (p, i)
3339     char **p;
3340     int i;
3341{
3342  return p[i];
3343}
3344static char *f (char * (*g) (char **, int), char **p, ...)
3345{
3346  char *s;
3347  va_list v;
3348  va_start (v,p);
3349  s = g (p, va_arg (v,int));
3350  va_end (v);
3351  return s;
3352}
3353
3354/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3355   function prototypes and stuff, but not '\xHH' hex character constants.
3356   These don't provoke an error unfortunately, instead are silently treated
3357   as 'x'.  The following induces an error, until -std is added to get
3358   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3359   array size at least.  It's necessary to write '\x00'==0 to get something
3360   that's true only with -std.  */
3361int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3362
3363/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3364   inside strings and character constants.  */
3365#define FOO(x) 'x'
3366int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3367
3368int test (int i, double x);
3369struct s1 {int (*f) (int a);};
3370struct s2 {int (*f) (double a);};
3371int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3372int argc;
3373char **argv;
3374int
3375main ()
3376{
3377return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3378  ;
3379  return 0;
3380}
3381_ACEOF
3382for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3383	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3384do
3385  CC="$ac_save_CC $ac_arg"
3386  if ac_fn_c_try_compile "$LINENO"; then :
3387  ac_cv_prog_cc_c89=$ac_arg
3388fi
3389rm -f core conftest.err conftest.$ac_objext
3390  test "x$ac_cv_prog_cc_c89" != "xno" && break
3391done
3392rm -f conftest.$ac_ext
3393CC=$ac_save_CC
3394
3395fi
3396# AC_CACHE_VAL
3397case "x$ac_cv_prog_cc_c89" in
3398  x)
3399    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3400$as_echo "none needed" >&6; } ;;
3401  xno)
3402    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3403$as_echo "unsupported" >&6; } ;;
3404  *)
3405    CC="$CC $ac_cv_prog_cc_c89"
3406    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3407$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3408esac
3409if test "x$ac_cv_prog_cc_c89" != xno; then :
3410
3411fi
3412
3413ac_ext=c
3414ac_cpp='$CPP $CPPFLAGS'
3415ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3416ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3417ac_compiler_gnu=$ac_cv_c_compiler_gnu
3418
3419   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3420$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3421if ${ac_cv_prog_cc_c99+:} false; then :
3422  $as_echo_n "(cached) " >&6
3423else
3424  ac_cv_prog_cc_c99=no
3425ac_save_CC=$CC
3426cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3427/* end confdefs.h.  */
3428#include <stdarg.h>
3429#include <stdbool.h>
3430#include <stdlib.h>
3431#include <wchar.h>
3432#include <stdio.h>
3433
3434// Check varargs macros.  These examples are taken from C99 6.10.3.5.
3435#define debug(...) fprintf (stderr, __VA_ARGS__)
3436#define showlist(...) puts (#__VA_ARGS__)
3437#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3438static void
3439test_varargs_macros (void)
3440{
3441  int x = 1234;
3442  int y = 5678;
3443  debug ("Flag");
3444  debug ("X = %d\n", x);
3445  showlist (The first, second, and third items.);
3446  report (x>y, "x is %d but y is %d", x, y);
3447}
3448
3449// Check long long types.
3450#define BIG64 18446744073709551615ull
3451#define BIG32 4294967295ul
3452#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3453#if !BIG_OK
3454  your preprocessor is broken;
3455#endif
3456#if BIG_OK
3457#else
3458  your preprocessor is broken;
3459#endif
3460static long long int bignum = -9223372036854775807LL;
3461static unsigned long long int ubignum = BIG64;
3462
3463struct incomplete_array
3464{
3465  int datasize;
3466  double data[];
3467};
3468
3469struct named_init {
3470  int number;
3471  const wchar_t *name;
3472  double average;
3473};
3474
3475typedef const char *ccp;
3476
3477static inline int
3478test_restrict (ccp restrict text)
3479{
3480  // See if C++-style comments work.
3481  // Iterate through items via the restricted pointer.
3482  // Also check for declarations in for loops.
3483  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3484    continue;
3485  return 0;
3486}
3487
3488// Check varargs and va_copy.
3489static void
3490test_varargs (const char *format, ...)
3491{
3492  va_list args;
3493  va_start (args, format);
3494  va_list args_copy;
3495  va_copy (args_copy, args);
3496
3497  const char *str;
3498  int number;
3499  float fnumber;
3500
3501  while (*format)
3502    {
3503      switch (*format++)
3504	{
3505	case 's': // string
3506	  str = va_arg (args_copy, const char *);
3507	  break;
3508	case 'd': // int
3509	  number = va_arg (args_copy, int);
3510	  break;
3511	case 'f': // float
3512	  fnumber = va_arg (args_copy, double);
3513	  break;
3514	default:
3515	  break;
3516	}
3517    }
3518  va_end (args_copy);
3519  va_end (args);
3520}
3521
3522int
3523main ()
3524{
3525
3526  // Check bool.
3527  _Bool success = false;
3528
3529  // Check restrict.
3530  if (test_restrict ("String literal") == 0)
3531    success = true;
3532  char *restrict newvar = "Another string";
3533
3534  // Check varargs.
3535  test_varargs ("s, d' f .", "string", 65, 34.234);
3536  test_varargs_macros ();
3537
3538  // Check flexible array members.
3539  struct incomplete_array *ia =
3540    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3541  ia->datasize = 10;
3542  for (int i = 0; i < ia->datasize; ++i)
3543    ia->data[i] = i * 1.234;
3544
3545  // Check named initializers.
3546  struct named_init ni = {
3547    .number = 34,
3548    .name = L"Test wide string",
3549    .average = 543.34343,
3550  };
3551
3552  ni.number = 58;
3553
3554  int dynamic_array[ni.number];
3555  dynamic_array[ni.number - 1] = 543;
3556
3557  // work around unused variable warnings
3558  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3559	  || dynamic_array[ni.number - 1] != 543);
3560
3561  ;
3562  return 0;
3563}
3564_ACEOF
3565for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
3566do
3567  CC="$ac_save_CC $ac_arg"
3568  if ac_fn_c_try_compile "$LINENO"; then :
3569  ac_cv_prog_cc_c99=$ac_arg
3570fi
3571rm -f core conftest.err conftest.$ac_objext
3572  test "x$ac_cv_prog_cc_c99" != "xno" && break
3573done
3574rm -f conftest.$ac_ext
3575CC=$ac_save_CC
3576
3577fi
3578# AC_CACHE_VAL
3579case "x$ac_cv_prog_cc_c99" in
3580  x)
3581    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3582$as_echo "none needed" >&6; } ;;
3583  xno)
3584    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3585$as_echo "unsupported" >&6; } ;;
3586  *)
3587    CC="$CC $ac_cv_prog_cc_c99"
3588    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3589$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3590esac
3591if test "x$ac_cv_prog_cc_c99" != xno; then :
3592
3593fi
3594
3595
3596if test "$ac_cv_prog_cc_c99" = "no"; then
3597	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The C compiler does not support C99; there may be compiler errors" >&5
3598$as_echo "$as_me: WARNING: The C compiler does not support C99; there may be compiler errors" >&2;}
3599fi
3600
3601
3602
3603
3604
3605    if test "$GCC" = yes ; then
3606	    #
3607	    # -Werror forces warnings to be errors.
3608	    #
3609	    ac_lbl_cc_force_warning_errors=-Werror
3610
3611	    #
3612	    # Try to have the compiler default to hiding symbols,
3613	    # so that only symbols explicitly exported with
3614	    # PCAP_API will be visible outside (shared) libraries.
3615	    #
3616
3617	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -fvisibility=hidden option" >&5
3618$as_echo_n "checking whether the compiler supports the -fvisibility=hidden option... " >&6; }
3619	save_CFLAGS="$CFLAGS"
3620	if expr "x-fvisibility=hidden" : "x-W.*" >/dev/null
3621	then
3622	    CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -fvisibility=hidden"
3623	elif expr "x-fvisibility=hidden" : "x-f.*" >/dev/null
3624	then
3625	    CFLAGS="$CFLAGS -Werror -fvisibility=hidden"
3626	elif expr "x-fvisibility=hidden" : "x-m.*" >/dev/null
3627	then
3628	    CFLAGS="$CFLAGS -Werror -fvisibility=hidden"
3629	else
3630	    CFLAGS="$CFLAGS -fvisibility=hidden"
3631	fi
3632	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3633/* end confdefs.h.  */
3634
3635int
3636main ()
3637{
3638return 0
3639  ;
3640  return 0;
3641}
3642_ACEOF
3643if ac_fn_c_try_compile "$LINENO"; then :
3644
3645		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3646$as_echo "yes" >&6; }
3647		can_add_to_cflags=yes
3648		#
3649		# The compile supports this; do we have some C code for
3650		# which the warning should *not* appear?
3651		# We test the fourth argument because the third argument
3652		# could contain quotes, breaking the test.
3653		#
3654		if test "x" != "x"
3655		then
3656		    CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors"
3657		    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fvisibility=hidden " >&5
3658$as_echo_n "checking whether -fvisibility=hidden ... " >&6; }
3659		    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3660/* end confdefs.h.  */
3661
3662_ACEOF
3663if ac_fn_c_try_compile "$LINENO"; then :
3664
3665			#
3666			# Not a problem.
3667			#
3668			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3669$as_echo "no" >&6; }
3670
3671else
3672
3673			#
3674			# A problem.
3675			#
3676			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3677$as_echo "yes" >&6; }
3678			can_add_to_cflags=no
3679
3680fi
3681rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3682		fi
3683		CFLAGS="$save_CFLAGS"
3684		if test x"$can_add_to_cflags" = "xyes"
3685		then
3686		    V_CCOPT="$V_CCOPT -fvisibility=hidden"
3687		fi
3688
3689else
3690
3691		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3692$as_echo "no" >&6; }
3693		CFLAGS="$save_CFLAGS"
3694
3695fi
3696rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3697
3698    else
3699	    V_INCLS="$V_INCLS -I/usr/local/include"
3700	    LDFLAGS="$LDFLAGS -L/usr/local/lib"
3701
3702	    case "$host_os" in
3703
3704	    darwin*)
3705		    #
3706		    # This is assumed either to be GCC or clang, both
3707		    # of which use -Werror to force warnings to be errors.
3708		    #
3709		    ac_lbl_cc_force_warning_errors=-Werror
3710
3711		    #
3712		    # Try to have the compiler default to hiding symbols,
3713		    # so that only symbols explicitly exported with
3714		    # PCAP_API will be visible outside (shared) libraries.
3715		    #
3716
3717	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -fvisibility=hidden option" >&5
3718$as_echo_n "checking whether the compiler supports the -fvisibility=hidden option... " >&6; }
3719	save_CFLAGS="$CFLAGS"
3720	if expr "x-fvisibility=hidden" : "x-W.*" >/dev/null
3721	then
3722	    CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -fvisibility=hidden"
3723	elif expr "x-fvisibility=hidden" : "x-f.*" >/dev/null
3724	then
3725	    CFLAGS="$CFLAGS -Werror -fvisibility=hidden"
3726	elif expr "x-fvisibility=hidden" : "x-m.*" >/dev/null
3727	then
3728	    CFLAGS="$CFLAGS -Werror -fvisibility=hidden"
3729	else
3730	    CFLAGS="$CFLAGS -fvisibility=hidden"
3731	fi
3732	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3733/* end confdefs.h.  */
3734
3735int
3736main ()
3737{
3738return 0
3739  ;
3740  return 0;
3741}
3742_ACEOF
3743if ac_fn_c_try_compile "$LINENO"; then :
3744
3745		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3746$as_echo "yes" >&6; }
3747		can_add_to_cflags=yes
3748		#
3749		# The compile supports this; do we have some C code for
3750		# which the warning should *not* appear?
3751		# We test the fourth argument because the third argument
3752		# could contain quotes, breaking the test.
3753		#
3754		if test "x" != "x"
3755		then
3756		    CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors"
3757		    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fvisibility=hidden " >&5
3758$as_echo_n "checking whether -fvisibility=hidden ... " >&6; }
3759		    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3760/* end confdefs.h.  */
3761
3762_ACEOF
3763if ac_fn_c_try_compile "$LINENO"; then :
3764
3765			#
3766			# Not a problem.
3767			#
3768			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3769$as_echo "no" >&6; }
3770
3771else
3772
3773			#
3774			# A problem.
3775			#
3776			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3777$as_echo "yes" >&6; }
3778			can_add_to_cflags=no
3779
3780fi
3781rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3782		fi
3783		CFLAGS="$save_CFLAGS"
3784		if test x"$can_add_to_cflags" = "xyes"
3785		then
3786		    V_CCOPT="$V_CCOPT -fvisibility=hidden"
3787		fi
3788
3789else
3790
3791		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3792$as_echo "no" >&6; }
3793		CFLAGS="$save_CFLAGS"
3794
3795fi
3796rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3797
3798		    ;;
3799
3800	    hpux*)
3801		    #
3802		    # HP C, which is what we presume we're using, doesn't
3803		    # exit with a non-zero exit status if we hand it an
3804		    # invalid -W flag, can't be forced to do so even with
3805		    # +We, and doesn't handle GCC-style -W flags, so we
3806		    # don't want to try using GCC-style -W flags.
3807		    #
3808		    ac_lbl_cc_dont_try_gcc_dashW=yes
3809		    ;;
3810
3811	    irix*)
3812		    #
3813		    # MIPS C, which is what we presume we're using, doesn't
3814		    # necessarily exit with a non-zero exit status if we
3815		    # hand it an invalid -W flag, can't be forced to do
3816		    # so, and doesn't handle GCC-style -W flags, so we
3817		    # don't want to try using GCC-style -W flags.
3818		    #
3819		    ac_lbl_cc_dont_try_gcc_dashW=yes
3820		    #
3821		    # It also, apparently, defaults to "char" being
3822		    # unsigned, unlike most other C implementations;
3823		    # I suppose we could say "signed char" whenever
3824		    # we want to guarantee a signed "char", but let's
3825		    # just force signed chars.
3826		    #
3827		    # -xansi is normally the default, but the
3828		    # configure script was setting it; perhaps -cckr
3829		    # was the default in the Old Days.  (Then again,
3830		    # that would probably be for backwards compatibility
3831		    # in the days when ANSI C was Shiny and New, i.e.
3832		    # 1989 and the early '90's, so maybe we can just
3833		    # drop support for those compilers.)
3834		    #
3835		    # -g is equivalent to -g2, which turns off
3836		    # optimization; we choose -g3, which generates
3837		    # debugging information but doesn't turn off
3838		    # optimization (even if the optimization would
3839		    # cause inaccuracies in debugging).
3840		    #
3841		    V_CCOPT="$V_CCOPT -xansi -signed -g3"
3842		    ;;
3843
3844	    osf*)
3845		    #
3846		    # Presumed to be DEC OSF/1, Digital UNIX, or
3847		    # Tru64 UNIX.
3848		    #
3849		    # The DEC C compiler, which is what we presume we're
3850		    # using, doesn't exit with a non-zero exit status if we
3851		    # hand it an invalid -W flag, can't be forced to do
3852		    # so, and doesn't handle GCC-style -W flags, so we
3853		    # don't want to try using GCC-style -W flags.
3854		    #
3855		    ac_lbl_cc_dont_try_gcc_dashW=yes
3856		    #
3857		    # -g is equivalent to -g2, which turns off
3858		    # optimization; we choose -g3, which generates
3859		    # debugging information but doesn't turn off
3860		    # optimization (even if the optimization would
3861		    # cause inaccuracies in debugging).
3862		    #
3863		    V_CCOPT="$V_CCOPT -g3"
3864		    ;;
3865
3866	    solaris*)
3867		    #
3868		    # Assumed to be Sun C, which requires -errwarn to force
3869		    # warnings to be treated as errors.
3870		    #
3871		    ac_lbl_cc_force_warning_errors=-errwarn
3872
3873		    #
3874		    # Try to have the compiler default to hiding symbols,
3875		    # so that only symbols explicitly exported with
3876		    # PCAP_API will be visible outside (shared) libraries.
3877		    #
3878
3879	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -xldscope=hidden option" >&5
3880$as_echo_n "checking whether the compiler supports the -xldscope=hidden option... " >&6; }
3881	save_CFLAGS="$CFLAGS"
3882	if expr "x-xldscope=hidden" : "x-W.*" >/dev/null
3883	then
3884	    CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -xldscope=hidden"
3885	elif expr "x-xldscope=hidden" : "x-f.*" >/dev/null
3886	then
3887	    CFLAGS="$CFLAGS -Werror -xldscope=hidden"
3888	elif expr "x-xldscope=hidden" : "x-m.*" >/dev/null
3889	then
3890	    CFLAGS="$CFLAGS -Werror -xldscope=hidden"
3891	else
3892	    CFLAGS="$CFLAGS -xldscope=hidden"
3893	fi
3894	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3895/* end confdefs.h.  */
3896
3897int
3898main ()
3899{
3900return 0
3901  ;
3902  return 0;
3903}
3904_ACEOF
3905if ac_fn_c_try_compile "$LINENO"; then :
3906
3907		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3908$as_echo "yes" >&6; }
3909		can_add_to_cflags=yes
3910		#
3911		# The compile supports this; do we have some C code for
3912		# which the warning should *not* appear?
3913		# We test the fourth argument because the third argument
3914		# could contain quotes, breaking the test.
3915		#
3916		if test "x" != "x"
3917		then
3918		    CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors"
3919		    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -xldscope=hidden " >&5
3920$as_echo_n "checking whether -xldscope=hidden ... " >&6; }
3921		    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3922/* end confdefs.h.  */
3923
3924_ACEOF
3925if ac_fn_c_try_compile "$LINENO"; then :
3926
3927			#
3928			# Not a problem.
3929			#
3930			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3931$as_echo "no" >&6; }
3932
3933else
3934
3935			#
3936			# A problem.
3937			#
3938			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3939$as_echo "yes" >&6; }
3940			can_add_to_cflags=no
3941
3942fi
3943rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3944		fi
3945		CFLAGS="$save_CFLAGS"
3946		if test x"$can_add_to_cflags" = "xyes"
3947		then
3948		    V_CCOPT="$V_CCOPT -xldscope=hidden"
3949		fi
3950
3951else
3952
3953		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3954$as_echo "no" >&6; }
3955		CFLAGS="$save_CFLAGS"
3956
3957fi
3958rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3959
3960		    ;;
3961
3962	    ultrix*)
3963		    { $as_echo "$as_me:${as_lineno-$LINENO}: checking that Ultrix $CC hacks const in prototypes" >&5
3964$as_echo_n "checking that Ultrix $CC hacks const in prototypes... " >&6; }
3965		    if ${ac_cv_lbl_cc_const_proto+:} false; then :
3966  $as_echo_n "(cached) " >&6
3967else
3968  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3969/* end confdefs.h.  */
3970#include <sys/types.h>
3971int
3972main ()
3973{
3974struct a { int b; };
3975			    void c(const struct a *)
3976  ;
3977  return 0;
3978}
3979_ACEOF
3980if ac_fn_c_try_compile "$LINENO"; then :
3981  ac_cv_lbl_cc_const_proto=yes
3982else
3983  ac_cv_lbl_cc_const_proto=no
3984fi
3985rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3986fi
3987
3988		    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_cc_const_proto" >&5
3989$as_echo "$ac_cv_lbl_cc_const_proto" >&6; }
3990		    if test $ac_cv_lbl_cc_const_proto = no ; then
3991
3992$as_echo "#define const /**/" >>confdefs.h
3993
3994		    fi
3995		    ;;
3996	    esac
3997	    V_CCOPT="$V_CCOPT -O"
3998    fi
3999
4000
4001    if test "$GCC" = yes ; then
4002	    #
4003	    # On platforms where we build a shared library:
4004	    #
4005	    #	add options to generate position-independent code,
4006	    #	if necessary (it's the default in AIX and Darwin/macOS);
4007	    #
4008	    #	define option to set the soname of the shared library,
4009	    #	if the OS supports that;
4010	    #
4011	    #	add options to specify, at link time, a directory to
4012	    #	add to the run-time search path, if that's necessary.
4013	    #
4014	    V_SHLIB_CMD="\$(CC)"
4015	    V_SHLIB_OPT="-shared"
4016	    case "$host_os" in
4017
4018	    aix*)
4019		    ;;
4020
4021	    freebsd*|netbsd*|openbsd*|dragonfly*|linux*|osf*|midipix*)
4022	    	    #
4023		    # Platforms where the linker is the GNU linker
4024		    # or accepts command-line arguments like
4025		    # those the GNU linker accepts.
4026		    #
4027		    # Some instruction sets require -fPIC on some
4028		    # operating systems.  Check for them.  If you
4029		    # have a combination that requires it, add it
4030		    # here.
4031		    #
4032		    PIC_OPT=-fpic
4033		    case "$host_cpu" in
4034
4035		    sparc64*)
4036			case "$host_os" in
4037
4038			freebsd*|openbsd*|linux*)
4039			    PIC_OPT=-fPIC
4040			    ;;
4041			esac
4042			;;
4043		    esac
4044		    V_SHLIB_CCOPT="$V_SHLIB_CCOPT $PIC_OPT"
4045		    V_SONAME_OPT="-Wl,-soname,"
4046		    V_RPATH_OPT="-Wl,-rpath,"
4047		    ;;
4048
4049	    hpux*)
4050		    V_SHLIB_CCOPT="$V_SHLIB_CCOPT -fpic"
4051	    	    #
4052		    # XXX - this assumes GCC is using the HP linker,
4053		    # rather than the GNU linker, and that the "+h"
4054		    # option is used on all HP-UX platforms, both .sl
4055		    # and .so.
4056		    #
4057		    V_SONAME_OPT="-Wl,+h,"
4058		    #
4059		    # By default, directories specifed with -L
4060		    # are added to the run-time search path, so
4061		    # we don't add them in pcap-config.
4062		    #
4063		    ;;
4064
4065	    solaris*)
4066		    V_SHLIB_CCOPT="$V_SHLIB_CCOPT -fpic"
4067		    #
4068		    # XXX - this assumes GCC is using the Sun linker,
4069		    # rather than the GNU linker.
4070		    #
4071		    V_SONAME_OPT="-Wl,-h,"
4072		    V_RPATH_OPT="-Wl,-R,"
4073		    ;;
4074	    esac
4075    else
4076	    #
4077	    # Set the appropriate compiler flags and, on platforms
4078	    # where we build a shared library:
4079	    #
4080	    #	add options to generate position-independent code,
4081	    #	if necessary (it's the default in Darwin/macOS);
4082	    #
4083	    #	if we generate ".so" shared libraries, define the
4084	    #	appropriate options for building the shared library;
4085	    #
4086	    #	add options to specify, at link time, a directory to
4087	    #	add to the run-time search path, if that's necessary.
4088	    #
4089	    # Note: spaces after V_SONAME_OPT are significant; on
4090	    # some platforms the soname is passed with a GCC-like
4091	    # "-Wl,-soname,{soname}" option, with the soname part
4092	    # of the option, while on other platforms the C compiler
4093	    # driver takes it as a regular option with the soname
4094	    # following the option.  The same applies to V_RPATH_OPT.
4095	    #
4096	    case "$host_os" in
4097
4098	    aix*)
4099		    V_SHLIB_CMD="\$(CC)"
4100		    V_SHLIB_OPT="-G -bnoentry -bexpall"
4101		    ;;
4102
4103	    freebsd*|netbsd*|openbsd*|dragonfly*|linux*)
4104		    #
4105		    # "cc" is GCC.
4106		    #
4107		    V_SHLIB_CCOPT="$V_SHLIB_CCOPT -fpic"
4108		    V_SHLIB_CMD="\$(CC)"
4109		    V_SHLIB_OPT="-shared"
4110		    V_SONAME_OPT="-Wl,-soname,"
4111		    V_RPATH_OPT="-Wl,-rpath,"
4112		    ;;
4113
4114	    hpux*)
4115		    V_SHLIB_CCOPT="$V_SHLIB_CCOPT +z"
4116		    V_SHLIB_CMD="\$(LD)"
4117		    V_SHLIB_OPT="-b"
4118		    V_SONAME_OPT="+h "
4119		    #
4120		    # By default, directories specifed with -L
4121		    # are added to the run-time search path, so
4122		    # we don't add them in pcap-config.
4123		    #
4124		    ;;
4125
4126	    osf*)
4127	    	    #
4128		    # Presumed to be DEC OSF/1, Digital UNIX, or
4129		    # Tru64 UNIX.
4130		    #
4131		    V_SHLIB_CMD="\$(CC)"
4132		    V_SHLIB_OPT="-shared"
4133		    V_SONAME_OPT="-soname "
4134		    V_RPATH_OPT="-rpath "
4135		    ;;
4136
4137	    solaris*)
4138		    V_SHLIB_CCOPT="$V_SHLIB_CCOPT -Kpic"
4139		    V_SHLIB_CMD="\$(CC)"
4140		    V_SHLIB_OPT="-G"
4141		    V_SONAME_OPT="-h "
4142		    V_RPATH_OPT="-R"
4143		    ;;
4144	    esac
4145    fi
4146
4147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
4148$as_echo_n "checking for inline... " >&6; }
4149    save_CFLAGS="$CFLAGS"
4150    CFLAGS="$V_CCOPT"
4151    if ${ac_cv_lbl_inline+:} false; then :
4152  $as_echo_n "(cached) " >&6
4153else
4154
4155	ac_cv_lbl_inline=""
4156	ac_lbl_cc_inline=no
4157	for ac_lbl_inline in inline __inline__ __inline
4158	do
4159	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4160/* end confdefs.h.  */
4161#define inline $ac_lbl_inline
4162		static inline struct iltest *foo(void);
4163		struct iltest {
4164		    int iltest1;
4165		    int iltest2;
4166		};
4167
4168		static inline struct iltest *
4169		foo()
4170		{
4171		    static struct iltest xxx;
4172
4173		    return &xxx;
4174		}
4175int
4176main ()
4177{
4178
4179  ;
4180  return 0;
4181}
4182_ACEOF
4183if ac_fn_c_try_compile "$LINENO"; then :
4184  ac_lbl_cc_inline=yes
4185fi
4186rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4187	    if test "$ac_lbl_cc_inline" = yes ; then
4188		break;
4189	    fi
4190	done
4191	if test "$ac_lbl_cc_inline" = yes ; then
4192	    ac_cv_lbl_inline=$ac_lbl_inline
4193	fi
4194fi
4195
4196    CFLAGS="$save_CFLAGS"
4197    if test ! -z "$ac_cv_lbl_inline" ; then
4198	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_inline" >&5
4199$as_echo "$ac_cv_lbl_inline" >&6; }
4200    else
4201	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4202$as_echo "no" >&6; }
4203    fi
4204
4205cat >>confdefs.h <<_ACEOF
4206#define inline $ac_cv_lbl_inline
4207_ACEOF
4208
4209
4210#
4211# Try to arrange for large file support.
4212#
4213# Check whether --enable-largefile was given.
4214if test "${enable_largefile+set}" = set; then :
4215  enableval=$enable_largefile;
4216fi
4217
4218if test "$enable_largefile" != no; then
4219
4220  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4221$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4222if ${ac_cv_sys_largefile_CC+:} false; then :
4223  $as_echo_n "(cached) " >&6
4224else
4225  ac_cv_sys_largefile_CC=no
4226     if test "$GCC" != yes; then
4227       ac_save_CC=$CC
4228       while :; do
4229	 # IRIX 6.2 and later do not support large files by default,
4230	 # so use the C compiler's -n32 option if that helps.
4231	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4232/* end confdefs.h.  */
4233#include <sys/types.h>
4234 /* Check that off_t can represent 2**63 - 1 correctly.
4235    We can't simply define LARGE_OFF_T to be 9223372036854775807,
4236    since some C++ compilers masquerading as C compilers
4237    incorrectly reject 9223372036854775807.  */
4238#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
4239  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4240		       && LARGE_OFF_T % 2147483647 == 1)
4241		      ? 1 : -1];
4242int
4243main ()
4244{
4245
4246  ;
4247  return 0;
4248}
4249_ACEOF
4250	 if ac_fn_c_try_compile "$LINENO"; then :
4251  break
4252fi
4253rm -f core conftest.err conftest.$ac_objext
4254	 CC="$CC -n32"
4255	 if ac_fn_c_try_compile "$LINENO"; then :
4256  ac_cv_sys_largefile_CC=' -n32'; break
4257fi
4258rm -f core conftest.err conftest.$ac_objext
4259	 break
4260       done
4261       CC=$ac_save_CC
4262       rm -f conftest.$ac_ext
4263    fi
4264fi
4265{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4266$as_echo "$ac_cv_sys_largefile_CC" >&6; }
4267  if test "$ac_cv_sys_largefile_CC" != no; then
4268    CC=$CC$ac_cv_sys_largefile_CC
4269  fi
4270
4271  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4272$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4273if ${ac_cv_sys_file_offset_bits+:} false; then :
4274  $as_echo_n "(cached) " >&6
4275else
4276  while :; do
4277  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4278/* end confdefs.h.  */
4279#include <sys/types.h>
4280 /* Check that off_t can represent 2**63 - 1 correctly.
4281    We can't simply define LARGE_OFF_T to be 9223372036854775807,
4282    since some C++ compilers masquerading as C compilers
4283    incorrectly reject 9223372036854775807.  */
4284#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
4285  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4286		       && LARGE_OFF_T % 2147483647 == 1)
4287		      ? 1 : -1];
4288int
4289main ()
4290{
4291
4292  ;
4293  return 0;
4294}
4295_ACEOF
4296if ac_fn_c_try_compile "$LINENO"; then :
4297  ac_cv_sys_file_offset_bits=no; break
4298fi
4299rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4300  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4301/* end confdefs.h.  */
4302#define _FILE_OFFSET_BITS 64
4303#include <sys/types.h>
4304 /* Check that off_t can represent 2**63 - 1 correctly.
4305    We can't simply define LARGE_OFF_T to be 9223372036854775807,
4306    since some C++ compilers masquerading as C compilers
4307    incorrectly reject 9223372036854775807.  */
4308#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
4309  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4310		       && LARGE_OFF_T % 2147483647 == 1)
4311		      ? 1 : -1];
4312int
4313main ()
4314{
4315
4316  ;
4317  return 0;
4318}
4319_ACEOF
4320if ac_fn_c_try_compile "$LINENO"; then :
4321  ac_cv_sys_file_offset_bits=64; break
4322fi
4323rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4324  ac_cv_sys_file_offset_bits=unknown
4325  break
4326done
4327fi
4328{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4329$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4330case $ac_cv_sys_file_offset_bits in #(
4331  no | unknown) ;;
4332  *)
4333cat >>confdefs.h <<_ACEOF
4334#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4335_ACEOF
4336;;
4337esac
4338rm -rf conftest*
4339  if test $ac_cv_sys_file_offset_bits = unknown; then
4340    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4341$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4342if ${ac_cv_sys_large_files+:} false; then :
4343  $as_echo_n "(cached) " >&6
4344else
4345  while :; do
4346  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4347/* end confdefs.h.  */
4348#include <sys/types.h>
4349 /* Check that off_t can represent 2**63 - 1 correctly.
4350    We can't simply define LARGE_OFF_T to be 9223372036854775807,
4351    since some C++ compilers masquerading as C compilers
4352    incorrectly reject 9223372036854775807.  */
4353#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
4354  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4355		       && LARGE_OFF_T % 2147483647 == 1)
4356		      ? 1 : -1];
4357int
4358main ()
4359{
4360
4361  ;
4362  return 0;
4363}
4364_ACEOF
4365if ac_fn_c_try_compile "$LINENO"; then :
4366  ac_cv_sys_large_files=no; break
4367fi
4368rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4369  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4370/* end confdefs.h.  */
4371#define _LARGE_FILES 1
4372#include <sys/types.h>
4373 /* Check that off_t can represent 2**63 - 1 correctly.
4374    We can't simply define LARGE_OFF_T to be 9223372036854775807,
4375    since some C++ compilers masquerading as C compilers
4376    incorrectly reject 9223372036854775807.  */
4377#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
4378  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4379		       && LARGE_OFF_T % 2147483647 == 1)
4380		      ? 1 : -1];
4381int
4382main ()
4383{
4384
4385  ;
4386  return 0;
4387}
4388_ACEOF
4389if ac_fn_c_try_compile "$LINENO"; then :
4390  ac_cv_sys_large_files=1; break
4391fi
4392rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4393  ac_cv_sys_large_files=unknown
4394  break
4395done
4396fi
4397{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4398$as_echo "$ac_cv_sys_large_files" >&6; }
4399case $ac_cv_sys_large_files in #(
4400  no | unknown) ;;
4401  *)
4402cat >>confdefs.h <<_ACEOF
4403#define _LARGE_FILES $ac_cv_sys_large_files
4404_ACEOF
4405;;
4406esac
4407rm -rf conftest*
4408  fi
4409
4410
4411fi
4412
4413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
4414$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
4415if ${ac_cv_sys_largefile_source+:} false; then :
4416  $as_echo_n "(cached) " >&6
4417else
4418  while :; do
4419  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4420/* end confdefs.h.  */
4421#include <sys/types.h> /* for off_t */
4422     #include <stdio.h>
4423int
4424main ()
4425{
4426int (*fp) (FILE *, off_t, int) = fseeko;
4427     return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
4428  ;
4429  return 0;
4430}
4431_ACEOF
4432if ac_fn_c_try_link "$LINENO"; then :
4433  ac_cv_sys_largefile_source=no; break
4434fi
4435rm -f core conftest.err conftest.$ac_objext \
4436    conftest$ac_exeext conftest.$ac_ext
4437  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4438/* end confdefs.h.  */
4439#define _LARGEFILE_SOURCE 1
4440#include <sys/types.h> /* for off_t */
4441     #include <stdio.h>
4442int
4443main ()
4444{
4445int (*fp) (FILE *, off_t, int) = fseeko;
4446     return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
4447  ;
4448  return 0;
4449}
4450_ACEOF
4451if ac_fn_c_try_link "$LINENO"; then :
4452  ac_cv_sys_largefile_source=1; break
4453fi
4454rm -f core conftest.err conftest.$ac_objext \
4455    conftest$ac_exeext conftest.$ac_ext
4456  ac_cv_sys_largefile_source=unknown
4457  break
4458done
4459fi
4460{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
4461$as_echo "$ac_cv_sys_largefile_source" >&6; }
4462case $ac_cv_sys_largefile_source in #(
4463  no | unknown) ;;
4464  *)
4465cat >>confdefs.h <<_ACEOF
4466#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
4467_ACEOF
4468;;
4469esac
4470rm -rf conftest*
4471
4472# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
4473# in glibc 2.1.3, but that breaks too many other things.
4474# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
4475if test $ac_cv_sys_largefile_source != unknown; then
4476
4477$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
4478
4479fi
4480
4481
4482ac_ext=c
4483ac_cpp='$CPP $CPPFLAGS'
4484ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4485ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4486ac_compiler_gnu=$ac_cv_c_compiler_gnu
4487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4488$as_echo_n "checking how to run the C preprocessor... " >&6; }
4489# On Suns, sometimes $CPP names a directory.
4490if test -n "$CPP" && test -d "$CPP"; then
4491  CPP=
4492fi
4493if test -z "$CPP"; then
4494  if ${ac_cv_prog_CPP+:} false; then :
4495  $as_echo_n "(cached) " >&6
4496else
4497      # Double quotes because CPP needs to be expanded
4498    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4499    do
4500      ac_preproc_ok=false
4501for ac_c_preproc_warn_flag in '' yes
4502do
4503  # Use a header file that comes with gcc, so configuring glibc
4504  # with a fresh cross-compiler works.
4505  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4506  # <limits.h> exists even on freestanding compilers.
4507  # On the NeXT, cc -E runs the code through the compiler's parser,
4508  # not just through cpp. "Syntax error" is here to catch this case.
4509  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4510/* end confdefs.h.  */
4511#ifdef __STDC__
4512# include <limits.h>
4513#else
4514# include <assert.h>
4515#endif
4516		     Syntax error
4517_ACEOF
4518if ac_fn_c_try_cpp "$LINENO"; then :
4519
4520else
4521  # Broken: fails on valid input.
4522continue
4523fi
4524rm -f conftest.err conftest.i conftest.$ac_ext
4525
4526  # OK, works on sane cases.  Now check whether nonexistent headers
4527  # can be detected and how.
4528  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4529/* end confdefs.h.  */
4530#include <ac_nonexistent.h>
4531_ACEOF
4532if ac_fn_c_try_cpp "$LINENO"; then :
4533  # Broken: success on invalid input.
4534continue
4535else
4536  # Passes both tests.
4537ac_preproc_ok=:
4538break
4539fi
4540rm -f conftest.err conftest.i conftest.$ac_ext
4541
4542done
4543# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4544rm -f conftest.i conftest.err conftest.$ac_ext
4545if $ac_preproc_ok; then :
4546  break
4547fi
4548
4549    done
4550    ac_cv_prog_CPP=$CPP
4551
4552fi
4553  CPP=$ac_cv_prog_CPP
4554else
4555  ac_cv_prog_CPP=$CPP
4556fi
4557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4558$as_echo "$CPP" >&6; }
4559ac_preproc_ok=false
4560for ac_c_preproc_warn_flag in '' yes
4561do
4562  # Use a header file that comes with gcc, so configuring glibc
4563  # with a fresh cross-compiler works.
4564  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4565  # <limits.h> exists even on freestanding compilers.
4566  # On the NeXT, cc -E runs the code through the compiler's parser,
4567  # not just through cpp. "Syntax error" is here to catch this case.
4568  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4569/* end confdefs.h.  */
4570#ifdef __STDC__
4571# include <limits.h>
4572#else
4573# include <assert.h>
4574#endif
4575		     Syntax error
4576_ACEOF
4577if ac_fn_c_try_cpp "$LINENO"; then :
4578
4579else
4580  # Broken: fails on valid input.
4581continue
4582fi
4583rm -f conftest.err conftest.i conftest.$ac_ext
4584
4585  # OK, works on sane cases.  Now check whether nonexistent headers
4586  # can be detected and how.
4587  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4588/* end confdefs.h.  */
4589#include <ac_nonexistent.h>
4590_ACEOF
4591if ac_fn_c_try_cpp "$LINENO"; then :
4592  # Broken: success on invalid input.
4593continue
4594else
4595  # Passes both tests.
4596ac_preproc_ok=:
4597break
4598fi
4599rm -f conftest.err conftest.i conftest.$ac_ext
4600
4601done
4602# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4603rm -f conftest.i conftest.err conftest.$ac_ext
4604if $ac_preproc_ok; then :
4605
4606else
4607  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4608$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4609as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4610See \`config.log' for more details" "$LINENO" 5; }
4611fi
4612
4613ac_ext=c
4614ac_cpp='$CPP $CPPFLAGS'
4615ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4616ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4617ac_compiler_gnu=$ac_cv_c_compiler_gnu
4618
4619
4620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4621$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4622if ${ac_cv_path_GREP+:} false; then :
4623  $as_echo_n "(cached) " >&6
4624else
4625  if test -z "$GREP"; then
4626  ac_path_GREP_found=false
4627  # Loop through the user's path and test for each of PROGNAME-LIST
4628  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4629for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4630do
4631  IFS=$as_save_IFS
4632  test -z "$as_dir" && as_dir=.
4633    for ac_prog in grep ggrep; do
4634    for ac_exec_ext in '' $ac_executable_extensions; do
4635      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4636      as_fn_executable_p "$ac_path_GREP" || continue
4637# Check for GNU ac_path_GREP and select it if it is found.
4638  # Check for GNU $ac_path_GREP
4639case `"$ac_path_GREP" --version 2>&1` in
4640*GNU*)
4641  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4642*)
4643  ac_count=0
4644  $as_echo_n 0123456789 >"conftest.in"
4645  while :
4646  do
4647    cat "conftest.in" "conftest.in" >"conftest.tmp"
4648    mv "conftest.tmp" "conftest.in"
4649    cp "conftest.in" "conftest.nl"
4650    $as_echo 'GREP' >> "conftest.nl"
4651    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4652    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4653    as_fn_arith $ac_count + 1 && ac_count=$as_val
4654    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4655      # Best one so far, save it but keep looking for a better one
4656      ac_cv_path_GREP="$ac_path_GREP"
4657      ac_path_GREP_max=$ac_count
4658    fi
4659    # 10*(2^10) chars as input seems more than enough
4660    test $ac_count -gt 10 && break
4661  done
4662  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4663esac
4664
4665      $ac_path_GREP_found && break 3
4666    done
4667  done
4668  done
4669IFS=$as_save_IFS
4670  if test -z "$ac_cv_path_GREP"; then
4671    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4672  fi
4673else
4674  ac_cv_path_GREP=$GREP
4675fi
4676
4677fi
4678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4679$as_echo "$ac_cv_path_GREP" >&6; }
4680 GREP="$ac_cv_path_GREP"
4681
4682
4683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4684$as_echo_n "checking for egrep... " >&6; }
4685if ${ac_cv_path_EGREP+:} false; then :
4686  $as_echo_n "(cached) " >&6
4687else
4688  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4689   then ac_cv_path_EGREP="$GREP -E"
4690   else
4691     if test -z "$EGREP"; then
4692  ac_path_EGREP_found=false
4693  # Loop through the user's path and test for each of PROGNAME-LIST
4694  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4695for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4696do
4697  IFS=$as_save_IFS
4698  test -z "$as_dir" && as_dir=.
4699    for ac_prog in egrep; do
4700    for ac_exec_ext in '' $ac_executable_extensions; do
4701      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4702      as_fn_executable_p "$ac_path_EGREP" || continue
4703# Check for GNU ac_path_EGREP and select it if it is found.
4704  # Check for GNU $ac_path_EGREP
4705case `"$ac_path_EGREP" --version 2>&1` in
4706*GNU*)
4707  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4708*)
4709  ac_count=0
4710  $as_echo_n 0123456789 >"conftest.in"
4711  while :
4712  do
4713    cat "conftest.in" "conftest.in" >"conftest.tmp"
4714    mv "conftest.tmp" "conftest.in"
4715    cp "conftest.in" "conftest.nl"
4716    $as_echo 'EGREP' >> "conftest.nl"
4717    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4718    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4719    as_fn_arith $ac_count + 1 && ac_count=$as_val
4720    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4721      # Best one so far, save it but keep looking for a better one
4722      ac_cv_path_EGREP="$ac_path_EGREP"
4723      ac_path_EGREP_max=$ac_count
4724    fi
4725    # 10*(2^10) chars as input seems more than enough
4726    test $ac_count -gt 10 && break
4727  done
4728  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4729esac
4730
4731      $ac_path_EGREP_found && break 3
4732    done
4733  done
4734  done
4735IFS=$as_save_IFS
4736  if test -z "$ac_cv_path_EGREP"; then
4737    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4738  fi
4739else
4740  ac_cv_path_EGREP=$EGREP
4741fi
4742
4743   fi
4744fi
4745{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4746$as_echo "$ac_cv_path_EGREP" >&6; }
4747 EGREP="$ac_cv_path_EGREP"
4748
4749
4750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4751$as_echo_n "checking for ANSI C header files... " >&6; }
4752if ${ac_cv_header_stdc+:} false; then :
4753  $as_echo_n "(cached) " >&6
4754else
4755  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4756/* end confdefs.h.  */
4757#include <stdlib.h>
4758#include <stdarg.h>
4759#include <string.h>
4760#include <float.h>
4761
4762int
4763main ()
4764{
4765
4766  ;
4767  return 0;
4768}
4769_ACEOF
4770if ac_fn_c_try_compile "$LINENO"; then :
4771  ac_cv_header_stdc=yes
4772else
4773  ac_cv_header_stdc=no
4774fi
4775rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4776
4777if test $ac_cv_header_stdc = yes; then
4778  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4779  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4780/* end confdefs.h.  */
4781#include <string.h>
4782
4783_ACEOF
4784if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4785  $EGREP "memchr" >/dev/null 2>&1; then :
4786
4787else
4788  ac_cv_header_stdc=no
4789fi
4790rm -f conftest*
4791
4792fi
4793
4794if test $ac_cv_header_stdc = yes; then
4795  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4796  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4797/* end confdefs.h.  */
4798#include <stdlib.h>
4799
4800_ACEOF
4801if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4802  $EGREP "free" >/dev/null 2>&1; then :
4803
4804else
4805  ac_cv_header_stdc=no
4806fi
4807rm -f conftest*
4808
4809fi
4810
4811if test $ac_cv_header_stdc = yes; then
4812  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4813  if test "$cross_compiling" = yes; then :
4814  :
4815else
4816  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4817/* end confdefs.h.  */
4818#include <ctype.h>
4819#include <stdlib.h>
4820#if ((' ' & 0x0FF) == 0x020)
4821# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4822# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4823#else
4824# define ISLOWER(c) \
4825		   (('a' <= (c) && (c) <= 'i') \
4826		     || ('j' <= (c) && (c) <= 'r') \
4827		     || ('s' <= (c) && (c) <= 'z'))
4828# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4829#endif
4830
4831#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4832int
4833main ()
4834{
4835  int i;
4836  for (i = 0; i < 256; i++)
4837    if (XOR (islower (i), ISLOWER (i))
4838	|| toupper (i) != TOUPPER (i))
4839      return 2;
4840  return 0;
4841}
4842_ACEOF
4843if ac_fn_c_try_run "$LINENO"; then :
4844
4845else
4846  ac_cv_header_stdc=no
4847fi
4848rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4849  conftest.$ac_objext conftest.beam conftest.$ac_ext
4850fi
4851
4852fi
4853fi
4854{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4855$as_echo "$ac_cv_header_stdc" >&6; }
4856if test $ac_cv_header_stdc = yes; then
4857
4858$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4859
4860fi
4861
4862# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4863for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4864		  inttypes.h stdint.h unistd.h
4865do :
4866  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4867ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4868"
4869if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4870  cat >>confdefs.h <<_ACEOF
4871#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4872_ACEOF
4873
4874fi
4875
4876done
4877
4878
4879for ac_header in sys/ioccom.h sys/sockio.h limits.h
4880do :
4881  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4882ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4883if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4884  cat >>confdefs.h <<_ACEOF
4885#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4886_ACEOF
4887
4888fi
4889
4890done
4891
4892for ac_header in netpacket/packet.h
4893do :
4894  ac_fn_c_check_header_mongrel "$LINENO" "netpacket/packet.h" "ac_cv_header_netpacket_packet_h" "$ac_includes_default"
4895if test "x$ac_cv_header_netpacket_packet_h" = xyes; then :
4896  cat >>confdefs.h <<_ACEOF
4897#define HAVE_NETPACKET_PACKET_H 1
4898_ACEOF
4899
4900fi
4901
4902done
4903
4904for ac_header in net/pfvar.h
4905do :
4906  ac_fn_c_check_header_compile "$LINENO" "net/pfvar.h" "ac_cv_header_net_pfvar_h" "#include <sys/types.h>
4907#include <sys/socket.h>
4908#include <net/if.h>
4909"
4910if test "x$ac_cv_header_net_pfvar_h" = xyes; then :
4911  cat >>confdefs.h <<_ACEOF
4912#define HAVE_NET_PFVAR_H 1
4913_ACEOF
4914
4915fi
4916
4917done
4918
4919if test "$ac_cv_header_net_pfvar_h" = yes; then
4920	#
4921	# Check for various PF actions.
4922	#
4923	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether net/pfvar.h defines PF_NAT through PF_NORDR" >&5
4924$as_echo_n "checking whether net/pfvar.h defines PF_NAT through PF_NORDR... " >&6; }
4925	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4926/* end confdefs.h.  */
4927#include <sys/types.h>
4928	    #include <sys/socket.h>
4929	    #include <net/if.h>
4930	    #include <net/pfvar.h>
4931int
4932main ()
4933{
4934return PF_NAT+PF_NONAT+PF_BINAT+PF_NOBINAT+PF_RDR+PF_NORDR;
4935  ;
4936  return 0;
4937}
4938_ACEOF
4939if ac_fn_c_try_compile "$LINENO"; then :
4940
4941		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4942$as_echo "yes" >&6; }
4943
4944$as_echo "#define HAVE_PF_NAT_THROUGH_PF_NORDR 1" >>confdefs.h
4945
4946
4947else
4948  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4949$as_echo "no" >&6; }
4950fi
4951rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4952fi
4953
4954case "$host_os" in
4955linux*|uclinux*)
4956	for ac_header in linux/sockios.h linux/if_bonding.h
4957do :
4958  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4959ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
4960#include <sys/socket.h>
4961#include <linux/if.h>
4962
4963"
4964if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4965  cat >>confdefs.h <<_ACEOF
4966#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4967_ACEOF
4968
4969fi
4970
4971done
4972
4973	;;
4974esac
4975
4976if test "$GCC" = yes ; then
4977	    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI ioctl definitions" >&5
4978$as_echo_n "checking for ANSI ioctl definitions... " >&6; }
4979	    if ${ac_cv_lbl_gcc_fixincludes+:} false; then :
4980  $as_echo_n "(cached) " >&6
4981else
4982  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4983/* end confdefs.h.  */
4984/*
4985		     * This generates a "duplicate case value" when fixincludes
4986		     * has not be run.
4987		     */
4988#		include <sys/types.h>
4989#		include <sys/time.h>
4990#		include <sys/ioctl.h>
4991#		ifdef HAVE_SYS_IOCCOM_H
4992#		include <sys/ioccom.h>
4993#		endif
4994int
4995main ()
4996{
4997switch (0) {
4998		    case _IO('A', 1):;
4999		    case _IO('B', 1):;
5000		    }
5001  ;
5002  return 0;
5003}
5004_ACEOF
5005if ac_fn_c_try_compile "$LINENO"; then :
5006  ac_cv_lbl_gcc_fixincludes=yes
5007else
5008  ac_cv_lbl_gcc_fixincludes=no
5009fi
5010rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5011fi
5012
5013	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_gcc_fixincludes" >&5
5014$as_echo "$ac_cv_lbl_gcc_fixincludes" >&6; }
5015	    if test $ac_cv_lbl_gcc_fixincludes = no ; then
5016		    # Don't cache failure
5017		    unset ac_cv_lbl_gcc_fixincludes
5018		    as_fn_error $? "see the INSTALL for more info" "$LINENO" 5
5019	    fi
5020    fi
5021
5022for ac_func in strerror
5023do :
5024  ac_fn_c_check_func "$LINENO" "strerror" "ac_cv_func_strerror"
5025if test "x$ac_cv_func_strerror" = xyes; then :
5026  cat >>confdefs.h <<_ACEOF
5027#define HAVE_STRERROR 1
5028_ACEOF
5029
5030fi
5031done
5032
5033ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
5034if test "x$ac_cv_func_strerror_r" = xyes; then :
5035
5036	#
5037	# We have strerror_r; if we define _GNU_SOURCE, is it a
5038	# POSIX-compliant strerror_r() or a GNU strerror_r()?
5039	#
5040	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r is GNU-style" >&5
5041$as_echo_n "checking whether strerror_r is GNU-style... " >&6; }
5042	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5043/* end confdefs.h.  */
5044
5045		#define _GNU_SOURCE
5046#include <string.h>
5047
5048/* Define it GNU-style; that will cause an error if it's not GNU-style */
5049extern char *strerror_r(int, char *, size_t);
5050
5051int
5052main(void)
5053{
5054	return 0;
5055}
5056
5057
5058_ACEOF
5059if ac_fn_c_try_compile "$LINENO"; then :
5060
5061	        # GNU-style
5062		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5063$as_echo "yes" >&6; }
5064
5065$as_echo "#define HAVE_GNU_STRERROR_R /**/" >>confdefs.h
5066
5067
5068else
5069
5070		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5071$as_echo "no" >&6; }
5072
5073$as_echo "#define HAVE_POSIX_STRERROR_R /**/" >>confdefs.h
5074
5075
5076fi
5077rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5078
5079else
5080
5081	#
5082	# We don't have strerror_r; do we have strerror_s?
5083	#
5084	for ac_func in strerror_s
5085do :
5086  ac_fn_c_check_func "$LINENO" "strerror_s" "ac_cv_func_strerror_s"
5087if test "x$ac_cv_func_strerror_s" = xyes; then :
5088  cat >>confdefs.h <<_ACEOF
5089#define HAVE_STRERROR_S 1
5090_ACEOF
5091
5092fi
5093done
5094
5095
5096fi
5097
5098
5099#
5100# Thanks, IBM, for not providing vsyslog() in AIX!
5101#
5102for ac_func in vsyslog
5103do :
5104  ac_fn_c_check_func "$LINENO" "vsyslog" "ac_cv_func_vsyslog"
5105if test "x$ac_cv_func_vsyslog" = xyes; then :
5106  cat >>confdefs.h <<_ACEOF
5107#define HAVE_VSYSLOG 1
5108_ACEOF
5109
5110fi
5111done
5112
5113
5114#
5115# Either:
5116#
5117#	we have snprintf() and vsnprintf(), and have asprintf() and
5118#	vasprintf();
5119#
5120#	we have snprintf() and vsnprintf(), but don't have asprintf()
5121#	or vasprintf();
5122#
5123#	we have neither snprintf() nor vsnprintf(), and don't have
5124#	asprintf() or vasprintf(), either.
5125#
5126# We assume that if we have asprintf() we have vasprintf(), as well
5127# as snprintf() and vsnprintf(), and that if we have snprintf() we
5128# have vsnprintf().
5129#
5130# For the first case, we don't need any replacement routines.
5131# For the second case, we need replacement asprintf()/vasprintf()
5132# routines.
5133# For the third case, we need replacement snprintf()/vsnprintf() and
5134# asprintf()/vasprintf() routines.
5135#
5136needsnprintf=no
5137for ac_func in vsnprintf snprintf
5138do :
5139  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5140ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5141if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5142  cat >>confdefs.h <<_ACEOF
5143#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5144_ACEOF
5145
5146else
5147  needsnprintf=yes
5148fi
5149done
5150
5151needasprintf=no
5152for ac_func in vasprintf asprintf
5153do :
5154  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5155ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5156if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5157  cat >>confdefs.h <<_ACEOF
5158#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5159_ACEOF
5160
5161else
5162  needasprintf=yes
5163fi
5164done
5165
5166if test $needsnprintf = yes; then
5167	#
5168	# We assume we have none of them; missing/snprintf.c supplies
5169	# all of them.
5170	#
5171	case " $LIBOBJS " in
5172  *" snprintf.$ac_objext "* ) ;;
5173  *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
5174 ;;
5175esac
5176
5177elif test $needasprintf = yes; then
5178	#
5179	# We assume we have snprintf()/vsnprintf() but lack
5180	# asprintf()/vasprintf(); missing/asprintf.c supplies
5181	# the latter (using vsnprintf()).
5182	#
5183	case " $LIBOBJS " in
5184  *" asprintf.$ac_objext "* ) ;;
5185  *) LIBOBJS="$LIBOBJS asprintf.$ac_objext"
5186 ;;
5187esac
5188
5189fi
5190
5191needstrlcat=no
5192for ac_func in strlcat
5193do :
5194  ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
5195if test "x$ac_cv_func_strlcat" = xyes; then :
5196  cat >>confdefs.h <<_ACEOF
5197#define HAVE_STRLCAT 1
5198_ACEOF
5199
5200else
5201  needstrlcat=yes
5202fi
5203done
5204
5205if test $needstrlcat = yes; then
5206	case " $LIBOBJS " in
5207  *" strlcat.$ac_objext "* ) ;;
5208  *) LIBOBJS="$LIBOBJS strlcat.$ac_objext"
5209 ;;
5210esac
5211
5212fi
5213
5214needstrlcpy=no
5215for ac_func in strlcpy
5216do :
5217  ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
5218if test "x$ac_cv_func_strlcpy" = xyes; then :
5219  cat >>confdefs.h <<_ACEOF
5220#define HAVE_STRLCPY 1
5221_ACEOF
5222
5223else
5224  needstrlcpy=yes
5225fi
5226done
5227
5228if test $needstrlcpy = yes; then
5229	case " $LIBOBJS " in
5230  *" strlcpy.$ac_objext "* ) ;;
5231  *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext"
5232 ;;
5233esac
5234
5235fi
5236
5237needstrtok_r=no
5238for ac_func in strtok_r
5239do :
5240  ac_fn_c_check_func "$LINENO" "strtok_r" "ac_cv_func_strtok_r"
5241if test "x$ac_cv_func_strtok_r" = xyes; then :
5242  cat >>confdefs.h <<_ACEOF
5243#define HAVE_STRTOK_R 1
5244_ACEOF
5245
5246else
5247  needstrtok_r=yes
5248fi
5249done
5250
5251if test $needstrtok_r = yes; then
5252	case " $LIBOBJS " in
5253  *" strtok_r.$ac_objext "* ) ;;
5254  *) LIBOBJS="$LIBOBJS strtok_r.$ac_objext"
5255 ;;
5256esac
5257
5258fi
5259
5260#
5261# Do we have ffs(), and is it declared in <strings.h>?
5262#
5263for ac_func in ffs
5264do :
5265  ac_fn_c_check_func "$LINENO" "ffs" "ac_cv_func_ffs"
5266if test "x$ac_cv_func_ffs" = xyes; then :
5267  cat >>confdefs.h <<_ACEOF
5268#define HAVE_FFS 1
5269_ACEOF
5270
5271fi
5272done
5273
5274if test "$ac_cv_func_ffs" = yes; then
5275	#
5276	# We have ffs(); is it declared in <strings.h>?
5277	#
5278	# This test fails if we don't have <strings.h> or if we do
5279	# but it doesn't declare ffs().
5280	#
5281	ac_fn_c_check_decl "$LINENO" "ffs" "ac_cv_have_decl_ffs" "
5282#include <strings.h>
5283
5284"
5285if test "x$ac_cv_have_decl_ffs" = xyes; then :
5286
5287
5288$as_echo "#define STRINGS_H_DECLARES_FFS /**/" >>confdefs.h
5289
5290
5291fi
5292
5293fi
5294
5295#
5296# Do this before checking for ether_hostton(), as it's a
5297# "getaddrinfo()-ish function".
5298#
5299
5300    #
5301    # Most operating systems have getaddrinfo() in the default searched
5302    # libraries (i.e. libc).  Check there first.
5303    #
5304    ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
5305if test "x$ac_cv_func_getaddrinfo" = xyes; then :
5306
5307else
5308
5309	#
5310	# Not found in the standard system libraries.
5311	# Try libsocket, which requires libnsl.
5312	#
5313	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo in -lsocket" >&5
5314$as_echo_n "checking for getaddrinfo in -lsocket... " >&6; }
5315if ${ac_cv_lib_socket_getaddrinfo+:} false; then :
5316  $as_echo_n "(cached) " >&6
5317else
5318  ac_check_lib_save_LIBS=$LIBS
5319LIBS="-lsocket -lnsl $LIBS"
5320cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5321/* end confdefs.h.  */
5322
5323/* Override any GCC internal prototype to avoid an error.
5324   Use char because int might match the return type of a GCC
5325   builtin and then its argument prototype would still apply.  */
5326#ifdef __cplusplus
5327extern "C"
5328#endif
5329char getaddrinfo ();
5330int
5331main ()
5332{
5333return getaddrinfo ();
5334  ;
5335  return 0;
5336}
5337_ACEOF
5338if ac_fn_c_try_link "$LINENO"; then :
5339  ac_cv_lib_socket_getaddrinfo=yes
5340else
5341  ac_cv_lib_socket_getaddrinfo=no
5342fi
5343rm -f core conftest.err conftest.$ac_objext \
5344    conftest$ac_exeext conftest.$ac_ext
5345LIBS=$ac_check_lib_save_LIBS
5346fi
5347{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_getaddrinfo" >&5
5348$as_echo "$ac_cv_lib_socket_getaddrinfo" >&6; }
5349if test "x$ac_cv_lib_socket_getaddrinfo" = xyes; then :
5350
5351	    #
5352	    # OK, we found it in libsocket.
5353	    #
5354	    LIBS="-lsocket -lnsl $LIBS"
5355
5356else
5357
5358	    #
5359	    # We didn't find it.
5360	    #
5361	    as_fn_error $? "getaddrinfo is required, but wasn't found" "$LINENO" 5
5362
5363fi
5364
5365
5366	#
5367	# OK, do we have recvmsg() in libxnet?
5368	# We also link with libsocket and libnsl.
5369	#
5370	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for recvmsg in -lxnet" >&5
5371$as_echo_n "checking for recvmsg in -lxnet... " >&6; }
5372if ${ac_cv_lib_xnet_recvmsg+:} false; then :
5373  $as_echo_n "(cached) " >&6
5374else
5375  ac_check_lib_save_LIBS=$LIBS
5376LIBS="-lxnet -lsocket -lnsl $LIBS"
5377cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5378/* end confdefs.h.  */
5379
5380/* Override any GCC internal prototype to avoid an error.
5381   Use char because int might match the return type of a GCC
5382   builtin and then its argument prototype would still apply.  */
5383#ifdef __cplusplus
5384extern "C"
5385#endif
5386char recvmsg ();
5387int
5388main ()
5389{
5390return recvmsg ();
5391  ;
5392  return 0;
5393}
5394_ACEOF
5395if ac_fn_c_try_link "$LINENO"; then :
5396  ac_cv_lib_xnet_recvmsg=yes
5397else
5398  ac_cv_lib_xnet_recvmsg=no
5399fi
5400rm -f core conftest.err conftest.$ac_objext \
5401    conftest$ac_exeext conftest.$ac_ext
5402LIBS=$ac_check_lib_save_LIBS
5403fi
5404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xnet_recvmsg" >&5
5405$as_echo "$ac_cv_lib_xnet_recvmsg" >&6; }
5406if test "x$ac_cv_lib_xnet_recvmsg" = xyes; then :
5407
5408	    #
5409	    # Yes - link with it as well.
5410	    #
5411	    LIBS="-lxnet $LIBS"
5412
5413fi
5414
5415
5416fi
5417
5418    # DLPI needs putmsg under HPUX so test for -lstr while we're at it
5419    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing putmsg" >&5
5420$as_echo_n "checking for library containing putmsg... " >&6; }
5421if ${ac_cv_search_putmsg+:} false; then :
5422  $as_echo_n "(cached) " >&6
5423else
5424  ac_func_search_save_LIBS=$LIBS
5425cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5426/* end confdefs.h.  */
5427
5428/* Override any GCC internal prototype to avoid an error.
5429   Use char because int might match the return type of a GCC
5430   builtin and then its argument prototype would still apply.  */
5431#ifdef __cplusplus
5432extern "C"
5433#endif
5434char putmsg ();
5435int
5436main ()
5437{
5438return putmsg ();
5439  ;
5440  return 0;
5441}
5442_ACEOF
5443for ac_lib in '' str; do
5444  if test -z "$ac_lib"; then
5445    ac_res="none required"
5446  else
5447    ac_res=-l$ac_lib
5448    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5449  fi
5450  if ac_fn_c_try_link "$LINENO"; then :
5451  ac_cv_search_putmsg=$ac_res
5452fi
5453rm -f core conftest.err conftest.$ac_objext \
5454    conftest$ac_exeext
5455  if ${ac_cv_search_putmsg+:} false; then :
5456  break
5457fi
5458done
5459if ${ac_cv_search_putmsg+:} false; then :
5460
5461else
5462  ac_cv_search_putmsg=no
5463fi
5464rm conftest.$ac_ext
5465LIBS=$ac_func_search_save_LIBS
5466fi
5467{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_putmsg" >&5
5468$as_echo "$ac_cv_search_putmsg" >&6; }
5469ac_res=$ac_cv_search_putmsg
5470if test "$ac_res" != no; then :
5471  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5472
5473fi
5474
5475
5476
5477#
5478# Check for reentrant versions of getnetbyname_r(), as provided by
5479# Linux (glibc), Solaris/IRIX, and AIX (with three different APIs!).
5480# If we don't find one, we just use getnetbyname(), which uses
5481# thread-specific data on many platforms, but doesn't use it on
5482# NetBSD or OpenBSD, and may not use it on older versions of other
5483# platforms.
5484#
5485# Only do the check if we have a declaration of getnetbyname_r();
5486# without it, we can't check which API it has.  (We assume that
5487# if there's a declaration, it has a prototype, so that the API
5488# can be checked.)
5489#
5490ac_fn_c_check_decl "$LINENO" "getnetbyname_r" "ac_cv_have_decl_getnetbyname_r" "#include <netdb.h>
5491"
5492if test "x$ac_cv_have_decl_getnetbyname_r" = xyes; then :
5493
5494	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the Linux getnetbyname_r()" >&5
5495$as_echo_n "checking for the Linux getnetbyname_r()... " >&6; }
5496	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5497/* end confdefs.h.  */
5498#include <netdb.h>
5499int
5500main ()
5501{
5502
5503		struct netent netent_buf;
5504		char buf[1024];
5505		struct netent *resultp;
5506		int h_errnoval;
5507
5508		return getnetbyname_r((const char *)0, &netent_buf, buf, sizeof buf, &resultp, &h_errnoval);
5509
5510  ;
5511  return 0;
5512}
5513_ACEOF
5514if ac_fn_c_try_link "$LINENO"; then :
5515
5516		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5517$as_echo "yes" >&6; }
5518
5519$as_echo "#define HAVE_LINUX_GETNETBYNAME_R 1" >>confdefs.h
5520
5521
5522else
5523
5524		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5525$as_echo "no" >&6; }
5526
5527		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Solaris/IRIX getnetbyname_r()" >&5
5528$as_echo_n "checking for Solaris/IRIX getnetbyname_r()... " >&6; }
5529		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5530/* end confdefs.h.  */
5531#include <netdb.h>
5532int
5533main ()
5534{
5535
5536			struct netent netent_buf;
5537			char buf[1024];
5538
5539			return getnetbyname_r((const char *)0, &netent_buf, buf, (int)sizeof buf) != NULL;
5540
5541  ;
5542  return 0;
5543}
5544_ACEOF
5545if ac_fn_c_try_link "$LINENO"; then :
5546
5547			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5548$as_echo "yes" >&6; }
5549
5550$as_echo "#define HAVE_SOLARIS_IRIX_GETNETBYNAME_R 1" >>confdefs.h
5551
5552
5553else
5554
5555			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5556$as_echo "no" >&6; }
5557
5558			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for AIX getnetbyname_r()" >&5
5559$as_echo_n "checking for AIX getnetbyname_r()... " >&6; }
5560			cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5561/* end confdefs.h.  */
5562#include <netdb.h>
5563int
5564main ()
5565{
5566
5567				struct netent netent_buf;
5568				struct netent_data net_data;
5569
5570				return getnetbyname_r((const char *)0, &netent_buf, &net_data);
5571
5572  ;
5573  return 0;
5574}
5575_ACEOF
5576if ac_fn_c_try_link "$LINENO"; then :
5577
5578				{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5579$as_echo "yes" >&6; }
5580
5581$as_echo "#define HAVE_AIX_GETNETBYNAME_R 1" >>confdefs.h
5582
5583
5584else
5585
5586				{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5587$as_echo "no" >&6; }
5588
5589fi
5590rm -f core conftest.err conftest.$ac_objext \
5591    conftest$ac_exeext conftest.$ac_ext
5592
5593fi
5594rm -f core conftest.err conftest.$ac_objext \
5595    conftest$ac_exeext conftest.$ac_ext
5596
5597fi
5598rm -f core conftest.err conftest.$ac_objext \
5599    conftest$ac_exeext conftest.$ac_ext
5600
5601fi
5602
5603
5604#
5605# Check for reentrant versions of getprotobyname_r(), as provided by
5606# Linux (glibc), Solaris/IRIX, and AIX (with three different APIs!).
5607# If we don't find one, we just use getprotobyname(), which uses
5608# thread-specific data on many platforms, but doesn't use it on
5609# NetBSD or OpenBSD, and may not use it on older versions of other
5610# platforms.
5611#
5612# Only do the check if we have a declaration of getprotobyname_r();
5613# without it, we can't check which API it has.  (We assume that
5614# if there's a declaration, it has a prototype, so that the API
5615# can be checked.)
5616#
5617ac_fn_c_check_decl "$LINENO" "getprotobyname_r" "ac_cv_have_decl_getprotobyname_r" "#include <netdb.h>
5618"
5619if test "x$ac_cv_have_decl_getprotobyname_r" = xyes; then :
5620
5621	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the Linux getprotobyname_r()" >&5
5622$as_echo_n "checking for the Linux getprotobyname_r()... " >&6; }
5623	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5624/* end confdefs.h.  */
5625#include <netdb.h>
5626int
5627main ()
5628{
5629
5630		struct protoent protoent_buf;
5631		char buf[1024];
5632		struct protoent *resultp;
5633
5634		return getprotobyname_r((const char *)0, &protoent_buf, buf, sizeof buf, &resultp);
5635
5636  ;
5637  return 0;
5638}
5639_ACEOF
5640if ac_fn_c_try_link "$LINENO"; then :
5641
5642		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5643$as_echo "yes" >&6; }
5644
5645$as_echo "#define HAVE_LINUX_GETPROTOBYNAME_R 1" >>confdefs.h
5646
5647
5648else
5649
5650		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5651$as_echo "no" >&6; }
5652
5653		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Solaris/IRIX getprotobyname_r()" >&5
5654$as_echo_n "checking for Solaris/IRIX getprotobyname_r()... " >&6; }
5655		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5656/* end confdefs.h.  */
5657#include <netdb.h>
5658int
5659main ()
5660{
5661
5662			struct protoent protoent_buf;
5663			char buf[1024];
5664
5665			return getprotobyname_r((const char *)0, &protoent_buf, buf, (int)sizeof buf) != NULL;
5666
5667  ;
5668  return 0;
5669}
5670_ACEOF
5671if ac_fn_c_try_link "$LINENO"; then :
5672
5673			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5674$as_echo "yes" >&6; }
5675
5676$as_echo "#define HAVE_SOLARIS_IRIX_GETPROTOBYNAME_R 1" >>confdefs.h
5677
5678
5679else
5680
5681			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5682$as_echo "no" >&6; }
5683
5684			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for AIX getprotobyname_r()" >&5
5685$as_echo_n "checking for AIX getprotobyname_r()... " >&6; }
5686			cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5687/* end confdefs.h.  */
5688#include <netdb.h>
5689int
5690main ()
5691{
5692
5693				struct protoent protoent_buf;
5694				struct protoent_data proto_data;
5695
5696				return getprotobyname_r((const char *)0, &protoent_buf, &proto_data);
5697
5698  ;
5699  return 0;
5700}
5701_ACEOF
5702if ac_fn_c_try_link "$LINENO"; then :
5703
5704				{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5705$as_echo "yes" >&6; }
5706
5707$as_echo "#define HAVE_AIX_GETPROTOBYNAME_R 1" >>confdefs.h
5708
5709
5710else
5711
5712				{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5713$as_echo "no" >&6; }
5714
5715fi
5716rm -f core conftest.err conftest.$ac_objext \
5717    conftest$ac_exeext conftest.$ac_ext
5718
5719fi
5720rm -f core conftest.err conftest.$ac_objext \
5721    conftest$ac_exeext conftest.$ac_ext
5722
5723fi
5724rm -f core conftest.err conftest.$ac_objext \
5725    conftest$ac_exeext conftest.$ac_ext
5726
5727fi
5728
5729
5730#
5731# You are in a twisty little maze of UN*Xes, all different.
5732# Some might not have ether_hostton().
5733# Some might have it and declare it in <net/ethernet.h>.
5734# Some might have it and declare it in <netinet/ether.h>
5735# Some might have it and declare it in <sys/ethernet.h>.
5736# Some might have it and declare it in <arpa/inet.h>.
5737# Some might have it and declare it in <netinet/if_ether.h>.
5738# Some might have it and not declare it in any header file.
5739#
5740# Before you is a C compiler.
5741#
5742for ac_func in ether_hostton
5743do :
5744  ac_fn_c_check_func "$LINENO" "ether_hostton" "ac_cv_func_ether_hostton"
5745if test "x$ac_cv_func_ether_hostton" = xyes; then :
5746  cat >>confdefs.h <<_ACEOF
5747#define HAVE_ETHER_HOSTTON 1
5748_ACEOF
5749
5750fi
5751done
5752
5753if test "$ac_cv_func_ether_hostton" = yes; then
5754	#
5755	# OK, we have ether_hostton().  Is it declared in <net/ethernet.h>?
5756	#
5757	# This test fails if we don't have <net/ethernet.h> or if we do
5758	# but it doesn't declare ether_hostton().
5759	#
5760	ac_fn_c_check_decl "$LINENO" "ether_hostton" "ac_cv_have_decl_ether_hostton" "
5761#include <net/ethernet.h>
5762
5763"
5764if test "x$ac_cv_have_decl_ether_hostton" = xyes; then :
5765
5766
5767$as_echo "#define NET_ETHERNET_H_DECLARES_ETHER_HOSTTON /**/" >>confdefs.h
5768
5769
5770fi
5771
5772	#
5773	# Did that succeed?
5774	#
5775	if test "$ac_cv_have_decl_ether_hostton" != yes; then
5776		#
5777		# No, how about <netinet/ether.h>, as on Linux?
5778		#
5779		# This test fails if we don't have <netinet/ether.h>
5780		# or if we do but it doesn't declare ether_hostton().
5781		#
5782		# Unset ac_cv_have_decl_ether_hostton so we don't
5783		# treat the previous failure as a cached value and
5784		# suppress the next test.
5785		#
5786		unset ac_cv_have_decl_ether_hostton
5787		ac_fn_c_check_decl "$LINENO" "ether_hostton" "ac_cv_have_decl_ether_hostton" "
5788#include <netinet/ether.h>
5789
5790"
5791if test "x$ac_cv_have_decl_ether_hostton" = xyes; then :
5792
5793
5794$as_echo "#define NETINET_ETHER_H_DECLARES_ETHER_HOSTTON /**/" >>confdefs.h
5795
5796
5797fi
5798
5799	fi
5800	#
5801	# Did that succeed?
5802	#
5803	if test "$ac_cv_have_decl_ether_hostton" != yes; then
5804		#
5805		# No, how about <sys/ethernet.h>, as on Solaris 10
5806		# and later?
5807		#
5808		# This test fails if we don't have <sys/ethernet.h>
5809		# or if we do but it doesn't declare ether_hostton().
5810		#
5811		# Unset ac_cv_have_decl_ether_hostton so we don't
5812		# treat the previous failure as a cached value and
5813		# suppress the next test.
5814		#
5815		unset ac_cv_have_decl_ether_hostton
5816		ac_fn_c_check_decl "$LINENO" "ether_hostton" "ac_cv_have_decl_ether_hostton" "
5817#include <sys/ethernet.h>
5818
5819"
5820if test "x$ac_cv_have_decl_ether_hostton" = xyes; then :
5821
5822
5823$as_echo "#define SYS_ETHERNET_H_DECLARES_ETHER_HOSTTON /**/" >>confdefs.h
5824
5825
5826fi
5827
5828	fi
5829	#
5830	# Did that succeed?
5831	#
5832	if test "$ac_cv_have_decl_ether_hostton" != yes; then
5833		#
5834		# No, how about <arpa/inet.h>, as in AIX?
5835		#
5836		# This test fails if we don't have <arpa/inet.h>
5837		# (if we have ether_hostton(), we should have
5838		# networking, and if we have networking, we should
5839		# have <arapa/inet.h>) or if we do but it doesn't
5840		# declare ether_hostton().
5841		#
5842		# Unset ac_cv_have_decl_ether_hostton so we don't
5843		# treat the previous failure as a cached value and
5844		# suppress the next test.
5845		#
5846		unset ac_cv_have_decl_ether_hostton
5847		ac_fn_c_check_decl "$LINENO" "ether_hostton" "ac_cv_have_decl_ether_hostton" "
5848#include <arpa/inet.h>
5849
5850"
5851if test "x$ac_cv_have_decl_ether_hostton" = xyes; then :
5852
5853
5854$as_echo "#define ARPA_INET_H_DECLARES_ETHER_HOSTTON /**/" >>confdefs.h
5855
5856
5857fi
5858
5859	fi
5860	#
5861	# Did that succeed?
5862	#
5863	if test "$ac_cv_have_decl_ether_hostton" != yes; then
5864		#
5865		# No, how about <netinet/if_ether.h>?
5866		# On some platforms, it requires <net/if.h> and
5867		# <netinet/in.h>, and we always include it with
5868		# both of them, so test it with both of them.
5869		#
5870		# This test fails if we don't have <netinet/if_ether.h>
5871		# and the headers we include before it, or if we do but
5872		# <netinet/if_ether.h> doesn't declare ether_hostton().
5873		#
5874		# Unset ac_cv_have_decl_ether_hostton so we don't
5875		# treat the previous failure as a cached value and
5876		# suppress the next test.
5877		#
5878		unset ac_cv_have_decl_ether_hostton
5879		ac_fn_c_check_decl "$LINENO" "ether_hostton" "ac_cv_have_decl_ether_hostton" "
5880#include <sys/types.h>
5881#include <sys/socket.h>
5882#include <net/if.h>
5883#include <netinet/in.h>
5884#include <netinet/if_ether.h>
5885
5886"
5887if test "x$ac_cv_have_decl_ether_hostton" = xyes; then :
5888
5889
5890$as_echo "#define NETINET_IF_ETHER_H_DECLARES_ETHER_HOSTTON /**/" >>confdefs.h
5891
5892
5893fi
5894
5895	fi
5896	#
5897	# After all that, is ether_hostton() declared?
5898	#
5899	if test "$ac_cv_have_decl_ether_hostton" = yes; then
5900		#
5901		# Yes.
5902		#
5903
5904$as_echo "#define HAVE_DECL_ETHER_HOSTTON 1" >>confdefs.h
5905
5906        else
5907		#
5908		# No, we'll have to declare it ourselves.
5909		# Do we have "struct ether_addr" if we include
5910		# <netinet/if_ether.h>?
5911		#
5912		ac_fn_c_check_type "$LINENO" "struct ether_addr" "ac_cv_type_struct_ether_addr" "
5913			#include <sys/types.h>
5914			#include <sys/socket.h>
5915			#include <net/if.h>
5916			#include <netinet/in.h>
5917			#include <netinet/if_ether.h>
5918
5919"
5920if test "x$ac_cv_type_struct_ether_addr" = xyes; then :
5921
5922cat >>confdefs.h <<_ACEOF
5923#define HAVE_STRUCT_ETHER_ADDR 1
5924_ACEOF
5925
5926
5927fi
5928
5929	fi
5930fi
5931
5932#
5933# For various things that might use pthreads.
5934#
5935ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
5936if test "x$ac_cv_header_pthread_h" = xyes; then :
5937
5938	#
5939	# OK, we have pthread.h.  Do we have pthread_create in the
5940	# system libraries?
5941	#
5942	ac_fn_c_check_func "$LINENO" "pthread_create" "ac_cv_func_pthread_create"
5943if test "x$ac_cv_func_pthread_create" = xyes; then :
5944
5945		#
5946		# Yes.
5947		#
5948		ac_lbl_have_pthreads="found"
5949
5950else
5951
5952		#
5953		# No - do we have it in -lpthreads?
5954		#
5955		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthreads" >&5
5956$as_echo_n "checking for pthread_create in -lpthreads... " >&6; }
5957if ${ac_cv_lib_pthreads_pthread_create+:} false; then :
5958  $as_echo_n "(cached) " >&6
5959else
5960  ac_check_lib_save_LIBS=$LIBS
5961LIBS="-lpthreads  $LIBS"
5962cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5963/* end confdefs.h.  */
5964
5965/* Override any GCC internal prototype to avoid an error.
5966   Use char because int might match the return type of a GCC
5967   builtin and then its argument prototype would still apply.  */
5968#ifdef __cplusplus
5969extern "C"
5970#endif
5971char pthread_create ();
5972int
5973main ()
5974{
5975return pthread_create ();
5976  ;
5977  return 0;
5978}
5979_ACEOF
5980if ac_fn_c_try_link "$LINENO"; then :
5981  ac_cv_lib_pthreads_pthread_create=yes
5982else
5983  ac_cv_lib_pthreads_pthread_create=no
5984fi
5985rm -f core conftest.err conftest.$ac_objext \
5986    conftest$ac_exeext conftest.$ac_ext
5987LIBS=$ac_check_lib_save_LIBS
5988fi
5989{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_create" >&5
5990$as_echo "$ac_cv_lib_pthreads_pthread_create" >&6; }
5991if test "x$ac_cv_lib_pthreads_pthread_create" = xyes; then :
5992
5993			#
5994			# Yes - add -lpthreads.
5995			#
5996			ac_lbl_have_pthreads="found"
5997			PTHREAD_LIBS="$PTHREAD_LIBS -lpthreads"
5998
5999else
6000
6001			#
6002			# No - do we have it in -lpthread?
6003			#
6004			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
6005$as_echo_n "checking for pthread_create in -lpthread... " >&6; }
6006if ${ac_cv_lib_pthread_pthread_create+:} false; then :
6007  $as_echo_n "(cached) " >&6
6008else
6009  ac_check_lib_save_LIBS=$LIBS
6010LIBS="-lpthread  $LIBS"
6011cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6012/* end confdefs.h.  */
6013
6014/* Override any GCC internal prototype to avoid an error.
6015   Use char because int might match the return type of a GCC
6016   builtin and then its argument prototype would still apply.  */
6017#ifdef __cplusplus
6018extern "C"
6019#endif
6020char pthread_create ();
6021int
6022main ()
6023{
6024return pthread_create ();
6025  ;
6026  return 0;
6027}
6028_ACEOF
6029if ac_fn_c_try_link "$LINENO"; then :
6030  ac_cv_lib_pthread_pthread_create=yes
6031else
6032  ac_cv_lib_pthread_pthread_create=no
6033fi
6034rm -f core conftest.err conftest.$ac_objext \
6035    conftest$ac_exeext conftest.$ac_ext
6036LIBS=$ac_check_lib_save_LIBS
6037fi
6038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
6039$as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
6040if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
6041
6042				#
6043				# Yes - add -lpthread.
6044				#
6045                                ac_lbl_have_pthreads="found"
6046				PTHREAD_LIBS="$PTHREAD_LIBS -lpthread"
6047
6048else
6049
6050				#
6051				# No.
6052				#
6053				ac_lbl_have_pthreads="not found"
6054
6055fi
6056
6057
6058fi
6059
6060
6061fi
6062
6063
6064else
6065
6066	#
6067	# We didn't find pthread.h.
6068	#
6069	ac_lbl_have_pthreads="not found"
6070
6071
6072fi
6073
6074
6075
6076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if --disable-protochain option is specified" >&5
6077$as_echo_n "checking if --disable-protochain option is specified... " >&6; }
6078# Check whether --enable-protochain was given.
6079if test "${enable_protochain+set}" = set; then :
6080  enableval=$enable_protochain;
6081fi
6082
6083case "x$enable_protochain" in
6084xyes)	enable_protochain=enabled	;;
6085xno)	enable_protochain=disabled	;;
6086x)	enable_protochain=enabled	;;
6087esac
6088
6089if test "$enable_protochain" = "disabled"; then
6090
6091$as_echo "#define NO_PROTOCHAIN 1" >>confdefs.h
6092
6093fi
6094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_protochain}" >&5
6095$as_echo "${enable_protochain}" >&6; }
6096
6097#
6098# valgrindtest directly uses the native capture mechanism, but
6099# only tests with BPF and PF_PACKET sockets; only enable it if
6100# we have BPF or PF_PACKET sockets.
6101#
6102VALGRINDTEST_SRC=
6103
6104#
6105# SITA support is mutually exclusive with native capture support;
6106# "--with-sita" selects SITA support.
6107#
6108
6109# Check whether --with-sita was given.
6110if test "${with_sita+set}" = set; then :
6111  withval=$with_sita;
6112	if test ! "x$withval" = "xno" ; then
6113
6114$as_echo "#define SITA 1" >>confdefs.h
6115
6116		{ $as_echo "$as_me:${as_lineno-$LINENO}: Enabling SITA ACN support" >&5
6117$as_echo "$as_me: Enabling SITA ACN support" >&6;}
6118		V_PCAP=sita
6119	fi
6120
6121else
6122
6123
6124# Check whether --with-pcap was given.
6125if test "${with_pcap+set}" = set; then :
6126  withval=$with_pcap;
6127fi
6128
6129if test ! -z "$with_pcap" ; then
6130	V_PCAP="$withval"
6131else
6132	#
6133	# Check for a bunch of headers for various packet
6134	# capture mechanisms.
6135	#
6136	for ac_header in net/bpf.h
6137do :
6138  ac_fn_c_check_header_mongrel "$LINENO" "net/bpf.h" "ac_cv_header_net_bpf_h" "$ac_includes_default"
6139if test "x$ac_cv_header_net_bpf_h" = xyes; then :
6140  cat >>confdefs.h <<_ACEOF
6141#define HAVE_NET_BPF_H 1
6142_ACEOF
6143
6144fi
6145
6146done
6147
6148	if test "$ac_cv_header_net_bpf_h" = yes; then
6149		#
6150		# Does it define BIOCSETIF?
6151		# I.e., is it a header for an LBL/BSD-style capture
6152		# mechanism, or is it just a header for a BPF filter
6153		# engine?  Some versions of Arch Linux, for example,
6154		# have a net/bpf.h that doesn't define BIOCSETIF;
6155		# as it's a Linux, it should use packet sockets,
6156		# instead.
6157		#
6158		# We need:
6159		#
6160		#  sys/types.h, because FreeBSD 10's net/bpf.h
6161		#  requires that various BSD-style integer types
6162		#  be defined;
6163		#
6164		#  sys/time.h, because AIX 5.2 and 5.3's net/bpf.h
6165		#  doesn't include it but does use struct timeval
6166		#  in ioctl definitions;
6167		#
6168		#  sys/ioctl.h and, if we have it, sys/ioccom.h,
6169		#  because net/bpf.h defines ioctls;
6170		#
6171		#  net/if.h, because it defines some structures
6172		#  used in ioctls defined by net/bpf.h;
6173		#
6174		#  sys/socket.h, because OpenBSD 5.9's net/bpf.h
6175		#  defines some structure fields as being
6176		#  struct sockaddrs;
6177		#
6178		# and net/bpf.h doesn't necessarily include all
6179		# of those headers itself.
6180		#
6181		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if net/bpf.h defines BIOCSETIF" >&5
6182$as_echo_n "checking if net/bpf.h defines BIOCSETIF... " >&6; }
6183		if ${ac_cv_lbl_bpf_h_defines_biocsetif+:} false; then :
6184  $as_echo_n "(cached) " >&6
6185else
6186  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6187/* end confdefs.h.  */
6188
6189#include <sys/types.h>
6190#include <sys/time.h>
6191#include <sys/ioctl.h>
6192#include <sys/socket.h>
6193#ifdef HAVE_SYS_IOCCOM_H
6194#include <sys/ioccom.h>
6195#endif
6196#include <net/bpf.h>
6197#include <net/if.h>
6198
6199int
6200main ()
6201{
6202u_int i = BIOCSETIF;
6203  ;
6204  return 0;
6205}
6206_ACEOF
6207if ac_fn_c_try_compile "$LINENO"; then :
6208  ac_cv_lbl_bpf_h_defines_biocsetif=yes
6209else
6210  ac_cv_lbl_bpf_h_defines_biocsetif=no
6211fi
6212rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6213fi
6214
6215		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_bpf_h_defines_biocsetif" >&5
6216$as_echo "$ac_cv_lbl_bpf_h_defines_biocsetif" >&6; }
6217	fi
6218	for ac_header in net/pfilt.h net/enet.h
6219do :
6220  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6221ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6222if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6223  cat >>confdefs.h <<_ACEOF
6224#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6225_ACEOF
6226
6227fi
6228
6229done
6230
6231	for ac_header in net/nit.h sys/net/nit.h
6232do :
6233  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6234ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6235if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6236  cat >>confdefs.h <<_ACEOF
6237#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6238_ACEOF
6239
6240fi
6241
6242done
6243
6244	for ac_header in linux/socket.h net/raw.h sys/dlpi.h
6245do :
6246  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6247ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6248if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6249  cat >>confdefs.h <<_ACEOF
6250#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6251_ACEOF
6252
6253fi
6254
6255done
6256
6257
6258	if test "$ac_cv_lbl_bpf_h_defines_biocsetif" = yes; then
6259		#
6260		# BPF.
6261		# Check this before DLPI, so that we pick BPF on
6262		# Solaris 11 and later.
6263		#
6264		V_PCAP=bpf
6265
6266		#
6267		# We have BPF, so build valgrindtest with "make test"
6268		# on macOS and FreeBSD (add your OS once there's a
6269		# valgrind for it).
6270		#
6271		case "$host_os" in
6272
6273		freebsd*|darwin*|linux*)
6274			VALGRINDTEST_SRC=valgrindtest.c
6275			;;
6276		esac
6277	elif test "$ac_cv_header_linux_socket_h" = yes; then
6278		#
6279		# No prizes for guessing this one.
6280		#
6281		V_PCAP=linux
6282
6283		#
6284		# XXX - this won't work with older kernels that have
6285		# SOCK_PACKET sockets but not PF_PACKET sockets.
6286		#
6287		VALGRINDTEST_SRC=valgrindtest.c
6288	elif test "$ac_cv_header_net_pfilt_h" = yes; then
6289	        #
6290	        # DEC OSF/1, Digital UNIX, Tru64 UNIX
6291        	#
6292		V_PCAP=pf
6293	elif test "$ac_cv_header_net_enet_h" = yes; then
6294		#
6295		# Stanford Enetfilter.
6296		#
6297		V_PCAP=enet
6298	elif test "$ac_cv_header_net_nit_h" = yes; then
6299		#
6300		# SunOS 4.x STREAMS NIT.
6301		#
6302		V_PCAP=snit
6303	elif test "$ac_cv_header_sys_net_nit_h" = yes; then
6304		#
6305		# Pre-SunOS 4.x non-STREAMS NIT.
6306		#
6307		V_PCAP=nit
6308	elif test "$ac_cv_header_net_raw_h" = yes; then
6309		#
6310		# IRIX snoop.
6311		#
6312		V_PCAP=snoop
6313	elif test "$ac_cv_header_sys_dlpi_h" = yes; then
6314		#
6315		# DLPI on pre-Solaris 11 SunOS 5, HP-UX, possibly others.
6316		#
6317		V_PCAP=dlpi
6318	else
6319		#
6320		# Nothing we support.
6321		#
6322		V_PCAP=null
6323		{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine packet capture interface" >&5
6324$as_echo "$as_me: WARNING: cannot determine packet capture interface" >&2;}
6325		{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: (see the INSTALL doc for more info)" >&5
6326$as_echo "$as_me: WARNING: (see the INSTALL doc for more info)" >&2;}
6327	fi
6328fi
6329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking packet capture type" >&5
6330$as_echo_n "checking packet capture type... " >&6; }
6331{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $V_PCAP" >&5
6332$as_echo "$V_PCAP" >&6; }
6333
6334
6335#
6336# Do capture-mechanism-dependent tests.
6337#
6338case "$V_PCAP" in
6339dlpi)
6340	#
6341	# Needed for common functions used by pcap-[dlpi,libdlpi].c
6342	#
6343 	SSRC="dlpisubs.c"
6344
6345	#
6346	# Checks for some header files.
6347	#
6348	for ac_header in sys/bufmod.h sys/dlpi_ext.h
6349do :
6350  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6351ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6352if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6353  cat >>confdefs.h <<_ACEOF
6354#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6355_ACEOF
6356
6357fi
6358
6359done
6360
6361
6362	#
6363	# Checks to see if Solaris has the public libdlpi(3LIB) library.
6364	# Note: The existence of /usr/include/libdlpi.h does not mean it is the
6365	# public libdlpi(3LIB) version. Before libdlpi was made public, a
6366	# private version also existed, which did not have the same APIs.
6367	# Due to a gcc bug, the default search path for 32-bit libraries does
6368	# not include /lib, we add it explicitly here.
6369	# [http://bugs.opensolaris.org/view_bug.do?bug_id=6619485].
6370	# Also, due to the bug above applications that link to libpcap with
6371	# libdlpi will have to add "-L/lib" option to "configure".
6372	#
6373	saved_ldflags=$LDFLAGS
6374	LDFLAGS="$LIBS -L/lib"
6375	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlpi_walk in -ldlpi" >&5
6376$as_echo_n "checking for dlpi_walk in -ldlpi... " >&6; }
6377if ${ac_cv_lib_dlpi_dlpi_walk+:} false; then :
6378  $as_echo_n "(cached) " >&6
6379else
6380  ac_check_lib_save_LIBS=$LIBS
6381LIBS="-ldlpi  $LIBS"
6382cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6383/* end confdefs.h.  */
6384
6385/* Override any GCC internal prototype to avoid an error.
6386   Use char because int might match the return type of a GCC
6387   builtin and then its argument prototype would still apply.  */
6388#ifdef __cplusplus
6389extern "C"
6390#endif
6391char dlpi_walk ();
6392int
6393main ()
6394{
6395return dlpi_walk ();
6396  ;
6397  return 0;
6398}
6399_ACEOF
6400if ac_fn_c_try_link "$LINENO"; then :
6401  ac_cv_lib_dlpi_dlpi_walk=yes
6402else
6403  ac_cv_lib_dlpi_dlpi_walk=no
6404fi
6405rm -f core conftest.err conftest.$ac_objext \
6406    conftest$ac_exeext conftest.$ac_ext
6407LIBS=$ac_check_lib_save_LIBS
6408fi
6409{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dlpi_dlpi_walk" >&5
6410$as_echo "$ac_cv_lib_dlpi_dlpi_walk" >&6; }
6411if test "x$ac_cv_lib_dlpi_dlpi_walk" = xyes; then :
6412
6413			LIBS="-ldlpi $LIBS"
6414			V_PCAP=libdlpi
6415
6416$as_echo "#define HAVE_LIBDLPI 1" >>confdefs.h
6417
6418
6419else
6420  V_PCAP=dlpi
6421fi
6422
6423	LDFLAGS=$saved_ldflags
6424
6425	#
6426	# Checks whether <sys/dlpi.h> is usable, to catch weird SCO
6427	# versions of DLPI.
6428	#
6429	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/dlpi.h> is usable" >&5
6430$as_echo_n "checking whether <sys/dlpi.h> is usable... " >&6; }
6431	if ${ac_cv_sys_dlpi_usable+:} false; then :
6432  $as_echo_n "(cached) " >&6
6433else
6434  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6435/* end confdefs.h.  */
6436
6437			#include <sys/types.h>
6438			#include <sys/time.h>
6439			#include <sys/dlpi.h>
6440
6441int
6442main ()
6443{
6444int i = DL_PROMISC_PHYS;
6445  ;
6446  return 0;
6447}
6448_ACEOF
6449if ac_fn_c_try_compile "$LINENO"; then :
6450  ac_cv_sys_dlpi_usable=yes
6451else
6452  ac_cv_sys_dlpi_usable=no
6453fi
6454rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6455fi
6456
6457	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_dlpi_usable" >&5
6458$as_echo "$ac_cv_sys_dlpi_usable" >&6; }
6459	if test $ac_cv_sys_dlpi_usable = no ; then
6460		as_fn_error $? "<sys/dlpi.h> is not usable on this system; it probably has a non-standard DLPI" "$LINENO" 5
6461	fi
6462
6463	#
6464	# Check to see if Solaris has the dl_passive_req_t struct defined
6465	# in <sys/dlpi.h>.
6466	# This check is for DLPI support for passive modes.
6467	# See dlpi(7P) for more details.
6468	#
6469	ac_fn_c_check_type "$LINENO" "dl_passive_req_t" "ac_cv_type_dl_passive_req_t" "
6470		#include <sys/types.h>
6471		#include <sys/dlpi.h>
6472
6473"
6474if test "x$ac_cv_type_dl_passive_req_t" = xyes; then :
6475
6476cat >>confdefs.h <<_ACEOF
6477#define HAVE_DL_PASSIVE_REQ_T 1
6478_ACEOF
6479
6480
6481fi
6482
6483	;;
6484
6485linux)
6486	#
6487	# Do we have the wireless extensions?
6488	#
6489	for ac_header in linux/wireless.h
6490do :
6491  ac_fn_c_check_header_compile "$LINENO" "linux/wireless.h" "ac_cv_header_linux_wireless_h" "
6492#include <sys/socket.h>
6493#include <linux/if.h>
6494#include <linux/types.h>
6495
6496"
6497if test "x$ac_cv_header_linux_wireless_h" = xyes; then :
6498  cat >>confdefs.h <<_ACEOF
6499#define HAVE_LINUX_WIRELESS_H 1
6500_ACEOF
6501
6502fi
6503
6504done
6505
6506
6507	#
6508	# Do we have libnl?
6509	#
6510
6511# Check whether --with-libnl was given.
6512if test "${with_libnl+set}" = set; then :
6513  withval=$with_libnl; with_libnl=$withval
6514else
6515  with_libnl=if_available
6516fi
6517
6518
6519	if test x$with_libnl != xno ; then
6520		have_any_nl="no"
6521
6522                incdir=-I/usr/include/libnl3
6523                libnldir=
6524                case "$with_libnl" in
6525
6526                yes|if_available)
6527                  ;;
6528
6529                *)
6530                  if test -d $withval; then
6531                    libnldir=-L${withval}/lib/.libs
6532                    incdir=-I${withval}/include
6533                  fi
6534                  ;;
6535                esac
6536
6537		#
6538		# Try libnl 3.x first.
6539		#
6540		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_socket_alloc in -lnl-3" >&5
6541$as_echo_n "checking for nl_socket_alloc in -lnl-3... " >&6; }
6542if ${ac_cv_lib_nl_3_nl_socket_alloc+:} false; then :
6543  $as_echo_n "(cached) " >&6
6544else
6545  ac_check_lib_save_LIBS=$LIBS
6546LIBS="-lnl-3 ${incdir} ${libnldir} -lnl-genl-3 -lnl-3  $LIBS"
6547cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6548/* end confdefs.h.  */
6549
6550/* Override any GCC internal prototype to avoid an error.
6551   Use char because int might match the return type of a GCC
6552   builtin and then its argument prototype would still apply.  */
6553#ifdef __cplusplus
6554extern "C"
6555#endif
6556char nl_socket_alloc ();
6557int
6558main ()
6559{
6560return nl_socket_alloc ();
6561  ;
6562  return 0;
6563}
6564_ACEOF
6565if ac_fn_c_try_link "$LINENO"; then :
6566  ac_cv_lib_nl_3_nl_socket_alloc=yes
6567else
6568  ac_cv_lib_nl_3_nl_socket_alloc=no
6569fi
6570rm -f core conftest.err conftest.$ac_objext \
6571    conftest$ac_exeext conftest.$ac_ext
6572LIBS=$ac_check_lib_save_LIBS
6573fi
6574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nl_3_nl_socket_alloc" >&5
6575$as_echo "$ac_cv_lib_nl_3_nl_socket_alloc" >&6; }
6576if test "x$ac_cv_lib_nl_3_nl_socket_alloc" = xyes; then :
6577
6578			#
6579			# Yes, we have libnl 3.x.
6580			#
6581			LIBS="${libnldir} -lnl-genl-3 -lnl-3 $LIBS"
6582
6583$as_echo "#define HAVE_LIBNL 1" >>confdefs.h
6584
6585
6586$as_echo "#define HAVE_LIBNL_3_x 1" >>confdefs.h
6587
6588
6589$as_echo "#define HAVE_LIBNL_NLE 1" >>confdefs.h
6590
6591
6592$as_echo "#define HAVE_LIBNL_SOCKETS 1" >>confdefs.h
6593
6594			V_INCLS="$V_INCLS ${incdir}"
6595			have_any_nl="yes"
6596
6597fi
6598
6599
6600		if test x$have_any_nl = xno ; then
6601			#
6602			# Try libnl 2.x
6603			#
6604			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_socket_alloc in -lnl" >&5
6605$as_echo_n "checking for nl_socket_alloc in -lnl... " >&6; }
6606if ${ac_cv_lib_nl_nl_socket_alloc+:} false; then :
6607  $as_echo_n "(cached) " >&6
6608else
6609  ac_check_lib_save_LIBS=$LIBS
6610LIBS="-lnl  $LIBS"
6611cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6612/* end confdefs.h.  */
6613
6614/* Override any GCC internal prototype to avoid an error.
6615   Use char because int might match the return type of a GCC
6616   builtin and then its argument prototype would still apply.  */
6617#ifdef __cplusplus
6618extern "C"
6619#endif
6620char nl_socket_alloc ();
6621int
6622main ()
6623{
6624return nl_socket_alloc ();
6625  ;
6626  return 0;
6627}
6628_ACEOF
6629if ac_fn_c_try_link "$LINENO"; then :
6630  ac_cv_lib_nl_nl_socket_alloc=yes
6631else
6632  ac_cv_lib_nl_nl_socket_alloc=no
6633fi
6634rm -f core conftest.err conftest.$ac_objext \
6635    conftest$ac_exeext conftest.$ac_ext
6636LIBS=$ac_check_lib_save_LIBS
6637fi
6638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nl_nl_socket_alloc" >&5
6639$as_echo "$ac_cv_lib_nl_nl_socket_alloc" >&6; }
6640if test "x$ac_cv_lib_nl_nl_socket_alloc" = xyes; then :
6641
6642				#
6643				# Yes, we have libnl 2.x.
6644				#
6645				LIBS="${libnldir} -lnl-genl -lnl $LIBS"
6646
6647$as_echo "#define HAVE_LIBNL 1" >>confdefs.h
6648
6649
6650$as_echo "#define HAVE_LIBNL_2_x 1" >>confdefs.h
6651
6652
6653$as_echo "#define HAVE_LIBNL_NLE 1" >>confdefs.h
6654
6655
6656$as_echo "#define HAVE_LIBNL_SOCKETS 1" >>confdefs.h
6657
6658				have_any_nl="yes"
6659
6660fi
6661
6662		fi
6663
6664		if test x$have_any_nl = xno ; then
6665			#
6666			# No, we don't; do we have libnl 1.x?
6667			#
6668			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_handle_alloc in -lnl" >&5
6669$as_echo_n "checking for nl_handle_alloc in -lnl... " >&6; }
6670if ${ac_cv_lib_nl_nl_handle_alloc+:} false; then :
6671  $as_echo_n "(cached) " >&6
6672else
6673  ac_check_lib_save_LIBS=$LIBS
6674LIBS="-lnl  $LIBS"
6675cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6676/* end confdefs.h.  */
6677
6678/* Override any GCC internal prototype to avoid an error.
6679   Use char because int might match the return type of a GCC
6680   builtin and then its argument prototype would still apply.  */
6681#ifdef __cplusplus
6682extern "C"
6683#endif
6684char nl_handle_alloc ();
6685int
6686main ()
6687{
6688return nl_handle_alloc ();
6689  ;
6690  return 0;
6691}
6692_ACEOF
6693if ac_fn_c_try_link "$LINENO"; then :
6694  ac_cv_lib_nl_nl_handle_alloc=yes
6695else
6696  ac_cv_lib_nl_nl_handle_alloc=no
6697fi
6698rm -f core conftest.err conftest.$ac_objext \
6699    conftest$ac_exeext conftest.$ac_ext
6700LIBS=$ac_check_lib_save_LIBS
6701fi
6702{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nl_nl_handle_alloc" >&5
6703$as_echo "$ac_cv_lib_nl_nl_handle_alloc" >&6; }