2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for pcap 1.10.0-PRE-GIT.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
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 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE
=1; export DUALCASE
# for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
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+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in #(
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_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.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46 as_echo_n='print
-rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
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'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
66 as_echo_n='sh
-c $as_echo_n_body as_echo
'
69 as_echo='sh
-c $as_echo_body as_echo
'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
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.)
89 # Find who we are. Look in the path if we contain no directory separator.
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
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.
106 if test "x$as_myself" = x
; then
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
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.
118 for as_var
in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\
${$as_var+set} = xset \
120 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
133 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
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.
145 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
147 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
152 exec $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
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec
=; unset _as_can_reexec
;}
160 if test "x$CONFIG_SHELL" = x
; then
161 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
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+\"\$@\"}'='\"\$@\"'
169 case \`(set -o) 2>/dev/null\` in #(
177 as_required
="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || 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
199 test \$(( 1 + 1 )) = 2 || exit 1"
200 if (eval "$as_required") 2>/dev
/null
; then :
205 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
208 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
210 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
213 test -z "$as_dir" && as_dir
=.
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 :
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
238 if test "x$CONFIG_SHELL" != x
; then :
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.
246 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
248 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
253 exec $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
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."
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."
276 SHELL
=${CONFIG_SHELL-/bin/sh}
278 # Unset more variables known to interfere with behavior of common tools.
279 CLICOLOR_FORCE
= GREP_OPTIONS
=
280 unset CLICOLOR_FORCE GREP_OPTIONS
282 ## --------------------- ##
283 ## M4sh Shell Functions. ##
284 ## --------------------- ##
287 # Portably unset VAR.
290 { eval $1=; unset $1;}
294 # as_fn_set_status STATUS
295 # -----------------------
296 # Set $? to STATUS, without forking.
304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
314 # Create "$as_dir" as a directory, including parents if necessary.
319 -*) as_dir
=.
/$as_dir;;
321 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
325 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
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\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
352 test -d "$as_dir" && break
354 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
355 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
360 # as_fn_executable_p FILE
361 # -----------------------
362 # Test if FILE is an executable regular file.
363 as_fn_executable_p
()
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
373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
374 eval 'as_fn_append ()
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.
390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
398 as_val
=`expr "$@" || test $? -eq 1`
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.
410 as_status
=$1; test $as_status -eq 0 && as_status
=1
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
415 $as_echo "$as_me: error: $2" >&2
416 as_fn_exit
$as_status
419 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
426 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
432 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
438 as_me
=`$as_basename -- "$0" ||
439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
443 sed '/^.*\/\([^/][^/]*\)\/*$/{
457 # Avoid depending upon Character Ranges.
458 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
459 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
461 as_cr_digits
='0123456789'
462 as_cr_alnum
=$as_cr_Letters$as_cr_digits
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. :-)
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
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; }
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).
496 # Exit status is that of the last command.
500 ECHO_C
= ECHO_N
= ECHO_T
=
501 case `echo -n x` in #(((((
503 case `echo 'xy\c'` in
504 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
513 rm -f conf$$ conf$$.exe conf$$.
file
514 if test -d conf$$.dir
; then
515 rm -f conf$$.dir
/conf$$.
file
518 mkdir conf$$.dir
2>/dev
/null
520 if (echo >conf$$.
file) 2>/dev
/null
; then
521 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
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 ||
529 elif ln conf$$.
file conf$$
2>/dev
/null
; then
537 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
538 rmdir conf$$.dir
2>/dev
/null
540 if mkdir
-p .
2>/dev
/null
; then
541 as_mkdir_p
='mkdir -p "$as_dir"'
543 test -d .
/-p && rmdir .
/-p
548 as_executable_p
=as_fn_executable_p
550 # Sed expression to map a string onto a valid CPP name.
551 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
553 # Sed expression to map a string onto a valid variable name.
554 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
557 test -n "$DJDIR" ||
exec 7<&0 </dev
/null
561 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562 # so uname gets run too.
563 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
568 ac_default_prefix
=/usr
/local
570 ac_config_libobj_dir
=.
577 # Identity of this package.
579 PACKAGE_TARNAME
='pcap'
580 PACKAGE_VERSION
='1.10.0-PRE-GIT'
581 PACKAGE_STRING
='pcap 1.10.0-PRE-GIT'
585 ac_unique_file
="pcap.c"
586 # Factoring default headers for most tests.
587 ac_includes_default
="\
589 #ifdef HAVE_SYS_TYPES_H
590 # include <sys/types.h>
592 #ifdef HAVE_SYS_STAT_H
593 # include <sys/stat.h>
599 # ifdef HAVE_STDLIB_H
604 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
609 #ifdef HAVE_STRINGS_H
610 # include <strings.h>
612 #ifdef HAVE_INTTYPES_H
613 # include <inttypes.h>
622 ac_subst_vars
='LTLIBOBJS
626 PCAP_SUPPORT_RDMASNIFF
631 PCAP_SUPPORT_NETFILTER
674 PCAP_SUPPORT_PACKET_RING
727 program_transform_name
740 enable_option_checking
768 ac_precious_vars
='build_alias
781 # Initialize some variables set by options.
783 ac_init_version
=false
784 ac_unrecognized_opts
=
786 # The variables have the same names as the options, with
787 # dashes changed to underlines.
795 program_transform_name
=s
,x
,x
,
803 # Installation directory options.
804 # These are left unexpanded so users can "make install exec_prefix=/foo"
805 # and all the variables that are supposed to be based on exec_prefix
806 # by default will actually change.
807 # Use braces instead of parens because sh, perl, etc. also accept them.
808 # (The list follows the same order as the GNU Coding Standards.)
809 bindir
='${exec_prefix}/bin'
810 sbindir
='${exec_prefix}/sbin'
811 libexecdir
='${exec_prefix}/libexec'
812 datarootdir
='${prefix}/share'
813 datadir
='${datarootdir}'
814 sysconfdir
='${prefix}/etc'
815 sharedstatedir
='${prefix}/com'
816 localstatedir
='${prefix}/var'
817 includedir
='${prefix}/include'
818 oldincludedir
='/usr/include'
819 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
820 infodir
='${datarootdir}/info'
825 libdir
='${exec_prefix}/lib'
826 localedir
='${datarootdir}/locale'
827 mandir
='${datarootdir}/man'
833 # If the previous option needs an argument, assign it.
834 if test -n "$ac_prev"; then
835 eval $ac_prev=\
$ac_option
841 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
846 # Accept the important Cygnus configure options, so we can diagnose typos.
848 case $ac_dashdash$ac_option in
852 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
854 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
857 -build |
--build |
--buil |
--bui |
--bu)
858 ac_prev
=build_alias
;;
859 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
860 build_alias
=$ac_optarg ;;
862 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
863 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
864 ac_prev
=cache_file
;;
865 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
866 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
867 cache_file
=$ac_optarg ;;
870 cache_file
=config.cache
;;
872 -datadir |
--datadir |
--datadi |
--datad)
874 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
875 datadir
=$ac_optarg ;;
877 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
878 |
--dataroo |
--dataro |
--datar)
879 ac_prev
=datarootdir
;;
880 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
881 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
882 datarootdir
=$ac_optarg ;;
884 -disable-* |
--disable-*)
885 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
886 # Reject names that are not valid shell variable names.
887 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
888 as_fn_error $?
"invalid feature name: $ac_useropt"
889 ac_useropt_orig
=$ac_useropt
890 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
891 case $ac_user_opts in
895 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
896 ac_unrecognized_sep
=', ';;
898 eval enable_
$ac_useropt=no
;;
900 -docdir |
--docdir |
--docdi |
--doc |
--do)
902 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
905 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
907 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
910 -enable-* |
--enable-*)
911 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
912 # Reject names that are not valid shell variable names.
913 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
914 as_fn_error $?
"invalid feature name: $ac_useropt"
915 ac_useropt_orig
=$ac_useropt
916 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
917 case $ac_user_opts in
921 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
922 ac_unrecognized_sep
=', ';;
924 eval enable_
$ac_useropt=\
$ac_optarg ;;
926 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
927 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
928 |
--exec |
--exe |
--ex)
929 ac_prev
=exec_prefix
;;
930 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
931 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
932 |
--exec=* |
--exe=* |
--ex=*)
933 exec_prefix
=$ac_optarg ;;
935 -gas |
--gas |
--ga |
--g)
936 # Obsolete; use --with-gas.
939 -help |
--help |
--hel |
--he |
-h)
941 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
942 ac_init_help
=recursive
;;
943 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
944 ac_init_help
=short
;;
946 -host |
--host |
--hos |
--ho)
947 ac_prev
=host_alias
;;
948 -host=* |
--host=* |
--hos=* |
--ho=*)
949 host_alias
=$ac_optarg ;;
951 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
953 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
955 htmldir
=$ac_optarg ;;
957 -includedir |
--includedir |
--includedi |
--included |
--include \
958 |
--includ |
--inclu |
--incl |
--inc)
959 ac_prev
=includedir
;;
960 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
961 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
962 includedir
=$ac_optarg ;;
964 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
966 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
967 infodir
=$ac_optarg ;;
969 -libdir |
--libdir |
--libdi |
--libd)
971 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
974 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
975 |
--libexe |
--libex |
--libe)
976 ac_prev
=libexecdir
;;
977 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
978 |
--libexe=* |
--libex=* |
--libe=*)
979 libexecdir
=$ac_optarg ;;
981 -localedir |
--localedir |
--localedi |
--localed |
--locale)
983 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
984 localedir
=$ac_optarg ;;
986 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
987 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
988 ac_prev
=localstatedir
;;
989 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
990 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
991 localstatedir
=$ac_optarg ;;
993 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
995 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
999 # Obsolete; use --without-fp.
1002 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1003 |
--no-cr |
--no-c |
-n)
1006 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1007 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1010 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1011 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1012 |
--oldin |
--oldi |
--old |
--ol |
--o)
1013 ac_prev
=oldincludedir
;;
1014 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1015 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1016 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1017 oldincludedir
=$ac_optarg ;;
1019 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1021 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1022 prefix
=$ac_optarg ;;
1024 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1025 |
--program-pre |
--program-pr |
--program-p)
1026 ac_prev
=program_prefix
;;
1027 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1028 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1029 program_prefix
=$ac_optarg ;;
1031 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1032 |
--program-suf |
--program-su |
--program-s)
1033 ac_prev
=program_suffix
;;
1034 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1035 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1036 program_suffix
=$ac_optarg ;;
1038 -program-transform-name |
--program-transform-name \
1039 |
--program-transform-nam |
--program-transform-na \
1040 |
--program-transform-n |
--program-transform- \
1041 |
--program-transform |
--program-transfor \
1042 |
--program-transfo |
--program-transf \
1043 |
--program-trans |
--program-tran \
1044 |
--progr-tra |
--program-tr |
--program-t)
1045 ac_prev
=program_transform_name
;;
1046 -program-transform-name=* |
--program-transform-name=* \
1047 |
--program-transform-nam=* |
--program-transform-na=* \
1048 |
--program-transform-n=* |
--program-transform-=* \
1049 |
--program-transform=* |
--program-transfor=* \
1050 |
--program-transfo=* |
--program-transf=* \
1051 |
--program-trans=* |
--program-tran=* \
1052 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1053 program_transform_name
=$ac_optarg ;;
1055 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1057 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1058 pdfdir
=$ac_optarg ;;
1060 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1062 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1065 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1066 |
-silent |
--silent |
--silen |
--sile |
--sil)
1069 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1071 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1073 sbindir
=$ac_optarg ;;
1075 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1076 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1077 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1079 ac_prev
=sharedstatedir
;;
1080 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1081 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1082 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1084 sharedstatedir
=$ac_optarg ;;
1086 -site |
--site |
--sit)
1088 -site=* |
--site=* |
--sit=*)
1091 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1093 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1094 srcdir
=$ac_optarg ;;
1096 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1097 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1098 ac_prev
=sysconfdir
;;
1099 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1100 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1101 sysconfdir
=$ac_optarg ;;
1103 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1104 ac_prev
=target_alias
;;
1105 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1106 target_alias
=$ac_optarg ;;
1108 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1111 -version |
--version |
--versio |
--versi |
--vers |
-V)
1112 ac_init_version
=: ;;
1115 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1116 # Reject names that are not valid shell variable names.
1117 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1118 as_fn_error $?
"invalid package name: $ac_useropt"
1119 ac_useropt_orig
=$ac_useropt
1120 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1121 case $ac_user_opts in
1125 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1126 ac_unrecognized_sep
=', ';;
1128 eval with_
$ac_useropt=\
$ac_optarg ;;
1130 -without-* |
--without-*)
1131 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
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
1141 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1142 ac_unrecognized_sep
=', ';;
1144 eval with_
$ac_useropt=no
;;
1147 # Obsolete; use --with-x.
1150 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1151 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1152 ac_prev
=x_includes
;;
1153 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1154 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1155 x_includes
=$ac_optarg ;;
1157 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1158 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1159 ac_prev
=x_libraries
;;
1160 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1161 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1162 x_libraries
=$ac_optarg ;;
1164 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1165 Try \`$0 --help' for more information"
1169 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1170 # Reject names that are not valid shell variable names.
1171 case $ac_envvar in #(
1172 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1173 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1175 eval $ac_envvar=\
$ac_optarg
1176 export $ac_envvar ;;
1179 # FIXME: should be removed in autoconf 3.0.
1180 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1181 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1182 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1183 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1189 if test -n "$ac_prev"; then
1190 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1191 as_fn_error $?
"missing argument to $ac_option"
1194 if test -n "$ac_unrecognized_opts"; then
1195 case $enable_option_checking in
1197 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1198 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1202 # Check all directory arguments for consistency.
1203 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1204 datadir sysconfdir sharedstatedir localstatedir includedir \
1205 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1206 libdir localedir mandir
1208 eval ac_val
=\$
$ac_var
1209 # Remove trailing slashes.
1212 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1213 eval $ac_var=\
$ac_val;;
1215 # Be sure to have absolute directory names.
1217 [\\/$
]* | ?
:[\\/]* ) continue;;
1218 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1220 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1223 # There might be people who depend on the old broken behavior: `$host'
1224 # used to hold the argument of --host etc.
1225 # FIXME: To remove some day.
1228 target
=$target_alias
1230 # FIXME: To remove some day.
1231 if test "x$host_alias" != x
; then
1232 if test "x$build_alias" = x
; then
1233 cross_compiling
=maybe
1234 elif test "x$build_alias" != "x$host_alias"; then
1240 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1242 test "$silent" = yes && exec 6>/dev
/null
1245 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1246 ac_ls_di
=`ls -di .` &&
1247 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1248 as_fn_error $?
"working directory cannot be determined"
1249 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1250 as_fn_error $?
"pwd does not report name of working directory"
1253 # Find the source files, if location was not specified.
1254 if test -z "$srcdir"; then
1255 ac_srcdir_defaulted
=yes
1256 # Try the directory containing this script, then the parent directory.
1257 ac_confdir
=`$as_dirname -- "$as_myself" ||
1258 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1259 X"$as_myself" : 'X\(//\)[^/]' \| \
1260 X"$as_myself" : 'X\(//\)$' \| \
1261 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1262 $as_echo X"$as_myself" |
1263 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1281 if test ! -r "$srcdir/$ac_unique_file"; then
1285 ac_srcdir_defaulted
=no
1287 if test ! -r "$srcdir/$ac_unique_file"; then
1288 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1289 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1291 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1293 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1295 # When building in place, set srcdir=.
1296 if test "$ac_abs_confdir" = "$ac_pwd"; then
1299 # Remove unnecessary trailing slashes from srcdir.
1300 # Double slashes in file names in object file debugging info
1301 # mess up M-x gdb in Emacs.
1303 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1305 for ac_var
in $ac_precious_vars; do
1306 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1307 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1308 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1309 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1313 # Report the --help message.
1315 if test "$ac_init_help" = "long"; then
1316 # Omit some internal or obsolete options to make the list less imposing.
1317 # This message is too long to be a string in the A/UX 3.1 sh.
1319 \`configure' configures pcap 1.10.0-PRE-GIT to adapt to many kinds of systems.
1321 Usage: $0 [OPTION]... [VAR=VALUE]...
1323 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1324 VAR=VALUE. See below for descriptions of some of the useful variables.
1326 Defaults for the options are specified in brackets.
1329 -h, --help display this help and exit
1330 --help=short display options specific to this package
1331 --help=recursive display the short help of all the included packages
1332 -V, --version display version information and exit
1333 -q, --quiet, --silent do not print \`checking ...' messages
1334 --cache-file=FILE cache test results in FILE [disabled]
1335 -C, --config-cache alias for \`--cache-file=config.cache'
1336 -n, --no-create do not create output files
1337 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1339 Installation directories:
1340 --prefix=PREFIX install architecture-independent files in PREFIX
1341 [$ac_default_prefix]
1342 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1345 By default, \`make install' will install all the files in
1346 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1347 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1348 for instance \`--prefix=\$HOME'.
1350 For better control, use the options below.
1352 Fine tuning of the installation directories:
1353 --bindir=DIR user executables [EPREFIX/bin]
1354 --sbindir=DIR system admin executables [EPREFIX/sbin]
1355 --libexecdir=DIR program executables [EPREFIX/libexec]
1356 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1357 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1358 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1359 --libdir=DIR object code libraries [EPREFIX/lib]
1360 --includedir=DIR C header files [PREFIX/include]
1361 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1362 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1363 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1364 --infodir=DIR info documentation [DATAROOTDIR/info]
1365 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1366 --mandir=DIR man documentation [DATAROOTDIR/man]
1367 --docdir=DIR documentation root [DATAROOTDIR/doc/pcap]
1368 --htmldir=DIR html documentation [DOCDIR]
1369 --dvidir=DIR dvi documentation [DOCDIR]
1370 --pdfdir=DIR pdf documentation [DOCDIR]
1371 --psdir=DIR ps documentation [DOCDIR]
1377 --build=BUILD configure
for building on BUILD
[guessed
]
1378 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1379 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1383 if test -n "$ac_init_help"; then
1384 case $ac_init_help in
1385 short | recursive
) echo "Configuration of pcap 1.10.0-PRE-GIT:";;
1390 --disable-option-checking ignore unrecognized
--enable/--with options
1391 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1392 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1393 --disable-largefile omit support
for large files
1394 --disable-protochain disable
\"protochain
\" insn
1395 --enable-packet-ring enable packet ring support on Linux
[default
=yes]
1396 --enable-ipv6 build IPv6-capable version
[default
=yes]
1397 --enable-remote enable remote packet capture
[default
=no
]
1398 --disable-remote disable remote packet capture
1399 --enable-optimizer-dbg build optimizer debugging code
1400 --enable-yydebug build parser debugging code
1401 --disable-universal don
't build universal on macOS
1402 --enable-shared build shared libraries [default=yes, if support
1404 --enable-usb enable USB capture support [default=yes, if support
1406 --enable-netmap enable netmap support [default=yes, if support
1408 --enable-bluetooth enable Bluetooth support [default=yes, if support
1410 --enable-dbus enable D-Bus capture support [default=yes, if
1412 --enable-rdma enable RDMA capture support [default=yes, if support
1416 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1417 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1418 --without-gcc don't use gcc
1419 --with-pcap=TYPE use packet capture TYPE
1420 --without-libnl disable libnl support
[default
=yes, on Linux
, if
1422 --with-dag[=DIR
] include Endace DAG support
(located
in directory
1423 DIR
, if supplied
).
[default
=yes, if present
]
1424 --with-dag-includes=IDIR
1425 Endace DAG include directory
, if not DIR
/include
1426 --with-dag-libraries=LDIR
1427 Endace DAG library directory
, if not DIR
/lib
1428 --with-septel[=DIR
] include Septel support
(located
in directory DIR
, if
1429 supplied
).
[default
=yes, if present
]
1430 --with-snf[=DIR
] include Myricom SNF support
(located
in directory
1431 DIR
, if supplied
).
[default
=yes, if present
]
1432 --with-snf-includes=IDIR
1433 Myricom SNF include directory
, if not DIR
/include
1434 --with-snf-libraries=LDIR
1435 Myricom SNF library directory
, if not DIR
/lib
1436 --with-turbocap[=DIR
] include Riverbed TurboCap support
(located
in
1437 directory DIR
, if supplied
).
[default
=yes, if
1439 --with-dpdk[=DIR
] include DPDK support
(located
in directory DIR
, if
1440 supplied
).
[default
=yes, if present
]
1442 Some influential environment variables
:
1443 CC C compiler
command
1444 CFLAGS C compiler flags
1445 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1446 nonstandard directory
<lib dir
>
1447 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1448 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1449 you have headers
in a nonstandard directory
<include dir
>
1451 YACC The
`Yet Another Compiler Compiler' implementation to use.
1452 Defaults to the first program found out of: `bison
-y', `byacc',
1454 YFLAGS The list of arguments that will be passed by default to $YACC.
1455 This script will default YFLAGS to the empty string to avoid a
1456 default value of `-d' given by some make applications.
1458 Use these variables to override the choices made by `configure' or to
help
1459 it to
find libraries and programs with nonstandard names
/locations.
1461 Report bugs to the package provider.
1466 if test "$ac_init_help" = "recursive"; then
1467 # If there are subdirs, report their specific --help.
1468 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1469 test -d "$ac_dir" ||
1470 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1475 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1477 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1478 # A ".." for each directory in $ac_dir_suffix.
1479 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1480 case $ac_top_builddir_sub in
1481 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1482 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1485 ac_abs_top_builddir
=$ac_pwd
1486 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1487 # for backward compatibility:
1488 ac_top_builddir
=$ac_top_build_prefix
1491 .
) # We are building in place.
1493 ac_top_srcdir
=$ac_top_builddir_sub
1494 ac_abs_top_srcdir
=$ac_pwd ;;
1495 [\\/]* | ?
:[\\/]* ) # Absolute name.
1496 ac_srcdir
=$srcdir$ac_dir_suffix;
1497 ac_top_srcdir
=$srcdir
1498 ac_abs_top_srcdir
=$srcdir ;;
1500 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1501 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1502 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1504 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1506 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1507 # Check for guested configure.
1508 if test -f "$ac_srcdir/configure.gnu"; then
1510 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1511 elif test -f "$ac_srcdir/configure"; then
1513 $SHELL "$ac_srcdir/configure" --help=recursive
1515 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1517 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1521 test -n "$ac_init_help" && exit $ac_status
1522 if $ac_init_version; then
1524 pcap configure
1.10.0-PRE-GIT
1525 generated by GNU Autoconf
2.69
1527 Copyright
(C
) 2012 Free Software Foundation
, Inc.
1528 This configure
script is free software
; the Free Software Foundation
1529 gives unlimited permission to copy
, distribute and modify it.
1534 ## ------------------------ ##
1535 ## Autoconf initialization. ##
1536 ## ------------------------ ##
1538 # ac_fn_c_try_compile LINENO
1539 # --------------------------
1540 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1541 ac_fn_c_try_compile
()
1543 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1544 rm -f conftest.
$ac_objext
1545 if { { ac_try
="$ac_compile"
1547 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1548 *) ac_try_echo=$ac_try;;
1550 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1551 $as_echo "$ac_try_echo"; } >&5
1552 (eval "$ac_compile") 2>conftest.err
1554 if test -s conftest.err; then
1555 grep -v '^ *+' conftest.err >conftest.er1
1556 cat conftest.er1 >&5
1557 mv -f conftest.er1 conftest.err
1559 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1560 test $ac_status = 0; } && {
1561 test -z "$ac_c_werror_flag" ||
1562 test ! -s conftest.err
1563 } && test -s conftest.$ac_objext; then :
1566 $as_echo "$as_me: failed program was:" >&5
1567 sed 's/^/| /' conftest.$ac_ext >&5
1571 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1572 as_fn_set_status $ac_retval
1574 } # ac_fn_c_try_compile
1576 # ac_fn_c_try_link LINENO
1577 # -----------------------
1578 # Try to link conftest.$ac_ext, and return whether this succeeded.
1581 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1582 rm -f conftest.$ac_objext conftest$ac_exeext
1583 if { { ac_try="$ac_link"
1585 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1586 *) ac_try_echo
=$ac_try;;
1588 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1589 $as_echo "$ac_try_echo"; } >&5
1590 (eval "$ac_link") 2>conftest.err
1592 if test -s conftest.err
; then
1593 grep -v '^ *+' conftest.err
>conftest.er1
1594 cat conftest.er1
>&5
1595 mv -f conftest.er1 conftest.err
1597 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1598 test $ac_status = 0; } && {
1599 test -z "$ac_c_werror_flag" ||
1600 test ! -s conftest.err
1601 } && test -s conftest
$ac_exeext && {
1602 test "$cross_compiling" = yes ||
1603 test -x conftest
$ac_exeext
1607 $as_echo "$as_me: failed program was:" >&5
1608 sed 's/^/| /' conftest.
$ac_ext >&5
1612 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1613 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1614 # interfere with the next link command; also delete a directory that is
1615 # left behind by Apple's compiler. We do this before executing the actions.
1616 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1617 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1618 as_fn_set_status
$ac_retval
1620 } # ac_fn_c_try_link
1622 # ac_fn_c_try_cpp LINENO
1623 # ----------------------
1624 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1627 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1628 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1630 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1631 *) ac_try_echo=$ac_try;;
1633 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1634 $as_echo "$ac_try_echo"; } >&5
1635 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1637 if test -s conftest.err; then
1638 grep -v '^ *+' conftest.err >conftest.er1
1639 cat conftest.er1 >&5
1640 mv -f conftest.er1 conftest.err
1642 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1643 test $ac_status = 0; } > conftest.i && {
1644 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1645 test ! -s conftest.err
1649 $as_echo "$as_me: failed program was:" >&5
1650 sed 's/^/| /' conftest.$ac_ext >&5
1654 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1655 as_fn_set_status $ac_retval
1659 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1660 # -------------------------------------------------------
1661 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1662 # the include files in INCLUDES and setting the cache variable VAR
1664 ac_fn_c_check_header_mongrel ()
1666 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1667 if eval \${$3+:} false; then :
1668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1669 $as_echo_n "checking for $2... " >&6; }
1670 if eval \${$3+:} false; then :
1671 $as_echo_n "(cached) " >&6
1674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1675 $as_echo "$ac_res" >&6; }
1677 # Is the header compilable?
1678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1679 $as_echo_n "checking $2 usability... " >&6; }
1680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1681 /* end confdefs.h. */
1685 if ac_fn_c_try_compile "$LINENO"; then :
1686 ac_header_compiler=yes
1688 ac_header_compiler=no
1690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1692 $as_echo "$ac_header_compiler" >&6; }
1694 # Is the header present?
1695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1696 $as_echo_n "checking $2 presence... " >&6; }
1697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1698 /* end confdefs.h. */
1701 if ac_fn_c_try_cpp "$LINENO"; then :
1702 ac_header_preproc=yes
1704 ac_header_preproc=no
1706 rm -f conftest.err conftest.i conftest.$ac_ext
1707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1708 $as_echo "$ac_header_preproc" >&6; }
1710 # So? What about this header?
1711 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1713 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1714 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1715 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1716 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1719 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1720 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1721 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1722 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1723 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1724 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1725 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1726 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1727 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1728 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1732 $as_echo_n "checking for $2... " >&6; }
1733 if eval \${$3+:} false; then :
1734 $as_echo_n "(cached) " >&6
1736 eval "$3=\$ac_header_compiler"
1739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1740 $as_echo "$ac_res" >&6; }
1742 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1744 } # ac_fn_c_check_header_mongrel
1746 # ac_fn_c_try_run LINENO
1747 # ----------------------
1748 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1749 # that executables *can* be run.
1752 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1753 if { { ac_try="$ac_link"
1755 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1756 *) ac_try_echo
=$ac_try;;
1758 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1759 $as_echo "$ac_try_echo"; } >&5
1760 (eval "$ac_link") 2>&5
1762 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1763 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
1764 { { case "(($ac_try" in
1765 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1766 *) ac_try_echo=$ac_try;;
1768 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1769 $as_echo "$ac_try_echo"; } >&5
1770 (eval "$ac_try") 2>&5
1772 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1773 test $ac_status = 0; }; }; then :
1776 $as_echo "$as_me: program exited with status $ac_status" >&5
1777 $as_echo "$as_me: failed program was:" >&5
1778 sed 's/^/| /' conftest.$ac_ext >&5
1780 ac_retval=$ac_status
1782 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1783 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1784 as_fn_set_status $ac_retval
1788 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1789 # -------------------------------------------------------
1790 # Tests whether HEADER exists and can be compiled using the include files in
1791 # INCLUDES, setting the cache variable VAR accordingly.
1792 ac_fn_c_check_header_compile ()
1794 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1796 $as_echo_n "checking for $2... " >&6; }
1797 if eval \${$3+:} false; then :
1798 $as_echo_n "(cached) " >&6
1800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1801 /* end confdefs.h. */
1805 if ac_fn_c_try_compile "$LINENO"; then :
1810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1814 $as_echo "$ac_res" >&6; }
1815 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1817 } # ac_fn_c_check_header_compile
1819 # ac_fn_c_check_func LINENO FUNC VAR
1820 # ----------------------------------
1821 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1822 ac_fn_c_check_func ()
1824 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1826 $as_echo_n "checking for $2... " >&6; }
1827 if eval \${$3+:} false; then :
1828 $as_echo_n "(cached) " >&6
1830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1831 /* end confdefs.h. */
1832 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1833 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1834 #define $2 innocuous_$2
1836 /* System header to define __stub macros and hopefully few prototypes,
1837 which can conflict with char $2 (); below.
1838 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1839 <limits.h> exists even on freestanding compilers. */
1842 # include <limits.h>
1844 # include <assert.h>
1849 /* Override any GCC internal prototype to avoid an error.
1850 Use char because int might match the return type of a GCC
1851 builtin and then its argument prototype would still apply. */
1856 /* The GNU C library defines this for functions which it implements
1857 to always fail with ENOSYS. Some functions are actually named
1858 something starting with __ and the normal name is an alias. */
1859 #if defined __stub_$2 || defined __stub___$2
1871 if ac_fn_c_try_link "$LINENO"; then :
1876 rm -f core conftest.err conftest.$ac_objext \
1877 conftest$ac_exeext conftest.$ac_ext
1880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1881 $as_echo "$ac_res" >&6; }
1882 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1884 } # ac_fn_c_check_func
1886 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1887 # ---------------------------------------------
1888 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1890 ac_fn_c_check_decl ()
1892 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1893 as_decl_name=`echo $2|
sed 's/ *(.*//'`
1894 as_decl_use=`echo $2|
sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1896 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1897 if eval \${$3+:} false; then :
1898 $as_echo_n "(cached) " >&6
1900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1901 /* end confdefs.h. */
1906 #ifndef $as_decl_name
1908 (void) $as_decl_use;
1910 (void) $as_decl_name;
1918 if ac_fn_c_try_compile "$LINENO"; then :
1923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1927 $as_echo "$ac_res" >&6; }
1928 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1930 } # ac_fn_c_check_decl
1932 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1933 # -------------------------------------------
1934 # Tests whether TYPE exists after having included INCLUDES, setting cache
1935 # variable VAR accordingly.
1936 ac_fn_c_check_type ()
1938 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1940 $as_echo_n "checking for $2... " >&6; }
1941 if eval \${$3+:} false; then :
1942 $as_echo_n "(cached) " >&6
1945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1946 /* end confdefs.h. */
1957 if ac_fn_c_try_compile "$LINENO"; then :
1958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1959 /* end confdefs.h. */
1970 if ac_fn_c_try_compile "$LINENO"; then :
1975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1981 $as_echo "$ac_res" >&6; }
1982 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1984 } # ac_fn_c_check_type
1986 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1987 # ----------------------------------------------------
1988 # Tries to find if the field MEMBER exists in type AGGR, after including
1989 # INCLUDES, setting cache variable VAR accordingly.
1990 ac_fn_c_check_member ()
1992 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1994 $as_echo_n "checking for $2.$3... " >&6; }
1995 if eval \${$4+:} false; then :
1996 $as_echo_n "(cached) " >&6
1998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1999 /* end confdefs.h. */
2011 if ac_fn_c_try_compile "$LINENO"; then :
2014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2015 /* end confdefs.h. */
2021 if (sizeof ac_aggr.$3)
2027 if ac_fn_c_try_compile "$LINENO"; then :
2032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2038 $as_echo "$ac_res" >&6; }
2039 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2041 } # ac_fn_c_check_member
2042 cat >config.log <<_ACEOF
2043 This file contains any messages produced by compilers while
2044 running configure, to aid debugging if configure makes a mistake.
2046 It was created by pcap $as_me 1.10.0-PRE-GIT, which was
2047 generated by GNU Autoconf 2.69. Invocation command line was
2059 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2060 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2061 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2062 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2063 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2065 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2066 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2068 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2069 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2070 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2071 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2072 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2073 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2074 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2082 test -z "$as_dir" && as_dir=.
2083 $as_echo "PATH: $as_dir"
2099 # Keep a trace of the command line.
2100 # Strip out --no-create and --no-recursion so they do not pile up.
2101 # Strip out --silent because we don't want to record it for future runs.
2102 # Also quote any args containing shell meta-characters.
2103 # Make two passes to allow for proper duplicate-argument suppression.
2107 ac_must_keep_next=false
2113 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2114 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2115 | -silent | --silent | --silen | --sile | --sil)
2118 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2121 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2123 as_fn_append ac_configure_args1 " '$ac_arg'"
2124 if test $ac_must_keep_next = true; then
2125 ac_must_keep_next=false # Got value, back to normal.
2128 *=* | --config-cache | -C | -disable-* | --disable-* \
2129 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2130 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2131 | -with-* | --with-* | -without-* | --without-* | --x)
2132 case "$ac_configure_args0 " in
2133 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2136 -* ) ac_must_keep_next=true ;;
2139 as_fn_append ac_configure_args " '$ac_arg'"
2144 { ac_configure_args0=; unset ac_configure_args0;}
2145 { ac_configure_args1=; unset ac_configure_args1;}
2147 # When interrupted or exit'd, cleanup temporary files, and complete
2148 # config.log. We remove comments because anyway the quotes in there
2149 # would cause problems or look ugly.
2150 # WARNING: Use '\'' to represent an apostrophe within the trap.
2151 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2152 trap 'exit_status=$?
2153 # Save into config.log some information that might help in debugging.
2157 $as_echo "## ---------------- ##
2158 ## Cache variables. ##
2159 ## ---------------- ##"
2161 # The following way of writing the cache mishandles newlines in values,
2163 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2164 eval ac_val=\$$ac_var
2168 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2169 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2172 _ | IFS | as_nl) ;; #(
2173 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2174 *) { eval $ac_var=; unset $ac_var;} ;;
2179 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2180 *${as_nl}ac_space=\ *)
2182 "s/'\''/'\''\\\\'\'''\''/g;
2183 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2186 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2193 $as_echo "## ----------------- ##
2194 ## Output variables. ##
2195 ## ----------------- ##"
2197 for ac_var in $ac_subst_vars
2199 eval ac_val=\$$ac_var
2201 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2203 $as_echo "$ac_var='\''$ac_val'\''"
2207 if test -n "$ac_subst_files"; then
2208 $as_echo "## ------------------- ##
2209 ## File substitutions. ##
2210 ## ------------------- ##"
2212 for ac_var in $ac_subst_files
2214 eval ac_val=\$$ac_var
2216 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2218 $as_echo "$ac_var='\''$ac_val'\''"
2223 if test -s confdefs.h; then
2224 $as_echo "## ----------- ##
2231 test "$ac_signal" != 0 &&
2232 $as_echo "$as_me: caught signal $ac_signal"
2233 $as_echo "$as_me: exit $exit_status"
2235 rm -f core *.core core.conftest.* &&
2236 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2239 for ac_signal in 1 2 13 15; do
2240 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2244 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2245 rm -f -r conftest* confdefs.h
2247 $as_echo "/* confdefs.h */" > confdefs.h
2249 # Predefined preprocessor variables.
2251 cat >>confdefs.h <<_ACEOF
2252 #define PACKAGE_NAME "$PACKAGE_NAME"
2255 cat >>confdefs.h <<_ACEOF
2256 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2259 cat >>confdefs.h <<_ACEOF
2260 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2263 cat >>confdefs.h <<_ACEOF
2264 #define PACKAGE_STRING "$PACKAGE_STRING"
2267 cat >>confdefs.h <<_ACEOF
2268 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2271 cat >>confdefs.h <<_ACEOF
2272 #define PACKAGE_URL "$PACKAGE_URL"
2276 # Let the site file select an alternate cache file if it wants to.
2277 # Prefer an explicitly selected file to automatically selected ones.
2280 if test -n "$CONFIG_SITE"; then
2281 # We do not want a PATH search for config.site.
2282 case $CONFIG_SITE in #((
2283 -*) ac_site_file1=./$CONFIG_SITE;;
2284 */*) ac_site_file1=$CONFIG_SITE;;
2285 *) ac_site_file1=./$CONFIG_SITE;;
2287 elif test "x$prefix" != xNONE; then
2288 ac_site_file1=$prefix/share/config.site
2289 ac_site_file2=$prefix/etc/config.site
2291 ac_site_file1=$ac_default_prefix/share/config.site
2292 ac_site_file2=$ac_default_prefix/etc/config.site
2294 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2296 test "x$ac_site_file" = xNONE && continue
2297 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2298 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2299 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2300 sed 's/^/| /' "$ac_site_file" >&5
2302 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2303 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2304 as_fn_error $? "failed to load site
script $ac_site_file
2305 See \
`config.log' for more details" "$LINENO" 5; }
2309 if test -r "$cache_file"; then
2310 # Some versions of bash will fail to source /dev/null (special files
2311 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2312 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2313 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2314 $as_echo "$as_me: loading cache $cache_file" >&6;}
2316 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2317 *) . "./$cache_file";;
2321 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2322 $as_echo "$as_me: creating cache $cache_file" >&6;}
2326 # Check that the precious variables saved in the cache have kept the same
2328 ac_cache_corrupted=false
2329 for ac_var in $ac_precious_vars; do
2330 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2331 eval ac_new_set=\$ac_env_${ac_var}_set
2332 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2333 eval ac_new_val=\$ac_env_${ac_var}_value
2334 case $ac_old_set,$ac_new_set in
2336 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2337 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2338 ac_cache_corrupted=: ;;
2340 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2341 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2342 ac_cache_corrupted=: ;;
2345 if test "x$ac_old_val" != "x$ac_new_val"; then
2346 # differences in whitespace do not lead to failure.
2347 ac_old_val_w=`echo x
$ac_old_val`
2348 ac_new_val_w=`echo x
$ac_new_val`
2349 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2350 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2351 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2352 ac_cache_corrupted=:
2354 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2355 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2356 eval $ac_var=\$ac_old_val
2358 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2359 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2360 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2361 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2364 # Pass precious variables to config.status.
2365 if test "$ac_new_set" = set; then
2367 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2368 *) ac_arg=$ac_var=$ac_new_val ;;
2370 case " $ac_configure_args " in
2371 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2372 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2376 if $ac_cache_corrupted; then
2377 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2378 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2379 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2380 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2381 as_fn_error $? "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2383 ## -------------------- ##
2384 ## Main body of script. ##
2385 ## -------------------- ##
2388 ac_cpp='$CPP $CPPFLAGS'
2389 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2390 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2391 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2398 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2399 if test -f "$ac_dir/install-sh"; then
2401 ac_install_sh="$ac_aux_dir/install-sh -c"
2403 elif test -f "$ac_dir/install.sh"; then
2405 ac_install_sh="$ac_aux_dir/install.sh -c"
2407 elif test -f "$ac_dir/shtool"; then
2409 ac_install_sh="$ac_aux_dir/shtool install -c"
2413 if test -z "$ac_aux_dir"; then
2414 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2417 # These three variables are undocumented and unsupported,
2418 # and are intended to be withdrawn in a future Autoconf release.
2419 # They can cause serious problems if a builder's source tree is in a directory
2420 # whose full name contains unusual characters.
2421 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2422 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2423 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2426 # Make sure we can run config.sub.
2427 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2428 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2431 $as_echo_n "checking build system type... " >&6; }
2432 if ${ac_cv_build+:} false; then :
2433 $as_echo_n "(cached) " >&6
2435 ac_build_alias=$build_alias
2436 test "x$ac_build_alias" = x &&
2437 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2438 test "x$ac_build_alias" = x &&
2439 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2440 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2441 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2445 $as_echo "$ac_cv_build" >&6; }
2446 case $ac_cv_build in
2448 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2451 ac_save_IFS=$IFS; IFS='-'
2457 # Remember, the first character of IFS is used to create $*,
2458 # except with old shells:
2461 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
2464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2465 $as_echo_n "checking host system type... " >&6; }
2466 if ${ac_cv_host+:} false; then :
2467 $as_echo_n "(cached) " >&6
2469 if test "x$host_alias" = x; then
2470 ac_cv_host=$ac_cv_build
2472 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2473 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2478 $as_echo "$ac_cv_host" >&6; }
2481 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2484 ac_save_IFS=$IFS; IFS='-'
2490 # Remember, the first character of IFS is used to create $*,
2491 # except with old shells:
2494 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
2497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2498 $as_echo_n "checking target system type... " >&6; }
2499 if ${ac_cv_target+:} false; then :
2500 $as_echo_n "(cached) " >&6
2502 if test "x$target_alias" = x; then
2503 ac_cv_target=$ac_cv_host
2505 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2506 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2511 $as_echo "$ac_cv_target" >&6; }
2512 case $ac_cv_target in
2514 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2516 target=$ac_cv_target
2517 ac_save_IFS=$IFS; IFS='-'
2523 # Remember, the first character of IFS is used to create $*,
2524 # except with old shells:
2527 case $target_os in *\ *) target_os=`echo "$target_os" |
sed 's/ /-/g'`;; esac
2530 # The aliases save the names the user supplied, while $host etc.
2531 # will get canonicalized.
2532 test -n "$target_alias" &&
2533 test "$program_prefix$program_suffix$program_transform_name" = \
2535 program_prefix=${target_alias}-
2544 # Check whether --with-gcc was given.
2545 if test "${with_gcc+set}" = set; then :
2550 if test "${srcdir}" != "." ; then
2551 V_CCOPT="-I\$(srcdir)"
2553 if test "${CFLAGS+set}" = set; then
2554 LBL_CFLAGS="$CFLAGS"
2556 if test -z "$CC" ; then
2560 # Extract the first word of "shlicc2", so it can be a program name with args.
2561 set dummy shlicc2; ac_word=$2
2562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2563 $as_echo_n "checking for $ac_word... " >&6; }
2564 if ${ac_cv_prog_SHLICC2+:} false; then :
2565 $as_echo_n "(cached) " >&6
2567 if test -n "$SHLICC2"; then
2568 ac_cv_prog_SHLICC2="$SHLICC2" # Let the user override the test.
2570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2574 test -z "$as_dir" && as_dir=.
2575 for ac_exec_ext in '' $ac_executable_extensions; do
2576 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2577 ac_cv_prog_SHLICC2="yes"
2578 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2585 test -z "$ac_cv_prog_SHLICC2" && ac_cv_prog_SHLICC2="no"
2588 SHLICC2=$ac_cv_prog_SHLICC2
2589 if test -n "$SHLICC2"; then
2590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHLICC2" >&5
2591 $as_echo "$SHLICC2" >&6; }
2593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2594 $as_echo "no" >&6; }
2598 if test $SHLICC2 = yes ; then
2605 if test -z "$CC" -a "$with_gcc" = no ; then
2611 # Try to enable as many C99 features as we can.
2612 # At minimum, we want C++/C99-style // comments.
2615 ac_cpp='$CPP $CPPFLAGS'
2616 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2617 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2618 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2619 if test -n "$ac_tool_prefix"; then
2620 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2621 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2623 $as_echo_n "checking for $ac_word... " >&6; }
2624 if ${ac_cv_prog_CC+:} false; then :
2625 $as_echo_n "(cached) " >&6
2627 if test -n "$CC"; then
2628 ac_cv_prog_CC="$CC" # Let the user override the test.
2630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2634 test -z "$as_dir" && as_dir=.
2635 for ac_exec_ext in '' $ac_executable_extensions; do
2636 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2637 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2648 if test -n "$CC"; then
2649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2650 $as_echo "$CC" >&6; }
2652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2653 $as_echo "no" >&6; }
2658 if test -z "$ac_cv_prog_CC"; then
2660 # Extract the first word of "gcc", so it can be a program name with args.
2661 set dummy gcc; ac_word=$2
2662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2663 $as_echo_n "checking for $ac_word... " >&6; }
2664 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2665 $as_echo_n "(cached) " >&6
2667 if test -n "$ac_ct_CC"; then
2668 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2674 test -z "$as_dir" && as_dir=.
2675 for ac_exec_ext in '' $ac_executable_extensions; do
2676 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2677 ac_cv_prog_ac_ct_CC="gcc"
2678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2687 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2688 if test -n "$ac_ct_CC"; then
2689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2690 $as_echo "$ac_ct_CC" >&6; }
2692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2693 $as_echo "no" >&6; }
2696 if test "x$ac_ct_CC" = x; then
2699 case $cross_compiling:$ac_tool_warned in
2701 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2702 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2703 ac_tool_warned=yes ;;
2711 if test -z "$CC"; then
2712 if test -n "$ac_tool_prefix"; then
2713 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2714 set dummy ${ac_tool_prefix}cc; ac_word=$2
2715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2716 $as_echo_n "checking for $ac_word... " >&6; }
2717 if ${ac_cv_prog_CC+:} false; then :
2718 $as_echo_n "(cached) " >&6
2720 if test -n "$CC"; then
2721 ac_cv_prog_CC="$CC" # Let the user override the test.
2723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2727 test -z "$as_dir" && as_dir=.
2728 for ac_exec_ext in '' $ac_executable_extensions; do
2729 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2730 ac_cv_prog_CC="${ac_tool_prefix}cc"
2731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2741 if test -n "$CC"; then
2742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2743 $as_echo "$CC" >&6; }
2745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2746 $as_echo "no" >&6; }
2752 if test -z "$CC"; then
2753 # Extract the first word of "cc", so it can be a program name with args.
2754 set dummy cc; ac_word=$2
2755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2756 $as_echo_n "checking for $ac_word... " >&6; }
2757 if ${ac_cv_prog_CC+:} false; then :
2758 $as_echo_n "(cached) " >&6
2760 if test -n "$CC"; then
2761 ac_cv_prog_CC="$CC" # Let the user override the test.
2764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2768 test -z "$as_dir" && as_dir=.
2769 for ac_exec_ext in '' $ac_executable_extensions; do
2770 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2771 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2772 ac_prog_rejected=yes
2776 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2783 if test $ac_prog_rejected = yes; then
2784 # We found a bogon in the path, so make sure we never use it.
2785 set dummy $ac_cv_prog_CC
2787 if test $# != 0; then
2788 # We chose a different compiler from the bogus one.
2789 # However, it has the same basename, so the bogon will be chosen
2790 # first if we set CC to just the basename; use the full file name.
2792 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2798 if test -n "$CC"; then
2799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2800 $as_echo "$CC" >&6; }
2802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2803 $as_echo "no" >&6; }
2808 if test -z "$CC"; then
2809 if test -n "$ac_tool_prefix"; then
2810 for ac_prog in cl.exe
2812 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2813 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2815 $as_echo_n "checking for $ac_word... " >&6; }
2816 if ${ac_cv_prog_CC+:} false; then :
2817 $as_echo_n "(cached) " >&6
2819 if test -n "$CC"; then
2820 ac_cv_prog_CC="$CC" # Let the user override the test.
2822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2826 test -z "$as_dir" && as_dir=.
2827 for ac_exec_ext in '' $ac_executable_extensions; do
2828 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2829 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2830 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2840 if test -n "$CC"; then
2841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2842 $as_echo "$CC" >&6; }
2844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2845 $as_echo "no" >&6; }
2849 test -n "$CC" && break
2852 if test -z "$CC"; then
2854 for ac_prog in cl.exe
2856 # Extract the first word of "$ac_prog", so it can be a program name with args.
2857 set dummy $ac_prog; ac_word=$2
2858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2859 $as_echo_n "checking for $ac_word... " >&6; }
2860 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2861 $as_echo_n "(cached) " >&6
2863 if test -n "$ac_ct_CC"; then
2864 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2870 test -z "$as_dir" && as_dir=.
2871 for ac_exec_ext in '' $ac_executable_extensions; do
2872 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2873 ac_cv_prog_ac_ct_CC="$ac_prog"
2874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2883 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2884 if test -n "$ac_ct_CC"; then
2885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2886 $as_echo "$ac_ct_CC" >&6; }
2888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2889 $as_echo "no" >&6; }
2893 test -n "$ac_ct_CC" && break
2896 if test "x$ac_ct_CC" = x; then
2899 case $cross_compiling:$ac_tool_warned in
2901 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2902 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2903 ac_tool_warned=yes ;;
2912 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2913 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2914 as_fn_error $? "no acceptable C compiler found
in \
$PATH
2915 See \
`config.log' for more details" "$LINENO" 5; }
2917 # Provide some information about the compiler.
2918 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2921 for ac_option in --version -v -V -qversion; do
2922 { { ac_try="$ac_compiler $ac_option >&5"
2924 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2925 *) ac_try_echo
=$ac_try;;
2927 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2928 $as_echo "$ac_try_echo"; } >&5
2929 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2931 if test -s conftest.err
; then
2933 ... rest of stderr output deleted ...
2934 10q' conftest.err
>conftest.er1
2935 cat conftest.er1
>&5
2937 rm -f conftest.er1 conftest.err
2938 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2939 test $ac_status = 0; }
2942 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2943 /* end confdefs.h. */
2953 ac_clean_files_save
=$ac_clean_files
2954 ac_clean_files
="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2955 # Try to create an executable without -o first, disregard a.out.
2956 # It will help us diagnose broken compilers, and finding out an intuition
2958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2959 $as_echo_n "checking whether the C compiler works... " >&6; }
2960 ac_link_default
=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2962 # The possible output files:
2963 ac_files
="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2966 for ac_file
in $ac_files
2969 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
2970 * ) ac_rmfiles
="$ac_rmfiles $ac_file";;
2975 if { { ac_try
="$ac_link_default"
2977 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2978 *) ac_try_echo=$ac_try;;
2980 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2981 $as_echo "$ac_try_echo"; } >&5
2982 (eval "$ac_link_default") 2>&5
2984 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2985 test $ac_status = 0; }; then :
2986 # Autoconf-2.13 could set the ac_cv_exeext variable to `no
'.
2987 # So ignore a value of `no', otherwise this would lead to
`EXEEXT = no'
2988 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2989 # so that the user can short-circuit this test for compilers unknown to
2991 for ac_file in $ac_files ''
2993 test -f "$ac_file" || continue
2995 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2998 # We found the default executable, but exeext='' is most
3002 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3004 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3006 # We set ac_cv_exeext here because the later test for it is not
3007 # safe: cross compilers may not add the suffix if given an `-o'
3008 # argument, so we may need to know it at that point already.
3009 # Even if this section looks crufty: it has the advantage of
3016 test "$ac_cv_exeext" = no && ac_cv_exeext=
3021 if test -z "$ac_file"; then :
3022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3023 $as_echo "no" >&6; }
3024 $as_echo "$as_me: failed program was:" >&5
3025 sed 's
/^
/|
/' conftest.$ac_ext >&5
3027 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3028 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
3029 as_fn_error 77 "C compiler cannot create executables
3030 See \`config.log
' for more details" "$LINENO" 5; }
3032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3033 $as_echo "yes" >&6; }
3035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3036 $as_echo_n "checking for C compiler default output file name... " >&6; }
3037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3038 $as_echo "$ac_file" >&6; }
3039 ac_exeext=$ac_cv_exeext
3041 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3042 ac_clean_files=$ac_clean_files_save
3043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3044 $as_echo_n "checking for suffix of executables... " >&6; }
3045 if { { ac_try="$ac_link"
3047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3048 *) ac_try_echo=$ac_try;;
3050 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3051 $as_echo "$ac_try_echo"; } >&5
3052 (eval "$ac_link") 2>&5
3054 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3055 test $ac_status = 0; }; then :
3056 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3057 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3058 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3060 for ac_file
in conftest.exe conftest conftest.
*; do
3061 test -f "$ac_file" ||
continue
3063 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3064 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3070 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3071 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3072 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
3073 See \`config.log' for more details" "$LINENO" 5; }
3075 rm -f conftest conftest
$ac_cv_exeext
3076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3077 $as_echo "$ac_cv_exeext" >&6; }
3079 rm -f conftest.
$ac_ext
3080 EXEEXT
=$ac_cv_exeext
3082 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3083 /* end confdefs.h. */
3088 FILE *f = fopen ("conftest.out", "w");
3089 return ferror (f) || fclose (f) != 0;
3095 ac_clean_files
="$ac_clean_files conftest.out"
3096 # Check that the compiler produces executables we can run. If not, either
3097 # the compiler is broken, or we cross compile.
3098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3099 $as_echo_n "checking whether we are cross compiling... " >&6; }
3100 if test "$cross_compiling" != yes; then
3101 { { ac_try
="$ac_link"
3103 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3104 *) ac_try_echo=$ac_try;;
3106 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3107 $as_echo "$ac_try_echo"; } >&5
3108 (eval "$ac_link") 2>&5
3110 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3111 test $ac_status = 0; }
3112 if { ac_try='./conftest$ac_cv_exeext'
3113 { { case "(($ac_try" in
3114 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3115 *) ac_try_echo
=$ac_try;;
3117 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3118 $as_echo "$ac_try_echo"; } >&5
3119 (eval "$ac_try") 2>&5
3121 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3122 test $ac_status = 0; }; }; then
3125 if test "$cross_compiling" = maybe
; then
3128 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3129 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3130 as_fn_error $?
"cannot run C compiled programs.
3131 If you meant to cross compile, use \`--host'.
3132 See \`config.log' for more details" "$LINENO" 5; }
3136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3137 $as_echo "$cross_compiling" >&6; }
3139 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3140 ac_clean_files
=$ac_clean_files_save
3141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3142 $as_echo_n "checking for suffix of object files... " >&6; }
3143 if ${ac_cv_objext+:} false
; then :
3144 $as_echo_n "(cached) " >&6
3146 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3147 /* end confdefs.h. */
3157 rm -f conftest.o conftest.obj
3158 if { { ac_try
="$ac_compile"
3160 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3161 *) ac_try_echo=$ac_try;;
3163 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3164 $as_echo "$ac_try_echo"; } >&5
3165 (eval "$ac_compile") 2>&5
3167 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3168 test $ac_status = 0; }; then :
3169 for ac_file in conftest.o conftest.obj conftest.*; do
3170 test -f "$ac_file" || continue;
3172 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3173 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3178 $as_echo "$as_me: failed program was:" >&5
3179 sed 's/^/| /' conftest.$ac_ext >&5
3181 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3182 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3183 as_fn_error $? "cannot compute suffix of object files
: cannot compile
3184 See \
`config.log' for more details" "$LINENO" 5; }
3186 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3189 $as_echo "$ac_cv_objext" >&6; }
3190 OBJEXT=$ac_cv_objext
3192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3193 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3194 if ${ac_cv_c_compiler_gnu+:} false; then :
3195 $as_echo_n "(cached) " >&6
3197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3198 /* end confdefs.h. */
3211 if ac_fn_c_try_compile "$LINENO"; then :
3216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3217 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3221 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3222 if test $ac_compiler_gnu = yes; then
3227 ac_test_CFLAGS=${CFLAGS+set}
3228 ac_save_CFLAGS=$CFLAGS
3229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3230 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3231 if ${ac_cv_prog_cc_g+:} false; then :
3232 $as_echo_n "(cached) " >&6
3234 ac_save_c_werror_flag=$ac_c_werror_flag
3235 ac_c_werror_flag=yes
3238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3239 /* end confdefs.h. */
3249 if ac_fn_c_try_compile "$LINENO"; then :
3253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3254 /* end confdefs.h. */
3264 if ac_fn_c_try_compile "$LINENO"; then :
3267 ac_c_werror_flag=$ac_save_c_werror_flag
3269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3270 /* end confdefs.h. */
3280 if ac_fn_c_try_compile "$LINENO"; then :
3283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3288 ac_c_werror_flag=$ac_save_c_werror_flag
3290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3291 $as_echo "$ac_cv_prog_cc_g" >&6; }
3292 if test "$ac_test_CFLAGS" = set; then
3293 CFLAGS=$ac_save_CFLAGS
3294 elif test $ac_cv_prog_cc_g = yes; then
3295 if test "$GCC" = yes; then
3301 if test "$GCC" = yes; then
3307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3308 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3309 if ${ac_cv_prog_cc_c89+:} false; then :
3310 $as_echo_n "(cached) " >&6
3312 ac_cv_prog_cc_c89=no
3314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3315 /* end confdefs.h. */
3319 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3320 struct buf { int x; };
3321 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3322 static char *e (p, i)
3328 static char *f (char * (*g) (char **, int), char **p, ...)
3333 s = g (p, va_arg (v,int));
3338 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3339 function prototypes and stuff, but not '\xHH' hex character constants.
3340 These don't provoke an error unfortunately, instead are silently treated
3341 as 'x'. The following induces an error, until -std is added to get
3342 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3343 array size at least. It's necessary to write '\x00'==0 to get something
3344 that's true only with -std. */
3345 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3347 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3348 inside strings and character constants. */
3350 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3352 int test (int i, double x);
3353 struct s1 {int (*f) (int a);};
3354 struct s2 {int (*f) (double a);};
3355 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3361 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3366 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3367 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3369 CC="$ac_save_CC $ac_arg"
3370 if ac_fn_c_try_compile "$LINENO"; then :
3371 ac_cv_prog_cc_c89=$ac_arg
3373 rm -f core conftest.err conftest.$ac_objext
3374 test "x$ac_cv_prog_cc_c89" != "xno" && break
3376 rm -f conftest.$ac_ext
3381 case "x$ac_cv_prog_cc_c89" in
3383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3384 $as_echo "none needed" >&6; } ;;
3386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3387 $as_echo "unsupported" >&6; } ;;
3389 CC="$CC $ac_cv_prog_cc_c89"
3390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3391 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3393 if test "x$ac_cv_prog_cc_c89" != xno; then :
3398 ac_cpp='$CPP $CPPFLAGS'
3399 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3400 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3401 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3404 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3405 if ${ac_cv_prog_cc_c99+:} false; then :
3406 $as_echo_n "(cached) " >&6
3408 ac_cv_prog_cc_c99=no
3410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3411 /* end confdefs.h. */
3413 #include <stdbool.h>
3418 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3419 #define debug(...) fprintf (stderr, __VA_ARGS__)
3420 #define showlist(...) puts (#__VA_ARGS__)
3421 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3423 test_varargs_macros (void)
3428 debug ("X = %d\n", x);
3429 showlist (The first, second, and third items.);
3430 report (x>y, "x is %d but y is %d", x, y);
3433 // Check long long types.
3434 #define BIG64 18446744073709551615ull
3435 #define BIG32 4294967295ul
3436 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3438 your preprocessor is broken;
3442 your preprocessor is broken;
3444 static long long int bignum = -9223372036854775807LL;
3445 static unsigned long long int ubignum = BIG64;
3447 struct incomplete_array
3455 const wchar_t *name;
3459 typedef const char *ccp;
3462 test_restrict (ccp restrict text)
3464 // See if C++-style comments work.
3465 // Iterate through items via the restricted pointer.
3466 // Also check for declarations in for loops.
3467 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3472 // Check varargs and va_copy.
3474 test_varargs (const char *format, ...)
3477 va_start (args, format);
3479 va_copy (args_copy, args);
3490 str = va_arg (args_copy, const char *);
3493 number = va_arg (args_copy, int);
3496 fnumber = va_arg (args_copy, double);
3511 _Bool success = false;
3514 if (test_restrict ("String literal") == 0)
3516 char *restrict newvar = "Another string";
3519 test_varargs ("s, d' f .", "string", 65, 34.234);
3520 test_varargs_macros ();
3522 // Check flexible array members.
3523 struct incomplete_array *ia =
3524 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3526 for (int i = 0; i < ia->datasize; ++i)
3527 ia->data[i] = i * 1.234;
3529 // Check named initializers.
3530 struct named_init ni = {
3532 .name = L"Test wide string",
3533 .average = 543.34343,
3538 int dynamic_array[ni.number];
3539 dynamic_array[ni.number - 1] = 543;
3541 // work around unused variable warnings
3542 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3543 || dynamic_array[ni.number - 1] != 543);
3549 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
3551 CC="$ac_save_CC $ac_arg"
3552 if ac_fn_c_try_compile "$LINENO"; then :
3553 ac_cv_prog_cc_c99=$ac_arg
3555 rm -f core conftest.err conftest.$ac_objext
3556 test "x$ac_cv_prog_cc_c99" != "xno" && break
3558 rm -f conftest.$ac_ext
3563 case "x$ac_cv_prog_cc_c99" in
3565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3566 $as_echo "none needed" >&6; } ;;
3568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3569 $as_echo "unsupported" >&6; } ;;
3571 CC="$CC $ac_cv_prog_cc_c99"
3572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3573 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3575 if test "x$ac_cv_prog_cc_c99" != xno; then :
3580 if test "$ac_cv_prog_cc_c99" = "no"; then
3581 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The C compiler does not support C99; there may be compiler errors" >&5
3582 $as_echo "$as_me: WARNING: The C compiler does not support C99; there may be compiler errors" >&2;}
3589 if test "$GCC" = yes ; then
3591 # -Werror forces warnings to be errors.
3593 ac_lbl_cc_force_warning_errors=-Werror
3596 # Try to have the compiler default to hiding symbols,
3597 # so that only symbols explicitly exported with
3598 # PCAP_API will be visible outside (shared) libraries.
3601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -fvisibility=hidden option" >&5
3602 $as_echo_n "checking whether the compiler supports the -fvisibility=hidden option... " >&6; }
3603 save_CFLAGS="$CFLAGS"
3604 if expr "x-fvisibility=hidden" : "x-W.*" >/dev/null
3606 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -fvisibility=hidden"
3607 elif expr "x-fvisibility=hidden" : "x-f.*" >/dev/null
3609 CFLAGS="$CFLAGS -Werror -fvisibility=hidden"
3610 elif expr "x-fvisibility=hidden" : "x-m.*" >/dev/null
3612 CFLAGS="$CFLAGS -Werror -fvisibility=hidden"
3614 CFLAGS="$CFLAGS -fvisibility=hidden"
3616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3617 /* end confdefs.h. */
3627 if ac_fn_c_try_compile "$LINENO"; then :
3629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3630 $as_echo "yes" >&6; }
3631 can_add_to_cflags=yes
3633 # The compile supports this; do we have some C code for
3634 # which the warning should *not* appear?
3635 # We test the fourth argument because the third argument
3636 # could contain quotes, breaking the test.
3640 CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors"
3641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fvisibility=hidden " >&5
3642 $as_echo_n "checking whether -fvisibility=hidden ... " >&6; }
3643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3644 /* end confdefs.h. */
3647 if ac_fn_c_try_compile "$LINENO"; then :
3652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3653 $as_echo "no" >&6; }
3660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3661 $as_echo "yes" >&6; }
3662 can_add_to_cflags=no
3665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3667 CFLAGS="$save_CFLAGS"
3668 if test x"$can_add_to_cflags" = "xyes"
3670 V_CCOPT="$V_CCOPT -fvisibility=hidden"
3675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3676 $as_echo "no" >&6; }
3677 CFLAGS="$save_CFLAGS"
3680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3683 V_INCLS="$V_INCLS -I/usr/local/include"
3684 LDFLAGS="$LDFLAGS -L/usr/local/lib"
3690 # This is assumed either to be GCC or clang, both
3691 # of which use -Werror to force warnings to be errors.
3693 ac_lbl_cc_force_warning_errors=-Werror
3696 # Try to have the compiler default to hiding symbols,
3697 # so that only symbols explicitly exported with
3698 # PCAP_API will be visible outside (shared) libraries.
3701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -fvisibility=hidden option" >&5
3702 $as_echo_n "checking whether the compiler supports the -fvisibility=hidden option... " >&6; }
3703 save_CFLAGS="$CFLAGS"
3704 if expr "x-fvisibility=hidden" : "x-W.*" >/dev/null
3706 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -fvisibility=hidden"
3707 elif expr "x-fvisibility=hidden" : "x-f.*" >/dev/null
3709 CFLAGS="$CFLAGS -Werror -fvisibility=hidden"
3710 elif expr "x-fvisibility=hidden" : "x-m.*" >/dev/null
3712 CFLAGS="$CFLAGS -Werror -fvisibility=hidden"
3714 CFLAGS="$CFLAGS -fvisibility=hidden"
3716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3717 /* end confdefs.h. */
3727 if ac_fn_c_try_compile "$LINENO"; then :
3729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3730 $as_echo "yes" >&6; }
3731 can_add_to_cflags=yes
3733 # The compile supports this; do we have some C code for
3734 # which the warning should *not* appear?
3735 # We test the fourth argument because the third argument
3736 # could contain quotes, breaking the test.
3740 CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors"
3741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fvisibility=hidden " >&5
3742 $as_echo_n "checking whether -fvisibility=hidden ... " >&6; }
3743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3744 /* end confdefs.h. */
3747 if ac_fn_c_try_compile "$LINENO"; then :
3752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3753 $as_echo "no" >&6; }
3760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3761 $as_echo "yes" >&6; }
3762 can_add_to_cflags=no
3765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3767 CFLAGS="$save_CFLAGS"
3768 if test x"$can_add_to_cflags" = "xyes"
3770 V_CCOPT="$V_CCOPT -fvisibility=hidden"
3775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3776 $as_echo "no" >&6; }
3777 CFLAGS="$save_CFLAGS"
3780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3786 # HP C, which is what we presume we're using, doesn't
3787 # exit with a non-zero exit status if we hand it an
3788 # invalid -W flag, can't be forced to do so even with
3789 # +We, and doesn't handle GCC-style -W flags, so we
3790 # don't want to try using GCC-style -W flags.
3792 ac_lbl_cc_dont_try_gcc_dashW=yes
3797 # MIPS C, which is what we presume we're using, doesn't
3798 # necessarily exit with a non-zero exit status if we
3799 # hand it an invalid -W flag, can't be forced to do
3800 # so, and doesn't handle GCC-style -W flags, so we
3801 # don't want to try using GCC-style -W flags.
3803 ac_lbl_cc_dont_try_gcc_dashW=yes
3805 # It also, apparently, defaults to "char" being
3806 # unsigned, unlike most other C implementations;
3807 # I suppose we could say "signed char" whenever
3808 # we want to guarantee a signed "char", but let's
3809 # just force signed chars.
3811 # -xansi is normally the default, but the
3812 # configure script was setting it; perhaps -cckr
3813 # was the default in the Old Days. (Then again,
3814 # that would probably be for backwards compatibility
3815 # in the days when ANSI C was Shiny and New, i.e.
3816 # 1989 and the early '90's, so maybe we can just
3817 # drop support for those compilers.)
3819 # -g is equivalent to -g2, which turns off
3820 # optimization; we choose -g3, which generates
3821 # debugging information but doesn't turn off
3822 # optimization (even if the optimization would
3823 # cause inaccuracies in debugging).
3825 V_CCOPT="$V_CCOPT -xansi -signed -g3"
3830 # Presumed to be DEC OSF/1, Digital UNIX, or
3833 # The DEC C compiler, which is what we presume we're
3834 # using, doesn't exit with a non-zero exit status if we
3835 # hand it an invalid -W flag, can't be forced to do
3836 # so, and doesn't handle GCC-style -W flags, so we
3837 # don't want to try using GCC-style -W flags.
3839 ac_lbl_cc_dont_try_gcc_dashW=yes
3841 # -g is equivalent to -g2, which turns off
3842 # optimization; we choose -g3, which generates
3843 # debugging information but doesn't turn off
3844 # optimization (even if the optimization would
3845 # cause inaccuracies in debugging).
3847 V_CCOPT="$V_CCOPT -g3"
3852 # Assumed to be Sun C, which requires -errwarn to force
3853 # warnings to be treated as errors.
3855 ac_lbl_cc_force_warning_errors=-errwarn
3858 # Try to have the compiler default to hiding symbols,
3859 # so that only symbols explicitly exported with
3860 # PCAP_API will be visible outside (shared) libraries.
3863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -xldscope=hidden option" >&5
3864 $as_echo_n "checking whether the compiler supports the -xldscope=hidden option... " >&6; }
3865 save_CFLAGS="$CFLAGS"
3866 if expr "x-xldscope=hidden" : "x-W.*" >/dev/null
3868 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -xldscope=hidden"
3869 elif expr "x-xldscope=hidden" : "x-f.*" >/dev/null
3871 CFLAGS="$CFLAGS -Werror -xldscope=hidden"
3872 elif expr "x-xldscope=hidden" : "x-m.*" >/dev/null
3874 CFLAGS="$CFLAGS -Werror -xldscope=hidden"
3876 CFLAGS="$CFLAGS -xldscope=hidden"
3878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3879 /* end confdefs.h. */
3889 if ac_fn_c_try_compile "$LINENO"; then :
3891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3892 $as_echo "yes" >&6; }
3893 can_add_to_cflags=yes
3895 # The compile supports this; do we have some C code for
3896 # which the warning should *not* appear?
3897 # We test the fourth argument because the third argument
3898 # could contain quotes, breaking the test.
3902 CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors"
3903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -xldscope=hidden " >&5
3904 $as_echo_n "checking whether -xldscope=hidden ... " >&6; }
3905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3906 /* end confdefs.h. */
3909 if ac_fn_c_try_compile "$LINENO"; then :
3914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3915 $as_echo "no" >&6; }
3922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3923 $as_echo "yes" >&6; }
3924 can_add_to_cflags=no
3927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3929 CFLAGS="$save_CFLAGS"
3930 if test x"$can_add_to_cflags" = "xyes"
3932 V_CCOPT="$V_CCOPT -xldscope=hidden"
3937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3938 $as_echo "no" >&6; }
3939 CFLAGS="$save_CFLAGS"
3942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that Ultrix $CC hacks const in prototypes" >&5
3948 $as_echo_n "checking that Ultrix $CC hacks const in prototypes... " >&6; }
3949 if ${ac_cv_lbl_cc_const_proto+:} false; then :
3950 $as_echo_n "(cached) " >&6
3952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3953 /* end confdefs.h. */
3954 #include <sys/types.h>
3958 struct a { int b; };
3959 void c(const struct a *)
3964 if ac_fn_c_try_compile "$LINENO"; then :
3965 ac_cv_lbl_cc_const_proto=yes
3967 ac_cv_lbl_cc_const_proto=no
3969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_cc_const_proto" >&5
3973 $as_echo "$ac_cv_lbl_cc_const_proto" >&6; }
3974 if test $ac_cv_lbl_cc_const_proto = no ; then
3976 $as_echo "#define const /**/" >>confdefs.h
3981 V_CCOPT="$V_CCOPT -O"
3985 if test "$GCC" = yes ; then
3987 # On platforms where we build a shared library:
3989 # add options to generate position-independent code,
3990 # if necessary (it's the default in AIX and Darwin/macOS);
3992 # define option to set the soname of the shared library,
3993 # if the OS supports that;
3995 # add options to specify, at link time, a directory to
3996 # add to the run-time search path, if that's necessary.
3998 V_SHLIB_CMD="\$(CC)"
3999 V_SHLIB_OPT="-shared"
4005 freebsd*|netbsd*|openbsd*|dragonfly*|linux*|osf*)
4007 # Platforms where the linker is the GNU linker
4008 # or accepts command-line arguments like
4009 # those the GNU linker accepts.
4011 # Some instruction sets require -fPIC on some
4012 # operating systems. Check for them. If you
4013 # have a combination that requires it, add it
4028 V_SHLIB_CCOPT="$V_SHLIB_CCOPT $PIC_OPT"
4029 V_SONAME_OPT="-Wl,-soname,"
4030 V_RPATH_OPT="-Wl,-rpath,"
4034 V_SHLIB_CCOPT="$V_SHLIB_CCOPT -fpic"
4036 # XXX - this assumes GCC is using the HP linker,
4037 # rather than the GNU linker, and that the "+h"
4038 # option is used on all HP-UX platforms, both .sl
4041 V_SONAME_OPT="-Wl,+h,"
4043 # By default, directories specifed with -L
4044 # are added to the run-time search path, so
4045 # we don't add them in pcap-config.
4050 V_SHLIB_CCOPT="$V_SHLIB_CCOPT -fpic"
4052 # XXX - this assumes GCC is using the Sun linker,
4053 # rather than the GNU linker.
4055 V_SONAME_OPT="-Wl,-h,"
4056 V_RPATH_OPT="-Wl,-R,"
4061 # Set the appropriate compiler flags and, on platforms
4062 # where we build a shared library:
4064 # add options to generate position-independent code,
4065 # if necessary (it's the default in Darwin/macOS);
4067 # if we generate ".so" shared libraries, define the
4068 # appropriate options for building the shared library;
4070 # add options to specify, at link time, a directory to
4071 # add to the run-time search path, if that's necessary.
4073 # Note: spaces after V_SONAME_OPT are significant; on
4074 # some platforms the soname is passed with a GCC-like
4075 # "-Wl,-soname,{soname}" option, with the soname part
4076 # of the option, while on other platforms the C compiler
4077 # driver takes it as a regular option with the soname
4078 # following the option. The same applies to V_RPATH_OPT.
4083 V_SHLIB_CMD="\$(CC)"
4084 V_SHLIB_OPT="-G -bnoentry -bexpall"
4087 freebsd*|netbsd*|openbsd*|dragonfly*|linux*)
4091 V_SHLIB_CCOPT="$V_SHLIB_CCOPT -fpic"
4092 V_SHLIB_CMD="\$(CC)"
4093 V_SHLIB_OPT="-shared"
4094 V_SONAME_OPT="-Wl,-soname,"
4095 V_RPATH_OPT="-Wl,-rpath,"
4099 V_SHLIB_CCOPT="$V_SHLIB_CCOPT +z"
4100 V_SHLIB_CMD="\$(LD)"
4104 # By default, directories specifed with -L
4105 # are added to the run-time search path, so
4106 # we don't add them in pcap-config.
4112 # Presumed to be DEC OSF/1, Digital UNIX, or
4115 V_SHLIB_CMD="\$(CC)"
4116 V_SHLIB_OPT="-shared"
4117 V_SONAME_OPT="-soname "
4118 V_RPATH_OPT="-rpath "
4122 V_SHLIB_CCOPT="$V_SHLIB_CCOPT -Kpic"
4123 V_SHLIB_CMD="\$(CC)"
4131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
4132 $as_echo_n "checking for inline... " >&6; }
4133 save_CFLAGS="$CFLAGS"
4135 if ${ac_cv_lbl_inline+:} false; then :
4136 $as_echo_n "(cached) " >&6
4141 for ac_lbl_inline in inline __inline__ __inline
4143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4144 /* end confdefs.h. */
4145 #define inline $ac_lbl_inline
4146 static inline struct iltest *foo(void);
4152 static inline struct iltest *
4155 static struct iltest xxx;
4167 if ac_fn_c_try_compile "$LINENO"; then :
4168 ac_lbl_cc_inline=yes
4170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4171 if test "$ac_lbl_cc_inline" = yes ; then
4175 if test "$ac_lbl_cc_inline" = yes ; then
4176 ac_cv_lbl_inline=$ac_lbl_inline
4180 CFLAGS="$save_CFLAGS"
4181 if test ! -z "$ac_cv_lbl_inline" ; then
4182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_inline" >&5
4183 $as_echo "$ac_cv_lbl_inline" >&6; }
4185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4186 $as_echo "no" >&6; }
4189 cat >>confdefs.h <<_ACEOF
4190 #define inline $ac_cv_lbl_inline
4195 # Try to arrange for large file support.
4197 # Check whether --enable-largefile was given.
4198 if test "${enable_largefile+set}" = set; then :
4199 enableval=$enable_largefile;
4202 if test "$enable_largefile" != no; then
4204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4205 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4206 if ${ac_cv_sys_largefile_CC+:} false; then :
4207 $as_echo_n "(cached) " >&6
4209 ac_cv_sys_largefile_CC=no
4210 if test "$GCC" != yes; then
4213 # IRIX 6.2 and later do not support large files by default,
4214 # so use the C compiler's -n32 option if that helps.
4215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4216 /* end confdefs.h. */
4217 #include <sys/types.h>
4218 /* Check that off_t can represent 2**63 - 1 correctly.
4219 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4220 since some C++ compilers masquerading as C compilers
4221 incorrectly reject 9223372036854775807. */
4222 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4223 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4224 && LARGE_OFF_T % 2147483647 == 1)
4234 if ac_fn_c_try_compile "$LINENO"; then :
4237 rm -f core conftest.err conftest.$ac_objext
4239 if ac_fn_c_try_compile "$LINENO"; then :
4240 ac_cv_sys_largefile_CC=' -n32'; break
4242 rm -f core conftest.err conftest.$ac_objext
4246 rm -f conftest.$ac_ext
4249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4250 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4251 if test "$ac_cv_sys_largefile_CC" != no; then
4252 CC=$CC$ac_cv_sys_largefile_CC
4255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4256 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4257 if ${ac_cv_sys_file_offset_bits+:} false; then :
4258 $as_echo_n "(cached) " >&6
4261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4262 /* end confdefs.h. */
4263 #include <sys/types.h>
4264 /* Check that off_t can represent 2**63 - 1 correctly.
4265 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4266 since some C++ compilers masquerading as C compilers
4267 incorrectly reject 9223372036854775807. */
4268 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4269 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4270 && LARGE_OFF_T % 2147483647 == 1)
4280 if ac_fn_c_try_compile "$LINENO"; then :
4281 ac_cv_sys_file_offset_bits=no; break
4283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4285 /* end confdefs.h. */
4286 #define _FILE_OFFSET_BITS 64
4287 #include <sys/types.h>
4288 /* Check that off_t can represent 2**63 - 1 correctly.
4289 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4290 since some C++ compilers masquerading as C compilers
4291 incorrectly reject 9223372036854775807. */
4292 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4293 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4294 && LARGE_OFF_T % 2147483647 == 1)
4304 if ac_fn_c_try_compile "$LINENO"; then :
4305 ac_cv_sys_file_offset_bits=64; break
4307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4308 ac_cv_sys_file_offset_bits=unknown
4312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4313 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4314 case $ac_cv_sys_file_offset_bits in #(
4317 cat >>confdefs.h <<_ACEOF
4318 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4323 if test $ac_cv_sys_file_offset_bits = unknown; then
4324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4325 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4326 if ${ac_cv_sys_large_files+:} false; then :
4327 $as_echo_n "(cached) " >&6
4330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4331 /* end confdefs.h. */
4332 #include <sys/types.h>
4333 /* Check that off_t can represent 2**63 - 1 correctly.
4334 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4335 since some C++ compilers masquerading as C compilers
4336 incorrectly reject 9223372036854775807. */
4337 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4338 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4339 && LARGE_OFF_T % 2147483647 == 1)
4349 if ac_fn_c_try_compile "$LINENO"; then :
4350 ac_cv_sys_large_files=no; break
4352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4354 /* end confdefs.h. */
4355 #define _LARGE_FILES 1
4356 #include <sys/types.h>
4357 /* Check that off_t can represent 2**63 - 1 correctly.
4358 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4359 since some C++ compilers masquerading as C compilers
4360 incorrectly reject 9223372036854775807. */
4361 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4362 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4363 && LARGE_OFF_T % 2147483647 == 1)
4373 if ac_fn_c_try_compile "$LINENO"; then :
4374 ac_cv_sys_large_files=1; break
4376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4377 ac_cv_sys_large_files=unknown
4381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4382 $as_echo "$ac_cv_sys_large_files" >&6; }
4383 case $ac_cv_sys_large_files in #(
4386 cat >>confdefs.h <<_ACEOF
4387 #define _LARGE_FILES $ac_cv_sys_large_files
4397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
4398 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
4399 if ${ac_cv_sys_largefile_source+:} false; then :
4400 $as_echo_n "(cached) " >&6
4403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4404 /* end confdefs.h. */
4405 #include <sys/types.h> /* for off_t */
4410 int (*fp) (FILE *, off_t, int) = fseeko;
4411 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
4416 if ac_fn_c_try_link "$LINENO"; then :
4417 ac_cv_sys_largefile_source=no; break
4419 rm -f core conftest.err conftest.$ac_objext \
4420 conftest$ac_exeext conftest.$ac_ext
4421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4422 /* end confdefs.h. */
4423 #define _LARGEFILE_SOURCE 1
4424 #include <sys/types.h> /* for off_t */
4429 int (*fp) (FILE *, off_t, int) = fseeko;
4430 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
4435 if ac_fn_c_try_link "$LINENO"; then :
4436 ac_cv_sys_largefile_source=1; break
4438 rm -f core conftest.err conftest.$ac_objext \
4439 conftest$ac_exeext conftest.$ac_ext
4440 ac_cv_sys_largefile_source=unknown
4444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
4445 $as_echo "$ac_cv_sys_largefile_source" >&6; }
4446 case $ac_cv_sys_largefile_source in #(
4449 cat >>confdefs.h <<_ACEOF
4450 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
4456 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
4457 # in glibc 2.1.3, but that breaks too many other things.
4458 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
4459 if test $ac_cv_sys_largefile_source != unknown; then
4461 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
4467 ac_cpp='$CPP $CPPFLAGS'
4468 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4469 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4470 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4472 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4473 # On Suns, sometimes $CPP names a directory.
4474 if test -n "$CPP" && test -d "$CPP"; then
4477 if test -z "$CPP"; then
4478 if ${ac_cv_prog_CPP+:} false; then :
4479 $as_echo_n "(cached) " >&6
4481 # Double quotes because CPP needs to be expanded
4482 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4485 for ac_c_preproc_warn_flag in '' yes
4487 # Use a header file that comes with gcc, so configuring glibc
4488 # with a fresh cross-compiler works.
4489 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4490 # <limits.h> exists even on freestanding compilers.
4491 # On the NeXT, cc -E runs the code through the compiler's parser,
4492 # not just through cpp. "Syntax error" is here to catch this case.
4493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4494 /* end confdefs.h. */
4496 # include <limits.h>
4498 # include <assert.h>
4502 if ac_fn_c_try_cpp "$LINENO"; then :
4505 # Broken: fails on valid input.
4508 rm -f conftest.err conftest.i conftest.$ac_ext
4510 # OK, works on sane cases. Now check whether nonexistent headers
4511 # can be detected and how.
4512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4513 /* end confdefs.h. */
4514 #include <ac_nonexistent.h>
4516 if ac_fn_c_try_cpp "$LINENO"; then :
4517 # Broken: success on invalid input.
4520 # Passes both tests.
4524 rm -f conftest.err conftest.i conftest.$ac_ext
4527 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4528 rm -f conftest.i conftest.err conftest.
$ac_ext
4529 if $ac_preproc_ok; then :
4541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4542 $as_echo "$CPP" >&6; }
4544 for ac_c_preproc_warn_flag
in '' yes
4546 # Use a header file that comes with gcc, so configuring glibc
4547 # with a fresh cross-compiler works.
4548 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4549 # <limits.h> exists even on freestanding compilers.
4550 # On the NeXT, cc -E runs the code through the compiler's parser,
4551 # not just through cpp. "Syntax error" is here to catch this case.
4552 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4553 /* end confdefs.h. */
4555 # include <limits.h>
4557 # include <assert.h>
4561 if ac_fn_c_try_cpp
"$LINENO"; then :
4564 # Broken: fails on valid input.
4567 rm -f conftest.err conftest.i conftest.
$ac_ext
4569 # OK, works on sane cases. Now check whether nonexistent headers
4570 # can be detected and how.
4571 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4572 /* end confdefs.h. */
4573 #include <ac_nonexistent.h>
4575 if ac_fn_c_try_cpp
"$LINENO"; then :
4576 # Broken: success on invalid input.
4579 # Passes both tests.
4583 rm -f conftest.err conftest.i conftest.
$ac_ext
4586 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4587 rm -f conftest.i conftest.err conftest.
$ac_ext
4588 if $ac_preproc_ok; then :
4591 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4592 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4593 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
4594 See \`config.log' for more details" "$LINENO" 5; }
4598 ac_cpp
='$CPP $CPPFLAGS'
4599 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4600 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4601 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4605 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4606 if ${ac_cv_path_GREP+:} false
; then :
4607 $as_echo_n "(cached) " >&6
4609 if test -z "$GREP"; then
4610 ac_path_GREP_found
=false
4611 # Loop through the user's path and test for each of PROGNAME-LIST
4612 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4613 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4616 test -z "$as_dir" && as_dir
=.
4617 for ac_prog
in grep ggrep
; do
4618 for ac_exec_ext
in '' $ac_executable_extensions; do
4619 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4620 as_fn_executable_p
"$ac_path_GREP" ||
continue
4621 # Check for GNU ac_path_GREP and select it if it is found.
4622 # Check for GNU $ac_path_GREP
4623 case `"$ac_path_GREP" --version 2>&1` in
4625 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4628 $as_echo_n 0123456789 >"conftest.in"
4631 cat "conftest.in" "conftest.in" >"conftest.tmp"
4632 mv "conftest.tmp" "conftest.in"
4633 cp "conftest.in" "conftest.nl"
4634 $as_echo 'GREP' >> "conftest.nl"
4635 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4636 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4637 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4638 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4639 # Best one so far, save it but keep looking for a better one
4640 ac_cv_path_GREP
="$ac_path_GREP"
4641 ac_path_GREP_max
=$ac_count
4643 # 10*(2^10) chars as input seems more than enough
4644 test $ac_count -gt 10 && break
4646 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4649 $ac_path_GREP_found && break 3
4654 if test -z "$ac_cv_path_GREP"; then
4655 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4658 ac_cv_path_GREP
=$GREP
4662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4663 $as_echo "$ac_cv_path_GREP" >&6; }
4664 GREP
="$ac_cv_path_GREP"
4667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4668 $as_echo_n "checking for egrep... " >&6; }
4669 if ${ac_cv_path_EGREP+:} false
; then :
4670 $as_echo_n "(cached) " >&6
4672 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4673 then ac_cv_path_EGREP
="$GREP -E"
4675 if test -z "$EGREP"; then
4676 ac_path_EGREP_found
=false
4677 # Loop through the user's path and test for each of PROGNAME-LIST
4678 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4679 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4682 test -z "$as_dir" && as_dir
=.
4683 for ac_prog
in egrep; do
4684 for ac_exec_ext
in '' $ac_executable_extensions; do
4685 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4686 as_fn_executable_p
"$ac_path_EGREP" ||
continue
4687 # Check for GNU ac_path_EGREP and select it if it is found.
4688 # Check for GNU $ac_path_EGREP
4689 case `"$ac_path_EGREP" --version 2>&1` in
4691 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4694 $as_echo_n 0123456789 >"conftest.in"
4697 cat "conftest.in" "conftest.in" >"conftest.tmp"
4698 mv "conftest.tmp" "conftest.in"
4699 cp "conftest.in" "conftest.nl"
4700 $as_echo 'EGREP' >> "conftest.nl"
4701 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4702 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4703 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4704 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4705 # Best one so far, save it but keep looking for a better one
4706 ac_cv_path_EGREP
="$ac_path_EGREP"
4707 ac_path_EGREP_max
=$ac_count
4709 # 10*(2^10) chars as input seems more than enough
4710 test $ac_count -gt 10 && break
4712 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4715 $ac_path_EGREP_found && break 3
4720 if test -z "$ac_cv_path_EGREP"; then
4721 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4724 ac_cv_path_EGREP
=$EGREP
4729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4730 $as_echo "$ac_cv_path_EGREP" >&6; }
4731 EGREP
="$ac_cv_path_EGREP"
4734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4735 $as_echo_n "checking for ANSI C header files... " >&6; }
4736 if ${ac_cv_header_stdc+:} false
; then :
4737 $as_echo_n "(cached) " >&6
4739 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4740 /* end confdefs.h. */
4754 if ac_fn_c_try_compile
"$LINENO"; then :
4755 ac_cv_header_stdc
=yes
4757 ac_cv_header_stdc
=no
4759 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4761 if test $ac_cv_header_stdc = yes; then
4762 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4763 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4764 /* end confdefs.h. */
4768 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4769 $EGREP "memchr" >/dev
/null
2>&1; then :
4772 ac_cv_header_stdc
=no
4778 if test $ac_cv_header_stdc = yes; then
4779 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4780 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4781 /* end confdefs.h. */
4785 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4786 $EGREP "free" >/dev
/null
2>&1; then :
4789 ac_cv_header_stdc
=no
4795 if test $ac_cv_header_stdc = yes; then
4796 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4797 if test "$cross_compiling" = yes; then :
4800 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4801 /* end confdefs.h. */
4804 #if ((' ' & 0x0FF) == 0x020)
4805 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4806 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4808 # define ISLOWER(c) \
4809 (('a' <= (c) && (c) <= 'i') \
4810 || ('j' <= (c) && (c) <= 'r') \
4811 || ('s' <= (c) && (c) <= 'z'))
4812 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4815 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4820 for (i = 0; i < 256; i++)
4821 if (XOR (islower (i), ISLOWER (i))
4822 || toupper (i) != TOUPPER (i))
4827 if ac_fn_c_try_run
"$LINENO"; then :
4830 ac_cv_header_stdc
=no
4832 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4833 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4839 $as_echo "$ac_cv_header_stdc" >&6; }
4840 if test $ac_cv_header_stdc = yes; then
4842 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4846 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4847 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4848 inttypes.h stdint.h unistd.h
4850 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4851 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4853 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
4854 cat >>confdefs.h
<<_ACEOF
4855 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4863 for ac_header
in sys
/ioccom.h sys
/sockio.h
4865 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4866 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4867 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
4868 cat >>confdefs.h
<<_ACEOF
4869 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4876 for ac_header
in netpacket
/packet.h
4878 ac_fn_c_check_header_mongrel
"$LINENO" "netpacket/packet.h" "ac_cv_header_netpacket_packet_h" "$ac_includes_default"
4879 if test "x$ac_cv_header_netpacket_packet_h" = xyes
; then :
4880 cat >>confdefs.h
<<_ACEOF
4881 #define HAVE_NETPACKET_PACKET_H 1
4888 for ac_header
in net
/pfvar.h
4890 ac_fn_c_check_header_compile
"$LINENO" "net/pfvar.h" "ac_cv_header_net_pfvar_h" "#include <sys/types.h>
4891 #include <sys/socket.h>
4894 if test "x$ac_cv_header_net_pfvar_h" = xyes
; then :
4895 cat >>confdefs.h
<<_ACEOF
4896 #define HAVE_NET_PFVAR_H 1
4903 if test "$ac_cv_header_net_pfvar_h" = yes; then
4905 # Check for various PF actions.
4907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether net/pfvar.h defines PF_NAT through PF_NORDR" >&5
4908 $as_echo_n "checking whether net/pfvar.h defines PF_NAT through PF_NORDR... " >&6; }
4909 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4910 /* end confdefs.h. */
4911 #include <sys/types.h>
4912 #include <sys/socket.h>
4914 #include <net/pfvar.h>
4918 return PF_NAT+PF_NONAT+PF_BINAT+PF_NOBINAT+PF_RDR+PF_NORDR;
4923 if ac_fn_c_try_compile
"$LINENO"; then :
4925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4926 $as_echo "yes" >&6; }
4928 $as_echo "#define HAVE_PF_NAT_THROUGH_PF_NORDR 1" >>confdefs.h
4932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4933 $as_echo "no" >&6; }
4935 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4941 # linux/if_bonding.h requires sys/socket.h.
4943 for ac_header
in linux
/sockios.h linux
/if_bonding.h
4945 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4946 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "
4947 #include <sys/socket.h>
4948 #include <linux/if.h>
4951 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
4952 cat >>confdefs.h
<<_ACEOF
4953 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4962 # Check for the eventfd header.
4964 for ac_header
in sys
/eventfd.h
4966 ac_fn_c_check_header_mongrel
"$LINENO" "sys/eventfd.h" "ac_cv_header_sys_eventfd_h" "$ac_includes_default"
4967 if test "x$ac_cv_header_sys_eventfd_h" = xyes
; then :
4968 cat >>confdefs.h
<<_ACEOF
4969 #define HAVE_SYS_EVENTFD_H 1
4979 if test "$GCC" = yes ; then
4980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI ioctl definitions" >&5
4981 $as_echo_n "checking for ANSI ioctl definitions... " >&6; }
4982 if ${ac_cv_lbl_gcc_fixincludes+:} false
; then :
4983 $as_echo_n "(cached) " >&6
4985 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4986 /* end confdefs.h. */
4988 * This generates a "duplicate case value" when fixincludes
4991 # include <sys/types.h>
4992 # include <sys/time.h>
4993 # include <sys/ioctl.h>
4994 # ifdef HAVE_SYS_IOCCOM_H
4995 # include <sys/ioccom.h>
5008 if ac_fn_c_try_compile
"$LINENO"; then :
5009 ac_cv_lbl_gcc_fixincludes
=yes
5011 ac_cv_lbl_gcc_fixincludes
=no
5013 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_gcc_fixincludes" >&5
5017 $as_echo "$ac_cv_lbl_gcc_fixincludes" >&6; }
5018 if test $ac_cv_lbl_gcc_fixincludes = no
; then
5019 # Don't cache failure
5020 unset ac_cv_lbl_gcc_fixincludes
5021 as_fn_error $?
"see the INSTALL for more info" "$LINENO" 5
5025 for ac_func
in strerror strerror_r strerror_s
5027 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5028 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
5029 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
5030 cat >>confdefs.h
<<_ACEOF
5031 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5039 # Thanks, IBM, for not providing vsyslog() in AIX!
5041 for ac_func
in vsyslog
5043 ac_fn_c_check_func
"$LINENO" "vsyslog" "ac_cv_func_vsyslog"
5044 if test "x$ac_cv_func_vsyslog" = xyes
; then :
5045 cat >>confdefs.h
<<_ACEOF
5046 #define HAVE_VSYSLOG 1
5054 for ac_func
in vsnprintf snprintf
5056 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5057 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
5058 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
5059 cat >>confdefs.h
<<_ACEOF
5060 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5068 if test $needsnprintf = yes; then
5069 case " $LIBOBJS " in
5070 *" snprintf.$ac_objext "* ) ;;
5071 *) LIBOBJS
="$LIBOBJS snprintf.$ac_objext"
5078 for ac_func
in strlcat
5080 ac_fn_c_check_func
"$LINENO" "strlcat" "ac_cv_func_strlcat"
5081 if test "x$ac_cv_func_strlcat" = xyes
; then :
5082 cat >>confdefs.h
<<_ACEOF
5083 #define HAVE_STRLCAT 1
5091 if test $needstrlcat = yes; then
5092 case " $LIBOBJS " in
5093 *" strlcat.$ac_objext "* ) ;;
5094 *) LIBOBJS
="$LIBOBJS strlcat.$ac_objext"
5101 for ac_func
in strlcpy
5103 ac_fn_c_check_func
"$LINENO" "strlcpy" "ac_cv_func_strlcpy"
5104 if test "x$ac_cv_func_strlcpy" = xyes
; then :
5105 cat >>confdefs.h
<<_ACEOF
5106 #define HAVE_STRLCPY 1
5114 if test $needstrlcpy = yes; then
5115 case " $LIBOBJS " in
5116 *" strlcpy.$ac_objext "* ) ;;
5117 *) LIBOBJS
="$LIBOBJS strlcpy.$ac_objext"
5124 for ac_func
in strtok_r
5126 ac_fn_c_check_func
"$LINENO" "strtok_r" "ac_cv_func_strtok_r"
5127 if test "x$ac_cv_func_strtok_r" = xyes
; then :
5128 cat >>confdefs.h
<<_ACEOF
5129 #define HAVE_STRTOK_R 1
5137 if test $needstrtok_r = yes; then
5138 case " $LIBOBJS " in
5139 *" strtok_r.$ac_objext "* ) ;;
5140 *) LIBOBJS
="$LIBOBJS strtok_r.$ac_objext"
5147 # Do we have ffs(), and is it declared in <strings.h>?
5151 ac_fn_c_check_func
"$LINENO" "ffs" "ac_cv_func_ffs"
5152 if test "x$ac_cv_func_ffs" = xyes
; then :
5153 cat >>confdefs.h
<<_ACEOF
5160 if test "$ac_cv_func_ffs" = yes; then
5162 # We have ffs(); is it declared in <strings.h>?
5164 # This test fails if we don't have <strings.h> or if we do
5165 # but it doesn't declare ffs().
5167 ac_fn_c_check_decl
"$LINENO" "ffs" "ac_cv_have_decl_ffs" "
5168 #include <strings.h>
5171 if test "x$ac_cv_have_decl_ffs" = xyes
; then :
5174 $as_echo "#define STRINGS_H_DECLARES_FFS /**/" >>confdefs.h
5182 # Do this before checking for ether_hostton(), as it's a
5183 # "getaddrinfo()-ish function".
5187 # Most operating systems have getaddrinfo() in the default searched
5188 # libraries (i.e. libc). Check there first.
5190 ac_fn_c_check_func
"$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
5191 if test "x$ac_cv_func_getaddrinfo" = xyes
; then :
5196 # Not found in the standard system libraries.
5197 # Try libsocket, which requires libnsl.
5199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo in -lsocket" >&5
5200 $as_echo_n "checking for getaddrinfo in -lsocket... " >&6; }
5201 if ${ac_cv_lib_socket_getaddrinfo+:} false
; then :
5202 $as_echo_n "(cached) " >&6
5204 ac_check_lib_save_LIBS
=$LIBS
5205 LIBS
="-lsocket -lnsl $LIBS"
5206 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5207 /* end confdefs.h. */
5209 /* Override any GCC internal prototype to avoid an error.
5210 Use char because int might match the return type of a GCC
5211 builtin and then its argument prototype would still apply. */
5215 char getaddrinfo ();
5219 return getaddrinfo ();
5224 if ac_fn_c_try_link
"$LINENO"; then :
5225 ac_cv_lib_socket_getaddrinfo
=yes
5227 ac_cv_lib_socket_getaddrinfo
=no
5229 rm -f core conftest.err conftest.
$ac_objext \
5230 conftest
$ac_exeext conftest.
$ac_ext
5231 LIBS
=$ac_check_lib_save_LIBS
5233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_getaddrinfo" >&5
5234 $as_echo "$ac_cv_lib_socket_getaddrinfo" >&6; }
5235 if test "x$ac_cv_lib_socket_getaddrinfo" = xyes
; then :
5238 # OK, we found it in libsocket.
5240 LIBS
="-lsocket -lnsl $LIBS"
5245 # We didn't find it.
5247 as_fn_error $?
"getaddrinfo is required, but wasn't found" "$LINENO" 5
5253 # OK, do we have recvmsg() in libxnet?
5254 # We also link with libsocket and libnsl.
5256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recvmsg in -lxnet" >&5
5257 $as_echo_n "checking for recvmsg in -lxnet... " >&6; }
5258 if ${ac_cv_lib_xnet_recvmsg+:} false
; then :
5259 $as_echo_n "(cached) " >&6
5261 ac_check_lib_save_LIBS
=$LIBS
5262 LIBS
="-lxnet -lsocket -lnsl $LIBS"
5263 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5264 /* end confdefs.h. */
5266 /* Override any GCC internal prototype to avoid an error.
5267 Use char because int might match the return type of a GCC
5268 builtin and then its argument prototype would still apply. */
5281 if ac_fn_c_try_link
"$LINENO"; then :
5282 ac_cv_lib_xnet_recvmsg
=yes
5284 ac_cv_lib_xnet_recvmsg
=no
5286 rm -f core conftest.err conftest.
$ac_objext \
5287 conftest
$ac_exeext conftest.
$ac_ext
5288 LIBS
=$ac_check_lib_save_LIBS
5290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xnet_recvmsg" >&5
5291 $as_echo "$ac_cv_lib_xnet_recvmsg" >&6; }
5292 if test "x$ac_cv_lib_xnet_recvmsg" = xyes
; then :
5295 # Yes - link with it as well.
5304 # DLPI needs putmsg under HPUX so test for -lstr while we're at it
5305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing putmsg" >&5
5306 $as_echo_n "checking for library containing putmsg... " >&6; }
5307 if ${ac_cv_search_putmsg+:} false
; then :
5308 $as_echo_n "(cached) " >&6
5310 ac_func_search_save_LIBS
=$LIBS
5311 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5312 /* end confdefs.h. */
5314 /* Override any GCC internal prototype to avoid an error.
5315 Use char because int might match the return type of a GCC
5316 builtin and then its argument prototype would still apply. */
5329 for ac_lib
in '' str
; do
5330 if test -z "$ac_lib"; then
5331 ac_res
="none required"
5334 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
5336 if ac_fn_c_try_link
"$LINENO"; then :
5337 ac_cv_search_putmsg
=$ac_res
5339 rm -f core conftest.err conftest.
$ac_objext \
5341 if ${ac_cv_search_putmsg+:} false
; then :
5345 if ${ac_cv_search_putmsg+:} false
; then :
5348 ac_cv_search_putmsg
=no
5351 LIBS
=$ac_func_search_save_LIBS
5353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_putmsg" >&5
5354 $as_echo "$ac_cv_search_putmsg" >&6; }
5355 ac_res
=$ac_cv_search_putmsg
5356 if test "$ac_res" != no
; then :
5357 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
5364 # Check for reentrant versions of getnetbyname_r(), as provided by
5365 # Linux (glibc), Solaris/IRIX, and AIX (with three different APIs!).
5366 # If we don't find one, we just use getnetbyname(), which uses
5367 # thread-specific data on many platforms, but doesn't use it on
5368 # NetBSD or OpenBSD, and may not use it on older versions of other
5371 # Only do the check if we have a declaration of getnetbyname_r();
5372 # without it, we can't check which API it has. (We assume that
5373 # if there's a declaration, it has a prototype, so that the API
5376 ac_fn_c_check_decl
"$LINENO" "getnetbyname_r" "ac_cv_have_decl_getnetbyname_r" "#include <netdb.h>
5378 if test "x$ac_cv_have_decl_getnetbyname_r" = xyes
; then :
5380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the Linux getnetbyname_r()" >&5
5381 $as_echo_n "checking for the Linux getnetbyname_r()... " >&6; }
5382 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5383 /* end confdefs.h. */
5389 struct netent netent_buf;
5391 struct netent *resultp;
5394 return getnetbyname_r((const char *)0, &netent_buf, buf, sizeof buf, &resultp, &h_errnoval);
5400 if ac_fn_c_try_link
"$LINENO"; then :
5402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5403 $as_echo "yes" >&6; }
5405 $as_echo "#define HAVE_LINUX_GETNETBYNAME_R 1" >>confdefs.h
5410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5411 $as_echo "no" >&6; }
5413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Solaris/IRIX getnetbyname_r()" >&5
5414 $as_echo_n "checking for Solaris/IRIX getnetbyname_r()... " >&6; }
5415 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5416 /* end confdefs.h. */
5422 struct netent netent_buf;
5425 return getnetbyname_r((const char *)0, &netent_buf, buf, (int)sizeof buf) != NULL;
5431 if ac_fn_c_try_link
"$LINENO"; then :
5433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5434 $as_echo "yes" >&6; }
5436 $as_echo "#define HAVE_SOLARIS_IRIX_GETNETBYNAME_R 1" >>confdefs.h
5441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5442 $as_echo "no" >&6; }
5444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AIX getnetbyname_r()" >&5
5445 $as_echo_n "checking for AIX getnetbyname_r()... " >&6; }
5446 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5447 /* end confdefs.h. */
5453 struct netent netent_buf;
5454 struct netent_data net_data;
5456 return getnetbyname_r((const char *)0, &netent_buf, &net_data);
5462 if ac_fn_c_try_link
"$LINENO"; then :
5464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5465 $as_echo "yes" >&6; }
5467 $as_echo "#define HAVE_AIX_GETNETBYNAME_R 1" >>confdefs.h
5472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5473 $as_echo "no" >&6; }
5476 rm -f core conftest.err conftest.
$ac_objext \
5477 conftest
$ac_exeext conftest.
$ac_ext
5480 rm -f core conftest.err conftest.
$ac_objext \
5481 conftest
$ac_exeext conftest.
$ac_ext
5484 rm -f core conftest.err conftest.
$ac_objext \
5485 conftest
$ac_exeext conftest.
$ac_ext
5491 # Check for reentrant versions of getprotobyname_r(), as provided by
5492 # Linux (glibc), Solaris/IRIX, and AIX (with three different APIs!).
5493 # If we don't find one, we just use getprotobyname(), which uses
5494 # thread-specific data on many platforms, but doesn't use it on
5495 # NetBSD or OpenBSD, and may not use it on older versions of other
5498 # Only do the check if we have a declaration of getprotobyname_r();
5499 # without it, we can't check which API it has. (We assume that
5500 # if there's a declaration, it has a prototype, so that the API
5503 ac_fn_c_check_decl
"$LINENO" "getprotobyname_r" "ac_cv_have_decl_getprotobyname_r" "#include <netdb.h>
5505 if test "x$ac_cv_have_decl_getprotobyname_r" = xyes
; then :
5507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the Linux getprotobyname_r()" >&5
5508 $as_echo_n "checking for the Linux getprotobyname_r()... " >&6; }
5509 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5510 /* end confdefs.h. */
5516 struct protoent protoent_buf;
5518 struct protoent *resultp;
5520 return getprotobyname_r((const char *)0, &protoent_buf, buf, sizeof buf, &resultp);
5526 if ac_fn_c_try_link
"$LINENO"; then :
5528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5529 $as_echo "yes" >&6; }
5531 $as_echo "#define HAVE_LINUX_GETPROTOBYNAME_R 1" >>confdefs.h
5536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5537 $as_echo "no" >&6; }
5539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Solaris/IRIX getprotobyname_r()" >&5
5540 $as_echo_n "checking for Solaris/IRIX getprotobyname_r()... " >&6; }
5541 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5542 /* end confdefs.h. */
5548 struct protoent protoent_buf;
5551 return getprotobyname_r((const char *)0, &protoent_buf, buf, (int)sizeof buf) != NULL;
5557 if ac_fn_c_try_link
"$LINENO"; then :
5559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5560 $as_echo "yes" >&6; }
5562 $as_echo "#define HAVE_SOLARIS_IRIX_GETPROTOBYNAME_R 1" >>confdefs.h
5567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5568 $as_echo "no" >&6; }
5570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AIX getprotobyname_r()" >&5
5571 $as_echo_n "checking for AIX getprotobyname_r()... " >&6; }
5572 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5573 /* end confdefs.h. */
5579 struct protoent protoent_buf;
5580 struct protoent_data proto_data;
5582 return getprotobyname_r((const char *)0, &protoent_buf, &proto_data);
5588 if ac_fn_c_try_link
"$LINENO"; then :
5590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5591 $as_echo "yes" >&6; }
5593 $as_echo "#define HAVE_AIX_GETPROTOBYNAME_R 1" >>confdefs.h
5598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5599 $as_echo "no" >&6; }
5602 rm -f core conftest.err conftest.
$ac_objext \
5603 conftest
$ac_exeext conftest.
$ac_ext
5606 rm -f core conftest.err conftest.
$ac_objext \
5607 conftest
$ac_exeext conftest.
$ac_ext
5610 rm -f core conftest.err conftest.
$ac_objext \
5611 conftest
$ac_exeext conftest.
$ac_ext
5617 # You are in a twisty little maze of UN*Xes, all different.
5618 # Some might not have ether_hostton().
5619 # Some might have it and declare it in <net/ethernet.h>.
5620 # Some might have it and declare it in <netinet/ether.h>
5621 # Some might have it and declare it in <sys/ethernet.h>.
5622 # Some might have it and declare it in <arpa/inet.h>.
5623 # Some might have it and declare it in <netinet/if_ether.h>.
5624 # Some might have it and not declare it in any header file.
5626 # Before you is a C compiler.
5628 for ac_func
in ether_hostton
5630 ac_fn_c_check_func
"$LINENO" "ether_hostton" "ac_cv_func_ether_hostton"
5631 if test "x$ac_cv_func_ether_hostton" = xyes
; then :
5632 cat >>confdefs.h
<<_ACEOF
5633 #define HAVE_ETHER_HOSTTON 1
5639 if test "$ac_cv_func_ether_hostton" = yes; then
5641 # OK, we have ether_hostton(). Is it declared in <net/ethernet.h>?
5643 # This test fails if we don't have <net/ethernet.h> or if we do
5644 # but it doesn't declare ether_hostton().
5646 ac_fn_c_check_decl
"$LINENO" "ether_hostton" "ac_cv_have_decl_ether_hostton" "
5647 #include <net/ethernet.h>
5650 if test "x$ac_cv_have_decl_ether_hostton" = xyes
; then :
5653 $as_echo "#define NET_ETHERNET_H_DECLARES_ETHER_HOSTTON /**/" >>confdefs.h
5661 if test "$ac_cv_have_decl_ether_hostton" != yes; then
5663 # No, how about <netinet/ether.h>, as on Linux?
5665 # This test fails if we don't have <netinet/ether.h>
5666 # or if we do but it doesn't declare ether_hostton().
5668 # Unset ac_cv_have_decl_ether_hostton so we don't
5669 # treat the previous failure as a cached value and
5670 # suppress the next test.
5672 unset ac_cv_have_decl_ether_hostton
5673 ac_fn_c_check_decl
"$LINENO" "ether_hostton" "ac_cv_have_decl_ether_hostton" "
5674 #include <netinet/ether.h>
5677 if test "x$ac_cv_have_decl_ether_hostton" = xyes
; then :
5680 $as_echo "#define NETINET_ETHER_H_DECLARES_ETHER_HOSTTON /**/" >>confdefs.h
5689 if test "$ac_cv_have_decl_ether_hostton" != yes; then
5691 # No, how about <sys/ethernet.h>, as on Solaris 10
5694 # This test fails if we don't have <sys/ethernet.h>
5695 # or if we do but it doesn't declare ether_hostton().
5697 # Unset ac_cv_have_decl_ether_hostton so we don't
5698 # treat the previous failure as a cached value and
5699 # suppress the next test.
5701 unset ac_cv_have_decl_ether_hostton
5702 ac_fn_c_check_decl
"$LINENO" "ether_hostton" "ac_cv_have_decl_ether_hostton" "
5703 #include <sys/ethernet.h>
5706 if test "x$ac_cv_have_decl_ether_hostton" = xyes
; then :
5709 $as_echo "#define SYS_ETHERNET_H_DECLARES_ETHER_HOSTTON /**/" >>confdefs.h
5718 if test "$ac_cv_have_decl_ether_hostton" != yes; then
5720 # No, how about <arpa/inet.h>, as in AIX?
5722 # This test fails if we don't have <arpa/inet.h>
5723 # (if we have ether_hostton(), we should have
5724 # networking, and if we have networking, we should
5725 # have <arapa/inet.h>) or if we do but it doesn't
5726 # declare ether_hostton().
5728 # Unset ac_cv_have_decl_ether_hostton so we don't
5729 # treat the previous failure as a cached value and
5730 # suppress the next test.
5732 unset ac_cv_have_decl_ether_hostton
5733 ac_fn_c_check_decl
"$LINENO" "ether_hostton" "ac_cv_have_decl_ether_hostton" "
5734 #include <arpa/inet.h>
5737 if test "x$ac_cv_have_decl_ether_hostton" = xyes
; then :
5740 $as_echo "#define ARPA_INET_H_DECLARES_ETHER_HOSTTON /**/" >>confdefs.h
5749 if test "$ac_cv_have_decl_ether_hostton" != yes; then
5751 # No, how about <netinet/if_ether.h>?
5752 # On some platforms, it requires <net/if.h> and
5753 # <netinet/in.h>, and we always include it with
5754 # both of them, so test it with both of them.
5756 # This test fails if we don't have <netinet/if_ether.h>
5757 # and the headers we include before it, or if we do but
5758 # <netinet/if_ether.h> doesn't declare ether_hostton().
5760 # Unset ac_cv_have_decl_ether_hostton so we don't
5761 # treat the previous failure as a cached value and
5762 # suppress the next test.
5764 unset ac_cv_have_decl_ether_hostton
5765 ac_fn_c_check_decl
"$LINENO" "ether_hostton" "ac_cv_have_decl_ether_hostton" "
5766 #include <sys/types.h>
5767 #include <sys/socket.h>
5769 #include <netinet/in.h>
5770 #include <netinet/if_ether.h>
5773 if test "x$ac_cv_have_decl_ether_hostton" = xyes
; then :
5776 $as_echo "#define NETINET_IF_ETHER_H_DECLARES_ETHER_HOSTTON /**/" >>confdefs.h
5783 # After all that, is ether_hostton() declared?
5785 if test "$ac_cv_have_decl_ether_hostton" = yes; then
5790 $as_echo "#define HAVE_DECL_ETHER_HOSTTON 1" >>confdefs.h
5794 # No, we'll have to declare it ourselves.
5795 # Do we have "struct ether_addr" if we include
5796 # <netinet/if_ether.h>?
5798 ac_fn_c_check_type
"$LINENO" "struct ether_addr" "ac_cv_type_struct_ether_addr" "
5799 #include <sys/types.h>
5800 #include <sys/socket.h>
5802 #include <netinet/in.h>
5803 #include <netinet/if_ether.h>
5806 if test "x$ac_cv_type_struct_ether_addr" = xyes
; then :
5808 cat >>confdefs.h
<<_ACEOF
5809 #define HAVE_STRUCT_ETHER_ADDR 1
5819 # For various things that might use pthreads.
5821 ac_fn_c_check_header_mongrel
"$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
5822 if test "x$ac_cv_header_pthread_h" = xyes
; then :
5825 # OK, we have pthread.h. Do we have pthread_create in the
5828 ac_fn_c_check_func
"$LINENO" "pthread_create" "ac_cv_func_pthread_create"
5829 if test "x$ac_cv_func_pthread_create" = xyes
; then :
5834 ac_lbl_have_pthreads
="found"
5839 # No - do we have it in -lpthreads?
5841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthreads" >&5
5842 $as_echo_n "checking for pthread_create in -lpthreads... " >&6; }
5843 if ${ac_cv_lib_pthreads_pthread_create+:} false
; then :
5844 $as_echo_n "(cached) " >&6
5846 ac_check_lib_save_LIBS
=$LIBS
5847 LIBS
="-lpthreads $LIBS"
5848 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5849 /* end confdefs.h. */
5851 /* Override any GCC internal prototype to avoid an error.
5852 Use char because int might match the return type of a GCC
5853 builtin and then its argument prototype would still apply. */
5857 char pthread_create ();
5861 return pthread_create ();
5866 if ac_fn_c_try_link
"$LINENO"; then :
5867 ac_cv_lib_pthreads_pthread_create
=yes
5869 ac_cv_lib_pthreads_pthread_create
=no
5871 rm -f core conftest.err conftest.
$ac_objext \
5872 conftest
$ac_exeext conftest.
$ac_ext
5873 LIBS
=$ac_check_lib_save_LIBS
5875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_create" >&5
5876 $as_echo "$ac_cv_lib_pthreads_pthread_create" >&6; }
5877 if test "x$ac_cv_lib_pthreads_pthread_create" = xyes
; then :
5880 # Yes - add -lpthreads.
5882 ac_lbl_have_pthreads
="found"
5883 PTHREAD_LIBS
="$PTHREAD_LIBS -lpthreads"
5888 # No - do we have it in -lpthread?
5890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
5891 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
5892 if ${ac_cv_lib_pthread_pthread_create+:} false
; then :
5893 $as_echo_n "(cached) " >&6
5895 ac_check_lib_save_LIBS
=$LIBS
5896 LIBS
="-lpthread $LIBS"
5897 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5898 /* end confdefs.h. */
5900 /* Override any GCC internal prototype to avoid an error.
5901 Use char because int might match the return type of a GCC
5902 builtin and then its argument prototype would still apply. */
5906 char pthread_create ();
5910 return pthread_create ();
5915 if ac_fn_c_try_link
"$LINENO"; then :
5916 ac_cv_lib_pthread_pthread_create
=yes
5918 ac_cv_lib_pthread_pthread_create
=no
5920 rm -f core conftest.err conftest.
$ac_objext \
5921 conftest
$ac_exeext conftest.
$ac_ext
5922 LIBS
=$ac_check_lib_save_LIBS
5924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
5925 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
5926 if test "x$ac_cv_lib_pthread_pthread_create" = xyes
; then :
5929 # Yes - add -lpthread.
5931 ac_lbl_have_pthreads
="found"
5932 PTHREAD_LIBS
="$PTHREAD_LIBS -lpthread"
5939 ac_lbl_have_pthreads
="not found"
5953 # We didn't find pthread.h.
5955 ac_lbl_have_pthreads
="not found"
5962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if --disable-protochain option is specified" >&5
5963 $as_echo_n "checking if --disable-protochain option is specified... " >&6; }
5964 # Check whether --enable-protochain was given.
5965 if test "${enable_protochain+set}" = set; then :
5966 enableval
=$enable_protochain;
5969 case "x$enable_protochain" in
5970 xyes
) enable_protochain
=enabled
;;
5971 xno
) enable_protochain
=disabled
;;
5972 x
) enable_protochain
=enabled
;;
5975 if test "$enable_protochain" = "disabled"; then
5977 $as_echo "#define NO_PROTOCHAIN 1" >>confdefs.h
5980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_protochain}" >&5
5981 $as_echo "${enable_protochain}" >&6; }
5984 # valgrindtest directly uses the native capture mechanism, but
5985 # only tests with BPF and PF_PACKET sockets; only enable it if
5986 # we have BPF or PF_PACKET sockets.
5991 # Check whether --with-pcap was given.
5992 if test "${with_pcap+set}" = set; then :
5996 if test ! -z "$with_pcap" ; then
6000 # Check for a bunch of headers for various packet
6001 # capture mechanisms.
6003 for ac_header
in net
/bpf.h
6005 ac_fn_c_check_header_mongrel
"$LINENO" "net/bpf.h" "ac_cv_header_net_bpf_h" "$ac_includes_default"
6006 if test "x$ac_cv_header_net_bpf_h" = xyes
; then :
6007 cat >>confdefs.h
<<_ACEOF
6008 #define HAVE_NET_BPF_H 1
6015 if test "$ac_cv_header_net_bpf_h" = yes; then
6017 # Does it define BIOCSETIF?
6018 # I.e., is it a header for an LBL/BSD-style capture
6019 # mechanism, or is it just a header for a BPF filter
6020 # engine? Some versions of Arch Linux, for example,
6021 # have a net/bpf.h that doesn't define BIOCSETIF;
6022 # as it's a Linux, it should use packet sockets,
6027 # sys/types.h, because FreeBSD 10's net/bpf.h
6028 # requires that various BSD-style integer types
6031 # sys/time.h, because AIX 5.2 and 5.3's net/bpf.h
6032 # doesn't include it but does use struct timeval
6033 # in ioctl definitions;
6035 # sys/ioctl.h and, if we have it, sys/ioccom.h,
6036 # because net/bpf.h defines ioctls;
6038 # net/if.h, because it defines some structures
6039 # used in ioctls defined by net/bpf.h;
6041 # sys/socket.h, because OpenBSD 5.9's net/bpf.h
6042 # defines some structure fields as being
6045 # and net/bpf.h doesn't necessarily include all
6046 # of those headers itself.
6048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if net/bpf.h defines BIOCSETIF" >&5
6049 $as_echo_n "checking if net/bpf.h defines BIOCSETIF... " >&6; }
6050 if ${ac_cv_lbl_bpf_h_defines_biocsetif+:} false
; then :
6051 $as_echo_n "(cached) " >&6
6053 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6054 /* end confdefs.h. */
6056 #include <sys/types.h>
6057 #include <sys/time.h>
6058 #include <sys/ioctl.h>
6059 #include <sys/socket.h>
6060 #ifdef HAVE_SYS_IOCCOM_H
6061 #include <sys/ioccom.h>
6063 #include <net/bpf.h>
6069 u_int i = BIOCSETIF;
6074 if ac_fn_c_try_compile
"$LINENO"; then :
6075 ac_cv_lbl_bpf_h_defines_biocsetif
=yes
6077 ac_cv_lbl_bpf_h_defines_biocsetif
=no
6079 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_bpf_h_defines_biocsetif" >&5
6083 $as_echo "$ac_cv_lbl_bpf_h_defines_biocsetif" >&6; }
6085 for ac_header
in net
/pfilt.h net
/enet.h
6087 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6088 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6089 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
6090 cat >>confdefs.h
<<_ACEOF
6091 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6098 for ac_header
in net
/nit.h sys
/net
/nit.h
6100 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6101 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6102 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
6103 cat >>confdefs.h
<<_ACEOF
6104 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6111 for ac_header
in linux
/socket.h net
/raw.h sys
/dlpi.h
6113 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6114 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6115 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
6116 cat >>confdefs.h
<<_ACEOF
6117 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6125 if test "$ac_cv_lbl_bpf_h_defines_biocsetif" = yes; then
6128 # Check this before DLPI, so that we pick BPF on
6129 # Solaris 11 and later.
6134 # We have BPF, so build valgrindtest with "make test"
6135 # on macOS and FreeBSD (add your OS once there's a
6140 freebsd
*|darwin
*|linux
*)
6141 VALGRINDTEST_SRC
=valgrindtest.c
6144 elif test "$ac_cv_header_linux_socket_h" = yes; then
6146 # No prizes for guessing this one.
6151 # XXX - this won't work with older kernels that have
6152 # SOCK_PACKET sockets but not PF_PACKET sockets.
6154 VALGRINDTEST_SRC
=valgrindtest.c
6155 elif test "$ac_cv_header_net_pfilt_h" = yes; then
6157 # DEC OSF/1, Digital UNIX, Tru64 UNIX
6160 elif test "$ac_cv_header_net_enet_h" = yes; then
6162 # Stanford Enetfilter.
6165 elif test "$ac_cv_header_net_nit_h" = yes; then
6167 # SunOS 4.x STREAMS NIT.
6170 elif test "$ac_cv_header_sys_net_nit_h" = yes; then
6172 # Pre-SunOS 4.x non-STREAMS NIT.
6175 elif test "$ac_cv_header_net_raw_h" = yes; then
6180 elif test "$ac_cv_header_sys_dlpi_h" = yes; then
6182 # DLPI on pre-Solaris 11 SunOS 5, HP-UX, possibly others.
6187 # Nothing we support.
6190 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine packet capture interface" >&5
6191 $as_echo "$as_me: WARNING: cannot determine packet capture interface" >&2;}
6192 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: (see the INSTALL doc for more info)" >&5
6193 $as_echo "$as_me: WARNING: (see the INSTALL doc for more info)" >&2;}
6196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking packet capture type" >&5
6197 $as_echo_n "checking packet capture type... " >&6; }
6198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $V_PCAP" >&5
6199 $as_echo "$V_PCAP" >&6; }
6203 # Do capture-mechanism-dependent tests.
6208 # Needed for common functions used by pcap-[dlpi,libdlpi].c
6213 # Checks for some header files.
6215 for ac_header
in sys
/bufmod.h sys
/dlpi_ext.h
6217 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6218 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6219 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
6220 cat >>confdefs.h
<<_ACEOF
6221 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6230 # Checks to see if Solaris has the public libdlpi(3LIB) library.
6231 # Note: The existence of /usr/include/libdlpi.h does not mean it is the
6232 # public libdlpi(3LIB) version. Before libdlpi was made public, a
6233 # private version also existed, which did not have the same APIs.
6234 # Due to a gcc bug, the default search path for 32-bit libraries does
6235 # not include /lib, we add it explicitly here.
6236 # [http://bugs.opensolaris.org/view_bug.do?bug_id=6619485].
6237 # Also, due to the bug above applications that link to libpcap with
6238 # libdlpi will have to add "-L/lib" option to "configure".
6240 saved_ldflags
=$LDFLAGS
6241 LDFLAGS
="$LIBS -L/lib"
6242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlpi_walk in -ldlpi" >&5
6243 $as_echo_n "checking for dlpi_walk in -ldlpi... " >&6; }
6244 if ${ac_cv_lib_dlpi_dlpi_walk+:} false
; then :
6245 $as_echo_n "(cached) " >&6
6247 ac_check_lib_save_LIBS
=$LIBS
6249 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6250 /* end confdefs.h. */
6252 /* Override any GCC internal prototype to avoid an error.
6253 Use char because int might match the return type of a GCC
6254 builtin and then its argument prototype would still apply. */
6262 return dlpi_walk ();
6267 if ac_fn_c_try_link
"$LINENO"; then :
6268 ac_cv_lib_dlpi_dlpi_walk
=yes
6270 ac_cv_lib_dlpi_dlpi_walk
=no
6272 rm -f core conftest.err conftest.
$ac_objext \
6273 conftest
$ac_exeext conftest.
$ac_ext
6274 LIBS
=$ac_check_lib_save_LIBS
6276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dlpi_dlpi_walk" >&5
6277 $as_echo "$ac_cv_lib_dlpi_dlpi_walk" >&6; }
6278 if test "x$ac_cv_lib_dlpi_dlpi_walk" = xyes
; then :
6283 $as_echo "#define HAVE_LIBDLPI 1" >>confdefs.h
6290 LDFLAGS
=$saved_ldflags
6293 # Checks whether <sys/dlpi.h> is usable, to catch weird SCO
6296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/dlpi.h> is usable" >&5
6297 $as_echo_n "checking whether <sys/dlpi.h> is usable... " >&6; }
6298 if ${ac_cv_sys_dlpi_usable+:} false
; then :
6299 $as_echo_n "(cached) " >&6
6301 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6302 /* end confdefs.h. */
6304 #include <sys/types.h>
6305 #include <sys/time.h>
6306 #include <sys/dlpi.h>
6311 int i = DL_PROMISC_PHYS;
6316 if ac_fn_c_try_compile
"$LINENO"; then :
6317 ac_cv_sys_dlpi_usable
=yes
6319 ac_cv_sys_dlpi_usable
=no
6321 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_dlpi_usable" >&5
6325 $as_echo "$ac_cv_sys_dlpi_usable" >&6; }
6326 if test $ac_cv_sys_dlpi_usable = no
; then
6327 as_fn_error $?
"<sys/dlpi.h> is not usable on this system; it probably has a non-standard DLPI" "$LINENO" 5
6331 # Check to see if Solaris has the dl_passive_req_t struct defined
6333 # This check is for DLPI support for passive modes.
6334 # See dlpi(7P) for more details.
6336 ac_fn_c_check_type
"$LINENO" "dl_passive_req_t" "ac_cv_type_dl_passive_req_t" "
6337 #include <sys/types.h>
6338 #include <sys/dlpi.h>
6341 if test "x$ac_cv_type_dl_passive_req_t" = xyes
; then :
6343 cat >>confdefs.h
<<_ACEOF
6344 #define HAVE_DL_PASSIVE_REQ_T 1
6354 # Do we have the wireless extensions?
6356 for ac_header
in linux
/wireless.h
6358 ac_fn_c_check_header_compile
"$LINENO" "linux/wireless.h" "ac_cv_header_linux_wireless_h" "
6359 #include <sys/socket.h>
6360 #include <linux/if.h>
6361 #include <linux/types.h>
6364 if test "x$ac_cv_header_linux_wireless_h" = xyes
; then :
6365 cat >>confdefs.h
<<_ACEOF
6366 #define HAVE_LINUX_WIRELESS_H 1
6378 # Check whether --with-libnl was given.
6379 if test "${with_libnl+set}" = set; then :
6380 withval
=$with_libnl; with_libnl
=$withval
6382 with_libnl
=if_available
6386 if test x
$with_libnl != xno
; then
6389 incdir
=-I/usr
/include
/libnl3
6391 case "$with_libnl" in
6397 if test -d $withval; then
6398 libnldir
=-L${withval}/lib
/.libs
6399 incdir
=-I${withval}/include
6405 # Try libnl 3.x first.
6407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_socket_alloc in -lnl-3" >&5
6408 $as_echo_n "checking for nl_socket_alloc in -lnl-3... " >&6; }
6409 if ${ac_cv_lib_nl_3_nl_socket_alloc+:} false
; then :
6410 $as_echo_n "(cached) " >&6
6412 ac_check_lib_save_LIBS
=$LIBS
6413 LIBS
="-lnl-3 ${incdir} ${libnldir} -lnl-genl-3 -lnl-3 $LIBS"
6414 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6415 /* end confdefs.h. */
6417 /* Override any GCC internal prototype to avoid an error.
6418 Use char because int might match the return type of a GCC
6419 builtin and then its argument prototype would still apply. */
6423 char nl_socket_alloc ();
6427 return nl_socket_alloc ();
6432 if ac_fn_c_try_link
"$LINENO"; then :
6433 ac_cv_lib_nl_3_nl_socket_alloc
=yes
6435 ac_cv_lib_nl_3_nl_socket_alloc
=no
6437 rm -f core conftest.err conftest.
$ac_objext \
6438 conftest
$ac_exeext conftest.
$ac_ext
6439 LIBS
=$ac_check_lib_save_LIBS
6441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nl_3_nl_socket_alloc" >&5
6442 $as_echo "$ac_cv_lib_nl_3_nl_socket_alloc" >&6; }
6443 if test "x$ac_cv_lib_nl_3_nl_socket_alloc" = xyes
; then :
6446 # Yes, we have libnl 3.x.
6448 LIBS
="${libnldir} -lnl-genl-3 -lnl-3 $LIBS"
6450 $as_echo "#define HAVE_LIBNL 1" >>confdefs.h
6453 $as_echo "#define HAVE_LIBNL_3_x 1" >>confdefs.h
6456 $as_echo "#define HAVE_LIBNL_NLE 1" >>confdefs.h
6459 $as_echo "#define HAVE_LIBNL_SOCKETS 1" >>confdefs.h
6461 V_INCLS
="$V_INCLS ${incdir}"
6467 if test x
$have_any_nl = xno
; then
6471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_socket_alloc in -lnl" >&5
6472 $as_echo_n "checking for nl_socket_alloc in -lnl... " >&6; }
6473 if ${ac_cv_lib_nl_nl_socket_alloc+:} false
; then :
6474 $as_echo_n "(cached) " >&6
6476 ac_check_lib_save_LIBS
=$LIBS
6478 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6479 /* end confdefs.h. */
6481 /* Override any GCC internal prototype to avoid an error.
6482 Use char because int might match the return type of a GCC
6483 builtin and then its argument prototype would still apply. */
6487 char nl_socket_alloc ();
6491 return nl_socket_alloc ();
6496 if ac_fn_c_try_link
"$LINENO"; then :
6497 ac_cv_lib_nl_nl_socket_alloc
=yes
6499 ac_cv_lib_nl_nl_socket_alloc
=no
6501 rm -f core conftest.err conftest.
$ac_objext \
6502 conftest
$ac_exeext conftest.
$ac_ext
6503 LIBS
=$ac_check_lib_save_LIBS
6505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nl_nl_socket_alloc" >&5
6506 $as_echo "$ac_cv_lib_nl_nl_socket_alloc" >&6; }
6507 if test "x$ac_cv_lib_nl_nl_socket_alloc" = xyes
; then :
6510 # Yes, we have libnl 2.x.
6512 LIBS
="${libnldir} -lnl-genl -lnl $LIBS"
6514 $as_echo "#define HAVE_LIBNL 1" >>confdefs.h
6517 $as_echo "#define HAVE_LIBNL_2_x 1" >>confdefs.h
6520 $as_echo "#define HAVE_LIBNL_NLE 1" >>confdefs.h
6523 $as_echo "#define HAVE_LIBNL_SOCKETS 1" >>confdefs.h
6531 if test x
$have_any_nl = xno
; then
6533 # No, we don't; do we have libnl 1.x?
6535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_handle_alloc in -lnl" >&5
6536 $as_echo_n "checking for nl_handle_alloc in -lnl... " >&6; }
6537 if ${ac_cv_lib_nl_nl_handle_alloc+:} false
; then :
6538 $as_echo_n "(cached) " >&6
6540 ac_check_lib_save_LIBS
=$LIBS
6542 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6543 /* end confdefs.h. */
6545 /* Override any GCC internal prototype to avoid an error.
6546 Use char because int might match the return type of a GCC
6547 builtin and then its argument prototype would still apply. */
6551 char nl_handle_alloc ();
6555 return nl_handle_alloc ();
6560 if ac_fn_c_try_link
"$LINENO"; then :
6561 ac_cv_lib_nl_nl_handle_alloc
=yes
6563 ac_cv_lib_nl_nl_handle_alloc
=no
6565 rm -f core conftest.err conftest.
$ac_objext \
6566 conftest
$ac_exeext conftest.
$ac_ext
6567 LIBS
=$ac_check_lib_save_LIBS
6569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nl_nl_handle_alloc" >&5
6570 $as_echo "$ac_cv_lib_nl_nl_handle_alloc" >&6; }
6571 if test "x$ac_cv_lib_nl_nl_handle_alloc" = xyes
; then :
6576 LIBS
="${libnldir} -lnl $LIBS"
6578 $as_echo "#define HAVE_LIBNL 1" >>confdefs.h
6586 if test x
$have_any_nl = xno
; then
6588 # No, we don't have libnl at all.
6590 if test x
$with_libnl = xyes
; then
6591 as_fn_error $?
"libnl support requested but libnl not found" "$LINENO" 5
6596 for ac_header
in linux
/ethtool.h
6598 ac_fn_c_check_header_compile
"$LINENO" "linux/ethtool.h" "ac_cv_header_linux_ethtool_h" "
6599 $ac_includes_default
6600 #include <linux/types.h>
6603 if test "x$ac_cv_header_linux_ethtool_h" = xyes
; then :
6604 cat >>confdefs.h
<<_ACEOF
6605 #define HAVE_LINUX_ETHTOOL_H 1
6614 # Check to see if struct tpacket_stats is defined in
6615 # <linux/if_packet.h>. If so, then pcap-linux.c can use this
6616 # to report proper statistics.
6620 ac_fn_c_check_type
"$LINENO" "struct tpacket_stats" "ac_cv_type_struct_tpacket_stats" "
6621 #include <linux/if_packet.h>
6624 if test "x$ac_cv_type_struct_tpacket_stats" = xyes
; then :
6626 cat >>confdefs.h
<<_ACEOF
6627 #define HAVE_STRUCT_TPACKET_STATS 1
6635 # Check to see if the tpacket_auxdata struct has a tp_vlan_tci member.
6637 # NOTE: any failure means we conclude that it doesn't have that
6638 # member, so if we don't have tpacket_auxdata, we conclude it
6639 # doesn't have that member (which is OK, as either we won't be
6640 # using code that would use that member, or we wouldn't compile
6642 ac_fn_c_check_member
"$LINENO" "struct tpacket_auxdata" "tp_vlan_tci" "ac_cv_member_struct_tpacket_auxdata_tp_vlan_tci" "
6643 #include <sys/types.h>
6644 #include <linux/if_packet.h>
6647 if test "x$ac_cv_member_struct_tpacket_auxdata_tp_vlan_tci" = xyes
; then :
6649 cat >>confdefs.h
<<_ACEOF
6650 #define HAVE_STRUCT_TPACKET_AUXDATA_TP_VLAN_TCI 1
6660 # Check whether we have the *BSD-style ioctls.
6662 for ac_header
in net
/if_media.h
6664 ac_fn_c_check_header_mongrel
"$LINENO" "net/if_media.h" "ac_cv_header_net_if_media_h" "$ac_includes_default"
6665 if test "x$ac_cv_header_net_if_media_h" = xyes
; then :
6666 cat >>confdefs.h
<<_ACEOF
6667 #define HAVE_NET_IF_MEDIA_H 1
6676 # Check whether we have struct BPF_TIMEVAL.
6678 ac_fn_c_check_type
"$LINENO" "struct BPF_TIMEVAL" "ac_cv_type_struct_BPF_TIMEVAL" "
6679 #include <sys/types.h>
6680 #include <sys/ioctl.h>
6681 #ifdef HAVE_SYS_IOCCOM_H
6682 #include <sys/ioccom.h>
6684 #include <net/bpf.h>
6687 if test "x$ac_cv_type_struct_BPF_TIMEVAL" = xyes
; then :
6689 cat >>confdefs.h
<<_ACEOF
6690 #define HAVE_STRUCT_BPF_TIMEVAL 1
6700 # --with-pcap=dag is the only way to get here, and it means
6701 # "DAG support but nothing else"
6703 V_DEFS
="$V_DEFS -DDAG_ONLY"
6709 # --with-pcap=dpdk is the only way to get here, and it means
6710 # "DPDK support but nothing else"
6712 V_DEFS
="$V_DEFS -DDPDK_ONLY"
6718 # --with-pcap=septel is the only way to get here, and it means
6719 # "Septel support but nothing else"
6721 V_DEFS
="$V_DEFS -DSEPTEL_ONLY"
6727 # --with-pcap=snf is the only way to get here, and it means
6728 # "SNF support but nothing else"
6730 V_DEFS
="$V_DEFS -DSNF_ONLY"
6738 as_fn_error $?
"$V_PCAP is not a valid pcap type" "$LINENO" 5
6742 if test "$V_PCAP" != null
6744 ac_fn_c_check_func
"$LINENO" "getifaddrs" "ac_cv_func_getifaddrs"
6745 if test "x$ac_cv_func_getifaddrs" = xyes
; then :
6748 # We have "getifaddrs()"; make sure we have <ifaddrs.h>
6749 # as well, just in case some platform is really weird.
6751 ac_fn_c_check_header_mongrel
"$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "$ac_includes_default"
6752 if test "x$ac_cv_header_ifaddrs_h" = xyes
; then :
6755 # We have the header, so we use "getifaddrs()" to
6756 # get the list of interfaces.
6758 V_FINDALLDEVS
=fad-getad.c
6763 # We don't have the header - give up.
6764 # XXX - we could also fall back on some other
6765 # mechanism, but, for now, this'll catch this
6766 # problem so that we can at least try to figure
6767 # out something to do on systems with "getifaddrs()"
6768 # but without "ifaddrs.h", if there is something
6769 # we can do on those systems.
6771 as_fn_error $?
"Your system has getifaddrs() but doesn't have a usable <ifaddrs.h>." "$LINENO" 5
6780 # Well, we don't have "getifaddrs()", at least not with the
6781 # libraries with which we've decided we need to link
6782 # libpcap with, so we have to use some other mechanism.
6784 # Note that this may happen on Solaris, which has
6785 # getifaddrs(), but in -lsocket, not in -lxnet, so we
6786 # won't find it if we link with -lxnet, which we want
6787 # to do for other reasons.
6789 # For now, we use either the SIOCGIFCONF ioctl or the
6790 # SIOCGLIFCONF ioctl, preferring the latter if we have
6791 # it; the latter is a Solarisism that first appeared
6792 # in Solaris 8. (Solaris's getifaddrs() appears to
6793 # be built atop SIOCGLIFCONF; using it directly
6794 # avoids a not-all-that-useful middleman.)
6796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have SIOCGLIFCONF" >&5
6797 $as_echo_n "checking whether we have SIOCGLIFCONF... " >&6; }
6798 if ${ac_cv_lbl_have_siocglifconf+:} false
; then :
6799 $as_echo_n "(cached) " >&6
6801 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6802 /* end confdefs.h. */
6803 #include <sys/param.h>
6804 #include <sys/file.h>
6805 #include <sys/ioctl.h>
6806 #include <sys/socket.h>
6807 #include <sys/sockio.h>
6811 ioctl(0, SIOCGLIFCONF, (char *)0);
6816 if ac_fn_c_try_compile
"$LINENO"; then :
6817 ac_cv_lbl_have_siocglifconf
=yes
6819 ac_cv_lbl_have_siocglifconf
=no
6821 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_have_siocglifconf" >&5
6825 $as_echo "$ac_cv_lbl_have_siocglifconf" >&6; }
6826 if test $ac_cv_lbl_have_siocglifconf = yes ; then
6827 V_FINDALLDEVS
=fad-glifc.c
6829 V_FINDALLDEVS
=fad-gifc.c
6838 for ac_header
in linux
/net_tstamp.h
6840 ac_fn_c_check_header_mongrel
"$LINENO" "linux/net_tstamp.h" "ac_cv_header_linux_net_tstamp_h" "$ac_includes_default"
6841 if test "x$ac_cv_header_linux_net_tstamp_h" = xyes
; then :
6842 cat >>confdefs.h
<<_ACEOF
6843 #define HAVE_LINUX_NET_TSTAMP_H 1
6852 { $as_echo "$as_me:${as_lineno-$LINENO}: no hardware timestamp support implemented for $host_os" >&5
6853 $as_echo "$as_me: no hardware timestamp support implemented for $host_os" >&6;}
6857 # Check whether --enable-packet-ring was given.
6858 if test "${enable_packet_ring+set}" = set; then :
6859 enableval
=$enable_packet_ring;
6861 enable_packet_ring
=yes
6865 if test "x$enable_packet_ring" != "xno" ; then
6867 $as_echo "#define PCAP_SUPPORT_PACKET_RING 1" >>confdefs.h
6873 # Check for socklen_t.
6875 ac_fn_c_check_type
"$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
6876 #include <sys/types.h>
6877 #include <sys/socket.h>
6880 if test "x$ac_cv_type_socklen_t" = xyes
; then :
6882 cat >>confdefs.h
<<_ACEOF
6883 #define HAVE_SOCKLEN_T 1
6890 # Check whether --enable-ipv6 was given.
6891 if test "${enable_ipv6+set}" = set; then :
6892 enableval
=$enable_ipv6;
6897 if test "$enable_ipv6" != "no"; then
6899 # We've already made sure we have getaddrinfo above in
6900 # AC_LBL_LIBRARY_NET.
6903 $as_echo "#define INET6 1" >>confdefs.h
6908 # Do we have pkg-config?
6910 # Extract the first word of "pkg-config", so it can be a program name with args.
6911 set dummy pkg-config
; ac_word
=$2
6912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6913 $as_echo_n "checking for $ac_word... " >&6; }
6914 if ${ac_cv_prog_PKGCONFIG+:} false
; then :
6915 $as_echo_n "(cached) " >&6
6917 if test -n "$PKGCONFIG"; then
6918 ac_cv_prog_PKGCONFIG
="$PKGCONFIG" # Let the user override the test.
6920 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6924 test -z "$as_dir" && as_dir
=.
6925 for ac_exec_ext
in '' $ac_executable_extensions; do
6926 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6927 ac_cv_prog_PKGCONFIG
="pkg-config"
6928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6935 test -z "$ac_cv_prog_PKGCONFIG" && ac_cv_prog_PKGCONFIG
="no"
6938 PKGCONFIG
=$ac_cv_prog_PKGCONFIG
6939 if test -n "$PKGCONFIG"; then
6940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
6941 $as_echo "$PKGCONFIG" >&6; }
6943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6944 $as_echo "no" >&6; }
6949 # Check for Endace DAG card support.
6951 # Check whether --with-dag was given.
6952 if test "${with_dag+set}" = set; then :
6954 if test "$withval" = no
6956 # User doesn't want DAG support.
6958 elif test "$withval" = yes
6960 # User wants DAG support but hasn't specified a directory.
6963 # User wants DAG support and has specified a directory, so use the provided value.
6970 if test "$V_PCAP" = dag
; then
6971 # User requested DAG-only libpcap, so we'd better have
6974 elif test "xxx_only" = yes; then
6975 # User requested something-else-only pcap, so they don't
6980 # Use DAG API if present, otherwise don't
6989 # Check whether --with-dag-includes was given.
6990 if test "${with_dag_includes+set}" = set; then :
6991 withval
=$with_dag_includes;
6992 # User wants DAG support and has specified a header directory, so use the provided value.
6994 dag_include_dir
=$withval
7000 # Check whether --with-dag-libraries was given.
7001 if test "${with_dag_libraries+set}" = set; then :
7002 withval
=$with_dag_libraries;
7003 # User wants DAG support and has specified a library directory, so use the provided value.
7005 dag_lib_dir
=$withval
7010 if test "$want_dag" != no
; then
7012 # If necessary, set default paths for DAG API headers and libraries.
7013 if test -z "$dag_root"; then
7017 if test -z "$dag_include_dir"; then
7018 dag_include_dir
="$dag_root/include"
7021 if test -z "$dag_lib_dir"; then
7022 dag_lib_dir
="$dag_root/lib"
7025 V_INCLS
="$V_INCLS -I$dag_include_dir"
7027 for ac_header
in dagapi.h
7029 ac_fn_c_check_header_mongrel
"$LINENO" "dagapi.h" "ac_cv_header_dagapi_h" "$ac_includes_default"
7030 if test "x$ac_cv_header_dagapi_h" = xyes
; then :
7031 cat >>confdefs.h
<<_ACEOF
7032 #define HAVE_DAGAPI_H 1
7040 if test "$ac_cv_header_dagapi_h" = yes; then
7042 if test $V_PCAP != dag
; then
7043 MSRC
="$MSRC pcap-dag.c"
7046 # Check for various DAG API functions.
7047 # Don't need to save and restore LIBS to prevent -ldag being
7048 # included if there's a found-action (arg 3).
7049 saved_ldflags
=$LDFLAGS
7050 LDFLAGS
="-L$dag_lib_dir"
7051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dag_attach_stream in -ldag" >&5
7052 $as_echo_n "checking for dag_attach_stream in -ldag... " >&6; }
7053 if ${ac_cv_lib_dag_dag_attach_stream+:} false
; then :
7054 $as_echo_n "(cached) " >&6
7056 ac_check_lib_save_LIBS
=$LIBS
7058 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7059 /* end confdefs.h. */
7061 /* Override any GCC internal prototype to avoid an error.
7062 Use char because int might match the return type of a GCC
7063 builtin and then its argument prototype would still apply. */
7067 char dag_attach_stream ();
7071 return dag_attach_stream ();
7076 if ac_fn_c_try_link
"$LINENO"; then :
7077 ac_cv_lib_dag_dag_attach_stream
=yes
7079 ac_cv_lib_dag_dag_attach_stream
=no
7081 rm -f core conftest.err conftest.
$ac_objext \
7082 conftest
$ac_exeext conftest.
$ac_ext
7083 LIBS
=$ac_check_lib_save_LIBS
7085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dag_dag_attach_stream" >&5
7086 $as_echo "$ac_cv_lib_dag_dag_attach_stream" >&6; }
7087 if test "x$ac_cv_lib_dag_dag_attach_stream" = xyes
; then :
7088 cat >>confdefs.h
<<_ACEOF
7089 #define HAVE_LIBDAG 1
7095 as_fn_error $?
"DAG library lacks streams support" "$LINENO" 5
7098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dag_attach_stream64 in -ldag" >&5
7099 $as_echo_n "checking for dag_attach_stream64 in -ldag... " >&6; }
7100 if ${ac_cv_lib_dag_dag_attach_stream64+:} false
; then :
7101 $as_echo_n "(cached) " >&6
7103 ac_check_lib_save_LIBS
=$LIBS
7105 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7106 /* end confdefs.h. */
7108 /* Override any GCC internal prototype to avoid an error.
7109 Use char because int might match the return type of a GCC
7110 builtin and then its argument prototype would still apply. */
7114 char dag_attach_stream64 ();
7118 return dag_attach_stream64 ();
7123 if ac_fn_c_try_link
"$LINENO"; then :
7124 ac_cv_lib_dag_dag_attach_stream64
=yes
7126 ac_cv_lib_dag_dag_attach_stream64
=no
7128 rm -f core conftest.err conftest.
$ac_objext \
7129 conftest
$ac_exeext conftest.
$ac_ext
7130 LIBS
=$ac_check_lib_save_LIBS
7132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dag_dag_attach_stream64" >&5
7133 $as_echo "$ac_cv_lib_dag_dag_attach_stream64" >&6; }
7134 if test "x$ac_cv_lib_dag_dag_attach_stream64" = xyes
; then :
7135 dag_large_streams
="1"
7137 dag_large_streams
="0"
7140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dag_get_erf_types in -ldag" >&5
7141 $as_echo_n "checking for dag_get_erf_types in -ldag... " >&6; }
7142 if ${ac_cv_lib_dag_dag_get_erf_types+:} false
; then :
7143 $as_echo_n "(cached) " >&6
7145 ac_check_lib_save_LIBS
=$LIBS
7147 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7148 /* end confdefs.h. */
7150 /* Override any GCC internal prototype to avoid an error.
7151 Use char because int might match the return type of a GCC
7152 builtin and then its argument prototype would still apply. */
7156 char dag_get_erf_types ();
7160 return dag_get_erf_types ();
7165 if ac_fn_c_try_link
"$LINENO"; then :
7166 ac_cv_lib_dag_dag_get_erf_types
=yes
7168 ac_cv_lib_dag_dag_get_erf_types
=no
7170 rm -f core conftest.err conftest.
$ac_objext \
7171 conftest
$ac_exeext conftest.
$ac_ext
7172 LIBS
=$ac_check_lib_save_LIBS
7174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dag_dag_get_erf_types" >&5
7175 $as_echo "$ac_cv_lib_dag_dag_get_erf_types" >&6; }
7176 if test "x$ac_cv_lib_dag_dag_get_erf_types" = xyes
; then :
7179 $as_echo "#define HAVE_DAG_GET_ERF_TYPES 1" >>confdefs.h
7183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dag_get_stream_erf_types in -ldag" >&5
7184 $as_echo_n "checking for dag_get_stream_erf_types in -ldag... " >&6; }
7185 if ${ac_cv_lib_dag_dag_get_stream_erf_types+:} false
; then :
7186 $as_echo_n "(cached) " >&6
7188 ac_check_lib_save_LIBS
=$LIBS
7190 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7191 /* end confdefs.h. */
7193 /* Override any GCC internal prototype to avoid an error.
7194 Use char because int might match the return type of a GCC
7195 builtin and then its argument prototype would still apply. */
7199 char dag_get_stream_erf_types ();
7203 return dag_get_stream_erf_types ();
7208 if ac_fn_c_try_link
"$LINENO"; then :
7209 ac_cv_lib_dag_dag_get_stream_erf_types
=yes
7211 ac_cv_lib_dag_dag_get_stream_erf_types
=no
7213 rm -f core conftest.err conftest.
$ac_objext \
7214 conftest
$ac_exeext conftest.
$ac_ext
7215 LIBS
=$ac_check_lib_save_LIBS
7217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dag_dag_get_stream_erf_types" >&5
7218 $as_echo "$ac_cv_lib_dag_dag_get_stream_erf_types" >&6; }
7219 if test "x$ac_cv_lib_dag_dag_get_stream_erf_types" = xyes
; then :
7222 $as_echo "#define HAVE_DAG_GET_STREAM_ERF_TYPES 1" >>confdefs.h
7227 LDFLAGS
=$saved_ldflags
7230 # We assume that if we have libdag we have libdagconf,
7231 # as they're installed at the same time from the same
7234 LIBS
="$LIBS -ldag -ldagconf"
7235 LDFLAGS
="$LDFLAGS -L$dag_lib_dir"
7237 if test "$dag_large_streams" = 1; then
7239 $as_echo "#define HAVE_DAG_LARGE_STREAMS_API 1" >>confdefs.h
7241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for vdag_set_device_info in -lvdag" >&5
7242 $as_echo_n "checking for vdag_set_device_info in -lvdag... " >&6; }
7243 if ${ac_cv_lib_vdag_vdag_set_device_info+:} false
; then :
7244 $as_echo_n "(cached) " >&6
7246 ac_check_lib_save_LIBS
=$LIBS
7248 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7249 /* end confdefs.h. */
7251 /* Override any GCC internal prototype to avoid an error.
7252 Use char because int might match the return type of a GCC
7253 builtin and then its argument prototype would still apply. */
7257 char vdag_set_device_info ();
7261 return vdag_set_device_info ();
7266 if ac_fn_c_try_link
"$LINENO"; then :
7267 ac_cv_lib_vdag_vdag_set_device_info
=yes
7269 ac_cv_lib_vdag_vdag_set_device_info
=no
7271 rm -f core conftest.err conftest.
$ac_objext \
7272 conftest
$ac_exeext conftest.
$ac_ext
7273 LIBS
=$ac_check_lib_save_LIBS
7275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_vdag_vdag_set_device_info" >&5
7276 $as_echo "$ac_cv_lib_vdag_vdag_set_device_info" >&6; }
7277 if test "x$ac_cv_lib_vdag_vdag_set_device_info" = xyes
; then :
7278 ac_dag_have_vdag
="1"
7280 ac_dag_have_vdag
="0"
7283 if test "$ac_dag_have_vdag" = 1; then
7285 $as_echo "#define HAVE_DAG_VDAG 1" >>confdefs.h
7287 if test "$ac_lbl_have_pthreads" != "found"; then
7288 as_fn_error $?
"DAG requires pthreads, but we didn't find them" "$LINENO" 5
7290 LIBS
="$LIBS $PTHREAD_LIBS"
7295 $as_echo "#define HAVE_DAG_API 1" >>confdefs.h
7299 if test "$V_PCAP" = dag
; then
7300 # User requested "dag" capture type but we couldn't
7301 # find the DAG API support.
7302 as_fn_error $?
"DAG support requested with --with-pcap=dag, but the DAG headers weren't found at $dag_include_dir: make sure the DAG support is installed, specify a different path or paths if necessary, or don't request DAG support" "$LINENO" 5
7305 if test "$want_dag" = yes; then
7306 # User wanted DAG support but we couldn't find it.
7307 as_fn_error $?
"DAG support requested with --with-dag, but the DAG headers weren't found at $dag_include_dir: make sure the DAG support is installed, specify a different path or paths if necessary, or don't request DAG support" "$LINENO" 5
7313 # Check whether --with-septel was given.
7314 if test "${with_septel+set}" = set; then :
7315 withval
=$with_septel;
7316 if test "$withval" = no
7319 elif test "$withval" = yes
7325 septel_root
=$withval
7330 if test "$V_PCAP" = septel
; then
7331 # User requested Septel-only libpcap, so we'd better have
7334 elif test "xxx_only" = yes; then
7335 # User requested something-else-only pcap, so they don't
7336 # want Septel support.
7340 # Use Septel API if present, otherwise don't
7342 want_septel
=ifpresent
7348 ac_cv_lbl_septel_api
=no
7349 if test "$with_septel" != no
; then
7351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have Septel API headers" >&5
7352 $as_echo_n "checking whether we have Septel API headers... " >&6; }
7354 # If necessary, set default paths for Septel API headers and libraries.
7355 if test -z "$septel_root"; then
7356 septel_root
=$srcdir/..
/septel
7359 septel_tools_dir
="$septel_root"
7360 septel_include_dir
="$septel_root/INC"
7362 if test -r "$septel_include_dir/msg.h"; then
7363 ac_cv_lbl_septel_api
=yes
7366 if test "$ac_cv_lbl_septel_api" = yes; then
7367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($septel_include_dir)" >&5
7368 $as_echo "yes ($septel_include_dir)" >&6; }
7370 V_INCLS
="$V_INCLS -I$septel_include_dir"
7371 ADDLOBJS
="$ADDLOBJS $septel_tools_dir/asciibin.o $septel_tools_dir/bit2byte.o $septel_tools_dir/confirm.o $septel_tools_dir/fmtmsg.o $septel_tools_dir/gct_unix.o $septel_tools_dir/hqueue.o $septel_tools_dir/ident.o $septel_tools_dir/mem.o $septel_tools_dir/pack.o $septel_tools_dir/parse.o $septel_tools_dir/pool.o $septel_tools_dir/sdlsig.o $septel_tools_dir/strtonum.o $septel_tools_dir/timer.o $septel_tools_dir/trace.o"
7372 ADDLARCHIVEOBJS
="$ADDLARCHIVEOBJS $septel_tools_dir/asciibin.o $septel_tools_dir/bit2byte.o $septel_tools_dir/confirm.o $septel_tools_dir/fmtmsg.o $septel_tools_dir/gct_unix.o $septel_tools_dir/hqueue.o $septel_tools_dir/ident.o $septel_tools_dir/mem.o $septel_tools_dir/pack.o $septel_tools_dir/parse.o $septel_tools_dir/pool.o $septel_tools_dir/sdlsig.o $septel_tools_dir/strtonum.o $septel_tools_dir/timer.o $septel_tools_dir/trace.o"
7374 if test "$V_PCAP" != septel
; then
7375 MSRC
="$MSRC pcap-septel.c"
7379 $as_echo "#define HAVE_SEPTEL_API 1" >>confdefs.h
7382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7383 $as_echo "no" >&6; }
7385 if test "$V_PCAP" = septel
; then
7386 # User requested "septel" capture type but
7387 # we couldn't find the Septel API support.
7388 as_fn_error $?
"Septel support requested with --with-pcap=septel, but the Septel headers weren't found at $septel_include_dir: make sure the Septel support is installed, specify a different path or paths if necessary, or don't request Septel support" "$LINENO" 5
7391 if test "$want_septel" = yes; then
7392 # User wanted Septel support but we couldn't find it.
7393 as_fn_error $?
"Septel support requested with --with-septel, but the Septel headers weren't found at $septel_include_dir: make sure the Septel support is installed, specify a different path or paths if necessary, or don't request Septel support" "$LINENO" 5
7398 # Check for Myricom SNF support.
7400 # Check whether --with-snf was given.
7401 if test "${with_snf+set}" = set; then :
7403 if test "$withval" = no
7405 # User explicitly doesn't want SNF
7407 elif test "$withval" = yes
7409 # User wants SNF support but hasn't specified a directory.
7412 # User wants SNF support with a specified directory.
7419 if test "$V_PCAP" = snf
; then
7420 # User requested Sniffer-only libpcap, so we'd better have
7423 elif test "xxx_only" = yes; then
7424 # User requested something-else-only pcap, so they don't
7429 # Use Sniffer API if present, otherwise don't
7438 # Check whether --with-snf-includes was given.
7439 if test "${with_snf_includes+set}" = set; then :
7440 withval
=$with_snf_includes;
7441 # User wants SNF with specific header directory
7443 snf_include_dir
=$withval
7449 # Check whether --with-snf-libraries was given.
7450 if test "${with_snf_libraries+set}" = set; then :
7451 withval
=$with_snf_libraries;
7452 # User wants SNF with specific lib directory
7454 snf_lib_dir
=$withval
7459 ac_cv_lbl_snf_api
=no
7460 if test "$with_snf" != no
; then
7462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have Myricom Sniffer API" >&5
7463 $as_echo_n "checking whether we have Myricom Sniffer API... " >&6; }
7465 # If necessary, set default paths for Sniffer headers and libraries.
7466 if test -z "$snf_root"; then
7470 if test -z "$snf_include_dir"; then
7471 snf_include_dir
="$snf_root/include"
7474 if test -z "$snf_lib_dir"; then
7475 snf_lib_dir
="$snf_root/lib"
7478 if test -f "$snf_include_dir/snf.h"; then
7479 # We found a header; make sure we can link with the library
7480 saved_ldflags
=$LDFLAGS
7481 LDFLAGS
="$LDFLAGS -L$snf_lib_dir"
7482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snf_init in -lsnf" >&5
7483 $as_echo_n "checking for snf_init in -lsnf... " >&6; }
7484 if ${ac_cv_lib_snf_snf_init+:} false
; then :
7485 $as_echo_n "(cached) " >&6
7487 ac_check_lib_save_LIBS
=$LIBS
7489 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7490 /* end confdefs.h. */
7492 /* Override any GCC internal prototype to avoid an error.
7493 Use char because int might match the return type of a GCC
7494 builtin and then its argument prototype would still apply. */
7507 if ac_fn_c_try_link
"$LINENO"; then :
7508 ac_cv_lib_snf_snf_init
=yes
7510 ac_cv_lib_snf_snf_init
=no
7512 rm -f core conftest.err conftest.
$ac_objext \
7513 conftest
$ac_exeext conftest.
$ac_ext
7514 LIBS
=$ac_check_lib_save_LIBS
7516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_snf_snf_init" >&5
7517 $as_echo "$ac_cv_lib_snf_snf_init" >&6; }
7518 if test "x$ac_cv_lib_snf_snf_init" = xyes
; then :
7519 ac_cv_lbl_snf_api
="yes"
7522 LDFLAGS
="$saved_ldflags"
7523 if test "$ac_cv_lbl_snf_api" = no
; then
7524 as_fn_error $?
"SNF API cannot correctly be linked; check config.log" "$LINENO" 5
7528 if test "$ac_cv_lbl_snf_api" = yes; then
7529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($snf_root)" >&5
7530 $as_echo "yes ($snf_root)" >&6; }
7532 V_INCLS
="$V_INCLS -I$snf_include_dir"
7534 LDFLAGS
="$LDFLAGS -L$snf_lib_dir"
7536 if test "$V_PCAP" != snf
; then
7537 MSRC
="$MSRC pcap-snf.c"
7541 $as_echo "#define HAVE_SNF_API 1" >>confdefs.h
7544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7545 $as_echo "no" >&6; }
7547 if test "$want_snf" = yes; then
7548 # User requested "snf" capture type but
7549 # we couldn't find the Sniffer API support.
7550 as_fn_error $?
"Myricom Sniffer support requested with --with-pcap=snf, but the Sniffer headers weren't found at $snf_include_dir: make sure the Sniffer support is installed, specify a different path or paths if necessary, or don't request Sniffer support" "$LINENO" 5
7553 if test "$want_snf" = yes; then
7554 as_fn_error $?
"Myricom Sniffer support requested with --with-snf, but the Sniffer headers weren't found at $snf_include_dir: make sure the Sniffer support is installed, specify a different path or paths if necessary, or don't request Sniffer support" "$LINENO" 5
7559 # Check for Riverbed TurboCap support.
7561 # Check whether --with-turbocap was given.
7562 if test "${with_turbocap+set}" = set; then :
7563 withval
=$with_turbocap;
7564 if test "$withval" = no
7566 # User explicitly doesn't want TurboCap
7568 elif test "$withval" = yes
7570 # User wants TurboCap support but hasn't specified a directory.
7573 # User wants TurboCap support with a specified directory.
7575 turbocap_root
=$withval
7580 if test "xxx_only" = yes; then
7581 # User requested something-else-only pcap, so they don't
7582 # want TurboCap support.
7586 # Use TurboCap API if present, otherwise don't
7588 want_turbocap
=ifpresent
7594 ac_cv_lbl_turbocap_api
=no
7595 if test "$want_turbocap" != no
; then
7597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether TurboCap is supported" >&5
7598 $as_echo_n "checking whether TurboCap is supported... " >&6; }
7600 save_CFLAGS
="$CFLAGS"
7602 if test ! -z "$turbocap_root"; then
7603 TURBOCAP_CFLAGS
="-I$turbocap_root/include"
7604 TURBOCAP_LIBS
="-L$turbocap_root/lib"
7605 CFLAGS
="$CFLAGS $TURBOCAP_CFLAGS"
7608 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7609 /* end confdefs.h. */
7617 TC_INSTANCE a; TC_PORT b; TC_BOARD c;
7619 (void)TcInstanceCreateByName("foo", &i);
7625 if ac_fn_c_try_compile
"$LINENO"; then :
7626 ac_cv_lbl_turbocap_api
=yes
7628 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7630 CFLAGS
="$save_CFLAGS"
7631 if test $ac_cv_lbl_turbocap_api = yes; then
7632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7633 $as_echo "yes" >&6; }
7635 MSRC
="$MSRC pcap-tc.c"
7636 V_INCLS
="$V_INCLS $TURBOCAP_CFLAGS"
7637 LIBS
="$LIBS $TURBOCAP_LIBS -lTcApi -lpthread -lstdc++"
7640 $as_echo "#define HAVE_TC_API 1" >>confdefs.h
7643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7644 $as_echo "no" >&6; }
7646 if test "$want_turbocap" = yes; then
7647 # User wanted Turbo support but we couldn't find it.
7648 as_fn_error $?
"TurboCap support requested with --with-turbocap, but the TurboCap headers weren't found: make sure the TurboCap support is installed or don't request TurboCap support" "$LINENO" 5
7653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable remote packet capture" >&5
7654 $as_echo_n "checking whether to enable remote packet capture... " >&6; }
7655 # Check whether --enable-remote was given.
7656 if test "${enable_remote+set}" = set; then :
7657 enableval
=$enable_remote;
7662 case "$enableval" in
7663 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7664 $as_echo "yes" >&6; }
7665 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Remote packet capture may expose libpcap-based applications" >&5
7666 $as_echo "$as_me: WARNING: Remote packet capture may expose libpcap-based applications" >&2;}
7667 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: to attacks by malicious remote capture servers!" >&5
7668 $as_echo "$as_me: WARNING: to attacks by malicious remote capture servers!" >&2;}
7670 # rpcapd requires pthreads on UN*X.
7672 if test "$ac_lbl_have_pthreads" != "found"; then
7673 as_fn_error $?
"rpcapd requires pthreads, but we didn't find them" "$LINENO" 5
7676 # It also requires crypt().
7677 # Do we have it in the system libraries?
7679 ac_fn_c_check_func
"$LINENO" "crypt" "ac_cv_func_crypt"
7680 if test "x$ac_cv_func_crypt" = xyes
; then :
7685 # No. Do we have it in -lcrypt?
7687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
7688 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
7689 if ${ac_cv_lib_crypt_crypt+:} false
; then :
7690 $as_echo_n "(cached) " >&6
7692 ac_check_lib_save_LIBS
=$LIBS
7693 LIBS
="-lcrypt $LIBS"
7694 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7695 /* end confdefs.h. */
7697 /* Override any GCC internal prototype to avoid an error.
7698 Use char because int might match the return type of a GCC
7699 builtin and then its argument prototype would still apply. */
7712 if ac_fn_c_try_link
"$LINENO"; then :
7713 ac_cv_lib_crypt_crypt
=yes
7715 ac_cv_lib_crypt_crypt
=no
7717 rm -f core conftest.err conftest.
$ac_objext \
7718 conftest
$ac_exeext conftest.
$ac_ext
7719 LIBS
=$ac_check_lib_save_LIBS
7721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
7722 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
7723 if test "x$ac_cv_lib_crypt_crypt" = xyes
; then :
7726 # Yes; add -lcrypt to the libraries for rpcapd.
7728 RPCAPD_LIBS
="$RPCAPD_LIBS -lcrypt"
7732 as_fn_error $?
"rpcapd requires crypt(), but we didn't find it" "$LINENO" 5
7741 # OK, we have crypt(). Do we have getspnam()?
7743 for ac_func
in getspnam
7745 ac_fn_c_check_func
"$LINENO" "getspnam" "ac_cv_func_getspnam"
7746 if test "x$ac_cv_func_getspnam" = xyes
; then :
7747 cat >>confdefs.h
<<_ACEOF
7748 #define HAVE_GETSPNAM 1
7756 # Check for various members of struct msghdr.
7758 ac_fn_c_check_member
"$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
7759 #include \"ftmacros.h\"
7760 #include <sys/socket.h>
7763 if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes
; then :
7765 cat >>confdefs.h
<<_ACEOF
7766 #define HAVE_STRUCT_MSGHDR_MSG_CONTROL 1
7772 ac_fn_c_check_member
"$LINENO" "struct msghdr" "msg_flags" "ac_cv_member_struct_msghdr_msg_flags" "
7773 #include \"ftmacros.h\"
7774 #include <sys/socket.h>
7777 if test "x$ac_cv_member_struct_msghdr_msg_flags" = xyes
; then :
7779 cat >>confdefs.h
<<_ACEOF
7780 #define HAVE_STRUCT_MSGHDR_MSG_FLAGS 1
7788 # Optionally, we may want to support SSL.
7789 # Check for OpenSSL/libressl.
7791 # We check for it first with pkg-config, in case you're
7792 # unlucky enough to be running on one of the versions
7793 # of macOS where Apple decided to get everybody to use
7794 # their Shiny New SSL and took away the OpenSSL header
7795 # files, even though they keep the shared libraries
7796 # around for binary compatibility, and installed your
7799 if test "x$PKGCONFIG" != "xno"; then
7801 # We have pkg-config; see if we have it installed
7804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL/libressl with pkg-config" >&5
7805 $as_echo_n "checking for OpenSSL/libressl with pkg-config... " >&6; }
7806 if "$PKGCONFIG" openssl
; then
7807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
7808 $as_echo "found" >&6; }
7809 OPENSSL_CFLAGS
=`"$PKGCONFIG" --cflags openssl`
7810 OPENSSL_LIBS
=`"$PKGCONFIG" --libs openssl`
7813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7814 $as_echo "not found" >&6; }
7817 if test "x$HAVE_OPENSSL" != "xyes"; then
7819 # We didn't find it as a package; try looking for
7820 # it as a regular system library.
7822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_library_init in -lssl" >&5
7823 $as_echo_n "checking for SSL_library_init in -lssl... " >&6; }
7824 if ${ac_cv_lib_ssl_SSL_library_init+:} false
; then :
7825 $as_echo_n "(cached) " >&6
7827 ac_check_lib_save_LIBS
=$LIBS
7829 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7830 /* end confdefs.h. */
7832 /* Override any GCC internal prototype to avoid an error.
7833 Use char because int might match the return type of a GCC
7834 builtin and then its argument prototype would still apply. */
7838 char SSL_library_init ();
7842 return SSL_library_init ();
7847 if ac_fn_c_try_link
"$LINENO"; then :
7848 ac_cv_lib_ssl_SSL_library_init
=yes
7850 ac_cv_lib_ssl_SSL_library_init
=no
7852 rm -f core conftest.err conftest.
$ac_objext \
7853 conftest
$ac_exeext conftest.
$ac_ext
7854 LIBS
=$ac_check_lib_save_LIBS
7856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_library_init" >&5
7857 $as_echo "$ac_cv_lib_ssl_SSL_library_init" >&6; }
7858 if test "x$ac_cv_lib_ssl_SSL_library_init" = xyes
; then :
7864 OPENSSL_LIBS
="-lssl -lcrypto"
7871 if test "x$HAVE_OPENSSL" = "xyes"; then
7873 $as_echo "#define HAVE_OPENSSL 1" >>confdefs.h
7875 CFLAGS
="$CFLAGS $OPENSSL_CFLAGS"
7876 LIBS
="$LIBS $OPENSSL_LIBS"
7878 { $as_echo "$as_me:${as_lineno-$LINENO}: OpenSSL not found" >&5
7879 $as_echo "$as_me: OpenSSL not found" >&6;}
7883 $as_echo "#define ENABLE_REMOTE /**/" >>confdefs.h
7885 MSRC
="$MSRC pcap-new.c pcap-rpcap.c rpcap-protocol.c sockutils.c sslutils.c"
7886 BUILD_RPCAPD
=build-rpcapd
7887 INSTALL_RPCAPD
=install-rpcapd
7889 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7890 $as_echo "no" >&6; }
7894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build optimizer debugging code" >&5
7895 $as_echo_n "checking whether to build optimizer debugging code... " >&6; }
7896 # Check whether --enable-optimizer-dbg was given.
7897 if test "${enable_optimizer_dbg+set}" = set; then :
7898 enableval
=$enable_optimizer_dbg;
7901 if test "$enable_optimizer_dbg" = "yes"; then
7903 $as_echo "#define BDEBUG 1" >>confdefs.h
7906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_optimizer_dbg-no}" >&5
7907 $as_echo "${enable_optimizer_dbg-no}" >&6; }
7909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build parser debugging code" >&5
7910 $as_echo_n "checking whether to build parser debugging code... " >&6; }
7911 # Check whether --enable-yydebug was given.
7912 if test "${enable_yydebug+set}" = set; then :
7913 enableval
=$enable_yydebug;
7916 if test "$enable_yydebug" = "yes"; then
7918 $as_echo "#define YYDEBUG 1" >>confdefs.h
7921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_yydebug-no}" >&5
7922 $as_echo "${enable_yydebug-no}" >&6; }
7927 for ac_prog
in flex
lex
7929 # Extract the first word of "$ac_prog", so it can be a program name with args.
7930 set dummy
$ac_prog; ac_word
=$2
7931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7932 $as_echo_n "checking for $ac_word... " >&6; }
7933 if ${ac_cv_prog_LEX+:} false
; then :
7934 $as_echo_n "(cached) " >&6
7936 if test -n "$LEX"; then
7937 ac_cv_prog_LEX
="$LEX" # Let the user override the test.
7939 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7943 test -z "$as_dir" && as_dir
=.
7944 for ac_exec_ext
in '' $ac_executable_extensions; do
7945 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7946 ac_cv_prog_LEX
="$ac_prog"
7947 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7957 if test -n "$LEX"; then
7958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
7959 $as_echo "$LEX" >&6; }
7961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7962 $as_echo "no" >&6; }
7966 test -n "$LEX" && break
7968 test -n "$LEX" || LEX
=":"
7970 if test "x$LEX" != "x:"; then
7971 cat >conftest.l
<<_ACEOF
7977 e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
7978 yyless ((input () != 0)); }
7979 f { unput (yytext[0]); }
7980 . { BEGIN INITIAL; }
7982 #ifdef YYTEXT_POINTER
7983 extern char *yytext;
7988 return ! yylex () + ! yywrap ();
7991 { { ac_try
="$LEX conftest.l"
7993 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7994 *) ac_try_echo=$ac_try;;
7996 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7997 $as_echo "$ac_try_echo"; } >&5
7998 (eval "$LEX conftest.l") 2>&5
8000 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8001 test $ac_status = 0; }
8002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
8003 $as_echo_n "checking lex output file root... " >&6; }
8004 if ${ac_cv_prog_lex_root+:} false; then :
8005 $as_echo_n "(cached) " >&6
8008 if test -f lex.yy.c; then
8009 ac_cv_prog_lex_root=lex.yy
8010 elif test -f lexyy.c; then
8011 ac_cv_prog_lex_root=lexyy
8013 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
8016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
8017 $as_echo "$ac_cv_prog_lex_root" >&6; }
8018 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
8020 if test -z "${LEXLIB+set}"; then
8021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
8022 $as_echo_n "checking lex library... " >&6; }
8023 if ${ac_cv_lib_lex+:} false; then :
8024 $as_echo_n "(cached) " >&6
8028 ac_cv_lib_lex='none needed'
8029 for ac_lib in '' -lfl -ll; do
8030 LIBS="$ac_lib $ac_save_LIBS"
8031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8032 /* end confdefs.h. */
8033 `cat $LEX_OUTPUT_ROOT.c
`
8035 if ac_fn_c_try_link "$LINENO"; then :
8036 ac_cv_lib_lex=$ac_lib
8038 rm -f core conftest.err conftest.$ac_objext \
8039 conftest$ac_exeext conftest.$ac_ext
8040 test "$ac_cv_lib_lex" != 'none needed' && break
8045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
8046 $as_echo "$ac_cv_lib_lex" >&6; }
8047 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
8051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
8052 $as_echo_n "checking whether yytext is a pointer... " >&6; }
8053 if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
8054 $as_echo_n "(cached) " >&6
8056 # POSIX says lex can declare yytext either as a pointer or an array; the
8057 # default is implementation-dependent. Figure out which it is, since
8058 # not all implementations provide the %pointer and %array declarations.
8059 ac_cv_prog_lex_yytext_pointer=no
8061 LIBS="$LEXLIB $ac_save_LIBS"
8062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8063 /* end confdefs.h. */
8065 #define YYTEXT_POINTER 1
8066 `cat $LEX_OUTPUT_ROOT.c
`
8068 if ac_fn_c_try_link "$LINENO"; then :
8069 ac_cv_prog_lex_yytext_pointer=yes
8071 rm -f core conftest.err conftest.$ac_objext \
8072 conftest$ac_exeext conftest.$ac_ext
8076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
8077 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
8078 if test $ac_cv_prog_lex_yytext_pointer = yes; then
8080 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
8083 rm -f conftest.l $LEX_OUTPUT_ROOT.c
8086 if test "$LEX" = ":"; then
8087 as_fn_error $? "Neither flex nor lex was found." "$LINENO" 5
8091 # Make sure {f}lex supports the -P, --header-file, and --nounput flags
8092 # and supports processing our scanner.l.
8094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for capable lex" >&5
8095 $as_echo_n "checking for capable lex... " >&6; }
8096 if ${tcpdump_cv_capable_lex+:} false; then :
8097 $as_echo_n "(cached) " >&6
8099 if $LEX -P pcap_ --header-file=/dev/null --nounput -t $srcdir/scanner.l > /dev/null 2>&1; then
8100 tcpdump_cv_capable_lex=yes
8102 tcpdump_cv_capable_lex=insufficient
8105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcpdump_cv_capable_lex" >&5
8106 $as_echo "$tcpdump_cv_capable_lex" >&6; }
8107 if test $tcpdump_cv_capable_lex = insufficient ; then
8108 as_fn_error $? "$LEX is insufficient to compile libpcap.
8109 libpcap requires Flex 2.5.31 or later, or a compatible version of lex." "$LINENO" 5
8113 # Look for yacc/bison/byacc.
8115 for ac_prog in 'bison -y' byacc
8117 # Extract the first word of "$ac_prog", so it can be a program name with args.
8118 set dummy $ac_prog; ac_word=$2
8119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8120 $as_echo_n "checking for $ac_word... " >&6; }
8121 if ${ac_cv_prog_YACC+:} false; then :
8122 $as_echo_n "(cached) " >&6
8124 if test -n "$YACC"; then
8125 ac_cv_prog_YACC="$YACC" # Let the user override the test.
8127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8131 test -z "$as_dir" && as_dir=.
8132 for ac_exec_ext in '' $ac_executable_extensions; do
8133 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8134 ac_cv_prog_YACC="$ac_prog"
8135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8144 YACC=$ac_cv_prog_YACC
8145 if test -n "$YACC"; then
8146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
8147 $as_echo "$YACC" >&6; }
8149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8150 $as_echo "no" >&6; }
8154 test -n "$YACC" && break
8156 test -n "$YACC" || YACC="yacc"
8160 # Make sure it supports the -p flag and supports processing our
8163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for capable yacc/bison" >&5
8164 $as_echo_n "checking for capable yacc/bison... " >&6; }
8165 if ${tcpdump_cv_capable_yacc+:} false; then :
8166 $as_echo_n "(cached) " >&6
8168 if $YACC -p pcap_ -o /dev/null $srcdir/grammar.y >/dev/null 2>&1; then
8169 tcpdump_cv_capable_yacc=yes
8171 tcpdump_cv_capable_yacc=insufficient
8174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcpdump_cv_capable_yacc" >&5
8175 $as_echo "$tcpdump_cv_capable_yacc" >&6; }
8176 if test $tcpdump_cv_capable_yacc = insufficient ; then
8177 as_fn_error $? "$YACC is insufficient to compile libpcap.
8178 libpcap requires Bison, a newer version of Berkeley YACC with support
8179 for reentrant parsers, or another YACC compatible with them." "$LINENO" 5
8183 # Do various checks for various OSes and versions of those OSes.
8185 # Assume, by default, no support for shared libraries and V7/BSD
8186 # convention for man pages (devices in section 4, file formats in
8187 # section 5, miscellaneous info in section 7, administrative commands
8188 # and daemons in section 8). Individual cases can override this.
8194 MAN_ADMIN_COMMANDS=8
8199 $as_echo "#define _SUN 1" >>confdefs.h
8203 # AIX makes it fun to build shared and static libraries,
8204 # because they're *both* ".a" archive libraries. We
8205 # build the static library for the benefit of the traditional
8206 # scheme of building libpcap and tcpdump in subdirectories of
8207 # the same directory, with tcpdump statically linked with the
8208 # libpcap in question, but we also build a shared library as
8209 # "libpcap.shareda" and install *it*, rather than the static
8210 # library, as "libpcap.a".
8218 # If we're using DLPI, applications will need to
8219 # use /lib/pse.exp if present, as we use the
8222 pseexe="/lib/pse.exp"
8223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $pseexe" >&5
8224 $as_echo_n "checking for $pseexe... " >&6; }
8225 if test -f $pseexe ; then
8226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8227 $as_echo "yes" >&6; }
8234 # If we're using BPF, we need "-lodm" and "-lcfg", as
8235 # we use them to load the BPF module.
8244 V_CCOPT="$V_CCOPT -fno-common"
8245 # Check whether --enable-universal was given.
8246 if test "${enable_universal+set}" = set; then :
8247 enableval=$enable_universal;
8250 if test "$enable_universal" != "no"; then
8255 # Pre-Tiger. Build only for 32-bit PowerPC; no
8256 # need for any special compiler or linker flags.
8260 darwin8.[0123]|darwin8.[0123].*)
8262 # Tiger, prior to Intel support. Build
8263 # libraries and executables for 32-bit PowerPC
8264 # and 64-bit PowerPC, with 32-bit PowerPC first.
8265 # (I'm guessing that's what Apple does.)
8267 # (The double brackets are needed because
8268 # autotools/m4 use brackets as a quoting
8269 # character; the double brackets turn into
8270 # single brackets in the generated configure
8273 V_LIB_CCOPT_FAT="-arch ppc -arch ppc64"
8274 V_LIB_LDFLAGS_FAT="-arch ppc -arch ppc64"
8275 V_PROG_CCOPT_FAT="-arch ppc -arch ppc64"
8276 V_PROG_LDFLAGS_FAT="-arch ppc -arch ppc64"
8279 darwin8.[456]|darwin.[456].*)
8281 # Tiger, subsequent to Intel support but prior
8282 # to x86-64 support. Build libraries and
8283 # executables for 32-bit PowerPC, 64-bit
8284 # PowerPC, and 32-bit x86, with 32-bit PowerPC
8285 # first. (I'm guessing that's what Apple does.)
8287 # (The double brackets are needed because
8288 # autotools/m4 use brackets as a quoting
8289 # character; the double brackets turn into
8290 # single brackets in the generated configure
8293 V_LIB_CCOPT_FAT="-arch ppc -arch ppc64 -arch i386"
8294 V_LIB_LDFLAGS_FAT="-arch ppc -arch ppc64 -arch i386"
8295 V_PROG_CCOPT_FAT="-arch ppc -arch ppc64 -arch i386"
8296 V_PROG_LDFLAGS_FAT="-arch ppc -arch ppc64 -arch i386"
8301 # All other Tiger, so subsequent to x86-64
8302 # support. Build libraries and executables for
8303 # 32-bit PowerPC, 64-bit PowerPC, 32-bit x86,
8304 # and x86-64, with 32-bit PowerPC first. (I'm
8305 # guessing that's what Apple does.)
8307 V_LIB_CCOPT_FAT="-arch ppc -arch ppc64 -arch i386 -arch x86_64"
8308 V_LIB_LDFLAGS_FAT="-arch ppc -arch ppc64 -arch i386 -arch x86_64"
8309 V_PROG_CCOPT_FAT="-arch ppc -arch ppc64 -arch i386 -arch x86_64"
8310 V_PROG_LDFLAGS_FAT="-arch ppc -arch ppc64 -arch i386 -arch x86_64"
8315 # Leopard. Build libraries for 32-bit PowerPC,
8316 # 64-bit PowerPC, 32-bit x86, and x86-64, with
8317 # 32-bit PowerPC first, and build executables
8318 # for 32-bit x86 and 32-bit PowerPC, with 32-bit
8319 # x86 first. (That's what Apple does.)
8321 V_LIB_CCOPT_FAT="-arch ppc -arch ppc64 -arch i386 -arch x86_64"
8322 V_LIB_LDFLAGS_FAT="-arch ppc -arch ppc64 -arch i386 -arch x86_64"
8323 V_PROG_CCOPT_FAT="-arch i386 -arch ppc"
8324 V_PROG_LDFLAGS_FAT="-arch i386 -arch ppc"
8329 # Snow Leopard. Build libraries for x86-64,
8330 # 32-bit x86, and 32-bit PowerPC, with x86-64
8331 # first, and build executables for x86-64 and
8332 # 32-bit x86, with x86-64 first. (That's what
8333 # Apple does, even though Snow Leopard doesn't
8334 # run on PPC, so PPC libpcap runs under Rosetta,
8335 # and Rosetta doesn't support BPF ioctls, so PPC
8336 # programs can't do live captures.)
8338 V_LIB_CCOPT_FAT="-arch x86_64 -arch i386 -arch ppc"
8339 V_LIB_LDFLAGS_FAT="-arch x86_64 -arch i386 -arch ppc"
8340 V_PROG_CCOPT_FAT="-arch x86_64 -arch i386"
8341 V_PROG_LDFLAGS_FAT="-arch x86_64 -arch i386"
8346 # Post-Snow Leopard. Build libraries for x86-64
8347 # and 32-bit x86, with x86-64 first, and build
8348 # executables only for x86-64. (That's what
8349 # Apple does.) This requires no special flags
8351 # XXX - update if and when Apple drops support
8352 # for 32-bit x86 code and if and when Apple adds
8353 # ARM-based Macs. (You're on your own for iOS
8356 # XXX - check whether we *can* build for
8357 # i386 and, if not, suggest that the user
8358 # install the /usr/include headers if they
8359 # want to build fat.
8361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether building for 32-bit x86 is supported" >&5
8362 $as_echo_n "checking whether building for 32-bit x86 is supported... " >&6; }
8363 save_CFLAGS="$CFLAGS"
8364 CFLAGS="$CFLAGS -arch i386"
8365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8366 /* end confdefs.h. */
8376 if ac_fn_c_try_compile "$LINENO"; then :
8378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8379 $as_echo "yes" >&6; }
8380 V_LIB_CCOPT_FAT="-arch x86_64"
8381 V_LIB_LDFLAGS_FAT="-arch x86_64"
8384 # OpenSSL installation on macOS seems
8385 # to install only the libs for 64-bit
8386 # x86 - at least that's what Brew does:
8387 # only configure 32-bit builds if we
8388 # don't have OpenSSL.
8390 if test "$HAVE_OPENSSL" != yes; then
8391 V_LIB_CCOPT_FAT="$V_LIB_CCOPT_FAT -arch i386"
8392 V_LIB_LDFLAGS_FAT="$V_LIB_LDFLAGS_FAT -arch i386"
8397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8398 $as_echo "no" >&6; }
8399 V_LIB_CCOPT_FAT="-arch x86_64"
8400 V_LIB_LDFLAGS_FAT="-arch x86_64"
8405 # Mojave; you need to install the
8406 # /usr/include headers to get
8407 # 32-bit x86 builds to work.
8409 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Compiling for 32-bit x86 gives an error; try installing the command-line tools and, after that, installing the /usr/include headers from the /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg package" >&5
8410 $as_echo "$as_me: WARNING: Compiling for 32-bit x86 gives an error; try installing the command-line tools and, after that, installing the /usr/include headers from the /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg package" >&2;}
8415 # Pre-Mojave; the command-line
8416 # tools should be sufficient to
8417 # enable 32-bit x86 builds.
8419 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Compiling for 32-bit x86 gives an error; try installing the command-line tools" >&5
8420 $as_echo "$as_me: WARNING: Compiling for 32-bit x86 gives an error; try installing the command-line tools" >&2;}
8425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8426 CFLAGS="$save_CFLAGS"
8427 if test "$HAVE_OPENSSL" = yes; then
8429 # If all else fails, look for OpenSSL in
8432 CFLAGS="$CFLAGS -I/usr/local/opt/openssl/include"
8433 LIBS="$LIBS -L/usr/local/opt/openssl/lib"
8442 $as_echo "#define HAVE_HPUX9 1" >>confdefs.h
8446 # Use System V conventions for man pages.
8448 MAN_ADMIN_COMMANDS=1m
8456 # Use System V conventions for man pages.
8458 MAN_ADMIN_COMMANDS=1m
8466 # Use System V conventions for man pages.
8468 MAN_ADMIN_COMMANDS=1m
8475 $as_echo "#define HAVE_HPUX10_20_OR_LATER 1" >>confdefs.h
8477 if test "`uname
-m`" = "ia64"; then
8484 # "-b" builds a shared library; "+h" sets the soname.
8490 # Use System V conventions for man pages.
8498 # Use IRIX conventions for man pages; they're the same as the
8499 # System V conventions, except that they use section 8 for
8500 # administrative commands and daemons.
8506 linux*|freebsd*|netbsd*|openbsd*|dragonfly*|kfreebsd*|gnu*)
8510 # Compiler assumed to be GCC; run-time linker may require a -R
8513 if test "$libdir" != "/usr/lib"; then
8514 V_RFLAGS=-Wl,-R$libdir
8522 # DEC OSF/1, a/k/a Digial UNIX, a/k/a Tru64 UNIX.
8523 # Use Tru64 UNIX conventions for man pages; they're the same as
8524 # the System V conventions except that they use section 8 for
8525 # administrative commands and daemons.
8533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if SINIX compiler defines sinix" >&5
8534 $as_echo_n "checking if SINIX compiler defines sinix... " >&6; }
8535 if ${ac_cv_cc_sinix_defined+:} false; then :
8536 $as_echo_n "(cached) " >&6
8538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8539 /* end confdefs.h. */
8549 if ac_fn_c_try_compile "$LINENO"; then :
8550 ac_cv_cc_sinix_defined=yes
8552 ac_cv_cc_sinix_defined=no
8554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_sinix_defined" >&5
8558 $as_echo "$ac_cv_cc_sinix_defined" >&6; }
8559 if test $ac_cv_cc_sinix_defined = no ; then
8561 $as_echo "#define sinix 1" >>confdefs.h
8568 $as_echo "#define HAVE_SOLARIS 1" >>confdefs.h
8574 # Make sure errno is thread-safe, in case we're called in
8575 # a multithreaded program. We don't guarantee that two
8576 # threads can use the *same* pcap_t safely, but the
8577 # current version does guarantee that you can use different
8578 # pcap_t's in different threads, and even that pcap_compile()
8579 # is thread-safe (it wasn't thread-safe in some older versions).
8581 V_CCOPT="$V_CCOPT -D_TS_ERRNO"
8583 case "`uname
-r`" in
8590 # Use System V conventions for man pages.
8592 MAN_ADMIN_COMMANDS=1m
8600 # Check whether --enable-shared was given.
8601 if test "${enable_shared+set}" = set; then :
8602 enableval=$enable_shared;
8605 test "x$enable_shared" = "xno" && DYEXT="none"
8607 if test -n "$ac_tool_prefix"; then
8608 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8609 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8611 $as_echo_n "checking for $ac_word... " >&6; }
8612 if ${ac_cv_prog_RANLIB+:} false; then :
8613 $as_echo_n "(cached) " >&6
8615 if test -n "$RANLIB"; then
8616 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8622 test -z "$as_dir" && as_dir=.
8623 for ac_exec_ext in '' $ac_executable_extensions; do
8624 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8625 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8626 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8635 RANLIB=$ac_cv_prog_RANLIB
8636 if test -n "$RANLIB"; then
8637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8638 $as_echo "$RANLIB" >&6; }
8640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8641 $as_echo "no" >&6; }
8646 if test -z "$ac_cv_prog_RANLIB"; then
8647 ac_ct_RANLIB=$RANLIB
8648 # Extract the first word of "ranlib", so it can be a program name with args.
8649 set dummy ranlib; ac_word=$2
8650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8651 $as_echo_n "checking for $ac_word... " >&6; }
8652 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8653 $as_echo_n "(cached) " >&6
8655 if test -n "$ac_ct_RANLIB"; then
8656 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8662 test -z "$as_dir" && as_dir=.
8663 for ac_exec_ext in '' $ac_executable_extensions; do
8664 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8665 ac_cv_prog_ac_ct_RANLIB="ranlib"
8666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8675 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8676 if test -n "$ac_ct_RANLIB"; then
8677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8678 $as_echo "$ac_ct_RANLIB" >&6; }
8680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8681 $as_echo "no" >&6; }
8684 if test "x$ac_ct_RANLIB" = x; then
8687 case $cross_compiling:$ac_tool_warned in
8689 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8690 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8691 ac_tool_warned=yes ;;
8693 RANLIB=$ac_ct_RANLIB
8696 RANLIB="$ac_cv_prog_RANLIB"
8699 if test -n "$ac_tool_prefix"; then
8700 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8701 set dummy ${ac_tool_prefix}ar; ac_word=$2
8702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8703 $as_echo_n "checking for $ac_word... " >&6; }
8704 if ${ac_cv_prog_AR+:} false; then :
8705 $as_echo_n "(cached) " >&6
8707 if test -n "$AR"; then
8708 ac_cv_prog_AR="$AR" # Let the user override the test.
8710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8714 test -z "$as_dir" && as_dir=.
8715 for ac_exec_ext in '' $ac_executable_extensions; do
8716 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8717 ac_cv_prog_AR="${ac_tool_prefix}ar"
8718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8728 if test -n "$AR"; then
8729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8730 $as_echo "$AR" >&6; }
8732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8733 $as_echo "no" >&6; }
8738 if test -z "$ac_cv_prog_AR"; then
8740 # Extract the first word of "ar", so it can be a program name with args.
8741 set dummy ar; ac_word=$2
8742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8743 $as_echo_n "checking for $ac_word... " >&6; }
8744 if ${ac_cv_prog_ac_ct_AR+:} false; then :
8745 $as_echo_n "(cached) " >&6
8747 if test -n "$ac_ct_AR"; then
8748 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8754 test -z "$as_dir" && as_dir=.
8755 for ac_exec_ext in '' $ac_executable_extensions; do
8756 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8757 ac_cv_prog_ac_ct_AR="ar"
8758 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8767 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8768 if test -n "$ac_ct_AR"; then
8769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8770 $as_echo "$ac_ct_AR" >&6; }
8772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8773 $as_echo "no" >&6; }
8776 if test "x$ac_ct_AR" = x; then
8779 case $cross_compiling:$ac_tool_warned in
8781 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8782 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8783 ac_tool_warned=yes ;;
8792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8793 $as_echo_n "checking whether ln -s works... " >&6; }
8795 if test "$LN_S" = "ln -s"; then
8796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8797 $as_echo "yes" >&6; }
8799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
8800 $as_echo "no, using $LN_S" >&6; }
8806 if test "${LBL_CFLAGS+set}" = set; then
8807 V_CCOPT="$V_CCOPT ${LBL_CFLAGS}"
8809 if test -f .devel ; then
8811 # Skip all the warning option stuff on some compilers.
8813 if test "$ac_lbl_cc_dont_try_gcc_dashW" != yes; then
8815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler fails when given an unknown warning option" >&5
8816 $as_echo_n "checking whether the compiler fails when given an unknown warning option... " >&6; }
8817 save_CFLAGS="$CFLAGS"
8818 CFLAGS="$CFLAGS -Wxyzzy-this-will-never-succeed-xyzzy"
8819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8820 /* end confdefs.h. */
8830 if ac_fn_c_try_compile "$LINENO"; then :
8832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8833 $as_echo "no" >&6; }
8835 # We're assuming this is clang, where
8836 # -Werror=unknown-warning-option is the appropriate
8837 # option to force the compiler to fail.
8839 ac_lbl_unknown_warning_option_error="-Werror=unknown-warning-option"
8843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8844 $as_echo "yes" >&6; }
8847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8848 CFLAGS="$save_CFLAGS"
8851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -W option" >&5
8852 $as_echo_n "checking whether the compiler supports the -W option... " >&6; }
8853 save_CFLAGS="$CFLAGS"
8854 if expr "x-W" : "x-W.*" >/dev/null
8856 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -W"
8857 elif expr "x-W" : "x-f.*" >/dev/null
8859 CFLAGS="$CFLAGS -Werror -W"
8860 elif expr "x-W" : "x-m.*" >/dev/null
8862 CFLAGS="$CFLAGS -Werror -W"
8866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8867 /* end confdefs.h. */
8877 if ac_fn_c_try_compile "$LINENO"; then :
8879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8880 $as_echo "yes" >&6; }
8881 can_add_to_cflags=yes
8883 # The compile supports this; do we have some C code for
8884 # which the warning should *not* appear?
8885 # We test the fourth argument because the third argument
8886 # could contain quotes, breaking the test.
8890 CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors"
8891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -W " >&5
8892 $as_echo_n "checking whether -W ... " >&6; }
8893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8894 /* end confdefs.h. */
8897 if ac_fn_c_try_compile "$LINENO"; then :
8902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8903 $as_echo "no" >&6; }
8910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8911 $as_echo "yes" >&6; }
8912 can_add_to_cflags=no
8915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8917 CFLAGS="$save_CFLAGS"
8918 if test x"$can_add_to_cflags" = "xyes"
8920 V_CCOPT="$V_CCOPT -W"
8925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8926 $as_echo "no" >&6; }
8927 CFLAGS="$save_CFLAGS"
8930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wall option" >&5
8934 $as_echo_n "checking whether the compiler supports the -Wall option... " >&6; }
8935 save_CFLAGS="$CFLAGS"
8936 if expr "x-Wall" : "x-W.*" >/dev/null
8938 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wall"
8939 elif expr "x-Wall" : "x-f.*" >/dev/null
8941 CFLAGS="$CFLAGS -Werror -Wall"
8942 elif expr "x-Wall" : "x-m.*" >/dev/null
8944 CFLAGS="$CFLAGS -Werror -Wall"
8946 CFLAGS="$CFLAGS -Wall"
8948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8949 /* end confdefs.h. */
8959 if ac_fn_c_try_compile "$LINENO"; then :
8961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8962 $as_echo "yes" >&6; }
8963 can_add_to_cflags=yes
8965 # The compile supports this; do we have some C code for
8966 # which the warning should *not* appear?
8967 # We test the fourth argument because the third argument
8968 # could contain quotes, breaking the test.
8972 CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors"
8973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wall " >&5
8974 $as_echo_n "checking whether -Wall ... " >&6; }
8975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8976 /* end confdefs.h. */
8979 if ac_fn_c_try_compile "$LINENO"; then :
8984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8985 $as_echo "no" >&6; }
8992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8993 $as_echo "yes" >&6; }
8994 can_add_to_cflags=no
8997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8999 CFLAGS="$save_CFLAGS"
9000 if test x"$can_add_to_cflags" = "xyes"
9002 V_CCOPT="$V_CCOPT -Wall"
9007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9008 $as_echo "no" >&6; }
9009 CFLAGS="$save_CFLAGS"
9012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wcomma option" >&5
9016 $as_echo_n "checking whether the compiler supports the -Wcomma option... " >&6; }
9017 save_CFLAGS="$CFLAGS"
9018 if expr "x-Wcomma" : "x-W.*" >/dev/null
9020 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wcomma"
9021 elif expr "x-Wcomma" : "x-f.*" >/dev/null
9023 CFLAGS="$CFLAGS -Werror -Wcomma"
9024 elif expr "x-Wcomma" : "x-m.*" >/dev/null
9026 CFLAGS="$CFLAGS -Werror -Wcomma"
9028 CFLAGS="$CFLAGS -Wcomma"
9030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9031 /* end confdefs.h. */
9041 if ac_fn_c_try_compile "$LINENO"; then :
9043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9044 $as_echo "yes" >&6; }
9045 can_add_to_cflags=yes
9047 # The compile supports this; do we have some C code for
9048 # which the warning should *not* appear?
9049 # We test the fourth argument because the third argument
9050 # could contain quotes, breaking the test.
9054 CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors"
9055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wcomma " >&5
9056 $as_echo_n "checking whether -Wcomma ... " >&6; }
9057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9058 /* end confdefs.h. */
9061 if ac_fn_c_try_compile "$LINENO"; then :
9066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9067 $as_echo "no" >&6; }
9074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9075 $as_echo "yes" >&6; }
9076 can_add_to_cflags=no
9079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9081 CFLAGS="$save_CFLAGS"
9082 if test x"$can_add_to_cflags" = "xyes"
9084 V_CCOPT="$V_CCOPT -Wcomma"
9089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9090 $as_echo "no" >&6; }
9091 CFLAGS="$save_CFLAGS"
9094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wdocumentation option" >&5
9098 $as_echo_n "checking whether the compiler supports the -Wdocumentation option... " >&6; }
9099 save_CFLAGS="$CFLAGS"
9100 if expr "x-Wdocumentation" : "x-W.*" >/dev/null
9102 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wdocumentation"
9103 elif expr "x-Wdocumentation" : "x-f.*" >/dev/null
9105 CFLAGS="$CFLAGS -Werror -Wdocumentation"
9106 elif expr "x-Wdocumentation" : "x-m.*" >/dev/null
9108 CFLAGS="$CFLAGS -Werror -Wdocumentation"
9110 CFLAGS="$CFLAGS -Wdocumentation"
9112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9113 /* end confdefs.h. */
9123 if ac_fn_c_try_compile "$LINENO"; then :
9125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9126 $as_echo "yes" >&6; }
9127 can_add_to_cflags=yes
9129 # The compile supports this; do we have some C code for
9130 # which the warning should *not* appear?
9131 # We test the fourth argument because the third argument
9132 # could contain quotes, breaking the test.
9136 CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors"
9137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wdocumentation " >&5
9138 $as_echo_n "checking whether -Wdocumentation ... " >&6; }
9139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9140 /* end confdefs.h. */
9143 if ac_fn_c_try_compile "$LINENO"; then :
9148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9149 $as_echo "no" >&6; }
9156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9157 $as_echo "yes" >&6; }
9158 can_add_to_cflags=no
9161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9163 CFLAGS="$save_CFLAGS"
9164 if test x"$can_add_to_cflags" = "xyes"
9166 V_CCOPT="$V_CCOPT -Wdocumentation"
9171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9172 $as_echo "no" >&6; }
9173 CFLAGS="$save_CFLAGS"
9176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wformat-nonliteral option" >&5
9180 $as_echo_n "checking whether the compiler supports the -Wformat-nonliteral option... " >&6; }
9181 save_CFLAGS="$CFLAGS"
9182 if expr "x-Wformat-nonliteral" : "x-W.*" >/dev/null
9184 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wformat-nonliteral"
9185 elif expr "x-Wformat-nonliteral" : "x-f.*" >/dev/null
9187 CFLAGS="$CFLAGS -Werror -Wformat-nonliteral"
9188 elif expr "x-Wformat-nonliteral" : "x-m.*" >/dev/null
9190 CFLAGS="$CFLAGS -Werror -Wformat-nonliteral"
9192 CFLAGS="$CFLAGS -Wformat-nonliteral"
9194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9195 /* end confdefs.h. */
9205 if ac_fn_c_try_compile "$LINENO"; then :
9207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9208 $as_echo "yes" >&6; }
9209 can_add_to_cflags=yes
9211 # The compile supports this; do we have some C code for
9212 # which the warning should *not* appear?
9213 # We test the fourth argument because the third argument
9214 # could contain quotes, breaking the test.
9218 CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors"
9219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wformat-nonliteral " >&5
9220 $as_echo_n "checking whether -Wformat-nonliteral ... " >&6; }
9221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9222 /* end confdefs.h. */
9225 if ac_fn_c_try_compile "$LINENO"; then :
9230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9231 $as_echo "no" >&6; }
9238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9239 $as_echo "yes" >&6; }
9240 can_add_to_cflags=no
9243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9245 CFLAGS="$save_CFLAGS"
9246 if test x"$can_add_to_cflags" = "xyes"
9248 V_CCOPT="$V_CCOPT -Wformat-nonliteral"
9253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9254 $as_echo "no" >&6; }
9255 CFLAGS="$save_CFLAGS"
9258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wmissing-noreturn option" >&5
9262 $as_echo_n "checking whether the compiler supports the -Wmissing-noreturn option... " >&6; }
9263 save_CFLAGS="$CFLAGS"
9264 if expr "x-Wmissing-noreturn" : "x-W.*" >/dev/null
9266 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wmissing-noreturn"
9267 elif expr "x-Wmissing-noreturn" : "x-f.*" >/dev/null
9269 CFLAGS="$CFLAGS -Werror -Wmissing-noreturn"
9270 elif expr "x-Wmissing-noreturn" : "x-m.*" >/dev/null
9272 CFLAGS="$CFLAGS -Werror -Wmissing-noreturn"
9274 CFLAGS="$CFLAGS -Wmissing-noreturn"
9276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9277 /* end confdefs.h. */
9287 if ac_fn_c_try_compile "$LINENO"; then :
9289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9290 $as_echo "yes" >&6; }
9291 can_add_to_cflags=yes
9293 # The compile supports this; do we have some C code for
9294 # which the warning should *not* appear?
9295 # We test the fourth argument because the third argument
9296 # could contain quotes, breaking the test.
9300 CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors"
9301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wmissing-noreturn " >&5
9302 $as_echo_n "checking whether -Wmissing-noreturn ... " >&6; }
9303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9304 /* end confdefs.h. */
9307 if ac_fn_c_try_compile "$LINENO"; then :
9312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9313 $as_echo "no" >&6; }
9320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9321 $as_echo "yes" >&6; }
9322 can_add_to_cflags=no
9325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9327 CFLAGS="$save_CFLAGS"
9328 if test x"$can_add_to_cflags" = "xyes"
9330 V_CCOPT="$V_CCOPT -Wmissing-noreturn"
9335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9336 $as_echo "no" >&6; }
9337 CFLAGS="$save_CFLAGS"
9340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wmissing-prototypes option" >&5
9344 $as_echo_n "checking whether the compiler supports the -Wmissing-prototypes option... " >&6; }
9345 save_CFLAGS="$CFLAGS"
9346 if expr "x-Wmissing-prototypes" : "x-W.*" >/dev/null
9348 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wmissing-prototypes"
9349 elif expr "x-Wmissing-prototypes" : "x-f.*" >/dev/null
9351 CFLAGS="$CFLAGS -Werror -Wmissing-prototypes"
9352 elif expr "x-Wmissing-prototypes" : "x-m.*" >/dev/null
9354 CFLAGS="$CFLAGS -Werror -Wmissing-prototypes"
9356 CFLAGS="$CFLAGS -Wmissing-prototypes"
9358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9359 /* end confdefs.h. */
9369 if ac_fn_c_try_compile "$LINENO"; then :
9371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9372 $as_echo "yes" >&6; }
9373 can_add_to_cflags=yes
9375 # The compile supports this; do we have some C code for
9376 # which the warning should *not* appear?
9377 # We test the fourth argument because the third argument
9378 # could contain quotes, breaking the test.
9382 CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors"
9383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wmissing-prototypes " >&5
9384 $as_echo_n "checking whether -Wmissing-prototypes ... " >&6; }
9385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9386 /* end confdefs.h. */
9389 if ac_fn_c_try_compile "$LINENO"; then :
9394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9395 $as_echo "no" >&6; }
9402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9403 $as_echo "yes" >&6; }
9404 can_add_to_cflags=no
9407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9409 CFLAGS="$save_CFLAGS"
9410 if test x"$can_add_to_cflags" = "xyes"
9412 V_CCOPT="$V_CCOPT -Wmissing-prototypes"
9417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9418 $as_echo "no" >&6; }
9419 CFLAGS="$save_CFLAGS"
9422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wmissing-variable-declarations option" >&5
9426 $as_echo_n "checking whether the compiler supports the -Wmissing-variable-declarations option... " >&6; }
9427 save_CFLAGS="$CFLAGS"
9428 if expr "x-Wmissing-variable-declarations" : "x-W.*" >/dev/null
9430 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wmissing-variable-declarations"
9431 elif expr "x-Wmissing-variable-declarations" : "x-f.*" >/dev/null
9433 CFLAGS="$CFLAGS -Werror -Wmissing-variable-declarations"
9434 elif expr "x-Wmissing-variable-declarations" : "x-m.*" >/dev/null
9436 CFLAGS="$CFLAGS -Werror -Wmissing-variable-declarations"
9438 CFLAGS="$CFLAGS -Wmissing-variable-declarations"
9440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9441 /* end confdefs.h. */
9451 if ac_fn_c_try_compile "$LINENO"; then :
9453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9454 $as_echo "yes" >&6; }
9455 can_add_to_cflags=yes
9457 # The compile supports this; do we have some C code for
9458 # which the warning should *not* appear?
9459 # We test the fourth argument because the third argument
9460 # could contain quotes, breaking the test.
9464 CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors"
9465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wmissing-variable-declarations " >&5
9466 $as_echo_n "checking whether -Wmissing-variable-declarations ... " >&6; }
9467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9468 /* end confdefs.h. */
9471 if ac_fn_c_try_compile "$LINENO"; then :
9476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9477 $as_echo "no" >&6; }
9484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9485 $as_echo "yes" >&6; }
9486 can_add_to_cflags=no
9489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9491 CFLAGS="$save_CFLAGS"
9492 if test x"$can_add_to_cflags" = "xyes"
9494 V_CCOPT="$V_CCOPT -Wmissing-variable-declarations"
9499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9500 $as_echo "no" >&6; }
9501 CFLAGS="$save_CFLAGS"
9504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wshadow option" >&5
9508 $as_echo_n "checking whether the compiler supports the -Wshadow option... " >&6; }
9509 save_CFLAGS="$CFLAGS"
9510 if expr "x-Wshadow" : "x-W.*" >/dev/null
9512 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wshadow"
9513 elif expr "x-Wshadow" : "x-f.*" >/dev/null
9515 CFLAGS="$CFLAGS -Werror -Wshadow"
9516 elif expr "x-Wshadow" : "x-m.*" >/dev/null
9518 CFLAGS="$CFLAGS -Werror -Wshadow"
9520 CFLAGS="$CFLAGS -Wshadow"
9522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9523 /* end confdefs.h. */
9533 if ac_fn_c_try_compile "$LINENO"; then :
9535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9536 $as_echo "yes" >&6; }
9537 can_add_to_cflags=yes
9539 # The compile supports this; do we have some C code for
9540 # which the warning should *not* appear?
9541 # We test the fourth argument because the third argument
9542 # could contain quotes, breaking the test.
9546 CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors"
9547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wshadow " >&5
9548 $as_echo_n "checking whether -Wshadow ... " >&6; }
9549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9550 /* end confdefs.h. */
9553 if ac_fn_c_try_compile "$LINENO"; then :
9558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9559 $as_echo "no" >&6; }
9566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9567 $as_echo "yes" >&6; }
9568 can_add_to_cflags=no
9571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9573 CFLAGS="$save_CFLAGS"
9574 if test x"$can_add_to_cflags" = "xyes"
9576 V_CCOPT="$V_CCOPT -Wshadow"
9581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9582 $as_echo "no" >&6; }
9583 CFLAGS="$save_CFLAGS"
9586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wsign-compare option" >&5
9590 $as_echo_n "checking whether the compiler supports the -Wsign-compare option... " >&6; }
9591 save_CFLAGS="$CFLAGS"
9592 if expr "x-Wsign-compare" : "x-W.*" >/dev/null
9594 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wsign-compare"
9595 elif expr "x-Wsign-compare" : "x-f.*" >/dev/null
9597 CFLAGS="$CFLAGS -Werror -Wsign-compare"
9598 elif expr "x-Wsign-compare" : "x-m.*" >/dev/null
9600 CFLAGS="$CFLAGS -Werror -Wsign-compare"
9602 CFLAGS="$CFLAGS -Wsign-compare"
9604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9605 /* end confdefs.h. */
9615 if ac_fn_c_try_compile "$LINENO"; then :
9617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9618 $as_echo "yes" >&6; }
9619 can_add_to_cflags=yes
9621 # The compile supports this; do we have some C code for
9622 # which the warning should *not* appear?
9623 # We test the fourth argument because the third argument
9624 # could contain quotes, breaking the test.
9628 CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors"
9629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wsign-compare " >&5
9630 $as_echo_n "checking whether -Wsign-compare ... " >&6; }
9631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9632 /* end confdefs.h. */
9635 if ac_fn_c_try_compile "$LINENO"; then :
9640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9641 $as_echo "no" >&6; }
9648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9649 $as_echo "yes" >&6; }
9650 can_add_to_cflags=no
9653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9655 CFLAGS="$save_CFLAGS"
9656 if test x"$can_add_to_cflags" = "xyes"
9658 V_CCOPT="$V_CCOPT -Wsign-compare"
9663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9664 $as_echo "no" >&6; }
9665 CFLAGS="$save_CFLAGS"
9668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wstrict-prototypes option" >&5
9672 $as_echo_n "checking whether the compiler supports the -Wstrict-prototypes option... " >&6; }
9673 save_CFLAGS="$CFLAGS"
9674 if expr "x-Wstrict-prototypes" : "x-W.*" >/dev/null
9676 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wstrict-prototypes"
9677 elif expr "x-Wstrict-prototypes" : "x-f.*" >/dev/null
9679 CFLAGS="$CFLAGS -Werror -Wstrict-prototypes"
9680 elif expr "x-Wstrict-prototypes" : "x-m.*" >/dev/null
9682 CFLAGS="$CFLAGS -Werror -Wstrict-prototypes"
9684 CFLAGS="$CFLAGS -Wstrict-prototypes"
9686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9687 /* end confdefs.h. */
9697 if ac_fn_c_try_compile "$LINENO"; then :
9699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9700 $as_echo "yes" >&6; }
9701 can_add_to_cflags=yes
9703 # The compile supports this; do we have some C code for
9704 # which the warning should *not* appear?
9705 # We test the fourth argument because the third argument
9706 # could contain quotes, breaking the test.
9710 CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors"
9711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wstrict-prototypes " >&5
9712 $as_echo_n "checking whether -Wstrict-prototypes ... " >&6; }
9713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9714 /* end confdefs.h. */
9717 if ac_fn_c_try_compile "$LINENO"; then :
9722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9723 $as_echo "no" >&6; }
9730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9731 $as_echo "yes" >&6; }
9732 can_add_to_cflags=no
9735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9737 CFLAGS="$save_CFLAGS"
9738 if test x"$can_add_to_cflags" = "xyes"
9740 V_CCOPT="$V_CCOPT -Wstrict-prototypes"
9745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9746 $as_echo "no" >&6; }
9747 CFLAGS="$save_CFLAGS"
9750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wunused-parameter option" >&5
9754 $as_echo_n "checking whether the compiler supports the -Wunused-parameter option... " >&6; }
9755 save_CFLAGS="$CFLAGS"
9756 if expr "x-Wunused-parameter" : "x-W.*" >/dev/null
9758 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wunused-parameter"
9759 elif expr "x-Wunused-parameter" : "x-f.*" >/dev/null
9761 CFLAGS="$CFLAGS -Werror -Wunused-parameter"
9762 elif expr "x-Wunused-parameter" : "x-m.*" >/dev/null
9764 CFLAGS="$CFLAGS -Werror -Wunused-parameter"
9766 CFLAGS="$CFLAGS -Wunused-parameter"
9768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9769 /* end confdefs.h. */
9779 if ac_fn_c_try_compile "$LINENO"; then :
9781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9782 $as_echo "yes" >&6; }
9783 can_add_to_cflags=yes
9785 # The compile supports this; do we have some C code for
9786 # which the warning should *not* appear?
9787 # We test the fourth argument because the third argument
9788 # could contain quotes, breaking the test.
9792 CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors"
9793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wunused-parameter " >&5
9794 $as_echo_n "checking whether -Wunused-parameter ... " >&6; }
9795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9796 /* end confdefs.h. */
9799 if ac_fn_c_try_compile "$LINENO"; then :
9804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9805 $as_echo "no" >&6; }
9812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9813 $as_echo "yes" >&6; }
9814 can_add_to_cflags=no
9817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9819 CFLAGS="$save_CFLAGS"
9820 if test x"$can_add_to_cflags" = "xyes"
9822 V_CCOPT="$V_CCOPT -Wunused-parameter"
9827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9828 $as_echo "no" >&6; }
9829 CFLAGS="$save_CFLAGS"
9832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wused-but-marked-unused option" >&5
9836 $as_echo_n "checking whether the compiler supports the -Wused-but-marked-unused option... " >&6; }
9837 save_CFLAGS="$CFLAGS"
9838 if expr "x-Wused-but-marked-unused" : "x-W.*" >/dev/null
9840 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wused-but-marked-unused"
9841 elif expr "x-Wused-but-marked-unused" : "x-f.*" >/dev/null
9843 CFLAGS="$CFLAGS -Werror -Wused-but-marked-unused"
9844 elif expr "x-Wused-but-marked-unused" : "x-m.*" >/dev/null
9846 CFLAGS="$CFLAGS -Werror -Wused-but-marked-unused"
9848 CFLAGS="$CFLAGS -Wused-but-marked-unused"
9850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9851 /* end confdefs.h. */
9861 if ac_fn_c_try_compile "$LINENO"; then :
9863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9864 $as_echo "yes" >&6; }
9865 can_add_to_cflags=yes
9867 # The compile supports this; do we have some C code for
9868 # which the warning should *not* appear?
9869 # We test the fourth argument because the third argument
9870 # could contain quotes, breaking the test.
9874 CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors"
9875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wused-but-marked-unused " >&5
9876 $as_echo_n "checking whether -Wused-but-marked-unused ... " >&6; }
9877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9878 /* end confdefs.h. */
9881 if ac_fn_c_try_compile "$LINENO"; then :
9886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9887 $as_echo "no" >&6; }
9894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9895 $as_echo "yes" >&6; }
9896 can_add_to_cflags=no
9899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9901 CFLAGS="$save_CFLAGS"
9902 if test x"$can_add_to_cflags" = "xyes"
9904 V_CCOPT="$V_CCOPT -Wused-but-marked-unused"
9909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9910 $as_echo "no" >&6; }
9911 CFLAGS="$save_CFLAGS"
9914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9916 # Warns about safeguards added in case the enums are
9918 # AC_LBL_CHECK_COMPILER_OPT(V_CCOPT, -Wcovered-switch-default)
9920 # This can cause problems with ntohs(), ntohl(),
9921 # htons(), and htonl() on some platforms, such
9922 # as OpenBSD 6.3 with Clang 5.0.1. I guess the
9923 # problem is that the macro that ultimately does
9924 # the byte-swapping involves a conditional
9925 # expression that tests whether the value being
9926 # swapped is a compile-time constant or not,
9927 # using __builtin_constant_p(), and, depending
9928 # on whether it is, does a compile-time swap or
9929 # a run-time swap; perhaps the compiler always
9930 # considers one of the two results of the
9931 # conditional expressin is never evaluated,
9932 # because the conditional check is done at
9933 # compile time, and thus always says "that
9934 # expression is never executed".
9936 # (Perhaps there should be a way of flagging
9937 # an expression that you *want* evaluated at
9938 # compile time, so that the compiler 1) warns
9939 # if it *can't* be evaluated at compile time
9940 # and 2) *doesn't* warn that the true or false
9941 # branch will never be reached.)
9944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wunreachable-code option" >&5
9945 $as_echo_n "checking whether the compiler supports the -Wunreachable-code option... " >&6; }
9946 save_CFLAGS="$CFLAGS"
9947 if expr "x-Wunreachable-code" : "x-W.*" >/dev/null
9949 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wunreachable-code"
9950 elif expr "x-Wunreachable-code" : "x-f.*" >/dev/null
9952 CFLAGS="$CFLAGS -Werror -Wunreachable-code"
9953 elif expr "x-Wunreachable-code" : "x-m.*" >/dev/null
9955 CFLAGS="$CFLAGS -Werror -Wunreachable-code"
9957 CFLAGS="$CFLAGS -Wunreachable-code"
9959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9960 /* end confdefs.h. */
9970 if ac_fn_c_try_compile "$LINENO"; then :
9972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9973 $as_echo "yes" >&6; }
9974 can_add_to_cflags=yes
9976 # The compile supports this; do we have some C code for
9977 # which the warning should *not* appear?
9978 # We test the fourth argument because the third argument
9979 # could contain quotes, breaking the test.
9981 if test "xgenerates warnings from ntohs()" != "x"
9983 CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors"
9984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wunreachable-code generates warnings from ntohs()" >&5
9985 $as_echo_n "checking whether -Wunreachable-code generates warnings from ntohs()... " >&6; }
9986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9987 /* end confdefs.h. */
9988 #include <arpa/inet.h>
9991 testme(unsigned short a)
9997 if ac_fn_c_try_compile "$LINENO"; then :
10002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10003 $as_echo "no" >&6; }
10010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10011 $as_echo "yes" >&6; }
10012 can_add_to_cflags=no
10015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10017 CFLAGS="$save_CFLAGS"
10018 if test x"$can_add_to_cflags" = "xyes"
10020 V_CCOPT="$V_CCOPT -Wunreachable-code"
10025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10026 $as_echo "no" >&6; }
10027 CFLAGS="$save_CFLAGS"
10030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wshorten-64-to-32 option" >&5
10034 $as_echo_n "checking whether the compiler supports the -Wshorten-64-to-32 option... " >&6; }
10035 save_CFLAGS="$CFLAGS"
10036 if expr "x-Wshorten-64-to-32" : "x-W.*" >/dev/null
10038 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wshorten-64-to-32"
10039 elif expr "x-Wshorten-64-to-32" : "x-f.*" >/dev/null
10041 CFLAGS="$CFLAGS -Werror -Wshorten-64-to-32"
10042 elif expr "x-Wshorten-64-to-32" : "x-m.*" >/dev/null
10044 CFLAGS="$CFLAGS -Werror -Wshorten-64-to-32"
10046 CFLAGS="$CFLAGS -Wshorten-64-to-32"
10048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10049 /* end confdefs.h. */
10059 if ac_fn_c_try_compile "$LINENO"; then :
10061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10062 $as_echo "yes" >&6; }
10063 can_add_to_cflags=yes
10065 # The compile supports this; do we have some C code for
10066 # which the warning should *not* appear?
10067 # We test the fourth argument because the third argument
10068 # could contain quotes, breaking the test.
10072 CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors"
10073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wshorten-64-to-32 " >&5
10074 $as_echo_n "checking whether -Wshorten-64-to-32 ... " >&6; }
10075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10076 /* end confdefs.h. */
10079 if ac_fn_c_try_compile "$LINENO"; then :
10084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10085 $as_echo "no" >&6; }
10092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10093 $as_echo "yes" >&6; }
10094 can_add_to_cflags=no
10097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10099 CFLAGS="$save_CFLAGS"
10100 if test x"$can_add_to_cflags" = "xyes"
10102 V_CCOPT="$V_CCOPT -Wshorten-64-to-32"
10107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10108 $as_echo "no" >&6; }
10109 CFLAGS="$save_CFLAGS"
10112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports generating dependencies" >&5
10117 $as_echo_n "checking whether the compiler supports generating dependencies... " >&6; }
10118 if test "$GCC" = yes ; then
10120 # GCC, or a compiler deemed to be GCC by AC_PROG_CC (even
10121 # though it's not); we assume that, in this case, the flag
10124 ac_lbl_dependency_flag="-M"
10127 # Not GCC or a compiler deemed to be GCC; what platform is
10128 # this? (We're assuming that if the compiler isn't GCC
10129 # it's the compiler from the vendor of the OS; that won't
10130 # necessarily be true for x86 platforms, where it might be
10131 # the Intel C compiler.)
10135 irix*|osf*|darwin*)
10137 # MIPS C for IRIX, DEC C, and clang all use -M.
10139 ac_lbl_dependency_flag="-M"
10146 ac_lbl_dependency_flag="-xM"
10151 # HP's older C compilers don't support this.
10152 # HP's newer C compilers support this with
10153 # either +M or +Make; the older compilers
10154 # interpret +M as something completely
10155 # different, so we use +Make so we don't
10156 # think it works with the older compilers.
10158 ac_lbl_dependency_flag="+Make"
10163 # Not one of the above; assume no support for
10164 # generating dependencies.
10166 ac_lbl_dependency_flag=""
10172 # Is ac_lbl_dependency_flag defined and, if so, does the compiler
10173 # complain about it?
10175 # Note: clang doesn't seem to exit with an error status when handed
10176 # an unknown non-warning error, even if you pass it
10177 # -Werror=unknown-warning-option. However, it always supports
10178 # -M, so the fact that this test always succeeds with clang
10181 if test ! -z "$ac_lbl_dependency_flag"; then
10182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10183 /* end confdefs.h. */
10184 int main(void) { return 0; }
10186 if { { $as_echo "$as_me:${as_lineno-$LINENO}: eval \"\$CC \$ac_lbl_dependency_flag conftest.c >/dev/null 2>&1\""; } >&5
10187 (eval "$CC $ac_lbl_dependency_flag conftest.c >/dev/null 2>&1") 2>&5
10189 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10190 test $ac_status = 0; }; then
10191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, with $ac_lbl_dependency_flag" >&5
10192 $as_echo "yes, with $ac_lbl_dependency_flag" >&6; }
10193 DEPENDENCY_CFLAG="$ac_lbl_dependency_flag"
10194 MKDEP='${srcdir}/mkdep'
10196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10197 $as_echo "no" >&6; }
10199 # We can't run mkdep, so have "make depend" do
10202 MKDEP='${srcdir}/nomkdep'
10206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10207 $as_echo "no" >&6; }
10209 # We can't run mkdep, so have "make depend" do
10212 MKDEP='${srcdir}/nomkdep'
10218 # We used to set -n32 for IRIX 6 when not using GCC (presumed
10219 # to mean that we're using MIPS C or MIPSpro C); it specified
10220 # the "new" faster 32-bit ABI, introduced in IRIX 6.2. I'm
10221 # not sure why that would be something to do *only* with a
10222 # .devel file; why should the ABI for which we produce code
10223 # depend on .devel?
10225 os=`echo $host_os |
sed -e 's/\([0-9][0-9]*\)[^0-9].*$/\1/'`
10226 name="lbl/os-$os.h"
10227 if test -f $name ; then
10228 ln -s $name os-proto.h
10230 $as_echo "#define HAVE_OS_PROTO_H 1" >>confdefs.h
10233 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: can't find $name" >&5
10234 $as_echo "$as_me: WARNING: can't find $name" >&2;}
10239 # Check to see if the sockaddr struct has the 4.4 BSD sa_len member.
10241 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "
10242 #include <sys/types.h>
10243 #include <sys/socket.h>
10246 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
10248 cat >>confdefs.h <<_ACEOF
10249 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
10257 # Check to see if there's a sockaddr_storage structure.
10259 ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "
10260 #include <sys/types.h>
10261 #include <sys/socket.h>
10264 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
10266 cat >>confdefs.h <<_ACEOF
10267 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
10275 # Check to see if the dl_hp_ppa_info_t struct has the HP-UX 11.00
10276 # dl_module_id_1 member.
10278 # NOTE: any failure means we conclude that it doesn't have that member,
10279 # so if we don't have DLPI, don't have a <sys/dlpi_ext.h> header, or
10280 # have one that doesn't declare a dl_hp_ppa_info_t type, we conclude
10281 # it doesn't have that member (which is OK, as either we won't be
10282 # using code that would use that member, or we wouldn't compile in
10285 ac_fn_c_check_member "$LINENO" "dl_hp_ppa_info_t" "dl_module_id_1" "ac_cv_member_dl_hp_ppa_info_t_dl_module_id_1" "
10286 #include <sys/types.h>
10287 #include <sys/dlpi.h>
10288 #include <sys/dlpi_ext.h>
10291 if test "x$ac_cv_member_dl_hp_ppa_info_t_dl_module_id_1" = xyes; then :
10293 cat >>confdefs.h <<_ACEOF
10294 #define HAVE_DL_HP_PPA_INFO_T_DL_MODULE_ID_1 1
10332 # Check whether --enable-usb was given.
10333 if test "${enable_usb+set}" = set; then :
10334 enableval=$enable_usb;
10340 if test "xxx_only" = yes; then
10341 # User requested something-else-only pcap, so they don't
10342 # want USB support.
10346 if test "x$enable_usb" != "xno" ; then
10347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for USB sniffing support" >&5
10348 $as_echo_n "checking for USB sniffing support... " >&6; }
10352 $as_echo "#define PCAP_SUPPORT_USB 1" >>confdefs.h
10354 MSRC="$MSRC pcap-usb-linux.c"
10355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10356 $as_echo "yes" >&6; }
10357 ac_usb_dev_name=`udevinfo
-q name
-p /sys
/class
/usb_device
/usbmon
2>/dev
/null
`
10358 if test $? -ne 0 ; then
10359 ac_usb_dev_name="usbmon"
10362 cat >>confdefs.h <<_ACEOF
10363 #define LINUX_USB_MON_DEV "/dev/$ac_usb_dev_name"
10366 { $as_echo "$as_me:${as_lineno-$LINENO}: Device for USB sniffing is /dev/$ac_usb_dev_name" >&5
10367 $as_echo "$as_me: Device for USB sniffing is /dev/$ac_usb_dev_name" >&6;}
10369 # Do we have a version of <linux/compiler.h> available?
10370 # If so, we might need it for <linux/usbdevice_fs.h>.
10372 for ac_header in linux/compiler.h
10374 ac_fn_c_check_header_mongrel "$LINENO" "linux/compiler.h" "ac_cv_header_linux_compiler_h" "$ac_includes_default"
10375 if test "x$ac_cv_header_linux_compiler_h" = xyes; then :
10376 cat >>confdefs.h <<_ACEOF
10377 #define HAVE_LINUX_COMPILER_H 1
10384 if test "$ac_cv_header_linux_compiler_h" = yes; then
10386 # Yes - include it when testing for <linux/usbdevice_fs.h>.
10388 for ac_header in linux/usbdevice_fs.h
10390 ac_fn_c_check_header_compile "$LINENO" "linux/usbdevice_fs.h" "ac_cv_header_linux_usbdevice_fs_h" "#include <linux/compiler.h>
10392 if test "x$ac_cv_header_linux_usbdevice_fs_h" = xyes; then :
10393 cat >>confdefs.h <<_ACEOF
10394 #define HAVE_LINUX_USBDEVICE_FS_H 1
10402 for ac_header in linux/usbdevice_fs.h
10404 ac_fn_c_check_header_mongrel "$LINENO" "linux/usbdevice_fs.h" "ac_cv_header_linux_usbdevice_fs_h" "$ac_includes_default"
10405 if test "x$ac_cv_header_linux_usbdevice_fs_h" = xyes; then :
10406 cat >>confdefs.h <<_ACEOF
10407 #define HAVE_LINUX_USBDEVICE_FS_H 1
10415 if test "$ac_cv_header_linux_usbdevice_fs_h" = yes; then
10417 # OK, does it define bRequestType? Older versions of the kernel
10418 # define fields with names like "requesttype, "request", and
10419 # "value", rather than "bRequestType", "bRequest", and
10422 ac_fn_c_check_member "$LINENO" "struct usbdevfs_ctrltransfer" "bRequestType" "ac_cv_member_struct_usbdevfs_ctrltransfer_bRequestType" "
10423 $ac_includes_default
10424 #ifdef HAVE_LINUX_COMPILER_H
10425 #include <linux/compiler.h>
10427 #include <linux/usbdevice_fs.h>
10430 if test "x$ac_cv_member_struct_usbdevfs_ctrltransfer_bRequestType" = xyes; then :
10432 cat >>confdefs.h <<_ACEOF
10433 #define HAVE_STRUCT_USBDEVFS_CTRLTRANSFER_BREQUESTTYPE 1
10443 # This just uses BPF in FreeBSD 8.4 and later; we don't need
10444 # to check for anything special for capturing.
10446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in FreeBSD 8.4 and later" >&5
10447 $as_echo "yes, in FreeBSD 8.4 and later" >&6; }
10451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10452 $as_echo "no" >&6; }
10458 if test "xxx_only" != yes; then
10459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the platform could support netfilter sniffing" >&5
10460 $as_echo_n "checking whether the platform could support netfilter sniffing... " >&6; }
10463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10464 $as_echo "yes" >&6; }
10466 # Life's too short to deal with trying to get this to compile
10467 # if you don't get the right types defined with
10468 # __KERNEL_STRICT_NAMES getting defined by some other include.
10470 # Check whether the includes Just Work. If not, don't turn on
10471 # netfilter support.
10473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can compile the netfilter support" >&5
10474 $as_echo_n "checking whether we can compile the netfilter support... " >&6; }
10475 if ${ac_cv_netfilter_can_compile+:} false; then :
10476 $as_echo_n "(cached) " >&6
10478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10479 /* end confdefs.h. */
10481 $ac_includes_default
10482 #include <sys/socket.h>
10483 #include <netinet/in.h>
10484 #include <linux/types.h>
10486 #include <linux/netlink.h>
10487 #include <linux/netfilter.h>
10488 #include <linux/netfilter/nfnetlink.h>
10489 #include <linux/netfilter/nfnetlink_log.h>
10490 #include <linux/netfilter/nfnetlink_queue.h>
10499 if ac_fn_c_try_compile "$LINENO"; then :
10500 ac_cv_netfilter_can_compile=yes
10502 ac_cv_netfilter_can_compile=no
10504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_netfilter_can_compile" >&5
10508 $as_echo "$ac_cv_netfilter_can_compile" >&6; }
10509 if test $ac_cv_netfilter_can_compile = yes ; then
10511 $as_echo "#define PCAP_SUPPORT_NETFILTER 1" >>confdefs.h
10513 MSRC="$MSRC pcap-netfilter-linux.c"
10517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10518 $as_echo "no" >&6; }
10524 # Check whether --enable-netmap was given.
10525 if test "${enable_netmap+set}" = set; then :
10526 enableval=$enable_netmap;
10532 if test "x$enable_netmap" != "xno" ; then
10534 # Check whether net/netmap_user.h is usable if NETMAP_WITH_LIBS is
10535 # defined; it's not usable on DragonFly BSD 4.6 if NETMAP_WITH_LIBS
10536 # is defined, for example, as it includes a non-existent malloc.h
10539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can compile the netmap support" >&5
10540 $as_echo_n "checking whether we can compile the netmap support... " >&6; }
10541 if ${ac_cv_net_netmap_user_can_compile+:} false; then :
10542 $as_echo_n "(cached) " >&6
10544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10545 /* end confdefs.h. */
10547 $ac_includes_default
10548 #define NETMAP_WITH_LIBS
10549 #include <net/netmap_user.h>
10558 if ac_fn_c_try_compile "$LINENO"; then :
10559 ac_cv_net_netmap_user_can_compile=yes
10561 ac_cv_net_netmap_user_can_compile=no
10563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_net_netmap_user_can_compile" >&5
10567 $as_echo "$ac_cv_net_netmap_user_can_compile" >&6; }
10568 if test $ac_cv_net_netmap_user_can_compile = yes ; then
10570 $as_echo "#define PCAP_SUPPORT_NETMAP 1" >>confdefs.h
10572 MSRC="$MSRC pcap-netmap.c"
10577 # Check for DPDK support.
10579 # Check whether --with-dpdk was given.
10580 if test "${with_dpdk+set}" = set; then :
10581 withval=$with_dpdk;
10582 if test "$withval" = no
10584 # User doesn't want DPDK support.
10586 elif test "$withval" = yes
10588 # User wants DPDK support but hasn't specified a directory.
10591 # User wants DPDK support and has specified a directory, so use the provided value.
10594 dpdk_inc_dir="$dpdk_dir/include"
10595 dpdk_lib_dir="$dpdk_dir/lib"
10600 if test "$V_PCAP" = dpdk; then
10601 # User requested DPDK-only libpcap, so we'd better have
10604 elif test "xxx_only" = yes; then
10605 # User requested something-else-only pcap, so they don't
10606 # want DPDK support.
10610 # Use DPDK API if present, otherwise don't
10612 want_dpdk=ifpresent
10618 if test "$want_dpdk" != no; then
10619 if test -z "$dpdk_dir"; then
10620 dpdk_inc_dir="/usr/local/include/dpdk"
10621 dpdk_lib_dir="/usr/local/lib"
10623 DPDK_MACHINE_CFLAGS="-march=native"
10624 DPDK_CFLAGS="$DPDK_MACHINE_CFLAGS -I$dpdk_inc_dir"
10625 DPDK_LDFLAGS="-L$dpdk_lib_dir -ldpdk -lrt -lm -lnuma -ldl -pthread"
10627 save_CFLAGS="$CFLAGS"
10629 save_LDFLAGS="$LDFLAGS"
10630 CFLAGS="$CFLAGS $DPDK_CFLAGS"
10631 LIBS="$LIBS $DPDK_LDFLAGS"
10632 LDFLAGS="$LDFLAGS $DPDK_LDFLAGS"
10634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can compile the DPDK support" >&5
10635 $as_echo_n "checking whether we can compile the DPDK support... " >&6; }
10636 if ${ac_cv_dpdk_can_compile+:} false; then :
10637 $as_echo_n "(cached) " >&6
10639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10640 /* end confdefs.h. */
10642 $ac_includes_default
10643 #include <rte_common.h>
10652 if ac_fn_c_try_compile "$LINENO"; then :
10653 ac_cv_dpdk_can_compile=yes
10655 ac_cv_dpdk_can_compile=no
10657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_dpdk_can_compile" >&5
10661 $as_echo "$ac_cv_dpdk_can_compile" >&6; }
10663 CFLAGS="$save_CFLAGS"
10665 LDFLAGS="$save_LDFLAGS"
10667 if test "$ac_cv_dpdk_can_compile" = yes; then
10668 CFLAGS="$CFLAGS $DPDK_CFLAGS"
10669 LIBS="$LIBS $DPDK_LDFLAGS"
10670 LDFLAGS="$LDFLAGS $DPDK_LDFLAGS"
10671 V_INCLS="$V_INCLS $DPDK_CFLAGS"
10673 $as_echo "#define PCAP_SUPPORT_DPDK 1" >>confdefs.h
10675 if test $V_PCAP != dpdk ; then
10676 MSRC="$MSRC pcap-dpdk.c"
10679 if test "$V_PCAP" = dpdk; then
10680 # User requested "dpdk" capture type but we couldn't
10681 # find the DPDK API support.
10682 as_fn_error $? "DPDK support requested with --with-pcap=dpdk, but the DPDK headers weren't found at $dpdk_inc_dir: make sure the DPDK support is installed, specify a different path or paths if necessary, or don't request DPDK support" "$LINENO" 5
10685 if test "$want_dpdk" = yes; then
10686 # User wanted DPDK support but we couldn't find it.
10687 as_fn_error $? "DPDK support requested with --with-pcap=dpdk, but the DPDK headers weren't found at $dpdk_inc_dir: make sure the DPDK support is installed, specify a different path or paths if necessary, or don't request DPDK support" "$LINENO" 5
10693 # Check whether --enable-bluetooth was given.
10694 if test "${enable_bluetooth+set}" = set; then :
10695 enableval=$enable_bluetooth;
10697 enable_bluetooth=ifsupportavailable
10701 if test "xxx_only" = yes; then
10702 # User requested something-else-only pcap, so they don't
10703 # want Bluetooth support.
10704 enable_bluetooth=no
10707 if test "x$enable_bluetooth" != "xno" ; then
10710 ac_fn_c_check_header_mongrel "$LINENO" "bluetooth/bluetooth.h" "ac_cv_header_bluetooth_bluetooth_h" "$ac_includes_default"
10711 if test "x$ac_cv_header_bluetooth_bluetooth_h" = xyes; then :
10714 # We have bluetooth.h, so we support Bluetooth
10718 $as_echo "#define PCAP_SUPPORT_BT 1" >>confdefs.h
10720 MSRC="$MSRC pcap-bt-linux.c"
10721 { $as_echo "$as_me:${as_lineno-$LINENO}: Bluetooth sniffing is supported" >&5
10722 $as_echo "$as_me: Bluetooth sniffing is supported" >&6;}
10723 ac_lbl_bluetooth_available=yes
10726 # OK, does struct sockaddr_hci have an hci_channel
10729 ac_fn_c_check_member "$LINENO" "struct sockaddr_hci" "hci_channel" "ac_cv_member_struct_sockaddr_hci_hci_channel" "
10730 #include <bluetooth/bluetooth.h>
10731 #include <bluetooth/hci.h>
10734 if test "x$ac_cv_member_struct_sockaddr_hci_hci_channel" = xyes; then :
10736 cat >>confdefs.h <<_ACEOF
10737 #define HAVE_STRUCT_SOCKADDR_HCI_HCI_CHANNEL 1
10742 # Yes; is HCI_CHANNEL_MONITOR defined?
10744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if HCI_CHANNEL_MONITOR is defined" >&5
10745 $as_echo_n "checking if HCI_CHANNEL_MONITOR is defined... " >&6; }
10746 if ${ac_cv_lbl_hci_channel_monitor_is_defined+:} false; then :
10747 $as_echo_n "(cached) " >&6
10749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10750 /* end confdefs.h. */
10752 #include <bluetooth/bluetooth.h>
10753 #include <bluetooth/hci.h>
10759 u_int i = HCI_CHANNEL_MONITOR;
10765 if ac_fn_c_try_compile "$LINENO"; then :
10767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10768 $as_echo "yes" >&6; }
10770 $as_echo "#define PCAP_SUPPORT_BT_MONITOR /**/" >>confdefs.h
10772 MSRC="$MSRC pcap-bt-monitor-linux.c"
10776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10777 $as_echo "no" >&6; }
10780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10790 # We don't have bluetooth.h, so we don't support
10791 # Bluetooth sniffing.
10793 if test "x$enable_bluetooth" = "xyes" ; then
10794 as_fn_error $? "Bluetooth sniffing is not supported; install bluez-lib devel to enable it" "$LINENO" 5
10796 { $as_echo "$as_me:${as_lineno-$LINENO}: Bluetooth sniffing is not supported; install bluez-lib devel to enable it" >&5
10797 $as_echo "$as_me: Bluetooth sniffing is not supported; install bluez-lib devel to enable it" >&6;}
10805 if test "x$enable_bluetooth" = "xyes" ; then
10806 as_fn_error $? "no Bluetooth sniffing support implemented for $host_os" "$LINENO" 5
10808 { $as_echo "$as_me:${as_lineno-$LINENO}: no Bluetooth sniffing support implemented for $host_os" >&5
10809 $as_echo "$as_me: no Bluetooth sniffing support implemented for $host_os" >&6;}
10816 # Check whether --enable-dbus was given.
10817 if test "${enable_dbus+set}" = set; then :
10818 enableval=$enable_dbus;
10820 enable_dbus=ifavailable
10824 if test "xxx_only" = yes; then
10825 # User requested something-else-only pcap, so they don't
10826 # want D-Bus support.
10830 if test "x$enable_dbus" != "xno"; then
10831 if test "x$enable_dbus" = "xyes"; then
10836 # We don't support D-Bus sniffing on macOS; see
10838 # https://bugs.freedesktop.org/show_bug.cgi?id=74029
10840 # The user requested it, so fail.
10842 as_fn_error $? "Due to freedesktop.org bug 74029, D-Bus capture support is not available on macOS" "$LINENO" 5
10849 # We don't support D-Bus sniffing on macOS; see
10851 # https://bugs.freedesktop.org/show_bug.cgi?id=74029
10853 # The user dind't explicitly request it, so just
10854 # silently refuse to enable it.
10862 if test "x$enable_dbus" != "xno"; then
10863 if test "x$PKGCONFIG" != "xno"; then
10864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for D-Bus" >&5
10865 $as_echo_n "checking for D-Bus... " >&6; }
10866 if "$PKGCONFIG" dbus-1; then
10867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10868 $as_echo "yes" >&6; }
10869 DBUS_CFLAGS=`"$PKGCONFIG" --cflags dbus-1
`
10870 DBUS_LIBS=`"$PKGCONFIG" --libs dbus-1
`
10871 save_CFLAGS="$CFLAGS"
10873 CFLAGS="$CFLAGS $DBUS_CFLAGS"
10874 LIBS="$LIBS $DBUS_LIBS"
10875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the D-Bus library defines dbus_connection_read_write" >&5
10876 $as_echo_n "checking whether the D-Bus library defines dbus_connection_read_write... " >&6; }
10877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10878 /* end confdefs.h. */
10879 #include <string.h>
10882 #include <sys/time.h>
10884 #include <dbus/dbus.h>
10888 return dbus_connection_read_write(NULL, 0);
10893 if ac_fn_c_try_link "$LINENO"; then :
10895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10896 $as_echo "yes" >&6; }
10898 $as_echo "#define PCAP_SUPPORT_DBUS 1" >>confdefs.h
10900 MSRC="$MSRC pcap-dbus.c"
10901 V_INCLS="$V_INCLS $DBUS_CFLAGS"
10905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10906 $as_echo "no" >&6; }
10907 if test "x$enable_dbus" = "xyes"; then
10908 as_fn_error $? "--enable-dbus was given, but the D-Bus library doesn't define dbus_connection_read_write()" "$LINENO" 5
10913 rm -f core conftest.err conftest.$ac_objext \
10914 conftest$ac_exeext conftest.$ac_ext
10915 CFLAGS="$save_CFLAGS"
10917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10918 $as_echo "no" >&6; }
10919 if test "x$enable_dbus" = "xyes"; then
10920 as_fn_error $? "--enable-dbus was given, but the dbus-1 package is not installed" "$LINENO" 5
10927 # Check whether --enable-rdma was given.
10928 if test "${enable_rdma+set}" = set; then :
10929 enableval=$enable_rdma;
10931 enable_rdma=ifavailable
10935 if test "xxx_only" = yes; then
10936 # User requested something-else-only pcap, so they don't
10937 # want RDMA support.
10941 if test "x$enable_rdma" != "xno"; then
10942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ibv_get_device_list in -libverbs" >&5
10943 $as_echo_n "checking for ibv_get_device_list in -libverbs... " >&6; }
10944 if ${ac_cv_lib_ibverbs_ibv_get_device_list+:} false; then :
10945 $as_echo_n "(cached) " >&6
10947 ac_check_lib_save_LIBS=$LIBS
10948 LIBS="-libverbs $LIBS"
10949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10950 /* end confdefs.h. */
10952 /* Override any GCC internal prototype to avoid an error.
10953 Use char because int might match the return type of a GCC
10954 builtin and then its argument prototype would still apply. */
10958 char ibv_get_device_list ();
10962 return ibv_get_device_list ();
10967 if ac_fn_c_try_link "$LINENO"; then :
10968 ac_cv_lib_ibverbs_ibv_get_device_list=yes
10970 ac_cv_lib_ibverbs_ibv_get_device_list=no
10972 rm -f core conftest.err conftest.$ac_objext \
10973 conftest$ac_exeext conftest.$ac_ext
10974 LIBS=$ac_check_lib_save_LIBS
10976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ibverbs_ibv_get_device_list" >&5
10977 $as_echo "$ac_cv_lib_ibverbs_ibv_get_device_list" >&6; }
10978 if test "x$ac_cv_lib_ibverbs_ibv_get_device_list" = xyes; then :
10980 ac_fn_c_check_header_mongrel "$LINENO" "infiniband/verbs.h" "ac_cv_header_infiniband_verbs_h" "$ac_includes_default"
10981 if test "x$ac_cv_header_infiniband_verbs_h" = xyes; then :
10984 # ibv_create_flow may be defined as a static inline
10985 # function in infiniband/verbs.h, so we can't
10986 # use AC_CHECK_LIB.
10988 # Too bad autoconf has no AC_SYMBOL_EXISTS()
10989 # macro that works like CMake's check_symbol_exists()
10990 # function, to check do a compile check like
10991 # this (they do a clever trick to avoid having
10992 # to know the function's signature).
10994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libibverbs defines ibv_create_flow" >&5
10995 $as_echo_n "checking whether libibverbs defines ibv_create_flow... " >&6; }
10996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10997 /* end confdefs.h. */
10999 #include <infiniband/verbs.h>
11005 (void) ibv_create_flow((struct ibv_qp *) NULL,
11006 (struct ibv_flow_attr *) NULL);
11012 if ac_fn_c_try_link "$LINENO"; then :
11014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11015 $as_echo "yes" >&6; }
11017 $as_echo "#define PCAP_SUPPORT_RDMASNIFF /**/" >>confdefs.h
11019 MSRC="$MSRC pcap-rdmasniff.c"
11020 LIBS="-libverbs $LIBS"
11024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11025 $as_echo "no" >&6; }
11029 rm -f core conftest.err conftest.$ac_objext \
11030 conftest$ac_exeext conftest.$ac_ext
11041 # Find a good install program. We prefer a C program (faster),
11042 # so one script is as good as another. But avoid the broken or
11043 # incompatible versions:
11044 # SysV /etc/install, /usr/sbin/install
11045 # SunOS /usr/etc/install
11046 # IRIX /sbin/install
11048 # AmigaOS /C/install, which installs bootblocks on floppy discs
11049 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
11050 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
11051 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
11052 # OS/2's system install, which has a completely different semantic
11053 # ./install, which can be erroneously created by make from ./install.sh.
11054 # Reject install programs that cannot install multiple files.
11055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
11056 $as_echo_n "checking for a BSD-compatible install... " >&6; }
11057 if test -z "$INSTALL"; then
11058 if ${ac_cv_path_install+:} false; then :
11059 $as_echo_n "(cached) " >&6
11061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11062 for as_dir in $PATH
11065 test -z "$as_dir" && as_dir=.
11066 # Account for people who put trailing slashes in PATH elements.
11067 case $as_dir/ in #((
11068 ./ | .// | /[cC]/* | \
11069 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
11070 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
11073 # OSF1 and SCO ODT 3.0 have their own names for install.
11074 # Don't use installbsd from OSF since it installs stuff as root
11076 for ac_prog in ginstall scoinst install; do
11077 for ac_exec_ext in '' $ac_executable_extensions; do
11078 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
11079 if test $ac_prog = install &&
11080 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11081 # AIX install. It has an incompatible calling convention.
11083 elif test $ac_prog = install &&
11084 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11085 # program-specific install script used by HP pwplus--don't use.
11088 rm -rf conftest.one conftest.two conftest.dir
11089 echo one > conftest.one
11090 echo two > conftest.two
11092 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
11093 test -s conftest.one && test -s conftest.two &&
11094 test -s conftest.dir/conftest.one &&
11095 test -s conftest.dir/conftest.two
11097 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11110 rm -rf conftest.one conftest.two conftest.dir
11113 if test "${ac_cv_path_install+set}" = set; then
11114 INSTALL=$ac_cv_path_install
11116 # As a last resort, use the slow shell script. Don't cache a
11117 # value for INSTALL within a source directory, because that will
11118 # break other packages using the cache if that directory is
11119 # removed, or if the value is a relative name.
11120 INSTALL=$ac_install_sh
11123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
11124 $as_echo "$INSTALL" >&6; }
11126 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11127 # It thinks the first close brace ends the variable substitution.
11128 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
11130 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
11132 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
11135 ac_config_headers="$ac_config_headers config.h"
11138 ac_config_commands="$ac_config_commands default-1"
11140 ac_config_files="$ac_config_files Makefile pcap-filter.manmisc pcap-linktype.manmisc pcap-tstamp.manmisc pcap-savefile.manfile pcap.3pcap pcap_compile.3pcap pcap_datalink.3pcap pcap_dump_open.3pcap pcap_get_tstamp_precision.3pcap pcap_list_datalinks.3pcap pcap_list_tstamp_types.3pcap pcap_open_dead.3pcap pcap_open_offline.3pcap pcap_set_immediate_mode.3pcap pcap_set_tstamp_precision.3pcap pcap_set_tstamp_type.3pcap rpcapd/Makefile rpcapd/rpcapd.manadmin rpcapd/rpcapd-config.manfile testprogs/Makefile"
11142 cat >confcache <<\_ACEOF
11143 # This file is a shell script that caches the results of configure
11144 # tests run on this system so they can be shared between configure
11145 # scripts and configure runs, see configure's option --config-cache.
11146 # It is not useful on other systems. If it contains results you don't
11147 # want to keep, you may remove or edit it.
11149 # config.status only pays attention to the cache file if you give it
11150 # the --recheck option to rerun configure.
11152 # `ac_cv_env_foo
' variables (set or unset) will be overridden when
11153 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11154 # following values.
11158 # The following way of writing the cache mishandles newlines in values,
11159 # but we know of no workaround that is simple, portable, and efficient.
11160 # So, we kill variables containing newlines.
11161 # Ultrix sh set writes to stderr and can't be redirected directly,
11162 # and sets the high bit in the cache file unless we assign to the vars.
11164 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11165 eval ac_val
=\$
$ac_var
11169 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11170 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11173 _ | IFS | as_nl
) ;; #(
11174 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
11175 *) { eval $ac_var=; unset $ac_var;} ;;
11181 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11182 *${as_nl}ac_space
=\
*)
11183 # `set' does not quote correctly, so add quotes: double-quote
11184 # substitution turns \\\\ into \\, and sed turns \\ into \.
11187 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11190 # `set' quotes correctly as required by POSIX, so do not add quotes.
11191 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11200 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11202 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11204 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
11205 if test -w "$cache_file"; then
11206 if test "x$cache_file" != "x/dev/null"; then
11207 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11208 $as_echo "$as_me: updating cache $cache_file" >&6;}
11209 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
11210 cat confcache
>"$cache_file"
11212 case $cache_file in #(
11214 mv -f confcache
"$cache_file"$$
&&
11215 mv -f "$cache_file"$$
"$cache_file" ;; #(
11217 mv -f confcache
"$cache_file" ;;
11222 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11223 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11228 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
11229 # Let make expand exec_prefix.
11230 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
11232 DEFS
=-DHAVE_CONFIG_H
11237 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
11238 # 1. Remove the extension, and $U if already installed.
11239 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
11240 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
11241 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11242 # will be set to the directory where LIBOBJS objects are built.
11243 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11244 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
11246 LIBOBJS
=$ac_libobjs
11248 LTLIBOBJS
=$ac_ltlibobjs
11252 : "${CONFIG_STATUS=./config.status}"
11254 ac_clean_files_save
=$ac_clean_files
11255 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
11256 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11257 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11259 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11261 # Generated by $as_me.
11262 # Run this file to recreate the current configuration.
11263 # Compiler output produced by configure, useful for debugging
11264 # configure, is in config.log if it exists.
11267 ac_cs_recheck=false
11270 SHELL=\${CONFIG_SHELL-$SHELL}
11273 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
11274 ## -------------------- ##
11275 ## M4sh Initialization. ##
11276 ## -------------------- ##
11278 # Be more Bourne compatible
11279 DUALCASE
=1; export DUALCASE
# for MKS sh
11280 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
11283 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11284 # is contrary to our usage. Disable this feature.
11285 alias -g '${1+"$@"}'='"$@"'
11286 setopt NO_GLOB_SUBST
11288 case `(set -o) 2>/dev/null` in #(
11300 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11301 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11302 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11303 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11304 # Prefer a ksh shell builtin over an external printf program on Solaris,
11305 # but without wasting forks for bash or zsh.
11306 if test -z "$BASH_VERSION$ZSH_VERSION" \
11307 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11308 as_echo='print
-r --'
11309 as_echo_n='print
-rn --'
11310 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11311 as_echo='printf %s
\n'
11312 as_echo_n='printf %s
'
11314 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11315 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
11316 as_echo_n='/usr
/ucb
/echo -n'
11318 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11319 as_echo_n_body='eval
11323 expr "X$arg" : "X\\(.*\\)$as_nl";
11324 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11326 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
11328 export as_echo_n_body
11329 as_echo_n='sh
-c $as_echo_n_body as_echo
'
11331 export as_echo_body
11332 as_echo='sh
-c $as_echo_body as_echo
'
11335 # The user is always right.
11336 if test "${PATH_SEPARATOR+set}" != set; then
11338 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11339 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11346 # We need space, tab and new line, in precisely that order. Quoting is
11347 # there to prevent editors from complaining about space-tab.
11348 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11349 # splitting by setting IFS to empty value.)
11352 # Find who we are. Look in the path if we contain no directory separator.
11355 *[\\/]* ) as_myself=$0 ;;
11356 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11357 for as_dir in $PATH
11360 test -z "$as_dir" && as_dir=.
11361 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11367 # We did not find ourselves, most probably we were run as `sh COMMAND'
11368 # in which case we are not to be found in the path.
11369 if test "x$as_myself" = x
; then
11372 if test ! -f "$as_myself"; then
11373 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11377 # Unset variables that we do not need and which cause bugs (e.g. in
11378 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11379 # suppresses any "Segmentation fault" message there. '((' could
11380 # trigger a bug in pdksh 5.2.14.
11381 for as_var
in BASH_ENV ENV MAIL MAILPATH
11382 do eval test x\
${$as_var+set} = xset \
11383 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
11396 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
11399 # as_fn_error STATUS ERROR [LINENO LOG_FD]
11400 # ----------------------------------------
11401 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11402 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11403 # script with STATUS, using 1 if that was 0.
11406 as_status
=$1; test $as_status -eq 0 && as_status
=1
11408 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
11409 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11411 $as_echo "$as_me: error: $2" >&2
11412 as_fn_exit
$as_status
11416 # as_fn_set_status STATUS
11417 # -----------------------
11418 # Set $? to STATUS, without forking.
11419 as_fn_set_status
()
11422 } # as_fn_set_status
11424 # as_fn_exit STATUS
11425 # -----------------
11426 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11430 as_fn_set_status
$1
11436 # Portably unset VAR.
11439 { eval $1=; unset $1;}
11441 as_unset
=as_fn_unset
11442 # as_fn_append VAR VALUE
11443 # ----------------------
11444 # Append the text in VALUE to the end of the definition contained in VAR. Take
11445 # advantage of any shell optimizations that allow amortized linear growth over
11446 # repeated appends, instead of the typical quadratic growth present in naive
11448 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
11449 eval 'as_fn_append ()
11460 # as_fn_arith ARG...
11461 # ------------------
11462 # Perform arithmetic evaluation on the ARGs, and store the result in the
11463 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11464 # must be portable across $(()) and expr.
11465 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
11466 eval 'as_fn_arith ()
11473 as_val
=`expr "$@" || test $? -eq 1`
11478 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
11479 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
11485 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11486 as_basename
=basename
11491 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
11497 as_me
=`$as_basename -- "$0" ||
11498 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11499 X"$0" : 'X\(//\)$' \| \
11500 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11502 sed '/^.*\/\([^/][^/]*\)\/*$/{
11516 # Avoid depending upon Character Ranges.
11517 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
11518 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11519 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
11520 as_cr_digits
='0123456789'
11521 as_cr_alnum
=$as_cr_Letters$as_cr_digits
11523 ECHO_C
= ECHO_N
= ECHO_T
=
11524 case `echo -n x` in #(((((
11526 case `echo 'xy\c'` in
11527 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
11529 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
11536 rm -f conf$$ conf$$.exe conf$$.
file
11537 if test -d conf$$.dir
; then
11538 rm -f conf$$.dir
/conf$$.
file
11541 mkdir conf$$.dir
2>/dev
/null
11543 if (echo >conf$$.
file) 2>/dev
/null
; then
11544 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
11546 # ... but there are two gotchas:
11547 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11548 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11549 # In both cases, we have to default to `cp -pR'.
11550 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
11552 elif ln conf$$.
file conf$$
2>/dev
/null
; then
11560 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
11561 rmdir conf$$.dir
2>/dev
/null
11566 # Create "$as_dir" as a directory, including parents if necessary.
11571 -*) as_dir
=.
/$as_dir;;
11573 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
11577 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11578 *) as_qdir
=$as_dir;;
11580 as_dirs
="'$as_qdir' $as_dirs"
11581 as_dir
=`$as_dirname -- "$as_dir" ||
11582 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11583 X"$as_dir" : 'X\(//\)[^/]' \| \
11584 X"$as_dir" : 'X\(//\)$' \| \
11585 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11586 $as_echo X"$as_dir" |
11587 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11591 /^X\(\/\/\)[^/].*/{
11604 test -d "$as_dir" && break
11606 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
11607 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
11611 if mkdir
-p .
2>/dev
/null
; then
11612 as_mkdir_p
='mkdir -p "$as_dir"'
11614 test -d .
/-p && rmdir .
/-p
11619 # as_fn_executable_p FILE
11620 # -----------------------
11621 # Test if FILE is an executable regular file.
11622 as_fn_executable_p
()
11624 test -f "$1" && test -x "$1"
11625 } # as_fn_executable_p
11626 as_test_x
='test -x'
11627 as_executable_p
=as_fn_executable_p
11629 # Sed expression to map a string onto a valid CPP name.
11630 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11632 # Sed expression to map a string onto a valid variable name.
11633 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11637 ## ----------------------------------- ##
11638 ## Main body of $CONFIG_STATUS script. ##
11639 ## ----------------------------------- ##
11641 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
11643 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11644 # Save the log message, to keep $0 and so on meaningful, and to
11645 # report actual input values of CONFIG_FILES etc. instead of their
11646 # values after options handling.
11648 This file was extended by pcap $as_me 1.10.0-PRE-GIT, which was
11649 generated by GNU Autoconf 2.69. Invocation command line was
11651 CONFIG_FILES = $CONFIG_FILES
11652 CONFIG_HEADERS = $CONFIG_HEADERS
11653 CONFIG_LINKS = $CONFIG_LINKS
11654 CONFIG_COMMANDS = $CONFIG_COMMANDS
11657 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11662 case $ac_config_files in *"
11663 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
11666 case $ac_config_headers in *"
11667 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
11671 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11672 # Files that config.status was made for.
11673 config_files="$ac_config_files"
11674 config_headers="$ac_config_headers"
11675 config_commands="$ac_config_commands"
11679 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11681 \`$as_me' instantiates files and other configuration actions
11682 from templates according to the current configuration. Unless the files
11683 and actions are specified as TAGs, all are instantiated by default.
11685 Usage: $0 [OPTION]... [TAG]...
11687 -h, --help print this help, then exit
11688 -V, --version print version number and configuration settings, then exit
11689 --config print configuration, then exit
11690 -q, --quiet, --silent
11691 do not print progress messages
11692 -d, --debug don't remove temporary files
11693 --recheck update $as_me by reconfiguring in the same conditions
11694 --file=FILE[:TEMPLATE]
11695 instantiate the configuration file FILE
11696 --header=FILE[:TEMPLATE]
11697 instantiate the configuration header FILE
11699 Configuration files:
11702 Configuration headers:
11705 Configuration commands:
11708 Report bugs to the package provider."
11711 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11712 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11714 pcap config.status 1.10.0-PRE-GIT
11715 configured by $0, generated by GNU Autoconf 2.69,
11716 with options \\"\$ac_cs_config\\"
11718 Copyright (C) 2012 Free Software Foundation, Inc.
11719 This config.status script is free software; the Free Software Foundation
11720 gives unlimited permission to copy, distribute and modify it."
11725 test -n "\$AWK" || AWK=awk
11728 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11729 # The default lists apply if the user does not specify any file.
11735 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
11736 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
11740 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
11752 # Handling of the options.
11753 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
11755 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
11756 $as_echo "$ac_cs_version"; exit ;;
11757 --config |
--confi |
--conf |
--con |
--co |
--c )
11758 $as_echo "$ac_cs_config"; exit ;;
11759 --debug |
--debu |
--deb |
--de |
--d |
-d )
11761 --file |
--fil |
--fi |
--f )
11764 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11765 '') as_fn_error $?
"missing file argument" ;;
11767 as_fn_append CONFIG_FILES
" '$ac_optarg'"
11768 ac_need_defaults
=false
;;
11769 --header |
--heade |
--head |
--hea )
11772 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11774 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
11775 ac_need_defaults
=false
;;
11777 # Conflict between --help and --header
11778 as_fn_error $?
"ambiguous option: \`$1'
11779 Try \`$0 --help' for more information.";;
11780 --help |
--hel |
-h )
11781 $as_echo "$ac_cs_usage"; exit ;;
11782 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
11783 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
11786 # This is an error.
11787 -*) as_fn_error $?
"unrecognized option: \`$1'
11788 Try \`$0 --help' for more information." ;;
11790 *) as_fn_append ac_config_targets
" $1"
11791 ac_need_defaults
=false
;;
11797 ac_configure_extra_args
=
11799 if $ac_cs_silent; then
11801 ac_configure_extra_args
="$ac_configure_extra_args --silent"
11805 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11806 if \$ac_cs_recheck; then
11807 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11809 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11810 CONFIG_SHELL='$SHELL'
11811 export CONFIG_SHELL
11816 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11820 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11821 ## Running $as_me. ##
11827 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11835 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11837 # Handling of arguments.
11838 for ac_config_target
in $ac_config_targets
11840 case $ac_config_target in
11841 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
11842 "default-1") CONFIG_COMMANDS
="$CONFIG_COMMANDS default-1" ;;
11843 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
11844 "pcap-filter.manmisc") CONFIG_FILES
="$CONFIG_FILES pcap-filter.manmisc" ;;
11845 "pcap-linktype.manmisc") CONFIG_FILES
="$CONFIG_FILES pcap-linktype.manmisc" ;;
11846 "pcap-tstamp.manmisc") CONFIG_FILES
="$CONFIG_FILES pcap-tstamp.manmisc" ;;
11847 "pcap-savefile.manfile") CONFIG_FILES
="$CONFIG_FILES pcap-savefile.manfile" ;;
11848 "pcap.3pcap") CONFIG_FILES
="$CONFIG_FILES pcap.3pcap" ;;
11849 "pcap_compile.3pcap") CONFIG_FILES
="$CONFIG_FILES pcap_compile.3pcap" ;;
11850 "pcap_datalink.3pcap") CONFIG_FILES
="$CONFIG_FILES pcap_datalink.3pcap" ;;
11851 "pcap_dump_open.3pcap") CONFIG_FILES
="$CONFIG_FILES pcap_dump_open.3pcap" ;;
11852 "pcap_get_tstamp_precision.3pcap") CONFIG_FILES
="$CONFIG_FILES pcap_get_tstamp_precision.3pcap" ;;
11853 "pcap_list_datalinks.3pcap") CONFIG_FILES
="$CONFIG_FILES pcap_list_datalinks.3pcap" ;;
11854 "pcap_list_tstamp_types.3pcap") CONFIG_FILES
="$CONFIG_FILES pcap_list_tstamp_types.3pcap" ;;
11855 "pcap_open_dead.3pcap") CONFIG_FILES
="$CONFIG_FILES pcap_open_dead.3pcap" ;;
11856 "pcap_open_offline.3pcap") CONFIG_FILES
="$CONFIG_FILES pcap_open_offline.3pcap" ;;
11857 "pcap_set_immediate_mode.3pcap") CONFIG_FILES
="$CONFIG_FILES pcap_set_immediate_mode.3pcap" ;;
11858 "pcap_set_tstamp_precision.3pcap") CONFIG_FILES
="$CONFIG_FILES pcap_set_tstamp_precision.3pcap" ;;
11859 "pcap_set_tstamp_type.3pcap") CONFIG_FILES
="$CONFIG_FILES pcap_set_tstamp_type.3pcap" ;;
11860 "rpcapd/Makefile") CONFIG_FILES
="$CONFIG_FILES rpcapd/Makefile" ;;
11861 "rpcapd/rpcapd.manadmin") CONFIG_FILES
="$CONFIG_FILES rpcapd/rpcapd.manadmin" ;;
11862 "rpcapd/rpcapd-config.manfile") CONFIG_FILES
="$CONFIG_FILES rpcapd/rpcapd-config.manfile" ;;
11863 "testprogs/Makefile") CONFIG_FILES
="$CONFIG_FILES testprogs/Makefile" ;;
11865 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11870 # If the user did not use the arguments to specify the items to instantiate,
11871 # then the envvar interface is used. Set only those that are not.
11872 # We use the long form for the default assignment because of an extremely
11873 # bizarre bug on SunOS 4.1.3.
11874 if $ac_need_defaults; then
11875 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
11876 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
11877 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
11880 # Have a temporary directory for convenience. Make it in the build tree
11881 # simply because there is no reason against having it here, and in addition,
11882 # creating and moving files from /tmp can sometimes cause problems.
11883 # Hook for its removal unless debugging.
11884 # Note that there is a small window in which the directory will not be cleaned:
11885 # after its creation but before its name has been assigned to `$tmp'.
11889 trap 'exit_status=$?
11890 : "${ac_tmp:=$tmp}"
11891 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
11893 trap 'as_fn_exit 1' 1 2 13 15
11895 # Create a (secure) tmp directory for tmp files.
11898 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11902 tmp
=.
/conf$$
-$RANDOM
11903 (umask 077 && mkdir
"$tmp")
11904 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
11907 # Set up the scripts for CONFIG_FILES section.
11908 # No need to generate them if there are no CONFIG_FILES.
11909 # This happens for instance with `./config.status config.h'.
11910 if test -n "$CONFIG_FILES"; then
11913 ac_cr
=`echo X | tr X '\015'`
11914 # On cygwin, bash can eat \r inside `` if the user requested igncr.
11915 # But we know of no other shell where ac_cr would be empty at this
11916 # point, so we can use a bashism as a fallback.
11917 if test "x$ac_cr" = x
; then
11918 eval ac_cr
=\$
\'\\r
\'
11920 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11921 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11924 ac_cs_awk_cr
=$ac_cr
11927 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
11932 echo "cat >conf$$subs.awk <<_ACEOF" &&
11933 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11935 } >conf$$subs.sh ||
11936 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
11937 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
11939 for ac_last_try in false false false false false :; do
11940 . ./conf$$subs.sh ||
11941 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
11943 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
11944 if test $ac_delim_n = $ac_delim_num; then
11946 elif $ac_last_try; then
11947 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
11949 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
11952 rm -f conf$$subs.sh
11954 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11955 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
11959 s/^/S["/; s
/!.
*/"]=/
11969 s/\(.\{148\}\)..*/\1/
11971 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
11976 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
11983 s/\(.\{148\}\)..*/\1/
11985 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
11989 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
11994 ' <conf$$subs.awk | sed '
11999 ' >>$CONFIG_STATUS || ac_write_fail=1
12000 rm -f conf$$subs.awk
12001 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12003 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
12004 for (key in S) S_is_set[key] = 1
12010 nfields = split(line, field, "@
")
12012 len = length(field[1])
12013 for (i = 2; i < nfields; i++) {
12015 keylen = length(key)
12016 if (S_is_set[key]) {
12018 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12019 len += length(value) + length(field[++i])
12030 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12031 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12032 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
12035 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
12036 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
12039 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12040 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
12041 # trailing colons and then remove the whole line if VPATH becomes empty
12042 # (actually we leave an empty line to preserve line numbers).
12043 if test "x
$srcdir" = x.; then
12044 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
12062 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12063 fi # test -n "$CONFIG_FILES"
12065 # Set up the scripts for CONFIG_HEADERS section.
12066 # No need to generate them if there are no CONFIG_HEADERS.
12067 # This happens for instance with `./config.status Makefile'.
12068 if test -n "$CONFIG_HEADERS"; then
12069 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
12073 # Transform confdefs.h into an awk script `defines.awk', embedded as
12074 # here-document in config.status, that substitutes the proper values into
12075 # config.h.in to produce config.h.
12077 # Create a delimiter string that does not exist in confdefs.h, to ease
12078 # handling of long lines.
12080 for ac_last_try in false false :; do
12081 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
12082 if test -z "$ac_tt"; then
12084 elif $ac_last_try; then
12085 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
12087 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
12091 # For the awk script, D is an array of macro values keyed by name,
12092 # likewise P contains macro parameters if any. Preserve backslash
12093 # newline sequences.
12095 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12097 s/.\{148\}/&'"$ac_delim"'/g
12100 s/^[ ]*#[ ]*define[ ][ ]*/ /
12107 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
12109 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
12113 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
12114 D["\
1"]=" \
3\\\\\\n
"\\/p
12116 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
12121 s/.\{148\}/&'"$ac_delim"'/g
12126 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
12129 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
12131 ' <confdefs.h | sed '
12132 s/'"$ac_delim"'/"\\\
12133 "/g' >>$CONFIG_STATUS || ac_write_fail=1
12135 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12136 for (key in D) D_is_set[key] = 1
12139 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12141 split(line, arg, " ")
12142 if (arg[1] == "#") {
12146 defundef
= substr
(arg
[1], 2)
12149 split(mac1
, mac2
, "(") #)
12151 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
12152 if (D_is_set
[macro
]) {
12153 # Preserve the white space surrounding the "#".
12154 print prefix
"define", macro P
[macro
] D
[macro
]
12157 # Replace #undef with comments. This is necessary, for example,
12158 # in the case of _POSIX_SOURCE, which is predefined and required
12159 # on some systems where configure will not decide to define it.
12160 if (defundef
== "undef") {
12161 print
"/*", prefix defundef
, macro
, "*/"
12169 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
12170 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
12171 fi # test -n "$CONFIG_HEADERS"
12174 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
12179 :[FHLC
]) ac_mode
=$ac_tag; continue;;
12181 case $ac_mode$ac_tag in
12183 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
12184 :[FH
]-) ac_tag
=-:-;;
12185 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
12202 -) ac_f
="$ac_tmp/stdin";;
12203 *) # Look for the file first in the build tree, then in the source tree
12204 # (if the path is not absolute). The absolute path cannot be DOS-style,
12205 # because $ac_f cannot contain `:'.
12209 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
12211 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12213 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12214 as_fn_append ac_file_inputs
" '$ac_f'"
12217 # Let's still pretend it is `configure' which instantiates (i.e., don't
12218 # use $as_me), people would be surprised to read:
12219 # /* config.h. Generated by config.status. */
12220 configure_input
='Generated from '`
12221 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12223 if test x
"$ac_file" != x-
; then
12224 configure_input
="$ac_file. $configure_input"
12225 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12226 $as_echo "$as_me: creating $ac_file" >&6;}
12228 # Neutralize special characters interpreted by sed in replacement strings.
12229 case $configure_input in #(
12230 *\
&* |
*\|
* |
*\\* )
12231 ac_sed_conf_input
=`$as_echo "$configure_input" |
12232 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12233 *) ac_sed_conf_input
=$configure_input;;
12237 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
12238 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
12243 ac_dir
=`$as_dirname -- "$ac_file" ||
12244 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12245 X"$ac_file" : 'X\(//\)[^/]' \| \
12246 X"$ac_file" : 'X\(//\)$' \| \
12247 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12248 $as_echo X"$ac_file" |
12249 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12253 /^X\(\/\/\)[^/].*/{
12266 as_dir
="$ac_dir"; as_fn_mkdir_p
12270 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
12272 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12273 # A ".." for each directory in $ac_dir_suffix.
12274 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12275 case $ac_top_builddir_sub in
12276 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
12277 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
12280 ac_abs_top_builddir
=$ac_pwd
12281 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
12282 # for backward compatibility:
12283 ac_top_builddir
=$ac_top_build_prefix
12286 .
) # We are building in place.
12288 ac_top_srcdir
=$ac_top_builddir_sub
12289 ac_abs_top_srcdir
=$ac_pwd ;;
12290 [\\/]* | ?
:[\\/]* ) # Absolute name.
12291 ac_srcdir
=$srcdir$ac_dir_suffix;
12292 ac_top_srcdir
=$srcdir
12293 ac_abs_top_srcdir
=$srcdir ;;
12294 *) # Relative name.
12295 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
12296 ac_top_srcdir
=$ac_top_build_prefix$srcdir
12297 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
12299 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
12309 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
12310 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
12314 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
12315 # If the template does not know about datarootdir, expand it.
12316 # FIXME: This hack should be removed a few years after 2.60.
12317 ac_datarootdir_hack
=; ac_datarootdir_seen
=
12328 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12329 *datarootdir
*) ac_datarootdir_seen
=yes;;
12330 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
12331 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12332 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12334 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12335 ac_datarootdir_hack='
12336 s&@datadir@&$datadir&g
12337 s&@docdir@&$docdir&g
12338 s&@infodir@&$infodir&g
12339 s&@localedir@&$localedir&g
12340 s&@mandir@&$mandir&g
12341 s&\\\${datarootdir}&$datarootdir&g' ;;
12345 # Neutralize VPATH when `$srcdir' = `.'.
12346 # Shell code in configure.ac might set extrasub.
12347 # FIXME: do we really want to maintain this feature?
12348 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12349 ac_sed_extra="$ac_vpsub
12352 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
12354 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
12355 s|@configure_input@|
$ac_sed_conf_input|
;t t
12356 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
12357 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
12358 s
&@srcdir@
&$ac_srcdir&;t t
12359 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
12360 s
&@top_srcdir@
&$ac_top_srcdir&;t t
12361 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
12362 s
&@builddir@
&$ac_builddir&;t t
12363 s
&@abs_builddir@
&$ac_abs_builddir&;t t
12364 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
12365 s
&@INSTALL@
&$ac_INSTALL&;t t
12366 $ac_datarootdir_hack
12368 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
12369 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
12371 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12372 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
12373 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
12374 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
12375 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
12376 which seems to be undefined. Please make sure it is defined" >&5
12377 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
12378 which seems to be undefined. Please make sure it is defined" >&2;}
12380 rm -f "$ac_tmp/stdin"
12382 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12383 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12385 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12391 if test x"$ac_file" != x-; then
12393 $as_echo "/* $configure_input */" \
12394 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12395 } >"$ac_tmp/config.h" \
12396 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12397 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12398 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12399 $as_echo "$as_me: $ac_file is unchanged" >&6;}
12402 mv "$ac_tmp/config.h" "$ac_file" \
12403 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12406 $as_echo "/* $configure_input */" \
12407 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12408 || as_fn_error $? "could not create -" "$LINENO" 5
12412 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12413 $as_echo "$as_me: executing $ac_file commands" >&6;}
12418 case $ac_file$ac_mode in
12419 "default-1":C) if test -f .devel; then
12420 echo timestamp > stamp-h
12421 cat $srcdir/Makefile-devel-adds >> Makefile
12431 ac_clean_files=$ac_clean_files_save
12433 test $ac_write_fail = 0 ||
12434 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12437 # configure is writing to config.log, and then calls config.status.
12438 # config.status does its own redirection, appending to config.log.
12439 # Unfortunately, on DOS this fails, as config.log is still kept open
12440 # by configure, so config.status won't be able to
write to it
; its
12441 # output is simply discarded. So we exec the FD to /dev/null,
12442 # effectively closing config.log, so it can be properly (re)opened and
12443 # appended to by config.status. When coming back to configure, we
12444 # need to make the FD available again.
12445 if test "$no_create" != yes; then
12447 ac_config_status_args
=
12448 test "$silent" = yes &&
12449 ac_config_status_args
="$ac_config_status_args --quiet"
12451 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
12453 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12454 # would make configure fail if this is the last instruction.
12455 $ac_cs_success || as_fn_exit
1
12457 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
12458 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12459 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}