2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for pcap 1.9.1.
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.9.1'
581 PACKAGE_STRING='pcap 1.9.1'
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
627 PCAP_SUPPORT_RDMASNIFF
637 PCAP_SUPPORT_NETFILTER
679 PCAP_SUPPORT_PACKET_RING
733 program_transform_name
746 enable_option_checking
774 ac_precious_vars='build_alias
787 # Initialize some variables set by options.
789 ac_init_version=false
790 ac_unrecognized_opts=
792 # The variables have the same names as the options, with
793 # dashes changed to underlines.
801 program_transform_name=s,x,x,
809 # Installation directory options.
810 # These are left unexpanded so users can "make install exec_prefix=/foo"
811 # and all the variables that are supposed to be based on exec_prefix
812 # by default will actually change.
813 # Use braces instead of parens because sh, perl, etc. also accept them.
814 # (The list follows the same order as the GNU Coding Standards.)
815 bindir='${exec_prefix}/bin'
816 sbindir='${exec_prefix}/sbin'
817 libexecdir='${exec_prefix}/libexec'
818 datarootdir='${prefix}/share'
819 datadir='${datarootdir}'
820 sysconfdir='${prefix}/etc'
821 sharedstatedir='${prefix}/com'
822 localstatedir='${prefix}/var'
823 runstatedir='${localstatedir}/run'
824 includedir='${prefix}/include'
825 oldincludedir='/usr/include'
826 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
827 infodir='${datarootdir}/info'
832 libdir='${exec_prefix}/lib'
833 localedir='${datarootdir}/locale'
834 mandir='${datarootdir}/man'
840 # If the previous option needs an argument, assign it.
841 if test -n "$ac_prev"; then
842 eval $ac_prev=\$ac_option
848 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
853 # Accept the important Cygnus configure options, so we can diagnose typos.
855 case $ac_dashdash$ac_option in
859 -bindir | --bindir | --bindi | --bind | --bin | --bi)
861 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
864 -build | --build | --buil | --bui | --bu)
865 ac_prev=build_alias ;;
866 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
867 build_alias=$ac_optarg ;;
869 -cache-file | --cache-file | --cache-fil | --cache-fi \
870 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
871 ac_prev=cache_file ;;
872 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
873 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
874 cache_file=$ac_optarg ;;
877 cache_file=config.cache ;;
879 -datadir | --datadir | --datadi | --datad)
881 -datadir=* | --datadir=* | --datadi=* | --datad=*)
882 datadir=$ac_optarg ;;
884 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
885 | --dataroo | --dataro | --datar)
886 ac_prev=datarootdir ;;
887 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
888 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
889 datarootdir=$ac_optarg ;;
891 -disable-* | --disable-*)
892 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
893 # Reject names that are not valid shell variable names.
894 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
895 as_fn_error $? "invalid feature name: $ac_useropt"
896 ac_useropt_orig=$ac_useropt
897 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
898 case $ac_user_opts in
902 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
903 ac_unrecognized_sep=', ';;
905 eval enable_$ac_useropt=no ;;
907 -docdir | --docdir | --docdi | --doc | --do)
909 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
912 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
914 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
917 -enable-* | --enable-*)
918 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
919 # Reject names that are not valid shell variable names.
920 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
921 as_fn_error $? "invalid feature name: $ac_useropt"
922 ac_useropt_orig=$ac_useropt
923 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
924 case $ac_user_opts in
928 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
929 ac_unrecognized_sep=', ';;
931 eval enable_$ac_useropt=\$ac_optarg ;;
933 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
934 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
935 | --exec | --exe | --ex)
936 ac_prev=exec_prefix ;;
937 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
938 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
939 | --exec=* | --exe=* | --ex=*)
940 exec_prefix=$ac_optarg ;;
942 -gas | --gas | --ga | --g)
943 # Obsolete; use --with-gas.
946 -help | --help | --hel | --he | -h)
948 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
949 ac_init_help=recursive ;;
950 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
951 ac_init_help=short ;;
953 -host | --host | --hos | --ho)
954 ac_prev=host_alias ;;
955 -host=* | --host=* | --hos=* | --ho=*)
956 host_alias=$ac_optarg ;;
958 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
960 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
962 htmldir=$ac_optarg ;;
964 -includedir | --includedir | --includedi | --included | --include \
965 | --includ | --inclu | --incl | --inc)
966 ac_prev=includedir ;;
967 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
968 | --includ=* | --inclu=* | --incl=* | --inc=*)
969 includedir=$ac_optarg ;;
971 -infodir | --infodir | --infodi | --infod | --info | --inf)
973 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
974 infodir=$ac_optarg ;;
976 -libdir | --libdir | --libdi | --libd)
978 -libdir=* | --libdir=* | --libdi=* | --libd=*)
981 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
982 | --libexe | --libex | --libe)
983 ac_prev=libexecdir ;;
984 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
985 | --libexe=* | --libex=* | --libe=*)
986 libexecdir=$ac_optarg ;;
988 -localedir | --localedir | --localedi | --localed | --locale)
990 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
991 localedir=$ac_optarg ;;
993 -localstatedir | --localstatedir | --localstatedi | --localstated \
994 | --localstate | --localstat | --localsta | --localst | --locals)
995 ac_prev=localstatedir ;;
996 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
997 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
998 localstatedir=$ac_optarg ;;
1000 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1002 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1003 mandir=$ac_optarg ;;
1005 -nfp | --nfp | --nf)
1006 # Obsolete; use --without-fp.
1009 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1010 | --no-cr | --no-c | -n)
1013 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1014 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1017 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1018 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1019 | --oldin | --oldi | --old | --ol | --o)
1020 ac_prev=oldincludedir ;;
1021 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1022 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1023 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1024 oldincludedir=$ac_optarg ;;
1026 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1028 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1029 prefix=$ac_optarg ;;
1031 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1032 | --program-pre | --program-pr | --program-p)
1033 ac_prev=program_prefix ;;
1034 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1035 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1036 program_prefix=$ac_optarg ;;
1038 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1039 | --program-suf | --program-su | --program-s)
1040 ac_prev=program_suffix ;;
1041 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1042 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1043 program_suffix=$ac_optarg ;;
1045 -program-transform-name | --program-transform-name \
1046 | --program-transform-nam | --program-transform-na \
1047 | --program-transform-n | --program-transform- \
1048 | --program-transform | --program-transfor \
1049 | --program-transfo | --program-transf \
1050 | --program-trans | --program-tran \
1051 | --progr-tra | --program-tr | --program-t)
1052 ac_prev=program_transform_name ;;
1053 -program-transform-name=* | --program-transform-name=* \
1054 | --program-transform-nam=* | --program-transform-na=* \
1055 | --program-transform-n=* | --program-transform-=* \
1056 | --program-transform=* | --program-transfor=* \
1057 | --program-transfo=* | --program-transf=* \
1058 | --program-trans=* | --program-tran=* \
1059 | --progr-tra=* | --program-tr=* | --program-t=*)
1060 program_transform_name=$ac_optarg ;;
1062 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1064 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1065 pdfdir=$ac_optarg ;;
1067 -psdir | --psdir | --psdi | --psd | --ps)
1069 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1072 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1073 | -silent | --silent | --silen | --sile | --sil)
1076 -runstatedir | --runstatedir | --runstatedi | --runstated \
1077 | --runstate | --runstat | --runsta | --runst | --runs \
1078 | --run | --ru | --r)
1079 ac_prev=runstatedir ;;
1080 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1081 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1082 | --run=* | --ru=* | --r=*)
1083 runstatedir=$ac_optarg ;;
1085 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1087 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1089 sbindir=$ac_optarg ;;
1091 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1092 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1093 | --sharedst | --shareds | --shared | --share | --shar \
1095 ac_prev=sharedstatedir ;;
1096 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1097 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1098 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1100 sharedstatedir=$ac_optarg ;;
1102 -site | --site | --sit)
1104 -site=* | --site=* | --sit=*)
1107 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1109 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1110 srcdir=$ac_optarg ;;
1112 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1113 | --syscon | --sysco | --sysc | --sys | --sy)
1114 ac_prev=sysconfdir ;;
1115 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1116 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1117 sysconfdir=$ac_optarg ;;
1119 -target | --target | --targe | --targ | --tar | --ta | --t)
1120 ac_prev=target_alias ;;
1121 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1122 target_alias=$ac_optarg ;;
1124 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1127 -version | --version | --versio | --versi | --vers | -V)
1128 ac_init_version=: ;;
1131 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1132 # Reject names that are not valid shell variable names.
1133 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1134 as_fn_error $? "invalid package name: $ac_useropt"
1135 ac_useropt_orig=$ac_useropt
1136 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1137 case $ac_user_opts in
1141 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1142 ac_unrecognized_sep=', ';;
1144 eval with_$ac_useropt=\$ac_optarg ;;
1146 -without-* | --without-*)
1147 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1148 # Reject names that are not valid shell variable names.
1149 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1150 as_fn_error $? "invalid package name: $ac_useropt"
1151 ac_useropt_orig=$ac_useropt
1152 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1153 case $ac_user_opts in
1157 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1158 ac_unrecognized_sep=', ';;
1160 eval with_$ac_useropt=no ;;
1163 # Obsolete; use --with-x.
1166 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1167 | --x-incl | --x-inc | --x-in | --x-i)
1168 ac_prev=x_includes ;;
1169 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1170 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1171 x_includes=$ac_optarg ;;
1173 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1174 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1175 ac_prev=x_libraries ;;
1176 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1177 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1178 x_libraries=$ac_optarg ;;
1180 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1181 Try \`$0 --help' for more information"
1185 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1186 # Reject names that are not valid shell variable names.
1187 case $ac_envvar in #(
1188 '' | [0-9]* | *[!_$as_cr_alnum]* )
1189 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1191 eval $ac_envvar=\$ac_optarg
1192 export $ac_envvar ;;
1195 # FIXME: should be removed in autoconf 3.0.
1196 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1197 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1198 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1199 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1205 if test -n "$ac_prev"; then
1206 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1207 as_fn_error $? "missing argument to $ac_option"
1210 if test -n "$ac_unrecognized_opts"; then
1211 case $enable_option_checking in
1213 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1214 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1218 # Check all directory arguments for consistency.
1219 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1220 datadir sysconfdir sharedstatedir localstatedir includedir \
1221 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1222 libdir localedir mandir runstatedir
1224 eval ac_val=\$$ac_var
1225 # Remove trailing slashes.
1228 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1229 eval $ac_var=\$ac_val;;
1231 # Be sure to have absolute directory names.
1233 [\\/$]* | ?:[\\/]* ) continue;;
1234 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1236 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1239 # There might be people who depend on the old broken behavior: `$host'
1240 # used to hold the argument of --host etc.
1241 # FIXME: To remove some day.
1244 target=$target_alias
1246 # FIXME: To remove some day.
1247 if test "x$host_alias" != x; then
1248 if test "x$build_alias" = x; then
1249 cross_compiling=maybe
1250 elif test "x$build_alias" != "x$host_alias"; then
1256 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1258 test "$silent" = yes && exec 6>/dev/null
1261 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1262 ac_ls_di=`ls -di .` &&
1263 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1264 as_fn_error $? "working directory cannot be determined"
1265 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1266 as_fn_error $? "pwd does not report name of working directory"
1269 # Find the source files, if location was not specified.
1270 if test -z "$srcdir"; then
1271 ac_srcdir_defaulted=yes
1272 # Try the directory containing this script, then the parent directory.
1273 ac_confdir=`$as_dirname -- "$as_myself" ||
1274 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1275 X"$as_myself" : 'X\(//\)[^/]' \| \
1276 X"$as_myself" : 'X\(//\)$' \| \
1277 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1278 $as_echo X"$as_myself" |
1279 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1297 if test ! -r "$srcdir/$ac_unique_file"; then
1301 ac_srcdir_defaulted=no
1303 if test ! -r "$srcdir/$ac_unique_file"; then
1304 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1305 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1307 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1309 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1311 # When building in place, set srcdir=.
1312 if test "$ac_abs_confdir" = "$ac_pwd"; then
1315 # Remove unnecessary trailing slashes from srcdir.
1316 # Double slashes in file names in object file debugging info
1317 # mess up M-x gdb in Emacs.
1319 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1321 for ac_var in $ac_precious_vars; do
1322 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1323 eval ac_env_${ac_var}_value=\$${ac_var}
1324 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1325 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1329 # Report the --help message.
1331 if test "$ac_init_help" = "long"; then
1332 # Omit some internal or obsolete options to make the list less imposing.
1333 # This message is too long to be a string in the A/UX 3.1 sh.
1335 \`configure' configures pcap 1.9.1 to adapt to many kinds of systems.
1337 Usage: $0 [OPTION]... [VAR=VALUE]...
1339 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1340 VAR=VALUE. See below for descriptions of some of the useful variables.
1342 Defaults for the options are specified in brackets.
1345 -h, --help display this help and exit
1346 --help=short display options specific to this package
1347 --help=recursive display the short help of all the included packages
1348 -V, --version display version information and exit
1349 -q, --quiet, --silent do not print \`checking ...' messages
1350 --cache-file=FILE cache test results in FILE [disabled]
1351 -C, --config-cache alias for \`--cache-file=config.cache'
1352 -n, --no-create do not create output files
1353 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1355 Installation directories:
1356 --prefix=PREFIX install architecture-independent files in PREFIX
1357 [$ac_default_prefix]
1358 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1361 By default, \`make install' will install all the files in
1362 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1363 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1364 for instance \`--prefix=\$HOME'.
1366 For better control, use the options below.
1368 Fine tuning of the installation directories:
1369 --bindir=DIR user executables [EPREFIX/bin]
1370 --sbindir=DIR system admin executables [EPREFIX/sbin]
1371 --libexecdir=DIR program executables [EPREFIX/libexec]
1372 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1373 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1374 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1375 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1376 --libdir=DIR object code libraries [EPREFIX/lib]
1377 --includedir=DIR C header files [PREFIX/include]
1378 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1379 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1380 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1381 --infodir=DIR info documentation [DATAROOTDIR/info]
1382 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1383 --mandir=DIR man documentation [DATAROOTDIR/man]
1384 --docdir=DIR documentation root [DATAROOTDIR/doc/pcap]
1385 --htmldir=DIR html documentation [DOCDIR]
1386 --dvidir=DIR dvi documentation [DOCDIR]
1387 --pdfdir=DIR pdf documentation [DOCDIR]
1388 --psdir=DIR ps documentation [DOCDIR]
1394 --build=BUILD configure for building on BUILD [guessed]
1395 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1396 --target=TARGET configure for building compilers for TARGET [HOST]
1400 if test -n "$ac_init_help"; then
1401 case $ac_init_help in
1402 short | recursive ) echo "Configuration of pcap 1.9.1:";;
1407 --disable-option-checking ignore unrecognized --enable/--with options
1408 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1409 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1410 --disable-largefile omit support for large files
1411 --disable-protochain disable \"protochain\" insn
1412 --enable-packet-ring enable packet ring support on Linux [default=yes]
1413 --enable-ipv6 build IPv6-capable version [default=yes]
1414 --enable-remote enable remote packet capture [default=no]
1415 --disable-remote disable remote packet capture
1416 --enable-optimizer-dbg build optimizer debugging code
1417 --enable-yydebug build parser debugging code
1418 --disable-universal don't build universal on macOS
1419 --enable-shared build shared libraries [default=yes, if support
1421 --enable-usb enable USB capture support [default=yes, if support
1423 --enable-netmap enable netmap support [default=yes, if support
1425 --enable-bluetooth enable Bluetooth support [default=yes, if support
1427 --enable-dbus enable D-Bus capture support [default=yes, if
1429 --enable-rdma enable RDMA capture support [default=yes, if support
1433 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1434 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1435 --without-gcc don't use gcc
1436 --with-sita include SITA support
1437 --with-pcap=TYPE use packet capture TYPE
1438 --without-libnl disable libnl support [default=yes, on Linux, if
1440 --with-dag[=DIR] include Endace DAG support (located in directory
1441 DIR, if supplied). [default=yes, if present]
1442 --with-dag-includes=IDIR
1443 Endace DAG include directory, if not DIR/include
1444 --with-dag-libraries=LDIR
1445 Endace DAG library directory, if not DIR/lib
1446 --with-septel[=DIR] include Septel support (located in directory DIR, if
1447 supplied). [default=yes, if present]
1448 --with-snf[=DIR] include Myricom SNF support (located in directory
1449 DIR, if supplied). [default=yes, if present]
1450 --with-snf-includes=IDIR
1451 Myricom SNF include directory, if not DIR/include
1452 --with-snf-libraries=LDIR
1453 Myricom SNF library directory, if not DIR/lib
1454 --with-turbocap[=DIR] include Riverbed TurboCap support (located in
1455 directory DIR, if supplied). [default=yes, if
1458 Some influential environment variables:
1459 CC C compiler command
1460 CFLAGS C compiler flags
1461 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1462 nonstandard directory <lib dir>
1463 LIBS libraries to pass to the linker, e.g. -l<library>
1464 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1465 you have headers in a nonstandard directory <include dir>
1467 YACC The `Yet Another Compiler Compiler' implementation to use.
1468 Defaults to the first program found out of: `bison -y', `byacc',
1470 YFLAGS The list of arguments that will be passed by default to $YACC.
1471 This script will default YFLAGS to the empty string to avoid a
1472 default value of `-d' given by some make applications.
1474 Use these variables to override the choices made by `configure' or to help
1475 it to find libraries and programs with nonstandard names/locations.
1477 Report bugs to the package provider.
1482 if test "$ac_init_help" = "recursive"; then
1483 # If there are subdirs, report their specific --help.
1484 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1485 test -d "$ac_dir" ||
1486 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1491 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1493 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1494 # A ".." for each directory in $ac_dir_suffix.
1495 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1496 case $ac_top_builddir_sub in
1497 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1498 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1501 ac_abs_top_builddir=$ac_pwd
1502 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1503 # for backward compatibility:
1504 ac_top_builddir=$ac_top_build_prefix
1507 .) # We are building in place.
1509 ac_top_srcdir=$ac_top_builddir_sub
1510 ac_abs_top_srcdir=$ac_pwd ;;
1511 [\\/]* | ?:[\\/]* ) # Absolute name.
1512 ac_srcdir=$srcdir$ac_dir_suffix;
1513 ac_top_srcdir=$srcdir
1514 ac_abs_top_srcdir=$srcdir ;;
1516 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1517 ac_top_srcdir=$ac_top_build_prefix$srcdir
1518 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1520 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1522 cd "$ac_dir" || { ac_status=$?; continue; }
1523 # Check for guested configure.
1524 if test -f "$ac_srcdir/configure.gnu"; then
1526 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1527 elif test -f "$ac_srcdir/configure"; then
1529 $SHELL "$ac_srcdir/configure" --help=recursive
1531 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1533 cd "$ac_pwd" || { ac_status=$?; break; }
1537 test -n "$ac_init_help" && exit $ac_status
1538 if $ac_init_version; then
1540 pcap configure 1.9.1
1541 generated by GNU Autoconf 2.69
1543 Copyright (C) 2012 Free Software Foundation, Inc.
1544 This configure script is free software; the Free Software Foundation
1545 gives unlimited permission to copy, distribute and modify it.
1550 ## ------------------------ ##
1551 ## Autoconf initialization. ##
1552 ## ------------------------ ##
1554 # ac_fn_c_try_compile LINENO
1555 # --------------------------
1556 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1557 ac_fn_c_try_compile ()
1559 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1560 rm -f conftest.$ac_objext
1561 if { { ac_try="$ac_compile"
1563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1564 *) ac_try_echo=$ac_try;;
1566 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1567 $as_echo "$ac_try_echo"; } >&5
1568 (eval "$ac_compile") 2>conftest.err
1570 if test -s conftest.err; then
1571 grep -v '^ *+' conftest.err >conftest.er1
1572 cat conftest.er1 >&5
1573 mv -f conftest.er1 conftest.err
1575 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1576 test $ac_status = 0; } && {
1577 test -z "$ac_c_werror_flag" ||
1578 test ! -s conftest.err
1579 } && test -s conftest.$ac_objext; then :
1582 $as_echo "$as_me: failed program was:" >&5
1583 sed 's/^/| /' conftest.$ac_ext >&5
1587 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1588 as_fn_set_status $ac_retval
1590 } # ac_fn_c_try_compile
1592 # ac_fn_c_try_link LINENO
1593 # -----------------------
1594 # Try to link conftest.$ac_ext, and return whether this succeeded.
1597 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1598 rm -f conftest.$ac_objext conftest$ac_exeext
1599 if { { ac_try="$ac_link"
1601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1602 *) ac_try_echo=$ac_try;;
1604 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1605 $as_echo "$ac_try_echo"; } >&5
1606 (eval "$ac_link") 2>conftest.err
1608 if test -s conftest.err; then
1609 grep -v '^ *+' conftest.err >conftest.er1
1610 cat conftest.er1 >&5
1611 mv -f conftest.er1 conftest.err
1613 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1614 test $ac_status = 0; } && {
1615 test -z "$ac_c_werror_flag" ||
1616 test ! -s conftest.err
1617 } && test -s conftest$ac_exeext && {
1618 test "$cross_compiling" = yes ||
1619 test -x conftest$ac_exeext
1623 $as_echo "$as_me: failed program was:" >&5
1624 sed 's/^/| /' conftest.$ac_ext >&5
1628 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1629 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1630 # interfere with the next link command; also delete a directory that is
1631 # left behind by Apple's compiler. We do this before executing the actions.
1632 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1633 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1634 as_fn_set_status $ac_retval
1636 } # ac_fn_c_try_link
1638 # ac_fn_c_try_cpp LINENO
1639 # ----------------------
1640 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1643 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1644 if { { ac_try="$ac_cpp conftest.$ac_ext"
1646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1647 *) ac_try_echo=$ac_try;;
1649 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1650 $as_echo "$ac_try_echo"; } >&5
1651 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1653 if test -s conftest.err; then
1654 grep -v '^ *+' conftest.err >conftest.er1
1655 cat conftest.er1 >&5
1656 mv -f conftest.er1 conftest.err
1658 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1659 test $ac_status = 0; } > conftest.i && {
1660 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1661 test ! -s conftest.err
1665 $as_echo "$as_me: failed program was:" >&5
1666 sed 's/^/| /' conftest.$ac_ext >&5
1670 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1671 as_fn_set_status $ac_retval
1675 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1676 # -------------------------------------------------------
1677 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1678 # the include files in INCLUDES and setting the cache variable VAR
1680 ac_fn_c_check_header_mongrel ()
1682 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1683 if eval \${$3+:} false; then :
1684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1685 $as_echo_n "checking for $2... " >&6; }
1686 if eval \${$3+:} false; then :
1687 $as_echo_n "(cached) " >&6
1690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1691 $as_echo "$ac_res" >&6; }
1693 # Is the header compilable?
1694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1695 $as_echo_n "checking $2 usability... " >&6; }
1696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1697 /* end confdefs.h. */
1701 if ac_fn_c_try_compile "$LINENO"; then :
1702 ac_header_compiler=yes
1704 ac_header_compiler=no
1706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1708 $as_echo "$ac_header_compiler" >&6; }
1710 # Is the header present?
1711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1712 $as_echo_n "checking $2 presence... " >&6; }
1713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1714 /* end confdefs.h. */
1717 if ac_fn_c_try_cpp "$LINENO"; then :
1718 ac_header_preproc=yes
1720 ac_header_preproc=no
1722 rm -f conftest.err conftest.i conftest.$ac_ext
1723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1724 $as_echo "$ac_header_preproc" >&6; }
1726 # So? What about this header?
1727 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1729 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1730 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1731 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1732 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1735 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1736 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1737 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1738 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1739 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1740 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1741 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1742 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1743 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1744 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1748 $as_echo_n "checking for $2... " >&6; }
1749 if eval \${$3+:} false; then :
1750 $as_echo_n "(cached) " >&6
1752 eval "$3=\$ac_header_compiler"
1755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1756 $as_echo "$ac_res" >&6; }
1758 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1760 } # ac_fn_c_check_header_mongrel
1762 # ac_fn_c_try_run LINENO
1763 # ----------------------
1764 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1765 # that executables *can* be run.
1768 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1769 if { { ac_try="$ac_link"
1771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1772 *) ac_try_echo=$ac_try;;
1774 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1775 $as_echo "$ac_try_echo"; } >&5
1776 (eval "$ac_link") 2>&5
1778 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1779 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1780 { { case "(($ac_try" in
1781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1782 *) ac_try_echo=$ac_try;;
1784 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1785 $as_echo "$ac_try_echo"; } >&5
1786 (eval "$ac_try") 2>&5
1788 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1789 test $ac_status = 0; }; }; then :
1792 $as_echo "$as_me: program exited with status $ac_status" >&5
1793 $as_echo "$as_me: failed program was:" >&5
1794 sed 's/^/| /' conftest.$ac_ext >&5
1796 ac_retval=$ac_status
1798 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1799 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1800 as_fn_set_status $ac_retval
1804 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1805 # -------------------------------------------------------
1806 # Tests whether HEADER exists and can be compiled using the include files in
1807 # INCLUDES, setting the cache variable VAR accordingly.
1808 ac_fn_c_check_header_compile ()
1810 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1812 $as_echo_n "checking for $2... " >&6; }
1813 if eval \${$3+:} false; then :
1814 $as_echo_n "(cached) " >&6
1816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1817 /* end confdefs.h. */
1821 if ac_fn_c_try_compile "$LINENO"; then :
1826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1830 $as_echo "$ac_res" >&6; }
1831 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1833 } # ac_fn_c_check_header_compile
1835 # ac_fn_c_check_func LINENO FUNC VAR
1836 # ----------------------------------
1837 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1838 ac_fn_c_check_func ()
1840 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1842 $as_echo_n "checking for $2... " >&6; }
1843 if eval \${$3+:} false; then :
1844 $as_echo_n "(cached) " >&6
1846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1847 /* end confdefs.h. */
1848 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1849 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1850 #define $2 innocuous_$2
1852 /* System header to define __stub macros and hopefully few prototypes,
1853 which can conflict with char $2 (); below.
1854 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1855 <limits.h> exists even on freestanding compilers. */
1858 # include <limits.h>
1860 # include <assert.h>
1865 /* Override any GCC internal prototype to avoid an error.
1866 Use char because int might match the return type of a GCC
1867 builtin and then its argument prototype would still apply. */
1872 /* The GNU C library defines this for functions which it implements
1873 to always fail with ENOSYS. Some functions are actually named
1874 something starting with __ and the normal name is an alias. */
1875 #if defined __stub_$2 || defined __stub___$2
1887 if ac_fn_c_try_link "$LINENO"; then :
1892 rm -f core conftest.err conftest.$ac_objext \
1893 conftest$ac_exeext conftest.$ac_ext
1896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1897 $as_echo "$ac_res" >&6; }
1898 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1900 } # ac_fn_c_check_func
1902 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1903 # ---------------------------------------------
1904 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1906 ac_fn_c_check_decl ()
1908 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1909 as_decl_name=`echo $2|sed 's/ *(.*//'`
1910 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1912 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1913 if eval \${$3+:} false; then :
1914 $as_echo_n "(cached) " >&6
1916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1917 /* end confdefs.h. */
1922 #ifndef $as_decl_name
1924 (void) $as_decl_use;
1926 (void) $as_decl_name;
1934 if ac_fn_c_try_compile "$LINENO"; then :
1939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1943 $as_echo "$ac_res" >&6; }
1944 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1946 } # ac_fn_c_check_decl
1948 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1949 # -------------------------------------------
1950 # Tests whether TYPE exists after having included INCLUDES, setting cache
1951 # variable VAR accordingly.
1952 ac_fn_c_check_type ()
1954 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1956 $as_echo_n "checking for $2... " >&6; }
1957 if eval \${$3+:} false; then :
1958 $as_echo_n "(cached) " >&6
1961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1962 /* end confdefs.h. */
1973 if ac_fn_c_try_compile "$LINENO"; then :
1974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1975 /* end confdefs.h. */
1986 if ac_fn_c_try_compile "$LINENO"; then :
1991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1997 $as_echo "$ac_res" >&6; }
1998 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2000 } # ac_fn_c_check_type
2002 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2003 # ----------------------------------------------------
2004 # Tries to find if the field MEMBER exists in type AGGR, after including
2005 # INCLUDES, setting cache variable VAR accordingly.
2006 ac_fn_c_check_member ()
2008 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2010 $as_echo_n "checking for $2.$3... " >&6; }
2011 if eval \${$4+:} false; then :
2012 $as_echo_n "(cached) " >&6
2014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2015 /* end confdefs.h. */
2027 if ac_fn_c_try_compile "$LINENO"; then :
2030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2031 /* end confdefs.h. */
2037 if (sizeof ac_aggr.$3)
2043 if ac_fn_c_try_compile "$LINENO"; then :
2048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2054 $as_echo "$ac_res" >&6; }
2055 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2057 } # ac_fn_c_check_member
2058 cat >config.log <<_ACEOF
2059 This file contains any messages produced by compilers while
2060 running configure, to aid debugging if configure makes a mistake.
2062 It was created by pcap $as_me 1.9.1, which was
2063 generated by GNU Autoconf 2.69. Invocation command line was
2075 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2076 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2077 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2078 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2079 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2081 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2082 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2084 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2085 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2086 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2087 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2088 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2089 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2090 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2098 test -z "$as_dir" && as_dir=.
2099 $as_echo "PATH: $as_dir"
2115 # Keep a trace of the command line.
2116 # Strip out --no-create and --no-recursion so they do not pile up.
2117 # Strip out --silent because we don't want to record it for future runs.
2118 # Also quote any args containing shell meta-characters.
2119 # Make two passes to allow for proper duplicate-argument suppression.
2123 ac_must_keep_next=false
2129 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2130 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2131 | -silent | --silent | --silen | --sile | --sil)
2134 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2137 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2139 as_fn_append ac_configure_args1 " '$ac_arg'"
2140 if test $ac_must_keep_next = true; then
2141 ac_must_keep_next=false # Got value, back to normal.
2144 *=* | --config-cache | -C | -disable-* | --disable-* \
2145 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2146 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2147 | -with-* | --with-* | -without-* | --without-* | --x)
2148 case "$ac_configure_args0 " in
2149 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2152 -* ) ac_must_keep_next=true ;;
2155 as_fn_append ac_configure_args " '$ac_arg'"
2160 { ac_configure_args0=; unset ac_configure_args0;}
2161 { ac_configure_args1=; unset ac_configure_args1;}
2163 # When interrupted or exit'd, cleanup temporary files, and complete
2164 # config.log. We remove comments because anyway the quotes in there
2165 # would cause problems or look ugly.
2166 # WARNING: Use '\'' to represent an apostrophe within the trap.
2167 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2168 trap 'exit_status=$?
2169 # Save into config.log some information that might help in debugging.
2173 $as_echo "## ---------------- ##
2174 ## Cache variables. ##
2175 ## ---------------- ##"
2177 # The following way of writing the cache mishandles newlines in values,
2179 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2180 eval ac_val=\$$ac_var
2184 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2185 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2188 _ | IFS | as_nl) ;; #(
2189 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2190 *) { eval $ac_var=; unset $ac_var;} ;;
2195 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2196 *${as_nl}ac_space=\ *)
2198 "s/'\''/'\''\\\\'\'''\''/g;
2199 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2202 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2209 $as_echo "## ----------------- ##
2210 ## Output variables. ##
2211 ## ----------------- ##"
2213 for ac_var in $ac_subst_vars
2215 eval ac_val=\$$ac_var
2217 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2219 $as_echo "$ac_var='\''$ac_val'\''"
2223 if test -n "$ac_subst_files"; then
2224 $as_echo "## ------------------- ##
2225 ## File substitutions. ##
2226 ## ------------------- ##"
2228 for ac_var in $ac_subst_files
2230 eval ac_val=\$$ac_var
2232 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2234 $as_echo "$ac_var='\''$ac_val'\''"
2239 if test -s confdefs.h; then
2240 $as_echo "## ----------- ##
2247 test "$ac_signal" != 0 &&
2248 $as_echo "$as_me: caught signal $ac_signal"
2249 $as_echo "$as_me: exit $exit_status"
2251 rm -f core *.core core.conftest.* &&
2252 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2255 for ac_signal in 1 2 13 15; do
2256 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2260 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2261 rm -f -r conftest* confdefs.h
2263 $as_echo "/* confdefs.h */" > confdefs.h
2265 # Predefined preprocessor variables.
2267 cat >>confdefs.h <<_ACEOF
2268 #define PACKAGE_NAME "$PACKAGE_NAME"
2271 cat >>confdefs.h <<_ACEOF
2272 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2275 cat >>confdefs.h <<_ACEOF
2276 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2279 cat >>confdefs.h <<_ACEOF
2280 #define PACKAGE_STRING "$PACKAGE_STRING"
2283 cat >>confdefs.h <<_ACEOF
2284 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2287 cat >>confdefs.h <<_ACEOF
2288 #define PACKAGE_URL "$PACKAGE_URL"
2292 # Let the site file select an alternate cache file if it wants to.
2293 # Prefer an explicitly selected file to automatically selected ones.
2296 if test -n "$CONFIG_SITE"; then
2297 # We do not want a PATH search for config.site.
2298 case $CONFIG_SITE in #((
2299 -*) ac_site_file1=./$CONFIG_SITE;;
2300 */*) ac_site_file1=$CONFIG_SITE;;
2301 *) ac_site_file1=./$CONFIG_SITE;;
2303 elif test "x$prefix" != xNONE; then
2304 ac_site_file1=$prefix/share/config.site
2305 ac_site_file2=$prefix/etc/config.site
2307 ac_site_file1=$ac_default_prefix/share/config.site
2308 ac_site_file2=$ac_default_prefix/etc/config.site
2310 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2312 test "x$ac_site_file" = xNONE && continue
2313 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2314 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2315 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2316 sed 's/^/| /' "$ac_site_file" >&5
2318 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2319 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2320 as_fn_error $? "failed to load site script $ac_site_file
2321 See \`config.log' for more details" "$LINENO" 5; }
2325 if test -r "$cache_file"; then
2326 # Some versions of bash will fail to source /dev/null (special files
2327 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2328 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2329 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2330 $as_echo "$as_me: loading cache $cache_file" >&6;}
2332 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2333 *) . "./$cache_file";;
2337 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2338 $as_echo "$as_me: creating cache $cache_file" >&6;}
2342 # Check that the precious variables saved in the cache have kept the same
2344 ac_cache_corrupted=false
2345 for ac_var in $ac_precious_vars; do
2346 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2347 eval ac_new_set=\$ac_env_${ac_var}_set
2348 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2349 eval ac_new_val=\$ac_env_${ac_var}_value
2350 case $ac_old_set,$ac_new_set in
2352 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2353 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2354 ac_cache_corrupted=: ;;
2356 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2357 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2358 ac_cache_corrupted=: ;;
2361 if test "x$ac_old_val" != "x$ac_new_val"; then
2362 # differences in whitespace do not lead to failure.
2363 ac_old_val_w=`echo x $ac_old_val`
2364 ac_new_val_w=`echo x $ac_new_val`
2365 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2366 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2367 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2368 ac_cache_corrupted=:
2370 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2371 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2372 eval $ac_var=\$ac_old_val
2374 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2375 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2376 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2377 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2380 # Pass precious variables to config.status.
2381 if test "$ac_new_set" = set; then
2383 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2384 *) ac_arg=$ac_var=$ac_new_val ;;
2386 case " $ac_configure_args " in
2387 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2388 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2392 if $ac_cache_corrupted; then
2393 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2394 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2395 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2396 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2397 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2399 ## -------------------- ##
2400 ## Main body of script. ##
2401 ## -------------------- ##
2404 ac_cpp='$CPP $CPPFLAGS'
2405 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2406 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2407 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2414 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2415 if test -f "$ac_dir/install-sh"; then
2417 ac_install_sh="$ac_aux_dir/install-sh -c"
2419 elif test -f "$ac_dir/install.sh"; then
2421 ac_install_sh="$ac_aux_dir/install.sh -c"
2423 elif test -f "$ac_dir/shtool"; then
2425 ac_install_sh="$ac_aux_dir/shtool install -c"
2429 if test -z "$ac_aux_dir"; then
2430 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2433 # These three variables are undocumented and unsupported,
2434 # and are intended to be withdrawn in a future Autoconf release.
2435 # They can cause serious problems if a builder's source tree is in a directory
2436 # whose full name contains unusual characters.
2437 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2438 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2439 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2442 # Make sure we can run config.sub.
2443 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2444 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2447 $as_echo_n "checking build system type... " >&6; }
2448 if ${ac_cv_build+:} false; then :
2449 $as_echo_n "(cached) " >&6
2451 ac_build_alias=$build_alias
2452 test "x$ac_build_alias" = x &&
2453 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2454 test "x$ac_build_alias" = x &&
2455 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2456 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2457 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2461 $as_echo "$ac_cv_build" >&6; }
2462 case $ac_cv_build in
2464 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2467 ac_save_IFS=$IFS; IFS='-'
2473 # Remember, the first character of IFS is used to create $*,
2474 # except with old shells:
2477 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2481 $as_echo_n "checking host system type... " >&6; }
2482 if ${ac_cv_host+:} false; then :
2483 $as_echo_n "(cached) " >&6
2485 if test "x$host_alias" = x; then
2486 ac_cv_host=$ac_cv_build
2488 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2489 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2494 $as_echo "$ac_cv_host" >&6; }
2497 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2500 ac_save_IFS=$IFS; IFS='-'
2506 # Remember, the first character of IFS is used to create $*,
2507 # except with old shells:
2510 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2514 $as_echo_n "checking target system type... " >&6; }
2515 if ${ac_cv_target+:} false; then :
2516 $as_echo_n "(cached) " >&6
2518 if test "x$target_alias" = x; then
2519 ac_cv_target=$ac_cv_host
2521 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2522 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2527 $as_echo "$ac_cv_target" >&6; }
2528 case $ac_cv_target in
2530 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2532 target=$ac_cv_target
2533 ac_save_IFS=$IFS; IFS='-'
2539 # Remember, the first character of IFS is used to create $*,
2540 # except with old shells:
2543 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2546 # The aliases save the names the user supplied, while $host etc.
2547 # will get canonicalized.
2548 test -n "$target_alias" &&
2549 test "$program_prefix$program_suffix$program_transform_name" = \
2551 program_prefix=${target_alias}-
2560 # Check whether --with-gcc was given.
2561 if test "${with_gcc+set}" = set; then :
2566 if test "${srcdir}" != "." ; then
2567 V_CCOPT="-I\$(srcdir)"
2569 if test "${CFLAGS+set}" = set; then
2570 LBL_CFLAGS="$CFLAGS"
2572 if test -z "$CC" ; then
2576 # Extract the first word of "shlicc2", so it can be a program name with args.
2577 set dummy shlicc2; ac_word=$2
2578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2579 $as_echo_n "checking for $ac_word... " >&6; }
2580 if ${ac_cv_prog_SHLICC2+:} false; then :
2581 $as_echo_n "(cached) " >&6
2583 if test -n "$SHLICC2"; then
2584 ac_cv_prog_SHLICC2="$SHLICC2" # Let the user override the test.
2586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2590 test -z "$as_dir" && as_dir=.
2591 for ac_exec_ext in '' $ac_executable_extensions; do
2592 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2593 ac_cv_prog_SHLICC2="yes"
2594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2601 test -z "$ac_cv_prog_SHLICC2" && ac_cv_prog_SHLICC2="no"
2604 SHLICC2=$ac_cv_prog_SHLICC2
2605 if test -n "$SHLICC2"; then
2606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHLICC2" >&5
2607 $as_echo "$SHLICC2" >&6; }
2609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2610 $as_echo "no" >&6; }
2614 if test $SHLICC2 = yes ; then
2621 if test -z "$CC" -a "$with_gcc" = no ; then
2627 # Try to enable as many C99 features as we can.
2628 # At minimum, we want C++/C99-style // comments.
2631 ac_cpp='$CPP $CPPFLAGS'
2632 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2633 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2634 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2635 if test -n "$ac_tool_prefix"; then
2636 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2637 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2639 $as_echo_n "checking for $ac_word... " >&6; }
2640 if ${ac_cv_prog_CC+:} false; then :
2641 $as_echo_n "(cached) " >&6
2643 if test -n "$CC"; then
2644 ac_cv_prog_CC="$CC" # Let the user override the test.
2646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2650 test -z "$as_dir" && as_dir=.
2651 for ac_exec_ext in '' $ac_executable_extensions; do
2652 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2653 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2664 if test -n "$CC"; then
2665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2666 $as_echo "$CC" >&6; }
2668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2669 $as_echo "no" >&6; }
2674 if test -z "$ac_cv_prog_CC"; then
2676 # Extract the first word of "gcc", so it can be a program name with args.
2677 set dummy gcc; ac_word=$2
2678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2679 $as_echo_n "checking for $ac_word... " >&6; }
2680 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2681 $as_echo_n "(cached) " >&6
2683 if test -n "$ac_ct_CC"; then
2684 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2690 test -z "$as_dir" && as_dir=.
2691 for ac_exec_ext in '' $ac_executable_extensions; do
2692 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2693 ac_cv_prog_ac_ct_CC="gcc"
2694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2703 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2704 if test -n "$ac_ct_CC"; then
2705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2706 $as_echo "$ac_ct_CC" >&6; }
2708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2709 $as_echo "no" >&6; }
2712 if test "x$ac_ct_CC" = x; then
2715 case $cross_compiling:$ac_tool_warned in
2717 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2718 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2719 ac_tool_warned=yes ;;
2727 if test -z "$CC"; then
2728 if test -n "$ac_tool_prefix"; then
2729 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2730 set dummy ${ac_tool_prefix}cc; ac_word=$2
2731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2732 $as_echo_n "checking for $ac_word... " >&6; }
2733 if ${ac_cv_prog_CC+:} false; then :
2734 $as_echo_n "(cached) " >&6
2736 if test -n "$CC"; then
2737 ac_cv_prog_CC="$CC" # Let the user override the test.
2739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2743 test -z "$as_dir" && as_dir=.
2744 for ac_exec_ext in '' $ac_executable_extensions; do
2745 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2746 ac_cv_prog_CC="${ac_tool_prefix}cc"
2747 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2757 if test -n "$CC"; then
2758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2759 $as_echo "$CC" >&6; }
2761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2762 $as_echo "no" >&6; }
2768 if test -z "$CC"; then
2769 # Extract the first word of "cc", so it can be a program name with args.
2770 set dummy cc; ac_word=$2
2771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2772 $as_echo_n "checking for $ac_word... " >&6; }
2773 if ${ac_cv_prog_CC+:} false; then :
2774 $as_echo_n "(cached) " >&6
2776 if test -n "$CC"; then
2777 ac_cv_prog_CC="$CC" # Let the user override the test.
2780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2784 test -z "$as_dir" && as_dir=.
2785 for ac_exec_ext in '' $ac_executable_extensions; do
2786 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2787 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2788 ac_prog_rejected=yes
2792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2799 if test $ac_prog_rejected = yes; then
2800 # We found a bogon in the path, so make sure we never use it.
2801 set dummy $ac_cv_prog_CC
2803 if test $# != 0; then
2804 # We chose a different compiler from the bogus one.
2805 # However, it has the same basename, so the bogon will be chosen
2806 # first if we set CC to just the basename; use the full file name.
2808 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2814 if test -n "$CC"; then
2815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2816 $as_echo "$CC" >&6; }
2818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2819 $as_echo "no" >&6; }
2824 if test -z "$CC"; then
2825 if test -n "$ac_tool_prefix"; then
2826 for ac_prog in cl.exe
2828 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2829 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2831 $as_echo_n "checking for $ac_word... " >&6; }
2832 if ${ac_cv_prog_CC+:} false; then :
2833 $as_echo_n "(cached) " >&6
2835 if test -n "$CC"; then
2836 ac_cv_prog_CC="$CC" # Let the user override the test.
2838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2842 test -z "$as_dir" && as_dir=.
2843 for ac_exec_ext in '' $ac_executable_extensions; do
2844 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2845 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2856 if test -n "$CC"; then
2857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2858 $as_echo "$CC" >&6; }
2860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2861 $as_echo "no" >&6; }
2865 test -n "$CC" && break
2868 if test -z "$CC"; then
2870 for ac_prog in cl.exe
2872 # Extract the first word of "$ac_prog", so it can be a program name with args.
2873 set dummy $ac_prog; ac_word=$2
2874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2875 $as_echo_n "checking for $ac_word... " >&6; }
2876 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2877 $as_echo_n "(cached) " >&6
2879 if test -n "$ac_ct_CC"; then
2880 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2886 test -z "$as_dir" && as_dir=.
2887 for ac_exec_ext in '' $ac_executable_extensions; do
2888 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2889 ac_cv_prog_ac_ct_CC="$ac_prog"
2890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2899 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2900 if test -n "$ac_ct_CC"; then
2901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2902 $as_echo "$ac_ct_CC" >&6; }
2904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2905 $as_echo "no" >&6; }
2909 test -n "$ac_ct_CC" && break
2912 if test "x$ac_ct_CC" = x; then
2915 case $cross_compiling:$ac_tool_warned in
2917 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2918 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2919 ac_tool_warned=yes ;;
2928 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2929 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2930 as_fn_error $? "no acceptable C compiler found in \$PATH
2931 See \`config.log' for more details" "$LINENO" 5; }
2933 # Provide some information about the compiler.
2934 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2937 for ac_option in --version -v -V -qversion; do
2938 { { ac_try="$ac_compiler $ac_option >&5"
2940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2941 *) ac_try_echo=$ac_try;;
2943 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2944 $as_echo "$ac_try_echo"; } >&5
2945 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2947 if test -s conftest.err; then
2949 ... rest of stderr output deleted ...
2950 10q' conftest.err >conftest.er1
2951 cat conftest.er1 >&5
2953 rm -f conftest.er1 conftest.err
2954 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2955 test $ac_status = 0; }
2958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2959 /* end confdefs.h. */
2969 ac_clean_files_save=$ac_clean_files
2970 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2971 # Try to create an executable without -o first, disregard a.out.
2972 # It will help us diagnose broken compilers, and finding out an intuition
2974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2975 $as_echo_n "checking whether the C compiler works... " >&6; }
2976 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2978 # The possible output files:
2979 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2982 for ac_file in $ac_files
2985 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2986 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2991 if { { ac_try="$ac_link_default"
2993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2994 *) ac_try_echo=$ac_try;;
2996 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2997 $as_echo "$ac_try_echo"; } >&5
2998 (eval "$ac_link_default") 2>&5
3000 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3001 test $ac_status = 0; }; then :
3002 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3003 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3004 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3005 # so that the user can short-circuit this test for compilers unknown to
3007 for ac_file in $ac_files ''
3009 test -f "$ac_file" || continue
3011 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3014 # We found the default executable, but exeext='' is most
3018 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3020 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3022 # We set ac_cv_exeext here because the later test for it is not
3023 # safe: cross compilers may not add the suffix if given an `-o'
3024 # argument, so we may need to know it at that point already.
3025 # Even if this section looks crufty: it has the advantage of
3032 test "$ac_cv_exeext" = no && ac_cv_exeext=
3037 if test -z "$ac_file"; then :
3038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3039 $as_echo "no" >&6; }
3040 $as_echo "$as_me: failed program was:" >&5
3041 sed 's/^/| /' conftest.$ac_ext >&5
3043 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3044 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3045 as_fn_error 77 "C compiler cannot create executables
3046 See \`config.log' for more details" "$LINENO" 5; }
3048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3049 $as_echo "yes" >&6; }
3051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3052 $as_echo_n "checking for C compiler default output file name... " >&6; }
3053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3054 $as_echo "$ac_file" >&6; }
3055 ac_exeext=$ac_cv_exeext
3057 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3058 ac_clean_files=$ac_clean_files_save
3059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3060 $as_echo_n "checking for suffix of executables... " >&6; }
3061 if { { ac_try="$ac_link"
3063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3064 *) ac_try_echo=$ac_try;;
3066 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3067 $as_echo "$ac_try_echo"; } >&5
3068 (eval "$ac_link") 2>&5
3070 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3071 test $ac_status = 0; }; then :
3072 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3073 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3074 # work properly (i.e., refer to `conftest.exe'), while it won't with
3076 for ac_file in conftest.exe conftest conftest.*; do
3077 test -f "$ac_file" || continue
3079 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3080 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3086 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3087 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3088 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3089 See \`config.log' for more details" "$LINENO" 5; }
3091 rm -f conftest conftest$ac_cv_exeext
3092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3093 $as_echo "$ac_cv_exeext" >&6; }
3095 rm -f conftest.$ac_ext
3096 EXEEXT=$ac_cv_exeext
3098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3099 /* end confdefs.h. */
3104 FILE *f = fopen ("conftest.out", "w");
3105 return ferror (f) || fclose (f) != 0;
3111 ac_clean_files="$ac_clean_files conftest.out"
3112 # Check that the compiler produces executables we can run. If not, either
3113 # the compiler is broken, or we cross compile.
3114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3115 $as_echo_n "checking whether we are cross compiling... " >&6; }
3116 if test "$cross_compiling" != yes; then
3117 { { ac_try="$ac_link"
3119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3120 *) ac_try_echo=$ac_try;;
3122 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3123 $as_echo "$ac_try_echo"; } >&5
3124 (eval "$ac_link") 2>&5
3126 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3127 test $ac_status = 0; }
3128 if { ac_try='./conftest$ac_cv_exeext'
3129 { { case "(($ac_try" in
3130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3131 *) ac_try_echo=$ac_try;;
3133 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3134 $as_echo "$ac_try_echo"; } >&5
3135 (eval "$ac_try") 2>&5
3137 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3138 test $ac_status = 0; }; }; then
3141 if test "$cross_compiling" = maybe; then
3144 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3145 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3146 as_fn_error $? "cannot run C compiled programs.
3147 If you meant to cross compile, use \`--host'.
3148 See \`config.log' for more details" "$LINENO" 5; }
3152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3153 $as_echo "$cross_compiling" >&6; }
3155 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3156 ac_clean_files=$ac_clean_files_save
3157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3158 $as_echo_n "checking for suffix of object files... " >&6; }
3159 if ${ac_cv_objext+:} false; then :
3160 $as_echo_n "(cached) " >&6
3162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3163 /* end confdefs.h. */
3173 rm -f conftest.o conftest.obj
3174 if { { ac_try="$ac_compile"
3176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3177 *) ac_try_echo=$ac_try;;
3179 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3180 $as_echo "$ac_try_echo"; } >&5
3181 (eval "$ac_compile") 2>&5
3183 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3184 test $ac_status = 0; }; then :
3185 for ac_file in conftest.o conftest.obj conftest.*; do
3186 test -f "$ac_file" || continue;
3188 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3189 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3194 $as_echo "$as_me: failed program was:" >&5
3195 sed 's/^/| /' conftest.$ac_ext >&5
3197 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3198 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3199 as_fn_error $? "cannot compute suffix of object files: cannot compile
3200 See \`config.log' for more details" "$LINENO" 5; }
3202 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3205 $as_echo "$ac_cv_objext" >&6; }
3206 OBJEXT=$ac_cv_objext
3208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3209 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3210 if ${ac_cv_c_compiler_gnu+:} false; then :
3211 $as_echo_n "(cached) " >&6
3213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3214 /* end confdefs.h. */
3227 if ac_fn_c_try_compile "$LINENO"; then :
3232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3233 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3237 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3238 if test $ac_compiler_gnu = yes; then
3243 ac_test_CFLAGS=${CFLAGS+set}
3244 ac_save_CFLAGS=$CFLAGS
3245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3246 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3247 if ${ac_cv_prog_cc_g+:} false; then :
3248 $as_echo_n "(cached) " >&6
3250 ac_save_c_werror_flag=$ac_c_werror_flag
3251 ac_c_werror_flag=yes
3254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3255 /* end confdefs.h. */
3265 if ac_fn_c_try_compile "$LINENO"; then :
3269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3270 /* end confdefs.h. */
3280 if ac_fn_c_try_compile "$LINENO"; then :
3283 ac_c_werror_flag=$ac_save_c_werror_flag
3285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3286 /* end confdefs.h. */
3296 if ac_fn_c_try_compile "$LINENO"; then :
3299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3304 ac_c_werror_flag=$ac_save_c_werror_flag
3306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3307 $as_echo "$ac_cv_prog_cc_g" >&6; }
3308 if test "$ac_test_CFLAGS" = set; then
3309 CFLAGS=$ac_save_CFLAGS
3310 elif test $ac_cv_prog_cc_g = yes; then
3311 if test "$GCC" = yes; then
3317 if test "$GCC" = yes; then
3323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3324 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3325 if ${ac_cv_prog_cc_c89+:} false; then :
3326 $as_echo_n "(cached) " >&6
3328 ac_cv_prog_cc_c89=no
3330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3331 /* end confdefs.h. */
3335 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3336 struct buf { int x; };
3337 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3338 static char *e (p, i)
3344 static char *f (char * (*g) (char **, int), char **p, ...)
3349 s = g (p, va_arg (v,int));
3354 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3355 function prototypes and stuff, but not '\xHH' hex character constants.
3356 These don't provoke an error unfortunately, instead are silently treated
3357 as 'x'. The following induces an error, until -std is added to get
3358 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3359 array size at least. It's necessary to write '\x00'==0 to get something
3360 that's true only with -std. */
3361 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3363 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3364 inside strings and character constants. */
3366 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3368 int test (int i, double x);
3369 struct s1 {int (*f) (int a);};
3370 struct s2 {int (*f) (double a);};
3371 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3377 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3382 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3383 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3385 CC="$ac_save_CC $ac_arg"
3386 if ac_fn_c_try_compile "$LINENO"; then :
3387 ac_cv_prog_cc_c89=$ac_arg
3389 rm -f core conftest.err conftest.$ac_objext
3390 test "x$ac_cv_prog_cc_c89" != "xno" && break
3392 rm -f conftest.$ac_ext
3397 case "x$ac_cv_prog_cc_c89" in
3399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3400 $as_echo "none needed" >&6; } ;;
3402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3403 $as_echo "unsupported" >&6; } ;;
3405 CC="$CC $ac_cv_prog_cc_c89"
3406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3407 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3409 if test "x$ac_cv_prog_cc_c89" != xno; then :
3414 ac_cpp='$CPP $CPPFLAGS'
3415 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3416 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3417 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3420 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3421 if ${ac_cv_prog_cc_c99+:} false; then :
3422 $as_echo_n "(cached) " >&6
3424 ac_cv_prog_cc_c99=no
3426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3427 /* end confdefs.h. */
3429 #include <stdbool.h>
3434 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3435 #define debug(...) fprintf (stderr, __VA_ARGS__)
3436 #define showlist(...) puts (#__VA_ARGS__)
3437 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3439 test_varargs_macros (void)
3444 debug ("X = %d\n", x);
3445 showlist (The first, second, and third items.);
3446 report (x>y, "x is %d but y is %d", x, y);
3449 // Check long long types.
3450 #define BIG64 18446744073709551615ull
3451 #define BIG32 4294967295ul
3452 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3454 your preprocessor is broken;
3458 your preprocessor is broken;
3460 static long long int bignum = -9223372036854775807LL;
3461 static unsigned long long int ubignum = BIG64;
3463 struct incomplete_array
3471 const wchar_t *name;
3475 typedef const char *ccp;
3478 test_restrict (ccp restrict text)
3480 // See if C++-style comments work.
3481 // Iterate through items via the restricted pointer.
3482 // Also check for declarations in for loops.
3483 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3488 // Check varargs and va_copy.
3490 test_varargs (const char *format, ...)
3493 va_start (args, format);
3495 va_copy (args_copy, args);
3506 str = va_arg (args_copy, const char *);
3509 number = va_arg (args_copy, int);
3512 fnumber = va_arg (args_copy, double);
3527 _Bool success = false;
3530 if (test_restrict ("String literal") == 0)
3532 char *restrict newvar = "Another string";
3535 test_varargs ("s, d' f .", "string", 65, 34.234);
3536 test_varargs_macros ();
3538 // Check flexible array members.
3539 struct incomplete_array *ia =
3540 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3542 for (int i = 0; i < ia->datasize; ++i)
3543 ia->data[i] = i * 1.234;
3545 // Check named initializers.
3546 struct named_init ni = {
3548 .name = L"Test wide string",
3549 .average = 543.34343,
3554 int dynamic_array[ni.number];
3555 dynamic_array[ni.number - 1] = 543;
3557 // work around unused variable warnings
3558 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3559 || dynamic_array[ni.number - 1] != 543);
3565 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
3567 CC="$ac_save_CC $ac_arg"
3568 if ac_fn_c_try_compile "$LINENO"; then :
3569 ac_cv_prog_cc_c99=$ac_arg
3571 rm -f core conftest.err conftest.$ac_objext
3572 test "x$ac_cv_prog_cc_c99" != "xno" && break
3574 rm -f conftest.$ac_ext
3579 case "x$ac_cv_prog_cc_c99" in
3581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3582 $as_echo "none needed" >&6; } ;;
3584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3585 $as_echo "unsupported" >&6; } ;;
3587 CC="$CC $ac_cv_prog_cc_c99"
3588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3589 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3591 if test "x$ac_cv_prog_cc_c99" != xno; then :
3596 if test "$ac_cv_prog_cc_c99" = "no"; then
3597 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The C compiler does not support C99; there may be compiler errors" >&5
3598 $as_echo "$as_me: WARNING: The C compiler does not support C99; there may be compiler errors" >&2;}
3605 if test "$GCC" = yes ; then
3607 # -Werror forces warnings to be errors.
3609 ac_lbl_cc_force_warning_errors=-Werror
3612 # Try to have the compiler default to hiding symbols,
3613 # so that only symbols explicitly exported with
3614 # PCAP_API will be visible outside (shared) libraries.
3617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -fvisibility=hidden option" >&5
3618 $as_echo_n "checking whether the compiler supports the -fvisibility=hidden option... " >&6; }
3619 save_CFLAGS="$CFLAGS"
3620 if expr "x-fvisibility=hidden" : "x-W.*" >/dev/null
3622 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -fvisibility=hidden"
3623 elif expr "x-fvisibility=hidden" : "x-f.*" >/dev/null
3625 CFLAGS="$CFLAGS -Werror -fvisibility=hidden"
3626 elif expr "x-fvisibility=hidden" : "x-m.*" >/dev/null
3628 CFLAGS="$CFLAGS -Werror -fvisibility=hidden"
3630 CFLAGS="$CFLAGS -fvisibility=hidden"
3632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3633 /* end confdefs.h. */
3643 if ac_fn_c_try_compile "$LINENO"; then :
3645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3646 $as_echo "yes" >&6; }
3647 can_add_to_cflags=yes
3649 # The compile supports this; do we have some C code for
3650 # which the warning should *not* appear?
3651 # We test the fourth argument because the third argument
3652 # could contain quotes, breaking the test.
3656 CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors"
3657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fvisibility=hidden " >&5
3658 $as_echo_n "checking whether -fvisibility=hidden ... " >&6; }
3659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3660 /* end confdefs.h. */
3663 if ac_fn_c_try_compile "$LINENO"; then :
3668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3669 $as_echo "no" >&6; }
3676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3677 $as_echo "yes" >&6; }
3678 can_add_to_cflags=no
3681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3683 CFLAGS="$save_CFLAGS"
3684 if test x"$can_add_to_cflags" = "xyes"
3686 V_CCOPT="$V_CCOPT -fvisibility=hidden"
3691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3692 $as_echo "no" >&6; }
3693 CFLAGS="$save_CFLAGS"
3696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3699 V_INCLS="$V_INCLS -I/usr/local/include"
3700 LDFLAGS="$LDFLAGS -L/usr/local/lib"
3706 # This is assumed either to be GCC or clang, both
3707 # of which use -Werror to force warnings to be errors.
3709 ac_lbl_cc_force_warning_errors=-Werror
3712 # Try to have the compiler default to hiding symbols,
3713 # so that only symbols explicitly exported with
3714 # PCAP_API will be visible outside (shared) libraries.
3717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -fvisibility=hidden option" >&5
3718 $as_echo_n "checking whether the compiler supports the -fvisibility=hidden option... " >&6; }
3719 save_CFLAGS="$CFLAGS"
3720 if expr "x-fvisibility=hidden" : "x-W.*" >/dev/null
3722 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -fvisibility=hidden"
3723 elif expr "x-fvisibility=hidden" : "x-f.*" >/dev/null
3725 CFLAGS="$CFLAGS -Werror -fvisibility=hidden"
3726 elif expr "x-fvisibility=hidden" : "x-m.*" >/dev/null
3728 CFLAGS="$CFLAGS -Werror -fvisibility=hidden"
3730 CFLAGS="$CFLAGS -fvisibility=hidden"
3732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3733 /* end confdefs.h. */
3743 if ac_fn_c_try_compile "$LINENO"; then :
3745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3746 $as_echo "yes" >&6; }
3747 can_add_to_cflags=yes
3749 # The compile supports this; do we have some C code for
3750 # which the warning should *not* appear?
3751 # We test the fourth argument because the third argument
3752 # could contain quotes, breaking the test.
3756 CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors"
3757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fvisibility=hidden " >&5
3758 $as_echo_n "checking whether -fvisibility=hidden ... " >&6; }
3759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3760 /* end confdefs.h. */
3763 if ac_fn_c_try_compile "$LINENO"; then :
3768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3769 $as_echo "no" >&6; }
3776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3777 $as_echo "yes" >&6; }
3778 can_add_to_cflags=no
3781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3783 CFLAGS="$save_CFLAGS"
3784 if test x"$can_add_to_cflags" = "xyes"
3786 V_CCOPT="$V_CCOPT -fvisibility=hidden"
3791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3792 $as_echo "no" >&6; }
3793 CFLAGS="$save_CFLAGS"
3796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3802 # HP C, which is what we presume we're using, doesn't
3803 # exit with a non-zero exit status if we hand it an
3804 # invalid -W flag, can't be forced to do so even with
3805 # +We, and doesn't handle GCC-style -W flags, so we
3806 # don't want to try using GCC-style -W flags.
3808 ac_lbl_cc_dont_try_gcc_dashW=yes
3813 # MIPS C, which is what we presume we're using, doesn't
3814 # necessarily exit with a non-zero exit status if we
3815 # hand it an invalid -W flag, can't be forced to do
3816 # so, and doesn't handle GCC-style -W flags, so we
3817 # don't want to try using GCC-style -W flags.
3819 ac_lbl_cc_dont_try_gcc_dashW=yes
3821 # It also, apparently, defaults to "char" being
3822 # unsigned, unlike most other C implementations;
3823 # I suppose we could say "signed char" whenever
3824 # we want to guarantee a signed "char", but let's
3825 # just force signed chars.
3827 # -xansi is normally the default, but the
3828 # configure script was setting it; perhaps -cckr
3829 # was the default in the Old Days. (Then again,
3830 # that would probably be for backwards compatibility
3831 # in the days when ANSI C was Shiny and New, i.e.
3832 # 1989 and the early '90's, so maybe we can just
3833 # drop support for those compilers.)
3835 # -g is equivalent to -g2, which turns off
3836 # optimization; we choose -g3, which generates
3837 # debugging information but doesn't turn off
3838 # optimization (even if the optimization would
3839 # cause inaccuracies in debugging).
3841 V_CCOPT="$V_CCOPT -xansi -signed -g3"
3846 # Presumed to be DEC OSF/1, Digital UNIX, or
3849 # The DEC C compiler, which is what we presume we're
3850 # using, doesn't exit with a non-zero exit status if we
3851 # hand it an invalid -W flag, can't be forced to do
3852 # so, and doesn't handle GCC-style -W flags, so we
3853 # don't want to try using GCC-style -W flags.
3855 ac_lbl_cc_dont_try_gcc_dashW=yes
3857 # -g is equivalent to -g2, which turns off
3858 # optimization; we choose -g3, which generates
3859 # debugging information but doesn't turn off
3860 # optimization (even if the optimization would
3861 # cause inaccuracies in debugging).
3863 V_CCOPT="$V_CCOPT -g3"
3868 # Assumed to be Sun C, which requires -errwarn to force
3869 # warnings to be treated as errors.
3871 ac_lbl_cc_force_warning_errors=-errwarn
3874 # Try to have the compiler default to hiding symbols,
3875 # so that only symbols explicitly exported with
3876 # PCAP_API will be visible outside (shared) libraries.
3879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -xldscope=hidden option" >&5
3880 $as_echo_n "checking whether the compiler supports the -xldscope=hidden option... " >&6; }
3881 save_CFLAGS="$CFLAGS"
3882 if expr "x-xldscope=hidden" : "x-W.*" >/dev/null
3884 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -xldscope=hidden"
3885 elif expr "x-xldscope=hidden" : "x-f.*" >/dev/null
3887 CFLAGS="$CFLAGS -Werror -xldscope=hidden"
3888 elif expr "x-xldscope=hidden" : "x-m.*" >/dev/null
3890 CFLAGS="$CFLAGS -Werror -xldscope=hidden"
3892 CFLAGS="$CFLAGS -xldscope=hidden"
3894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3895 /* end confdefs.h. */
3905 if ac_fn_c_try_compile "$LINENO"; then :
3907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3908 $as_echo "yes" >&6; }
3909 can_add_to_cflags=yes
3911 # The compile supports this; do we have some C code for
3912 # which the warning should *not* appear?
3913 # We test the fourth argument because the third argument
3914 # could contain quotes, breaking the test.
3918 CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors"
3919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -xldscope=hidden " >&5
3920 $as_echo_n "checking whether -xldscope=hidden ... " >&6; }
3921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3922 /* end confdefs.h. */
3925 if ac_fn_c_try_compile "$LINENO"; then :
3930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3931 $as_echo "no" >&6; }
3938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3939 $as_echo "yes" >&6; }
3940 can_add_to_cflags=no
3943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3945 CFLAGS="$save_CFLAGS"
3946 if test x"$can_add_to_cflags" = "xyes"
3948 V_CCOPT="$V_CCOPT -xldscope=hidden"
3953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3954 $as_echo "no" >&6; }
3955 CFLAGS="$save_CFLAGS"
3958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that Ultrix $CC hacks const in prototypes" >&5
3964 $as_echo_n "checking that Ultrix $CC hacks const in prototypes... " >&6; }
3965 if ${ac_cv_lbl_cc_const_proto+:} false; then :
3966 $as_echo_n "(cached) " >&6
3968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3969 /* end confdefs.h. */
3970 #include <sys/types.h>
3974 struct a { int b; };
3975 void c(const struct a *)
3980 if ac_fn_c_try_compile "$LINENO"; then :
3981 ac_cv_lbl_cc_const_proto=yes
3983 ac_cv_lbl_cc_const_proto=no
3985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_cc_const_proto" >&5
3989 $as_echo "$ac_cv_lbl_cc_const_proto" >&6; }
3990 if test $ac_cv_lbl_cc_const_proto = no ; then
3992 $as_echo "#define const /**/" >>confdefs.h
3997 V_CCOPT="$V_CCOPT -O"
4001 if test "$GCC" = yes ; then
4003 # On platforms where we build a shared library:
4005 # add options to generate position-independent code,
4006 # if necessary (it's the default in AIX and Darwin/macOS);
4008 # define option to set the soname of the shared library,
4009 # if the OS supports that;
4011 # add options to specify, at link time, a directory to
4012 # add to the run-time search path, if that's necessary.
4014 V_SHLIB_CMD="\$(CC)"
4015 V_SHLIB_OPT="-shared"
4021 freebsd*|netbsd*|openbsd*|dragonfly*|linux*|osf*|midipix*)
4023 # Platforms where the linker is the GNU linker
4024 # or accepts command-line arguments like
4025 # those the GNU linker accepts.
4027 # Some instruction sets require -fPIC on some
4028 # operating systems. Check for them. If you
4029 # have a combination that requires it, add it
4038 freebsd*|openbsd*|linux*)
4044 V_SHLIB_CCOPT="$V_SHLIB_CCOPT $PIC_OPT"
4045 V_SONAME_OPT="-Wl,-soname,"
4046 V_RPATH_OPT="-Wl,-rpath,"
4050 V_SHLIB_CCOPT="$V_SHLIB_CCOPT -fpic"
4052 # XXX - this assumes GCC is using the HP linker,
4053 # rather than the GNU linker, and that the "+h"
4054 # option is used on all HP-UX platforms, both .sl
4057 V_SONAME_OPT="-Wl,+h,"
4059 # By default, directories specifed with -L
4060 # are added to the run-time search path, so
4061 # we don't add them in pcap-config.
4066 V_SHLIB_CCOPT="$V_SHLIB_CCOPT -fpic"
4068 # XXX - this assumes GCC is using the Sun linker,
4069 # rather than the GNU linker.
4071 V_SONAME_OPT="-Wl,-h,"
4072 V_RPATH_OPT="-Wl,-R,"
4077 # Set the appropriate compiler flags and, on platforms
4078 # where we build a shared library:
4080 # add options to generate position-independent code,
4081 # if necessary (it's the default in Darwin/macOS);
4083 # if we generate ".so" shared libraries, define the
4084 # appropriate options for building the shared library;
4086 # add options to specify, at link time, a directory to
4087 # add to the run-time search path, if that's necessary.
4089 # Note: spaces after V_SONAME_OPT are significant; on
4090 # some platforms the soname is passed with a GCC-like
4091 # "-Wl,-soname,{soname}" option, with the soname part
4092 # of the option, while on other platforms the C compiler
4093 # driver takes it as a regular option with the soname
4094 # following the option. The same applies to V_RPATH_OPT.
4099 V_SHLIB_CMD="\$(CC)"
4100 V_SHLIB_OPT="-G -bnoentry -bexpall"
4103 freebsd*|netbsd*|openbsd*|dragonfly*|linux*)
4107 V_SHLIB_CCOPT="$V_SHLIB_CCOPT -fpic"
4108 V_SHLIB_CMD="\$(CC)"
4109 V_SHLIB_OPT="-shared"
4110 V_SONAME_OPT="-Wl,-soname,"
4111 V_RPATH_OPT="-Wl,-rpath,"
4115 V_SHLIB_CCOPT="$V_SHLIB_CCOPT +z"
4116 V_SHLIB_CMD="\$(LD)"
4120 # By default, directories specifed with -L
4121 # are added to the run-time search path, so
4122 # we don't add them in pcap-config.
4128 # Presumed to be DEC OSF/1, Digital UNIX, or
4131 V_SHLIB_CMD="\$(CC)"
4132 V_SHLIB_OPT="-shared"
4133 V_SONAME_OPT="-soname "
4134 V_RPATH_OPT="-rpath "
4138 V_SHLIB_CCOPT="$V_SHLIB_CCOPT -Kpic"
4139 V_SHLIB_CMD="\$(CC)"
4147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
4148 $as_echo_n "checking for inline... " >&6; }
4149 save_CFLAGS="$CFLAGS"
4151 if ${ac_cv_lbl_inline+:} false; then :
4152 $as_echo_n "(cached) " >&6
4157 for ac_lbl_inline in inline __inline__ __inline
4159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4160 /* end confdefs.h. */
4161 #define inline $ac_lbl_inline
4162 static inline struct iltest *foo(void);
4168 static inline struct iltest *
4171 static struct iltest xxx;
4183 if ac_fn_c_try_compile "$LINENO"; then :
4184 ac_lbl_cc_inline=yes
4186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4187 if test "$ac_lbl_cc_inline" = yes ; then
4191 if test "$ac_lbl_cc_inline" = yes ; then
4192 ac_cv_lbl_inline=$ac_lbl_inline
4196 CFLAGS="$save_CFLAGS"
4197 if test ! -z "$ac_cv_lbl_inline" ; then
4198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_inline" >&5
4199 $as_echo "$ac_cv_lbl_inline" >&6; }
4201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4202 $as_echo "no" >&6; }
4205 cat >>confdefs.h <<_ACEOF
4206 #define inline $ac_cv_lbl_inline
4211 # Try to arrange for large file support.
4213 # Check whether --enable-largefile was given.
4214 if test "${enable_largefile+set}" = set; then :
4215 enableval=$enable_largefile;
4218 if test "$enable_largefile" != no; then
4220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4221 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4222 if ${ac_cv_sys_largefile_CC+:} false; then :
4223 $as_echo_n "(cached) " >&6
4225 ac_cv_sys_largefile_CC=no
4226 if test "$GCC" != yes; then
4229 # IRIX 6.2 and later do not support large files by default,
4230 # so use the C compiler's -n32 option if that helps.
4231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4232 /* end confdefs.h. */
4233 #include <sys/types.h>
4234 /* Check that off_t can represent 2**63 - 1 correctly.
4235 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4236 since some C++ compilers masquerading as C compilers
4237 incorrectly reject 9223372036854775807. */
4238 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
4239 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4240 && LARGE_OFF_T % 2147483647 == 1)
4250 if ac_fn_c_try_compile "$LINENO"; then :
4253 rm -f core conftest.err conftest.$ac_objext
4255 if ac_fn_c_try_compile "$LINENO"; then :
4256 ac_cv_sys_largefile_CC=' -n32'; break
4258 rm -f core conftest.err conftest.$ac_objext
4262 rm -f conftest.$ac_ext
4265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4266 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4267 if test "$ac_cv_sys_largefile_CC" != no; then
4268 CC=$CC$ac_cv_sys_largefile_CC
4271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4272 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4273 if ${ac_cv_sys_file_offset_bits+:} false; then :
4274 $as_echo_n "(cached) " >&6
4277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4278 /* end confdefs.h. */
4279 #include <sys/types.h>
4280 /* Check that off_t can represent 2**63 - 1 correctly.
4281 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4282 since some C++ compilers masquerading as C compilers
4283 incorrectly reject 9223372036854775807. */
4284 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
4285 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4286 && LARGE_OFF_T % 2147483647 == 1)
4296 if ac_fn_c_try_compile "$LINENO"; then :
4297 ac_cv_sys_file_offset_bits=no; break
4299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4301 /* end confdefs.h. */
4302 #define _FILE_OFFSET_BITS 64
4303 #include <sys/types.h>
4304 /* Check that off_t can represent 2**63 - 1 correctly.
4305 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4306 since some C++ compilers masquerading as C compilers
4307 incorrectly reject 9223372036854775807. */
4308 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
4309 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4310 && LARGE_OFF_T % 2147483647 == 1)
4320 if ac_fn_c_try_compile "$LINENO"; then :
4321 ac_cv_sys_file_offset_bits=64; break
4323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4324 ac_cv_sys_file_offset_bits=unknown
4328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4329 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4330 case $ac_cv_sys_file_offset_bits in #(
4333 cat >>confdefs.h <<_ACEOF
4334 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4339 if test $ac_cv_sys_file_offset_bits = unknown; then
4340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4341 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4342 if ${ac_cv_sys_large_files+:} false; then :
4343 $as_echo_n "(cached) " >&6
4346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4347 /* end confdefs.h. */
4348 #include <sys/types.h>
4349 /* Check that off_t can represent 2**63 - 1 correctly.
4350 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4351 since some C++ compilers masquerading as C compilers
4352 incorrectly reject 9223372036854775807. */
4353 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
4354 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4355 && LARGE_OFF_T % 2147483647 == 1)
4365 if ac_fn_c_try_compile "$LINENO"; then :
4366 ac_cv_sys_large_files=no; break
4368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4370 /* end confdefs.h. */
4371 #define _LARGE_FILES 1
4372 #include <sys/types.h>
4373 /* Check that off_t can represent 2**63 - 1 correctly.
4374 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4375 since some C++ compilers masquerading as C compilers
4376 incorrectly reject 9223372036854775807. */
4377 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
4378 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4379 && LARGE_OFF_T % 2147483647 == 1)
4389 if ac_fn_c_try_compile "$LINENO"; then :
4390 ac_cv_sys_large_files=1; break
4392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4393 ac_cv_sys_large_files=unknown
4397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4398 $as_echo "$ac_cv_sys_large_files" >&6; }
4399 case $ac_cv_sys_large_files in #(
4402 cat >>confdefs.h <<_ACEOF
4403 #define _LARGE_FILES $ac_cv_sys_large_files
4413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
4414 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
4415 if ${ac_cv_sys_largefile_source+:} false; then :
4416 $as_echo_n "(cached) " >&6
4419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4420 /* end confdefs.h. */
4421 #include <sys/types.h> /* for off_t */
4426 int (*fp) (FILE *, off_t, int) = fseeko;
4427 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
4432 if ac_fn_c_try_link "$LINENO"; then :
4433 ac_cv_sys_largefile_source=no; break
4435 rm -f core conftest.err conftest.$ac_objext \
4436 conftest$ac_exeext conftest.$ac_ext
4437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4438 /* end confdefs.h. */
4439 #define _LARGEFILE_SOURCE 1
4440 #include <sys/types.h> /* for off_t */
4445 int (*fp) (FILE *, off_t, int) = fseeko;
4446 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
4451 if ac_fn_c_try_link "$LINENO"; then :
4452 ac_cv_sys_largefile_source=1; break
4454 rm -f core conftest.err conftest.$ac_objext \
4455 conftest$ac_exeext conftest.$ac_ext
4456 ac_cv_sys_largefile_source=unknown
4460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
4461 $as_echo "$ac_cv_sys_largefile_source" >&6; }
4462 case $ac_cv_sys_largefile_source in #(
4465 cat >>confdefs.h <<_ACEOF
4466 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
4472 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
4473 # in glibc 2.1.3, but that breaks too many other things.
4474 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
4475 if test $ac_cv_sys_largefile_source != unknown; then
4477 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
4483 ac_cpp='$CPP $CPPFLAGS'
4484 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4485 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4486 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4488 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4489 # On Suns, sometimes $CPP names a directory.
4490 if test -n "$CPP" && test -d "$CPP"; then
4493 if test -z "$CPP"; then
4494 if ${ac_cv_prog_CPP+:} false; then :
4495 $as_echo_n "(cached) " >&6
4497 # Double quotes because CPP needs to be expanded
4498 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4501 for ac_c_preproc_warn_flag in '' yes
4503 # Use a header file that comes with gcc, so configuring glibc
4504 # with a fresh cross-compiler works.
4505 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4506 # <limits.h> exists even on freestanding compilers.
4507 # On the NeXT, cc -E runs the code through the compiler's parser,
4508 # not just through cpp. "Syntax error" is here to catch this case.
4509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4510 /* end confdefs.h. */
4512 # include <limits.h>
4514 # include <assert.h>
4518 if ac_fn_c_try_cpp "$LINENO"; then :
4521 # Broken: fails on valid input.
4524 rm -f conftest.err conftest.i conftest.$ac_ext
4526 # OK, works on sane cases. Now check whether nonexistent headers
4527 # can be detected and how.
4528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4529 /* end confdefs.h. */
4530 #include <ac_nonexistent.h>
4532 if ac_fn_c_try_cpp "$LINENO"; then :
4533 # Broken: success on invalid input.
4536 # Passes both tests.
4540 rm -f conftest.err conftest.i conftest.$ac_ext
4543 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4544 rm -f conftest.i conftest.err conftest.$ac_ext
4545 if $ac_preproc_ok; then :
4557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4558 $as_echo "$CPP" >&6; }
4560 for ac_c_preproc_warn_flag in '' yes
4562 # Use a header file that comes with gcc, so configuring glibc
4563 # with a fresh cross-compiler works.
4564 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4565 # <limits.h> exists even on freestanding compilers.
4566 # On the NeXT, cc -E runs the code through the compiler's parser,
4567 # not just through cpp. "Syntax error" is here to catch this case.
4568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4569 /* end confdefs.h. */
4571 # include <limits.h>
4573 # include <assert.h>
4577 if ac_fn_c_try_cpp "$LINENO"; then :
4580 # Broken: fails on valid input.
4583 rm -f conftest.err conftest.i conftest.$ac_ext
4585 # OK, works on sane cases. Now check whether nonexistent headers
4586 # can be detected and how.
4587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4588 /* end confdefs.h. */
4589 #include <ac_nonexistent.h>
4591 if ac_fn_c_try_cpp "$LINENO"; then :
4592 # Broken: success on invalid input.
4595 # Passes both tests.
4599 rm -f conftest.err conftest.i conftest.$ac_ext
4602 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4603 rm -f conftest.i conftest.err conftest.$ac_ext
4604 if $ac_preproc_ok; then :
4607 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4608 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4609 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4610 See \`config.log' for more details" "$LINENO" 5; }
4614 ac_cpp='$CPP $CPPFLAGS'
4615 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4616 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4617 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4621 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4622 if ${ac_cv_path_GREP+:} false; then :
4623 $as_echo_n "(cached) " >&6
4625 if test -z "$GREP"; then
4626 ac_path_GREP_found=false
4627 # Loop through the user's path and test for each of PROGNAME-LIST
4628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4629 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4632 test -z "$as_dir" && as_dir=.
4633 for ac_prog in grep ggrep; do
4634 for ac_exec_ext in '' $ac_executable_extensions; do
4635 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4636 as_fn_executable_p "$ac_path_GREP" || continue
4637 # Check for GNU ac_path_GREP and select it if it is found.
4638 # Check for GNU $ac_path_GREP
4639 case `"$ac_path_GREP" --version 2>&1` in
4641 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4644 $as_echo_n 0123456789 >"conftest.in"
4647 cat "conftest.in" "conftest.in" >"conftest.tmp"
4648 mv "conftest.tmp" "conftest.in"
4649 cp "conftest.in" "conftest.nl"
4650 $as_echo 'GREP' >> "conftest.nl"
4651 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4652 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4653 as_fn_arith $ac_count + 1 && ac_count=$as_val
4654 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4655 # Best one so far, save it but keep looking for a better one
4656 ac_cv_path_GREP="$ac_path_GREP"
4657 ac_path_GREP_max=$ac_count
4659 # 10*(2^10) chars as input seems more than enough
4660 test $ac_count -gt 10 && break
4662 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4665 $ac_path_GREP_found && break 3
4670 if test -z "$ac_cv_path_GREP"; then
4671 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4674 ac_cv_path_GREP=$GREP
4678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4679 $as_echo "$ac_cv_path_GREP" >&6; }
4680 GREP="$ac_cv_path_GREP"
4683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4684 $as_echo_n "checking for egrep... " >&6; }
4685 if ${ac_cv_path_EGREP+:} false; then :
4686 $as_echo_n "(cached) " >&6
4688 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4689 then ac_cv_path_EGREP="$GREP -E"
4691 if test -z "$EGREP"; then
4692 ac_path_EGREP_found=false
4693 # Loop through the user's path and test for each of PROGNAME-LIST
4694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4695 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4698 test -z "$as_dir" && as_dir=.
4699 for ac_prog in egrep; do
4700 for ac_exec_ext in '' $ac_executable_extensions; do
4701 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4702 as_fn_executable_p "$ac_path_EGREP" || continue
4703 # Check for GNU ac_path_EGREP and select it if it is found.
4704 # Check for GNU $ac_path_EGREP
4705 case `"$ac_path_EGREP" --version 2>&1` in
4707 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4710 $as_echo_n 0123456789 >"conftest.in"
4713 cat "conftest.in" "conftest.in" >"conftest.tmp"
4714 mv "conftest.tmp" "conftest.in"
4715 cp "conftest.in" "conftest.nl"
4716 $as_echo 'EGREP' >> "conftest.nl"
4717 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4718 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4719 as_fn_arith $ac_count + 1 && ac_count=$as_val
4720 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4721 # Best one so far, save it but keep looking for a better one
4722 ac_cv_path_EGREP="$ac_path_EGREP"
4723 ac_path_EGREP_max=$ac_count
4725 # 10*(2^10) chars as input seems more than enough
4726 test $ac_count -gt 10 && break
4728 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4731 $ac_path_EGREP_found && break 3
4736 if test -z "$ac_cv_path_EGREP"; then
4737 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4740 ac_cv_path_EGREP=$EGREP
4745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4746 $as_echo "$ac_cv_path_EGREP" >&6; }
4747 EGREP="$ac_cv_path_EGREP"
4750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4751 $as_echo_n "checking for ANSI C header files... " >&6; }
4752 if ${ac_cv_header_stdc+:} false; then :
4753 $as_echo_n "(cached) " >&6
4755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4756 /* end confdefs.h. */
4770 if ac_fn_c_try_compile "$LINENO"; then :
4771 ac_cv_header_stdc=yes
4773 ac_cv_header_stdc=no
4775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4777 if test $ac_cv_header_stdc = yes; then
4778 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4780 /* end confdefs.h. */
4784 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4785 $EGREP "memchr" >/dev/null 2>&1; then :
4788 ac_cv_header_stdc=no
4794 if test $ac_cv_header_stdc = yes; then
4795 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4797 /* end confdefs.h. */
4801 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4802 $EGREP "free" >/dev/null 2>&1; then :
4805 ac_cv_header_stdc=no
4811 if test $ac_cv_header_stdc = yes; then
4812 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4813 if test "$cross_compiling" = yes; then :
4816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4817 /* end confdefs.h. */
4820 #if ((' ' & 0x0FF) == 0x020)
4821 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4822 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4824 # define ISLOWER(c) \
4825 (('a' <= (c) && (c) <= 'i') \
4826 || ('j' <= (c) && (c) <= 'r') \
4827 || ('s' <= (c) && (c) <= 'z'))
4828 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4831 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4836 for (i = 0; i < 256; i++)
4837 if (XOR (islower (i), ISLOWER (i))
4838 || toupper (i) != TOUPPER (i))
4843 if ac_fn_c_try_run "$LINENO"; then :
4846 ac_cv_header_stdc=no
4848 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4849 conftest.$ac_objext conftest.beam conftest.$ac_ext
4854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4855 $as_echo "$ac_cv_header_stdc" >&6; }
4856 if test $ac_cv_header_stdc = yes; then
4858 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4862 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4863 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4864 inttypes.h stdint.h unistd.h
4866 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4867 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4869 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4870 cat >>confdefs.h <<_ACEOF
4871 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4879 for ac_header in sys/ioccom.h sys/sockio.h limits.h
4881 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4882 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4883 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4884 cat >>confdefs.h <<_ACEOF
4885 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4892 for ac_header in netpacket/packet.h
4894 ac_fn_c_check_header_mongrel "$LINENO" "netpacket/packet.h" "ac_cv_header_netpacket_packet_h" "$ac_includes_default"
4895 if test "x$ac_cv_header_netpacket_packet_h" = xyes; then :
4896 cat >>confdefs.h <<_ACEOF
4897 #define HAVE_NETPACKET_PACKET_H 1
4904 for ac_header in net/pfvar.h
4906 ac_fn_c_check_header_compile "$LINENO" "net/pfvar.h" "ac_cv_header_net_pfvar_h" "#include <sys/types.h>
4907 #include <sys/socket.h>
4910 if test "x$ac_cv_header_net_pfvar_h" = xyes; then :
4911 cat >>confdefs.h <<_ACEOF
4912 #define HAVE_NET_PFVAR_H 1
4919 if test "$ac_cv_header_net_pfvar_h" = yes; then
4921 # Check for various PF actions.
4923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether net/pfvar.h defines PF_NAT through PF_NORDR" >&5
4924 $as_echo_n "checking whether net/pfvar.h defines PF_NAT through PF_NORDR... " >&6; }
4925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4926 /* end confdefs.h. */
4927 #include <sys/types.h>
4928 #include <sys/socket.h>
4930 #include <net/pfvar.h>
4934 return PF_NAT+PF_NONAT+PF_BINAT+PF_NOBINAT+PF_RDR+PF_NORDR;
4939 if ac_fn_c_try_compile "$LINENO"; then :
4941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4942 $as_echo "yes" >&6; }
4944 $as_echo "#define HAVE_PF_NAT_THROUGH_PF_NORDR 1" >>confdefs.h
4948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4949 $as_echo "no" >&6; }
4951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4956 for ac_header in linux/sockios.h linux/if_bonding.h
4958 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4959 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
4960 #include <sys/socket.h>
4961 #include <linux/if.h>
4964 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4965 cat >>confdefs.h <<_ACEOF
4966 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4976 if test "$GCC" = yes ; then
4977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI ioctl definitions" >&5
4978 $as_echo_n "checking for ANSI ioctl definitions... " >&6; }
4979 if ${ac_cv_lbl_gcc_fixincludes+:} false; then :
4980 $as_echo_n "(cached) " >&6
4982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4983 /* end confdefs.h. */
4985 * This generates a "duplicate case value" when fixincludes
4988 # include <sys/types.h>
4989 # include <sys/time.h>
4990 # include <sys/ioctl.h>
4991 # ifdef HAVE_SYS_IOCCOM_H
4992 # include <sys/ioccom.h>
5005 if ac_fn_c_try_compile "$LINENO"; then :
5006 ac_cv_lbl_gcc_fixincludes=yes
5008 ac_cv_lbl_gcc_fixincludes=no
5010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_gcc_fixincludes" >&5
5014 $as_echo "$ac_cv_lbl_gcc_fixincludes" >&6; }
5015 if test $ac_cv_lbl_gcc_fixincludes = no ; then
5016 # Don't cache failure
5017 unset ac_cv_lbl_gcc_fixincludes
5018 as_fn_error $? "see the INSTALL for more info" "$LINENO" 5
5022 for ac_func in strerror
5024 ac_fn_c_check_func "$LINENO" "strerror" "ac_cv_func_strerror"
5025 if test "x$ac_cv_func_strerror" = xyes; then :
5026 cat >>confdefs.h <<_ACEOF
5027 #define HAVE_STRERROR 1
5033 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
5034 if test "x$ac_cv_func_strerror_r" = xyes; then :
5037 # We have strerror_r; if we define _GNU_SOURCE, is it a
5038 # POSIX-compliant strerror_r() or a GNU strerror_r()?
5040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r is GNU-style" >&5
5041 $as_echo_n "checking whether strerror_r is GNU-style... " >&6; }
5042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5043 /* end confdefs.h. */
5048 /* Define it GNU-style; that will cause an error if it's not GNU-style */
5049 extern char *strerror_r(int, char *, size_t);
5059 if ac_fn_c_try_compile "$LINENO"; then :
5062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5063 $as_echo "yes" >&6; }
5065 $as_echo "#define HAVE_GNU_STRERROR_R /**/" >>confdefs.h
5070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5071 $as_echo "no" >&6; }
5073 $as_echo "#define HAVE_POSIX_STRERROR_R /**/" >>confdefs.h
5077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5082 # We don't have strerror_r; do we have strerror_s?
5084 for ac_func in strerror_s
5086 ac_fn_c_check_func "$LINENO" "strerror_s" "ac_cv_func_strerror_s"
5087 if test "x$ac_cv_func_strerror_s" = xyes; then :
5088 cat >>confdefs.h <<_ACEOF
5089 #define HAVE_STRERROR_S 1
5100 # Thanks, IBM, for not providing vsyslog() in AIX!
5102 for ac_func in vsyslog
5104 ac_fn_c_check_func "$LINENO" "vsyslog" "ac_cv_func_vsyslog"
5105 if test "x$ac_cv_func_vsyslog" = xyes; then :
5106 cat >>confdefs.h <<_ACEOF
5107 #define HAVE_VSYSLOG 1
5117 # we have snprintf() and vsnprintf(), and have asprintf() and
5120 # we have snprintf() and vsnprintf(), but don't have asprintf()
5123 # we have neither snprintf() nor vsnprintf(), and don't have
5124 # asprintf() or vasprintf(), either.
5126 # We assume that if we have asprintf() we have vasprintf(), as well
5127 # as snprintf() and vsnprintf(), and that if we have snprintf() we
5130 # For the first case, we don't need any replacement routines.
5131 # For the second case, we need replacement asprintf()/vasprintf()
5133 # For the third case, we need replacement snprintf()/vsnprintf() and
5134 # asprintf()/vasprintf() routines.
5137 for ac_func in vsnprintf snprintf
5139 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5140 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5141 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5142 cat >>confdefs.h <<_ACEOF
5143 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5152 for ac_func in vasprintf asprintf
5154 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5155 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5156 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5157 cat >>confdefs.h <<_ACEOF
5158 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5166 if test $needsnprintf = yes; then
5168 # We assume we have none of them; missing/snprintf.c supplies
5171 case " $LIBOBJS " in
5172 *" snprintf.$ac_objext "* ) ;;
5173 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
5177 elif test $needasprintf = yes; then
5179 # We assume we have snprintf()/vsnprintf() but lack
5180 # asprintf()/vasprintf(); missing/asprintf.c supplies
5181 # the latter (using vsnprintf()).
5183 case " $LIBOBJS " in
5184 *" asprintf.$ac_objext "* ) ;;
5185 *) LIBOBJS="$LIBOBJS asprintf.$ac_objext"
5192 for ac_func in strlcat
5194 ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
5195 if test "x$ac_cv_func_strlcat" = xyes; then :
5196 cat >>confdefs.h <<_ACEOF
5197 #define HAVE_STRLCAT 1
5205 if test $needstrlcat = yes; then
5206 case " $LIBOBJS " in
5207 *" strlcat.$ac_objext "* ) ;;
5208 *) LIBOBJS="$LIBOBJS strlcat.$ac_objext"
5215 for ac_func in strlcpy
5217 ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
5218 if test "x$ac_cv_func_strlcpy" = xyes; then :
5219 cat >>confdefs.h <<_ACEOF
5220 #define HAVE_STRLCPY 1
5228 if test $needstrlcpy = yes; then
5229 case " $LIBOBJS " in
5230 *" strlcpy.$ac_objext "* ) ;;
5231 *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext"
5238 for ac_func in strtok_r
5240 ac_fn_c_check_func "$LINENO" "strtok_r" "ac_cv_func_strtok_r"
5241 if test "x$ac_cv_func_strtok_r" = xyes; then :
5242 cat >>confdefs.h <<_ACEOF
5243 #define HAVE_STRTOK_R 1
5251 if test $needstrtok_r = yes; then
5252 case " $LIBOBJS " in
5253 *" strtok_r.$ac_objext "* ) ;;
5254 *) LIBOBJS="$LIBOBJS strtok_r.$ac_objext"
5261 # Do we have ffs(), and is it declared in <strings.h>?
5265 ac_fn_c_check_func "$LINENO" "ffs" "ac_cv_func_ffs"
5266 if test "x$ac_cv_func_ffs" = xyes; then :
5267 cat >>confdefs.h <<_ACEOF
5274 if test "$ac_cv_func_ffs" = yes; then
5276 # We have ffs(); is it declared in <strings.h>?
5278 # This test fails if we don't have <strings.h> or if we do
5279 # but it doesn't declare ffs().
5281 ac_fn_c_check_decl "$LINENO" "ffs" "ac_cv_have_decl_ffs" "
5282 #include <strings.h>
5285 if test "x$ac_cv_have_decl_ffs" = xyes; then :
5288 $as_echo "#define STRINGS_H_DECLARES_FFS /**/" >>confdefs.h
5296 # Do this before checking for ether_hostton(), as it's a
5297 # "getaddrinfo()-ish function".
5301 # Most operating systems have getaddrinfo() in the default searched
5302 # libraries (i.e. libc). Check there first.
5304 ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
5305 if test "x$ac_cv_func_getaddrinfo" = xyes; then :
5310 # Not found in the standard system libraries.
5311 # Try libsocket, which requires libnsl.
5313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo in -lsocket" >&5
5314 $as_echo_n "checking for getaddrinfo in -lsocket... " >&6; }
5315 if ${ac_cv_lib_socket_getaddrinfo+:} false; then :
5316 $as_echo_n "(cached) " >&6
5318 ac_check_lib_save_LIBS=$LIBS
5319 LIBS="-lsocket -lnsl $LIBS"
5320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5321 /* end confdefs.h. */
5323 /* Override any GCC internal prototype to avoid an error.
5324 Use char because int might match the return type of a GCC
5325 builtin and then its argument prototype would still apply. */
5329 char getaddrinfo ();
5333 return getaddrinfo ();
5338 if ac_fn_c_try_link "$LINENO"; then :
5339 ac_cv_lib_socket_getaddrinfo=yes
5341 ac_cv_lib_socket_getaddrinfo=no
5343 rm -f core conftest.err conftest.$ac_objext \
5344 conftest$ac_exeext conftest.$ac_ext
5345 LIBS=$ac_check_lib_save_LIBS
5347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_getaddrinfo" >&5
5348 $as_echo "$ac_cv_lib_socket_getaddrinfo" >&6; }
5349 if test "x$ac_cv_lib_socket_getaddrinfo" = xyes; then :
5352 # OK, we found it in libsocket.
5354 LIBS="-lsocket -lnsl $LIBS"
5359 # We didn't find it.
5361 as_fn_error $? "getaddrinfo is required, but wasn't found" "$LINENO" 5
5367 # OK, do we have recvmsg() in libxnet?
5368 # We also link with libsocket and libnsl.
5370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recvmsg in -lxnet" >&5
5371 $as_echo_n "checking for recvmsg in -lxnet... " >&6; }
5372 if ${ac_cv_lib_xnet_recvmsg+:} false; then :
5373 $as_echo_n "(cached) " >&6
5375 ac_check_lib_save_LIBS=$LIBS
5376 LIBS="-lxnet -lsocket -lnsl $LIBS"
5377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5378 /* end confdefs.h. */
5380 /* Override any GCC internal prototype to avoid an error.
5381 Use char because int might match the return type of a GCC
5382 builtin and then its argument prototype would still apply. */
5395 if ac_fn_c_try_link "$LINENO"; then :
5396 ac_cv_lib_xnet_recvmsg=yes
5398 ac_cv_lib_xnet_recvmsg=no
5400 rm -f core conftest.err conftest.$ac_objext \
5401 conftest$ac_exeext conftest.$ac_ext
5402 LIBS=$ac_check_lib_save_LIBS
5404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xnet_recvmsg" >&5
5405 $as_echo "$ac_cv_lib_xnet_recvmsg" >&6; }
5406 if test "x$ac_cv_lib_xnet_recvmsg" = xyes; then :
5409 # Yes - link with it as well.
5418 # DLPI needs putmsg under HPUX so test for -lstr while we're at it
5419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing putmsg" >&5
5420 $as_echo_n "checking for library containing putmsg... " >&6; }
5421 if ${ac_cv_search_putmsg+:} false; then :
5422 $as_echo_n "(cached) " >&6
5424 ac_func_search_save_LIBS=$LIBS
5425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5426 /* end confdefs.h. */
5428 /* Override any GCC internal prototype to avoid an error.
5429 Use char because int might match the return type of a GCC
5430 builtin and then its argument prototype would still apply. */
5443 for ac_lib in '' str; do
5444 if test -z "$ac_lib"; then
5445 ac_res="none required"
5448 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5450 if ac_fn_c_try_link "$LINENO"; then :
5451 ac_cv_search_putmsg=$ac_res
5453 rm -f core conftest.err conftest.$ac_objext \
5455 if ${ac_cv_search_putmsg+:} false; then :
5459 if ${ac_cv_search_putmsg+:} false; then :
5462 ac_cv_search_putmsg=no
5465 LIBS=$ac_func_search_save_LIBS
5467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_putmsg" >&5
5468 $as_echo "$ac_cv_search_putmsg" >&6; }
5469 ac_res=$ac_cv_search_putmsg
5470 if test "$ac_res" != no; then :
5471 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5478 # Check for reentrant versions of getnetbyname_r(), as provided by
5479 # Linux (glibc), Solaris/IRIX, and AIX (with three different APIs!).
5480 # If we don't find one, we just use getnetbyname(), which uses
5481 # thread-specific data on many platforms, but doesn't use it on
5482 # NetBSD or OpenBSD, and may not use it on older versions of other
5485 # Only do the check if we have a declaration of getnetbyname_r();
5486 # without it, we can't check which API it has. (We assume that
5487 # if there's a declaration, it has a prototype, so that the API
5490 ac_fn_c_check_decl "$LINENO" "getnetbyname_r" "ac_cv_have_decl_getnetbyname_r" "#include <netdb.h>
5492 if test "x$ac_cv_have_decl_getnetbyname_r" = xyes; then :
5494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the Linux getnetbyname_r()" >&5
5495 $as_echo_n "checking for the Linux getnetbyname_r()... " >&6; }
5496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5497 /* end confdefs.h. */
5503 struct netent netent_buf;
5505 struct netent *resultp;
5508 return getnetbyname_r((const char *)0, &netent_buf, buf, sizeof buf, &resultp, &h_errnoval);
5514 if ac_fn_c_try_link "$LINENO"; then :
5516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5517 $as_echo "yes" >&6; }
5519 $as_echo "#define HAVE_LINUX_GETNETBYNAME_R 1" >>confdefs.h
5524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5525 $as_echo "no" >&6; }
5527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Solaris/IRIX getnetbyname_r()" >&5
5528 $as_echo_n "checking for Solaris/IRIX getnetbyname_r()... " >&6; }
5529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5530 /* end confdefs.h. */
5536 struct netent netent_buf;
5539 return getnetbyname_r((const char *)0, &netent_buf, buf, (int)sizeof buf) != NULL;
5545 if ac_fn_c_try_link "$LINENO"; then :
5547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5548 $as_echo "yes" >&6; }
5550 $as_echo "#define HAVE_SOLARIS_IRIX_GETNETBYNAME_R 1" >>confdefs.h
5555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5556 $as_echo "no" >&6; }
5558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AIX getnetbyname_r()" >&5
5559 $as_echo_n "checking for AIX getnetbyname_r()... " >&6; }
5560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5561 /* end confdefs.h. */
5567 struct netent netent_buf;
5568 struct netent_data net_data;
5570 return getnetbyname_r((const char *)0, &netent_buf, &net_data);
5576 if ac_fn_c_try_link "$LINENO"; then :
5578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5579 $as_echo "yes" >&6; }
5581 $as_echo "#define HAVE_AIX_GETNETBYNAME_R 1" >>confdefs.h
5586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5587 $as_echo "no" >&6; }
5590 rm -f core conftest.err conftest.$ac_objext \
5591 conftest$ac_exeext conftest.$ac_ext
5594 rm -f core conftest.err conftest.$ac_objext \
5595 conftest$ac_exeext conftest.$ac_ext
5598 rm -f core conftest.err conftest.$ac_objext \
5599 conftest$ac_exeext conftest.$ac_ext
5605 # Check for reentrant versions of getprotobyname_r(), as provided by
5606 # Linux (glibc), Solaris/IRIX, and AIX (with three different APIs!).
5607 # If we don't find one, we just use getprotobyname(), which uses
5608 # thread-specific data on many platforms, but doesn't use it on
5609 # NetBSD or OpenBSD, and may not use it on older versions of other
5612 # Only do the check if we have a declaration of getprotobyname_r();
5613 # without it, we can't check which API it has. (We assume that
5614 # if there's a declaration, it has a prototype, so that the API
5617 ac_fn_c_check_decl "$LINENO" "getprotobyname_r" "ac_cv_have_decl_getprotobyname_r" "#include <netdb.h>
5619 if test "x$ac_cv_have_decl_getprotobyname_r" = xyes; then :
5621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the Linux getprotobyname_r()" >&5
5622 $as_echo_n "checking for the Linux getprotobyname_r()... " >&6; }
5623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5624 /* end confdefs.h. */
5630 struct protoent protoent_buf;
5632 struct protoent *resultp;
5634 return getprotobyname_r((const char *)0, &protoent_buf, buf, sizeof buf, &resultp);
5640 if ac_fn_c_try_link "$LINENO"; then :
5642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5643 $as_echo "yes" >&6; }
5645 $as_echo "#define HAVE_LINUX_GETPROTOBYNAME_R 1" >>confdefs.h
5650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5651 $as_echo "no" >&6; }
5653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Solaris/IRIX getprotobyname_r()" >&5
5654 $as_echo_n "checking for Solaris/IRIX getprotobyname_r()... " >&6; }
5655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5656 /* end confdefs.h. */
5662 struct protoent protoent_buf;
5665 return getprotobyname_r((const char *)0, &protoent_buf, buf, (int)sizeof buf) != NULL;
5671 if ac_fn_c_try_link "$LINENO"; then :
5673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5674 $as_echo "yes" >&6; }
5676 $as_echo "#define HAVE_SOLARIS_IRIX_GETPROTOBYNAME_R 1" >>confdefs.h
5681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5682 $as_echo "no" >&6; }
5684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AIX getprotobyname_r()" >&5
5685 $as_echo_n "checking for AIX getprotobyname_r()... " >&6; }
5686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5687 /* end confdefs.h. */
5693 struct protoent protoent_buf;
5694 struct protoent_data proto_data;
5696 return getprotobyname_r((const char *)0, &protoent_buf, &proto_data);
5702 if ac_fn_c_try_link "$LINENO"; then :
5704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5705 $as_echo "yes" >&6; }
5707 $as_echo "#define HAVE_AIX_GETPROTOBYNAME_R 1" >>confdefs.h
5712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5713 $as_echo "no" >&6; }
5716 rm -f core conftest.err conftest.$ac_objext \
5717 conftest$ac_exeext conftest.$ac_ext
5720 rm -f core conftest.err conftest.$ac_objext \
5721 conftest$ac_exeext conftest.$ac_ext
5724 rm -f core conftest.err conftest.$ac_objext \
5725 conftest$ac_exeext conftest.$ac_ext
5731 # You are in a twisty little maze of UN*Xes, all different.
5732 # Some might not have ether_hostton().
5733 # Some might have it and declare it in <net/ethernet.h>.
5734 # Some might have it and declare it in <netinet/ether.h>
5735 # Some might have it and declare it in <sys/ethernet.h>.
5736 # Some might have it and declare it in <arpa/inet.h>.
5737 # Some might have it and declare it in <netinet/if_ether.h>.
5738 # Some might have it and not declare it in any header file.
5740 # Before you is a C compiler.
5742 for ac_func in ether_hostton
5744 ac_fn_c_check_func "$LINENO" "ether_hostton" "ac_cv_func_ether_hostton"
5745 if test "x$ac_cv_func_ether_hostton" = xyes; then :
5746 cat >>confdefs.h <<_ACEOF
5747 #define HAVE_ETHER_HOSTTON 1
5753 if test "$ac_cv_func_ether_hostton" = yes; then
5755 # OK, we have ether_hostton(). Is it declared in <net/ethernet.h>?
5757 # This test fails if we don't have <net/ethernet.h> or if we do
5758 # but it doesn't declare ether_hostton().
5760 ac_fn_c_check_decl "$LINENO" "ether_hostton" "ac_cv_have_decl_ether_hostton" "
5761 #include <net/ethernet.h>
5764 if test "x$ac_cv_have_decl_ether_hostton" = xyes; then :
5767 $as_echo "#define NET_ETHERNET_H_DECLARES_ETHER_HOSTTON /**/" >>confdefs.h
5775 if test "$ac_cv_have_decl_ether_hostton" != yes; then
5777 # No, how about <netinet/ether.h>, as on Linux?
5779 # This test fails if we don't have <netinet/ether.h>
5780 # or if we do but it doesn't declare ether_hostton().
5782 # Unset ac_cv_have_decl_ether_hostton so we don't
5783 # treat the previous failure as a cached value and
5784 # suppress the next test.
5786 unset ac_cv_have_decl_ether_hostton
5787 ac_fn_c_check_decl "$LINENO" "ether_hostton" "ac_cv_have_decl_ether_hostton" "
5788 #include <netinet/ether.h>
5791 if test "x$ac_cv_have_decl_ether_hostton" = xyes; then :
5794 $as_echo "#define NETINET_ETHER_H_DECLARES_ETHER_HOSTTON /**/" >>confdefs.h
5803 if test "$ac_cv_have_decl_ether_hostton" != yes; then
5805 # No, how about <sys/ethernet.h>, as on Solaris 10
5808 # This test fails if we don't have <sys/ethernet.h>
5809 # or if we do but it doesn't declare ether_hostton().
5811 # Unset ac_cv_have_decl_ether_hostton so we don't
5812 # treat the previous failure as a cached value and
5813 # suppress the next test.
5815 unset ac_cv_have_decl_ether_hostton
5816 ac_fn_c_check_decl "$LINENO" "ether_hostton" "ac_cv_have_decl_ether_hostton" "
5817 #include <sys/ethernet.h>
5820 if test "x$ac_cv_have_decl_ether_hostton" = xyes; then :
5823 $as_echo "#define SYS_ETHERNET_H_DECLARES_ETHER_HOSTTON /**/" >>confdefs.h
5832 if test "$ac_cv_have_decl_ether_hostton" != yes; then
5834 # No, how about <arpa/inet.h>, as in AIX?
5836 # This test fails if we don't have <arpa/inet.h>
5837 # (if we have ether_hostton(), we should have
5838 # networking, and if we have networking, we should
5839 # have <arapa/inet.h>) or if we do but it doesn't
5840 # declare ether_hostton().
5842 # Unset ac_cv_have_decl_ether_hostton so we don't
5843 # treat the previous failure as a cached value and
5844 # suppress the next test.
5846 unset ac_cv_have_decl_ether_hostton
5847 ac_fn_c_check_decl "$LINENO" "ether_hostton" "ac_cv_have_decl_ether_hostton" "
5848 #include <arpa/inet.h>
5851 if test "x$ac_cv_have_decl_ether_hostton" = xyes; then :
5854 $as_echo "#define ARPA_INET_H_DECLARES_ETHER_HOSTTON /**/" >>confdefs.h
5863 if test "$ac_cv_have_decl_ether_hostton" != yes; then
5865 # No, how about <netinet/if_ether.h>?
5866 # On some platforms, it requires <net/if.h> and
5867 # <netinet/in.h>, and we always include it with
5868 # both of them, so test it with both of them.
5870 # This test fails if we don't have <netinet/if_ether.h>
5871 # and the headers we include before it, or if we do but
5872 # <netinet/if_ether.h> doesn't declare ether_hostton().
5874 # Unset ac_cv_have_decl_ether_hostton so we don't
5875 # treat the previous failure as a cached value and
5876 # suppress the next test.
5878 unset ac_cv_have_decl_ether_hostton
5879 ac_fn_c_check_decl "$LINENO" "ether_hostton" "ac_cv_have_decl_ether_hostton" "
5880 #include <sys/types.h>
5881 #include <sys/socket.h>
5883 #include <netinet/in.h>
5884 #include <netinet/if_ether.h>
5887 if test "x$ac_cv_have_decl_ether_hostton" = xyes; then :
5890 $as_echo "#define NETINET_IF_ETHER_H_DECLARES_ETHER_HOSTTON /**/" >>confdefs.h
5897 # After all that, is ether_hostton() declared?
5899 if test "$ac_cv_have_decl_ether_hostton" = yes; then
5904 $as_echo "#define HAVE_DECL_ETHER_HOSTTON 1" >>confdefs.h
5908 # No, we'll have to declare it ourselves.
5909 # Do we have "struct ether_addr" if we include
5910 # <netinet/if_ether.h>?
5912 ac_fn_c_check_type "$LINENO" "struct ether_addr" "ac_cv_type_struct_ether_addr" "
5913 #include <sys/types.h>
5914 #include <sys/socket.h>
5916 #include <netinet/in.h>
5917 #include <netinet/if_ether.h>
5920 if test "x$ac_cv_type_struct_ether_addr" = xyes; then :
5922 cat >>confdefs.h <<_ACEOF
5923 #define HAVE_STRUCT_ETHER_ADDR 1
5933 # For various things that might use pthreads.
5935 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
5936 if test "x$ac_cv_header_pthread_h" = xyes; then :
5939 # OK, we have pthread.h. Do we have pthread_create in the
5942 ac_fn_c_check_func "$LINENO" "pthread_create" "ac_cv_func_pthread_create"
5943 if test "x$ac_cv_func_pthread_create" = xyes; then :
5948 ac_lbl_have_pthreads="found"
5953 # No - do we have it in -lpthreads?
5955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthreads" >&5
5956 $as_echo_n "checking for pthread_create in -lpthreads... " >&6; }
5957 if ${ac_cv_lib_pthreads_pthread_create+:} false; then :
5958 $as_echo_n "(cached) " >&6
5960 ac_check_lib_save_LIBS=$LIBS
5961 LIBS="-lpthreads $LIBS"
5962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5963 /* end confdefs.h. */
5965 /* Override any GCC internal prototype to avoid an error.
5966 Use char because int might match the return type of a GCC
5967 builtin and then its argument prototype would still apply. */
5971 char pthread_create ();
5975 return pthread_create ();
5980 if ac_fn_c_try_link "$LINENO"; then :
5981 ac_cv_lib_pthreads_pthread_create=yes
5983 ac_cv_lib_pthreads_pthread_create=no
5985 rm -f core conftest.err conftest.$ac_objext \
5986 conftest$ac_exeext conftest.$ac_ext
5987 LIBS=$ac_check_lib_save_LIBS
5989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_create" >&5
5990 $as_echo "$ac_cv_lib_pthreads_pthread_create" >&6; }
5991 if test "x$ac_cv_lib_pthreads_pthread_create" = xyes; then :
5994 # Yes - add -lpthreads.
5996 ac_lbl_have_pthreads="found"
5997 PTHREAD_LIBS="$PTHREAD_LIBS -lpthreads"
6002 # No - do we have it in -lpthread?
6004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
6005 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
6006 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
6007 $as_echo_n "(cached) " >&6
6009 ac_check_lib_save_LIBS=$LIBS
6010 LIBS="-lpthread $LIBS"
6011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6012 /* end confdefs.h. */
6014 /* Override any GCC internal prototype to avoid an error.
6015 Use char because int might match the return type of a GCC
6016 builtin and then its argument prototype would still apply. */
6020 char pthread_create ();
6024 return pthread_create ();
6029 if ac_fn_c_try_link "$LINENO"; then :
6030 ac_cv_lib_pthread_pthread_create=yes
6032 ac_cv_lib_pthread_pthread_create=no
6034 rm -f core conftest.err conftest.$ac_objext \
6035 conftest$ac_exeext conftest.$ac_ext
6036 LIBS=$ac_check_lib_save_LIBS
6038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
6039 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
6040 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
6043 # Yes - add -lpthread.
6045 ac_lbl_have_pthreads="found"
6046 PTHREAD_LIBS="$PTHREAD_LIBS -lpthread"
6053 ac_lbl_have_pthreads="not found"
6067 # We didn't find pthread.h.
6069 ac_lbl_have_pthreads="not found"
6076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if --disable-protochain option is specified" >&5
6077 $as_echo_n "checking if --disable-protochain option is specified... " >&6; }
6078 # Check whether --enable-protochain was given.
6079 if test "${enable_protochain+set}" = set; then :
6080 enableval=$enable_protochain;
6083 case "x$enable_protochain" in
6084 xyes) enable_protochain=enabled ;;
6085 xno) enable_protochain=disabled ;;
6086 x) enable_protochain=enabled ;;
6089 if test "$enable_protochain" = "disabled"; then
6091 $as_echo "#define NO_PROTOCHAIN 1" >>confdefs.h
6094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_protochain}" >&5
6095 $as_echo "${enable_protochain}" >&6; }
6098 # valgrindtest directly uses the native capture mechanism, but
6099 # only tests with BPF and PF_PACKET sockets; only enable it if
6100 # we have BPF or PF_PACKET sockets.
6105 # SITA support is mutually exclusive with native capture support;
6106 # "--with-sita" selects SITA support.
6109 # Check whether --with-sita was given.
6110 if test "${with_sita+set}" = set; then :
6112 if test ! "x$withval" = "xno" ; then
6114 $as_echo "#define SITA 1" >>confdefs.h
6116 { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling SITA ACN support" >&5
6117 $as_echo "$as_me: Enabling SITA ACN support" >&6;}
6124 # Check whether --with-pcap was given.
6125 if test "${with_pcap+set}" = set; then :
6129 if test ! -z "$with_pcap" ; then
6133 # Check for a bunch of headers for various packet
6134 # capture mechanisms.
6136 for ac_header in net/bpf.h
6138 ac_fn_c_check_header_mongrel "$LINENO" "net/bpf.h" "ac_cv_header_net_bpf_h" "$ac_includes_default"
6139 if test "x$ac_cv_header_net_bpf_h" = xyes; then :
6140 cat >>confdefs.h <<_ACEOF
6141 #define HAVE_NET_BPF_H 1
6148 if test "$ac_cv_header_net_bpf_h" = yes; then
6150 # Does it define BIOCSETIF?
6151 # I.e., is it a header for an LBL/BSD-style capture
6152 # mechanism, or is it just a header for a BPF filter
6153 # engine? Some versions of Arch Linux, for example,
6154 # have a net/bpf.h that doesn't define BIOCSETIF;
6155 # as it's a Linux, it should use packet sockets,
6160 # sys/types.h, because FreeBSD 10's net/bpf.h
6161 # requires that various BSD-style integer types
6164 # sys/time.h, because AIX 5.2 and 5.3's net/bpf.h
6165 # doesn't include it but does use struct timeval
6166 # in ioctl definitions;
6168 # sys/ioctl.h and, if we have it, sys/ioccom.h,
6169 # because net/bpf.h defines ioctls;
6171 # net/if.h, because it defines some structures
6172 # used in ioctls defined by net/bpf.h;
6174 # sys/socket.h, because OpenBSD 5.9's net/bpf.h
6175 # defines some structure fields as being
6178 # and net/bpf.h doesn't necessarily include all
6179 # of those headers itself.
6181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if net/bpf.h defines BIOCSETIF" >&5
6182 $as_echo_n "checking if net/bpf.h defines BIOCSETIF... " >&6; }
6183 if ${ac_cv_lbl_bpf_h_defines_biocsetif+:} false; then :
6184 $as_echo_n "(cached) " >&6
6186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6187 /* end confdefs.h. */
6189 #include <sys/types.h>
6190 #include <sys/time.h>
6191 #include <sys/ioctl.h>
6192 #include <sys/socket.h>
6193 #ifdef HAVE_SYS_IOCCOM_H
6194 #include <sys/ioccom.h>
6196 #include <net/bpf.h>
6202 u_int i = BIOCSETIF;
6207 if ac_fn_c_try_compile "$LINENO"; then :
6208 ac_cv_lbl_bpf_h_defines_biocsetif=yes
6210 ac_cv_lbl_bpf_h_defines_biocsetif=no
6212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_bpf_h_defines_biocsetif" >&5
6216 $as_echo "$ac_cv_lbl_bpf_h_defines_biocsetif" >&6; }
6218 for ac_header in net/pfilt.h net/enet.h
6220 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6221 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6222 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6223 cat >>confdefs.h <<_ACEOF
6224 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6231 for ac_header in net/nit.h sys/net/nit.h
6233 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6234 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6235 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6236 cat >>confdefs.h <<_ACEOF
6237 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6244 for ac_header in linux/socket.h net/raw.h sys/dlpi.h
6246 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6247 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6248 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6249 cat >>confdefs.h <<_ACEOF
6250 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6258 if test "$ac_cv_lbl_bpf_h_defines_biocsetif" = yes; then
6261 # Check this before DLPI, so that we pick BPF on
6262 # Solaris 11 and later.
6267 # We have BPF, so build valgrindtest with "make test"
6268 # on macOS and FreeBSD (add your OS once there's a
6273 freebsd*|darwin*|linux*)
6274 VALGRINDTEST_SRC=valgrindtest.c
6277 elif test "$ac_cv_header_linux_socket_h" = yes; then
6279 # No prizes for guessing this one.
6284 # XXX - this won't work with older kernels that have
6285 # SOCK_PACKET sockets but not PF_PACKET sockets.
6287 VALGRINDTEST_SRC=valgrindtest.c
6288 elif test "$ac_cv_header_net_pfilt_h" = yes; then
6290 # DEC OSF/1, Digital UNIX, Tru64 UNIX
6293 elif test "$ac_cv_header_net_enet_h" = yes; then
6295 # Stanford Enetfilter.
6298 elif test "$ac_cv_header_net_nit_h" = yes; then
6300 # SunOS 4.x STREAMS NIT.
6303 elif test "$ac_cv_header_sys_net_nit_h" = yes; then
6305 # Pre-SunOS 4.x non-STREAMS NIT.
6308 elif test "$ac_cv_header_net_raw_h" = yes; then
6313 elif test "$ac_cv_header_sys_dlpi_h" = yes; then
6315 # DLPI on pre-Solaris 11 SunOS 5, HP-UX, possibly others.
6320 # Nothing we support.
6323 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine packet capture interface" >&5
6324 $as_echo "$as_me: WARNING: cannot determine packet capture interface" >&2;}
6325 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: (see the INSTALL doc for more info)" >&5
6326 $as_echo "$as_me: WARNING: (see the INSTALL doc for more info)" >&2;}
6329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking packet capture type" >&5
6330 $as_echo_n "checking packet capture type... " >&6; }
6331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $V_PCAP" >&5
6332 $as_echo "$V_PCAP" >&6; }
6336 # Do capture-mechanism-dependent tests.
6341 # Needed for common functions used by pcap-[dlpi,libdlpi].c
6346 # Checks for some header files.
6348 for ac_header in sys/bufmod.h sys/dlpi_ext.h
6350 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6351 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6352 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6353 cat >>confdefs.h <<_ACEOF
6354 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6363 # Checks to see if Solaris has the public libdlpi(3LIB) library.
6364 # Note: The existence of /usr/include/libdlpi.h does not mean it is the
6365 # public libdlpi(3LIB) version. Before libdlpi was made public, a
6366 # private version also existed, which did not have the same APIs.
6367 # Due to a gcc bug, the default search path for 32-bit libraries does
6368 # not include /lib, we add it explicitly here.
6369 # [http://bugs.opensolaris.org/view_bug.do?bug_id=6619485].
6370 # Also, due to the bug above applications that link to libpcap with
6371 # libdlpi will have to add "-L/lib" option to "configure".
6373 saved_ldflags=$LDFLAGS
6374 LDFLAGS="$LIBS -L/lib"
6375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlpi_walk in -ldlpi" >&5
6376 $as_echo_n "checking for dlpi_walk in -ldlpi... " >&6; }
6377 if ${ac_cv_lib_dlpi_dlpi_walk+:} false; then :
6378 $as_echo_n "(cached) " >&6
6380 ac_check_lib_save_LIBS=$LIBS
6382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6383 /* end confdefs.h. */
6385 /* Override any GCC internal prototype to avoid an error.
6386 Use char because int might match the return type of a GCC
6387 builtin and then its argument prototype would still apply. */
6395 return dlpi_walk ();
6400 if ac_fn_c_try_link "$LINENO"; then :
6401 ac_cv_lib_dlpi_dlpi_walk=yes
6403 ac_cv_lib_dlpi_dlpi_walk=no
6405 rm -f core conftest.err conftest.$ac_objext \
6406 conftest$ac_exeext conftest.$ac_ext
6407 LIBS=$ac_check_lib_save_LIBS
6409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dlpi_dlpi_walk" >&5
6410 $as_echo "$ac_cv_lib_dlpi_dlpi_walk" >&6; }
6411 if test "x$ac_cv_lib_dlpi_dlpi_walk" = xyes; then :
6416 $as_echo "#define HAVE_LIBDLPI 1" >>confdefs.h
6423 LDFLAGS=$saved_ldflags
6426 # Checks whether <sys/dlpi.h> is usable, to catch weird SCO
6429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/dlpi.h> is usable" >&5
6430 $as_echo_n "checking whether <sys/dlpi.h> is usable... " >&6; }
6431 if ${ac_cv_sys_dlpi_usable+:} false; then :
6432 $as_echo_n "(cached) " >&6
6434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6435 /* end confdefs.h. */
6437 #include <sys/types.h>
6438 #include <sys/time.h>
6439 #include <sys/dlpi.h>
6444 int i = DL_PROMISC_PHYS;
6449 if ac_fn_c_try_compile "$LINENO"; then :
6450 ac_cv_sys_dlpi_usable=yes
6452 ac_cv_sys_dlpi_usable=no
6454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_dlpi_usable" >&5
6458 $as_echo "$ac_cv_sys_dlpi_usable" >&6; }
6459 if test $ac_cv_sys_dlpi_usable = no ; then
6460 as_fn_error $? "<sys/dlpi.h> is not usable on this system; it probably has a non-standard DLPI" "$LINENO" 5
6464 # Check to see if Solaris has the dl_passive_req_t struct defined
6466 # This check is for DLPI support for passive modes.
6467 # See dlpi(7P) for more details.
6469 ac_fn_c_check_type "$LINENO" "dl_passive_req_t" "ac_cv_type_dl_passive_req_t" "
6470 #include <sys/types.h>
6471 #include <sys/dlpi.h>
6474 if test "x$ac_cv_type_dl_passive_req_t" = xyes; then :
6476 cat >>confdefs.h <<_ACEOF
6477 #define HAVE_DL_PASSIVE_REQ_T 1
6487 # Do we have the wireless extensions?
6489 for ac_header in linux/wireless.h
6491 ac_fn_c_check_header_compile "$LINENO" "linux/wireless.h" "ac_cv_header_linux_wireless_h" "
6492 #include <sys/socket.h>
6493 #include <linux/if.h>
6494 #include <linux/types.h>
6497 if test "x$ac_cv_header_linux_wireless_h" = xyes; then :
6498 cat >>confdefs.h <<_ACEOF
6499 #define HAVE_LINUX_WIRELESS_H 1
6511 # Check whether --with-libnl was given.
6512 if test "${with_libnl+set}" = set; then :
6513 withval=$with_libnl; with_libnl=$withval
6515 with_libnl=if_available
6519 if test x$with_libnl != xno ; then
6522 incdir=-I/usr/include/libnl3
6524 case "$with_libnl" in
6530 if test -d $withval; then
6531 libnldir=-L${withval}/lib/.libs
6532 incdir=-I${withval}/include
6538 # Try libnl 3.x first.
6540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_socket_alloc in -lnl-3" >&5
6541 $as_echo_n "checking for nl_socket_alloc in -lnl-3... " >&6; }
6542 if ${ac_cv_lib_nl_3_nl_socket_alloc+:} false; then :
6543 $as_echo_n "(cached) " >&6
6545 ac_check_lib_save_LIBS=$LIBS
6546 LIBS="-lnl-3 ${incdir} ${libnldir} -lnl-genl-3 -lnl-3 $LIBS"
6547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6548 /* end confdefs.h. */
6550 /* Override any GCC internal prototype to avoid an error.
6551 Use char because int might match the return type of a GCC
6552 builtin and then its argument prototype would still apply. */
6556 char nl_socket_alloc ();
6560 return nl_socket_alloc ();
6565 if ac_fn_c_try_link "$LINENO"; then :
6566 ac_cv_lib_nl_3_nl_socket_alloc=yes
6568 ac_cv_lib_nl_3_nl_socket_alloc=no
6570 rm -f core conftest.err conftest.$ac_objext \
6571 conftest$ac_exeext conftest.$ac_ext
6572 LIBS=$ac_check_lib_save_LIBS
6574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nl_3_nl_socket_alloc" >&5
6575 $as_echo "$ac_cv_lib_nl_3_nl_socket_alloc" >&6; }
6576 if test "x$ac_cv_lib_nl_3_nl_socket_alloc" = xyes; then :
6579 # Yes, we have libnl 3.x.
6581 LIBS="${libnldir} -lnl-genl-3 -lnl-3 $LIBS"
6583 $as_echo "#define HAVE_LIBNL 1" >>confdefs.h
6586 $as_echo "#define HAVE_LIBNL_3_x 1" >>confdefs.h
6589 $as_echo "#define HAVE_LIBNL_NLE 1" >>confdefs.h
6592 $as_echo "#define HAVE_LIBNL_SOCKETS 1" >>confdefs.h
6594 V_INCLS="$V_INCLS ${incdir}"
6600 if test x$have_any_nl = xno ; then
6604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_socket_alloc in -lnl" >&5
6605 $as_echo_n "checking for nl_socket_alloc in -lnl... " >&6; }
6606 if ${ac_cv_lib_nl_nl_socket_alloc+:} false; then :
6607 $as_echo_n "(cached) " >&6
6609 ac_check_lib_save_LIBS=$LIBS
6611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6612 /* end confdefs.h. */
6614 /* Override any GCC internal prototype to avoid an error.
6615 Use char because int might match the return type of a GCC
6616 builtin and then its argument prototype would still apply. */
6620 char nl_socket_alloc ();
6624 return nl_socket_alloc ();
6629 if ac_fn_c_try_link "$LINENO"; then :
6630 ac_cv_lib_nl_nl_socket_alloc=yes
6632 ac_cv_lib_nl_nl_socket_alloc=no
6634 rm -f core conftest.err conftest.$ac_objext \
6635 conftest$ac_exeext conftest.$ac_ext
6636 LIBS=$ac_check_lib_save_LIBS
6638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nl_nl_socket_alloc" >&5
6639 $as_echo "$ac_cv_lib_nl_nl_socket_alloc" >&6; }
6640 if test "x$ac_cv_lib_nl_nl_socket_alloc" = xyes; then :
6643 # Yes, we have libnl 2.x.
6645 LIBS="${libnldir} -lnl-genl -lnl $LIBS"
6647 $as_echo "#define HAVE_LIBNL 1" >>confdefs.h
6650 $as_echo "#define HAVE_LIBNL_2_x 1" >>confdefs.h
6653 $as_echo "#define HAVE_LIBNL_NLE 1" >>confdefs.h
6656 $as_echo "#define HAVE_LIBNL_SOCKETS 1" >>confdefs.h
6664 if test x$have_any_nl = xno ; then
6666 # No, we don't; do we have libnl 1.x?
6668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_handle_alloc in -lnl" >&5
6669 $as_echo_n "checking for nl_handle_alloc in -lnl... " >&6; }
6670 if ${ac_cv_lib_nl_nl_handle_alloc+:} false; then :
6671 $as_echo_n "(cached) " >&6
6673 ac_check_lib_save_LIBS=$LIBS
6675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6676 /* end confdefs.h. */
6678 /* Override any GCC internal prototype to avoid an error.
6679 Use char because int might match the return type of a GCC
6680 builtin and then its argument prototype would still apply. */
6684 char nl_handle_alloc ();
6688 return nl_handle_alloc ();
6693 if ac_fn_c_try_link "$LINENO"; then :
6694 ac_cv_lib_nl_nl_handle_alloc=yes
6696 ac_cv_lib_nl_nl_handle_alloc=no
6698 rm -f core conftest.err conftest.$ac_objext \
6699 conftest$ac_exeext conftest.$ac_ext
6700 LIBS=$ac_check_lib_save_LIBS
6702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nl_nl_handle_alloc" >&5
6703 $as_echo "$ac_cv_lib_nl_nl_handle_alloc" >&6; }
6704 if test "x$ac_cv_lib_nl_nl_handle_alloc" = xyes; then :
6709 LIBS="${libnldir} -lnl $LIBS"
6711 $as_echo "#define HAVE_LIBNL 1" >>confdefs.h
6719 if test x$have_any_nl = xno ; then
6721 # No, we don't have libnl at all.
6723 if test x$with_libnl = xyes ; then
6724 as_fn_error $? "libnl support requested but libnl not found" "$LINENO" 5
6729 for ac_header in linux/ethtool.h
6731 ac_fn_c_check_header_compile "$LINENO" "linux/ethtool.h" "ac_cv_header_linux_ethtool_h" "
6732 $ac_includes_default
6733 #include <linux/types.h>
6736 if test "x$ac_cv_header_linux_ethtool_h" = xyes; then :
6737 cat >>confdefs.h <<_ACEOF
6738 #define HAVE_LINUX_ETHTOOL_H 1
6747 # Check to see if struct tpacket_stats is defined in
6748 # <linux/if_packet.h>. If so, then pcap-linux.c can use this
6749 # to report proper statistics.
6753 ac_fn_c_check_type "$LINENO" "struct tpacket_stats" "ac_cv_type_struct_tpacket_stats" "
6754 #include <linux/if_packet.h>
6757 if test "x$ac_cv_type_struct_tpacket_stats" = xyes; then :
6759 cat >>confdefs.h <<_ACEOF
6760 #define HAVE_STRUCT_TPACKET_STATS 1
6768 # Check to see if the tpacket_auxdata struct has a tp_vlan_tci member.
6770 # NOTE: any failure means we conclude that it doesn't have that
6771 # member, so if we don't have tpacket_auxdata, we conclude it
6772 # doesn't have that member (which is OK, as either we won't be
6773 # using code that would use that member, or we wouldn't compile
6775 ac_fn_c_check_member "$LINENO" "struct tpacket_auxdata" "tp_vlan_tci" "ac_cv_member_struct_tpacket_auxdata_tp_vlan_tci" "
6776 #include <sys/types.h>
6777 #include <linux/if_packet.h>
6780 if test "x$ac_cv_member_struct_tpacket_auxdata_tp_vlan_tci" = xyes; then :
6782 cat >>confdefs.h <<_ACEOF
6783 #define HAVE_STRUCT_TPACKET_AUXDATA_TP_VLAN_TCI 1
6793 # Check whether we have the *BSD-style ioctls.
6795 for ac_header in net/if_media.h
6797 ac_fn_c_check_header_mongrel "$LINENO" "net/if_media.h" "ac_cv_header_net_if_media_h" "$ac_includes_default"
6798 if test "x$ac_cv_header_net_if_media_h" = xyes; then :
6799 cat >>confdefs.h <<_ACEOF
6800 #define HAVE_NET_IF_MEDIA_H 1
6809 # Check whether we have struct BPF_TIMEVAL.
6811 ac_fn_c_check_type "$LINENO" "struct BPF_TIMEVAL" "ac_cv_type_struct_BPF_TIMEVAL" "
6812 #include <sys/types.h>
6813 #include <sys/ioctl.h>
6814 #ifdef HAVE_SYS_IOCCOM_H
6815 #include <sys/ioccom.h>
6817 #include <net/bpf.h>
6820 if test "x$ac_cv_type_struct_BPF_TIMEVAL" = xyes; then :
6822 cat >>confdefs.h <<_ACEOF
6823 #define HAVE_STRUCT_BPF_TIMEVAL 1
6833 # --with-pcap=dag is the only way to get here, and it means
6834 # "DAG support but nothing else"
6836 V_DEFS="$V_DEFS -DDAG_ONLY"
6842 # --with-pcap=septel is the only way to get here, and it means
6843 # "Septel support but nothing else"
6845 V_DEFS="$V_DEFS -DSEPTEL_ONLY"
6851 # --with-pcap=snf is the only way to get here, and it means
6852 # "SNF support but nothing else"
6854 V_DEFS="$V_DEFS -DSNF_ONLY"
6862 as_fn_error $? "$V_PCAP is not a valid pcap type" "$LINENO" 5
6866 if test "$V_PCAP" != null
6868 ac_fn_c_check_func "$LINENO" "getifaddrs" "ac_cv_func_getifaddrs"
6869 if test "x$ac_cv_func_getifaddrs" = xyes; then :
6872 # We have "getifaddrs()"; make sure we have <ifaddrs.h>
6873 # as well, just in case some platform is really weird.
6875 ac_fn_c_check_header_mongrel "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "$ac_includes_default"
6876 if test "x$ac_cv_header_ifaddrs_h" = xyes; then :
6879 # We have the header, so we use "getifaddrs()" to
6880 # get the list of interfaces.
6882 V_FINDALLDEVS=fad-getad.c
6887 # We don't have the header - give up.
6888 # XXX - we could also fall back on some other
6889 # mechanism, but, for now, this'll catch this
6890 # problem so that we can at least try to figure
6891 # out something to do on systems with "getifaddrs()"
6892 # but without "ifaddrs.h", if there is something
6893 # we can do on those systems.
6895 as_fn_error $? "Your system has getifaddrs() but doesn't have a usable <ifaddrs.h>." "$LINENO" 5
6904 # Well, we don't have "getifaddrs()", at least not with the
6905 # libraries with which we've decided we need to link
6906 # libpcap with, so we have to use some other mechanism.
6908 # Note that this may happen on Solaris, which has
6909 # getifaddrs(), but in -lsocket, not in -lxnet, so we
6910 # won't find it if we link with -lxnet, which we want
6911 # to do for other reasons.
6913 # For now, we use either the SIOCGIFCONF ioctl or the
6914 # SIOCGLIFCONF ioctl, preferring the latter if we have
6915 # it; the latter is a Solarisism that first appeared
6916 # in Solaris 8. (Solaris's getifaddrs() appears to
6917 # be built atop SIOCGLIFCONF; using it directly
6918 # avoids a not-all-that-useful middleman.)
6920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have SIOCGLIFCONF" >&5
6921 $as_echo_n "checking whether we have SIOCGLIFCONF... " >&6; }
6922 if ${ac_cv_lbl_have_siocglifconf+:} false; then :
6923 $as_echo_n "(cached) " >&6
6925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6926 /* end confdefs.h. */
6927 #include <sys/param.h>
6928 #include <sys/file.h>
6929 #include <sys/ioctl.h>
6930 #include <sys/socket.h>
6931 #include <sys/sockio.h>
6935 ioctl(0, SIOCGLIFCONF, (char *)0);
6940 if ac_fn_c_try_compile "$LINENO"; then :
6941 ac_cv_lbl_have_siocglifconf=yes
6943 ac_cv_lbl_have_siocglifconf=no
6945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_have_siocglifconf" >&5
6949 $as_echo "$ac_cv_lbl_have_siocglifconf" >&6; }
6950 if test $ac_cv_lbl_have_siocglifconf = yes ; then
6951 V_FINDALLDEVS=fad-glifc.c
6953 V_FINDALLDEVS=fad-gifc.c
6965 for ac_header in linux/net_tstamp.h
6967 ac_fn_c_check_header_mongrel "$LINENO" "linux/net_tstamp.h" "ac_cv_header_linux_net_tstamp_h" "$ac_includes_default"
6968 if test "x$ac_cv_header_linux_net_tstamp_h" = xyes; then :
6969 cat >>confdefs.h <<_ACEOF
6970 #define HAVE_LINUX_NET_TSTAMP_H 1
6979 { $as_echo "$as_me:${as_lineno-$LINENO}: no hardware timestamp support implemented for $host_os" >&5
6980 $as_echo "$as_me: no hardware timestamp support implemented for $host_os" >&6;}
6984 # Check whether --enable-packet-ring was given.
6985 if test "${enable_packet_ring+set}" = set; then :
6986 enableval=$enable_packet_ring;
6988 enable_packet_ring=yes
6992 if test "x$enable_packet_ring" != "xno" ; then
6994 $as_echo "#define PCAP_SUPPORT_PACKET_RING 1" >>confdefs.h
7000 # Check for socklen_t.
7002 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
7003 #include <sys/types.h>
7004 #include <sys/socket.h>
7007 if test "x$ac_cv_type_socklen_t" = xyes; then :
7009 cat >>confdefs.h <<_ACEOF
7010 #define HAVE_SOCKLEN_T 1
7017 # Check whether --enable-ipv6 was given.
7018 if test "${enable_ipv6+set}" = set; then :
7019 enableval=$enable_ipv6;
7024 if test "$enable_ipv6" != "no"; then
7026 # We've already made sure we have getaddrinfo above in
7027 # AC_LBL_LIBRARY_NET.
7030 $as_echo "#define INET6 1" >>confdefs.h
7034 # Check for Endace DAG card support.
7036 # Check whether --with-dag was given.
7037 if test "${with_dag+set}" = set; then :
7039 if test "$withval" = no
7041 # User doesn't want DAG support.
7043 elif test "$withval" = yes
7045 # User wants DAG support but hasn't specified a directory.
7048 # User wants DAG support and has specified a directory, so use the provided value.
7055 if test "$V_PCAP" = dag; then
7056 # User requested DAG-only libpcap, so we'd better have
7059 elif test "xxx_only" = yes; then
7060 # User requested something-else-only pcap, so they don't
7065 # Use DAG API if present, otherwise don't
7074 # Check whether --with-dag-includes was given.
7075 if test "${with_dag_includes+set}" = set; then :
7076 withval=$with_dag_includes;
7077 # User wants DAG support and has specified a header directory, so use the provided value.
7079 dag_include_dir=$withval
7085 # Check whether --with-dag-libraries was given.
7086 if test "${with_dag_libraries+set}" = set; then :
7087 withval=$with_dag_libraries;
7088 # User wants DAG support and has specified a library directory, so use the provided value.
7090 dag_lib_dir=$withval
7095 if test "$want_dag" != no; then
7097 # If necessary, set default paths for DAG API headers and libraries.
7098 if test -z "$dag_root"; then
7102 if test -z "$dag_include_dir"; then
7103 dag_include_dir="$dag_root/include"
7106 if test -z "$dag_lib_dir"; then
7107 dag_lib_dir="$dag_root/lib"
7110 V_INCLS="$V_INCLS -I$dag_include_dir"
7112 for ac_header in dagapi.h
7114 ac_fn_c_check_header_mongrel "$LINENO" "dagapi.h" "ac_cv_header_dagapi_h" "$ac_includes_default"
7115 if test "x$ac_cv_header_dagapi_h" = xyes; then :
7116 cat >>confdefs.h <<_ACEOF
7117 #define HAVE_DAGAPI_H 1
7125 if test "$ac_cv_header_dagapi_h" = yes; then
7127 if test $V_PCAP != dag ; then
7128 SSRC="$SSRC pcap-dag.c"
7131 # Check for various DAG API functions.
7132 # Don't need to save and restore LIBS to prevent -ldag being
7133 # included if there's a found-action (arg 3).
7134 saved_ldflags=$LDFLAGS
7135 LDFLAGS="-L$dag_lib_dir"
7136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dag_attach_stream in -ldag" >&5
7137 $as_echo_n "checking for dag_attach_stream in -ldag... " >&6; }
7138 if ${ac_cv_lib_dag_dag_attach_stream+:} false; then :
7139 $as_echo_n "(cached) " >&6
7141 ac_check_lib_save_LIBS=$LIBS
7143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7144 /* end confdefs.h. */
7146 /* Override any GCC internal prototype to avoid an error.
7147 Use char because int might match the return type of a GCC
7148 builtin and then its argument prototype would still apply. */
7152 char dag_attach_stream ();
7156 return dag_attach_stream ();
7161 if ac_fn_c_try_link "$LINENO"; then :
7162 ac_cv_lib_dag_dag_attach_stream=yes
7164 ac_cv_lib_dag_dag_attach_stream=no
7166 rm -f core conftest.err conftest.$ac_objext \
7167 conftest$ac_exeext conftest.$ac_ext
7168 LIBS=$ac_check_lib_save_LIBS
7170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dag_dag_attach_stream" >&5
7171 $as_echo "$ac_cv_lib_dag_dag_attach_stream" >&6; }
7172 if test "x$ac_cv_lib_dag_dag_attach_stream" = xyes; then :
7173 cat >>confdefs.h <<_ACEOF
7174 #define HAVE_LIBDAG 1
7180 as_fn_error $? "DAG library lacks streams support" "$LINENO" 5
7183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dag_attach_stream64 in -ldag" >&5
7184 $as_echo_n "checking for dag_attach_stream64 in -ldag... " >&6; }
7185 if ${ac_cv_lib_dag_dag_attach_stream64+:} false; then :
7186 $as_echo_n "(cached) " >&6
7188 ac_check_lib_save_LIBS=$LIBS
7190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7191 /* end confdefs.h. */
7193 /* Override any GCC internal prototype to avoid an error.
7194 Use char because int might match the return type of a GCC
7195 builtin and then its argument prototype would still apply. */
7199 char dag_attach_stream64 ();
7203 return dag_attach_stream64 ();
7208 if ac_fn_c_try_link "$LINENO"; then :
7209 ac_cv_lib_dag_dag_attach_stream64=yes
7211 ac_cv_lib_dag_dag_attach_stream64=no
7213 rm -f core conftest.err conftest.$ac_objext \
7214 conftest$ac_exeext conftest.$ac_ext
7215 LIBS=$ac_check_lib_save_LIBS
7217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dag_dag_attach_stream64" >&5
7218 $as_echo "$ac_cv_lib_dag_dag_attach_stream64" >&6; }
7219 if test "x$ac_cv_lib_dag_dag_attach_stream64" = xyes; then :
7220 dag_large_streams="1"
7222 dag_large_streams="0"
7225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dag_get_erf_types in -ldag" >&5
7226 $as_echo_n "checking for dag_get_erf_types in -ldag... " >&6; }
7227 if ${ac_cv_lib_dag_dag_get_erf_types+:} false; then :
7228 $as_echo_n "(cached) " >&6
7230 ac_check_lib_save_LIBS=$LIBS
7232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7233 /* end confdefs.h. */
7235 /* Override any GCC internal prototype to avoid an error.
7236 Use char because int might match the return type of a GCC
7237 builtin and then its argument prototype would still apply. */
7241 char dag_get_erf_types ();
7245 return dag_get_erf_types ();
7250 if ac_fn_c_try_link "$LINENO"; then :
7251 ac_cv_lib_dag_dag_get_erf_types=yes
7253 ac_cv_lib_dag_dag_get_erf_types=no
7255 rm -f core conftest.err conftest.$ac_objext \
7256 conftest$ac_exeext conftest.$ac_ext
7257 LIBS=$ac_check_lib_save_LIBS
7259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dag_dag_get_erf_types" >&5
7260 $as_echo "$ac_cv_lib_dag_dag_get_erf_types" >&6; }
7261 if test "x$ac_cv_lib_dag_dag_get_erf_types" = xyes; then :
7264 $as_echo "#define HAVE_DAG_GET_ERF_TYPES 1" >>confdefs.h
7268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dag_get_stream_erf_types in -ldag" >&5
7269 $as_echo_n "checking for dag_get_stream_erf_types in -ldag... " >&6; }
7270 if ${ac_cv_lib_dag_dag_get_stream_erf_types+:} false; then :
7271 $as_echo_n "(cached) " >&6
7273 ac_check_lib_save_LIBS=$LIBS
7275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7276 /* end confdefs.h. */
7278 /* Override any GCC internal prototype to avoid an error.
7279 Use char because int might match the return type of a GCC
7280 builtin and then its argument prototype would still apply. */
7284 char dag_get_stream_erf_types ();
7288 return dag_get_stream_erf_types ();
7293 if ac_fn_c_try_link "$LINENO"; then :
7294 ac_cv_lib_dag_dag_get_stream_erf_types=yes
7296 ac_cv_lib_dag_dag_get_stream_erf_types=no
7298 rm -f core conftest.err conftest.$ac_objext \
7299 conftest$ac_exeext conftest.$ac_ext
7300 LIBS=$ac_check_lib_save_LIBS
7302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dag_dag_get_stream_erf_types" >&5
7303 $as_echo "$ac_cv_lib_dag_dag_get_stream_erf_types" >&6; }
7304 if test "x$ac_cv_lib_dag_dag_get_stream_erf_types" = xyes; then :
7307 $as_echo "#define HAVE_DAG_GET_STREAM_ERF_TYPES 1" >>confdefs.h
7312 LDFLAGS=$saved_ldflags
7315 # We assume that if we have libdag we have libdagconf,
7316 # as they're installed at the same time from the same
7319 LIBS="$LIBS -ldag -ldagconf"
7320 LDFLAGS="$LDFLAGS -L$dag_lib_dir"
7322 if test "$dag_large_streams" = 1; then
7324 $as_echo "#define HAVE_DAG_LARGE_STREAMS_API 1" >>confdefs.h
7326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for vdag_set_device_info in -lvdag" >&5
7327 $as_echo_n "checking for vdag_set_device_info in -lvdag... " >&6; }
7328 if ${ac_cv_lib_vdag_vdag_set_device_info+:} false; then :
7329 $as_echo_n "(cached) " >&6
7331 ac_check_lib_save_LIBS=$LIBS
7333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7334 /* end confdefs.h. */
7336 /* Override any GCC internal prototype to avoid an error.
7337 Use char because int might match the return type of a GCC
7338 builtin and then its argument prototype would still apply. */
7342 char vdag_set_device_info ();
7346 return vdag_set_device_info ();
7351 if ac_fn_c_try_link "$LINENO"; then :
7352 ac_cv_lib_vdag_vdag_set_device_info=yes
7354 ac_cv_lib_vdag_vdag_set_device_info=no
7356 rm -f core conftest.err conftest.$ac_objext \
7357 conftest$ac_exeext conftest.$ac_ext
7358 LIBS=$ac_check_lib_save_LIBS
7360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_vdag_vdag_set_device_info" >&5
7361 $as_echo "$ac_cv_lib_vdag_vdag_set_device_info" >&6; }
7362 if test "x$ac_cv_lib_vdag_vdag_set_device_info" = xyes; then :
7363 ac_dag_have_vdag="1"
7365 ac_dag_have_vdag="0"
7368 if test "$ac_dag_have_vdag" = 1; then
7370 $as_echo "#define HAVE_DAG_VDAG 1" >>confdefs.h
7372 if test "$ac_lbl_have_pthreads" != "found"; then
7373 as_fn_error $? "DAG requires pthreads, but we didn't find them" "$LINENO" 5
7375 LIBS="$LIBS $PTHREAD_LIBS"
7380 $as_echo "#define HAVE_DAG_API 1" >>confdefs.h
7384 if test "$V_PCAP" = dag; then
7385 # User requested "dag" capture type but we couldn't
7386 # find the DAG API support.
7387 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
7390 if test "$want_dag" = yes; then
7391 # User wanted DAG support but we couldn't find it.
7392 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
7398 # Check whether --with-septel was given.
7399 if test "${with_septel+set}" = set; then :
7400 withval=$with_septel;
7401 if test "$withval" = no
7404 elif test "$withval" = yes
7410 septel_root=$withval
7415 if test "$V_PCAP" = septel; then
7416 # User requested Septel-only libpcap, so we'd better have
7419 elif test "xxx_only" = yes; then
7420 # User requested something-else-only pcap, so they don't
7421 # want Septel support.
7425 # Use Septel API if present, otherwise don't
7427 want_septel=ifpresent
7433 ac_cv_lbl_septel_api=no
7434 if test "$with_septel" != no; then
7436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have Septel API headers" >&5
7437 $as_echo_n "checking whether we have Septel API headers... " >&6; }
7439 # If necessary, set default paths for Septel API headers and libraries.
7440 if test -z "$septel_root"; then
7441 septel_root=$srcdir/../septel
7444 septel_tools_dir="$septel_root"
7445 septel_include_dir="$septel_root/INC"
7447 if test -r "$septel_include_dir/msg.h"; then
7448 ac_cv_lbl_septel_api=yes
7451 if test "$ac_cv_lbl_septel_api" = yes; then
7452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($septel_include_dir)" >&5
7453 $as_echo "yes ($septel_include_dir)" >&6; }
7455 V_INCLS="$V_INCLS -I$septel_include_dir"
7456 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"
7457 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"
7459 if test "$V_PCAP" != septel ; then
7460 SSRC="$SSRC pcap-septel.c"
7464 $as_echo "#define HAVE_SEPTEL_API 1" >>confdefs.h
7467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7468 $as_echo "no" >&6; }
7470 if test "$V_PCAP" = septel; then
7471 # User requested "septel" capture type but
7472 # we couldn't find the Septel API support.
7473 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
7476 if test "$want_septel" = yes; then
7477 # User wanted Septel support but we couldn't find it.
7478 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
7483 # Check for Myricom SNF support.
7485 # Check whether --with-snf was given.
7486 if test "${with_snf+set}" = set; then :
7488 if test "$withval" = no
7490 # User explicitly doesn't want SNF
7492 elif test "$withval" = yes
7494 # User wants SNF support but hasn't specified a directory.
7497 # User wants SNF support with a specified directory.
7504 if test "$V_PCAP" = snf; then
7505 # User requested Sniffer-only libpcap, so we'd better have
7508 elif test "xxx_only" = yes; then
7509 # User requested something-else-only pcap, so they don't
7514 # Use Sniffer API if present, otherwise don't
7523 # Check whether --with-snf-includes was given.
7524 if test "${with_snf_includes+set}" = set; then :
7525 withval=$with_snf_includes;
7526 # User wants SNF with specific header directory
7528 snf_include_dir=$withval
7534 # Check whether --with-snf-libraries was given.
7535 if test "${with_snf_libraries+set}" = set; then :
7536 withval=$with_snf_libraries;
7537 # User wants SNF with specific lib directory
7539 snf_lib_dir=$withval
7544 ac_cv_lbl_snf_api=no
7545 if test "$with_snf" != no; then
7547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have Myricom Sniffer API" >&5
7548 $as_echo_n "checking whether we have Myricom Sniffer API... " >&6; }
7550 # If necessary, set default paths for Sniffer headers and libraries.
7551 if test -z "$snf_root"; then
7555 if test -z "$snf_include_dir"; then
7556 snf_include_dir="$snf_root/include"
7559 if test -z "$snf_lib_dir"; then
7560 snf_lib_dir="$snf_root/lib"
7563 if test -f "$snf_include_dir/snf.h"; then
7564 # We found a header; make sure we can link with the library
7565 saved_ldflags=$LDFLAGS
7566 LDFLAGS="$LDFLAGS -L$snf_lib_dir"
7567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snf_init in -lsnf" >&5
7568 $as_echo_n "checking for snf_init in -lsnf... " >&6; }
7569 if ${ac_cv_lib_snf_snf_init+:} false; then :
7570 $as_echo_n "(cached) " >&6
7572 ac_check_lib_save_LIBS=$LIBS
7574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7575 /* end confdefs.h. */
7577 /* Override any GCC internal prototype to avoid an error.
7578 Use char because int might match the return type of a GCC
7579 builtin and then its argument prototype would still apply. */
7592 if ac_fn_c_try_link "$LINENO"; then :
7593 ac_cv_lib_snf_snf_init=yes
7595 ac_cv_lib_snf_snf_init=no
7597 rm -f core conftest.err conftest.$ac_objext \
7598 conftest$ac_exeext conftest.$ac_ext
7599 LIBS=$ac_check_lib_save_LIBS
7601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_snf_snf_init" >&5
7602 $as_echo "$ac_cv_lib_snf_snf_init" >&6; }
7603 if test "x$ac_cv_lib_snf_snf_init" = xyes; then :
7604 ac_cv_lbl_snf_api="yes"
7607 LDFLAGS="$saved_ldflags"
7608 if test "$ac_cv_lbl_snf_api" = no; then
7609 as_fn_error $? "SNF API cannot correctly be linked; check config.log" "$LINENO" 5
7613 if test "$ac_cv_lbl_snf_api" = yes; then
7614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($snf_root)" >&5
7615 $as_echo "yes ($snf_root)" >&6; }
7617 V_INCLS="$V_INCLS -I$snf_include_dir"
7619 LDFLAGS="$LDFLAGS -L$snf_lib_dir"
7621 if test "$V_PCAP" != snf ; then
7622 SSRC="$SSRC pcap-snf.c"
7626 $as_echo "#define HAVE_SNF_API 1" >>confdefs.h
7629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7630 $as_echo "no" >&6; }
7632 if test "$want_snf" = yes; then
7633 # User requested "snf" capture type but
7634 # we couldn't find the Sniffer API support.
7635 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
7638 if test "$want_snf" = yes; then
7639 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
7644 # Check for Riverbed TurboCap support.
7646 # Check whether --with-turbocap was given.
7647 if test "${with_turbocap+set}" = set; then :
7648 withval=$with_turbocap;
7649 if test "$withval" = no
7651 # User explicitly doesn't want TurboCap
7653 elif test "$withval" = yes
7655 # User wants TurboCap support but hasn't specified a directory.
7658 # User wants TurboCap support with a specified directory.
7660 turbocap_root=$withval
7665 if test "xxx_only" = yes; then
7666 # User requested something-else-only pcap, so they don't
7667 # want TurboCap support.
7671 # Use TurboCap API if present, otherwise don't
7673 want_turbocap=ifpresent
7679 ac_cv_lbl_turbocap_api=no
7680 if test "$want_turbocap" != no; then
7682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether TurboCap is supported" >&5
7683 $as_echo_n "checking whether TurboCap is supported... " >&6; }
7685 save_CFLAGS="$CFLAGS"
7687 if test ! -z "$turbocap_root"; then
7688 TURBOCAP_CFLAGS="-I$turbocap_root/include"
7689 TURBOCAP_LIBS="-L$turbocap_root/lib"
7690 CFLAGS="$CFLAGS $TURBOCAP_CFLAGS"
7693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7694 /* end confdefs.h. */
7702 TC_INSTANCE a; TC_PORT b; TC_BOARD c;
7704 (void)TcInstanceCreateByName("foo", &i);
7710 if ac_fn_c_try_compile "$LINENO"; then :
7711 ac_cv_lbl_turbocap_api=yes
7713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7715 CFLAGS="$save_CFLAGS"
7716 if test $ac_cv_lbl_turbocap_api = yes; then
7717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7718 $as_echo "yes" >&6; }
7720 SSRC="$SSRC pcap-tc.c"
7721 V_INCLS="$V_INCLS $TURBOCAP_CFLAGS"
7722 LIBS="$LIBS $TURBOCAP_LIBS -lTcApi -lpthread -lstdc++"
7725 $as_echo "#define HAVE_TC_API 1" >>confdefs.h
7728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7729 $as_echo "no" >&6; }
7731 if test "$want_turbocap" = yes; then
7732 # User wanted Turbo support but we couldn't find it.
7733 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
7738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable remote packet capture" >&5
7739 $as_echo_n "checking whether to enable remote packet capture... " >&6; }
7740 # Check whether --enable-remote was given.
7741 if test "${enable_remote+set}" = set; then :
7742 enableval=$enable_remote;
7747 case "$enableval" in
7748 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7749 $as_echo "yes" >&6; }
7750 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Remote packet capture may expose libpcap-based applications" >&5
7751 $as_echo "$as_me: WARNING: Remote packet capture may expose libpcap-based applications" >&2;}
7752 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: to attacks by malicious remote capture servers!" >&5
7753 $as_echo "$as_me: WARNING: to attacks by malicious remote capture servers!" >&2;}
7755 # rpcapd requires pthreads on UN*X.
7757 if test "$ac_lbl_have_pthreads" != "found"; then
7758 as_fn_error $? "rpcapd requires pthreads, but we didn't find them" "$LINENO" 5
7761 # It also requires crypt().
7762 # Do we have it in the system libraries?
7764 ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt"
7765 if test "x$ac_cv_func_crypt" = xyes; then :
7770 # No. Do we have it in -lcrypt?
7772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
7773 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
7774 if ${ac_cv_lib_crypt_crypt+:} false; then :
7775 $as_echo_n "(cached) " >&6
7777 ac_check_lib_save_LIBS=$LIBS
7778 LIBS="-lcrypt $LIBS"
7779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7780 /* end confdefs.h. */
7782 /* Override any GCC internal prototype to avoid an error.
7783 Use char because int might match the return type of a GCC
7784 builtin and then its argument prototype would still apply. */
7797 if ac_fn_c_try_link "$LINENO"; then :
7798 ac_cv_lib_crypt_crypt=yes
7800 ac_cv_lib_crypt_crypt=no
7802 rm -f core conftest.err conftest.$ac_objext \
7803 conftest$ac_exeext conftest.$ac_ext
7804 LIBS=$ac_check_lib_save_LIBS
7806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
7807 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
7808 if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
7811 # Yes; add -lcrypt to the libraries for rpcapd.
7813 RPCAPD_LIBS="$RPCAPD_LIBS -lcrypt"
7817 as_fn_error $? "rpcapd requires crypt(), but we didn't find it" "$LINENO" 5
7826 # OK, we have crypt(). Do we have getspnam()?
7828 for ac_func in getspnam
7830 ac_fn_c_check_func "$LINENO" "getspnam" "ac_cv_func_getspnam"
7831 if test "x$ac_cv_func_getspnam" = xyes; then :
7832 cat >>confdefs.h <<_ACEOF
7833 #define HAVE_GETSPNAM 1
7841 # Check for various members of struct msghdr.
7843 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
7844 #include \"ftmacros.h\"
7845 #include <sys/socket.h>
7848 if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes; then :
7850 cat >>confdefs.h <<_ACEOF
7851 #define HAVE_STRUCT_MSGHDR_MSG_CONTROL 1
7857 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_flags" "ac_cv_member_struct_msghdr_msg_flags" "
7858 #include \"ftmacros.h\"
7859 #include <sys/socket.h>
7862 if test "x$ac_cv_member_struct_msghdr_msg_flags" = xyes; then :
7864 cat >>confdefs.h <<_ACEOF
7865 #define HAVE_STRUCT_MSGHDR_MSG_FLAGS 1
7873 $as_echo "#define ENABLE_REMOTE /**/" >>confdefs.h
7875 SSRC="$SSRC pcap-new.c pcap-rpcap.c rpcap-protocol.c sockutils.c"
7876 BUILD_RPCAPD=build-rpcapd
7877 INSTALL_RPCAPD=install-rpcapd
7879 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7880 $as_echo "no" >&6; }
7884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build optimizer debugging code" >&5
7885 $as_echo_n "checking whether to build optimizer debugging code... " >&6; }
7886 # Check whether --enable-optimizer-dbg was given.
7887 if test "${enable_optimizer_dbg+set}" = set; then :
7888 enableval=$enable_optimizer_dbg;
7891 if test "$enable_optimizer_dbg" = "yes"; then
7893 $as_echo "#define BDEBUG 1" >>confdefs.h
7896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_optimizer_dbg-no}" >&5
7897 $as_echo "${enable_optimizer_dbg-no}" >&6; }
7899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build parser debugging code" >&5
7900 $as_echo_n "checking whether to build parser debugging code... " >&6; }
7901 # Check whether --enable-yydebug was given.
7902 if test "${enable_yydebug+set}" = set; then :
7903 enableval=$enable_yydebug;
7906 if test "$enable_yydebug" = "yes"; then
7908 $as_echo "#define YYDEBUG 1" >>confdefs.h
7911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_yydebug-no}" >&5
7912 $as_echo "${enable_yydebug-no}" >&6; }
7917 for ac_prog in flex lex
7919 # Extract the first word of "$ac_prog", so it can be a program name with args.
7920 set dummy $ac_prog; ac_word=$2
7921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7922 $as_echo_n "checking for $ac_word... " >&6; }
7923 if ${ac_cv_prog_LEX+:} false; then :
7924 $as_echo_n "(cached) " >&6
7926 if test -n "$LEX"; then
7927 ac_cv_prog_LEX="$LEX" # Let the user override the test.
7929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7933 test -z "$as_dir" && as_dir=.
7934 for ac_exec_ext in '' $ac_executable_extensions; do
7935 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7936 ac_cv_prog_LEX="$ac_prog"
7937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7947 if test -n "$LEX"; then
7948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
7949 $as_echo "$LEX" >&6; }
7951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7952 $as_echo "no" >&6; }
7956 test -n "$LEX" && break
7958 test -n "$LEX" || LEX=":"
7960 if test "x$LEX" != "x:"; then
7961 cat >conftest.l <<_ACEOF
7967 e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
7968 yyless ((input () != 0)); }
7969 f { unput (yytext[0]); }
7970 . { BEGIN INITIAL; }
7972 #ifdef YYTEXT_POINTER
7973 extern char *yytext;
7978 return ! yylex () + ! yywrap ();
7981 { { ac_try="$LEX conftest.l"
7983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7984 *) ac_try_echo=$ac_try;;
7986 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7987 $as_echo "$ac_try_echo"; } >&5
7988 (eval "$LEX conftest.l") 2>&5
7990 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7991 test $ac_status = 0; }
7992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
7993 $as_echo_n "checking lex output file root... " >&6; }
7994 if ${ac_cv_prog_lex_root+:} false; then :
7995 $as_echo_n "(cached) " >&6
7998 if test -f lex.yy.c; then
7999 ac_cv_prog_lex_root=lex.yy
8000 elif test -f lexyy.c; then
8001 ac_cv_prog_lex_root=lexyy
8003 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
8006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
8007 $as_echo "$ac_cv_prog_lex_root" >&6; }
8008 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
8010 if test -z "${LEXLIB+set}"; then
8011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
8012 $as_echo_n "checking lex library... " >&6; }
8013 if ${ac_cv_lib_lex+:} false; then :
8014 $as_echo_n "(cached) " >&6
8018 ac_cv_lib_lex='none needed'
8019 for ac_lib in '' -lfl -ll; do
8020 LIBS="$ac_lib $ac_save_LIBS"
8021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8022 /* end confdefs.h. */
8023 `cat $LEX_OUTPUT_ROOT.c`
8025 if ac_fn_c_try_link "$LINENO"; then :
8026 ac_cv_lib_lex=$ac_lib
8028 rm -f core conftest.err conftest.$ac_objext \
8029 conftest$ac_exeext conftest.$ac_ext
8030 test "$ac_cv_lib_lex" != 'none needed' && break
8035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
8036 $as_echo "$ac_cv_lib_lex" >&6; }
8037 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
8041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
8042 $as_echo_n "checking whether yytext is a pointer... " >&6; }
8043 if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
8044 $as_echo_n "(cached) " >&6
8046 # POSIX says lex can declare yytext either as a pointer or an array; the
8047 # default is implementation-dependent. Figure out which it is, since
8048 # not all implementations provide the %pointer and %array declarations.
8049 ac_cv_prog_lex_yytext_pointer=no
8051 LIBS="$LEXLIB $ac_save_LIBS"
8052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8053 /* end confdefs.h. */
8055 #define YYTEXT_POINTER 1
8056 `cat $LEX_OUTPUT_ROOT.c`
8058 if ac_fn_c_try_link "$LINENO"; then :
8059 ac_cv_prog_lex_yytext_pointer=yes
8061 rm -f core conftest.err conftest.$ac_objext \
8062 conftest$ac_exeext conftest.$ac_ext
8066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
8067 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
8068 if test $ac_cv_prog_lex_yytext_pointer = yes; then
8070 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
8073 rm -f conftest.l $LEX_OUTPUT_ROOT.c
8076 if test "$LEX" = ":"; then
8077 as_fn_error $? "Neither flex nor lex was found." "$LINENO" 5
8081 # Make sure {f}lex supports the -P, --header-file, and --nounput flags
8082 # and supports processing our scanner.l.
8084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for capable lex" >&5
8085 $as_echo_n "checking for capable lex... " >&6; }
8086 if ${tcpdump_cv_capable_lex+:} false; then :
8087 $as_echo_n "(cached) " >&6
8089 if $LEX -P pcap_ --header-file=/dev/null --nounput -t $srcdir/scanner.l > /dev/null 2>&1; then
8090 tcpdump_cv_capable_lex=yes
8092 tcpdump_cv_capable_lex=insufficient
8095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcpdump_cv_capable_lex" >&5
8096 $as_echo "$tcpdump_cv_capable_lex" >&6; }
8097 if test $tcpdump_cv_capable_lex = insufficient ; then
8098 as_fn_error $? "$LEX is insufficient to compile libpcap.
8099 libpcap requires Flex 2.5.31 or later, or a compatible version of lex." "$LINENO" 5
8103 # Look for yacc/bison/byacc.
8105 for ac_prog in 'bison -y' byacc
8107 # Extract the first word of "$ac_prog", so it can be a program name with args.
8108 set dummy $ac_prog; ac_word=$2
8109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8110 $as_echo_n "checking for $ac_word... " >&6; }
8111 if ${ac_cv_prog_YACC+:} false; then :
8112 $as_echo_n "(cached) " >&6
8114 if test -n "$YACC"; then
8115 ac_cv_prog_YACC="$YACC" # Let the user override the test.
8117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8121 test -z "$as_dir" && as_dir=.
8122 for ac_exec_ext in '' $ac_executable_extensions; do
8123 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8124 ac_cv_prog_YACC="$ac_prog"
8125 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8134 YACC=$ac_cv_prog_YACC
8135 if test -n "$YACC"; then
8136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
8137 $as_echo "$YACC" >&6; }
8139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8140 $as_echo "no" >&6; }
8144 test -n "$YACC" && break
8146 test -n "$YACC" || YACC="yacc"
8150 # Make sure it supports the -p flag and supports processing our
8153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for capable yacc/bison" >&5
8154 $as_echo_n "checking for capable yacc/bison... " >&6; }
8155 if ${tcpdump_cv_capable_yacc+:} false; then :
8156 $as_echo_n "(cached) " >&6
8158 if $YACC -p pcap_ -o /dev/null $srcdir/grammar.y >/dev/null 2>&1; then
8159 tcpdump_cv_capable_yacc=yes
8161 tcpdump_cv_capable_yacc=insufficient
8164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcpdump_cv_capable_yacc" >&5
8165 $as_echo "$tcpdump_cv_capable_yacc" >&6; }
8166 if test $tcpdump_cv_capable_yacc = insufficient ; then
8167 as_fn_error $? "$YACC is insufficient to compile libpcap.
8168 libpcap requires Bison, a newer version of Berkeley YACC with support
8169 for reentrant parsers, or another YACC compatible with them." "$LINENO" 5
8173 # Do various checks for various OSes and versions of those OSes.
8175 # Assume, by default, no support for shared libraries and V7/BSD
8176 # convention for man pages (devices in section 4, file formats in
8177 # section 5, miscellaneous info in section 7, administrative commands
8178 # and daemons in section 8). Individual cases can override this.
8184 MAN_ADMIN_COMMANDS=8
8189 $as_echo "#define _SUN 1" >>confdefs.h
8193 # AIX makes it fun to build shared and static libraries,
8194 # because they're *both* ".a" archive libraries. We
8195 # build the static library for the benefit of the traditional
8196 # scheme of building libpcap and tcpdump in subdirectories of
8197 # the same directory, with tcpdump statically linked with the
8198 # libpcap in question, but we also build a shared library as
8199 # "libpcap.shareda" and install *it*, rather than the static
8200 # library, as "libpcap.a".
8208 # If we're using DLPI, applications will need to
8209 # use /lib/pse.exp if present, as we use the
8212 pseexe="/lib/pse.exp"
8213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $pseexe" >&5
8214 $as_echo_n "checking for $pseexe... " >&6; }
8215 if test -f $pseexe ; then
8216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8217 $as_echo "yes" >&6; }
8224 # If we're using BPF, we need "-lodm" and "-lcfg", as
8225 # we use them to load the BPF module.
8234 V_CCOPT="$V_CCOPT -fno-common"
8235 # Check whether --enable-universal was given.
8236 if test "${enable_universal+set}" = set; then :
8237 enableval=$enable_universal;
8240 if test "$enable_universal" != "no"; then
8245 # Pre-Tiger. Build only for 32-bit PowerPC; no
8246 # need for any special compiler or linker flags.
8250 darwin8.[0123]|darwin8.[0123].*)
8252 # Tiger, prior to Intel support. Build
8253 # libraries and executables for 32-bit PowerPC
8254 # and 64-bit PowerPC, with 32-bit PowerPC first.
8255 # (I'm guessing that's what Apple does.)
8257 # (The double brackets are needed because
8258 # autotools/m4 use brackets as a quoting
8259 # character; the double brackets turn into
8260 # single brackets in the generated configure
8263 V_LIB_CCOPT_FAT="-arch ppc -arch ppc64"
8264 V_LIB_LDFLAGS_FAT="-arch ppc -arch ppc64"
8265 V_PROG_CCOPT_FAT="-arch ppc -arch ppc64"
8266 V_PROG_LDFLAGS_FAT="-arch ppc -arch ppc64"
8269 darwin8.[456]|darwin.[456].*)
8271 # Tiger, subsequent to Intel support but prior
8272 # to x86-64 support. Build libraries and
8273 # executables for 32-bit PowerPC, 64-bit
8274 # PowerPC, and 32-bit x86, with 32-bit PowerPC
8275 # first. (I'm guessing that's what Apple does.)
8277 # (The double brackets are needed because
8278 # autotools/m4 use brackets as a quoting
8279 # character; the double brackets turn into
8280 # single brackets in the generated configure
8283 V_LIB_CCOPT_FAT="-arch ppc -arch ppc64 -arch i386"
8284 V_LIB_LDFLAGS_FAT="-arch ppc -arch ppc64 -arch i386"
8285 V_PROG_CCOPT_FAT="-arch ppc -arch ppc64 -arch i386"
8286 V_PROG_LDFLAGS_FAT="-arch ppc -arch ppc64 -arch i386"
8291 # All other Tiger, so subsequent to x86-64
8292 # support. Build libraries and executables for
8293 # 32-bit PowerPC, 64-bit PowerPC, 32-bit x86,
8294 # and x86-64, with 32-bit PowerPC first. (I'm
8295 # guessing that's what Apple does.)
8297 V_LIB_CCOPT_FAT="-arch ppc -arch ppc64 -arch i386 -arch x86_64"
8298 V_LIB_LDFLAGS_FAT="-arch ppc -arch ppc64 -arch i386 -arch x86_64"
8299 V_PROG_CCOPT_FAT="-arch ppc -arch ppc64 -arch i386 -arch x86_64"
8300 V_PROG_LDFLAGS_FAT="-arch ppc -arch ppc64 -arch i386 -arch x86_64"
8305 # Leopard. Build libraries for 32-bit PowerPC,
8306 # 64-bit PowerPC, 32-bit x86, and x86-64, with
8307 # 32-bit PowerPC first, and build executables
8308 # for 32-bit x86 and 32-bit PowerPC, with 32-bit
8309 # x86 first. (That's what Apple does.)
8311 V_LIB_CCOPT_FAT="-arch ppc -arch ppc64 -arch i386 -arch x86_64"
8312 V_LIB_LDFLAGS_FAT="-arch ppc -arch ppc64 -arch i386 -arch x86_64"
8313 V_PROG_CCOPT_FAT="-arch i386 -arch ppc"
8314 V_PROG_LDFLAGS_FAT="-arch i386 -arch ppc"
8319 # Snow Leopard. Build libraries for x86-64,
8320 # 32-bit x86, and 32-bit PowerPC, with x86-64
8321 # first, and build executables for x86-64 and
8322 # 32-bit x86, with x86-64 first. (That's what
8323 # Apple does, even though Snow Leopard doesn't
8324 # run on PPC, so PPC libpcap runs under Rosetta,
8325 # and Rosetta doesn't support BPF ioctls, so PPC
8326 # programs can't do live captures.)
8328 V_LIB_CCOPT_FAT="-arch x86_64 -arch i386 -arch ppc"
8329 V_LIB_LDFLAGS_FAT="-arch x86_64 -arch i386 -arch ppc"
8330 V_PROG_CCOPT_FAT="-arch x86_64 -arch i386"
8331 V_PROG_LDFLAGS_FAT="-arch x86_64 -arch i386"
8336 # Post-Snow Leopard. Build libraries for x86-64
8337 # and 32-bit x86, with x86-64 first, and build
8338 # executables only for x86-64. (That's what
8339 # Apple does.) This requires no special flags
8341 # XXX - update if and when Apple drops support
8342 # for 32-bit x86 code and if and when Apple adds
8343 # ARM-based Macs. (You're on your own for iOS
8346 # XXX - check whether we *can* build for
8347 # i386 and, if not, suggest that the user
8348 # install the /usr/include headers if they
8349 # want to build fat.
8351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether building for 32-bit x86 is supported" >&5
8352 $as_echo_n "checking whether building for 32-bit x86 is supported... " >&6; }
8353 save_CFLAGS="$CFLAGS"
8354 CFLAGS="$CFLAGS -arch i386"
8355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8356 /* end confdefs.h. */
8366 if ac_fn_c_try_compile "$LINENO"; then :
8368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8369 $as_echo "yes" >&6; }
8370 V_LIB_CCOPT_FAT="-arch x86_64 -arch i386"
8371 V_LIB_LDFLAGS_FAT="-arch x86_64 -arch i386"
8375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8376 $as_echo "no" >&6; }
8377 V_LIB_CCOPT_FAT="-arch x86_64"
8378 V_LIB_LDFLAGS_FAT="-arch x86_64"
8383 # Mojave; you need to install the
8384 # /usr/include headers to get
8385 # 32-bit x86 builds to work.
8387 { $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
8388 $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;}
8393 # Pre-Mojave; the command-line
8394 # tools should be sufficient to
8395 # enable 32-bit x86 builds.
8397 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Compiling for 32-bit x86 gives an error; try installing the command-line tools" >&5
8398 $as_echo "$as_me: WARNING: Compiling for 32-bit x86 gives an error; try installing the command-line tools" >&2;}
8403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8404 CFLAGS="$save_CFLAGS"
8412 $as_echo "#define HAVE_HPUX9 1" >>confdefs.h
8416 # Use System V conventions for man pages.
8418 MAN_ADMIN_COMMANDS=1m
8426 # Use System V conventions for man pages.
8428 MAN_ADMIN_COMMANDS=1m
8436 # Use System V conventions for man pages.
8438 MAN_ADMIN_COMMANDS=1m
8445 $as_echo "#define HAVE_HPUX10_20_OR_LATER 1" >>confdefs.h
8447 if test "`uname -m`" = "ia64"; then
8454 # "-b" builds a shared library; "+h" sets the soname.
8460 # Use System V conventions for man pages.
8468 # Use IRIX conventions for man pages; they're the same as the
8469 # System V conventions, except that they use section 8 for
8470 # administrative commands and daemons.
8476 linux*|freebsd*|netbsd*|openbsd*|dragonfly*|kfreebsd*|gnu*|midipix*)
8480 # Compiler assumed to be GCC; run-time linker may require a -R
8483 if test "$libdir" != "/usr/lib"; then
8484 V_RFLAGS=-Wl,-R$libdir
8492 # DEC OSF/1, a/k/a Digial UNIX, a/k/a Tru64 UNIX.
8493 # Use Tru64 UNIX conventions for man pages; they're the same as
8494 # the System V conventions except that they use section 8 for
8495 # administrative commands and daemons.
8503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if SINIX compiler defines sinix" >&5
8504 $as_echo_n "checking if SINIX compiler defines sinix... " >&6; }
8505 if ${ac_cv_cc_sinix_defined+:} false; then :
8506 $as_echo_n "(cached) " >&6
8508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8509 /* end confdefs.h. */
8519 if ac_fn_c_try_compile "$LINENO"; then :
8520 ac_cv_cc_sinix_defined=yes
8522 ac_cv_cc_sinix_defined=no
8524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_sinix_defined" >&5
8528 $as_echo "$ac_cv_cc_sinix_defined" >&6; }
8529 if test $ac_cv_cc_sinix_defined = no ; then
8531 $as_echo "#define sinix 1" >>confdefs.h
8538 $as_echo "#define HAVE_SOLARIS 1" >>confdefs.h
8544 # Make sure errno is thread-safe, in case we're called in
8545 # a multithreaded program. We don't guarantee that two
8546 # threads can use the *same* pcap_t safely, but the
8547 # current version does guarantee that you can use different
8548 # pcap_t's in different threads, and even that pcap_compile()
8549 # is thread-safe (it wasn't thread-safe in some older versions).
8551 V_CCOPT="$V_CCOPT -D_TS_ERRNO"
8553 case "`uname -r`" in
8560 # Use System V conventions for man pages.
8562 MAN_ADMIN_COMMANDS=1m
8570 # Check whether --enable-shared was given.
8571 if test "${enable_shared+set}" = set; then :
8572 enableval=$enable_shared;
8575 test "x$enable_shared" = "xno" && DYEXT="none"
8577 if test -n "$ac_tool_prefix"; then
8578 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8579 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8581 $as_echo_n "checking for $ac_word... " >&6; }
8582 if ${ac_cv_prog_RANLIB+:} false; then :
8583 $as_echo_n "(cached) " >&6
8585 if test -n "$RANLIB"; then
8586 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8592 test -z "$as_dir" && as_dir=.
8593 for ac_exec_ext in '' $ac_executable_extensions; do
8594 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8595 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8605 RANLIB=$ac_cv_prog_RANLIB
8606 if test -n "$RANLIB"; then
8607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8608 $as_echo "$RANLIB" >&6; }
8610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8611 $as_echo "no" >&6; }
8616 if test -z "$ac_cv_prog_RANLIB"; then
8617 ac_ct_RANLIB=$RANLIB
8618 # Extract the first word of "ranlib", so it can be a program name with args.
8619 set dummy ranlib; ac_word=$2
8620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8621 $as_echo_n "checking for $ac_word... " >&6; }
8622 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8623 $as_echo_n "(cached) " >&6
8625 if test -n "$ac_ct_RANLIB"; then
8626 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8632 test -z "$as_dir" && as_dir=.
8633 for ac_exec_ext in '' $ac_executable_extensions; do
8634 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8635 ac_cv_prog_ac_ct_RANLIB="ranlib"
8636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8645 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8646 if test -n "$ac_ct_RANLIB"; then
8647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8648 $as_echo "$ac_ct_RANLIB" >&6; }
8650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8651 $as_echo "no" >&6; }
8654 if test "x$ac_ct_RANLIB" = x; then
8657 case $cross_compiling:$ac_tool_warned in
8659 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8660 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8661 ac_tool_warned=yes ;;
8663 RANLIB=$ac_ct_RANLIB
8666 RANLIB="$ac_cv_prog_RANLIB"
8669 if test -n "$ac_tool_prefix"; then
8670 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8671 set dummy ${ac_tool_prefix}ar; ac_word=$2
8672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8673 $as_echo_n "checking for $ac_word... " >&6; }
8674 if ${ac_cv_prog_AR+:} false; then :
8675 $as_echo_n "(cached) " >&6
8677 if test -n "$AR"; then
8678 ac_cv_prog_AR="$AR" # Let the user override the test.
8680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8684 test -z "$as_dir" && as_dir=.
8685 for ac_exec_ext in '' $ac_executable_extensions; do
8686 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8687 ac_cv_prog_AR="${ac_tool_prefix}ar"
8688 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8698 if test -n "$AR"; then
8699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8700 $as_echo "$AR" >&6; }
8702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8703 $as_echo "no" >&6; }
8708 if test -z "$ac_cv_prog_AR"; then
8710 # Extract the first word of "ar", so it can be a program name with args.
8711 set dummy ar; ac_word=$2
8712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8713 $as_echo_n "checking for $ac_word... " >&6; }
8714 if ${ac_cv_prog_ac_ct_AR+:} false; then :
8715 $as_echo_n "(cached) " >&6
8717 if test -n "$ac_ct_AR"; then
8718 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8724 test -z "$as_dir" && as_dir=.
8725 for ac_exec_ext in '' $ac_executable_extensions; do
8726 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8727 ac_cv_prog_ac_ct_AR="ar"
8728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8737 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8738 if test -n "$ac_ct_AR"; then
8739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8740 $as_echo "$ac_ct_AR" >&6; }
8742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8743 $as_echo "no" >&6; }
8746 if test "x$ac_ct_AR" = x; then
8749 case $cross_compiling:$ac_tool_warned in
8751 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8752 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8753 ac_tool_warned=yes ;;
8762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8763 $as_echo_n "checking whether ln -s works... " >&6; }
8765 if test "$LN_S" = "ln -s"; then
8766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8767 $as_echo "yes" >&6; }
8769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
8770 $as_echo "no, using $LN_S" >&6; }
8776 if test "${LBL_CFLAGS+set}" = set; then
8777 V_CCOPT="$V_CCOPT ${LBL_CFLAGS}"
8779 if test -f .devel ; then
8781 # Skip all the warning option stuff on some compilers.
8783 if test "$ac_lbl_cc_dont_try_gcc_dashW" != yes; then
8785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler fails when given an unknown warning option" >&5
8786 $as_echo_n "checking whether the compiler fails when given an unknown warning option... " >&6; }
8787 save_CFLAGS="$CFLAGS"
8788 CFLAGS="$CFLAGS -Wxyzzy-this-will-never-succeed-xyzzy"
8789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8790 /* end confdefs.h. */
8800 if ac_fn_c_try_compile "$LINENO"; then :
8802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8803 $as_echo "no" >&6; }
8805 # We're assuming this is clang, where
8806 # -Werror=unknown-warning-option is the appropriate
8807 # option to force the compiler to fail.
8809 ac_lbl_unknown_warning_option_error="-Werror=unknown-warning-option"
8813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8814 $as_echo "yes" >&6; }
8817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8818 CFLAGS="$save_CFLAGS"
8821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -W option" >&5
8822 $as_echo_n "checking whether the compiler supports the -W option... " >&6; }
8823 save_CFLAGS="$CFLAGS"
8824 if expr "x-W" : "x-W.*" >/dev/null
8826 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -W"
8827 elif expr "x-W" : "x-f.*" >/dev/null
8829 CFLAGS="$CFLAGS -Werror -W"
8830 elif expr "x-W" : "x-m.*" >/dev/null
8832 CFLAGS="$CFLAGS -Werror -W"
8836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8837 /* end confdefs.h. */
8847 if ac_fn_c_try_compile "$LINENO"; then :
8849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8850 $as_echo "yes" >&6; }
8851 can_add_to_cflags=yes
8853 # The compile supports this; do we have some C code for
8854 # which the warning should *not* appear?
8855 # We test the fourth argument because the third argument
8856 # could contain quotes, breaking the test.
8860 CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors"
8861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -W " >&5
8862 $as_echo_n "checking whether -W ... " >&6; }
8863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8864 /* end confdefs.h. */
8867 if ac_fn_c_try_compile "$LINENO"; then :
8872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8873 $as_echo "no" >&6; }
8880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8881 $as_echo "yes" >&6; }
8882 can_add_to_cflags=no
8885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8887 CFLAGS="$save_CFLAGS"
8888 if test x"$can_add_to_cflags" = "xyes"
8890 V_CCOPT="$V_CCOPT -W"
8895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8896 $as_echo "no" >&6; }
8897 CFLAGS="$save_CFLAGS"
8900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wall option" >&5
8904 $as_echo_n "checking whether the compiler supports the -Wall option... " >&6; }
8905 save_CFLAGS="$CFLAGS"
8906 if expr "x-Wall" : "x-W.*" >/dev/null
8908 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wall"
8909 elif expr "x-Wall" : "x-f.*" >/dev/null
8911 CFLAGS="$CFLAGS -Werror -Wall"
8912 elif expr "x-Wall" : "x-m.*" >/dev/null
8914 CFLAGS="$CFLAGS -Werror -Wall"
8916 CFLAGS="$CFLAGS -Wall"
8918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8919 /* end confdefs.h. */
8929 if ac_fn_c_try_compile "$LINENO"; then :
8931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8932 $as_echo "yes" >&6; }
8933 can_add_to_cflags=yes
8935 # The compile supports this; do we have some C code for
8936 # which the warning should *not* appear?
8937 # We test the fourth argument because the third argument
8938 # could contain quotes, breaking the test.
8942 CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors"
8943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wall " >&5
8944 $as_echo_n "checking whether -Wall ... " >&6; }
8945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8946 /* end confdefs.h. */
8949 if ac_fn_c_try_compile "$LINENO"; then :
8954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8955 $as_echo "no" >&6; }
8962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8963 $as_echo "yes" >&6; }
8964 can_add_to_cflags=no
8967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8969 CFLAGS="$save_CFLAGS"
8970 if test x"$can_add_to_cflags" = "xyes"
8972 V_CCOPT="$V_CCOPT -Wall"
8977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8978 $as_echo "no" >&6; }
8979 CFLAGS="$save_CFLAGS"
8982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wcomma option" >&5
8986 $as_echo_n "checking whether the compiler supports the -Wcomma option... " >&6; }
8987 save_CFLAGS="$CFLAGS"
8988 if expr "x-Wcomma" : "x-W.*" >/dev/null
8990 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wcomma"
8991 elif expr "x-Wcomma" : "x-f.*" >/dev/null
8993 CFLAGS="$CFLAGS -Werror -Wcomma"
8994 elif expr "x-Wcomma" : "x-m.*" >/dev/null
8996 CFLAGS="$CFLAGS -Werror -Wcomma"
8998 CFLAGS="$CFLAGS -Wcomma"
9000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9001 /* end confdefs.h. */
9011 if ac_fn_c_try_compile "$LINENO"; then :
9013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9014 $as_echo "yes" >&6; }
9015 can_add_to_cflags=yes
9017 # The compile supports this; do we have some C code for
9018 # which the warning should *not* appear?
9019 # We test the fourth argument because the third argument
9020 # could contain quotes, breaking the test.
9024 CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors"
9025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wcomma " >&5
9026 $as_echo_n "checking whether -Wcomma ... " >&6; }
9027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9028 /* end confdefs.h. */
9031 if ac_fn_c_try_compile "$LINENO"; then :
9036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9037 $as_echo "no" >&6; }
9044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9045 $as_echo "yes" >&6; }
9046 can_add_to_cflags=no
9049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9051 CFLAGS="$save_CFLAGS"
9052 if test x"$can_add_to_cflags" = "xyes"
9054 V_CCOPT="$V_CCOPT -Wcomma"
9059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9060 $as_echo "no" >&6; }
9061 CFLAGS="$save_CFLAGS"
9064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wdeclaration-after-statement option" >&5
9068 $as_echo_n "checking whether the compiler supports the -Wdeclaration-after-statement option... " >&6; }
9069 save_CFLAGS="$CFLAGS"
9070 if expr "x-Wdeclaration-after-statement" : "x-W.*" >/dev/null
9072 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wdeclaration-after-statement"
9073 elif expr "x-Wdeclaration-after-statement" : "x-f.*" >/dev/null
9075 CFLAGS="$CFLAGS -Werror -Wdeclaration-after-statement"
9076 elif expr "x-Wdeclaration-after-statement" : "x-m.*" >/dev/null
9078 CFLAGS="$CFLAGS -Werror -Wdeclaration-after-statement"
9080 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
9082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9083 /* end confdefs.h. */
9093 if ac_fn_c_try_compile "$LINENO"; then :
9095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9096 $as_echo "yes" >&6; }
9097 can_add_to_cflags=yes
9099 # The compile supports this; do we have some C code for
9100 # which the warning should *not* appear?
9101 # We test the fourth argument because the third argument
9102 # could contain quotes, breaking the test.
9106 CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors"
9107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wdeclaration-after-statement " >&5
9108 $as_echo_n "checking whether -Wdeclaration-after-statement ... " >&6; }
9109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9110 /* end confdefs.h. */
9113 if ac_fn_c_try_compile "$LINENO"; then :
9118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9119 $as_echo "no" >&6; }
9126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9127 $as_echo "yes" >&6; }
9128 can_add_to_cflags=no
9131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9133 CFLAGS="$save_CFLAGS"
9134 if test x"$can_add_to_cflags" = "xyes"
9136 V_CCOPT="$V_CCOPT -Wdeclaration-after-statement"
9141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9142 $as_echo "no" >&6; }
9143 CFLAGS="$save_CFLAGS"
9146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wdocumentation option" >&5
9150 $as_echo_n "checking whether the compiler supports the -Wdocumentation option... " >&6; }
9151 save_CFLAGS="$CFLAGS"
9152 if expr "x-Wdocumentation" : "x-W.*" >/dev/null
9154 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wdocumentation"
9155 elif expr "x-Wdocumentation" : "x-f.*" >/dev/null
9157 CFLAGS="$CFLAGS -Werror -Wdocumentation"
9158 elif expr "x-Wdocumentation" : "x-m.*" >/dev/null
9160 CFLAGS="$CFLAGS -Werror -Wdocumentation"
9162 CFLAGS="$CFLAGS -Wdocumentation"
9164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9165 /* end confdefs.h. */
9175 if ac_fn_c_try_compile "$LINENO"; then :
9177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9178 $as_echo "yes" >&6; }
9179 can_add_to_cflags=yes
9181 # The compile supports this; do we have some C code for
9182 # which the warning should *not* appear?
9183 # We test the fourth argument because the third argument
9184 # could contain quotes, breaking the test.
9188 CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors"
9189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wdocumentation " >&5
9190 $as_echo_n "checking whether -Wdocumentation ... " >&6; }
9191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9192 /* end confdefs.h. */
9195 if ac_fn_c_try_compile "$LINENO"; then :
9200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9201 $as_echo "no" >&6; }
9208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9209 $as_echo "yes" >&6; }
9210 can_add_to_cflags=no
9213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9215 CFLAGS="$save_CFLAGS"
9216 if test x"$can_add_to_cflags" = "xyes"
9218 V_CCOPT="$V_CCOPT -Wdocumentation"
9223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9224 $as_echo "no" >&6; }
9225 CFLAGS="$save_CFLAGS"
9228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wformat-nonliteral option" >&5
9232 $as_echo_n "checking whether the compiler supports the -Wformat-nonliteral option... " >&6; }
9233 save_CFLAGS="$CFLAGS"
9234 if expr "x-Wformat-nonliteral" : "x-W.*" >/dev/null
9236 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wformat-nonliteral"
9237 elif expr "x-Wformat-nonliteral" : "x-f.*" >/dev/null
9239 CFLAGS="$CFLAGS -Werror -Wformat-nonliteral"
9240 elif expr "x-Wformat-nonliteral" : "x-m.*" >/dev/null
9242 CFLAGS="$CFLAGS -Werror -Wformat-nonliteral"
9244 CFLAGS="$CFLAGS -Wformat-nonliteral"
9246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9247 /* end confdefs.h. */
9257 if ac_fn_c_try_compile "$LINENO"; then :
9259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9260 $as_echo "yes" >&6; }
9261 can_add_to_cflags=yes
9263 # The compile supports this; do we have some C code for
9264 # which the warning should *not* appear?
9265 # We test the fourth argument because the third argument
9266 # could contain quotes, breaking the test.
9270 CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors"
9271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wformat-nonliteral " >&5
9272 $as_echo_n "checking whether -Wformat-nonliteral ... " >&6; }
9273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9274 /* end confdefs.h. */
9277 if ac_fn_c_try_compile "$LINENO"; then :
9282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9283 $as_echo "no" >&6; }
9290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9291 $as_echo "yes" >&6; }
9292 can_add_to_cflags=no
9295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9297 CFLAGS="$save_CFLAGS"
9298 if test x"$can_add_to_cflags" = "xyes"
9300 V_CCOPT="$V_CCOPT -Wformat-nonliteral"
9305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9306 $as_echo "no" >&6; }
9307 CFLAGS="$save_CFLAGS"
9310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wmissing-noreturn option" >&5
9314 $as_echo_n "checking whether the compiler supports the -Wmissing-noreturn option... " >&6; }
9315 save_CFLAGS="$CFLAGS"
9316 if expr "x-Wmissing-noreturn" : "x-W.*" >/dev/null
9318 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wmissing-noreturn"
9319 elif expr "x-Wmissing-noreturn" : "x-f.*" >/dev/null
9321 CFLAGS="$CFLAGS -Werror -Wmissing-noreturn"
9322 elif expr "x-Wmissing-noreturn" : "x-m.*" >/dev/null
9324 CFLAGS="$CFLAGS -Werror -Wmissing-noreturn"
9326 CFLAGS="$CFLAGS -Wmissing-noreturn"
9328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9329 /* end confdefs.h. */
9339 if ac_fn_c_try_compile "$LINENO"; then :
9341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9342 $as_echo "yes" >&6; }
9343 can_add_to_cflags=yes
9345 # The compile supports this; do we have some C code for
9346 # which the warning should *not* appear?
9347 # We test the fourth argument because the third argument
9348 # could contain quotes, breaking the test.
9352 CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors"
9353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wmissing-noreturn " >&5
9354 $as_echo_n "checking whether -Wmissing-noreturn ... " >&6; }
9355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9356 /* end confdefs.h. */
9359 if ac_fn_c_try_compile "$LINENO"; then :
9364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9365 $as_echo "no" >&6; }
9372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9373 $as_echo "yes" >&6; }
9374 can_add_to_cflags=no
9377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9379 CFLAGS="$save_CFLAGS"
9380 if test x"$can_add_to_cflags" = "xyes"
9382 V_CCOPT="$V_CCOPT -Wmissing-noreturn"
9387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9388 $as_echo "no" >&6; }
9389 CFLAGS="$save_CFLAGS"
9392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wmissing-prototypes option" >&5
9396 $as_echo_n "checking whether the compiler supports the -Wmissing-prototypes option... " >&6; }
9397 save_CFLAGS="$CFLAGS"
9398 if expr "x-Wmissing-prototypes" : "x-W.*" >/dev/null
9400 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wmissing-prototypes"
9401 elif expr "x-Wmissing-prototypes" : "x-f.*" >/dev/null
9403 CFLAGS="$CFLAGS -Werror -Wmissing-prototypes"
9404 elif expr "x-Wmissing-prototypes" : "x-m.*" >/dev/null
9406 CFLAGS="$CFLAGS -Werror -Wmissing-prototypes"
9408 CFLAGS="$CFLAGS -Wmissing-prototypes"
9410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9411 /* end confdefs.h. */
9421 if ac_fn_c_try_compile "$LINENO"; then :
9423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9424 $as_echo "yes" >&6; }
9425 can_add_to_cflags=yes
9427 # The compile supports this; do we have some C code for
9428 # which the warning should *not* appear?
9429 # We test the fourth argument because the third argument
9430 # could contain quotes, breaking the test.
9434 CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors"
9435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wmissing-prototypes " >&5
9436 $as_echo_n "checking whether -Wmissing-prototypes ... " >&6; }
9437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9438 /* end confdefs.h. */
9441 if ac_fn_c_try_compile "$LINENO"; then :
9446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9447 $as_echo "no" >&6; }
9454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9455 $as_echo "yes" >&6; }
9456 can_add_to_cflags=no
9459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9461 CFLAGS="$save_CFLAGS"
9462 if test x"$can_add_to_cflags" = "xyes"
9464 V_CCOPT="$V_CCOPT -Wmissing-prototypes"
9469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9470 $as_echo "no" >&6; }
9471 CFLAGS="$save_CFLAGS"
9474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wmissing-variable-declarations option" >&5
9478 $as_echo_n "checking whether the compiler supports the -Wmissing-variable-declarations option... " >&6; }
9479 save_CFLAGS="$CFLAGS"
9480 if expr "x-Wmissing-variable-declarations" : "x-W.*" >/dev/null
9482 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wmissing-variable-declarations"
9483 elif expr "x-Wmissing-variable-declarations" : "x-f.*" >/dev/null
9485 CFLAGS="$CFLAGS -Werror -Wmissing-variable-declarations"
9486 elif expr "x-Wmissing-variable-declarations" : "x-m.*" >/dev/null
9488 CFLAGS="$CFLAGS -Werror -Wmissing-variable-declarations"
9490 CFLAGS="$CFLAGS -Wmissing-variable-declarations"
9492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9493 /* end confdefs.h. */
9503 if ac_fn_c_try_compile "$LINENO"; then :
9505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9506 $as_echo "yes" >&6; }
9507 can_add_to_cflags=yes
9509 # The compile supports this; do we have some C code for
9510 # which the warning should *not* appear?
9511 # We test the fourth argument because the third argument
9512 # could contain quotes, breaking the test.
9516 CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors"
9517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wmissing-variable-declarations " >&5
9518 $as_echo_n "checking whether -Wmissing-variable-declarations ... " >&6; }
9519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9520 /* end confdefs.h. */
9523 if ac_fn_c_try_compile "$LINENO"; then :
9528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9529 $as_echo "no" >&6; }
9536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9537 $as_echo "yes" >&6; }
9538 can_add_to_cflags=no
9541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9543 CFLAGS="$save_CFLAGS"
9544 if test x"$can_add_to_cflags" = "xyes"
9546 V_CCOPT="$V_CCOPT -Wmissing-variable-declarations"
9551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9552 $as_echo "no" >&6; }
9553 CFLAGS="$save_CFLAGS"
9556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wshadow option" >&5
9560 $as_echo_n "checking whether the compiler supports the -Wshadow option... " >&6; }
9561 save_CFLAGS="$CFLAGS"
9562 if expr "x-Wshadow" : "x-W.*" >/dev/null
9564 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wshadow"
9565 elif expr "x-Wshadow" : "x-f.*" >/dev/null
9567 CFLAGS="$CFLAGS -Werror -Wshadow"
9568 elif expr "x-Wshadow" : "x-m.*" >/dev/null
9570 CFLAGS="$CFLAGS -Werror -Wshadow"
9572 CFLAGS="$CFLAGS -Wshadow"
9574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9575 /* end confdefs.h. */
9585 if ac_fn_c_try_compile "$LINENO"; then :
9587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9588 $as_echo "yes" >&6; }
9589 can_add_to_cflags=yes
9591 # The compile supports this; do we have some C code for
9592 # which the warning should *not* appear?
9593 # We test the fourth argument because the third argument
9594 # could contain quotes, breaking the test.
9598 CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors"
9599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wshadow " >&5
9600 $as_echo_n "checking whether -Wshadow ... " >&6; }
9601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9602 /* end confdefs.h. */
9605 if ac_fn_c_try_compile "$LINENO"; then :
9610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9611 $as_echo "no" >&6; }
9618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9619 $as_echo "yes" >&6; }
9620 can_add_to_cflags=no
9623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9625 CFLAGS="$save_CFLAGS"
9626 if test x"$can_add_to_cflags" = "xyes"
9628 V_CCOPT="$V_CCOPT -Wshadow"
9633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9634 $as_echo "no" >&6; }
9635 CFLAGS="$save_CFLAGS"
9638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wsign-compare option" >&5
9642 $as_echo_n "checking whether the compiler supports the -Wsign-compare option... " >&6; }
9643 save_CFLAGS="$CFLAGS"
9644 if expr "x-Wsign-compare" : "x-W.*" >/dev/null
9646 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wsign-compare"
9647 elif expr "x-Wsign-compare" : "x-f.*" >/dev/null
9649 CFLAGS="$CFLAGS -Werror -Wsign-compare"
9650 elif expr "x-Wsign-compare" : "x-m.*" >/dev/null
9652 CFLAGS="$CFLAGS -Werror -Wsign-compare"
9654 CFLAGS="$CFLAGS -Wsign-compare"
9656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9657 /* end confdefs.h. */
9667 if ac_fn_c_try_compile "$LINENO"; then :
9669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9670 $as_echo "yes" >&6; }
9671 can_add_to_cflags=yes
9673 # The compile supports this; do we have some C code for
9674 # which the warning should *not* appear?
9675 # We test the fourth argument because the third argument
9676 # could contain quotes, breaking the test.
9680 CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors"
9681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wsign-compare " >&5
9682 $as_echo_n "checking whether -Wsign-compare ... " >&6; }
9683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9684 /* end confdefs.h. */
9687 if ac_fn_c_try_compile "$LINENO"; then :
9692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9693 $as_echo "no" >&6; }
9700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9701 $as_echo "yes" >&6; }
9702 can_add_to_cflags=no
9705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9707 CFLAGS="$save_CFLAGS"
9708 if test x"$can_add_to_cflags" = "xyes"
9710 V_CCOPT="$V_CCOPT -Wsign-compare"
9715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9716 $as_echo "no" >&6; }
9717 CFLAGS="$save_CFLAGS"
9720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wstrict-prototypes option" >&5
9724 $as_echo_n "checking whether the compiler supports the -Wstrict-prototypes option... " >&6; }
9725 save_CFLAGS="$CFLAGS"
9726 if expr "x-Wstrict-prototypes" : "x-W.*" >/dev/null
9728 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wstrict-prototypes"
9729 elif expr "x-Wstrict-prototypes" : "x-f.*" >/dev/null
9731 CFLAGS="$CFLAGS -Werror -Wstrict-prototypes"
9732 elif expr "x-Wstrict-prototypes" : "x-m.*" >/dev/null
9734 CFLAGS="$CFLAGS -Werror -Wstrict-prototypes"
9736 CFLAGS="$CFLAGS -Wstrict-prototypes"
9738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9739 /* end confdefs.h. */
9749 if ac_fn_c_try_compile "$LINENO"; then :
9751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9752 $as_echo "yes" >&6; }
9753 can_add_to_cflags=yes
9755 # The compile supports this; do we have some C code for
9756 # which the warning should *not* appear?
9757 # We test the fourth argument because the third argument
9758 # could contain quotes, breaking the test.
9762 CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors"
9763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wstrict-prototypes " >&5
9764 $as_echo_n "checking whether -Wstrict-prototypes ... " >&6; }
9765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9766 /* end confdefs.h. */
9769 if ac_fn_c_try_compile "$LINENO"; then :
9774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9775 $as_echo "no" >&6; }
9782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9783 $as_echo "yes" >&6; }
9784 can_add_to_cflags=no
9787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9789 CFLAGS="$save_CFLAGS"
9790 if test x"$can_add_to_cflags" = "xyes"
9792 V_CCOPT="$V_CCOPT -Wstrict-prototypes"
9797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9798 $as_echo "no" >&6; }
9799 CFLAGS="$save_CFLAGS"
9802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wunused-parameter option" >&5
9806 $as_echo_n "checking whether the compiler supports the -Wunused-parameter option... " >&6; }
9807 save_CFLAGS="$CFLAGS"
9808 if expr "x-Wunused-parameter" : "x-W.*" >/dev/null
9810 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wunused-parameter"
9811 elif expr "x-Wunused-parameter" : "x-f.*" >/dev/null
9813 CFLAGS="$CFLAGS -Werror -Wunused-parameter"
9814 elif expr "x-Wunused-parameter" : "x-m.*" >/dev/null
9816 CFLAGS="$CFLAGS -Werror -Wunused-parameter"
9818 CFLAGS="$CFLAGS -Wunused-parameter"
9820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9821 /* end confdefs.h. */
9831 if ac_fn_c_try_compile "$LINENO"; then :
9833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9834 $as_echo "yes" >&6; }
9835 can_add_to_cflags=yes
9837 # The compile supports this; do we have some C code for
9838 # which the warning should *not* appear?
9839 # We test the fourth argument because the third argument
9840 # could contain quotes, breaking the test.
9844 CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors"
9845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wunused-parameter " >&5
9846 $as_echo_n "checking whether -Wunused-parameter ... " >&6; }
9847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9848 /* end confdefs.h. */
9851 if ac_fn_c_try_compile "$LINENO"; then :
9856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9857 $as_echo "no" >&6; }
9864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9865 $as_echo "yes" >&6; }
9866 can_add_to_cflags=no
9869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9871 CFLAGS="$save_CFLAGS"
9872 if test x"$can_add_to_cflags" = "xyes"
9874 V_CCOPT="$V_CCOPT -Wunused-parameter"
9879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9880 $as_echo "no" >&6; }
9881 CFLAGS="$save_CFLAGS"
9884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wused-but-marked-unused option" >&5
9888 $as_echo_n "checking whether the compiler supports the -Wused-but-marked-unused option... " >&6; }
9889 save_CFLAGS="$CFLAGS"
9890 if expr "x-Wused-but-marked-unused" : "x-W.*" >/dev/null
9892 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wused-but-marked-unused"
9893 elif expr "x-Wused-but-marked-unused" : "x-f.*" >/dev/null
9895 CFLAGS="$CFLAGS -Werror -Wused-but-marked-unused"
9896 elif expr "x-Wused-but-marked-unused" : "x-m.*" >/dev/null
9898 CFLAGS="$CFLAGS -Werror -Wused-but-marked-unused"
9900 CFLAGS="$CFLAGS -Wused-but-marked-unused"
9902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9903 /* end confdefs.h. */
9913 if ac_fn_c_try_compile "$LINENO"; then :
9915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9916 $as_echo "yes" >&6; }
9917 can_add_to_cflags=yes
9919 # The compile supports this; do we have some C code for
9920 # which the warning should *not* appear?
9921 # We test the fourth argument because the third argument
9922 # could contain quotes, breaking the test.
9926 CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors"
9927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wused-but-marked-unused " >&5
9928 $as_echo_n "checking whether -Wused-but-marked-unused ... " >&6; }
9929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9930 /* end confdefs.h. */
9933 if ac_fn_c_try_compile "$LINENO"; then :
9938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9939 $as_echo "no" >&6; }
9946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9947 $as_echo "yes" >&6; }
9948 can_add_to_cflags=no
9951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9953 CFLAGS="$save_CFLAGS"
9954 if test x"$can_add_to_cflags" = "xyes"
9956 V_CCOPT="$V_CCOPT -Wused-but-marked-unused"
9961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9962 $as_echo "no" >&6; }
9963 CFLAGS="$save_CFLAGS"
9966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9968 # Warns about safeguards added in case the enums are
9970 # AC_LBL_CHECK_COMPILER_OPT(V_CCOPT, -Wcovered-switch-default)
9972 # This can cause problems with ntohs(), ntohl(),
9973 # htons(), and htonl() on some platforms, such
9974 # as OpenBSD 6.3 with Clang 5.0.1. I guess the
9975 # problem is that the macro that ultimately does
9976 # the byte-swapping involves a conditional
9977 # expression that tests whether the value being
9978 # swapped is a compile-time constant or not,
9979 # using __builtin_constant_p(), and, depending
9980 # on whether it is, does a compile-time swap or
9981 # a run-time swap; perhaps the compiler always
9982 # considers one of the two results of the
9983 # conditional expressin is never evaluated,
9984 # because the conditional check is done at
9985 # compile time, and thus always says "that
9986 # expression is never executed".
9988 # (Perhaps there should be a way of flagging
9989 # an expression that you *want* evaluated at
9990 # compile time, so that the compiler 1) warns
9991 # if it *can't* be evaluated at compile time
9992 # and 2) *doesn't* warn that the true or false
9993 # branch will never be reached.)
9996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wunreachable-code option" >&5
9997 $as_echo_n "checking whether the compiler supports the -Wunreachable-code option... " >&6; }
9998 save_CFLAGS="$CFLAGS"
9999 if expr "x-Wunreachable-code" : "x-W.*" >/dev/null
10001 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wunreachable-code"
10002 elif expr "x-Wunreachable-code" : "x-f.*" >/dev/null
10004 CFLAGS="$CFLAGS -Werror -Wunreachable-code"
10005 elif expr "x-Wunreachable-code" : "x-m.*" >/dev/null
10007 CFLAGS="$CFLAGS -Werror -Wunreachable-code"
10009 CFLAGS="$CFLAGS -Wunreachable-code"
10011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10012 /* end confdefs.h. */
10022 if ac_fn_c_try_compile "$LINENO"; then :
10024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10025 $as_echo "yes" >&6; }
10026 can_add_to_cflags=yes
10028 # The compile supports this; do we have some C code for
10029 # which the warning should *not* appear?
10030 # We test the fourth argument because the third argument
10031 # could contain quotes, breaking the test.
10033 if test "xgenerates warnings from ntohs()" != "x"
10035 CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors"
10036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wunreachable-code generates warnings from ntohs()" >&5
10037 $as_echo_n "checking whether -Wunreachable-code generates warnings from ntohs()... " >&6; }
10038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10039 /* end confdefs.h. */
10040 #include <arpa/inet.h>
10043 testme(unsigned short a)
10049 if ac_fn_c_try_compile "$LINENO"; then :
10054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10055 $as_echo "no" >&6; }
10062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10063 $as_echo "yes" >&6; }
10064 can_add_to_cflags=no
10067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10069 CFLAGS="$save_CFLAGS"
10070 if test x"$can_add_to_cflags" = "xyes"
10072 V_CCOPT="$V_CCOPT -Wunreachable-code"
10077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10078 $as_echo "no" >&6; }
10079 CFLAGS="$save_CFLAGS"
10082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports generating dependencies" >&5
10087 $as_echo_n "checking whether the compiler supports generating dependencies... " >&6; }
10088 if test "$GCC" = yes ; then
10090 # GCC, or a compiler deemed to be GCC by AC_PROG_CC (even
10091 # though it's not); we assume that, in this case, the flag
10094 ac_lbl_dependency_flag="-M"
10097 # Not GCC or a compiler deemed to be GCC; what platform is
10098 # this? (We're assuming that if the compiler isn't GCC
10099 # it's the compiler from the vendor of the OS; that won't
10100 # necessarily be true for x86 platforms, where it might be
10101 # the Intel C compiler.)
10105 irix*|osf*|darwin*)
10107 # MIPS C for IRIX, DEC C, and clang all use -M.
10109 ac_lbl_dependency_flag="-M"
10116 ac_lbl_dependency_flag="-xM"
10121 # HP's older C compilers don't support this.
10122 # HP's newer C compilers support this with
10123 # either +M or +Make; the older compilers
10124 # interpret +M as something completely
10125 # different, so we use +Make so we don't
10126 # think it works with the older compilers.
10128 ac_lbl_dependency_flag="+Make"
10133 # Not one of the above; assume no support for
10134 # generating dependencies.
10136 ac_lbl_dependency_flag=""
10142 # Is ac_lbl_dependency_flag defined and, if so, does the compiler
10143 # complain about it?
10145 # Note: clang doesn't seem to exit with an error status when handed
10146 # an unknown non-warning error, even if you pass it
10147 # -Werror=unknown-warning-option. However, it always supports
10148 # -M, so the fact that this test always succeeds with clang
10151 if test ! -z "$ac_lbl_dependency_flag"; then
10152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10153 /* end confdefs.h. */
10154 int main(void) { return 0; }
10156 if { { $as_echo "$as_me:${as_lineno-$LINENO}: eval \"\$CC \$ac_lbl_dependency_flag conftest.c >/dev/null 2>&1\""; } >&5
10157 (eval "$CC $ac_lbl_dependency_flag conftest.c >/dev/null 2>&1") 2>&5
10159 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10160 test $ac_status = 0; }; then
10161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, with $ac_lbl_dependency_flag" >&5
10162 $as_echo "yes, with $ac_lbl_dependency_flag" >&6; }
10163 DEPENDENCY_CFLAG="$ac_lbl_dependency_flag"
10164 MKDEP='${srcdir}/mkdep'
10166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10167 $as_echo "no" >&6; }
10169 # We can't run mkdep, so have "make depend" do
10172 MKDEP='${srcdir}/nomkdep'
10176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10177 $as_echo "no" >&6; }
10179 # We can't run mkdep, so have "make depend" do
10182 MKDEP='${srcdir}/nomkdep'
10188 # We used to set -n32 for IRIX 6 when not using GCC (presumed
10189 # to mean that we're using MIPS C or MIPSpro C); it specified
10190 # the "new" faster 32-bit ABI, introduced in IRIX 6.2. I'm
10191 # not sure why that would be something to do *only* with a
10192 # .devel file; why should the ABI for which we produce code
10193 # depend on .devel?
10195 os=`echo $host_os | sed -e 's/\([0-9][0-9]*\)[^0-9].*$/\1/'`
10196 name="lbl/os-$os.h"
10197 if test -f $name ; then
10198 ln -s $name os-proto.h
10200 $as_echo "#define HAVE_OS_PROTO_H 1" >>confdefs.h
10203 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: can't find $name" >&5
10204 $as_echo "$as_me: WARNING: can't find $name" >&2;}
10209 # Check to see if the sockaddr struct has the 4.4 BSD sa_len member.
10211 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "
10212 #include <sys/types.h>
10213 #include <sys/socket.h>
10216 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
10218 cat >>confdefs.h <<_ACEOF
10219 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
10227 # Check to see if there's a sockaddr_storage structure.
10229 ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "
10230 #include <sys/types.h>
10231 #include <sys/socket.h>
10234 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
10236 cat >>confdefs.h <<_ACEOF
10237 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
10245 # Check to see if the dl_hp_ppa_info_t struct has the HP-UX 11.00
10246 # dl_module_id_1 member.
10248 # NOTE: any failure means we conclude that it doesn't have that member,
10249 # so if we don't have DLPI, don't have a <sys/dlpi_ext.h> header, or
10250 # have one that doesn't declare a dl_hp_ppa_info_t type, we conclude
10251 # it doesn't have that member (which is OK, as either we won't be
10252 # using code that would use that member, or we wouldn't compile in
10255 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" "
10256 #include <sys/types.h>
10257 #include <sys/dlpi.h>
10258 #include <sys/dlpi_ext.h>
10261 if test "x$ac_cv_member_dl_hp_ppa_info_t_dl_module_id_1" = xyes; then :
10263 cat >>confdefs.h <<_ACEOF
10264 #define HAVE_DL_HP_PPA_INFO_T_DL_MODULE_ID_1 1
10271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if unaligned accesses fail" >&5
10272 $as_echo_n "checking if unaligned accesses fail... " >&6; }
10273 if ${ac_cv_lbl_unaligned_fail+:} false; then :
10274 $as_echo_n "(cached) " >&6
10276 case "$host_cpu" in
10279 # These are CPU types where:
10281 # the CPU faults on an unaligned access, but at least some
10282 # OSes that support that CPU catch the fault and simulate
10283 # the unaligned access (e.g., Alpha/{Digital,Tru64} UNIX) -
10284 # the simulation is slow, so we don't want to use it;
10286 # the CPU, I infer (from the old
10288 # XXX: should also check that they don't do weird things (like on arm)
10290 # comment) doesn't fault on unaligned accesses, but doesn't
10291 # do a normal unaligned fetch, either (e.g., presumably, ARM);
10293 # for whatever reason, the test program doesn't work
10294 # (this has been claimed to be the case for several of those
10295 # CPUs - I don't know what the problem is; the problem
10296 # was reported as "the test program dumps core" for SuperH,
10297 # but that's what the test program is *supposed* to do -
10298 # it dumps core before it writes anything, so the test
10299 # for an empty output file should find an empty output
10300 # file and conclude that unaligned accesses don't work).
10302 # This run-time test won't work if you're cross-compiling, so
10303 # in order to support cross-compiling for a particular CPU,
10304 # we have to wire in the list of CPU types anyway, as far as
10305 # I know, so perhaps we should just have a set of CPUs on
10306 # which we know it doesn't work, a set of CPUs on which we
10307 # know it does work, and have the script just fail on other
10308 # cpu types and update it when such a failure occurs.
10310 alpha*|arm*|bfin*|hp*|mips*|sh*|sparc*|ia64|nv1)
10311 ac_cv_lbl_unaligned_fail=yes
10315 cat >conftest.c <<EOF
10316 # include <sys/types.h>
10317 # include <sys/wait.h>
10318 # include <stdio.h>
10319 unsigned char a[5] = { 1, 2, 3, 4, 5 };
10324 /* avoid "core dumped" message */
10330 pid = waitpid(pid, &status, 0);
10333 exit(!WIFEXITED(status));
10336 i = *(unsigned int *)&a[1];
10341 ${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS \
10342 conftest.c $LIBS >/dev/null 2>&1
10343 if test ! -x conftest ; then
10344 ac_cv_lbl_unaligned_fail=yes
10346 ./conftest >conftest.out
10347 if test ! -s conftest.out ; then
10348 ac_cv_lbl_unaligned_fail=yes
10350 ac_cv_lbl_unaligned_fail=no
10353 rm -f -r conftest* core core.conftest
10358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_unaligned_fail" >&5
10359 $as_echo "$ac_cv_lbl_unaligned_fail" >&6; }
10360 if test $ac_cv_lbl_unaligned_fail = yes ; then
10362 $as_echo "#define LBL_ALIGN 1" >>confdefs.h
10396 # Check whether --enable-usb was given.
10397 if test "${enable_usb+set}" = set; then :
10398 enableval=$enable_usb;
10404 if test "xxx_only" = yes; then
10405 # User requested something-else-only pcap, so they don't
10406 # want USB support.
10410 if test "x$enable_usb" != "xno" ; then
10411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for USB sniffing support" >&5
10412 $as_echo_n "checking for USB sniffing support... " >&6; }
10416 $as_echo "#define PCAP_SUPPORT_USB 1" >>confdefs.h
10418 USB_SRC=pcap-usb-linux.c
10419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10420 $as_echo "yes" >&6; }
10421 ac_usb_dev_name=`udevinfo -q name -p /sys/class/usb_device/usbmon 2>/dev/null`
10422 if test $? -ne 0 ; then
10423 ac_usb_dev_name="usbmon"
10426 cat >>confdefs.h <<_ACEOF
10427 #define LINUX_USB_MON_DEV "/dev/$ac_usb_dev_name"
10430 { $as_echo "$as_me:${as_lineno-$LINENO}: Device for USB sniffing is /dev/$ac_usb_dev_name" >&5
10431 $as_echo "$as_me: Device for USB sniffing is /dev/$ac_usb_dev_name" >&6;}
10433 # Do we have a version of <linux/compiler.h> available?
10434 # If so, we might need it for <linux/usbdevice_fs.h>.
10436 for ac_header in linux/compiler.h
10438 ac_fn_c_check_header_mongrel "$LINENO" "linux/compiler.h" "ac_cv_header_linux_compiler_h" "$ac_includes_default"
10439 if test "x$ac_cv_header_linux_compiler_h" = xyes; then :
10440 cat >>confdefs.h <<_ACEOF
10441 #define HAVE_LINUX_COMPILER_H 1
10448 if test "$ac_cv_header_linux_compiler_h" = yes; then
10450 # Yes - include it when testing for <linux/usbdevice_fs.h>.
10452 for ac_header in linux/usbdevice_fs.h
10454 ac_fn_c_check_header_compile "$LINENO" "linux/usbdevice_fs.h" "ac_cv_header_linux_usbdevice_fs_h" "#include <linux/compiler.h>
10456 if test "x$ac_cv_header_linux_usbdevice_fs_h" = xyes; then :
10457 cat >>confdefs.h <<_ACEOF
10458 #define HAVE_LINUX_USBDEVICE_FS_H 1
10466 for ac_header in linux/usbdevice_fs.h
10468 ac_fn_c_check_header_mongrel "$LINENO" "linux/usbdevice_fs.h" "ac_cv_header_linux_usbdevice_fs_h" "$ac_includes_default"
10469 if test "x$ac_cv_header_linux_usbdevice_fs_h" = xyes; then :
10470 cat >>confdefs.h <<_ACEOF
10471 #define HAVE_LINUX_USBDEVICE_FS_H 1
10479 if test "$ac_cv_header_linux_usbdevice_fs_h" = yes; then
10481 # OK, does it define bRequestType? Older versions of the kernel
10482 # define fields with names like "requesttype, "request", and
10483 # "value", rather than "bRequestType", "bRequest", and
10486 ac_fn_c_check_member "$LINENO" "struct usbdevfs_ctrltransfer" "bRequestType" "ac_cv_member_struct_usbdevfs_ctrltransfer_bRequestType" "
10487 $ac_includes_default
10488 #ifdef HAVE_LINUX_COMPILER_H
10489 #include <linux/compiler.h>
10491 #include <linux/usbdevice_fs.h>
10494 if test "x$ac_cv_member_struct_usbdevfs_ctrltransfer_bRequestType" = xyes; then :
10496 cat >>confdefs.h <<_ACEOF
10497 #define HAVE_STRUCT_USBDEVFS_CTRLTRANSFER_BREQUESTTYPE 1
10507 # This just uses BPF in FreeBSD 8.4 and later; we don't need
10508 # to check for anything special for capturing.
10510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in FreeBSD 8.4 and later" >&5
10511 $as_echo "yes, in FreeBSD 8.4 and later" >&6; }
10515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10516 $as_echo "no" >&6; }
10523 if test "xxx_only" != yes; then
10524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the platform could support netfilter sniffing" >&5
10525 $as_echo_n "checking whether the platform could support netfilter sniffing... " >&6; }
10528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10529 $as_echo "yes" >&6; }
10531 # Life's too short to deal with trying to get this to compile
10532 # if you don't get the right types defined with
10533 # __KERNEL_STRICT_NAMES getting defined by some other include.
10535 # Check whether the includes Just Work. If not, don't turn on
10536 # netfilter support.
10538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can compile the netfilter support" >&5
10539 $as_echo_n "checking whether we can compile the netfilter support... " >&6; }
10540 if ${ac_cv_netfilter_can_compile+:} false; then :
10541 $as_echo_n "(cached) " >&6
10543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10544 /* end confdefs.h. */
10546 $ac_includes_default
10547 #include <sys/socket.h>
10548 #include <netinet/in.h>
10549 #include <linux/types.h>
10551 #include <linux/netlink.h>
10552 #include <linux/netfilter.h>
10553 #include <linux/netfilter/nfnetlink.h>
10554 #include <linux/netfilter/nfnetlink_log.h>
10555 #include <linux/netfilter/nfnetlink_queue.h>
10564 if ac_fn_c_try_compile "$LINENO"; then :
10565 ac_cv_netfilter_can_compile=yes
10567 ac_cv_netfilter_can_compile=no
10569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_netfilter_can_compile" >&5
10573 $as_echo "$ac_cv_netfilter_can_compile" >&6; }
10574 if test $ac_cv_netfilter_can_compile = yes ; then
10576 $as_echo "#define PCAP_SUPPORT_NETFILTER 1" >>confdefs.h
10578 NETFILTER_SRC=pcap-netfilter-linux.c
10582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10583 $as_echo "no" >&6; }
10590 # Check whether --enable-netmap was given.
10591 if test "${enable_netmap+set}" = set; then :
10592 enableval=$enable_netmap;
10598 if test "x$enable_netmap" != "xno" ; then
10600 # Check whether net/netmap_user.h is usable if NETMAP_WITH_LIBS is
10601 # defined; it's not usable on DragonFly BSD 4.6 if NETMAP_WITH_LIBS
10602 # is defined, for example, as it includes a non-existent malloc.h
10605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can compile the netmap support" >&5
10606 $as_echo_n "checking whether we can compile the netmap support... " >&6; }
10607 if ${ac_cv_net_netmap_user_can_compile+:} false; then :
10608 $as_echo_n "(cached) " >&6
10610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10611 /* end confdefs.h. */
10613 $ac_includes_default
10614 #define NETMAP_WITH_LIBS
10615 #include <net/netmap_user.h>
10624 if ac_fn_c_try_compile "$LINENO"; then :
10625 ac_cv_net_netmap_user_can_compile=yes
10627 ac_cv_net_netmap_user_can_compile=no
10629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_net_netmap_user_can_compile" >&5
10633 $as_echo "$ac_cv_net_netmap_user_can_compile" >&6; }
10634 if test $ac_cv_net_netmap_user_can_compile = yes ; then
10636 $as_echo "#define PCAP_SUPPORT_NETMAP 1" >>confdefs.h
10638 NETMAP_SRC=pcap-netmap.c
10645 # Check whether --enable-bluetooth was given.
10646 if test "${enable_bluetooth+set}" = set; then :
10647 enableval=$enable_bluetooth;
10649 enable_bluetooth=ifsupportavailable
10653 if test "xxx_only" = yes; then
10654 # User requested something-else-only pcap, so they don't
10655 # want Bluetooth support.
10656 enable_bluetooth=no
10659 if test "x$enable_bluetooth" != "xno" ; then
10662 ac_fn_c_check_header_mongrel "$LINENO" "bluetooth/bluetooth.h" "ac_cv_header_bluetooth_bluetooth_h" "$ac_includes_default"
10663 if test "x$ac_cv_header_bluetooth_bluetooth_h" = xyes; then :
10666 # We have bluetooth.h, so we support Bluetooth
10670 $as_echo "#define PCAP_SUPPORT_BT 1" >>confdefs.h
10672 BT_SRC=pcap-bt-linux.c
10673 { $as_echo "$as_me:${as_lineno-$LINENO}: Bluetooth sniffing is supported" >&5
10674 $as_echo "$as_me: Bluetooth sniffing is supported" >&6;}
10675 ac_lbl_bluetooth_available=yes
10678 # OK, does struct sockaddr_hci have an hci_channel
10681 ac_fn_c_check_member "$LINENO" "struct sockaddr_hci" "hci_channel" "ac_cv_member_struct_sockaddr_hci_hci_channel" "
10682 #include <bluetooth/bluetooth.h>
10683 #include <bluetooth/hci.h>
10686 if test "x$ac_cv_member_struct_sockaddr_hci_hci_channel" = xyes; then :
10688 cat >>confdefs.h <<_ACEOF
10689 #define HAVE_STRUCT_SOCKADDR_HCI_HCI_CHANNEL 1
10694 # Yes; is HCI_CHANNEL_MONITOR defined?
10696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if HCI_CHANNEL_MONITOR is defined" >&5
10697 $as_echo_n "checking if HCI_CHANNEL_MONITOR is defined... " >&6; }
10698 if ${ac_cv_lbl_hci_channel_monitor_is_defined+:} false; then :
10699 $as_echo_n "(cached) " >&6
10701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10702 /* end confdefs.h. */
10704 #include <bluetooth/bluetooth.h>
10705 #include <bluetooth/hci.h>
10711 u_int i = HCI_CHANNEL_MONITOR;
10717 if ac_fn_c_try_compile "$LINENO"; then :
10719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10720 $as_echo "yes" >&6; }
10722 $as_echo "#define PCAP_SUPPORT_BT_MONITOR /**/" >>confdefs.h
10724 BT_MONITOR_SRC=pcap-bt-monitor-linux.c
10728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10729 $as_echo "no" >&6; }
10732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10742 # We don't have bluetooth.h, so we don't support
10743 # Bluetooth sniffing.
10745 if test "x$enable_bluetooth" = "xyes" ; then
10746 as_fn_error $? "Bluetooth sniffing is not supported; install bluez-lib devel to enable it" "$LINENO" 5
10748 { $as_echo "$as_me:${as_lineno-$LINENO}: Bluetooth sniffing is not supported; install bluez-lib devel to enable it" >&5
10749 $as_echo "$as_me: Bluetooth sniffing is not supported; install bluez-lib devel to enable it" >&6;}
10757 if test "x$enable_bluetooth" = "xyes" ; then
10758 as_fn_error $? "no Bluetooth sniffing support implemented for $host_os" "$LINENO" 5
10760 { $as_echo "$as_me:${as_lineno-$LINENO}: no Bluetooth sniffing support implemented for $host_os" >&5
10761 $as_echo "$as_me: no Bluetooth sniffing support implemented for $host_os" >&6;}
10770 # Check whether --enable-dbus was given.
10771 if test "${enable_dbus+set}" = set; then :
10772 enableval=$enable_dbus;
10774 enable_dbus=ifavailable
10778 if test "xxx_only" = yes; then
10779 # User requested something-else-only pcap, so they don't
10780 # want D-Bus support.
10784 if test "x$enable_dbus" != "xno"; then
10785 if test "x$enable_dbus" = "xyes"; then
10790 # We don't support D-Bus sniffing on macOS; see
10792 # https://bugs.freedesktop.org/show_bug.cgi?id=74029
10794 # The user requested it, so fail.
10796 as_fn_error $? "Due to freedesktop.org bug 74029, D-Bus capture support is not available on macOS" "$LINENO" 5
10803 # We don't support D-Bus sniffing on macOS; see
10805 # https://bugs.freedesktop.org/show_bug.cgi?id=74029
10807 # The user dind't explicitly request it, so just
10808 # silently refuse to enable it.
10816 if test "x$enable_dbus" != "xno"; then
10817 # Extract the first word of "pkg-config", so it can be a program name with args.
10818 set dummy pkg-config; ac_word=$2
10819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10820 $as_echo_n "checking for $ac_word... " >&6; }
10821 if ${ac_cv_prog_PKGCONFIG+:} false; then :
10822 $as_echo_n "(cached) " >&6
10824 if test -n "$PKGCONFIG"; then
10825 ac_cv_prog_PKGCONFIG="$PKGCONFIG" # Let the user override the test.
10827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10828 for as_dir in $PATH
10831 test -z "$as_dir" && as_dir=.
10832 for ac_exec_ext in '' $ac_executable_extensions; do
10833 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10834 ac_cv_prog_PKGCONFIG="pkg-config"
10835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10842 test -z "$ac_cv_prog_PKGCONFIG" && ac_cv_prog_PKGCONFIG="no"
10845 PKGCONFIG=$ac_cv_prog_PKGCONFIG
10846 if test -n "$PKGCONFIG"; then
10847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
10848 $as_echo "$PKGCONFIG" >&6; }
10850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10851 $as_echo "no" >&6; }
10855 if test "x$PKGCONFIG" != "xno"; then
10856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for D-Bus" >&5
10857 $as_echo_n "checking for D-Bus... " >&6; }
10858 if "$PKGCONFIG" dbus-1; then
10859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10860 $as_echo "yes" >&6; }
10861 DBUS_CFLAGS=`"$PKGCONFIG" --cflags dbus-1`
10862 DBUS_LIBS=`"$PKGCONFIG" --libs dbus-1`
10863 save_CFLAGS="$CFLAGS"
10865 CFLAGS="$CFLAGS $DBUS_CFLAGS"
10866 LIBS="$LIBS $DBUS_LIBS"
10867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the D-Bus library defines dbus_connection_read_write" >&5
10868 $as_echo_n "checking whether the D-Bus library defines dbus_connection_read_write... " >&6; }
10869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10870 /* end confdefs.h. */
10871 #include <string.h>
10874 #include <sys/time.h>
10876 #include <dbus/dbus.h>
10880 return dbus_connection_read_write(NULL, 0);
10885 if ac_fn_c_try_link "$LINENO"; then :
10887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10888 $as_echo "yes" >&6; }
10890 $as_echo "#define PCAP_SUPPORT_DBUS 1" >>confdefs.h
10892 DBUS_SRC=pcap-dbus.c
10893 V_INCLS="$V_INCLS $DBUS_CFLAGS"
10897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10898 $as_echo "no" >&6; }
10899 if test "x$enable_dbus" = "xyes"; then
10900 as_fn_error $? "--enable-dbus was given, but the D-Bus library doesn't define dbus_connection_read_write()" "$LINENO" 5
10905 rm -f core conftest.err conftest.$ac_objext \
10906 conftest$ac_exeext conftest.$ac_ext
10907 CFLAGS="$save_CFLAGS"
10909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10910 $as_echo "no" >&6; }
10911 if test "x$enable_dbus" = "xyes"; then
10912 as_fn_error $? "--enable-dbus was given, but the dbus-1 package is not installed" "$LINENO" 5
10920 # Check whether --enable-rdma was given.
10921 if test "${enable_rdma+set}" = set; then :
10922 enableval=$enable_rdma;
10924 enable_rdma=ifavailable
10928 if test "xxx_only" = yes; then
10929 # User requested something-else-only pcap, so they don't
10930 # want RDMA support.
10934 if test "x$enable_rdma" != "xno"; then
10935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ibv_get_device_list in -libverbs" >&5
10936 $as_echo_n "checking for ibv_get_device_list in -libverbs... " >&6; }
10937 if ${ac_cv_lib_ibverbs_ibv_get_device_list+:} false; then :
10938 $as_echo_n "(cached) " >&6
10940 ac_check_lib_save_LIBS=$LIBS
10941 LIBS="-libverbs $LIBS"
10942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10943 /* end confdefs.h. */
10945 /* Override any GCC internal prototype to avoid an error.
10946 Use char because int might match the return type of a GCC
10947 builtin and then its argument prototype would still apply. */
10951 char ibv_get_device_list ();
10955 return ibv_get_device_list ();
10960 if ac_fn_c_try_link "$LINENO"; then :
10961 ac_cv_lib_ibverbs_ibv_get_device_list=yes
10963 ac_cv_lib_ibverbs_ibv_get_device_list=no
10965 rm -f core conftest.err conftest.$ac_objext \
10966 conftest$ac_exeext conftest.$ac_ext
10967 LIBS=$ac_check_lib_save_LIBS
10969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ibverbs_ibv_get_device_list" >&5
10970 $as_echo "$ac_cv_lib_ibverbs_ibv_get_device_list" >&6; }
10971 if test "x$ac_cv_lib_ibverbs_ibv_get_device_list" = xyes; then :
10973 ac_fn_c_check_header_mongrel "$LINENO" "infiniband/verbs.h" "ac_cv_header_infiniband_verbs_h" "$ac_includes_default"
10974 if test "x$ac_cv_header_infiniband_verbs_h" = xyes; then :
10977 # ibv_create_flow may be defined as a static inline
10978 # function in infiniband/verbs.h, so we can't
10979 # use AC_CHECK_LIB.
10981 # Too bad autoconf has no AC_SYMBOL_EXISTS()
10982 # macro that works like CMake's check_symbol_exists()
10983 # function, to check do a compile check like
10984 # this (they do a clever trick to avoid having
10985 # to know the function's signature).
10987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libibverbs defines ibv_create_flow" >&5
10988 $as_echo_n "checking whether libibverbs defines ibv_create_flow... " >&6; }
10989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10990 /* end confdefs.h. */
10992 #include <infiniband/verbs.h>
10998 (void) ibv_create_flow((struct ibv_qp *) NULL,
10999 (struct ibv_flow_attr *) NULL);
11005 if ac_fn_c_try_link "$LINENO"; then :
11007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11008 $as_echo "yes" >&6; }
11010 $as_echo "#define PCAP_SUPPORT_RDMASNIFF /**/" >>confdefs.h
11012 RDMA_SRC=pcap-rdmasniff.c
11013 LIBS="-libverbs $LIBS"
11017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11018 $as_echo "no" >&6; }
11022 rm -f core conftest.err conftest.$ac_objext \
11023 conftest$ac_exeext conftest.$ac_ext
11035 # Find a good install program. We prefer a C program (faster),
11036 # so one script is as good as another. But avoid the broken or
11037 # incompatible versions:
11038 # SysV /etc/install, /usr/sbin/install
11039 # SunOS /usr/etc/install
11040 # IRIX /sbin/install
11042 # AmigaOS /C/install, which installs bootblocks on floppy discs
11043 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
11044 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
11045 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
11046 # OS/2's system install, which has a completely different semantic
11047 # ./install, which can be erroneously created by make from ./install.sh.
11048 # Reject install programs that cannot install multiple files.
11049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
11050 $as_echo_n "checking for a BSD-compatible install... " >&6; }
11051 if test -z "$INSTALL"; then
11052 if ${ac_cv_path_install+:} false; then :
11053 $as_echo_n "(cached) " >&6
11055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11056 for as_dir in $PATH
11059 test -z "$as_dir" && as_dir=.
11060 # Account for people who put trailing slashes in PATH elements.
11061 case $as_dir/ in #((
11062 ./ | .// | /[cC]/* | \
11063 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
11064 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
11067 # OSF1 and SCO ODT 3.0 have their own names for install.
11068 # Don't use installbsd from OSF since it installs stuff as root
11070 for ac_prog in ginstall scoinst install; do
11071 for ac_exec_ext in '' $ac_executable_extensions; do
11072 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
11073 if test $ac_prog = install &&
11074 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11075 # AIX install. It has an incompatible calling convention.
11077 elif test $ac_prog = install &&
11078 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11079 # program-specific install script used by HP pwplus--don't use.
11082 rm -rf conftest.one conftest.two conftest.dir
11083 echo one > conftest.one
11084 echo two > conftest.two
11086 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
11087 test -s conftest.one && test -s conftest.two &&
11088 test -s conftest.dir/conftest.one &&
11089 test -s conftest.dir/conftest.two
11091 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11104 rm -rf conftest.one conftest.two conftest.dir
11107 if test "${ac_cv_path_install+set}" = set; then
11108 INSTALL=$ac_cv_path_install
11110 # As a last resort, use the slow shell script. Don't cache a
11111 # value for INSTALL within a source directory, because that will
11112 # break other packages using the cache if that directory is
11113 # removed, or if the value is a relative name.
11114 INSTALL=$ac_install_sh
11117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
11118 $as_echo "$INSTALL" >&6; }
11120 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11121 # It thinks the first close brace ends the variable substitution.
11122 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
11124 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
11126 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
11129 ac_config_headers="$ac_config_headers config.h"
11132 ac_config_commands="$ac_config_commands default-1"
11134 ac_config_files="$ac_config_files Makefile pcap-filter.manmisc pcap-linktype.manmisc pcap-tstamp.manmisc pcap-savefile.manfile pcap.3pcap pcap_compile.3pcap pcap_datalink.3pcap pcap_dump_open.3pcap pcap_get_tstamp_precision.3pcap pcap_list_datalinks.3pcap pcap_list_tstamp_types.3pcap pcap_open_dead.3pcap pcap_open_offline.3pcap pcap_set_immediate_mode.3pcap pcap_set_tstamp_precision.3pcap pcap_set_tstamp_type.3pcap rpcapd/Makefile rpcapd/rpcapd.manadmin rpcapd/rpcapd-config.manfile testprogs/Makefile"
11136 cat >confcache <<\_ACEOF
11137 # This file is a shell script that caches the results of configure
11138 # tests run on this system so they can be shared between configure
11139 # scripts and configure runs, see configure's option --config-cache.
11140 # It is not useful on other systems. If it contains results you don't
11141 # want to keep, you may remove or edit it.
11143 # config.status only pays attention to the cache file if you give it
11144 # the --recheck option to rerun configure.
11146 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11147 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11148 # following values.
11152 # The following way of writing the cache mishandles newlines in values,
11153 # but we know of no workaround that is simple, portable, and efficient.
11154 # So, we kill variables containing newlines.
11155 # Ultrix sh set writes to stderr and can't be redirected directly,
11156 # and sets the high bit in the cache file unless we assign to the vars.
11158 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11159 eval ac_val=\$$ac_var
11163 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11164 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11167 _ | IFS | as_nl) ;; #(
11168 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11169 *) { eval $ac_var=; unset $ac_var;} ;;
11175 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11176 *${as_nl}ac_space=\ *)
11177 # `set' does not quote correctly, so add quotes: double-quote
11178 # substitution turns \\\\ into \\, and sed turns \\ into \.
11181 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11184 # `set' quotes correctly as required by POSIX, so do not add quotes.
11185 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11194 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11196 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11198 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11199 if test -w "$cache_file"; then
11200 if test "x$cache_file" != "x/dev/null"; then
11201 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11202 $as_echo "$as_me: updating cache $cache_file" >&6;}
11203 if test ! -f "$cache_file" || test -h "$cache_file"; then
11204 cat confcache >"$cache_file"
11206 case $cache_file in #(
11208 mv -f confcache "$cache_file"$$ &&
11209 mv -f "$cache_file"$$ "$cache_file" ;; #(
11211 mv -f confcache "$cache_file" ;;
11216 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11217 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11222 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11223 # Let make expand exec_prefix.
11224 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11226 DEFS=-DHAVE_CONFIG_H
11231 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11232 # 1. Remove the extension, and $U if already installed.
11233 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11234 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11235 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11236 # will be set to the directory where LIBOBJS objects are built.
11237 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11238 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11240 LIBOBJS=$ac_libobjs
11242 LTLIBOBJS=$ac_ltlibobjs
11246 : "${CONFIG_STATUS=./config.status}"
11248 ac_clean_files_save=$ac_clean_files
11249 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11250 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11251 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11253 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11255 # Generated by $as_me.
11256 # Run this file to recreate the current configuration.
11257 # Compiler output produced by configure, useful for debugging
11258 # configure, is in config.log if it exists.
11261 ac_cs_recheck=false
11264 SHELL=\${CONFIG_SHELL-$SHELL}
11267 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11268 ## -------------------- ##
11269 ## M4sh Initialization. ##
11270 ## -------------------- ##
11272 # Be more Bourne compatible
11273 DUALCASE=1; export DUALCASE # for MKS sh
11274 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11277 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11278 # is contrary to our usage. Disable this feature.
11279 alias -g '${1+"$@"}'='"$@"'
11280 setopt NO_GLOB_SUBST
11282 case `(set -o) 2>/dev/null` in #(
11294 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11295 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11296 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11297 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11298 # Prefer a ksh shell builtin over an external printf program on Solaris,
11299 # but without wasting forks for bash or zsh.
11300 if test -z "$BASH_VERSION$ZSH_VERSION" \
11301 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11302 as_echo='print -r --'
11303 as_echo_n='print -rn --'
11304 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11305 as_echo='printf %s\n'
11306 as_echo_n='printf %s'
11308 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11309 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11310 as_echo_n='/usr/ucb/echo -n'
11312 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11313 as_echo_n_body='eval
11317 expr "X$arg" : "X\\(.*\\)$as_nl";
11318 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11320 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11322 export as_echo_n_body
11323 as_echo_n='sh -c $as_echo_n_body as_echo'
11325 export as_echo_body
11326 as_echo='sh -c $as_echo_body as_echo'
11329 # The user is always right.
11330 if test "${PATH_SEPARATOR+set}" != set; then
11332 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11333 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11340 # We need space, tab and new line, in precisely that order. Quoting is
11341 # there to prevent editors from complaining about space-tab.
11342 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11343 # splitting by setting IFS to empty value.)
11346 # Find who we are. Look in the path if we contain no directory separator.
11349 *[\\/]* ) as_myself=$0 ;;
11350 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11351 for as_dir in $PATH
11354 test -z "$as_dir" && as_dir=.
11355 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11361 # We did not find ourselves, most probably we were run as `sh COMMAND'
11362 # in which case we are not to be found in the path.
11363 if test "x$as_myself" = x; then
11366 if test ! -f "$as_myself"; then
11367 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11371 # Unset variables that we do not need and which cause bugs (e.g. in
11372 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11373 # suppresses any "Segmentation fault" message there. '((' could
11374 # trigger a bug in pdksh 5.2.14.
11375 for as_var in BASH_ENV ENV MAIL MAILPATH
11376 do eval test x\${$as_var+set} = xset \
11377 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11390 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11393 # as_fn_error STATUS ERROR [LINENO LOG_FD]
11394 # ----------------------------------------
11395 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11396 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11397 # script with STATUS, using 1 if that was 0.
11400 as_status=$1; test $as_status -eq 0 && as_status=1
11402 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11403 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11405 $as_echo "$as_me: error: $2" >&2
11406 as_fn_exit $as_status
11410 # as_fn_set_status STATUS
11411 # -----------------------
11412 # Set $? to STATUS, without forking.
11413 as_fn_set_status ()
11416 } # as_fn_set_status
11418 # as_fn_exit STATUS
11419 # -----------------
11420 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11424 as_fn_set_status $1
11430 # Portably unset VAR.
11433 { eval $1=; unset $1;}
11435 as_unset=as_fn_unset
11436 # as_fn_append VAR VALUE
11437 # ----------------------
11438 # Append the text in VALUE to the end of the definition contained in VAR. Take
11439 # advantage of any shell optimizations that allow amortized linear growth over
11440 # repeated appends, instead of the typical quadratic growth present in naive
11442 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11443 eval 'as_fn_append ()
11454 # as_fn_arith ARG...
11455 # ------------------
11456 # Perform arithmetic evaluation on the ARGs, and store the result in the
11457 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11458 # must be portable across $(()) and expr.
11459 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11460 eval 'as_fn_arith ()
11467 as_val=`expr "$@" || test $? -eq 1`
11472 if expr a : '\(a\)' >/dev/null 2>&1 &&
11473 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11479 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11480 as_basename=basename
11485 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11491 as_me=`$as_basename -- "$0" ||
11492 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11493 X"$0" : 'X\(//\)$' \| \
11494 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11496 sed '/^.*\/\([^/][^/]*\)\/*$/{
11510 # Avoid depending upon Character Ranges.
11511 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11512 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11513 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11514 as_cr_digits='0123456789'
11515 as_cr_alnum=$as_cr_Letters$as_cr_digits
11517 ECHO_C= ECHO_N= ECHO_T=
11518 case `echo -n x` in #(((((
11520 case `echo 'xy\c'` in
11521 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11523 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11530 rm -f conf$$ conf$$.exe conf$$.file
11531 if test -d conf$$.dir; then
11532 rm -f conf$$.dir/conf$$.file
11535 mkdir conf$$.dir 2>/dev/null
11537 if (echo >conf$$.file) 2>/dev/null; then
11538 if ln -s conf$$.file conf$$ 2>/dev/null; then
11540 # ... but there are two gotchas:
11541 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11542 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11543 # In both cases, we have to default to `cp -pR'.
11544 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11546 elif ln conf$$.file conf$$ 2>/dev/null; then
11554 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11555 rmdir conf$$.dir 2>/dev/null
11560 # Create "$as_dir" as a directory, including parents if necessary.
11565 -*) as_dir=./$as_dir;;
11567 test -d "$as_dir" || eval $as_mkdir_p || {
11571 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11572 *) as_qdir=$as_dir;;
11574 as_dirs="'$as_qdir' $as_dirs"
11575 as_dir=`$as_dirname -- "$as_dir" ||
11576 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11577 X"$as_dir" : 'X\(//\)[^/]' \| \
11578 X"$as_dir" : 'X\(//\)$' \| \
11579 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11580 $as_echo X"$as_dir" |
11581 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11585 /^X\(\/\/\)[^/].*/{
11598 test -d "$as_dir" && break
11600 test -z "$as_dirs" || eval "mkdir $as_dirs"
11601 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11605 if mkdir -p . 2>/dev/null; then
11606 as_mkdir_p='mkdir -p "$as_dir"'
11608 test -d ./-p && rmdir ./-p
11613 # as_fn_executable_p FILE
11614 # -----------------------
11615 # Test if FILE is an executable regular file.
11616 as_fn_executable_p ()
11618 test -f "$1" && test -x "$1"
11619 } # as_fn_executable_p
11620 as_test_x='test -x'
11621 as_executable_p=as_fn_executable_p
11623 # Sed expression to map a string onto a valid CPP name.
11624 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11626 # Sed expression to map a string onto a valid variable name.
11627 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11631 ## ----------------------------------- ##
11632 ## Main body of $CONFIG_STATUS script. ##
11633 ## ----------------------------------- ##
11635 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11637 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11638 # Save the log message, to keep $0 and so on meaningful, and to
11639 # report actual input values of CONFIG_FILES etc. instead of their
11640 # values after options handling.
11642 This file was extended by pcap $as_me 1.9.1, which was
11643 generated by GNU Autoconf 2.69. Invocation command line was
11645 CONFIG_FILES = $CONFIG_FILES
11646 CONFIG_HEADERS = $CONFIG_HEADERS
11647 CONFIG_LINKS = $CONFIG_LINKS
11648 CONFIG_COMMANDS = $CONFIG_COMMANDS
11651 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11656 case $ac_config_files in *"
11657 "*) set x $ac_config_files; shift; ac_config_files=$*;;
11660 case $ac_config_headers in *"
11661 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11665 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11666 # Files that config.status was made for.
11667 config_files="$ac_config_files"
11668 config_headers="$ac_config_headers"
11669 config_commands="$ac_config_commands"
11673 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11675 \`$as_me' instantiates files and other configuration actions
11676 from templates according to the current configuration. Unless the files
11677 and actions are specified as TAGs, all are instantiated by default.
11679 Usage: $0 [OPTION]... [TAG]...
11681 -h, --help print this help, then exit
11682 -V, --version print version number and configuration settings, then exit
11683 --config print configuration, then exit
11684 -q, --quiet, --silent
11685 do not print progress messages
11686 -d, --debug don't remove temporary files
11687 --recheck update $as_me by reconfiguring in the same conditions
11688 --file=FILE[:TEMPLATE]
11689 instantiate the configuration file FILE
11690 --header=FILE[:TEMPLATE]
11691 instantiate the configuration header FILE
11693 Configuration files:
11696 Configuration headers:
11699 Configuration commands:
11702 Report bugs to the package provider."
11705 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11706 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11708 pcap config.status 1.9.1
11709 configured by $0, generated by GNU Autoconf 2.69,
11710 with options \\"\$ac_cs_config\\"
11712 Copyright (C) 2012 Free Software Foundation, Inc.
11713 This config.status script is free software; the Free Software Foundation
11714 gives unlimited permission to copy, distribute and modify it."
11719 test -n "\$AWK" || AWK=awk
11722 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11723 # The default lists apply if the user does not specify any file.
11729 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11730 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11734 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11746 # Handling of the options.
11747 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11749 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11750 $as_echo "$ac_cs_version"; exit ;;
11751 --config | --confi | --conf | --con | --co | --c )
11752 $as_echo "$ac_cs_config"; exit ;;
11753 --debug | --debu | --deb | --de | --d | -d )
11755 --file | --fil | --fi | --f )
11758 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11759 '') as_fn_error $? "missing file argument" ;;
11761 as_fn_append CONFIG_FILES " '$ac_optarg'"
11762 ac_need_defaults=false;;
11763 --header | --heade | --head | --hea )
11766 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11768 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11769 ac_need_defaults=false;;
11771 # Conflict between --help and --header
11772 as_fn_error $? "ambiguous option: \`$1'
11773 Try \`$0 --help' for more information.";;
11774 --help | --hel | -h )
11775 $as_echo "$ac_cs_usage"; exit ;;
11776 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11777 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11780 # This is an error.
11781 -*) as_fn_error $? "unrecognized option: \`$1'
11782 Try \`$0 --help' for more information." ;;
11784 *) as_fn_append ac_config_targets " $1"
11785 ac_need_defaults=false ;;
11791 ac_configure_extra_args=
11793 if $ac_cs_silent; then
11795 ac_configure_extra_args="$ac_configure_extra_args --silent"
11799 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11800 if \$ac_cs_recheck; then
11801 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11803 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11804 CONFIG_SHELL='$SHELL'
11805 export CONFIG_SHELL
11810 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11814 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11815 ## Running $as_me. ##
11821 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11829 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11831 # Handling of arguments.
11832 for ac_config_target in $ac_config_targets
11834 case $ac_config_target in
11835 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11836 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
11837 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11838 "pcap-filter.manmisc") CONFIG_FILES="$CONFIG_FILES pcap-filter.manmisc" ;;
11839 "pcap-linktype.manmisc") CONFIG_FILES="$CONFIG_FILES pcap-linktype.manmisc" ;;
11840 "pcap-tstamp.manmisc") CONFIG_FILES="$CONFIG_FILES pcap-tstamp.manmisc" ;;
11841 "pcap-savefile.manfile") CONFIG_FILES="$CONFIG_FILES pcap-savefile.manfile" ;;
11842 "pcap.3pcap") CONFIG_FILES="$CONFIG_FILES pcap.3pcap" ;;
11843 "pcap_compile.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_compile.3pcap" ;;
11844 "pcap_datalink.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_datalink.3pcap" ;;
11845 "pcap_dump_open.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_dump_open.3pcap" ;;
11846 "pcap_get_tstamp_precision.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_get_tstamp_precision.3pcap" ;;
11847 "pcap_list_datalinks.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_list_datalinks.3pcap" ;;
11848 "pcap_list_tstamp_types.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_list_tstamp_types.3pcap" ;;
11849 "pcap_open_dead.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_open_dead.3pcap" ;;
11850 "pcap_open_offline.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_open_offline.3pcap" ;;
11851 "pcap_set_immediate_mode.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_set_immediate_mode.3pcap" ;;
11852 "pcap_set_tstamp_precision.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_set_tstamp_precision.3pcap" ;;
11853 "pcap_set_tstamp_type.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_set_tstamp_type.3pcap" ;;
11854 "rpcapd/Makefile") CONFIG_FILES="$CONFIG_FILES rpcapd/Makefile" ;;
11855 "rpcapd/rpcapd.manadmin") CONFIG_FILES="$CONFIG_FILES rpcapd/rpcapd.manadmin" ;;
11856 "rpcapd/rpcapd-config.manfile") CONFIG_FILES="$CONFIG_FILES rpcapd/rpcapd-config.manfile" ;;
11857 "testprogs/Makefile") CONFIG_FILES="$CONFIG_FILES testprogs/Makefile" ;;
11859 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11864 # If the user did not use the arguments to specify the items to instantiate,
11865 # then the envvar interface is used. Set only those that are not.
11866 # We use the long form for the default assignment because of an extremely
11867 # bizarre bug on SunOS 4.1.3.
11868 if $ac_need_defaults; then
11869 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11870 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11871 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11874 # Have a temporary directory for convenience. Make it in the build tree
11875 # simply because there is no reason against having it here, and in addition,
11876 # creating and moving files from /tmp can sometimes cause problems.
11877 # Hook for its removal unless debugging.
11878 # Note that there is a small window in which the directory will not be cleaned:
11879 # after its creation but before its name has been assigned to `$tmp'.
11883 trap 'exit_status=$?
11884 : "${ac_tmp:=$tmp}"
11885 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
11887 trap 'as_fn_exit 1' 1 2 13 15
11889 # Create a (secure) tmp directory for tmp files.
11892 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11896 tmp=./conf$$-$RANDOM
11897 (umask 077 && mkdir "$tmp")
11898 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
11901 # Set up the scripts for CONFIG_FILES section.
11902 # No need to generate them if there are no CONFIG_FILES.
11903 # This happens for instance with `./config.status config.h'.
11904 if test -n "$CONFIG_FILES"; then
11907 ac_cr=`echo X | tr X '\015'`
11908 # On cygwin, bash can eat \r inside `` if the user requested igncr.
11909 # But we know of no other shell where ac_cr would be empty at this
11910 # point, so we can use a bashism as a fallback.
11911 if test "x$ac_cr" = x; then
11912 eval ac_cr=\$\'\\r\'
11914 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11915 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11918 ac_cs_awk_cr=$ac_cr
11921 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
11926 echo "cat >conf$$subs.awk <<_ACEOF" &&
11927 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11929 } >conf$$subs.sh ||
11930 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11931 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
11933 for ac_last_try in false false false false false :; do
11934 . ./conf$$subs.sh ||
11935 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11937 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11938 if test $ac_delim_n = $ac_delim_num; then
11940 elif $ac_last_try; then
11941 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11943 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11946 rm -f conf$$subs.sh
11948 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11949 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
11953 s/^/S["/; s/!.*/"]=/
11963 s/\(.\{148\}\)..*/\1/
11965 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11970 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11977 s/\(.\{148\}\)..*/\1/
11979 s/["\\]/\\&/g; s/^/"/; s/$/"/
11983 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11988 ' <conf$$subs.awk | sed '
11993 ' >>$CONFIG_STATUS || ac_write_fail=1
11994 rm -f conf$$subs.awk
11995 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11997 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
11998 for (key in S) S_is_set[key] = 1
12004 nfields = split(line, field, "@")
12006 len = length(field[1])
12007 for (i = 2; i < nfields; i++) {
12009 keylen = length(key)
12010 if (S_is_set[key]) {
12012 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12013 len += length(value) + length(field[++i])
12024 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12025 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12026 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12029 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12030 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12033 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12034 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12035 # trailing colons and then remove the whole line if VPATH becomes empty
12036 # (actually we leave an empty line to preserve line numbers).
12037 if test "x$srcdir" = x.; then
12038 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
12056 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12057 fi # test -n "$CONFIG_FILES"
12059 # Set up the scripts for CONFIG_HEADERS section.
12060 # No need to generate them if there are no CONFIG_HEADERS.
12061 # This happens for instance with `./config.status Makefile'.
12062 if test -n "$CONFIG_HEADERS"; then
12063 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
12067 # Transform confdefs.h into an awk script `defines.awk', embedded as
12068 # here-document in config.status, that substitutes the proper values into
12069 # config.h.in to produce config.h.
12071 # Create a delimiter string that does not exist in confdefs.h, to ease
12072 # handling of long lines.
12074 for ac_last_try in false false :; do
12075 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12076 if test -z "$ac_tt"; then
12078 elif $ac_last_try; then
12079 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12081 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12085 # For the awk script, D is an array of macro values keyed by name,
12086 # likewise P contains macro parameters if any. Preserve backslash
12087 # newline sequences.
12089 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12091 s/.\{148\}/&'"$ac_delim"'/g
12094 s/^[ ]*#[ ]*define[ ][ ]*/ /
12101 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12103 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
12107 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12108 D["\1"]=" \3\\\\\\n"\\/p
12110 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12115 s/.\{148\}/&'"$ac_delim"'/g
12120 s/["\\]/\\&/g; s/^/"/; s/$/"/p
12123 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12125 ' <confdefs.h | sed '
12126 s/'"$ac_delim"'/"\\\
12127 "/g' >>$CONFIG_STATUS || ac_write_fail=1
12129 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12130 for (key in D) D_is_set[key] = 1
12133 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12135 split(line, arg, " ")
12136 if (arg[1] == "#") {
12140 defundef = substr(arg[1], 2)
12143 split(mac1, mac2, "(") #)
12145 prefix = substr(line, 1, index(line, defundef) - 1)
12146 if (D_is_set[macro]) {
12147 # Preserve the white space surrounding the "#".
12148 print prefix "define", macro P[macro] D[macro]
12151 # Replace #undef with comments. This is necessary, for example,
12152 # in the case of _POSIX_SOURCE, which is predefined and required
12153 # on some systems where configure will not decide to define it.
12154 if (defundef == "undef") {
12155 print "/*", prefix defundef, macro, "*/"
12163 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12164 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12165 fi # test -n "$CONFIG_HEADERS"
12168 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
12173 :[FHLC]) ac_mode=$ac_tag; continue;;
12175 case $ac_mode$ac_tag in
12177 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12178 :[FH]-) ac_tag=-:-;;
12179 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12196 -) ac_f="$ac_tmp/stdin";;
12197 *) # Look for the file first in the build tree, then in the source tree
12198 # (if the path is not absolute). The absolute path cannot be DOS-style,
12199 # because $ac_f cannot contain `:'.
12203 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12205 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12207 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12208 as_fn_append ac_file_inputs " '$ac_f'"
12211 # Let's still pretend it is `configure' which instantiates (i.e., don't
12212 # use $as_me), people would be surprised to read:
12213 # /* config.h. Generated by config.status. */
12214 configure_input='Generated from '`
12215 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12217 if test x"$ac_file" != x-; then
12218 configure_input="$ac_file. $configure_input"
12219 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12220 $as_echo "$as_me: creating $ac_file" >&6;}
12222 # Neutralize special characters interpreted by sed in replacement strings.
12223 case $configure_input in #(
12224 *\&* | *\|* | *\\* )
12225 ac_sed_conf_input=`$as_echo "$configure_input" |
12226 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12227 *) ac_sed_conf_input=$configure_input;;
12231 *:-:* | *:-) cat >"$ac_tmp/stdin" \
12232 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12237 ac_dir=`$as_dirname -- "$ac_file" ||
12238 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12239 X"$ac_file" : 'X\(//\)[^/]' \| \
12240 X"$ac_file" : 'X\(//\)$' \| \
12241 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12242 $as_echo X"$ac_file" |
12243 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12247 /^X\(\/\/\)[^/].*/{
12260 as_dir="$ac_dir"; as_fn_mkdir_p
12264 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12266 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12267 # A ".." for each directory in $ac_dir_suffix.
12268 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12269 case $ac_top_builddir_sub in
12270 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12271 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12274 ac_abs_top_builddir=$ac_pwd
12275 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12276 # for backward compatibility:
12277 ac_top_builddir=$ac_top_build_prefix
12280 .) # We are building in place.
12282 ac_top_srcdir=$ac_top_builddir_sub
12283 ac_abs_top_srcdir=$ac_pwd ;;
12284 [\\/]* | ?:[\\/]* ) # Absolute name.
12285 ac_srcdir=$srcdir$ac_dir_suffix;
12286 ac_top_srcdir=$srcdir
12287 ac_abs_top_srcdir=$srcdir ;;
12288 *) # Relative name.
12289 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12290 ac_top_srcdir=$ac_top_build_prefix$srcdir
12291 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12293 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12303 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12304 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12308 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12309 # If the template does not know about datarootdir, expand it.
12310 # FIXME: This hack should be removed a few years after 2.60.
12311 ac_datarootdir_hack=; ac_datarootdir_seen=
12322 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12323 *datarootdir*) ac_datarootdir_seen=yes;;
12324 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12325 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12326 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12328 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12329 ac_datarootdir_hack='
12330 s&@datadir@&$datadir&g
12331 s&@docdir@&$docdir&g
12332 s&@infodir@&$infodir&g
12333 s&@localedir@&$localedir&g
12334 s&@mandir@&$mandir&g
12335 s&\\\${datarootdir}&$datarootdir&g' ;;
12339 # Neutralize VPATH when `$srcdir' = `.'.
12340 # Shell code in configure.ac might set extrasub.
12341 # FIXME: do we really want to maintain this feature?
12342 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12343 ac_sed_extra="$ac_vpsub
12346 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12348 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12349 s|@configure_input@|$ac_sed_conf_input|;t t
12350 s&@top_builddir@&$ac_top_builddir_sub&;t t
12351 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12352 s&@srcdir@&$ac_srcdir&;t t
12353 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12354 s&@top_srcdir@&$ac_top_srcdir&;t t
12355 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12356 s&@builddir@&$ac_builddir&;t t
12357 s&@abs_builddir@&$ac_abs_builddir&;t t
12358 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12359 s&@INSTALL@&$ac_INSTALL&;t t
12360 $ac_datarootdir_hack
12362 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
12363 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12365 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12366 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12367 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
12368 "$ac_tmp/out"`; test -z "$ac_out"; } &&
12369 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12370 which seems to be undefined. Please make sure it is defined" >&5
12371 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12372 which seems to be undefined. Please make sure it is defined" >&2;}
12374 rm -f "$ac_tmp/stdin"
12376 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12377 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12379 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12385 if test x"$ac_file" != x-; then
12387 $as_echo "/* $configure_input */" \
12388 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12389 } >"$ac_tmp/config.h" \
12390 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12391 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12392 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12393 $as_echo "$as_me: $ac_file is unchanged" >&6;}
12396 mv "$ac_tmp/config.h" "$ac_file" \
12397 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12400 $as_echo "/* $configure_input */" \
12401 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12402 || as_fn_error $? "could not create -" "$LINENO" 5
12406 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12407 $as_echo "$as_me: executing $ac_file commands" >&6;}
12412 case $ac_file$ac_mode in
12413 "default-1":C) if test -f .devel; then
12414 echo timestamp > stamp-h
12415 cat $srcdir/Makefile-devel-adds >> Makefile
12425 ac_clean_files=$ac_clean_files_save
12427 test $ac_write_fail = 0 ||
12428 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12431 # configure is writing to config.log, and then calls config.status.
12432 # config.status does its own redirection, appending to config.log.
12433 # Unfortunately, on DOS this fails, as config.log is still kept open
12434 # by configure, so config.status won't be able to write to it; its
12435 # output is simply discarded. So we exec the FD to /dev/null,
12436 # effectively closing config.log, so it can be properly (re)opened and
12437 # appended to by config.status. When coming back to configure, we
12438 # need to make the FD available again.
12439 if test "$no_create" != yes; then
12441 ac_config_status_args=
12442 test "$silent" = yes &&
12443 ac_config_status_args="$ac_config_status_args --quiet"
12445 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12447 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12448 # would make configure fail if this is the last instruction.
12449 $ac_cs_success || as_fn_exit 1
12451 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12452 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12453 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}