2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for pcap 1.10.2-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.2-PRE-GIT'
581 PACKAGE_STRING
='pcap 1.10.2-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
730 program_transform_name
743 enable_option_checking
770 ac_precious_vars
='build_alias
784 # Initialize some variables set by options.
786 ac_init_version
=false
787 ac_unrecognized_opts
=
789 # The variables have the same names as the options, with
790 # dashes changed to underlines.
798 program_transform_name
=s
,x
,x
,
806 # Installation directory options.
807 # These are left unexpanded so users can "make install exec_prefix=/foo"
808 # and all the variables that are supposed to be based on exec_prefix
809 # by default will actually change.
810 # Use braces instead of parens because sh, perl, etc. also accept them.
811 # (The list follows the same order as the GNU Coding Standards.)
812 bindir
='${exec_prefix}/bin'
813 sbindir
='${exec_prefix}/sbin'
814 libexecdir
='${exec_prefix}/libexec'
815 datarootdir
='${prefix}/share'
816 datadir
='${datarootdir}'
817 sysconfdir
='${prefix}/etc'
818 sharedstatedir
='${prefix}/com'
819 localstatedir
='${prefix}/var'
820 runstatedir
='${localstatedir}/run'
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 -runstatedir |
--runstatedir |
--runstatedi |
--runstated \
1074 |
--runstate |
--runstat |
--runsta |
--runst |
--runs \
1075 |
--run |
--ru |
--r)
1076 ac_prev
=runstatedir
;;
1077 -runstatedir=* |
--runstatedir=* |
--runstatedi=* |
--runstated=* \
1078 |
--runstate=* |
--runstat=* |
--runsta=* |
--runst=* |
--runs=* \
1079 |
--run=* |
--ru=* |
--r=*)
1080 runstatedir
=$ac_optarg ;;
1082 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1084 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1086 sbindir
=$ac_optarg ;;
1088 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1089 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1090 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1092 ac_prev
=sharedstatedir
;;
1093 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1094 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1095 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1097 sharedstatedir
=$ac_optarg ;;
1099 -site |
--site |
--sit)
1101 -site=* |
--site=* |
--sit=*)
1104 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1106 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1107 srcdir
=$ac_optarg ;;
1109 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1110 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1111 ac_prev
=sysconfdir
;;
1112 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1113 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1114 sysconfdir
=$ac_optarg ;;
1116 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1117 ac_prev
=target_alias
;;
1118 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1119 target_alias
=$ac_optarg ;;
1121 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1124 -version |
--version |
--versio |
--versi |
--vers |
-V)
1125 ac_init_version
=: ;;
1128 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1129 # Reject names that are not valid shell variable names.
1130 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1131 as_fn_error $?
"invalid package name: $ac_useropt"
1132 ac_useropt_orig
=$ac_useropt
1133 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1134 case $ac_user_opts in
1138 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1139 ac_unrecognized_sep
=', ';;
1141 eval with_
$ac_useropt=\
$ac_optarg ;;
1143 -without-* |
--without-*)
1144 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1145 # Reject names that are not valid shell variable names.
1146 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1147 as_fn_error $?
"invalid package name: $ac_useropt"
1148 ac_useropt_orig
=$ac_useropt
1149 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1150 case $ac_user_opts in
1154 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1155 ac_unrecognized_sep
=', ';;
1157 eval with_
$ac_useropt=no
;;
1160 # Obsolete; use --with-x.
1163 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1164 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1165 ac_prev
=x_includes
;;
1166 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1167 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1168 x_includes
=$ac_optarg ;;
1170 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1171 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1172 ac_prev
=x_libraries
;;
1173 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1174 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1175 x_libraries
=$ac_optarg ;;
1177 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1178 Try \`$0 --help' for more information"
1182 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1183 # Reject names that are not valid shell variable names.
1184 case $ac_envvar in #(
1185 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1186 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1188 eval $ac_envvar=\
$ac_optarg
1189 export $ac_envvar ;;
1192 # FIXME: should be removed in autoconf 3.0.
1193 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1194 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1195 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1196 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1202 if test -n "$ac_prev"; then
1203 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1204 as_fn_error $?
"missing argument to $ac_option"
1207 if test -n "$ac_unrecognized_opts"; then
1208 case $enable_option_checking in
1210 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1211 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1215 # Check all directory arguments for consistency.
1216 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1217 datadir sysconfdir sharedstatedir localstatedir includedir \
1218 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1219 libdir localedir mandir runstatedir
1221 eval ac_val
=\$
$ac_var
1222 # Remove trailing slashes.
1225 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1226 eval $ac_var=\
$ac_val;;
1228 # Be sure to have absolute directory names.
1230 [\\/$
]* | ?
:[\\/]* ) continue;;
1231 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1233 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1236 # There might be people who depend on the old broken behavior: `$host'
1237 # used to hold the argument of --host etc.
1238 # FIXME: To remove some day.
1241 target
=$target_alias
1243 # FIXME: To remove some day.
1244 if test "x$host_alias" != x
; then
1245 if test "x$build_alias" = x
; then
1246 cross_compiling
=maybe
1247 elif test "x$build_alias" != "x$host_alias"; then
1253 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1255 test "$silent" = yes && exec 6>/dev
/null
1258 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1259 ac_ls_di
=`ls -di .` &&
1260 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1261 as_fn_error $?
"working directory cannot be determined"
1262 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1263 as_fn_error $?
"pwd does not report name of working directory"
1266 # Find the source files, if location was not specified.
1267 if test -z "$srcdir"; then
1268 ac_srcdir_defaulted
=yes
1269 # Try the directory containing this script, then the parent directory.
1270 ac_confdir
=`$as_dirname -- "$as_myself" ||
1271 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1272 X"$as_myself" : 'X\(//\)[^/]' \| \
1273 X"$as_myself" : 'X\(//\)$' \| \
1274 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1275 $as_echo X"$as_myself" |
1276 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1294 if test ! -r "$srcdir/$ac_unique_file"; then
1298 ac_srcdir_defaulted
=no
1300 if test ! -r "$srcdir/$ac_unique_file"; then
1301 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1302 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1304 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1306 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1308 # When building in place, set srcdir=.
1309 if test "$ac_abs_confdir" = "$ac_pwd"; then
1312 # Remove unnecessary trailing slashes from srcdir.
1313 # Double slashes in file names in object file debugging info
1314 # mess up M-x gdb in Emacs.
1316 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1318 for ac_var
in $ac_precious_vars; do
1319 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1320 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1321 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1322 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1326 # Report the --help message.
1328 if test "$ac_init_help" = "long"; then
1329 # Omit some internal or obsolete options to make the list less imposing.
1330 # This message is too long to be a string in the A/UX 3.1 sh.
1332 \`configure' configures pcap 1.10.2-PRE-GIT to adapt to many kinds of systems.
1334 Usage: $0 [OPTION]... [VAR=VALUE]...
1336 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1337 VAR=VALUE. See below for descriptions of some of the useful variables.
1339 Defaults for the options are specified in brackets.
1342 -h, --help display this help and exit
1343 --help=short display options specific to this package
1344 --help=recursive display the short help of all the included packages
1345 -V, --version display version information and exit
1346 -q, --quiet, --silent do not print \`checking ...' messages
1347 --cache-file=FILE cache test results in FILE [disabled]
1348 -C, --config-cache alias for \`--cache-file=config.cache'
1349 -n, --no-create do not create output files
1350 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1352 Installation directories:
1353 --prefix=PREFIX install architecture-independent files in PREFIX
1354 [$ac_default_prefix]
1355 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1358 By default, \`make install' will install all the files in
1359 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1360 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1361 for instance \`--prefix=\$HOME'.
1363 For better control, use the options below.
1365 Fine tuning of the installation directories:
1366 --bindir=DIR user executables [EPREFIX/bin]
1367 --sbindir=DIR system admin executables [EPREFIX/sbin]
1368 --libexecdir=DIR program executables [EPREFIX/libexec]
1369 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1370 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1371 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1372 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1373 --libdir=DIR object code libraries [EPREFIX/lib]
1374 --includedir=DIR C header files [PREFIX/include]
1375 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1376 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1377 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1378 --infodir=DIR info documentation [DATAROOTDIR/info]
1379 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1380 --mandir=DIR man documentation [DATAROOTDIR/man]
1381 --docdir=DIR documentation root [DATAROOTDIR/doc/pcap]
1382 --htmldir=DIR html documentation [DOCDIR]
1383 --dvidir=DIR dvi documentation [DOCDIR]
1384 --pdfdir=DIR pdf documentation [DOCDIR]
1385 --psdir=DIR ps documentation [DOCDIR]
1391 --build=BUILD configure
for building on BUILD
[guessed
]
1392 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1393 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1397 if test -n "$ac_init_help"; then
1398 case $ac_init_help in
1399 short | recursive
) echo "Configuration of pcap 1.10.2-PRE-GIT:";;
1404 --disable-option-checking ignore unrecognized
--enable/--with options
1405 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1406 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1407 --disable-largefile omit support
for large files
1408 --disable-protochain disable
\"protochain
\" insn
1409 --enable-ipv6 build IPv6-capable version
[default
=yes]
1410 --enable-remote enable remote packet capture
[default
=no
]
1411 --disable-remote disable remote packet capture
1412 --enable-optimizer-dbg build optimizer debugging code
1413 --enable-yydebug build parser debugging code
1414 --disable-universal don
't build universal on macOS
1415 --enable-shared build shared libraries [default=yes, if support
1417 --enable-usb enable Linux usbmon USB capture support
1418 [default=yes, if support available]
1419 --enable-netmap enable netmap support [default=yes, if support
1421 --enable-bluetooth enable Bluetooth support [default=yes, if support
1423 --enable-dbus enable D-Bus capture support [default=yes, if
1425 --enable-rdma enable RDMA capture support [default=yes, if support
1429 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1430 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1431 --without-gcc don't use gcc
1432 --with-pcap=TYPE use packet capture TYPE
1433 --without-libnl disable libnl support
[default
=yes, on Linux
, if
1435 --with-dag[=DIR
] include Endace DAG support
(located
in directory
1436 DIR
, if supplied
).
[default
=yes, if present
]
1437 --with-dag-includes=IDIR
1438 Endace DAG include directory
, if not DIR
/include
1439 --with-dag-libraries=LDIR
1440 Endace DAG library directory
, if not DIR
/lib
1441 --with-septel[=DIR
] include Septel support
(located
in directory DIR
, if
1442 supplied
).
[default
=yes, if present
]
1443 --with-snf[=DIR
] include Myricom SNF support
(located
in directory
1444 DIR
, if supplied
).
[default
=yes, if present
]
1445 --with-snf-includes=IDIR
1446 Myricom SNF include directory
, if not DIR
/include
1447 --with-snf-libraries=LDIR
1448 Myricom SNF library directory
, if not DIR
/lib
1449 --with-turbocap[=DIR
] include Riverbed TurboCap support
(located
in
1450 directory DIR
, if supplied
).
[default
=yes, if
1452 --with-dpdk[=DIR
] include DPDK support
(located
in directory DIR
, if
1453 supplied
).
[default
=yes, if present
]
1455 Some influential environment variables
:
1456 CC C compiler
command
1457 CFLAGS C compiler flags
1458 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1459 nonstandard directory
<lib dir
>
1460 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1461 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1462 you have headers
in a nonstandard directory
<include dir
>
1463 CXX C
++ compiler
command
1464 CXXFLAGS C
++ compiler flags
1467 Use these variables to override the choices made by
`configure' or to help
1468 it to find libraries and programs with nonstandard names/locations.
1470 Report bugs to the package provider.
1475 if test "$ac_init_help" = "recursive"; then
1476 # If there are subdirs, report their specific --help.
1477 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1478 test -d "$ac_dir" ||
1479 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1484 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1486 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1487 # A ".." for each directory in $ac_dir_suffix.
1488 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1489 case $ac_top_builddir_sub in
1490 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1491 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1494 ac_abs_top_builddir=$ac_pwd
1495 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1496 # for backward compatibility:
1497 ac_top_builddir=$ac_top_build_prefix
1500 .) # We are building in place.
1502 ac_top_srcdir=$ac_top_builddir_sub
1503 ac_abs_top_srcdir=$ac_pwd ;;
1504 [\\/]* | ?:[\\/]* ) # Absolute name.
1505 ac_srcdir=$srcdir$ac_dir_suffix;
1506 ac_top_srcdir=$srcdir
1507 ac_abs_top_srcdir=$srcdir ;;
1509 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1510 ac_top_srcdir=$ac_top_build_prefix$srcdir
1511 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1513 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1515 cd "$ac_dir" || { ac_status=$?; continue; }
1516 # Check for guested configure.
1517 if test -f "$ac_srcdir/configure.gnu"; then
1519 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1520 elif test -f "$ac_srcdir/configure"; then
1522 $SHELL "$ac_srcdir/configure" --help=recursive
1524 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1526 cd "$ac_pwd" || { ac_status=$?; break; }
1530 test -n "$ac_init_help" && exit $ac_status
1531 if $ac_init_version; then
1533 pcap configure 1.10.2-PRE-GIT
1534 generated by GNU Autoconf 2.69
1536 Copyright (C) 2012 Free Software Foundation, Inc.
1537 This configure script is free software; the Free Software Foundation
1538 gives unlimited permission to copy, distribute and modify it.
1543 ## ------------------------ ##
1544 ## Autoconf initialization. ##
1545 ## ------------------------ ##
1547 # ac_fn_c_try_compile LINENO
1548 # --------------------------
1549 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1550 ac_fn_c_try_compile ()
1552 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1553 rm -f conftest.$ac_objext
1554 if { { ac_try="$ac_compile"
1556 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1557 *) ac_try_echo
=$ac_try;;
1559 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1560 $as_echo "$ac_try_echo"; } >&5
1561 (eval "$ac_compile") 2>conftest.err
1563 if test -s conftest.err
; then
1564 grep -v '^ *+' conftest.err
>conftest.er1
1565 cat conftest.er1
>&5
1566 mv -f conftest.er1 conftest.err
1568 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1569 test $ac_status = 0; } && {
1570 test -z "$ac_c_werror_flag" ||
1571 test ! -s conftest.err
1572 } && test -s conftest.
$ac_objext; then :
1575 $as_echo "$as_me: failed program was:" >&5
1576 sed 's/^/| /' conftest.
$ac_ext >&5
1580 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1581 as_fn_set_status
$ac_retval
1583 } # ac_fn_c_try_compile
1585 # ac_fn_cxx_try_compile LINENO
1586 # ----------------------------
1587 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1588 ac_fn_cxx_try_compile
()
1590 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1591 rm -f conftest.
$ac_objext
1592 if { { ac_try
="$ac_compile"
1594 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1595 *) ac_try_echo=$ac_try;;
1597 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1598 $as_echo "$ac_try_echo"; } >&5
1599 (eval "$ac_compile") 2>conftest.err
1601 if test -s conftest.err; then
1602 grep -v '^ *+' conftest.err >conftest.er1
1603 cat conftest.er1 >&5
1604 mv -f conftest.er1 conftest.err
1606 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1607 test $ac_status = 0; } && {
1608 test -z "$ac_cxx_werror_flag" ||
1609 test ! -s conftest.err
1610 } && test -s conftest.$ac_objext; then :
1613 $as_echo "$as_me: failed program was:" >&5
1614 sed 's/^/| /' conftest.$ac_ext >&5
1618 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1619 as_fn_set_status $ac_retval
1621 } # ac_fn_cxx_try_compile
1623 # ac_fn_c_try_cpp LINENO
1624 # ----------------------
1625 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1628 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1629 if { { ac_try="$ac_cpp conftest.$ac_ext"
1631 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1632 *) ac_try_echo
=$ac_try;;
1634 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1635 $as_echo "$ac_try_echo"; } >&5
1636 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1638 if test -s conftest.err
; then
1639 grep -v '^ *+' conftest.err
>conftest.er1
1640 cat conftest.er1
>&5
1641 mv -f conftest.er1 conftest.err
1643 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1644 test $ac_status = 0; } > conftest.i
&& {
1645 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1646 test ! -s conftest.err
1650 $as_echo "$as_me: failed program was:" >&5
1651 sed 's/^/| /' conftest.
$ac_ext >&5
1655 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1656 as_fn_set_status
$ac_retval
1660 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1661 # -------------------------------------------------------
1662 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1663 # the include files in INCLUDES and setting the cache variable VAR
1665 ac_fn_c_check_header_mongrel
()
1667 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1668 if eval \
${$3+:} false
; then :
1669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1670 $as_echo_n "checking for $2... " >&6; }
1671 if eval \
${$3+:} false
; then :
1672 $as_echo_n "(cached) " >&6
1675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1676 $as_echo "$ac_res" >&6; }
1678 # Is the header compilable?
1679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1680 $as_echo_n "checking $2 usability... " >&6; }
1681 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1682 /* end confdefs.h. */
1686 if ac_fn_c_try_compile
"$LINENO"; then :
1687 ac_header_compiler
=yes
1689 ac_header_compiler
=no
1691 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1693 $as_echo "$ac_header_compiler" >&6; }
1695 # Is the header present?
1696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1697 $as_echo_n "checking $2 presence... " >&6; }
1698 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1699 /* end confdefs.h. */
1702 if ac_fn_c_try_cpp
"$LINENO"; then :
1703 ac_header_preproc
=yes
1705 ac_header_preproc
=no
1707 rm -f conftest.err conftest.i conftest.
$ac_ext
1708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1709 $as_echo "$ac_header_preproc" >&6; }
1711 # So? What about this header?
1712 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1714 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1715 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1716 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1717 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1720 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1721 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1722 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1723 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1724 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1725 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1726 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1727 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1728 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1729 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1733 $as_echo_n "checking for $2... " >&6; }
1734 if eval \
${$3+:} false
; then :
1735 $as_echo_n "(cached) " >&6
1737 eval "$3=\$ac_header_compiler"
1740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1741 $as_echo "$ac_res" >&6; }
1743 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1745 } # ac_fn_c_check_header_mongrel
1747 # ac_fn_c_try_run LINENO
1748 # ----------------------
1749 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1750 # that executables *can* be run.
1753 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1754 if { { ac_try
="$ac_link"
1756 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1757 *) ac_try_echo=$ac_try;;
1759 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1760 $as_echo "$ac_try_echo"; } >&5
1761 (eval "$ac_link") 2>&5
1763 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1764 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1765 { { case "(($ac_try" in
1766 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1767 *) ac_try_echo
=$ac_try;;
1769 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1770 $as_echo "$ac_try_echo"; } >&5
1771 (eval "$ac_try") 2>&5
1773 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1774 test $ac_status = 0; }; }; then :
1777 $as_echo "$as_me: program exited with status $ac_status" >&5
1778 $as_echo "$as_me: failed program was:" >&5
1779 sed 's/^/| /' conftest.
$ac_ext >&5
1781 ac_retval
=$ac_status
1783 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1784 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1785 as_fn_set_status
$ac_retval
1789 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1790 # -------------------------------------------------------
1791 # Tests whether HEADER exists and can be compiled using the include files in
1792 # INCLUDES, setting the cache variable VAR accordingly.
1793 ac_fn_c_check_header_compile
()
1795 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1797 $as_echo_n "checking for $2... " >&6; }
1798 if eval \
${$3+:} false
; then :
1799 $as_echo_n "(cached) " >&6
1801 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1802 /* end confdefs.h. */
1806 if ac_fn_c_try_compile
"$LINENO"; then :
1811 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1815 $as_echo "$ac_res" >&6; }
1816 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1818 } # ac_fn_c_check_header_compile
1820 # ac_fn_c_check_func LINENO FUNC VAR
1821 # ----------------------------------
1822 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1823 ac_fn_c_check_func
()
1825 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1827 $as_echo_n "checking for $2... " >&6; }
1828 if eval \
${$3+:} false
; then :
1829 $as_echo_n "(cached) " >&6
1831 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1832 /* end confdefs.h. */
1833 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1834 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1835 #define $2 innocuous_$2
1837 /* System header to define __stub macros and hopefully few prototypes,
1838 which can conflict with char $2 (); below.
1839 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1840 <limits.h> exists even on freestanding compilers. */
1843 # include <limits.h>
1845 # include <assert.h>
1850 /* Override any GCC internal prototype to avoid an error.
1851 Use char because int might match the return type of a GCC
1852 builtin and then its argument prototype would still apply. */
1857 /* The GNU C library defines this for functions which it implements
1858 to always fail with ENOSYS. Some functions are actually named
1859 something starting with __ and the normal name is an alias. */
1860 #if defined __stub_$2 || defined __stub___$2
1872 if ac_fn_c_try_link
"$LINENO"; then :
1877 rm -f core conftest.err conftest.
$ac_objext \
1878 conftest
$ac_exeext conftest.
$ac_ext
1881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1882 $as_echo "$ac_res" >&6; }
1883 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1885 } # ac_fn_c_check_func
1887 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1888 # ---------------------------------------------
1889 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1891 ac_fn_c_check_decl
()
1893 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1894 as_decl_name
=`echo $2|sed 's/ *(.*//'`
1895 as_decl_use
=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1897 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1898 if eval \
${$3+:} false
; then :
1899 $as_echo_n "(cached) " >&6
1901 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1902 /* end confdefs.h. */
1907 #ifndef $as_decl_name
1909 (void) $as_decl_use;
1911 (void) $as_decl_name;
1919 if ac_fn_c_try_compile
"$LINENO"; then :
1924 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1928 $as_echo "$ac_res" >&6; }
1929 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1931 } # ac_fn_c_check_decl
1933 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1934 # -------------------------------------------
1935 # Tests whether TYPE exists after having included INCLUDES, setting cache
1936 # variable VAR accordingly.
1937 ac_fn_c_check_type
()
1939 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1941 $as_echo_n "checking for $2... " >&6; }
1942 if eval \
${$3+:} false
; then :
1943 $as_echo_n "(cached) " >&6
1946 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1947 /* end confdefs.h. */
1958 if ac_fn_c_try_compile
"$LINENO"; then :
1959 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1960 /* end confdefs.h. */
1971 if ac_fn_c_try_compile
"$LINENO"; then :
1976 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1978 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1982 $as_echo "$ac_res" >&6; }
1983 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1985 } # ac_fn_c_check_type
1987 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1988 # ----------------------------------------------------
1989 # Tries to find if the field MEMBER exists in type AGGR, after including
1990 # INCLUDES, setting cache variable VAR accordingly.
1991 ac_fn_c_check_member
()
1993 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1995 $as_echo_n "checking for $2.$3... " >&6; }
1996 if eval \
${$4+:} false
; then :
1997 $as_echo_n "(cached) " >&6
1999 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2000 /* end confdefs.h. */
2012 if ac_fn_c_try_compile
"$LINENO"; then :
2015 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2016 /* end confdefs.h. */
2022 if (sizeof ac_aggr.$3)
2028 if ac_fn_c_try_compile
"$LINENO"; then :
2033 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2035 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2039 $as_echo "$ac_res" >&6; }
2040 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2042 } # ac_fn_c_check_member
2043 cat >config.log
<<_ACEOF
2044 This file contains any messages produced by compilers while
2045 running configure, to aid debugging if configure makes a mistake.
2047 It was created by pcap $as_me 1.10.2-PRE-GIT, which was
2048 generated by GNU Autoconf 2.69. Invocation command line was
2060 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2061 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2062 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2063 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2064 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2066 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2067 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2069 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2070 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2071 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2072 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2073 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2074 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2075 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2079 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2083 test -z "$as_dir" && as_dir
=.
2084 $as_echo "PATH: $as_dir"
2100 # Keep a trace of the command line.
2101 # Strip out --no-create and --no-recursion so they do not pile up.
2102 # Strip out --silent because we don't want to record it for future runs.
2103 # Also quote any args containing shell meta-characters.
2104 # Make two passes to allow for proper duplicate-argument suppression.
2108 ac_must_keep_next
=false
2114 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2115 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2116 |
-silent |
--silent |
--silen |
--sile |
--sil)
2119 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2122 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2124 as_fn_append ac_configure_args1
" '$ac_arg'"
2125 if test $ac_must_keep_next = true
; then
2126 ac_must_keep_next
=false
# Got value, back to normal.
2129 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2130 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2131 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2132 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2133 case "$ac_configure_args0 " in
2134 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2137 -* ) ac_must_keep_next
=true
;;
2140 as_fn_append ac_configure_args
" '$ac_arg'"
2145 { ac_configure_args0
=; unset ac_configure_args0
;}
2146 { ac_configure_args1
=; unset ac_configure_args1
;}
2148 # When interrupted or exit'd, cleanup temporary files, and complete
2149 # config.log. We remove comments because anyway the quotes in there
2150 # would cause problems or look ugly.
2151 # WARNING: Use '\'' to represent an apostrophe within the trap.
2152 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2153 trap 'exit_status=$?
2154 # Save into config.log some information that might help in debugging.
2158 $as_echo "## ---------------- ##
2159 ## Cache variables. ##
2160 ## ---------------- ##"
2162 # The following way of writing the cache mishandles newlines in values,
2164 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2165 eval ac_val=\$$ac_var
2169 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2170 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2173 _ | IFS | as_nl) ;; #(
2174 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2175 *) { eval $ac_var=; unset $ac_var;} ;;
2180 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2181 *${as_nl}ac_space=\ *)
2183 "s/'\''/'\''\\\\'\'''\''/g;
2184 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2187 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2194 $as_echo "## ----------------- ##
2195 ## Output variables. ##
2196 ## ----------------- ##"
2198 for ac_var in $ac_subst_vars
2200 eval ac_val=\$$ac_var
2202 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2204 $as_echo "$ac_var='\''$ac_val'\''"
2208 if test -n "$ac_subst_files"; then
2209 $as_echo "## ------------------- ##
2210 ## File substitutions. ##
2211 ## ------------------- ##"
2213 for ac_var
in $ac_subst_files
2215 eval ac_val
=\$
$ac_var
2217 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2219 $as_echo "$ac_var='\''$ac_val'\''"
2224 if test -s confdefs.h; then
2225 $as_echo "## ----------- ##
2232 test "$ac_signal" != 0 &&
2233 $as_echo "$as_me: caught signal $ac_signal"
2234 $as_echo "$as_me: exit $exit_status"
2236 rm -f core *.core core.conftest.* &&
2237 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2240 for ac_signal
in 1 2 13 15; do
2241 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2245 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2246 rm -f -r conftest
* confdefs.h
2248 $as_echo "/* confdefs.h */" > confdefs.h
2250 # Predefined preprocessor variables.
2252 cat >>confdefs.h
<<_ACEOF
2253 #define PACKAGE_NAME "$PACKAGE_NAME"
2256 cat >>confdefs.h
<<_ACEOF
2257 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2260 cat >>confdefs.h
<<_ACEOF
2261 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2264 cat >>confdefs.h
<<_ACEOF
2265 #define PACKAGE_STRING "$PACKAGE_STRING"
2268 cat >>confdefs.h
<<_ACEOF
2269 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2272 cat >>confdefs.h
<<_ACEOF
2273 #define PACKAGE_URL "$PACKAGE_URL"
2277 # Let the site file select an alternate cache file if it wants to.
2278 # Prefer an explicitly selected file to automatically selected ones.
2281 if test -n "$CONFIG_SITE"; then
2282 # We do not want a PATH search for config.site.
2283 case $CONFIG_SITE in #((
2284 -*) ac_site_file1
=.
/$CONFIG_SITE;;
2285 */*) ac_site_file1
=$CONFIG_SITE;;
2286 *) ac_site_file1
=.
/$CONFIG_SITE;;
2288 elif test "x$prefix" != xNONE
; then
2289 ac_site_file1
=$prefix/share
/config.site
2290 ac_site_file2
=$prefix/etc
/config.site
2292 ac_site_file1
=$ac_default_prefix/share
/config.site
2293 ac_site_file2
=$ac_default_prefix/etc
/config.site
2295 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
2297 test "x$ac_site_file" = xNONE
&& continue
2298 if test /dev
/null
!= "$ac_site_file" && test -r "$ac_site_file"; then
2299 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2300 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2301 sed 's/^/| /' "$ac_site_file" >&5
2303 ||
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2304 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2305 as_fn_error $?
"failed to load site script $ac_site_file
2306 See \`config.log' for more details" "$LINENO" 5; }
2310 if test -r "$cache_file"; then
2311 # Some versions of bash will fail to source /dev/null (special files
2312 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2313 if test /dev
/null
!= "$cache_file" && test -f "$cache_file"; then
2314 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2315 $as_echo "$as_me: loading cache $cache_file" >&6;}
2317 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2318 *) .
"./$cache_file";;
2322 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2323 $as_echo "$as_me: creating cache $cache_file" >&6;}
2327 # Check that the precious variables saved in the cache have kept the same
2329 ac_cache_corrupted
=false
2330 for ac_var
in $ac_precious_vars; do
2331 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2332 eval ac_new_set
=\
$ac_env_${ac_var}_set
2333 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2334 eval ac_new_val
=\
$ac_env_${ac_var}_value
2335 case $ac_old_set,$ac_new_set in
2337 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2338 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2339 ac_cache_corrupted
=: ;;
2341 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2342 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2343 ac_cache_corrupted
=: ;;
2346 if test "x$ac_old_val" != "x$ac_new_val"; then
2347 # differences in whitespace do not lead to failure.
2348 ac_old_val_w
=`echo x $ac_old_val`
2349 ac_new_val_w
=`echo x $ac_new_val`
2350 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2351 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2352 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2353 ac_cache_corrupted
=:
2355 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2356 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2357 eval $ac_var=\
$ac_old_val
2359 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2360 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2361 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2362 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2365 # Pass precious variables to config.status.
2366 if test "$ac_new_set" = set; then
2368 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2369 *) ac_arg
=$ac_var=$ac_new_val ;;
2371 case " $ac_configure_args " in
2372 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2373 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
2377 if $ac_cache_corrupted; then
2378 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2379 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2380 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2381 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2382 as_fn_error $?
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2384 ## -------------------- ##
2385 ## Main body of script. ##
2386 ## -------------------- ##
2389 ac_cpp
='$CPP $CPPFLAGS'
2390 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2391 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2392 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2399 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2400 if test -f "$ac_dir/install-sh"; then
2402 ac_install_sh
="$ac_aux_dir/install-sh -c"
2404 elif test -f "$ac_dir/install.sh"; then
2406 ac_install_sh
="$ac_aux_dir/install.sh -c"
2408 elif test -f "$ac_dir/shtool"; then
2410 ac_install_sh
="$ac_aux_dir/shtool install -c"
2414 if test -z "$ac_aux_dir"; then
2415 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2418 # These three variables are undocumented and unsupported,
2419 # and are intended to be withdrawn in a future Autoconf release.
2420 # They can cause serious problems if a builder's source tree is in a directory
2421 # whose full name contains unusual characters.
2422 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2423 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2424 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2427 # Make sure we can run config.sub.
2428 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2429 as_fn_error $?
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2432 $as_echo_n "checking build system type... " >&6; }
2433 if ${ac_cv_build+:} false
; then :
2434 $as_echo_n "(cached) " >&6
2436 ac_build_alias
=$build_alias
2437 test "x$ac_build_alias" = x
&&
2438 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2439 test "x$ac_build_alias" = x
&&
2440 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
2441 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2442 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2446 $as_echo "$ac_cv_build" >&6; }
2447 case $ac_cv_build in
2449 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
2452 ac_save_IFS
=$IFS; IFS
='-'
2458 # Remember, the first character of IFS is used to create $*,
2459 # except with old shells:
2462 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2466 $as_echo_n "checking host system type... " >&6; }
2467 if ${ac_cv_host+:} false
; then :
2468 $as_echo_n "(cached) " >&6
2470 if test "x$host_alias" = x
; then
2471 ac_cv_host
=$ac_cv_build
2473 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2474 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2479 $as_echo "$ac_cv_host" >&6; }
2482 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
2485 ac_save_IFS
=$IFS; IFS
='-'
2491 # Remember, the first character of IFS is used to create $*,
2492 # except with old shells:
2495 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2499 $as_echo_n "checking target system type... " >&6; }
2500 if ${ac_cv_target+:} false
; then :
2501 $as_echo_n "(cached) " >&6
2503 if test "x$target_alias" = x
; then
2504 ac_cv_target
=$ac_cv_host
2506 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2507 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2512 $as_echo "$ac_cv_target" >&6; }
2513 case $ac_cv_target in
2515 *) as_fn_error $?
"invalid value of canonical target" "$LINENO" 5;;
2517 target
=$ac_cv_target
2518 ac_save_IFS
=$IFS; IFS
='-'
2524 # Remember, the first character of IFS is used to create $*,
2525 # except with old shells:
2528 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
2531 # The aliases save the names the user supplied, while $host etc.
2532 # will get canonicalized.
2533 test -n "$target_alias" &&
2534 test "$program_prefix$program_suffix$program_transform_name" = \
2536 program_prefix
=${target_alias}-
2545 # Check whether --with-gcc was given.
2546 if test "${with_gcc+set}" = set; then :
2551 if test "${srcdir}" != "." ; then
2552 V_CCOPT
="-I\$(srcdir)"
2554 if test "${CFLAGS+set}" = set; then
2555 LBL_CFLAGS
="$CFLAGS"
2557 if test -z "$CC" ; then
2561 # Extract the first word of "shlicc2", so it can be a program name with args.
2562 set dummy shlicc2
; ac_word
=$2
2563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2564 $as_echo_n "checking for $ac_word... " >&6; }
2565 if ${ac_cv_prog_SHLICC2+:} false
; then :
2566 $as_echo_n "(cached) " >&6
2568 if test -n "$SHLICC2"; then
2569 ac_cv_prog_SHLICC2
="$SHLICC2" # Let the user override the test.
2571 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2575 test -z "$as_dir" && as_dir
=.
2576 for ac_exec_ext
in '' $ac_executable_extensions; do
2577 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2578 ac_cv_prog_SHLICC2
="yes"
2579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2586 test -z "$ac_cv_prog_SHLICC2" && ac_cv_prog_SHLICC2
="no"
2589 SHLICC2
=$ac_cv_prog_SHLICC2
2590 if test -n "$SHLICC2"; then
2591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHLICC2" >&5
2592 $as_echo "$SHLICC2" >&6; }
2594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2595 $as_echo "no" >&6; }
2599 if test $SHLICC2 = yes ; then
2606 if test -z "$CC" -a "$with_gcc" = no
; then
2612 # We require C99 or later.
2613 # Try to get it, which may involve adding compiler flags;
2614 # if that fails, give up.
2617 ac_cpp
='$CPP $CPPFLAGS'
2618 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2619 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2620 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2621 if test -n "$ac_tool_prefix"; then
2622 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2623 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2625 $as_echo_n "checking for $ac_word... " >&6; }
2626 if ${ac_cv_prog_CC+:} false
; then :
2627 $as_echo_n "(cached) " >&6
2629 if test -n "$CC"; then
2630 ac_cv_prog_CC
="$CC" # Let the user override the test.
2632 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2636 test -z "$as_dir" && as_dir
=.
2637 for ac_exec_ext
in '' $ac_executable_extensions; do
2638 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2639 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2640 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2650 if test -n "$CC"; then
2651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2652 $as_echo "$CC" >&6; }
2654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2655 $as_echo "no" >&6; }
2660 if test -z "$ac_cv_prog_CC"; then
2662 # Extract the first word of "gcc", so it can be a program name with args.
2663 set dummy gcc
; ac_word
=$2
2664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2665 $as_echo_n "checking for $ac_word... " >&6; }
2666 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
2667 $as_echo_n "(cached) " >&6
2669 if test -n "$ac_ct_CC"; then
2670 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2672 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2676 test -z "$as_dir" && as_dir
=.
2677 for ac_exec_ext
in '' $ac_executable_extensions; do
2678 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2679 ac_cv_prog_ac_ct_CC
="gcc"
2680 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2689 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2690 if test -n "$ac_ct_CC"; then
2691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2692 $as_echo "$ac_ct_CC" >&6; }
2694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2695 $as_echo "no" >&6; }
2698 if test "x$ac_ct_CC" = x
; then
2701 case $cross_compiling:$ac_tool_warned in
2703 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2704 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2705 ac_tool_warned
=yes ;;
2713 if test -z "$CC"; then
2714 if test -n "$ac_tool_prefix"; then
2715 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2716 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2718 $as_echo_n "checking for $ac_word... " >&6; }
2719 if ${ac_cv_prog_CC+:} false
; then :
2720 $as_echo_n "(cached) " >&6
2722 if test -n "$CC"; then
2723 ac_cv_prog_CC
="$CC" # Let the user override the test.
2725 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2729 test -z "$as_dir" && as_dir
=.
2730 for ac_exec_ext
in '' $ac_executable_extensions; do
2731 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2732 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2743 if test -n "$CC"; then
2744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2745 $as_echo "$CC" >&6; }
2747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2748 $as_echo "no" >&6; }
2754 if test -z "$CC"; then
2755 # Extract the first word of "cc", so it can be a program name with args.
2756 set dummy cc
; ac_word
=$2
2757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2758 $as_echo_n "checking for $ac_word... " >&6; }
2759 if ${ac_cv_prog_CC+:} false
; then :
2760 $as_echo_n "(cached) " >&6
2762 if test -n "$CC"; then
2763 ac_cv_prog_CC
="$CC" # Let the user override the test.
2766 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2770 test -z "$as_dir" && as_dir
=.
2771 for ac_exec_ext
in '' $ac_executable_extensions; do
2772 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2773 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2774 ac_prog_rejected
=yes
2778 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2785 if test $ac_prog_rejected = yes; then
2786 # We found a bogon in the path, so make sure we never use it.
2787 set dummy
$ac_cv_prog_CC
2789 if test $# != 0; then
2790 # We chose a different compiler from the bogus one.
2791 # However, it has the same basename, so the bogon will be chosen
2792 # first if we set CC to just the basename; use the full file name.
2794 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2800 if test -n "$CC"; then
2801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2802 $as_echo "$CC" >&6; }
2804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2805 $as_echo "no" >&6; }
2810 if test -z "$CC"; then
2811 if test -n "$ac_tool_prefix"; then
2812 for ac_prog
in cl.exe
2814 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2815 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2817 $as_echo_n "checking for $ac_word... " >&6; }
2818 if ${ac_cv_prog_CC+:} false
; then :
2819 $as_echo_n "(cached) " >&6
2821 if test -n "$CC"; then
2822 ac_cv_prog_CC
="$CC" # Let the user override the test.
2824 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2828 test -z "$as_dir" && as_dir
=.
2829 for ac_exec_ext
in '' $ac_executable_extensions; do
2830 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2831 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
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; }
2851 test -n "$CC" && break
2854 if test -z "$CC"; then
2856 for ac_prog
in cl.exe
2858 # Extract the first word of "$ac_prog", so it can be a program name with args.
2859 set dummy
$ac_prog; ac_word
=$2
2860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2861 $as_echo_n "checking for $ac_word... " >&6; }
2862 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
2863 $as_echo_n "(cached) " >&6
2865 if test -n "$ac_ct_CC"; then
2866 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2868 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2872 test -z "$as_dir" && as_dir
=.
2873 for ac_exec_ext
in '' $ac_executable_extensions; do
2874 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2875 ac_cv_prog_ac_ct_CC
="$ac_prog"
2876 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2885 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2886 if test -n "$ac_ct_CC"; then
2887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2888 $as_echo "$ac_ct_CC" >&6; }
2890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2891 $as_echo "no" >&6; }
2895 test -n "$ac_ct_CC" && break
2898 if test "x$ac_ct_CC" = x
; then
2901 case $cross_compiling:$ac_tool_warned in
2903 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2904 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2905 ac_tool_warned
=yes ;;
2914 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2915 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2916 as_fn_error $?
"no acceptable C compiler found in \$PATH
2917 See \`config.log' for more details" "$LINENO" 5; }
2919 # Provide some information about the compiler.
2920 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2923 for ac_option
in --version -v -V -qversion; do
2924 { { ac_try
="$ac_compiler $ac_option >&5"
2926 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2927 *) ac_try_echo=$ac_try;;
2929 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2930 $as_echo "$ac_try_echo"; } >&5
2931 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2933 if test -s conftest.err; then
2935 ... rest of stderr output deleted ...
2936 10q' conftest.err >conftest.er1
2937 cat conftest.er1 >&5
2939 rm -f conftest.er1 conftest.err
2940 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2941 test $ac_status = 0; }
2944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2945 /* end confdefs.h. */
2955 ac_clean_files_save=$ac_clean_files
2956 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2957 # Try to create an executable without -o first, disregard a.out.
2958 # It will help us diagnose broken compilers, and finding out an intuition
2960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2961 $as_echo_n "checking whether the C compiler works... " >&6; }
2962 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
2964 # The possible output files:
2965 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2968 for ac_file in $ac_files
2971 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2972 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2977 if { { ac_try="$ac_link_default"
2979 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2980 *) ac_try_echo
=$ac_try;;
2982 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2983 $as_echo "$ac_try_echo"; } >&5
2984 (eval "$ac_link_default") 2>&5
2986 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2987 test $ac_status = 0; }; then :
2988 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2989 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2990 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2991 # so that the user can short-circuit this test for compilers unknown to
2993 for ac_file
in $ac_files ''
2995 test -f "$ac_file" ||
continue
2997 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3000 # We found the default executable, but exeext='' is most
3004 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3006 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3008 # We set ac_cv_exeext here because the later test for it is not
3009 # safe: cross compilers may not add the suffix if given an `-o'
3010 # argument, so we may need to know it at that point already.
3011 # Even if this section looks crufty: it has the advantage of
3018 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3023 if test -z "$ac_file"; then :
3024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3025 $as_echo "no" >&6; }
3026 $as_echo "$as_me: failed program was:" >&5
3027 sed 's/^/| /' conftest.
$ac_ext >&5
3029 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3030 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3031 as_fn_error
77 "C compiler cannot create executables
3032 See \`config.log' for more details" "$LINENO" 5; }
3034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3035 $as_echo "yes" >&6; }
3037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3038 $as_echo_n "checking for C compiler default output file name... " >&6; }
3039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3040 $as_echo "$ac_file" >&6; }
3041 ac_exeext
=$ac_cv_exeext
3043 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
3044 ac_clean_files
=$ac_clean_files_save
3045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3046 $as_echo_n "checking for suffix of executables... " >&6; }
3047 if { { ac_try
="$ac_link"
3049 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3050 *) ac_try_echo=$ac_try;;
3052 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3053 $as_echo "$ac_try_echo"; } >&5
3054 (eval "$ac_link") 2>&5
3056 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3057 test $ac_status = 0; }; then :
3058 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
3059 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
3060 # work properly (i.e., refer to `conftest.exe'), while it won't with
3062 for ac_file
in conftest.exe conftest conftest.
*; do
3063 test -f "$ac_file" ||
continue
3065 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3066 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3072 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3073 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3074 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
3075 See \`config.log' for more details" "$LINENO" 5; }
3077 rm -f conftest conftest
$ac_cv_exeext
3078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3079 $as_echo "$ac_cv_exeext" >&6; }
3081 rm -f conftest.
$ac_ext
3082 EXEEXT
=$ac_cv_exeext
3084 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3085 /* end confdefs.h. */
3090 FILE *f = fopen ("conftest.out", "w");
3091 return ferror (f) || fclose (f) != 0;
3097 ac_clean_files
="$ac_clean_files conftest.out"
3098 # Check that the compiler produces executables we can run. If not, either
3099 # the compiler is broken, or we cross compile.
3100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3101 $as_echo_n "checking whether we are cross compiling... " >&6; }
3102 if test "$cross_compiling" != yes; then
3103 { { ac_try
="$ac_link"
3105 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3106 *) ac_try_echo=$ac_try;;
3108 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3109 $as_echo "$ac_try_echo"; } >&5
3110 (eval "$ac_link") 2>&5
3112 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3113 test $ac_status = 0; }
3114 if { ac_try='./conftest$ac_cv_exeext'
3115 { { case "(($ac_try" in
3116 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3117 *) ac_try_echo
=$ac_try;;
3119 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3120 $as_echo "$ac_try_echo"; } >&5
3121 (eval "$ac_try") 2>&5
3123 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3124 test $ac_status = 0; }; }; then
3127 if test "$cross_compiling" = maybe
; then
3130 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3131 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3132 as_fn_error $?
"cannot run C compiled programs.
3133 If you meant to cross compile, use \`--host'.
3134 See \`config.log' for more details" "$LINENO" 5; }
3138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3139 $as_echo "$cross_compiling" >&6; }
3141 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3142 ac_clean_files
=$ac_clean_files_save
3143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3144 $as_echo_n "checking for suffix of object files... " >&6; }
3145 if ${ac_cv_objext+:} false
; then :
3146 $as_echo_n "(cached) " >&6
3148 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3149 /* end confdefs.h. */
3159 rm -f conftest.o conftest.obj
3160 if { { ac_try
="$ac_compile"
3162 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3163 *) ac_try_echo=$ac_try;;
3165 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3166 $as_echo "$ac_try_echo"; } >&5
3167 (eval "$ac_compile") 2>&5
3169 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3170 test $ac_status = 0; }; then :
3171 for ac_file in conftest.o conftest.obj conftest.*; do
3172 test -f "$ac_file" || continue;
3174 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3175 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3180 $as_echo "$as_me: failed program was:" >&5
3181 sed 's/^/| /' conftest.$ac_ext >&5
3183 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3184 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3185 as_fn_error $? "cannot compute suffix of object files
: cannot compile
3186 See \
`config.log' for more details" "$LINENO" 5; }
3188 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3191 $as_echo "$ac_cv_objext" >&6; }
3192 OBJEXT=$ac_cv_objext
3194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3195 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3196 if ${ac_cv_c_compiler_gnu+:} false; then :
3197 $as_echo_n "(cached) " >&6
3199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3200 /* end confdefs.h. */
3213 if ac_fn_c_try_compile "$LINENO"; then :
3218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3219 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3223 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3224 if test $ac_compiler_gnu = yes; then
3229 ac_test_CFLAGS=${CFLAGS+set}
3230 ac_save_CFLAGS=$CFLAGS
3231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3232 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3233 if ${ac_cv_prog_cc_g+:} false; then :
3234 $as_echo_n "(cached) " >&6
3236 ac_save_c_werror_flag=$ac_c_werror_flag
3237 ac_c_werror_flag=yes
3240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3241 /* end confdefs.h. */
3251 if ac_fn_c_try_compile "$LINENO"; then :
3255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3256 /* end confdefs.h. */
3266 if ac_fn_c_try_compile "$LINENO"; then :
3269 ac_c_werror_flag=$ac_save_c_werror_flag
3271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3272 /* end confdefs.h. */
3282 if ac_fn_c_try_compile "$LINENO"; then :
3285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3290 ac_c_werror_flag=$ac_save_c_werror_flag
3292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3293 $as_echo "$ac_cv_prog_cc_g" >&6; }
3294 if test "$ac_test_CFLAGS" = set; then
3295 CFLAGS=$ac_save_CFLAGS
3296 elif test $ac_cv_prog_cc_g = yes; then
3297 if test "$GCC" = yes; then
3303 if test "$GCC" = yes; then
3309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3310 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3311 if ${ac_cv_prog_cc_c89+:} false; then :
3312 $as_echo_n "(cached) " >&6
3314 ac_cv_prog_cc_c89=no
3316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3317 /* end confdefs.h. */
3321 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3322 struct buf { int x; };
3323 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3324 static char *e (p, i)
3330 static char *f (char * (*g) (char **, int), char **p, ...)
3335 s = g (p, va_arg (v,int));
3340 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3341 function prototypes and stuff, but not '\xHH' hex character constants.
3342 These don't provoke an error unfortunately, instead are silently treated
3343 as 'x'. The following induces an error, until -std is added to get
3344 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3345 array size at least. It's necessary to write '\x00'==0 to get something
3346 that's true only with -std. */
3347 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3349 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3350 inside strings and character constants. */
3352 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3354 int test (int i, double x);
3355 struct s1 {int (*f) (int a);};
3356 struct s2 {int (*f) (double a);};
3357 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3363 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3368 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3369 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3371 CC="$ac_save_CC $ac_arg"
3372 if ac_fn_c_try_compile "$LINENO"; then :
3373 ac_cv_prog_cc_c89=$ac_arg
3375 rm -f core conftest.err conftest.$ac_objext
3376 test "x$ac_cv_prog_cc_c89" != "xno" && break
3378 rm -f conftest.$ac_ext
3383 case "x$ac_cv_prog_cc_c89" in
3385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3386 $as_echo "none needed" >&6; } ;;
3388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3389 $as_echo "unsupported" >&6; } ;;
3391 CC="$CC $ac_cv_prog_cc_c89"
3392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3393 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3395 if test "x$ac_cv_prog_cc_c89" != xno; then :
3400 ac_cpp='$CPP $CPPFLAGS'
3401 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3402 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3403 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3406 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3407 if ${ac_cv_prog_cc_c99+:} false; then :
3408 $as_echo_n "(cached) " >&6
3410 ac_cv_prog_cc_c99=no
3412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3413 /* end confdefs.h. */
3415 #include <stdbool.h>
3420 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3421 #define debug(...) fprintf (stderr, __VA_ARGS__)
3422 #define showlist(...) puts (#__VA_ARGS__)
3423 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3425 test_varargs_macros (void)
3430 debug ("X = %d\n", x);
3431 showlist (The first, second, and third items.);
3432 report (x>y, "x is %d but y is %d", x, y);
3435 // Check long long types.
3436 #define BIG64 18446744073709551615ull
3437 #define BIG32 4294967295ul
3438 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3440 your preprocessor is broken;
3444 your preprocessor is broken;
3446 static long long int bignum = -9223372036854775807LL;
3447 static unsigned long long int ubignum = BIG64;
3449 struct incomplete_array
3457 const wchar_t *name;
3461 typedef const char *ccp;
3464 test_restrict (ccp restrict text)
3466 // See if C++-style comments work.
3467 // Iterate through items via the restricted pointer.
3468 // Also check for declarations in for loops.
3469 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3474 // Check varargs and va_copy.
3476 test_varargs (const char *format, ...)
3479 va_start (args, format);
3481 va_copy (args_copy, args);
3492 str = va_arg (args_copy, const char *);
3495 number = va_arg (args_copy, int);
3498 fnumber = va_arg (args_copy, double);
3513 _Bool success = false;
3516 if (test_restrict ("String literal") == 0)
3518 char *restrict newvar = "Another string";
3521 test_varargs ("s, d' f .", "string", 65, 34.234);
3522 test_varargs_macros ();
3524 // Check flexible array members.
3525 struct incomplete_array *ia =
3526 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3528 for (int i = 0; i < ia->datasize; ++i)
3529 ia->data[i] = i * 1.234;
3531 // Check named initializers.
3532 struct named_init ni = {
3534 .name = L"Test wide string",
3535 .average = 543.34343,
3540 int dynamic_array[ni.number];
3541 dynamic_array[ni.number - 1] = 543;
3543 // work around unused variable warnings
3544 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3545 || dynamic_array[ni.number - 1] != 543);
3551 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
3553 CC="$ac_save_CC $ac_arg"
3554 if ac_fn_c_try_compile "$LINENO"; then :
3555 ac_cv_prog_cc_c99=$ac_arg
3557 rm -f core conftest.err conftest.$ac_objext
3558 test "x$ac_cv_prog_cc_c99" != "xno" && break
3560 rm -f conftest.$ac_ext
3565 case "x$ac_cv_prog_cc_c99" in
3567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3568 $as_echo "none needed" >&6; } ;;
3570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3571 $as_echo "unsupported" >&6; } ;;
3573 CC="$CC $ac_cv_prog_cc_c99"
3574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3575 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3577 if test "x$ac_cv_prog_cc_c99" != xno; then :
3582 if test "$ac_cv_prog_cc_c99" = "no"; then
3583 as_fn_error $? "The C compiler does not support C99" "$LINENO" 5
3588 # Haiku's platform file is in C++.
3591 ac_cpp='$CXXCPP $CPPFLAGS'
3592 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3593 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3594 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3595 if test -z "$CXX"; then
3596 if test -n "$CCC"; then
3599 if test -n "$ac_tool_prefix"; then
3600 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3602 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3603 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3605 $as_echo_n "checking for $ac_word... " >&6; }
3606 if ${ac_cv_prog_CXX+:} false; then :
3607 $as_echo_n "(cached) " >&6
3609 if test -n "$CXX"; then
3610 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3616 test -z "$as_dir" && as_dir=.
3617 for ac_exec_ext in '' $ac_executable_extensions; do
3618 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3619 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3630 if test -n "$CXX"; then
3631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3632 $as_echo "$CXX" >&6; }
3634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3635 $as_echo "no" >&6; }
3639 test -n "$CXX" && break
3642 if test -z "$CXX"; then
3644 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3646 # Extract the first word of "$ac_prog", so it can be a program name with args.
3647 set dummy $ac_prog; ac_word=$2
3648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3649 $as_echo_n "checking for $ac_word... " >&6; }
3650 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3651 $as_echo_n "(cached) " >&6
3653 if test -n "$ac_ct_CXX"; then
3654 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3660 test -z "$as_dir" && as_dir=.
3661 for ac_exec_ext in '' $ac_executable_extensions; do
3662 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3663 ac_cv_prog_ac_ct_CXX="$ac_prog"
3664 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3673 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3674 if test -n "$ac_ct_CXX"; then
3675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3676 $as_echo "$ac_ct_CXX" >&6; }
3678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3679 $as_echo "no" >&6; }
3683 test -n "$ac_ct_CXX" && break
3686 if test "x$ac_ct_CXX" = x; then
3689 case $cross_compiling:$ac_tool_warned in
3691 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3692 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3693 ac_tool_warned=yes ;;
3701 # Provide some information about the compiler.
3702 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3705 for ac_option in --version -v -V -qversion; do
3706 { { ac_try="$ac_compiler $ac_option >&5"
3708 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3709 *) ac_try_echo
=$ac_try;;
3711 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3712 $as_echo "$ac_try_echo"; } >&5
3713 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3715 if test -s conftest.err
; then
3717 ... rest of stderr output deleted ...
3718 10q' conftest.err
>conftest.er1
3719 cat conftest.er1
>&5
3721 rm -f conftest.er1 conftest.err
3722 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3723 test $ac_status = 0; }
3726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3727 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3728 if ${ac_cv_cxx_compiler_gnu+:} false
; then :
3729 $as_echo_n "(cached) " >&6
3731 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3732 /* end confdefs.h. */
3745 if ac_fn_cxx_try_compile
"$LINENO"; then :
3750 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3751 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
3754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3755 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3756 if test $ac_compiler_gnu = yes; then
3761 ac_test_CXXFLAGS
=${CXXFLAGS+set}
3762 ac_save_CXXFLAGS
=$CXXFLAGS
3763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3764 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3765 if ${ac_cv_prog_cxx_g+:} false
; then :
3766 $as_echo_n "(cached) " >&6
3768 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
3769 ac_cxx_werror_flag
=yes
3772 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3773 /* end confdefs.h. */
3783 if ac_fn_cxx_try_compile
"$LINENO"; then :
3784 ac_cv_prog_cxx_g
=yes
3787 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3788 /* end confdefs.h. */
3798 if ac_fn_cxx_try_compile
"$LINENO"; then :
3801 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
3803 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3804 /* end confdefs.h. */
3814 if ac_fn_cxx_try_compile
"$LINENO"; then :
3815 ac_cv_prog_cxx_g
=yes
3817 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3819 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3821 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3822 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
3824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3825 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3826 if test "$ac_test_CXXFLAGS" = set; then
3827 CXXFLAGS
=$ac_save_CXXFLAGS
3828 elif test $ac_cv_prog_cxx_g = yes; then
3829 if test "$GXX" = yes; then
3835 if test "$GXX" = yes; then
3842 ac_cpp
='$CPP $CPPFLAGS'
3843 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3844 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3845 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3855 if test "$GCC" = yes ; then
3857 # -Werror forces warnings to be errors.
3859 ac_lbl_cc_force_warning_errors
=-Werror
3862 # Try to have the compiler default to hiding symbols,
3863 # so that only symbols explicitly exported with
3864 # PCAP_API will be visible outside (shared) libraries.
3867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -fvisibility=hidden option" >&5
3868 $as_echo_n "checking whether the compiler supports the -fvisibility=hidden option... " >&6; }
3869 save_CFLAGS
="$CFLAGS"
3870 CFLAGS
="$CFLAGS -fvisibility=hidden"
3872 # XXX - yes, this depends on the way AC_LANG_WERROR works,
3873 # but no mechanism is provided to turn AC_LANG_WERROR on
3874 # *and then turn it back off*, so that we *only* do it when
3875 # testing compiler options - 15 years after somebody asked
3878 # https://autoconf.gnu.narkive.com/gTAVmfKD/how-to-cancel-flags-set-by-ac-lang-werror
3880 save_ac_c_werror_flag
="$ac_c_werror_flag"
3881 ac_c_werror_flag
=yes
3883 # We use AC_LANG_SOURCE() so that we can control the complete
3884 # content of the program being compiled. We do not, for example,
3885 # want the default "int main()" that AC_LANG_PROGRAM() generates,
3886 # as it will generate a warning with -Wold-style-definition, meaning
3887 # that we would treat it as not working, as the test will fail if
3888 # *any* error output, including a warning due to the flag we're
3889 # testing, is generated; see
3891 # https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us
3892 # https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us
3894 # This may, as per those two messages, be fixed in autoonf 2.70,
3895 # but we only require 2.64 or newer for now.
3897 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3898 /* end confdefs.h. */
3899 int main(void) { return 0; }
3901 if ac_fn_c_try_compile
"$LINENO"; then :
3903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3904 $as_echo "yes" >&6; }
3905 can_add_to_cflags
=yes
3907 # The compile supports this; do we have some C code for
3908 # which the warning should *not* appear?
3909 # We test the fourth argument because the third argument
3910 # could contain quotes, breaking the test.
3914 CFLAGS
="$CFLAGS $ac_lbl_cc_force_warning_errors"
3915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fvisibility=hidden " >&5
3916 $as_echo_n "checking whether -fvisibility=hidden ... " >&6; }
3917 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3918 /* end confdefs.h. */
3921 if ac_fn_c_try_compile
"$LINENO"; then :
3926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3927 $as_echo "no" >&6; }
3934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3935 $as_echo "yes" >&6; }
3936 can_add_to_cflags
=no
3939 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3941 CFLAGS
="$save_CFLAGS"
3942 if test x
"$can_add_to_cflags" = "xyes"
3944 V_CCOPT
="$V_CCOPT -fvisibility=hidden"
3949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3950 $as_echo "no" >&6; }
3951 CFLAGS
="$save_CFLAGS"
3954 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3955 ac_c_werror_flag
="$save_ac_c_werror_flag"
3958 V_INCLS
="$V_INCLS -I/usr/local/include"
3959 LDFLAGS
="$LDFLAGS -L/usr/local/lib"
3965 # This is assumed either to be GCC or clang, both
3966 # of which use -Werror to force warnings to be errors.
3968 ac_lbl_cc_force_warning_errors
=-Werror
3971 # Try to have the compiler default to hiding symbols,
3972 # so that only symbols explicitly exported with
3973 # PCAP_API will be visible outside (shared) libraries.
3976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -fvisibility=hidden option" >&5
3977 $as_echo_n "checking whether the compiler supports the -fvisibility=hidden option... " >&6; }
3978 save_CFLAGS
="$CFLAGS"
3979 CFLAGS
="$CFLAGS -fvisibility=hidden"
3981 # XXX - yes, this depends on the way AC_LANG_WERROR works,
3982 # but no mechanism is provided to turn AC_LANG_WERROR on
3983 # *and then turn it back off*, so that we *only* do it when
3984 # testing compiler options - 15 years after somebody asked
3987 # https://autoconf.gnu.narkive.com/gTAVmfKD/how-to-cancel-flags-set-by-ac-lang-werror
3989 save_ac_c_werror_flag
="$ac_c_werror_flag"
3990 ac_c_werror_flag
=yes
3992 # We use AC_LANG_SOURCE() so that we can control the complete
3993 # content of the program being compiled. We do not, for example,
3994 # want the default "int main()" that AC_LANG_PROGRAM() generates,
3995 # as it will generate a warning with -Wold-style-definition, meaning
3996 # that we would treat it as not working, as the test will fail if
3997 # *any* error output, including a warning due to the flag we're
3998 # testing, is generated; see
4000 # https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us
4001 # https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us
4003 # This may, as per those two messages, be fixed in autoonf 2.70,
4004 # but we only require 2.64 or newer for now.
4006 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4007 /* end confdefs.h. */
4008 int main(void) { return 0; }
4010 if ac_fn_c_try_compile
"$LINENO"; then :
4012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4013 $as_echo "yes" >&6; }
4014 can_add_to_cflags
=yes
4016 # The compile supports this; do we have some C code for
4017 # which the warning should *not* appear?
4018 # We test the fourth argument because the third argument
4019 # could contain quotes, breaking the test.
4023 CFLAGS
="$CFLAGS $ac_lbl_cc_force_warning_errors"
4024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fvisibility=hidden " >&5
4025 $as_echo_n "checking whether -fvisibility=hidden ... " >&6; }
4026 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4027 /* end confdefs.h. */
4030 if ac_fn_c_try_compile
"$LINENO"; then :
4035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4036 $as_echo "no" >&6; }
4043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4044 $as_echo "yes" >&6; }
4045 can_add_to_cflags
=no
4048 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4050 CFLAGS
="$save_CFLAGS"
4051 if test x
"$can_add_to_cflags" = "xyes"
4053 V_CCOPT
="$V_CCOPT -fvisibility=hidden"
4058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4059 $as_echo "no" >&6; }
4060 CFLAGS
="$save_CFLAGS"
4063 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4064 ac_c_werror_flag
="$save_ac_c_werror_flag"
4070 # HP C, which is what we presume we're using, doesn't
4071 # exit with a non-zero exit status if we hand it an
4072 # invalid -W flag, can't be forced to do so even with
4073 # +We, and doesn't handle GCC-style -W flags, so we
4074 # don't want to try using GCC-style -W flags.
4076 ac_lbl_cc_dont_try_gcc_dashW
=yes
4081 # MIPS C, which is what we presume we're using, doesn't
4082 # necessarily exit with a non-zero exit status if we
4083 # hand it an invalid -W flag, can't be forced to do
4084 # so, and doesn't handle GCC-style -W flags, so we
4085 # don't want to try using GCC-style -W flags.
4087 ac_lbl_cc_dont_try_gcc_dashW
=yes
4089 # It also, apparently, defaults to "char" being
4090 # unsigned, unlike most other C implementations;
4091 # I suppose we could say "signed char" whenever
4092 # we want to guarantee a signed "char", but let's
4093 # just force signed chars.
4095 # -xansi is normally the default, but the
4096 # configure script was setting it; perhaps -cckr
4097 # was the default in the Old Days. (Then again,
4098 # that would probably be for backwards compatibility
4099 # in the days when ANSI C was Shiny and New, i.e.
4100 # 1989 and the early '90's, so maybe we can just
4101 # drop support for those compilers.)
4103 # -g is equivalent to -g2, which turns off
4104 # optimization; we choose -g3, which generates
4105 # debugging information but doesn't turn off
4106 # optimization (even if the optimization would
4107 # cause inaccuracies in debugging).
4109 V_CCOPT
="$V_CCOPT -xansi -signed -g3"
4114 # Presumed to be DEC OSF/1, Digital UNIX, or
4117 # The DEC C compiler, which is what we presume we're
4118 # using, doesn't exit with a non-zero exit status if we
4119 # hand it an invalid -W flag, can't be forced to do
4120 # so, and doesn't handle GCC-style -W flags, so we
4121 # don't want to try using GCC-style -W flags.
4123 ac_lbl_cc_dont_try_gcc_dashW
=yes
4125 # -g is equivalent to -g2, which turns off
4126 # optimization; we choose -g3, which generates
4127 # debugging information but doesn't turn off
4128 # optimization (even if the optimization would
4129 # cause inaccuracies in debugging).
4131 V_CCOPT
="$V_CCOPT -g3"
4136 # Assumed to be Sun C, which requires -errwarn to force
4137 # warnings to be treated as errors.
4139 ac_lbl_cc_force_warning_errors
=-errwarn
4142 # Try to have the compiler default to hiding symbols,
4143 # so that only symbols explicitly exported with
4144 # PCAP_API will be visible outside (shared) libraries.
4147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -xldscope=hidden option" >&5
4148 $as_echo_n "checking whether the compiler supports the -xldscope=hidden option... " >&6; }
4149 save_CFLAGS
="$CFLAGS"
4150 CFLAGS
="$CFLAGS -xldscope=hidden"
4152 # XXX - yes, this depends on the way AC_LANG_WERROR works,
4153 # but no mechanism is provided to turn AC_LANG_WERROR on
4154 # *and then turn it back off*, so that we *only* do it when
4155 # testing compiler options - 15 years after somebody asked
4158 # https://autoconf.gnu.narkive.com/gTAVmfKD/how-to-cancel-flags-set-by-ac-lang-werror
4160 save_ac_c_werror_flag
="$ac_c_werror_flag"
4161 ac_c_werror_flag
=yes
4163 # We use AC_LANG_SOURCE() so that we can control the complete
4164 # content of the program being compiled. We do not, for example,
4165 # want the default "int main()" that AC_LANG_PROGRAM() generates,
4166 # as it will generate a warning with -Wold-style-definition, meaning
4167 # that we would treat it as not working, as the test will fail if
4168 # *any* error output, including a warning due to the flag we're
4169 # testing, is generated; see
4171 # https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us
4172 # https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us
4174 # This may, as per those two messages, be fixed in autoonf 2.70,
4175 # but we only require 2.64 or newer for now.
4177 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4178 /* end confdefs.h. */
4179 int main(void) { return 0; }
4181 if ac_fn_c_try_compile
"$LINENO"; then :
4183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4184 $as_echo "yes" >&6; }
4185 can_add_to_cflags
=yes
4187 # The compile supports this; do we have some C code for
4188 # which the warning should *not* appear?
4189 # We test the fourth argument because the third argument
4190 # could contain quotes, breaking the test.
4194 CFLAGS
="$CFLAGS $ac_lbl_cc_force_warning_errors"
4195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -xldscope=hidden " >&5
4196 $as_echo_n "checking whether -xldscope=hidden ... " >&6; }
4197 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4198 /* end confdefs.h. */
4201 if ac_fn_c_try_compile
"$LINENO"; then :
4206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4207 $as_echo "no" >&6; }
4214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4215 $as_echo "yes" >&6; }
4216 can_add_to_cflags
=no
4219 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4221 CFLAGS
="$save_CFLAGS"
4222 if test x
"$can_add_to_cflags" = "xyes"
4224 V_CCOPT
="$V_CCOPT -xldscope=hidden"
4229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4230 $as_echo "no" >&6; }
4231 CFLAGS
="$save_CFLAGS"
4234 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4235 ac_c_werror_flag
="$save_ac_c_werror_flag"
4240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that Ultrix $CC hacks const in prototypes" >&5
4241 $as_echo_n "checking that Ultrix $CC hacks const in prototypes... " >&6; }
4242 if ${ac_cv_lbl_cc_const_proto+:} false
; then :
4243 $as_echo_n "(cached) " >&6
4245 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4246 /* end confdefs.h. */
4247 #include <sys/types.h>
4251 struct a { int b; };
4252 void c(const struct a *)
4257 if ac_fn_c_try_compile
"$LINENO"; then :
4258 ac_cv_lbl_cc_const_proto
=yes
4260 ac_cv_lbl_cc_const_proto
=no
4262 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_cc_const_proto" >&5
4266 $as_echo "$ac_cv_lbl_cc_const_proto" >&6; }
4267 if test $ac_cv_lbl_cc_const_proto = no
; then
4269 $as_echo "#define const /**/" >>confdefs.h
4274 V_CCOPT
="$V_CCOPT -O"
4278 if test "$GCC" = yes ; then
4280 # On platforms where we build a shared library:
4282 # add options to generate position-independent code,
4283 # if necessary (it's the default in AIX and Darwin/macOS);
4285 # define option to set the soname of the shared library,
4286 # if the OS supports that;
4288 # add options to specify, at link time, a directory to
4289 # add to the run-time search path, if that's necessary.
4291 V_SHLIB_CMD
="\$(CC)"
4292 V_SHLIB_OPT
="-shared"
4298 freebsd
*|netbsd
*|openbsd
*|dragonfly
*|linux
*|osf
*|haiku
*|midipix
*)
4300 # Platforms where the linker is the GNU linker
4301 # or accepts command-line arguments like
4302 # those the GNU linker accepts.
4304 # Some instruction sets require -fPIC on some
4305 # operating systems. Check for them. If you
4306 # have a combination that requires it, add it
4315 freebsd
*|openbsd
*|linux
*)
4321 V_SHLIB_CCOPT
="$V_SHLIB_CCOPT $PIC_OPT"
4322 V_SONAME_OPT
="-Wl,-soname,"
4323 V_RPATH_OPT
="-Wl,-rpath,"
4327 V_SHLIB_CCOPT
="$V_SHLIB_CCOPT -fpic"
4329 # XXX - this assumes GCC is using the HP linker,
4330 # rather than the GNU linker, and that the "+h"
4331 # option is used on all HP-UX platforms, both .sl
4334 V_SONAME_OPT
="-Wl,+h,"
4336 # By default, directories specified with -L
4337 # are added to the run-time search path, so
4338 # we don't add them in pcap-config.
4343 V_SHLIB_CCOPT
="$V_SHLIB_CCOPT -fpic"
4345 # XXX - this assumes GCC is using the Sun linker,
4346 # rather than the GNU linker.
4348 V_SONAME_OPT
="-Wl,-h,"
4349 V_RPATH_OPT
="-Wl,-R,"
4354 # Set the appropriate compiler flags and, on platforms
4355 # where we build a shared library:
4357 # add options to generate position-independent code,
4358 # if necessary (it's the default in Darwin/macOS);
4360 # if we generate ".so" shared libraries, define the
4361 # appropriate options for building the shared library;
4363 # add options to specify, at link time, a directory to
4364 # add to the run-time search path, if that's necessary.
4366 # Note: spaces after V_SONAME_OPT are significant; on
4367 # some platforms the soname is passed with a GCC-like
4368 # "-Wl,-soname,{soname}" option, with the soname part
4369 # of the option, while on other platforms the C compiler
4370 # driver takes it as a regular option with the soname
4371 # following the option. The same applies to V_RPATH_OPT.
4376 V_SHLIB_CMD
="\$(CC)"
4377 V_SHLIB_OPT
="-G -bnoentry -bexpall"
4380 freebsd
*|netbsd
*|openbsd
*|dragonfly
*|linux
*)
4384 V_SHLIB_CCOPT
="$V_SHLIB_CCOPT -fpic"
4385 V_SHLIB_CMD
="\$(CC)"
4386 V_SHLIB_OPT
="-shared"
4387 V_SONAME_OPT
="-Wl,-soname,"
4388 V_RPATH_OPT
="-Wl,-rpath,"
4392 V_SHLIB_CCOPT
="$V_SHLIB_CCOPT +z"
4393 V_SHLIB_CMD
="\$(LD)"
4397 # By default, directories specified with -L
4398 # are added to the run-time search path, so
4399 # we don't add them in pcap-config.
4405 # Presumed to be DEC OSF/1, Digital UNIX, or
4408 V_SHLIB_CMD
="\$(CC)"
4409 V_SHLIB_OPT
="-shared"
4410 V_SONAME_OPT
="-soname "
4411 V_RPATH_OPT
="-rpath "
4415 V_SHLIB_CCOPT
="$V_SHLIB_CCOPT -Kpic"
4416 V_SHLIB_CMD
="\$(CC)"
4424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
4425 $as_echo_n "checking for inline... " >&6; }
4426 save_CFLAGS
="$CFLAGS"
4428 if ${ac_cv_lbl_inline+:} false
; then :
4429 $as_echo_n "(cached) " >&6
4434 for ac_lbl_inline
in inline __inline__ __inline
4436 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4437 /* end confdefs.h. */
4438 #define inline $ac_lbl_inline
4439 static inline struct iltest *foo(void);
4445 static inline struct iltest *
4448 static struct iltest xxx;
4460 if ac_fn_c_try_compile
"$LINENO"; then :
4461 ac_lbl_cc_inline
=yes
4463 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4464 if test "$ac_lbl_cc_inline" = yes ; then
4468 if test "$ac_lbl_cc_inline" = yes ; then
4469 ac_cv_lbl_inline
=$ac_lbl_inline
4473 CFLAGS
="$save_CFLAGS"
4474 if test ! -z "$ac_cv_lbl_inline" ; then
4475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_inline" >&5
4476 $as_echo "$ac_cv_lbl_inline" >&6; }
4478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4479 $as_echo "no" >&6; }
4482 cat >>confdefs.h
<<_ACEOF
4483 #define inline $ac_cv_lbl_inline
4487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_load_n" >&5
4488 $as_echo_n "checking for __atomic_load_n... " >&6; }
4489 if ${ac_cv_have___atomic_load_n+:} false
; then :
4490 $as_echo_n "(cached) " >&6
4493 # ac_fn_c_try_link LINENO
4494 # -----------------------
4495 # Try to link conftest.$ac_ext, and return whether this succeeded.
4498 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
4499 rm -f conftest.
$ac_objext conftest
$ac_exeext
4500 if { { ac_try
="$ac_link"
4502 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4503 *) ac_try_echo=$ac_try;;
4505 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4506 $as_echo "$ac_try_echo"; } >&5
4507 (eval "$ac_link") 2>conftest.err
4509 if test -s conftest.err; then
4510 grep -v '^ *+' conftest.err >conftest.er1
4511 cat conftest.er1 >&5
4512 mv -f conftest.er1 conftest.err
4514 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4515 test $ac_status = 0; } && {
4516 test -z "$ac_c_werror_flag" ||
4517 test ! -s conftest.err
4518 } && test -s conftest$ac_exeext && {
4519 test "$cross_compiling" = yes ||
4520 test -x conftest$ac_exeext
4524 $as_echo "$as_me: failed program was:" >&5
4525 sed 's/^/| /' conftest.$ac_ext >&5
4529 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
4530 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
4531 # interfere with the next link command; also delete a directory that is
4532 # left behind by Apple's compiler. We do this before executing the actions.
4533 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
4534 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
4535 as_fn_set_status $ac_retval
4537 } # ac_fn_c_try_link
4538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4539 /* end confdefs.h. */
4547 j = __atomic_load_n(&i, __ATOMIC_RELAXED);
4553 if ac_fn_c_try_link "$LINENO"; then :
4554 ac_have___atomic_load_n=yes
4556 ac_have___atomic_load_n=no
4558 rm -f core conftest.err conftest.$ac_objext \
4559 conftest$ac_exeext conftest.$ac_ext
4562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_have___atomic_load_n" >&5
4563 $as_echo "$ac_have___atomic_load_n" >&6; }
4564 if test $ac_have___atomic_load_n = yes ; then
4566 $as_echo "#define HAVE___ATOMIC_LOAD_N 1" >>confdefs.h
4570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_store_n" >&5
4571 $as_echo_n "checking for __atomic_store_n... " >&6; }
4572 if ${ac_cv_have___atomic_store_n+:} false; then :
4573 $as_echo_n "(cached) " >&6
4575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4576 /* end confdefs.h. */
4583 __atomic_store_n(&i, 17, __ATOMIC_RELAXED);
4589 if ac_fn_c_try_link "$LINENO"; then :
4590 ac_have___atomic_store_n=yes
4592 ac_have___atomic_store_n=no
4594 rm -f core conftest.err conftest.$ac_objext \
4595 conftest$ac_exeext conftest.$ac_ext
4598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_have___atomic_store_n" >&5
4599 $as_echo "$ac_have___atomic_store_n" >&6; }
4600 if test $ac_have___atomic_store_n = yes ; then
4602 $as_echo "#define HAVE___ATOMIC_STORE_N 1" >>confdefs.h
4607 # Try to arrange for large file support.
4609 # Check whether --enable-largefile was given.
4610 if test "${enable_largefile+set}" = set; then :
4611 enableval=$enable_largefile;
4614 if test "$enable_largefile" != no; then
4616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4617 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4618 if ${ac_cv_sys_largefile_CC+:} false; then :
4619 $as_echo_n "(cached) " >&6
4621 ac_cv_sys_largefile_CC=no
4622 if test "$GCC" != yes; then
4625 # IRIX 6.2 and later do not support large files by default,
4626 # so use the C compiler's -n32 option if that helps.
4627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4628 /* end confdefs.h. */
4629 #include <sys/types.h>
4630 /* Check that off_t can represent 2**63 - 1 correctly.
4631 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4632 since some C++ compilers masquerading as C compilers
4633 incorrectly reject 9223372036854775807. */
4634 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
4635 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4636 && LARGE_OFF_T % 2147483647 == 1)
4646 if ac_fn_c_try_compile "$LINENO"; then :
4649 rm -f core conftest.err conftest.$ac_objext
4651 if ac_fn_c_try_compile "$LINENO"; then :
4652 ac_cv_sys_largefile_CC=' -n32'; break
4654 rm -f core conftest.err conftest.$ac_objext
4658 rm -f conftest.$ac_ext
4661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4662 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4663 if test "$ac_cv_sys_largefile_CC" != no; then
4664 CC=$CC$ac_cv_sys_largefile_CC
4667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4668 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4669 if ${ac_cv_sys_file_offset_bits+:} false; then :
4670 $as_echo_n "(cached) " >&6
4673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4674 /* end confdefs.h. */
4675 #include <sys/types.h>
4676 /* Check that off_t can represent 2**63 - 1 correctly.
4677 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4678 since some C++ compilers masquerading as C compilers
4679 incorrectly reject 9223372036854775807. */
4680 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
4681 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4682 && LARGE_OFF_T % 2147483647 == 1)
4692 if ac_fn_c_try_compile "$LINENO"; then :
4693 ac_cv_sys_file_offset_bits=no; break
4695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4697 /* end confdefs.h. */
4698 #define _FILE_OFFSET_BITS 64
4699 #include <sys/types.h>
4700 /* Check that off_t can represent 2**63 - 1 correctly.
4701 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4702 since some C++ compilers masquerading as C compilers
4703 incorrectly reject 9223372036854775807. */
4704 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
4705 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4706 && LARGE_OFF_T % 2147483647 == 1)
4716 if ac_fn_c_try_compile "$LINENO"; then :
4717 ac_cv_sys_file_offset_bits=64; break
4719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4720 ac_cv_sys_file_offset_bits=unknown
4724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4725 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4726 case $ac_cv_sys_file_offset_bits in #(
4729 cat >>confdefs.h <<_ACEOF
4730 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4735 if test $ac_cv_sys_file_offset_bits = unknown; then
4736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4737 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4738 if ${ac_cv_sys_large_files+:} false; then :
4739 $as_echo_n "(cached) " >&6
4742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4743 /* end confdefs.h. */
4744 #include <sys/types.h>
4745 /* Check that off_t can represent 2**63 - 1 correctly.
4746 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4747 since some C++ compilers masquerading as C compilers
4748 incorrectly reject 9223372036854775807. */
4749 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
4750 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4751 && LARGE_OFF_T % 2147483647 == 1)
4761 if ac_fn_c_try_compile "$LINENO"; then :
4762 ac_cv_sys_large_files=no; break
4764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4766 /* end confdefs.h. */
4767 #define _LARGE_FILES 1
4768 #include <sys/types.h>
4769 /* Check that off_t can represent 2**63 - 1 correctly.
4770 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4771 since some C++ compilers masquerading as C compilers
4772 incorrectly reject 9223372036854775807. */
4773 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
4774 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4775 && LARGE_OFF_T % 2147483647 == 1)
4785 if ac_fn_c_try_compile "$LINENO"; then :
4786 ac_cv_sys_large_files=1; break
4788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4789 ac_cv_sys_large_files=unknown
4793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4794 $as_echo "$ac_cv_sys_large_files" >&6; }
4795 case $ac_cv_sys_large_files in #(
4798 cat >>confdefs.h <<_ACEOF
4799 #define _LARGE_FILES $ac_cv_sys_large_files
4809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
4810 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
4811 if ${ac_cv_sys_largefile_source+:} false; then :
4812 $as_echo_n "(cached) " >&6
4815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4816 /* end confdefs.h. */
4817 #include <sys/types.h> /* for off_t */
4822 int (*fp) (FILE *, off_t, int) = fseeko;
4823 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
4828 if ac_fn_c_try_link "$LINENO"; then :
4829 ac_cv_sys_largefile_source=no; break
4831 rm -f core conftest.err conftest.$ac_objext \
4832 conftest$ac_exeext conftest.$ac_ext
4833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4834 /* end confdefs.h. */
4835 #define _LARGEFILE_SOURCE 1
4836 #include <sys/types.h> /* for off_t */
4841 int (*fp) (FILE *, off_t, int) = fseeko;
4842 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
4847 if ac_fn_c_try_link "$LINENO"; then :
4848 ac_cv_sys_largefile_source=1; break
4850 rm -f core conftest.err conftest.$ac_objext \
4851 conftest$ac_exeext conftest.$ac_ext
4852 ac_cv_sys_largefile_source=unknown
4856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
4857 $as_echo "$ac_cv_sys_largefile_source" >&6; }
4858 case $ac_cv_sys_largefile_source in #(
4861 cat >>confdefs.h <<_ACEOF
4862 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
4868 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
4869 # in glibc 2.1.3, but that breaks too many other things.
4870 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
4871 if test $ac_cv_sys_largefile_source != unknown; then
4873 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
4879 ac_cpp='$CPP $CPPFLAGS'
4880 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4881 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4882 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4884 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4885 # On Suns, sometimes $CPP names a directory.
4886 if test -n "$CPP" && test -d "$CPP"; then
4889 if test -z "$CPP"; then
4890 if ${ac_cv_prog_CPP+:} false; then :
4891 $as_echo_n "(cached) " >&6
4893 # Double quotes because CPP needs to be expanded
4894 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4897 for ac_c_preproc_warn_flag in '' yes
4899 # Use a header file that comes with gcc, so configuring glibc
4900 # with a fresh cross-compiler works.
4901 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4902 # <limits.h> exists even on freestanding compilers.
4903 # On the NeXT, cc -E runs the code through the compiler's parser,
4904 # not just through cpp. "Syntax error" is here to catch this case.
4905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4906 /* end confdefs.h. */
4908 # include <limits.h>
4910 # include <assert.h>
4914 if ac_fn_c_try_cpp "$LINENO"; then :
4917 # Broken: fails on valid input.
4920 rm -f conftest.err conftest.i conftest.$ac_ext
4922 # OK, works on sane cases. Now check whether nonexistent headers
4923 # can be detected and how.
4924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4925 /* end confdefs.h. */
4926 #include <ac_nonexistent.h>
4928 if ac_fn_c_try_cpp "$LINENO"; then :
4929 # Broken: success on invalid input.
4932 # Passes both tests.
4936 rm -f conftest.err conftest.i conftest.$ac_ext
4939 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4940 rm -f conftest.i conftest.err conftest.
$ac_ext
4941 if $ac_preproc_ok; then :
4953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4954 $as_echo "$CPP" >&6; }
4956 for ac_c_preproc_warn_flag
in '' yes
4958 # Use a header file that comes with gcc, so configuring glibc
4959 # with a fresh cross-compiler works.
4960 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4961 # <limits.h> exists even on freestanding compilers.
4962 # On the NeXT, cc -E runs the code through the compiler's parser,
4963 # not just through cpp. "Syntax error" is here to catch this case.
4964 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4965 /* end confdefs.h. */
4967 # include <limits.h>
4969 # include <assert.h>
4973 if ac_fn_c_try_cpp
"$LINENO"; then :
4976 # Broken: fails on valid input.
4979 rm -f conftest.err conftest.i conftest.
$ac_ext
4981 # OK, works on sane cases. Now check whether nonexistent headers
4982 # can be detected and how.
4983 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4984 /* end confdefs.h. */
4985 #include <ac_nonexistent.h>
4987 if ac_fn_c_try_cpp
"$LINENO"; then :
4988 # Broken: success on invalid input.
4991 # Passes both tests.
4995 rm -f conftest.err conftest.i conftest.
$ac_ext
4998 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4999 rm -f conftest.i conftest.err conftest.
$ac_ext
5000 if $ac_preproc_ok; then :
5003 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5004 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5005 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
5006 See \`config.log' for more details" "$LINENO" 5; }
5010 ac_cpp
='$CPP $CPPFLAGS'
5011 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5012 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5013 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5017 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5018 if ${ac_cv_path_GREP+:} false
; then :
5019 $as_echo_n "(cached) " >&6
5021 if test -z "$GREP"; then
5022 ac_path_GREP_found
=false
5023 # Loop through the user's path and test for each of PROGNAME-LIST
5024 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5025 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5028 test -z "$as_dir" && as_dir
=.
5029 for ac_prog
in grep ggrep
; do
5030 for ac_exec_ext
in '' $ac_executable_extensions; do
5031 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
5032 as_fn_executable_p
"$ac_path_GREP" ||
continue
5033 # Check for GNU ac_path_GREP and select it if it is found.
5034 # Check for GNU $ac_path_GREP
5035 case `"$ac_path_GREP" --version 2>&1` in
5037 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
5040 $as_echo_n 0123456789 >"conftest.in"
5043 cat "conftest.in" "conftest.in" >"conftest.tmp"
5044 mv "conftest.tmp" "conftest.in"
5045 cp "conftest.in" "conftest.nl"
5046 $as_echo 'GREP' >> "conftest.nl"
5047 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5048 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5049 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5050 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5051 # Best one so far, save it but keep looking for a better one
5052 ac_cv_path_GREP
="$ac_path_GREP"
5053 ac_path_GREP_max
=$ac_count
5055 # 10*(2^10) chars as input seems more than enough
5056 test $ac_count -gt 10 && break
5058 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5061 $ac_path_GREP_found && break 3
5066 if test -z "$ac_cv_path_GREP"; then
5067 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5070 ac_cv_path_GREP
=$GREP
5074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5075 $as_echo "$ac_cv_path_GREP" >&6; }
5076 GREP
="$ac_cv_path_GREP"
5079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5080 $as_echo_n "checking for egrep... " >&6; }
5081 if ${ac_cv_path_EGREP+:} false
; then :
5082 $as_echo_n "(cached) " >&6
5084 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
5085 then ac_cv_path_EGREP
="$GREP -E"
5087 if test -z "$EGREP"; then
5088 ac_path_EGREP_found
=false
5089 # Loop through the user's path and test for each of PROGNAME-LIST
5090 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5091 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5094 test -z "$as_dir" && as_dir
=.
5095 for ac_prog
in egrep; do
5096 for ac_exec_ext
in '' $ac_executable_extensions; do
5097 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
5098 as_fn_executable_p
"$ac_path_EGREP" ||
continue
5099 # Check for GNU ac_path_EGREP and select it if it is found.
5100 # Check for GNU $ac_path_EGREP
5101 case `"$ac_path_EGREP" --version 2>&1` in
5103 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
5106 $as_echo_n 0123456789 >"conftest.in"
5109 cat "conftest.in" "conftest.in" >"conftest.tmp"
5110 mv "conftest.tmp" "conftest.in"
5111 cp "conftest.in" "conftest.nl"
5112 $as_echo 'EGREP' >> "conftest.nl"
5113 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5114 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5115 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5116 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5117 # Best one so far, save it but keep looking for a better one
5118 ac_cv_path_EGREP
="$ac_path_EGREP"
5119 ac_path_EGREP_max
=$ac_count
5121 # 10*(2^10) chars as input seems more than enough
5122 test $ac_count -gt 10 && break
5124 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5127 $ac_path_EGREP_found && break 3
5132 if test -z "$ac_cv_path_EGREP"; then
5133 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5136 ac_cv_path_EGREP
=$EGREP
5141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5142 $as_echo "$ac_cv_path_EGREP" >&6; }
5143 EGREP
="$ac_cv_path_EGREP"
5146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5147 $as_echo_n "checking for ANSI C header files... " >&6; }
5148 if ${ac_cv_header_stdc+:} false
; then :
5149 $as_echo_n "(cached) " >&6
5151 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5152 /* end confdefs.h. */
5166 if ac_fn_c_try_compile
"$LINENO"; then :
5167 ac_cv_header_stdc
=yes
5169 ac_cv_header_stdc
=no
5171 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5173 if test $ac_cv_header_stdc = yes; then
5174 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5175 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5176 /* end confdefs.h. */
5180 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5181 $EGREP "memchr" >/dev
/null
2>&1; then :
5184 ac_cv_header_stdc
=no
5190 if test $ac_cv_header_stdc = yes; then
5191 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5192 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5193 /* end confdefs.h. */
5197 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5198 $EGREP "free" >/dev
/null
2>&1; then :
5201 ac_cv_header_stdc
=no
5207 if test $ac_cv_header_stdc = yes; then
5208 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5209 if test "$cross_compiling" = yes; then :
5212 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5213 /* end confdefs.h. */
5216 #if ((' ' & 0x0FF) == 0x020)
5217 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5218 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5220 # define ISLOWER(c) \
5221 (('a' <= (c) && (c) <= 'i') \
5222 || ('j' <= (c) && (c) <= 'r') \
5223 || ('s' <= (c) && (c) <= 'z'))
5224 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5227 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5232 for (i = 0; i < 256; i++)
5233 if (XOR (islower (i), ISLOWER (i))
5234 || toupper (i) != TOUPPER (i))
5239 if ac_fn_c_try_run
"$LINENO"; then :
5242 ac_cv_header_stdc
=no
5244 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5245 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5251 $as_echo "$ac_cv_header_stdc" >&6; }
5252 if test $ac_cv_header_stdc = yes; then
5254 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5258 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5259 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5260 inttypes.h stdint.h unistd.h
5262 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5263 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5265 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
5266 cat >>confdefs.h
<<_ACEOF
5267 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5275 for ac_header
in sys
/ioccom.h sys
/sockio.h
5277 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5278 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5279 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
5280 cat >>confdefs.h
<<_ACEOF
5281 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5288 for ac_header
in netpacket
/packet.h
5290 ac_fn_c_check_header_mongrel
"$LINENO" "netpacket/packet.h" "ac_cv_header_netpacket_packet_h" "$ac_includes_default"
5291 if test "x$ac_cv_header_netpacket_packet_h" = xyes
; then :
5292 cat >>confdefs.h
<<_ACEOF
5293 #define HAVE_NETPACKET_PACKET_H 1
5300 for ac_header
in net
/pfvar.h
5302 ac_fn_c_check_header_compile
"$LINENO" "net/pfvar.h" "ac_cv_header_net_pfvar_h" "#include <sys/types.h>
5303 #include <sys/socket.h>
5306 if test "x$ac_cv_header_net_pfvar_h" = xyes
; then :
5307 cat >>confdefs.h
<<_ACEOF
5308 #define HAVE_NET_PFVAR_H 1
5315 if test "$ac_cv_header_net_pfvar_h" = yes; then
5317 # Check for various PF actions.
5319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether net/pfvar.h defines PF_NAT through PF_NORDR" >&5
5320 $as_echo_n "checking whether net/pfvar.h defines PF_NAT through PF_NORDR... " >&6; }
5321 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5322 /* end confdefs.h. */
5323 #include <sys/types.h>
5324 #include <sys/socket.h>
5326 #include <net/pfvar.h>
5330 return PF_NAT+PF_NONAT+PF_BINAT+PF_NOBINAT+PF_RDR+PF_NORDR;
5335 if ac_fn_c_try_compile
"$LINENO"; then :
5337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5338 $as_echo "yes" >&6; }
5340 $as_echo "#define HAVE_PF_NAT_THROUGH_PF_NORDR 1" >>confdefs.h
5344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5345 $as_echo "no" >&6; }
5347 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5353 # Haiku needs _BSD_SOURCE for the _IO* macros because it doesn't use them.
5355 CFLAGS
="$CFLAGS -D_BSD_SOURCE"
5359 if test "$GCC" = yes ; then
5360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI ioctl definitions" >&5
5361 $as_echo_n "checking for ANSI ioctl definitions... " >&6; }
5362 if ${ac_cv_lbl_gcc_fixincludes+:} false
; then :
5363 $as_echo_n "(cached) " >&6
5365 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5366 /* end confdefs.h. */
5368 * This generates a "duplicate case value" when fixincludes
5371 # include <sys/types.h>
5372 # include <sys/time.h>
5373 # include <sys/ioctl.h>
5374 # ifdef HAVE_SYS_IOCCOM_H
5375 # include <sys/ioccom.h>
5388 if ac_fn_c_try_compile
"$LINENO"; then :
5389 ac_cv_lbl_gcc_fixincludes
=yes
5391 ac_cv_lbl_gcc_fixincludes
=no
5393 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_gcc_fixincludes" >&5
5397 $as_echo "$ac_cv_lbl_gcc_fixincludes" >&6; }
5398 if test $ac_cv_lbl_gcc_fixincludes = no
; then
5399 # Don't cache failure
5400 unset ac_cv_lbl_gcc_fixincludes
5401 as_fn_error $?
"see the INSTALL for more info" "$LINENO" 5
5405 for ac_func
in strerror
5407 ac_fn_c_check_func
"$LINENO" "strerror" "ac_cv_func_strerror"
5408 if test "x$ac_cv_func_strerror" = xyes
; then :
5409 cat >>confdefs.h
<<_ACEOF
5410 #define HAVE_STRERROR 1
5416 ac_fn_c_check_func
"$LINENO" "strerror_r" "ac_cv_func_strerror_r"
5417 if test "x$ac_cv_func_strerror_r" = xyes
; then :
5420 # We have strerror_r; if we define _GNU_SOURCE, is it a
5421 # POSIX-compliant strerror_r() or a GNU strerror_r()?
5423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r is GNU-style" >&5
5424 $as_echo_n "checking whether strerror_r is GNU-style... " >&6; }
5425 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5426 /* end confdefs.h. */
5431 /* Define it GNU-style; that will cause an error if it's not GNU-style */
5432 extern char *strerror_r(int, char *, size_t);
5442 if ac_fn_c_try_compile
"$LINENO"; then :
5445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5446 $as_echo "yes" >&6; }
5448 $as_echo "#define HAVE_GNU_STRERROR_R /**/" >>confdefs.h
5453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5454 $as_echo "no" >&6; }
5456 $as_echo "#define HAVE_POSIX_STRERROR_R /**/" >>confdefs.h
5460 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5465 # We don't have strerror_r; do we have _wcserror_s?
5467 for ac_func
in _wcserror_s
5469 ac_fn_c_check_func
"$LINENO" "_wcserror_s" "ac_cv_func__wcserror_s"
5470 if test "x$ac_cv_func__wcserror_s" = xyes
; then :
5471 cat >>confdefs.h
<<_ACEOF
5472 #define HAVE__WCSERROR_S 1
5483 # Thanks, IBM, for not providing vsyslog() in AIX!
5485 for ac_func
in vsyslog
5487 ac_fn_c_check_func
"$LINENO" "vsyslog" "ac_cv_func_vsyslog"
5488 if test "x$ac_cv_func_vsyslog" = xyes
; then :
5489 cat >>confdefs.h
<<_ACEOF
5490 #define HAVE_VSYSLOG 1
5498 # Make sure we have vsnprintf() and snprintf(); we require them.
5500 ac_fn_c_check_func
"$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
5501 if test "x$ac_cv_func_vsnprintf" = xyes
; then :
5504 as_fn_error $?
"vsnprintf() is required but wasn't found" "$LINENO" 5
5507 ac_fn_c_check_func
"$LINENO" "snprintf" "ac_cv_func_snprintf"
5508 if test "x$ac_cv_func_snprintf" = xyes
; then :
5511 as_fn_error $?
"snprintf() is required but wasn't found" "$LINENO" 5
5516 for ac_func
in vasprintf asprintf
5518 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5519 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
5520 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
5521 cat >>confdefs.h
<<_ACEOF
5522 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5530 if test $needasprintf = yes; then
5531 case " $LIBOBJS " in
5532 *" asprintf.$ac_objext "* ) ;;
5533 *) LIBOBJS
="$LIBOBJS asprintf.$ac_objext"
5540 for ac_func
in strlcat
5542 ac_fn_c_check_func
"$LINENO" "strlcat" "ac_cv_func_strlcat"
5543 if test "x$ac_cv_func_strlcat" = xyes
; then :
5544 cat >>confdefs.h
<<_ACEOF
5545 #define HAVE_STRLCAT 1
5553 if test $needstrlcat = yes; then
5554 case " $LIBOBJS " in
5555 *" strlcat.$ac_objext "* ) ;;
5556 *) LIBOBJS
="$LIBOBJS strlcat.$ac_objext"
5563 for ac_func
in strlcpy
5565 ac_fn_c_check_func
"$LINENO" "strlcpy" "ac_cv_func_strlcpy"
5566 if test "x$ac_cv_func_strlcpy" = xyes
; then :
5567 cat >>confdefs.h
<<_ACEOF
5568 #define HAVE_STRLCPY 1
5576 if test $needstrlcpy = yes; then
5577 case " $LIBOBJS " in
5578 *" strlcpy.$ac_objext "* ) ;;
5579 *) LIBOBJS
="$LIBOBJS strlcpy.$ac_objext"
5586 for ac_func
in strtok_r
5588 ac_fn_c_check_func
"$LINENO" "strtok_r" "ac_cv_func_strtok_r"
5589 if test "x$ac_cv_func_strtok_r" = xyes
; then :
5590 cat >>confdefs.h
<<_ACEOF
5591 #define HAVE_STRTOK_R 1
5599 if test $needstrtok_r = yes; then
5600 case " $LIBOBJS " in
5601 *" strtok_r.$ac_objext "* ) ;;
5602 *) LIBOBJS
="$LIBOBJS strtok_r.$ac_objext"
5609 # Do we have ffs(), and is it declared in <strings.h>?
5613 ac_fn_c_check_func
"$LINENO" "ffs" "ac_cv_func_ffs"
5614 if test "x$ac_cv_func_ffs" = xyes
; then :
5615 cat >>confdefs.h
<<_ACEOF
5622 if test "$ac_cv_func_ffs" = yes; then
5624 # We have ffs(); is it declared in <strings.h>?
5626 # This test fails if we don't have <strings.h> or if we do
5627 # but it doesn't declare ffs().
5629 ac_fn_c_check_decl
"$LINENO" "ffs" "ac_cv_have_decl_ffs" "
5630 #include <strings.h>
5633 if test "x$ac_cv_have_decl_ffs" = xyes
; then :
5636 $as_echo "#define STRINGS_H_DECLARES_FFS /**/" >>confdefs.h
5644 # Do this before checking for ether_hostton(), as it's a
5645 # "getaddrinfo()-ish function".
5649 # Most operating systems have getaddrinfo() in the default searched
5650 # libraries (i.e. libc). Check there first.
5652 ac_fn_c_check_func
"$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
5653 if test "x$ac_cv_func_getaddrinfo" = xyes
; then :
5658 # Not found in the standard system libraries.
5659 # Try libsocket, which requires libnsl.
5661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo in -lsocket" >&5
5662 $as_echo_n "checking for getaddrinfo in -lsocket... " >&6; }
5663 if ${ac_cv_lib_socket_getaddrinfo+:} false
; then :
5664 $as_echo_n "(cached) " >&6
5666 ac_check_lib_save_LIBS
=$LIBS
5667 LIBS
="-lsocket -lnsl $LIBS"
5668 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5669 /* end confdefs.h. */
5671 /* Override any GCC internal prototype to avoid an error.
5672 Use char because int might match the return type of a GCC
5673 builtin and then its argument prototype would still apply. */
5677 char getaddrinfo ();
5681 return getaddrinfo ();
5686 if ac_fn_c_try_link
"$LINENO"; then :
5687 ac_cv_lib_socket_getaddrinfo
=yes
5689 ac_cv_lib_socket_getaddrinfo
=no
5691 rm -f core conftest.err conftest.
$ac_objext \
5692 conftest
$ac_exeext conftest.
$ac_ext
5693 LIBS
=$ac_check_lib_save_LIBS
5695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_getaddrinfo" >&5
5696 $as_echo "$ac_cv_lib_socket_getaddrinfo" >&6; }
5697 if test "x$ac_cv_lib_socket_getaddrinfo" = xyes
; then :
5700 # OK, we found it in libsocket.
5702 LIBS
="-lsocket -lnsl $LIBS"
5706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo in -lnetwork" >&5
5707 $as_echo_n "checking for getaddrinfo in -lnetwork... " >&6; }
5708 if ${ac_cv_lib_network_getaddrinfo+:} false
; then :
5709 $as_echo_n "(cached) " >&6
5711 ac_check_lib_save_LIBS
=$LIBS
5712 LIBS
="-lnetwork $LIBS"
5713 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5714 /* end confdefs.h. */
5716 /* Override any GCC internal prototype to avoid an error.
5717 Use char because int might match the return type of a GCC
5718 builtin and then its argument prototype would still apply. */
5722 char getaddrinfo ();
5726 return getaddrinfo ();
5731 if ac_fn_c_try_link
"$LINENO"; then :
5732 ac_cv_lib_network_getaddrinfo
=yes
5734 ac_cv_lib_network_getaddrinfo
=no
5736 rm -f core conftest.err conftest.
$ac_objext \
5737 conftest
$ac_exeext conftest.
$ac_ext
5738 LIBS
=$ac_check_lib_save_LIBS
5740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_network_getaddrinfo" >&5
5741 $as_echo "$ac_cv_lib_network_getaddrinfo" >&6; }
5742 if test "x$ac_cv_lib_network_getaddrinfo" = xyes
; then :
5745 # OK, we found it in libnetwork on Haiku.
5747 LIBS
="-lnetwork $LIBS"
5752 # We didn't find it.
5754 as_fn_error $?
"getaddrinfo is required, but wasn't found" "$LINENO" 5
5763 # OK, do we have recvmsg() in libxnet?
5764 # We also link with libsocket and libnsl.
5766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recvmsg in -lxnet" >&5
5767 $as_echo_n "checking for recvmsg in -lxnet... " >&6; }
5768 if ${ac_cv_lib_xnet_recvmsg+:} false
; then :
5769 $as_echo_n "(cached) " >&6
5771 ac_check_lib_save_LIBS
=$LIBS
5772 LIBS
="-lxnet -lsocket -lnsl $LIBS"
5773 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5774 /* end confdefs.h. */
5776 /* Override any GCC internal prototype to avoid an error.
5777 Use char because int might match the return type of a GCC
5778 builtin and then its argument prototype would still apply. */
5791 if ac_fn_c_try_link
"$LINENO"; then :
5792 ac_cv_lib_xnet_recvmsg
=yes
5794 ac_cv_lib_xnet_recvmsg
=no
5796 rm -f core conftest.err conftest.
$ac_objext \
5797 conftest
$ac_exeext conftest.
$ac_ext
5798 LIBS
=$ac_check_lib_save_LIBS
5800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xnet_recvmsg" >&5
5801 $as_echo "$ac_cv_lib_xnet_recvmsg" >&6; }
5802 if test "x$ac_cv_lib_xnet_recvmsg" = xyes
; then :
5805 # Yes - link with it as well.
5814 # DLPI needs putmsg under HPUX so test for -lstr while we're at it
5815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing putmsg" >&5
5816 $as_echo_n "checking for library containing putmsg... " >&6; }
5817 if ${ac_cv_search_putmsg+:} false
; then :
5818 $as_echo_n "(cached) " >&6
5820 ac_func_search_save_LIBS
=$LIBS
5821 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5822 /* end confdefs.h. */
5824 /* Override any GCC internal prototype to avoid an error.
5825 Use char because int might match the return type of a GCC
5826 builtin and then its argument prototype would still apply. */
5839 for ac_lib
in '' str
; do
5840 if test -z "$ac_lib"; then
5841 ac_res
="none required"
5844 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
5846 if ac_fn_c_try_link
"$LINENO"; then :
5847 ac_cv_search_putmsg
=$ac_res
5849 rm -f core conftest.err conftest.
$ac_objext \
5851 if ${ac_cv_search_putmsg+:} false
; then :
5855 if ${ac_cv_search_putmsg+:} false
; then :
5858 ac_cv_search_putmsg
=no
5861 LIBS
=$ac_func_search_save_LIBS
5863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_putmsg" >&5
5864 $as_echo "$ac_cv_search_putmsg" >&6; }
5865 ac_res
=$ac_cv_search_putmsg
5866 if test "$ac_res" != no
; then :
5867 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
5874 # Check for reentrant versions of getnetbyname_r(), as provided by
5875 # Linux (glibc), Solaris/IRIX, and AIX (with three different APIs!).
5876 # If we don't find one, we just use getnetbyname(), which uses
5877 # thread-specific data on many platforms, but doesn't use it on
5878 # NetBSD or OpenBSD, and may not use it on older versions of other
5881 # Only do the check if we have a declaration of getnetbyname_r();
5882 # without it, we can't check which API it has. (We assume that
5883 # if there's a declaration, it has a prototype, so that the API
5886 ac_fn_c_check_decl
"$LINENO" "getnetbyname_r" "ac_cv_have_decl_getnetbyname_r" "#include <netdb.h>
5888 if test "x$ac_cv_have_decl_getnetbyname_r" = xyes
; then :
5890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the Linux getnetbyname_r()" >&5
5891 $as_echo_n "checking for the Linux getnetbyname_r()... " >&6; }
5892 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5893 /* end confdefs.h. */
5899 struct netent netent_buf;
5901 struct netent *resultp;
5904 return getnetbyname_r((const char *)0, &netent_buf, buf, sizeof buf, &resultp, &h_errnoval);
5910 if ac_fn_c_try_link
"$LINENO"; then :
5912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5913 $as_echo "yes" >&6; }
5915 $as_echo "#define HAVE_LINUX_GETNETBYNAME_R 1" >>confdefs.h
5920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5921 $as_echo "no" >&6; }
5923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Solaris/IRIX getnetbyname_r()" >&5
5924 $as_echo_n "checking for Solaris/IRIX getnetbyname_r()... " >&6; }
5925 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5926 /* end confdefs.h. */
5932 struct netent netent_buf;
5935 return getnetbyname_r((const char *)0, &netent_buf, buf, (int)sizeof buf) != NULL;
5941 if ac_fn_c_try_link
"$LINENO"; then :
5943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5944 $as_echo "yes" >&6; }
5946 $as_echo "#define HAVE_SOLARIS_IRIX_GETNETBYNAME_R 1" >>confdefs.h
5951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5952 $as_echo "no" >&6; }
5954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AIX getnetbyname_r()" >&5
5955 $as_echo_n "checking for AIX getnetbyname_r()... " >&6; }
5956 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5957 /* end confdefs.h. */
5963 struct netent netent_buf;
5964 struct netent_data net_data;
5966 return getnetbyname_r((const char *)0, &netent_buf, &net_data);
5972 if ac_fn_c_try_link
"$LINENO"; then :
5974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5975 $as_echo "yes" >&6; }
5977 $as_echo "#define HAVE_AIX_GETNETBYNAME_R 1" >>confdefs.h
5982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5983 $as_echo "no" >&6; }
5986 rm -f core conftest.err conftest.
$ac_objext \
5987 conftest
$ac_exeext conftest.
$ac_ext
5990 rm -f core conftest.err conftest.
$ac_objext \
5991 conftest
$ac_exeext conftest.
$ac_ext
5994 rm -f core conftest.err conftest.
$ac_objext \
5995 conftest
$ac_exeext conftest.
$ac_ext
6001 # Check for reentrant versions of getprotobyname_r(), as provided by
6002 # Linux (glibc), Solaris/IRIX, and AIX (with three different APIs!).
6003 # If we don't find one, we just use getprotobyname(), which uses
6004 # thread-specific data on many platforms, but doesn't use it on
6005 # NetBSD or OpenBSD, and may not use it on older versions of other
6008 # Only do the check if we have a declaration of getprotobyname_r();
6009 # without it, we can't check which API it has. (We assume that
6010 # if there's a declaration, it has a prototype, so that the API
6013 ac_fn_c_check_decl
"$LINENO" "getprotobyname_r" "ac_cv_have_decl_getprotobyname_r" "#include <netdb.h>
6015 if test "x$ac_cv_have_decl_getprotobyname_r" = xyes
; then :
6017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the Linux getprotobyname_r()" >&5
6018 $as_echo_n "checking for the Linux getprotobyname_r()... " >&6; }
6019 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6020 /* end confdefs.h. */
6026 struct protoent protoent_buf;
6028 struct protoent *resultp;
6030 return getprotobyname_r((const char *)0, &protoent_buf, buf, sizeof buf, &resultp);
6036 if ac_fn_c_try_link
"$LINENO"; then :
6038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6039 $as_echo "yes" >&6; }
6041 $as_echo "#define HAVE_LINUX_GETPROTOBYNAME_R 1" >>confdefs.h
6046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6047 $as_echo "no" >&6; }
6049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Solaris/IRIX getprotobyname_r()" >&5
6050 $as_echo_n "checking for Solaris/IRIX getprotobyname_r()... " >&6; }
6051 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6052 /* end confdefs.h. */
6058 struct protoent protoent_buf;
6061 return getprotobyname_r((const char *)0, &protoent_buf, buf, (int)sizeof buf) != NULL;
6067 if ac_fn_c_try_link
"$LINENO"; then :
6069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6070 $as_echo "yes" >&6; }
6072 $as_echo "#define HAVE_SOLARIS_IRIX_GETPROTOBYNAME_R 1" >>confdefs.h
6077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6078 $as_echo "no" >&6; }
6080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AIX getprotobyname_r()" >&5
6081 $as_echo_n "checking for AIX getprotobyname_r()... " >&6; }
6082 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6083 /* end confdefs.h. */
6089 struct protoent protoent_buf;
6090 struct protoent_data proto_data;
6092 return getprotobyname_r((const char *)0, &protoent_buf, &proto_data);
6098 if ac_fn_c_try_link
"$LINENO"; then :
6100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6101 $as_echo "yes" >&6; }
6103 $as_echo "#define HAVE_AIX_GETPROTOBYNAME_R 1" >>confdefs.h
6108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6109 $as_echo "no" >&6; }
6112 rm -f core conftest.err conftest.
$ac_objext \
6113 conftest
$ac_exeext conftest.
$ac_ext
6116 rm -f core conftest.err conftest.
$ac_objext \
6117 conftest
$ac_exeext conftest.
$ac_ext
6120 rm -f core conftest.err conftest.
$ac_objext \
6121 conftest
$ac_exeext conftest.
$ac_ext
6127 # You are in a twisty little maze of UN*Xes, all different.
6128 # Some might not have ether_hostton().
6129 # Some might have it and declare it in <net/ethernet.h>.
6130 # Some might have it and declare it in <netinet/ether.h>
6131 # Some might have it and declare it in <sys/ethernet.h>.
6132 # Some might have it and declare it in <arpa/inet.h>.
6133 # Some might have it and declare it in <netinet/if_ether.h>.
6134 # Some might have it and not declare it in any header file.
6136 # Before you is a C compiler.
6138 for ac_func
in ether_hostton
6140 ac_fn_c_check_func
"$LINENO" "ether_hostton" "ac_cv_func_ether_hostton"
6141 if test "x$ac_cv_func_ether_hostton" = xyes
; then :
6142 cat >>confdefs.h
<<_ACEOF
6143 #define HAVE_ETHER_HOSTTON 1
6149 if test "$ac_cv_func_ether_hostton" = yes; then
6151 # OK, we have ether_hostton(). Is it declared in <net/ethernet.h>?
6153 # This test fails if we don't have <net/ethernet.h> or if we do
6154 # but it doesn't declare ether_hostton().
6156 ac_fn_c_check_decl
"$LINENO" "ether_hostton" "ac_cv_have_decl_ether_hostton" "
6157 #include <net/ethernet.h>
6160 if test "x$ac_cv_have_decl_ether_hostton" = xyes
; then :
6163 $as_echo "#define NET_ETHERNET_H_DECLARES_ETHER_HOSTTON /**/" >>confdefs.h
6171 if test "$ac_cv_have_decl_ether_hostton" != yes; then
6173 # No, how about <netinet/ether.h>, as on Linux?
6175 # This test fails if we don't have <netinet/ether.h>
6176 # or if we do but it doesn't declare ether_hostton().
6178 # Unset ac_cv_have_decl_ether_hostton so we don't
6179 # treat the previous failure as a cached value and
6180 # suppress the next test.
6182 unset ac_cv_have_decl_ether_hostton
6183 ac_fn_c_check_decl
"$LINENO" "ether_hostton" "ac_cv_have_decl_ether_hostton" "
6184 #include <netinet/ether.h>
6187 if test "x$ac_cv_have_decl_ether_hostton" = xyes
; then :
6190 $as_echo "#define NETINET_ETHER_H_DECLARES_ETHER_HOSTTON /**/" >>confdefs.h
6199 if test "$ac_cv_have_decl_ether_hostton" != yes; then
6201 # No, how about <sys/ethernet.h>, as on Solaris 10
6204 # This test fails if we don't have <sys/ethernet.h>
6205 # or if we do but it doesn't declare ether_hostton().
6207 # Unset ac_cv_have_decl_ether_hostton so we don't
6208 # treat the previous failure as a cached value and
6209 # suppress the next test.
6211 unset ac_cv_have_decl_ether_hostton
6212 ac_fn_c_check_decl
"$LINENO" "ether_hostton" "ac_cv_have_decl_ether_hostton" "
6213 #include <sys/ethernet.h>
6216 if test "x$ac_cv_have_decl_ether_hostton" = xyes
; then :
6219 $as_echo "#define SYS_ETHERNET_H_DECLARES_ETHER_HOSTTON /**/" >>confdefs.h
6228 if test "$ac_cv_have_decl_ether_hostton" != yes; then
6230 # No, how about <arpa/inet.h>, as in AIX?
6232 # This test fails if we don't have <arpa/inet.h>
6233 # (if we have ether_hostton(), we should have
6234 # networking, and if we have networking, we should
6235 # have <arapa/inet.h>) or if we do but it doesn't
6236 # declare ether_hostton().
6238 # Unset ac_cv_have_decl_ether_hostton so we don't
6239 # treat the previous failure as a cached value and
6240 # suppress the next test.
6242 unset ac_cv_have_decl_ether_hostton
6243 ac_fn_c_check_decl
"$LINENO" "ether_hostton" "ac_cv_have_decl_ether_hostton" "
6244 #include <arpa/inet.h>
6247 if test "x$ac_cv_have_decl_ether_hostton" = xyes
; then :
6250 $as_echo "#define ARPA_INET_H_DECLARES_ETHER_HOSTTON /**/" >>confdefs.h
6259 if test "$ac_cv_have_decl_ether_hostton" != yes; then
6261 # No, how about <netinet/if_ether.h>?
6262 # On some platforms, it requires <net/if.h> and
6263 # <netinet/in.h>, and we always include it with
6264 # both of them, so test it with both of them.
6266 # This test fails if we don't have <netinet/if_ether.h>
6267 # and the headers we include before it, or if we do but
6268 # <netinet/if_ether.h> doesn't declare ether_hostton().
6270 # Unset ac_cv_have_decl_ether_hostton so we don't
6271 # treat the previous failure as a cached value and
6272 # suppress the next test.
6274 unset ac_cv_have_decl_ether_hostton
6275 ac_fn_c_check_decl
"$LINENO" "ether_hostton" "ac_cv_have_decl_ether_hostton" "
6276 #include <sys/types.h>
6277 #include <sys/socket.h>
6279 #include <netinet/in.h>
6280 #include <netinet/if_ether.h>
6283 if test "x$ac_cv_have_decl_ether_hostton" = xyes
; then :
6286 $as_echo "#define NETINET_IF_ETHER_H_DECLARES_ETHER_HOSTTON /**/" >>confdefs.h
6293 # After all that, is ether_hostton() declared?
6295 if test "$ac_cv_have_decl_ether_hostton" = yes; then
6300 $as_echo "#define HAVE_DECL_ETHER_HOSTTON 1" >>confdefs.h
6304 # No, we'll have to declare it ourselves.
6305 # Do we have "struct ether_addr" if we include
6306 # <netinet/if_ether.h>?
6308 ac_fn_c_check_type
"$LINENO" "struct ether_addr" "ac_cv_type_struct_ether_addr" "
6309 #include <sys/types.h>
6310 #include <sys/socket.h>
6312 #include <netinet/in.h>
6313 #include <netinet/if_ether.h>
6316 if test "x$ac_cv_type_struct_ether_addr" = xyes
; then :
6318 cat >>confdefs.h
<<_ACEOF
6319 #define HAVE_STRUCT_ETHER_ADDR 1
6329 # For various things that might use pthreads.
6331 ac_fn_c_check_header_mongrel
"$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
6332 if test "x$ac_cv_header_pthread_h" = xyes
; then :
6335 # OK, we have pthread.h. Do we have pthread_create in the
6338 ac_fn_c_check_func
"$LINENO" "pthread_create" "ac_cv_func_pthread_create"
6339 if test "x$ac_cv_func_pthread_create" = xyes
; then :
6344 ac_lbl_have_pthreads
="found"
6349 # No - do we have it in -lpthreads?
6351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthreads" >&5
6352 $as_echo_n "checking for pthread_create in -lpthreads... " >&6; }
6353 if ${ac_cv_lib_pthreads_pthread_create+:} false
; then :
6354 $as_echo_n "(cached) " >&6
6356 ac_check_lib_save_LIBS
=$LIBS
6357 LIBS
="-lpthreads $LIBS"
6358 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6359 /* end confdefs.h. */
6361 /* Override any GCC internal prototype to avoid an error.
6362 Use char because int might match the return type of a GCC
6363 builtin and then its argument prototype would still apply. */
6367 char pthread_create ();
6371 return pthread_create ();
6376 if ac_fn_c_try_link
"$LINENO"; then :
6377 ac_cv_lib_pthreads_pthread_create
=yes
6379 ac_cv_lib_pthreads_pthread_create
=no
6381 rm -f core conftest.err conftest.
$ac_objext \
6382 conftest
$ac_exeext conftest.
$ac_ext
6383 LIBS
=$ac_check_lib_save_LIBS
6385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_create" >&5
6386 $as_echo "$ac_cv_lib_pthreads_pthread_create" >&6; }
6387 if test "x$ac_cv_lib_pthreads_pthread_create" = xyes
; then :
6390 # Yes - add -lpthreads.
6392 ac_lbl_have_pthreads
="found"
6393 PTHREAD_LIBS
="$PTHREAD_LIBS -lpthreads"
6398 # No - do we have it in -lpthread?
6400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
6401 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
6402 if ${ac_cv_lib_pthread_pthread_create+:} false
; then :
6403 $as_echo_n "(cached) " >&6
6405 ac_check_lib_save_LIBS
=$LIBS
6406 LIBS
="-lpthread $LIBS"
6407 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6408 /* end confdefs.h. */
6410 /* Override any GCC internal prototype to avoid an error.
6411 Use char because int might match the return type of a GCC
6412 builtin and then its argument prototype would still apply. */
6416 char pthread_create ();
6420 return pthread_create ();
6425 if ac_fn_c_try_link
"$LINENO"; then :
6426 ac_cv_lib_pthread_pthread_create
=yes
6428 ac_cv_lib_pthread_pthread_create
=no
6430 rm -f core conftest.err conftest.
$ac_objext \
6431 conftest
$ac_exeext conftest.
$ac_ext
6432 LIBS
=$ac_check_lib_save_LIBS
6434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
6435 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
6436 if test "x$ac_cv_lib_pthread_pthread_create" = xyes
; then :
6439 # Yes - add -lpthread.
6441 ac_lbl_have_pthreads
="found"
6442 PTHREAD_LIBS
="$PTHREAD_LIBS -lpthread"
6449 ac_lbl_have_pthreads
="not found"
6463 # We didn't find pthread.h.
6465 ac_lbl_have_pthreads
="not found"
6472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if --disable-protochain option is specified" >&5
6473 $as_echo_n "checking if --disable-protochain option is specified... " >&6; }
6474 # Check whether --enable-protochain was given.
6475 if test "${enable_protochain+set}" = set; then :
6476 enableval
=$enable_protochain;
6479 case "x$enable_protochain" in
6480 xyes
) enable_protochain
=enabled
;;
6481 xno
) enable_protochain
=disabled
;;
6482 x
) enable_protochain
=enabled
;;
6485 if test "$enable_protochain" = "disabled"; then
6487 $as_echo "#define NO_PROTOCHAIN 1" >>confdefs.h
6490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_protochain}" >&5
6491 $as_echo "${enable_protochain}" >&6; }
6494 # valgrindtest directly uses the native capture mechanism, but
6495 # only tests with BPF and PF_PACKET sockets; only enable it if
6496 # we have BPF or PF_PACKET sockets.
6501 # Check whether --with-pcap was given.
6502 if test "${with_pcap+set}" = set; then :
6506 if test ! -z "$with_pcap" ; then
6510 # Check for a bunch of headers for various packet
6511 # capture mechanisms.
6513 for ac_header
in net
/bpf.h
6515 ac_fn_c_check_header_mongrel
"$LINENO" "net/bpf.h" "ac_cv_header_net_bpf_h" "$ac_includes_default"
6516 if test "x$ac_cv_header_net_bpf_h" = xyes
; then :
6517 cat >>confdefs.h
<<_ACEOF
6518 #define HAVE_NET_BPF_H 1
6525 if test "$ac_cv_header_net_bpf_h" = yes; then
6527 # Does it define BIOCSETIF?
6528 # I.e., is it a header for an LBL/BSD-style capture
6529 # mechanism, or is it just a header for a BPF filter
6530 # engine? Some versions of Arch Linux, for example,
6531 # have a net/bpf.h that doesn't define BIOCSETIF;
6532 # as it's a Linux, it should use packet sockets,
6537 # sys/types.h, because FreeBSD 10's net/bpf.h
6538 # requires that various BSD-style integer types
6541 # sys/time.h, because AIX 5.2 and 5.3's net/bpf.h
6542 # doesn't include it but does use struct timeval
6543 # in ioctl definitions;
6545 # sys/ioctl.h and, if we have it, sys/ioccom.h,
6546 # because net/bpf.h defines ioctls;
6548 # net/if.h, because it defines some structures
6549 # used in ioctls defined by net/bpf.h;
6551 # sys/socket.h, because OpenBSD 5.9's net/bpf.h
6552 # defines some structure fields as being
6555 # and net/bpf.h doesn't necessarily include all
6556 # of those headers itself.
6558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if net/bpf.h defines BIOCSETIF" >&5
6559 $as_echo_n "checking if net/bpf.h defines BIOCSETIF... " >&6; }
6560 if ${ac_cv_lbl_bpf_h_defines_biocsetif+:} false
; then :
6561 $as_echo_n "(cached) " >&6
6563 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6564 /* end confdefs.h. */
6566 #include <sys/types.h>
6567 #include <sys/time.h>
6568 #include <sys/ioctl.h>
6569 #include <sys/socket.h>
6570 #ifdef HAVE_SYS_IOCCOM_H
6571 #include <sys/ioccom.h>
6573 #include <net/bpf.h>
6579 u_int i = BIOCSETIF;
6584 if ac_fn_c_try_compile
"$LINENO"; then :
6585 ac_cv_lbl_bpf_h_defines_biocsetif
=yes
6587 ac_cv_lbl_bpf_h_defines_biocsetif
=no
6589 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_bpf_h_defines_biocsetif" >&5
6593 $as_echo "$ac_cv_lbl_bpf_h_defines_biocsetif" >&6; }
6595 for ac_header
in net
/pfilt.h net
/enet.h
6597 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6598 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6599 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
6600 cat >>confdefs.h
<<_ACEOF
6601 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6608 for ac_header
in net
/nit.h sys
/net
/nit.h
6610 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6611 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6612 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
6613 cat >>confdefs.h
<<_ACEOF
6614 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6621 for ac_header
in linux
/socket.h net
/raw.h sys
/dlpi.h
6623 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6624 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6625 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
6626 cat >>confdefs.h
<<_ACEOF
6627 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6634 for ac_header
in config
/HaikuConfig.h
6636 ac_fn_c_check_header_mongrel
"$LINENO" "config/HaikuConfig.h" "ac_cv_header_config_HaikuConfig_h" "$ac_includes_default"
6637 if test "x$ac_cv_header_config_HaikuConfig_h" = xyes
; then :
6638 cat >>confdefs.h
<<_ACEOF
6639 #define HAVE_CONFIG_HAIKUCONFIG_H 1
6647 if test "$ac_cv_lbl_bpf_h_defines_biocsetif" = yes; then
6650 # Check this before DLPI, so that we pick BPF on
6651 # Solaris 11 and later.
6656 # We have BPF, so build valgrindtest with "make test"
6657 # on macOS and FreeBSD (add your OS once there's a
6662 freebsd
*|darwin
*|linux
*)
6663 VALGRINDTEST_SRC
=valgrindtest.c
6666 elif test "$ac_cv_header_linux_socket_h" = yes; then
6668 # No prizes for guessing this one.
6671 VALGRINDTEST_SRC
=valgrindtest.c
6672 elif test "$ac_cv_header_net_pfilt_h" = yes; then
6674 # DEC OSF/1, Digital UNIX, Tru64 UNIX
6677 elif test "$ac_cv_header_net_enet_h" = yes; then
6679 # Stanford Enetfilter.
6682 elif test "$ac_cv_header_net_nit_h" = yes; then
6684 # SunOS 4.x STREAMS NIT.
6687 elif test "$ac_cv_header_sys_net_nit_h" = yes; then
6689 # Pre-SunOS 4.x non-STREAMS NIT.
6692 elif test "$ac_cv_header_net_raw_h" = yes; then
6697 elif test "$ac_cv_header_sys_dlpi_h" = yes; then
6699 # DLPI on pre-Solaris 11 SunOS 5, HP-UX, possibly others.
6702 elif test "$ac_cv_header_config_HaikuConfig_h" = yes; then
6709 # Nothing we support.
6712 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine packet capture interface" >&5
6713 $as_echo "$as_me: WARNING: cannot determine packet capture interface" >&2;}
6714 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: (see the INSTALL doc for more info)" >&5
6715 $as_echo "$as_me: WARNING: (see the INSTALL doc for more info)" >&2;}
6718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking packet capture type" >&5
6719 $as_echo_n "checking packet capture type... " >&6; }
6720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $V_PCAP" >&5
6721 $as_echo "$V_PCAP" >&6; }
6725 # Do we have pkg-config?
6727 # Extract the first word of "pkg-config", so it can be a program name with args.
6728 set dummy pkg-config
; ac_word
=$2
6729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6730 $as_echo_n "checking for $ac_word... " >&6; }
6731 if ${ac_cv_prog_PKGCONFIG+:} false
; then :
6732 $as_echo_n "(cached) " >&6
6734 if test -n "$PKGCONFIG"; then
6735 ac_cv_prog_PKGCONFIG
="$PKGCONFIG" # Let the user override the test.
6737 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6741 test -z "$as_dir" && as_dir
=.
6742 for ac_exec_ext
in '' $ac_executable_extensions; do
6743 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6744 ac_cv_prog_PKGCONFIG
="pkg-config"
6745 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6752 test -z "$ac_cv_prog_PKGCONFIG" && ac_cv_prog_PKGCONFIG
="no"
6755 PKGCONFIG
=$ac_cv_prog_PKGCONFIG
6756 if test -n "$PKGCONFIG"; then
6757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
6758 $as_echo "$PKGCONFIG" >&6; }
6760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6761 $as_echo "no" >&6; }
6767 # Handle each capture type.
6772 # Checks for some header files.
6774 for ac_header
in sys
/bufmod.h sys
/dlpi_ext.h
6776 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6777 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6778 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
6779 cat >>confdefs.h
<<_ACEOF
6780 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6789 # Checks to see if Solaris has the public libdlpi(3LIB) library.
6790 # Note: The existence of /usr/include/libdlpi.h does not mean it is the
6791 # public libdlpi(3LIB) version. Before libdlpi was made public, a
6792 # private version also existed, which did not have the same APIs.
6793 # Due to a gcc bug, the default search path for 32-bit libraries does
6794 # not include /lib, we add it explicitly here.
6795 # [http://bugs.opensolaris.org/view_bug.do?bug_id=6619485].
6796 # Also, due to the bug above applications that link to libpcap with
6797 # libdlpi will have to add "-L/lib" option to "configure".
6799 save_LDFLAGS
="$LDFLAGS"
6800 LDFLAGS
="$LIBS -L/lib"
6801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlpi_walk in -ldlpi" >&5
6802 $as_echo_n "checking for dlpi_walk in -ldlpi... " >&6; }
6803 if ${ac_cv_lib_dlpi_dlpi_walk+:} false
; then :
6804 $as_echo_n "(cached) " >&6
6806 ac_check_lib_save_LIBS
=$LIBS
6808 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6809 /* end confdefs.h. */
6811 /* Override any GCC internal prototype to avoid an error.
6812 Use char because int might match the return type of a GCC
6813 builtin and then its argument prototype would still apply. */
6821 return dlpi_walk ();
6826 if ac_fn_c_try_link
"$LINENO"; then :
6827 ac_cv_lib_dlpi_dlpi_walk
=yes
6829 ac_cv_lib_dlpi_dlpi_walk
=no
6831 rm -f core conftest.err conftest.
$ac_objext \
6832 conftest
$ac_exeext conftest.
$ac_ext
6833 LIBS
=$ac_check_lib_save_LIBS
6835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dlpi_dlpi_walk" >&5
6836 $as_echo "$ac_cv_lib_dlpi_dlpi_walk" >&6; }
6837 if test "x$ac_cv_lib_dlpi_dlpi_walk" = xyes
; then :
6843 # Capture module plus common code needed for
6844 # common functions used by pcap-[dlpi,libdlpi].c
6846 PLATFORM_C_SRC
="pcap-libdlpi.c dlpisubs.c"
6848 $as_echo "#define HAVE_LIBDLPI 1" >>confdefs.h
6856 # Capture module plus common code needed for
6857 # common functions used by pcap-[dlpi,libdlpi].c
6859 PLATFORM_C_SRC
="pcap-dlpi.c dlpisubs.c"
6863 LDFLAGS
="$save_LDFLAGS"
6866 # Checks whether <sys/dlpi.h> is usable, to catch weird SCO
6869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/dlpi.h> is usable" >&5
6870 $as_echo_n "checking whether <sys/dlpi.h> is usable... " >&6; }
6871 if ${ac_cv_sys_dlpi_usable+:} false
; then :
6872 $as_echo_n "(cached) " >&6
6874 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6875 /* end confdefs.h. */
6877 #include <sys/types.h>
6878 #include <sys/time.h>
6879 #include <sys/dlpi.h>
6884 int i = DL_PROMISC_PHYS;
6889 if ac_fn_c_try_compile
"$LINENO"; then :
6890 ac_cv_sys_dlpi_usable
=yes
6892 ac_cv_sys_dlpi_usable
=no
6894 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_dlpi_usable" >&5
6898 $as_echo "$ac_cv_sys_dlpi_usable" >&6; }
6899 if test $ac_cv_sys_dlpi_usable = no
; then
6900 as_fn_error $?
"<sys/dlpi.h> is not usable on this system; it probably has a non-standard DLPI" "$LINENO" 5
6904 # Check to see if Solaris has the dl_passive_req_t struct defined
6906 # This check is for DLPI support for passive modes.
6907 # See dlpi(7P) for more details.
6909 ac_fn_c_check_type
"$LINENO" "dl_passive_req_t" "ac_cv_type_dl_passive_req_t" "
6910 #include <sys/types.h>
6911 #include <sys/dlpi.h>
6914 if test "x$ac_cv_type_dl_passive_req_t" = xyes
; then :
6916 cat >>confdefs.h
<<_ACEOF
6917 #define HAVE_DL_PASSIVE_REQ_T 1
6929 PLATFORM_C_SRC
="pcap-enet.c"
6936 PLATFORM_CXX_SRC
="pcap-haiku.cpp"
6939 # Just for the sake of it.
6941 for ac_header
in net
/if.h net
/if_dl.h net
/if_types.h
6943 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6944 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6945 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
6946 cat >>confdefs.h
<<_ACEOF
6947 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6960 PLATFORM_C_SRC
="pcap-linux.c"
6963 # Do we have the wireless extensions?
6965 for ac_header
in linux
/wireless.h
6967 ac_fn_c_check_header_compile
"$LINENO" "linux/wireless.h" "ac_cv_header_linux_wireless_h" "
6968 #include <sys/socket.h>
6969 #include <linux/if.h>
6970 #include <linux/types.h>
6973 if test "x$ac_cv_header_linux_wireless_h" = xyes
; then :
6974 cat >>confdefs.h
<<_ACEOF
6975 #define HAVE_LINUX_WIRELESS_H 1
6985 # We only want version 3. Version 2 was, apparently,
6986 # short-lived, and version 1 is source and binary
6987 # incompatible with version 3, and it appears that,
6988 # these days, everybody's using version 3. We're
6989 # not supporting older versions of the Linux kernel;
6990 # let's drop support for older versions of libnl, too.
6993 # Check whether --with-libnl was given.
6994 if test "${with_libnl+set}" = set; then :
6995 withval
=$with_libnl; with_libnl
=$withval
6997 with_libnl
=if_available
7001 if test x
$with_libnl != xno
; then
7002 if test "x$PKGCONFIG" != "xno"; then
7004 # We have pkg-config; see if we have libnl-genl-3.0
7007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libnl-genl-3.0 with pkg-config" >&5
7008 $as_echo_n "checking for libnl-genl-3.0 with pkg-config... " >&6; }
7009 if "$PKGCONFIG" libnl-genl-3.0
; then
7010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
7011 $as_echo "found" >&6; }
7012 pkg_config_found_libnl
=yes
7013 libnl_genl_cflags
=`"$PKGCONFIG" --cflags libnl-genl-3.0`
7014 V_INCLS
="$V_INCLS ${libnl_genl_cflags}"
7015 libnl_genl_libs
=`"$PKGCONFIG" --libs libnl-genl-3.0`
7016 LIBS
="${libnl_genl_libs} $LIBS"
7018 $as_echo "#define HAVE_LIBNL 1" >>confdefs.h
7021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7022 $as_echo "not found" >&6; }
7026 if test x
$pkg_config_found_libnl != xyes
; then
7028 # OK, either we don't have pkg-config or there
7029 # wasn't a .pc file for it; Check for it directly.
7031 case "$with_libnl" in
7034 incdir
=-I/usr
/include
/libnl3
7039 if test -d $withval; then
7040 libnldir
=-L${withval}/lib
7041 incdir
=-I${withval}/include
7046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_socket_alloc in -lnl-3" >&5
7047 $as_echo_n "checking for nl_socket_alloc in -lnl-3... " >&6; }
7048 if ${ac_cv_lib_nl_3_nl_socket_alloc+:} false
; then :
7049 $as_echo_n "(cached) " >&6
7051 ac_check_lib_save_LIBS
=$LIBS
7052 LIBS
="-lnl-3 ${incdir} ${libnldir} -lnl-genl-3 -lnl-3 $LIBS"
7053 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7054 /* end confdefs.h. */
7056 /* Override any GCC internal prototype to avoid an error.
7057 Use char because int might match the return type of a GCC
7058 builtin and then its argument prototype would still apply. */
7062 char nl_socket_alloc ();
7066 return nl_socket_alloc ();
7071 if ac_fn_c_try_link
"$LINENO"; then :
7072 ac_cv_lib_nl_3_nl_socket_alloc
=yes
7074 ac_cv_lib_nl_3_nl_socket_alloc
=no
7076 rm -f core conftest.err conftest.
$ac_objext \
7077 conftest
$ac_exeext conftest.
$ac_ext
7078 LIBS
=$ac_check_lib_save_LIBS
7080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nl_3_nl_socket_alloc" >&5
7081 $as_echo "$ac_cv_lib_nl_3_nl_socket_alloc" >&6; }
7082 if test "x$ac_cv_lib_nl_3_nl_socket_alloc" = xyes
; then :
7085 # Yes, we have libnl 3.x.
7087 LIBS
="${libnldir} -lnl-genl-3 -lnl-3 $LIBS"
7089 $as_echo "#define HAVE_LIBNL 1" >>confdefs.h
7091 V_INCLS
="$V_INCLS ${incdir}"
7096 # No, we don't have libnl at all.
7097 # Fail if the user explicitly requested
7100 if test x
$with_libnl = xyes
; then
7101 as_fn_error $?
"libnl support requested but libnl not found" "$LINENO" 5
7110 # Check to see if the tpacket_auxdata struct has a tp_vlan_tci member.
7112 # NOTE: any failure means we conclude that it doesn't have that
7113 # member, so if we don't have tpacket_auxdata, we conclude it
7114 # doesn't have that member (which is OK, as either we won't be
7115 # using code that would use that member, or we wouldn't compile
7117 ac_fn_c_check_member
"$LINENO" "struct tpacket_auxdata" "tp_vlan_tci" "ac_cv_member_struct_tpacket_auxdata_tp_vlan_tci" "
7118 #include <sys/types.h>
7119 #include <linux/if_packet.h>
7122 if test "x$ac_cv_member_struct_tpacket_auxdata_tp_vlan_tci" = xyes
; then :
7124 cat >>confdefs.h
<<_ACEOF
7125 #define HAVE_STRUCT_TPACKET_AUXDATA_TP_VLAN_TCI 1
7137 PLATFORM_C_SRC
="pcap-bpf.c"
7140 # Check whether we have the *BSD-style ioctls.
7142 for ac_header
in net
/if_media.h
7144 ac_fn_c_check_header_mongrel
"$LINENO" "net/if_media.h" "ac_cv_header_net_if_media_h" "$ac_includes_default"
7145 if test "x$ac_cv_header_net_if_media_h" = xyes
; then :
7146 cat >>confdefs.h
<<_ACEOF
7147 #define HAVE_NET_IF_MEDIA_H 1
7156 # Check whether we have struct BPF_TIMEVAL.
7158 ac_fn_c_check_type
"$LINENO" "struct BPF_TIMEVAL" "ac_cv_type_struct_BPF_TIMEVAL" "
7159 #include <sys/types.h>
7160 #include <sys/ioctl.h>
7161 #ifdef HAVE_SYS_IOCCOM_H
7162 #include <sys/ioccom.h>
7164 #include <net/bpf.h>
7167 if test "x$ac_cv_type_struct_BPF_TIMEVAL" = xyes
; then :
7169 cat >>confdefs.h
<<_ACEOF
7170 #define HAVE_STRUCT_BPF_TIMEVAL 1
7182 PLATFORM_C_SRC
="pcap-pf.c"
7189 PLATFORM_C_SRC
="pcap-snit.c"
7196 PLATFORM_C_SRC
="pcap-snoop.c"
7201 # --with-pcap=dag is the only way to get here, and it means
7202 # "DAG support but nothing else"
7204 V_DEFS
="$V_DEFS -DDAG_ONLY"
7205 PLATFORM_C_SRC
="pcap-dag.c"
7211 # --with-pcap=dpdk is the only way to get here, and it means
7212 # "DPDK support but nothing else"
7214 V_DEFS
="$V_DEFS -DDPDK_ONLY"
7215 PLATFORM_C_SRC
="pcap-dpdk.c"
7221 # --with-pcap=septel is the only way to get here, and it means
7222 # "Septel support but nothing else"
7224 V_DEFS
="$V_DEFS -DSEPTEL_ONLY"
7225 PLATFORM_C_SRC
="pcap-septel.c"
7231 # --with-pcap=snf is the only way to get here, and it means
7232 # "SNF support but nothing else"
7234 V_DEFS
="$V_DEFS -DSNF_ONLY"
7235 PLATFORM_C_SRC
="pcap-snf.c"
7243 PLATFORM_C_SRC
="pcap-null.c"
7247 as_fn_error $?
"$V_PCAP is not a valid pcap type" "$LINENO" 5
7251 if test "$V_PCAP" != null
7253 ac_fn_c_check_func
"$LINENO" "getifaddrs" "ac_cv_func_getifaddrs"
7254 if test "x$ac_cv_func_getifaddrs" = xyes
; then :
7257 # We have "getifaddrs()"; make sure we have <ifaddrs.h>
7258 # as well, just in case some platform is really weird.
7260 ac_fn_c_check_header_mongrel
"$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "$ac_includes_default"
7261 if test "x$ac_cv_header_ifaddrs_h" = xyes
; then :
7264 # We have the header, so we use "getifaddrs()" to
7265 # get the list of interfaces.
7267 PLATFORM_C_SRC
="$PLATFORM_C_SRC fad-getad.c"
7272 # We don't have the header - give up.
7273 # XXX - we could also fall back on some other
7274 # mechanism, but, for now, this'll catch this
7275 # problem so that we can at least try to figure
7276 # out something to do on systems with "getifaddrs()"
7277 # but without "ifaddrs.h", if there is something
7278 # we can do on those systems.
7280 as_fn_error $?
"Your system has getifaddrs() but doesn't have a usable <ifaddrs.h>." "$LINENO" 5
7289 # Well, we don't have "getifaddrs()", at least not with the
7290 # libraries with which we've decided we need to link
7291 # libpcap with, so we have to use some other mechanism.
7293 # Note that this may happen on Solaris, which has
7294 # getifaddrs(), but in -lsocket, not in -lxnet, so we
7295 # won't find it if we link with -lxnet, which we want
7296 # to do for other reasons.
7298 # For now, we use either the SIOCGIFCONF ioctl or the
7299 # SIOCGLIFCONF ioctl, preferring the latter if we have
7300 # it; the latter is a Solarisism that first appeared
7301 # in Solaris 8. (Solaris's getifaddrs() appears to
7302 # be built atop SIOCGLIFCONF; using it directly
7303 # avoids a not-all-that-useful middleman.)
7305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have SIOCGLIFCONF" >&5
7306 $as_echo_n "checking whether we have SIOCGLIFCONF... " >&6; }
7307 if ${ac_cv_lbl_have_siocglifconf+:} false
; then :
7308 $as_echo_n "(cached) " >&6
7310 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7311 /* end confdefs.h. */
7312 #include <sys/param.h>
7313 #include <sys/file.h>
7314 #include <sys/ioctl.h>
7315 #include <sys/socket.h>
7316 #include <sys/sockio.h>
7320 ioctl(0, SIOCGLIFCONF, (char *)0);
7325 if ac_fn_c_try_compile
"$LINENO"; then :
7326 ac_cv_lbl_have_siocglifconf
=yes
7328 ac_cv_lbl_have_siocglifconf
=no
7330 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_have_siocglifconf" >&5
7334 $as_echo "$ac_cv_lbl_have_siocglifconf" >&6; }
7335 if test $ac_cv_lbl_have_siocglifconf = yes ; then
7336 PLATFORM_C_SRC
="$PLATFORM_C_SRC fad-glifc.c"
7338 PLATFORM_C_SRC
="$PLATFORM_C_SRC fad-gifc.c"
7347 for ac_header
in linux
/net_tstamp.h
7349 ac_fn_c_check_header_mongrel
"$LINENO" "linux/net_tstamp.h" "ac_cv_header_linux_net_tstamp_h" "$ac_includes_default"
7350 if test "x$ac_cv_header_linux_net_tstamp_h" = xyes
; then :
7351 cat >>confdefs.h
<<_ACEOF
7352 #define HAVE_LINUX_NET_TSTAMP_H 1
7361 { $as_echo "$as_me:${as_lineno-$LINENO}: no hardware timestamp support implemented for $host_os" >&5
7362 $as_echo "$as_me: no hardware timestamp support implemented for $host_os" >&6;}
7367 # Check for socklen_t.
7369 ac_fn_c_check_type
"$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
7370 #include <sys/types.h>
7371 #include <sys/socket.h>
7374 if test "x$ac_cv_type_socklen_t" = xyes
; then :
7376 cat >>confdefs.h
<<_ACEOF
7377 #define HAVE_SOCKLEN_T 1
7384 # Check whether --enable-ipv6 was given.
7385 if test "${enable_ipv6+set}" = set; then :
7386 enableval
=$enable_ipv6;
7391 if test "$enable_ipv6" != "no"; then
7393 # We've already made sure we have getaddrinfo above in
7394 # AC_LBL_LIBRARY_NET.
7397 $as_echo "#define INET6 1" >>confdefs.h
7401 # Check for Endace DAG card support.
7403 # Check whether --with-dag was given.
7404 if test "${with_dag+set}" = set; then :
7406 if test "$withval" = no
7408 # User doesn't want DAG support.
7410 elif test "$withval" = yes
7412 # User wants DAG support but hasn't specified a directory.
7415 # User wants DAG support and has specified a directory, so use the provided value.
7422 if test "$V_PCAP" = dag
; then
7423 # User requested DAG-only libpcap, so we'd better have
7426 elif test "xxx_only" = yes; then
7427 # User requested something-else-only pcap, so they don't
7432 # Use DAG API if present, otherwise don't
7441 # Check whether --with-dag-includes was given.
7442 if test "${with_dag_includes+set}" = set; then :
7443 withval
=$with_dag_includes;
7444 # User wants DAG support and has specified a header directory, so use the provided value.
7446 dag_include_dir
=$withval
7452 # Check whether --with-dag-libraries was given.
7453 if test "${with_dag_libraries+set}" = set; then :
7454 withval
=$with_dag_libraries;
7455 # User wants DAG support and has specified a library directory, so use the provided value.
7457 dag_lib_dir
=$withval
7462 if test "$want_dag" != no
; then
7464 # If necessary, set default paths for DAG API headers and libraries.
7465 if test -z "$dag_root"; then
7469 if test -z "$dag_include_dir"; then
7470 dag_include_dir
="$dag_root/include"
7473 if test -z "$dag_lib_dir"; then
7474 dag_lib_dir
="$dag_root/lib"
7476 # Handle multiarch systems.
7478 if test -d "$dag_lib_dir/$host"
7480 dag_lib_dir
="$dag_lib_dir/$host"
7484 save_CFLAGS
="$CFLAGS"
7485 CFLAGS
="$CFLAGS -I$dag_include_dir"
7486 for ac_header
in dagapi.h
7488 ac_fn_c_check_header_mongrel
"$LINENO" "dagapi.h" "ac_cv_header_dagapi_h" "$ac_includes_default"
7489 if test "x$ac_cv_header_dagapi_h" = xyes
; then :
7490 cat >>confdefs.h
<<_ACEOF
7491 #define HAVE_DAGAPI_H 1
7499 if test "$ac_cv_header_dagapi_h" = yes; then
7501 V_INCLS
="$V_INCLS -I$dag_include_dir"
7503 if test $V_PCAP != dag
; then
7504 MODULE_C_SRC
="$MODULE_C_SRC pcap-dag.c"
7507 # Check for various DAG API functions.
7508 # Don't need to save and restore LIBS to prevent -ldag being
7509 # included if there's a found-action (arg 3).
7510 save_LDFLAGS
="$LDFLAGS"
7511 LDFLAGS
="-L$dag_lib_dir"
7512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dag_attach_stream in -ldag" >&5
7513 $as_echo_n "checking for dag_attach_stream in -ldag... " >&6; }
7514 if ${ac_cv_lib_dag_dag_attach_stream+:} false
; then :
7515 $as_echo_n "(cached) " >&6
7517 ac_check_lib_save_LIBS
=$LIBS
7519 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7520 /* end confdefs.h. */
7522 /* Override any GCC internal prototype to avoid an error.
7523 Use char because int might match the return type of a GCC
7524 builtin and then its argument prototype would still apply. */
7528 char dag_attach_stream ();
7532 return dag_attach_stream ();
7537 if ac_fn_c_try_link
"$LINENO"; then :
7538 ac_cv_lib_dag_dag_attach_stream
=yes
7540 ac_cv_lib_dag_dag_attach_stream
=no
7542 rm -f core conftest.err conftest.
$ac_objext \
7543 conftest
$ac_exeext conftest.
$ac_ext
7544 LIBS
=$ac_check_lib_save_LIBS
7546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dag_dag_attach_stream" >&5
7547 $as_echo "$ac_cv_lib_dag_dag_attach_stream" >&6; }
7548 if test "x$ac_cv_lib_dag_dag_attach_stream" = xyes
; then :
7549 cat >>confdefs.h
<<_ACEOF
7550 #define HAVE_LIBDAG 1
7556 as_fn_error $?
"DAG library lacks streams support" "$LINENO" 5
7559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dag_attach_stream64 in -ldag" >&5
7560 $as_echo_n "checking for dag_attach_stream64 in -ldag... " >&6; }
7561 if ${ac_cv_lib_dag_dag_attach_stream64+:} false
; then :
7562 $as_echo_n "(cached) " >&6
7564 ac_check_lib_save_LIBS
=$LIBS
7566 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7567 /* end confdefs.h. */
7569 /* Override any GCC internal prototype to avoid an error.
7570 Use char because int might match the return type of a GCC
7571 builtin and then its argument prototype would still apply. */
7575 char dag_attach_stream64 ();
7579 return dag_attach_stream64 ();
7584 if ac_fn_c_try_link
"$LINENO"; then :
7585 ac_cv_lib_dag_dag_attach_stream64
=yes
7587 ac_cv_lib_dag_dag_attach_stream64
=no
7589 rm -f core conftest.err conftest.
$ac_objext \
7590 conftest
$ac_exeext conftest.
$ac_ext
7591 LIBS
=$ac_check_lib_save_LIBS
7593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dag_dag_attach_stream64" >&5
7594 $as_echo "$ac_cv_lib_dag_dag_attach_stream64" >&6; }
7595 if test "x$ac_cv_lib_dag_dag_attach_stream64" = xyes
; then :
7596 dag_large_streams
="1"
7598 dag_large_streams
="0"
7601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dag_get_erf_types in -ldag" >&5
7602 $as_echo_n "checking for dag_get_erf_types in -ldag... " >&6; }
7603 if ${ac_cv_lib_dag_dag_get_erf_types+:} false
; then :
7604 $as_echo_n "(cached) " >&6
7606 ac_check_lib_save_LIBS
=$LIBS
7608 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7609 /* end confdefs.h. */
7611 /* Override any GCC internal prototype to avoid an error.
7612 Use char because int might match the return type of a GCC
7613 builtin and then its argument prototype would still apply. */
7617 char dag_get_erf_types ();
7621 return dag_get_erf_types ();
7626 if ac_fn_c_try_link
"$LINENO"; then :
7627 ac_cv_lib_dag_dag_get_erf_types
=yes
7629 ac_cv_lib_dag_dag_get_erf_types
=no
7631 rm -f core conftest.err conftest.
$ac_objext \
7632 conftest
$ac_exeext conftest.
$ac_ext
7633 LIBS
=$ac_check_lib_save_LIBS
7635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dag_dag_get_erf_types" >&5
7636 $as_echo "$ac_cv_lib_dag_dag_get_erf_types" >&6; }
7637 if test "x$ac_cv_lib_dag_dag_get_erf_types" = xyes
; then :
7640 $as_echo "#define HAVE_DAG_GET_ERF_TYPES 1" >>confdefs.h
7644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dag_get_stream_erf_types in -ldag" >&5
7645 $as_echo_n "checking for dag_get_stream_erf_types in -ldag... " >&6; }
7646 if ${ac_cv_lib_dag_dag_get_stream_erf_types+:} false
; then :
7647 $as_echo_n "(cached) " >&6
7649 ac_check_lib_save_LIBS
=$LIBS
7651 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7652 /* end confdefs.h. */
7654 /* Override any GCC internal prototype to avoid an error.
7655 Use char because int might match the return type of a GCC
7656 builtin and then its argument prototype would still apply. */
7660 char dag_get_stream_erf_types ();
7664 return dag_get_stream_erf_types ();
7669 if ac_fn_c_try_link
"$LINENO"; then :
7670 ac_cv_lib_dag_dag_get_stream_erf_types
=yes
7672 ac_cv_lib_dag_dag_get_stream_erf_types
=no
7674 rm -f core conftest.err conftest.
$ac_objext \
7675 conftest
$ac_exeext conftest.
$ac_ext
7676 LIBS
=$ac_check_lib_save_LIBS
7678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dag_dag_get_stream_erf_types" >&5
7679 $as_echo "$ac_cv_lib_dag_dag_get_stream_erf_types" >&6; }
7680 if test "x$ac_cv_lib_dag_dag_get_stream_erf_types" = xyes
; then :
7683 $as_echo "#define HAVE_DAG_GET_STREAM_ERF_TYPES 1" >>confdefs.h
7688 LDFLAGS
="$save_LDFLAGS"
7691 # We assume that if we have libdag we have libdagconf,
7692 # as they're installed at the same time from the same
7695 LIBS
="$LIBS -ldag -ldagconf"
7696 LDFLAGS
="$LDFLAGS -L$dag_lib_dir"
7698 if test "$dag_large_streams" = 1; then
7700 $as_echo "#define HAVE_DAG_LARGE_STREAMS_API 1" >>confdefs.h
7702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for vdag_set_device_info in -lvdag" >&5
7703 $as_echo_n "checking for vdag_set_device_info in -lvdag... " >&6; }
7704 if ${ac_cv_lib_vdag_vdag_set_device_info+:} false
; then :
7705 $as_echo_n "(cached) " >&6
7707 ac_check_lib_save_LIBS
=$LIBS
7709 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7710 /* end confdefs.h. */
7712 /* Override any GCC internal prototype to avoid an error.
7713 Use char because int might match the return type of a GCC
7714 builtin and then its argument prototype would still apply. */
7718 char vdag_set_device_info ();
7722 return vdag_set_device_info ();
7727 if ac_fn_c_try_link
"$LINENO"; then :
7728 ac_cv_lib_vdag_vdag_set_device_info
=yes
7730 ac_cv_lib_vdag_vdag_set_device_info
=no
7732 rm -f core conftest.err conftest.
$ac_objext \
7733 conftest
$ac_exeext conftest.
$ac_ext
7734 LIBS
=$ac_check_lib_save_LIBS
7736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_vdag_vdag_set_device_info" >&5
7737 $as_echo "$ac_cv_lib_vdag_vdag_set_device_info" >&6; }
7738 if test "x$ac_cv_lib_vdag_vdag_set_device_info" = xyes
; then :
7739 ac_dag_have_vdag
="1"
7741 ac_dag_have_vdag
="0"
7744 if test "$ac_dag_have_vdag" = 1; then
7746 $as_echo "#define HAVE_DAG_VDAG 1" >>confdefs.h
7748 if test "$ac_lbl_have_pthreads" != "found"; then
7749 as_fn_error $?
"DAG requires pthreads, but we didn't find them" "$LINENO" 5
7751 LIBS
="$LIBS $PTHREAD_LIBS"
7756 $as_echo "#define HAVE_DAG_API 1" >>confdefs.h
7760 if test "$V_PCAP" = dag
; then
7761 # User requested "dag" capture type but we couldn't
7762 # find the DAG API support.
7763 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
7766 if test "$want_dag" = yes; then
7767 # User wanted DAG support but we couldn't find it.
7768 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
7771 CFLAGS
="$save_CFLAGS"
7775 # Check whether --with-septel was given.
7776 if test "${with_septel+set}" = set; then :
7777 withval
=$with_septel;
7778 if test "$withval" = no
7781 elif test "$withval" = yes
7787 septel_root
=$withval
7792 if test "$V_PCAP" = septel
; then
7793 # User requested Septel-only libpcap, so we'd better have
7796 elif test "xxx_only" = yes; then
7797 # User requested something-else-only pcap, so they don't
7798 # want Septel support.
7802 # Use Septel API if present, otherwise don't
7804 want_septel
=ifpresent
7810 ac_cv_lbl_septel_api
=no
7811 if test "$with_septel" != no
; then
7813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have Septel API headers" >&5
7814 $as_echo_n "checking whether we have Septel API headers... " >&6; }
7816 # If necessary, set default paths for Septel API headers and libraries.
7817 if test -z "$septel_root"; then
7818 septel_root
=$srcdir/..
/septel
7821 septel_tools_dir
="$septel_root"
7822 septel_include_dir
="$septel_root/INC"
7824 if test -r "$septel_include_dir/msg.h"; then
7825 ac_cv_lbl_septel_api
=yes
7828 if test "$ac_cv_lbl_septel_api" = yes; then
7829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($septel_include_dir)" >&5
7830 $as_echo "yes ($septel_include_dir)" >&6; }
7832 V_INCLS
="$V_INCLS -I$septel_include_dir"
7833 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"
7834 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"
7836 if test "$V_PCAP" != septel
; then
7837 MODULE_C_SRC
="$MODULE_C_SRC pcap-septel.c"
7841 $as_echo "#define HAVE_SEPTEL_API 1" >>confdefs.h
7844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7845 $as_echo "no" >&6; }
7847 if test "$V_PCAP" = septel
; then
7848 # User requested "septel" capture type but
7849 # we couldn't find the Septel API support.
7850 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
7853 if test "$want_septel" = yes; then
7854 # User wanted Septel support but we couldn't find it.
7855 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
7860 # Check for Myricom SNF support.
7862 # Check whether --with-snf was given.
7863 if test "${with_snf+set}" = set; then :
7865 if test "$withval" = no
7867 # User explicitly doesn't want SNF
7869 elif test "$withval" = yes
7871 # User wants SNF support but hasn't specified a directory.
7874 # User wants SNF support with a specified directory.
7881 if test "$V_PCAP" = snf
; then
7882 # User requested Sniffer-only libpcap, so we'd better have
7885 elif test "xxx_only" = yes; then
7886 # User requested something-else-only pcap, so they don't
7891 # Use Sniffer API if present, otherwise don't
7900 # Check whether --with-snf-includes was given.
7901 if test "${with_snf_includes+set}" = set; then :
7902 withval
=$with_snf_includes;
7903 # User wants SNF with specific header directory
7905 snf_include_dir
=$withval
7911 # Check whether --with-snf-libraries was given.
7912 if test "${with_snf_libraries+set}" = set; then :
7913 withval
=$with_snf_libraries;
7914 # User wants SNF with specific lib directory
7916 snf_lib_dir
=$withval
7921 ac_cv_lbl_snf_api
=no
7922 if test "$with_snf" != no
; then
7924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have Myricom Sniffer API" >&5
7925 $as_echo_n "checking whether we have Myricom Sniffer API... " >&6; }
7927 # If necessary, set default paths for Sniffer headers and libraries.
7928 if test -z "$snf_root"; then
7932 if test -z "$snf_include_dir"; then
7933 snf_include_dir
="$snf_root/include"
7936 if test -z "$snf_lib_dir"; then
7937 snf_lib_dir
="$snf_root/lib"
7939 # Handle multiarch systems.
7941 if test -d "$snf_lib_dir/$host"
7943 snf_lib_dir
="$snf_lib_dir/$host"
7947 if test -f "$snf_include_dir/snf.h"; then
7948 # We found a header; make sure we can link with the library
7949 save_LDFLAGS
="$LDFLAGS"
7950 LDFLAGS
="$LDFLAGS -L$snf_lib_dir"
7951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snf_init in -lsnf" >&5
7952 $as_echo_n "checking for snf_init in -lsnf... " >&6; }
7953 if ${ac_cv_lib_snf_snf_init+:} false
; then :
7954 $as_echo_n "(cached) " >&6
7956 ac_check_lib_save_LIBS
=$LIBS
7958 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7959 /* end confdefs.h. */
7961 /* Override any GCC internal prototype to avoid an error.
7962 Use char because int might match the return type of a GCC
7963 builtin and then its argument prototype would still apply. */
7976 if ac_fn_c_try_link
"$LINENO"; then :
7977 ac_cv_lib_snf_snf_init
=yes
7979 ac_cv_lib_snf_snf_init
=no
7981 rm -f core conftest.err conftest.
$ac_objext \
7982 conftest
$ac_exeext conftest.
$ac_ext
7983 LIBS
=$ac_check_lib_save_LIBS
7985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_snf_snf_init" >&5
7986 $as_echo "$ac_cv_lib_snf_snf_init" >&6; }
7987 if test "x$ac_cv_lib_snf_snf_init" = xyes
; then :
7988 ac_cv_lbl_snf_api
="yes"
7991 LDFLAGS
="$save_LDFLAGS"
7992 if test "$ac_cv_lbl_snf_api" = no
; then
7993 as_fn_error $?
"SNF API cannot correctly be linked; check config.log" "$LINENO" 5
7997 if test "$ac_cv_lbl_snf_api" = yes; then
7998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($snf_root)" >&5
7999 $as_echo "yes ($snf_root)" >&6; }
8001 V_INCLS
="$V_INCLS -I$snf_include_dir"
8003 LDFLAGS
="$LDFLAGS -L$snf_lib_dir"
8005 if test "$V_PCAP" != snf
; then
8006 MODULE_C_SRC
="$MODULE_C_SRC pcap-snf.c"
8010 $as_echo "#define HAVE_SNF_API 1" >>confdefs.h
8013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8014 $as_echo "no" >&6; }
8016 if test "$want_snf" = yes; then
8017 # User requested "snf" capture type but
8018 # we couldn't find the Sniffer API support.
8019 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
8022 if test "$want_snf" = yes; then
8023 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
8028 # Check for Riverbed TurboCap support.
8030 # Check whether --with-turbocap was given.
8031 if test "${with_turbocap+set}" = set; then :
8032 withval
=$with_turbocap;
8033 if test "$withval" = no
8035 # User explicitly doesn't want TurboCap
8037 elif test "$withval" = yes
8039 # User wants TurboCap support but hasn't specified a directory.
8042 # User wants TurboCap support with a specified directory.
8044 turbocap_root
=$withval
8049 if test "xxx_only" = yes; then
8050 # User requested something-else-only pcap, so they don't
8051 # want TurboCap support.
8055 # Use TurboCap API if present, otherwise don't
8057 want_turbocap
=ifpresent
8063 ac_cv_lbl_turbocap_api
=no
8064 if test "$want_turbocap" != no
; then
8066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether TurboCap is supported" >&5
8067 $as_echo_n "checking whether TurboCap is supported... " >&6; }
8069 save_CFLAGS
="$CFLAGS"
8071 if test ! -z "$turbocap_root"; then
8072 TURBOCAP_CFLAGS
="-I$turbocap_root/include"
8073 TURBOCAP_LIBS
="-L$turbocap_root/lib"
8074 CFLAGS
="$CFLAGS $TURBOCAP_CFLAGS"
8077 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8078 /* end confdefs.h. */
8086 TC_INSTANCE a; TC_PORT b; TC_BOARD c;
8088 (void)TcInstanceCreateByName("foo", &i);
8094 if ac_fn_c_try_compile
"$LINENO"; then :
8095 ac_cv_lbl_turbocap_api
=yes
8097 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8099 CFLAGS
="$save_CFLAGS"
8100 if test $ac_cv_lbl_turbocap_api = yes; then
8101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8102 $as_echo "yes" >&6; }
8104 MODULE_C_SRC
="$MODULE_C_SRC pcap-tc.c"
8105 V_INCLS
="$V_INCLS $TURBOCAP_CFLAGS"
8106 LIBS
="$LIBS $TURBOCAP_LIBS -lTcApi -lpthread -lstdc++"
8109 $as_echo "#define HAVE_TC_API 1" >>confdefs.h
8112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8113 $as_echo "no" >&6; }
8115 if test "$want_turbocap" = yes; then
8116 # User wanted Turbo support but we couldn't find it.
8117 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
8122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable remote packet capture" >&5
8123 $as_echo_n "checking whether to enable remote packet capture... " >&6; }
8124 # Check whether --enable-remote was given.
8125 if test "${enable_remote+set}" = set; then :
8126 enableval
=$enable_remote;
8131 case "$enableval" in
8132 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8133 $as_echo "yes" >&6; }
8134 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Remote packet capture may expose libpcap-based applications" >&5
8135 $as_echo "$as_me: WARNING: Remote packet capture may expose libpcap-based applications" >&2;}
8136 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: to attacks by malicious remote capture servers!" >&5
8137 $as_echo "$as_me: WARNING: to attacks by malicious remote capture servers!" >&2;}
8139 # rpcapd requires pthreads on UN*X.
8141 if test "$ac_lbl_have_pthreads" != "found"; then
8142 as_fn_error $?
"rpcapd requires pthreads, but we didn't find them" "$LINENO" 5
8145 # It also requires crypt().
8146 # Do we have it in the system libraries?
8148 ac_fn_c_check_func
"$LINENO" "crypt" "ac_cv_func_crypt"
8149 if test "x$ac_cv_func_crypt" = xyes
; then :
8154 # No. Do we have it in -lcrypt?
8156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
8157 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
8158 if ${ac_cv_lib_crypt_crypt+:} false
; then :
8159 $as_echo_n "(cached) " >&6
8161 ac_check_lib_save_LIBS
=$LIBS
8162 LIBS
="-lcrypt $LIBS"
8163 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8164 /* end confdefs.h. */
8166 /* Override any GCC internal prototype to avoid an error.
8167 Use char because int might match the return type of a GCC
8168 builtin and then its argument prototype would still apply. */
8181 if ac_fn_c_try_link
"$LINENO"; then :
8182 ac_cv_lib_crypt_crypt
=yes
8184 ac_cv_lib_crypt_crypt
=no
8186 rm -f core conftest.err conftest.
$ac_objext \
8187 conftest
$ac_exeext conftest.
$ac_ext
8188 LIBS
=$ac_check_lib_save_LIBS
8190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
8191 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
8192 if test "x$ac_cv_lib_crypt_crypt" = xyes
; then :
8195 # Yes; add -lcrypt to the libraries for rpcapd.
8197 RPCAPD_LIBS
="$RPCAPD_LIBS -lcrypt"
8201 as_fn_error $?
"rpcapd requires crypt(), but we didn't find it" "$LINENO" 5
8210 # OK, we have crypt(). Do we have getspnam()?
8212 for ac_func
in getspnam
8214 ac_fn_c_check_func
"$LINENO" "getspnam" "ac_cv_func_getspnam"
8215 if test "x$ac_cv_func_getspnam" = xyes
; then :
8216 cat >>confdefs.h
<<_ACEOF
8217 #define HAVE_GETSPNAM 1
8225 # Check for various members of struct msghdr.
8227 ac_fn_c_check_member
"$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
8228 #include \"ftmacros.h\"
8229 #include <sys/socket.h>
8232 if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes
; then :
8234 cat >>confdefs.h
<<_ACEOF
8235 #define HAVE_STRUCT_MSGHDR_MSG_CONTROL 1
8241 ac_fn_c_check_member
"$LINENO" "struct msghdr" "msg_flags" "ac_cv_member_struct_msghdr_msg_flags" "
8242 #include \"ftmacros.h\"
8243 #include <sys/socket.h>
8246 if test "x$ac_cv_member_struct_msghdr_msg_flags" = xyes
; then :
8248 cat >>confdefs.h
<<_ACEOF
8249 #define HAVE_STRUCT_MSGHDR_MSG_FLAGS 1
8257 # Optionally, we may want to support SSL.
8258 # Check for OpenSSL/libressl.
8260 # First, try looking for it as a regular system library.
8261 # Make sure we can find SSL_library_init() using the
8262 # standard headers, just in case we're running a version
8263 # of macOS that ships with the OpenSSL library but not
8264 # the OpenSSL headers, and have also installed another
8265 # version of OpenSSL with headers.
8268 LIBS
="-lssl -lcrypto"
8269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have a system OpenSSL/libressl that we can use" >&5
8270 $as_echo_n "checking whether we have a system OpenSSL/libressl that we can use... " >&6; }
8271 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8272 /* end confdefs.h. */
8274 #include <openssl/ssl.h>
8287 if ac_fn_c_try_link
"$LINENO"; then :
8289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8290 $as_echo "yes" >&6; }
8292 OPENSSL_LIBS
="-lssl -lcrypto"
8295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8296 $as_echo "no" >&6; }
8298 rm -f core conftest.err conftest.
$ac_objext \
8299 conftest
$ac_exeext conftest.
$ac_ext
8303 # If we didn't find it, check for it with pkg-config.
8305 if test "x$HAVE_OPENSSL" != "xyes"; then
8306 if test "x$PKGCONFIG" != "xno"; then
8308 # We have pkg-config; see if we have OpenSSL/
8309 # libressl installed as a package.
8311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL/libressl with pkg-config" >&5
8312 $as_echo_n "checking for OpenSSL/libressl with pkg-config... " >&6; }
8313 if "$PKGCONFIG" openssl
; then
8314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
8315 $as_echo "found" >&6; }
8317 OPENSSL_CFLAGS
=`"$PKGCONFIG" --cflags openssl`
8318 OPENSSL_LIBS
=`"$PKGCONFIG" --libs openssl`
8320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8321 $as_echo "not found" >&6; }
8327 # If we didn't find it, check for it under /usr/local/opt/openssl;
8328 # that's where Homebrew puts it on macOS. Feel free to add other
8329 # -L directories as necessary; the "system library" check should
8330 # also handle "add-on library under /usr/local", so that shouldn't
8331 # be necessary here.
8333 if test "x$HAVE_OPENSSL" != "xyes"; then
8334 save_CFLAGS
="$CFLAGS"
8336 CFLAGS
="$CFLAGS -L/usr/local/opt/openssl/include"
8337 LIBS
="$LIBS -L/usr/local/opt/openssl/lib -lssl -lcrypto"
8338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have OpenSSL/libressl in /usr/local/opt that we can use" >&5
8339 $as_echo_n "checking whether we have OpenSSL/libressl in /usr/local/opt that we can use... " >&6; }
8340 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8341 /* end confdefs.h. */
8343 #include <openssl/ssl.h>
8356 if ac_fn_c_try_link
"$LINENO"; then :
8358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8359 $as_echo "yes" >&6; }
8361 OPENSSL_CFLAGS
="-I/usr/local/opt/openssl/include"
8362 OPENSSL_LIBS
="-L/usr/local/opt/openssl/lib -lssl -lcrypto"
8365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8366 $as_echo "no" >&6; }
8368 rm -f core conftest.err conftest.
$ac_objext \
8369 conftest
$ac_exeext conftest.
$ac_ext
8370 CFLAGS
="$save_CFLAGS"
8375 # OK, did we find it?
8377 if test "x$HAVE_OPENSSL" = "xyes"; then
8379 $as_echo "#define HAVE_OPENSSL 1" >>confdefs.h
8381 CFLAGS
="$CFLAGS $OPENSSL_CFLAGS"
8382 LIBS
="$LIBS $OPENSSL_LIBS"
8384 { $as_echo "$as_me:${as_lineno-$LINENO}: OpenSSL not found" >&5
8385 $as_echo "$as_me: OpenSSL not found" >&6;}
8389 $as_echo "#define ENABLE_REMOTE /**/" >>confdefs.h
8391 REMOTE_C_SRC
="$REMOTE_C_SRC pcap-new.c pcap-rpcap.c rpcap-protocol.c sockutils.c sslutils.c"
8392 BUILD_RPCAPD
=build-rpcapd
8393 INSTALL_RPCAPD
=install-rpcapd
8395 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8396 $as_echo "no" >&6; }
8400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build optimizer debugging code" >&5
8401 $as_echo_n "checking whether to build optimizer debugging code... " >&6; }
8402 # Check whether --enable-optimizer-dbg was given.
8403 if test "${enable_optimizer_dbg+set}" = set; then :
8404 enableval
=$enable_optimizer_dbg;
8407 if test "$enable_optimizer_dbg" = "yes"; then
8409 $as_echo "#define BDEBUG 1" >>confdefs.h
8412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_optimizer_dbg-no}" >&5
8413 $as_echo "${enable_optimizer_dbg-no}" >&6; }
8415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build parser debugging code" >&5
8416 $as_echo_n "checking whether to build parser debugging code... " >&6; }
8417 # Check whether --enable-yydebug was given.
8418 if test "${enable_yydebug+set}" = set; then :
8419 enableval
=$enable_yydebug;
8422 if test "$enable_yydebug" = "yes"; then
8424 $as_echo "#define YYDEBUG 1" >>confdefs.h
8427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_yydebug-no}" >&5
8428 $as_echo "${enable_yydebug-no}" >&6; }
8433 for ac_prog
in flex
lex
8435 # Extract the first word of "$ac_prog", so it can be a program name with args.
8436 set dummy
$ac_prog; ac_word
=$2
8437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8438 $as_echo_n "checking for $ac_word... " >&6; }
8439 if ${ac_cv_prog_LEX+:} false
; then :
8440 $as_echo_n "(cached) " >&6
8442 if test -n "$LEX"; then
8443 ac_cv_prog_LEX
="$LEX" # Let the user override the test.
8445 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8449 test -z "$as_dir" && as_dir
=.
8450 for ac_exec_ext
in '' $ac_executable_extensions; do
8451 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8452 ac_cv_prog_LEX
="$ac_prog"
8453 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8463 if test -n "$LEX"; then
8464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
8465 $as_echo "$LEX" >&6; }
8467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8468 $as_echo "no" >&6; }
8472 test -n "$LEX" && break
8474 test -n "$LEX" || LEX
=":"
8476 if test "x$LEX" != "x:"; then
8477 cat >conftest.l
<<_ACEOF
8483 e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
8484 yyless ((input () != 0)); }
8485 f { unput (yytext[0]); }
8486 . { BEGIN INITIAL; }
8488 #ifdef YYTEXT_POINTER
8489 extern char *yytext;
8494 return ! yylex () + ! yywrap ();
8497 { { ac_try
="$LEX conftest.l"
8499 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8500 *) ac_try_echo=$ac_try;;
8502 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
8503 $as_echo "$ac_try_echo"; } >&5
8504 (eval "$LEX conftest.l") 2>&5
8506 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8507 test $ac_status = 0; }
8508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
8509 $as_echo_n "checking lex output file root... " >&6; }
8510 if ${ac_cv_prog_lex_root+:} false; then :
8511 $as_echo_n "(cached) " >&6
8514 if test -f lex.yy.c; then
8515 ac_cv_prog_lex_root=lex.yy
8516 elif test -f lexyy.c; then
8517 ac_cv_prog_lex_root=lexyy
8519 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
8522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
8523 $as_echo "$ac_cv_prog_lex_root" >&6; }
8524 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
8526 if test -z "${LEXLIB+set}"; then
8527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
8528 $as_echo_n "checking lex library... " >&6; }
8529 if ${ac_cv_lib_lex+:} false; then :
8530 $as_echo_n "(cached) " >&6
8534 ac_cv_lib_lex='none needed'
8535 for ac_lib in '' -lfl -ll; do
8536 LIBS="$ac_lib $ac_save_LIBS"
8537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8538 /* end confdefs.h. */
8539 `cat $LEX_OUTPUT_ROOT.c
`
8541 if ac_fn_c_try_link "$LINENO"; then :
8542 ac_cv_lib_lex=$ac_lib
8544 rm -f core conftest.err conftest.$ac_objext \
8545 conftest$ac_exeext conftest.$ac_ext
8546 test "$ac_cv_lib_lex" != 'none needed' && break
8551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
8552 $as_echo "$ac_cv_lib_lex" >&6; }
8553 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
8557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
8558 $as_echo_n "checking whether yytext is a pointer... " >&6; }
8559 if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
8560 $as_echo_n "(cached) " >&6
8562 # POSIX says lex can declare yytext either as a pointer or an array; the
8563 # default is implementation-dependent. Figure out which it is, since
8564 # not all implementations provide the %pointer and %array declarations.
8565 ac_cv_prog_lex_yytext_pointer=no
8567 LIBS="$LEXLIB $ac_save_LIBS"
8568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8569 /* end confdefs.h. */
8571 #define YYTEXT_POINTER 1
8572 `cat $LEX_OUTPUT_ROOT.c
`
8574 if ac_fn_c_try_link "$LINENO"; then :
8575 ac_cv_prog_lex_yytext_pointer=yes
8577 rm -f core conftest.err conftest.$ac_objext \
8578 conftest$ac_exeext conftest.$ac_ext
8582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
8583 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
8584 if test $ac_cv_prog_lex_yytext_pointer = yes; then
8586 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
8589 rm -f conftest.l $LEX_OUTPUT_ROOT.c
8592 if test "$LEX" = ":"; then
8593 as_fn_error $? "Neither flex nor lex was found." "$LINENO" 5
8597 # Make sure {f}lex supports the -P, --header-file, and --nounput flags
8598 # and supports processing our scanner.l.
8600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for capable lex" >&5
8601 $as_echo_n "checking for capable lex... " >&6; }
8602 if ${tcpdump_cv_capable_lex+:} false; then :
8603 $as_echo_n "(cached) " >&6
8605 if $LEX -P pcap_ --header-file=/dev/null --nounput -t $srcdir/scanner.l > /dev/null 2>&1; then
8606 tcpdump_cv_capable_lex=yes
8608 tcpdump_cv_capable_lex=insufficient
8611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcpdump_cv_capable_lex" >&5
8612 $as_echo "$tcpdump_cv_capable_lex" >&6; }
8613 if test $tcpdump_cv_capable_lex = insufficient ; then
8614 as_fn_error $? "$LEX is insufficient to compile libpcap.
8615 libpcap requires Flex 2.5.31 or later, or a compatible version of lex.
8616 If a suitable version of Lex/Flex is available as a non-standard command
8617 and/or not in the PATH, you can specify it using the LEX environment
8618 variable. That said, on some systems the error can mean that Flex/Lex is
8619 actually acceptable, but m4 is not. Likewise, if a suitable version of
8620 m4 (such as GNU M4) is available but has not been detected, you can
8621 specify it using the M4 environment variable." "$LINENO" 5
8625 # Look for yacc/bison/byacc.
8626 # If it's Bison, we do not want -y, as 1) we will be using -o to cause
8627 # the output for XXX.y to be written to XXX.c and 2) we don't want
8628 # it to issue warnings about stuff not supported by POSIX YACC - we
8629 # want to use that stuff, and don't care whether plain YACC supports
8630 # it or not, we require either Bison or Berkeley YACC.
8636 for ac_prog in bison
8638 # Extract the first word of "$ac_prog", so it can be a program name with args.
8639 set dummy $ac_prog; ac_word=$2
8640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8641 $as_echo_n "checking for $ac_word... " >&6; }
8642 if ${ac_cv_prog_BISON_BYACC+:} false; then :
8643 $as_echo_n "(cached) " >&6
8645 if test -n "$BISON_BYACC"; then
8646 ac_cv_prog_BISON_BYACC="$BISON_BYACC" # Let the user override the test.
8648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8652 test -z "$as_dir" && as_dir=.
8653 for ac_exec_ext in '' $ac_executable_extensions; do
8654 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8655 ac_cv_prog_BISON_BYACC="$ac_prog"
8656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8665 BISON_BYACC=$ac_cv_prog_BISON_BYACC
8666 if test -n "$BISON_BYACC"; then
8667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON_BYACC" >&5
8668 $as_echo "$BISON_BYACC" >&6; }
8670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8671 $as_echo "no" >&6; }
8675 test -n "$BISON_BYACC" && break
8678 if test x"$BISON_BYACC" != x; then
8682 # Bison prior to 2.4(.1) doesn't support "%define api.pure", so use
8685 bison_major_version=`$BISON_BYACC -V |
sed -n 's/.* \([1-9][0-9]*\)\.[0-9][0-9.]*/\1/p'`
8686 bison_minor_version=`$BISON_BYACC -V |
sed -n 's/.* [1-9][0-9]*\.\([0-9]+\).*/\1/p'`
8687 if test "$bison_major_version" -lt 2 -o \
8688 \( "$bison_major_version" -eq 2 -a "$bison_major_version" -lt 4 \)
8690 REENTRANT_PARSER="%pure-parser"
8692 REENTRANT_PARSER="%define api.pure"
8696 # We didn't find Bison; check for Berkeley YACC, under the
8697 # names byacc and yacc.
8699 for ac_prog in byacc yacc
8701 # Extract the first word of "$ac_prog", so it can be a program name with args.
8702 set dummy $ac_prog; ac_word=$2
8703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8704 $as_echo_n "checking for $ac_word... " >&6; }
8705 if ${ac_cv_prog_BISON_BYACC+:} false; then :
8706 $as_echo_n "(cached) " >&6
8708 if test -n "$BISON_BYACC"; then
8709 ac_cv_prog_BISON_BYACC="$BISON_BYACC" # Let the user override the test.
8711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8715 test -z "$as_dir" && as_dir=.
8716 for ac_exec_ext in '' $ac_executable_extensions; do
8717 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8718 ac_cv_prog_BISON_BYACC="$ac_prog"
8719 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8728 BISON_BYACC=$ac_cv_prog_BISON_BYACC
8729 if test -n "$BISON_BYACC"; then
8730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON_BYACC" >&5
8731 $as_echo "$BISON_BYACC" >&6; }
8733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8734 $as_echo "no" >&6; }
8738 test -n "$BISON_BYACC" && break
8741 if test x"$BISON_BYACC" != x; then
8743 # Make sure this is Berkeley YACC, not AT&T YACC;
8744 # the latter doesn't support reentrant parsers.
8745 # Run it with "-V"; that succeeds and reports the
8746 # version number with Berkeley YACC, but will
8747 # (probably) fail with various vendor flavors
8750 # Hopefully this also eliminates any versions
8751 # of Berkeley YACC that don't support reentrant
8752 # parsers, if there are any.
8754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for capable yacc" >&5
8755 $as_echo_n "checking for capable yacc... " >&6; }
8756 if ${tcpdump_cv_capable_yacc+:} false; then :
8757 $as_echo_n "(cached) " >&6
8759 if $BISON_BYACC -V >/dev/null 2>&1; then
8760 tcpdump_cv_capable_yacc=yes
8762 tcpdump_cv_capable_yacc=insufficient
8765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcpdump_cv_capable_yacc" >&5
8766 $as_echo "$tcpdump_cv_capable_yacc" >&6; }
8767 if test $tcpdump_cv_capable_yacc = insufficient ; then
8768 as_fn_error $? "$BISON_BYACC is insufficient to compile libpcap.
8769 libpcap requires Bison, a newer version of Berkeley YACC with support
8770 for reentrant parsers, or another YACC compatible with them." "$LINENO" 5
8774 # OK, we found neither byacc nor yacc.
8776 as_fn_error $? "Neither bison, byacc, nor yacc was found.
8777 libpcap requires Bison, a newer version of Berkeley YACC with support
8778 for reentrant parsers, or another YACC compatible with them." "$LINENO" 5
8782 # Berkeley YACC doesn't support "%define api.pure", so use
8785 REENTRANT_PARSER="%pure-parser"
8791 # Do various checks for various OSes and versions of those OSes.
8793 # Assume, by default, no support for shared libraries and V7/BSD
8794 # convention for man pages (devices in section 4, file formats in
8795 # section 5, miscellaneous info in section 7, administrative commands
8796 # and daemons in section 8). Individual cases can override this.
8802 MAN_ADMIN_COMMANDS=8
8807 $as_echo "#define _SUN 1" >>confdefs.h
8811 # AIX makes it fun to build shared and static libraries,
8812 # because they're *both* ".a" archive libraries. We
8813 # build the static library for the benefit of the traditional
8814 # scheme of building libpcap and tcpdump in subdirectories of
8815 # the same directory, with tcpdump statically linked with the
8816 # libpcap in question, but we also build a shared library as
8817 # "libpcap.shareda" and install *it*, rather than the static
8818 # library, as "libpcap.a".
8826 # If we're using DLPI, applications will need to
8827 # use /lib/pse.exp if present, as we use the
8830 pseexe="/lib/pse.exp"
8831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $pseexe" >&5
8832 $as_echo_n "checking for $pseexe... " >&6; }
8833 if test -f $pseexe ; then
8834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8835 $as_echo "yes" >&6; }
8842 # If we're using BPF, we need "-lodm" and "-lcfg", as
8843 # we use them to load the BPF module.
8852 V_CCOPT="$V_CCOPT -fno-common"
8853 # Check whether --enable-universal was given.
8854 if test "${enable_universal+set}" = set; then :
8855 enableval=$enable_universal;
8858 if test "$enable_universal" != "no"; then
8863 # Pre-Tiger. Build only for 32-bit PowerPC; no
8864 # need for any special compiler or linker flags.
8868 darwin8.[0123]|darwin8.[0123].*)
8870 # Tiger, prior to Intel support. Build
8871 # libraries and executables for 32-bit PowerPC
8872 # and 64-bit PowerPC, with 32-bit PowerPC first.
8873 # (I'm guessing that's what Apple does.)
8875 # (The double brackets are needed because
8876 # autotools/m4 use brackets as a quoting
8877 # character; the double brackets turn into
8878 # single brackets in the generated configure
8881 V_LIB_CCOPT_FAT="-arch ppc -arch ppc64"
8882 V_LIB_LDFLAGS_FAT="-arch ppc -arch ppc64"
8883 V_PROG_CCOPT_FAT="-arch ppc -arch ppc64"
8884 V_PROG_LDFLAGS_FAT="-arch ppc -arch ppc64"
8887 darwin8.[456]|darwin.[456].*)
8889 # Tiger, subsequent to Intel support but prior
8890 # to x86-64 support. Build libraries and
8891 # executables for 32-bit PowerPC, 64-bit
8892 # PowerPC, and 32-bit x86, with 32-bit PowerPC
8893 # first. (I'm guessing that's what Apple does.)
8895 # (The double brackets are needed because
8896 # autotools/m4 use brackets as a quoting
8897 # character; the double brackets turn into
8898 # single brackets in the generated configure
8901 V_LIB_CCOPT_FAT="-arch ppc -arch ppc64 -arch i386"
8902 V_LIB_LDFLAGS_FAT="-arch ppc -arch ppc64 -arch i386"
8903 V_PROG_CCOPT_FAT="-arch ppc -arch ppc64 -arch i386"
8904 V_PROG_LDFLAGS_FAT="-arch ppc -arch ppc64 -arch i386"
8909 # All other Tiger, so subsequent to x86-64
8910 # support. Build libraries and executables for
8911 # 32-bit PowerPC, 64-bit PowerPC, 32-bit x86,
8912 # and x86-64, with 32-bit PowerPC first. (I'm
8913 # guessing that's what Apple does.)
8915 V_LIB_CCOPT_FAT="-arch ppc -arch ppc64 -arch i386 -arch x86_64"
8916 V_LIB_LDFLAGS_FAT="-arch ppc -arch ppc64 -arch i386 -arch x86_64"
8917 V_PROG_CCOPT_FAT="-arch ppc -arch ppc64 -arch i386 -arch x86_64"
8918 V_PROG_LDFLAGS_FAT="-arch ppc -arch ppc64 -arch i386 -arch x86_64"
8923 # Leopard. Build libraries for 32-bit PowerPC,
8924 # 64-bit PowerPC, 32-bit x86, and x86-64, with
8925 # 32-bit PowerPC first, and build executables
8926 # for 32-bit x86 and 32-bit PowerPC, with 32-bit
8927 # x86 first. (That's what Apple does.)
8929 V_LIB_CCOPT_FAT="-arch ppc -arch ppc64 -arch i386 -arch x86_64"
8930 V_LIB_LDFLAGS_FAT="-arch ppc -arch ppc64 -arch i386 -arch x86_64"
8931 V_PROG_CCOPT_FAT="-arch i386 -arch ppc"
8932 V_PROG_LDFLAGS_FAT="-arch i386 -arch ppc"
8937 # Snow Leopard. Build libraries for x86-64,
8938 # 32-bit x86, and 32-bit PowerPC, with x86-64
8939 # first, and build executables for x86-64 and
8940 # 32-bit x86, with x86-64 first. (That's what
8941 # Apple does, even though Snow Leopard doesn't
8942 # run on PPC, so PPC libpcap runs under Rosetta,
8943 # and Rosetta doesn't support BPF ioctls, so PPC
8944 # programs can't do live captures.)
8946 V_LIB_CCOPT_FAT="-arch x86_64 -arch i386 -arch ppc"
8947 V_LIB_LDFLAGS_FAT="-arch x86_64 -arch i386 -arch ppc"
8948 V_PROG_CCOPT_FAT="-arch x86_64 -arch i386"
8949 V_PROG_LDFLAGS_FAT="-arch x86_64 -arch i386"
8954 # Post-Snow Leopard. Build libraries for x86-64
8955 # and 32-bit x86, with x86-64 first, and build
8956 # executables only for x86-64. (That's what
8957 # Apple does.) This requires no special flags
8959 # XXX - update if and when Apple drops support
8960 # for 32-bit x86 code and if and when Apple adds
8961 # ARM-based Macs. (You're on your own for iOS
8964 # XXX - check whether we *can* build for
8965 # i386 and, if not, suggest that the user
8966 # install the /usr/include headers if they
8967 # want to build fat.
8969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether building for 32-bit x86 is supported" >&5
8970 $as_echo_n "checking whether building for 32-bit x86 is supported... " >&6; }
8971 save_CFLAGS="$CFLAGS"
8972 CFLAGS="$CFLAGS -arch i386"
8973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8974 /* end confdefs.h. */
8984 if ac_fn_c_try_link "$LINENO"; then :
8986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8987 $as_echo "yes" >&6; }
8988 V_LIB_CCOPT_FAT="-arch x86_64"
8989 V_LIB_LDFLAGS_FAT="-arch x86_64"
8992 # OpenSSL installation on macOS seems
8993 # to install only the libs for 64-bit
8994 # x86 - at least that's what Brew does:
8995 # only configure 32-bit builds if we
8996 # don't have OpenSSL.
8998 if test "$HAVE_OPENSSL" != yes; then
8999 V_LIB_CCOPT_FAT="$V_LIB_CCOPT_FAT -arch i386"
9000 V_LIB_LDFLAGS_FAT="$V_LIB_LDFLAGS_FAT -arch i386"
9005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9006 $as_echo "no" >&6; }
9007 V_LIB_CCOPT_FAT="-arch x86_64"
9008 V_LIB_LDFLAGS_FAT="-arch x86_64"
9013 # Mojave; you need to install the
9014 # /usr/include headers to get
9015 # 32-bit x86 builds to work.
9017 { $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
9018 $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;}
9023 # Pre-Mojave; the command-line
9024 # tools should be sufficient to
9025 # enable 32-bit x86 builds.
9027 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Compiling for 32-bit x86 gives an error; try installing the command-line tools" >&5
9028 $as_echo "$as_me: WARNING: Compiling for 32-bit x86 gives an error; try installing the command-line tools" >&2;}
9033 rm -f core conftest.err conftest.$ac_objext \
9034 conftest$ac_exeext conftest.$ac_ext
9035 CFLAGS="$save_CFLAGS"
9043 $as_echo "#define HAVE_HPUX9 1" >>confdefs.h
9047 # Use System V conventions for man pages.
9049 MAN_ADMIN_COMMANDS=1m
9057 # Use System V conventions for man pages.
9059 MAN_ADMIN_COMMANDS=1m
9067 # Use System V conventions for man pages.
9069 MAN_ADMIN_COMMANDS=1m
9076 $as_echo "#define HAVE_HPUX10_20_OR_LATER 1" >>confdefs.h
9078 if test "`uname
-m`" = "ia64"; then
9085 # "-b" builds a shared library; "+h" sets the soname.
9091 # Use System V conventions for man pages.
9099 # Use IRIX conventions for man pages; they're the same as the
9100 # System V conventions, except that they use section 8 for
9101 # administrative commands and daemons.
9107 linux*|freebsd*|netbsd*|openbsd*|dragonfly*|kfreebsd*|gnu*|haiku*|midipix*)
9111 # Compiler assumed to be GCC; run-time linker may require a -R
9114 if test "$libdir" != "/usr/lib"; then
9115 V_RFLAGS=-Wl,-R$libdir
9123 # DEC OSF/1, a/k/a Digial UNIX, a/k/a Tru64 UNIX.
9124 # Use Tru64 UNIX conventions for man pages; they're the same as
9125 # the System V conventions except that they use section 8 for
9126 # administrative commands and daemons.
9134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if SINIX compiler defines sinix" >&5
9135 $as_echo_n "checking if SINIX compiler defines sinix... " >&6; }
9136 if ${ac_cv_cc_sinix_defined+:} false; then :
9137 $as_echo_n "(cached) " >&6
9139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9140 /* end confdefs.h. */
9150 if ac_fn_c_try_compile "$LINENO"; then :
9151 ac_cv_cc_sinix_defined=yes
9153 ac_cv_cc_sinix_defined=no
9155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_sinix_defined" >&5
9159 $as_echo "$ac_cv_cc_sinix_defined" >&6; }
9160 if test $ac_cv_cc_sinix_defined = no ; then
9162 $as_echo "#define sinix 1" >>confdefs.h
9169 $as_echo "#define HAVE_SOLARIS 1" >>confdefs.h
9175 # Make sure errno is thread-safe, in case we're called in
9176 # a multithreaded program. We don't guarantee that two
9177 # threads can use the *same* pcap_t safely, but the
9178 # current version does guarantee that you can use different
9179 # pcap_t's in different threads, and even that pcap_compile()
9180 # is thread-safe (it wasn't thread-safe in some older versions).
9182 V_CCOPT="$V_CCOPT -D_TS_ERRNO"
9184 case "`uname
-r`" in
9191 # Use System V conventions for man pages.
9193 MAN_ADMIN_COMMANDS=1m
9201 # Check whether --enable-shared was given.
9202 if test "${enable_shared+set}" = set; then :
9203 enableval=$enable_shared;
9206 test "x$enable_shared" = "xno" && DYEXT="none"
9208 if test -n "$ac_tool_prefix"; then
9209 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
9210 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
9211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9212 $as_echo_n "checking for $ac_word... " >&6; }
9213 if ${ac_cv_prog_RANLIB+:} false; then :
9214 $as_echo_n "(cached) " >&6
9216 if test -n "$RANLIB"; then
9217 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9223 test -z "$as_dir" && as_dir=.
9224 for ac_exec_ext in '' $ac_executable_extensions; do
9225 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9226 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
9227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9236 RANLIB=$ac_cv_prog_RANLIB
9237 if test -n "$RANLIB"; then
9238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9239 $as_echo "$RANLIB" >&6; }
9241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9242 $as_echo "no" >&6; }
9247 if test -z "$ac_cv_prog_RANLIB"; then
9248 ac_ct_RANLIB=$RANLIB
9249 # Extract the first word of "ranlib", so it can be a program name with args.
9250 set dummy ranlib; ac_word=$2
9251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9252 $as_echo_n "checking for $ac_word... " >&6; }
9253 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
9254 $as_echo_n "(cached) " >&6
9256 if test -n "$ac_ct_RANLIB"; then
9257 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9263 test -z "$as_dir" && as_dir=.
9264 for ac_exec_ext in '' $ac_executable_extensions; do
9265 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9266 ac_cv_prog_ac_ct_RANLIB="ranlib"
9267 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9276 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
9277 if test -n "$ac_ct_RANLIB"; then
9278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
9279 $as_echo "$ac_ct_RANLIB" >&6; }
9281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9282 $as_echo "no" >&6; }
9285 if test "x$ac_ct_RANLIB" = x; then
9288 case $cross_compiling:$ac_tool_warned in
9290 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9291 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9292 ac_tool_warned=yes ;;
9294 RANLIB=$ac_ct_RANLIB
9297 RANLIB="$ac_cv_prog_RANLIB"
9300 if test -n "$ac_tool_prefix"; then
9301 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
9302 set dummy ${ac_tool_prefix}ar; ac_word=$2
9303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9304 $as_echo_n "checking for $ac_word... " >&6; }
9305 if ${ac_cv_prog_AR+:} false; then :
9306 $as_echo_n "(cached) " >&6
9308 if test -n "$AR"; then
9309 ac_cv_prog_AR="$AR" # Let the user override the test.
9311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9315 test -z "$as_dir" && as_dir=.
9316 for ac_exec_ext in '' $ac_executable_extensions; do
9317 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9318 ac_cv_prog_AR="${ac_tool_prefix}ar"
9319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9329 if test -n "$AR"; then
9330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
9331 $as_echo "$AR" >&6; }
9333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9334 $as_echo "no" >&6; }
9339 if test -z "$ac_cv_prog_AR"; then
9341 # Extract the first word of "ar", so it can be a program name with args.
9342 set dummy ar; ac_word=$2
9343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9344 $as_echo_n "checking for $ac_word... " >&6; }
9345 if ${ac_cv_prog_ac_ct_AR+:} false; then :
9346 $as_echo_n "(cached) " >&6
9348 if test -n "$ac_ct_AR"; then
9349 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
9351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9355 test -z "$as_dir" && as_dir=.
9356 for ac_exec_ext in '' $ac_executable_extensions; do
9357 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9358 ac_cv_prog_ac_ct_AR="ar"
9359 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9368 ac_ct_AR=$ac_cv_prog_ac_ct_AR
9369 if test -n "$ac_ct_AR"; then
9370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
9371 $as_echo "$ac_ct_AR" >&6; }
9373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9374 $as_echo "no" >&6; }
9377 if test "x$ac_ct_AR" = x; then
9380 case $cross_compiling:$ac_tool_warned in
9382 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9383 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9384 ac_tool_warned=yes ;;
9393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
9394 $as_echo_n "checking whether ln -s works... " >&6; }
9396 if test "$LN_S" = "ln -s"; then
9397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9398 $as_echo "yes" >&6; }
9400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
9401 $as_echo "no, using $LN_S" >&6; }
9407 if test "${LBL_CFLAGS+set}" = set; then
9408 V_CCOPT="$V_CCOPT ${LBL_CFLAGS}"
9410 if test -f .devel ; then
9412 # Skip all the warning option stuff on some compilers.
9414 if test "$ac_lbl_cc_dont_try_gcc_dashW" != yes; then
9416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -W option" >&5
9417 $as_echo_n "checking whether the compiler supports the -W option... " >&6; }
9418 save_CFLAGS="$CFLAGS"
9421 # XXX - yes, this depends on the way AC_LANG_WERROR works,
9422 # but no mechanism is provided to turn AC_LANG_WERROR on
9423 # *and then turn it back off*, so that we *only* do it when
9424 # testing compiler options - 15 years after somebody asked
9427 # https://autoconf.gnu.narkive.com/gTAVmfKD/how-to-cancel-flags-set-by-ac-lang-werror
9429 save_ac_c_werror_flag="$ac_c_werror_flag"
9430 ac_c_werror_flag=yes
9432 # We use AC_LANG_SOURCE() so that we can control the complete
9433 # content of the program being compiled. We do not, for example,
9434 # want the default "int main()" that AC_LANG_PROGRAM() generates,
9435 # as it will generate a warning with -Wold-style-definition, meaning
9436 # that we would treat it as not working, as the test will fail if
9437 # *any* error output, including a warning due to the flag we're
9438 # testing, is generated; see
9440 # https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us
9441 # https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us
9443 # This may, as per those two messages, be fixed in autoonf 2.70,
9444 # but we only require 2.64 or newer for now.
9446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9447 /* end confdefs.h. */
9448 int main(void) { return 0; }
9450 if ac_fn_c_try_compile "$LINENO"; then :
9452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9453 $as_echo "yes" >&6; }
9454 can_add_to_cflags=yes
9456 # The compile supports this; do we have some C code for
9457 # which the warning should *not* appear?
9458 # We test the fourth argument because the third argument
9459 # could contain quotes, breaking the test.
9463 CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors"
9464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -W " >&5
9465 $as_echo_n "checking whether -W ... " >&6; }
9466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9467 /* end confdefs.h. */
9470 if ac_fn_c_try_compile "$LINENO"; then :
9475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9476 $as_echo "no" >&6; }
9483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9484 $as_echo "yes" >&6; }
9485 can_add_to_cflags=no
9488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9490 CFLAGS="$save_CFLAGS"
9491 if test x"$can_add_to_cflags" = "xyes"
9493 V_CCOPT="$V_CCOPT -W"
9498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9499 $as_echo "no" >&6; }
9500 CFLAGS="$save_CFLAGS"
9503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9504 ac_c_werror_flag="$save_ac_c_werror_flag"
9507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wall option" >&5
9508 $as_echo_n "checking whether the compiler supports the -Wall option... " >&6; }
9509 save_CFLAGS="$CFLAGS"
9510 CFLAGS="$CFLAGS -Wall"
9512 # XXX - yes, this depends on the way AC_LANG_WERROR works,
9513 # but no mechanism is provided to turn AC_LANG_WERROR on
9514 # *and then turn it back off*, so that we *only* do it when
9515 # testing compiler options - 15 years after somebody asked
9518 # https://autoconf.gnu.narkive.com/gTAVmfKD/how-to-cancel-flags-set-by-ac-lang-werror
9520 save_ac_c_werror_flag="$ac_c_werror_flag"
9521 ac_c_werror_flag=yes
9523 # We use AC_LANG_SOURCE() so that we can control the complete
9524 # content of the program being compiled. We do not, for example,
9525 # want the default "int main()" that AC_LANG_PROGRAM() generates,
9526 # as it will generate a warning with -Wold-style-definition, meaning
9527 # that we would treat it as not working, as the test will fail if
9528 # *any* error output, including a warning due to the flag we're
9529 # testing, is generated; see
9531 # https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us
9532 # https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us
9534 # This may, as per those two messages, be fixed in autoonf 2.70,
9535 # but we only require 2.64 or newer for now.
9537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9538 /* end confdefs.h. */
9539 int main(void) { return 0; }
9541 if ac_fn_c_try_compile "$LINENO"; then :
9543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9544 $as_echo "yes" >&6; }
9545 can_add_to_cflags=yes
9547 # The compile supports this; do we have some C code for
9548 # which the warning should *not* appear?
9549 # We test the fourth argument because the third argument
9550 # could contain quotes, breaking the test.
9554 CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors"
9555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wall " >&5
9556 $as_echo_n "checking whether -Wall ... " >&6; }
9557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9558 /* end confdefs.h. */
9561 if ac_fn_c_try_compile "$LINENO"; then :
9566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9567 $as_echo "no" >&6; }
9574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9575 $as_echo "yes" >&6; }
9576 can_add_to_cflags=no
9579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9581 CFLAGS="$save_CFLAGS"
9582 if test x"$can_add_to_cflags" = "xyes"
9584 V_CCOPT="$V_CCOPT -Wall"
9589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9590 $as_echo "no" >&6; }
9591 CFLAGS="$save_CFLAGS"
9594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9595 ac_c_werror_flag="$save_ac_c_werror_flag"
9598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wcomma option" >&5
9599 $as_echo_n "checking whether the compiler supports the -Wcomma option... " >&6; }
9600 save_CFLAGS="$CFLAGS"
9601 CFLAGS="$CFLAGS -Wcomma"
9603 # XXX - yes, this depends on the way AC_LANG_WERROR works,
9604 # but no mechanism is provided to turn AC_LANG_WERROR on
9605 # *and then turn it back off*, so that we *only* do it when
9606 # testing compiler options - 15 years after somebody asked
9609 # https://autoconf.gnu.narkive.com/gTAVmfKD/how-to-cancel-flags-set-by-ac-lang-werror
9611 save_ac_c_werror_flag="$ac_c_werror_flag"
9612 ac_c_werror_flag=yes
9614 # We use AC_LANG_SOURCE() so that we can control the complete
9615 # content of the program being compiled. We do not, for example,
9616 # want the default "int main()" that AC_LANG_PROGRAM() generates,
9617 # as it will generate a warning with -Wold-style-definition, meaning
9618 # that we would treat it as not working, as the test will fail if
9619 # *any* error output, including a warning due to the flag we're
9620 # testing, is generated; see
9622 # https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us
9623 # https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us
9625 # This may, as per those two messages, be fixed in autoonf 2.70,
9626 # but we only require 2.64 or newer for now.
9628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9629 /* end confdefs.h. */
9630 int main(void) { return 0; }
9632 if ac_fn_c_try_compile "$LINENO"; then :
9634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9635 $as_echo "yes" >&6; }
9636 can_add_to_cflags=yes
9638 # The compile supports this; do we have some C code for
9639 # which the warning should *not* appear?
9640 # We test the fourth argument because the third argument
9641 # could contain quotes, breaking the test.
9645 CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors"
9646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wcomma " >&5
9647 $as_echo_n "checking whether -Wcomma ... " >&6; }
9648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9649 /* end confdefs.h. */
9652 if ac_fn_c_try_compile "$LINENO"; then :
9657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9658 $as_echo "no" >&6; }
9665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9666 $as_echo "yes" >&6; }
9667 can_add_to_cflags=no
9670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9672 CFLAGS="$save_CFLAGS"
9673 if test x"$can_add_to_cflags" = "xyes"
9675 V_CCOPT="$V_CCOPT -Wcomma"
9680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9681 $as_echo "no" >&6; }
9682 CFLAGS="$save_CFLAGS"
9685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9686 ac_c_werror_flag="$save_ac_c_werror_flag"
9689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wdocumentation option" >&5
9690 $as_echo_n "checking whether the compiler supports the -Wdocumentation option... " >&6; }
9691 save_CFLAGS="$CFLAGS"
9692 CFLAGS="$CFLAGS -Wdocumentation"
9694 # XXX - yes, this depends on the way AC_LANG_WERROR works,
9695 # but no mechanism is provided to turn AC_LANG_WERROR on
9696 # *and then turn it back off*, so that we *only* do it when
9697 # testing compiler options - 15 years after somebody asked
9700 # https://autoconf.gnu.narkive.com/gTAVmfKD/how-to-cancel-flags-set-by-ac-lang-werror
9702 save_ac_c_werror_flag="$ac_c_werror_flag"
9703 ac_c_werror_flag=yes
9705 # We use AC_LANG_SOURCE() so that we can control the complete
9706 # content of the program being compiled. We do not, for example,
9707 # want the default "int main()" that AC_LANG_PROGRAM() generates,
9708 # as it will generate a warning with -Wold-style-definition, meaning
9709 # that we would treat it as not working, as the test will fail if
9710 # *any* error output, including a warning due to the flag we're
9711 # testing, is generated; see
9713 # https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us
9714 # https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us
9716 # This may, as per those two messages, be fixed in autoonf 2.70,
9717 # but we only require 2.64 or newer for now.
9719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9720 /* end confdefs.h. */
9721 int main(void) { return 0; }
9723 if ac_fn_c_try_compile "$LINENO"; then :
9725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9726 $as_echo "yes" >&6; }
9727 can_add_to_cflags=yes
9729 # The compile supports this; do we have some C code for
9730 # which the warning should *not* appear?
9731 # We test the fourth argument because the third argument
9732 # could contain quotes, breaking the test.
9736 CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors"
9737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wdocumentation " >&5
9738 $as_echo_n "checking whether -Wdocumentation ... " >&6; }
9739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9740 /* end confdefs.h. */
9743 if ac_fn_c_try_compile "$LINENO"; then :
9748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9749 $as_echo "no" >&6; }
9756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9757 $as_echo "yes" >&6; }
9758 can_add_to_cflags=no
9761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9763 CFLAGS="$save_CFLAGS"
9764 if test x"$can_add_to_cflags" = "xyes"
9766 V_CCOPT="$V_CCOPT -Wdocumentation"
9771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9772 $as_echo "no" >&6; }
9773 CFLAGS="$save_CFLAGS"
9776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9777 ac_c_werror_flag="$save_ac_c_werror_flag"
9780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wformat-nonliteral option" >&5
9781 $as_echo_n "checking whether the compiler supports the -Wformat-nonliteral option... " >&6; }
9782 save_CFLAGS="$CFLAGS"
9783 CFLAGS="$CFLAGS -Wformat-nonliteral"
9785 # XXX - yes, this depends on the way AC_LANG_WERROR works,
9786 # but no mechanism is provided to turn AC_LANG_WERROR on
9787 # *and then turn it back off*, so that we *only* do it when
9788 # testing compiler options - 15 years after somebody asked
9791 # https://autoconf.gnu.narkive.com/gTAVmfKD/how-to-cancel-flags-set-by-ac-lang-werror
9793 save_ac_c_werror_flag="$ac_c_werror_flag"
9794 ac_c_werror_flag=yes
9796 # We use AC_LANG_SOURCE() so that we can control the complete
9797 # content of the program being compiled. We do not, for example,
9798 # want the default "int main()" that AC_LANG_PROGRAM() generates,
9799 # as it will generate a warning with -Wold-style-definition, meaning
9800 # that we would treat it as not working, as the test will fail if
9801 # *any* error output, including a warning due to the flag we're
9802 # testing, is generated; see
9804 # https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us
9805 # https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us
9807 # This may, as per those two messages, be fixed in autoonf 2.70,
9808 # but we only require 2.64 or newer for now.
9810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9811 /* end confdefs.h. */
9812 int main(void) { return 0; }
9814 if ac_fn_c_try_compile "$LINENO"; then :
9816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9817 $as_echo "yes" >&6; }
9818 can_add_to_cflags=yes
9820 # The compile supports this; do we have some C code for
9821 # which the warning should *not* appear?
9822 # We test the fourth argument because the third argument
9823 # could contain quotes, breaking the test.
9827 CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors"
9828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wformat-nonliteral " >&5
9829 $as_echo_n "checking whether -Wformat-nonliteral ... " >&6; }
9830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9831 /* end confdefs.h. */
9834 if ac_fn_c_try_compile "$LINENO"; then :
9839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9840 $as_echo "no" >&6; }
9847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9848 $as_echo "yes" >&6; }
9849 can_add_to_cflags=no
9852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9854 CFLAGS="$save_CFLAGS"
9855 if test x"$can_add_to_cflags" = "xyes"
9857 V_CCOPT="$V_CCOPT -Wformat-nonliteral"
9862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9863 $as_echo "no" >&6; }
9864 CFLAGS="$save_CFLAGS"
9867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9868 ac_c_werror_flag="$save_ac_c_werror_flag"
9871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wmissing-noreturn option" >&5
9872 $as_echo_n "checking whether the compiler supports the -Wmissing-noreturn option... " >&6; }
9873 save_CFLAGS="$CFLAGS"
9874 CFLAGS="$CFLAGS -Wmissing-noreturn"
9876 # XXX - yes, this depends on the way AC_LANG_WERROR works,
9877 # but no mechanism is provided to turn AC_LANG_WERROR on
9878 # *and then turn it back off*, so that we *only* do it when
9879 # testing compiler options - 15 years after somebody asked
9882 # https://autoconf.gnu.narkive.com/gTAVmfKD/how-to-cancel-flags-set-by-ac-lang-werror
9884 save_ac_c_werror_flag="$ac_c_werror_flag"
9885 ac_c_werror_flag=yes
9887 # We use AC_LANG_SOURCE() so that we can control the complete
9888 # content of the program being compiled. We do not, for example,
9889 # want the default "int main()" that AC_LANG_PROGRAM() generates,
9890 # as it will generate a warning with -Wold-style-definition, meaning
9891 # that we would treat it as not working, as the test will fail if
9892 # *any* error output, including a warning due to the flag we're
9893 # testing, is generated; see
9895 # https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us
9896 # https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us
9898 # This may, as per those two messages, be fixed in autoonf 2.70,
9899 # but we only require 2.64 or newer for now.
9901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9902 /* end confdefs.h. */
9903 int main(void) { return 0; }
9905 if ac_fn_c_try_compile "$LINENO"; then :
9907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9908 $as_echo "yes" >&6; }
9909 can_add_to_cflags=yes
9911 # The compile supports this; do we have some C code for
9912 # which the warning should *not* appear?
9913 # We test the fourth argument because the third argument
9914 # could contain quotes, breaking the test.
9918 CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors"
9919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wmissing-noreturn " >&5
9920 $as_echo_n "checking whether -Wmissing-noreturn ... " >&6; }
9921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9922 /* end confdefs.h. */
9925 if ac_fn_c_try_compile "$LINENO"; then :
9930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9931 $as_echo "no" >&6; }
9938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9939 $as_echo "yes" >&6; }
9940 can_add_to_cflags=no
9943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9945 CFLAGS="$save_CFLAGS"
9946 if test x"$can_add_to_cflags" = "xyes"
9948 V_CCOPT="$V_CCOPT -Wmissing-noreturn"
9953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9954 $as_echo "no" >&6; }
9955 CFLAGS="$save_CFLAGS"
9958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9959 ac_c_werror_flag="$save_ac_c_werror_flag"
9962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wmissing-prototypes option" >&5
9963 $as_echo_n "checking whether the compiler supports the -Wmissing-prototypes option... " >&6; }
9964 save_CFLAGS="$CFLAGS"
9965 CFLAGS="$CFLAGS -Wmissing-prototypes"
9967 # XXX - yes, this depends on the way AC_LANG_WERROR works,
9968 # but no mechanism is provided to turn AC_LANG_WERROR on
9969 # *and then turn it back off*, so that we *only* do it when
9970 # testing compiler options - 15 years after somebody asked
9973 # https://autoconf.gnu.narkive.com/gTAVmfKD/how-to-cancel-flags-set-by-ac-lang-werror
9975 save_ac_c_werror_flag="$ac_c_werror_flag"
9976 ac_c_werror_flag=yes
9978 # We use AC_LANG_SOURCE() so that we can control the complete
9979 # content of the program being compiled. We do not, for example,
9980 # want the default "int main()" that AC_LANG_PROGRAM() generates,
9981 # as it will generate a warning with -Wold-style-definition, meaning
9982 # that we would treat it as not working, as the test will fail if
9983 # *any* error output, including a warning due to the flag we're
9984 # testing, is generated; see
9986 # https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us
9987 # https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us
9989 # This may, as per those two messages, be fixed in autoonf 2.70,
9990 # but we only require 2.64 or newer for now.
9992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9993 /* end confdefs.h. */
9994 int main(void) { return 0; }
9996 if ac_fn_c_try_compile "$LINENO"; then :
9998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9999 $as_echo "yes" >&6; }
10000 can_add_to_cflags=yes
10002 # The compile supports this; do we have some C code for
10003 # which the warning should *not* appear?
10004 # We test the fourth argument because the third argument
10005 # could contain quotes, breaking the test.
10009 CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors"
10010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wmissing-prototypes " >&5
10011 $as_echo_n "checking whether -Wmissing-prototypes ... " >&6; }
10012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10013 /* end confdefs.h. */
10016 if ac_fn_c_try_compile "$LINENO"; then :
10021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10022 $as_echo "no" >&6; }
10029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10030 $as_echo "yes" >&6; }
10031 can_add_to_cflags=no
10034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10036 CFLAGS="$save_CFLAGS"
10037 if test x"$can_add_to_cflags" = "xyes"
10039 V_CCOPT="$V_CCOPT -Wmissing-prototypes"
10044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10045 $as_echo "no" >&6; }
10046 CFLAGS="$save_CFLAGS"
10049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10050 ac_c_werror_flag="$save_ac_c_werror_flag"
10053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wmissing-variable-declarations option" >&5
10054 $as_echo_n "checking whether the compiler supports the -Wmissing-variable-declarations option... " >&6; }
10055 save_CFLAGS="$CFLAGS"
10056 CFLAGS="$CFLAGS -Wmissing-variable-declarations"
10058 # XXX - yes, this depends on the way AC_LANG_WERROR works,
10059 # but no mechanism is provided to turn AC_LANG_WERROR on
10060 # *and then turn it back off*, so that we *only* do it when
10061 # testing compiler options - 15 years after somebody asked
10064 # https://autoconf.gnu.narkive.com/gTAVmfKD/how-to-cancel-flags-set-by-ac-lang-werror
10066 save_ac_c_werror_flag="$ac_c_werror_flag"
10067 ac_c_werror_flag=yes
10069 # We use AC_LANG_SOURCE() so that we can control the complete
10070 # content of the program being compiled. We do not, for example,
10071 # want the default "int main()" that AC_LANG_PROGRAM() generates,
10072 # as it will generate a warning with -Wold-style-definition, meaning
10073 # that we would treat it as not working, as the test will fail if
10074 # *any* error output, including a warning due to the flag we're
10075 # testing, is generated; see
10077 # https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us
10078 # https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us
10080 # This may, as per those two messages, be fixed in autoonf 2.70,
10081 # but we only require 2.64 or newer for now.
10083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10084 /* end confdefs.h. */
10085 int main(void) { return 0; }
10087 if ac_fn_c_try_compile "$LINENO"; then :
10089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10090 $as_echo "yes" >&6; }
10091 can_add_to_cflags=yes
10093 # The compile supports this; do we have some C code for
10094 # which the warning should *not* appear?
10095 # We test the fourth argument because the third argument
10096 # could contain quotes, breaking the test.
10100 CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors"
10101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wmissing-variable-declarations " >&5
10102 $as_echo_n "checking whether -Wmissing-variable-declarations ... " >&6; }
10103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10104 /* end confdefs.h. */
10107 if ac_fn_c_try_compile "$LINENO"; then :
10112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10113 $as_echo "no" >&6; }
10120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10121 $as_echo "yes" >&6; }
10122 can_add_to_cflags=no
10125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10127 CFLAGS="$save_CFLAGS"
10128 if test x"$can_add_to_cflags" = "xyes"
10130 V_CCOPT="$V_CCOPT -Wmissing-variable-declarations"
10135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10136 $as_echo "no" >&6; }
10137 CFLAGS="$save_CFLAGS"
10140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10141 ac_c_werror_flag="$save_ac_c_werror_flag"
10144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wpointer-arith option" >&5
10145 $as_echo_n "checking whether the compiler supports the -Wpointer-arith option... " >&6; }
10146 save_CFLAGS="$CFLAGS"
10147 CFLAGS="$CFLAGS -Wpointer-arith"
10149 # XXX - yes, this depends on the way AC_LANG_WERROR works,
10150 # but no mechanism is provided to turn AC_LANG_WERROR on
10151 # *and then turn it back off*, so that we *only* do it when
10152 # testing compiler options - 15 years after somebody asked
10155 # https://autoconf.gnu.narkive.com/gTAVmfKD/how-to-cancel-flags-set-by-ac-lang-werror
10157 save_ac_c_werror_flag="$ac_c_werror_flag"
10158 ac_c_werror_flag=yes
10160 # We use AC_LANG_SOURCE() so that we can control the complete
10161 # content of the program being compiled. We do not, for example,
10162 # want the default "int main()" that AC_LANG_PROGRAM() generates,
10163 # as it will generate a warning with -Wold-style-definition, meaning
10164 # that we would treat it as not working, as the test will fail if
10165 # *any* error output, including a warning due to the flag we're
10166 # testing, is generated; see
10168 # https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us
10169 # https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us
10171 # This may, as per those two messages, be fixed in autoonf 2.70,
10172 # but we only require 2.64 or newer for now.
10174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10175 /* end confdefs.h. */
10176 int main(void) { return 0; }
10178 if ac_fn_c_try_compile "$LINENO"; then :
10180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10181 $as_echo "yes" >&6; }
10182 can_add_to_cflags=yes
10184 # The compile supports this; do we have some C code for
10185 # which the warning should *not* appear?
10186 # We test the fourth argument because the third argument
10187 # could contain quotes, breaking the test.
10191 CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors"
10192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wpointer-arith " >&5
10193 $as_echo_n "checking whether -Wpointer-arith ... " >&6; }
10194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10195 /* end confdefs.h. */
10198 if ac_fn_c_try_compile "$LINENO"; then :
10203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10204 $as_echo "no" >&6; }
10211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10212 $as_echo "yes" >&6; }
10213 can_add_to_cflags=no
10216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10218 CFLAGS="$save_CFLAGS"
10219 if test x"$can_add_to_cflags" = "xyes"
10221 V_CCOPT="$V_CCOPT -Wpointer-arith"
10226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10227 $as_echo "no" >&6; }
10228 CFLAGS="$save_CFLAGS"
10231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10232 ac_c_werror_flag="$save_ac_c_werror_flag"
10235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wpointer-sign option" >&5
10236 $as_echo_n "checking whether the compiler supports the -Wpointer-sign option... " >&6; }
10237 save_CFLAGS="$CFLAGS"
10238 CFLAGS="$CFLAGS -Wpointer-sign"
10240 # XXX - yes, this depends on the way AC_LANG_WERROR works,
10241 # but no mechanism is provided to turn AC_LANG_WERROR on
10242 # *and then turn it back off*, so that we *only* do it when
10243 # testing compiler options - 15 years after somebody asked
10246 # https://autoconf.gnu.narkive.com/gTAVmfKD/how-to-cancel-flags-set-by-ac-lang-werror
10248 save_ac_c_werror_flag="$ac_c_werror_flag"
10249 ac_c_werror_flag=yes
10251 # We use AC_LANG_SOURCE() so that we can control the complete
10252 # content of the program being compiled. We do not, for example,
10253 # want the default "int main()" that AC_LANG_PROGRAM() generates,
10254 # as it will generate a warning with -Wold-style-definition, meaning
10255 # that we would treat it as not working, as the test will fail if
10256 # *any* error output, including a warning due to the flag we're
10257 # testing, is generated; see
10259 # https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us
10260 # https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us
10262 # This may, as per those two messages, be fixed in autoonf 2.70,
10263 # but we only require 2.64 or newer for now.
10265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10266 /* end confdefs.h. */
10267 int main(void) { return 0; }
10269 if ac_fn_c_try_compile "$LINENO"; then :
10271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10272 $as_echo "yes" >&6; }
10273 can_add_to_cflags=yes
10275 # The compile supports this; do we have some C code for
10276 # which the warning should *not* appear?
10277 # We test the fourth argument because the third argument
10278 # could contain quotes, breaking the test.
10282 CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors"
10283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wpointer-sign " >&5
10284 $as_echo_n "checking whether -Wpointer-sign ... " >&6; }
10285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10286 /* end confdefs.h. */
10289 if ac_fn_c_try_compile "$LINENO"; then :
10294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10295 $as_echo "no" >&6; }
10302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10303 $as_echo "yes" >&6; }
10304 can_add_to_cflags=no
10307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10309 CFLAGS="$save_CFLAGS"
10310 if test x"$can_add_to_cflags" = "xyes"
10312 V_CCOPT="$V_CCOPT -Wpointer-sign"
10317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10318 $as_echo "no" >&6; }
10319 CFLAGS="$save_CFLAGS"
10322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10323 ac_c_werror_flag="$save_ac_c_werror_flag"
10326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wshadow option" >&5
10327 $as_echo_n "checking whether the compiler supports the -Wshadow option... " >&6; }
10328 save_CFLAGS="$CFLAGS"
10329 CFLAGS="$CFLAGS -Wshadow"
10331 # XXX - yes, this depends on the way AC_LANG_WERROR works,
10332 # but no mechanism is provided to turn AC_LANG_WERROR on
10333 # *and then turn it back off*, so that we *only* do it when
10334 # testing compiler options - 15 years after somebody asked
10337 # https://autoconf.gnu.narkive.com/gTAVmfKD/how-to-cancel-flags-set-by-ac-lang-werror
10339 save_ac_c_werror_flag="$ac_c_werror_flag"
10340 ac_c_werror_flag=yes
10342 # We use AC_LANG_SOURCE() so that we can control the complete
10343 # content of the program being compiled. We do not, for example,
10344 # want the default "int main()" that AC_LANG_PROGRAM() generates,
10345 # as it will generate a warning with -Wold-style-definition, meaning
10346 # that we would treat it as not working, as the test will fail if
10347 # *any* error output, including a warning due to the flag we're
10348 # testing, is generated; see
10350 # https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us
10351 # https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us
10353 # This may, as per those two messages, be fixed in autoonf 2.70,
10354 # but we only require 2.64 or newer for now.
10356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10357 /* end confdefs.h. */
10358 int main(void) { return 0; }
10360 if ac_fn_c_try_compile "$LINENO"; then :
10362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10363 $as_echo "yes" >&6; }
10364 can_add_to_cflags=yes
10366 # The compile supports this; do we have some C code for
10367 # which the warning should *not* appear?
10368 # We test the fourth argument because the third argument
10369 # could contain quotes, breaking the test.
10373 CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors"
10374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wshadow " >&5
10375 $as_echo_n "checking whether -Wshadow ... " >&6; }
10376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10377 /* end confdefs.h. */
10380 if ac_fn_c_try_compile "$LINENO"; then :
10385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10386 $as_echo "no" >&6; }
10393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10394 $as_echo "yes" >&6; }
10395 can_add_to_cflags=no
10398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10400 CFLAGS="$save_CFLAGS"
10401 if test x"$can_add_to_cflags" = "xyes"
10403 V_CCOPT="$V_CCOPT -Wshadow"
10408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10409 $as_echo "no" >&6; }
10410 CFLAGS="$save_CFLAGS"
10413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10414 ac_c_werror_flag="$save_ac_c_werror_flag"
10417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wsign-compare option" >&5
10418 $as_echo_n "checking whether the compiler supports the -Wsign-compare option... " >&6; }
10419 save_CFLAGS="$CFLAGS"
10420 CFLAGS="$CFLAGS -Wsign-compare"
10422 # XXX - yes, this depends on the way AC_LANG_WERROR works,
10423 # but no mechanism is provided to turn AC_LANG_WERROR on
10424 # *and then turn it back off*, so that we *only* do it when
10425 # testing compiler options - 15 years after somebody asked
10428 # https://autoconf.gnu.narkive.com/gTAVmfKD/how-to-cancel-flags-set-by-ac-lang-werror
10430 save_ac_c_werror_flag="$ac_c_werror_flag"
10431 ac_c_werror_flag=yes
10433 # We use AC_LANG_SOURCE() so that we can control the complete
10434 # content of the program being compiled. We do not, for example,
10435 # want the default "int main()" that AC_LANG_PROGRAM() generates,
10436 # as it will generate a warning with -Wold-style-definition, meaning
10437 # that we would treat it as not working, as the test will fail if
10438 # *any* error output, including a warning due to the flag we're
10439 # testing, is generated; see
10441 # https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us
10442 # https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us
10444 # This may, as per those two messages, be fixed in autoonf 2.70,
10445 # but we only require 2.64 or newer for now.
10447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10448 /* end confdefs.h. */
10449 int main(void) { return 0; }
10451 if ac_fn_c_try_compile "$LINENO"; then :
10453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10454 $as_echo "yes" >&6; }
10455 can_add_to_cflags=yes
10457 # The compile supports this; do we have some C code for
10458 # which the warning should *not* appear?
10459 # We test the fourth argument because the third argument
10460 # could contain quotes, breaking the test.
10464 CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors"
10465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wsign-compare " >&5
10466 $as_echo_n "checking whether -Wsign-compare ... " >&6; }
10467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10468 /* end confdefs.h. */
10471 if ac_fn_c_try_compile "$LINENO"; then :
10476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10477 $as_echo "no" >&6; }
10484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10485 $as_echo "yes" >&6; }
10486 can_add_to_cflags=no
10489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10491 CFLAGS="$save_CFLAGS"
10492 if test x"$can_add_to_cflags" = "xyes"
10494 V_CCOPT="$V_CCOPT -Wsign-compare"
10499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10500 $as_echo "no" >&6; }
10501 CFLAGS="$save_CFLAGS"
10504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10505 ac_c_werror_flag="$save_ac_c_werror_flag"
10508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wstrict-prototypes option" >&5
10509 $as_echo_n "checking whether the compiler supports the -Wstrict-prototypes option... " >&6; }
10510 save_CFLAGS="$CFLAGS"
10511 CFLAGS="$CFLAGS -Wstrict-prototypes"
10513 # XXX - yes, this depends on the way AC_LANG_WERROR works,
10514 # but no mechanism is provided to turn AC_LANG_WERROR on
10515 # *and then turn it back off*, so that we *only* do it when
10516 # testing compiler options - 15 years after somebody asked
10519 # https://autoconf.gnu.narkive.com/gTAVmfKD/how-to-cancel-flags-set-by-ac-lang-werror
10521 save_ac_c_werror_flag="$ac_c_werror_flag"
10522 ac_c_werror_flag=yes
10524 # We use AC_LANG_SOURCE() so that we can control the complete
10525 # content of the program being compiled. We do not, for example,
10526 # want the default "int main()" that AC_LANG_PROGRAM() generates,
10527 # as it will generate a warning with -Wold-style-definition, meaning
10528 # that we would treat it as not working, as the test will fail if
10529 # *any* error output, including a warning due to the flag we're
10530 # testing, is generated; see
10532 # https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us
10533 # https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us
10535 # This may, as per those two messages, be fixed in autoonf 2.70,
10536 # but we only require 2.64 or newer for now.
10538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10539 /* end confdefs.h. */
10540 int main(void) { return 0; }
10542 if ac_fn_c_try_compile "$LINENO"; then :
10544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10545 $as_echo "yes" >&6; }
10546 can_add_to_cflags=yes
10548 # The compile supports this; do we have some C code for
10549 # which the warning should *not* appear?
10550 # We test the fourth argument because the third argument
10551 # could contain quotes, breaking the test.
10555 CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors"
10556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wstrict-prototypes " >&5
10557 $as_echo_n "checking whether -Wstrict-prototypes ... " >&6; }
10558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10559 /* end confdefs.h. */
10562 if ac_fn_c_try_compile "$LINENO"; then :
10567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10568 $as_echo "no" >&6; }
10575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10576 $as_echo "yes" >&6; }
10577 can_add_to_cflags=no
10580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10582 CFLAGS="$save_CFLAGS"
10583 if test x"$can_add_to_cflags" = "xyes"
10585 V_CCOPT="$V_CCOPT -Wstrict-prototypes"
10590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10591 $as_echo "no" >&6; }
10592 CFLAGS="$save_CFLAGS"
10595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10596 ac_c_werror_flag="$save_ac_c_werror_flag"
10599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wunused-parameter option" >&5
10600 $as_echo_n "checking whether the compiler supports the -Wunused-parameter option... " >&6; }
10601 save_CFLAGS="$CFLAGS"
10602 CFLAGS="$CFLAGS -Wunused-parameter"
10604 # XXX - yes, this depends on the way AC_LANG_WERROR works,
10605 # but no mechanism is provided to turn AC_LANG_WERROR on
10606 # *and then turn it back off*, so that we *only* do it when
10607 # testing compiler options - 15 years after somebody asked
10610 # https://autoconf.gnu.narkive.com/gTAVmfKD/how-to-cancel-flags-set-by-ac-lang-werror
10612 save_ac_c_werror_flag="$ac_c_werror_flag"
10613 ac_c_werror_flag=yes
10615 # We use AC_LANG_SOURCE() so that we can control the complete
10616 # content of the program being compiled. We do not, for example,
10617 # want the default "int main()" that AC_LANG_PROGRAM() generates,
10618 # as it will generate a warning with -Wold-style-definition, meaning
10619 # that we would treat it as not working, as the test will fail if
10620 # *any* error output, including a warning due to the flag we're
10621 # testing, is generated; see
10623 # https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us
10624 # https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us
10626 # This may, as per those two messages, be fixed in autoonf 2.70,
10627 # but we only require 2.64 or newer for now.
10629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10630 /* end confdefs.h. */
10631 int main(void) { return 0; }
10633 if ac_fn_c_try_compile "$LINENO"; then :
10635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10636 $as_echo "yes" >&6; }
10637 can_add_to_cflags=yes
10639 # The compile supports this; do we have some C code for
10640 # which the warning should *not* appear?
10641 # We test the fourth argument because the third argument
10642 # could contain quotes, breaking the test.
10646 CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors"
10647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wunused-parameter " >&5
10648 $as_echo_n "checking whether -Wunused-parameter ... " >&6; }
10649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10650 /* end confdefs.h. */
10653 if ac_fn_c_try_compile "$LINENO"; then :
10658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10659 $as_echo "no" >&6; }
10666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10667 $as_echo "yes" >&6; }
10668 can_add_to_cflags=no
10671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10673 CFLAGS="$save_CFLAGS"
10674 if test x"$can_add_to_cflags" = "xyes"
10676 V_CCOPT="$V_CCOPT -Wunused-parameter"
10681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10682 $as_echo "no" >&6; }
10683 CFLAGS="$save_CFLAGS"
10686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10687 ac_c_werror_flag="$save_ac_c_werror_flag"
10690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wused-but-marked-unused option" >&5
10691 $as_echo_n "checking whether the compiler supports the -Wused-but-marked-unused option... " >&6; }
10692 save_CFLAGS="$CFLAGS"
10693 CFLAGS="$CFLAGS -Wused-but-marked-unused"
10695 # XXX - yes, this depends on the way AC_LANG_WERROR works,
10696 # but no mechanism is provided to turn AC_LANG_WERROR on
10697 # *and then turn it back off*, so that we *only* do it when
10698 # testing compiler options - 15 years after somebody asked
10701 # https://autoconf.gnu.narkive.com/gTAVmfKD/how-to-cancel-flags-set-by-ac-lang-werror
10703 save_ac_c_werror_flag="$ac_c_werror_flag"
10704 ac_c_werror_flag=yes
10706 # We use AC_LANG_SOURCE() so that we can control the complete
10707 # content of the program being compiled. We do not, for example,
10708 # want the default "int main()" that AC_LANG_PROGRAM() generates,
10709 # as it will generate a warning with -Wold-style-definition, meaning
10710 # that we would treat it as not working, as the test will fail if
10711 # *any* error output, including a warning due to the flag we're
10712 # testing, is generated; see
10714 # https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us
10715 # https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us
10717 # This may, as per those two messages, be fixed in autoonf 2.70,
10718 # but we only require 2.64 or newer for now.
10720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10721 /* end confdefs.h. */
10722 int main(void) { return 0; }
10724 if ac_fn_c_try_compile "$LINENO"; then :
10726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10727 $as_echo "yes" >&6; }
10728 can_add_to_cflags=yes
10730 # The compile supports this; do we have some C code for
10731 # which the warning should *not* appear?
10732 # We test the fourth argument because the third argument
10733 # could contain quotes, breaking the test.
10737 CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors"
10738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wused-but-marked-unused " >&5
10739 $as_echo_n "checking whether -Wused-but-marked-unused ... " >&6; }
10740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10741 /* end confdefs.h. */
10744 if ac_fn_c_try_compile "$LINENO"; then :
10749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10750 $as_echo "no" >&6; }
10757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10758 $as_echo "yes" >&6; }
10759 can_add_to_cflags=no
10762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10764 CFLAGS="$save_CFLAGS"
10765 if test x"$can_add_to_cflags" = "xyes"
10767 V_CCOPT="$V_CCOPT -Wused-but-marked-unused"
10772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10773 $as_echo "no" >&6; }
10774 CFLAGS="$save_CFLAGS"
10777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10778 ac_c_werror_flag="$save_ac_c_werror_flag"
10780 # Warns about safeguards added in case the enums are
10782 # AC_LBL_CHECK_COMPILER_OPT(V_CCOPT, -Wcovered-switch-default)
10784 # This can cause problems with ntohs(), ntohl(),
10785 # htons(), and htonl() on some platforms, such
10786 # as OpenBSD 6.3 with Clang 5.0.1. I guess the
10787 # problem is that the macro that ultimately does
10788 # the byte-swapping involves a conditional
10789 # expression that tests whether the value being
10790 # swapped is a compile-time constant or not,
10791 # using __builtin_constant_p(), and, depending
10792 # on whether it is, does a compile-time swap or
10793 # a run-time swap; perhaps the compiler always
10794 # considers one of the two results of the
10795 # conditional expressin is never evaluated,
10796 # because the conditional check is done at
10797 # compile time, and thus always says "that
10798 # expression is never executed".
10800 # (Perhaps there should be a way of flagging
10801 # an expression that you *want* evaluated at
10802 # compile time, so that the compiler 1) warns
10803 # if it *can't* be evaluated at compile time
10804 # and 2) *doesn't* warn that the true or false
10805 # branch will never be reached.)
10808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wunreachable-code option" >&5
10809 $as_echo_n "checking whether the compiler supports the -Wunreachable-code option... " >&6; }
10810 save_CFLAGS="$CFLAGS"
10811 CFLAGS="$CFLAGS -Wunreachable-code"
10813 # XXX - yes, this depends on the way AC_LANG_WERROR works,
10814 # but no mechanism is provided to turn AC_LANG_WERROR on
10815 # *and then turn it back off*, so that we *only* do it when
10816 # testing compiler options - 15 years after somebody asked
10819 # https://autoconf.gnu.narkive.com/gTAVmfKD/how-to-cancel-flags-set-by-ac-lang-werror
10821 save_ac_c_werror_flag="$ac_c_werror_flag"
10822 ac_c_werror_flag=yes
10824 # We use AC_LANG_SOURCE() so that we can control the complete
10825 # content of the program being compiled. We do not, for example,
10826 # want the default "int main()" that AC_LANG_PROGRAM() generates,
10827 # as it will generate a warning with -Wold-style-definition, meaning
10828 # that we would treat it as not working, as the test will fail if
10829 # *any* error output, including a warning due to the flag we're
10830 # testing, is generated; see
10832 # https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us
10833 # https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us
10835 # This may, as per those two messages, be fixed in autoonf 2.70,
10836 # but we only require 2.64 or newer for now.
10838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10839 /* end confdefs.h. */
10840 int main(void) { return 0; }
10842 if ac_fn_c_try_compile "$LINENO"; then :
10844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10845 $as_echo "yes" >&6; }
10846 can_add_to_cflags=yes
10848 # The compile supports this; do we have some C code for
10849 # which the warning should *not* appear?
10850 # We test the fourth argument because the third argument
10851 # could contain quotes, breaking the test.
10853 if test "xgenerates warnings from ntohs()" != "x"
10855 CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors"
10856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wunreachable-code generates warnings from ntohs()" >&5
10857 $as_echo_n "checking whether -Wunreachable-code generates warnings from ntohs()... " >&6; }
10858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10859 /* end confdefs.h. */
10860 #include <arpa/inet.h>
10863 testme(unsigned short a)
10869 if ac_fn_c_try_compile "$LINENO"; then :
10874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10875 $as_echo "no" >&6; }
10882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10883 $as_echo "yes" >&6; }
10884 can_add_to_cflags=no
10887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10889 CFLAGS="$save_CFLAGS"
10890 if test x"$can_add_to_cflags" = "xyes"
10892 V_CCOPT="$V_CCOPT -Wunreachable-code"
10897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10898 $as_echo "no" >&6; }
10899 CFLAGS="$save_CFLAGS"
10902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10903 ac_c_werror_flag="$save_ac_c_werror_flag"
10906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wshorten-64-to-32 option" >&5
10907 $as_echo_n "checking whether the compiler supports the -Wshorten-64-to-32 option... " >&6; }
10908 save_CFLAGS="$CFLAGS"
10909 CFLAGS="$CFLAGS -Wshorten-64-to-32"
10911 # XXX - yes, this depends on the way AC_LANG_WERROR works,
10912 # but no mechanism is provided to turn AC_LANG_WERROR on
10913 # *and then turn it back off*, so that we *only* do it when
10914 # testing compiler options - 15 years after somebody asked
10917 # https://autoconf.gnu.narkive.com/gTAVmfKD/how-to-cancel-flags-set-by-ac-lang-werror
10919 save_ac_c_werror_flag="$ac_c_werror_flag"
10920 ac_c_werror_flag=yes
10922 # We use AC_LANG_SOURCE() so that we can control the complete
10923 # content of the program being compiled. We do not, for example,
10924 # want the default "int main()" that AC_LANG_PROGRAM() generates,
10925 # as it will generate a warning with -Wold-style-definition, meaning
10926 # that we would treat it as not working, as the test will fail if
10927 # *any* error output, including a warning due to the flag we're
10928 # testing, is generated; see
10930 # https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us
10931 # https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us
10933 # This may, as per those two messages, be fixed in autoonf 2.70,
10934 # but we only require 2.64 or newer for now.
10936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10937 /* end confdefs.h. */
10938 int main(void) { return 0; }
10940 if ac_fn_c_try_compile "$LINENO"; then :
10942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10943 $as_echo "yes" >&6; }
10944 can_add_to_cflags=yes
10946 # The compile supports this; do we have some C code for
10947 # which the warning should *not* appear?
10948 # We test the fourth argument because the third argument
10949 # could contain quotes, breaking the test.
10953 CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors"
10954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wshorten-64-to-32 " >&5
10955 $as_echo_n "checking whether -Wshorten-64-to-32 ... " >&6; }
10956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10957 /* end confdefs.h. */
10960 if ac_fn_c_try_compile "$LINENO"; then :
10965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10966 $as_echo "no" >&6; }
10973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10974 $as_echo "yes" >&6; }
10975 can_add_to_cflags=no
10978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10980 CFLAGS="$save_CFLAGS"
10981 if test x"$can_add_to_cflags" = "xyes"
10983 V_CCOPT="$V_CCOPT -Wshorten-64-to-32"
10988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10989 $as_echo "no" >&6; }
10990 CFLAGS="$save_CFLAGS"
10993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10994 ac_c_werror_flag="$save_ac_c_werror_flag"
10998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports generating dependencies" >&5
10999 $as_echo_n "checking whether the compiler supports generating dependencies... " >&6; }
11000 if test "$GCC" = yes ; then
11002 # GCC, or a compiler deemed to be GCC by AC_PROG_CC (even
11003 # though it's not); we assume that, in this case, the flag
11006 ac_lbl_dependency_flag="-M"
11009 # Not GCC or a compiler deemed to be GCC; what platform is
11010 # this? (We're assuming that if the compiler isn't GCC
11011 # it's the compiler from the vendor of the OS; that won't
11012 # necessarily be true for x86 platforms, where it might be
11013 # the Intel C compiler.)
11017 irix*|osf*|darwin*)
11019 # MIPS C for IRIX, DEC C, and clang all use -M.
11021 ac_lbl_dependency_flag="-M"
11028 ac_lbl_dependency_flag="-xM"
11033 # HP's older C compilers don't support this.
11034 # HP's newer C compilers support this with
11035 # either +M or +Make; the older compilers
11036 # interpret +M as something completely
11037 # different, so we use +Make so we don't
11038 # think it works with the older compilers.
11040 ac_lbl_dependency_flag="+Make"
11045 # Not one of the above; assume no support for
11046 # generating dependencies.
11048 ac_lbl_dependency_flag=""
11054 # Is ac_lbl_dependency_flag defined and, if so, does the compiler
11055 # complain about it?
11057 # Note: clang doesn't seem to exit with an error status when handed
11058 # an unknown non-warning error, even if you pass it
11059 # -Werror=unknown-warning-option. However, it always supports
11060 # -M, so the fact that this test always succeeds with clang
11063 if test ! -z "$ac_lbl_dependency_flag"; then
11064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11065 /* end confdefs.h. */
11066 int main(void) { return 0; }
11068 if { { $as_echo "$as_me:${as_lineno-$LINENO}: eval \"\$CC \$ac_lbl_dependency_flag conftest.c >/dev/null 2>&1\""; } >&5
11069 (eval "$CC $ac_lbl_dependency_flag conftest.c >/dev/null 2>&1") 2>&5
11071 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11072 test $ac_status = 0; }; then
11073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, with $ac_lbl_dependency_flag" >&5
11074 $as_echo "yes, with $ac_lbl_dependency_flag" >&6; }
11075 DEPENDENCY_CFLAG="$ac_lbl_dependency_flag"
11076 MKDEP='${top_srcdir}/mkdep'
11078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11079 $as_echo "no" >&6; }
11081 # We can't run mkdep, so have "make depend" do
11084 MKDEP='${top_srcdir}/nomkdep'
11088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11089 $as_echo "no" >&6; }
11091 # We can't run mkdep, so have "make depend" do
11094 MKDEP='${top_srcdir}/nomkdep'
11100 # We used to set -n32 for IRIX 6 when not using GCC (presumed
11101 # to mean that we're using MIPS C or MIPSpro C); it specified
11102 # the "new" faster 32-bit ABI, introduced in IRIX 6.2. I'm
11103 # not sure why that would be something to do *only* with a
11104 # .devel file; why should the ABI for which we produce code
11105 # depend on .devel?
11107 os=`echo $host_os |
sed -e 's/\([0-9][0-9]*\)[^0-9].*$/\1/'`
11108 name="lbl/os-$os.h"
11109 if test -f $name ; then
11110 ln -s $name os-proto.h
11112 $as_echo "#define HAVE_OS_PROTO_H 1" >>confdefs.h
11115 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: can't find $name" >&5
11116 $as_echo "$as_me: WARNING: can't find $name" >&2;}
11121 # Check to see if the sockaddr struct has the 4.4 BSD sa_len member.
11123 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "
11124 #include <sys/types.h>
11125 #include <sys/socket.h>
11128 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
11130 cat >>confdefs.h <<_ACEOF
11131 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
11139 # Check to see if there's a sockaddr_storage structure.
11141 ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "
11142 #include <sys/types.h>
11143 #include <sys/socket.h>
11146 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
11148 cat >>confdefs.h <<_ACEOF
11149 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
11157 # Check to see if the dl_hp_ppa_info_t struct has the HP-UX 11.00
11158 # dl_module_id_1 member.
11160 # NOTE: any failure means we conclude that it doesn't have that member,
11161 # so if we don't have DLPI, don't have a <sys/dlpi_ext.h> header, or
11162 # have one that doesn't declare a dl_hp_ppa_info_t type, we conclude
11163 # it doesn't have that member (which is OK, as either we won't be
11164 # using code that would use that member, or we wouldn't compile in
11167 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" "
11168 #include <sys/types.h>
11169 #include <sys/dlpi.h>
11170 #include <sys/dlpi_ext.h>
11173 if test "x$ac_cv_member_dl_hp_ppa_info_t_dl_module_id_1" = xyes; then :
11175 cat >>confdefs.h <<_ACEOF
11176 #define HAVE_DL_HP_PPA_INFO_T_DL_MODULE_ID_1 1
11215 # Various Linux-specific mechanisms.
11217 # Check whether --enable-usb was given.
11218 if test "${enable_usb+set}" = set; then :
11219 enableval=$enable_usb;
11226 # If somebody requested an XXX-only pcap, that doesn't include
11227 # additional mechanisms.
11229 if test "xxx_only" != yes; then
11232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux usbmon USB sniffing support" >&5
11233 $as_echo_n "checking for Linux usbmon USB sniffing support... " >&6; }
11234 if test "x$enable_usb" != "xno" ; then
11236 $as_echo "#define PCAP_SUPPORT_LINUX_USBMON 1" >>confdefs.h
11238 MODULE_C_SRC="$MODULE_C_SRC pcap-usb-linux.c"
11239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11240 $as_echo "yes" >&6; }
11241 ac_usb_dev_name=`udevinfo
-q name
-p /sys
/class
/usb_device
/usbmon
2>/dev
/null
`
11242 if test $? -ne 0 ; then
11243 ac_usb_dev_name="usbmon"
11246 cat >>confdefs.h <<_ACEOF
11247 #define LINUX_USB_MON_DEV "/dev/$ac_usb_dev_name"
11250 { $as_echo "$as_me:${as_lineno-$LINENO}: Device for USB sniffing is /dev/$ac_usb_dev_name" >&5
11251 $as_echo "$as_me: Device for USB sniffing is /dev/$ac_usb_dev_name" >&6;}
11253 # Do we have a version of <linux/compiler.h> available?
11254 # If so, we might need it for <linux/usbdevice_fs.h>.
11256 for ac_header in linux/compiler.h
11258 ac_fn_c_check_header_mongrel "$LINENO" "linux/compiler.h" "ac_cv_header_linux_compiler_h" "$ac_includes_default"
11259 if test "x$ac_cv_header_linux_compiler_h" = xyes; then :
11260 cat >>confdefs.h <<_ACEOF
11261 #define HAVE_LINUX_COMPILER_H 1
11268 if test "$ac_cv_header_linux_compiler_h" = yes; then
11270 # Yes - include it when testing for <linux/usbdevice_fs.h>.
11272 for ac_header in linux/usbdevice_fs.h
11274 ac_fn_c_check_header_compile "$LINENO" "linux/usbdevice_fs.h" "ac_cv_header_linux_usbdevice_fs_h" "#include <linux/compiler.h>
11276 if test "x$ac_cv_header_linux_usbdevice_fs_h" = xyes; then :
11277 cat >>confdefs.h <<_ACEOF
11278 #define HAVE_LINUX_USBDEVICE_FS_H 1
11286 for ac_header in linux/usbdevice_fs.h
11288 ac_fn_c_check_header_mongrel "$LINENO" "linux/usbdevice_fs.h" "ac_cv_header_linux_usbdevice_fs_h" "$ac_includes_default"
11289 if test "x$ac_cv_header_linux_usbdevice_fs_h" = xyes; then :
11290 cat >>confdefs.h <<_ACEOF
11291 #define HAVE_LINUX_USBDEVICE_FS_H 1
11299 if test "$ac_cv_header_linux_usbdevice_fs_h" = yes; then
11301 # OK, does it define bRequestType? Older versions of the kernel
11302 # define fields with names like "requesttype, "request", and
11303 # "value", rather than "bRequestType", "bRequest", and
11306 ac_fn_c_check_member "$LINENO" "struct usbdevfs_ctrltransfer" "bRequestType" "ac_cv_member_struct_usbdevfs_ctrltransfer_bRequestType" "
11307 $ac_includes_default
11308 #ifdef HAVE_LINUX_COMPILER_H
11309 #include <linux/compiler.h>
11311 #include <linux/usbdevice_fs.h>
11314 if test "x$ac_cv_member_struct_usbdevfs_ctrltransfer_bRequestType" = xyes; then :
11316 cat >>confdefs.h <<_ACEOF
11317 #define HAVE_STRUCT_USBDEVFS_CTRLTRANSFER_BREQUESTTYPE 1
11325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11326 $as_echo "no" >&6; }
11330 # Life's too short to deal with trying to get this to compile
11331 # if you don't get the right types defined with
11332 # __KERNEL_STRICT_NAMES getting defined by some other include.
11334 # Check whether the includes Just Work. If not, don't turn on
11335 # netfilter support.
11337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can compile the netfilter support" >&5
11338 $as_echo_n "checking whether we can compile the netfilter support... " >&6; }
11339 if ${ac_cv_netfilter_can_compile+:} false; then :
11340 $as_echo_n "(cached) " >&6
11342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11343 /* end confdefs.h. */
11345 $ac_includes_default
11346 #include <sys/socket.h>
11347 #include <netinet/in.h>
11348 #include <linux/types.h>
11350 #include <linux/netlink.h>
11351 #include <linux/netfilter.h>
11352 #include <linux/netfilter/nfnetlink.h>
11353 #include <linux/netfilter/nfnetlink_log.h>
11354 #include <linux/netfilter/nfnetlink_queue.h>
11363 if ac_fn_c_try_compile "$LINENO"; then :
11364 ac_cv_netfilter_can_compile=yes
11366 ac_cv_netfilter_can_compile=no
11368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_netfilter_can_compile" >&5
11372 $as_echo "$ac_cv_netfilter_can_compile" >&6; }
11373 if test $ac_cv_netfilter_can_compile = yes ; then
11375 $as_echo "#define PCAP_SUPPORT_NETFILTER 1" >>confdefs.h
11377 MODULE_C_SRC="$MODULE_C_SRC pcap-netfilter-linux.c"
11385 # Check whether --enable-netmap was given.
11386 if test "${enable_netmap+set}" = set; then :
11387 enableval=$enable_netmap;
11393 if test "x$enable_netmap" != "xno" ; then
11395 # Check whether net/netmap_user.h is usable if NETMAP_WITH_LIBS is
11396 # defined; it's not usable on DragonFly BSD 4.6 if NETMAP_WITH_LIBS
11397 # is defined, for example, as it includes a non-existent malloc.h
11400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can compile the netmap support" >&5
11401 $as_echo_n "checking whether we can compile the netmap support... " >&6; }
11402 if ${ac_cv_net_netmap_user_can_compile+:} false; then :
11403 $as_echo_n "(cached) " >&6
11405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11406 /* end confdefs.h. */
11408 $ac_includes_default
11409 #define NETMAP_WITH_LIBS
11410 #include <net/netmap_user.h>
11419 if ac_fn_c_try_compile "$LINENO"; then :
11420 ac_cv_net_netmap_user_can_compile=yes
11422 ac_cv_net_netmap_user_can_compile=no
11424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_net_netmap_user_can_compile" >&5
11428 $as_echo "$ac_cv_net_netmap_user_can_compile" >&6; }
11429 if test $ac_cv_net_netmap_user_can_compile = yes ; then
11431 $as_echo "#define PCAP_SUPPORT_NETMAP 1" >>confdefs.h
11433 MODULE_C_SRC="$MODULE_C_SRC pcap-netmap.c"
11438 # Check for DPDK support.
11440 # Check whether --with-dpdk was given.
11441 if test "${with_dpdk+set}" = set; then :
11442 withval=$with_dpdk;
11443 if test "$withval" = no
11445 # User doesn't want DPDK support.
11447 elif test "$withval" = yes
11449 # User wants DPDK support but hasn't specified a directory.
11452 # User wants DPDK support and has specified a directory,
11453 # so use the provided value.
11460 if test "$V_PCAP" = dpdk; then
11461 # User requested DPDK-only libpcap, so we'd better have
11464 elif test "xxx_only" = yes; then
11465 # User requested something-else-only pcap, so they don't
11466 # want DPDK support.
11470 # Use DPDK API if present, otherwise don't
11472 want_dpdk=ifpresent
11478 if test "$want_dpdk" != no; then
11479 if test "x$PKGCONFIG" != "xno"
11482 # We have pkg-config; see if we have DPDK installed
11485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPDK with pkg-config" >&5
11486 $as_echo_n "checking for DPDK with pkg-config... " >&6; }
11487 if "$PKGCONFIG" libdpdk
11489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
11490 $as_echo "found" >&6; }
11491 found_dpdk_with_pkg_config=yes
11492 DPDK_CFLAGS=`"$PKGCONFIG" --cflags libdpdk
`
11493 DPDK_LDFLAGS=`"$PKGCONFIG" --libs libdpdk
`
11495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11496 $as_echo "not found" >&6; }
11501 # If we didn't find it with pkg-config, try checking for
11504 if test "x$found_dpdk_with_pkg_config" != "xyes"
11506 if test -z "$dpdk_dir"; then
11508 # The user didn't specify a directory containing
11509 # the DPDK headers and libraries. If we find
11510 # a /usr/local/include/dpdk directory, assume
11511 # it's /usr/local, otherwise assume it's /usr.
11513 if test -d "/usr/local/include/dpdk"; then
11514 dpdk_dir="/usr/local"
11520 # The convention appears to be that 1) there's a "dpdk"
11521 # subdirectory of the include directory, containing DPDK
11522 # headers (at least in the installation on Ubuntu with
11523 # the system DPDK packages) and 2) includes of DPDK
11524 # headers don't use "dpdk/{header}" (at least from the
11525 # way the DPDK documentation is written).
11527 # So we add "/dpdk" to the include directory, and always
11528 # add that to the list of include directories to search.
11530 dpdk_inc_dir="$dpdk_dir/include/dpdk"
11531 dpdk_inc_flags="-I$dpdk_inc_dir"
11532 dpdk_lib_dir="$dpdk_dir/lib"
11534 # Handle multiarch systems.
11536 # Step 1: run the C compiler with the -dumpmachine option;
11537 # if it succeeds, the output would be the multiarch directory
11538 # name if your system has multiarch directories.
11540 multiarch_dir=`$CC -dumpmachine 2>/dev
/null
`
11541 if test ! -z "$multiarch_dir"
11544 # OK, we have a multiarch directory.
11546 # Now deal with includes. On Ubuntu 20.04, for
11547 # example, we have /usr/include/dpdk *and*
11548 # /usr/include/$multiarch_dir/dpdk, and must
11551 if test -d "$dpdk_dir/include/$multiarch_dir/dpdk"
11553 dpdk_inc_flags="-I$dpdk_dir/include/$multiarch_dir/dpdk $dpdk_inc_flags"
11557 # Now deal with libraries.
11559 if test -d "$dpdk_lib_dir/$multiarch_dir"
11561 dpdk_lib_dir="$dpdk_lib_dir/$multiarch_dir"
11564 DPDK_MACHINE_CFLAGS="-march=native"
11565 DPDK_CFLAGS="$DPDK_MACHINE_CFLAGS $dpdk_inc_flags"
11566 DPDK_LDFLAGS="-L$dpdk_lib_dir -ldpdk -lrt -lm -lnuma -ldl -pthread"
11569 save_CFLAGS="$CFLAGS"
11571 save_LDFLAGS="$LDFLAGS"
11572 CFLAGS="$CFLAGS $DPDK_CFLAGS"
11573 LIBS="$LIBS $DPDK_LDFLAGS"
11574 LDFLAGS="$LDFLAGS $DPDK_LDFLAGS"
11576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can compile the DPDK support" >&5
11577 $as_echo_n "checking whether we can compile the DPDK support... " >&6; }
11578 if ${ac_cv_dpdk_can_compile+:} false; then :
11579 $as_echo_n "(cached) " >&6
11581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11582 /* end confdefs.h. */
11584 $ac_includes_default
11585 #include <rte_common.h>
11594 if ac_fn_c_try_compile "$LINENO"; then :
11595 ac_cv_dpdk_can_compile=yes
11597 ac_cv_dpdk_can_compile=no
11599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_dpdk_can_compile" >&5
11603 $as_echo "$ac_cv_dpdk_can_compile" >&6; }
11606 # We include rte_bus.h, and older versions of DPDK
11607 # didn't have it, so check for it.
11609 if test "$ac_cv_dpdk_can_compile" = yes; then
11611 # This runs the preprocessor, so make sure it
11612 # looks in the DPDK directories. Instead of
11613 # including dpdk/XXX.h, we include just XXX.h
11614 # and assume DPDK_CFLAGS is the directory
11615 # containing the DPDK headers (that's how
11616 # pkg-config sets it, at least on Ubuntu),
11617 # so just looking under /usr/include won't
11620 save_CPPFLAGS="$CPPFLAGS"
11621 CPPFLAGS="$CPPFLAGS $DPDK_CFLAGS"
11622 ac_fn_c_check_header_mongrel "$LINENO" "rte_bus.h" "ac_cv_header_rte_bus_h" "$ac_includes_default"
11623 if test "x$ac_cv_header_rte_bus_h" = xyes; then :
11628 CPPFLAGS="$save_CPPFLAGS"
11632 # We call rte_eth_dev_count_avail(), and older versions
11633 # of DPDK didn't have it, so check for it.
11635 if test "$ac_cv_header_rte_bus_h" = yes; then
11636 ac_fn_c_check_func "$LINENO" "rte_eth_dev_count_avail" "ac_cv_func_rte_eth_dev_count_avail"
11637 if test "x$ac_cv_func_rte_eth_dev_count_avail" = xyes; then :
11643 CFLAGS="$save_CFLAGS"
11645 LDFLAGS="$save_LDFLAGS"
11647 if test "$ac_cv_func_rte_eth_dev_count_avail" = yes; then
11648 CFLAGS="$CFLAGS $DPDK_CFLAGS"
11649 LIBS="$LIBS $DPDK_LDFLAGS"
11650 LDFLAGS="$LDFLAGS $DPDK_LDFLAGS"
11651 V_INCLS="$V_INCLS $DPDK_CFLAGS"
11653 $as_echo "#define PCAP_SUPPORT_DPDK 1" >>confdefs.h
11655 if test $V_PCAP != dpdk ; then
11656 MODULE_C_SRC="$MODULE_C_SRC pcap-dpdk.c"
11660 # Check whether the rte_ether.h file defines
11661 # struct ether_addr or struct rte_ether_addr.
11663 # ("API compatibility? That's for losers!")
11665 ac_fn_c_check_type "$LINENO" "struct rte_ether_addr" "ac_cv_type_struct_rte_ether_addr" "
11666 #include <rte_ether.h>
11669 if test "x$ac_cv_type_struct_rte_ether_addr" = xyes; then :
11671 cat >>confdefs.h <<_ACEOF
11672 #define HAVE_STRUCT_RTE_ETHER_ADDR 1
11679 if test "$V_PCAP" = dpdk; then
11680 # User requested DPDK-only capture support, but
11681 # we couldn't the DPDK API support at all, or we
11682 # found it but it wasn't a sufficiently recent
11684 if test "$ac_cv_dpdk_can_compile" != yes; then
11686 # Couldn't even find the headers.
11688 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
11691 # Found the headers, but we couldn't find
11692 # rte_bus.h or rte_eth_dev_count_avail(),
11693 # we don't have a sufficiently recent
11696 as_fn_error $? "DPDK support requested with --with-pcap=dpdk, but we require DPDK 18.x or later; install a newer version of DPDK, or don't request DPDK support" "$LINENO" 5
11700 if test "$want_dpdk" = yes; then
11701 # User requested DPDK-only capture support, but
11702 # we couldn't the DPDK API support at all, or we
11703 # found it but it wasn't a sufficiently recent
11705 if test "$ac_cv_dpdk_can_compile" != yes; then
11707 # Couldn't even find the headers.
11709 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
11712 # Found the headers, but we couldn't find
11713 # rte_bus.h or rte_eth_dev_count_avail(),
11714 # we don't have a sufficiently recent
11717 as_fn_error $? "DPDK support requested with --with-pcap=dpdk, but we require DPDK 18.x or later: install a newer version of DPDK, or don't request DPDK support" "$LINENO" 5
11724 # Check whether --enable-bluetooth was given.
11725 if test "${enable_bluetooth+set}" = set; then :
11726 enableval=$enable_bluetooth;
11728 enable_bluetooth=ifsupportavailable
11732 if test "xxx_only" = yes; then
11733 # User requested something-else-only pcap, so they don't
11734 # want Bluetooth support.
11735 enable_bluetooth=no
11738 if test "x$enable_bluetooth" != "xno" ; then
11741 ac_fn_c_check_header_mongrel "$LINENO" "bluetooth/bluetooth.h" "ac_cv_header_bluetooth_bluetooth_h" "$ac_includes_default"
11742 if test "x$ac_cv_header_bluetooth_bluetooth_h" = xyes; then :
11745 # We have bluetooth.h, so we support Bluetooth
11749 $as_echo "#define PCAP_SUPPORT_BT 1" >>confdefs.h
11751 MODULE_C_SRC="$MODULE_C_SRC pcap-bt-linux.c"
11752 { $as_echo "$as_me:${as_lineno-$LINENO}: Bluetooth sniffing is supported" >&5
11753 $as_echo "$as_me: Bluetooth sniffing is supported" >&6;}
11754 ac_lbl_bluetooth_available=yes
11757 # OK, does struct sockaddr_hci have an hci_channel
11760 ac_fn_c_check_member "$LINENO" "struct sockaddr_hci" "hci_channel" "ac_cv_member_struct_sockaddr_hci_hci_channel" "
11761 #include <bluetooth/bluetooth.h>
11762 #include <bluetooth/hci.h>
11765 if test "x$ac_cv_member_struct_sockaddr_hci_hci_channel" = xyes; then :
11767 cat >>confdefs.h <<_ACEOF
11768 #define HAVE_STRUCT_SOCKADDR_HCI_HCI_CHANNEL 1
11773 # Yes; is HCI_CHANNEL_MONITOR defined?
11775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if HCI_CHANNEL_MONITOR is defined" >&5
11776 $as_echo_n "checking if HCI_CHANNEL_MONITOR is defined... " >&6; }
11777 if ${ac_cv_lbl_hci_channel_monitor_is_defined+:} false; then :
11778 $as_echo_n "(cached) " >&6
11780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11781 /* end confdefs.h. */
11783 #include <bluetooth/bluetooth.h>
11784 #include <bluetooth/hci.h>
11790 u_int i = HCI_CHANNEL_MONITOR;
11796 if ac_fn_c_try_compile "$LINENO"; then :
11798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11799 $as_echo "yes" >&6; }
11801 $as_echo "#define PCAP_SUPPORT_BT_MONITOR /**/" >>confdefs.h
11803 MODULE_C_SRC="$MODULE_C_SRC pcap-bt-monitor-linux.c"
11807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11808 $as_echo "no" >&6; }
11811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11821 # We don't have bluetooth.h, so we don't support
11822 # Bluetooth sniffing.
11824 if test "x$enable_bluetooth" = "xyes" ; then
11825 as_fn_error $? "Bluetooth sniffing is not supported; install bluez-lib devel to enable it" "$LINENO" 5
11827 { $as_echo "$as_me:${as_lineno-$LINENO}: Bluetooth sniffing is not supported; install bluez-lib devel to enable it" >&5
11828 $as_echo "$as_me: Bluetooth sniffing is not supported; install bluez-lib devel to enable it" >&6;}
11836 if test "x$enable_bluetooth" = "xyes" ; then
11837 as_fn_error $? "no Bluetooth sniffing support implemented for $host_os" "$LINENO" 5
11839 { $as_echo "$as_me:${as_lineno-$LINENO}: no Bluetooth sniffing support implemented for $host_os" >&5
11840 $as_echo "$as_me: no Bluetooth sniffing support implemented for $host_os" >&6;}
11847 # Check whether --enable-dbus was given.
11848 if test "${enable_dbus+set}" = set; then :
11849 enableval=$enable_dbus;
11851 enable_dbus=ifavailable
11855 if test "xxx_only" = yes; then
11856 # User requested something-else-only pcap, so they don't
11857 # want D-Bus support.
11861 if test "x$enable_dbus" != "xno"; then
11862 if test "x$enable_dbus" = "xyes"; then
11867 # We don't support D-Bus sniffing on macOS; see
11869 # https://bugs.freedesktop.org/show_bug.cgi?id=74029
11871 # The user requested it, so fail.
11873 as_fn_error $? "Due to freedesktop.org bug 74029, D-Bus capture support is not available on macOS" "$LINENO" 5
11880 # We don't support D-Bus sniffing on macOS; see
11882 # https://bugs.freedesktop.org/show_bug.cgi?id=74029
11884 # The user dind't explicitly request it, so just
11885 # silently refuse to enable it.
11893 if test "x$enable_dbus" != "xno"; then
11894 if test "x$PKGCONFIG" != "xno"; then
11895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for D-Bus" >&5
11896 $as_echo_n "checking for D-Bus... " >&6; }
11897 if "$PKGCONFIG" dbus-1; then
11898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11899 $as_echo "yes" >&6; }
11900 DBUS_CFLAGS=`"$PKGCONFIG" --cflags dbus-1
`
11901 DBUS_LIBS=`"$PKGCONFIG" --libs dbus-1
`
11902 save_CFLAGS="$CFLAGS"
11904 CFLAGS="$CFLAGS $DBUS_CFLAGS"
11905 LIBS="$LIBS $DBUS_LIBS"
11906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the D-Bus library defines dbus_connection_read_write" >&5
11907 $as_echo_n "checking whether the D-Bus library defines dbus_connection_read_write... " >&6; }
11908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11909 /* end confdefs.h. */
11910 #include <string.h>
11913 #include <sys/time.h>
11915 #include <dbus/dbus.h>
11919 return dbus_connection_read_write(NULL, 0);
11924 if ac_fn_c_try_link "$LINENO"; then :
11926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11927 $as_echo "yes" >&6; }
11929 $as_echo "#define PCAP_SUPPORT_DBUS 1" >>confdefs.h
11931 MODULE_C_SRC="$MODULE_C_SRC pcap-dbus.c"
11932 V_INCLS="$V_INCLS $DBUS_CFLAGS"
11936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11937 $as_echo "no" >&6; }
11938 if test "x$enable_dbus" = "xyes"; then
11939 as_fn_error $? "--enable-dbus was given, but the D-Bus library doesn't define dbus_connection_read_write()" "$LINENO" 5
11944 rm -f core conftest.err conftest.$ac_objext \
11945 conftest$ac_exeext conftest.$ac_ext
11946 CFLAGS="$save_CFLAGS"
11948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11949 $as_echo "no" >&6; }
11950 if test "x$enable_dbus" = "xyes"; then
11951 as_fn_error $? "--enable-dbus was given, but the dbus-1 package is not installed" "$LINENO" 5
11958 # Check whether --enable-rdma was given.
11959 if test "${enable_rdma+set}" = set; then :
11960 enableval=$enable_rdma;
11962 enable_rdma=ifavailable
11966 if test "xxx_only" = yes; then
11967 # User requested something-else-only pcap, so they don't
11968 # want RDMA support.
11972 if test "x$enable_rdma" != "xno"; then
11973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ibv_get_device_list in -libverbs" >&5
11974 $as_echo_n "checking for ibv_get_device_list in -libverbs... " >&6; }
11975 if ${ac_cv_lib_ibverbs_ibv_get_device_list+:} false; then :
11976 $as_echo_n "(cached) " >&6
11978 ac_check_lib_save_LIBS=$LIBS
11979 LIBS="-libverbs $LIBS"
11980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11981 /* end confdefs.h. */
11983 /* Override any GCC internal prototype to avoid an error.
11984 Use char because int might match the return type of a GCC
11985 builtin and then its argument prototype would still apply. */
11989 char ibv_get_device_list ();
11993 return ibv_get_device_list ();
11998 if ac_fn_c_try_link "$LINENO"; then :
11999 ac_cv_lib_ibverbs_ibv_get_device_list=yes
12001 ac_cv_lib_ibverbs_ibv_get_device_list=no
12003 rm -f core conftest.err conftest.$ac_objext \
12004 conftest$ac_exeext conftest.$ac_ext
12005 LIBS=$ac_check_lib_save_LIBS
12007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ibverbs_ibv_get_device_list" >&5
12008 $as_echo "$ac_cv_lib_ibverbs_ibv_get_device_list" >&6; }
12009 if test "x$ac_cv_lib_ibverbs_ibv_get_device_list" = xyes; then :
12011 ac_fn_c_check_header_mongrel "$LINENO" "infiniband/verbs.h" "ac_cv_header_infiniband_verbs_h" "$ac_includes_default"
12012 if test "x$ac_cv_header_infiniband_verbs_h" = xyes; then :
12015 # ibv_create_flow may be defined as a static inline
12016 # function in infiniband/verbs.h, so we can't
12017 # use AC_CHECK_LIB.
12019 # Too bad autoconf has no AC_SYMBOL_EXISTS()
12020 # macro that works like CMake's check_symbol_exists()
12021 # function, to check do a compile check like
12022 # this (they do a clever trick to avoid having
12023 # to know the function's signature).
12025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libibverbs defines ibv_create_flow" >&5
12026 $as_echo_n "checking whether libibverbs defines ibv_create_flow... " >&6; }
12027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12028 /* end confdefs.h. */
12030 #include <infiniband/verbs.h>
12036 (void) ibv_create_flow((struct ibv_qp *) NULL,
12037 (struct ibv_flow_attr *) NULL);
12043 if ac_fn_c_try_link "$LINENO"; then :
12045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12046 $as_echo "yes" >&6; }
12048 $as_echo "#define PCAP_SUPPORT_RDMASNIFF /**/" >>confdefs.h
12050 MODULE_C_SRC="$MODULE_C_SRC pcap-rdmasniff.c"
12051 LIBS="-libverbs $LIBS"
12055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12056 $as_echo "no" >&6; }
12060 rm -f core conftest.err conftest.$ac_objext \
12061 conftest$ac_exeext conftest.$ac_ext
12072 # Find a good install program. We prefer a C program (faster),
12073 # so one script is as good as another. But avoid the broken or
12074 # incompatible versions:
12075 # SysV /etc/install, /usr/sbin/install
12076 # SunOS /usr/etc/install
12077 # IRIX /sbin/install
12079 # AmigaOS /C/install, which installs bootblocks on floppy discs
12080 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
12081 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
12082 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
12083 # OS/2's system install, which has a completely different semantic
12084 # ./install, which can be erroneously created by make from ./install.sh.
12085 # Reject install programs that cannot install multiple files.
12086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
12087 $as_echo_n "checking for a BSD-compatible install... " >&6; }
12088 if test -z "$INSTALL"; then
12089 if ${ac_cv_path_install+:} false; then :
12090 $as_echo_n "(cached) " >&6
12092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12093 for as_dir in $PATH
12096 test -z "$as_dir" && as_dir=.
12097 # Account for people who put trailing slashes in PATH elements.
12098 case $as_dir/ in #((
12099 ./ | .// | /[cC]/* | \
12100 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
12101 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
12104 # OSF1 and SCO ODT 3.0 have their own names for install.
12105 # Don't use installbsd from OSF since it installs stuff as root
12107 for ac_prog in ginstall scoinst install; do
12108 for ac_exec_ext in '' $ac_executable_extensions; do
12109 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
12110 if test $ac_prog = install &&
12111 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12112 # AIX install. It has an incompatible calling convention.
12114 elif test $ac_prog = install &&
12115 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12116 # program-specific install script used by HP pwplus--don't use.
12119 rm -rf conftest.one conftest.two conftest.dir
12120 echo one > conftest.one
12121 echo two > conftest.two
12123 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
12124 test -s conftest.one && test -s conftest.two &&
12125 test -s conftest.dir/conftest.one &&
12126 test -s conftest.dir/conftest.two
12128 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
12141 rm -rf conftest.one conftest.two conftest.dir
12144 if test "${ac_cv_path_install+set}" = set; then
12145 INSTALL=$ac_cv_path_install
12147 # As a last resort, use the slow shell script. Don't cache a
12148 # value for INSTALL within a source directory, because that will
12149 # break other packages using the cache if that directory is
12150 # removed, or if the value is a relative name.
12151 INSTALL=$ac_install_sh
12154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
12155 $as_echo "$INSTALL" >&6; }
12157 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
12158 # It thinks the first close brace ends the variable substitution.
12159 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
12161 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
12163 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
12166 ac_config_headers="$ac_config_headers config.h"
12169 ac_config_commands="$ac_config_commands default-1"
12171 ac_config_files="$ac_config_files Makefile grammar.y 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"
12173 cat >confcache <<\_ACEOF
12174 # This file is a shell script that caches the results of configure
12175 # tests run on this system so they can be shared between configure
12176 # scripts and configure runs, see configure's option --config-cache.
12177 # It is not useful on other systems. If it contains results you don't
12178 # want to keep, you may remove or edit it.
12180 # config.status only pays attention to the cache file if you give it
12181 # the --recheck option to rerun configure.
12183 # `ac_cv_env_foo
' variables (set or unset) will be overridden when
12184 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12185 # following values.
12189 # The following way of writing the cache mishandles newlines in values,
12190 # but we know of no workaround that is simple, portable, and efficient.
12191 # So, we kill variables containing newlines.
12192 # Ultrix sh set writes to stderr and can't be redirected directly,
12193 # and sets the high bit in the cache file unless we assign to the vars.
12195 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12196 eval ac_val
=\$
$ac_var
12200 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12201 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12204 _ | IFS | as_nl
) ;; #(
12205 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
12206 *) { eval $ac_var=; unset $ac_var;} ;;
12212 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12213 *${as_nl}ac_space
=\
*)
12214 # `set' does not quote correctly, so add quotes: double-quote
12215 # substitution turns \\\\ into \\, and sed turns \\ into \.
12218 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12221 # `set' quotes correctly as required by POSIX, so do not add quotes.
12222 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12231 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12233 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12235 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
12236 if test -w "$cache_file"; then
12237 if test "x$cache_file" != "x/dev/null"; then
12238 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12239 $as_echo "$as_me: updating cache $cache_file" >&6;}
12240 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
12241 cat confcache
>"$cache_file"
12243 case $cache_file in #(
12245 mv -f confcache
"$cache_file"$$
&&
12246 mv -f "$cache_file"$$
"$cache_file" ;; #(
12248 mv -f confcache
"$cache_file" ;;
12253 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12254 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12259 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
12260 # Let make expand exec_prefix.
12261 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
12263 DEFS
=-DHAVE_CONFIG_H
12268 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
12269 # 1. Remove the extension, and $U if already installed.
12270 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
12271 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
12272 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12273 # will be set to the directory where LIBOBJS objects are built.
12274 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12275 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
12277 LIBOBJS
=$ac_libobjs
12279 LTLIBOBJS
=$ac_ltlibobjs
12283 : "${CONFIG_STATUS=./config.status}"
12285 ac_clean_files_save
=$ac_clean_files
12286 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
12287 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12288 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12290 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12292 # Generated by $as_me.
12293 # Run this file to recreate the current configuration.
12294 # Compiler output produced by configure, useful for debugging
12295 # configure, is in config.log if it exists.
12298 ac_cs_recheck=false
12301 SHELL=\${CONFIG_SHELL-$SHELL}
12304 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
12305 ## -------------------- ##
12306 ## M4sh Initialization. ##
12307 ## -------------------- ##
12309 # Be more Bourne compatible
12310 DUALCASE
=1; export DUALCASE
# for MKS sh
12311 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
12314 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12315 # is contrary to our usage. Disable this feature.
12316 alias -g '${1+"$@"}'='"$@"'
12317 setopt NO_GLOB_SUBST
12319 case `(set -o) 2>/dev/null` in #(
12331 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12332 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12333 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12334 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12335 # Prefer a ksh shell builtin over an external printf program on Solaris,
12336 # but without wasting forks for bash or zsh.
12337 if test -z "$BASH_VERSION$ZSH_VERSION" \
12338 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12339 as_echo='print
-r --'
12340 as_echo_n='print
-rn --'
12341 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12342 as_echo='printf %s
\n'
12343 as_echo_n='printf %s
'
12345 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12346 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
12347 as_echo_n='/usr
/ucb
/echo -n'
12349 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12350 as_echo_n_body='eval
12354 expr "X$arg" : "X\\(.*\\)$as_nl";
12355 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12357 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
12359 export as_echo_n_body
12360 as_echo_n='sh
-c $as_echo_n_body as_echo
'
12362 export as_echo_body
12363 as_echo='sh
-c $as_echo_body as_echo
'
12366 # The user is always right.
12367 if test "${PATH_SEPARATOR+set}" != set; then
12369 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12370 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12377 # We need space, tab and new line, in precisely that order. Quoting is
12378 # there to prevent editors from complaining about space-tab.
12379 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12380 # splitting by setting IFS to empty value.)
12383 # Find who we are. Look in the path if we contain no directory separator.
12386 *[\\/]* ) as_myself=$0 ;;
12387 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12388 for as_dir in $PATH
12391 test -z "$as_dir" && as_dir=.
12392 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12398 # We did not find ourselves, most probably we were run as `sh COMMAND'
12399 # in which case we are not to be found in the path.
12400 if test "x$as_myself" = x
; then
12403 if test ! -f "$as_myself"; then
12404 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12408 # Unset variables that we do not need and which cause bugs (e.g. in
12409 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12410 # suppresses any "Segmentation fault" message there. '((' could
12411 # trigger a bug in pdksh 5.2.14.
12412 for as_var
in BASH_ENV ENV MAIL MAILPATH
12413 do eval test x\
${$as_var+set} = xset \
12414 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
12427 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
12430 # as_fn_error STATUS ERROR [LINENO LOG_FD]
12431 # ----------------------------------------
12432 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12433 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12434 # script with STATUS, using 1 if that was 0.
12437 as_status
=$1; test $as_status -eq 0 && as_status
=1
12439 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
12440 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12442 $as_echo "$as_me: error: $2" >&2
12443 as_fn_exit
$as_status
12447 # as_fn_set_status STATUS
12448 # -----------------------
12449 # Set $? to STATUS, without forking.
12450 as_fn_set_status
()
12453 } # as_fn_set_status
12455 # as_fn_exit STATUS
12456 # -----------------
12457 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12461 as_fn_set_status
$1
12467 # Portably unset VAR.
12470 { eval $1=; unset $1;}
12472 as_unset
=as_fn_unset
12473 # as_fn_append VAR VALUE
12474 # ----------------------
12475 # Append the text in VALUE to the end of the definition contained in VAR. Take
12476 # advantage of any shell optimizations that allow amortized linear growth over
12477 # repeated appends, instead of the typical quadratic growth present in naive
12479 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
12480 eval 'as_fn_append ()
12491 # as_fn_arith ARG...
12492 # ------------------
12493 # Perform arithmetic evaluation on the ARGs, and store the result in the
12494 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12495 # must be portable across $(()) and expr.
12496 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
12497 eval 'as_fn_arith ()
12504 as_val
=`expr "$@" || test $? -eq 1`
12509 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
12510 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
12516 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12517 as_basename
=basename
12522 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
12528 as_me
=`$as_basename -- "$0" ||
12529 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12530 X"$0" : 'X\(//\)$' \| \
12531 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12533 sed '/^.*\/\([^/][^/]*\)\/*$/{
12547 # Avoid depending upon Character Ranges.
12548 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
12549 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12550 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
12551 as_cr_digits
='0123456789'
12552 as_cr_alnum
=$as_cr_Letters$as_cr_digits
12554 ECHO_C
= ECHO_N
= ECHO_T
=
12555 case `echo -n x` in #(((((
12557 case `echo 'xy\c'` in
12558 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
12560 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
12567 rm -f conf$$ conf$$.exe conf$$.
file
12568 if test -d conf$$.dir
; then
12569 rm -f conf$$.dir
/conf$$.
file
12572 mkdir conf$$.dir
2>/dev
/null
12574 if (echo >conf$$.
file) 2>/dev
/null
; then
12575 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
12577 # ... but there are two gotchas:
12578 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12579 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12580 # In both cases, we have to default to `cp -pR'.
12581 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
12583 elif ln conf$$.
file conf$$
2>/dev
/null
; then
12591 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
12592 rmdir conf$$.dir
2>/dev
/null
12597 # Create "$as_dir" as a directory, including parents if necessary.
12602 -*) as_dir
=.
/$as_dir;;
12604 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
12608 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12609 *) as_qdir
=$as_dir;;
12611 as_dirs
="'$as_qdir' $as_dirs"
12612 as_dir
=`$as_dirname -- "$as_dir" ||
12613 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12614 X"$as_dir" : 'X\(//\)[^/]' \| \
12615 X"$as_dir" : 'X\(//\)$' \| \
12616 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12617 $as_echo X"$as_dir" |
12618 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12622 /^X\(\/\/\)[^/].*/{
12635 test -d "$as_dir" && break
12637 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
12638 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
12642 if mkdir
-p .
2>/dev
/null
; then
12643 as_mkdir_p
='mkdir -p "$as_dir"'
12645 test -d .
/-p && rmdir .
/-p
12650 # as_fn_executable_p FILE
12651 # -----------------------
12652 # Test if FILE is an executable regular file.
12653 as_fn_executable_p
()
12655 test -f "$1" && test -x "$1"
12656 } # as_fn_executable_p
12657 as_test_x
='test -x'
12658 as_executable_p
=as_fn_executable_p
12660 # Sed expression to map a string onto a valid CPP name.
12661 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12663 # Sed expression to map a string onto a valid variable name.
12664 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12668 ## ----------------------------------- ##
12669 ## Main body of $CONFIG_STATUS script. ##
12670 ## ----------------------------------- ##
12672 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
12674 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
12675 # Save the log message, to keep $0 and so on meaningful, and to
12676 # report actual input values of CONFIG_FILES etc. instead of their
12677 # values after options handling.
12679 This file was extended by pcap $as_me 1.10.2-PRE-GIT, which was
12680 generated by GNU Autoconf 2.69. Invocation command line was
12682 CONFIG_FILES = $CONFIG_FILES
12683 CONFIG_HEADERS = $CONFIG_HEADERS
12684 CONFIG_LINKS = $CONFIG_LINKS
12685 CONFIG_COMMANDS = $CONFIG_COMMANDS
12688 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12693 case $ac_config_files in *"
12694 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
12697 case $ac_config_headers in *"
12698 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
12702 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12703 # Files that config.status was made for.
12704 config_files="$ac_config_files"
12705 config_headers="$ac_config_headers"
12706 config_commands="$ac_config_commands"
12710 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
12712 \`$as_me' instantiates files and other configuration actions
12713 from templates according to the current configuration. Unless the files
12714 and actions are specified as TAGs, all are instantiated by default.
12716 Usage: $0 [OPTION]... [TAG]...
12718 -h, --help print this help, then exit
12719 -V, --version print version number and configuration settings, then exit
12720 --config print configuration, then exit
12721 -q, --quiet, --silent
12722 do not print progress messages
12723 -d, --debug don't remove temporary files
12724 --recheck update $as_me by reconfiguring in the same conditions
12725 --file=FILE[:TEMPLATE]
12726 instantiate the configuration file FILE
12727 --header=FILE[:TEMPLATE]
12728 instantiate the configuration header FILE
12730 Configuration files:
12733 Configuration headers:
12736 Configuration commands:
12739 Report bugs to the package provider."
12742 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12743 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12745 pcap config.status 1.10.2-PRE-GIT
12746 configured by $0, generated by GNU Autoconf 2.69,
12747 with options \\"\$ac_cs_config\\"
12749 Copyright (C) 2012 Free Software Foundation, Inc.
12750 This config.status script is free software; the Free Software Foundation
12751 gives unlimited permission to copy, distribute and modify it."
12756 test -n "\$AWK" || AWK=awk
12759 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
12760 # The default lists apply if the user does not specify any file.
12766 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
12767 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
12771 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
12783 # Handling of the options.
12784 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
12786 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
12787 $as_echo "$ac_cs_version"; exit ;;
12788 --config |
--confi |
--conf |
--con |
--co |
--c )
12789 $as_echo "$ac_cs_config"; exit ;;
12790 --debug |
--debu |
--deb |
--de |
--d |
-d )
12792 --file |
--fil |
--fi |
--f )
12795 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12796 '') as_fn_error $?
"missing file argument" ;;
12798 as_fn_append CONFIG_FILES
" '$ac_optarg'"
12799 ac_need_defaults
=false
;;
12800 --header |
--heade |
--head |
--hea )
12803 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12805 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
12806 ac_need_defaults
=false
;;
12808 # Conflict between --help and --header
12809 as_fn_error $?
"ambiguous option: \`$1'
12810 Try \`$0 --help' for more information.";;
12811 --help |
--hel |
-h )
12812 $as_echo "$ac_cs_usage"; exit ;;
12813 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
12814 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
12817 # This is an error.
12818 -*) as_fn_error $?
"unrecognized option: \`$1'
12819 Try \`$0 --help' for more information." ;;
12821 *) as_fn_append ac_config_targets
" $1"
12822 ac_need_defaults
=false
;;
12828 ac_configure_extra_args
=
12830 if $ac_cs_silent; then
12832 ac_configure_extra_args
="$ac_configure_extra_args --silent"
12836 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12837 if \$ac_cs_recheck; then
12838 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12840 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12841 CONFIG_SHELL='$SHELL'
12842 export CONFIG_SHELL
12847 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
12851 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12852 ## Running $as_me. ##
12858 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12866 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
12868 # Handling of arguments.
12869 for ac_config_target
in $ac_config_targets
12871 case $ac_config_target in
12872 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
12873 "default-1") CONFIG_COMMANDS
="$CONFIG_COMMANDS default-1" ;;
12874 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
12875 "grammar.y") CONFIG_FILES
="$CONFIG_FILES grammar.y" ;;
12876 "pcap-filter.manmisc") CONFIG_FILES
="$CONFIG_FILES pcap-filter.manmisc" ;;
12877 "pcap-linktype.manmisc") CONFIG_FILES
="$CONFIG_FILES pcap-linktype.manmisc" ;;
12878 "pcap-tstamp.manmisc") CONFIG_FILES
="$CONFIG_FILES pcap-tstamp.manmisc" ;;
12879 "pcap-savefile.manfile") CONFIG_FILES
="$CONFIG_FILES pcap-savefile.manfile" ;;
12880 "pcap.3pcap") CONFIG_FILES
="$CONFIG_FILES pcap.3pcap" ;;
12881 "pcap_compile.3pcap") CONFIG_FILES
="$CONFIG_FILES pcap_compile.3pcap" ;;
12882 "pcap_datalink.3pcap") CONFIG_FILES
="$CONFIG_FILES pcap_datalink.3pcap" ;;
12883 "pcap_dump_open.3pcap") CONFIG_FILES
="$CONFIG_FILES pcap_dump_open.3pcap" ;;
12884 "pcap_get_tstamp_precision.3pcap") CONFIG_FILES
="$CONFIG_FILES pcap_get_tstamp_precision.3pcap" ;;
12885 "pcap_list_datalinks.3pcap") CONFIG_FILES
="$CONFIG_FILES pcap_list_datalinks.3pcap" ;;
12886 "pcap_list_tstamp_types.3pcap") CONFIG_FILES
="$CONFIG_FILES pcap_list_tstamp_types.3pcap" ;;
12887 "pcap_open_dead.3pcap") CONFIG_FILES
="$CONFIG_FILES pcap_open_dead.3pcap" ;;
12888 "pcap_open_offline.3pcap") CONFIG_FILES
="$CONFIG_FILES pcap_open_offline.3pcap" ;;
12889 "pcap_set_immediate_mode.3pcap") CONFIG_FILES
="$CONFIG_FILES pcap_set_immediate_mode.3pcap" ;;
12890 "pcap_set_tstamp_precision.3pcap") CONFIG_FILES
="$CONFIG_FILES pcap_set_tstamp_precision.3pcap" ;;
12891 "pcap_set_tstamp_type.3pcap") CONFIG_FILES
="$CONFIG_FILES pcap_set_tstamp_type.3pcap" ;;
12892 "rpcapd/Makefile") CONFIG_FILES
="$CONFIG_FILES rpcapd/Makefile" ;;
12893 "rpcapd/rpcapd.manadmin") CONFIG_FILES
="$CONFIG_FILES rpcapd/rpcapd.manadmin" ;;
12894 "rpcapd/rpcapd-config.manfile") CONFIG_FILES
="$CONFIG_FILES rpcapd/rpcapd-config.manfile" ;;
12895 "testprogs/Makefile") CONFIG_FILES
="$CONFIG_FILES testprogs/Makefile" ;;
12897 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12902 # If the user did not use the arguments to specify the items to instantiate,
12903 # then the envvar interface is used. Set only those that are not.
12904 # We use the long form for the default assignment because of an extremely
12905 # bizarre bug on SunOS 4.1.3.
12906 if $ac_need_defaults; then
12907 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
12908 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
12909 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
12912 # Have a temporary directory for convenience. Make it in the build tree
12913 # simply because there is no reason against having it here, and in addition,
12914 # creating and moving files from /tmp can sometimes cause problems.
12915 # Hook for its removal unless debugging.
12916 # Note that there is a small window in which the directory will not be cleaned:
12917 # after its creation but before its name has been assigned to `$tmp'.
12921 trap 'exit_status=$?
12922 : "${ac_tmp:=$tmp}"
12923 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12925 trap 'as_fn_exit 1' 1 2 13 15
12927 # Create a (secure) tmp directory for tmp files.
12930 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12934 tmp
=.
/conf$$
-$RANDOM
12935 (umask 077 && mkdir
"$tmp")
12936 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
12939 # Set up the scripts for CONFIG_FILES section.
12940 # No need to generate them if there are no CONFIG_FILES.
12941 # This happens for instance with `./config.status config.h'.
12942 if test -n "$CONFIG_FILES"; then
12945 ac_cr
=`echo X | tr X '\015'`
12946 # On cygwin, bash can eat \r inside `` if the user requested igncr.
12947 # But we know of no other shell where ac_cr would be empty at this
12948 # point, so we can use a bashism as a fallback.
12949 if test "x$ac_cr" = x
; then
12950 eval ac_cr
=\$
\'\\r
\'
12952 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12953 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12956 ac_cs_awk_cr
=$ac_cr
12959 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12964 echo "cat >conf$$subs.awk <<_ACEOF" &&
12965 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12967 } >conf$$subs.sh ||
12968 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
12969 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12971 for ac_last_try in false false false false false :; do
12972 . ./conf$$subs.sh ||
12973 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
12975 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
12976 if test $ac_delim_n = $ac_delim_num; then
12978 elif $ac_last_try; then
12979 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
12981 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
12984 rm -f conf$$subs.sh
12986 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12987 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
12991 s/^/S["/; s
/!.
*/"]=/
13001 s/\(.\{148\}\)..*/\1/
13003 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
13008 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
13015 s/\(.\{148\}\)..*/\1/
13017 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
13021 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
13026 ' <conf$$subs.awk | sed '
13031 ' >>$CONFIG_STATUS || ac_write_fail=1
13032 rm -f conf$$subs.awk
13033 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13035 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
13036 for (key in S) S_is_set[key] = 1
13042 nfields = split(line, field, "@
")
13044 len = length(field[1])
13045 for (i = 2; i < nfields; i++) {
13047 keylen = length(key)
13048 if (S_is_set[key]) {
13050 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13051 len += length(value) + length(field[++i])
13062 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13063 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13064 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
13067 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
13068 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
13071 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13072 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
13073 # trailing colons and then remove the whole line if VPATH becomes empty
13074 # (actually we leave an empty line to preserve line numbers).
13075 if test "x
$srcdir" = x.; then
13076 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
13094 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13095 fi # test -n "$CONFIG_FILES"
13097 # Set up the scripts for CONFIG_HEADERS section.
13098 # No need to generate them if there are no CONFIG_HEADERS.
13099 # This happens for instance with `./config.status Makefile'.
13100 if test -n "$CONFIG_HEADERS"; then
13101 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
13105 # Transform confdefs.h into an awk script `defines.awk', embedded as
13106 # here-document in config.status, that substitutes the proper values into
13107 # config.h.in to produce config.h.
13109 # Create a delimiter string that does not exist in confdefs.h, to ease
13110 # handling of long lines.
13112 for ac_last_try in false false :; do
13113 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
13114 if test -z "$ac_tt"; then
13116 elif $ac_last_try; then
13117 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
13119 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
13123 # For the awk script, D is an array of macro values keyed by name,
13124 # likewise P contains macro parameters if any. Preserve backslash
13125 # newline sequences.
13127 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13129 s/.\{148\}/&'"$ac_delim"'/g
13132 s/^[ ]*#[ ]*define[ ][ ]*/ /
13139 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
13141 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
13145 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
13146 D["\
1"]=" \
3\\\\\\n
"\\/p
13148 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
13153 s/.\{148\}/&'"$ac_delim"'/g
13158 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
13161 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
13163 ' <confdefs.h | sed '
13164 s/'"$ac_delim"'/"\\\
13165 "/g' >>$CONFIG_STATUS || ac_write_fail=1
13167 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13168 for (key in D) D_is_set[key] = 1
13171 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13173 split(line, arg, " ")
13174 if (arg[1] == "#") {
13178 defundef
= substr
(arg
[1], 2)
13181 split(mac1
, mac2
, "(") #)
13183 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
13184 if (D_is_set
[macro
]) {
13185 # Preserve the white space surrounding the "#".
13186 print prefix
"define", macro P
[macro
] D
[macro
]
13189 # Replace #undef with comments. This is necessary, for example,
13190 # in the case of _POSIX_SOURCE, which is predefined and required
13191 # on some systems where configure will not decide to define it.
13192 if (defundef
== "undef") {
13193 print
"/*", prefix defundef
, macro
, "*/"
13201 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
13202 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
13203 fi # test -n "$CONFIG_HEADERS"
13206 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13211 :[FHLC
]) ac_mode
=$ac_tag; continue;;
13213 case $ac_mode$ac_tag in
13215 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
13216 :[FH
]-) ac_tag
=-:-;;
13217 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
13234 -) ac_f
="$ac_tmp/stdin";;
13235 *) # Look for the file first in the build tree, then in the source tree
13236 # (if the path is not absolute). The absolute path cannot be DOS-style,
13237 # because $ac_f cannot contain `:'.
13241 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
13243 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13245 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13246 as_fn_append ac_file_inputs
" '$ac_f'"
13249 # Let's still pretend it is `configure' which instantiates (i.e., don't
13250 # use $as_me), people would be surprised to read:
13251 # /* config.h. Generated by config.status. */
13252 configure_input
='Generated from '`
13253 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13255 if test x
"$ac_file" != x-
; then
13256 configure_input
="$ac_file. $configure_input"
13257 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13258 $as_echo "$as_me: creating $ac_file" >&6;}
13260 # Neutralize special characters interpreted by sed in replacement strings.
13261 case $configure_input in #(
13262 *\
&* |
*\|
* |
*\\* )
13263 ac_sed_conf_input
=`$as_echo "$configure_input" |
13264 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13265 *) ac_sed_conf_input
=$configure_input;;
13269 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
13270 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
13275 ac_dir
=`$as_dirname -- "$ac_file" ||
13276 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13277 X"$ac_file" : 'X\(//\)[^/]' \| \
13278 X"$ac_file" : 'X\(//\)$' \| \
13279 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13280 $as_echo X"$ac_file" |
13281 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13285 /^X\(\/\/\)[^/].*/{
13298 as_dir
="$ac_dir"; as_fn_mkdir_p
13302 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
13304 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13305 # A ".." for each directory in $ac_dir_suffix.
13306 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13307 case $ac_top_builddir_sub in
13308 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
13309 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
13312 ac_abs_top_builddir
=$ac_pwd
13313 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
13314 # for backward compatibility:
13315 ac_top_builddir
=$ac_top_build_prefix
13318 .
) # We are building in place.
13320 ac_top_srcdir
=$ac_top_builddir_sub
13321 ac_abs_top_srcdir
=$ac_pwd ;;
13322 [\\/]* | ?
:[\\/]* ) # Absolute name.
13323 ac_srcdir
=$srcdir$ac_dir_suffix;
13324 ac_top_srcdir
=$srcdir
13325 ac_abs_top_srcdir
=$srcdir ;;
13326 *) # Relative name.
13327 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
13328 ac_top_srcdir
=$ac_top_build_prefix$srcdir
13329 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
13331 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
13341 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
13342 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
13346 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
13347 # If the template does not know about datarootdir, expand it.
13348 # FIXME: This hack should be removed a few years after 2.60.
13349 ac_datarootdir_hack
=; ac_datarootdir_seen
=
13360 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13361 *datarootdir
*) ac_datarootdir_seen
=yes;;
13362 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
13363 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13364 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13366 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13367 ac_datarootdir_hack='
13368 s&@datadir@&$datadir&g
13369 s&@docdir@&$docdir&g
13370 s&@infodir@&$infodir&g
13371 s&@localedir@&$localedir&g
13372 s&@mandir@&$mandir&g
13373 s&\\\${datarootdir}&$datarootdir&g' ;;
13377 # Neutralize VPATH when `$srcdir' = `.'.
13378 # Shell code in configure.ac might set extrasub.
13379 # FIXME: do we really want to maintain this feature?
13380 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13381 ac_sed_extra="$ac_vpsub
13384 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
13386 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
13387 s|@configure_input@|
$ac_sed_conf_input|
;t t
13388 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
13389 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
13390 s
&@srcdir@
&$ac_srcdir&;t t
13391 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
13392 s
&@top_srcdir@
&$ac_top_srcdir&;t t
13393 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
13394 s
&@builddir@
&$ac_builddir&;t t
13395 s
&@abs_builddir@
&$ac_abs_builddir&;t t
13396 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
13397 s
&@INSTALL@
&$ac_INSTALL&;t t
13398 $ac_datarootdir_hack
13400 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
13401 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
13403 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13404 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
13405 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
13406 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
13407 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
13408 which seems to be undefined. Please make sure it is defined" >&5
13409 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
13410 which seems to be undefined. Please make sure it is defined" >&2;}
13412 rm -f "$ac_tmp/stdin"
13414 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13415 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
13417 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13423 if test x"$ac_file" != x-; then
13425 $as_echo "/* $configure_input */" \
13426 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13427 } >"$ac_tmp/config.h" \
13428 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13429 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
13430 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13431 $as_echo "$as_me: $ac_file is unchanged" >&6;}
13434 mv "$ac_tmp/config.h" "$ac_file" \
13435 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13438 $as_echo "/* $configure_input */" \
13439 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13440 || as_fn_error $? "could not create -" "$LINENO" 5
13444 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13445 $as_echo "$as_me: executing $ac_file commands" >&6;}
13450 case $ac_file$ac_mode in
13451 "default-1":C) if test -f .devel; then
13452 echo timestamp > stamp-h
13453 cat $srcdir/Makefile-devel-adds >> Makefile
13454 make depend || exit 1
13463 ac_clean_files=$ac_clean_files_save
13465 test $ac_write_fail = 0 ||
13466 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
13469 # configure is writing to config.log, and then calls config.status.
13470 # config.status does its own redirection, appending to config.log.
13471 # Unfortunately, on DOS this fails, as config.log is still kept open
13472 # by configure, so config.status won't be able to
write to it
; its
13473 # output is simply discarded. So we exec the FD to /dev/null,
13474 # effectively closing config.log, so it can be properly (re)opened and
13475 # appended to by config.status. When coming back to configure, we
13476 # need to make the FD available again.
13477 if test "$no_create" != yes; then
13479 ac_config_status_args
=
13480 test "$silent" = yes &&
13481 ac_config_status_args
="$ac_config_status_args --quiet"
13483 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
13485 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13486 # would make configure fail if this is the last instruction.
13487 $ac_cs_success || as_fn_exit
1
13489 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
13490 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13491 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}