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
632 PCAP_SUPPORT_LINUX_USBMON
729 program_transform_name
742 enable_option_checking
769 ac_precious_vars
='build_alias
785 # Initialize some variables set by options.
787 ac_init_version
=false
788 ac_unrecognized_opts
=
790 # The variables have the same names as the options, with
791 # dashes changed to underlines.
799 program_transform_name
=s
,x
,x
,
807 # Installation directory options.
808 # These are left unexpanded so users can "make install exec_prefix=/foo"
809 # and all the variables that are supposed to be based on exec_prefix
810 # by default will actually change.
811 # Use braces instead of parens because sh, perl, etc. also accept them.
812 # (The list follows the same order as the GNU Coding Standards.)
813 bindir
='${exec_prefix}/bin'
814 sbindir
='${exec_prefix}/sbin'
815 libexecdir
='${exec_prefix}/libexec'
816 datarootdir
='${prefix}/share'
817 datadir
='${datarootdir}'
818 sysconfdir
='${prefix}/etc'
819 sharedstatedir
='${prefix}/com'
820 localstatedir
='${prefix}/var'
821 includedir
='${prefix}/include'
822 oldincludedir
='/usr/include'
823 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
824 infodir
='${datarootdir}/info'
829 libdir
='${exec_prefix}/lib'
830 localedir
='${datarootdir}/locale'
831 mandir
='${datarootdir}/man'
837 # If the previous option needs an argument, assign it.
838 if test -n "$ac_prev"; then
839 eval $ac_prev=\
$ac_option
845 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
850 # Accept the important Cygnus configure options, so we can diagnose typos.
852 case $ac_dashdash$ac_option in
856 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
858 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
861 -build |
--build |
--buil |
--bui |
--bu)
862 ac_prev
=build_alias
;;
863 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
864 build_alias
=$ac_optarg ;;
866 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
867 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
868 ac_prev
=cache_file
;;
869 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
870 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
871 cache_file
=$ac_optarg ;;
874 cache_file
=config.cache
;;
876 -datadir |
--datadir |
--datadi |
--datad)
878 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
879 datadir
=$ac_optarg ;;
881 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
882 |
--dataroo |
--dataro |
--datar)
883 ac_prev
=datarootdir
;;
884 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
885 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
886 datarootdir
=$ac_optarg ;;
888 -disable-* |
--disable-*)
889 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
890 # Reject names that are not valid shell variable names.
891 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
892 as_fn_error $?
"invalid feature name: $ac_useropt"
893 ac_useropt_orig
=$ac_useropt
894 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
895 case $ac_user_opts in
899 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
900 ac_unrecognized_sep
=', ';;
902 eval enable_
$ac_useropt=no
;;
904 -docdir |
--docdir |
--docdi |
--doc |
--do)
906 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
909 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
911 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
914 -enable-* |
--enable-*)
915 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
916 # Reject names that are not valid shell variable names.
917 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
918 as_fn_error $?
"invalid feature name: $ac_useropt"
919 ac_useropt_orig
=$ac_useropt
920 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
921 case $ac_user_opts in
925 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
926 ac_unrecognized_sep
=', ';;
928 eval enable_
$ac_useropt=\
$ac_optarg ;;
930 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
931 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
932 |
--exec |
--exe |
--ex)
933 ac_prev
=exec_prefix
;;
934 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
935 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
936 |
--exec=* |
--exe=* |
--ex=*)
937 exec_prefix
=$ac_optarg ;;
939 -gas |
--gas |
--ga |
--g)
940 # Obsolete; use --with-gas.
943 -help |
--help |
--hel |
--he |
-h)
945 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
946 ac_init_help
=recursive
;;
947 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
948 ac_init_help
=short
;;
950 -host |
--host |
--hos |
--ho)
951 ac_prev
=host_alias
;;
952 -host=* |
--host=* |
--hos=* |
--ho=*)
953 host_alias
=$ac_optarg ;;
955 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
957 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
959 htmldir
=$ac_optarg ;;
961 -includedir |
--includedir |
--includedi |
--included |
--include \
962 |
--includ |
--inclu |
--incl |
--inc)
963 ac_prev
=includedir
;;
964 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
965 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
966 includedir
=$ac_optarg ;;
968 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
970 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
971 infodir
=$ac_optarg ;;
973 -libdir |
--libdir |
--libdi |
--libd)
975 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
978 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
979 |
--libexe |
--libex |
--libe)
980 ac_prev
=libexecdir
;;
981 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
982 |
--libexe=* |
--libex=* |
--libe=*)
983 libexecdir
=$ac_optarg ;;
985 -localedir |
--localedir |
--localedi |
--localed |
--locale)
987 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
988 localedir
=$ac_optarg ;;
990 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
991 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
992 ac_prev
=localstatedir
;;
993 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
994 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
995 localstatedir
=$ac_optarg ;;
997 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
999 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1000 mandir
=$ac_optarg ;;
1002 -nfp |
--nfp |
--nf)
1003 # Obsolete; use --without-fp.
1006 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1007 |
--no-cr |
--no-c |
-n)
1010 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1011 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1014 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1015 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1016 |
--oldin |
--oldi |
--old |
--ol |
--o)
1017 ac_prev
=oldincludedir
;;
1018 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1019 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1020 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1021 oldincludedir
=$ac_optarg ;;
1023 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1025 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1026 prefix
=$ac_optarg ;;
1028 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1029 |
--program-pre |
--program-pr |
--program-p)
1030 ac_prev
=program_prefix
;;
1031 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1032 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1033 program_prefix
=$ac_optarg ;;
1035 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1036 |
--program-suf |
--program-su |
--program-s)
1037 ac_prev
=program_suffix
;;
1038 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1039 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1040 program_suffix
=$ac_optarg ;;
1042 -program-transform-name |
--program-transform-name \
1043 |
--program-transform-nam |
--program-transform-na \
1044 |
--program-transform-n |
--program-transform- \
1045 |
--program-transform |
--program-transfor \
1046 |
--program-transfo |
--program-transf \
1047 |
--program-trans |
--program-tran \
1048 |
--progr-tra |
--program-tr |
--program-t)
1049 ac_prev
=program_transform_name
;;
1050 -program-transform-name=* |
--program-transform-name=* \
1051 |
--program-transform-nam=* |
--program-transform-na=* \
1052 |
--program-transform-n=* |
--program-transform-=* \
1053 |
--program-transform=* |
--program-transfor=* \
1054 |
--program-transfo=* |
--program-transf=* \
1055 |
--program-trans=* |
--program-tran=* \
1056 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1057 program_transform_name
=$ac_optarg ;;
1059 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1061 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1062 pdfdir
=$ac_optarg ;;
1064 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1066 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1069 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1070 |
-silent |
--silent |
--silen |
--sile |
--sil)
1073 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1075 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1077 sbindir
=$ac_optarg ;;
1079 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1080 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1081 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1083 ac_prev
=sharedstatedir
;;
1084 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1085 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1086 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1088 sharedstatedir
=$ac_optarg ;;
1090 -site |
--site |
--sit)
1092 -site=* |
--site=* |
--sit=*)
1095 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1097 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1098 srcdir
=$ac_optarg ;;
1100 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1101 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1102 ac_prev
=sysconfdir
;;
1103 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1104 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1105 sysconfdir
=$ac_optarg ;;
1107 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1108 ac_prev
=target_alias
;;
1109 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1110 target_alias
=$ac_optarg ;;
1112 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1115 -version |
--version |
--versio |
--versi |
--vers |
-V)
1116 ac_init_version
=: ;;
1119 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1120 # Reject names that are not valid shell variable names.
1121 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1122 as_fn_error $?
"invalid package name: $ac_useropt"
1123 ac_useropt_orig
=$ac_useropt
1124 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1125 case $ac_user_opts in
1129 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1130 ac_unrecognized_sep
=', ';;
1132 eval with_
$ac_useropt=\
$ac_optarg ;;
1134 -without-* |
--without-*)
1135 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1136 # Reject names that are not valid shell variable names.
1137 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1138 as_fn_error $?
"invalid package name: $ac_useropt"
1139 ac_useropt_orig
=$ac_useropt
1140 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1141 case $ac_user_opts in
1145 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1146 ac_unrecognized_sep
=', ';;
1148 eval with_
$ac_useropt=no
;;
1151 # Obsolete; use --with-x.
1154 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1155 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1156 ac_prev
=x_includes
;;
1157 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1158 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1159 x_includes
=$ac_optarg ;;
1161 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1162 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1163 ac_prev
=x_libraries
;;
1164 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1165 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1166 x_libraries
=$ac_optarg ;;
1168 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1169 Try \`$0 --help' for more information"
1173 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1174 # Reject names that are not valid shell variable names.
1175 case $ac_envvar in #(
1176 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1177 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1179 eval $ac_envvar=\
$ac_optarg
1180 export $ac_envvar ;;
1183 # FIXME: should be removed in autoconf 3.0.
1184 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1185 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1186 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1187 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1193 if test -n "$ac_prev"; then
1194 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1195 as_fn_error $?
"missing argument to $ac_option"
1198 if test -n "$ac_unrecognized_opts"; then
1199 case $enable_option_checking in
1201 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1202 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1206 # Check all directory arguments for consistency.
1207 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1208 datadir sysconfdir sharedstatedir localstatedir includedir \
1209 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1210 libdir localedir mandir
1212 eval ac_val
=\$
$ac_var
1213 # Remove trailing slashes.
1216 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1217 eval $ac_var=\
$ac_val;;
1219 # Be sure to have absolute directory names.
1221 [\\/$
]* | ?
:[\\/]* ) continue;;
1222 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1224 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1227 # There might be people who depend on the old broken behavior: `$host'
1228 # used to hold the argument of --host etc.
1229 # FIXME: To remove some day.
1232 target
=$target_alias
1234 # FIXME: To remove some day.
1235 if test "x$host_alias" != x
; then
1236 if test "x$build_alias" = x
; then
1237 cross_compiling
=maybe
1238 elif test "x$build_alias" != "x$host_alias"; then
1244 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1246 test "$silent" = yes && exec 6>/dev
/null
1249 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1250 ac_ls_di
=`ls -di .` &&
1251 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1252 as_fn_error $?
"working directory cannot be determined"
1253 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1254 as_fn_error $?
"pwd does not report name of working directory"
1257 # Find the source files, if location was not specified.
1258 if test -z "$srcdir"; then
1259 ac_srcdir_defaulted
=yes
1260 # Try the directory containing this script, then the parent directory.
1261 ac_confdir
=`$as_dirname -- "$as_myself" ||
1262 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1263 X"$as_myself" : 'X\(//\)[^/]' \| \
1264 X"$as_myself" : 'X\(//\)$' \| \
1265 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1266 $as_echo X"$as_myself" |
1267 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1285 if test ! -r "$srcdir/$ac_unique_file"; then
1289 ac_srcdir_defaulted
=no
1291 if test ! -r "$srcdir/$ac_unique_file"; then
1292 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1293 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1295 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1297 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1299 # When building in place, set srcdir=.
1300 if test "$ac_abs_confdir" = "$ac_pwd"; then
1303 # Remove unnecessary trailing slashes from srcdir.
1304 # Double slashes in file names in object file debugging info
1305 # mess up M-x gdb in Emacs.
1307 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1309 for ac_var
in $ac_precious_vars; do
1310 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1311 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1312 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1313 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1317 # Report the --help message.
1319 if test "$ac_init_help" = "long"; then
1320 # Omit some internal or obsolete options to make the list less imposing.
1321 # This message is too long to be a string in the A/UX 3.1 sh.
1323 \`configure' configures pcap 1.10.0-PRE-GIT to adapt to many kinds of systems.
1325 Usage: $0 [OPTION]... [VAR=VALUE]...
1327 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1328 VAR=VALUE. See below for descriptions of some of the useful variables.
1330 Defaults for the options are specified in brackets.
1333 -h, --help display this help and exit
1334 --help=short display options specific to this package
1335 --help=recursive display the short help of all the included packages
1336 -V, --version display version information and exit
1337 -q, --quiet, --silent do not print \`checking ...' messages
1338 --cache-file=FILE cache test results in FILE [disabled]
1339 -C, --config-cache alias for \`--cache-file=config.cache'
1340 -n, --no-create do not create output files
1341 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1343 Installation directories:
1344 --prefix=PREFIX install architecture-independent files in PREFIX
1345 [$ac_default_prefix]
1346 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1349 By default, \`make install' will install all the files in
1350 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1351 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1352 for instance \`--prefix=\$HOME'.
1354 For better control, use the options below.
1356 Fine tuning of the installation directories:
1357 --bindir=DIR user executables [EPREFIX/bin]
1358 --sbindir=DIR system admin executables [EPREFIX/sbin]
1359 --libexecdir=DIR program executables [EPREFIX/libexec]
1360 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1361 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1362 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1363 --libdir=DIR object code libraries [EPREFIX/lib]
1364 --includedir=DIR C header files [PREFIX/include]
1365 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1366 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1367 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1368 --infodir=DIR info documentation [DATAROOTDIR/info]
1369 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1370 --mandir=DIR man documentation [DATAROOTDIR/man]
1371 --docdir=DIR documentation root [DATAROOTDIR/doc/pcap]
1372 --htmldir=DIR html documentation [DOCDIR]
1373 --dvidir=DIR dvi documentation [DOCDIR]
1374 --pdfdir=DIR pdf documentation [DOCDIR]
1375 --psdir=DIR ps documentation [DOCDIR]
1381 --build=BUILD configure
for building on BUILD
[guessed
]
1382 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1383 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1387 if test -n "$ac_init_help"; then
1388 case $ac_init_help in
1389 short | recursive
) echo "Configuration of pcap 1.10.0-PRE-GIT:";;
1394 --disable-option-checking ignore unrecognized
--enable/--with options
1395 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1396 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1397 --disable-largefile omit support
for large files
1398 --disable-protochain disable
\"protochain
\" insn
1399 --enable-ipv6 build IPv6-capable version
[default
=yes]
1400 --enable-remote enable remote packet capture
[default
=no
]
1401 --disable-remote disable remote packet capture
1402 --enable-optimizer-dbg build optimizer debugging code
1403 --enable-yydebug build parser debugging code
1404 --disable-universal don
't build universal on macOS
1405 --enable-shared build shared libraries [default=yes, if support
1407 --enable-usb enable Linux usbmon USB capture support
1408 [default=yes, if support available]
1409 --enable-netmap enable netmap support [default=yes, if support
1411 --enable-bluetooth enable Bluetooth support [default=yes, if support
1413 --enable-dbus enable D-Bus capture support [default=yes, if
1415 --enable-rdma enable RDMA capture support [default=yes, if support
1419 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1420 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1421 --without-gcc don't use gcc
1422 --with-pcap=TYPE use packet capture TYPE
1423 --without-libnl disable libnl support
[default
=yes, on Linux
, if
1425 --with-dag[=DIR
] include Endace DAG support
(located
in directory
1426 DIR
, if supplied
).
[default
=yes, if present
]
1427 --with-dag-includes=IDIR
1428 Endace DAG include directory
, if not DIR
/include
1429 --with-dag-libraries=LDIR
1430 Endace DAG library directory
, if not DIR
/lib
1431 --with-septel[=DIR
] include Septel support
(located
in directory DIR
, if
1432 supplied
).
[default
=yes, if present
]
1433 --with-snf[=DIR
] include Myricom SNF support
(located
in directory
1434 DIR
, if supplied
).
[default
=yes, if present
]
1435 --with-snf-includes=IDIR
1436 Myricom SNF include directory
, if not DIR
/include
1437 --with-snf-libraries=LDIR
1438 Myricom SNF library directory
, if not DIR
/lib
1439 --with-turbocap[=DIR
] include Riverbed TurboCap support
(located
in
1440 directory DIR
, if supplied
).
[default
=yes, if
1442 --with-dpdk[=DIR
] include DPDK support
(located
in directory DIR
, if
1443 supplied
).
[default
=yes, if present
]
1445 Some influential environment variables
:
1446 CC C compiler
command
1447 CFLAGS C compiler flags
1448 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1449 nonstandard directory
<lib dir
>
1450 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1451 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1452 you have headers
in a nonstandard directory
<include dir
>
1453 CXX C
++ compiler
command
1454 CXXFLAGS C
++ compiler flags
1456 YACC The
`Yet Another Compiler Compiler' implementation to use.
1457 Defaults to the first program found out of: `bison
-y', `byacc',
1459 YFLAGS The list of arguments that will be passed by default to $YACC.
1460 This script will default YFLAGS to the empty string to avoid a
1461 default value of `-d' given by some make applications.
1463 Use these variables to override the choices made by `configure' or to
help
1464 it to
find libraries and programs with nonstandard names
/locations.
1466 Report bugs to the package provider.
1471 if test "$ac_init_help" = "recursive"; then
1472 # If there are subdirs, report their specific --help.
1473 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1474 test -d "$ac_dir" ||
1475 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1480 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1482 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1483 # A ".." for each directory in $ac_dir_suffix.
1484 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1485 case $ac_top_builddir_sub in
1486 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1487 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1490 ac_abs_top_builddir
=$ac_pwd
1491 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1492 # for backward compatibility:
1493 ac_top_builddir
=$ac_top_build_prefix
1496 .
) # We are building in place.
1498 ac_top_srcdir
=$ac_top_builddir_sub
1499 ac_abs_top_srcdir
=$ac_pwd ;;
1500 [\\/]* | ?
:[\\/]* ) # Absolute name.
1501 ac_srcdir
=$srcdir$ac_dir_suffix;
1502 ac_top_srcdir
=$srcdir
1503 ac_abs_top_srcdir
=$srcdir ;;
1505 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1506 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1507 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1509 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1511 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1512 # Check for guested configure.
1513 if test -f "$ac_srcdir/configure.gnu"; then
1515 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1516 elif test -f "$ac_srcdir/configure"; then
1518 $SHELL "$ac_srcdir/configure" --help=recursive
1520 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1522 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1526 test -n "$ac_init_help" && exit $ac_status
1527 if $ac_init_version; then
1529 pcap configure
1.10.0-PRE-GIT
1530 generated by GNU Autoconf
2.69
1532 Copyright
(C
) 2012 Free Software Foundation
, Inc.
1533 This configure
script is free software
; the Free Software Foundation
1534 gives unlimited permission to copy
, distribute and modify it.
1539 ## ------------------------ ##
1540 ## Autoconf initialization. ##
1541 ## ------------------------ ##
1543 # ac_fn_c_try_compile LINENO
1544 # --------------------------
1545 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1546 ac_fn_c_try_compile
()
1548 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1549 rm -f conftest.
$ac_objext
1550 if { { ac_try
="$ac_compile"
1552 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1553 *) ac_try_echo=$ac_try;;
1555 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1556 $as_echo "$ac_try_echo"; } >&5
1557 (eval "$ac_compile") 2>conftest.err
1559 if test -s conftest.err; then
1560 grep -v '^ *+' conftest.err >conftest.er1
1561 cat conftest.er1 >&5
1562 mv -f conftest.er1 conftest.err
1564 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1565 test $ac_status = 0; } && {
1566 test -z "$ac_c_werror_flag" ||
1567 test ! -s conftest.err
1568 } && test -s conftest.$ac_objext; then :
1571 $as_echo "$as_me: failed program was:" >&5
1572 sed 's/^/| /' conftest.$ac_ext >&5
1576 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1577 as_fn_set_status $ac_retval
1579 } # ac_fn_c_try_compile
1581 # ac_fn_cxx_try_compile LINENO
1582 # ----------------------------
1583 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1584 ac_fn_cxx_try_compile ()
1586 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1587 rm -f conftest.$ac_objext
1588 if { { ac_try="$ac_compile"
1590 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1591 *) ac_try_echo
=$ac_try;;
1593 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1594 $as_echo "$ac_try_echo"; } >&5
1595 (eval "$ac_compile") 2>conftest.err
1597 if test -s conftest.err
; then
1598 grep -v '^ *+' conftest.err
>conftest.er1
1599 cat conftest.er1
>&5
1600 mv -f conftest.er1 conftest.err
1602 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1603 test $ac_status = 0; } && {
1604 test -z "$ac_cxx_werror_flag" ||
1605 test ! -s conftest.err
1606 } && test -s conftest.
$ac_objext; then :
1609 $as_echo "$as_me: failed program was:" >&5
1610 sed 's/^/| /' conftest.
$ac_ext >&5
1614 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1615 as_fn_set_status
$ac_retval
1617 } # ac_fn_cxx_try_compile
1619 # ac_fn_c_try_link LINENO
1620 # -----------------------
1621 # Try to link conftest.$ac_ext, and return whether this succeeded.
1624 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1625 rm -f conftest.
$ac_objext conftest
$ac_exeext
1626 if { { ac_try
="$ac_link"
1628 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1629 *) ac_try_echo=$ac_try;;
1631 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1632 $as_echo "$ac_try_echo"; } >&5
1633 (eval "$ac_link") 2>conftest.err
1635 if test -s conftest.err; then
1636 grep -v '^ *+' conftest.err >conftest.er1
1637 cat conftest.er1 >&5
1638 mv -f conftest.er1 conftest.err
1640 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1641 test $ac_status = 0; } && {
1642 test -z "$ac_c_werror_flag" ||
1643 test ! -s conftest.err
1644 } && test -s conftest$ac_exeext && {
1645 test "$cross_compiling" = yes ||
1646 test -x conftest$ac_exeext
1650 $as_echo "$as_me: failed program was:" >&5
1651 sed 's/^/| /' conftest.$ac_ext >&5
1655 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1656 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1657 # interfere with the next link command; also delete a directory that is
1658 # left behind by Apple's compiler. We do this before executing the actions.
1659 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1660 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1661 as_fn_set_status $ac_retval
1663 } # ac_fn_c_try_link
1665 # ac_fn_c_try_cpp LINENO
1666 # ----------------------
1667 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1670 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1671 if { { ac_try="$ac_cpp conftest.$ac_ext"
1673 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1674 *) ac_try_echo
=$ac_try;;
1676 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1677 $as_echo "$ac_try_echo"; } >&5
1678 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1680 if test -s conftest.err
; then
1681 grep -v '^ *+' conftest.err
>conftest.er1
1682 cat conftest.er1
>&5
1683 mv -f conftest.er1 conftest.err
1685 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1686 test $ac_status = 0; } > conftest.i
&& {
1687 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1688 test ! -s conftest.err
1692 $as_echo "$as_me: failed program was:" >&5
1693 sed 's/^/| /' conftest.
$ac_ext >&5
1697 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1698 as_fn_set_status
$ac_retval
1702 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1703 # -------------------------------------------------------
1704 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1705 # the include files in INCLUDES and setting the cache variable VAR
1707 ac_fn_c_check_header_mongrel
()
1709 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1710 if eval \
${$3+:} false
; then :
1711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1712 $as_echo_n "checking for $2... " >&6; }
1713 if eval \
${$3+:} false
; then :
1714 $as_echo_n "(cached) " >&6
1717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1718 $as_echo "$ac_res" >&6; }
1720 # Is the header compilable?
1721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1722 $as_echo_n "checking $2 usability... " >&6; }
1723 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1724 /* end confdefs.h. */
1728 if ac_fn_c_try_compile
"$LINENO"; then :
1729 ac_header_compiler
=yes
1731 ac_header_compiler
=no
1733 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1735 $as_echo "$ac_header_compiler" >&6; }
1737 # Is the header present?
1738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1739 $as_echo_n "checking $2 presence... " >&6; }
1740 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1741 /* end confdefs.h. */
1744 if ac_fn_c_try_cpp
"$LINENO"; then :
1745 ac_header_preproc
=yes
1747 ac_header_preproc
=no
1749 rm -f conftest.err conftest.i conftest.
$ac_ext
1750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1751 $as_echo "$ac_header_preproc" >&6; }
1753 # So? What about this header?
1754 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1756 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1757 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1758 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1759 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1762 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1763 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1764 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1765 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1766 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1767 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1768 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1769 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1770 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1771 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1775 $as_echo_n "checking for $2... " >&6; }
1776 if eval \
${$3+:} false
; then :
1777 $as_echo_n "(cached) " >&6
1779 eval "$3=\$ac_header_compiler"
1782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1783 $as_echo "$ac_res" >&6; }
1785 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1787 } # ac_fn_c_check_header_mongrel
1789 # ac_fn_c_try_run LINENO
1790 # ----------------------
1791 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1792 # that executables *can* be run.
1795 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1796 if { { ac_try
="$ac_link"
1798 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1799 *) ac_try_echo=$ac_try;;
1801 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1802 $as_echo "$ac_try_echo"; } >&5
1803 (eval "$ac_link") 2>&5
1805 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1806 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1807 { { case "(($ac_try" in
1808 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1809 *) ac_try_echo
=$ac_try;;
1811 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1812 $as_echo "$ac_try_echo"; } >&5
1813 (eval "$ac_try") 2>&5
1815 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1816 test $ac_status = 0; }; }; then :
1819 $as_echo "$as_me: program exited with status $ac_status" >&5
1820 $as_echo "$as_me: failed program was:" >&5
1821 sed 's/^/| /' conftest.
$ac_ext >&5
1823 ac_retval
=$ac_status
1825 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1826 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1827 as_fn_set_status
$ac_retval
1831 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1832 # -------------------------------------------------------
1833 # Tests whether HEADER exists and can be compiled using the include files in
1834 # INCLUDES, setting the cache variable VAR accordingly.
1835 ac_fn_c_check_header_compile
()
1837 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1839 $as_echo_n "checking for $2... " >&6; }
1840 if eval \
${$3+:} false
; then :
1841 $as_echo_n "(cached) " >&6
1843 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1844 /* end confdefs.h. */
1848 if ac_fn_c_try_compile
"$LINENO"; then :
1853 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1857 $as_echo "$ac_res" >&6; }
1858 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1860 } # ac_fn_c_check_header_compile
1862 # ac_fn_c_check_func LINENO FUNC VAR
1863 # ----------------------------------
1864 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1865 ac_fn_c_check_func
()
1867 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1869 $as_echo_n "checking for $2... " >&6; }
1870 if eval \
${$3+:} false
; then :
1871 $as_echo_n "(cached) " >&6
1873 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1874 /* end confdefs.h. */
1875 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1876 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1877 #define $2 innocuous_$2
1879 /* System header to define __stub macros and hopefully few prototypes,
1880 which can conflict with char $2 (); below.
1881 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1882 <limits.h> exists even on freestanding compilers. */
1885 # include <limits.h>
1887 # include <assert.h>
1892 /* Override any GCC internal prototype to avoid an error.
1893 Use char because int might match the return type of a GCC
1894 builtin and then its argument prototype would still apply. */
1899 /* The GNU C library defines this for functions which it implements
1900 to always fail with ENOSYS. Some functions are actually named
1901 something starting with __ and the normal name is an alias. */
1902 #if defined __stub_$2 || defined __stub___$2
1914 if ac_fn_c_try_link
"$LINENO"; then :
1919 rm -f core conftest.err conftest.
$ac_objext \
1920 conftest
$ac_exeext conftest.
$ac_ext
1923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1924 $as_echo "$ac_res" >&6; }
1925 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1927 } # ac_fn_c_check_func
1929 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1930 # ---------------------------------------------
1931 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1933 ac_fn_c_check_decl
()
1935 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1936 as_decl_name
=`echo $2|sed 's/ *(.*//'`
1937 as_decl_use
=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1939 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1940 if eval \
${$3+:} false
; then :
1941 $as_echo_n "(cached) " >&6
1943 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1944 /* end confdefs.h. */
1949 #ifndef $as_decl_name
1951 (void) $as_decl_use;
1953 (void) $as_decl_name;
1961 if ac_fn_c_try_compile
"$LINENO"; then :
1966 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1970 $as_echo "$ac_res" >&6; }
1971 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1973 } # ac_fn_c_check_decl
1975 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1976 # -------------------------------------------
1977 # Tests whether TYPE exists after having included INCLUDES, setting cache
1978 # variable VAR accordingly.
1979 ac_fn_c_check_type
()
1981 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1983 $as_echo_n "checking for $2... " >&6; }
1984 if eval \
${$3+:} false
; then :
1985 $as_echo_n "(cached) " >&6
1988 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1989 /* end confdefs.h. */
2000 if ac_fn_c_try_compile
"$LINENO"; then :
2001 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2002 /* end confdefs.h. */
2013 if ac_fn_c_try_compile
"$LINENO"; then :
2018 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2020 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2024 $as_echo "$ac_res" >&6; }
2025 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2027 } # ac_fn_c_check_type
2029 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2030 # ----------------------------------------------------
2031 # Tries to find if the field MEMBER exists in type AGGR, after including
2032 # INCLUDES, setting cache variable VAR accordingly.
2033 ac_fn_c_check_member
()
2035 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2037 $as_echo_n "checking for $2.$3... " >&6; }
2038 if eval \
${$4+:} false
; then :
2039 $as_echo_n "(cached) " >&6
2041 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2042 /* end confdefs.h. */
2054 if ac_fn_c_try_compile
"$LINENO"; then :
2057 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2058 /* end confdefs.h. */
2064 if (sizeof ac_aggr.$3)
2070 if ac_fn_c_try_compile
"$LINENO"; then :
2075 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2077 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2081 $as_echo "$ac_res" >&6; }
2082 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2084 } # ac_fn_c_check_member
2085 cat >config.log
<<_ACEOF
2086 This file contains any messages produced by compilers while
2087 running configure, to aid debugging if configure makes a mistake.
2089 It was created by pcap $as_me 1.10.0-PRE-GIT, which was
2090 generated by GNU Autoconf 2.69. Invocation command line was
2102 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2103 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2104 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2105 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2106 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2108 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2109 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2111 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2112 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2113 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2114 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2115 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2116 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2117 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2121 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2125 test -z "$as_dir" && as_dir
=.
2126 $as_echo "PATH: $as_dir"
2142 # Keep a trace of the command line.
2143 # Strip out --no-create and --no-recursion so they do not pile up.
2144 # Strip out --silent because we don't want to record it for future runs.
2145 # Also quote any args containing shell meta-characters.
2146 # Make two passes to allow for proper duplicate-argument suppression.
2150 ac_must_keep_next
=false
2156 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2157 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2158 |
-silent |
--silent |
--silen |
--sile |
--sil)
2161 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2164 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2166 as_fn_append ac_configure_args1
" '$ac_arg'"
2167 if test $ac_must_keep_next = true
; then
2168 ac_must_keep_next
=false
# Got value, back to normal.
2171 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2172 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2173 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2174 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2175 case "$ac_configure_args0 " in
2176 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2179 -* ) ac_must_keep_next
=true
;;
2182 as_fn_append ac_configure_args
" '$ac_arg'"
2187 { ac_configure_args0
=; unset ac_configure_args0
;}
2188 { ac_configure_args1
=; unset ac_configure_args1
;}
2190 # When interrupted or exit'd, cleanup temporary files, and complete
2191 # config.log. We remove comments because anyway the quotes in there
2192 # would cause problems or look ugly.
2193 # WARNING: Use '\'' to represent an apostrophe within the trap.
2194 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2195 trap 'exit_status=$?
2196 # Save into config.log some information that might help in debugging.
2200 $as_echo "## ---------------- ##
2201 ## Cache variables. ##
2202 ## ---------------- ##"
2204 # The following way of writing the cache mishandles newlines in values,
2206 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2207 eval ac_val=\$$ac_var
2211 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2212 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2215 _ | IFS | as_nl) ;; #(
2216 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2217 *) { eval $ac_var=; unset $ac_var;} ;;
2222 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2223 *${as_nl}ac_space=\ *)
2225 "s/'\''/'\''\\\\'\'''\''/g;
2226 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2229 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2236 $as_echo "## ----------------- ##
2237 ## Output variables. ##
2238 ## ----------------- ##"
2240 for ac_var in $ac_subst_vars
2242 eval ac_val=\$$ac_var
2244 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2246 $as_echo "$ac_var='\''$ac_val'\''"
2250 if test -n "$ac_subst_files"; then
2251 $as_echo "## ------------------- ##
2252 ## File substitutions. ##
2253 ## ------------------- ##"
2255 for ac_var
in $ac_subst_files
2257 eval ac_val
=\$
$ac_var
2259 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2261 $as_echo "$ac_var='\''$ac_val'\''"
2266 if test -s confdefs.h; then
2267 $as_echo "## ----------- ##
2274 test "$ac_signal" != 0 &&
2275 $as_echo "$as_me: caught signal $ac_signal"
2276 $as_echo "$as_me: exit $exit_status"
2278 rm -f core *.core core.conftest.* &&
2279 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2282 for ac_signal
in 1 2 13 15; do
2283 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2287 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2288 rm -f -r conftest
* confdefs.h
2290 $as_echo "/* confdefs.h */" > confdefs.h
2292 # Predefined preprocessor variables.
2294 cat >>confdefs.h
<<_ACEOF
2295 #define PACKAGE_NAME "$PACKAGE_NAME"
2298 cat >>confdefs.h
<<_ACEOF
2299 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2302 cat >>confdefs.h
<<_ACEOF
2303 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2306 cat >>confdefs.h
<<_ACEOF
2307 #define PACKAGE_STRING "$PACKAGE_STRING"
2310 cat >>confdefs.h
<<_ACEOF
2311 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2314 cat >>confdefs.h
<<_ACEOF
2315 #define PACKAGE_URL "$PACKAGE_URL"
2319 # Let the site file select an alternate cache file if it wants to.
2320 # Prefer an explicitly selected file to automatically selected ones.
2323 if test -n "$CONFIG_SITE"; then
2324 # We do not want a PATH search for config.site.
2325 case $CONFIG_SITE in #((
2326 -*) ac_site_file1
=.
/$CONFIG_SITE;;
2327 */*) ac_site_file1
=$CONFIG_SITE;;
2328 *) ac_site_file1
=.
/$CONFIG_SITE;;
2330 elif test "x$prefix" != xNONE
; then
2331 ac_site_file1
=$prefix/share
/config.site
2332 ac_site_file2
=$prefix/etc
/config.site
2334 ac_site_file1
=$ac_default_prefix/share
/config.site
2335 ac_site_file2
=$ac_default_prefix/etc
/config.site
2337 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
2339 test "x$ac_site_file" = xNONE
&& continue
2340 if test /dev
/null
!= "$ac_site_file" && test -r "$ac_site_file"; then
2341 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2342 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2343 sed 's/^/| /' "$ac_site_file" >&5
2345 ||
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2346 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2347 as_fn_error $?
"failed to load site script $ac_site_file
2348 See \`config.log' for more details" "$LINENO" 5; }
2352 if test -r "$cache_file"; then
2353 # Some versions of bash will fail to source /dev/null (special files
2354 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2355 if test /dev
/null
!= "$cache_file" && test -f "$cache_file"; then
2356 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2357 $as_echo "$as_me: loading cache $cache_file" >&6;}
2359 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2360 *) .
"./$cache_file";;
2364 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2365 $as_echo "$as_me: creating cache $cache_file" >&6;}
2369 # Check that the precious variables saved in the cache have kept the same
2371 ac_cache_corrupted
=false
2372 for ac_var
in $ac_precious_vars; do
2373 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2374 eval ac_new_set
=\
$ac_env_${ac_var}_set
2375 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2376 eval ac_new_val
=\
$ac_env_${ac_var}_value
2377 case $ac_old_set,$ac_new_set in
2379 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2380 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2381 ac_cache_corrupted
=: ;;
2383 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2384 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2385 ac_cache_corrupted
=: ;;
2388 if test "x$ac_old_val" != "x$ac_new_val"; then
2389 # differences in whitespace do not lead to failure.
2390 ac_old_val_w
=`echo x $ac_old_val`
2391 ac_new_val_w
=`echo x $ac_new_val`
2392 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2393 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2394 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2395 ac_cache_corrupted
=:
2397 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2398 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2399 eval $ac_var=\
$ac_old_val
2401 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2402 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2403 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2404 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2407 # Pass precious variables to config.status.
2408 if test "$ac_new_set" = set; then
2410 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2411 *) ac_arg
=$ac_var=$ac_new_val ;;
2413 case " $ac_configure_args " in
2414 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2415 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
2419 if $ac_cache_corrupted; then
2420 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2421 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2422 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2423 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2424 as_fn_error $?
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2426 ## -------------------- ##
2427 ## Main body of script. ##
2428 ## -------------------- ##
2431 ac_cpp
='$CPP $CPPFLAGS'
2432 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2433 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2434 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2441 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2442 if test -f "$ac_dir/install-sh"; then
2444 ac_install_sh
="$ac_aux_dir/install-sh -c"
2446 elif test -f "$ac_dir/install.sh"; then
2448 ac_install_sh
="$ac_aux_dir/install.sh -c"
2450 elif test -f "$ac_dir/shtool"; then
2452 ac_install_sh
="$ac_aux_dir/shtool install -c"
2456 if test -z "$ac_aux_dir"; then
2457 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2460 # These three variables are undocumented and unsupported,
2461 # and are intended to be withdrawn in a future Autoconf release.
2462 # They can cause serious problems if a builder's source tree is in a directory
2463 # whose full name contains unusual characters.
2464 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2465 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2466 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2469 # Make sure we can run config.sub.
2470 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2471 as_fn_error $?
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2474 $as_echo_n "checking build system type... " >&6; }
2475 if ${ac_cv_build+:} false
; then :
2476 $as_echo_n "(cached) " >&6
2478 ac_build_alias
=$build_alias
2479 test "x$ac_build_alias" = x
&&
2480 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2481 test "x$ac_build_alias" = x
&&
2482 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
2483 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2484 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2488 $as_echo "$ac_cv_build" >&6; }
2489 case $ac_cv_build in
2491 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
2494 ac_save_IFS
=$IFS; IFS
='-'
2500 # Remember, the first character of IFS is used to create $*,
2501 # except with old shells:
2504 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2508 $as_echo_n "checking host system type... " >&6; }
2509 if ${ac_cv_host+:} false
; then :
2510 $as_echo_n "(cached) " >&6
2512 if test "x$host_alias" = x
; then
2513 ac_cv_host
=$ac_cv_build
2515 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2516 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2521 $as_echo "$ac_cv_host" >&6; }
2524 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
2527 ac_save_IFS
=$IFS; IFS
='-'
2533 # Remember, the first character of IFS is used to create $*,
2534 # except with old shells:
2537 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2541 $as_echo_n "checking target system type... " >&6; }
2542 if ${ac_cv_target+:} false
; then :
2543 $as_echo_n "(cached) " >&6
2545 if test "x$target_alias" = x
; then
2546 ac_cv_target
=$ac_cv_host
2548 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2549 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2554 $as_echo "$ac_cv_target" >&6; }
2555 case $ac_cv_target in
2557 *) as_fn_error $?
"invalid value of canonical target" "$LINENO" 5;;
2559 target
=$ac_cv_target
2560 ac_save_IFS
=$IFS; IFS
='-'
2566 # Remember, the first character of IFS is used to create $*,
2567 # except with old shells:
2570 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
2573 # The aliases save the names the user supplied, while $host etc.
2574 # will get canonicalized.
2575 test -n "$target_alias" &&
2576 test "$program_prefix$program_suffix$program_transform_name" = \
2578 program_prefix
=${target_alias}-
2587 # Check whether --with-gcc was given.
2588 if test "${with_gcc+set}" = set; then :
2593 if test "${srcdir}" != "." ; then
2594 V_CCOPT
="-I\$(srcdir)"
2596 if test "${CFLAGS+set}" = set; then
2597 LBL_CFLAGS
="$CFLAGS"
2599 if test -z "$CC" ; then
2603 # Extract the first word of "shlicc2", so it can be a program name with args.
2604 set dummy shlicc2
; ac_word
=$2
2605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2606 $as_echo_n "checking for $ac_word... " >&6; }
2607 if ${ac_cv_prog_SHLICC2+:} false
; then :
2608 $as_echo_n "(cached) " >&6
2610 if test -n "$SHLICC2"; then
2611 ac_cv_prog_SHLICC2
="$SHLICC2" # Let the user override the test.
2613 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2617 test -z "$as_dir" && as_dir
=.
2618 for ac_exec_ext
in '' $ac_executable_extensions; do
2619 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2620 ac_cv_prog_SHLICC2
="yes"
2621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2628 test -z "$ac_cv_prog_SHLICC2" && ac_cv_prog_SHLICC2
="no"
2631 SHLICC2
=$ac_cv_prog_SHLICC2
2632 if test -n "$SHLICC2"; then
2633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHLICC2" >&5
2634 $as_echo "$SHLICC2" >&6; }
2636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2637 $as_echo "no" >&6; }
2641 if test $SHLICC2 = yes ; then
2648 if test -z "$CC" -a "$with_gcc" = no
; then
2654 # We require C99 or later.
2655 # Try to get it, which may involve adding compiler flags;
2656 # if that fails, give up.
2659 ac_cpp
='$CPP $CPPFLAGS'
2660 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2661 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2662 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2663 if test -n "$ac_tool_prefix"; then
2664 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2665 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2667 $as_echo_n "checking for $ac_word... " >&6; }
2668 if ${ac_cv_prog_CC+:} false
; then :
2669 $as_echo_n "(cached) " >&6
2671 if test -n "$CC"; then
2672 ac_cv_prog_CC
="$CC" # Let the user override the test.
2674 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2678 test -z "$as_dir" && as_dir
=.
2679 for ac_exec_ext
in '' $ac_executable_extensions; do
2680 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2681 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2682 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2692 if test -n "$CC"; then
2693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2694 $as_echo "$CC" >&6; }
2696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2697 $as_echo "no" >&6; }
2702 if test -z "$ac_cv_prog_CC"; then
2704 # Extract the first word of "gcc", so it can be a program name with args.
2705 set dummy gcc
; ac_word
=$2
2706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2707 $as_echo_n "checking for $ac_word... " >&6; }
2708 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
2709 $as_echo_n "(cached) " >&6
2711 if test -n "$ac_ct_CC"; then
2712 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2714 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2718 test -z "$as_dir" && as_dir
=.
2719 for ac_exec_ext
in '' $ac_executable_extensions; do
2720 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2721 ac_cv_prog_ac_ct_CC
="gcc"
2722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2731 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2732 if test -n "$ac_ct_CC"; then
2733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2734 $as_echo "$ac_ct_CC" >&6; }
2736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2737 $as_echo "no" >&6; }
2740 if test "x$ac_ct_CC" = x
; then
2743 case $cross_compiling:$ac_tool_warned in
2745 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2746 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2747 ac_tool_warned
=yes ;;
2755 if test -z "$CC"; then
2756 if test -n "$ac_tool_prefix"; then
2757 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2758 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2760 $as_echo_n "checking for $ac_word... " >&6; }
2761 if ${ac_cv_prog_CC+:} false
; then :
2762 $as_echo_n "(cached) " >&6
2764 if test -n "$CC"; then
2765 ac_cv_prog_CC
="$CC" # Let the user override the test.
2767 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2771 test -z "$as_dir" && as_dir
=.
2772 for ac_exec_ext
in '' $ac_executable_extensions; do
2773 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2774 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2785 if test -n "$CC"; then
2786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2787 $as_echo "$CC" >&6; }
2789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2790 $as_echo "no" >&6; }
2796 if test -z "$CC"; then
2797 # Extract the first word of "cc", so it can be a program name with args.
2798 set dummy cc
; ac_word
=$2
2799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2800 $as_echo_n "checking for $ac_word... " >&6; }
2801 if ${ac_cv_prog_CC+:} false
; then :
2802 $as_echo_n "(cached) " >&6
2804 if test -n "$CC"; then
2805 ac_cv_prog_CC
="$CC" # Let the user override the test.
2808 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2812 test -z "$as_dir" && as_dir
=.
2813 for ac_exec_ext
in '' $ac_executable_extensions; do
2814 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2815 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2816 ac_prog_rejected
=yes
2820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2827 if test $ac_prog_rejected = yes; then
2828 # We found a bogon in the path, so make sure we never use it.
2829 set dummy
$ac_cv_prog_CC
2831 if test $# != 0; then
2832 # We chose a different compiler from the bogus one.
2833 # However, it has the same basename, so the bogon will be chosen
2834 # first if we set CC to just the basename; use the full file name.
2836 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2842 if test -n "$CC"; then
2843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2844 $as_echo "$CC" >&6; }
2846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2847 $as_echo "no" >&6; }
2852 if test -z "$CC"; then
2853 if test -n "$ac_tool_prefix"; then
2854 for ac_prog
in cl.exe
2856 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2857 set dummy
$ac_tool_prefix$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_CC+:} false
; then :
2861 $as_echo_n "(cached) " >&6
2863 if test -n "$CC"; then
2864 ac_cv_prog_CC
="$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_CC
="$ac_tool_prefix$ac_prog"
2874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2884 if test -n "$CC"; then
2885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2886 $as_echo "$CC" >&6; }
2888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2889 $as_echo "no" >&6; }
2893 test -n "$CC" && break
2896 if test -z "$CC"; then
2898 for ac_prog
in cl.exe
2900 # Extract the first word of "$ac_prog", so it can be a program name with args.
2901 set dummy
$ac_prog; ac_word
=$2
2902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2903 $as_echo_n "checking for $ac_word... " >&6; }
2904 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
2905 $as_echo_n "(cached) " >&6
2907 if test -n "$ac_ct_CC"; then
2908 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2910 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2914 test -z "$as_dir" && as_dir
=.
2915 for ac_exec_ext
in '' $ac_executable_extensions; do
2916 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2917 ac_cv_prog_ac_ct_CC
="$ac_prog"
2918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2927 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2928 if test -n "$ac_ct_CC"; then
2929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2930 $as_echo "$ac_ct_CC" >&6; }
2932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2933 $as_echo "no" >&6; }
2937 test -n "$ac_ct_CC" && break
2940 if test "x$ac_ct_CC" = x
; then
2943 case $cross_compiling:$ac_tool_warned in
2945 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2946 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2947 ac_tool_warned
=yes ;;
2956 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2957 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2958 as_fn_error $?
"no acceptable C compiler found in \$PATH
2959 See \`config.log' for more details" "$LINENO" 5; }
2961 # Provide some information about the compiler.
2962 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2965 for ac_option
in --version -v -V -qversion; do
2966 { { ac_try
="$ac_compiler $ac_option >&5"
2968 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2969 *) ac_try_echo=$ac_try;;
2971 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2972 $as_echo "$ac_try_echo"; } >&5
2973 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2975 if test -s conftest.err; then
2977 ... rest of stderr output deleted ...
2978 10q' conftest.err >conftest.er1
2979 cat conftest.er1 >&5
2981 rm -f conftest.er1 conftest.err
2982 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2983 test $ac_status = 0; }
2986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2987 /* end confdefs.h. */
2997 ac_clean_files_save=$ac_clean_files
2998 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2999 # Try to create an executable without -o first, disregard a.out.
3000 # It will help us diagnose broken compilers, and finding out an intuition
3002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3003 $as_echo_n "checking whether the C compiler works... " >&6; }
3004 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3006 # The possible output files:
3007 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3010 for ac_file in $ac_files
3013 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3014 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3019 if { { ac_try="$ac_link_default"
3021 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3022 *) ac_try_echo
=$ac_try;;
3024 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3025 $as_echo "$ac_try_echo"; } >&5
3026 (eval "$ac_link_default") 2>&5
3028 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3029 test $ac_status = 0; }; then :
3030 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3031 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3032 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3033 # so that the user can short-circuit this test for compilers unknown to
3035 for ac_file
in $ac_files ''
3037 test -f "$ac_file" ||
continue
3039 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3042 # We found the default executable, but exeext='' is most
3046 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3048 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3050 # We set ac_cv_exeext here because the later test for it is not
3051 # safe: cross compilers may not add the suffix if given an `-o'
3052 # argument, so we may need to know it at that point already.
3053 # Even if this section looks crufty: it has the advantage of
3060 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3065 if test -z "$ac_file"; then :
3066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3067 $as_echo "no" >&6; }
3068 $as_echo "$as_me: failed program was:" >&5
3069 sed 's/^/| /' conftest.
$ac_ext >&5
3071 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3072 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3073 as_fn_error
77 "C compiler cannot create executables
3074 See \`config.log' for more details" "$LINENO" 5; }
3076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3077 $as_echo "yes" >&6; }
3079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3080 $as_echo_n "checking for C compiler default output file name... " >&6; }
3081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3082 $as_echo "$ac_file" >&6; }
3083 ac_exeext
=$ac_cv_exeext
3085 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
3086 ac_clean_files
=$ac_clean_files_save
3087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3088 $as_echo_n "checking for suffix of executables... " >&6; }
3089 if { { ac_try
="$ac_link"
3091 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3092 *) ac_try_echo=$ac_try;;
3094 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3095 $as_echo "$ac_try_echo"; } >&5
3096 (eval "$ac_link") 2>&5
3098 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3099 test $ac_status = 0; }; then :
3100 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
3101 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
3102 # work properly (i.e., refer to `conftest.exe'), while it won't with
3104 for ac_file
in conftest.exe conftest conftest.
*; do
3105 test -f "$ac_file" ||
continue
3107 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3108 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3114 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3115 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3116 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
3117 See \`config.log' for more details" "$LINENO" 5; }
3119 rm -f conftest conftest
$ac_cv_exeext
3120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3121 $as_echo "$ac_cv_exeext" >&6; }
3123 rm -f conftest.
$ac_ext
3124 EXEEXT
=$ac_cv_exeext
3126 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3127 /* end confdefs.h. */
3132 FILE *f = fopen ("conftest.out", "w");
3133 return ferror (f) || fclose (f) != 0;
3139 ac_clean_files
="$ac_clean_files conftest.out"
3140 # Check that the compiler produces executables we can run. If not, either
3141 # the compiler is broken, or we cross compile.
3142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3143 $as_echo_n "checking whether we are cross compiling... " >&6; }
3144 if test "$cross_compiling" != yes; then
3145 { { ac_try
="$ac_link"
3147 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3148 *) ac_try_echo=$ac_try;;
3150 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3151 $as_echo "$ac_try_echo"; } >&5
3152 (eval "$ac_link") 2>&5
3154 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3155 test $ac_status = 0; }
3156 if { ac_try='./conftest$ac_cv_exeext'
3157 { { case "(($ac_try" in
3158 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3159 *) ac_try_echo
=$ac_try;;
3161 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3162 $as_echo "$ac_try_echo"; } >&5
3163 (eval "$ac_try") 2>&5
3165 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3166 test $ac_status = 0; }; }; then
3169 if test "$cross_compiling" = maybe
; then
3172 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3173 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3174 as_fn_error $?
"cannot run C compiled programs.
3175 If you meant to cross compile, use \`--host'.
3176 See \`config.log' for more details" "$LINENO" 5; }
3180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3181 $as_echo "$cross_compiling" >&6; }
3183 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3184 ac_clean_files
=$ac_clean_files_save
3185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3186 $as_echo_n "checking for suffix of object files... " >&6; }
3187 if ${ac_cv_objext+:} false
; then :
3188 $as_echo_n "(cached) " >&6
3190 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3191 /* end confdefs.h. */
3201 rm -f conftest.o conftest.obj
3202 if { { ac_try
="$ac_compile"
3204 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3205 *) ac_try_echo=$ac_try;;
3207 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3208 $as_echo "$ac_try_echo"; } >&5
3209 (eval "$ac_compile") 2>&5
3211 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3212 test $ac_status = 0; }; then :
3213 for ac_file in conftest.o conftest.obj conftest.*; do
3214 test -f "$ac_file" || continue;
3216 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3217 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3222 $as_echo "$as_me: failed program was:" >&5
3223 sed 's/^/| /' conftest.$ac_ext >&5
3225 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3226 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3227 as_fn_error $? "cannot compute suffix of object files
: cannot compile
3228 See \
`config.log' for more details" "$LINENO" 5; }
3230 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3233 $as_echo "$ac_cv_objext" >&6; }
3234 OBJEXT=$ac_cv_objext
3236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3237 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3238 if ${ac_cv_c_compiler_gnu+:} false; then :
3239 $as_echo_n "(cached) " >&6
3241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3242 /* end confdefs.h. */
3255 if ac_fn_c_try_compile "$LINENO"; then :
3260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3261 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3265 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3266 if test $ac_compiler_gnu = yes; then
3271 ac_test_CFLAGS=${CFLAGS+set}
3272 ac_save_CFLAGS=$CFLAGS
3273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3274 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3275 if ${ac_cv_prog_cc_g+:} false; then :
3276 $as_echo_n "(cached) " >&6
3278 ac_save_c_werror_flag=$ac_c_werror_flag
3279 ac_c_werror_flag=yes
3282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3283 /* end confdefs.h. */
3293 if ac_fn_c_try_compile "$LINENO"; then :
3297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3298 /* end confdefs.h. */
3308 if ac_fn_c_try_compile "$LINENO"; then :
3311 ac_c_werror_flag=$ac_save_c_werror_flag
3313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3314 /* end confdefs.h. */
3324 if ac_fn_c_try_compile "$LINENO"; then :
3327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3332 ac_c_werror_flag=$ac_save_c_werror_flag
3334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3335 $as_echo "$ac_cv_prog_cc_g" >&6; }
3336 if test "$ac_test_CFLAGS" = set; then
3337 CFLAGS=$ac_save_CFLAGS
3338 elif test $ac_cv_prog_cc_g = yes; then
3339 if test "$GCC" = yes; then
3345 if test "$GCC" = yes; then
3351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3352 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3353 if ${ac_cv_prog_cc_c89+:} false; then :
3354 $as_echo_n "(cached) " >&6
3356 ac_cv_prog_cc_c89=no
3358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3359 /* end confdefs.h. */
3363 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3364 struct buf { int x; };
3365 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3366 static char *e (p, i)
3372 static char *f (char * (*g) (char **, int), char **p, ...)
3377 s = g (p, va_arg (v,int));
3382 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3383 function prototypes and stuff, but not '\xHH' hex character constants.
3384 These don't provoke an error unfortunately, instead are silently treated
3385 as 'x'. The following induces an error, until -std is added to get
3386 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3387 array size at least. It's necessary to write '\x00'==0 to get something
3388 that's true only with -std. */
3389 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3391 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3392 inside strings and character constants. */
3394 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3396 int test (int i, double x);
3397 struct s1 {int (*f) (int a);};
3398 struct s2 {int (*f) (double a);};
3399 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3405 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3410 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3411 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3413 CC="$ac_save_CC $ac_arg"
3414 if ac_fn_c_try_compile "$LINENO"; then :
3415 ac_cv_prog_cc_c89=$ac_arg
3417 rm -f core conftest.err conftest.$ac_objext
3418 test "x$ac_cv_prog_cc_c89" != "xno" && break
3420 rm -f conftest.$ac_ext
3425 case "x$ac_cv_prog_cc_c89" in
3427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3428 $as_echo "none needed" >&6; } ;;
3430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3431 $as_echo "unsupported" >&6; } ;;
3433 CC="$CC $ac_cv_prog_cc_c89"
3434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3435 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3437 if test "x$ac_cv_prog_cc_c89" != xno; then :
3442 ac_cpp='$CPP $CPPFLAGS'
3443 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3444 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3445 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3448 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3449 if ${ac_cv_prog_cc_c99+:} false; then :
3450 $as_echo_n "(cached) " >&6
3452 ac_cv_prog_cc_c99=no
3454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3455 /* end confdefs.h. */
3457 #include <stdbool.h>
3462 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3463 #define debug(...) fprintf (stderr, __VA_ARGS__)
3464 #define showlist(...) puts (#__VA_ARGS__)
3465 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3467 test_varargs_macros (void)
3472 debug ("X = %d\n", x);
3473 showlist (The first, second, and third items.);
3474 report (x>y, "x is %d but y is %d", x, y);
3477 // Check long long types.
3478 #define BIG64 18446744073709551615ull
3479 #define BIG32 4294967295ul
3480 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3482 your preprocessor is broken;
3486 your preprocessor is broken;
3488 static long long int bignum = -9223372036854775807LL;
3489 static unsigned long long int ubignum = BIG64;
3491 struct incomplete_array
3499 const wchar_t *name;
3503 typedef const char *ccp;
3506 test_restrict (ccp restrict text)
3508 // See if C++-style comments work.
3509 // Iterate through items via the restricted pointer.
3510 // Also check for declarations in for loops.
3511 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3516 // Check varargs and va_copy.
3518 test_varargs (const char *format, ...)
3521 va_start (args, format);
3523 va_copy (args_copy, args);
3534 str = va_arg (args_copy, const char *);
3537 number = va_arg (args_copy, int);
3540 fnumber = va_arg (args_copy, double);
3555 _Bool success = false;
3558 if (test_restrict ("String literal") == 0)
3560 char *restrict newvar = "Another string";
3563 test_varargs ("s, d' f .", "string", 65, 34.234);
3564 test_varargs_macros ();
3566 // Check flexible array members.
3567 struct incomplete_array *ia =
3568 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3570 for (int i = 0; i < ia->datasize; ++i)
3571 ia->data[i] = i * 1.234;
3573 // Check named initializers.
3574 struct named_init ni = {
3576 .name = L"Test wide string",
3577 .average = 543.34343,
3582 int dynamic_array[ni.number];
3583 dynamic_array[ni.number - 1] = 543;
3585 // work around unused variable warnings
3586 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3587 || dynamic_array[ni.number - 1] != 543);
3593 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
3595 CC="$ac_save_CC $ac_arg"
3596 if ac_fn_c_try_compile "$LINENO"; then :
3597 ac_cv_prog_cc_c99=$ac_arg
3599 rm -f core conftest.err conftest.$ac_objext
3600 test "x$ac_cv_prog_cc_c99" != "xno" && break
3602 rm -f conftest.$ac_ext
3607 case "x$ac_cv_prog_cc_c99" in
3609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3610 $as_echo "none needed" >&6; } ;;
3612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3613 $as_echo "unsupported" >&6; } ;;
3615 CC="$CC $ac_cv_prog_cc_c99"
3616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3617 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3619 if test "x$ac_cv_prog_cc_c99" != xno; then :
3624 if test "$ac_cv_prog_cc_c99" = "no"; then
3625 as_fn_error $? "The C compiler does not support C99" "$LINENO" 5
3630 # Haiku's platform file is in C++.
3633 ac_cpp='$CXXCPP $CPPFLAGS'
3634 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3635 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3636 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3637 if test -z "$CXX"; then
3638 if test -n "$CCC"; then
3641 if test -n "$ac_tool_prefix"; then
3642 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3644 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3645 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3647 $as_echo_n "checking for $ac_word... " >&6; }
3648 if ${ac_cv_prog_CXX+:} false; then :
3649 $as_echo_n "(cached) " >&6
3651 if test -n "$CXX"; then
3652 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3658 test -z "$as_dir" && as_dir=.
3659 for ac_exec_ext in '' $ac_executable_extensions; do
3660 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3661 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3672 if test -n "$CXX"; then
3673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3674 $as_echo "$CXX" >&6; }
3676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3677 $as_echo "no" >&6; }
3681 test -n "$CXX" && break
3684 if test -z "$CXX"; then
3686 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3688 # Extract the first word of "$ac_prog", so it can be a program name with args.
3689 set dummy $ac_prog; ac_word=$2
3690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3691 $as_echo_n "checking for $ac_word... " >&6; }
3692 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3693 $as_echo_n "(cached) " >&6
3695 if test -n "$ac_ct_CXX"; then
3696 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3702 test -z "$as_dir" && as_dir=.
3703 for ac_exec_ext in '' $ac_executable_extensions; do
3704 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3705 ac_cv_prog_ac_ct_CXX="$ac_prog"
3706 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3715 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3716 if test -n "$ac_ct_CXX"; then
3717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3718 $as_echo "$ac_ct_CXX" >&6; }
3720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3721 $as_echo "no" >&6; }
3725 test -n "$ac_ct_CXX" && break
3728 if test "x$ac_ct_CXX" = x; then
3731 case $cross_compiling:$ac_tool_warned in
3733 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3734 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3735 ac_tool_warned=yes ;;
3743 # Provide some information about the compiler.
3744 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3747 for ac_option in --version -v -V -qversion; do
3748 { { ac_try="$ac_compiler $ac_option >&5"
3750 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3751 *) ac_try_echo
=$ac_try;;
3753 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3754 $as_echo "$ac_try_echo"; } >&5
3755 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3757 if test -s conftest.err
; then
3759 ... rest of stderr output deleted ...
3760 10q' conftest.err
>conftest.er1
3761 cat conftest.er1
>&5
3763 rm -f conftest.er1 conftest.err
3764 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3765 test $ac_status = 0; }
3768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3769 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3770 if ${ac_cv_cxx_compiler_gnu+:} false
; then :
3771 $as_echo_n "(cached) " >&6
3773 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3774 /* end confdefs.h. */
3787 if ac_fn_cxx_try_compile
"$LINENO"; then :
3792 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3793 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
3796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3797 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3798 if test $ac_compiler_gnu = yes; then
3803 ac_test_CXXFLAGS
=${CXXFLAGS+set}
3804 ac_save_CXXFLAGS
=$CXXFLAGS
3805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3806 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3807 if ${ac_cv_prog_cxx_g+:} false
; then :
3808 $as_echo_n "(cached) " >&6
3810 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
3811 ac_cxx_werror_flag
=yes
3814 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3815 /* end confdefs.h. */
3825 if ac_fn_cxx_try_compile
"$LINENO"; then :
3826 ac_cv_prog_cxx_g
=yes
3829 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3830 /* end confdefs.h. */
3840 if ac_fn_cxx_try_compile
"$LINENO"; then :
3843 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
3845 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3846 /* end confdefs.h. */
3856 if ac_fn_cxx_try_compile
"$LINENO"; then :
3857 ac_cv_prog_cxx_g
=yes
3859 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3861 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3863 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3864 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
3866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3867 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3868 if test "$ac_test_CXXFLAGS" = set; then
3869 CXXFLAGS
=$ac_save_CXXFLAGS
3870 elif test $ac_cv_prog_cxx_g = yes; then
3871 if test "$GXX" = yes; then
3877 if test "$GXX" = yes; then
3884 ac_cpp
='$CPP $CPPFLAGS'
3885 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3886 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3887 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3897 if test "$GCC" = yes ; then
3899 # -Werror forces warnings to be errors.
3901 ac_lbl_cc_force_warning_errors
=-Werror
3904 # Try to have the compiler default to hiding symbols,
3905 # so that only symbols explicitly exported with
3906 # PCAP_API will be visible outside (shared) libraries.
3909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -fvisibility=hidden option" >&5
3910 $as_echo_n "checking whether the compiler supports the -fvisibility=hidden option... " >&6; }
3911 save_CFLAGS
="$CFLAGS"
3912 if expr "x-fvisibility=hidden" : "x-W.*" >/dev
/null
3914 CFLAGS
="$CFLAGS $ac_lbl_unknown_warning_option_error -fvisibility=hidden"
3915 elif expr "x-fvisibility=hidden" : "x-f.*" >/dev
/null
3917 CFLAGS
="$CFLAGS -Werror -fvisibility=hidden"
3918 elif expr "x-fvisibility=hidden" : "x-m.*" >/dev
/null
3920 CFLAGS
="$CFLAGS -Werror -fvisibility=hidden"
3922 CFLAGS
="$CFLAGS -fvisibility=hidden"
3924 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3925 /* end confdefs.h. */
3935 if ac_fn_c_try_compile
"$LINENO"; then :
3937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3938 $as_echo "yes" >&6; }
3939 can_add_to_cflags
=yes
3941 # The compile supports this; do we have some C code for
3942 # which the warning should *not* appear?
3943 # We test the fourth argument because the third argument
3944 # could contain quotes, breaking the test.
3948 CFLAGS
="$CFLAGS $ac_lbl_cc_force_warning_errors"
3949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fvisibility=hidden " >&5
3950 $as_echo_n "checking whether -fvisibility=hidden ... " >&6; }
3951 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3952 /* end confdefs.h. */
3955 if ac_fn_c_try_compile
"$LINENO"; then :
3960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3961 $as_echo "no" >&6; }
3968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3969 $as_echo "yes" >&6; }
3970 can_add_to_cflags
=no
3973 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3975 CFLAGS
="$save_CFLAGS"
3976 if test x
"$can_add_to_cflags" = "xyes"
3978 V_CCOPT
="$V_CCOPT -fvisibility=hidden"
3983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3984 $as_echo "no" >&6; }
3985 CFLAGS
="$save_CFLAGS"
3988 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3991 V_INCLS
="$V_INCLS -I/usr/local/include"
3992 LDFLAGS
="$LDFLAGS -L/usr/local/lib"
3998 # This is assumed either to be GCC or clang, both
3999 # of which use -Werror to force warnings to be errors.
4001 ac_lbl_cc_force_warning_errors
=-Werror
4004 # Try to have the compiler default to hiding symbols,
4005 # so that only symbols explicitly exported with
4006 # PCAP_API will be visible outside (shared) libraries.
4009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -fvisibility=hidden option" >&5
4010 $as_echo_n "checking whether the compiler supports the -fvisibility=hidden option... " >&6; }
4011 save_CFLAGS
="$CFLAGS"
4012 if expr "x-fvisibility=hidden" : "x-W.*" >/dev
/null
4014 CFLAGS
="$CFLAGS $ac_lbl_unknown_warning_option_error -fvisibility=hidden"
4015 elif expr "x-fvisibility=hidden" : "x-f.*" >/dev
/null
4017 CFLAGS
="$CFLAGS -Werror -fvisibility=hidden"
4018 elif expr "x-fvisibility=hidden" : "x-m.*" >/dev
/null
4020 CFLAGS
="$CFLAGS -Werror -fvisibility=hidden"
4022 CFLAGS
="$CFLAGS -fvisibility=hidden"
4024 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4025 /* end confdefs.h. */
4035 if ac_fn_c_try_compile
"$LINENO"; then :
4037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4038 $as_echo "yes" >&6; }
4039 can_add_to_cflags
=yes
4041 # The compile supports this; do we have some C code for
4042 # which the warning should *not* appear?
4043 # We test the fourth argument because the third argument
4044 # could contain quotes, breaking the test.
4048 CFLAGS
="$CFLAGS $ac_lbl_cc_force_warning_errors"
4049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fvisibility=hidden " >&5
4050 $as_echo_n "checking whether -fvisibility=hidden ... " >&6; }
4051 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4052 /* end confdefs.h. */
4055 if ac_fn_c_try_compile
"$LINENO"; then :
4060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4061 $as_echo "no" >&6; }
4068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4069 $as_echo "yes" >&6; }
4070 can_add_to_cflags
=no
4073 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4075 CFLAGS
="$save_CFLAGS"
4076 if test x
"$can_add_to_cflags" = "xyes"
4078 V_CCOPT
="$V_CCOPT -fvisibility=hidden"
4083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4084 $as_echo "no" >&6; }
4085 CFLAGS
="$save_CFLAGS"
4088 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4094 # HP C, which is what we presume we're using, doesn't
4095 # exit with a non-zero exit status if we hand it an
4096 # invalid -W flag, can't be forced to do so even with
4097 # +We, and doesn't handle GCC-style -W flags, so we
4098 # don't want to try using GCC-style -W flags.
4100 ac_lbl_cc_dont_try_gcc_dashW
=yes
4105 # MIPS C, which is what we presume we're using, doesn't
4106 # necessarily exit with a non-zero exit status if we
4107 # hand it an invalid -W flag, can't be forced to do
4108 # so, and doesn't handle GCC-style -W flags, so we
4109 # don't want to try using GCC-style -W flags.
4111 ac_lbl_cc_dont_try_gcc_dashW
=yes
4113 # It also, apparently, defaults to "char" being
4114 # unsigned, unlike most other C implementations;
4115 # I suppose we could say "signed char" whenever
4116 # we want to guarantee a signed "char", but let's
4117 # just force signed chars.
4119 # -xansi is normally the default, but the
4120 # configure script was setting it; perhaps -cckr
4121 # was the default in the Old Days. (Then again,
4122 # that would probably be for backwards compatibility
4123 # in the days when ANSI C was Shiny and New, i.e.
4124 # 1989 and the early '90's, so maybe we can just
4125 # drop support for those compilers.)
4127 # -g is equivalent to -g2, which turns off
4128 # optimization; we choose -g3, which generates
4129 # debugging information but doesn't turn off
4130 # optimization (even if the optimization would
4131 # cause inaccuracies in debugging).
4133 V_CCOPT
="$V_CCOPT -xansi -signed -g3"
4138 # Presumed to be DEC OSF/1, Digital UNIX, or
4141 # The DEC C compiler, which is what we presume we're
4142 # using, doesn't exit with a non-zero exit status if we
4143 # hand it an invalid -W flag, can't be forced to do
4144 # so, and doesn't handle GCC-style -W flags, so we
4145 # don't want to try using GCC-style -W flags.
4147 ac_lbl_cc_dont_try_gcc_dashW
=yes
4149 # -g is equivalent to -g2, which turns off
4150 # optimization; we choose -g3, which generates
4151 # debugging information but doesn't turn off
4152 # optimization (even if the optimization would
4153 # cause inaccuracies in debugging).
4155 V_CCOPT
="$V_CCOPT -g3"
4160 # Assumed to be Sun C, which requires -errwarn to force
4161 # warnings to be treated as errors.
4163 ac_lbl_cc_force_warning_errors
=-errwarn
4166 # Try to have the compiler default to hiding symbols,
4167 # so that only symbols explicitly exported with
4168 # PCAP_API will be visible outside (shared) libraries.
4171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -xldscope=hidden option" >&5
4172 $as_echo_n "checking whether the compiler supports the -xldscope=hidden option... " >&6; }
4173 save_CFLAGS
="$CFLAGS"
4174 if expr "x-xldscope=hidden" : "x-W.*" >/dev
/null
4176 CFLAGS
="$CFLAGS $ac_lbl_unknown_warning_option_error -xldscope=hidden"
4177 elif expr "x-xldscope=hidden" : "x-f.*" >/dev
/null
4179 CFLAGS
="$CFLAGS -Werror -xldscope=hidden"
4180 elif expr "x-xldscope=hidden" : "x-m.*" >/dev
/null
4182 CFLAGS
="$CFLAGS -Werror -xldscope=hidden"
4184 CFLAGS
="$CFLAGS -xldscope=hidden"
4186 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4187 /* end confdefs.h. */
4197 if ac_fn_c_try_compile
"$LINENO"; then :
4199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4200 $as_echo "yes" >&6; }
4201 can_add_to_cflags
=yes
4203 # The compile supports this; do we have some C code for
4204 # which the warning should *not* appear?
4205 # We test the fourth argument because the third argument
4206 # could contain quotes, breaking the test.
4210 CFLAGS
="$CFLAGS $ac_lbl_cc_force_warning_errors"
4211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -xldscope=hidden " >&5
4212 $as_echo_n "checking whether -xldscope=hidden ... " >&6; }
4213 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4214 /* end confdefs.h. */
4217 if ac_fn_c_try_compile
"$LINENO"; then :
4222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4223 $as_echo "no" >&6; }
4230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4231 $as_echo "yes" >&6; }
4232 can_add_to_cflags
=no
4235 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4237 CFLAGS
="$save_CFLAGS"
4238 if test x
"$can_add_to_cflags" = "xyes"
4240 V_CCOPT
="$V_CCOPT -xldscope=hidden"
4245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4246 $as_echo "no" >&6; }
4247 CFLAGS
="$save_CFLAGS"
4250 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that Ultrix $CC hacks const in prototypes" >&5
4256 $as_echo_n "checking that Ultrix $CC hacks const in prototypes... " >&6; }
4257 if ${ac_cv_lbl_cc_const_proto+:} false
; then :
4258 $as_echo_n "(cached) " >&6
4260 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4261 /* end confdefs.h. */
4262 #include <sys/types.h>
4266 struct a { int b; };
4267 void c(const struct a *)
4272 if ac_fn_c_try_compile
"$LINENO"; then :
4273 ac_cv_lbl_cc_const_proto
=yes
4275 ac_cv_lbl_cc_const_proto
=no
4277 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_cc_const_proto" >&5
4281 $as_echo "$ac_cv_lbl_cc_const_proto" >&6; }
4282 if test $ac_cv_lbl_cc_const_proto = no
; then
4284 $as_echo "#define const /**/" >>confdefs.h
4289 V_CCOPT
="$V_CCOPT -O"
4293 if test "$GCC" = yes ; then
4295 # On platforms where we build a shared library:
4297 # add options to generate position-independent code,
4298 # if necessary (it's the default in AIX and Darwin/macOS);
4300 # define option to set the soname of the shared library,
4301 # if the OS supports that;
4303 # add options to specify, at link time, a directory to
4304 # add to the run-time search path, if that's necessary.
4306 V_SHLIB_CMD
="\$(CC)"
4307 V_SHLIB_OPT
="-shared"
4313 freebsd
*|netbsd
*|openbsd
*|dragonfly
*|linux
*|osf
*|haiku
*|midipix
*)
4315 # Platforms where the linker is the GNU linker
4316 # or accepts command-line arguments like
4317 # those the GNU linker accepts.
4319 # Some instruction sets require -fPIC on some
4320 # operating systems. Check for them. If you
4321 # have a combination that requires it, add it
4330 freebsd
*|openbsd
*|linux
*)
4336 V_SHLIB_CCOPT
="$V_SHLIB_CCOPT $PIC_OPT"
4337 V_SONAME_OPT
="-Wl,-soname,"
4338 V_RPATH_OPT
="-Wl,-rpath,"
4342 V_SHLIB_CCOPT
="$V_SHLIB_CCOPT -fpic"
4344 # XXX - this assumes GCC is using the HP linker,
4345 # rather than the GNU linker, and that the "+h"
4346 # option is used on all HP-UX platforms, both .sl
4349 V_SONAME_OPT
="-Wl,+h,"
4351 # By default, directories specifed with -L
4352 # are added to the run-time search path, so
4353 # we don't add them in pcap-config.
4358 V_SHLIB_CCOPT
="$V_SHLIB_CCOPT -fpic"
4360 # XXX - this assumes GCC is using the Sun linker,
4361 # rather than the GNU linker.
4363 V_SONAME_OPT
="-Wl,-h,"
4364 V_RPATH_OPT
="-Wl,-R,"
4369 # Set the appropriate compiler flags and, on platforms
4370 # where we build a shared library:
4372 # add options to generate position-independent code,
4373 # if necessary (it's the default in Darwin/macOS);
4375 # if we generate ".so" shared libraries, define the
4376 # appropriate options for building the shared library;
4378 # add options to specify, at link time, a directory to
4379 # add to the run-time search path, if that's necessary.
4381 # Note: spaces after V_SONAME_OPT are significant; on
4382 # some platforms the soname is passed with a GCC-like
4383 # "-Wl,-soname,{soname}" option, with the soname part
4384 # of the option, while on other platforms the C compiler
4385 # driver takes it as a regular option with the soname
4386 # following the option. The same applies to V_RPATH_OPT.
4391 V_SHLIB_CMD
="\$(CC)"
4392 V_SHLIB_OPT
="-G -bnoentry -bexpall"
4395 freebsd
*|netbsd
*|openbsd
*|dragonfly
*|linux
*)
4399 V_SHLIB_CCOPT
="$V_SHLIB_CCOPT -fpic"
4400 V_SHLIB_CMD
="\$(CC)"
4401 V_SHLIB_OPT
="-shared"
4402 V_SONAME_OPT
="-Wl,-soname,"
4403 V_RPATH_OPT
="-Wl,-rpath,"
4407 V_SHLIB_CCOPT
="$V_SHLIB_CCOPT +z"
4408 V_SHLIB_CMD
="\$(LD)"
4412 # By default, directories specifed with -L
4413 # are added to the run-time search path, so
4414 # we don't add them in pcap-config.
4420 # Presumed to be DEC OSF/1, Digital UNIX, or
4423 V_SHLIB_CMD
="\$(CC)"
4424 V_SHLIB_OPT
="-shared"
4425 V_SONAME_OPT
="-soname "
4426 V_RPATH_OPT
="-rpath "
4430 V_SHLIB_CCOPT
="$V_SHLIB_CCOPT -Kpic"
4431 V_SHLIB_CMD
="\$(CC)"
4439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
4440 $as_echo_n "checking for inline... " >&6; }
4441 save_CFLAGS
="$CFLAGS"
4443 if ${ac_cv_lbl_inline+:} false
; then :
4444 $as_echo_n "(cached) " >&6
4449 for ac_lbl_inline
in inline __inline__ __inline
4451 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4452 /* end confdefs.h. */
4453 #define inline $ac_lbl_inline
4454 static inline struct iltest *foo(void);
4460 static inline struct iltest *
4463 static struct iltest xxx;
4475 if ac_fn_c_try_compile
"$LINENO"; then :
4476 ac_lbl_cc_inline
=yes
4478 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4479 if test "$ac_lbl_cc_inline" = yes ; then
4483 if test "$ac_lbl_cc_inline" = yes ; then
4484 ac_cv_lbl_inline
=$ac_lbl_inline
4488 CFLAGS
="$save_CFLAGS"
4489 if test ! -z "$ac_cv_lbl_inline" ; then
4490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_inline" >&5
4491 $as_echo "$ac_cv_lbl_inline" >&6; }
4493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4494 $as_echo "no" >&6; }
4497 cat >>confdefs.h
<<_ACEOF
4498 #define inline $ac_cv_lbl_inline
4503 # Try to arrange for large file support.
4505 # Check whether --enable-largefile was given.
4506 if test "${enable_largefile+set}" = set; then :
4507 enableval
=$enable_largefile;
4510 if test "$enable_largefile" != no
; then
4512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4513 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4514 if ${ac_cv_sys_largefile_CC+:} false
; then :
4515 $as_echo_n "(cached) " >&6
4517 ac_cv_sys_largefile_CC
=no
4518 if test "$GCC" != yes; then
4521 # IRIX 6.2 and later do not support large files by default,
4522 # so use the C compiler's -n32 option if that helps.
4523 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4524 /* end confdefs.h. */
4525 #include <sys/types.h>
4526 /* Check that off_t can represent 2**63 - 1 correctly.
4527 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4528 since some C++ compilers masquerading as C compilers
4529 incorrectly reject 9223372036854775807. */
4530 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4531 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4532 && LARGE_OFF_T % 2147483647 == 1)
4542 if ac_fn_c_try_compile
"$LINENO"; then :
4545 rm -f core conftest.err conftest.
$ac_objext
4547 if ac_fn_c_try_compile
"$LINENO"; then :
4548 ac_cv_sys_largefile_CC
=' -n32'; break
4550 rm -f core conftest.err conftest.
$ac_objext
4554 rm -f conftest.
$ac_ext
4557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4558 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4559 if test "$ac_cv_sys_largefile_CC" != no
; then
4560 CC
=$CC$ac_cv_sys_largefile_CC
4563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4564 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4565 if ${ac_cv_sys_file_offset_bits+:} false
; then :
4566 $as_echo_n "(cached) " >&6
4569 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4570 /* end confdefs.h. */
4571 #include <sys/types.h>
4572 /* Check that off_t can represent 2**63 - 1 correctly.
4573 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4574 since some C++ compilers masquerading as C compilers
4575 incorrectly reject 9223372036854775807. */
4576 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4577 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4578 && LARGE_OFF_T % 2147483647 == 1)
4588 if ac_fn_c_try_compile
"$LINENO"; then :
4589 ac_cv_sys_file_offset_bits
=no
; break
4591 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4592 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4593 /* end confdefs.h. */
4594 #define _FILE_OFFSET_BITS 64
4595 #include <sys/types.h>
4596 /* Check that off_t can represent 2**63 - 1 correctly.
4597 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4598 since some C++ compilers masquerading as C compilers
4599 incorrectly reject 9223372036854775807. */
4600 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4601 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4602 && LARGE_OFF_T % 2147483647 == 1)
4612 if ac_fn_c_try_compile
"$LINENO"; then :
4613 ac_cv_sys_file_offset_bits
=64; break
4615 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4616 ac_cv_sys_file_offset_bits
=unknown
4620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4621 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4622 case $ac_cv_sys_file_offset_bits in #(
4625 cat >>confdefs.h
<<_ACEOF
4626 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4631 if test $ac_cv_sys_file_offset_bits = unknown
; then
4632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4633 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4634 if ${ac_cv_sys_large_files+:} false
; then :
4635 $as_echo_n "(cached) " >&6
4638 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4639 /* end confdefs.h. */
4640 #include <sys/types.h>
4641 /* Check that off_t can represent 2**63 - 1 correctly.
4642 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4643 since some C++ compilers masquerading as C compilers
4644 incorrectly reject 9223372036854775807. */
4645 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4646 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4647 && LARGE_OFF_T % 2147483647 == 1)
4657 if ac_fn_c_try_compile
"$LINENO"; then :
4658 ac_cv_sys_large_files
=no
; break
4660 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4661 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4662 /* end confdefs.h. */
4663 #define _LARGE_FILES 1
4664 #include <sys/types.h>
4665 /* Check that off_t can represent 2**63 - 1 correctly.
4666 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4667 since some C++ compilers masquerading as C compilers
4668 incorrectly reject 9223372036854775807. */
4669 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4670 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4671 && LARGE_OFF_T % 2147483647 == 1)
4681 if ac_fn_c_try_compile
"$LINENO"; then :
4682 ac_cv_sys_large_files
=1; break
4684 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4685 ac_cv_sys_large_files
=unknown
4689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4690 $as_echo "$ac_cv_sys_large_files" >&6; }
4691 case $ac_cv_sys_large_files in #(
4694 cat >>confdefs.h
<<_ACEOF
4695 #define _LARGE_FILES $ac_cv_sys_large_files
4705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
4706 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
4707 if ${ac_cv_sys_largefile_source+:} false
; then :
4708 $as_echo_n "(cached) " >&6
4711 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4712 /* end confdefs.h. */
4713 #include <sys/types.h> /* for off_t */
4718 int (*fp) (FILE *, off_t, int) = fseeko;
4719 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
4724 if ac_fn_c_try_link
"$LINENO"; then :
4725 ac_cv_sys_largefile_source
=no
; break
4727 rm -f core conftest.err conftest.
$ac_objext \
4728 conftest
$ac_exeext conftest.
$ac_ext
4729 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4730 /* end confdefs.h. */
4731 #define _LARGEFILE_SOURCE 1
4732 #include <sys/types.h> /* for off_t */
4737 int (*fp) (FILE *, off_t, int) = fseeko;
4738 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
4743 if ac_fn_c_try_link
"$LINENO"; then :
4744 ac_cv_sys_largefile_source
=1; break
4746 rm -f core conftest.err conftest.
$ac_objext \
4747 conftest
$ac_exeext conftest.
$ac_ext
4748 ac_cv_sys_largefile_source
=unknown
4752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
4753 $as_echo "$ac_cv_sys_largefile_source" >&6; }
4754 case $ac_cv_sys_largefile_source in #(
4757 cat >>confdefs.h
<<_ACEOF
4758 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
4764 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
4765 # in glibc 2.1.3, but that breaks too many other things.
4766 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
4767 if test $ac_cv_sys_largefile_source != unknown
; then
4769 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
4775 ac_cpp
='$CPP $CPPFLAGS'
4776 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4777 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4778 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4780 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4781 # On Suns, sometimes $CPP names a directory.
4782 if test -n "$CPP" && test -d "$CPP"; then
4785 if test -z "$CPP"; then
4786 if ${ac_cv_prog_CPP+:} false
; then :
4787 $as_echo_n "(cached) " >&6
4789 # Double quotes because CPP needs to be expanded
4790 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4793 for ac_c_preproc_warn_flag
in '' yes
4795 # Use a header file that comes with gcc, so configuring glibc
4796 # with a fresh cross-compiler works.
4797 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4798 # <limits.h> exists even on freestanding compilers.
4799 # On the NeXT, cc -E runs the code through the compiler's parser,
4800 # not just through cpp. "Syntax error" is here to catch this case.
4801 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4802 /* end confdefs.h. */
4804 # include <limits.h>
4806 # include <assert.h>
4810 if ac_fn_c_try_cpp
"$LINENO"; then :
4813 # Broken: fails on valid input.
4816 rm -f conftest.err conftest.i conftest.
$ac_ext
4818 # OK, works on sane cases. Now check whether nonexistent headers
4819 # can be detected and how.
4820 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4821 /* end confdefs.h. */
4822 #include <ac_nonexistent.h>
4824 if ac_fn_c_try_cpp
"$LINENO"; then :
4825 # Broken: success on invalid input.
4828 # Passes both tests.
4832 rm -f conftest.err conftest.i conftest.
$ac_ext
4835 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4836 rm -f conftest.i conftest.err conftest.
$ac_ext
4837 if $ac_preproc_ok; then :
4849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4850 $as_echo "$CPP" >&6; }
4852 for ac_c_preproc_warn_flag
in '' yes
4854 # Use a header file that comes with gcc, so configuring glibc
4855 # with a fresh cross-compiler works.
4856 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4857 # <limits.h> exists even on freestanding compilers.
4858 # On the NeXT, cc -E runs the code through the compiler's parser,
4859 # not just through cpp. "Syntax error" is here to catch this case.
4860 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4861 /* end confdefs.h. */
4863 # include <limits.h>
4865 # include <assert.h>
4869 if ac_fn_c_try_cpp
"$LINENO"; then :
4872 # Broken: fails on valid input.
4875 rm -f conftest.err conftest.i conftest.
$ac_ext
4877 # OK, works on sane cases. Now check whether nonexistent headers
4878 # can be detected and how.
4879 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4880 /* end confdefs.h. */
4881 #include <ac_nonexistent.h>
4883 if ac_fn_c_try_cpp
"$LINENO"; then :
4884 # Broken: success on invalid input.
4887 # Passes both tests.
4891 rm -f conftest.err conftest.i conftest.
$ac_ext
4894 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4895 rm -f conftest.i conftest.err conftest.
$ac_ext
4896 if $ac_preproc_ok; then :
4899 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4900 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4901 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
4902 See \`config.log' for more details" "$LINENO" 5; }
4906 ac_cpp
='$CPP $CPPFLAGS'
4907 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4908 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4909 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4913 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4914 if ${ac_cv_path_GREP+:} false
; then :
4915 $as_echo_n "(cached) " >&6
4917 if test -z "$GREP"; then
4918 ac_path_GREP_found
=false
4919 # Loop through the user's path and test for each of PROGNAME-LIST
4920 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4921 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4924 test -z "$as_dir" && as_dir
=.
4925 for ac_prog
in grep ggrep
; do
4926 for ac_exec_ext
in '' $ac_executable_extensions; do
4927 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4928 as_fn_executable_p
"$ac_path_GREP" ||
continue
4929 # Check for GNU ac_path_GREP and select it if it is found.
4930 # Check for GNU $ac_path_GREP
4931 case `"$ac_path_GREP" --version 2>&1` in
4933 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4936 $as_echo_n 0123456789 >"conftest.in"
4939 cat "conftest.in" "conftest.in" >"conftest.tmp"
4940 mv "conftest.tmp" "conftest.in"
4941 cp "conftest.in" "conftest.nl"
4942 $as_echo 'GREP' >> "conftest.nl"
4943 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4944 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4945 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4946 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4947 # Best one so far, save it but keep looking for a better one
4948 ac_cv_path_GREP
="$ac_path_GREP"
4949 ac_path_GREP_max
=$ac_count
4951 # 10*(2^10) chars as input seems more than enough
4952 test $ac_count -gt 10 && break
4954 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4957 $ac_path_GREP_found && break 3
4962 if test -z "$ac_cv_path_GREP"; then
4963 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4966 ac_cv_path_GREP
=$GREP
4970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4971 $as_echo "$ac_cv_path_GREP" >&6; }
4972 GREP
="$ac_cv_path_GREP"
4975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4976 $as_echo_n "checking for egrep... " >&6; }
4977 if ${ac_cv_path_EGREP+:} false
; then :
4978 $as_echo_n "(cached) " >&6
4980 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4981 then ac_cv_path_EGREP
="$GREP -E"
4983 if test -z "$EGREP"; then
4984 ac_path_EGREP_found
=false
4985 # Loop through the user's path and test for each of PROGNAME-LIST
4986 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4987 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4990 test -z "$as_dir" && as_dir
=.
4991 for ac_prog
in egrep; do
4992 for ac_exec_ext
in '' $ac_executable_extensions; do
4993 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4994 as_fn_executable_p
"$ac_path_EGREP" ||
continue
4995 # Check for GNU ac_path_EGREP and select it if it is found.
4996 # Check for GNU $ac_path_EGREP
4997 case `"$ac_path_EGREP" --version 2>&1` in
4999 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
5002 $as_echo_n 0123456789 >"conftest.in"
5005 cat "conftest.in" "conftest.in" >"conftest.tmp"
5006 mv "conftest.tmp" "conftest.in"
5007 cp "conftest.in" "conftest.nl"
5008 $as_echo 'EGREP' >> "conftest.nl"
5009 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5010 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5011 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5012 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5013 # Best one so far, save it but keep looking for a better one
5014 ac_cv_path_EGREP
="$ac_path_EGREP"
5015 ac_path_EGREP_max
=$ac_count
5017 # 10*(2^10) chars as input seems more than enough
5018 test $ac_count -gt 10 && break
5020 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5023 $ac_path_EGREP_found && break 3
5028 if test -z "$ac_cv_path_EGREP"; then
5029 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5032 ac_cv_path_EGREP
=$EGREP
5037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5038 $as_echo "$ac_cv_path_EGREP" >&6; }
5039 EGREP
="$ac_cv_path_EGREP"
5042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5043 $as_echo_n "checking for ANSI C header files... " >&6; }
5044 if ${ac_cv_header_stdc+:} false
; then :
5045 $as_echo_n "(cached) " >&6
5047 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5048 /* end confdefs.h. */
5062 if ac_fn_c_try_compile
"$LINENO"; then :
5063 ac_cv_header_stdc
=yes
5065 ac_cv_header_stdc
=no
5067 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5069 if test $ac_cv_header_stdc = yes; then
5070 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5071 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5072 /* end confdefs.h. */
5076 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5077 $EGREP "memchr" >/dev
/null
2>&1; then :
5080 ac_cv_header_stdc
=no
5086 if test $ac_cv_header_stdc = yes; then
5087 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5088 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5089 /* end confdefs.h. */
5093 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5094 $EGREP "free" >/dev
/null
2>&1; then :
5097 ac_cv_header_stdc
=no
5103 if test $ac_cv_header_stdc = yes; then
5104 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5105 if test "$cross_compiling" = yes; then :
5108 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5109 /* end confdefs.h. */
5112 #if ((' ' & 0x0FF) == 0x020)
5113 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5114 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5116 # define ISLOWER(c) \
5117 (('a' <= (c) && (c) <= 'i') \
5118 || ('j' <= (c) && (c) <= 'r') \
5119 || ('s' <= (c) && (c) <= 'z'))
5120 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5123 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5128 for (i = 0; i < 256; i++)
5129 if (XOR (islower (i), ISLOWER (i))
5130 || toupper (i) != TOUPPER (i))
5135 if ac_fn_c_try_run
"$LINENO"; then :
5138 ac_cv_header_stdc
=no
5140 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5141 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5147 $as_echo "$ac_cv_header_stdc" >&6; }
5148 if test $ac_cv_header_stdc = yes; then
5150 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5154 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5155 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5156 inttypes.h stdint.h unistd.h
5158 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5159 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5161 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
5162 cat >>confdefs.h
<<_ACEOF
5163 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5171 for ac_header
in sys
/ioccom.h sys
/sockio.h
5173 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5174 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5175 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
5176 cat >>confdefs.h
<<_ACEOF
5177 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5184 for ac_header
in netpacket
/packet.h
5186 ac_fn_c_check_header_mongrel
"$LINENO" "netpacket/packet.h" "ac_cv_header_netpacket_packet_h" "$ac_includes_default"
5187 if test "x$ac_cv_header_netpacket_packet_h" = xyes
; then :
5188 cat >>confdefs.h
<<_ACEOF
5189 #define HAVE_NETPACKET_PACKET_H 1
5196 for ac_header
in net
/pfvar.h
5198 ac_fn_c_check_header_compile
"$LINENO" "net/pfvar.h" "ac_cv_header_net_pfvar_h" "#include <sys/types.h>
5199 #include <sys/socket.h>
5202 if test "x$ac_cv_header_net_pfvar_h" = xyes
; then :
5203 cat >>confdefs.h
<<_ACEOF
5204 #define HAVE_NET_PFVAR_H 1
5211 if test "$ac_cv_header_net_pfvar_h" = yes; then
5213 # Check for various PF actions.
5215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether net/pfvar.h defines PF_NAT through PF_NORDR" >&5
5216 $as_echo_n "checking whether net/pfvar.h defines PF_NAT through PF_NORDR... " >&6; }
5217 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5218 /* end confdefs.h. */
5219 #include <sys/types.h>
5220 #include <sys/socket.h>
5222 #include <net/pfvar.h>
5226 return PF_NAT+PF_NONAT+PF_BINAT+PF_NOBINAT+PF_RDR+PF_NORDR;
5231 if ac_fn_c_try_compile
"$LINENO"; then :
5233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5234 $as_echo "yes" >&6; }
5236 $as_echo "#define HAVE_PF_NAT_THROUGH_PF_NORDR 1" >>confdefs.h
5240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5241 $as_echo "no" >&6; }
5243 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5249 # Haiku needs _BSD_SOURCE for the _IO* macros because it doesn't use them.
5251 CFLAGS
="$CFLAGS -D_BSD_SOURCE"
5255 if test "$GCC" = yes ; then
5256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI ioctl definitions" >&5
5257 $as_echo_n "checking for ANSI ioctl definitions... " >&6; }
5258 if ${ac_cv_lbl_gcc_fixincludes+:} false
; then :
5259 $as_echo_n "(cached) " >&6
5261 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5262 /* end confdefs.h. */
5264 * This generates a "duplicate case value" when fixincludes
5267 # include <sys/types.h>
5268 # include <sys/time.h>
5269 # include <sys/ioctl.h>
5270 # ifdef HAVE_SYS_IOCCOM_H
5271 # include <sys/ioccom.h>
5284 if ac_fn_c_try_compile
"$LINENO"; then :
5285 ac_cv_lbl_gcc_fixincludes
=yes
5287 ac_cv_lbl_gcc_fixincludes
=no
5289 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_gcc_fixincludes" >&5
5293 $as_echo "$ac_cv_lbl_gcc_fixincludes" >&6; }
5294 if test $ac_cv_lbl_gcc_fixincludes = no
; then
5295 # Don't cache failure
5296 unset ac_cv_lbl_gcc_fixincludes
5297 as_fn_error $?
"see the INSTALL for more info" "$LINENO" 5
5301 for ac_func
in strerror
5303 ac_fn_c_check_func
"$LINENO" "strerror" "ac_cv_func_strerror"
5304 if test "x$ac_cv_func_strerror" = xyes
; then :
5305 cat >>confdefs.h
<<_ACEOF
5306 #define HAVE_STRERROR 1
5312 ac_fn_c_check_func
"$LINENO" "strerror_r" "ac_cv_func_strerror_r"
5313 if test "x$ac_cv_func_strerror_r" = xyes
; then :
5316 # We have strerror_r; if we define _GNU_SOURCE, is it a
5317 # POSIX-compliant strerror_r() or a GNU strerror_r()?
5319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r is GNU-style" >&5
5320 $as_echo_n "checking whether strerror_r is GNU-style... " >&6; }
5321 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5322 /* end confdefs.h. */
5327 /* Define it GNU-style; that will cause an error if it's not GNU-style */
5328 extern char *strerror_r(int, char *, size_t);
5338 if ac_fn_c_try_compile
"$LINENO"; then :
5341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5342 $as_echo "yes" >&6; }
5344 $as_echo "#define HAVE_GNU_STRERROR_R /**/" >>confdefs.h
5349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5350 $as_echo "no" >&6; }
5352 $as_echo "#define HAVE_POSIX_STRERROR_R /**/" >>confdefs.h
5356 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5361 # We don't have strerror_r; do we have _wcserror_s?
5363 for ac_func
in _wcserror_s
5365 ac_fn_c_check_func
"$LINENO" "_wcserror_s" "ac_cv_func__wcserror_s"
5366 if test "x$ac_cv_func__wcserror_s" = xyes
; then :
5367 cat >>confdefs.h
<<_ACEOF
5368 #define HAVE__WCSERROR_S 1
5379 # Thanks, IBM, for not providing vsyslog() in AIX!
5381 for ac_func
in vsyslog
5383 ac_fn_c_check_func
"$LINENO" "vsyslog" "ac_cv_func_vsyslog"
5384 if test "x$ac_cv_func_vsyslog" = xyes
; then :
5385 cat >>confdefs.h
<<_ACEOF
5386 #define HAVE_VSYSLOG 1
5394 # Make sure we have vsnprintf() and snprintf(); we require them.
5396 ac_fn_c_check_func
"$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
5397 if test "x$ac_cv_func_vsnprintf" = xyes
; then :
5400 as_fn_error $?
"vsnprintf() is required but wasn't found" "$LINENO" 5
5403 ac_fn_c_check_func
"$LINENO" "snprintf" "ac_cv_func_snprintf"
5404 if test "x$ac_cv_func_snprintf" = xyes
; then :
5407 as_fn_error $?
"snprintf() is required but wasn't found" "$LINENO" 5
5412 for ac_func
in vasprintf asprintf
5414 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5415 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
5416 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
5417 cat >>confdefs.h
<<_ACEOF
5418 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5426 if test $needasprintf = yes; then
5427 case " $LIBOBJS " in
5428 *" asprintf.$ac_objext "* ) ;;
5429 *) LIBOBJS
="$LIBOBJS asprintf.$ac_objext"
5436 for ac_func
in strlcat
5438 ac_fn_c_check_func
"$LINENO" "strlcat" "ac_cv_func_strlcat"
5439 if test "x$ac_cv_func_strlcat" = xyes
; then :
5440 cat >>confdefs.h
<<_ACEOF
5441 #define HAVE_STRLCAT 1
5449 if test $needstrlcat = yes; then
5450 case " $LIBOBJS " in
5451 *" strlcat.$ac_objext "* ) ;;
5452 *) LIBOBJS
="$LIBOBJS strlcat.$ac_objext"
5459 for ac_func
in strlcpy
5461 ac_fn_c_check_func
"$LINENO" "strlcpy" "ac_cv_func_strlcpy"
5462 if test "x$ac_cv_func_strlcpy" = xyes
; then :
5463 cat >>confdefs.h
<<_ACEOF
5464 #define HAVE_STRLCPY 1
5472 if test $needstrlcpy = yes; then
5473 case " $LIBOBJS " in
5474 *" strlcpy.$ac_objext "* ) ;;
5475 *) LIBOBJS
="$LIBOBJS strlcpy.$ac_objext"
5482 for ac_func
in strtok_r
5484 ac_fn_c_check_func
"$LINENO" "strtok_r" "ac_cv_func_strtok_r"
5485 if test "x$ac_cv_func_strtok_r" = xyes
; then :
5486 cat >>confdefs.h
<<_ACEOF
5487 #define HAVE_STRTOK_R 1
5495 if test $needstrtok_r = yes; then
5496 case " $LIBOBJS " in
5497 *" strtok_r.$ac_objext "* ) ;;
5498 *) LIBOBJS
="$LIBOBJS strtok_r.$ac_objext"
5505 # Do we have ffs(), and is it declared in <strings.h>?
5509 ac_fn_c_check_func
"$LINENO" "ffs" "ac_cv_func_ffs"
5510 if test "x$ac_cv_func_ffs" = xyes
; then :
5511 cat >>confdefs.h
<<_ACEOF
5518 if test "$ac_cv_func_ffs" = yes; then
5520 # We have ffs(); is it declared in <strings.h>?
5522 # This test fails if we don't have <strings.h> or if we do
5523 # but it doesn't declare ffs().
5525 ac_fn_c_check_decl
"$LINENO" "ffs" "ac_cv_have_decl_ffs" "
5526 #include <strings.h>
5529 if test "x$ac_cv_have_decl_ffs" = xyes
; then :
5532 $as_echo "#define STRINGS_H_DECLARES_FFS /**/" >>confdefs.h
5540 # Do this before checking for ether_hostton(), as it's a
5541 # "getaddrinfo()-ish function".
5545 # Most operating systems have getaddrinfo() in the default searched
5546 # libraries (i.e. libc). Check there first.
5548 ac_fn_c_check_func
"$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
5549 if test "x$ac_cv_func_getaddrinfo" = xyes
; then :
5554 # Not found in the standard system libraries.
5555 # Try libsocket, which requires libnsl.
5557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo in -lsocket" >&5
5558 $as_echo_n "checking for getaddrinfo in -lsocket... " >&6; }
5559 if ${ac_cv_lib_socket_getaddrinfo+:} false
; then :
5560 $as_echo_n "(cached) " >&6
5562 ac_check_lib_save_LIBS
=$LIBS
5563 LIBS
="-lsocket -lnsl $LIBS"
5564 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5565 /* end confdefs.h. */
5567 /* Override any GCC internal prototype to avoid an error.
5568 Use char because int might match the return type of a GCC
5569 builtin and then its argument prototype would still apply. */
5573 char getaddrinfo ();
5577 return getaddrinfo ();
5582 if ac_fn_c_try_link
"$LINENO"; then :
5583 ac_cv_lib_socket_getaddrinfo
=yes
5585 ac_cv_lib_socket_getaddrinfo
=no
5587 rm -f core conftest.err conftest.
$ac_objext \
5588 conftest
$ac_exeext conftest.
$ac_ext
5589 LIBS
=$ac_check_lib_save_LIBS
5591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_getaddrinfo" >&5
5592 $as_echo "$ac_cv_lib_socket_getaddrinfo" >&6; }
5593 if test "x$ac_cv_lib_socket_getaddrinfo" = xyes
; then :
5596 # OK, we found it in libsocket.
5598 LIBS
="-lsocket -lnsl $LIBS"
5602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo in -lnetwork" >&5
5603 $as_echo_n "checking for getaddrinfo in -lnetwork... " >&6; }
5604 if ${ac_cv_lib_network_getaddrinfo+:} false
; then :
5605 $as_echo_n "(cached) " >&6
5607 ac_check_lib_save_LIBS
=$LIBS
5608 LIBS
="-lnetwork $LIBS"
5609 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5610 /* end confdefs.h. */
5612 /* Override any GCC internal prototype to avoid an error.
5613 Use char because int might match the return type of a GCC
5614 builtin and then its argument prototype would still apply. */
5618 char getaddrinfo ();
5622 return getaddrinfo ();
5627 if ac_fn_c_try_link
"$LINENO"; then :
5628 ac_cv_lib_network_getaddrinfo
=yes
5630 ac_cv_lib_network_getaddrinfo
=no
5632 rm -f core conftest.err conftest.
$ac_objext \
5633 conftest
$ac_exeext conftest.
$ac_ext
5634 LIBS
=$ac_check_lib_save_LIBS
5636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_network_getaddrinfo" >&5
5637 $as_echo "$ac_cv_lib_network_getaddrinfo" >&6; }
5638 if test "x$ac_cv_lib_network_getaddrinfo" = xyes
; then :
5641 # OK, we found it in libnetwork on Haiku.
5643 LIBS
="-lnetwork $LIBS"
5648 # We didn't find it.
5650 as_fn_error $?
"getaddrinfo is required, but wasn't found" "$LINENO" 5
5659 # OK, do we have recvmsg() in libxnet?
5660 # We also link with libsocket and libnsl.
5662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recvmsg in -lxnet" >&5
5663 $as_echo_n "checking for recvmsg in -lxnet... " >&6; }
5664 if ${ac_cv_lib_xnet_recvmsg+:} false
; then :
5665 $as_echo_n "(cached) " >&6
5667 ac_check_lib_save_LIBS
=$LIBS
5668 LIBS
="-lxnet -lsocket -lnsl $LIBS"
5669 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5670 /* end confdefs.h. */
5672 /* Override any GCC internal prototype to avoid an error.
5673 Use char because int might match the return type of a GCC
5674 builtin and then its argument prototype would still apply. */
5687 if ac_fn_c_try_link
"$LINENO"; then :
5688 ac_cv_lib_xnet_recvmsg
=yes
5690 ac_cv_lib_xnet_recvmsg
=no
5692 rm -f core conftest.err conftest.
$ac_objext \
5693 conftest
$ac_exeext conftest.
$ac_ext
5694 LIBS
=$ac_check_lib_save_LIBS
5696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xnet_recvmsg" >&5
5697 $as_echo "$ac_cv_lib_xnet_recvmsg" >&6; }
5698 if test "x$ac_cv_lib_xnet_recvmsg" = xyes
; then :
5701 # Yes - link with it as well.
5710 # DLPI needs putmsg under HPUX so test for -lstr while we're at it
5711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing putmsg" >&5
5712 $as_echo_n "checking for library containing putmsg... " >&6; }
5713 if ${ac_cv_search_putmsg+:} false
; then :
5714 $as_echo_n "(cached) " >&6
5716 ac_func_search_save_LIBS
=$LIBS
5717 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5718 /* end confdefs.h. */
5720 /* Override any GCC internal prototype to avoid an error.
5721 Use char because int might match the return type of a GCC
5722 builtin and then its argument prototype would still apply. */
5735 for ac_lib
in '' str
; do
5736 if test -z "$ac_lib"; then
5737 ac_res
="none required"
5740 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
5742 if ac_fn_c_try_link
"$LINENO"; then :
5743 ac_cv_search_putmsg
=$ac_res
5745 rm -f core conftest.err conftest.
$ac_objext \
5747 if ${ac_cv_search_putmsg+:} false
; then :
5751 if ${ac_cv_search_putmsg+:} false
; then :
5754 ac_cv_search_putmsg
=no
5757 LIBS
=$ac_func_search_save_LIBS
5759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_putmsg" >&5
5760 $as_echo "$ac_cv_search_putmsg" >&6; }
5761 ac_res
=$ac_cv_search_putmsg
5762 if test "$ac_res" != no
; then :
5763 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
5770 # Check for reentrant versions of getnetbyname_r(), as provided by
5771 # Linux (glibc), Solaris/IRIX, and AIX (with three different APIs!).
5772 # If we don't find one, we just use getnetbyname(), which uses
5773 # thread-specific data on many platforms, but doesn't use it on
5774 # NetBSD or OpenBSD, and may not use it on older versions of other
5777 # Only do the check if we have a declaration of getnetbyname_r();
5778 # without it, we can't check which API it has. (We assume that
5779 # if there's a declaration, it has a prototype, so that the API
5782 ac_fn_c_check_decl
"$LINENO" "getnetbyname_r" "ac_cv_have_decl_getnetbyname_r" "#include <netdb.h>
5784 if test "x$ac_cv_have_decl_getnetbyname_r" = xyes
; then :
5786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the Linux getnetbyname_r()" >&5
5787 $as_echo_n "checking for the Linux getnetbyname_r()... " >&6; }
5788 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5789 /* end confdefs.h. */
5795 struct netent netent_buf;
5797 struct netent *resultp;
5800 return getnetbyname_r((const char *)0, &netent_buf, buf, sizeof buf, &resultp, &h_errnoval);
5806 if ac_fn_c_try_link
"$LINENO"; then :
5808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5809 $as_echo "yes" >&6; }
5811 $as_echo "#define HAVE_LINUX_GETNETBYNAME_R 1" >>confdefs.h
5816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5817 $as_echo "no" >&6; }
5819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Solaris/IRIX getnetbyname_r()" >&5
5820 $as_echo_n "checking for Solaris/IRIX getnetbyname_r()... " >&6; }
5821 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5822 /* end confdefs.h. */
5828 struct netent netent_buf;
5831 return getnetbyname_r((const char *)0, &netent_buf, buf, (int)sizeof buf) != NULL;
5837 if ac_fn_c_try_link
"$LINENO"; then :
5839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5840 $as_echo "yes" >&6; }
5842 $as_echo "#define HAVE_SOLARIS_IRIX_GETNETBYNAME_R 1" >>confdefs.h
5847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5848 $as_echo "no" >&6; }
5850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AIX getnetbyname_r()" >&5
5851 $as_echo_n "checking for AIX getnetbyname_r()... " >&6; }
5852 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5853 /* end confdefs.h. */
5859 struct netent netent_buf;
5860 struct netent_data net_data;
5862 return getnetbyname_r((const char *)0, &netent_buf, &net_data);
5868 if ac_fn_c_try_link
"$LINENO"; then :
5870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5871 $as_echo "yes" >&6; }
5873 $as_echo "#define HAVE_AIX_GETNETBYNAME_R 1" >>confdefs.h
5878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5879 $as_echo "no" >&6; }
5882 rm -f core conftest.err conftest.
$ac_objext \
5883 conftest
$ac_exeext conftest.
$ac_ext
5886 rm -f core conftest.err conftest.
$ac_objext \
5887 conftest
$ac_exeext conftest.
$ac_ext
5890 rm -f core conftest.err conftest.
$ac_objext \
5891 conftest
$ac_exeext conftest.
$ac_ext
5897 # Check for reentrant versions of getprotobyname_r(), as provided by
5898 # Linux (glibc), Solaris/IRIX, and AIX (with three different APIs!).
5899 # If we don't find one, we just use getprotobyname(), which uses
5900 # thread-specific data on many platforms, but doesn't use it on
5901 # NetBSD or OpenBSD, and may not use it on older versions of other
5904 # Only do the check if we have a declaration of getprotobyname_r();
5905 # without it, we can't check which API it has. (We assume that
5906 # if there's a declaration, it has a prototype, so that the API
5909 ac_fn_c_check_decl
"$LINENO" "getprotobyname_r" "ac_cv_have_decl_getprotobyname_r" "#include <netdb.h>
5911 if test "x$ac_cv_have_decl_getprotobyname_r" = xyes
; then :
5913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the Linux getprotobyname_r()" >&5
5914 $as_echo_n "checking for the Linux getprotobyname_r()... " >&6; }
5915 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5916 /* end confdefs.h. */
5922 struct protoent protoent_buf;
5924 struct protoent *resultp;
5926 return getprotobyname_r((const char *)0, &protoent_buf, buf, sizeof buf, &resultp);
5932 if ac_fn_c_try_link
"$LINENO"; then :
5934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5935 $as_echo "yes" >&6; }
5937 $as_echo "#define HAVE_LINUX_GETPROTOBYNAME_R 1" >>confdefs.h
5942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5943 $as_echo "no" >&6; }
5945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Solaris/IRIX getprotobyname_r()" >&5
5946 $as_echo_n "checking for Solaris/IRIX getprotobyname_r()... " >&6; }
5947 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5948 /* end confdefs.h. */
5954 struct protoent protoent_buf;
5957 return getprotobyname_r((const char *)0, &protoent_buf, buf, (int)sizeof buf) != NULL;
5963 if ac_fn_c_try_link
"$LINENO"; then :
5965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5966 $as_echo "yes" >&6; }
5968 $as_echo "#define HAVE_SOLARIS_IRIX_GETPROTOBYNAME_R 1" >>confdefs.h
5973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5974 $as_echo "no" >&6; }
5976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AIX getprotobyname_r()" >&5
5977 $as_echo_n "checking for AIX getprotobyname_r()... " >&6; }
5978 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5979 /* end confdefs.h. */
5985 struct protoent protoent_buf;
5986 struct protoent_data proto_data;
5988 return getprotobyname_r((const char *)0, &protoent_buf, &proto_data);
5994 if ac_fn_c_try_link
"$LINENO"; then :
5996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5997 $as_echo "yes" >&6; }
5999 $as_echo "#define HAVE_AIX_GETPROTOBYNAME_R 1" >>confdefs.h
6004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6005 $as_echo "no" >&6; }
6008 rm -f core conftest.err conftest.
$ac_objext \
6009 conftest
$ac_exeext conftest.
$ac_ext
6012 rm -f core conftest.err conftest.
$ac_objext \
6013 conftest
$ac_exeext conftest.
$ac_ext
6016 rm -f core conftest.err conftest.
$ac_objext \
6017 conftest
$ac_exeext conftest.
$ac_ext
6023 # You are in a twisty little maze of UN*Xes, all different.
6024 # Some might not have ether_hostton().
6025 # Some might have it and declare it in <net/ethernet.h>.
6026 # Some might have it and declare it in <netinet/ether.h>
6027 # Some might have it and declare it in <sys/ethernet.h>.
6028 # Some might have it and declare it in <arpa/inet.h>.
6029 # Some might have it and declare it in <netinet/if_ether.h>.
6030 # Some might have it and not declare it in any header file.
6032 # Before you is a C compiler.
6034 for ac_func
in ether_hostton
6036 ac_fn_c_check_func
"$LINENO" "ether_hostton" "ac_cv_func_ether_hostton"
6037 if test "x$ac_cv_func_ether_hostton" = xyes
; then :
6038 cat >>confdefs.h
<<_ACEOF
6039 #define HAVE_ETHER_HOSTTON 1
6045 if test "$ac_cv_func_ether_hostton" = yes; then
6047 # OK, we have ether_hostton(). Is it declared in <net/ethernet.h>?
6049 # This test fails if we don't have <net/ethernet.h> or if we do
6050 # but it doesn't declare ether_hostton().
6052 ac_fn_c_check_decl
"$LINENO" "ether_hostton" "ac_cv_have_decl_ether_hostton" "
6053 #include <net/ethernet.h>
6056 if test "x$ac_cv_have_decl_ether_hostton" = xyes
; then :
6059 $as_echo "#define NET_ETHERNET_H_DECLARES_ETHER_HOSTTON /**/" >>confdefs.h
6067 if test "$ac_cv_have_decl_ether_hostton" != yes; then
6069 # No, how about <netinet/ether.h>, as on Linux?
6071 # This test fails if we don't have <netinet/ether.h>
6072 # or if we do but it doesn't declare ether_hostton().
6074 # Unset ac_cv_have_decl_ether_hostton so we don't
6075 # treat the previous failure as a cached value and
6076 # suppress the next test.
6078 unset ac_cv_have_decl_ether_hostton
6079 ac_fn_c_check_decl
"$LINENO" "ether_hostton" "ac_cv_have_decl_ether_hostton" "
6080 #include <netinet/ether.h>
6083 if test "x$ac_cv_have_decl_ether_hostton" = xyes
; then :
6086 $as_echo "#define NETINET_ETHER_H_DECLARES_ETHER_HOSTTON /**/" >>confdefs.h
6095 if test "$ac_cv_have_decl_ether_hostton" != yes; then
6097 # No, how about <sys/ethernet.h>, as on Solaris 10
6100 # This test fails if we don't have <sys/ethernet.h>
6101 # or if we do but it doesn't declare ether_hostton().
6103 # Unset ac_cv_have_decl_ether_hostton so we don't
6104 # treat the previous failure as a cached value and
6105 # suppress the next test.
6107 unset ac_cv_have_decl_ether_hostton
6108 ac_fn_c_check_decl
"$LINENO" "ether_hostton" "ac_cv_have_decl_ether_hostton" "
6109 #include <sys/ethernet.h>
6112 if test "x$ac_cv_have_decl_ether_hostton" = xyes
; then :
6115 $as_echo "#define SYS_ETHERNET_H_DECLARES_ETHER_HOSTTON /**/" >>confdefs.h
6124 if test "$ac_cv_have_decl_ether_hostton" != yes; then
6126 # No, how about <arpa/inet.h>, as in AIX?
6128 # This test fails if we don't have <arpa/inet.h>
6129 # (if we have ether_hostton(), we should have
6130 # networking, and if we have networking, we should
6131 # have <arapa/inet.h>) or if we do but it doesn't
6132 # declare ether_hostton().
6134 # Unset ac_cv_have_decl_ether_hostton so we don't
6135 # treat the previous failure as a cached value and
6136 # suppress the next test.
6138 unset ac_cv_have_decl_ether_hostton
6139 ac_fn_c_check_decl
"$LINENO" "ether_hostton" "ac_cv_have_decl_ether_hostton" "
6140 #include <arpa/inet.h>
6143 if test "x$ac_cv_have_decl_ether_hostton" = xyes
; then :
6146 $as_echo "#define ARPA_INET_H_DECLARES_ETHER_HOSTTON /**/" >>confdefs.h
6155 if test "$ac_cv_have_decl_ether_hostton" != yes; then
6157 # No, how about <netinet/if_ether.h>?
6158 # On some platforms, it requires <net/if.h> and
6159 # <netinet/in.h>, and we always include it with
6160 # both of them, so test it with both of them.
6162 # This test fails if we don't have <netinet/if_ether.h>
6163 # and the headers we include before it, or if we do but
6164 # <netinet/if_ether.h> doesn't declare ether_hostton().
6166 # Unset ac_cv_have_decl_ether_hostton so we don't
6167 # treat the previous failure as a cached value and
6168 # suppress the next test.
6170 unset ac_cv_have_decl_ether_hostton
6171 ac_fn_c_check_decl
"$LINENO" "ether_hostton" "ac_cv_have_decl_ether_hostton" "
6172 #include <sys/types.h>
6173 #include <sys/socket.h>
6175 #include <netinet/in.h>
6176 #include <netinet/if_ether.h>
6179 if test "x$ac_cv_have_decl_ether_hostton" = xyes
; then :
6182 $as_echo "#define NETINET_IF_ETHER_H_DECLARES_ETHER_HOSTTON /**/" >>confdefs.h
6189 # After all that, is ether_hostton() declared?
6191 if test "$ac_cv_have_decl_ether_hostton" = yes; then
6196 $as_echo "#define HAVE_DECL_ETHER_HOSTTON 1" >>confdefs.h
6200 # No, we'll have to declare it ourselves.
6201 # Do we have "struct ether_addr" if we include
6202 # <netinet/if_ether.h>?
6204 ac_fn_c_check_type
"$LINENO" "struct ether_addr" "ac_cv_type_struct_ether_addr" "
6205 #include <sys/types.h>
6206 #include <sys/socket.h>
6208 #include <netinet/in.h>
6209 #include <netinet/if_ether.h>
6212 if test "x$ac_cv_type_struct_ether_addr" = xyes
; then :
6214 cat >>confdefs.h
<<_ACEOF
6215 #define HAVE_STRUCT_ETHER_ADDR 1
6225 # For various things that might use pthreads.
6227 ac_fn_c_check_header_mongrel
"$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
6228 if test "x$ac_cv_header_pthread_h" = xyes
; then :
6231 # OK, we have pthread.h. Do we have pthread_create in the
6234 ac_fn_c_check_func
"$LINENO" "pthread_create" "ac_cv_func_pthread_create"
6235 if test "x$ac_cv_func_pthread_create" = xyes
; then :
6240 ac_lbl_have_pthreads
="found"
6245 # No - do we have it in -lpthreads?
6247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthreads" >&5
6248 $as_echo_n "checking for pthread_create in -lpthreads... " >&6; }
6249 if ${ac_cv_lib_pthreads_pthread_create+:} false
; then :
6250 $as_echo_n "(cached) " >&6
6252 ac_check_lib_save_LIBS
=$LIBS
6253 LIBS
="-lpthreads $LIBS"
6254 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6255 /* end confdefs.h. */
6257 /* Override any GCC internal prototype to avoid an error.
6258 Use char because int might match the return type of a GCC
6259 builtin and then its argument prototype would still apply. */
6263 char pthread_create ();
6267 return pthread_create ();
6272 if ac_fn_c_try_link
"$LINENO"; then :
6273 ac_cv_lib_pthreads_pthread_create
=yes
6275 ac_cv_lib_pthreads_pthread_create
=no
6277 rm -f core conftest.err conftest.
$ac_objext \
6278 conftest
$ac_exeext conftest.
$ac_ext
6279 LIBS
=$ac_check_lib_save_LIBS
6281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_create" >&5
6282 $as_echo "$ac_cv_lib_pthreads_pthread_create" >&6; }
6283 if test "x$ac_cv_lib_pthreads_pthread_create" = xyes
; then :
6286 # Yes - add -lpthreads.
6288 ac_lbl_have_pthreads
="found"
6289 PTHREAD_LIBS
="$PTHREAD_LIBS -lpthreads"
6294 # No - do we have it in -lpthread?
6296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
6297 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
6298 if ${ac_cv_lib_pthread_pthread_create+:} false
; then :
6299 $as_echo_n "(cached) " >&6
6301 ac_check_lib_save_LIBS
=$LIBS
6302 LIBS
="-lpthread $LIBS"
6303 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6304 /* end confdefs.h. */
6306 /* Override any GCC internal prototype to avoid an error.
6307 Use char because int might match the return type of a GCC
6308 builtin and then its argument prototype would still apply. */
6312 char pthread_create ();
6316 return pthread_create ();
6321 if ac_fn_c_try_link
"$LINENO"; then :
6322 ac_cv_lib_pthread_pthread_create
=yes
6324 ac_cv_lib_pthread_pthread_create
=no
6326 rm -f core conftest.err conftest.
$ac_objext \
6327 conftest
$ac_exeext conftest.
$ac_ext
6328 LIBS
=$ac_check_lib_save_LIBS
6330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
6331 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
6332 if test "x$ac_cv_lib_pthread_pthread_create" = xyes
; then :
6335 # Yes - add -lpthread.
6337 ac_lbl_have_pthreads
="found"
6338 PTHREAD_LIBS
="$PTHREAD_LIBS -lpthread"
6345 ac_lbl_have_pthreads
="not found"
6359 # We didn't find pthread.h.
6361 ac_lbl_have_pthreads
="not found"
6368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if --disable-protochain option is specified" >&5
6369 $as_echo_n "checking if --disable-protochain option is specified... " >&6; }
6370 # Check whether --enable-protochain was given.
6371 if test "${enable_protochain+set}" = set; then :
6372 enableval
=$enable_protochain;
6375 case "x$enable_protochain" in
6376 xyes
) enable_protochain
=enabled
;;
6377 xno
) enable_protochain
=disabled
;;
6378 x
) enable_protochain
=enabled
;;
6381 if test "$enable_protochain" = "disabled"; then
6383 $as_echo "#define NO_PROTOCHAIN 1" >>confdefs.h
6386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_protochain}" >&5
6387 $as_echo "${enable_protochain}" >&6; }
6390 # valgrindtest directly uses the native capture mechanism, but
6391 # only tests with BPF and PF_PACKET sockets; only enable it if
6392 # we have BPF or PF_PACKET sockets.
6397 # Check whether --with-pcap was given.
6398 if test "${with_pcap+set}" = set; then :
6402 if test ! -z "$with_pcap" ; then
6406 # Check for a bunch of headers for various packet
6407 # capture mechanisms.
6409 for ac_header
in net
/bpf.h
6411 ac_fn_c_check_header_mongrel
"$LINENO" "net/bpf.h" "ac_cv_header_net_bpf_h" "$ac_includes_default"
6412 if test "x$ac_cv_header_net_bpf_h" = xyes
; then :
6413 cat >>confdefs.h
<<_ACEOF
6414 #define HAVE_NET_BPF_H 1
6421 if test "$ac_cv_header_net_bpf_h" = yes; then
6423 # Does it define BIOCSETIF?
6424 # I.e., is it a header for an LBL/BSD-style capture
6425 # mechanism, or is it just a header for a BPF filter
6426 # engine? Some versions of Arch Linux, for example,
6427 # have a net/bpf.h that doesn't define BIOCSETIF;
6428 # as it's a Linux, it should use packet sockets,
6433 # sys/types.h, because FreeBSD 10's net/bpf.h
6434 # requires that various BSD-style integer types
6437 # sys/time.h, because AIX 5.2 and 5.3's net/bpf.h
6438 # doesn't include it but does use struct timeval
6439 # in ioctl definitions;
6441 # sys/ioctl.h and, if we have it, sys/ioccom.h,
6442 # because net/bpf.h defines ioctls;
6444 # net/if.h, because it defines some structures
6445 # used in ioctls defined by net/bpf.h;
6447 # sys/socket.h, because OpenBSD 5.9's net/bpf.h
6448 # defines some structure fields as being
6451 # and net/bpf.h doesn't necessarily include all
6452 # of those headers itself.
6454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if net/bpf.h defines BIOCSETIF" >&5
6455 $as_echo_n "checking if net/bpf.h defines BIOCSETIF... " >&6; }
6456 if ${ac_cv_lbl_bpf_h_defines_biocsetif+:} false
; then :
6457 $as_echo_n "(cached) " >&6
6459 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6460 /* end confdefs.h. */
6462 #include <sys/types.h>
6463 #include <sys/time.h>
6464 #include <sys/ioctl.h>
6465 #include <sys/socket.h>
6466 #ifdef HAVE_SYS_IOCCOM_H
6467 #include <sys/ioccom.h>
6469 #include <net/bpf.h>
6475 u_int i = BIOCSETIF;
6480 if ac_fn_c_try_compile
"$LINENO"; then :
6481 ac_cv_lbl_bpf_h_defines_biocsetif
=yes
6483 ac_cv_lbl_bpf_h_defines_biocsetif
=no
6485 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_bpf_h_defines_biocsetif" >&5
6489 $as_echo "$ac_cv_lbl_bpf_h_defines_biocsetif" >&6; }
6491 for ac_header
in net
/pfilt.h net
/enet.h
6493 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6494 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6495 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
6496 cat >>confdefs.h
<<_ACEOF
6497 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6504 for ac_header
in net
/nit.h sys
/net
/nit.h
6506 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6507 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6508 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
6509 cat >>confdefs.h
<<_ACEOF
6510 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6517 for ac_header
in linux
/socket.h net
/raw.h sys
/dlpi.h
6519 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6520 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6521 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
6522 cat >>confdefs.h
<<_ACEOF
6523 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6530 for ac_header
in config
/HaikuConfig.h
6532 ac_fn_c_check_header_mongrel
"$LINENO" "config/HaikuConfig.h" "ac_cv_header_config_HaikuConfig_h" "$ac_includes_default"
6533 if test "x$ac_cv_header_config_HaikuConfig_h" = xyes
; then :
6534 cat >>confdefs.h
<<_ACEOF
6535 #define HAVE_CONFIG_HAIKUCONFIG_H 1
6543 if test "$ac_cv_lbl_bpf_h_defines_biocsetif" = yes; then
6546 # Check this before DLPI, so that we pick BPF on
6547 # Solaris 11 and later.
6552 # We have BPF, so build valgrindtest with "make test"
6553 # on macOS and FreeBSD (add your OS once there's a
6558 freebsd
*|darwin
*|linux
*)
6559 VALGRINDTEST_SRC
=valgrindtest.c
6562 elif test "$ac_cv_header_linux_socket_h" = yes; then
6564 # No prizes for guessing this one.
6567 VALGRINDTEST_SRC
=valgrindtest.c
6568 elif test "$ac_cv_header_net_pfilt_h" = yes; then
6570 # DEC OSF/1, Digital UNIX, Tru64 UNIX
6573 elif test "$ac_cv_header_net_enet_h" = yes; then
6575 # Stanford Enetfilter.
6578 elif test "$ac_cv_header_net_nit_h" = yes; then
6580 # SunOS 4.x STREAMS NIT.
6583 elif test "$ac_cv_header_sys_net_nit_h" = yes; then
6585 # Pre-SunOS 4.x non-STREAMS NIT.
6588 elif test "$ac_cv_header_net_raw_h" = yes; then
6593 elif test "$ac_cv_header_sys_dlpi_h" = yes; then
6595 # DLPI on pre-Solaris 11 SunOS 5, HP-UX, possibly others.
6598 elif test "$ac_cv_header_config_HaikuConfig_h" = yes; then
6605 # Nothing we support.
6608 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine packet capture interface" >&5
6609 $as_echo "$as_me: WARNING: cannot determine packet capture interface" >&2;}
6610 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: (see the INSTALL doc for more info)" >&5
6611 $as_echo "$as_me: WARNING: (see the INSTALL doc for more info)" >&2;}
6614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking packet capture type" >&5
6615 $as_echo_n "checking packet capture type... " >&6; }
6616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $V_PCAP" >&5
6617 $as_echo "$V_PCAP" >&6; }
6621 # Handle each capture type.
6626 # Checks for some header files.
6628 for ac_header
in sys
/bufmod.h sys
/dlpi_ext.h
6630 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6631 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6632 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
6633 cat >>confdefs.h
<<_ACEOF
6634 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6643 # Checks to see if Solaris has the public libdlpi(3LIB) library.
6644 # Note: The existence of /usr/include/libdlpi.h does not mean it is the
6645 # public libdlpi(3LIB) version. Before libdlpi was made public, a
6646 # private version also existed, which did not have the same APIs.
6647 # Due to a gcc bug, the default search path for 32-bit libraries does
6648 # not include /lib, we add it explicitly here.
6649 # [http://bugs.opensolaris.org/view_bug.do?bug_id=6619485].
6650 # Also, due to the bug above applications that link to libpcap with
6651 # libdlpi will have to add "-L/lib" option to "configure".
6653 saved_ldflags
=$LDFLAGS
6654 LDFLAGS
="$LIBS -L/lib"
6655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlpi_walk in -ldlpi" >&5
6656 $as_echo_n "checking for dlpi_walk in -ldlpi... " >&6; }
6657 if ${ac_cv_lib_dlpi_dlpi_walk+:} false
; then :
6658 $as_echo_n "(cached) " >&6
6660 ac_check_lib_save_LIBS
=$LIBS
6662 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6663 /* end confdefs.h. */
6665 /* Override any GCC internal prototype to avoid an error.
6666 Use char because int might match the return type of a GCC
6667 builtin and then its argument prototype would still apply. */
6675 return dlpi_walk ();
6680 if ac_fn_c_try_link
"$LINENO"; then :
6681 ac_cv_lib_dlpi_dlpi_walk
=yes
6683 ac_cv_lib_dlpi_dlpi_walk
=no
6685 rm -f core conftest.err conftest.
$ac_objext \
6686 conftest
$ac_exeext conftest.
$ac_ext
6687 LIBS
=$ac_check_lib_save_LIBS
6689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dlpi_dlpi_walk" >&5
6690 $as_echo "$ac_cv_lib_dlpi_dlpi_walk" >&6; }
6691 if test "x$ac_cv_lib_dlpi_dlpi_walk" = xyes
; then :
6697 # Capture module plus common code needed for
6698 # common functions used by pcap-[dlpi,libdlpi].c
6700 PLATFORM_C_SRC
="pcap-libdlpi.c dlpisubs.c"
6702 $as_echo "#define HAVE_LIBDLPI 1" >>confdefs.h
6710 # Capture module plus common code needed for
6711 # common functions used by pcap-[dlpi,libdlpi].c
6713 PLATFORM_C_SRC
="pcap-dlpi.c dlpisubs.c"
6717 LDFLAGS
=$saved_ldflags
6720 # Checks whether <sys/dlpi.h> is usable, to catch weird SCO
6723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/dlpi.h> is usable" >&5
6724 $as_echo_n "checking whether <sys/dlpi.h> is usable... " >&6; }
6725 if ${ac_cv_sys_dlpi_usable+:} false
; then :
6726 $as_echo_n "(cached) " >&6
6728 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6729 /* end confdefs.h. */
6731 #include <sys/types.h>
6732 #include <sys/time.h>
6733 #include <sys/dlpi.h>
6738 int i = DL_PROMISC_PHYS;
6743 if ac_fn_c_try_compile
"$LINENO"; then :
6744 ac_cv_sys_dlpi_usable
=yes
6746 ac_cv_sys_dlpi_usable
=no
6748 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_dlpi_usable" >&5
6752 $as_echo "$ac_cv_sys_dlpi_usable" >&6; }
6753 if test $ac_cv_sys_dlpi_usable = no
; then
6754 as_fn_error $?
"<sys/dlpi.h> is not usable on this system; it probably has a non-standard DLPI" "$LINENO" 5
6758 # Check to see if Solaris has the dl_passive_req_t struct defined
6760 # This check is for DLPI support for passive modes.
6761 # See dlpi(7P) for more details.
6763 ac_fn_c_check_type
"$LINENO" "dl_passive_req_t" "ac_cv_type_dl_passive_req_t" "
6764 #include <sys/types.h>
6765 #include <sys/dlpi.h>
6768 if test "x$ac_cv_type_dl_passive_req_t" = xyes
; then :
6770 cat >>confdefs.h
<<_ACEOF
6771 #define HAVE_DL_PASSIVE_REQ_T 1
6783 PLATFORM_C_SRC
="pcap-enet.c"
6790 PLATFORM_CXX_SRC
="pcap-haiku.cpp"
6793 # Just for the sake of it.
6795 for ac_header
in net
/if.h net
/if_dl.h net
/if_types.h
6797 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6798 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6799 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
6800 cat >>confdefs.h
<<_ACEOF
6801 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6814 PLATFORM_C_SRC
="pcap-linux.c"
6817 # Do we have the wireless extensions?
6819 for ac_header
in linux
/wireless.h
6821 ac_fn_c_check_header_compile
"$LINENO" "linux/wireless.h" "ac_cv_header_linux_wireless_h" "
6822 #include <sys/socket.h>
6823 #include <linux/if.h>
6824 #include <linux/types.h>
6827 if test "x$ac_cv_header_linux_wireless_h" = xyes
; then :
6828 cat >>confdefs.h
<<_ACEOF
6829 #define HAVE_LINUX_WIRELESS_H 1
6841 # Check whether --with-libnl was given.
6842 if test "${with_libnl+set}" = set; then :
6843 withval
=$with_libnl; with_libnl
=$withval
6845 with_libnl
=if_available
6849 if test x
$with_libnl != xno
; then
6852 incdir
=-I/usr
/include
/libnl3
6854 case "$with_libnl" in
6860 if test -d $withval; then
6861 libnldir
=-L${withval}/lib
/.libs
6862 incdir
=-I${withval}/include
6868 # Try libnl 3.x first.
6870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_socket_alloc in -lnl-3" >&5
6871 $as_echo_n "checking for nl_socket_alloc in -lnl-3... " >&6; }
6872 if ${ac_cv_lib_nl_3_nl_socket_alloc+:} false
; then :
6873 $as_echo_n "(cached) " >&6
6875 ac_check_lib_save_LIBS
=$LIBS
6876 LIBS
="-lnl-3 ${incdir} ${libnldir} -lnl-genl-3 -lnl-3 $LIBS"
6877 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6878 /* end confdefs.h. */
6880 /* Override any GCC internal prototype to avoid an error.
6881 Use char because int might match the return type of a GCC
6882 builtin and then its argument prototype would still apply. */
6886 char nl_socket_alloc ();
6890 return nl_socket_alloc ();
6895 if ac_fn_c_try_link
"$LINENO"; then :
6896 ac_cv_lib_nl_3_nl_socket_alloc
=yes
6898 ac_cv_lib_nl_3_nl_socket_alloc
=no
6900 rm -f core conftest.err conftest.
$ac_objext \
6901 conftest
$ac_exeext conftest.
$ac_ext
6902 LIBS
=$ac_check_lib_save_LIBS
6904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nl_3_nl_socket_alloc" >&5
6905 $as_echo "$ac_cv_lib_nl_3_nl_socket_alloc" >&6; }
6906 if test "x$ac_cv_lib_nl_3_nl_socket_alloc" = xyes
; then :
6909 # Yes, we have libnl 3.x.
6911 LIBS
="${libnldir} -lnl-genl-3 -lnl-3 $LIBS"
6913 $as_echo "#define HAVE_LIBNL 1" >>confdefs.h
6916 $as_echo "#define HAVE_LIBNL_3_x 1" >>confdefs.h
6919 $as_echo "#define HAVE_LIBNL_NLE 1" >>confdefs.h
6922 $as_echo "#define HAVE_LIBNL_SOCKETS 1" >>confdefs.h
6924 V_INCLS
="$V_INCLS ${incdir}"
6930 if test x
$have_any_nl = xno
; then
6934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_socket_alloc in -lnl" >&5
6935 $as_echo_n "checking for nl_socket_alloc in -lnl... " >&6; }
6936 if ${ac_cv_lib_nl_nl_socket_alloc+:} false
; then :
6937 $as_echo_n "(cached) " >&6
6939 ac_check_lib_save_LIBS
=$LIBS
6941 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6942 /* end confdefs.h. */
6944 /* Override any GCC internal prototype to avoid an error.
6945 Use char because int might match the return type of a GCC
6946 builtin and then its argument prototype would still apply. */
6950 char nl_socket_alloc ();
6954 return nl_socket_alloc ();
6959 if ac_fn_c_try_link
"$LINENO"; then :
6960 ac_cv_lib_nl_nl_socket_alloc
=yes
6962 ac_cv_lib_nl_nl_socket_alloc
=no
6964 rm -f core conftest.err conftest.
$ac_objext \
6965 conftest
$ac_exeext conftest.
$ac_ext
6966 LIBS
=$ac_check_lib_save_LIBS
6968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nl_nl_socket_alloc" >&5
6969 $as_echo "$ac_cv_lib_nl_nl_socket_alloc" >&6; }
6970 if test "x$ac_cv_lib_nl_nl_socket_alloc" = xyes
; then :
6973 # Yes, we have libnl 2.x.
6975 LIBS
="${libnldir} -lnl-genl -lnl $LIBS"
6977 $as_echo "#define HAVE_LIBNL 1" >>confdefs.h
6980 $as_echo "#define HAVE_LIBNL_2_x 1" >>confdefs.h
6983 $as_echo "#define HAVE_LIBNL_NLE 1" >>confdefs.h
6986 $as_echo "#define HAVE_LIBNL_SOCKETS 1" >>confdefs.h
6994 if test x
$have_any_nl = xno
; then
6996 # No, we don't; do we have libnl 1.x?
6998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_handle_alloc in -lnl" >&5
6999 $as_echo_n "checking for nl_handle_alloc in -lnl... " >&6; }
7000 if ${ac_cv_lib_nl_nl_handle_alloc+:} false
; then :
7001 $as_echo_n "(cached) " >&6
7003 ac_check_lib_save_LIBS
=$LIBS
7005 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7006 /* end confdefs.h. */
7008 /* Override any GCC internal prototype to avoid an error.
7009 Use char because int might match the return type of a GCC
7010 builtin and then its argument prototype would still apply. */
7014 char nl_handle_alloc ();
7018 return nl_handle_alloc ();
7023 if ac_fn_c_try_link
"$LINENO"; then :
7024 ac_cv_lib_nl_nl_handle_alloc
=yes
7026 ac_cv_lib_nl_nl_handle_alloc
=no
7028 rm -f core conftest.err conftest.
$ac_objext \
7029 conftest
$ac_exeext conftest.
$ac_ext
7030 LIBS
=$ac_check_lib_save_LIBS
7032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nl_nl_handle_alloc" >&5
7033 $as_echo "$ac_cv_lib_nl_nl_handle_alloc" >&6; }
7034 if test "x$ac_cv_lib_nl_nl_handle_alloc" = xyes
; then :
7039 LIBS
="${libnldir} -lnl $LIBS"
7041 $as_echo "#define HAVE_LIBNL 1" >>confdefs.h
7049 if test x
$have_any_nl = xno
; then
7051 # No, we don't have libnl at all.
7053 if test x
$with_libnl = xyes
; then
7054 as_fn_error $?
"libnl support requested but libnl not found" "$LINENO" 5
7060 # Check to see if the tpacket_auxdata struct has a tp_vlan_tci member.
7062 # NOTE: any failure means we conclude that it doesn't have that
7063 # member, so if we don't have tpacket_auxdata, we conclude it
7064 # doesn't have that member (which is OK, as either we won't be
7065 # using code that would use that member, or we wouldn't compile
7067 ac_fn_c_check_member
"$LINENO" "struct tpacket_auxdata" "tp_vlan_tci" "ac_cv_member_struct_tpacket_auxdata_tp_vlan_tci" "
7068 #include <sys/types.h>
7069 #include <linux/if_packet.h>
7072 if test "x$ac_cv_member_struct_tpacket_auxdata_tp_vlan_tci" = xyes
; then :
7074 cat >>confdefs.h
<<_ACEOF
7075 #define HAVE_STRUCT_TPACKET_AUXDATA_TP_VLAN_TCI 1
7087 PLATFORM_C_SRC
="pcap-bpf.c"
7090 # Check whether we have the *BSD-style ioctls.
7092 for ac_header
in net
/if_media.h
7094 ac_fn_c_check_header_mongrel
"$LINENO" "net/if_media.h" "ac_cv_header_net_if_media_h" "$ac_includes_default"
7095 if test "x$ac_cv_header_net_if_media_h" = xyes
; then :
7096 cat >>confdefs.h
<<_ACEOF
7097 #define HAVE_NET_IF_MEDIA_H 1
7106 # Check whether we have struct BPF_TIMEVAL.
7108 ac_fn_c_check_type
"$LINENO" "struct BPF_TIMEVAL" "ac_cv_type_struct_BPF_TIMEVAL" "
7109 #include <sys/types.h>
7110 #include <sys/ioctl.h>
7111 #ifdef HAVE_SYS_IOCCOM_H
7112 #include <sys/ioccom.h>
7114 #include <net/bpf.h>
7117 if test "x$ac_cv_type_struct_BPF_TIMEVAL" = xyes
; then :
7119 cat >>confdefs.h
<<_ACEOF
7120 #define HAVE_STRUCT_BPF_TIMEVAL 1
7132 PLATFORM_C_SRC
="pcap-pf.c"
7139 PLATFORM_C_SRC
="pcap-snit.c"
7146 PLATFORM_C_SRC
="pcap-snoop.c"
7151 # --with-pcap=dag is the only way to get here, and it means
7152 # "DAG support but nothing else"
7154 V_DEFS
="$V_DEFS -DDAG_ONLY"
7155 PLATFORM_C_SRC
="pcap-dag.c"
7161 # --with-pcap=dpdk is the only way to get here, and it means
7162 # "DPDK support but nothing else"
7164 V_DEFS
="$V_DEFS -DDPDK_ONLY"
7165 PLATFORM_C_SRC
="pcap-dpdk.c"
7171 # --with-pcap=septel is the only way to get here, and it means
7172 # "Septel support but nothing else"
7174 V_DEFS
="$V_DEFS -DSEPTEL_ONLY"
7175 PLATFORM_C_SRC
="pcap-septel.c"
7181 # --with-pcap=snf is the only way to get here, and it means
7182 # "SNF support but nothing else"
7184 V_DEFS
="$V_DEFS -DSNF_ONLY"
7185 PLATFORM_C_SRC
="pcap-snf.c"
7193 PLATFORM_C_SRC
="pcap-null.c"
7197 as_fn_error $?
"$V_PCAP is not a valid pcap type" "$LINENO" 5
7201 if test "$V_PCAP" != null
7203 ac_fn_c_check_func
"$LINENO" "getifaddrs" "ac_cv_func_getifaddrs"
7204 if test "x$ac_cv_func_getifaddrs" = xyes
; then :
7207 # We have "getifaddrs()"; make sure we have <ifaddrs.h>
7208 # as well, just in case some platform is really weird.
7210 ac_fn_c_check_header_mongrel
"$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "$ac_includes_default"
7211 if test "x$ac_cv_header_ifaddrs_h" = xyes
; then :
7214 # We have the header, so we use "getifaddrs()" to
7215 # get the list of interfaces.
7217 PLATFORM_C_SRC
="$PLATFORM_C_SRC fad-getad.c"
7222 # We don't have the header - give up.
7223 # XXX - we could also fall back on some other
7224 # mechanism, but, for now, this'll catch this
7225 # problem so that we can at least try to figure
7226 # out something to do on systems with "getifaddrs()"
7227 # but without "ifaddrs.h", if there is something
7228 # we can do on those systems.
7230 as_fn_error $?
"Your system has getifaddrs() but doesn't have a usable <ifaddrs.h>." "$LINENO" 5
7239 # Well, we don't have "getifaddrs()", at least not with the
7240 # libraries with which we've decided we need to link
7241 # libpcap with, so we have to use some other mechanism.
7243 # Note that this may happen on Solaris, which has
7244 # getifaddrs(), but in -lsocket, not in -lxnet, so we
7245 # won't find it if we link with -lxnet, which we want
7246 # to do for other reasons.
7248 # For now, we use either the SIOCGIFCONF ioctl or the
7249 # SIOCGLIFCONF ioctl, preferring the latter if we have
7250 # it; the latter is a Solarisism that first appeared
7251 # in Solaris 8. (Solaris's getifaddrs() appears to
7252 # be built atop SIOCGLIFCONF; using it directly
7253 # avoids a not-all-that-useful middleman.)
7255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have SIOCGLIFCONF" >&5
7256 $as_echo_n "checking whether we have SIOCGLIFCONF... " >&6; }
7257 if ${ac_cv_lbl_have_siocglifconf+:} false
; then :
7258 $as_echo_n "(cached) " >&6
7260 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7261 /* end confdefs.h. */
7262 #include <sys/param.h>
7263 #include <sys/file.h>
7264 #include <sys/ioctl.h>
7265 #include <sys/socket.h>
7266 #include <sys/sockio.h>
7270 ioctl(0, SIOCGLIFCONF, (char *)0);
7275 if ac_fn_c_try_compile
"$LINENO"; then :
7276 ac_cv_lbl_have_siocglifconf
=yes
7278 ac_cv_lbl_have_siocglifconf
=no
7280 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_have_siocglifconf" >&5
7284 $as_echo "$ac_cv_lbl_have_siocglifconf" >&6; }
7285 if test $ac_cv_lbl_have_siocglifconf = yes ; then
7286 PLATFORM_C_SRC
="$PLATFORM_C_SRC fad-glifc.c"
7288 PLATFORM_C_SRC
="$PLATFORM_C_SRC fad-gifc.c"
7297 for ac_header
in linux
/net_tstamp.h
7299 ac_fn_c_check_header_mongrel
"$LINENO" "linux/net_tstamp.h" "ac_cv_header_linux_net_tstamp_h" "$ac_includes_default"
7300 if test "x$ac_cv_header_linux_net_tstamp_h" = xyes
; then :
7301 cat >>confdefs.h
<<_ACEOF
7302 #define HAVE_LINUX_NET_TSTAMP_H 1
7311 { $as_echo "$as_me:${as_lineno-$LINENO}: no hardware timestamp support implemented for $host_os" >&5
7312 $as_echo "$as_me: no hardware timestamp support implemented for $host_os" >&6;}
7317 # Check for socklen_t.
7319 ac_fn_c_check_type
"$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
7320 #include <sys/types.h>
7321 #include <sys/socket.h>
7324 if test "x$ac_cv_type_socklen_t" = xyes
; then :
7326 cat >>confdefs.h
<<_ACEOF
7327 #define HAVE_SOCKLEN_T 1
7334 # Check whether --enable-ipv6 was given.
7335 if test "${enable_ipv6+set}" = set; then :
7336 enableval
=$enable_ipv6;
7341 if test "$enable_ipv6" != "no"; then
7343 # We've already made sure we have getaddrinfo above in
7344 # AC_LBL_LIBRARY_NET.
7347 $as_echo "#define INET6 1" >>confdefs.h
7352 # Do we have pkg-config?
7354 # Extract the first word of "pkg-config", so it can be a program name with args.
7355 set dummy pkg-config
; ac_word
=$2
7356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7357 $as_echo_n "checking for $ac_word... " >&6; }
7358 if ${ac_cv_prog_PKGCONFIG+:} false
; then :
7359 $as_echo_n "(cached) " >&6
7361 if test -n "$PKGCONFIG"; then
7362 ac_cv_prog_PKGCONFIG
="$PKGCONFIG" # Let the user override the test.
7364 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7368 test -z "$as_dir" && as_dir
=.
7369 for ac_exec_ext
in '' $ac_executable_extensions; do
7370 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7371 ac_cv_prog_PKGCONFIG
="pkg-config"
7372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7379 test -z "$ac_cv_prog_PKGCONFIG" && ac_cv_prog_PKGCONFIG
="no"
7382 PKGCONFIG
=$ac_cv_prog_PKGCONFIG
7383 if test -n "$PKGCONFIG"; then
7384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
7385 $as_echo "$PKGCONFIG" >&6; }
7387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7388 $as_echo "no" >&6; }
7393 # Check for Endace DAG card support.
7395 # Check whether --with-dag was given.
7396 if test "${with_dag+set}" = set; then :
7398 if test "$withval" = no
7400 # User doesn't want DAG support.
7402 elif test "$withval" = yes
7404 # User wants DAG support but hasn't specified a directory.
7407 # User wants DAG support and has specified a directory, so use the provided value.
7414 if test "$V_PCAP" = dag
; then
7415 # User requested DAG-only libpcap, so we'd better have
7418 elif test "xxx_only" = yes; then
7419 # User requested something-else-only pcap, so they don't
7424 # Use DAG API if present, otherwise don't
7433 # Check whether --with-dag-includes was given.
7434 if test "${with_dag_includes+set}" = set; then :
7435 withval
=$with_dag_includes;
7436 # User wants DAG support and has specified a header directory, so use the provided value.
7438 dag_include_dir
=$withval
7444 # Check whether --with-dag-libraries was given.
7445 if test "${with_dag_libraries+set}" = set; then :
7446 withval
=$with_dag_libraries;
7447 # User wants DAG support and has specified a library directory, so use the provided value.
7449 dag_lib_dir
=$withval
7454 if test "$want_dag" != no
; then
7456 # If necessary, set default paths for DAG API headers and libraries.
7457 if test -z "$dag_root"; then
7461 if test -z "$dag_include_dir"; then
7462 dag_include_dir
="$dag_root/include"
7465 if test -z "$dag_lib_dir"; then
7466 dag_lib_dir
="$dag_root/lib"
7469 V_INCLS
="$V_INCLS -I$dag_include_dir"
7471 for ac_header
in dagapi.h
7473 ac_fn_c_check_header_mongrel
"$LINENO" "dagapi.h" "ac_cv_header_dagapi_h" "$ac_includes_default"
7474 if test "x$ac_cv_header_dagapi_h" = xyes
; then :
7475 cat >>confdefs.h
<<_ACEOF
7476 #define HAVE_DAGAPI_H 1
7484 if test "$ac_cv_header_dagapi_h" = yes; then
7486 if test $V_PCAP != dag
; then
7487 MODULE_C_SRC
="$MODULE_C_SRC pcap-dag.c"
7490 # Check for various DAG API functions.
7491 # Don't need to save and restore LIBS to prevent -ldag being
7492 # included if there's a found-action (arg 3).
7493 saved_ldflags
=$LDFLAGS
7494 LDFLAGS
="-L$dag_lib_dir"
7495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dag_attach_stream in -ldag" >&5
7496 $as_echo_n "checking for dag_attach_stream in -ldag... " >&6; }
7497 if ${ac_cv_lib_dag_dag_attach_stream+:} false
; then :
7498 $as_echo_n "(cached) " >&6
7500 ac_check_lib_save_LIBS
=$LIBS
7502 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7503 /* end confdefs.h. */
7505 /* Override any GCC internal prototype to avoid an error.
7506 Use char because int might match the return type of a GCC
7507 builtin and then its argument prototype would still apply. */
7511 char dag_attach_stream ();
7515 return dag_attach_stream ();
7520 if ac_fn_c_try_link
"$LINENO"; then :
7521 ac_cv_lib_dag_dag_attach_stream
=yes
7523 ac_cv_lib_dag_dag_attach_stream
=no
7525 rm -f core conftest.err conftest.
$ac_objext \
7526 conftest
$ac_exeext conftest.
$ac_ext
7527 LIBS
=$ac_check_lib_save_LIBS
7529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dag_dag_attach_stream" >&5
7530 $as_echo "$ac_cv_lib_dag_dag_attach_stream" >&6; }
7531 if test "x$ac_cv_lib_dag_dag_attach_stream" = xyes
; then :
7532 cat >>confdefs.h
<<_ACEOF
7533 #define HAVE_LIBDAG 1
7539 as_fn_error $?
"DAG library lacks streams support" "$LINENO" 5
7542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dag_attach_stream64 in -ldag" >&5
7543 $as_echo_n "checking for dag_attach_stream64 in -ldag... " >&6; }
7544 if ${ac_cv_lib_dag_dag_attach_stream64+:} false
; then :
7545 $as_echo_n "(cached) " >&6
7547 ac_check_lib_save_LIBS
=$LIBS
7549 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7550 /* end confdefs.h. */
7552 /* Override any GCC internal prototype to avoid an error.
7553 Use char because int might match the return type of a GCC
7554 builtin and then its argument prototype would still apply. */
7558 char dag_attach_stream64 ();
7562 return dag_attach_stream64 ();
7567 if ac_fn_c_try_link
"$LINENO"; then :
7568 ac_cv_lib_dag_dag_attach_stream64
=yes
7570 ac_cv_lib_dag_dag_attach_stream64
=no
7572 rm -f core conftest.err conftest.
$ac_objext \
7573 conftest
$ac_exeext conftest.
$ac_ext
7574 LIBS
=$ac_check_lib_save_LIBS
7576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dag_dag_attach_stream64" >&5
7577 $as_echo "$ac_cv_lib_dag_dag_attach_stream64" >&6; }
7578 if test "x$ac_cv_lib_dag_dag_attach_stream64" = xyes
; then :
7579 dag_large_streams
="1"
7581 dag_large_streams
="0"
7584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dag_get_erf_types in -ldag" >&5
7585 $as_echo_n "checking for dag_get_erf_types in -ldag... " >&6; }
7586 if ${ac_cv_lib_dag_dag_get_erf_types+:} false
; then :
7587 $as_echo_n "(cached) " >&6
7589 ac_check_lib_save_LIBS
=$LIBS
7591 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7592 /* end confdefs.h. */
7594 /* Override any GCC internal prototype to avoid an error.
7595 Use char because int might match the return type of a GCC
7596 builtin and then its argument prototype would still apply. */
7600 char dag_get_erf_types ();
7604 return dag_get_erf_types ();
7609 if ac_fn_c_try_link
"$LINENO"; then :
7610 ac_cv_lib_dag_dag_get_erf_types
=yes
7612 ac_cv_lib_dag_dag_get_erf_types
=no
7614 rm -f core conftest.err conftest.
$ac_objext \
7615 conftest
$ac_exeext conftest.
$ac_ext
7616 LIBS
=$ac_check_lib_save_LIBS
7618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dag_dag_get_erf_types" >&5
7619 $as_echo "$ac_cv_lib_dag_dag_get_erf_types" >&6; }
7620 if test "x$ac_cv_lib_dag_dag_get_erf_types" = xyes
; then :
7623 $as_echo "#define HAVE_DAG_GET_ERF_TYPES 1" >>confdefs.h
7627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dag_get_stream_erf_types in -ldag" >&5
7628 $as_echo_n "checking for dag_get_stream_erf_types in -ldag... " >&6; }
7629 if ${ac_cv_lib_dag_dag_get_stream_erf_types+:} false
; then :
7630 $as_echo_n "(cached) " >&6
7632 ac_check_lib_save_LIBS
=$LIBS
7634 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7635 /* end confdefs.h. */
7637 /* Override any GCC internal prototype to avoid an error.
7638 Use char because int might match the return type of a GCC
7639 builtin and then its argument prototype would still apply. */
7643 char dag_get_stream_erf_types ();
7647 return dag_get_stream_erf_types ();
7652 if ac_fn_c_try_link
"$LINENO"; then :
7653 ac_cv_lib_dag_dag_get_stream_erf_types
=yes
7655 ac_cv_lib_dag_dag_get_stream_erf_types
=no
7657 rm -f core conftest.err conftest.
$ac_objext \
7658 conftest
$ac_exeext conftest.
$ac_ext
7659 LIBS
=$ac_check_lib_save_LIBS
7661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dag_dag_get_stream_erf_types" >&5
7662 $as_echo "$ac_cv_lib_dag_dag_get_stream_erf_types" >&6; }
7663 if test "x$ac_cv_lib_dag_dag_get_stream_erf_types" = xyes
; then :
7666 $as_echo "#define HAVE_DAG_GET_STREAM_ERF_TYPES 1" >>confdefs.h
7671 LDFLAGS
=$saved_ldflags
7674 # We assume that if we have libdag we have libdagconf,
7675 # as they're installed at the same time from the same
7678 LIBS
="$LIBS -ldag -ldagconf"
7679 LDFLAGS
="$LDFLAGS -L$dag_lib_dir"
7681 if test "$dag_large_streams" = 1; then
7683 $as_echo "#define HAVE_DAG_LARGE_STREAMS_API 1" >>confdefs.h
7685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for vdag_set_device_info in -lvdag" >&5
7686 $as_echo_n "checking for vdag_set_device_info in -lvdag... " >&6; }
7687 if ${ac_cv_lib_vdag_vdag_set_device_info+:} false
; then :
7688 $as_echo_n "(cached) " >&6
7690 ac_check_lib_save_LIBS
=$LIBS
7692 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7693 /* end confdefs.h. */
7695 /* Override any GCC internal prototype to avoid an error.
7696 Use char because int might match the return type of a GCC
7697 builtin and then its argument prototype would still apply. */
7701 char vdag_set_device_info ();
7705 return vdag_set_device_info ();
7710 if ac_fn_c_try_link
"$LINENO"; then :
7711 ac_cv_lib_vdag_vdag_set_device_info
=yes
7713 ac_cv_lib_vdag_vdag_set_device_info
=no
7715 rm -f core conftest.err conftest.
$ac_objext \
7716 conftest
$ac_exeext conftest.
$ac_ext
7717 LIBS
=$ac_check_lib_save_LIBS
7719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_vdag_vdag_set_device_info" >&5
7720 $as_echo "$ac_cv_lib_vdag_vdag_set_device_info" >&6; }
7721 if test "x$ac_cv_lib_vdag_vdag_set_device_info" = xyes
; then :
7722 ac_dag_have_vdag
="1"
7724 ac_dag_have_vdag
="0"
7727 if test "$ac_dag_have_vdag" = 1; then
7729 $as_echo "#define HAVE_DAG_VDAG 1" >>confdefs.h
7731 if test "$ac_lbl_have_pthreads" != "found"; then
7732 as_fn_error $?
"DAG requires pthreads, but we didn't find them" "$LINENO" 5
7734 LIBS
="$LIBS $PTHREAD_LIBS"
7739 $as_echo "#define HAVE_DAG_API 1" >>confdefs.h
7743 if test "$V_PCAP" = dag
; then
7744 # User requested "dag" capture type but we couldn't
7745 # find the DAG API support.
7746 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
7749 if test "$want_dag" = yes; then
7750 # User wanted DAG support but we couldn't find it.
7751 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
7757 # Check whether --with-septel was given.
7758 if test "${with_septel+set}" = set; then :
7759 withval
=$with_septel;
7760 if test "$withval" = no
7763 elif test "$withval" = yes
7769 septel_root
=$withval
7774 if test "$V_PCAP" = septel
; then
7775 # User requested Septel-only libpcap, so we'd better have
7778 elif test "xxx_only" = yes; then
7779 # User requested something-else-only pcap, so they don't
7780 # want Septel support.
7784 # Use Septel API if present, otherwise don't
7786 want_septel
=ifpresent
7792 ac_cv_lbl_septel_api
=no
7793 if test "$with_septel" != no
; then
7795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have Septel API headers" >&5
7796 $as_echo_n "checking whether we have Septel API headers... " >&6; }
7798 # If necessary, set default paths for Septel API headers and libraries.
7799 if test -z "$septel_root"; then
7800 septel_root
=$srcdir/..
/septel
7803 septel_tools_dir
="$septel_root"
7804 septel_include_dir
="$septel_root/INC"
7806 if test -r "$septel_include_dir/msg.h"; then
7807 ac_cv_lbl_septel_api
=yes
7810 if test "$ac_cv_lbl_septel_api" = yes; then
7811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($septel_include_dir)" >&5
7812 $as_echo "yes ($septel_include_dir)" >&6; }
7814 V_INCLS
="$V_INCLS -I$septel_include_dir"
7815 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"
7816 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"
7818 if test "$V_PCAP" != septel
; then
7819 MODULE_C_SRC
="$MODULE_C_SRC pcap-septel.c"
7823 $as_echo "#define HAVE_SEPTEL_API 1" >>confdefs.h
7826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7827 $as_echo "no" >&6; }
7829 if test "$V_PCAP" = septel
; then
7830 # User requested "septel" capture type but
7831 # we couldn't find the Septel API support.
7832 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
7835 if test "$want_septel" = yes; then
7836 # User wanted Septel support but we couldn't find it.
7837 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
7842 # Check for Myricom SNF support.
7844 # Check whether --with-snf was given.
7845 if test "${with_snf+set}" = set; then :
7847 if test "$withval" = no
7849 # User explicitly doesn't want SNF
7851 elif test "$withval" = yes
7853 # User wants SNF support but hasn't specified a directory.
7856 # User wants SNF support with a specified directory.
7863 if test "$V_PCAP" = snf
; then
7864 # User requested Sniffer-only libpcap, so we'd better have
7867 elif test "xxx_only" = yes; then
7868 # User requested something-else-only pcap, so they don't
7873 # Use Sniffer API if present, otherwise don't
7882 # Check whether --with-snf-includes was given.
7883 if test "${with_snf_includes+set}" = set; then :
7884 withval
=$with_snf_includes;
7885 # User wants SNF with specific header directory
7887 snf_include_dir
=$withval
7893 # Check whether --with-snf-libraries was given.
7894 if test "${with_snf_libraries+set}" = set; then :
7895 withval
=$with_snf_libraries;
7896 # User wants SNF with specific lib directory
7898 snf_lib_dir
=$withval
7903 ac_cv_lbl_snf_api
=no
7904 if test "$with_snf" != no
; then
7906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have Myricom Sniffer API" >&5
7907 $as_echo_n "checking whether we have Myricom Sniffer API... " >&6; }
7909 # If necessary, set default paths for Sniffer headers and libraries.
7910 if test -z "$snf_root"; then
7914 if test -z "$snf_include_dir"; then
7915 snf_include_dir
="$snf_root/include"
7918 if test -z "$snf_lib_dir"; then
7919 snf_lib_dir
="$snf_root/lib"
7922 if test -f "$snf_include_dir/snf.h"; then
7923 # We found a header; make sure we can link with the library
7924 saved_ldflags
=$LDFLAGS
7925 LDFLAGS
="$LDFLAGS -L$snf_lib_dir"
7926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snf_init in -lsnf" >&5
7927 $as_echo_n "checking for snf_init in -lsnf... " >&6; }
7928 if ${ac_cv_lib_snf_snf_init+:} false
; then :
7929 $as_echo_n "(cached) " >&6
7931 ac_check_lib_save_LIBS
=$LIBS
7933 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7934 /* end confdefs.h. */
7936 /* Override any GCC internal prototype to avoid an error.
7937 Use char because int might match the return type of a GCC
7938 builtin and then its argument prototype would still apply. */
7951 if ac_fn_c_try_link
"$LINENO"; then :
7952 ac_cv_lib_snf_snf_init
=yes
7954 ac_cv_lib_snf_snf_init
=no
7956 rm -f core conftest.err conftest.
$ac_objext \
7957 conftest
$ac_exeext conftest.
$ac_ext
7958 LIBS
=$ac_check_lib_save_LIBS
7960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_snf_snf_init" >&5
7961 $as_echo "$ac_cv_lib_snf_snf_init" >&6; }
7962 if test "x$ac_cv_lib_snf_snf_init" = xyes
; then :
7963 ac_cv_lbl_snf_api
="yes"
7966 LDFLAGS
="$saved_ldflags"
7967 if test "$ac_cv_lbl_snf_api" = no
; then
7968 as_fn_error $?
"SNF API cannot correctly be linked; check config.log" "$LINENO" 5
7972 if test "$ac_cv_lbl_snf_api" = yes; then
7973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($snf_root)" >&5
7974 $as_echo "yes ($snf_root)" >&6; }
7976 V_INCLS
="$V_INCLS -I$snf_include_dir"
7978 LDFLAGS
="$LDFLAGS -L$snf_lib_dir"
7980 if test "$V_PCAP" != snf
; then
7981 MODULE_C_SRC
="$MODULE_C_SRC pcap-snf.c"
7985 $as_echo "#define HAVE_SNF_API 1" >>confdefs.h
7988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7989 $as_echo "no" >&6; }
7991 if test "$want_snf" = yes; then
7992 # User requested "snf" capture type but
7993 # we couldn't find the Sniffer API support.
7994 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
7997 if test "$want_snf" = yes; then
7998 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
8003 # Check for Riverbed TurboCap support.
8005 # Check whether --with-turbocap was given.
8006 if test "${with_turbocap+set}" = set; then :
8007 withval
=$with_turbocap;
8008 if test "$withval" = no
8010 # User explicitly doesn't want TurboCap
8012 elif test "$withval" = yes
8014 # User wants TurboCap support but hasn't specified a directory.
8017 # User wants TurboCap support with a specified directory.
8019 turbocap_root
=$withval
8024 if test "xxx_only" = yes; then
8025 # User requested something-else-only pcap, so they don't
8026 # want TurboCap support.
8030 # Use TurboCap API if present, otherwise don't
8032 want_turbocap
=ifpresent
8038 ac_cv_lbl_turbocap_api
=no
8039 if test "$want_turbocap" != no
; then
8041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether TurboCap is supported" >&5
8042 $as_echo_n "checking whether TurboCap is supported... " >&6; }
8044 save_CFLAGS
="$CFLAGS"
8046 if test ! -z "$turbocap_root"; then
8047 TURBOCAP_CFLAGS
="-I$turbocap_root/include"
8048 TURBOCAP_LIBS
="-L$turbocap_root/lib"
8049 CFLAGS
="$CFLAGS $TURBOCAP_CFLAGS"
8052 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8053 /* end confdefs.h. */
8061 TC_INSTANCE a; TC_PORT b; TC_BOARD c;
8063 (void)TcInstanceCreateByName("foo", &i);
8069 if ac_fn_c_try_compile
"$LINENO"; then :
8070 ac_cv_lbl_turbocap_api
=yes
8072 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8074 CFLAGS
="$save_CFLAGS"
8075 if test $ac_cv_lbl_turbocap_api = yes; then
8076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8077 $as_echo "yes" >&6; }
8079 MODULE_C_SRC
="$MODULE_C_SRC pcap-tc.c"
8080 V_INCLS
="$V_INCLS $TURBOCAP_CFLAGS"
8081 LIBS
="$LIBS $TURBOCAP_LIBS -lTcApi -lpthread -lstdc++"
8084 $as_echo "#define HAVE_TC_API 1" >>confdefs.h
8087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8088 $as_echo "no" >&6; }
8090 if test "$want_turbocap" = yes; then
8091 # User wanted Turbo support but we couldn't find it.
8092 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
8097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable remote packet capture" >&5
8098 $as_echo_n "checking whether to enable remote packet capture... " >&6; }
8099 # Check whether --enable-remote was given.
8100 if test "${enable_remote+set}" = set; then :
8101 enableval
=$enable_remote;
8106 case "$enableval" in
8107 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8108 $as_echo "yes" >&6; }
8109 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Remote packet capture may expose libpcap-based applications" >&5
8110 $as_echo "$as_me: WARNING: Remote packet capture may expose libpcap-based applications" >&2;}
8111 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: to attacks by malicious remote capture servers!" >&5
8112 $as_echo "$as_me: WARNING: to attacks by malicious remote capture servers!" >&2;}
8114 # rpcapd requires pthreads on UN*X.
8116 if test "$ac_lbl_have_pthreads" != "found"; then
8117 as_fn_error $?
"rpcapd requires pthreads, but we didn't find them" "$LINENO" 5
8120 # It also requires crypt().
8121 # Do we have it in the system libraries?
8123 ac_fn_c_check_func
"$LINENO" "crypt" "ac_cv_func_crypt"
8124 if test "x$ac_cv_func_crypt" = xyes
; then :
8129 # No. Do we have it in -lcrypt?
8131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
8132 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
8133 if ${ac_cv_lib_crypt_crypt+:} false
; then :
8134 $as_echo_n "(cached) " >&6
8136 ac_check_lib_save_LIBS
=$LIBS
8137 LIBS
="-lcrypt $LIBS"
8138 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8139 /* end confdefs.h. */
8141 /* Override any GCC internal prototype to avoid an error.
8142 Use char because int might match the return type of a GCC
8143 builtin and then its argument prototype would still apply. */
8156 if ac_fn_c_try_link
"$LINENO"; then :
8157 ac_cv_lib_crypt_crypt
=yes
8159 ac_cv_lib_crypt_crypt
=no
8161 rm -f core conftest.err conftest.
$ac_objext \
8162 conftest
$ac_exeext conftest.
$ac_ext
8163 LIBS
=$ac_check_lib_save_LIBS
8165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
8166 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
8167 if test "x$ac_cv_lib_crypt_crypt" = xyes
; then :
8170 # Yes; add -lcrypt to the libraries for rpcapd.
8172 RPCAPD_LIBS
="$RPCAPD_LIBS -lcrypt"
8176 as_fn_error $?
"rpcapd requires crypt(), but we didn't find it" "$LINENO" 5
8185 # OK, we have crypt(). Do we have getspnam()?
8187 for ac_func
in getspnam
8189 ac_fn_c_check_func
"$LINENO" "getspnam" "ac_cv_func_getspnam"
8190 if test "x$ac_cv_func_getspnam" = xyes
; then :
8191 cat >>confdefs.h
<<_ACEOF
8192 #define HAVE_GETSPNAM 1
8200 # Check for various members of struct msghdr.
8202 ac_fn_c_check_member
"$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
8203 #include \"ftmacros.h\"
8204 #include <sys/socket.h>
8207 if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes
; then :
8209 cat >>confdefs.h
<<_ACEOF
8210 #define HAVE_STRUCT_MSGHDR_MSG_CONTROL 1
8216 ac_fn_c_check_member
"$LINENO" "struct msghdr" "msg_flags" "ac_cv_member_struct_msghdr_msg_flags" "
8217 #include \"ftmacros.h\"
8218 #include <sys/socket.h>
8221 if test "x$ac_cv_member_struct_msghdr_msg_flags" = xyes
; then :
8223 cat >>confdefs.h
<<_ACEOF
8224 #define HAVE_STRUCT_MSGHDR_MSG_FLAGS 1
8232 # Optionally, we may want to support SSL.
8233 # Check for OpenSSL/libressl.
8235 # First, try looking for it as a regular system library.
8236 # Make sure we can find SSL_library_init() using the
8237 # standard headers, just in case we're running a version
8238 # of macOS that ships with the OpenSSL library but not
8239 # the OpenSSL headers, and have also installed another
8240 # version of OpenSSL with headers.
8243 LIBS
="-lssl -lcrypto"
8244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have a system OpenSSL/libressl that we can use" >&5
8245 $as_echo_n "checking whether we have a system OpenSSL/libressl that we can use... " >&6; }
8246 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8247 /* end confdefs.h. */
8249 #include <openssl/ssl.h>
8262 if ac_fn_c_try_link
"$LINENO"; then :
8264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8265 $as_echo "yes" >&6; }
8267 OPENSSL_LIBS
="-lssl -lcrypto"
8270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8271 $as_echo "no" >&6; }
8273 rm -f core conftest.err conftest.
$ac_objext \
8274 conftest
$ac_exeext conftest.
$ac_ext
8278 # If we didn't find it, check for it with pkg-config.
8280 if test "x$HAVE_OPENSSL" != "xyes"; then
8281 if test "x$PKGCONFIG" != "xno"; then
8283 # We have pkg-config; see if we have OpenSSL/
8284 # libressl installed as a package.
8286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL/libressl with pkg-config" >&5
8287 $as_echo_n "checking for OpenSSL/libressl with pkg-config... " >&6; }
8288 if "$PKGCONFIG" openssl
; then
8289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
8290 $as_echo "found" >&6; }
8292 OPENSSL_CFLAGS
=`"$PKGCONFIG" --cflags openssl`
8293 OPENSSL_LIBS
=`"$PKGCONFIG" --libs openssl`
8295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8296 $as_echo "not found" >&6; }
8302 # If we didn't find it, check for it under /usr/local/opt/openssl;
8303 # that's where Homebrew puts it on macOS. Feel free to add other
8304 # -L directories as necessary; the "system library" check should
8305 # also handle "add-on library under /usr/local", so that shouldn't
8306 # be necessary here.
8308 if test "x$HAVE_OPENSSL" != "xyes"; then
8309 save_CFLAGS
="$CFLAGS"
8311 CFLAGS
="$CFLAGS -L/usr/local/opt/openssl/include"
8312 LIBS
="$LIBS -L/usr/local/opt/openssl/lib -lssl -lcrypto"
8313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have OpenSSL/libressl in /usr/local/opt that we can use" >&5
8314 $as_echo_n "checking whether we have OpenSSL/libressl in /usr/local/opt that we can use... " >&6; }
8315 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8316 /* end confdefs.h. */
8318 #include <openssl/ssl.h>
8331 if ac_fn_c_try_link
"$LINENO"; then :
8333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8334 $as_echo "yes" >&6; }
8336 OPENSSL_CFLAGS
="-I/usr/local/opt/openssl/include"
8337 OPENSSL_LIBS
="-L/usr/local/opt/openssl/lib -lssl -lcrypto"
8340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8341 $as_echo "no" >&6; }
8343 rm -f core conftest.err conftest.
$ac_objext \
8344 conftest
$ac_exeext conftest.
$ac_ext
8345 CFLAGS
="$save_CFLAGS"
8350 # OK, did we find it?
8352 if test "x$HAVE_OPENSSL" = "xyes"; then
8354 $as_echo "#define HAVE_OPENSSL 1" >>confdefs.h
8356 CFLAGS
="$CFLAGS $OPENSSL_CFLAGS"
8357 LIBS
="$LIBS $OPENSSL_LIBS"
8359 { $as_echo "$as_me:${as_lineno-$LINENO}: OpenSSL not found" >&5
8360 $as_echo "$as_me: OpenSSL not found" >&6;}
8364 $as_echo "#define ENABLE_REMOTE /**/" >>confdefs.h
8366 REMOTE_C_SRC
="$REMOTE_C_SRC pcap-new.c pcap-rpcap.c rpcap-protocol.c sockutils.c sslutils.c"
8367 BUILD_RPCAPD
=build-rpcapd
8368 INSTALL_RPCAPD
=install-rpcapd
8370 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8371 $as_echo "no" >&6; }
8375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build optimizer debugging code" >&5
8376 $as_echo_n "checking whether to build optimizer debugging code... " >&6; }
8377 # Check whether --enable-optimizer-dbg was given.
8378 if test "${enable_optimizer_dbg+set}" = set; then :
8379 enableval
=$enable_optimizer_dbg;
8382 if test "$enable_optimizer_dbg" = "yes"; then
8384 $as_echo "#define BDEBUG 1" >>confdefs.h
8387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_optimizer_dbg-no}" >&5
8388 $as_echo "${enable_optimizer_dbg-no}" >&6; }
8390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build parser debugging code" >&5
8391 $as_echo_n "checking whether to build parser debugging code... " >&6; }
8392 # Check whether --enable-yydebug was given.
8393 if test "${enable_yydebug+set}" = set; then :
8394 enableval
=$enable_yydebug;
8397 if test "$enable_yydebug" = "yes"; then
8399 $as_echo "#define YYDEBUG 1" >>confdefs.h
8402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_yydebug-no}" >&5
8403 $as_echo "${enable_yydebug-no}" >&6; }
8408 for ac_prog
in flex
lex
8410 # Extract the first word of "$ac_prog", so it can be a program name with args.
8411 set dummy
$ac_prog; ac_word
=$2
8412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8413 $as_echo_n "checking for $ac_word... " >&6; }
8414 if ${ac_cv_prog_LEX+:} false
; then :
8415 $as_echo_n "(cached) " >&6
8417 if test -n "$LEX"; then
8418 ac_cv_prog_LEX
="$LEX" # Let the user override the test.
8420 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8424 test -z "$as_dir" && as_dir
=.
8425 for ac_exec_ext
in '' $ac_executable_extensions; do
8426 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8427 ac_cv_prog_LEX
="$ac_prog"
8428 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8438 if test -n "$LEX"; then
8439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
8440 $as_echo "$LEX" >&6; }
8442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8443 $as_echo "no" >&6; }
8447 test -n "$LEX" && break
8449 test -n "$LEX" || LEX
=":"
8451 if test "x$LEX" != "x:"; then
8452 cat >conftest.l
<<_ACEOF
8458 e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
8459 yyless ((input () != 0)); }
8460 f { unput (yytext[0]); }
8461 . { BEGIN INITIAL; }
8463 #ifdef YYTEXT_POINTER
8464 extern char *yytext;
8469 return ! yylex () + ! yywrap ();
8472 { { ac_try
="$LEX conftest.l"
8474 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8475 *) ac_try_echo=$ac_try;;
8477 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
8478 $as_echo "$ac_try_echo"; } >&5
8479 (eval "$LEX conftest.l") 2>&5
8481 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8482 test $ac_status = 0; }
8483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
8484 $as_echo_n "checking lex output file root... " >&6; }
8485 if ${ac_cv_prog_lex_root+:} false; then :
8486 $as_echo_n "(cached) " >&6
8489 if test -f lex.yy.c; then
8490 ac_cv_prog_lex_root=lex.yy
8491 elif test -f lexyy.c; then
8492 ac_cv_prog_lex_root=lexyy
8494 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
8497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
8498 $as_echo "$ac_cv_prog_lex_root" >&6; }
8499 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
8501 if test -z "${LEXLIB+set}"; then
8502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
8503 $as_echo_n "checking lex library... " >&6; }
8504 if ${ac_cv_lib_lex+:} false; then :
8505 $as_echo_n "(cached) " >&6
8509 ac_cv_lib_lex='none needed'
8510 for ac_lib in '' -lfl -ll; do
8511 LIBS="$ac_lib $ac_save_LIBS"
8512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8513 /* end confdefs.h. */
8514 `cat $LEX_OUTPUT_ROOT.c
`
8516 if ac_fn_c_try_link "$LINENO"; then :
8517 ac_cv_lib_lex=$ac_lib
8519 rm -f core conftest.err conftest.$ac_objext \
8520 conftest$ac_exeext conftest.$ac_ext
8521 test "$ac_cv_lib_lex" != 'none needed' && break
8526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
8527 $as_echo "$ac_cv_lib_lex" >&6; }
8528 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
8532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
8533 $as_echo_n "checking whether yytext is a pointer... " >&6; }
8534 if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
8535 $as_echo_n "(cached) " >&6
8537 # POSIX says lex can declare yytext either as a pointer or an array; the
8538 # default is implementation-dependent. Figure out which it is, since
8539 # not all implementations provide the %pointer and %array declarations.
8540 ac_cv_prog_lex_yytext_pointer=no
8542 LIBS="$LEXLIB $ac_save_LIBS"
8543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8544 /* end confdefs.h. */
8546 #define YYTEXT_POINTER 1
8547 `cat $LEX_OUTPUT_ROOT.c
`
8549 if ac_fn_c_try_link "$LINENO"; then :
8550 ac_cv_prog_lex_yytext_pointer=yes
8552 rm -f core conftest.err conftest.$ac_objext \
8553 conftest$ac_exeext conftest.$ac_ext
8557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
8558 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
8559 if test $ac_cv_prog_lex_yytext_pointer = yes; then
8561 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
8564 rm -f conftest.l $LEX_OUTPUT_ROOT.c
8567 if test "$LEX" = ":"; then
8568 as_fn_error $? "Neither flex nor lex was found." "$LINENO" 5
8572 # Make sure {f}lex supports the -P, --header-file, and --nounput flags
8573 # and supports processing our scanner.l.
8575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for capable lex" >&5
8576 $as_echo_n "checking for capable lex... " >&6; }
8577 if ${tcpdump_cv_capable_lex+:} false; then :
8578 $as_echo_n "(cached) " >&6
8580 if $LEX -P pcap_ --header-file=/dev/null --nounput -t $srcdir/scanner.l > /dev/null 2>&1; then
8581 tcpdump_cv_capable_lex=yes
8583 tcpdump_cv_capable_lex=insufficient
8586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcpdump_cv_capable_lex" >&5
8587 $as_echo "$tcpdump_cv_capable_lex" >&6; }
8588 if test $tcpdump_cv_capable_lex = insufficient ; then
8589 as_fn_error $? "$LEX is insufficient to compile libpcap.
8590 libpcap requires Flex 2.5.31 or later, or a compatible version of lex." "$LINENO" 5
8594 # Look for yacc/bison/byacc.
8596 for ac_prog in 'bison -y' byacc
8598 # Extract the first word of "$ac_prog", so it can be a program name with args.
8599 set dummy $ac_prog; ac_word=$2
8600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8601 $as_echo_n "checking for $ac_word... " >&6; }
8602 if ${ac_cv_prog_YACC+:} false; then :
8603 $as_echo_n "(cached) " >&6
8605 if test -n "$YACC"; then
8606 ac_cv_prog_YACC="$YACC" # Let the user override the test.
8608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8612 test -z "$as_dir" && as_dir=.
8613 for ac_exec_ext in '' $ac_executable_extensions; do
8614 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8615 ac_cv_prog_YACC="$ac_prog"
8616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8625 YACC=$ac_cv_prog_YACC
8626 if test -n "$YACC"; then
8627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
8628 $as_echo "$YACC" >&6; }
8630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8631 $as_echo "no" >&6; }
8635 test -n "$YACC" && break
8637 test -n "$YACC" || YACC="yacc"
8641 # Make sure it supports the -p flag and supports processing our
8644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for capable yacc/bison" >&5
8645 $as_echo_n "checking for capable yacc/bison... " >&6; }
8646 if ${tcpdump_cv_capable_yacc+:} false; then :
8647 $as_echo_n "(cached) " >&6
8649 if $YACC -p pcap_ -o /dev/null $srcdir/grammar.y >/dev/null 2>&1; then
8650 tcpdump_cv_capable_yacc=yes
8652 tcpdump_cv_capable_yacc=insufficient
8655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcpdump_cv_capable_yacc" >&5
8656 $as_echo "$tcpdump_cv_capable_yacc" >&6; }
8657 if test $tcpdump_cv_capable_yacc = insufficient ; then
8658 as_fn_error $? "$YACC is insufficient to compile libpcap.
8659 libpcap requires Bison, a newer version of Berkeley YACC with support
8660 for reentrant parsers, or another YACC compatible with them." "$LINENO" 5
8664 # Do various checks for various OSes and versions of those OSes.
8666 # Assume, by default, no support for shared libraries and V7/BSD
8667 # convention for man pages (devices in section 4, file formats in
8668 # section 5, miscellaneous info in section 7, administrative commands
8669 # and daemons in section 8). Individual cases can override this.
8675 MAN_ADMIN_COMMANDS=8
8680 $as_echo "#define _SUN 1" >>confdefs.h
8684 # AIX makes it fun to build shared and static libraries,
8685 # because they're *both* ".a" archive libraries. We
8686 # build the static library for the benefit of the traditional
8687 # scheme of building libpcap and tcpdump in subdirectories of
8688 # the same directory, with tcpdump statically linked with the
8689 # libpcap in question, but we also build a shared library as
8690 # "libpcap.shareda" and install *it*, rather than the static
8691 # library, as "libpcap.a".
8699 # If we're using DLPI, applications will need to
8700 # use /lib/pse.exp if present, as we use the
8703 pseexe="/lib/pse.exp"
8704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $pseexe" >&5
8705 $as_echo_n "checking for $pseexe... " >&6; }
8706 if test -f $pseexe ; then
8707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8708 $as_echo "yes" >&6; }
8715 # If we're using BPF, we need "-lodm" and "-lcfg", as
8716 # we use them to load the BPF module.
8725 V_CCOPT="$V_CCOPT -fno-common"
8726 # Check whether --enable-universal was given.
8727 if test "${enable_universal+set}" = set; then :
8728 enableval=$enable_universal;
8731 if test "$enable_universal" != "no"; then
8736 # Pre-Tiger. Build only for 32-bit PowerPC; no
8737 # need for any special compiler or linker flags.
8741 darwin8.[0123]|darwin8.[0123].*)
8743 # Tiger, prior to Intel support. Build
8744 # libraries and executables for 32-bit PowerPC
8745 # and 64-bit PowerPC, with 32-bit PowerPC first.
8746 # (I'm guessing that's what Apple does.)
8748 # (The double brackets are needed because
8749 # autotools/m4 use brackets as a quoting
8750 # character; the double brackets turn into
8751 # single brackets in the generated configure
8754 V_LIB_CCOPT_FAT="-arch ppc -arch ppc64"
8755 V_LIB_LDFLAGS_FAT="-arch ppc -arch ppc64"
8756 V_PROG_CCOPT_FAT="-arch ppc -arch ppc64"
8757 V_PROG_LDFLAGS_FAT="-arch ppc -arch ppc64"
8760 darwin8.[456]|darwin.[456].*)
8762 # Tiger, subsequent to Intel support but prior
8763 # to x86-64 support. Build libraries and
8764 # executables for 32-bit PowerPC, 64-bit
8765 # PowerPC, and 32-bit x86, with 32-bit PowerPC
8766 # first. (I'm guessing that's what Apple does.)
8768 # (The double brackets are needed because
8769 # autotools/m4 use brackets as a quoting
8770 # character; the double brackets turn into
8771 # single brackets in the generated configure
8774 V_LIB_CCOPT_FAT="-arch ppc -arch ppc64 -arch i386"
8775 V_LIB_LDFLAGS_FAT="-arch ppc -arch ppc64 -arch i386"
8776 V_PROG_CCOPT_FAT="-arch ppc -arch ppc64 -arch i386"
8777 V_PROG_LDFLAGS_FAT="-arch ppc -arch ppc64 -arch i386"
8782 # All other Tiger, so subsequent to x86-64
8783 # support. Build libraries and executables for
8784 # 32-bit PowerPC, 64-bit PowerPC, 32-bit x86,
8785 # and x86-64, with 32-bit PowerPC first. (I'm
8786 # guessing that's what Apple does.)
8788 V_LIB_CCOPT_FAT="-arch ppc -arch ppc64 -arch i386 -arch x86_64"
8789 V_LIB_LDFLAGS_FAT="-arch ppc -arch ppc64 -arch i386 -arch x86_64"
8790 V_PROG_CCOPT_FAT="-arch ppc -arch ppc64 -arch i386 -arch x86_64"
8791 V_PROG_LDFLAGS_FAT="-arch ppc -arch ppc64 -arch i386 -arch x86_64"
8796 # Leopard. Build libraries for 32-bit PowerPC,
8797 # 64-bit PowerPC, 32-bit x86, and x86-64, with
8798 # 32-bit PowerPC first, and build executables
8799 # for 32-bit x86 and 32-bit PowerPC, with 32-bit
8800 # x86 first. (That's what Apple does.)
8802 V_LIB_CCOPT_FAT="-arch ppc -arch ppc64 -arch i386 -arch x86_64"
8803 V_LIB_LDFLAGS_FAT="-arch ppc -arch ppc64 -arch i386 -arch x86_64"
8804 V_PROG_CCOPT_FAT="-arch i386 -arch ppc"
8805 V_PROG_LDFLAGS_FAT="-arch i386 -arch ppc"
8810 # Snow Leopard. Build libraries for x86-64,
8811 # 32-bit x86, and 32-bit PowerPC, with x86-64
8812 # first, and build executables for x86-64 and
8813 # 32-bit x86, with x86-64 first. (That's what
8814 # Apple does, even though Snow Leopard doesn't
8815 # run on PPC, so PPC libpcap runs under Rosetta,
8816 # and Rosetta doesn't support BPF ioctls, so PPC
8817 # programs can't do live captures.)
8819 V_LIB_CCOPT_FAT="-arch x86_64 -arch i386 -arch ppc"
8820 V_LIB_LDFLAGS_FAT="-arch x86_64 -arch i386 -arch ppc"
8821 V_PROG_CCOPT_FAT="-arch x86_64 -arch i386"
8822 V_PROG_LDFLAGS_FAT="-arch x86_64 -arch i386"
8827 # Post-Snow Leopard. Build libraries for x86-64
8828 # and 32-bit x86, with x86-64 first, and build
8829 # executables only for x86-64. (That's what
8830 # Apple does.) This requires no special flags
8832 # XXX - update if and when Apple drops support
8833 # for 32-bit x86 code and if and when Apple adds
8834 # ARM-based Macs. (You're on your own for iOS
8837 # XXX - check whether we *can* build for
8838 # i386 and, if not, suggest that the user
8839 # install the /usr/include headers if they
8840 # want to build fat.
8842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether building for 32-bit x86 is supported" >&5
8843 $as_echo_n "checking whether building for 32-bit x86 is supported... " >&6; }
8844 save_CFLAGS="$CFLAGS"
8845 CFLAGS="$CFLAGS -arch i386"
8846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8847 /* end confdefs.h. */
8857 if ac_fn_c_try_link "$LINENO"; then :
8859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8860 $as_echo "yes" >&6; }
8861 V_LIB_CCOPT_FAT="-arch x86_64"
8862 V_LIB_LDFLAGS_FAT="-arch x86_64"
8865 # OpenSSL installation on macOS seems
8866 # to install only the libs for 64-bit
8867 # x86 - at least that's what Brew does:
8868 # only configure 32-bit builds if we
8869 # don't have OpenSSL.
8871 if test "$HAVE_OPENSSL" != yes; then
8872 V_LIB_CCOPT_FAT="$V_LIB_CCOPT_FAT -arch i386"
8873 V_LIB_LDFLAGS_FAT="$V_LIB_LDFLAGS_FAT -arch i386"
8878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8879 $as_echo "no" >&6; }
8880 V_LIB_CCOPT_FAT="-arch x86_64"
8881 V_LIB_LDFLAGS_FAT="-arch x86_64"
8886 # Mojave; you need to install the
8887 # /usr/include headers to get
8888 # 32-bit x86 builds to work.
8890 { $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
8891 $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;}
8896 # Pre-Mojave; the command-line
8897 # tools should be sufficient to
8898 # enable 32-bit x86 builds.
8900 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Compiling for 32-bit x86 gives an error; try installing the command-line tools" >&5
8901 $as_echo "$as_me: WARNING: Compiling for 32-bit x86 gives an error; try installing the command-line tools" >&2;}
8906 rm -f core conftest.err conftest.$ac_objext \
8907 conftest$ac_exeext conftest.$ac_ext
8908 CFLAGS="$save_CFLAGS"
8916 $as_echo "#define HAVE_HPUX9 1" >>confdefs.h
8920 # Use System V conventions for man pages.
8922 MAN_ADMIN_COMMANDS=1m
8930 # Use System V conventions for man pages.
8932 MAN_ADMIN_COMMANDS=1m
8940 # Use System V conventions for man pages.
8942 MAN_ADMIN_COMMANDS=1m
8949 $as_echo "#define HAVE_HPUX10_20_OR_LATER 1" >>confdefs.h
8951 if test "`uname
-m`" = "ia64"; then
8958 # "-b" builds a shared library; "+h" sets the soname.
8964 # Use System V conventions for man pages.
8972 # Use IRIX conventions for man pages; they're the same as the
8973 # System V conventions, except that they use section 8 for
8974 # administrative commands and daemons.
8980 linux*|freebsd*|netbsd*|openbsd*|dragonfly*|kfreebsd*|gnu*|haiku*|midipix*)
8984 # Compiler assumed to be GCC; run-time linker may require a -R
8987 if test "$libdir" != "/usr/lib"; then
8988 V_RFLAGS=-Wl,-R$libdir
8996 # DEC OSF/1, a/k/a Digial UNIX, a/k/a Tru64 UNIX.
8997 # Use Tru64 UNIX conventions for man pages; they're the same as
8998 # the System V conventions except that they use section 8 for
8999 # administrative commands and daemons.
9007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if SINIX compiler defines sinix" >&5
9008 $as_echo_n "checking if SINIX compiler defines sinix... " >&6; }
9009 if ${ac_cv_cc_sinix_defined+:} false; then :
9010 $as_echo_n "(cached) " >&6
9012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9013 /* end confdefs.h. */
9023 if ac_fn_c_try_compile "$LINENO"; then :
9024 ac_cv_cc_sinix_defined=yes
9026 ac_cv_cc_sinix_defined=no
9028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_sinix_defined" >&5
9032 $as_echo "$ac_cv_cc_sinix_defined" >&6; }
9033 if test $ac_cv_cc_sinix_defined = no ; then
9035 $as_echo "#define sinix 1" >>confdefs.h
9042 $as_echo "#define HAVE_SOLARIS 1" >>confdefs.h
9048 # Make sure errno is thread-safe, in case we're called in
9049 # a multithreaded program. We don't guarantee that two
9050 # threads can use the *same* pcap_t safely, but the
9051 # current version does guarantee that you can use different
9052 # pcap_t's in different threads, and even that pcap_compile()
9053 # is thread-safe (it wasn't thread-safe in some older versions).
9055 V_CCOPT="$V_CCOPT -D_TS_ERRNO"
9057 case "`uname
-r`" in
9064 # Use System V conventions for man pages.
9066 MAN_ADMIN_COMMANDS=1m
9074 # Check whether --enable-shared was given.
9075 if test "${enable_shared+set}" = set; then :
9076 enableval=$enable_shared;
9079 test "x$enable_shared" = "xno" && DYEXT="none"
9081 if test -n "$ac_tool_prefix"; then
9082 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
9083 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
9084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9085 $as_echo_n "checking for $ac_word... " >&6; }
9086 if ${ac_cv_prog_RANLIB+:} false; then :
9087 $as_echo_n "(cached) " >&6
9089 if test -n "$RANLIB"; then
9090 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9096 test -z "$as_dir" && as_dir=.
9097 for ac_exec_ext in '' $ac_executable_extensions; do
9098 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9099 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
9100 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9109 RANLIB=$ac_cv_prog_RANLIB
9110 if test -n "$RANLIB"; then
9111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9112 $as_echo "$RANLIB" >&6; }
9114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9115 $as_echo "no" >&6; }
9120 if test -z "$ac_cv_prog_RANLIB"; then
9121 ac_ct_RANLIB=$RANLIB
9122 # Extract the first word of "ranlib", so it can be a program name with args.
9123 set dummy ranlib; ac_word=$2
9124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9125 $as_echo_n "checking for $ac_word... " >&6; }
9126 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
9127 $as_echo_n "(cached) " >&6
9129 if test -n "$ac_ct_RANLIB"; then
9130 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9136 test -z "$as_dir" && as_dir=.
9137 for ac_exec_ext in '' $ac_executable_extensions; do
9138 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9139 ac_cv_prog_ac_ct_RANLIB="ranlib"
9140 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9149 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
9150 if test -n "$ac_ct_RANLIB"; then
9151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
9152 $as_echo "$ac_ct_RANLIB" >&6; }
9154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9155 $as_echo "no" >&6; }
9158 if test "x$ac_ct_RANLIB" = x; then
9161 case $cross_compiling:$ac_tool_warned in
9163 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9164 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9165 ac_tool_warned=yes ;;
9167 RANLIB=$ac_ct_RANLIB
9170 RANLIB="$ac_cv_prog_RANLIB"
9173 if test -n "$ac_tool_prefix"; then
9174 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
9175 set dummy ${ac_tool_prefix}ar; ac_word=$2
9176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9177 $as_echo_n "checking for $ac_word... " >&6; }
9178 if ${ac_cv_prog_AR+:} false; then :
9179 $as_echo_n "(cached) " >&6
9181 if test -n "$AR"; then
9182 ac_cv_prog_AR="$AR" # Let the user override the test.
9184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9188 test -z "$as_dir" && as_dir=.
9189 for ac_exec_ext in '' $ac_executable_extensions; do
9190 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9191 ac_cv_prog_AR="${ac_tool_prefix}ar"
9192 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9202 if test -n "$AR"; then
9203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
9204 $as_echo "$AR" >&6; }
9206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9207 $as_echo "no" >&6; }
9212 if test -z "$ac_cv_prog_AR"; then
9214 # Extract the first word of "ar", so it can be a program name with args.
9215 set dummy ar; ac_word=$2
9216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9217 $as_echo_n "checking for $ac_word... " >&6; }
9218 if ${ac_cv_prog_ac_ct_AR+:} false; then :
9219 $as_echo_n "(cached) " >&6
9221 if test -n "$ac_ct_AR"; then
9222 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
9224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9228 test -z "$as_dir" && as_dir=.
9229 for ac_exec_ext in '' $ac_executable_extensions; do
9230 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9231 ac_cv_prog_ac_ct_AR="ar"
9232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9241 ac_ct_AR=$ac_cv_prog_ac_ct_AR
9242 if test -n "$ac_ct_AR"; then
9243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
9244 $as_echo "$ac_ct_AR" >&6; }
9246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9247 $as_echo "no" >&6; }
9250 if test "x$ac_ct_AR" = x; then
9253 case $cross_compiling:$ac_tool_warned in
9255 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9256 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9257 ac_tool_warned=yes ;;
9266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
9267 $as_echo_n "checking whether ln -s works... " >&6; }
9269 if test "$LN_S" = "ln -s"; then
9270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9271 $as_echo "yes" >&6; }
9273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
9274 $as_echo "no, using $LN_S" >&6; }
9280 if test "${LBL_CFLAGS+set}" = set; then
9281 V_CCOPT="$V_CCOPT ${LBL_CFLAGS}"
9283 if test -f .devel ; then
9285 # Skip all the warning option stuff on some compilers.
9287 if test "$ac_lbl_cc_dont_try_gcc_dashW" != yes; then
9289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler fails when given an unknown warning option" >&5
9290 $as_echo_n "checking whether the compiler fails when given an unknown warning option... " >&6; }
9291 save_CFLAGS="$CFLAGS"
9292 CFLAGS="$CFLAGS -Wxyzzy-this-will-never-succeed-xyzzy"
9293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9294 /* end confdefs.h. */
9304 if ac_fn_c_try_compile "$LINENO"; then :
9306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9307 $as_echo "no" >&6; }
9309 # We're assuming this is clang, where
9310 # -Werror=unknown-warning-option is the appropriate
9311 # option to force the compiler to fail.
9313 ac_lbl_unknown_warning_option_error="-Werror=unknown-warning-option"
9317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9318 $as_echo "yes" >&6; }
9321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9322 CFLAGS="$save_CFLAGS"
9325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -W option" >&5
9326 $as_echo_n "checking whether the compiler supports the -W option... " >&6; }
9327 save_CFLAGS="$CFLAGS"
9328 if expr "x-W" : "x-W.*" >/dev/null
9330 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -W"
9331 elif expr "x-W" : "x-f.*" >/dev/null
9333 CFLAGS="$CFLAGS -Werror -W"
9334 elif expr "x-W" : "x-m.*" >/dev/null
9336 CFLAGS="$CFLAGS -Werror -W"
9340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9341 /* end confdefs.h. */
9351 if ac_fn_c_try_compile "$LINENO"; then :
9353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9354 $as_echo "yes" >&6; }
9355 can_add_to_cflags=yes
9357 # The compile supports this; do we have some C code for
9358 # which the warning should *not* appear?
9359 # We test the fourth argument because the third argument
9360 # could contain quotes, breaking the test.
9364 CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors"
9365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -W " >&5
9366 $as_echo_n "checking whether -W ... " >&6; }
9367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9368 /* end confdefs.h. */
9371 if ac_fn_c_try_compile "$LINENO"; then :
9376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9377 $as_echo "no" >&6; }
9384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9385 $as_echo "yes" >&6; }
9386 can_add_to_cflags=no
9389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9391 CFLAGS="$save_CFLAGS"
9392 if test x"$can_add_to_cflags" = "xyes"
9394 V_CCOPT="$V_CCOPT -W"
9399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9400 $as_echo "no" >&6; }
9401 CFLAGS="$save_CFLAGS"
9404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wall option" >&5
9408 $as_echo_n "checking whether the compiler supports the -Wall option... " >&6; }
9409 save_CFLAGS="$CFLAGS"
9410 if expr "x-Wall" : "x-W.*" >/dev/null
9412 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wall"
9413 elif expr "x-Wall" : "x-f.*" >/dev/null
9415 CFLAGS="$CFLAGS -Werror -Wall"
9416 elif expr "x-Wall" : "x-m.*" >/dev/null
9418 CFLAGS="$CFLAGS -Werror -Wall"
9420 CFLAGS="$CFLAGS -Wall"
9422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9423 /* end confdefs.h. */
9433 if ac_fn_c_try_compile "$LINENO"; then :
9435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9436 $as_echo "yes" >&6; }
9437 can_add_to_cflags=yes
9439 # The compile supports this; do we have some C code for
9440 # which the warning should *not* appear?
9441 # We test the fourth argument because the third argument
9442 # could contain quotes, breaking the test.
9446 CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors"
9447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wall " >&5
9448 $as_echo_n "checking whether -Wall ... " >&6; }
9449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9450 /* end confdefs.h. */
9453 if ac_fn_c_try_compile "$LINENO"; then :
9458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9459 $as_echo "no" >&6; }
9466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9467 $as_echo "yes" >&6; }
9468 can_add_to_cflags=no
9471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9473 CFLAGS="$save_CFLAGS"
9474 if test x"$can_add_to_cflags" = "xyes"
9476 V_CCOPT="$V_CCOPT -Wall"
9481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9482 $as_echo "no" >&6; }
9483 CFLAGS="$save_CFLAGS"
9486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wcomma option" >&5
9490 $as_echo_n "checking whether the compiler supports the -Wcomma option... " >&6; }
9491 save_CFLAGS="$CFLAGS"
9492 if expr "x-Wcomma" : "x-W.*" >/dev/null
9494 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wcomma"
9495 elif expr "x-Wcomma" : "x-f.*" >/dev/null
9497 CFLAGS="$CFLAGS -Werror -Wcomma"
9498 elif expr "x-Wcomma" : "x-m.*" >/dev/null
9500 CFLAGS="$CFLAGS -Werror -Wcomma"
9502 CFLAGS="$CFLAGS -Wcomma"
9504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9505 /* end confdefs.h. */
9515 if ac_fn_c_try_compile "$LINENO"; then :
9517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9518 $as_echo "yes" >&6; }
9519 can_add_to_cflags=yes
9521 # The compile supports this; do we have some C code for
9522 # which the warning should *not* appear?
9523 # We test the fourth argument because the third argument
9524 # could contain quotes, breaking the test.
9528 CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors"
9529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wcomma " >&5
9530 $as_echo_n "checking whether -Wcomma ... " >&6; }
9531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9532 /* end confdefs.h. */
9535 if ac_fn_c_try_compile "$LINENO"; then :
9540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9541 $as_echo "no" >&6; }
9548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9549 $as_echo "yes" >&6; }
9550 can_add_to_cflags=no
9553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9555 CFLAGS="$save_CFLAGS"
9556 if test x"$can_add_to_cflags" = "xyes"
9558 V_CCOPT="$V_CCOPT -Wcomma"
9563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9564 $as_echo "no" >&6; }
9565 CFLAGS="$save_CFLAGS"
9568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wdocumentation option" >&5
9572 $as_echo_n "checking whether the compiler supports the -Wdocumentation option... " >&6; }
9573 save_CFLAGS="$CFLAGS"
9574 if expr "x-Wdocumentation" : "x-W.*" >/dev/null
9576 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wdocumentation"
9577 elif expr "x-Wdocumentation" : "x-f.*" >/dev/null
9579 CFLAGS="$CFLAGS -Werror -Wdocumentation"
9580 elif expr "x-Wdocumentation" : "x-m.*" >/dev/null
9582 CFLAGS="$CFLAGS -Werror -Wdocumentation"
9584 CFLAGS="$CFLAGS -Wdocumentation"
9586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9587 /* end confdefs.h. */
9597 if ac_fn_c_try_compile "$LINENO"; then :
9599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9600 $as_echo "yes" >&6; }
9601 can_add_to_cflags=yes
9603 # The compile supports this; do we have some C code for
9604 # which the warning should *not* appear?
9605 # We test the fourth argument because the third argument
9606 # could contain quotes, breaking the test.
9610 CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors"
9611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wdocumentation " >&5
9612 $as_echo_n "checking whether -Wdocumentation ... " >&6; }
9613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9614 /* end confdefs.h. */
9617 if ac_fn_c_try_compile "$LINENO"; then :
9622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9623 $as_echo "no" >&6; }
9630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9631 $as_echo "yes" >&6; }
9632 can_add_to_cflags=no
9635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9637 CFLAGS="$save_CFLAGS"
9638 if test x"$can_add_to_cflags" = "xyes"
9640 V_CCOPT="$V_CCOPT -Wdocumentation"
9645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9646 $as_echo "no" >&6; }
9647 CFLAGS="$save_CFLAGS"
9650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wformat-nonliteral option" >&5
9654 $as_echo_n "checking whether the compiler supports the -Wformat-nonliteral option... " >&6; }
9655 save_CFLAGS="$CFLAGS"
9656 if expr "x-Wformat-nonliteral" : "x-W.*" >/dev/null
9658 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wformat-nonliteral"
9659 elif expr "x-Wformat-nonliteral" : "x-f.*" >/dev/null
9661 CFLAGS="$CFLAGS -Werror -Wformat-nonliteral"
9662 elif expr "x-Wformat-nonliteral" : "x-m.*" >/dev/null
9664 CFLAGS="$CFLAGS -Werror -Wformat-nonliteral"
9666 CFLAGS="$CFLAGS -Wformat-nonliteral"
9668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9669 /* end confdefs.h. */
9679 if ac_fn_c_try_compile "$LINENO"; then :
9681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9682 $as_echo "yes" >&6; }
9683 can_add_to_cflags=yes
9685 # The compile supports this; do we have some C code for
9686 # which the warning should *not* appear?
9687 # We test the fourth argument because the third argument
9688 # could contain quotes, breaking the test.
9692 CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors"
9693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wformat-nonliteral " >&5
9694 $as_echo_n "checking whether -Wformat-nonliteral ... " >&6; }
9695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9696 /* end confdefs.h. */
9699 if ac_fn_c_try_compile "$LINENO"; then :
9704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9705 $as_echo "no" >&6; }
9712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9713 $as_echo "yes" >&6; }
9714 can_add_to_cflags=no
9717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9719 CFLAGS="$save_CFLAGS"
9720 if test x"$can_add_to_cflags" = "xyes"
9722 V_CCOPT="$V_CCOPT -Wformat-nonliteral"
9727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9728 $as_echo "no" >&6; }
9729 CFLAGS="$save_CFLAGS"
9732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wmissing-noreturn option" >&5
9736 $as_echo_n "checking whether the compiler supports the -Wmissing-noreturn option... " >&6; }
9737 save_CFLAGS="$CFLAGS"
9738 if expr "x-Wmissing-noreturn" : "x-W.*" >/dev/null
9740 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wmissing-noreturn"
9741 elif expr "x-Wmissing-noreturn" : "x-f.*" >/dev/null
9743 CFLAGS="$CFLAGS -Werror -Wmissing-noreturn"
9744 elif expr "x-Wmissing-noreturn" : "x-m.*" >/dev/null
9746 CFLAGS="$CFLAGS -Werror -Wmissing-noreturn"
9748 CFLAGS="$CFLAGS -Wmissing-noreturn"
9750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9751 /* end confdefs.h. */
9761 if ac_fn_c_try_compile "$LINENO"; then :
9763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9764 $as_echo "yes" >&6; }
9765 can_add_to_cflags=yes
9767 # The compile supports this; do we have some C code for
9768 # which the warning should *not* appear?
9769 # We test the fourth argument because the third argument
9770 # could contain quotes, breaking the test.
9774 CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors"
9775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wmissing-noreturn " >&5
9776 $as_echo_n "checking whether -Wmissing-noreturn ... " >&6; }
9777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9778 /* end confdefs.h. */
9781 if ac_fn_c_try_compile "$LINENO"; then :
9786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9787 $as_echo "no" >&6; }
9794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9795 $as_echo "yes" >&6; }
9796 can_add_to_cflags=no
9799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9801 CFLAGS="$save_CFLAGS"
9802 if test x"$can_add_to_cflags" = "xyes"
9804 V_CCOPT="$V_CCOPT -Wmissing-noreturn"
9809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9810 $as_echo "no" >&6; }
9811 CFLAGS="$save_CFLAGS"
9814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wmissing-prototypes option" >&5
9818 $as_echo_n "checking whether the compiler supports the -Wmissing-prototypes option... " >&6; }
9819 save_CFLAGS="$CFLAGS"
9820 if expr "x-Wmissing-prototypes" : "x-W.*" >/dev/null
9822 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wmissing-prototypes"
9823 elif expr "x-Wmissing-prototypes" : "x-f.*" >/dev/null
9825 CFLAGS="$CFLAGS -Werror -Wmissing-prototypes"
9826 elif expr "x-Wmissing-prototypes" : "x-m.*" >/dev/null
9828 CFLAGS="$CFLAGS -Werror -Wmissing-prototypes"
9830 CFLAGS="$CFLAGS -Wmissing-prototypes"
9832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9833 /* end confdefs.h. */
9843 if ac_fn_c_try_compile "$LINENO"; then :
9845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9846 $as_echo "yes" >&6; }
9847 can_add_to_cflags=yes
9849 # The compile supports this; do we have some C code for
9850 # which the warning should *not* appear?
9851 # We test the fourth argument because the third argument
9852 # could contain quotes, breaking the test.
9856 CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors"
9857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wmissing-prototypes " >&5
9858 $as_echo_n "checking whether -Wmissing-prototypes ... " >&6; }
9859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9860 /* end confdefs.h. */
9863 if ac_fn_c_try_compile "$LINENO"; then :
9868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9869 $as_echo "no" >&6; }
9876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9877 $as_echo "yes" >&6; }
9878 can_add_to_cflags=no
9881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9883 CFLAGS="$save_CFLAGS"
9884 if test x"$can_add_to_cflags" = "xyes"
9886 V_CCOPT="$V_CCOPT -Wmissing-prototypes"
9891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9892 $as_echo "no" >&6; }
9893 CFLAGS="$save_CFLAGS"
9896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wmissing-variable-declarations option" >&5
9900 $as_echo_n "checking whether the compiler supports the -Wmissing-variable-declarations option... " >&6; }
9901 save_CFLAGS="$CFLAGS"
9902 if expr "x-Wmissing-variable-declarations" : "x-W.*" >/dev/null
9904 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wmissing-variable-declarations"
9905 elif expr "x-Wmissing-variable-declarations" : "x-f.*" >/dev/null
9907 CFLAGS="$CFLAGS -Werror -Wmissing-variable-declarations"
9908 elif expr "x-Wmissing-variable-declarations" : "x-m.*" >/dev/null
9910 CFLAGS="$CFLAGS -Werror -Wmissing-variable-declarations"
9912 CFLAGS="$CFLAGS -Wmissing-variable-declarations"
9914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9915 /* end confdefs.h. */
9925 if ac_fn_c_try_compile "$LINENO"; then :
9927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9928 $as_echo "yes" >&6; }
9929 can_add_to_cflags=yes
9931 # The compile supports this; do we have some C code for
9932 # which the warning should *not* appear?
9933 # We test the fourth argument because the third argument
9934 # could contain quotes, breaking the test.
9938 CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors"
9939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wmissing-variable-declarations " >&5
9940 $as_echo_n "checking whether -Wmissing-variable-declarations ... " >&6; }
9941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9942 /* end confdefs.h. */
9945 if ac_fn_c_try_compile "$LINENO"; then :
9950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9951 $as_echo "no" >&6; }
9958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9959 $as_echo "yes" >&6; }
9960 can_add_to_cflags=no
9963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9965 CFLAGS="$save_CFLAGS"
9966 if test x"$can_add_to_cflags" = "xyes"
9968 V_CCOPT="$V_CCOPT -Wmissing-variable-declarations"
9973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9974 $as_echo "no" >&6; }
9975 CFLAGS="$save_CFLAGS"
9978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wpointer-arith option" >&5
9982 $as_echo_n "checking whether the compiler supports the -Wpointer-arith option... " >&6; }
9983 save_CFLAGS="$CFLAGS"
9984 if expr "x-Wpointer-arith" : "x-W.*" >/dev/null
9986 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wpointer-arith"
9987 elif expr "x-Wpointer-arith" : "x-f.*" >/dev/null
9989 CFLAGS="$CFLAGS -Werror -Wpointer-arith"
9990 elif expr "x-Wpointer-arith" : "x-m.*" >/dev/null
9992 CFLAGS="$CFLAGS -Werror -Wpointer-arith"
9994 CFLAGS="$CFLAGS -Wpointer-arith"
9996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9997 /* end confdefs.h. */
10007 if ac_fn_c_try_compile "$LINENO"; then :
10009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10010 $as_echo "yes" >&6; }
10011 can_add_to_cflags=yes
10013 # The compile supports this; do we have some C code for
10014 # which the warning should *not* appear?
10015 # We test the fourth argument because the third argument
10016 # could contain quotes, breaking the test.
10020 CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors"
10021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wpointer-arith " >&5
10022 $as_echo_n "checking whether -Wpointer-arith ... " >&6; }
10023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10024 /* end confdefs.h. */
10027 if ac_fn_c_try_compile "$LINENO"; then :
10032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10033 $as_echo "no" >&6; }
10040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10041 $as_echo "yes" >&6; }
10042 can_add_to_cflags=no
10045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10047 CFLAGS="$save_CFLAGS"
10048 if test x"$can_add_to_cflags" = "xyes"
10050 V_CCOPT="$V_CCOPT -Wpointer-arith"
10055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10056 $as_echo "no" >&6; }
10057 CFLAGS="$save_CFLAGS"
10060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wpointer-sign option" >&5
10064 $as_echo_n "checking whether the compiler supports the -Wpointer-sign option... " >&6; }
10065 save_CFLAGS="$CFLAGS"
10066 if expr "x-Wpointer-sign" : "x-W.*" >/dev/null
10068 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wpointer-sign"
10069 elif expr "x-Wpointer-sign" : "x-f.*" >/dev/null
10071 CFLAGS="$CFLAGS -Werror -Wpointer-sign"
10072 elif expr "x-Wpointer-sign" : "x-m.*" >/dev/null
10074 CFLAGS="$CFLAGS -Werror -Wpointer-sign"
10076 CFLAGS="$CFLAGS -Wpointer-sign"
10078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10079 /* end confdefs.h. */
10089 if ac_fn_c_try_compile "$LINENO"; then :
10091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10092 $as_echo "yes" >&6; }
10093 can_add_to_cflags=yes
10095 # The compile supports this; do we have some C code for
10096 # which the warning should *not* appear?
10097 # We test the fourth argument because the third argument
10098 # could contain quotes, breaking the test.
10102 CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors"
10103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wpointer-sign " >&5
10104 $as_echo_n "checking whether -Wpointer-sign ... " >&6; }
10105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10106 /* end confdefs.h. */
10109 if ac_fn_c_try_compile "$LINENO"; then :
10114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10115 $as_echo "no" >&6; }
10122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10123 $as_echo "yes" >&6; }
10124 can_add_to_cflags=no
10127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10129 CFLAGS="$save_CFLAGS"
10130 if test x"$can_add_to_cflags" = "xyes"
10132 V_CCOPT="$V_CCOPT -Wpointer-sign"
10137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10138 $as_echo "no" >&6; }
10139 CFLAGS="$save_CFLAGS"
10142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wshadow option" >&5
10146 $as_echo_n "checking whether the compiler supports the -Wshadow option... " >&6; }
10147 save_CFLAGS="$CFLAGS"
10148 if expr "x-Wshadow" : "x-W.*" >/dev/null
10150 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wshadow"
10151 elif expr "x-Wshadow" : "x-f.*" >/dev/null
10153 CFLAGS="$CFLAGS -Werror -Wshadow"
10154 elif expr "x-Wshadow" : "x-m.*" >/dev/null
10156 CFLAGS="$CFLAGS -Werror -Wshadow"
10158 CFLAGS="$CFLAGS -Wshadow"
10160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10161 /* end confdefs.h. */
10171 if ac_fn_c_try_compile "$LINENO"; then :
10173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10174 $as_echo "yes" >&6; }
10175 can_add_to_cflags=yes
10177 # The compile supports this; do we have some C code for
10178 # which the warning should *not* appear?
10179 # We test the fourth argument because the third argument
10180 # could contain quotes, breaking the test.
10184 CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors"
10185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wshadow " >&5
10186 $as_echo_n "checking whether -Wshadow ... " >&6; }
10187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10188 /* end confdefs.h. */
10191 if ac_fn_c_try_compile "$LINENO"; then :
10196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10197 $as_echo "no" >&6; }
10204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10205 $as_echo "yes" >&6; }
10206 can_add_to_cflags=no
10209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10211 CFLAGS="$save_CFLAGS"
10212 if test x"$can_add_to_cflags" = "xyes"
10214 V_CCOPT="$V_CCOPT -Wshadow"
10219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10220 $as_echo "no" >&6; }
10221 CFLAGS="$save_CFLAGS"
10224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wsign-compare option" >&5
10228 $as_echo_n "checking whether the compiler supports the -Wsign-compare option... " >&6; }
10229 save_CFLAGS="$CFLAGS"
10230 if expr "x-Wsign-compare" : "x-W.*" >/dev/null
10232 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wsign-compare"
10233 elif expr "x-Wsign-compare" : "x-f.*" >/dev/null
10235 CFLAGS="$CFLAGS -Werror -Wsign-compare"
10236 elif expr "x-Wsign-compare" : "x-m.*" >/dev/null
10238 CFLAGS="$CFLAGS -Werror -Wsign-compare"
10240 CFLAGS="$CFLAGS -Wsign-compare"
10242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10243 /* end confdefs.h. */
10253 if ac_fn_c_try_compile "$LINENO"; then :
10255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10256 $as_echo "yes" >&6; }
10257 can_add_to_cflags=yes
10259 # The compile supports this; do we have some C code for
10260 # which the warning should *not* appear?
10261 # We test the fourth argument because the third argument
10262 # could contain quotes, breaking the test.
10266 CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors"
10267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wsign-compare " >&5
10268 $as_echo_n "checking whether -Wsign-compare ... " >&6; }
10269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10270 /* end confdefs.h. */
10273 if ac_fn_c_try_compile "$LINENO"; then :
10278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10279 $as_echo "no" >&6; }
10286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10287 $as_echo "yes" >&6; }
10288 can_add_to_cflags=no
10291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10293 CFLAGS="$save_CFLAGS"
10294 if test x"$can_add_to_cflags" = "xyes"
10296 V_CCOPT="$V_CCOPT -Wsign-compare"
10301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10302 $as_echo "no" >&6; }
10303 CFLAGS="$save_CFLAGS"
10306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wstrict-prototypes option" >&5
10310 $as_echo_n "checking whether the compiler supports the -Wstrict-prototypes option... " >&6; }
10311 save_CFLAGS="$CFLAGS"
10312 if expr "x-Wstrict-prototypes" : "x-W.*" >/dev/null
10314 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wstrict-prototypes"
10315 elif expr "x-Wstrict-prototypes" : "x-f.*" >/dev/null
10317 CFLAGS="$CFLAGS -Werror -Wstrict-prototypes"
10318 elif expr "x-Wstrict-prototypes" : "x-m.*" >/dev/null
10320 CFLAGS="$CFLAGS -Werror -Wstrict-prototypes"
10322 CFLAGS="$CFLAGS -Wstrict-prototypes"
10324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10325 /* end confdefs.h. */
10335 if ac_fn_c_try_compile "$LINENO"; then :
10337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10338 $as_echo "yes" >&6; }
10339 can_add_to_cflags=yes
10341 # The compile supports this; do we have some C code for
10342 # which the warning should *not* appear?
10343 # We test the fourth argument because the third argument
10344 # could contain quotes, breaking the test.
10348 CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors"
10349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wstrict-prototypes " >&5
10350 $as_echo_n "checking whether -Wstrict-prototypes ... " >&6; }
10351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10352 /* end confdefs.h. */
10355 if ac_fn_c_try_compile "$LINENO"; then :
10360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10361 $as_echo "no" >&6; }
10368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10369 $as_echo "yes" >&6; }
10370 can_add_to_cflags=no
10373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10375 CFLAGS="$save_CFLAGS"
10376 if test x"$can_add_to_cflags" = "xyes"
10378 V_CCOPT="$V_CCOPT -Wstrict-prototypes"
10383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10384 $as_echo "no" >&6; }
10385 CFLAGS="$save_CFLAGS"
10388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wunused-parameter option" >&5
10392 $as_echo_n "checking whether the compiler supports the -Wunused-parameter option... " >&6; }
10393 save_CFLAGS="$CFLAGS"
10394 if expr "x-Wunused-parameter" : "x-W.*" >/dev/null
10396 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wunused-parameter"
10397 elif expr "x-Wunused-parameter" : "x-f.*" >/dev/null
10399 CFLAGS="$CFLAGS -Werror -Wunused-parameter"
10400 elif expr "x-Wunused-parameter" : "x-m.*" >/dev/null
10402 CFLAGS="$CFLAGS -Werror -Wunused-parameter"
10404 CFLAGS="$CFLAGS -Wunused-parameter"
10406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10407 /* end confdefs.h. */
10417 if ac_fn_c_try_compile "$LINENO"; then :
10419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10420 $as_echo "yes" >&6; }
10421 can_add_to_cflags=yes
10423 # The compile supports this; do we have some C code for
10424 # which the warning should *not* appear?
10425 # We test the fourth argument because the third argument
10426 # could contain quotes, breaking the test.
10430 CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors"
10431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wunused-parameter " >&5
10432 $as_echo_n "checking whether -Wunused-parameter ... " >&6; }
10433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10434 /* end confdefs.h. */
10437 if ac_fn_c_try_compile "$LINENO"; then :
10442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10443 $as_echo "no" >&6; }
10450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10451 $as_echo "yes" >&6; }
10452 can_add_to_cflags=no
10455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10457 CFLAGS="$save_CFLAGS"
10458 if test x"$can_add_to_cflags" = "xyes"
10460 V_CCOPT="$V_CCOPT -Wunused-parameter"
10465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10466 $as_echo "no" >&6; }
10467 CFLAGS="$save_CFLAGS"
10470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wused-but-marked-unused option" >&5
10474 $as_echo_n "checking whether the compiler supports the -Wused-but-marked-unused option... " >&6; }
10475 save_CFLAGS="$CFLAGS"
10476 if expr "x-Wused-but-marked-unused" : "x-W.*" >/dev/null
10478 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wused-but-marked-unused"
10479 elif expr "x-Wused-but-marked-unused" : "x-f.*" >/dev/null
10481 CFLAGS="$CFLAGS -Werror -Wused-but-marked-unused"
10482 elif expr "x-Wused-but-marked-unused" : "x-m.*" >/dev/null
10484 CFLAGS="$CFLAGS -Werror -Wused-but-marked-unused"
10486 CFLAGS="$CFLAGS -Wused-but-marked-unused"
10488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10489 /* end confdefs.h. */
10499 if ac_fn_c_try_compile "$LINENO"; then :
10501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10502 $as_echo "yes" >&6; }
10503 can_add_to_cflags=yes
10505 # The compile supports this; do we have some C code for
10506 # which the warning should *not* appear?
10507 # We test the fourth argument because the third argument
10508 # could contain quotes, breaking the test.
10512 CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors"
10513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wused-but-marked-unused " >&5
10514 $as_echo_n "checking whether -Wused-but-marked-unused ... " >&6; }
10515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10516 /* end confdefs.h. */
10519 if ac_fn_c_try_compile "$LINENO"; then :
10524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10525 $as_echo "no" >&6; }
10532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10533 $as_echo "yes" >&6; }
10534 can_add_to_cflags=no
10537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10539 CFLAGS="$save_CFLAGS"
10540 if test x"$can_add_to_cflags" = "xyes"
10542 V_CCOPT="$V_CCOPT -Wused-but-marked-unused"
10547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10548 $as_echo "no" >&6; }
10549 CFLAGS="$save_CFLAGS"
10552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10554 # Warns about safeguards added in case the enums are
10556 # AC_LBL_CHECK_COMPILER_OPT(V_CCOPT, -Wcovered-switch-default)
10558 # This can cause problems with ntohs(), ntohl(),
10559 # htons(), and htonl() on some platforms, such
10560 # as OpenBSD 6.3 with Clang 5.0.1. I guess the
10561 # problem is that the macro that ultimately does
10562 # the byte-swapping involves a conditional
10563 # expression that tests whether the value being
10564 # swapped is a compile-time constant or not,
10565 # using __builtin_constant_p(), and, depending
10566 # on whether it is, does a compile-time swap or
10567 # a run-time swap; perhaps the compiler always
10568 # considers one of the two results of the
10569 # conditional expressin is never evaluated,
10570 # because the conditional check is done at
10571 # compile time, and thus always says "that
10572 # expression is never executed".
10574 # (Perhaps there should be a way of flagging
10575 # an expression that you *want* evaluated at
10576 # compile time, so that the compiler 1) warns
10577 # if it *can't* be evaluated at compile time
10578 # and 2) *doesn't* warn that the true or false
10579 # branch will never be reached.)
10582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wunreachable-code option" >&5
10583 $as_echo_n "checking whether the compiler supports the -Wunreachable-code option... " >&6; }
10584 save_CFLAGS="$CFLAGS"
10585 if expr "x-Wunreachable-code" : "x-W.*" >/dev/null
10587 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wunreachable-code"
10588 elif expr "x-Wunreachable-code" : "x-f.*" >/dev/null
10590 CFLAGS="$CFLAGS -Werror -Wunreachable-code"
10591 elif expr "x-Wunreachable-code" : "x-m.*" >/dev/null
10593 CFLAGS="$CFLAGS -Werror -Wunreachable-code"
10595 CFLAGS="$CFLAGS -Wunreachable-code"
10597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10598 /* end confdefs.h. */
10608 if ac_fn_c_try_compile "$LINENO"; then :
10610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10611 $as_echo "yes" >&6; }
10612 can_add_to_cflags=yes
10614 # The compile supports this; do we have some C code for
10615 # which the warning should *not* appear?
10616 # We test the fourth argument because the third argument
10617 # could contain quotes, breaking the test.
10619 if test "xgenerates warnings from ntohs()" != "x"
10621 CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors"
10622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wunreachable-code generates warnings from ntohs()" >&5
10623 $as_echo_n "checking whether -Wunreachable-code generates warnings from ntohs()... " >&6; }
10624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10625 /* end confdefs.h. */
10626 #include <arpa/inet.h>
10629 testme(unsigned short a)
10635 if ac_fn_c_try_compile "$LINENO"; then :
10640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10641 $as_echo "no" >&6; }
10648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10649 $as_echo "yes" >&6; }
10650 can_add_to_cflags=no
10653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10655 CFLAGS="$save_CFLAGS"
10656 if test x"$can_add_to_cflags" = "xyes"
10658 V_CCOPT="$V_CCOPT -Wunreachable-code"
10663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10664 $as_echo "no" >&6; }
10665 CFLAGS="$save_CFLAGS"
10668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wshorten-64-to-32 option" >&5
10672 $as_echo_n "checking whether the compiler supports the -Wshorten-64-to-32 option... " >&6; }
10673 save_CFLAGS="$CFLAGS"
10674 if expr "x-Wshorten-64-to-32" : "x-W.*" >/dev/null
10676 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wshorten-64-to-32"
10677 elif expr "x-Wshorten-64-to-32" : "x-f.*" >/dev/null
10679 CFLAGS="$CFLAGS -Werror -Wshorten-64-to-32"
10680 elif expr "x-Wshorten-64-to-32" : "x-m.*" >/dev/null
10682 CFLAGS="$CFLAGS -Werror -Wshorten-64-to-32"
10684 CFLAGS="$CFLAGS -Wshorten-64-to-32"
10686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10687 /* end confdefs.h. */
10697 if ac_fn_c_try_compile "$LINENO"; then :
10699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10700 $as_echo "yes" >&6; }
10701 can_add_to_cflags=yes
10703 # The compile supports this; do we have some C code for
10704 # which the warning should *not* appear?
10705 # We test the fourth argument because the third argument
10706 # could contain quotes, breaking the test.
10710 CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors"
10711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wshorten-64-to-32 " >&5
10712 $as_echo_n "checking whether -Wshorten-64-to-32 ... " >&6; }
10713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10714 /* end confdefs.h. */
10717 if ac_fn_c_try_compile "$LINENO"; then :
10722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10723 $as_echo "no" >&6; }
10730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10731 $as_echo "yes" >&6; }
10732 can_add_to_cflags=no
10735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10737 CFLAGS="$save_CFLAGS"
10738 if test x"$can_add_to_cflags" = "xyes"
10740 V_CCOPT="$V_CCOPT -Wshorten-64-to-32"
10745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10746 $as_echo "no" >&6; }
10747 CFLAGS="$save_CFLAGS"
10750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports generating dependencies" >&5
10755 $as_echo_n "checking whether the compiler supports generating dependencies... " >&6; }
10756 if test "$GCC" = yes ; then
10758 # GCC, or a compiler deemed to be GCC by AC_PROG_CC (even
10759 # though it's not); we assume that, in this case, the flag
10762 ac_lbl_dependency_flag="-M"
10765 # Not GCC or a compiler deemed to be GCC; what platform is
10766 # this? (We're assuming that if the compiler isn't GCC
10767 # it's the compiler from the vendor of the OS; that won't
10768 # necessarily be true for x86 platforms, where it might be
10769 # the Intel C compiler.)
10773 irix*|osf*|darwin*)
10775 # MIPS C for IRIX, DEC C, and clang all use -M.
10777 ac_lbl_dependency_flag="-M"
10784 ac_lbl_dependency_flag="-xM"
10789 # HP's older C compilers don't support this.
10790 # HP's newer C compilers support this with
10791 # either +M or +Make; the older compilers
10792 # interpret +M as something completely
10793 # different, so we use +Make so we don't
10794 # think it works with the older compilers.
10796 ac_lbl_dependency_flag="+Make"
10801 # Not one of the above; assume no support for
10802 # generating dependencies.
10804 ac_lbl_dependency_flag=""
10810 # Is ac_lbl_dependency_flag defined and, if so, does the compiler
10811 # complain about it?
10813 # Note: clang doesn't seem to exit with an error status when handed
10814 # an unknown non-warning error, even if you pass it
10815 # -Werror=unknown-warning-option. However, it always supports
10816 # -M, so the fact that this test always succeeds with clang
10819 if test ! -z "$ac_lbl_dependency_flag"; then
10820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10821 /* end confdefs.h. */
10822 int main(void) { return 0; }
10824 if { { $as_echo "$as_me:${as_lineno-$LINENO}: eval \"\$CC \$ac_lbl_dependency_flag conftest.c >/dev/null 2>&1\""; } >&5
10825 (eval "$CC $ac_lbl_dependency_flag conftest.c >/dev/null 2>&1") 2>&5
10827 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10828 test $ac_status = 0; }; then
10829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, with $ac_lbl_dependency_flag" >&5
10830 $as_echo "yes, with $ac_lbl_dependency_flag" >&6; }
10831 DEPENDENCY_CFLAG="$ac_lbl_dependency_flag"
10832 MKDEP='${top_srcdir}/mkdep'
10834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10835 $as_echo "no" >&6; }
10837 # We can't run mkdep, so have "make depend" do
10840 MKDEP='${top_srcdir}/nomkdep'
10844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10845 $as_echo "no" >&6; }
10847 # We can't run mkdep, so have "make depend" do
10850 MKDEP='${top_srcdir}/nomkdep'
10856 # We used to set -n32 for IRIX 6 when not using GCC (presumed
10857 # to mean that we're using MIPS C or MIPSpro C); it specified
10858 # the "new" faster 32-bit ABI, introduced in IRIX 6.2. I'm
10859 # not sure why that would be something to do *only* with a
10860 # .devel file; why should the ABI for which we produce code
10861 # depend on .devel?
10863 os=`echo $host_os |
sed -e 's/\([0-9][0-9]*\)[^0-9].*$/\1/'`
10864 name="lbl/os-$os.h"
10865 if test -f $name ; then
10866 ln -s $name os-proto.h
10868 $as_echo "#define HAVE_OS_PROTO_H 1" >>confdefs.h
10871 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: can't find $name" >&5
10872 $as_echo "$as_me: WARNING: can't find $name" >&2;}
10877 # Check to see if the sockaddr struct has the 4.4 BSD sa_len member.
10879 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "
10880 #include <sys/types.h>
10881 #include <sys/socket.h>
10884 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
10886 cat >>confdefs.h <<_ACEOF
10887 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
10895 # Check to see if there's a sockaddr_storage structure.
10897 ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "
10898 #include <sys/types.h>
10899 #include <sys/socket.h>
10902 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
10904 cat >>confdefs.h <<_ACEOF
10905 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
10913 # Check to see if the dl_hp_ppa_info_t struct has the HP-UX 11.00
10914 # dl_module_id_1 member.
10916 # NOTE: any failure means we conclude that it doesn't have that member,
10917 # so if we don't have DLPI, don't have a <sys/dlpi_ext.h> header, or
10918 # have one that doesn't declare a dl_hp_ppa_info_t type, we conclude
10919 # it doesn't have that member (which is OK, as either we won't be
10920 # using code that would use that member, or we wouldn't compile in
10923 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" "
10924 #include <sys/types.h>
10925 #include <sys/dlpi.h>
10926 #include <sys/dlpi_ext.h>
10929 if test "x$ac_cv_member_dl_hp_ppa_info_t_dl_module_id_1" = xyes; then :
10931 cat >>confdefs.h <<_ACEOF
10932 #define HAVE_DL_HP_PPA_INFO_T_DL_MODULE_ID_1 1
10971 # Various Linux-specific mechanisms.
10973 # Check whether --enable-usb was given.
10974 if test "${enable_usb+set}" = set; then :
10975 enableval=$enable_usb;
10982 # If somebody requested an XXX-only pcap, that doesn't include
10983 # additional mechanisms.
10985 if test "xxx_only" != yes; then
10988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux usbmon USB sniffing support" >&5
10989 $as_echo_n "checking for Linux usbmon USB sniffing support... " >&6; }
10990 if test "x$enable_usb" != "xno" ; then
10992 $as_echo "#define PCAP_SUPPORT_LINUX_USBMON 1" >>confdefs.h
10994 MODULE_C_SRC="$MODULE_C_SRC pcap-usb-linux.c"
10995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10996 $as_echo "yes" >&6; }
10997 ac_usb_dev_name=`udevinfo
-q name
-p /sys
/class
/usb_device
/usbmon
2>/dev
/null
`
10998 if test $? -ne 0 ; then
10999 ac_usb_dev_name="usbmon"
11002 cat >>confdefs.h <<_ACEOF
11003 #define LINUX_USB_MON_DEV "/dev/$ac_usb_dev_name"
11006 { $as_echo "$as_me:${as_lineno-$LINENO}: Device for USB sniffing is /dev/$ac_usb_dev_name" >&5
11007 $as_echo "$as_me: Device for USB sniffing is /dev/$ac_usb_dev_name" >&6;}
11009 # Do we have a version of <linux/compiler.h> available?
11010 # If so, we might need it for <linux/usbdevice_fs.h>.
11012 for ac_header in linux/compiler.h
11014 ac_fn_c_check_header_mongrel "$LINENO" "linux/compiler.h" "ac_cv_header_linux_compiler_h" "$ac_includes_default"
11015 if test "x$ac_cv_header_linux_compiler_h" = xyes; then :
11016 cat >>confdefs.h <<_ACEOF
11017 #define HAVE_LINUX_COMPILER_H 1
11024 if test "$ac_cv_header_linux_compiler_h" = yes; then
11026 # Yes - include it when testing for <linux/usbdevice_fs.h>.
11028 for ac_header in linux/usbdevice_fs.h
11030 ac_fn_c_check_header_compile "$LINENO" "linux/usbdevice_fs.h" "ac_cv_header_linux_usbdevice_fs_h" "#include <linux/compiler.h>
11032 if test "x$ac_cv_header_linux_usbdevice_fs_h" = xyes; then :
11033 cat >>confdefs.h <<_ACEOF
11034 #define HAVE_LINUX_USBDEVICE_FS_H 1
11042 for ac_header in linux/usbdevice_fs.h
11044 ac_fn_c_check_header_mongrel "$LINENO" "linux/usbdevice_fs.h" "ac_cv_header_linux_usbdevice_fs_h" "$ac_includes_default"
11045 if test "x$ac_cv_header_linux_usbdevice_fs_h" = xyes; then :
11046 cat >>confdefs.h <<_ACEOF
11047 #define HAVE_LINUX_USBDEVICE_FS_H 1
11055 if test "$ac_cv_header_linux_usbdevice_fs_h" = yes; then
11057 # OK, does it define bRequestType? Older versions of the kernel
11058 # define fields with names like "requesttype, "request", and
11059 # "value", rather than "bRequestType", "bRequest", and
11062 ac_fn_c_check_member "$LINENO" "struct usbdevfs_ctrltransfer" "bRequestType" "ac_cv_member_struct_usbdevfs_ctrltransfer_bRequestType" "
11063 $ac_includes_default
11064 #ifdef HAVE_LINUX_COMPILER_H
11065 #include <linux/compiler.h>
11067 #include <linux/usbdevice_fs.h>
11070 if test "x$ac_cv_member_struct_usbdevfs_ctrltransfer_bRequestType" = xyes; then :
11072 cat >>confdefs.h <<_ACEOF
11073 #define HAVE_STRUCT_USBDEVFS_CTRLTRANSFER_BREQUESTTYPE 1
11081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11082 $as_echo "no" >&6; }
11086 # Life's too short to deal with trying to get this to compile
11087 # if you don't get the right types defined with
11088 # __KERNEL_STRICT_NAMES getting defined by some other include.
11090 # Check whether the includes Just Work. If not, don't turn on
11091 # netfilter support.
11093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can compile the netfilter support" >&5
11094 $as_echo_n "checking whether we can compile the netfilter support... " >&6; }
11095 if ${ac_cv_netfilter_can_compile+:} false; then :
11096 $as_echo_n "(cached) " >&6
11098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11099 /* end confdefs.h. */
11101 $ac_includes_default
11102 #include <sys/socket.h>
11103 #include <netinet/in.h>
11104 #include <linux/types.h>
11106 #include <linux/netlink.h>
11107 #include <linux/netfilter.h>
11108 #include <linux/netfilter/nfnetlink.h>
11109 #include <linux/netfilter/nfnetlink_log.h>
11110 #include <linux/netfilter/nfnetlink_queue.h>
11119 if ac_fn_c_try_compile "$LINENO"; then :
11120 ac_cv_netfilter_can_compile=yes
11122 ac_cv_netfilter_can_compile=no
11124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_netfilter_can_compile" >&5
11128 $as_echo "$ac_cv_netfilter_can_compile" >&6; }
11129 if test $ac_cv_netfilter_can_compile = yes ; then
11131 $as_echo "#define PCAP_SUPPORT_NETFILTER 1" >>confdefs.h
11133 MODULE_C_SRC="$MODULE_C_SRC pcap-netfilter-linux.c"
11141 # Check whether --enable-netmap was given.
11142 if test "${enable_netmap+set}" = set; then :
11143 enableval=$enable_netmap;
11149 if test "x$enable_netmap" != "xno" ; then
11151 # Check whether net/netmap_user.h is usable if NETMAP_WITH_LIBS is
11152 # defined; it's not usable on DragonFly BSD 4.6 if NETMAP_WITH_LIBS
11153 # is defined, for example, as it includes a non-existent malloc.h
11156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can compile the netmap support" >&5
11157 $as_echo_n "checking whether we can compile the netmap support... " >&6; }
11158 if ${ac_cv_net_netmap_user_can_compile+:} false; then :
11159 $as_echo_n "(cached) " >&6
11161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11162 /* end confdefs.h. */
11164 $ac_includes_default
11165 #define NETMAP_WITH_LIBS
11166 #include <net/netmap_user.h>
11175 if ac_fn_c_try_compile "$LINENO"; then :
11176 ac_cv_net_netmap_user_can_compile=yes
11178 ac_cv_net_netmap_user_can_compile=no
11180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_net_netmap_user_can_compile" >&5
11184 $as_echo "$ac_cv_net_netmap_user_can_compile" >&6; }
11185 if test $ac_cv_net_netmap_user_can_compile = yes ; then
11187 $as_echo "#define PCAP_SUPPORT_NETMAP 1" >>confdefs.h
11189 MODULE_C_SRC="$MODULE_C_SRC pcap-netmap.c"
11194 # Check for DPDK support.
11196 # Check whether --with-dpdk was given.
11197 if test "${with_dpdk+set}" = set; then :
11198 withval=$with_dpdk;
11199 if test "$withval" = no
11201 # User doesn't want DPDK support.
11203 elif test "$withval" = yes
11205 # User wants DPDK support but hasn't specified a directory.
11208 # User wants DPDK support and has specified a directory,
11209 # so use the provided value.
11216 if test "$V_PCAP" = dpdk; then
11217 # User requested DPDK-only libpcap, so we'd better have
11220 elif test "xxx_only" = yes; then
11221 # User requested something-else-only pcap, so they don't
11222 # want DPDK support.
11226 # Use DPDK API if present, otherwise don't
11228 want_dpdk=ifpresent
11234 if test "$want_dpdk" != no; then
11235 if test -z "$dpdk_dir"; then
11237 # The user didn't specify a directory containing
11238 # the DPDK headers and libraries. If we find
11239 # a /usr/local/include/dpdk directory, assume
11240 # it's /usr/local, otherwise assume it's /usr.
11242 if test -d "/usr/local/include/dpdk"; then
11243 dpdk_dir="/usr/local"
11249 # The convention appears to be that 1) there's a "dpdk"
11250 # subdirectory of the include directory, containing DPDK
11251 # headers (at least in the installation on Ubuntu with
11252 # the system DPDK packages) and 2) includes of DPDK
11253 # headers don't use "dpdk/{header}" (at least from the
11254 # way the DPDK documentation is written).
11256 # So we add "/dpdk" to the include directory, and always
11257 # add that to the list of include directories to search.
11259 dpdk_inc_dir="$dpdk_dir/include/dpdk"
11260 dpdk_lib_dir="$dpdk_dir/lib"
11261 DPDK_MACHINE_CFLAGS="-march=native"
11262 DPDK_CFLAGS="$DPDK_MACHINE_CFLAGS -I$dpdk_inc_dir"
11263 DPDK_LDFLAGS="-L$dpdk_lib_dir -ldpdk -lrt -lm -lnuma -ldl -pthread"
11265 save_CFLAGS="$CFLAGS"
11267 save_LDFLAGS="$LDFLAGS"
11268 CFLAGS="$CFLAGS $DPDK_CFLAGS"
11269 LIBS="$LIBS $DPDK_LDFLAGS"
11270 LDFLAGS="$LDFLAGS $DPDK_LDFLAGS"
11272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can compile the DPDK support" >&5
11273 $as_echo_n "checking whether we can compile the DPDK support... " >&6; }
11274 if ${ac_cv_dpdk_can_compile+:} false; then :
11275 $as_echo_n "(cached) " >&6
11277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11278 /* end confdefs.h. */
11280 $ac_includes_default
11281 #include <rte_common.h>
11290 if ac_fn_c_try_compile "$LINENO"; then :
11291 ac_cv_dpdk_can_compile=yes
11293 ac_cv_dpdk_can_compile=no
11295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_dpdk_can_compile" >&5
11299 $as_echo "$ac_cv_dpdk_can_compile" >&6; }
11302 # We include rte_bus.h, and older versions of DPDK
11303 # didn't have it, so check for it.
11305 if test "$ac_cv_dpdk_can_compile" = yes; then
11306 for ac_header in rte_bus.h
11308 ac_fn_c_check_header_mongrel "$LINENO" "rte_bus.h" "ac_cv_header_rte_bus_h" "$ac_includes_default"
11309 if test "x$ac_cv_header_rte_bus_h" = xyes; then :
11310 cat >>confdefs.h <<_ACEOF
11311 #define HAVE_RTE_BUS_H 1
11320 CFLAGS="$save_CFLAGS"
11322 LDFLAGS="$save_LDFLAGS"
11324 if test "$ac_cv_header_rte_bus_h" = yes; then
11325 CFLAGS="$CFLAGS $DPDK_CFLAGS"
11326 LIBS="$LIBS $DPDK_LDFLAGS"
11327 LDFLAGS="$LDFLAGS $DPDK_LDFLAGS"
11328 V_INCLS="$V_INCLS $DPDK_CFLAGS"
11330 $as_echo "#define PCAP_SUPPORT_DPDK 1" >>confdefs.h
11332 if test $V_PCAP != dpdk ; then
11333 MODULE_C_SRC="$MODULE_C_SRC pcap-dpdk.c"
11336 if test "$V_PCAP" = dpdk; then
11337 # User requested "dpdk" capture type but we couldn't
11338 # find the DPDK API support.
11339 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
11342 if test "$want_dpdk" = yes; then
11343 # User wanted DPDK support but we couldn't find it.
11344 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
11350 # Check whether --enable-bluetooth was given.
11351 if test "${enable_bluetooth+set}" = set; then :
11352 enableval=$enable_bluetooth;
11354 enable_bluetooth=ifsupportavailable
11358 if test "xxx_only" = yes; then
11359 # User requested something-else-only pcap, so they don't
11360 # want Bluetooth support.
11361 enable_bluetooth=no
11364 if test "x$enable_bluetooth" != "xno" ; then
11367 ac_fn_c_check_header_mongrel "$LINENO" "bluetooth/bluetooth.h" "ac_cv_header_bluetooth_bluetooth_h" "$ac_includes_default"
11368 if test "x$ac_cv_header_bluetooth_bluetooth_h" = xyes; then :
11371 # We have bluetooth.h, so we support Bluetooth
11375 $as_echo "#define PCAP_SUPPORT_BT 1" >>confdefs.h
11377 MODULE_C_SRC="$MODULE_C_SRC pcap-bt-linux.c"
11378 { $as_echo "$as_me:${as_lineno-$LINENO}: Bluetooth sniffing is supported" >&5
11379 $as_echo "$as_me: Bluetooth sniffing is supported" >&6;}
11380 ac_lbl_bluetooth_available=yes
11383 # OK, does struct sockaddr_hci have an hci_channel
11386 ac_fn_c_check_member "$LINENO" "struct sockaddr_hci" "hci_channel" "ac_cv_member_struct_sockaddr_hci_hci_channel" "
11387 #include <bluetooth/bluetooth.h>
11388 #include <bluetooth/hci.h>
11391 if test "x$ac_cv_member_struct_sockaddr_hci_hci_channel" = xyes; then :
11393 cat >>confdefs.h <<_ACEOF
11394 #define HAVE_STRUCT_SOCKADDR_HCI_HCI_CHANNEL 1
11399 # Yes; is HCI_CHANNEL_MONITOR defined?
11401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if HCI_CHANNEL_MONITOR is defined" >&5
11402 $as_echo_n "checking if HCI_CHANNEL_MONITOR is defined... " >&6; }
11403 if ${ac_cv_lbl_hci_channel_monitor_is_defined+:} false; then :
11404 $as_echo_n "(cached) " >&6
11406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11407 /* end confdefs.h. */
11409 #include <bluetooth/bluetooth.h>
11410 #include <bluetooth/hci.h>
11416 u_int i = HCI_CHANNEL_MONITOR;
11422 if ac_fn_c_try_compile "$LINENO"; then :
11424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11425 $as_echo "yes" >&6; }
11427 $as_echo "#define PCAP_SUPPORT_BT_MONITOR /**/" >>confdefs.h
11429 MODULE_C_SRC="$MODULE_C_SRC pcap-bt-monitor-linux.c"
11433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11434 $as_echo "no" >&6; }
11437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11447 # We don't have bluetooth.h, so we don't support
11448 # Bluetooth sniffing.
11450 if test "x$enable_bluetooth" = "xyes" ; then
11451 as_fn_error $? "Bluetooth sniffing is not supported; install bluez-lib devel to enable it" "$LINENO" 5
11453 { $as_echo "$as_me:${as_lineno-$LINENO}: Bluetooth sniffing is not supported; install bluez-lib devel to enable it" >&5
11454 $as_echo "$as_me: Bluetooth sniffing is not supported; install bluez-lib devel to enable it" >&6;}
11462 if test "x$enable_bluetooth" = "xyes" ; then
11463 as_fn_error $? "no Bluetooth sniffing support implemented for $host_os" "$LINENO" 5
11465 { $as_echo "$as_me:${as_lineno-$LINENO}: no Bluetooth sniffing support implemented for $host_os" >&5
11466 $as_echo "$as_me: no Bluetooth sniffing support implemented for $host_os" >&6;}
11473 # Check whether --enable-dbus was given.
11474 if test "${enable_dbus+set}" = set; then :
11475 enableval=$enable_dbus;
11477 enable_dbus=ifavailable
11481 if test "xxx_only" = yes; then
11482 # User requested something-else-only pcap, so they don't
11483 # want D-Bus support.
11487 if test "x$enable_dbus" != "xno"; then
11488 if test "x$enable_dbus" = "xyes"; then
11493 # We don't support D-Bus sniffing on macOS; see
11495 # https://bugs.freedesktop.org/show_bug.cgi?id=74029
11497 # The user requested it, so fail.
11499 as_fn_error $? "Due to freedesktop.org bug 74029, D-Bus capture support is not available on macOS" "$LINENO" 5
11506 # We don't support D-Bus sniffing on macOS; see
11508 # https://bugs.freedesktop.org/show_bug.cgi?id=74029
11510 # The user dind't explicitly request it, so just
11511 # silently refuse to enable it.
11519 if test "x$enable_dbus" != "xno"; then
11520 if test "x$PKGCONFIG" != "xno"; then
11521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for D-Bus" >&5
11522 $as_echo_n "checking for D-Bus... " >&6; }
11523 if "$PKGCONFIG" dbus-1; then
11524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11525 $as_echo "yes" >&6; }
11526 DBUS_CFLAGS=`"$PKGCONFIG" --cflags dbus-1
`
11527 DBUS_LIBS=`"$PKGCONFIG" --libs dbus-1
`
11528 save_CFLAGS="$CFLAGS"
11530 CFLAGS="$CFLAGS $DBUS_CFLAGS"
11531 LIBS="$LIBS $DBUS_LIBS"
11532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the D-Bus library defines dbus_connection_read_write" >&5
11533 $as_echo_n "checking whether the D-Bus library defines dbus_connection_read_write... " >&6; }
11534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11535 /* end confdefs.h. */
11536 #include <string.h>
11539 #include <sys/time.h>
11541 #include <dbus/dbus.h>
11545 return dbus_connection_read_write(NULL, 0);
11550 if ac_fn_c_try_link "$LINENO"; then :
11552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11553 $as_echo "yes" >&6; }
11555 $as_echo "#define PCAP_SUPPORT_DBUS 1" >>confdefs.h
11557 MODULE_C_SRC="$MODULE_C_SRC pcap-dbus.c"
11558 V_INCLS="$V_INCLS $DBUS_CFLAGS"
11562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11563 $as_echo "no" >&6; }
11564 if test "x$enable_dbus" = "xyes"; then
11565 as_fn_error $? "--enable-dbus was given, but the D-Bus library doesn't define dbus_connection_read_write()" "$LINENO" 5
11570 rm -f core conftest.err conftest.$ac_objext \
11571 conftest$ac_exeext conftest.$ac_ext
11572 CFLAGS="$save_CFLAGS"
11574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11575 $as_echo "no" >&6; }
11576 if test "x$enable_dbus" = "xyes"; then
11577 as_fn_error $? "--enable-dbus was given, but the dbus-1 package is not installed" "$LINENO" 5
11584 # Check whether --enable-rdma was given.
11585 if test "${enable_rdma+set}" = set; then :
11586 enableval=$enable_rdma;
11588 enable_rdma=ifavailable
11592 if test "xxx_only" = yes; then
11593 # User requested something-else-only pcap, so they don't
11594 # want RDMA support.
11598 if test "x$enable_rdma" != "xno"; then
11599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ibv_get_device_list in -libverbs" >&5
11600 $as_echo_n "checking for ibv_get_device_list in -libverbs... " >&6; }
11601 if ${ac_cv_lib_ibverbs_ibv_get_device_list+:} false; then :
11602 $as_echo_n "(cached) " >&6
11604 ac_check_lib_save_LIBS=$LIBS
11605 LIBS="-libverbs $LIBS"
11606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11607 /* end confdefs.h. */
11609 /* Override any GCC internal prototype to avoid an error.
11610 Use char because int might match the return type of a GCC
11611 builtin and then its argument prototype would still apply. */
11615 char ibv_get_device_list ();
11619 return ibv_get_device_list ();
11624 if ac_fn_c_try_link "$LINENO"; then :
11625 ac_cv_lib_ibverbs_ibv_get_device_list=yes
11627 ac_cv_lib_ibverbs_ibv_get_device_list=no
11629 rm -f core conftest.err conftest.$ac_objext \
11630 conftest$ac_exeext conftest.$ac_ext
11631 LIBS=$ac_check_lib_save_LIBS
11633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ibverbs_ibv_get_device_list" >&5
11634 $as_echo "$ac_cv_lib_ibverbs_ibv_get_device_list" >&6; }
11635 if test "x$ac_cv_lib_ibverbs_ibv_get_device_list" = xyes; then :
11637 ac_fn_c_check_header_mongrel "$LINENO" "infiniband/verbs.h" "ac_cv_header_infiniband_verbs_h" "$ac_includes_default"
11638 if test "x$ac_cv_header_infiniband_verbs_h" = xyes; then :
11641 # ibv_create_flow may be defined as a static inline
11642 # function in infiniband/verbs.h, so we can't
11643 # use AC_CHECK_LIB.
11645 # Too bad autoconf has no AC_SYMBOL_EXISTS()
11646 # macro that works like CMake's check_symbol_exists()
11647 # function, to check do a compile check like
11648 # this (they do a clever trick to avoid having
11649 # to know the function's signature).
11651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libibverbs defines ibv_create_flow" >&5
11652 $as_echo_n "checking whether libibverbs defines ibv_create_flow... " >&6; }
11653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11654 /* end confdefs.h. */
11656 #include <infiniband/verbs.h>
11662 (void) ibv_create_flow((struct ibv_qp *) NULL,
11663 (struct ibv_flow_attr *) NULL);
11669 if ac_fn_c_try_link "$LINENO"; then :
11671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11672 $as_echo "yes" >&6; }
11674 $as_echo "#define PCAP_SUPPORT_RDMASNIFF /**/" >>confdefs.h
11676 MODULE_C_SRC="$MODULE_C_SRC pcap-rdmasniff.c"
11677 LIBS="-libverbs $LIBS"
11681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11682 $as_echo "no" >&6; }
11686 rm -f core conftest.err conftest.$ac_objext \
11687 conftest$ac_exeext conftest.$ac_ext
11698 # Find a good install program. We prefer a C program (faster),
11699 # so one script is as good as another. But avoid the broken or
11700 # incompatible versions:
11701 # SysV /etc/install, /usr/sbin/install
11702 # SunOS /usr/etc/install
11703 # IRIX /sbin/install
11705 # AmigaOS /C/install, which installs bootblocks on floppy discs
11706 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
11707 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
11708 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
11709 # OS/2's system install, which has a completely different semantic
11710 # ./install, which can be erroneously created by make from ./install.sh.
11711 # Reject install programs that cannot install multiple files.
11712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
11713 $as_echo_n "checking for a BSD-compatible install... " >&6; }
11714 if test -z "$INSTALL"; then
11715 if ${ac_cv_path_install+:} false; then :
11716 $as_echo_n "(cached) " >&6
11718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11719 for as_dir in $PATH
11722 test -z "$as_dir" && as_dir=.
11723 # Account for people who put trailing slashes in PATH elements.
11724 case $as_dir/ in #((
11725 ./ | .// | /[cC]/* | \
11726 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
11727 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
11730 # OSF1 and SCO ODT 3.0 have their own names for install.
11731 # Don't use installbsd from OSF since it installs stuff as root
11733 for ac_prog in ginstall scoinst install; do
11734 for ac_exec_ext in '' $ac_executable_extensions; do
11735 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
11736 if test $ac_prog = install &&
11737 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11738 # AIX install. It has an incompatible calling convention.
11740 elif test $ac_prog = install &&
11741 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11742 # program-specific install script used by HP pwplus--don't use.
11745 rm -rf conftest.one conftest.two conftest.dir
11746 echo one > conftest.one
11747 echo two > conftest.two
11749 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
11750 test -s conftest.one && test -s conftest.two &&
11751 test -s conftest.dir/conftest.one &&
11752 test -s conftest.dir/conftest.two
11754 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11767 rm -rf conftest.one conftest.two conftest.dir
11770 if test "${ac_cv_path_install+set}" = set; then
11771 INSTALL=$ac_cv_path_install
11773 # As a last resort, use the slow shell script. Don't cache a
11774 # value for INSTALL within a source directory, because that will
11775 # break other packages using the cache if that directory is
11776 # removed, or if the value is a relative name.
11777 INSTALL=$ac_install_sh
11780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
11781 $as_echo "$INSTALL" >&6; }
11783 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11784 # It thinks the first close brace ends the variable substitution.
11785 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
11787 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
11789 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
11792 ac_config_headers="$ac_config_headers config.h"
11795 ac_config_commands="$ac_config_commands default-1"
11797 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"
11799 cat >confcache <<\_ACEOF
11800 # This file is a shell script that caches the results of configure
11801 # tests run on this system so they can be shared between configure
11802 # scripts and configure runs, see configure's option --config-cache.
11803 # It is not useful on other systems. If it contains results you don't
11804 # want to keep, you may remove or edit it.
11806 # config.status only pays attention to the cache file if you give it
11807 # the --recheck option to rerun configure.
11809 # `ac_cv_env_foo
' variables (set or unset) will be overridden when
11810 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11811 # following values.
11815 # The following way of writing the cache mishandles newlines in values,
11816 # but we know of no workaround that is simple, portable, and efficient.
11817 # So, we kill variables containing newlines.
11818 # Ultrix sh set writes to stderr and can't be redirected directly,
11819 # and sets the high bit in the cache file unless we assign to the vars.
11821 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11822 eval ac_val
=\$
$ac_var
11826 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11827 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11830 _ | IFS | as_nl
) ;; #(
11831 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
11832 *) { eval $ac_var=; unset $ac_var;} ;;
11838 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11839 *${as_nl}ac_space
=\
*)
11840 # `set' does not quote correctly, so add quotes: double-quote
11841 # substitution turns \\\\ into \\, and sed turns \\ into \.
11844 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11847 # `set' quotes correctly as required by POSIX, so do not add quotes.
11848 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11857 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11859 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11861 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
11862 if test -w "$cache_file"; then
11863 if test "x$cache_file" != "x/dev/null"; then
11864 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11865 $as_echo "$as_me: updating cache $cache_file" >&6;}
11866 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
11867 cat confcache
>"$cache_file"
11869 case $cache_file in #(
11871 mv -f confcache
"$cache_file"$$
&&
11872 mv -f "$cache_file"$$
"$cache_file" ;; #(
11874 mv -f confcache
"$cache_file" ;;
11879 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11880 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11885 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
11886 # Let make expand exec_prefix.
11887 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
11889 DEFS
=-DHAVE_CONFIG_H
11894 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
11895 # 1. Remove the extension, and $U if already installed.
11896 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
11897 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
11898 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11899 # will be set to the directory where LIBOBJS objects are built.
11900 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11901 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
11903 LIBOBJS
=$ac_libobjs
11905 LTLIBOBJS
=$ac_ltlibobjs
11909 : "${CONFIG_STATUS=./config.status}"
11911 ac_clean_files_save
=$ac_clean_files
11912 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
11913 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11914 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11916 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11918 # Generated by $as_me.
11919 # Run this file to recreate the current configuration.
11920 # Compiler output produced by configure, useful for debugging
11921 # configure, is in config.log if it exists.
11924 ac_cs_recheck=false
11927 SHELL=\${CONFIG_SHELL-$SHELL}
11930 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
11931 ## -------------------- ##
11932 ## M4sh Initialization. ##
11933 ## -------------------- ##
11935 # Be more Bourne compatible
11936 DUALCASE
=1; export DUALCASE
# for MKS sh
11937 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
11940 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11941 # is contrary to our usage. Disable this feature.
11942 alias -g '${1+"$@"}'='"$@"'
11943 setopt NO_GLOB_SUBST
11945 case `(set -o) 2>/dev/null` in #(
11957 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11958 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11959 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11960 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11961 # Prefer a ksh shell builtin over an external printf program on Solaris,
11962 # but without wasting forks for bash or zsh.
11963 if test -z "$BASH_VERSION$ZSH_VERSION" \
11964 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11965 as_echo='print
-r --'
11966 as_echo_n='print
-rn --'
11967 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11968 as_echo='printf %s
\n'
11969 as_echo_n='printf %s
'
11971 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11972 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
11973 as_echo_n='/usr
/ucb
/echo -n'
11975 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11976 as_echo_n_body='eval
11980 expr "X$arg" : "X\\(.*\\)$as_nl";
11981 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11983 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
11985 export as_echo_n_body
11986 as_echo_n='sh
-c $as_echo_n_body as_echo
'
11988 export as_echo_body
11989 as_echo='sh
-c $as_echo_body as_echo
'
11992 # The user is always right.
11993 if test "${PATH_SEPARATOR+set}" != set; then
11995 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11996 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12003 # We need space, tab and new line, in precisely that order. Quoting is
12004 # there to prevent editors from complaining about space-tab.
12005 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12006 # splitting by setting IFS to empty value.)
12009 # Find who we are. Look in the path if we contain no directory separator.
12012 *[\\/]* ) as_myself=$0 ;;
12013 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12014 for as_dir in $PATH
12017 test -z "$as_dir" && as_dir=.
12018 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12024 # We did not find ourselves, most probably we were run as `sh COMMAND'
12025 # in which case we are not to be found in the path.
12026 if test "x$as_myself" = x
; then
12029 if test ! -f "$as_myself"; then
12030 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12034 # Unset variables that we do not need and which cause bugs (e.g. in
12035 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12036 # suppresses any "Segmentation fault" message there. '((' could
12037 # trigger a bug in pdksh 5.2.14.
12038 for as_var
in BASH_ENV ENV MAIL MAILPATH
12039 do eval test x\
${$as_var+set} = xset \
12040 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
12053 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
12056 # as_fn_error STATUS ERROR [LINENO LOG_FD]
12057 # ----------------------------------------
12058 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12059 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12060 # script with STATUS, using 1 if that was 0.
12063 as_status
=$1; test $as_status -eq 0 && as_status
=1
12065 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
12066 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12068 $as_echo "$as_me: error: $2" >&2
12069 as_fn_exit
$as_status
12073 # as_fn_set_status STATUS
12074 # -----------------------
12075 # Set $? to STATUS, without forking.
12076 as_fn_set_status
()
12079 } # as_fn_set_status
12081 # as_fn_exit STATUS
12082 # -----------------
12083 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12087 as_fn_set_status
$1
12093 # Portably unset VAR.
12096 { eval $1=; unset $1;}
12098 as_unset
=as_fn_unset
12099 # as_fn_append VAR VALUE
12100 # ----------------------
12101 # Append the text in VALUE to the end of the definition contained in VAR. Take
12102 # advantage of any shell optimizations that allow amortized linear growth over
12103 # repeated appends, instead of the typical quadratic growth present in naive
12105 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
12106 eval 'as_fn_append ()
12117 # as_fn_arith ARG...
12118 # ------------------
12119 # Perform arithmetic evaluation on the ARGs, and store the result in the
12120 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12121 # must be portable across $(()) and expr.
12122 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
12123 eval 'as_fn_arith ()
12130 as_val
=`expr "$@" || test $? -eq 1`
12135 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
12136 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
12142 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12143 as_basename
=basename
12148 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
12154 as_me
=`$as_basename -- "$0" ||
12155 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12156 X"$0" : 'X\(//\)$' \| \
12157 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12159 sed '/^.*\/\([^/][^/]*\)\/*$/{
12173 # Avoid depending upon Character Ranges.
12174 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
12175 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12176 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
12177 as_cr_digits
='0123456789'
12178 as_cr_alnum
=$as_cr_Letters$as_cr_digits
12180 ECHO_C
= ECHO_N
= ECHO_T
=
12181 case `echo -n x` in #(((((
12183 case `echo 'xy\c'` in
12184 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
12186 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
12193 rm -f conf$$ conf$$.exe conf$$.
file
12194 if test -d conf$$.dir
; then
12195 rm -f conf$$.dir
/conf$$.
file
12198 mkdir conf$$.dir
2>/dev
/null
12200 if (echo >conf$$.
file) 2>/dev
/null
; then
12201 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
12203 # ... but there are two gotchas:
12204 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12205 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12206 # In both cases, we have to default to `cp -pR'.
12207 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
12209 elif ln conf$$.
file conf$$
2>/dev
/null
; then
12217 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
12218 rmdir conf$$.dir
2>/dev
/null
12223 # Create "$as_dir" as a directory, including parents if necessary.
12228 -*) as_dir
=.
/$as_dir;;
12230 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
12234 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12235 *) as_qdir
=$as_dir;;
12237 as_dirs
="'$as_qdir' $as_dirs"
12238 as_dir
=`$as_dirname -- "$as_dir" ||
12239 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12240 X"$as_dir" : 'X\(//\)[^/]' \| \
12241 X"$as_dir" : 'X\(//\)$' \| \
12242 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12243 $as_echo X"$as_dir" |
12244 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12248 /^X\(\/\/\)[^/].*/{
12261 test -d "$as_dir" && break
12263 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
12264 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
12268 if mkdir
-p .
2>/dev
/null
; then
12269 as_mkdir_p
='mkdir -p "$as_dir"'
12271 test -d .
/-p && rmdir .
/-p
12276 # as_fn_executable_p FILE
12277 # -----------------------
12278 # Test if FILE is an executable regular file.
12279 as_fn_executable_p
()
12281 test -f "$1" && test -x "$1"
12282 } # as_fn_executable_p
12283 as_test_x
='test -x'
12284 as_executable_p
=as_fn_executable_p
12286 # Sed expression to map a string onto a valid CPP name.
12287 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12289 # Sed expression to map a string onto a valid variable name.
12290 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12294 ## ----------------------------------- ##
12295 ## Main body of $CONFIG_STATUS script. ##
12296 ## ----------------------------------- ##
12298 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
12300 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
12301 # Save the log message, to keep $0 and so on meaningful, and to
12302 # report actual input values of CONFIG_FILES etc. instead of their
12303 # values after options handling.
12305 This file was extended by pcap $as_me 1.10.0-PRE-GIT, which was
12306 generated by GNU Autoconf 2.69. Invocation command line was
12308 CONFIG_FILES = $CONFIG_FILES
12309 CONFIG_HEADERS = $CONFIG_HEADERS
12310 CONFIG_LINKS = $CONFIG_LINKS
12311 CONFIG_COMMANDS = $CONFIG_COMMANDS
12314 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12319 case $ac_config_files in *"
12320 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
12323 case $ac_config_headers in *"
12324 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
12328 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12329 # Files that config.status was made for.
12330 config_files="$ac_config_files"
12331 config_headers="$ac_config_headers"
12332 config_commands="$ac_config_commands"
12336 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
12338 \`$as_me' instantiates files and other configuration actions
12339 from templates according to the current configuration. Unless the files
12340 and actions are specified as TAGs, all are instantiated by default.
12342 Usage: $0 [OPTION]... [TAG]...
12344 -h, --help print this help, then exit
12345 -V, --version print version number and configuration settings, then exit
12346 --config print configuration, then exit
12347 -q, --quiet, --silent
12348 do not print progress messages
12349 -d, --debug don't remove temporary files
12350 --recheck update $as_me by reconfiguring in the same conditions
12351 --file=FILE[:TEMPLATE]
12352 instantiate the configuration file FILE
12353 --header=FILE[:TEMPLATE]
12354 instantiate the configuration header FILE
12356 Configuration files:
12359 Configuration headers:
12362 Configuration commands:
12365 Report bugs to the package provider."
12368 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12369 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12371 pcap config.status 1.10.0-PRE-GIT
12372 configured by $0, generated by GNU Autoconf 2.69,
12373 with options \\"\$ac_cs_config\\"
12375 Copyright (C) 2012 Free Software Foundation, Inc.
12376 This config.status script is free software; the Free Software Foundation
12377 gives unlimited permission to copy, distribute and modify it."
12382 test -n "\$AWK" || AWK=awk
12385 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
12386 # The default lists apply if the user does not specify any file.
12392 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
12393 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
12397 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
12409 # Handling of the options.
12410 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
12412 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
12413 $as_echo "$ac_cs_version"; exit ;;
12414 --config |
--confi |
--conf |
--con |
--co |
--c )
12415 $as_echo "$ac_cs_config"; exit ;;
12416 --debug |
--debu |
--deb |
--de |
--d |
-d )
12418 --file |
--fil |
--fi |
--f )
12421 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12422 '') as_fn_error $?
"missing file argument" ;;
12424 as_fn_append CONFIG_FILES
" '$ac_optarg'"
12425 ac_need_defaults
=false
;;
12426 --header |
--heade |
--head |
--hea )
12429 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12431 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
12432 ac_need_defaults
=false
;;
12434 # Conflict between --help and --header
12435 as_fn_error $?
"ambiguous option: \`$1'
12436 Try \`$0 --help' for more information.";;
12437 --help |
--hel |
-h )
12438 $as_echo "$ac_cs_usage"; exit ;;
12439 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
12440 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
12443 # This is an error.
12444 -*) as_fn_error $?
"unrecognized option: \`$1'
12445 Try \`$0 --help' for more information." ;;
12447 *) as_fn_append ac_config_targets
" $1"
12448 ac_need_defaults
=false
;;
12454 ac_configure_extra_args
=
12456 if $ac_cs_silent; then
12458 ac_configure_extra_args
="$ac_configure_extra_args --silent"
12462 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12463 if \$ac_cs_recheck; then
12464 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12466 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12467 CONFIG_SHELL='$SHELL'
12468 export CONFIG_SHELL
12473 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
12477 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12478 ## Running $as_me. ##
12484 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12492 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
12494 # Handling of arguments.
12495 for ac_config_target
in $ac_config_targets
12497 case $ac_config_target in
12498 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
12499 "default-1") CONFIG_COMMANDS
="$CONFIG_COMMANDS default-1" ;;
12500 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
12501 "pcap-filter.manmisc") CONFIG_FILES
="$CONFIG_FILES pcap-filter.manmisc" ;;
12502 "pcap-linktype.manmisc") CONFIG_FILES
="$CONFIG_FILES pcap-linktype.manmisc" ;;
12503 "pcap-tstamp.manmisc") CONFIG_FILES
="$CONFIG_FILES pcap-tstamp.manmisc" ;;
12504 "pcap-savefile.manfile") CONFIG_FILES
="$CONFIG_FILES pcap-savefile.manfile" ;;
12505 "pcap.3pcap") CONFIG_FILES
="$CONFIG_FILES pcap.3pcap" ;;
12506 "pcap_compile.3pcap") CONFIG_FILES
="$CONFIG_FILES pcap_compile.3pcap" ;;
12507 "pcap_datalink.3pcap") CONFIG_FILES
="$CONFIG_FILES pcap_datalink.3pcap" ;;
12508 "pcap_dump_open.3pcap") CONFIG_FILES
="$CONFIG_FILES pcap_dump_open.3pcap" ;;
12509 "pcap_get_tstamp_precision.3pcap") CONFIG_FILES
="$CONFIG_FILES pcap_get_tstamp_precision.3pcap" ;;
12510 "pcap_list_datalinks.3pcap") CONFIG_FILES
="$CONFIG_FILES pcap_list_datalinks.3pcap" ;;
12511 "pcap_list_tstamp_types.3pcap") CONFIG_FILES
="$CONFIG_FILES pcap_list_tstamp_types.3pcap" ;;
12512 "pcap_open_dead.3pcap") CONFIG_FILES
="$CONFIG_FILES pcap_open_dead.3pcap" ;;
12513 "pcap_open_offline.3pcap") CONFIG_FILES
="$CONFIG_FILES pcap_open_offline.3pcap" ;;
12514 "pcap_set_immediate_mode.3pcap") CONFIG_FILES
="$CONFIG_FILES pcap_set_immediate_mode.3pcap" ;;
12515 "pcap_set_tstamp_precision.3pcap") CONFIG_FILES
="$CONFIG_FILES pcap_set_tstamp_precision.3pcap" ;;
12516 "pcap_set_tstamp_type.3pcap") CONFIG_FILES
="$CONFIG_FILES pcap_set_tstamp_type.3pcap" ;;
12517 "rpcapd/Makefile") CONFIG_FILES
="$CONFIG_FILES rpcapd/Makefile" ;;
12518 "rpcapd/rpcapd.manadmin") CONFIG_FILES
="$CONFIG_FILES rpcapd/rpcapd.manadmin" ;;
12519 "rpcapd/rpcapd-config.manfile") CONFIG_FILES
="$CONFIG_FILES rpcapd/rpcapd-config.manfile" ;;
12520 "testprogs/Makefile") CONFIG_FILES
="$CONFIG_FILES testprogs/Makefile" ;;
12522 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12527 # If the user did not use the arguments to specify the items to instantiate,
12528 # then the envvar interface is used. Set only those that are not.
12529 # We use the long form for the default assignment because of an extremely
12530 # bizarre bug on SunOS 4.1.3.
12531 if $ac_need_defaults; then
12532 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
12533 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
12534 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
12537 # Have a temporary directory for convenience. Make it in the build tree
12538 # simply because there is no reason against having it here, and in addition,
12539 # creating and moving files from /tmp can sometimes cause problems.
12540 # Hook for its removal unless debugging.
12541 # Note that there is a small window in which the directory will not be cleaned:
12542 # after its creation but before its name has been assigned to `$tmp'.
12546 trap 'exit_status=$?
12547 : "${ac_tmp:=$tmp}"
12548 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12550 trap 'as_fn_exit 1' 1 2 13 15
12552 # Create a (secure) tmp directory for tmp files.
12555 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12559 tmp
=.
/conf$$
-$RANDOM
12560 (umask 077 && mkdir
"$tmp")
12561 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
12564 # Set up the scripts for CONFIG_FILES section.
12565 # No need to generate them if there are no CONFIG_FILES.
12566 # This happens for instance with `./config.status config.h'.
12567 if test -n "$CONFIG_FILES"; then
12570 ac_cr
=`echo X | tr X '\015'`
12571 # On cygwin, bash can eat \r inside `` if the user requested igncr.
12572 # But we know of no other shell where ac_cr would be empty at this
12573 # point, so we can use a bashism as a fallback.
12574 if test "x$ac_cr" = x
; then
12575 eval ac_cr
=\$
\'\\r
\'
12577 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12578 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12581 ac_cs_awk_cr
=$ac_cr
12584 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12589 echo "cat >conf$$subs.awk <<_ACEOF" &&
12590 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12592 } >conf$$subs.sh ||
12593 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
12594 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12596 for ac_last_try in false false false false false :; do
12597 . ./conf$$subs.sh ||
12598 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
12600 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
12601 if test $ac_delim_n = $ac_delim_num; then
12603 elif $ac_last_try; then
12604 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
12606 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
12609 rm -f conf$$subs.sh
12611 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12612 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
12616 s/^/S["/; s
/!.
*/"]=/
12626 s/\(.\{148\}\)..*/\1/
12628 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
12633 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
12640 s/\(.\{148\}\)..*/\1/
12642 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
12646 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
12651 ' <conf$$subs.awk | sed '
12656 ' >>$CONFIG_STATUS || ac_write_fail=1
12657 rm -f conf$$subs.awk
12658 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12660 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
12661 for (key in S) S_is_set[key] = 1
12667 nfields = split(line, field, "@
")
12669 len = length(field[1])
12670 for (i = 2; i < nfields; i++) {
12672 keylen = length(key)
12673 if (S_is_set[key]) {
12675 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12676 len += length(value) + length(field[++i])
12687 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12688 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12689 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
12692 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
12693 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
12696 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12697 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
12698 # trailing colons and then remove the whole line if VPATH becomes empty
12699 # (actually we leave an empty line to preserve line numbers).
12700 if test "x
$srcdir" = x.; then
12701 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
12719 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12720 fi # test -n "$CONFIG_FILES"
12722 # Set up the scripts for CONFIG_HEADERS section.
12723 # No need to generate them if there are no CONFIG_HEADERS.
12724 # This happens for instance with `./config.status Makefile'.
12725 if test -n "$CONFIG_HEADERS"; then
12726 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
12730 # Transform confdefs.h into an awk script `defines.awk', embedded as
12731 # here-document in config.status, that substitutes the proper values into
12732 # config.h.in to produce config.h.
12734 # Create a delimiter string that does not exist in confdefs.h, to ease
12735 # handling of long lines.
12737 for ac_last_try in false false :; do
12738 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
12739 if test -z "$ac_tt"; then
12741 elif $ac_last_try; then
12742 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
12744 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
12748 # For the awk script, D is an array of macro values keyed by name,
12749 # likewise P contains macro parameters if any. Preserve backslash
12750 # newline sequences.
12752 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12754 s/.\{148\}/&'"$ac_delim"'/g
12757 s/^[ ]*#[ ]*define[ ][ ]*/ /
12764 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
12766 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
12770 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
12771 D["\
1"]=" \
3\\\\\\n
"\\/p
12773 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
12778 s/.\{148\}/&'"$ac_delim"'/g
12783 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
12786 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
12788 ' <confdefs.h | sed '
12789 s/'"$ac_delim"'/"\\\
12790 "/g' >>$CONFIG_STATUS || ac_write_fail=1
12792 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12793 for (key in D) D_is_set[key] = 1
12796 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12798 split(line, arg, " ")
12799 if (arg[1] == "#") {
12803 defundef
= substr
(arg
[1], 2)
12806 split(mac1
, mac2
, "(") #)
12808 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
12809 if (D_is_set
[macro
]) {
12810 # Preserve the white space surrounding the "#".
12811 print prefix
"define", macro P
[macro
] D
[macro
]
12814 # Replace #undef with comments. This is necessary, for example,
12815 # in the case of _POSIX_SOURCE, which is predefined and required
12816 # on some systems where configure will not decide to define it.
12817 if (defundef
== "undef") {
12818 print
"/*", prefix defundef
, macro
, "*/"
12826 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
12827 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
12828 fi # test -n "$CONFIG_HEADERS"
12831 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
12836 :[FHLC
]) ac_mode
=$ac_tag; continue;;
12838 case $ac_mode$ac_tag in
12840 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
12841 :[FH
]-) ac_tag
=-:-;;
12842 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
12859 -) ac_f
="$ac_tmp/stdin";;
12860 *) # Look for the file first in the build tree, then in the source tree
12861 # (if the path is not absolute). The absolute path cannot be DOS-style,
12862 # because $ac_f cannot contain `:'.
12866 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
12868 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12870 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12871 as_fn_append ac_file_inputs
" '$ac_f'"
12874 # Let's still pretend it is `configure' which instantiates (i.e., don't
12875 # use $as_me), people would be surprised to read:
12876 # /* config.h. Generated by config.status. */
12877 configure_input
='Generated from '`
12878 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12880 if test x
"$ac_file" != x-
; then
12881 configure_input
="$ac_file. $configure_input"
12882 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12883 $as_echo "$as_me: creating $ac_file" >&6;}
12885 # Neutralize special characters interpreted by sed in replacement strings.
12886 case $configure_input in #(
12887 *\
&* |
*\|
* |
*\\* )
12888 ac_sed_conf_input
=`$as_echo "$configure_input" |
12889 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12890 *) ac_sed_conf_input
=$configure_input;;
12894 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
12895 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
12900 ac_dir
=`$as_dirname -- "$ac_file" ||
12901 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12902 X"$ac_file" : 'X\(//\)[^/]' \| \
12903 X"$ac_file" : 'X\(//\)$' \| \
12904 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12905 $as_echo X"$ac_file" |
12906 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12910 /^X\(\/\/\)[^/].*/{
12923 as_dir
="$ac_dir"; as_fn_mkdir_p
12927 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
12929 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12930 # A ".." for each directory in $ac_dir_suffix.
12931 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12932 case $ac_top_builddir_sub in
12933 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
12934 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
12937 ac_abs_top_builddir
=$ac_pwd
12938 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
12939 # for backward compatibility:
12940 ac_top_builddir
=$ac_top_build_prefix
12943 .
) # We are building in place.
12945 ac_top_srcdir
=$ac_top_builddir_sub
12946 ac_abs_top_srcdir
=$ac_pwd ;;
12947 [\\/]* | ?
:[\\/]* ) # Absolute name.
12948 ac_srcdir
=$srcdir$ac_dir_suffix;
12949 ac_top_srcdir
=$srcdir
12950 ac_abs_top_srcdir
=$srcdir ;;
12951 *) # Relative name.
12952 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
12953 ac_top_srcdir
=$ac_top_build_prefix$srcdir
12954 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
12956 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
12966 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
12967 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
12971 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
12972 # If the template does not know about datarootdir, expand it.
12973 # FIXME: This hack should be removed a few years after 2.60.
12974 ac_datarootdir_hack
=; ac_datarootdir_seen
=
12985 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12986 *datarootdir
*) ac_datarootdir_seen
=yes;;
12987 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
12988 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12989 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12991 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12992 ac_datarootdir_hack='
12993 s&@datadir@&$datadir&g
12994 s&@docdir@&$docdir&g
12995 s&@infodir@&$infodir&g
12996 s&@localedir@&$localedir&g
12997 s&@mandir@&$mandir&g
12998 s&\\\${datarootdir}&$datarootdir&g' ;;
13002 # Neutralize VPATH when `$srcdir' = `.'.
13003 # Shell code in configure.ac might set extrasub.
13004 # FIXME: do we really want to maintain this feature?
13005 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13006 ac_sed_extra="$ac_vpsub
13009 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
13011 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
13012 s|@configure_input@|
$ac_sed_conf_input|
;t t
13013 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
13014 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
13015 s
&@srcdir@
&$ac_srcdir&;t t
13016 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
13017 s
&@top_srcdir@
&$ac_top_srcdir&;t t
13018 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
13019 s
&@builddir@
&$ac_builddir&;t t
13020 s
&@abs_builddir@
&$ac_abs_builddir&;t t
13021 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
13022 s
&@INSTALL@
&$ac_INSTALL&;t t
13023 $ac_datarootdir_hack
13025 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
13026 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
13028 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13029 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
13030 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
13031 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
13032 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
13033 which seems to be undefined. Please make sure it is defined" >&5
13034 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
13035 which seems to be undefined. Please make sure it is defined" >&2;}
13037 rm -f "$ac_tmp/stdin"
13039 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13040 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
13042 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13048 if test x"$ac_file" != x-; then
13050 $as_echo "/* $configure_input */" \
13051 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13052 } >"$ac_tmp/config.h" \
13053 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13054 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
13055 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13056 $as_echo "$as_me: $ac_file is unchanged" >&6;}
13059 mv "$ac_tmp/config.h" "$ac_file" \
13060 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13063 $as_echo "/* $configure_input */" \
13064 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13065 || as_fn_error $? "could not create -" "$LINENO" 5
13069 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13070 $as_echo "$as_me: executing $ac_file commands" >&6;}
13075 case $ac_file$ac_mode in
13076 "default-1":C) if test -f .devel; then
13077 echo timestamp > stamp-h
13078 cat $srcdir/Makefile-devel-adds >> Makefile
13088 ac_clean_files=$ac_clean_files_save
13090 test $ac_write_fail = 0 ||
13091 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
13094 # configure is writing to config.log, and then calls config.status.
13095 # config.status does its own redirection, appending to config.log.
13096 # Unfortunately, on DOS this fails, as config.log is still kept open
13097 # by configure, so config.status won't be able to
write to it
; its
13098 # output is simply discarded. So we exec the FD to /dev/null,
13099 # effectively closing config.log, so it can be properly (re)opened and
13100 # appended to by config.status. When coming back to configure, we
13101 # need to make the FD available again.
13102 if test "$no_create" != yes; then
13104 ac_config_status_args
=
13105 test "$silent" = yes &&
13106 ac_config_status_args
="$ac_config_status_args --quiet"
13108 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
13110 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13111 # would make configure fail if this is the last instruction.
13112 $ac_cs_success || as_fn_exit
1
13114 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
13115 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13116 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}