2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for pcap 1.9.0-PRE-GIT.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in #(
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 as_echo_n='sh -c $as_echo_n_body as_echo'
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
89 # Find who we are. Look in the path if we contain no directory separator.
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
147 *v*x* | *x*v* ) as_opts=-vx ;;
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 case \`(set -o) 2>/dev/null\` in #(
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1"
200 if (eval "$as_required") 2>/dev/null; then :
205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
210 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213 test -z "$as_dir" && as_dir=.
217 for as_base in sh bash ksh sh5; do
218 # Try only shells that exist, to save several forks.
219 as_shell=$as_dir/$as_base
220 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222 CONFIG_SHELL=$as_shell as_have_required=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
231 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233 CONFIG_SHELL=$SHELL as_have_required=yes
238 if test "x$CONFIG_SHELL" != x; then :
240 # We cannot yet assume a decent shell, so we have to provide a
241 # neutralization value for shells without unset; and this also
242 # works around shells that cannot unset nonexistent variables.
243 # Preserve -v and -x to the replacement shell.
246 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
248 *v*x* | *x*v* ) as_opts=-vx ;;
253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254 # Admittedly, this is quite paranoid, since all the known shells bail
255 # out after a failed `exec'.
256 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
260 if test x$as_have_required = xno; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x${ZSH_VERSION+set} = xset ; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268 $0: including any error possibly output before this
269 $0: message. Then install a modern shell, or manually run
270 $0: the script under such a shell if you do have one."
276 SHELL=${CONFIG_SHELL-/bin/sh}
278 # Unset more variables known to interfere with behavior of common tools.
279 CLICOLOR_FORCE= GREP_OPTIONS=
280 unset CLICOLOR_FORCE GREP_OPTIONS
282 ## --------------------- ##
283 ## M4sh Shell Functions. ##
284 ## --------------------- ##
287 # Portably unset VAR.
290 { eval $1=; unset $1;}
294 # as_fn_set_status STATUS
295 # -----------------------
296 # Set $? to STATUS, without forking.
304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
314 # Create "$as_dir" as a directory, including parents if necessary.
319 -*) as_dir=./$as_dir;;
321 test -d "$as_dir" || eval $as_mkdir_p || {
325 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
328 as_dirs="'$as_qdir' $as_dirs"
329 as_dir=`$as_dirname -- "$as_dir" ||
330 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334 $as_echo X"$as_dir" |
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
352 test -d "$as_dir" && break
354 test -z "$as_dirs" || eval "mkdir $as_dirs"
355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
360 # as_fn_executable_p FILE
361 # -----------------------
362 # Test if FILE is an executable regular file.
363 as_fn_executable_p ()
365 test -f "$1" && test -x "$1"
366 } # as_fn_executable_p
367 # as_fn_append VAR VALUE
368 # ----------------------
369 # Append the text in VALUE to the end of the definition contained in VAR. Take
370 # advantage of any shell optimizations that allow amortized linear growth over
371 # repeated appends, instead of the typical quadratic growth present in naive
373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374 eval 'as_fn_append ()
387 # Perform arithmetic evaluation on the ARGs, and store the result in the
388 # global $as_val. Take advantage of shells that can avoid forks. The arguments
389 # must be portable across $(()) and expr.
390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
398 as_val=`expr "$@" || test $? -eq 1`
403 # as_fn_error STATUS ERROR [LINENO LOG_FD]
404 # ----------------------------------------
405 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407 # script with STATUS, using 1 if that was 0.
410 as_status=$1; test $as_status -eq 0 && as_status=1
412 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
415 $as_echo "$as_me: error: $2" >&2
416 as_fn_exit $as_status
419 if expr a : '\(a\)' >/dev/null 2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001; then
426 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
432 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
438 as_me=`$as_basename -- "$0" ||
439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
443 sed '/^.*\/\([^/][^/]*\)\/*$/{
457 # Avoid depending upon Character Ranges.
458 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461 as_cr_digits='0123456789'
462 as_cr_alnum=$as_cr_Letters$as_cr_digits
465 as_lineno_1=$LINENO as_lineno_1a=$LINENO
466 as_lineno_2=$LINENO as_lineno_2a=$LINENO
467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
485 chmod +x "$as_me.lineno" ||
486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec=no; export _as_can_reexec
492 # Don't try to exec as it changes $[0], causing all sort of problems
493 # (the dirname of $[0] is not the place where we might find the
494 # original and so on. Autoconf is especially sensitive to this).
496 # Exit status is that of the last command.
500 ECHO_C= ECHO_N= ECHO_T=
501 case `echo -n x` in #(((((
503 case `echo 'xy\c'` in
504 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
513 rm -f conf$$ conf$$.exe conf$$.file
514 if test -d conf$$.dir; then
515 rm -f conf$$.dir/conf$$.file
518 mkdir conf$$.dir 2>/dev/null
520 if (echo >conf$$.file) 2>/dev/null; then
521 if ln -s conf$$.file conf$$ 2>/dev/null; then
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526 # In both cases, we have to default to `cp -pR'.
527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
529 elif ln conf$$.file conf$$ 2>/dev/null; then
537 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538 rmdir conf$$.dir 2>/dev/null
540 if mkdir -p . 2>/dev/null; then
541 as_mkdir_p='mkdir -p "$as_dir"'
543 test -d ./-p && rmdir ./-p
548 as_executable_p=as_fn_executable_p
550 # Sed expression to map a string onto a valid CPP name.
551 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
553 # Sed expression to map a string onto a valid variable name.
554 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
557 test -n "$DJDIR" || exec 7<&0 </dev/null
561 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562 # so uname gets run too.
563 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
568 ac_default_prefix=/usr/local
570 ac_config_libobj_dir=.
577 # Identity of this package.
579 PACKAGE_TARNAME='pcap'
580 PACKAGE_VERSION='1.9.0-PRE-GIT'
581 PACKAGE_STRING='pcap 1.9.0-PRE-GIT'
585 ac_unique_file="pcap.c"
586 # Factoring default headers for most tests.
587 ac_includes_default="\
589 #ifdef HAVE_SYS_TYPES_H
590 # include <sys/types.h>
592 #ifdef HAVE_SYS_STAT_H
593 # include <sys/stat.h>
599 # ifdef HAVE_STDLIB_H
604 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
609 #ifdef HAVE_STRINGS_H
610 # include <strings.h>
612 #ifdef HAVE_INTTYPES_H
613 # include <inttypes.h>
622 ac_subst_vars='LTLIBOBJS
627 PCAP_SUPPORT_RDMASNIFF
637 PCAP_SUPPORT_NETFILTER
674 PCAP_SUPPORT_PACKET_RING
727 program_transform_name
740 enable_option_checking
768 ac_precious_vars='build_alias
781 # Initialize some variables set by options.
783 ac_init_version=false
784 ac_unrecognized_opts=
786 # The variables have the same names as the options, with
787 # dashes changed to underlines.
795 program_transform_name=s,x,x,
803 # Installation directory options.
804 # These are left unexpanded so users can "make install exec_prefix=/foo"
805 # and all the variables that are supposed to be based on exec_prefix
806 # by default will actually change.
807 # Use braces instead of parens because sh, perl, etc. also accept them.
808 # (The list follows the same order as the GNU Coding Standards.)
809 bindir='${exec_prefix}/bin'
810 sbindir='${exec_prefix}/sbin'
811 libexecdir='${exec_prefix}/libexec'
812 datarootdir='${prefix}/share'
813 datadir='${datarootdir}'
814 sysconfdir='${prefix}/etc'
815 sharedstatedir='${prefix}/com'
816 localstatedir='${prefix}/var'
817 includedir='${prefix}/include'
818 oldincludedir='/usr/include'
819 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
820 infodir='${datarootdir}/info'
825 libdir='${exec_prefix}/lib'
826 localedir='${datarootdir}/locale'
827 mandir='${datarootdir}/man'
833 # If the previous option needs an argument, assign it.
834 if test -n "$ac_prev"; then
835 eval $ac_prev=\$ac_option
841 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
846 # Accept the important Cygnus configure options, so we can diagnose typos.
848 case $ac_dashdash$ac_option in
852 -bindir | --bindir | --bindi | --bind | --bin | --bi)
854 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
857 -build | --build | --buil | --bui | --bu)
858 ac_prev=build_alias ;;
859 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
860 build_alias=$ac_optarg ;;
862 -cache-file | --cache-file | --cache-fil | --cache-fi \
863 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
864 ac_prev=cache_file ;;
865 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
866 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
867 cache_file=$ac_optarg ;;
870 cache_file=config.cache ;;
872 -datadir | --datadir | --datadi | --datad)
874 -datadir=* | --datadir=* | --datadi=* | --datad=*)
875 datadir=$ac_optarg ;;
877 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
878 | --dataroo | --dataro | --datar)
879 ac_prev=datarootdir ;;
880 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
881 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
882 datarootdir=$ac_optarg ;;
884 -disable-* | --disable-*)
885 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
886 # Reject names that are not valid shell variable names.
887 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
888 as_fn_error $? "invalid feature name: $ac_useropt"
889 ac_useropt_orig=$ac_useropt
890 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
891 case $ac_user_opts in
895 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
896 ac_unrecognized_sep=', ';;
898 eval enable_$ac_useropt=no ;;
900 -docdir | --docdir | --docdi | --doc | --do)
902 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
905 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
907 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
910 -enable-* | --enable-*)
911 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
912 # Reject names that are not valid shell variable names.
913 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
914 as_fn_error $? "invalid feature name: $ac_useropt"
915 ac_useropt_orig=$ac_useropt
916 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
917 case $ac_user_opts in
921 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
922 ac_unrecognized_sep=', ';;
924 eval enable_$ac_useropt=\$ac_optarg ;;
926 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
927 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
928 | --exec | --exe | --ex)
929 ac_prev=exec_prefix ;;
930 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
931 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
932 | --exec=* | --exe=* | --ex=*)
933 exec_prefix=$ac_optarg ;;
935 -gas | --gas | --ga | --g)
936 # Obsolete; use --with-gas.
939 -help | --help | --hel | --he | -h)
941 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
942 ac_init_help=recursive ;;
943 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
944 ac_init_help=short ;;
946 -host | --host | --hos | --ho)
947 ac_prev=host_alias ;;
948 -host=* | --host=* | --hos=* | --ho=*)
949 host_alias=$ac_optarg ;;
951 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
953 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
955 htmldir=$ac_optarg ;;
957 -includedir | --includedir | --includedi | --included | --include \
958 | --includ | --inclu | --incl | --inc)
959 ac_prev=includedir ;;
960 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
961 | --includ=* | --inclu=* | --incl=* | --inc=*)
962 includedir=$ac_optarg ;;
964 -infodir | --infodir | --infodi | --infod | --info | --inf)
966 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
967 infodir=$ac_optarg ;;
969 -libdir | --libdir | --libdi | --libd)
971 -libdir=* | --libdir=* | --libdi=* | --libd=*)
974 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
975 | --libexe | --libex | --libe)
976 ac_prev=libexecdir ;;
977 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
978 | --libexe=* | --libex=* | --libe=*)
979 libexecdir=$ac_optarg ;;
981 -localedir | --localedir | --localedi | --localed | --locale)
983 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
984 localedir=$ac_optarg ;;
986 -localstatedir | --localstatedir | --localstatedi | --localstated \
987 | --localstate | --localstat | --localsta | --localst | --locals)
988 ac_prev=localstatedir ;;
989 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
990 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
991 localstatedir=$ac_optarg ;;
993 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
995 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
999 # Obsolete; use --without-fp.
1002 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1003 | --no-cr | --no-c | -n)
1006 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1007 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1010 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1011 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1012 | --oldin | --oldi | --old | --ol | --o)
1013 ac_prev=oldincludedir ;;
1014 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1015 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1016 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1017 oldincludedir=$ac_optarg ;;
1019 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1021 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1022 prefix=$ac_optarg ;;
1024 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1025 | --program-pre | --program-pr | --program-p)
1026 ac_prev=program_prefix ;;
1027 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1028 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1029 program_prefix=$ac_optarg ;;
1031 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1032 | --program-suf | --program-su | --program-s)
1033 ac_prev=program_suffix ;;
1034 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1035 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1036 program_suffix=$ac_optarg ;;
1038 -program-transform-name | --program-transform-name \
1039 | --program-transform-nam | --program-transform-na \
1040 | --program-transform-n | --program-transform- \
1041 | --program-transform | --program-transfor \
1042 | --program-transfo | --program-transf \
1043 | --program-trans | --program-tran \
1044 | --progr-tra | --program-tr | --program-t)
1045 ac_prev=program_transform_name ;;
1046 -program-transform-name=* | --program-transform-name=* \
1047 | --program-transform-nam=* | --program-transform-na=* \
1048 | --program-transform-n=* | --program-transform-=* \
1049 | --program-transform=* | --program-transfor=* \
1050 | --program-transfo=* | --program-transf=* \
1051 | --program-trans=* | --program-tran=* \
1052 | --progr-tra=* | --program-tr=* | --program-t=*)
1053 program_transform_name=$ac_optarg ;;
1055 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1057 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1058 pdfdir=$ac_optarg ;;
1060 -psdir | --psdir | --psdi | --psd | --ps)
1062 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1065 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1066 | -silent | --silent | --silen | --sile | --sil)
1069 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1071 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1073 sbindir=$ac_optarg ;;
1075 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1076 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1077 | --sharedst | --shareds | --shared | --share | --shar \
1079 ac_prev=sharedstatedir ;;
1080 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1081 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1082 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1084 sharedstatedir=$ac_optarg ;;
1086 -site | --site | --sit)
1088 -site=* | --site=* | --sit=*)
1091 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1093 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1094 srcdir=$ac_optarg ;;
1096 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1097 | --syscon | --sysco | --sysc | --sys | --sy)
1098 ac_prev=sysconfdir ;;
1099 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1100 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1101 sysconfdir=$ac_optarg ;;
1103 -target | --target | --targe | --targ | --tar | --ta | --t)
1104 ac_prev=target_alias ;;
1105 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1106 target_alias=$ac_optarg ;;
1108 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1111 -version | --version | --versio | --versi | --vers | -V)
1112 ac_init_version=: ;;
1115 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1116 # Reject names that are not valid shell variable names.
1117 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1118 as_fn_error $? "invalid package name: $ac_useropt"
1119 ac_useropt_orig=$ac_useropt
1120 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1121 case $ac_user_opts in
1125 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1126 ac_unrecognized_sep=', ';;
1128 eval with_$ac_useropt=\$ac_optarg ;;
1130 -without-* | --without-*)
1131 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1132 # Reject names that are not valid shell variable names.
1133 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1134 as_fn_error $? "invalid package name: $ac_useropt"
1135 ac_useropt_orig=$ac_useropt
1136 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1137 case $ac_user_opts in
1141 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1142 ac_unrecognized_sep=', ';;
1144 eval with_$ac_useropt=no ;;
1147 # Obsolete; use --with-x.
1150 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1151 | --x-incl | --x-inc | --x-in | --x-i)
1152 ac_prev=x_includes ;;
1153 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1154 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1155 x_includes=$ac_optarg ;;
1157 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1158 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1159 ac_prev=x_libraries ;;
1160 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1161 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1162 x_libraries=$ac_optarg ;;
1164 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1165 Try \`$0 --help' for more information"
1169 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1170 # Reject names that are not valid shell variable names.
1171 case $ac_envvar in #(
1172 '' | [0-9]* | *[!_$as_cr_alnum]* )
1173 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1175 eval $ac_envvar=\$ac_optarg
1176 export $ac_envvar ;;
1179 # FIXME: should be removed in autoconf 3.0.
1180 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1181 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1182 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1183 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1189 if test -n "$ac_prev"; then
1190 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1191 as_fn_error $? "missing argument to $ac_option"
1194 if test -n "$ac_unrecognized_opts"; then
1195 case $enable_option_checking in
1197 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1198 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1202 # Check all directory arguments for consistency.
1203 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1204 datadir sysconfdir sharedstatedir localstatedir includedir \
1205 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1206 libdir localedir mandir
1208 eval ac_val=\$$ac_var
1209 # Remove trailing slashes.
1212 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1213 eval $ac_var=\$ac_val;;
1215 # Be sure to have absolute directory names.
1217 [\\/$]* | ?:[\\/]* ) continue;;
1218 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1220 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1223 # There might be people who depend on the old broken behavior: `$host'
1224 # used to hold the argument of --host etc.
1225 # FIXME: To remove some day.
1228 target=$target_alias
1230 # FIXME: To remove some day.
1231 if test "x$host_alias" != x; then
1232 if test "x$build_alias" = x; then
1233 cross_compiling=maybe
1234 elif test "x$build_alias" != "x$host_alias"; then
1240 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1242 test "$silent" = yes && exec 6>/dev/null
1245 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1246 ac_ls_di=`ls -di .` &&
1247 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1248 as_fn_error $? "working directory cannot be determined"
1249 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1250 as_fn_error $? "pwd does not report name of working directory"
1253 # Find the source files, if location was not specified.
1254 if test -z "$srcdir"; then
1255 ac_srcdir_defaulted=yes
1256 # Try the directory containing this script, then the parent directory.
1257 ac_confdir=`$as_dirname -- "$as_myself" ||
1258 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1259 X"$as_myself" : 'X\(//\)[^/]' \| \
1260 X"$as_myself" : 'X\(//\)$' \| \
1261 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1262 $as_echo X"$as_myself" |
1263 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1281 if test ! -r "$srcdir/$ac_unique_file"; then
1285 ac_srcdir_defaulted=no
1287 if test ! -r "$srcdir/$ac_unique_file"; then
1288 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1289 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1291 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1293 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1295 # When building in place, set srcdir=.
1296 if test "$ac_abs_confdir" = "$ac_pwd"; then
1299 # Remove unnecessary trailing slashes from srcdir.
1300 # Double slashes in file names in object file debugging info
1301 # mess up M-x gdb in Emacs.
1303 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1305 for ac_var in $ac_precious_vars; do
1306 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1307 eval ac_env_${ac_var}_value=\$${ac_var}
1308 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1309 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1313 # Report the --help message.
1315 if test "$ac_init_help" = "long"; then
1316 # Omit some internal or obsolete options to make the list less imposing.
1317 # This message is too long to be a string in the A/UX 3.1 sh.
1319 \`configure' configures pcap 1.9.0-PRE-GIT to adapt to many kinds of systems.
1321 Usage: $0 [OPTION]... [VAR=VALUE]...
1323 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1324 VAR=VALUE. See below for descriptions of some of the useful variables.
1326 Defaults for the options are specified in brackets.
1329 -h, --help display this help and exit
1330 --help=short display options specific to this package
1331 --help=recursive display the short help of all the included packages
1332 -V, --version display version information and exit
1333 -q, --quiet, --silent do not print \`checking ...' messages
1334 --cache-file=FILE cache test results in FILE [disabled]
1335 -C, --config-cache alias for \`--cache-file=config.cache'
1336 -n, --no-create do not create output files
1337 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1339 Installation directories:
1340 --prefix=PREFIX install architecture-independent files in PREFIX
1341 [$ac_default_prefix]
1342 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1345 By default, \`make install' will install all the files in
1346 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1347 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1348 for instance \`--prefix=\$HOME'.
1350 For better control, use the options below.
1352 Fine tuning of the installation directories:
1353 --bindir=DIR user executables [EPREFIX/bin]
1354 --sbindir=DIR system admin executables [EPREFIX/sbin]
1355 --libexecdir=DIR program executables [EPREFIX/libexec]
1356 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1357 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1358 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1359 --libdir=DIR object code libraries [EPREFIX/lib]
1360 --includedir=DIR C header files [PREFIX/include]
1361 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1362 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1363 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1364 --infodir=DIR info documentation [DATAROOTDIR/info]
1365 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1366 --mandir=DIR man documentation [DATAROOTDIR/man]
1367 --docdir=DIR documentation root [DATAROOTDIR/doc/pcap]
1368 --htmldir=DIR html documentation [DOCDIR]
1369 --dvidir=DIR dvi documentation [DOCDIR]
1370 --pdfdir=DIR pdf documentation [DOCDIR]
1371 --psdir=DIR ps documentation [DOCDIR]
1377 --build=BUILD configure for building on BUILD [guessed]
1378 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1379 --target=TARGET configure for building compilers for TARGET [HOST]
1383 if test -n "$ac_init_help"; then
1384 case $ac_init_help in
1385 short | recursive ) echo "Configuration of pcap 1.9.0-PRE-GIT:";;
1390 --disable-option-checking ignore unrecognized --enable/--with options
1391 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1392 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1393 --disable-largefile omit support for large files
1394 --disable-protochain disable \"protochain\" insn
1395 --enable-packet-ring enable packet ring support on Linux [default=yes]
1396 --enable-ipv6 build IPv6-capable version [default=yes]
1397 --enable-remote enable remote packet capture [default=no]
1398 --disable-remote disable remote packet capture
1399 --enable-optimizer-dbg build optimizer debugging code
1400 --enable-yydebug build parser debugging code
1401 --disable-universal don't build universal on macOS
1402 --enable-shared build shared libraries [default=yes, if support
1404 --enable-usb enable USB capture support [default=yes, if support
1406 --enable-netmap enable netmap support [default=yes, if support
1408 --enable-bluetooth enable Bluetooth support [default=yes, if support
1410 --enable-dbus enable D-Bus capture support [default=yes, if
1412 --enable-rdma enable RDMA capture support [default=yes, if support
1416 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1417 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1418 --without-gcc don't use gcc
1419 --with-sita include SITA support
1420 --with-pcap=TYPE use packet capture TYPE
1421 --without-libnl disable libnl support [default=yes, on Linux, if
1423 --with-dag[=DIR] include Endace DAG support (located in directory
1424 DIR, if supplied). [default=yes, if present]
1425 --with-dag-includes=IDIR
1426 Endace DAG include directory, if not DIR/include
1427 --with-dag-libraries=LDIR
1428 Endace DAG library directory, if not DIR/lib
1429 --with-septel[=DIR] include Septel support (located in directory DIR, if
1430 supplied). [default=yes, if present]
1431 --with-snf[=DIR] include Myricom SNF support (located in directory
1432 DIR, if supplied). [default=yes, if present]
1433 --with-snf-includes=IDIR
1434 Myricom SNF include directory, if not DIR/include
1435 --with-snf-libraries=LDIR
1436 Myricom SNF library directory, if not DIR/lib
1437 --with-turbocap[=DIR] include Riverbed TurboCap support (located in
1438 directory DIR, if supplied). [default=yes, if
1441 Some influential environment variables:
1442 CC C compiler command
1443 CFLAGS C compiler flags
1444 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1445 nonstandard directory <lib dir>
1446 LIBS libraries to pass to the linker, e.g. -l<library>
1447 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1448 you have headers in a nonstandard directory <include dir>
1450 YACC The `Yet Another Compiler Compiler' implementation to use.
1451 Defaults to the first program found out of: `bison -y', `byacc',
1453 YFLAGS The list of arguments that will be passed by default to $YACC.
1454 This script will default YFLAGS to the empty string to avoid a
1455 default value of `-d' given by some make applications.
1457 Use these variables to override the choices made by `configure' or to help
1458 it to find libraries and programs with nonstandard names/locations.
1460 Report bugs to the package provider.
1465 if test "$ac_init_help" = "recursive"; then
1466 # If there are subdirs, report their specific --help.
1467 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1468 test -d "$ac_dir" ||
1469 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1474 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1476 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1477 # A ".." for each directory in $ac_dir_suffix.
1478 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1479 case $ac_top_builddir_sub in
1480 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1481 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1484 ac_abs_top_builddir=$ac_pwd
1485 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1486 # for backward compatibility:
1487 ac_top_builddir=$ac_top_build_prefix
1490 .) # We are building in place.
1492 ac_top_srcdir=$ac_top_builddir_sub
1493 ac_abs_top_srcdir=$ac_pwd ;;
1494 [\\/]* | ?:[\\/]* ) # Absolute name.
1495 ac_srcdir=$srcdir$ac_dir_suffix;
1496 ac_top_srcdir=$srcdir
1497 ac_abs_top_srcdir=$srcdir ;;
1499 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1500 ac_top_srcdir=$ac_top_build_prefix$srcdir
1501 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1503 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1505 cd "$ac_dir" || { ac_status=$?; continue; }
1506 # Check for guested configure.
1507 if test -f "$ac_srcdir/configure.gnu"; then
1509 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1510 elif test -f "$ac_srcdir/configure"; then
1512 $SHELL "$ac_srcdir/configure" --help=recursive
1514 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1516 cd "$ac_pwd" || { ac_status=$?; break; }
1520 test -n "$ac_init_help" && exit $ac_status
1521 if $ac_init_version; then
1523 pcap configure 1.9.0-PRE-GIT
1524 generated by GNU Autoconf 2.69
1526 Copyright (C) 2012 Free Software Foundation, Inc.
1527 This configure script is free software; the Free Software Foundation
1528 gives unlimited permission to copy, distribute and modify it.
1533 ## ------------------------ ##
1534 ## Autoconf initialization. ##
1535 ## ------------------------ ##
1537 # ac_fn_c_try_compile LINENO
1538 # --------------------------
1539 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1540 ac_fn_c_try_compile ()
1542 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1543 rm -f conftest.$ac_objext
1544 if { { ac_try="$ac_compile"
1546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1547 *) ac_try_echo=$ac_try;;
1549 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1550 $as_echo "$ac_try_echo"; } >&5
1551 (eval "$ac_compile") 2>conftest.err
1553 if test -s conftest.err; then
1554 grep -v '^ *+' conftest.err >conftest.er1
1555 cat conftest.er1 >&5
1556 mv -f conftest.er1 conftest.err
1558 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1559 test $ac_status = 0; } && {
1560 test -z "$ac_c_werror_flag" ||
1561 test ! -s conftest.err
1562 } && test -s conftest.$ac_objext; then :
1565 $as_echo "$as_me: failed program was:" >&5
1566 sed 's/^/| /' conftest.$ac_ext >&5
1570 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1571 as_fn_set_status $ac_retval
1573 } # ac_fn_c_try_compile
1575 # ac_fn_c_try_link LINENO
1576 # -----------------------
1577 # Try to link conftest.$ac_ext, and return whether this succeeded.
1580 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1581 rm -f conftest.$ac_objext conftest$ac_exeext
1582 if { { ac_try="$ac_link"
1584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1585 *) ac_try_echo=$ac_try;;
1587 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1588 $as_echo "$ac_try_echo"; } >&5
1589 (eval "$ac_link") 2>conftest.err
1591 if test -s conftest.err; then
1592 grep -v '^ *+' conftest.err >conftest.er1
1593 cat conftest.er1 >&5
1594 mv -f conftest.er1 conftest.err
1596 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1597 test $ac_status = 0; } && {
1598 test -z "$ac_c_werror_flag" ||
1599 test ! -s conftest.err
1600 } && test -s conftest$ac_exeext && {
1601 test "$cross_compiling" = yes ||
1602 test -x conftest$ac_exeext
1606 $as_echo "$as_me: failed program was:" >&5
1607 sed 's/^/| /' conftest.$ac_ext >&5
1611 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1612 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1613 # interfere with the next link command; also delete a directory that is
1614 # left behind by Apple's compiler. We do this before executing the actions.
1615 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1616 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1617 as_fn_set_status $ac_retval
1619 } # ac_fn_c_try_link
1621 # ac_fn_c_try_cpp LINENO
1622 # ----------------------
1623 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1626 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1627 if { { ac_try="$ac_cpp conftest.$ac_ext"
1629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1630 *) ac_try_echo=$ac_try;;
1632 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1633 $as_echo "$ac_try_echo"; } >&5
1634 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1636 if test -s conftest.err; then
1637 grep -v '^ *+' conftest.err >conftest.er1
1638 cat conftest.er1 >&5
1639 mv -f conftest.er1 conftest.err
1641 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1642 test $ac_status = 0; } > conftest.i && {
1643 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1644 test ! -s conftest.err
1648 $as_echo "$as_me: failed program was:" >&5
1649 sed 's/^/| /' conftest.$ac_ext >&5
1653 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1654 as_fn_set_status $ac_retval
1658 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1659 # -------------------------------------------------------
1660 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1661 # the include files in INCLUDES and setting the cache variable VAR
1663 ac_fn_c_check_header_mongrel ()
1665 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1666 if eval \${$3+:} false; then :
1667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1668 $as_echo_n "checking for $2... " >&6; }
1669 if eval \${$3+:} false; then :
1670 $as_echo_n "(cached) " >&6
1673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1674 $as_echo "$ac_res" >&6; }
1676 # Is the header compilable?
1677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1678 $as_echo_n "checking $2 usability... " >&6; }
1679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1680 /* end confdefs.h. */
1684 if ac_fn_c_try_compile "$LINENO"; then :
1685 ac_header_compiler=yes
1687 ac_header_compiler=no
1689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1691 $as_echo "$ac_header_compiler" >&6; }
1693 # Is the header present?
1694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1695 $as_echo_n "checking $2 presence... " >&6; }
1696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1697 /* end confdefs.h. */
1700 if ac_fn_c_try_cpp "$LINENO"; then :
1701 ac_header_preproc=yes
1703 ac_header_preproc=no
1705 rm -f conftest.err conftest.i conftest.$ac_ext
1706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1707 $as_echo "$ac_header_preproc" >&6; }
1709 # So? What about this header?
1710 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1712 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1713 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1714 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1715 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1718 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1719 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1720 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1721 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1722 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1723 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1724 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1725 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1726 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1727 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1731 $as_echo_n "checking for $2... " >&6; }
1732 if eval \${$3+:} false; then :
1733 $as_echo_n "(cached) " >&6
1735 eval "$3=\$ac_header_compiler"
1738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1739 $as_echo "$ac_res" >&6; }
1741 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1743 } # ac_fn_c_check_header_mongrel
1745 # ac_fn_c_try_run LINENO
1746 # ----------------------
1747 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1748 # that executables *can* be run.
1751 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1752 if { { ac_try="$ac_link"
1754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1755 *) ac_try_echo=$ac_try;;
1757 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1758 $as_echo "$ac_try_echo"; } >&5
1759 (eval "$ac_link") 2>&5
1761 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1762 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1763 { { case "(($ac_try" in
1764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1765 *) ac_try_echo=$ac_try;;
1767 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1768 $as_echo "$ac_try_echo"; } >&5
1769 (eval "$ac_try") 2>&5
1771 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1772 test $ac_status = 0; }; }; then :
1775 $as_echo "$as_me: program exited with status $ac_status" >&5
1776 $as_echo "$as_me: failed program was:" >&5
1777 sed 's/^/| /' conftest.$ac_ext >&5
1779 ac_retval=$ac_status
1781 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1782 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1783 as_fn_set_status $ac_retval
1787 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1788 # -------------------------------------------------------
1789 # Tests whether HEADER exists and can be compiled using the include files in
1790 # INCLUDES, setting the cache variable VAR accordingly.
1791 ac_fn_c_check_header_compile ()
1793 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1795 $as_echo_n "checking for $2... " >&6; }
1796 if eval \${$3+:} false; then :
1797 $as_echo_n "(cached) " >&6
1799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1800 /* end confdefs.h. */
1804 if ac_fn_c_try_compile "$LINENO"; then :
1809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1813 $as_echo "$ac_res" >&6; }
1814 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1816 } # ac_fn_c_check_header_compile
1818 # ac_fn_c_check_func LINENO FUNC VAR
1819 # ----------------------------------
1820 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1821 ac_fn_c_check_func ()
1823 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1825 $as_echo_n "checking for $2... " >&6; }
1826 if eval \${$3+:} false; then :
1827 $as_echo_n "(cached) " >&6
1829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1830 /* end confdefs.h. */
1831 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1832 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1833 #define $2 innocuous_$2
1835 /* System header to define __stub macros and hopefully few prototypes,
1836 which can conflict with char $2 (); below.
1837 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1838 <limits.h> exists even on freestanding compilers. */
1841 # include <limits.h>
1843 # include <assert.h>
1848 /* Override any GCC internal prototype to avoid an error.
1849 Use char because int might match the return type of a GCC
1850 builtin and then its argument prototype would still apply. */
1855 /* The GNU C library defines this for functions which it implements
1856 to always fail with ENOSYS. Some functions are actually named
1857 something starting with __ and the normal name is an alias. */
1858 #if defined __stub_$2 || defined __stub___$2
1870 if ac_fn_c_try_link "$LINENO"; then :
1875 rm -f core conftest.err conftest.$ac_objext \
1876 conftest$ac_exeext conftest.$ac_ext
1879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1880 $as_echo "$ac_res" >&6; }
1881 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1883 } # ac_fn_c_check_func
1885 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1886 # ---------------------------------------------
1887 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1889 ac_fn_c_check_decl ()
1891 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1892 as_decl_name=`echo $2|sed 's/ *(.*//'`
1893 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1895 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1896 if eval \${$3+:} false; then :
1897 $as_echo_n "(cached) " >&6
1899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1900 /* end confdefs.h. */
1905 #ifndef $as_decl_name
1907 (void) $as_decl_use;
1909 (void) $as_decl_name;
1917 if ac_fn_c_try_compile "$LINENO"; then :
1922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1926 $as_echo "$ac_res" >&6; }
1927 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1929 } # ac_fn_c_check_decl
1931 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1932 # -------------------------------------------
1933 # Tests whether TYPE exists after having included INCLUDES, setting cache
1934 # variable VAR accordingly.
1935 ac_fn_c_check_type ()
1937 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1939 $as_echo_n "checking for $2... " >&6; }
1940 if eval \${$3+:} false; then :
1941 $as_echo_n "(cached) " >&6
1944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1945 /* end confdefs.h. */
1956 if ac_fn_c_try_compile "$LINENO"; then :
1957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1958 /* end confdefs.h. */
1969 if ac_fn_c_try_compile "$LINENO"; then :
1974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1980 $as_echo "$ac_res" >&6; }
1981 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1983 } # ac_fn_c_check_type
1985 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1986 # ----------------------------------------------------
1987 # Tries to find if the field MEMBER exists in type AGGR, after including
1988 # INCLUDES, setting cache variable VAR accordingly.
1989 ac_fn_c_check_member ()
1991 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1993 $as_echo_n "checking for $2.$3... " >&6; }
1994 if eval \${$4+:} false; then :
1995 $as_echo_n "(cached) " >&6
1997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1998 /* end confdefs.h. */
2010 if ac_fn_c_try_compile "$LINENO"; then :
2013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2014 /* end confdefs.h. */
2020 if (sizeof ac_aggr.$3)
2026 if ac_fn_c_try_compile "$LINENO"; then :
2031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2037 $as_echo "$ac_res" >&6; }
2038 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2040 } # ac_fn_c_check_member
2041 cat >config.log <<_ACEOF
2042 This file contains any messages produced by compilers while
2043 running configure, to aid debugging if configure makes a mistake.
2045 It was created by pcap $as_me 1.9.0-PRE-GIT, which was
2046 generated by GNU Autoconf 2.69. Invocation command line was
2058 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2059 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2060 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2061 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2062 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2064 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2065 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2067 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2068 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2069 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2070 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2071 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2072 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2073 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2081 test -z "$as_dir" && as_dir=.
2082 $as_echo "PATH: $as_dir"
2098 # Keep a trace of the command line.
2099 # Strip out --no-create and --no-recursion so they do not pile up.
2100 # Strip out --silent because we don't want to record it for future runs.
2101 # Also quote any args containing shell meta-characters.
2102 # Make two passes to allow for proper duplicate-argument suppression.
2106 ac_must_keep_next=false
2112 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2113 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2114 | -silent | --silent | --silen | --sile | --sil)
2117 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2120 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2122 as_fn_append ac_configure_args1 " '$ac_arg'"
2123 if test $ac_must_keep_next = true; then
2124 ac_must_keep_next=false # Got value, back to normal.
2127 *=* | --config-cache | -C | -disable-* | --disable-* \
2128 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2129 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2130 | -with-* | --with-* | -without-* | --without-* | --x)
2131 case "$ac_configure_args0 " in
2132 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2135 -* ) ac_must_keep_next=true ;;
2138 as_fn_append ac_configure_args " '$ac_arg'"
2143 { ac_configure_args0=; unset ac_configure_args0;}
2144 { ac_configure_args1=; unset ac_configure_args1;}
2146 # When interrupted or exit'd, cleanup temporary files, and complete
2147 # config.log. We remove comments because anyway the quotes in there
2148 # would cause problems or look ugly.
2149 # WARNING: Use '\'' to represent an apostrophe within the trap.
2150 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2151 trap 'exit_status=$?
2152 # Save into config.log some information that might help in debugging.
2156 $as_echo "## ---------------- ##
2157 ## Cache variables. ##
2158 ## ---------------- ##"
2160 # The following way of writing the cache mishandles newlines in values,
2162 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2163 eval ac_val=\$$ac_var
2167 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2168 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2171 _ | IFS | as_nl) ;; #(
2172 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2173 *) { eval $ac_var=; unset $ac_var;} ;;
2178 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2179 *${as_nl}ac_space=\ *)
2181 "s/'\''/'\''\\\\'\'''\''/g;
2182 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2185 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2192 $as_echo "## ----------------- ##
2193 ## Output variables. ##
2194 ## ----------------- ##"
2196 for ac_var in $ac_subst_vars
2198 eval ac_val=\$$ac_var
2200 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2202 $as_echo "$ac_var='\''$ac_val'\''"
2206 if test -n "$ac_subst_files"; then
2207 $as_echo "## ------------------- ##
2208 ## File substitutions. ##
2209 ## ------------------- ##"
2211 for ac_var in $ac_subst_files
2213 eval ac_val=\$$ac_var
2215 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2217 $as_echo "$ac_var='\''$ac_val'\''"
2222 if test -s confdefs.h; then
2223 $as_echo "## ----------- ##
2230 test "$ac_signal" != 0 &&
2231 $as_echo "$as_me: caught signal $ac_signal"
2232 $as_echo "$as_me: exit $exit_status"
2234 rm -f core *.core core.conftest.* &&
2235 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2238 for ac_signal in 1 2 13 15; do
2239 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2243 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2244 rm -f -r conftest* confdefs.h
2246 $as_echo "/* confdefs.h */" > confdefs.h
2248 # Predefined preprocessor variables.
2250 cat >>confdefs.h <<_ACEOF
2251 #define PACKAGE_NAME "$PACKAGE_NAME"
2254 cat >>confdefs.h <<_ACEOF
2255 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2258 cat >>confdefs.h <<_ACEOF
2259 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2262 cat >>confdefs.h <<_ACEOF
2263 #define PACKAGE_STRING "$PACKAGE_STRING"
2266 cat >>confdefs.h <<_ACEOF
2267 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2270 cat >>confdefs.h <<_ACEOF
2271 #define PACKAGE_URL "$PACKAGE_URL"
2275 # Let the site file select an alternate cache file if it wants to.
2276 # Prefer an explicitly selected file to automatically selected ones.
2279 if test -n "$CONFIG_SITE"; then
2280 # We do not want a PATH search for config.site.
2281 case $CONFIG_SITE in #((
2282 -*) ac_site_file1=./$CONFIG_SITE;;
2283 */*) ac_site_file1=$CONFIG_SITE;;
2284 *) ac_site_file1=./$CONFIG_SITE;;
2286 elif test "x$prefix" != xNONE; then
2287 ac_site_file1=$prefix/share/config.site
2288 ac_site_file2=$prefix/etc/config.site
2290 ac_site_file1=$ac_default_prefix/share/config.site
2291 ac_site_file2=$ac_default_prefix/etc/config.site
2293 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2295 test "x$ac_site_file" = xNONE && continue
2296 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2297 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2298 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2299 sed 's/^/| /' "$ac_site_file" >&5
2301 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2302 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2303 as_fn_error $? "failed to load site script $ac_site_file
2304 See \`config.log' for more details" "$LINENO" 5; }
2308 if test -r "$cache_file"; then
2309 # Some versions of bash will fail to source /dev/null (special files
2310 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2311 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2312 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2313 $as_echo "$as_me: loading cache $cache_file" >&6;}
2315 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2316 *) . "./$cache_file";;
2320 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2321 $as_echo "$as_me: creating cache $cache_file" >&6;}
2325 # Check that the precious variables saved in the cache have kept the same
2327 ac_cache_corrupted=false
2328 for ac_var in $ac_precious_vars; do
2329 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2330 eval ac_new_set=\$ac_env_${ac_var}_set
2331 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2332 eval ac_new_val=\$ac_env_${ac_var}_value
2333 case $ac_old_set,$ac_new_set in
2335 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2336 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2337 ac_cache_corrupted=: ;;
2339 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2340 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2341 ac_cache_corrupted=: ;;
2344 if test "x$ac_old_val" != "x$ac_new_val"; then
2345 # differences in whitespace do not lead to failure.
2346 ac_old_val_w=`echo x $ac_old_val`
2347 ac_new_val_w=`echo x $ac_new_val`
2348 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2349 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2350 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2351 ac_cache_corrupted=:
2353 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2354 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2355 eval $ac_var=\$ac_old_val
2357 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2358 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2359 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2360 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2363 # Pass precious variables to config.status.
2364 if test "$ac_new_set" = set; then
2366 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2367 *) ac_arg=$ac_var=$ac_new_val ;;
2369 case " $ac_configure_args " in
2370 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2371 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2375 if $ac_cache_corrupted; then
2376 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2377 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2378 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2379 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2380 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2382 ## -------------------- ##
2383 ## Main body of script. ##
2384 ## -------------------- ##
2387 ac_cpp='$CPP $CPPFLAGS'
2388 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2389 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2390 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2397 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2398 if test -f "$ac_dir/install-sh"; then
2400 ac_install_sh="$ac_aux_dir/install-sh -c"
2402 elif test -f "$ac_dir/install.sh"; then
2404 ac_install_sh="$ac_aux_dir/install.sh -c"
2406 elif test -f "$ac_dir/shtool"; then
2408 ac_install_sh="$ac_aux_dir/shtool install -c"
2412 if test -z "$ac_aux_dir"; then
2413 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2416 # These three variables are undocumented and unsupported,
2417 # and are intended to be withdrawn in a future Autoconf release.
2418 # They can cause serious problems if a builder's source tree is in a directory
2419 # whose full name contains unusual characters.
2420 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2421 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2422 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2425 # Make sure we can run config.sub.
2426 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2427 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2430 $as_echo_n "checking build system type... " >&6; }
2431 if ${ac_cv_build+:} false; then :
2432 $as_echo_n "(cached) " >&6
2434 ac_build_alias=$build_alias
2435 test "x$ac_build_alias" = x &&
2436 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2437 test "x$ac_build_alias" = x &&
2438 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2439 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2440 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2444 $as_echo "$ac_cv_build" >&6; }
2445 case $ac_cv_build in
2447 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2450 ac_save_IFS=$IFS; IFS='-'
2456 # Remember, the first character of IFS is used to create $*,
2457 # except with old shells:
2460 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2464 $as_echo_n "checking host system type... " >&6; }
2465 if ${ac_cv_host+:} false; then :
2466 $as_echo_n "(cached) " >&6
2468 if test "x$host_alias" = x; then
2469 ac_cv_host=$ac_cv_build
2471 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2472 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2477 $as_echo "$ac_cv_host" >&6; }
2480 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2483 ac_save_IFS=$IFS; IFS='-'
2489 # Remember, the first character of IFS is used to create $*,
2490 # except with old shells:
2493 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2497 $as_echo_n "checking target system type... " >&6; }
2498 if ${ac_cv_target+:} false; then :
2499 $as_echo_n "(cached) " >&6
2501 if test "x$target_alias" = x; then
2502 ac_cv_target=$ac_cv_host
2504 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2505 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2510 $as_echo "$ac_cv_target" >&6; }
2511 case $ac_cv_target in
2513 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2515 target=$ac_cv_target
2516 ac_save_IFS=$IFS; IFS='-'
2522 # Remember, the first character of IFS is used to create $*,
2523 # except with old shells:
2526 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2529 # The aliases save the names the user supplied, while $host etc.
2530 # will get canonicalized.
2531 test -n "$target_alias" &&
2532 test "$program_prefix$program_suffix$program_transform_name" = \
2534 program_prefix=${target_alias}-
2543 # Check whether --with-gcc was given.
2544 if test "${with_gcc+set}" = set; then :
2549 if test "${srcdir}" != "." ; then
2550 V_CCOPT="-I\$(srcdir)"
2552 if test "${CFLAGS+set}" = set; then
2553 LBL_CFLAGS="$CFLAGS"
2555 if test -z "$CC" ; then
2559 # Extract the first word of "shlicc2", so it can be a program name with args.
2560 set dummy shlicc2; ac_word=$2
2561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2562 $as_echo_n "checking for $ac_word... " >&6; }
2563 if ${ac_cv_prog_SHLICC2+:} false; then :
2564 $as_echo_n "(cached) " >&6
2566 if test -n "$SHLICC2"; then
2567 ac_cv_prog_SHLICC2="$SHLICC2" # Let the user override the test.
2569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2573 test -z "$as_dir" && as_dir=.
2574 for ac_exec_ext in '' $ac_executable_extensions; do
2575 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2576 ac_cv_prog_SHLICC2="yes"
2577 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2584 test -z "$ac_cv_prog_SHLICC2" && ac_cv_prog_SHLICC2="no"
2587 SHLICC2=$ac_cv_prog_SHLICC2
2588 if test -n "$SHLICC2"; then
2589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHLICC2" >&5
2590 $as_echo "$SHLICC2" >&6; }
2592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2593 $as_echo "no" >&6; }
2597 if test $SHLICC2 = yes ; then
2604 if test -z "$CC" -a "$with_gcc" = no ; then
2610 # Try to enable as many C99 features as we can.
2611 # At minimum, we want C++/C99-style // comments.
2614 ac_cpp='$CPP $CPPFLAGS'
2615 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2616 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2617 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2618 if test -n "$ac_tool_prefix"; then
2619 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2620 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2622 $as_echo_n "checking for $ac_word... " >&6; }
2623 if ${ac_cv_prog_CC+:} false; then :
2624 $as_echo_n "(cached) " >&6
2626 if test -n "$CC"; then
2627 ac_cv_prog_CC="$CC" # Let the user override the test.
2629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2633 test -z "$as_dir" && as_dir=.
2634 for ac_exec_ext in '' $ac_executable_extensions; do
2635 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2636 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2637 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2647 if test -n "$CC"; then
2648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2649 $as_echo "$CC" >&6; }
2651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2652 $as_echo "no" >&6; }
2657 if test -z "$ac_cv_prog_CC"; then
2659 # Extract the first word of "gcc", so it can be a program name with args.
2660 set dummy gcc; ac_word=$2
2661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2662 $as_echo_n "checking for $ac_word... " >&6; }
2663 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2664 $as_echo_n "(cached) " >&6
2666 if test -n "$ac_ct_CC"; then
2667 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2673 test -z "$as_dir" && as_dir=.
2674 for ac_exec_ext in '' $ac_executable_extensions; do
2675 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2676 ac_cv_prog_ac_ct_CC="gcc"
2677 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2686 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2687 if test -n "$ac_ct_CC"; then
2688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2689 $as_echo "$ac_ct_CC" >&6; }
2691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2692 $as_echo "no" >&6; }
2695 if test "x$ac_ct_CC" = x; then
2698 case $cross_compiling:$ac_tool_warned in
2700 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2701 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2702 ac_tool_warned=yes ;;
2710 if test -z "$CC"; then
2711 if test -n "$ac_tool_prefix"; then
2712 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2713 set dummy ${ac_tool_prefix}cc; ac_word=$2
2714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2715 $as_echo_n "checking for $ac_word... " >&6; }
2716 if ${ac_cv_prog_CC+:} false; then :
2717 $as_echo_n "(cached) " >&6
2719 if test -n "$CC"; then
2720 ac_cv_prog_CC="$CC" # Let the user override the test.
2722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2726 test -z "$as_dir" && as_dir=.
2727 for ac_exec_ext in '' $ac_executable_extensions; do
2728 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2729 ac_cv_prog_CC="${ac_tool_prefix}cc"
2730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2740 if test -n "$CC"; then
2741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2742 $as_echo "$CC" >&6; }
2744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2745 $as_echo "no" >&6; }
2751 if test -z "$CC"; then
2752 # Extract the first word of "cc", so it can be a program name with args.
2753 set dummy cc; ac_word=$2
2754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2755 $as_echo_n "checking for $ac_word... " >&6; }
2756 if ${ac_cv_prog_CC+:} false; then :
2757 $as_echo_n "(cached) " >&6
2759 if test -n "$CC"; then
2760 ac_cv_prog_CC="$CC" # Let the user override the test.
2763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2767 test -z "$as_dir" && as_dir=.
2768 for ac_exec_ext in '' $ac_executable_extensions; do
2769 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2770 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2771 ac_prog_rejected=yes
2775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2782 if test $ac_prog_rejected = yes; then
2783 # We found a bogon in the path, so make sure we never use it.
2784 set dummy $ac_cv_prog_CC
2786 if test $# != 0; then
2787 # We chose a different compiler from the bogus one.
2788 # However, it has the same basename, so the bogon will be chosen
2789 # first if we set CC to just the basename; use the full file name.
2791 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2797 if test -n "$CC"; then
2798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2799 $as_echo "$CC" >&6; }
2801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2802 $as_echo "no" >&6; }
2807 if test -z "$CC"; then
2808 if test -n "$ac_tool_prefix"; then
2809 for ac_prog in cl.exe
2811 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2812 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2814 $as_echo_n "checking for $ac_word... " >&6; }
2815 if ${ac_cv_prog_CC+:} false; then :
2816 $as_echo_n "(cached) " >&6
2818 if test -n "$CC"; then
2819 ac_cv_prog_CC="$CC" # Let the user override the test.
2821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2825 test -z "$as_dir" && as_dir=.
2826 for ac_exec_ext in '' $ac_executable_extensions; do
2827 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2828 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2839 if test -n "$CC"; then
2840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2841 $as_echo "$CC" >&6; }
2843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2844 $as_echo "no" >&6; }
2848 test -n "$CC" && break
2851 if test -z "$CC"; then
2853 for ac_prog in cl.exe
2855 # Extract the first word of "$ac_prog", so it can be a program name with args.
2856 set dummy $ac_prog; ac_word=$2
2857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2858 $as_echo_n "checking for $ac_word... " >&6; }
2859 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2860 $as_echo_n "(cached) " >&6
2862 if test -n "$ac_ct_CC"; then
2863 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2869 test -z "$as_dir" && as_dir=.
2870 for ac_exec_ext in '' $ac_executable_extensions; do
2871 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2872 ac_cv_prog_ac_ct_CC="$ac_prog"
2873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2882 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2883 if test -n "$ac_ct_CC"; then
2884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2885 $as_echo "$ac_ct_CC" >&6; }
2887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2888 $as_echo "no" >&6; }
2892 test -n "$ac_ct_CC" && break
2895 if test "x$ac_ct_CC" = x; then
2898 case $cross_compiling:$ac_tool_warned in
2900 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2901 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2902 ac_tool_warned=yes ;;
2911 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2912 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2913 as_fn_error $? "no acceptable C compiler found in \$PATH
2914 See \`config.log' for more details" "$LINENO" 5; }
2916 # Provide some information about the compiler.
2917 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2920 for ac_option in --version -v -V -qversion; do
2921 { { ac_try="$ac_compiler $ac_option >&5"
2923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2924 *) ac_try_echo=$ac_try;;
2926 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2927 $as_echo "$ac_try_echo"; } >&5
2928 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2930 if test -s conftest.err; then
2932 ... rest of stderr output deleted ...
2933 10q' conftest.err >conftest.er1
2934 cat conftest.er1 >&5
2936 rm -f conftest.er1 conftest.err
2937 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2938 test $ac_status = 0; }
2941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2942 /* end confdefs.h. */
2952 ac_clean_files_save=$ac_clean_files
2953 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2954 # Try to create an executable without -o first, disregard a.out.
2955 # It will help us diagnose broken compilers, and finding out an intuition
2957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2958 $as_echo_n "checking whether the C compiler works... " >&6; }
2959 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2961 # The possible output files:
2962 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2965 for ac_file in $ac_files
2968 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2969 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2974 if { { ac_try="$ac_link_default"
2976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2977 *) ac_try_echo=$ac_try;;
2979 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2980 $as_echo "$ac_try_echo"; } >&5
2981 (eval "$ac_link_default") 2>&5
2983 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2984 test $ac_status = 0; }; then :
2985 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2986 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2987 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2988 # so that the user can short-circuit this test for compilers unknown to
2990 for ac_file in $ac_files ''
2992 test -f "$ac_file" || continue
2994 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2997 # We found the default executable, but exeext='' is most
3001 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3003 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3005 # We set ac_cv_exeext here because the later test for it is not
3006 # safe: cross compilers may not add the suffix if given an `-o'
3007 # argument, so we may need to know it at that point already.
3008 # Even if this section looks crufty: it has the advantage of
3015 test "$ac_cv_exeext" = no && ac_cv_exeext=
3020 if test -z "$ac_file"; then :
3021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3022 $as_echo "no" >&6; }
3023 $as_echo "$as_me: failed program was:" >&5
3024 sed 's/^/| /' conftest.$ac_ext >&5
3026 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3027 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3028 as_fn_error 77 "C compiler cannot create executables
3029 See \`config.log' for more details" "$LINENO" 5; }
3031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3032 $as_echo "yes" >&6; }
3034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3035 $as_echo_n "checking for C compiler default output file name... " >&6; }
3036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3037 $as_echo "$ac_file" >&6; }
3038 ac_exeext=$ac_cv_exeext
3040 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3041 ac_clean_files=$ac_clean_files_save
3042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3043 $as_echo_n "checking for suffix of executables... " >&6; }
3044 if { { ac_try="$ac_link"
3046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3047 *) ac_try_echo=$ac_try;;
3049 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3050 $as_echo "$ac_try_echo"; } >&5
3051 (eval "$ac_link") 2>&5
3053 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3054 test $ac_status = 0; }; then :
3055 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3056 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3057 # work properly (i.e., refer to `conftest.exe'), while it won't with
3059 for ac_file in conftest.exe conftest conftest.*; do
3060 test -f "$ac_file" || continue
3062 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3063 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3069 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3070 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3071 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3072 See \`config.log' for more details" "$LINENO" 5; }
3074 rm -f conftest conftest$ac_cv_exeext
3075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3076 $as_echo "$ac_cv_exeext" >&6; }
3078 rm -f conftest.$ac_ext
3079 EXEEXT=$ac_cv_exeext
3081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3082 /* end confdefs.h. */
3087 FILE *f = fopen ("conftest.out", "w");
3088 return ferror (f) || fclose (f) != 0;
3094 ac_clean_files="$ac_clean_files conftest.out"
3095 # Check that the compiler produces executables we can run. If not, either
3096 # the compiler is broken, or we cross compile.
3097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3098 $as_echo_n "checking whether we are cross compiling... " >&6; }
3099 if test "$cross_compiling" != yes; then
3100 { { ac_try="$ac_link"
3102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3103 *) ac_try_echo=$ac_try;;
3105 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3106 $as_echo "$ac_try_echo"; } >&5
3107 (eval "$ac_link") 2>&5
3109 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3110 test $ac_status = 0; }
3111 if { ac_try='./conftest$ac_cv_exeext'
3112 { { case "(($ac_try" in
3113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3114 *) ac_try_echo=$ac_try;;
3116 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3117 $as_echo "$ac_try_echo"; } >&5
3118 (eval "$ac_try") 2>&5
3120 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3121 test $ac_status = 0; }; }; then
3124 if test "$cross_compiling" = maybe; then
3127 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3128 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3129 as_fn_error $? "cannot run C compiled programs.
3130 If you meant to cross compile, use \`--host'.
3131 See \`config.log' for more details" "$LINENO" 5; }
3135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3136 $as_echo "$cross_compiling" >&6; }
3138 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3139 ac_clean_files=$ac_clean_files_save
3140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3141 $as_echo_n "checking for suffix of object files... " >&6; }
3142 if ${ac_cv_objext+:} false; then :
3143 $as_echo_n "(cached) " >&6
3145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3146 /* end confdefs.h. */
3156 rm -f conftest.o conftest.obj
3157 if { { ac_try="$ac_compile"
3159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3160 *) ac_try_echo=$ac_try;;
3162 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3163 $as_echo "$ac_try_echo"; } >&5
3164 (eval "$ac_compile") 2>&5
3166 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3167 test $ac_status = 0; }; then :
3168 for ac_file in conftest.o conftest.obj conftest.*; do
3169 test -f "$ac_file" || continue;
3171 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3172 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3177 $as_echo "$as_me: failed program was:" >&5
3178 sed 's/^/| /' conftest.$ac_ext >&5
3180 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3181 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3182 as_fn_error $? "cannot compute suffix of object files: cannot compile
3183 See \`config.log' for more details" "$LINENO" 5; }
3185 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3188 $as_echo "$ac_cv_objext" >&6; }
3189 OBJEXT=$ac_cv_objext
3191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3192 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3193 if ${ac_cv_c_compiler_gnu+:} false; then :
3194 $as_echo_n "(cached) " >&6
3196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3197 /* end confdefs.h. */
3210 if ac_fn_c_try_compile "$LINENO"; then :
3215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3216 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3220 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3221 if test $ac_compiler_gnu = yes; then
3226 ac_test_CFLAGS=${CFLAGS+set}
3227 ac_save_CFLAGS=$CFLAGS
3228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3229 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3230 if ${ac_cv_prog_cc_g+:} false; then :
3231 $as_echo_n "(cached) " >&6
3233 ac_save_c_werror_flag=$ac_c_werror_flag
3234 ac_c_werror_flag=yes
3237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3238 /* end confdefs.h. */
3248 if ac_fn_c_try_compile "$LINENO"; then :
3252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3253 /* end confdefs.h. */
3263 if ac_fn_c_try_compile "$LINENO"; then :
3266 ac_c_werror_flag=$ac_save_c_werror_flag
3268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3269 /* end confdefs.h. */
3279 if ac_fn_c_try_compile "$LINENO"; then :
3282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3287 ac_c_werror_flag=$ac_save_c_werror_flag
3289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3290 $as_echo "$ac_cv_prog_cc_g" >&6; }
3291 if test "$ac_test_CFLAGS" = set; then
3292 CFLAGS=$ac_save_CFLAGS
3293 elif test $ac_cv_prog_cc_g = yes; then
3294 if test "$GCC" = yes; then
3300 if test "$GCC" = yes; then
3306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3307 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3308 if ${ac_cv_prog_cc_c89+:} false; then :
3309 $as_echo_n "(cached) " >&6
3311 ac_cv_prog_cc_c89=no
3313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3314 /* end confdefs.h. */
3318 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3319 struct buf { int x; };
3320 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3321 static char *e (p, i)
3327 static char *f (char * (*g) (char **, int), char **p, ...)
3332 s = g (p, va_arg (v,int));
3337 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3338 function prototypes and stuff, but not '\xHH' hex character constants.
3339 These don't provoke an error unfortunately, instead are silently treated
3340 as 'x'. The following induces an error, until -std is added to get
3341 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3342 array size at least. It's necessary to write '\x00'==0 to get something
3343 that's true only with -std. */
3344 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3346 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3347 inside strings and character constants. */
3349 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3351 int test (int i, double x);
3352 struct s1 {int (*f) (int a);};
3353 struct s2 {int (*f) (double a);};
3354 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3360 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3365 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3366 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3368 CC="$ac_save_CC $ac_arg"
3369 if ac_fn_c_try_compile "$LINENO"; then :
3370 ac_cv_prog_cc_c89=$ac_arg
3372 rm -f core conftest.err conftest.$ac_objext
3373 test "x$ac_cv_prog_cc_c89" != "xno" && break
3375 rm -f conftest.$ac_ext
3380 case "x$ac_cv_prog_cc_c89" in
3382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3383 $as_echo "none needed" >&6; } ;;
3385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3386 $as_echo "unsupported" >&6; } ;;
3388 CC="$CC $ac_cv_prog_cc_c89"
3389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3390 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3392 if test "x$ac_cv_prog_cc_c89" != xno; then :
3397 ac_cpp='$CPP $CPPFLAGS'
3398 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3399 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3400 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3403 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3404 if ${ac_cv_prog_cc_c99+:} false; then :
3405 $as_echo_n "(cached) " >&6
3407 ac_cv_prog_cc_c99=no
3409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3410 /* end confdefs.h. */
3412 #include <stdbool.h>
3417 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3418 #define debug(...) fprintf (stderr, __VA_ARGS__)
3419 #define showlist(...) puts (#__VA_ARGS__)
3420 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3422 test_varargs_macros (void)
3427 debug ("X = %d\n", x);
3428 showlist (The first, second, and third items.);
3429 report (x>y, "x is %d but y is %d", x, y);
3432 // Check long long types.
3433 #define BIG64 18446744073709551615ull
3434 #define BIG32 4294967295ul
3435 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3437 your preprocessor is broken;
3441 your preprocessor is broken;
3443 static long long int bignum = -9223372036854775807LL;
3444 static unsigned long long int ubignum = BIG64;
3446 struct incomplete_array
3454 const wchar_t *name;
3458 typedef const char *ccp;
3461 test_restrict (ccp restrict text)
3463 // See if C++-style comments work.
3464 // Iterate through items via the restricted pointer.
3465 // Also check for declarations in for loops.
3466 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3471 // Check varargs and va_copy.
3473 test_varargs (const char *format, ...)
3476 va_start (args, format);
3478 va_copy (args_copy, args);
3489 str = va_arg (args_copy, const char *);
3492 number = va_arg (args_copy, int);
3495 fnumber = va_arg (args_copy, double);
3510 _Bool success = false;
3513 if (test_restrict ("String literal") == 0)
3515 char *restrict newvar = "Another string";
3518 test_varargs ("s, d' f .", "string", 65, 34.234);
3519 test_varargs_macros ();
3521 // Check flexible array members.
3522 struct incomplete_array *ia =
3523 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3525 for (int i = 0; i < ia->datasize; ++i)
3526 ia->data[i] = i * 1.234;
3528 // Check named initializers.
3529 struct named_init ni = {
3531 .name = L"Test wide string",
3532 .average = 543.34343,
3537 int dynamic_array[ni.number];
3538 dynamic_array[ni.number - 1] = 543;
3540 // work around unused variable warnings
3541 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3542 || dynamic_array[ni.number - 1] != 543);
3548 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
3550 CC="$ac_save_CC $ac_arg"
3551 if ac_fn_c_try_compile "$LINENO"; then :
3552 ac_cv_prog_cc_c99=$ac_arg
3554 rm -f core conftest.err conftest.$ac_objext
3555 test "x$ac_cv_prog_cc_c99" != "xno" && break
3557 rm -f conftest.$ac_ext
3562 case "x$ac_cv_prog_cc_c99" in
3564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3565 $as_echo "none needed" >&6; } ;;
3567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3568 $as_echo "unsupported" >&6; } ;;
3570 CC="$CC $ac_cv_prog_cc_c99"
3571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3572 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3574 if test "x$ac_cv_prog_cc_c99" != xno; then :
3584 if test "$GCC" = yes ; then
3586 # -Werror forces warnings to be errors.
3588 ac_lbl_cc_force_warning_errors=-Werror
3591 # Try to have the compiler default to hiding symbols,
3592 # so that only symbols explicitly exported with
3593 # PCAP_API will be visible outside (shared) libraries.
3596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -fvisibility=hidden option" >&5
3597 $as_echo_n "checking whether the compiler supports the -fvisibility=hidden option... " >&6; }
3598 save_CFLAGS="$CFLAGS"
3599 if expr "x-fvisibility=hidden" : "x-W.*" >/dev/null
3601 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -fvisibility=hidden"
3602 elif expr "x-fvisibility=hidden" : "x-f.*" >/dev/null
3604 CFLAGS="$CFLAGS -Werror -fvisibility=hidden"
3605 elif expr "x-fvisibility=hidden" : "x-m.*" >/dev/null
3607 CFLAGS="$CFLAGS -Werror -fvisibility=hidden"
3609 CFLAGS="$CFLAGS -fvisibility=hidden"
3611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3612 /* end confdefs.h. */
3622 if ac_fn_c_try_compile "$LINENO"; then :
3624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3625 $as_echo "yes" >&6; }
3626 CFLAGS="$save_CFLAGS"
3627 V_CCOPT="$V_CCOPT -fvisibility=hidden"
3631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3632 $as_echo "no" >&6; }
3633 CFLAGS="$save_CFLAGS"
3636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3639 V_INCLS="$V_INCLS -I/usr/local/include"
3640 LDFLAGS="$LDFLAGS -L/usr/local/lib"
3646 # This is assumed either to be GCC or clang, both
3647 # of which use -Werror to force warnings to be errors.
3649 ac_lbl_cc_force_warning_errors=-Werror
3652 # Try to have the compiler default to hiding symbols,
3653 # so that only symbols explicitly exported with
3654 # PCAP_API will be visible outside (shared) libraries.
3657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -fvisibility=hidden option" >&5
3658 $as_echo_n "checking whether the compiler supports the -fvisibility=hidden option... " >&6; }
3659 save_CFLAGS="$CFLAGS"
3660 if expr "x-fvisibility=hidden" : "x-W.*" >/dev/null
3662 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -fvisibility=hidden"
3663 elif expr "x-fvisibility=hidden" : "x-f.*" >/dev/null
3665 CFLAGS="$CFLAGS -Werror -fvisibility=hidden"
3666 elif expr "x-fvisibility=hidden" : "x-m.*" >/dev/null
3668 CFLAGS="$CFLAGS -Werror -fvisibility=hidden"
3670 CFLAGS="$CFLAGS -fvisibility=hidden"
3672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3673 /* end confdefs.h. */
3683 if ac_fn_c_try_compile "$LINENO"; then :
3685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3686 $as_echo "yes" >&6; }
3687 CFLAGS="$save_CFLAGS"
3688 V_CCOPT="$V_CCOPT -fvisibility=hidden"
3692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3693 $as_echo "no" >&6; }
3694 CFLAGS="$save_CFLAGS"
3697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3703 # HP C, which is what we presume we're using, doesn't
3704 # exit with a non-zero exit status if we hand it an
3705 # invalid -W flag, can't be forced to do so even with
3706 # +We, and doesn't handle GCC-style -W flags, so we
3707 # don't want to try using GCC-style -W flags.
3709 ac_lbl_cc_dont_try_gcc_dashW=yes
3714 # MIPS C, which is what we presume we're using, doesn't
3715 # necessarily exit with a non-zero exit status if we
3716 # hand it an invalid -W flag, can't be forced to do
3717 # so, and doesn't handle GCC-style -W flags, so we
3718 # don't want to try using GCC-style -W flags.
3720 ac_lbl_cc_dont_try_gcc_dashW=yes
3722 # It also, apparently, defaults to "char" being
3723 # unsigned, unlike most other C implementations;
3724 # I suppose we could say "signed char" whenever
3725 # we want to guarantee a signed "char", but let's
3726 # just force signed chars.
3728 # -xansi is normally the default, but the
3729 # configure script was setting it; perhaps -cckr
3730 # was the default in the Old Days. (Then again,
3731 # that would probably be for backwards compatibility
3732 # in the days when ANSI C was Shiny and New, i.e.
3733 # 1989 and the early '90's, so maybe we can just
3734 # drop support for those compilers.)
3736 # -g is equivalent to -g2, which turns off
3737 # optimization; we choose -g3, which generates
3738 # debugging information but doesn't turn off
3739 # optimization (even if the optimization would
3740 # cause inaccuracies in debugging).
3742 V_CCOPT="$V_CCOPT -xansi -signed -g3"
3747 # Presumed to be DEC OSF/1, Digital UNIX, or
3750 # The DEC C compiler, which is what we presume we're
3751 # using, doesn't exit with a non-zero exit status if we
3752 # hand it an invalid -W flag, can't be forced to do
3753 # so, and doesn't handle GCC-style -W flags, so we
3754 # don't want to try using GCC-style -W flags.
3756 ac_lbl_cc_dont_try_gcc_dashW=yes
3758 # -g is equivalent to -g2, which turns off
3759 # optimization; we choose -g3, which generates
3760 # debugging information but doesn't turn off
3761 # optimization (even if the optimization would
3762 # cause inaccuracies in debugging).
3764 V_CCOPT="$V_CCOPT -g3"
3769 # Assumed to be Sun C, which requires -errwarn to force
3770 # warnings to be treated as errors.
3772 ac_lbl_cc_force_warning_errors=-errwarn
3775 # Try to have the compiler default to hiding symbols,
3776 # so that only symbols explicitly exported with
3777 # PCAP_API will be visible outside (shared) libraries.
3780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -xldscope=hidden option" >&5
3781 $as_echo_n "checking whether the compiler supports the -xldscope=hidden option... " >&6; }
3782 save_CFLAGS="$CFLAGS"
3783 if expr "x-xldscope=hidden" : "x-W.*" >/dev/null
3785 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -xldscope=hidden"
3786 elif expr "x-xldscope=hidden" : "x-f.*" >/dev/null
3788 CFLAGS="$CFLAGS -Werror -xldscope=hidden"
3789 elif expr "x-xldscope=hidden" : "x-m.*" >/dev/null
3791 CFLAGS="$CFLAGS -Werror -xldscope=hidden"
3793 CFLAGS="$CFLAGS -xldscope=hidden"
3795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3796 /* end confdefs.h. */
3806 if ac_fn_c_try_compile "$LINENO"; then :
3808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3809 $as_echo "yes" >&6; }
3810 CFLAGS="$save_CFLAGS"
3811 V_CCOPT="$V_CCOPT -xldscope=hidden"
3815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3816 $as_echo "no" >&6; }
3817 CFLAGS="$save_CFLAGS"
3820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that Ultrix $CC hacks const in prototypes" >&5
3826 $as_echo_n "checking that Ultrix $CC hacks const in prototypes... " >&6; }
3827 if ${ac_cv_lbl_cc_const_proto+:} false; then :
3828 $as_echo_n "(cached) " >&6
3830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3831 /* end confdefs.h. */
3832 #include <sys/types.h>
3836 struct a { int b; };
3837 void c(const struct a *)
3842 if ac_fn_c_try_compile "$LINENO"; then :
3843 ac_cv_lbl_cc_const_proto=yes
3845 ac_cv_lbl_cc_const_proto=no
3847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_cc_const_proto" >&5
3851 $as_echo "$ac_cv_lbl_cc_const_proto" >&6; }
3852 if test $ac_cv_lbl_cc_const_proto = no ; then
3854 $as_echo "#define const /**/" >>confdefs.h
3859 V_CCOPT="$V_CCOPT -O"
3863 if test "$GCC" = yes ; then
3865 # On platforms where we build a shared library:
3867 # add options to generate position-independent code,
3868 # if necessary (it's the default in AIX and Darwin/macOS);
3870 # define option to set the soname of the shared library,
3871 # if the OS supports that;
3873 # add options to specify, at link time, a directory to
3874 # add to the run-time search path, if that's necessary.
3876 V_SHLIB_CMD="\$(CC)"
3877 V_SHLIB_OPT="-shared"
3883 freebsd*|netbsd*|openbsd*|dragonfly*|linux*|osf*)
3885 # Platforms where the linker is the GNU linker
3886 # or accepts command-line arguments like
3887 # those the GNU linker accepts.
3889 # Some instruction sets require -fPIC on some
3890 # operating systems. Check for them. If you
3891 # have a combination that requires it, add it
3906 V_SHLIB_CCOPT="$V_SHLIB_CCOPT $PIC_OPT"
3907 V_SONAME_OPT="-Wl,-soname,"
3908 V_RPATH_OPT="-Wl,-rpath,"
3912 V_SHLIB_CCOPT="$V_SHLIB_CCOPT -fpic"
3914 # XXX - this assumes GCC is using the HP linker,
3915 # rather than the GNU linker, and that the "+h"
3916 # option is used on all HP-UX platforms, both .sl
3919 V_SONAME_OPT="-Wl,+h,"
3921 # By default, directories specifed with -L
3922 # are added to the run-time search path, so
3923 # we don't add them in pcap-config.
3928 V_SHLIB_CCOPT="$V_SHLIB_CCOPT -fpic"
3930 # XXX - this assumes GCC is using the Sun linker,
3931 # rather than the GNU linker.
3933 V_SONAME_OPT="-Wl,-h,"
3934 V_RPATH_OPT="-Wl,-R,"
3939 # Set the appropriate compiler flags and, on platforms
3940 # where we build a shared library:
3942 # add options to generate position-independent code,
3943 # if necessary (it's the default in Darwin/macOS);
3945 # if we generate ".so" shared libraries, define the
3946 # appropriate options for building the shared library;
3948 # add options to specify, at link time, a directory to
3949 # add to the run-time search path, if that's necessary.
3951 # Note: spaces after V_SONAME_OPT are significant; on
3952 # some platforms the soname is passed with a GCC-like
3953 # "-Wl,-soname,{soname}" option, with the soname part
3954 # of the option, while on other platforms the C compiler
3955 # driver takes it as a regular option with the soname
3956 # following the option. The same applies to V_RPATH_OPT.
3961 V_SHLIB_CMD="\$(CC)"
3962 V_SHLIB_OPT="-G -bnoentry -bexpall"
3965 freebsd*|netbsd*|openbsd*|dragonfly*|linux*)
3969 V_SHLIB_CCOPT="$V_SHLIB_CCOPT -fpic"
3970 V_SHLIB_CMD="\$(CC)"
3971 V_SHLIB_OPT="-shared"
3972 V_SONAME_OPT="-Wl,-soname,"
3973 V_RPATH_OPT="-Wl,-rpath,"
3977 V_SHLIB_CCOPT="$V_SHLIB_CCOPT +z"
3978 V_SHLIB_CMD="\$(LD)"
3982 # By default, directories specifed with -L
3983 # are added to the run-time search path, so
3984 # we don't add them in pcap-config.
3990 # Presumed to be DEC OSF/1, Digital UNIX, or
3993 V_SHLIB_CMD="\$(CC)"
3994 V_SHLIB_OPT="-shared"
3995 V_SONAME_OPT="-soname "
3996 V_RPATH_OPT="-rpath "
4000 V_SHLIB_CCOPT="$V_SHLIB_CCOPT -Kpic"
4001 V_SHLIB_CMD="\$(CC)"
4009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
4010 $as_echo_n "checking for inline... " >&6; }
4011 save_CFLAGS="$CFLAGS"
4013 if ${ac_cv_lbl_inline+:} false; then :
4014 $as_echo_n "(cached) " >&6
4019 for ac_lbl_inline in inline __inline__ __inline
4021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4022 /* end confdefs.h. */
4023 #define inline $ac_lbl_inline
4024 static inline struct iltest *foo(void);
4030 static inline struct iltest *
4033 static struct iltest xxx;
4045 if ac_fn_c_try_compile "$LINENO"; then :
4046 ac_lbl_cc_inline=yes
4048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4049 if test "$ac_lbl_cc_inline" = yes ; then
4053 if test "$ac_lbl_cc_inline" = yes ; then
4054 ac_cv_lbl_inline=$ac_lbl_inline
4058 CFLAGS="$save_CFLAGS"
4059 if test ! -z "$ac_cv_lbl_inline" ; then
4060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_inline" >&5
4061 $as_echo "$ac_cv_lbl_inline" >&6; }
4063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4064 $as_echo "no" >&6; }
4067 cat >>confdefs.h <<_ACEOF
4068 #define inline $ac_cv_lbl_inline
4073 # Try to arrange for large file support.
4075 # Check whether --enable-largefile was given.
4076 if test "${enable_largefile+set}" = set; then :
4077 enableval=$enable_largefile;
4080 if test "$enable_largefile" != no; then
4082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4083 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4084 if ${ac_cv_sys_largefile_CC+:} false; then :
4085 $as_echo_n "(cached) " >&6
4087 ac_cv_sys_largefile_CC=no
4088 if test "$GCC" != yes; then
4091 # IRIX 6.2 and later do not support large files by default,
4092 # so use the C compiler's -n32 option if that helps.
4093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4094 /* end confdefs.h. */
4095 #include <sys/types.h>
4096 /* Check that off_t can represent 2**63 - 1 correctly.
4097 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4098 since some C++ compilers masquerading as C compilers
4099 incorrectly reject 9223372036854775807. */
4100 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4101 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4102 && LARGE_OFF_T % 2147483647 == 1)
4112 if ac_fn_c_try_compile "$LINENO"; then :
4115 rm -f core conftest.err conftest.$ac_objext
4117 if ac_fn_c_try_compile "$LINENO"; then :
4118 ac_cv_sys_largefile_CC=' -n32'; break
4120 rm -f core conftest.err conftest.$ac_objext
4124 rm -f conftest.$ac_ext
4127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4128 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4129 if test "$ac_cv_sys_largefile_CC" != no; then
4130 CC=$CC$ac_cv_sys_largefile_CC
4133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4134 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4135 if ${ac_cv_sys_file_offset_bits+:} false; then :
4136 $as_echo_n "(cached) " >&6
4139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4140 /* end confdefs.h. */
4141 #include <sys/types.h>
4142 /* Check that off_t can represent 2**63 - 1 correctly.
4143 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4144 since some C++ compilers masquerading as C compilers
4145 incorrectly reject 9223372036854775807. */
4146 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4147 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4148 && LARGE_OFF_T % 2147483647 == 1)
4158 if ac_fn_c_try_compile "$LINENO"; then :
4159 ac_cv_sys_file_offset_bits=no; break
4161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4163 /* end confdefs.h. */
4164 #define _FILE_OFFSET_BITS 64
4165 #include <sys/types.h>
4166 /* Check that off_t can represent 2**63 - 1 correctly.
4167 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4168 since some C++ compilers masquerading as C compilers
4169 incorrectly reject 9223372036854775807. */
4170 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4171 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4172 && LARGE_OFF_T % 2147483647 == 1)
4182 if ac_fn_c_try_compile "$LINENO"; then :
4183 ac_cv_sys_file_offset_bits=64; break
4185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4186 ac_cv_sys_file_offset_bits=unknown
4190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4191 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4192 case $ac_cv_sys_file_offset_bits in #(
4195 cat >>confdefs.h <<_ACEOF
4196 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4201 if test $ac_cv_sys_file_offset_bits = unknown; then
4202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4203 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4204 if ${ac_cv_sys_large_files+:} false; then :
4205 $as_echo_n "(cached) " >&6
4208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4209 /* end confdefs.h. */
4210 #include <sys/types.h>
4211 /* Check that off_t can represent 2**63 - 1 correctly.
4212 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4213 since some C++ compilers masquerading as C compilers
4214 incorrectly reject 9223372036854775807. */
4215 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4216 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4217 && LARGE_OFF_T % 2147483647 == 1)
4227 if ac_fn_c_try_compile "$LINENO"; then :
4228 ac_cv_sys_large_files=no; break
4230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4232 /* end confdefs.h. */
4233 #define _LARGE_FILES 1
4234 #include <sys/types.h>
4235 /* Check that off_t can represent 2**63 - 1 correctly.
4236 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4237 since some C++ compilers masquerading as C compilers
4238 incorrectly reject 9223372036854775807. */
4239 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4240 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4241 && LARGE_OFF_T % 2147483647 == 1)
4251 if ac_fn_c_try_compile "$LINENO"; then :
4252 ac_cv_sys_large_files=1; break
4254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4255 ac_cv_sys_large_files=unknown
4259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4260 $as_echo "$ac_cv_sys_large_files" >&6; }
4261 case $ac_cv_sys_large_files in #(
4264 cat >>confdefs.h <<_ACEOF
4265 #define _LARGE_FILES $ac_cv_sys_large_files
4275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
4276 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
4277 if ${ac_cv_sys_largefile_source+:} false; then :
4278 $as_echo_n "(cached) " >&6
4281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4282 /* end confdefs.h. */
4283 #include <sys/types.h> /* for off_t */
4288 int (*fp) (FILE *, off_t, int) = fseeko;
4289 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
4294 if ac_fn_c_try_link "$LINENO"; then :
4295 ac_cv_sys_largefile_source=no; break
4297 rm -f core conftest.err conftest.$ac_objext \
4298 conftest$ac_exeext conftest.$ac_ext
4299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4300 /* end confdefs.h. */
4301 #define _LARGEFILE_SOURCE 1
4302 #include <sys/types.h> /* for off_t */
4307 int (*fp) (FILE *, off_t, int) = fseeko;
4308 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
4313 if ac_fn_c_try_link "$LINENO"; then :
4314 ac_cv_sys_largefile_source=1; break
4316 rm -f core conftest.err conftest.$ac_objext \
4317 conftest$ac_exeext conftest.$ac_ext
4318 ac_cv_sys_largefile_source=unknown
4322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
4323 $as_echo "$ac_cv_sys_largefile_source" >&6; }
4324 case $ac_cv_sys_largefile_source in #(
4327 cat >>confdefs.h <<_ACEOF
4328 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
4334 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
4335 # in glibc 2.1.3, but that breaks too many other things.
4336 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
4337 if test $ac_cv_sys_largefile_source != unknown; then
4339 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
4345 ac_cpp='$CPP $CPPFLAGS'
4346 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4347 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4348 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4350 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4351 # On Suns, sometimes $CPP names a directory.
4352 if test -n "$CPP" && test -d "$CPP"; then
4355 if test -z "$CPP"; then
4356 if ${ac_cv_prog_CPP+:} false; then :
4357 $as_echo_n "(cached) " >&6
4359 # Double quotes because CPP needs to be expanded
4360 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4363 for ac_c_preproc_warn_flag in '' yes
4365 # Use a header file that comes with gcc, so configuring glibc
4366 # with a fresh cross-compiler works.
4367 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4368 # <limits.h> exists even on freestanding compilers.
4369 # On the NeXT, cc -E runs the code through the compiler's parser,
4370 # not just through cpp. "Syntax error" is here to catch this case.
4371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4372 /* end confdefs.h. */
4374 # include <limits.h>
4376 # include <assert.h>
4380 if ac_fn_c_try_cpp "$LINENO"; then :
4383 # Broken: fails on valid input.
4386 rm -f conftest.err conftest.i conftest.$ac_ext
4388 # OK, works on sane cases. Now check whether nonexistent headers
4389 # can be detected and how.
4390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4391 /* end confdefs.h. */
4392 #include <ac_nonexistent.h>
4394 if ac_fn_c_try_cpp "$LINENO"; then :
4395 # Broken: success on invalid input.
4398 # Passes both tests.
4402 rm -f conftest.err conftest.i conftest.$ac_ext
4405 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4406 rm -f conftest.i conftest.err conftest.$ac_ext
4407 if $ac_preproc_ok; then :
4419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4420 $as_echo "$CPP" >&6; }
4422 for ac_c_preproc_warn_flag in '' yes
4424 # Use a header file that comes with gcc, so configuring glibc
4425 # with a fresh cross-compiler works.
4426 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4427 # <limits.h> exists even on freestanding compilers.
4428 # On the NeXT, cc -E runs the code through the compiler's parser,
4429 # not just through cpp. "Syntax error" is here to catch this case.
4430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4431 /* end confdefs.h. */
4433 # include <limits.h>
4435 # include <assert.h>
4439 if ac_fn_c_try_cpp "$LINENO"; then :
4442 # Broken: fails on valid input.
4445 rm -f conftest.err conftest.i conftest.$ac_ext
4447 # OK, works on sane cases. Now check whether nonexistent headers
4448 # can be detected and how.
4449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4450 /* end confdefs.h. */
4451 #include <ac_nonexistent.h>
4453 if ac_fn_c_try_cpp "$LINENO"; then :
4454 # Broken: success on invalid input.
4457 # Passes both tests.
4461 rm -f conftest.err conftest.i conftest.$ac_ext
4464 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4465 rm -f conftest.i conftest.err conftest.$ac_ext
4466 if $ac_preproc_ok; then :
4469 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4470 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4471 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4472 See \`config.log' for more details" "$LINENO" 5; }
4476 ac_cpp='$CPP $CPPFLAGS'
4477 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4478 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4479 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4483 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4484 if ${ac_cv_path_GREP+:} false; then :
4485 $as_echo_n "(cached) " >&6
4487 if test -z "$GREP"; then
4488 ac_path_GREP_found=false
4489 # Loop through the user's path and test for each of PROGNAME-LIST
4490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4491 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4494 test -z "$as_dir" && as_dir=.
4495 for ac_prog in grep ggrep; do
4496 for ac_exec_ext in '' $ac_executable_extensions; do
4497 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4498 as_fn_executable_p "$ac_path_GREP" || continue
4499 # Check for GNU ac_path_GREP and select it if it is found.
4500 # Check for GNU $ac_path_GREP
4501 case `"$ac_path_GREP" --version 2>&1` in
4503 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4506 $as_echo_n 0123456789 >"conftest.in"
4509 cat "conftest.in" "conftest.in" >"conftest.tmp"
4510 mv "conftest.tmp" "conftest.in"
4511 cp "conftest.in" "conftest.nl"
4512 $as_echo 'GREP' >> "conftest.nl"
4513 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4514 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4515 as_fn_arith $ac_count + 1 && ac_count=$as_val
4516 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4517 # Best one so far, save it but keep looking for a better one
4518 ac_cv_path_GREP="$ac_path_GREP"
4519 ac_path_GREP_max=$ac_count
4521 # 10*(2^10) chars as input seems more than enough
4522 test $ac_count -gt 10 && break
4524 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4527 $ac_path_GREP_found && break 3
4532 if test -z "$ac_cv_path_GREP"; then
4533 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4536 ac_cv_path_GREP=$GREP
4540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4541 $as_echo "$ac_cv_path_GREP" >&6; }
4542 GREP="$ac_cv_path_GREP"
4545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4546 $as_echo_n "checking for egrep... " >&6; }
4547 if ${ac_cv_path_EGREP+:} false; then :
4548 $as_echo_n "(cached) " >&6
4550 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4551 then ac_cv_path_EGREP="$GREP -E"
4553 if test -z "$EGREP"; then
4554 ac_path_EGREP_found=false
4555 # Loop through the user's path and test for each of PROGNAME-LIST
4556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4557 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4560 test -z "$as_dir" && as_dir=.
4561 for ac_prog in egrep; do
4562 for ac_exec_ext in '' $ac_executable_extensions; do
4563 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4564 as_fn_executable_p "$ac_path_EGREP" || continue
4565 # Check for GNU ac_path_EGREP and select it if it is found.
4566 # Check for GNU $ac_path_EGREP
4567 case `"$ac_path_EGREP" --version 2>&1` in
4569 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4572 $as_echo_n 0123456789 >"conftest.in"
4575 cat "conftest.in" "conftest.in" >"conftest.tmp"
4576 mv "conftest.tmp" "conftest.in"
4577 cp "conftest.in" "conftest.nl"
4578 $as_echo 'EGREP' >> "conftest.nl"
4579 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4580 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4581 as_fn_arith $ac_count + 1 && ac_count=$as_val
4582 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4583 # Best one so far, save it but keep looking for a better one
4584 ac_cv_path_EGREP="$ac_path_EGREP"
4585 ac_path_EGREP_max=$ac_count
4587 # 10*(2^10) chars as input seems more than enough
4588 test $ac_count -gt 10 && break
4590 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4593 $ac_path_EGREP_found && break 3
4598 if test -z "$ac_cv_path_EGREP"; then
4599 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4602 ac_cv_path_EGREP=$EGREP
4607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4608 $as_echo "$ac_cv_path_EGREP" >&6; }
4609 EGREP="$ac_cv_path_EGREP"
4612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4613 $as_echo_n "checking for ANSI C header files... " >&6; }
4614 if ${ac_cv_header_stdc+:} false; then :
4615 $as_echo_n "(cached) " >&6
4617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4618 /* end confdefs.h. */
4632 if ac_fn_c_try_compile "$LINENO"; then :
4633 ac_cv_header_stdc=yes
4635 ac_cv_header_stdc=no
4637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4639 if test $ac_cv_header_stdc = yes; then
4640 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4642 /* end confdefs.h. */
4646 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4647 $EGREP "memchr" >/dev/null 2>&1; then :
4650 ac_cv_header_stdc=no
4656 if test $ac_cv_header_stdc = yes; then
4657 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4659 /* end confdefs.h. */
4663 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4664 $EGREP "free" >/dev/null 2>&1; then :
4667 ac_cv_header_stdc=no
4673 if test $ac_cv_header_stdc = yes; then
4674 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4675 if test "$cross_compiling" = yes; then :
4678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4679 /* end confdefs.h. */
4682 #if ((' ' & 0x0FF) == 0x020)
4683 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4684 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4686 # define ISLOWER(c) \
4687 (('a' <= (c) && (c) <= 'i') \
4688 || ('j' <= (c) && (c) <= 'r') \
4689 || ('s' <= (c) && (c) <= 'z'))
4690 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4693 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4698 for (i = 0; i < 256; i++)
4699 if (XOR (islower (i), ISLOWER (i))
4700 || toupper (i) != TOUPPER (i))
4705 if ac_fn_c_try_run "$LINENO"; then :
4708 ac_cv_header_stdc=no
4710 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4711 conftest.$ac_objext conftest.beam conftest.$ac_ext
4716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4717 $as_echo "$ac_cv_header_stdc" >&6; }
4718 if test $ac_cv_header_stdc = yes; then
4720 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4724 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4725 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4726 inttypes.h stdint.h unistd.h
4728 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4729 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4731 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4732 cat >>confdefs.h <<_ACEOF
4733 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4741 for ac_header in sys/ioccom.h sys/sockio.h limits.h
4743 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4744 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4745 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4746 cat >>confdefs.h <<_ACEOF
4747 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4754 for ac_header in netpacket/packet.h
4756 ac_fn_c_check_header_mongrel "$LINENO" "netpacket/packet.h" "ac_cv_header_netpacket_packet_h" "$ac_includes_default"
4757 if test "x$ac_cv_header_netpacket_packet_h" = xyes; then :
4758 cat >>confdefs.h <<_ACEOF
4759 #define HAVE_NETPACKET_PACKET_H 1
4766 for ac_header in net/pfvar.h
4768 ac_fn_c_check_header_compile "$LINENO" "net/pfvar.h" "ac_cv_header_net_pfvar_h" "#include <sys/types.h>
4769 #include <sys/socket.h>
4772 if test "x$ac_cv_header_net_pfvar_h" = xyes; then :
4773 cat >>confdefs.h <<_ACEOF
4774 #define HAVE_NET_PFVAR_H 1
4781 if test "$ac_cv_header_net_pfvar_h" = yes; then
4783 # Check for various PF actions.
4785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether net/pfvar.h defines PF_NAT through PF_NORDR" >&5
4786 $as_echo_n "checking whether net/pfvar.h defines PF_NAT through PF_NORDR... " >&6; }
4787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4788 /* end confdefs.h. */
4789 #include <sys/types.h>
4790 #include <sys/socket.h>
4792 #include <net/pfvar.h>
4796 return PF_NAT+PF_NONAT+PF_BINAT+PF_NOBINAT+PF_RDR+PF_NORDR;
4801 if ac_fn_c_try_compile "$LINENO"; then :
4803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4804 $as_echo "yes" >&6; }
4806 $as_echo "#define HAVE_PF_NAT_THROUGH_PF_NORDR 1" >>confdefs.h
4810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4811 $as_echo "no" >&6; }
4813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4818 for ac_header in linux/sockios.h linux/if_bonding.h
4820 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4821 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
4822 #include <sys/socket.h>
4823 #include <linux/if.h>
4826 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4827 cat >>confdefs.h <<_ACEOF
4828 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4838 if test "$GCC" = yes ; then
4839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI ioctl definitions" >&5
4840 $as_echo_n "checking for ANSI ioctl definitions... " >&6; }
4841 if ${ac_cv_lbl_gcc_fixincludes+:} false; then :
4842 $as_echo_n "(cached) " >&6
4844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4845 /* end confdefs.h. */
4847 * This generates a "duplicate case value" when fixincludes
4850 # include <sys/types.h>
4851 # include <sys/time.h>
4852 # include <sys/ioctl.h>
4853 # ifdef HAVE_SYS_IOCCOM_H
4854 # include <sys/ioccom.h>
4867 if ac_fn_c_try_compile "$LINENO"; then :
4868 ac_cv_lbl_gcc_fixincludes=yes
4870 ac_cv_lbl_gcc_fixincludes=no
4872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_gcc_fixincludes" >&5
4876 $as_echo "$ac_cv_lbl_gcc_fixincludes" >&6; }
4877 if test $ac_cv_lbl_gcc_fixincludes = no ; then
4878 # Don't cache failure
4879 unset ac_cv_lbl_gcc_fixincludes
4880 as_fn_error $? "see the INSTALL for more info" "$LINENO" 5
4884 for ac_func in strerror strerror_r strerror_s strlcpy strlcat
4886 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4887 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4888 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
4889 cat >>confdefs.h <<_ACEOF
4890 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4898 for ac_func in vsnprintf snprintf
4900 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4901 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4902 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
4903 cat >>confdefs.h <<_ACEOF
4904 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4912 if test $needsnprintf = yes; then
4913 case " $LIBOBJS " in
4914 *" snprintf.$ac_objext "* ) ;;
4915 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
4922 for ac_func in strtok_r
4924 ac_fn_c_check_func "$LINENO" "strtok_r" "ac_cv_func_strtok_r"
4925 if test "x$ac_cv_func_strtok_r" = xyes; then :
4926 cat >>confdefs.h <<_ACEOF
4927 #define HAVE_STRTOK_R 1
4935 if test $needstrtok_r = yes; then
4936 case " $LIBOBJS " in
4937 *" strtok_r.$ac_objext "* ) ;;
4938 *) LIBOBJS="$LIBOBJS strtok_r.$ac_objext"
4945 # Do we have ffs(), and is it declared in <strings.h>?
4949 ac_fn_c_check_func "$LINENO" "ffs" "ac_cv_func_ffs"
4950 if test "x$ac_cv_func_ffs" = xyes; then :
4951 cat >>confdefs.h <<_ACEOF
4958 if test "$ac_cv_func_ffs" = yes; then
4960 # We have ffs(); is it declared in <strings.h>?
4962 # This test fails if we don't have <strings.h> or if we do
4963 # but it doesn't declare ffs().
4965 ac_fn_c_check_decl "$LINENO" "ffs" "ac_cv_have_decl_ffs" "
4966 #include <strings.h>
4969 if test "x$ac_cv_have_decl_ffs" = xyes; then :
4972 $as_echo "#define STRINGS_H_DECLARES_FFS /**/" >>confdefs.h
4980 # Do this before checking for ether_hostton(), as it's a
4981 # "getaddrinfo()-ish function".
4985 # Most operating systems have getaddrinfo() in the default searched
4986 # libraries (i.e. libc). Check there first.
4988 ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
4989 if test "x$ac_cv_func_getaddrinfo" = xyes; then :
4994 # Not found in the standard system libraries.
4995 # Try libsocket, which requires libnsl.
4997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo in -lsocket" >&5
4998 $as_echo_n "checking for getaddrinfo in -lsocket... " >&6; }
4999 if ${ac_cv_lib_socket_getaddrinfo+:} false; then :
5000 $as_echo_n "(cached) " >&6
5002 ac_check_lib_save_LIBS=$LIBS
5003 LIBS="-lsocket -lnsl $LIBS"
5004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5005 /* end confdefs.h. */
5007 /* Override any GCC internal prototype to avoid an error.
5008 Use char because int might match the return type of a GCC
5009 builtin and then its argument prototype would still apply. */
5013 char getaddrinfo ();
5017 return getaddrinfo ();
5022 if ac_fn_c_try_link "$LINENO"; then :
5023 ac_cv_lib_socket_getaddrinfo=yes
5025 ac_cv_lib_socket_getaddrinfo=no
5027 rm -f core conftest.err conftest.$ac_objext \
5028 conftest$ac_exeext conftest.$ac_ext
5029 LIBS=$ac_check_lib_save_LIBS
5031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_getaddrinfo" >&5
5032 $as_echo "$ac_cv_lib_socket_getaddrinfo" >&6; }
5033 if test "x$ac_cv_lib_socket_getaddrinfo" = xyes; then :
5036 # OK, we found it in libsocket.
5038 LIBS="-lsocket -lnsl $LIBS"
5043 # We didn't find it.
5045 as_fn_error $? "getaddrinfo is required, but wasn't found" "$LINENO" 5
5051 # OK, do we have recvmsg() in libxnet?
5052 # We also link with libsocket and libnsl.
5054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recvmsg in -lxnet" >&5
5055 $as_echo_n "checking for recvmsg in -lxnet... " >&6; }
5056 if ${ac_cv_lib_xnet_recvmsg+:} false; then :
5057 $as_echo_n "(cached) " >&6
5059 ac_check_lib_save_LIBS=$LIBS
5060 LIBS="-lxnet -lsocket -lnsl $LIBS"
5061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5062 /* end confdefs.h. */
5064 /* Override any GCC internal prototype to avoid an error.
5065 Use char because int might match the return type of a GCC
5066 builtin and then its argument prototype would still apply. */
5079 if ac_fn_c_try_link "$LINENO"; then :
5080 ac_cv_lib_xnet_recvmsg=yes
5082 ac_cv_lib_xnet_recvmsg=no
5084 rm -f core conftest.err conftest.$ac_objext \
5085 conftest$ac_exeext conftest.$ac_ext
5086 LIBS=$ac_check_lib_save_LIBS
5088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xnet_recvmsg" >&5
5089 $as_echo "$ac_cv_lib_xnet_recvmsg" >&6; }
5090 if test "x$ac_cv_lib_xnet_recvmsg" = xyes; then :
5093 # Yes - link with it as well.
5102 # DLPI needs putmsg under HPUX so test for -lstr while we're at it
5103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing putmsg" >&5
5104 $as_echo_n "checking for library containing putmsg... " >&6; }
5105 if ${ac_cv_search_putmsg+:} false; then :
5106 $as_echo_n "(cached) " >&6
5108 ac_func_search_save_LIBS=$LIBS
5109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5110 /* end confdefs.h. */
5112 /* Override any GCC internal prototype to avoid an error.
5113 Use char because int might match the return type of a GCC
5114 builtin and then its argument prototype would still apply. */
5127 for ac_lib in '' str; do
5128 if test -z "$ac_lib"; then
5129 ac_res="none required"
5132 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5134 if ac_fn_c_try_link "$LINENO"; then :
5135 ac_cv_search_putmsg=$ac_res
5137 rm -f core conftest.err conftest.$ac_objext \
5139 if ${ac_cv_search_putmsg+:} false; then :
5143 if ${ac_cv_search_putmsg+:} false; then :
5146 ac_cv_search_putmsg=no
5149 LIBS=$ac_func_search_save_LIBS
5151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_putmsg" >&5
5152 $as_echo "$ac_cv_search_putmsg" >&6; }
5153 ac_res=$ac_cv_search_putmsg
5154 if test "$ac_res" != no; then :
5155 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5162 # Check for reentrant versions of getnetbyname_r(), as provided by
5163 # Linux (glibc), Solaris/IRIX, and AIX (with three different APIs!).
5164 # If we don't find one, we just use getnetbyname(), which uses
5165 # thread-specific data on many platforms, but doesn't use it on
5166 # NetBSD or OpenBSD, and may not use it on older versions of other
5169 # Only do the check if we have a declaration of getnetbyname_r();
5170 # without it, we can't check which API it has. (We assume that
5171 # if there's a declaration, it has a prototype, so that the API
5174 ac_fn_c_check_decl "$LINENO" "getnetbyname_r" "ac_cv_have_decl_getnetbyname_r" "#include <netdb.h>
5176 if test "x$ac_cv_have_decl_getnetbyname_r" = xyes; then :
5178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the Linux getnetbyname_r()" >&5
5179 $as_echo_n "checking for the Linux getnetbyname_r()... " >&6; }
5180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5181 /* end confdefs.h. */
5187 struct netent netent_buf;
5189 struct netent *resultp;
5192 return getnetbyname_r((const char *)0, &netent_buf, buf, sizeof buf, &resultp, &h_errnoval);
5198 if ac_fn_c_try_link "$LINENO"; then :
5200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5201 $as_echo "yes" >&6; }
5203 $as_echo "#define HAVE_LINUX_GETNETBYNAME_R 1" >>confdefs.h
5208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5209 $as_echo "no" >&6; }
5211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Solaris/IRIX getnetbyname_r()" >&5
5212 $as_echo_n "checking for Solaris/IRIX getnetbyname_r()... " >&6; }
5213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5214 /* end confdefs.h. */
5220 struct netent netent_buf;
5223 return getnetbyname_r((const char *)0, &netent_buf, buf, (int)sizeof buf) != NULL;
5229 if ac_fn_c_try_link "$LINENO"; then :
5231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5232 $as_echo "yes" >&6; }
5234 $as_echo "#define HAVE_SOLARIS_IRIX_GETNETBYNAME_R 1" >>confdefs.h
5239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5240 $as_echo "no" >&6; }
5242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AIX getnetbyname_r()" >&5
5243 $as_echo_n "checking for AIX getnetbyname_r()... " >&6; }
5244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5245 /* end confdefs.h. */
5251 struct netent netent_buf;
5252 struct netent_data net_data;
5254 return getnetbyname_r((const char *)0, &netent_buf, &net_data);
5260 if ac_fn_c_try_link "$LINENO"; then :
5262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5263 $as_echo "yes" >&6; }
5265 $as_echo "#define HAVE_AIX_GETNETBYNAME_R 1" >>confdefs.h
5270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5271 $as_echo "no" >&6; }
5274 rm -f core conftest.err conftest.$ac_objext \
5275 conftest$ac_exeext conftest.$ac_ext
5278 rm -f core conftest.err conftest.$ac_objext \
5279 conftest$ac_exeext conftest.$ac_ext
5282 rm -f core conftest.err conftest.$ac_objext \
5283 conftest$ac_exeext conftest.$ac_ext
5289 # Check for reentrant versions of getprotobyname_r(), as provided by
5290 # Linux (glibc), Solaris/IRIX, and AIX (with three different APIs!).
5291 # If we don't find one, we just use getprotobyname(), which uses
5292 # thread-specific data on many platforms, but doesn't use it on
5293 # NetBSD or OpenBSD, and may not use it on older versions of other
5296 # Only do the check if we have a declaration of getprotobyname_r();
5297 # without it, we can't check which API it has. (We assume that
5298 # if there's a declaration, it has a prototype, so that the API
5301 ac_fn_c_check_decl "$LINENO" "getprotobyname_r" "ac_cv_have_decl_getprotobyname_r" "#include <netdb.h>
5303 if test "x$ac_cv_have_decl_getprotobyname_r" = xyes; then :
5305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the Linux getprotobyname_r()" >&5
5306 $as_echo_n "checking for the Linux getprotobyname_r()... " >&6; }
5307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5308 /* end confdefs.h. */
5314 struct protoent protoent_buf;
5316 struct protoent *resultp;
5318 return getprotobyname_r((const char *)0, &protoent_buf, buf, sizeof buf, &resultp);
5324 if ac_fn_c_try_link "$LINENO"; then :
5326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5327 $as_echo "yes" >&6; }
5329 $as_echo "#define HAVE_LINUX_GETPROTOBYNAME_R 1" >>confdefs.h
5334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5335 $as_echo "no" >&6; }
5337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Solaris/IRIX getprotobyname_r()" >&5
5338 $as_echo_n "checking for Solaris/IRIX getprotobyname_r()... " >&6; }
5339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5340 /* end confdefs.h. */
5346 struct protoent protoent_buf;
5349 return getprotobyname_r((const char *)0, &protoent_buf, buf, (int)sizeof buf) != NULL;
5355 if ac_fn_c_try_link "$LINENO"; then :
5357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5358 $as_echo "yes" >&6; }
5360 $as_echo "#define HAVE_SOLARIS_IRIX_GETPROTOBYNAME_R 1" >>confdefs.h
5365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5366 $as_echo "no" >&6; }
5368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AIX getprotobyname_r()" >&5
5369 $as_echo_n "checking for AIX getprotobyname_r()... " >&6; }
5370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5371 /* end confdefs.h. */
5377 struct protoent protoent_buf;
5378 struct protoent_data proto_data;
5380 return getprotobyname_r((const char *)0, &protoent_buf, &proto_data);
5386 if ac_fn_c_try_link "$LINENO"; then :
5388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5389 $as_echo "yes" >&6; }
5391 $as_echo "#define HAVE_AIX_GETPROTOBYNAME_R 1" >>confdefs.h
5396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5397 $as_echo "no" >&6; }
5400 rm -f core conftest.err conftest.$ac_objext \
5401 conftest$ac_exeext conftest.$ac_ext
5404 rm -f core conftest.err conftest.$ac_objext \
5405 conftest$ac_exeext conftest.$ac_ext
5408 rm -f core conftest.err conftest.$ac_objext \
5409 conftest$ac_exeext conftest.$ac_ext
5415 # You are in a twisty little maze of UN*Xes, all different.
5416 # Some might not have ether_hostton().
5417 # Some might have it and declare it in <net/ethernet.h>.
5418 # Some might have it and declare it in <netinet/ether.h>
5419 # Some might have it and declare it in <sys/ethernet.h>.
5420 # Some might have it and declare it in <arpa/inet.h>.
5421 # Some might have it and declare it in <netinet/if_ether.h>.
5422 # Some might have it and not declare it in any header file.
5424 # Before you is a C compiler.
5426 for ac_func in ether_hostton
5428 ac_fn_c_check_func "$LINENO" "ether_hostton" "ac_cv_func_ether_hostton"
5429 if test "x$ac_cv_func_ether_hostton" = xyes; then :
5430 cat >>confdefs.h <<_ACEOF
5431 #define HAVE_ETHER_HOSTTON 1
5437 if test "$ac_cv_func_ether_hostton" = yes; then
5439 # OK, we have ether_hostton(). Is it declared in <net/ethernet.h>?
5441 # This test fails if we don't have <net/ethernet.h> or if we do
5442 # but it doesn't declare ether_hostton().
5444 ac_fn_c_check_decl "$LINENO" "ether_hostton" "ac_cv_have_decl_ether_hostton" "
5445 #include <net/ethernet.h>
5448 if test "x$ac_cv_have_decl_ether_hostton" = xyes; then :
5451 $as_echo "#define NET_ETHERNET_H_DECLARES_ETHER_HOSTTON /**/" >>confdefs.h
5459 if test "$ac_cv_have_decl_ether_hostton" != yes; then
5461 # No, how about <netinet/ether.h>, as on Linux?
5463 # This test fails if we don't have <netinet/ether.h>
5464 # or if we do but it doesn't declare ether_hostton().
5466 # Unset ac_cv_have_decl_ether_hostton so we don't
5467 # treat the previous failure as a cached value and
5468 # suppress the next test.
5470 unset ac_cv_have_decl_ether_hostton
5471 ac_fn_c_check_decl "$LINENO" "ether_hostton" "ac_cv_have_decl_ether_hostton" "
5472 #include <netinet/ether.h>
5475 if test "x$ac_cv_have_decl_ether_hostton" = xyes; then :
5478 $as_echo "#define NETINET_ETHER_H_DECLARES_ETHER_HOSTTON /**/" >>confdefs.h
5487 if test "$ac_cv_have_decl_ether_hostton" != yes; then
5489 # No, how about <sys/ethernet.h>, as on Solaris 10
5492 # This test fails if we don't have <sys/ethernet.h>
5493 # or if we do but it doesn't declare ether_hostton().
5495 # Unset ac_cv_have_decl_ether_hostton so we don't
5496 # treat the previous failure as a cached value and
5497 # suppress the next test.
5499 unset ac_cv_have_decl_ether_hostton
5500 ac_fn_c_check_decl "$LINENO" "ether_hostton" "ac_cv_have_decl_ether_hostton" "
5501 #include <sys/ethernet.h>
5504 if test "x$ac_cv_have_decl_ether_hostton" = xyes; then :
5507 $as_echo "#define SYS_ETHERNET_H_DECLARES_ETHER_HOSTTON /**/" >>confdefs.h
5516 if test "$ac_cv_have_decl_ether_hostton" != yes; then
5518 # No, how about <arpa/inet.h>, as in AIX?
5520 # This test fails if we don't have <arpa/inet.h>
5521 # (if we have ether_hostton(), we should have
5522 # networking, and if we have networking, we should
5523 # have <arapa/inet.h>) or if we do but it doesn't
5524 # declare ether_hostton().
5526 # Unset ac_cv_have_decl_ether_hostton so we don't
5527 # treat the previous failure as a cached value and
5528 # suppress the next test.
5530 unset ac_cv_have_decl_ether_hostton
5531 ac_fn_c_check_decl "$LINENO" "ether_hostton" "ac_cv_have_decl_ether_hostton" "
5532 #include <arpa/inet.h>
5535 if test "x$ac_cv_have_decl_ether_hostton" = xyes; then :
5538 $as_echo "#define ARPA_INET_H_DECLARES_ETHER_HOSTTON /**/" >>confdefs.h
5547 if test "$ac_cv_have_decl_ether_hostton" != yes; then
5549 # No, how about <netinet/if_ether.h>?
5550 # On some platforms, it requires <net/if.h> and
5551 # <netinet/in.h>, and we always include it with
5552 # both of them, so test it with both of them.
5554 # This test fails if we don't have <netinet/if_ether.h>
5555 # and the headers we include before it, or if we do but
5556 # <netinet/if_ether.h> doesn't declare ether_hostton().
5558 # Unset ac_cv_have_decl_ether_hostton so we don't
5559 # treat the previous failure as a cached value and
5560 # suppress the next test.
5562 unset ac_cv_have_decl_ether_hostton
5563 ac_fn_c_check_decl "$LINENO" "ether_hostton" "ac_cv_have_decl_ether_hostton" "
5564 #include <sys/types.h>
5565 #include <sys/socket.h>
5567 #include <netinet/in.h>
5568 #include <netinet/if_ether.h>
5571 if test "x$ac_cv_have_decl_ether_hostton" = xyes; then :
5574 $as_echo "#define NETINET_IF_ETHER_H_DECLARES_ETHER_HOSTTON /**/" >>confdefs.h
5581 # After all that, is ether_hostton() declared?
5583 if test "$ac_cv_have_decl_ether_hostton" = yes; then
5588 $as_echo "#define HAVE_DECL_ETHER_HOSTTON 1" >>confdefs.h
5592 # No, we'll have to declare it ourselves.
5593 # Do we have "struct ether_addr" if we include
5594 # <netinet/if_ether.h>?
5596 ac_fn_c_check_type "$LINENO" "struct ether_addr" "ac_cv_type_struct_ether_addr" "
5597 #include <sys/types.h>
5598 #include <sys/socket.h>
5600 #include <netinet/in.h>
5601 #include <netinet/if_ether.h>
5604 if test "x$ac_cv_type_struct_ether_addr" = xyes; then :
5606 cat >>confdefs.h <<_ACEOF
5607 #define HAVE_STRUCT_ETHER_ADDR 1
5617 # For various things that might use pthreads.
5619 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
5620 if test "x$ac_cv_header_pthread_h" = xyes; then :
5623 # OK, we have pthread.h. Do we have pthread_create in the
5626 ac_fn_c_check_func "$LINENO" "pthread_create" "ac_cv_func_pthread_create"
5627 if test "x$ac_cv_func_pthread_create" = xyes; then :
5632 ac_lbl_have_pthreads="found"
5637 # No - do we have it in -lpthreads?
5639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthreads" >&5
5640 $as_echo_n "checking for pthread_create in -lpthreads... " >&6; }
5641 if ${ac_cv_lib_pthreads_pthread_create+:} false; then :
5642 $as_echo_n "(cached) " >&6
5644 ac_check_lib_save_LIBS=$LIBS
5645 LIBS="-lpthreads $LIBS"
5646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5647 /* end confdefs.h. */
5649 /* Override any GCC internal prototype to avoid an error.
5650 Use char because int might match the return type of a GCC
5651 builtin and then its argument prototype would still apply. */
5655 char pthread_create ();
5659 return pthread_create ();
5664 if ac_fn_c_try_link "$LINENO"; then :
5665 ac_cv_lib_pthreads_pthread_create=yes
5667 ac_cv_lib_pthreads_pthread_create=no
5669 rm -f core conftest.err conftest.$ac_objext \
5670 conftest$ac_exeext conftest.$ac_ext
5671 LIBS=$ac_check_lib_save_LIBS
5673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_create" >&5
5674 $as_echo "$ac_cv_lib_pthreads_pthread_create" >&6; }
5675 if test "x$ac_cv_lib_pthreads_pthread_create" = xyes; then :
5678 # Yes - add -lpthreads.
5680 ac_lbl_have_pthreads="found"
5681 PTHREAD_LIBS="$PTHREAD_LIBS -lpthreads"
5686 # No - do we have it in -lpthread?
5688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
5689 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
5690 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
5691 $as_echo_n "(cached) " >&6
5693 ac_check_lib_save_LIBS=$LIBS
5694 LIBS="-lpthread $LIBS"
5695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5696 /* end confdefs.h. */
5698 /* Override any GCC internal prototype to avoid an error.
5699 Use char because int might match the return type of a GCC
5700 builtin and then its argument prototype would still apply. */
5704 char pthread_create ();
5708 return pthread_create ();
5713 if ac_fn_c_try_link "$LINENO"; then :
5714 ac_cv_lib_pthread_pthread_create=yes
5716 ac_cv_lib_pthread_pthread_create=no
5718 rm -f core conftest.err conftest.$ac_objext \
5719 conftest$ac_exeext conftest.$ac_ext
5720 LIBS=$ac_check_lib_save_LIBS
5722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
5723 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
5724 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
5727 # Yes - add -lpthread.
5729 ac_lbl_have_pthreads="found"
5730 PTHREAD_LIBS="$PTHREAD_LIBS -lpthread"
5737 ac_lbl_have_pthreads="not found"
5751 # We didn't find pthread.h.
5753 ac_lbl_have_pthreads="not found"
5760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if --disable-protochain option is specified" >&5
5761 $as_echo_n "checking if --disable-protochain option is specified... " >&6; }
5762 # Check whether --enable-protochain was given.
5763 if test "${enable_protochain+set}" = set; then :
5764 enableval=$enable_protochain;
5767 case "x$enable_protochain" in
5768 xyes) enable_protochain=enabled ;;
5769 xno) enable_protochain=disabled ;;
5770 x) enable_protochain=enabled ;;
5773 if test "$enable_protochain" = "disabled"; then
5775 $as_echo "#define NO_PROTOCHAIN 1" >>confdefs.h
5778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_protochain}" >&5
5779 $as_echo "${enable_protochain}" >&6; }
5782 # valgrindtest directly uses the native capture mechanism, but
5783 # only tests with BPF and PF_PACKET sockets; only enable it if
5784 # we have BPF or PF_PACKET sockets.
5789 # SITA support is mutually exclusive with native capture support;
5790 # "--with-sita" selects SITA support.
5793 # Check whether --with-sita was given.
5794 if test "${with_sita+set}" = set; then :
5796 if test ! "x$withval" = "xno" ; then
5798 $as_echo "#define SITA 1" >>confdefs.h
5800 { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling SITA ACN support" >&5
5801 $as_echo "$as_me: Enabling SITA ACN support" >&6;}
5808 # Check whether --with-pcap was given.
5809 if test "${with_pcap+set}" = set; then :
5813 if test ! -z "$with_pcap" ; then
5817 # Check for a bunch of headers for various packet
5818 # capture mechanisms.
5820 for ac_header in net/bpf.h
5822 ac_fn_c_check_header_mongrel "$LINENO" "net/bpf.h" "ac_cv_header_net_bpf_h" "$ac_includes_default"
5823 if test "x$ac_cv_header_net_bpf_h" = xyes; then :
5824 cat >>confdefs.h <<_ACEOF
5825 #define HAVE_NET_BPF_H 1
5832 if test "$ac_cv_header_net_bpf_h" = yes; then
5834 # Does it define BIOCSETIF?
5835 # I.e., is it a header for an LBL/BSD-style capture
5836 # mechanism, or is it just a header for a BPF filter
5837 # engine? Some versions of Arch Linux, for example,
5838 # have a net/bpf.h that doesn't define BIOCSETIF;
5839 # as it's a Linux, it should use packet sockets,
5844 # sys/types.h, because FreeBSD 10's net/bpf.h
5845 # requires that various BSD-style integer types
5848 # sys/ioctl.h and, if we have it, sys/ioccom.h,
5849 # because net/bpf.h defines ioctls;
5851 # net/if.h, because it defines some structures
5852 # used in ioctls defined by net/bpf.h;
5854 # sys/socket.h, because OpenBSD 5.9's net/bpf.h
5855 # defines some structure fields as being
5858 # and net/bpf.h doesn't necessarily include all
5859 # of those headers itself.
5861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if net/bpf.h defines BIOCSETIF" >&5
5862 $as_echo_n "checking if net/bpf.h defines BIOCSETIF... " >&6; }
5863 if ${ac_cv_lbl_bpf_h_defines_biocsetif+:} false; then :
5864 $as_echo_n "(cached) " >&6
5866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5867 /* end confdefs.h. */
5869 #include <sys/types.h>
5870 #include <sys/ioctl.h>
5871 #include <sys/socket.h>
5872 #ifdef HAVE_SYS_IOCCOM_H
5873 #include <sys/ioccom.h>
5875 #include <net/bpf.h>
5881 u_int i = BIOCSETIF;
5886 if ac_fn_c_try_compile "$LINENO"; then :
5887 ac_cv_lbl_bpf_h_defines_biocsetif=yes
5889 ac_cv_lbl_bpf_h_defines_biocsetif=no
5891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_bpf_h_defines_biocsetif" >&5
5895 $as_echo "$ac_cv_lbl_bpf_h_defines_biocsetif" >&6; }
5897 for ac_header in net/pfilt.h net/enet.h
5899 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5900 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5901 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5902 cat >>confdefs.h <<_ACEOF
5903 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5910 for ac_header in net/nit.h sys/net/nit.h
5912 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5913 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5914 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5915 cat >>confdefs.h <<_ACEOF
5916 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5923 for ac_header in linux/socket.h net/raw.h sys/dlpi.h
5925 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5926 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5927 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5928 cat >>confdefs.h <<_ACEOF
5929 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5937 if test "$ac_cv_lbl_bpf_h_defines_biocsetif" = yes; then
5940 # Check this before DLPI, so that we pick BPF on
5941 # Solaris 11 and later.
5946 # We have BPF, so build valgrindtest with "make test"
5947 # on macOS and FreeBSD (add your OS once there's a
5952 freebsd*|darwin*|linux*)
5953 VALGRINDTEST_SRC=valgrindtest.c
5956 elif test "$ac_cv_header_linux_socket_h" = yes; then
5958 # No prizes for guessing this one.
5963 # XXX - this won't work with older kernels that have
5964 # SOCK_PACKET sockets but not PF_PACKET sockets.
5966 VALGRINDTEST_SRC=valgrindtest.c
5967 elif test "$ac_cv_header_net_pfilt_h" = yes; then
5969 # DEC OSF/1, Digital UNIX, Tru64 UNIX
5972 elif test "$ac_cv_header_net_enet_h" = yes; then
5974 # Stanford Enetfilter.
5977 elif test "$ac_cv_header_net_nit_h" = yes; then
5979 # SunOS 4.x STREAMS NIT.
5982 elif test "$ac_cv_header_sys_net_nit_h" = yes; then
5984 # Pre-SunOS 4.x non-STREAMS NIT.
5987 elif test "$ac_cv_header_net_raw_h" = yes; then
5992 elif test "$ac_cv_header_sys_dlpi_h" = yes; then
5994 # DLPI on pre-Solaris 11 SunOS 5, HP-UX, possibly others.
5999 # Nothing we support.
6002 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine packet capture interface" >&5
6003 $as_echo "$as_me: WARNING: cannot determine packet capture interface" >&2;}
6004 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: (see the INSTALL doc for more info)" >&5
6005 $as_echo "$as_me: WARNING: (see the INSTALL doc for more info)" >&2;}
6008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking packet capture type" >&5
6009 $as_echo_n "checking packet capture type... " >&6; }
6010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $V_PCAP" >&5
6011 $as_echo "$V_PCAP" >&6; }
6015 # Do capture-mechanism-dependent tests.
6020 # Needed for common functions used by pcap-[dlpi,libdlpi].c
6025 # Checks for some header files.
6027 for ac_header in sys/bufmod.h sys/dlpi_ext.h
6029 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6030 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6031 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6032 cat >>confdefs.h <<_ACEOF
6033 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6042 # Checks to see if Solaris has the public libdlpi(3LIB) library.
6043 # Note: The existence of /usr/include/libdlpi.h does not mean it is the
6044 # public libdlpi(3LIB) version. Before libdlpi was made public, a
6045 # private version also existed, which did not have the same APIs.
6046 # Due to a gcc bug, the default search path for 32-bit libraries does
6047 # not include /lib, we add it explicitly here.
6048 # [http://bugs.opensolaris.org/view_bug.do?bug_id=6619485].
6049 # Also, due to the bug above applications that link to libpcap with
6050 # libdlpi will have to add "-L/lib" option to "configure".
6052 saved_ldflags=$LDFLAGS
6053 LDFLAGS="$LIBS -L/lib"
6054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlpi_walk in -ldlpi" >&5
6055 $as_echo_n "checking for dlpi_walk in -ldlpi... " >&6; }
6056 if ${ac_cv_lib_dlpi_dlpi_walk+:} false; then :
6057 $as_echo_n "(cached) " >&6
6059 ac_check_lib_save_LIBS=$LIBS
6061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6062 /* end confdefs.h. */
6064 /* Override any GCC internal prototype to avoid an error.
6065 Use char because int might match the return type of a GCC
6066 builtin and then its argument prototype would still apply. */
6074 return dlpi_walk ();
6079 if ac_fn_c_try_link "$LINENO"; then :
6080 ac_cv_lib_dlpi_dlpi_walk=yes
6082 ac_cv_lib_dlpi_dlpi_walk=no
6084 rm -f core conftest.err conftest.$ac_objext \
6085 conftest$ac_exeext conftest.$ac_ext
6086 LIBS=$ac_check_lib_save_LIBS
6088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dlpi_dlpi_walk" >&5
6089 $as_echo "$ac_cv_lib_dlpi_dlpi_walk" >&6; }
6090 if test "x$ac_cv_lib_dlpi_dlpi_walk" = xyes; then :
6095 $as_echo "#define HAVE_LIBDLPI 1" >>confdefs.h
6102 LDFLAGS=$saved_ldflags
6105 # Checks whether <sys/dlpi.h> is usable, to catch weird SCO
6108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/dlpi.h> is usable" >&5
6109 $as_echo_n "checking whether <sys/dlpi.h> is usable... " >&6; }
6110 if ${ac_cv_sys_dlpi_usable+:} false; then :
6111 $as_echo_n "(cached) " >&6
6113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6114 /* end confdefs.h. */
6116 #include <sys/types.h>
6117 #include <sys/time.h>
6118 #include <sys/dlpi.h>
6123 int i = DL_PROMISC_PHYS;
6128 if ac_fn_c_try_compile "$LINENO"; then :
6129 ac_cv_sys_dlpi_usable=yes
6131 ac_cv_sys_dlpi_usable=no
6133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_dlpi_usable" >&5
6137 $as_echo "$ac_cv_sys_dlpi_usable" >&6; }
6138 if test $ac_cv_sys_dlpi_usable = no ; then
6139 as_fn_error $? "<sys/dlpi.h> is not usable on this system; it probably has a non-standard DLPI" "$LINENO" 5
6143 # Check to see if Solaris has the dl_passive_req_t struct defined
6145 # This check is for DLPI support for passive modes.
6146 # See dlpi(7P) for more details.
6148 ac_fn_c_check_type "$LINENO" "dl_passive_req_t" "ac_cv_type_dl_passive_req_t" "
6149 #include <sys/types.h>
6150 #include <sys/dlpi.h>
6153 if test "x$ac_cv_type_dl_passive_req_t" = xyes; then :
6155 cat >>confdefs.h <<_ACEOF
6156 #define HAVE_DL_PASSIVE_REQ_T 1
6166 # Do we have the wireless extensions?
6168 for ac_header in linux/wireless.h
6170 ac_fn_c_check_header_compile "$LINENO" "linux/wireless.h" "ac_cv_header_linux_wireless_h" "
6171 #include <sys/socket.h>
6172 #include <linux/if.h>
6173 #include <linux/types.h>
6176 if test "x$ac_cv_header_linux_wireless_h" = xyes; then :
6177 cat >>confdefs.h <<_ACEOF
6178 #define HAVE_LINUX_WIRELESS_H 1
6190 # Check whether --with-libnl was given.
6191 if test "${with_libnl+set}" = set; then :
6192 withval=$with_libnl; with_libnl=$withval
6194 with_libnl=if_available
6198 if test x$with_libnl != xno ; then
6201 incdir=-I/usr/include/libnl3
6203 case "$with_libnl" in
6209 if test -d $withval; then
6210 libnldir=-L${withval}/lib/.libs
6211 incdir=-I${withval}/include
6217 # Try libnl 3.x first.
6219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_socket_alloc in -lnl-3" >&5
6220 $as_echo_n "checking for nl_socket_alloc in -lnl-3... " >&6; }
6221 if ${ac_cv_lib_nl_3_nl_socket_alloc+:} false; then :
6222 $as_echo_n "(cached) " >&6
6224 ac_check_lib_save_LIBS=$LIBS
6225 LIBS="-lnl-3 ${incdir} ${libnldir} -lnl-genl-3 -lnl-3 $LIBS"
6226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6227 /* end confdefs.h. */
6229 /* Override any GCC internal prototype to avoid an error.
6230 Use char because int might match the return type of a GCC
6231 builtin and then its argument prototype would still apply. */
6235 char nl_socket_alloc ();
6239 return nl_socket_alloc ();
6244 if ac_fn_c_try_link "$LINENO"; then :
6245 ac_cv_lib_nl_3_nl_socket_alloc=yes
6247 ac_cv_lib_nl_3_nl_socket_alloc=no
6249 rm -f core conftest.err conftest.$ac_objext \
6250 conftest$ac_exeext conftest.$ac_ext
6251 LIBS=$ac_check_lib_save_LIBS
6253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nl_3_nl_socket_alloc" >&5
6254 $as_echo "$ac_cv_lib_nl_3_nl_socket_alloc" >&6; }
6255 if test "x$ac_cv_lib_nl_3_nl_socket_alloc" = xyes; then :
6258 # Yes, we have libnl 3.x.
6260 LIBS="${libnldir} -lnl-genl-3 -lnl-3 $LIBS"
6262 $as_echo "#define HAVE_LIBNL 1" >>confdefs.h
6265 $as_echo "#define HAVE_LIBNL_3_x 1" >>confdefs.h
6268 $as_echo "#define HAVE_LIBNL_NLE 1" >>confdefs.h
6271 $as_echo "#define HAVE_LIBNL_SOCKETS 1" >>confdefs.h
6273 V_INCLS="$V_INCLS ${incdir}"
6279 if test x$have_any_nl = xno ; then
6283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_socket_alloc in -lnl" >&5
6284 $as_echo_n "checking for nl_socket_alloc in -lnl... " >&6; }
6285 if ${ac_cv_lib_nl_nl_socket_alloc+:} false; then :
6286 $as_echo_n "(cached) " >&6
6288 ac_check_lib_save_LIBS=$LIBS
6290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6291 /* end confdefs.h. */
6293 /* Override any GCC internal prototype to avoid an error.
6294 Use char because int might match the return type of a GCC
6295 builtin and then its argument prototype would still apply. */
6299 char nl_socket_alloc ();
6303 return nl_socket_alloc ();
6308 if ac_fn_c_try_link "$LINENO"; then :
6309 ac_cv_lib_nl_nl_socket_alloc=yes
6311 ac_cv_lib_nl_nl_socket_alloc=no
6313 rm -f core conftest.err conftest.$ac_objext \
6314 conftest$ac_exeext conftest.$ac_ext
6315 LIBS=$ac_check_lib_save_LIBS
6317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nl_nl_socket_alloc" >&5
6318 $as_echo "$ac_cv_lib_nl_nl_socket_alloc" >&6; }
6319 if test "x$ac_cv_lib_nl_nl_socket_alloc" = xyes; then :
6322 # Yes, we have libnl 2.x.
6324 LIBS="${libnldir} -lnl-genl -lnl $LIBS"
6326 $as_echo "#define HAVE_LIBNL 1" >>confdefs.h
6329 $as_echo "#define HAVE_LIBNL_2_x 1" >>confdefs.h
6332 $as_echo "#define HAVE_LIBNL_NLE 1" >>confdefs.h
6335 $as_echo "#define HAVE_LIBNL_SOCKETS 1" >>confdefs.h
6343 if test x$have_any_nl = xno ; then
6345 # No, we don't; do we have libnl 1.x?
6347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_handle_alloc in -lnl" >&5
6348 $as_echo_n "checking for nl_handle_alloc in -lnl... " >&6; }
6349 if ${ac_cv_lib_nl_nl_handle_alloc+:} false; then :
6350 $as_echo_n "(cached) " >&6
6352 ac_check_lib_save_LIBS=$LIBS
6354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6355 /* end confdefs.h. */
6357 /* Override any GCC internal prototype to avoid an error.
6358 Use char because int might match the return type of a GCC
6359 builtin and then its argument prototype would still apply. */
6363 char nl_handle_alloc ();
6367 return nl_handle_alloc ();
6372 if ac_fn_c_try_link "$LINENO"; then :
6373 ac_cv_lib_nl_nl_handle_alloc=yes
6375 ac_cv_lib_nl_nl_handle_alloc=no
6377 rm -f core conftest.err conftest.$ac_objext \
6378 conftest$ac_exeext conftest.$ac_ext
6379 LIBS=$ac_check_lib_save_LIBS
6381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nl_nl_handle_alloc" >&5
6382 $as_echo "$ac_cv_lib_nl_nl_handle_alloc" >&6; }
6383 if test "x$ac_cv_lib_nl_nl_handle_alloc" = xyes; then :
6388 LIBS="${libnldir} -lnl $LIBS"
6390 $as_echo "#define HAVE_LIBNL 1" >>confdefs.h
6398 if test x$have_any_nl = xno ; then
6400 # No, we don't have libnl at all.
6402 if test x$with_libnl = xyes ; then
6403 as_fn_error $? "libnl support requested but libnl not found" "$LINENO" 5
6408 for ac_header in linux/ethtool.h
6410 ac_fn_c_check_header_compile "$LINENO" "linux/ethtool.h" "ac_cv_header_linux_ethtool_h" "
6411 $ac_includes_default
6412 #include <linux/types.h>
6415 if test "x$ac_cv_header_linux_ethtool_h" = xyes; then :
6416 cat >>confdefs.h <<_ACEOF
6417 #define HAVE_LINUX_ETHTOOL_H 1
6426 # Check to see if struct tpacket_stats is defined in
6427 # <linux/if_packet.h>. If so, then pcap-linux.c can use this
6428 # to report proper statistics.
6432 ac_fn_c_check_type "$LINENO" "struct tpacket_stats" "ac_cv_type_struct_tpacket_stats" "
6433 #include <linux/if_packet.h>
6436 if test "x$ac_cv_type_struct_tpacket_stats" = xyes; then :
6438 cat >>confdefs.h <<_ACEOF
6439 #define HAVE_STRUCT_TPACKET_STATS 1
6447 # Check to see if the tpacket_auxdata struct has a tp_vlan_tci member.
6449 # NOTE: any failure means we conclude that it doesn't have that
6450 # member, so if we don't have tpacket_auxdata, we conclude it
6451 # doesn't have that member (which is OK, as either we won't be
6452 # using code that would use that member, or we wouldn't compile
6454 ac_fn_c_check_member "$LINENO" "struct tpacket_auxdata" "tp_vlan_tci" "ac_cv_member_struct_tpacket_auxdata_tp_vlan_tci" "
6455 #include <sys/types.h>
6456 #include <linux/if_packet.h>
6459 if test "x$ac_cv_member_struct_tpacket_auxdata_tp_vlan_tci" = xyes; then :
6461 cat >>confdefs.h <<_ACEOF
6462 #define HAVE_STRUCT_TPACKET_AUXDATA_TP_VLAN_TCI 1
6472 # Check whether we have the *BSD-style ioctls.
6474 for ac_header in net/if_media.h
6476 ac_fn_c_check_header_mongrel "$LINENO" "net/if_media.h" "ac_cv_header_net_if_media_h" "$ac_includes_default"
6477 if test "x$ac_cv_header_net_if_media_h" = xyes; then :
6478 cat >>confdefs.h <<_ACEOF
6479 #define HAVE_NET_IF_MEDIA_H 1
6488 # Check whether we have struct BPF_TIMEVAL.
6490 ac_fn_c_check_type "$LINENO" "struct BPF_TIMEVAL" "ac_cv_type_struct_BPF_TIMEVAL" "
6491 #include <sys/types.h>
6492 #include <sys/ioctl.h>
6493 #ifdef HAVE_SYS_IOCCOM_H
6494 #include <sys/ioccom.h>
6496 #include <net/bpf.h>
6499 if test "x$ac_cv_type_struct_BPF_TIMEVAL" = xyes; then :
6501 cat >>confdefs.h <<_ACEOF
6502 #define HAVE_STRUCT_BPF_TIMEVAL 1
6512 # --with-pcap=dag is the only way to get here, and it means
6513 # "DAG support but nothing else"
6515 V_DEFS="$V_DEFS -DDAG_ONLY"
6521 # --with-pcap=septel is the only way to get here, and it means
6522 # "Septel support but nothing else"
6524 V_DEFS="$V_DEFS -DSEPTEL_ONLY"
6530 # --with-pcap=snf is the only way to get here, and it means
6531 # "SNF support but nothing else"
6533 V_DEFS="$V_DEFS -DSNF_ONLY"
6541 as_fn_error $? "$V_PCAP is not a valid pcap type" "$LINENO" 5
6545 if test "$V_PCAP" != null
6547 ac_fn_c_check_func "$LINENO" "getifaddrs" "ac_cv_func_getifaddrs"
6548 if test "x$ac_cv_func_getifaddrs" = xyes; then :
6551 # We have "getifaddrs()"; make sure we have <ifaddrs.h>
6552 # as well, just in case some platform is really weird.
6554 ac_fn_c_check_header_mongrel "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "$ac_includes_default"
6555 if test "x$ac_cv_header_ifaddrs_h" = xyes; then :
6558 # We have the header, so we use "getifaddrs()" to
6559 # get the list of interfaces.
6561 V_FINDALLDEVS=fad-getad.c
6566 # We don't have the header - give up.
6567 # XXX - we could also fall back on some other
6568 # mechanism, but, for now, this'll catch this
6569 # problem so that we can at least try to figure
6570 # out something to do on systems with "getifaddrs()"
6571 # but without "ifaddrs.h", if there is something
6572 # we can do on those systems.
6574 as_fn_error $? "Your system has getifaddrs() but doesn't have a usable <ifaddrs.h>." "$LINENO" 5
6583 # Well, we don't have "getifaddrs()", at least not with the
6584 # libraries with which we've decided we need to link
6585 # libpcap with, so we have to use some other mechanism.
6587 # Note that this may happen on Solaris, which has
6588 # getifaddrs(), but in -lsocket, not in -lxnet, so we
6589 # won't find it if we link with -lxnet, which we want
6590 # to do for other reasons.
6592 # For now, we use either the SIOCGIFCONF ioctl or the
6593 # SIOCGLIFCONF ioctl, preferring the latter if we have
6594 # it; the latter is a Solarisism that first appeared
6595 # in Solaris 8. (Solaris's getifaddrs() appears to
6596 # be built atop SIOCGLIFCONF; using it directly
6597 # avoids a not-all-that-useful middleman.)
6599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have SIOCGLIFCONF" >&5
6600 $as_echo_n "checking whether we have SIOCGLIFCONF... " >&6; }
6601 if ${ac_cv_lbl_have_siocglifconf+:} false; then :
6602 $as_echo_n "(cached) " >&6
6604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6605 /* end confdefs.h. */
6606 #include <sys/param.h>
6607 #include <sys/file.h>
6608 #include <sys/ioctl.h>
6609 #include <sys/socket.h>
6610 #include <sys/sockio.h>
6614 ioctl(0, SIOCGLIFCONF, (char *)0);
6619 if ac_fn_c_try_compile "$LINENO"; then :
6620 ac_cv_lbl_have_siocglifconf=yes
6622 ac_cv_lbl_have_siocglifconf=no
6624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_have_siocglifconf" >&5
6628 $as_echo "$ac_cv_lbl_have_siocglifconf" >&6; }
6629 if test $ac_cv_lbl_have_siocglifconf = yes ; then
6630 V_FINDALLDEVS=fad-glifc.c
6632 V_FINDALLDEVS=fad-gifc.c
6644 for ac_header in linux/net_tstamp.h
6646 ac_fn_c_check_header_mongrel "$LINENO" "linux/net_tstamp.h" "ac_cv_header_linux_net_tstamp_h" "$ac_includes_default"
6647 if test "x$ac_cv_header_linux_net_tstamp_h" = xyes; then :
6648 cat >>confdefs.h <<_ACEOF
6649 #define HAVE_LINUX_NET_TSTAMP_H 1
6658 { $as_echo "$as_me:${as_lineno-$LINENO}: no hardware timestamp support implemented for $host_os" >&5
6659 $as_echo "$as_me: no hardware timestamp support implemented for $host_os" >&6;}
6663 # Check whether --enable-packet-ring was given.
6664 if test "${enable_packet_ring+set}" = set; then :
6665 enableval=$enable_packet_ring;
6667 enable_packet_ring=yes
6671 if test "x$enable_packet_ring" != "xno" ; then
6673 $as_echo "#define PCAP_SUPPORT_PACKET_RING 1" >>confdefs.h
6679 # Check for socklen_t.
6681 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
6682 #include <sys/types.h>
6683 #include <sys/socket.h>
6686 if test "x$ac_cv_type_socklen_t" = xyes; then :
6688 cat >>confdefs.h <<_ACEOF
6689 #define HAVE_SOCKLEN_T 1
6696 # Check whether --enable-ipv6 was given.
6697 if test "${enable_ipv6+set}" = set; then :
6698 enableval=$enable_ipv6;
6703 if test "$enable_ipv6" != "no"; then
6705 # We've already made sure we have getaddrinfo above in
6706 # AC_LBL_LIBRARY_NET.
6709 $as_echo "#define INET6 1" >>confdefs.h
6713 # Check for Endace DAG card support.
6715 # Check whether --with-dag was given.
6716 if test "${with_dag+set}" = set; then :
6718 if test "$withval" = no
6720 # User doesn't want DAG support.
6722 elif test "$withval" = yes
6724 # User wants DAG support but hasn't specified a directory.
6727 # User wants DAG support and has specified a directory, so use the provided value.
6734 if test "$V_PCAP" = dag; then
6735 # User requested DAG-only libpcap, so we'd better have
6738 elif test "xxx_only" = yes; then
6739 # User requested something-else-only pcap, so they don't
6744 # Use DAG API if present, otherwise don't
6753 # Check whether --with-dag-includes was given.
6754 if test "${with_dag_includes+set}" = set; then :
6755 withval=$with_dag_includes;
6756 # User wants DAG support and has specified a header directory, so use the provided value.
6758 dag_include_dir=$withval
6764 # Check whether --with-dag-libraries was given.
6765 if test "${with_dag_libraries+set}" = set; then :
6766 withval=$with_dag_libraries;
6767 # User wants DAG support and has specified a library directory, so use the provided value.
6769 dag_lib_dir=$withval
6774 if test "$want_dag" != no; then
6776 # If necessary, set default paths for DAG API headers and libraries.
6777 if test -z "$dag_root"; then
6781 if test -z "$dag_include_dir"; then
6782 dag_include_dir="$dag_root/include"
6785 if test -z "$dag_lib_dir"; then
6786 dag_lib_dir="$dag_root/lib"
6789 V_INCLS="$V_INCLS -I$dag_include_dir"
6791 for ac_header in dagapi.h
6793 ac_fn_c_check_header_mongrel "$LINENO" "dagapi.h" "ac_cv_header_dagapi_h" "$ac_includes_default"
6794 if test "x$ac_cv_header_dagapi_h" = xyes; then :
6795 cat >>confdefs.h <<_ACEOF
6796 #define HAVE_DAGAPI_H 1
6804 if test "$ac_cv_header_dagapi_h" = yes; then
6806 if test $V_PCAP != dag ; then
6807 SSRC="$SSRC pcap-dag.c"
6810 # Check for various DAG API functions.
6811 # Don't need to save and restore LIBS to prevent -ldag being
6812 # included if there's a found-action (arg 3).
6813 saved_ldflags=$LDFLAGS
6814 LDFLAGS="-L$dag_lib_dir"
6815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dag_attach_stream in -ldag" >&5
6816 $as_echo_n "checking for dag_attach_stream in -ldag... " >&6; }
6817 if ${ac_cv_lib_dag_dag_attach_stream+:} false; then :
6818 $as_echo_n "(cached) " >&6
6820 ac_check_lib_save_LIBS=$LIBS
6822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6823 /* end confdefs.h. */
6825 /* Override any GCC internal prototype to avoid an error.
6826 Use char because int might match the return type of a GCC
6827 builtin and then its argument prototype would still apply. */
6831 char dag_attach_stream ();
6835 return dag_attach_stream ();
6840 if ac_fn_c_try_link "$LINENO"; then :
6841 ac_cv_lib_dag_dag_attach_stream=yes
6843 ac_cv_lib_dag_dag_attach_stream=no
6845 rm -f core conftest.err conftest.$ac_objext \
6846 conftest$ac_exeext conftest.$ac_ext
6847 LIBS=$ac_check_lib_save_LIBS
6849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dag_dag_attach_stream" >&5
6850 $as_echo "$ac_cv_lib_dag_dag_attach_stream" >&6; }
6851 if test "x$ac_cv_lib_dag_dag_attach_stream" = xyes; then :
6852 cat >>confdefs.h <<_ACEOF
6853 #define HAVE_LIBDAG 1
6859 as_fn_error $? "DAG library lacks streams support" "$LINENO" 5
6862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dag_attach_stream64 in -ldag" >&5
6863 $as_echo_n "checking for dag_attach_stream64 in -ldag... " >&6; }
6864 if ${ac_cv_lib_dag_dag_attach_stream64+:} false; then :
6865 $as_echo_n "(cached) " >&6
6867 ac_check_lib_save_LIBS=$LIBS
6869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6870 /* end confdefs.h. */
6872 /* Override any GCC internal prototype to avoid an error.
6873 Use char because int might match the return type of a GCC
6874 builtin and then its argument prototype would still apply. */
6878 char dag_attach_stream64 ();
6882 return dag_attach_stream64 ();
6887 if ac_fn_c_try_link "$LINENO"; then :
6888 ac_cv_lib_dag_dag_attach_stream64=yes
6890 ac_cv_lib_dag_dag_attach_stream64=no
6892 rm -f core conftest.err conftest.$ac_objext \
6893 conftest$ac_exeext conftest.$ac_ext
6894 LIBS=$ac_check_lib_save_LIBS
6896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dag_dag_attach_stream64" >&5
6897 $as_echo "$ac_cv_lib_dag_dag_attach_stream64" >&6; }
6898 if test "x$ac_cv_lib_dag_dag_attach_stream64" = xyes; then :
6899 dag_large_streams="1"
6901 dag_large_streams="0"
6904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dag_get_erf_types in -ldag" >&5
6905 $as_echo_n "checking for dag_get_erf_types in -ldag... " >&6; }
6906 if ${ac_cv_lib_dag_dag_get_erf_types+:} false; then :
6907 $as_echo_n "(cached) " >&6
6909 ac_check_lib_save_LIBS=$LIBS
6911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6912 /* end confdefs.h. */
6914 /* Override any GCC internal prototype to avoid an error.
6915 Use char because int might match the return type of a GCC
6916 builtin and then its argument prototype would still apply. */
6920 char dag_get_erf_types ();
6924 return dag_get_erf_types ();
6929 if ac_fn_c_try_link "$LINENO"; then :
6930 ac_cv_lib_dag_dag_get_erf_types=yes
6932 ac_cv_lib_dag_dag_get_erf_types=no
6934 rm -f core conftest.err conftest.$ac_objext \
6935 conftest$ac_exeext conftest.$ac_ext
6936 LIBS=$ac_check_lib_save_LIBS
6938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dag_dag_get_erf_types" >&5
6939 $as_echo "$ac_cv_lib_dag_dag_get_erf_types" >&6; }
6940 if test "x$ac_cv_lib_dag_dag_get_erf_types" = xyes; then :
6943 $as_echo "#define HAVE_DAG_GET_ERF_TYPES 1" >>confdefs.h
6947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dag_get_stream_erf_types in -ldag" >&5
6948 $as_echo_n "checking for dag_get_stream_erf_types in -ldag... " >&6; }
6949 if ${ac_cv_lib_dag_dag_get_stream_erf_types+:} false; then :
6950 $as_echo_n "(cached) " >&6
6952 ac_check_lib_save_LIBS=$LIBS
6954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6955 /* end confdefs.h. */
6957 /* Override any GCC internal prototype to avoid an error.
6958 Use char because int might match the return type of a GCC
6959 builtin and then its argument prototype would still apply. */
6963 char dag_get_stream_erf_types ();
6967 return dag_get_stream_erf_types ();
6972 if ac_fn_c_try_link "$LINENO"; then :
6973 ac_cv_lib_dag_dag_get_stream_erf_types=yes
6975 ac_cv_lib_dag_dag_get_stream_erf_types=no
6977 rm -f core conftest.err conftest.$ac_objext \
6978 conftest$ac_exeext conftest.$ac_ext
6979 LIBS=$ac_check_lib_save_LIBS
6981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dag_dag_get_stream_erf_types" >&5
6982 $as_echo "$ac_cv_lib_dag_dag_get_stream_erf_types" >&6; }
6983 if test "x$ac_cv_lib_dag_dag_get_stream_erf_types" = xyes; then :
6986 $as_echo "#define HAVE_DAG_GET_STREAM_ERF_TYPES 1" >>confdefs.h
6991 LDFLAGS=$saved_ldflags
6994 # We assume that if we have libdag we have libdagconf,
6995 # as they're installed at the same time from the same
6998 LIBS="$LIBS -ldag -ldagconf"
6999 LDFLAGS="$LDFLAGS -L$dag_lib_dir"
7001 if test "$dag_large_streams" = 1; then
7003 $as_echo "#define HAVE_DAG_LARGE_STREAMS_API 1" >>confdefs.h
7005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for vdag_set_device_info in -lvdag" >&5
7006 $as_echo_n "checking for vdag_set_device_info in -lvdag... " >&6; }
7007 if ${ac_cv_lib_vdag_vdag_set_device_info+:} false; then :
7008 $as_echo_n "(cached) " >&6
7010 ac_check_lib_save_LIBS=$LIBS
7012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7013 /* end confdefs.h. */
7015 /* Override any GCC internal prototype to avoid an error.
7016 Use char because int might match the return type of a GCC
7017 builtin and then its argument prototype would still apply. */
7021 char vdag_set_device_info ();
7025 return vdag_set_device_info ();
7030 if ac_fn_c_try_link "$LINENO"; then :
7031 ac_cv_lib_vdag_vdag_set_device_info=yes
7033 ac_cv_lib_vdag_vdag_set_device_info=no
7035 rm -f core conftest.err conftest.$ac_objext \
7036 conftest$ac_exeext conftest.$ac_ext
7037 LIBS=$ac_check_lib_save_LIBS
7039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_vdag_vdag_set_device_info" >&5
7040 $as_echo "$ac_cv_lib_vdag_vdag_set_device_info" >&6; }
7041 if test "x$ac_cv_lib_vdag_vdag_set_device_info" = xyes; then :
7042 ac_dag_have_vdag="1"
7044 ac_dag_have_vdag="0"
7047 if test "$ac_dag_have_vdag" = 1; then
7049 $as_echo "#define HAVE_DAG_VDAG 1" >>confdefs.h
7051 if test "$ac_lbl_have_pthreads" != "found"; then
7052 as_fn_error $? "DAG requires pthreads, but we didn't find them" "$LINENO" 5
7054 LIBS="$LIBS $PTHREAD_LIBS"
7059 $as_echo "#define HAVE_DAG_API 1" >>confdefs.h
7063 if test "$V_PCAP" = dag; then
7064 # User requested "dag" capture type but we couldn't
7065 # find the DAG API support.
7066 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
7069 if test "$want_dag" = yes; then
7070 # User wanted DAG support but we couldn't find it.
7071 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
7077 # Check whether --with-septel was given.
7078 if test "${with_septel+set}" = set; then :
7079 withval=$with_septel;
7080 if test "$withval" = no
7083 elif test "$withval" = yes
7089 septel_root=$withval
7094 if test "$V_PCAP" = septel; then
7095 # User requested Septel-only libpcap, so we'd better have
7098 elif test "xxx_only" = yes; then
7099 # User requested something-else-only pcap, so they don't
7100 # want Septel support.
7104 # Use Septel API if present, otherwise don't
7106 want_septel=ifpresent
7112 ac_cv_lbl_septel_api=no
7113 if test "$with_septel" != no; then
7115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have Septel API headers" >&5
7116 $as_echo_n "checking whether we have Septel API headers... " >&6; }
7118 # If necessary, set default paths for Septel API headers and libraries.
7119 if test -z "$septel_root"; then
7120 septel_root=$srcdir/../septel
7123 septel_tools_dir="$septel_root"
7124 septel_include_dir="$septel_root/INC"
7126 if test -r "$septel_include_dir/msg.h"; then
7127 ac_cv_lbl_septel_api=yes
7130 if test "$ac_cv_lbl_septel_api" = yes; then
7131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($septel_include_dir)" >&5
7132 $as_echo "yes ($septel_include_dir)" >&6; }
7134 V_INCLS="$V_INCLS -I$septel_include_dir"
7135 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"
7136 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"
7138 if test "$V_PCAP" != septel ; then
7139 SSRC="$SSRC pcap-septel.c"
7143 $as_echo "#define HAVE_SEPTEL_API 1" >>confdefs.h
7146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7147 $as_echo "no" >&6; }
7149 if test "$V_PCAP" = septel; then
7150 # User requested "septel" capture type but
7151 # we couldn't find the Septel API support.
7152 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
7155 if test "$want_septel" = yes; then
7156 # User wanted Septel support but we couldn't find it.
7157 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
7162 # Check for Myricom SNF support.
7164 # Check whether --with-snf was given.
7165 if test "${with_snf+set}" = set; then :
7167 if test "$withval" = no
7169 # User explicitly doesn't want SNF
7171 elif test "$withval" = yes
7173 # User wants SNF support but hasn't specified a directory.
7176 # User wants SNF support with a specified directory.
7183 if test "$V_PCAP" = snf; then
7184 # User requested Sniffer-only libpcap, so we'd better have
7187 elif test "xxx_only" = yes; then
7188 # User requested something-else-only pcap, so they don't
7193 # Use Sniffer API if present, otherwise don't
7202 # Check whether --with-snf-includes was given.
7203 if test "${with_snf_includes+set}" = set; then :
7204 withval=$with_snf_includes;
7205 # User wants SNF with specific header directory
7207 snf_include_dir=$withval
7213 # Check whether --with-snf-libraries was given.
7214 if test "${with_snf_libraries+set}" = set; then :
7215 withval=$with_snf_libraries;
7216 # User wants SNF with specific lib directory
7218 snf_lib_dir=$withval
7223 ac_cv_lbl_snf_api=no
7224 if test "$with_snf" != no; then
7226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have Myricom Sniffer API" >&5
7227 $as_echo_n "checking whether we have Myricom Sniffer API... " >&6; }
7229 # If necessary, set default paths for Sniffer headers and libraries.
7230 if test -z "$snf_root"; then
7234 if test -z "$snf_include_dir"; then
7235 snf_include_dir="$snf_root/include"
7238 if test -z "$snf_lib_dir"; then
7239 snf_lib_dir="$snf_root/lib"
7242 if test -f "$snf_include_dir/snf.h"; then
7243 # We found a header; make sure we can link with the library
7244 saved_ldflags=$LDFLAGS
7245 LDFLAGS="$LDFLAGS -L$snf_lib_dir"
7246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snf_init in -lsnf" >&5
7247 $as_echo_n "checking for snf_init in -lsnf... " >&6; }
7248 if ${ac_cv_lib_snf_snf_init+:} false; then :
7249 $as_echo_n "(cached) " >&6
7251 ac_check_lib_save_LIBS=$LIBS
7253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7254 /* end confdefs.h. */
7256 /* Override any GCC internal prototype to avoid an error.
7257 Use char because int might match the return type of a GCC
7258 builtin and then its argument prototype would still apply. */
7271 if ac_fn_c_try_link "$LINENO"; then :
7272 ac_cv_lib_snf_snf_init=yes
7274 ac_cv_lib_snf_snf_init=no
7276 rm -f core conftest.err conftest.$ac_objext \
7277 conftest$ac_exeext conftest.$ac_ext
7278 LIBS=$ac_check_lib_save_LIBS
7280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_snf_snf_init" >&5
7281 $as_echo "$ac_cv_lib_snf_snf_init" >&6; }
7282 if test "x$ac_cv_lib_snf_snf_init" = xyes; then :
7283 ac_cv_lbl_snf_api="yes"
7286 LDFLAGS="$saved_ldflags"
7287 if test "$ac_cv_lbl_snf_api" = no; then
7288 as_fn_error $? "SNF API cannot correctly be linked; check config.log" "$LINENO" 5
7292 if test "$ac_cv_lbl_snf_api" = yes; then
7293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($snf_root)" >&5
7294 $as_echo "yes ($snf_root)" >&6; }
7296 V_INCLS="$V_INCLS -I$snf_include_dir"
7298 LDFLAGS="$LDFLAGS -L$snf_lib_dir"
7300 if test "$V_PCAP" != snf ; then
7301 SSRC="$SSRC pcap-snf.c"
7305 $as_echo "#define HAVE_SNF_API 1" >>confdefs.h
7308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7309 $as_echo "no" >&6; }
7311 if test "$want_snf" = yes; then
7312 # User requested "snf" capture type but
7313 # we couldn't find the Sniffer API support.
7314 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
7317 if test "$want_snf" = yes; then
7318 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
7323 # Check for Riverbed TurboCap support.
7325 # Check whether --with-turbocap was given.
7326 if test "${with_turbocap+set}" = set; then :
7327 withval=$with_turbocap;
7328 if test "$withval" = no
7330 # User explicitly doesn't want TurboCap
7332 elif test "$withval" = yes
7334 # User wants TurboCap support but hasn't specified a directory.
7337 # User wants TurboCap support with a specified directory.
7339 turbocap_root=$withval
7344 if test "xxx_only" = yes; then
7345 # User requested something-else-only pcap, so they don't
7346 # want TurboCap support.
7350 # Use TurboCap API if present, otherwise don't
7352 want_turbocap=ifpresent
7358 ac_cv_lbl_turbocap_api=no
7359 if test "$want_turbocap" != no; then
7361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether TurboCap is supported" >&5
7362 $as_echo_n "checking whether TurboCap is supported... " >&6; }
7364 save_CFLAGS="$CFLAGS"
7366 if test ! -z "$turbocap_root"; then
7367 TURBOCAP_CFLAGS="-I$turbocap_root/include"
7368 TURBOCAP_LIBS="-L$turbocap_root/lib"
7369 CFLAGS="$CFLAGS $TURBOCAP_CFLAGS"
7372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7373 /* end confdefs.h. */
7381 TC_INSTANCE a; TC_PORT b; TC_BOARD c;
7383 (void)TcInstanceCreateByName("foo", &i);
7389 if ac_fn_c_try_compile "$LINENO"; then :
7390 ac_cv_lbl_turbocap_api=yes
7392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7394 CFLAGS="$save_CFLAGS"
7395 if test $ac_cv_lbl_turbocap_api = yes; then
7396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7397 $as_echo "yes" >&6; }
7399 SSRC="$SSRC pcap-tc.c"
7400 V_INCLS="$V_INCLS $TURBOCAP_CFLAGS"
7401 LIBS="$LIBS $TURBOCAP_LIBS -lTcApi -lpthread -lstdc++"
7404 $as_echo "#define HAVE_TC_API 1" >>confdefs.h
7407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7408 $as_echo "no" >&6; }
7410 if test "$want_turbocap" = yes; then
7411 # User wanted Turbo support but we couldn't find it.
7412 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
7417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable remote packet capture" >&5
7418 $as_echo_n "checking whether to enable remote packet capture... " >&6; }
7419 # Check whether --enable-remote was given.
7420 if test "${enable_remote+set}" = set; then :
7421 enableval=$enable_remote;
7426 case "$enableval" in
7427 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7428 $as_echo "yes" >&6; }
7429 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Remote packet capture may expose libpcap-based applications" >&5
7430 $as_echo "$as_me: WARNING: Remote packet capture may expose libpcap-based applications" >&2;}
7431 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: to attacks by malicious remote capture servers!" >&5
7432 $as_echo "$as_me: WARNING: to attacks by malicious remote capture servers!" >&2;}
7434 # rpcapd requires pthreads on UN*X.
7436 if test "$ac_lbl_have_pthreads" != "found"; then
7437 as_fn_error $? "rpcapd requires pthreads, but we didn't find them" "$LINENO" 5
7440 # It also requires crypt().
7441 # Do we have it in the system libraries?
7443 ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt"
7444 if test "x$ac_cv_func_crypt" = xyes; then :
7449 # No. Do we have it in -lcrypt?
7451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
7452 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
7453 if ${ac_cv_lib_crypt_crypt+:} false; then :
7454 $as_echo_n "(cached) " >&6
7456 ac_check_lib_save_LIBS=$LIBS
7457 LIBS="-lcrypt $LIBS"
7458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7459 /* end confdefs.h. */
7461 /* Override any GCC internal prototype to avoid an error.
7462 Use char because int might match the return type of a GCC
7463 builtin and then its argument prototype would still apply. */
7476 if ac_fn_c_try_link "$LINENO"; then :
7477 ac_cv_lib_crypt_crypt=yes
7479 ac_cv_lib_crypt_crypt=no
7481 rm -f core conftest.err conftest.$ac_objext \
7482 conftest$ac_exeext conftest.$ac_ext
7483 LIBS=$ac_check_lib_save_LIBS
7485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
7486 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
7487 if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
7490 # Yes; add -lcrypt to the libraries for rpcapd.
7492 RPCAPD_LIBS="$RPCAPD_LIBS -lcrypt"
7496 as_fn_error $? "rpcapd requires crypt(), but we didn't find it" "$LINENO" 5
7505 # OK, we have crypt(). Do we have getspnam()?
7507 for ac_func in getspnam
7509 ac_fn_c_check_func "$LINENO" "getspnam" "ac_cv_func_getspnam"
7510 if test "x$ac_cv_func_getspnam" = xyes; then :
7511 cat >>confdefs.h <<_ACEOF
7512 #define HAVE_GETSPNAM 1
7520 # Check for various members of struct msghdr.
7522 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
7523 #include \"ftmacros.h\"
7524 #include <sys/socket.h>
7527 if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes; then :
7529 cat >>confdefs.h <<_ACEOF
7530 #define HAVE_STRUCT_MSGHDR_MSG_CONTROL 1
7536 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_flags" "ac_cv_member_struct_msghdr_msg_flags" "
7537 #include \"ftmacros.h\"
7538 #include <sys/socket.h>
7541 if test "x$ac_cv_member_struct_msghdr_msg_flags" = xyes; then :
7543 cat >>confdefs.h <<_ACEOF
7544 #define HAVE_STRUCT_MSGHDR_MSG_FLAGS 1
7552 $as_echo "#define ENABLE_REMOTE /**/" >>confdefs.h
7554 SSRC="$SSRC pcap-new.c pcap-rpcap.c rpcap-protocol.c sockutils.c"
7555 BUILD_RPCAPD=build-rpcapd
7556 INSTALL_RPCAPD=install-rpcapd
7558 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7559 $as_echo "no" >&6; }
7563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build optimizer debugging code" >&5
7564 $as_echo_n "checking whether to build optimizer debugging code... " >&6; }
7565 # Check whether --enable-optimizer-dbg was given.
7566 if test "${enable_optimizer_dbg+set}" = set; then :
7567 enableval=$enable_optimizer_dbg;
7570 if test "$enable_optimizer_dbg" = "yes"; then
7572 $as_echo "#define BDEBUG 1" >>confdefs.h
7575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_optimizer_dbg-no}" >&5
7576 $as_echo "${enable_optimizer_dbg-no}" >&6; }
7578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build parser debugging code" >&5
7579 $as_echo_n "checking whether to build parser debugging code... " >&6; }
7580 # Check whether --enable-yydebug was given.
7581 if test "${enable_yydebug+set}" = set; then :
7582 enableval=$enable_yydebug;
7585 if test "$enable_yydebug" = "yes"; then
7587 $as_echo "#define YYDEBUG 1" >>confdefs.h
7590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_yydebug-no}" >&5
7591 $as_echo "${enable_yydebug-no}" >&6; }
7596 for ac_prog in flex lex
7598 # Extract the first word of "$ac_prog", so it can be a program name with args.
7599 set dummy $ac_prog; ac_word=$2
7600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7601 $as_echo_n "checking for $ac_word... " >&6; }
7602 if ${ac_cv_prog_LEX+:} false; then :
7603 $as_echo_n "(cached) " >&6
7605 if test -n "$LEX"; then
7606 ac_cv_prog_LEX="$LEX" # Let the user override the test.
7608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7612 test -z "$as_dir" && as_dir=.
7613 for ac_exec_ext in '' $ac_executable_extensions; do
7614 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7615 ac_cv_prog_LEX="$ac_prog"
7616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7626 if test -n "$LEX"; then
7627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
7628 $as_echo "$LEX" >&6; }
7630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7631 $as_echo "no" >&6; }
7635 test -n "$LEX" && break
7637 test -n "$LEX" || LEX=":"
7639 if test "x$LEX" != "x:"; then
7640 cat >conftest.l <<_ACEOF
7646 e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
7647 yyless ((input () != 0)); }
7648 f { unput (yytext[0]); }
7649 . { BEGIN INITIAL; }
7651 #ifdef YYTEXT_POINTER
7652 extern char *yytext;
7657 return ! yylex () + ! yywrap ();
7660 { { ac_try="$LEX conftest.l"
7662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7663 *) ac_try_echo=$ac_try;;
7665 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7666 $as_echo "$ac_try_echo"; } >&5
7667 (eval "$LEX conftest.l") 2>&5
7669 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7670 test $ac_status = 0; }
7671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
7672 $as_echo_n "checking lex output file root... " >&6; }
7673 if ${ac_cv_prog_lex_root+:} false; then :
7674 $as_echo_n "(cached) " >&6
7677 if test -f lex.yy.c; then
7678 ac_cv_prog_lex_root=lex.yy
7679 elif test -f lexyy.c; then
7680 ac_cv_prog_lex_root=lexyy
7682 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
7685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
7686 $as_echo "$ac_cv_prog_lex_root" >&6; }
7687 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
7689 if test -z "${LEXLIB+set}"; then
7690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
7691 $as_echo_n "checking lex library... " >&6; }
7692 if ${ac_cv_lib_lex+:} false; then :
7693 $as_echo_n "(cached) " >&6
7697 ac_cv_lib_lex='none needed'
7698 for ac_lib in '' -lfl -ll; do
7699 LIBS="$ac_lib $ac_save_LIBS"
7700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7701 /* end confdefs.h. */
7702 `cat $LEX_OUTPUT_ROOT.c`
7704 if ac_fn_c_try_link "$LINENO"; then :
7705 ac_cv_lib_lex=$ac_lib
7707 rm -f core conftest.err conftest.$ac_objext \
7708 conftest$ac_exeext conftest.$ac_ext
7709 test "$ac_cv_lib_lex" != 'none needed' && break
7714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
7715 $as_echo "$ac_cv_lib_lex" >&6; }
7716 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
7720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
7721 $as_echo_n "checking whether yytext is a pointer... " >&6; }
7722 if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
7723 $as_echo_n "(cached) " >&6
7725 # POSIX says lex can declare yytext either as a pointer or an array; the
7726 # default is implementation-dependent. Figure out which it is, since
7727 # not all implementations provide the %pointer and %array declarations.
7728 ac_cv_prog_lex_yytext_pointer=no
7730 LIBS="$LEXLIB $ac_save_LIBS"
7731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7732 /* end confdefs.h. */
7734 #define YYTEXT_POINTER 1
7735 `cat $LEX_OUTPUT_ROOT.c`
7737 if ac_fn_c_try_link "$LINENO"; then :
7738 ac_cv_prog_lex_yytext_pointer=yes
7740 rm -f core conftest.err conftest.$ac_objext \
7741 conftest$ac_exeext conftest.$ac_ext
7745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
7746 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
7747 if test $ac_cv_prog_lex_yytext_pointer = yes; then
7749 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
7752 rm -f conftest.l $LEX_OUTPUT_ROOT.c
7755 if test "$LEX" = ":"; then
7756 as_fn_error $? "Neither flex nor lex was found." "$LINENO" 5
7760 # Make sure {f}lex supports the -P, --header-file, and --nounput flags
7761 # and supports processing our scanner.l.
7763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for capable lex" >&5
7764 $as_echo_n "checking for capable lex... " >&6; }
7765 if ${tcpdump_cv_capable_lex+:} false; then :
7766 $as_echo_n "(cached) " >&6
7768 if $LEX -P pcap_ --header-file=/dev/null --nounput -t $srcdir/scanner.l > /dev/null 2>&1; then
7769 tcpdump_cv_capable_lex=yes
7771 tcpdump_cv_capable_lex=insufficient
7774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcpdump_cv_capable_lex" >&5
7775 $as_echo "$tcpdump_cv_capable_lex" >&6; }
7776 if test $tcpdump_cv_capable_lex = insufficient ; then
7777 as_fn_error $? "$LEX is insufficient to compile libpcap.
7778 libpcap requires Flex 2.5.31 or later, or a compatible version of lex." "$LINENO" 5
7782 # Look for yacc/bison/byacc.
7784 for ac_prog in 'bison -y' byacc
7786 # Extract the first word of "$ac_prog", so it can be a program name with args.
7787 set dummy $ac_prog; ac_word=$2
7788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7789 $as_echo_n "checking for $ac_word... " >&6; }
7790 if ${ac_cv_prog_YACC+:} false; then :
7791 $as_echo_n "(cached) " >&6
7793 if test -n "$YACC"; then
7794 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7800 test -z "$as_dir" && as_dir=.
7801 for ac_exec_ext in '' $ac_executable_extensions; do
7802 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7803 ac_cv_prog_YACC="$ac_prog"
7804 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7813 YACC=$ac_cv_prog_YACC
7814 if test -n "$YACC"; then
7815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7816 $as_echo "$YACC" >&6; }
7818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7819 $as_echo "no" >&6; }
7823 test -n "$YACC" && break
7825 test -n "$YACC" || YACC="yacc"
7829 # Make sure it supports the -p flag and supports processing our
7832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for capable yacc/bison" >&5
7833 $as_echo_n "checking for capable yacc/bison... " >&6; }
7834 if ${tcpdump_cv_capable_yacc+:} false; then :
7835 $as_echo_n "(cached) " >&6
7837 if $YACC -p pcap_ -o /dev/null $srcdir/grammar.y >/dev/null 2>&1; then
7838 tcpdump_cv_capable_yacc=yes
7840 tcpdump_cv_capable_yacc=insufficient
7843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcpdump_cv_capable_yacc" >&5
7844 $as_echo "$tcpdump_cv_capable_yacc" >&6; }
7845 if test $tcpdump_cv_capable_yacc = insufficient ; then
7846 as_fn_error $? "$YACC is insufficient to compile libpcap.
7847 libpcap requires Bison, Berkeley YACC, or another YACC compatible with them." "$LINENO" 5
7851 # Do various checks for various OSes and versions of those OSes.
7853 # Assume, by default, no support for shared libraries and V7/BSD
7854 # convention for man pages (file formats in section 5, miscellaneous
7855 # info in section 7, administrative commands and daemons in section 8).
7856 # Individual cases can override this.
7861 MAN_ADMIN_COMMANDS=8
7866 $as_echo "#define _SUN 1" >>confdefs.h
7870 # AIX makes it fun to build shared and static libraries,
7871 # because they're *both* ".a" archive libraries. We
7872 # build the static library for the benefit of the traditional
7873 # scheme of building libpcap and tcpdump in subdirectories of
7874 # the same directory, with tcpdump statically linked with the
7875 # libpcap in question, but we also build a shared library as
7876 # "libpcap.shareda" and install *it*, rather than the static
7877 # library, as "libpcap.a".
7885 # If we're using DLPI, applications will need to
7886 # use /lib/pse.exp if present, as we use the
7889 pseexe="/lib/pse.exp"
7890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $pseexe" >&5
7891 $as_echo_n "checking for $pseexe... " >&6; }
7892 if test -f $pseexe ; then
7893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7894 $as_echo "yes" >&6; }
7901 # If we're using BPF, we need "-lodm" and "-lcfg", as
7902 # we use them to load the BPF module.
7911 V_CCOPT="$V_CCOPT -fno-common"
7912 # Check whether --enable-universal was given.
7913 if test "${enable_universal+set}" = set; then :
7914 enableval=$enable_universal;
7917 if test "$enable_universal" != "no"; then
7922 # Pre-Tiger. Build only for 32-bit PowerPC; no
7923 # need for any special compiler or linker flags.
7929 # Tiger, prior to Intel support. Build for 32-bit
7930 # PowerPC and 64-bit PowerPC, with 32-bit PowerPC
7931 # first. (I'm guessing that's what Apple does.)
7933 V_CCOPT="$V_CCOPT -arch ppc -arch ppc64"
7934 LDFLAGS="$LDFLAGS -arch ppc -arch ppc64"
7939 # Tiger, subsequent to Intel support but prior to
7940 # x86-64 support. Build for 32-bit PowerPC, 64-bit
7941 # PowerPC, and x86, with 32-bit PowerPC first.
7942 # (I'm guessing that's what Apple does.)
7944 V_CCOPT="$V_CCOPT -arch ppc -arch ppc64 -arch i386"
7945 LDFLAGS="$LDFLAGS -arch ppc -arch ppc64 -arch i386"
7950 # All other Tiger, so subsequent to x86-64
7951 # support. Build for 32-bit PowerPC, 64-bit
7952 # PowerPC, x86, and x86-64, and with 32-bit PowerPC
7953 # first. (I'm guessing that's what Apple does.)
7955 V_CCOPT="$V_CCOPT -arch ppc -arch ppc64 -arch i386 -arch x86_64"
7956 LDFLAGS="$LDFLAGS -arch ppc -arch ppc64 -arch i386 -arch x86_64"
7961 # Leopard. Build for 32-bit PowerPC, 64-bit
7962 # PowerPC, x86, and x86-64, with 32-bit PowerPC
7963 # first. (That's what Apple does.)
7965 V_CCOPT="$V_CCOPT -arch ppc -arch ppc64 -arch i386 -arch x86_64"
7966 LDFLAGS="$LDFLAGS -arch ppc -arch ppc64 -arch i386 -arch x86_64"
7971 # Snow Leopard. Build for x86-64, x86, and
7972 # 32-bit PowerPC, with x86-64 first. (That's
7973 # what Apple does, even though Snow Leopard
7974 # doesn't run on PPC, so PPC libpcap runs under
7975 # Rosetta, and Rosetta doesn't support BPF
7976 # ioctls, so PPC programs can't do live
7979 V_CCOPT="$V_CCOPT -arch x86_64 -arch i386 -arch ppc"
7980 LDFLAGS="$LDFLAGS -arch x86_64 -arch i386 -arch ppc"
7985 # Post-Snow Leopard. Build for x86-64 and
7986 # x86, with x86-64 first. (That's probably what
7987 # Apple does, given that Rosetta is gone.)
7988 # XXX - update if and when Apple drops support
7989 # for 32-bit x86 code.
7991 V_CCOPT="$V_CCOPT -arch x86_64 -arch i386"
7992 LDFLAGS="$LDFLAGS -arch x86_64 -arch i386"
8000 $as_echo "#define HAVE_HPUX9 1" >>confdefs.h
8004 # Use System V conventions for man pages.
8006 MAN_ADMIN_COMMANDS=1m
8014 # Use System V conventions for man pages.
8016 MAN_ADMIN_COMMANDS=1m
8024 # Use System V conventions for man pages.
8026 MAN_ADMIN_COMMANDS=1m
8033 $as_echo "#define HAVE_HPUX10_20_OR_LATER 1" >>confdefs.h
8035 if test "`uname -m`" = "ia64"; then
8042 # "-b" builds a shared library; "+h" sets the soname.
8048 # Use System V conventions for man pages.
8056 # Use IRIX conventions for man pages; they're the same as the
8057 # System V conventions, except that they use section 8 for
8058 # administrative commands and daemons.
8064 linux*|freebsd*|netbsd*|openbsd*|dragonfly*|kfreebsd*|gnu*)
8068 # Compiler assumed to be GCC; run-time linker may require a -R
8071 if test "$libdir" != "/usr/lib"; then
8072 V_RFLAGS=-Wl,-R$libdir
8080 # DEC OSF/1, a/k/a Digial UNIX, a/k/a Tru64 UNIX.
8081 # Use Tru64 UNIX conventions for man pages; they're the same as
8082 # the System V conventions except that they use section 8 for
8083 # administrative commands and daemons.
8090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if SINIX compiler defines sinix" >&5
8091 $as_echo_n "checking if SINIX compiler defines sinix... " >&6; }
8092 if ${ac_cv_cc_sinix_defined+:} false; then :
8093 $as_echo_n "(cached) " >&6
8095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8096 /* end confdefs.h. */
8106 if ac_fn_c_try_compile "$LINENO"; then :
8107 ac_cv_cc_sinix_defined=yes
8109 ac_cv_cc_sinix_defined=no
8111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_sinix_defined" >&5
8115 $as_echo "$ac_cv_cc_sinix_defined" >&6; }
8116 if test $ac_cv_cc_sinix_defined = no ; then
8118 $as_echo "#define sinix 1" >>confdefs.h
8125 $as_echo "#define HAVE_SOLARIS 1" >>confdefs.h
8131 # Make sure errno is thread-safe, in case we're called in
8132 # a multithreaded program. We don't guarantee that two
8133 # threads can use the *same* pcap_t safely, but the
8134 # current version does guarantee that you can use different
8135 # pcap_t's in different threads, and even that pcap_compile()
8136 # is thread-safe (it wasn't thread-safe in some older versions).
8138 V_CCOPT="$V_CCOPT -D_TS_ERRNO"
8140 case "`uname -r`" in
8147 # Use System V conventions for man pages.
8149 MAN_ADMIN_COMMANDS=1m
8156 # Check whether --enable-shared was given.
8157 if test "${enable_shared+set}" = set; then :
8158 enableval=$enable_shared;
8161 test "x$enable_shared" = "xno" && DYEXT="none"
8163 if test -n "$ac_tool_prefix"; then
8164 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8165 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8167 $as_echo_n "checking for $ac_word... " >&6; }
8168 if ${ac_cv_prog_RANLIB+:} false; then :
8169 $as_echo_n "(cached) " >&6
8171 if test -n "$RANLIB"; then
8172 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8178 test -z "$as_dir" && as_dir=.
8179 for ac_exec_ext in '' $ac_executable_extensions; do
8180 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8181 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8191 RANLIB=$ac_cv_prog_RANLIB
8192 if test -n "$RANLIB"; then
8193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8194 $as_echo "$RANLIB" >&6; }
8196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8197 $as_echo "no" >&6; }
8202 if test -z "$ac_cv_prog_RANLIB"; then
8203 ac_ct_RANLIB=$RANLIB
8204 # Extract the first word of "ranlib", so it can be a program name with args.
8205 set dummy ranlib; ac_word=$2
8206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8207 $as_echo_n "checking for $ac_word... " >&6; }
8208 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8209 $as_echo_n "(cached) " >&6
8211 if test -n "$ac_ct_RANLIB"; then
8212 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8218 test -z "$as_dir" && as_dir=.
8219 for ac_exec_ext in '' $ac_executable_extensions; do
8220 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8221 ac_cv_prog_ac_ct_RANLIB="ranlib"
8222 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8231 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8232 if test -n "$ac_ct_RANLIB"; then
8233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8234 $as_echo "$ac_ct_RANLIB" >&6; }
8236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8237 $as_echo "no" >&6; }
8240 if test "x$ac_ct_RANLIB" = x; then
8243 case $cross_compiling:$ac_tool_warned in
8245 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8246 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8247 ac_tool_warned=yes ;;
8249 RANLIB=$ac_ct_RANLIB
8252 RANLIB="$ac_cv_prog_RANLIB"
8255 if test -n "$ac_tool_prefix"; then
8256 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8257 set dummy ${ac_tool_prefix}ar; ac_word=$2
8258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8259 $as_echo_n "checking for $ac_word... " >&6; }
8260 if ${ac_cv_prog_AR+:} false; then :
8261 $as_echo_n "(cached) " >&6
8263 if test -n "$AR"; then
8264 ac_cv_prog_AR="$AR" # Let the user override the test.
8266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8270 test -z "$as_dir" && as_dir=.
8271 for ac_exec_ext in '' $ac_executable_extensions; do
8272 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8273 ac_cv_prog_AR="${ac_tool_prefix}ar"
8274 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8284 if test -n "$AR"; then
8285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8286 $as_echo "$AR" >&6; }
8288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8289 $as_echo "no" >&6; }
8294 if test -z "$ac_cv_prog_AR"; then
8296 # Extract the first word of "ar", so it can be a program name with args.
8297 set dummy ar; ac_word=$2
8298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8299 $as_echo_n "checking for $ac_word... " >&6; }
8300 if ${ac_cv_prog_ac_ct_AR+:} false; then :
8301 $as_echo_n "(cached) " >&6
8303 if test -n "$ac_ct_AR"; then
8304 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8310 test -z "$as_dir" && as_dir=.
8311 for ac_exec_ext in '' $ac_executable_extensions; do
8312 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8313 ac_cv_prog_ac_ct_AR="ar"
8314 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8323 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8324 if test -n "$ac_ct_AR"; then
8325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8326 $as_echo "$ac_ct_AR" >&6; }
8328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8329 $as_echo "no" >&6; }
8332 if test "x$ac_ct_AR" = x; then
8335 case $cross_compiling:$ac_tool_warned in
8337 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8338 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8339 ac_tool_warned=yes ;;
8348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8349 $as_echo_n "checking whether ln -s works... " >&6; }
8351 if test "$LN_S" = "ln -s"; then
8352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8353 $as_echo "yes" >&6; }
8355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
8356 $as_echo "no, using $LN_S" >&6; }
8362 if test "${LBL_CFLAGS+set}" = set; then
8363 V_CCOPT="$V_CCOPT ${LBL_CFLAGS}"
8365 if test -f .devel ; then
8367 # Skip all the warning option stuff on some compilers.
8369 if test "$ac_lbl_cc_dont_try_gcc_dashW" != yes; then
8371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler fails when given an unknown warning option" >&5
8372 $as_echo_n "checking whether the compiler fails when given an unknown warning option... " >&6; }
8373 save_CFLAGS="$CFLAGS"
8374 CFLAGS="$CFLAGS -Wxyzzy-this-will-never-succeed-xyzzy"
8375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8376 /* end confdefs.h. */
8386 if ac_fn_c_try_compile "$LINENO"; then :
8388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8389 $as_echo "no" >&6; }
8391 # We're assuming this is clang, where
8392 # -Werror=unknown-warning-option is the appropriate
8393 # option to force the compiler to fail.
8395 ac_lbl_unknown_warning_option_error="-Werror=unknown-warning-option"
8399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8400 $as_echo "yes" >&6; }
8403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8404 CFLAGS="$save_CFLAGS"
8407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wall option" >&5
8408 $as_echo_n "checking whether the compiler supports the -Wall option... " >&6; }
8409 save_CFLAGS="$CFLAGS"
8410 if expr "x-Wall" : "x-W.*" >/dev/null
8412 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wall"
8413 elif expr "x-Wall" : "x-f.*" >/dev/null
8415 CFLAGS="$CFLAGS -Werror -Wall"
8416 elif expr "x-Wall" : "x-m.*" >/dev/null
8418 CFLAGS="$CFLAGS -Werror -Wall"
8420 CFLAGS="$CFLAGS -Wall"
8422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8423 /* end confdefs.h. */
8433 if ac_fn_c_try_compile "$LINENO"; then :
8435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8436 $as_echo "yes" >&6; }
8437 CFLAGS="$save_CFLAGS"
8438 V_CCOPT="$V_CCOPT -Wall"
8442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8443 $as_echo "no" >&6; }
8444 CFLAGS="$save_CFLAGS"
8447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wsign-compare option" >&5
8451 $as_echo_n "checking whether the compiler supports the -Wsign-compare option... " >&6; }
8452 save_CFLAGS="$CFLAGS"
8453 if expr "x-Wsign-compare" : "x-W.*" >/dev/null
8455 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wsign-compare"
8456 elif expr "x-Wsign-compare" : "x-f.*" >/dev/null
8458 CFLAGS="$CFLAGS -Werror -Wsign-compare"
8459 elif expr "x-Wsign-compare" : "x-m.*" >/dev/null
8461 CFLAGS="$CFLAGS -Werror -Wsign-compare"
8463 CFLAGS="$CFLAGS -Wsign-compare"
8465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8466 /* end confdefs.h. */
8476 if ac_fn_c_try_compile "$LINENO"; then :
8478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8479 $as_echo "yes" >&6; }
8480 CFLAGS="$save_CFLAGS"
8481 V_CCOPT="$V_CCOPT -Wsign-compare"
8485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8486 $as_echo "no" >&6; }
8487 CFLAGS="$save_CFLAGS"
8490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wmissing-prototypes option" >&5
8494 $as_echo_n "checking whether the compiler supports the -Wmissing-prototypes option... " >&6; }
8495 save_CFLAGS="$CFLAGS"
8496 if expr "x-Wmissing-prototypes" : "x-W.*" >/dev/null
8498 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wmissing-prototypes"
8499 elif expr "x-Wmissing-prototypes" : "x-f.*" >/dev/null
8501 CFLAGS="$CFLAGS -Werror -Wmissing-prototypes"
8502 elif expr "x-Wmissing-prototypes" : "x-m.*" >/dev/null
8504 CFLAGS="$CFLAGS -Werror -Wmissing-prototypes"
8506 CFLAGS="$CFLAGS -Wmissing-prototypes"
8508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8509 /* end confdefs.h. */
8519 if ac_fn_c_try_compile "$LINENO"; then :
8521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8522 $as_echo "yes" >&6; }
8523 CFLAGS="$save_CFLAGS"
8524 V_CCOPT="$V_CCOPT -Wmissing-prototypes"
8528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8529 $as_echo "no" >&6; }
8530 CFLAGS="$save_CFLAGS"
8533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wstrict-prototypes option" >&5
8537 $as_echo_n "checking whether the compiler supports the -Wstrict-prototypes option... " >&6; }
8538 save_CFLAGS="$CFLAGS"
8539 if expr "x-Wstrict-prototypes" : "x-W.*" >/dev/null
8541 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wstrict-prototypes"
8542 elif expr "x-Wstrict-prototypes" : "x-f.*" >/dev/null
8544 CFLAGS="$CFLAGS -Werror -Wstrict-prototypes"
8545 elif expr "x-Wstrict-prototypes" : "x-m.*" >/dev/null
8547 CFLAGS="$CFLAGS -Werror -Wstrict-prototypes"
8549 CFLAGS="$CFLAGS -Wstrict-prototypes"
8551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8552 /* end confdefs.h. */
8562 if ac_fn_c_try_compile "$LINENO"; then :
8564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8565 $as_echo "yes" >&6; }
8566 CFLAGS="$save_CFLAGS"
8567 V_CCOPT="$V_CCOPT -Wstrict-prototypes"
8571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8572 $as_echo "no" >&6; }
8573 CFLAGS="$save_CFLAGS"
8576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wshadow option" >&5
8580 $as_echo_n "checking whether the compiler supports the -Wshadow option... " >&6; }
8581 save_CFLAGS="$CFLAGS"
8582 if expr "x-Wshadow" : "x-W.*" >/dev/null
8584 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wshadow"
8585 elif expr "x-Wshadow" : "x-f.*" >/dev/null
8587 CFLAGS="$CFLAGS -Werror -Wshadow"
8588 elif expr "x-Wshadow" : "x-m.*" >/dev/null
8590 CFLAGS="$CFLAGS -Werror -Wshadow"
8592 CFLAGS="$CFLAGS -Wshadow"
8594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8595 /* end confdefs.h. */
8605 if ac_fn_c_try_compile "$LINENO"; then :
8607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8608 $as_echo "yes" >&6; }
8609 CFLAGS="$save_CFLAGS"
8610 V_CCOPT="$V_CCOPT -Wshadow"
8614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8615 $as_echo "no" >&6; }
8616 CFLAGS="$save_CFLAGS"
8619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wdeclaration-after-statement option" >&5
8623 $as_echo_n "checking whether the compiler supports the -Wdeclaration-after-statement option... " >&6; }
8624 save_CFLAGS="$CFLAGS"
8625 if expr "x-Wdeclaration-after-statement" : "x-W.*" >/dev/null
8627 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wdeclaration-after-statement"
8628 elif expr "x-Wdeclaration-after-statement" : "x-f.*" >/dev/null
8630 CFLAGS="$CFLAGS -Werror -Wdeclaration-after-statement"
8631 elif expr "x-Wdeclaration-after-statement" : "x-m.*" >/dev/null
8633 CFLAGS="$CFLAGS -Werror -Wdeclaration-after-statement"
8635 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
8637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8638 /* end confdefs.h. */
8648 if ac_fn_c_try_compile "$LINENO"; then :
8650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8651 $as_echo "yes" >&6; }
8652 CFLAGS="$save_CFLAGS"
8653 V_CCOPT="$V_CCOPT -Wdeclaration-after-statement"
8657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8658 $as_echo "no" >&6; }
8659 CFLAGS="$save_CFLAGS"
8662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wused-but-marked-unused option" >&5
8666 $as_echo_n "checking whether the compiler supports the -Wused-but-marked-unused option... " >&6; }
8667 save_CFLAGS="$CFLAGS"
8668 if expr "x-Wused-but-marked-unused" : "x-W.*" >/dev/null
8670 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wused-but-marked-unused"
8671 elif expr "x-Wused-but-marked-unused" : "x-f.*" >/dev/null
8673 CFLAGS="$CFLAGS -Werror -Wused-but-marked-unused"
8674 elif expr "x-Wused-but-marked-unused" : "x-m.*" >/dev/null
8676 CFLAGS="$CFLAGS -Werror -Wused-but-marked-unused"
8678 CFLAGS="$CFLAGS -Wused-but-marked-unused"
8680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8681 /* end confdefs.h. */
8691 if ac_fn_c_try_compile "$LINENO"; then :
8693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8694 $as_echo "yes" >&6; }
8695 CFLAGS="$save_CFLAGS"
8696 V_CCOPT="$V_CCOPT -Wused-but-marked-unused"
8700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8701 $as_echo "no" >&6; }
8702 CFLAGS="$save_CFLAGS"
8705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wdocumentation option" >&5
8709 $as_echo_n "checking whether the compiler supports the -Wdocumentation option... " >&6; }
8710 save_CFLAGS="$CFLAGS"
8711 if expr "x-Wdocumentation" : "x-W.*" >/dev/null
8713 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wdocumentation"
8714 elif expr "x-Wdocumentation" : "x-f.*" >/dev/null
8716 CFLAGS="$CFLAGS -Werror -Wdocumentation"
8717 elif expr "x-Wdocumentation" : "x-m.*" >/dev/null
8719 CFLAGS="$CFLAGS -Werror -Wdocumentation"
8721 CFLAGS="$CFLAGS -Wdocumentation"
8723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8724 /* end confdefs.h. */
8734 if ac_fn_c_try_compile "$LINENO"; then :
8736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8737 $as_echo "yes" >&6; }
8738 CFLAGS="$save_CFLAGS"
8739 V_CCOPT="$V_CCOPT -Wdocumentation"
8743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8744 $as_echo "no" >&6; }
8745 CFLAGS="$save_CFLAGS"
8748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wcomma option" >&5
8752 $as_echo_n "checking whether the compiler supports the -Wcomma option... " >&6; }
8753 save_CFLAGS="$CFLAGS"
8754 if expr "x-Wcomma" : "x-W.*" >/dev/null
8756 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wcomma"
8757 elif expr "x-Wcomma" : "x-f.*" >/dev/null
8759 CFLAGS="$CFLAGS -Werror -Wcomma"
8760 elif expr "x-Wcomma" : "x-m.*" >/dev/null
8762 CFLAGS="$CFLAGS -Werror -Wcomma"
8764 CFLAGS="$CFLAGS -Wcomma"
8766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8767 /* end confdefs.h. */
8777 if ac_fn_c_try_compile "$LINENO"; then :
8779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8780 $as_echo "yes" >&6; }
8781 CFLAGS="$save_CFLAGS"
8782 V_CCOPT="$V_CCOPT -Wcomma"
8786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8787 $as_echo "no" >&6; }
8788 CFLAGS="$save_CFLAGS"
8791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wmissing-noreturn option" >&5
8795 $as_echo_n "checking whether the compiler supports the -Wmissing-noreturn option... " >&6; }
8796 save_CFLAGS="$CFLAGS"
8797 if expr "x-Wmissing-noreturn" : "x-W.*" >/dev/null
8799 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wmissing-noreturn"
8800 elif expr "x-Wmissing-noreturn" : "x-f.*" >/dev/null
8802 CFLAGS="$CFLAGS -Werror -Wmissing-noreturn"
8803 elif expr "x-Wmissing-noreturn" : "x-m.*" >/dev/null
8805 CFLAGS="$CFLAGS -Werror -Wmissing-noreturn"
8807 CFLAGS="$CFLAGS -Wmissing-noreturn"
8809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8810 /* end confdefs.h. */
8820 if ac_fn_c_try_compile "$LINENO"; then :
8822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8823 $as_echo "yes" >&6; }
8824 CFLAGS="$save_CFLAGS"
8825 V_CCOPT="$V_CCOPT -Wmissing-noreturn"
8829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8830 $as_echo "no" >&6; }
8831 CFLAGS="$save_CFLAGS"
8834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8836 # Warns about safeguards added in case the enums are
8838 # AC_LBL_CHECK_COMPILER_OPT(V_CCOPT, -Wcovered-switch-default)
8840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wmissing-variable-declarations option" >&5
8841 $as_echo_n "checking whether the compiler supports the -Wmissing-variable-declarations option... " >&6; }
8842 save_CFLAGS="$CFLAGS"
8843 if expr "x-Wmissing-variable-declarations" : "x-W.*" >/dev/null
8845 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wmissing-variable-declarations"
8846 elif expr "x-Wmissing-variable-declarations" : "x-f.*" >/dev/null
8848 CFLAGS="$CFLAGS -Werror -Wmissing-variable-declarations"
8849 elif expr "x-Wmissing-variable-declarations" : "x-m.*" >/dev/null
8851 CFLAGS="$CFLAGS -Werror -Wmissing-variable-declarations"
8853 CFLAGS="$CFLAGS -Wmissing-variable-declarations"
8855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8856 /* end confdefs.h. */
8866 if ac_fn_c_try_compile "$LINENO"; then :
8868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8869 $as_echo "yes" >&6; }
8870 CFLAGS="$save_CFLAGS"
8871 V_CCOPT="$V_CCOPT -Wmissing-variable-declarations"
8875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8876 $as_echo "no" >&6; }
8877 CFLAGS="$save_CFLAGS"
8880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wunused-parameter option" >&5
8884 $as_echo_n "checking whether the compiler supports the -Wunused-parameter option... " >&6; }
8885 save_CFLAGS="$CFLAGS"
8886 if expr "x-Wunused-parameter" : "x-W.*" >/dev/null
8888 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wunused-parameter"
8889 elif expr "x-Wunused-parameter" : "x-f.*" >/dev/null
8891 CFLAGS="$CFLAGS -Werror -Wunused-parameter"
8892 elif expr "x-Wunused-parameter" : "x-m.*" >/dev/null
8894 CFLAGS="$CFLAGS -Werror -Wunused-parameter"
8896 CFLAGS="$CFLAGS -Wunused-parameter"
8898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8899 /* end confdefs.h. */
8909 if ac_fn_c_try_compile "$LINENO"; then :
8911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8912 $as_echo "yes" >&6; }
8913 CFLAGS="$save_CFLAGS"
8914 V_CCOPT="$V_CCOPT -Wunused-parameter"
8918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8919 $as_echo "no" >&6; }
8920 CFLAGS="$save_CFLAGS"
8923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wformat-nonliteral option" >&5
8927 $as_echo_n "checking whether the compiler supports the -Wformat-nonliteral option... " >&6; }
8928 save_CFLAGS="$CFLAGS"
8929 if expr "x-Wformat-nonliteral" : "x-W.*" >/dev/null
8931 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wformat-nonliteral"
8932 elif expr "x-Wformat-nonliteral" : "x-f.*" >/dev/null
8934 CFLAGS="$CFLAGS -Werror -Wformat-nonliteral"
8935 elif expr "x-Wformat-nonliteral" : "x-m.*" >/dev/null
8937 CFLAGS="$CFLAGS -Werror -Wformat-nonliteral"
8939 CFLAGS="$CFLAGS -Wformat-nonliteral"
8941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8942 /* end confdefs.h. */
8952 if ac_fn_c_try_compile "$LINENO"; then :
8954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8955 $as_echo "yes" >&6; }
8956 CFLAGS="$save_CFLAGS"
8957 V_CCOPT="$V_CCOPT -Wformat-nonliteral"
8961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8962 $as_echo "no" >&6; }
8963 CFLAGS="$save_CFLAGS"
8966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wunreachable-code option" >&5
8970 $as_echo_n "checking whether the compiler supports the -Wunreachable-code option... " >&6; }
8971 save_CFLAGS="$CFLAGS"
8972 if expr "x-Wunreachable-code" : "x-W.*" >/dev/null
8974 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wunreachable-code"
8975 elif expr "x-Wunreachable-code" : "x-f.*" >/dev/null
8977 CFLAGS="$CFLAGS -Werror -Wunreachable-code"
8978 elif expr "x-Wunreachable-code" : "x-m.*" >/dev/null
8980 CFLAGS="$CFLAGS -Werror -Wunreachable-code"
8982 CFLAGS="$CFLAGS -Wunreachable-code"
8984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8985 /* end confdefs.h. */
8995 if ac_fn_c_try_compile "$LINENO"; then :
8997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8998 $as_echo "yes" >&6; }
8999 CFLAGS="$save_CFLAGS"
9000 V_CCOPT="$V_CCOPT -Wunreachable-code"
9004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9005 $as_echo "no" >&6; }
9006 CFLAGS="$save_CFLAGS"
9009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports generating dependencies" >&5
9014 $as_echo_n "checking whether the compiler supports generating dependencies... " >&6; }
9015 if test "$GCC" = yes ; then
9017 # GCC, or a compiler deemed to be GCC by AC_PROG_CC (even
9018 # though it's not); we assume that, in this case, the flag
9021 ac_lbl_dependency_flag="-M"
9024 # Not GCC or a compiler deemed to be GCC; what platform is
9025 # this? (We're assuming that if the compiler isn't GCC
9026 # it's the compiler from the vendor of the OS; that won't
9027 # necessarily be true for x86 platforms, where it might be
9028 # the Intel C compiler.)
9034 # MIPS C for IRIX, DEC C, and clang all use -M.
9036 ac_lbl_dependency_flag="-M"
9043 ac_lbl_dependency_flag="-xM"
9048 # HP's older C compilers don't support this.
9049 # HP's newer C compilers support this with
9050 # either +M or +Make; the older compilers
9051 # interpret +M as something completely
9052 # different, so we use +Make so we don't
9053 # think it works with the older compilers.
9055 ac_lbl_dependency_flag="+Make"
9060 # Not one of the above; assume no support for
9061 # generating dependencies.
9063 ac_lbl_dependency_flag=""
9069 # Is ac_lbl_dependency_flag defined and, if so, does the compiler
9070 # complain about it?
9072 # Note: clang doesn't seem to exit with an error status when handed
9073 # an unknown non-warning error, even if you pass it
9074 # -Werror=unknown-warning-option. However, it always supports
9075 # -M, so the fact that this test always succeeds with clang
9078 if test ! -z "$ac_lbl_dependency_flag"; then
9079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9080 /* end confdefs.h. */
9081 int main(void) { return 0; }
9083 if { { $as_echo "$as_me:${as_lineno-$LINENO}: eval \"\$CC \$ac_lbl_dependency_flag conftest.c >/dev/null 2>&1\""; } >&5
9084 (eval "$CC $ac_lbl_dependency_flag conftest.c >/dev/null 2>&1") 2>&5
9086 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9087 test $ac_status = 0; }; then
9088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, with $ac_lbl_dependency_flag" >&5
9089 $as_echo "yes, with $ac_lbl_dependency_flag" >&6; }
9090 DEPENDENCY_CFLAG="$ac_lbl_dependency_flag"
9091 MKDEP='${srcdir}/mkdep'
9093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9094 $as_echo "no" >&6; }
9096 # We can't run mkdep, so have "make depend" do
9099 MKDEP='${srcdir}/nomkdep'
9103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9104 $as_echo "no" >&6; }
9106 # We can't run mkdep, so have "make depend" do
9109 MKDEP='${srcdir}/nomkdep'
9115 # We used to set -n32 for IRIX 6 when not using GCC (presumed
9116 # to mean that we're using MIPS C or MIPSpro C); it specified
9117 # the "new" faster 32-bit ABI, introduced in IRIX 6.2. I'm
9118 # not sure why that would be something to do *only* with a
9119 # .devel file; why should the ABI for which we produce code
9122 os=`echo $host_os | sed -e 's/\([0-9][0-9]*\)[^0-9].*$/\1/'`
9124 if test -f $name ; then
9125 ln -s $name os-proto.h
9127 $as_echo "#define HAVE_OS_PROTO_H 1" >>confdefs.h
9130 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: can't find $name" >&5
9131 $as_echo "$as_me: WARNING: can't find $name" >&2;}
9136 # Check to see if the sockaddr struct has the 4.4 BSD sa_len member.
9138 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "
9139 #include <sys/types.h>
9140 #include <sys/socket.h>
9143 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
9145 cat >>confdefs.h <<_ACEOF
9146 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
9154 # Check to see if there's a sockaddr_storage structure.
9156 ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "
9157 #include <sys/types.h>
9158 #include <sys/socket.h>
9161 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
9163 cat >>confdefs.h <<_ACEOF
9164 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
9172 # Check to see if the dl_hp_ppa_info_t struct has the HP-UX 11.00
9173 # dl_module_id_1 member.
9175 # NOTE: any failure means we conclude that it doesn't have that member,
9176 # so if we don't have DLPI, don't have a <sys/dlpi_ext.h> header, or
9177 # have one that doesn't declare a dl_hp_ppa_info_t type, we conclude
9178 # it doesn't have that member (which is OK, as either we won't be
9179 # using code that would use that member, or we wouldn't compile in
9182 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" "
9183 #include <sys/types.h>
9184 #include <sys/dlpi.h>
9185 #include <sys/dlpi_ext.h>
9188 if test "x$ac_cv_member_dl_hp_ppa_info_t_dl_module_id_1" = xyes; then :
9190 cat >>confdefs.h <<_ACEOF
9191 #define HAVE_DL_HP_PPA_INFO_T_DL_MODULE_ID_1 1
9198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if unaligned accesses fail" >&5
9199 $as_echo_n "checking if unaligned accesses fail... " >&6; }
9200 if ${ac_cv_lbl_unaligned_fail+:} false; then :
9201 $as_echo_n "(cached) " >&6
9206 # These are CPU types where:
9208 # the CPU faults on an unaligned access, but at least some
9209 # OSes that support that CPU catch the fault and simulate
9210 # the unaligned access (e.g., Alpha/{Digital,Tru64} UNIX) -
9211 # the simulation is slow, so we don't want to use it;
9213 # the CPU, I infer (from the old
9215 # XXX: should also check that they don't do weird things (like on arm)
9217 # comment) doesn't fault on unaligned accesses, but doesn't
9218 # do a normal unaligned fetch, either (e.g., presumably, ARM);
9220 # for whatever reason, the test program doesn't work
9221 # (this has been claimed to be the case for several of those
9222 # CPUs - I don't know what the problem is; the problem
9223 # was reported as "the test program dumps core" for SuperH,
9224 # but that's what the test program is *supposed* to do -
9225 # it dumps core before it writes anything, so the test
9226 # for an empty output file should find an empty output
9227 # file and conclude that unaligned accesses don't work).
9229 # This run-time test won't work if you're cross-compiling, so
9230 # in order to support cross-compiling for a particular CPU,
9231 # we have to wire in the list of CPU types anyway, as far as
9232 # I know, so perhaps we should just have a set of CPUs on
9233 # which we know it doesn't work, a set of CPUs on which we
9234 # know it does work, and have the script just fail on other
9235 # cpu types and update it when such a failure occurs.
9237 alpha*|arm*|bfin*|hp*|mips*|sh*|sparc*|ia64|nv1)
9238 ac_cv_lbl_unaligned_fail=yes
9242 cat >conftest.c <<EOF
9243 # include <sys/types.h>
9244 # include <sys/wait.h>
9246 unsigned char a[5] = { 1, 2, 3, 4, 5 };
9251 /* avoid "core dumped" message */
9257 pid = waitpid(pid, &status, 0);
9260 exit(!WIFEXITED(status));
9263 i = *(unsigned int *)&a[1];
9268 ${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS \
9269 conftest.c $LIBS >/dev/null 2>&1
9270 if test ! -x conftest ; then
9271 ac_cv_lbl_unaligned_fail=yes
9273 ./conftest >conftest.out
9274 if test ! -s conftest.out ; then
9275 ac_cv_lbl_unaligned_fail=yes
9277 ac_cv_lbl_unaligned_fail=no
9280 rm -f -r conftest* core core.conftest
9285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_unaligned_fail" >&5
9286 $as_echo "$ac_cv_lbl_unaligned_fail" >&6; }
9287 if test $ac_cv_lbl_unaligned_fail = yes ; then
9289 $as_echo "#define LBL_ALIGN 1" >>confdefs.h
9318 # Check whether --enable-usb was given.
9319 if test "${enable_usb+set}" = set; then :
9320 enableval=$enable_usb;
9326 if test "xxx_only" = yes; then
9327 # User requested something-else-only pcap, so they don't
9332 if test "x$enable_usb" != "xno" ; then
9333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for USB sniffing support" >&5
9334 $as_echo_n "checking for USB sniffing support... " >&6; }
9338 $as_echo "#define PCAP_SUPPORT_USB 1" >>confdefs.h
9340 USB_SRC=pcap-usb-linux.c
9341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9342 $as_echo "yes" >&6; }
9343 ac_usb_dev_name=`udevinfo -q name -p /sys/class/usb_device/usbmon 2>/dev/null`
9344 if test $? -ne 0 ; then
9345 ac_usb_dev_name="usbmon"
9348 cat >>confdefs.h <<_ACEOF
9349 #define LINUX_USB_MON_DEV "/dev/$ac_usb_dev_name"
9352 { $as_echo "$as_me:${as_lineno-$LINENO}: Device for USB sniffing is /dev/$ac_usb_dev_name" >&5
9353 $as_echo "$as_me: Device for USB sniffing is /dev/$ac_usb_dev_name" >&6;}
9355 # Do we have a version of <linux/compiler.h> available?
9356 # If so, we might need it for <linux/usbdevice_fs.h>.
9358 for ac_header in linux/compiler.h
9360 ac_fn_c_check_header_mongrel "$LINENO" "linux/compiler.h" "ac_cv_header_linux_compiler_h" "$ac_includes_default"
9361 if test "x$ac_cv_header_linux_compiler_h" = xyes; then :
9362 cat >>confdefs.h <<_ACEOF
9363 #define HAVE_LINUX_COMPILER_H 1
9370 if test "$ac_cv_header_linux_compiler_h" = yes; then
9372 # Yes - include it when testing for <linux/usbdevice_fs.h>.
9374 for ac_header in linux/usbdevice_fs.h
9376 ac_fn_c_check_header_compile "$LINENO" "linux/usbdevice_fs.h" "ac_cv_header_linux_usbdevice_fs_h" "#include <linux/compiler.h>
9378 if test "x$ac_cv_header_linux_usbdevice_fs_h" = xyes; then :
9379 cat >>confdefs.h <<_ACEOF
9380 #define HAVE_LINUX_USBDEVICE_FS_H 1
9388 for ac_header in linux/usbdevice_fs.h
9390 ac_fn_c_check_header_mongrel "$LINENO" "linux/usbdevice_fs.h" "ac_cv_header_linux_usbdevice_fs_h" "$ac_includes_default"
9391 if test "x$ac_cv_header_linux_usbdevice_fs_h" = xyes; then :
9392 cat >>confdefs.h <<_ACEOF
9393 #define HAVE_LINUX_USBDEVICE_FS_H 1
9401 if test "$ac_cv_header_linux_usbdevice_fs_h" = yes; then
9403 # OK, does it define bRequestType? Older versions of the kernel
9404 # define fields with names like "requesttype, "request", and
9405 # "value", rather than "bRequestType", "bRequest", and
9408 ac_fn_c_check_member "$LINENO" "struct usbdevfs_ctrltransfer" "bRequestType" "ac_cv_member_struct_usbdevfs_ctrltransfer_bRequestType" "
9409 $ac_includes_default
9410 #ifdef HAVE_LINUX_COMPILER_H
9411 #include <linux/compiler.h>
9413 #include <linux/usbdevice_fs.h>
9416 if test "x$ac_cv_member_struct_usbdevfs_ctrltransfer_bRequestType" = xyes; then :
9418 cat >>confdefs.h <<_ACEOF
9419 #define HAVE_STRUCT_USBDEVFS_CTRLTRANSFER_BREQUESTTYPE 1
9429 # This just uses BPF in FreeBSD 8.4 and later; we don't need
9430 # to check for anything special for capturing.
9432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in FreeBSD 8.4 and later" >&5
9433 $as_echo "yes, in FreeBSD 8.4 and later" >&6; }
9437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9438 $as_echo "no" >&6; }
9445 if test "xxx_only" != yes; then
9446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the platform could support netfilter sniffing" >&5
9447 $as_echo_n "checking whether the platform could support netfilter sniffing... " >&6; }
9450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9451 $as_echo "yes" >&6; }
9453 # Life's too short to deal with trying to get this to compile
9454 # if you don't get the right types defined with
9455 # __KERNEL_STRICT_NAMES getting defined by some other include.
9457 # Check whether the includes Just Work. If not, don't turn on
9458 # netfilter support.
9460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can compile the netfilter support" >&5
9461 $as_echo_n "checking whether we can compile the netfilter support... " >&6; }
9462 if ${ac_cv_netfilter_can_compile+:} false; then :
9463 $as_echo_n "(cached) " >&6
9465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9466 /* end confdefs.h. */
9468 $ac_includes_default
9469 #include <sys/socket.h>
9470 #include <netinet/in.h>
9471 #include <linux/types.h>
9473 #include <linux/netlink.h>
9474 #include <linux/netfilter.h>
9475 #include <linux/netfilter/nfnetlink.h>
9476 #include <linux/netfilter/nfnetlink_log.h>
9477 #include <linux/netfilter/nfnetlink_queue.h>
9486 if ac_fn_c_try_compile "$LINENO"; then :
9487 ac_cv_netfilter_can_compile=yes
9489 ac_cv_netfilter_can_compile=no
9491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_netfilter_can_compile" >&5
9495 $as_echo "$ac_cv_netfilter_can_compile" >&6; }
9496 if test $ac_cv_netfilter_can_compile = yes ; then
9498 $as_echo "#define PCAP_SUPPORT_NETFILTER 1" >>confdefs.h
9500 NETFILTER_SRC=pcap-netfilter-linux.c
9504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9505 $as_echo "no" >&6; }
9512 # Check whether --enable-netmap was given.
9513 if test "${enable_netmap+set}" = set; then :
9514 enableval=$enable_netmap;
9520 if test "x$enable_netmap" != "xno" ; then
9522 # Check whether net/netmap_user.h is usable if NETMAP_WITH_LIBS is
9523 # defined; it's not usable on DragonFly BSD 4.6 if NETMAP_WITH_LIBS
9524 # is defined, for example, as it includes a non-existent malloc.h
9527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can compile the netmap support" >&5
9528 $as_echo_n "checking whether we can compile the netmap support... " >&6; }
9529 if ${ac_cv_net_netmap_user_can_compile+:} false; then :
9530 $as_echo_n "(cached) " >&6
9532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9533 /* end confdefs.h. */
9535 $ac_includes_default
9536 #define NETMAP_WITH_LIBS
9537 #include <net/netmap_user.h>
9546 if ac_fn_c_try_compile "$LINENO"; then :
9547 ac_cv_net_netmap_user_can_compile=yes
9549 ac_cv_net_netmap_user_can_compile=no
9551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_net_netmap_user_can_compile" >&5
9555 $as_echo "$ac_cv_net_netmap_user_can_compile" >&6; }
9556 if test $ac_cv_net_netmap_user_can_compile = yes ; then
9558 $as_echo "#define PCAP_SUPPORT_NETMAP 1" >>confdefs.h
9560 NETMAP_SRC=pcap-netmap.c
9567 # Check whether --enable-bluetooth was given.
9568 if test "${enable_bluetooth+set}" = set; then :
9569 enableval=$enable_bluetooth;
9571 enable_bluetooth=ifsupportavailable
9575 if test "xxx_only" = yes; then
9576 # User requested something-else-only pcap, so they don't
9577 # want Bluetooth support.
9581 if test "x$enable_bluetooth" != "xno" ; then
9584 ac_fn_c_check_header_mongrel "$LINENO" "bluetooth/bluetooth.h" "ac_cv_header_bluetooth_bluetooth_h" "$ac_includes_default"
9585 if test "x$ac_cv_header_bluetooth_bluetooth_h" = xyes; then :
9588 # We have bluetooth.h, so we support Bluetooth
9592 $as_echo "#define PCAP_SUPPORT_BT 1" >>confdefs.h
9594 BT_SRC=pcap-bt-linux.c
9595 { $as_echo "$as_me:${as_lineno-$LINENO}: Bluetooth sniffing is supported" >&5
9596 $as_echo "$as_me: Bluetooth sniffing is supported" >&6;}
9597 ac_lbl_bluetooth_available=yes
9600 # OK, does struct sockaddr_hci have an hci_channel
9603 ac_fn_c_check_member "$LINENO" "struct sockaddr_hci" "hci_channel" "ac_cv_member_struct_sockaddr_hci_hci_channel" "
9604 #include <bluetooth/bluetooth.h>
9605 #include <bluetooth/hci.h>
9608 if test "x$ac_cv_member_struct_sockaddr_hci_hci_channel" = xyes; then :
9610 cat >>confdefs.h <<_ACEOF
9611 #define HAVE_STRUCT_SOCKADDR_HCI_HCI_CHANNEL 1
9616 # Yes; is HCI_CHANNEL_MONITOR defined?
9618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if HCI_CHANNEL_MONITOR is defined" >&5
9619 $as_echo_n "checking if HCI_CHANNEL_MONITOR is defined... " >&6; }
9620 if ${ac_cv_lbl_hci_channel_monitor_is_defined+:} false; then :
9621 $as_echo_n "(cached) " >&6
9623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9624 /* end confdefs.h. */
9626 #include <bluetooth/bluetooth.h>
9627 #include <bluetooth/hci.h>
9633 u_int i = HCI_CHANNEL_MONITOR;
9639 if ac_fn_c_try_compile "$LINENO"; then :
9641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9642 $as_echo "yes" >&6; }
9644 $as_echo "#define PCAP_SUPPORT_BT_MONITOR /**/" >>confdefs.h
9646 BT_MONITOR_SRC=pcap-bt-monitor-linux.c
9650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9651 $as_echo "no" >&6; }
9654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9664 # We don't have bluetooth.h, so we don't support
9665 # Bluetooth sniffing.
9667 if test "x$enable_bluetooth" = "xyes" ; then
9668 as_fn_error $? "Bluetooth sniffing is not supported; install bluez-lib devel to enable it" "$LINENO" 5
9670 { $as_echo "$as_me:${as_lineno-$LINENO}: Bluetooth sniffing is not supported; install bluez-lib devel to enable it" >&5
9671 $as_echo "$as_me: Bluetooth sniffing is not supported; install bluez-lib devel to enable it" >&6;}
9679 if test "x$enable_bluetooth" = "xyes" ; then
9680 as_fn_error $? "no Bluetooth sniffing support implemented for $host_os" "$LINENO" 5
9682 { $as_echo "$as_me:${as_lineno-$LINENO}: no Bluetooth sniffing support implemented for $host_os" >&5
9683 $as_echo "$as_me: no Bluetooth sniffing support implemented for $host_os" >&6;}
9692 # Check whether --enable-dbus was given.
9693 if test "${enable_dbus+set}" = set; then :
9694 enableval=$enable_dbus;
9696 enable_dbus=ifavailable
9700 if test "xxx_only" = yes; then
9701 # User requested something-else-only pcap, so they don't
9702 # want D-Bus support.
9706 if test "x$enable_dbus" != "xno"; then
9707 if test "x$enable_dbus" = "xyes"; then
9712 # We don't support D-Bus sniffing on macOS; see
9714 # https://bugs.freedesktop.org/show_bug.cgi?id=74029
9716 # The user requested it, so fail.
9718 as_fn_error $? "Due to freedesktop.org bug 74029, D-Bus capture support is not available on macOS" "$LINENO" 5
9725 # We don't support D-Bus sniffing on macOS; see
9727 # https://bugs.freedesktop.org/show_bug.cgi?id=74029
9729 # The user dind't explicitly request it, so just
9730 # silently refuse to enable it.
9738 if test "x$enable_dbus" != "xno"; then
9739 # Extract the first word of "pkg-config", so it can be a program name with args.
9740 set dummy pkg-config; ac_word=$2
9741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9742 $as_echo_n "checking for $ac_word... " >&6; }
9743 if ${ac_cv_prog_PKGCONFIG+:} false; then :
9744 $as_echo_n "(cached) " >&6
9746 if test -n "$PKGCONFIG"; then
9747 ac_cv_prog_PKGCONFIG="$PKGCONFIG" # Let the user override the test.
9749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9753 test -z "$as_dir" && as_dir=.
9754 for ac_exec_ext in '' $ac_executable_extensions; do
9755 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9756 ac_cv_prog_PKGCONFIG="pkg-config"
9757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9764 test -z "$ac_cv_prog_PKGCONFIG" && ac_cv_prog_PKGCONFIG="no"
9767 PKGCONFIG=$ac_cv_prog_PKGCONFIG
9768 if test -n "$PKGCONFIG"; then
9769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
9770 $as_echo "$PKGCONFIG" >&6; }
9772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9773 $as_echo "no" >&6; }
9777 if test "x$PKGCONFIG" != "xno"; then
9778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for D-Bus" >&5
9779 $as_echo_n "checking for D-Bus... " >&6; }
9780 if "$PKGCONFIG" dbus-1; then
9781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9782 $as_echo "yes" >&6; }
9783 DBUS_CFLAGS=`"$PKGCONFIG" --cflags dbus-1`
9784 DBUS_LIBS=`"$PKGCONFIG" --libs dbus-1`
9785 save_CFLAGS="$CFLAGS"
9787 CFLAGS="$CFLAGS $DBUS_CFLAGS"
9788 LIBS="$LIBS $DBUS_LIBS"
9789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the D-Bus library defines dbus_connection_read_write" >&5
9790 $as_echo_n "checking whether the D-Bus library defines dbus_connection_read_write... " >&6; }
9791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9792 /* end confdefs.h. */
9796 #include <sys/time.h>
9798 #include <dbus/dbus.h>
9802 return dbus_connection_read_write(NULL, 0);
9807 if ac_fn_c_try_link "$LINENO"; then :
9809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9810 $as_echo "yes" >&6; }
9812 $as_echo "#define PCAP_SUPPORT_DBUS 1" >>confdefs.h
9814 DBUS_SRC=pcap-dbus.c
9815 V_INCLS="$V_INCLS $DBUS_CFLAGS"
9819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9820 $as_echo "no" >&6; }
9821 if test "x$enable_dbus" = "xyes"; then
9822 as_fn_error $? "--enable-dbus was given, but the D-Bus library doesn't define dbus_connection_read_write()" "$LINENO" 5
9827 rm -f core conftest.err conftest.$ac_objext \
9828 conftest$ac_exeext conftest.$ac_ext
9829 CFLAGS="$save_CFLAGS"
9831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9832 $as_echo "no" >&6; }
9833 if test "x$enable_dbus" = "xyes"; then
9834 as_fn_error $? "--enable-dbus was given, but the dbus-1 package is not installed" "$LINENO" 5
9842 # Check whether --enable-rdma was given.
9843 if test "${enable_rdma+set}" = set; then :
9844 enableval=$enable_rdma;
9846 enable_rdmasniff=ifavailable
9850 if test "xxx_only" = yes; then
9851 # User requested something-else-only pcap, so they don't
9852 # want RDMA support.
9856 if test "x$enable_rdmasniff" != "xno"; then
9857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ibv_get_device_list in -libverbs" >&5
9858 $as_echo_n "checking for ibv_get_device_list in -libverbs... " >&6; }
9859 if ${ac_cv_lib_ibverbs_ibv_get_device_list+:} false; then :
9860 $as_echo_n "(cached) " >&6
9862 ac_check_lib_save_LIBS=$LIBS
9863 LIBS="-libverbs $LIBS"
9864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9865 /* end confdefs.h. */
9867 /* Override any GCC internal prototype to avoid an error.
9868 Use char because int might match the return type of a GCC
9869 builtin and then its argument prototype would still apply. */
9873 char ibv_get_device_list ();
9877 return ibv_get_device_list ();
9882 if ac_fn_c_try_link "$LINENO"; then :
9883 ac_cv_lib_ibverbs_ibv_get_device_list=yes
9885 ac_cv_lib_ibverbs_ibv_get_device_list=no
9887 rm -f core conftest.err conftest.$ac_objext \
9888 conftest$ac_exeext conftest.$ac_ext
9889 LIBS=$ac_check_lib_save_LIBS
9891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ibverbs_ibv_get_device_list" >&5
9892 $as_echo "$ac_cv_lib_ibverbs_ibv_get_device_list" >&6; }
9893 if test "x$ac_cv_lib_ibverbs_ibv_get_device_list" = xyes; then :
9895 ac_fn_c_check_header_mongrel "$LINENO" "infiniband/verbs.h" "ac_cv_header_infiniband_verbs_h" "$ac_includes_default"
9896 if test "x$ac_cv_header_infiniband_verbs_h" = xyes; then :
9899 # ibv_create_flow may be defined as a static inline
9900 # function in infiniband/verbs.h, so we can't
9903 # Too bad autoconf has no AC_SYMBOL_EXISTS()
9904 # macro that works like CMake's check_symbol_exists()
9905 # function, to check do a compile check like
9906 # this (they do a clever trick to avoid having
9907 # to know the function's signature).
9909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libibverbs defines ibv_create_flow" >&5
9910 $as_echo_n "checking whether libibverbs defines ibv_create_flow... " >&6; }
9911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9912 /* end confdefs.h. */
9914 #include <infiniband/verbs.h>
9920 (void) ibv_create_flow((struct ibv_qp *) NULL,
9921 (struct ibv_flow_attr *) NULL);
9927 if ac_fn_c_try_link "$LINENO"; then :
9929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9930 $as_echo "yes" >&6; }
9932 $as_echo "#define PCAP_SUPPORT_RDMASNIFF /**/" >>confdefs.h
9934 RDMA_SRC=pcap-rdmasniff.c
9935 LIBS="-libverbs $LIBS"
9939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9940 $as_echo "no" >&6; }
9944 rm -f core conftest.err conftest.$ac_objext \
9945 conftest$ac_exeext conftest.$ac_ext
9957 # Find a good install program. We prefer a C program (faster),
9958 # so one script is as good as another. But avoid the broken or
9959 # incompatible versions:
9960 # SysV /etc/install, /usr/sbin/install
9961 # SunOS /usr/etc/install
9962 # IRIX /sbin/install
9964 # AmigaOS /C/install, which installs bootblocks on floppy discs
9965 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
9966 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
9967 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
9968 # OS/2's system install, which has a completely different semantic
9969 # ./install, which can be erroneously created by make from ./install.sh.
9970 # Reject install programs that cannot install multiple files.
9971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
9972 $as_echo_n "checking for a BSD-compatible install... " >&6; }
9973 if test -z "$INSTALL"; then
9974 if ${ac_cv_path_install+:} false; then :
9975 $as_echo_n "(cached) " >&6
9977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9981 test -z "$as_dir" && as_dir=.
9982 # Account for people who put trailing slashes in PATH elements.
9983 case $as_dir/ in #((
9984 ./ | .// | /[cC]/* | \
9985 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
9986 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
9989 # OSF1 and SCO ODT 3.0 have their own names for install.
9990 # Don't use installbsd from OSF since it installs stuff as root
9992 for ac_prog in ginstall scoinst install; do
9993 for ac_exec_ext in '' $ac_executable_extensions; do
9994 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
9995 if test $ac_prog = install &&
9996 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
9997 # AIX install. It has an incompatible calling convention.
9999 elif test $ac_prog = install &&
10000 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
10001 # program-specific install script used by HP pwplus--don't use.
10004 rm -rf conftest.one conftest.two conftest.dir
10005 echo one > conftest.one
10006 echo two > conftest.two
10008 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
10009 test -s conftest.one && test -s conftest.two &&
10010 test -s conftest.dir/conftest.one &&
10011 test -s conftest.dir/conftest.two
10013 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
10026 rm -rf conftest.one conftest.two conftest.dir
10029 if test "${ac_cv_path_install+set}" = set; then
10030 INSTALL=$ac_cv_path_install
10032 # As a last resort, use the slow shell script. Don't cache a
10033 # value for INSTALL within a source directory, because that will
10034 # break other packages using the cache if that directory is
10035 # removed, or if the value is a relative name.
10036 INSTALL=$ac_install_sh
10039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
10040 $as_echo "$INSTALL" >&6; }
10042 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
10043 # It thinks the first close brace ends the variable substitution.
10044 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
10046 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
10048 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
10051 ac_config_headers="$ac_config_headers config.h"
10054 ac_config_commands="$ac_config_commands default-1"
10056 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_tstamp_precision.3pcap pcap_set_tstamp_type.3pcap rpcapd/Makefile rpcapd/rpcapd.manadmin testprogs/Makefile"
10058 cat >confcache <<\_ACEOF
10059 # This file is a shell script that caches the results of configure
10060 # tests run on this system so they can be shared between configure
10061 # scripts and configure runs, see configure's option --config-cache.
10062 # It is not useful on other systems. If it contains results you don't
10063 # want to keep, you may remove or edit it.
10065 # config.status only pays attention to the cache file if you give it
10066 # the --recheck option to rerun configure.
10068 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10069 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10070 # following values.
10074 # The following way of writing the cache mishandles newlines in values,
10075 # but we know of no workaround that is simple, portable, and efficient.
10076 # So, we kill variables containing newlines.
10077 # Ultrix sh set writes to stderr and can't be redirected directly,
10078 # and sets the high bit in the cache file unless we assign to the vars.
10080 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10081 eval ac_val=\$$ac_var
10085 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
10086 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10089 _ | IFS | as_nl) ;; #(
10090 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
10091 *) { eval $ac_var=; unset $ac_var;} ;;
10097 case $as_nl`(ac_space=' '; set) 2>&1` in #(
10098 *${as_nl}ac_space=\ *)
10099 # `set' does not quote correctly, so add quotes: double-quote
10100 # substitution turns \\\\ into \\, and sed turns \\ into \.
10103 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10106 # `set' quotes correctly as required by POSIX, so do not add quotes.
10107 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10116 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10118 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10120 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10121 if test -w "$cache_file"; then
10122 if test "x$cache_file" != "x/dev/null"; then
10123 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
10124 $as_echo "$as_me: updating cache $cache_file" >&6;}
10125 if test ! -f "$cache_file" || test -h "$cache_file"; then
10126 cat confcache >"$cache_file"
10128 case $cache_file in #(
10130 mv -f confcache "$cache_file"$$ &&
10131 mv -f "$cache_file"$$ "$cache_file" ;; #(
10133 mv -f confcache "$cache_file" ;;
10138 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
10139 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10144 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10145 # Let make expand exec_prefix.
10146 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10148 DEFS=-DHAVE_CONFIG_H
10153 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10154 # 1. Remove the extension, and $U if already installed.
10155 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10156 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
10157 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
10158 # will be set to the directory where LIBOBJS objects are built.
10159 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10160 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
10162 LIBOBJS=$ac_libobjs
10164 LTLIBOBJS=$ac_ltlibobjs
10168 : "${CONFIG_STATUS=./config.status}"
10170 ac_clean_files_save=$ac_clean_files
10171 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10172 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
10173 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
10175 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
10177 # Generated by $as_me.
10178 # Run this file to recreate the current configuration.
10179 # Compiler output produced by configure, useful for debugging
10180 # configure, is in config.log if it exists.
10183 ac_cs_recheck=false
10186 SHELL=\${CONFIG_SHELL-$SHELL}
10189 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
10190 ## -------------------- ##
10191 ## M4sh Initialization. ##
10192 ## -------------------- ##
10194 # Be more Bourne compatible
10195 DUALCASE=1; export DUALCASE # for MKS sh
10196 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
10199 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
10200 # is contrary to our usage. Disable this feature.
10201 alias -g '${1+"$@"}'='"$@"'
10202 setopt NO_GLOB_SUBST
10204 case `(set -o) 2>/dev/null` in #(
10216 # Printing a long string crashes Solaris 7 /usr/bin/printf.
10217 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10218 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
10219 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
10220 # Prefer a ksh shell builtin over an external printf program on Solaris,
10221 # but without wasting forks for bash or zsh.
10222 if test -z "$BASH_VERSION$ZSH_VERSION" \
10223 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
10224 as_echo='print -r --'
10225 as_echo_n='print -rn --'
10226 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
10227 as_echo='printf %s\n'
10228 as_echo_n='printf %s'
10230 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
10231 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
10232 as_echo_n='/usr/ucb/echo -n'
10234 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
10235 as_echo_n_body='eval
10239 expr "X$arg" : "X\\(.*\\)$as_nl";
10240 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
10242 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
10244 export as_echo_n_body
10245 as_echo_n='sh -c $as_echo_n_body as_echo'
10247 export as_echo_body
10248 as_echo='sh -c $as_echo_body as_echo'
10251 # The user is always right.
10252 if test "${PATH_SEPARATOR+set}" != set; then
10254 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
10255 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
10262 # We need space, tab and new line, in precisely that order. Quoting is
10263 # there to prevent editors from complaining about space-tab.
10264 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
10265 # splitting by setting IFS to empty value.)
10268 # Find who we are. Look in the path if we contain no directory separator.
10271 *[\\/]* ) as_myself=$0 ;;
10272 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10273 for as_dir in $PATH
10276 test -z "$as_dir" && as_dir=.
10277 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10283 # We did not find ourselves, most probably we were run as `sh COMMAND'
10284 # in which case we are not to be found in the path.
10285 if test "x$as_myself" = x; then
10288 if test ! -f "$as_myself"; then
10289 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10293 # Unset variables that we do not need and which cause bugs (e.g. in
10294 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
10295 # suppresses any "Segmentation fault" message there. '((' could
10296 # trigger a bug in pdksh 5.2.14.
10297 for as_var in BASH_ENV ENV MAIL MAILPATH
10298 do eval test x\${$as_var+set} = xset \
10299 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
10312 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10315 # as_fn_error STATUS ERROR [LINENO LOG_FD]
10316 # ----------------------------------------
10317 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
10318 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
10319 # script with STATUS, using 1 if that was 0.
10322 as_status=$1; test $as_status -eq 0 && as_status=1
10324 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
10325 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
10327 $as_echo "$as_me: error: $2" >&2
10328 as_fn_exit $as_status
10332 # as_fn_set_status STATUS
10333 # -----------------------
10334 # Set $? to STATUS, without forking.
10335 as_fn_set_status ()
10338 } # as_fn_set_status
10340 # as_fn_exit STATUS
10341 # -----------------
10342 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
10346 as_fn_set_status $1
10352 # Portably unset VAR.
10355 { eval $1=; unset $1;}
10357 as_unset=as_fn_unset
10358 # as_fn_append VAR VALUE
10359 # ----------------------
10360 # Append the text in VALUE to the end of the definition contained in VAR. Take
10361 # advantage of any shell optimizations that allow amortized linear growth over
10362 # repeated appends, instead of the typical quadratic growth present in naive
10364 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
10365 eval 'as_fn_append ()
10376 # as_fn_arith ARG...
10377 # ------------------
10378 # Perform arithmetic evaluation on the ARGs, and store the result in the
10379 # global $as_val. Take advantage of shells that can avoid forks. The arguments
10380 # must be portable across $(()) and expr.
10381 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
10382 eval 'as_fn_arith ()
10389 as_val=`expr "$@" || test $? -eq 1`
10394 if expr a : '\(a\)' >/dev/null 2>&1 &&
10395 test "X`expr 00001 : '.*\(...\)'`" = X001; then
10401 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
10402 as_basename=basename
10407 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
10413 as_me=`$as_basename -- "$0" ||
10414 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10415 X"$0" : 'X\(//\)$' \| \
10416 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
10418 sed '/^.*\/\([^/][^/]*\)\/*$/{
10432 # Avoid depending upon Character Ranges.
10433 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10434 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10435 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10436 as_cr_digits='0123456789'
10437 as_cr_alnum=$as_cr_Letters$as_cr_digits
10439 ECHO_C= ECHO_N= ECHO_T=
10440 case `echo -n x` in #(((((
10442 case `echo 'xy\c'` in
10443 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
10445 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
10452 rm -f conf$$ conf$$.exe conf$$.file
10453 if test -d conf$$.dir; then
10454 rm -f conf$$.dir/conf$$.file
10457 mkdir conf$$.dir 2>/dev/null
10459 if (echo >conf$$.file) 2>/dev/null; then
10460 if ln -s conf$$.file conf$$ 2>/dev/null; then
10462 # ... but there are two gotchas:
10463 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10464 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
10465 # In both cases, we have to default to `cp -pR'.
10466 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
10468 elif ln conf$$.file conf$$ 2>/dev/null; then
10476 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
10477 rmdir conf$$.dir 2>/dev/null
10482 # Create "$as_dir" as a directory, including parents if necessary.
10487 -*) as_dir=./$as_dir;;
10489 test -d "$as_dir" || eval $as_mkdir_p || {
10493 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
10494 *) as_qdir=$as_dir;;
10496 as_dirs="'$as_qdir' $as_dirs"
10497 as_dir=`$as_dirname -- "$as_dir" ||
10498 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10499 X"$as_dir" : 'X\(//\)[^/]' \| \
10500 X"$as_dir" : 'X\(//\)$' \| \
10501 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
10502 $as_echo X"$as_dir" |
10503 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10507 /^X\(\/\/\)[^/].*/{
10520 test -d "$as_dir" && break
10522 test -z "$as_dirs" || eval "mkdir $as_dirs"
10523 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
10527 if mkdir -p . 2>/dev/null; then
10528 as_mkdir_p='mkdir -p "$as_dir"'
10530 test -d ./-p && rmdir ./-p
10535 # as_fn_executable_p FILE
10536 # -----------------------
10537 # Test if FILE is an executable regular file.
10538 as_fn_executable_p ()
10540 test -f "$1" && test -x "$1"
10541 } # as_fn_executable_p
10542 as_test_x='test -x'
10543 as_executable_p=as_fn_executable_p
10545 # Sed expression to map a string onto a valid CPP name.
10546 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10548 # Sed expression to map a string onto a valid variable name.
10549 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10553 ## ----------------------------------- ##
10554 ## Main body of $CONFIG_STATUS script. ##
10555 ## ----------------------------------- ##
10557 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
10559 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10560 # Save the log message, to keep $0 and so on meaningful, and to
10561 # report actual input values of CONFIG_FILES etc. instead of their
10562 # values after options handling.
10564 This file was extended by pcap $as_me 1.9.0-PRE-GIT, which was
10565 generated by GNU Autoconf 2.69. Invocation command line was
10567 CONFIG_FILES = $CONFIG_FILES
10568 CONFIG_HEADERS = $CONFIG_HEADERS
10569 CONFIG_LINKS = $CONFIG_LINKS
10570 CONFIG_COMMANDS = $CONFIG_COMMANDS
10573 on `(hostname || uname -n) 2>/dev/null | sed 1q`
10578 case $ac_config_files in *"
10579 "*) set x $ac_config_files; shift; ac_config_files=$*;;
10582 case $ac_config_headers in *"
10583 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
10587 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10588 # Files that config.status was made for.
10589 config_files="$ac_config_files"
10590 config_headers="$ac_config_headers"
10591 config_commands="$ac_config_commands"
10595 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10597 \`$as_me' instantiates files and other configuration actions
10598 from templates according to the current configuration. Unless the files
10599 and actions are specified as TAGs, all are instantiated by default.
10601 Usage: $0 [OPTION]... [TAG]...
10603 -h, --help print this help, then exit
10604 -V, --version print version number and configuration settings, then exit
10605 --config print configuration, then exit
10606 -q, --quiet, --silent
10607 do not print progress messages
10608 -d, --debug don't remove temporary files
10609 --recheck update $as_me by reconfiguring in the same conditions
10610 --file=FILE[:TEMPLATE]
10611 instantiate the configuration file FILE
10612 --header=FILE[:TEMPLATE]
10613 instantiate the configuration header FILE
10615 Configuration files:
10618 Configuration headers:
10621 Configuration commands:
10624 Report bugs to the package provider."
10627 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10628 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
10630 pcap config.status 1.9.0-PRE-GIT
10631 configured by $0, generated by GNU Autoconf 2.69,
10632 with options \\"\$ac_cs_config\\"
10634 Copyright (C) 2012 Free Software Foundation, Inc.
10635 This config.status script is free software; the Free Software Foundation
10636 gives unlimited permission to copy, distribute and modify it."
10641 test -n "\$AWK" || AWK=awk
10644 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10645 # The default lists apply if the user does not specify any file.
10651 ac_option=`expr "X$1" : 'X\([^=]*\)='`
10652 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
10656 ac_option=`expr "X$1" : 'X\([^=]*\)='`
10668 # Handling of the options.
10669 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10671 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
10672 $as_echo "$ac_cs_version"; exit ;;
10673 --config | --confi | --conf | --con | --co | --c )
10674 $as_echo "$ac_cs_config"; exit ;;
10675 --debug | --debu | --deb | --de | --d | -d )
10677 --file | --fil | --fi | --f )
10680 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10681 '') as_fn_error $? "missing file argument" ;;
10683 as_fn_append CONFIG_FILES " '$ac_optarg'"
10684 ac_need_defaults=false;;
10685 --header | --heade | --head | --hea )
10688 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10690 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
10691 ac_need_defaults=false;;
10693 # Conflict between --help and --header
10694 as_fn_error $? "ambiguous option: \`$1'
10695 Try \`$0 --help' for more information.";;
10696 --help | --hel | -h )
10697 $as_echo "$ac_cs_usage"; exit ;;
10698 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10699 | -silent | --silent | --silen | --sile | --sil | --si | --s)
10702 # This is an error.
10703 -*) as_fn_error $? "unrecognized option: \`$1'
10704 Try \`$0 --help' for more information." ;;
10706 *) as_fn_append ac_config_targets " $1"
10707 ac_need_defaults=false ;;
10713 ac_configure_extra_args=
10715 if $ac_cs_silent; then
10717 ac_configure_extra_args="$ac_configure_extra_args --silent"
10721 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10722 if \$ac_cs_recheck; then
10723 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10725 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
10726 CONFIG_SHELL='$SHELL'
10727 export CONFIG_SHELL
10732 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10736 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10737 ## Running $as_me. ##
10743 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10751 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10753 # Handling of arguments.
10754 for ac_config_target in $ac_config_targets
10756 case $ac_config_target in
10757 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
10758 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
10759 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
10760 "pcap-filter.manmisc") CONFIG_FILES="$CONFIG_FILES pcap-filter.manmisc" ;;
10761 "pcap-linktype.manmisc") CONFIG_FILES="$CONFIG_FILES pcap-linktype.manmisc" ;;
10762 "pcap-tstamp.manmisc") CONFIG_FILES="$CONFIG_FILES pcap-tstamp.manmisc" ;;
10763 "pcap-savefile.manfile") CONFIG_FILES="$CONFIG_FILES pcap-savefile.manfile" ;;
10764 "pcap.3pcap") CONFIG_FILES="$CONFIG_FILES pcap.3pcap" ;;
10765 "pcap_compile.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_compile.3pcap" ;;
10766 "pcap_datalink.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_datalink.3pcap" ;;
10767 "pcap_dump_open.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_dump_open.3pcap" ;;
10768 "pcap_get_tstamp_precision.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_get_tstamp_precision.3pcap" ;;
10769 "pcap_list_datalinks.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_list_datalinks.3pcap" ;;
10770 "pcap_list_tstamp_types.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_list_tstamp_types.3pcap" ;;
10771 "pcap_open_dead.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_open_dead.3pcap" ;;
10772 "pcap_open_offline.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_open_offline.3pcap" ;;
10773 "pcap_set_tstamp_precision.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_set_tstamp_precision.3pcap" ;;
10774 "pcap_set_tstamp_type.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_set_tstamp_type.3pcap" ;;
10775 "rpcapd/Makefile") CONFIG_FILES="$CONFIG_FILES rpcapd/Makefile" ;;
10776 "rpcapd/rpcapd.manadmin") CONFIG_FILES="$CONFIG_FILES rpcapd/rpcapd.manadmin" ;;
10777 "testprogs/Makefile") CONFIG_FILES="$CONFIG_FILES testprogs/Makefile" ;;
10779 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
10784 # If the user did not use the arguments to specify the items to instantiate,
10785 # then the envvar interface is used. Set only those that are not.
10786 # We use the long form for the default assignment because of an extremely
10787 # bizarre bug on SunOS 4.1.3.
10788 if $ac_need_defaults; then
10789 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10790 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10791 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
10794 # Have a temporary directory for convenience. Make it in the build tree
10795 # simply because there is no reason against having it here, and in addition,
10796 # creating and moving files from /tmp can sometimes cause problems.
10797 # Hook for its removal unless debugging.
10798 # Note that there is a small window in which the directory will not be cleaned:
10799 # after its creation but before its name has been assigned to `$tmp'.
10803 trap 'exit_status=$?
10804 : "${ac_tmp:=$tmp}"
10805 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
10807 trap 'as_fn_exit 1' 1 2 13 15
10809 # Create a (secure) tmp directory for tmp files.
10812 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
10816 tmp=./conf$$-$RANDOM
10817 (umask 077 && mkdir "$tmp")
10818 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
10821 # Set up the scripts for CONFIG_FILES section.
10822 # No need to generate them if there are no CONFIG_FILES.
10823 # This happens for instance with `./config.status config.h'.
10824 if test -n "$CONFIG_FILES"; then
10827 ac_cr=`echo X | tr X '\015'`
10828 # On cygwin, bash can eat \r inside `` if the user requested igncr.
10829 # But we know of no other shell where ac_cr would be empty at this
10830 # point, so we can use a bashism as a fallback.
10831 if test "x$ac_cr" = x; then
10832 eval ac_cr=\$\'\\r\'
10834 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
10835 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
10838 ac_cs_awk_cr=$ac_cr
10841 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
10846 echo "cat >conf$$subs.awk <<_ACEOF" &&
10847 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
10849 } >conf$$subs.sh ||
10850 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
10851 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
10853 for ac_last_try in false false false false false :; do
10854 . ./conf$$subs.sh ||
10855 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
10857 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
10858 if test $ac_delim_n = $ac_delim_num; then
10860 elif $ac_last_try; then
10861 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
10863 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10866 rm -f conf$$subs.sh
10868 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10869 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
10873 s/^/S["/; s/!.*/"]=/
10883 s/\(.\{148\}\)..*/\1/
10885 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
10890 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10897 s/\(.\{148\}\)..*/\1/
10899 s/["\\]/\\&/g; s/^/"/; s/$/"/
10903 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10908 ' <conf$$subs.awk | sed '
10913 ' >>$CONFIG_STATUS || ac_write_fail=1
10914 rm -f conf$$subs.awk
10915 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10917 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
10918 for (key in S) S_is_set[key] = 1
10924 nfields = split(line, field, "@")
10926 len = length(field[1])
10927 for (i = 2; i < nfields; i++) {
10929 keylen = length(key)
10930 if (S_is_set[key]) {
10932 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
10933 len += length(value) + length(field[++i])
10944 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10945 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
10946 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
10949 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
10950 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
10953 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
10954 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
10955 # trailing colons and then remove the whole line if VPATH becomes empty
10956 # (actually we leave an empty line to preserve line numbers).
10957 if test "x$srcdir" = x.; then
10958 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
10976 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10977 fi # test -n "$CONFIG_FILES"
10979 # Set up the scripts for CONFIG_HEADERS section.
10980 # No need to generate them if there are no CONFIG_HEADERS.
10981 # This happens for instance with `./config.status Makefile'.
10982 if test -n "$CONFIG_HEADERS"; then
10983 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
10987 # Transform confdefs.h into an awk script `defines.awk', embedded as
10988 # here-document in config.status, that substitutes the proper values into
10989 # config.h.in to produce config.h.
10991 # Create a delimiter string that does not exist in confdefs.h, to ease
10992 # handling of long lines.
10994 for ac_last_try in false false :; do
10995 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
10996 if test -z "$ac_tt"; then
10998 elif $ac_last_try; then
10999 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
11001 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11005 # For the awk script, D is an array of macro values keyed by name,
11006 # likewise P contains macro parameters if any. Preserve backslash
11007 # newline sequences.
11009 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11011 s/.\{148\}/&'"$ac_delim"'/g
11014 s/^[ ]*#[ ]*define[ ][ ]*/ /
11021 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11023 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
11027 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11028 D["\1"]=" \3\\\\\\n"\\/p
11030 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
11035 s/.\{148\}/&'"$ac_delim"'/g
11040 s/["\\]/\\&/g; s/^/"/; s/$/"/p
11043 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
11045 ' <confdefs.h | sed '
11046 s/'"$ac_delim"'/"\\\
11047 "/g' >>$CONFIG_STATUS || ac_write_fail=1
11049 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11050 for (key in D) D_is_set[key] = 1
11053 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
11055 split(line, arg, " ")
11056 if (arg[1] == "#") {
11060 defundef = substr(arg[1], 2)
11063 split(mac1, mac2, "(") #)
11065 prefix = substr(line, 1, index(line, defundef) - 1)
11066 if (D_is_set[macro]) {
11067 # Preserve the white space surrounding the "#".
11068 print prefix "define", macro P[macro] D[macro]
11071 # Replace #undef with comments. This is necessary, for example,
11072 # in the case of _POSIX_SOURCE, which is predefined and required
11073 # on some systems where configure will not decide to define it.
11074 if (defundef == "undef") {
11075 print "/*", prefix defundef, macro, "*/"
11083 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11084 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
11085 fi # test -n "$CONFIG_HEADERS"
11088 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
11093 :[FHLC]) ac_mode=$ac_tag; continue;;
11095 case $ac_mode$ac_tag in
11097 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
11098 :[FH]-) ac_tag=-:-;;
11099 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11116 -) ac_f="$ac_tmp/stdin";;
11117 *) # Look for the file first in the build tree, then in the source tree
11118 # (if the path is not absolute). The absolute path cannot be DOS-style,
11119 # because $ac_f cannot contain `:'.
11123 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11125 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
11127 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
11128 as_fn_append ac_file_inputs " '$ac_f'"
11131 # Let's still pretend it is `configure' which instantiates (i.e., don't
11132 # use $as_me), people would be surprised to read:
11133 # /* config.h. Generated by config.status. */
11134 configure_input='Generated from '`
11135 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
11137 if test x"$ac_file" != x-; then
11138 configure_input="$ac_file. $configure_input"
11139 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
11140 $as_echo "$as_me: creating $ac_file" >&6;}
11142 # Neutralize special characters interpreted by sed in replacement strings.
11143 case $configure_input in #(
11144 *\&* | *\|* | *\\* )
11145 ac_sed_conf_input=`$as_echo "$configure_input" |
11146 sed 's/[\\\\&|]/\\\\&/g'`;; #(
11147 *) ac_sed_conf_input=$configure_input;;
11151 *:-:* | *:-) cat >"$ac_tmp/stdin" \
11152 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
11157 ac_dir=`$as_dirname -- "$ac_file" ||
11158 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11159 X"$ac_file" : 'X\(//\)[^/]' \| \
11160 X"$ac_file" : 'X\(//\)$' \| \
11161 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11162 $as_echo X"$ac_file" |
11163 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11167 /^X\(\/\/\)[^/].*/{
11180 as_dir="$ac_dir"; as_fn_mkdir_p
11184 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11186 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
11187 # A ".." for each directory in $ac_dir_suffix.
11188 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
11189 case $ac_top_builddir_sub in
11190 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11191 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11194 ac_abs_top_builddir=$ac_pwd
11195 ac_abs_builddir=$ac_pwd$ac_dir_suffix
11196 # for backward compatibility:
11197 ac_top_builddir=$ac_top_build_prefix
11200 .) # We are building in place.
11202 ac_top_srcdir=$ac_top_builddir_sub
11203 ac_abs_top_srcdir=$ac_pwd ;;
11204 [\\/]* | ?:[\\/]* ) # Absolute name.
11205 ac_srcdir=$srcdir$ac_dir_suffix;
11206 ac_top_srcdir=$srcdir
11207 ac_abs_top_srcdir=$srcdir ;;
11208 *) # Relative name.
11209 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11210 ac_top_srcdir=$ac_top_build_prefix$srcdir
11211 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
11213 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
11223 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11224 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
11228 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11229 # If the template does not know about datarootdir, expand it.
11230 # FIXME: This hack should be removed a few years after 2.60.
11231 ac_datarootdir_hack=; ac_datarootdir_seen=
11242 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
11243 *datarootdir*) ac_datarootdir_seen=yes;;
11244 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
11245 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11246 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11248 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11249 ac_datarootdir_hack='
11250 s&@datadir@&$datadir&g
11251 s&@docdir@&$docdir&g
11252 s&@infodir@&$infodir&g
11253 s&@localedir@&$localedir&g
11254 s&@mandir@&$mandir&g
11255 s&\\\${datarootdir}&$datarootdir&g' ;;
11259 # Neutralize VPATH when `$srcdir' = `.'.
11260 # Shell code in configure.ac might set extrasub.
11261 # FIXME: do we really want to maintain this feature?
11262 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11263 ac_sed_extra="$ac_vpsub
11266 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11268 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11269 s|@configure_input@|$ac_sed_conf_input|;t t
11270 s&@top_builddir@&$ac_top_builddir_sub&;t t
11271 s&@top_build_prefix@&$ac_top_build_prefix&;t t
11272 s&@srcdir@&$ac_srcdir&;t t
11273 s&@abs_srcdir@&$ac_abs_srcdir&;t t
11274 s&@top_srcdir@&$ac_top_srcdir&;t t
11275 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
11276 s&@builddir@&$ac_builddir&;t t
11277 s&@abs_builddir@&$ac_abs_builddir&;t t
11278 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
11279 s&@INSTALL@&$ac_INSTALL&;t t
11280 $ac_datarootdir_hack
11282 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
11283 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11285 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11286 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
11287 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
11288 "$ac_tmp/out"`; test -z "$ac_out"; } &&
11289 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11290 which seems to be undefined. Please make sure it is defined" >&5
11291 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11292 which seems to be undefined. Please make sure it is defined" >&2;}
11294 rm -f "$ac_tmp/stdin"
11296 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
11297 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
11299 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11305 if test x"$ac_file" != x-; then
11307 $as_echo "/* $configure_input */" \
11308 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
11309 } >"$ac_tmp/config.h" \
11310 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11311 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
11312 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
11313 $as_echo "$as_me: $ac_file is unchanged" >&6;}
11316 mv "$ac_tmp/config.h" "$ac_file" \
11317 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11320 $as_echo "/* $configure_input */" \
11321 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
11322 || as_fn_error $? "could not create -" "$LINENO" 5
11326 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
11327 $as_echo "$as_me: executing $ac_file commands" >&6;}
11332 case $ac_file$ac_mode in
11333 "default-1":C) if test -f .devel; then
11334 echo timestamp > stamp-h
11335 cat $srcdir/Makefile-devel-adds >> Makefile
11345 ac_clean_files=$ac_clean_files_save
11347 test $ac_write_fail = 0 ||
11348 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
11351 # configure is writing to config.log, and then calls config.status.
11352 # config.status does its own redirection, appending to config.log.
11353 # Unfortunately, on DOS this fails, as config.log is still kept open
11354 # by configure, so config.status won't be able to write to it; its
11355 # output is simply discarded. So we exec the FD to /dev/null,
11356 # effectively closing config.log, so it can be properly (re)opened and
11357 # appended to by config.status. When coming back to configure, we
11358 # need to make the FD available again.
11359 if test "$no_create" != yes; then
11361 ac_config_status_args=
11362 test "$silent" = yes &&
11363 ac_config_status_args="$ac_config_status_args --quiet"
11365 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11367 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11368 # would make configure fail if this is the last instruction.
11369 $ac_cs_success || as_fn_exit 1
11371 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
11372 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
11373 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}