2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69.
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.
585 ac_unique_file
="pcap.c"
586 # Factoring default headers for most tests.
587 ac_includes_default
="\
589 #ifdef HAVE_SYS_TYPES_H
590 # include <sys/types.h>
592 #ifdef HAVE_SYS_STAT_H
593 # include <sys/stat.h>
599 # ifdef HAVE_STDLIB_H
604 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
609 #ifdef HAVE_STRINGS_H
610 # include <strings.h>
612 #ifdef HAVE_INTTYPES_H
613 # include <inttypes.h>
622 ac_subst_vars
='LTLIBOBJS
626 PCAP_SUPPORT_PACKET_RING
634 PCAP_SUPPORT_NETFILTER
666 HAVE_LINUX_TPACKET_AUXDATA
719 program_transform_name
732 enable_option_checking
757 ac_precious_vars
='build_alias
770 # Initialize some variables set by options.
772 ac_init_version
=false
773 ac_unrecognized_opts
=
775 # The variables have the same names as the options, with
776 # dashes changed to underlines.
784 program_transform_name
=s
,x
,x
,
792 # Installation directory options.
793 # These are left unexpanded so users can "make install exec_prefix=/foo"
794 # and all the variables that are supposed to be based on exec_prefix
795 # by default will actually change.
796 # Use braces instead of parens because sh, perl, etc. also accept them.
797 # (The list follows the same order as the GNU Coding Standards.)
798 bindir
='${exec_prefix}/bin'
799 sbindir
='${exec_prefix}/sbin'
800 libexecdir
='${exec_prefix}/libexec'
801 datarootdir
='${prefix}/share'
802 datadir
='${datarootdir}'
803 sysconfdir
='${prefix}/etc'
804 sharedstatedir
='${prefix}/com'
805 localstatedir
='${prefix}/var'
806 includedir
='${prefix}/include'
807 oldincludedir
='/usr/include'
808 docdir
='${datarootdir}/doc/${PACKAGE}'
809 infodir
='${datarootdir}/info'
814 libdir
='${exec_prefix}/lib'
815 localedir
='${datarootdir}/locale'
816 mandir
='${datarootdir}/man'
822 # If the previous option needs an argument, assign it.
823 if test -n "$ac_prev"; then
824 eval $ac_prev=\
$ac_option
830 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
835 # Accept the important Cygnus configure options, so we can diagnose typos.
837 case $ac_dashdash$ac_option in
841 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
843 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
846 -build |
--build |
--buil |
--bui |
--bu)
847 ac_prev
=build_alias
;;
848 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
849 build_alias
=$ac_optarg ;;
851 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
852 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
853 ac_prev
=cache_file
;;
854 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
855 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
856 cache_file
=$ac_optarg ;;
859 cache_file
=config.cache
;;
861 -datadir |
--datadir |
--datadi |
--datad)
863 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
864 datadir
=$ac_optarg ;;
866 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
867 |
--dataroo |
--dataro |
--datar)
868 ac_prev
=datarootdir
;;
869 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
870 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
871 datarootdir
=$ac_optarg ;;
873 -disable-* |
--disable-*)
874 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
875 # Reject names that are not valid shell variable names.
876 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
877 as_fn_error $?
"invalid feature name: $ac_useropt"
878 ac_useropt_orig
=$ac_useropt
879 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
880 case $ac_user_opts in
884 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
885 ac_unrecognized_sep
=', ';;
887 eval enable_
$ac_useropt=no
;;
889 -docdir |
--docdir |
--docdi |
--doc |
--do)
891 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
894 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
896 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
899 -enable-* |
--enable-*)
900 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
901 # Reject names that are not valid shell variable names.
902 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
903 as_fn_error $?
"invalid feature name: $ac_useropt"
904 ac_useropt_orig
=$ac_useropt
905 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
906 case $ac_user_opts in
910 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
911 ac_unrecognized_sep
=', ';;
913 eval enable_
$ac_useropt=\
$ac_optarg ;;
915 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
916 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
917 |
--exec |
--exe |
--ex)
918 ac_prev
=exec_prefix
;;
919 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
920 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
921 |
--exec=* |
--exe=* |
--ex=*)
922 exec_prefix
=$ac_optarg ;;
924 -gas |
--gas |
--ga |
--g)
925 # Obsolete; use --with-gas.
928 -help |
--help |
--hel |
--he |
-h)
930 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
931 ac_init_help
=recursive
;;
932 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
933 ac_init_help
=short
;;
935 -host |
--host |
--hos |
--ho)
936 ac_prev
=host_alias
;;
937 -host=* |
--host=* |
--hos=* |
--ho=*)
938 host_alias
=$ac_optarg ;;
940 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
942 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
944 htmldir
=$ac_optarg ;;
946 -includedir |
--includedir |
--includedi |
--included |
--include \
947 |
--includ |
--inclu |
--incl |
--inc)
948 ac_prev
=includedir
;;
949 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
950 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
951 includedir
=$ac_optarg ;;
953 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
955 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
956 infodir
=$ac_optarg ;;
958 -libdir |
--libdir |
--libdi |
--libd)
960 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
963 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
964 |
--libexe |
--libex |
--libe)
965 ac_prev
=libexecdir
;;
966 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
967 |
--libexe=* |
--libex=* |
--libe=*)
968 libexecdir
=$ac_optarg ;;
970 -localedir |
--localedir |
--localedi |
--localed |
--locale)
972 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
973 localedir
=$ac_optarg ;;
975 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
976 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
977 ac_prev
=localstatedir
;;
978 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
979 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
980 localstatedir
=$ac_optarg ;;
982 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
984 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
988 # Obsolete; use --without-fp.
991 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
992 |
--no-cr |
--no-c |
-n)
995 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
996 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
999 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1000 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1001 |
--oldin |
--oldi |
--old |
--ol |
--o)
1002 ac_prev
=oldincludedir
;;
1003 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1004 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1005 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1006 oldincludedir
=$ac_optarg ;;
1008 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1010 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1011 prefix
=$ac_optarg ;;
1013 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1014 |
--program-pre |
--program-pr |
--program-p)
1015 ac_prev
=program_prefix
;;
1016 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1017 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1018 program_prefix
=$ac_optarg ;;
1020 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1021 |
--program-suf |
--program-su |
--program-s)
1022 ac_prev
=program_suffix
;;
1023 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1024 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1025 program_suffix
=$ac_optarg ;;
1027 -program-transform-name |
--program-transform-name \
1028 |
--program-transform-nam |
--program-transform-na \
1029 |
--program-transform-n |
--program-transform- \
1030 |
--program-transform |
--program-transfor \
1031 |
--program-transfo |
--program-transf \
1032 |
--program-trans |
--program-tran \
1033 |
--progr-tra |
--program-tr |
--program-t)
1034 ac_prev
=program_transform_name
;;
1035 -program-transform-name=* |
--program-transform-name=* \
1036 |
--program-transform-nam=* |
--program-transform-na=* \
1037 |
--program-transform-n=* |
--program-transform-=* \
1038 |
--program-transform=* |
--program-transfor=* \
1039 |
--program-transfo=* |
--program-transf=* \
1040 |
--program-trans=* |
--program-tran=* \
1041 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1042 program_transform_name
=$ac_optarg ;;
1044 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1046 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1047 pdfdir
=$ac_optarg ;;
1049 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1051 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1054 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1055 |
-silent |
--silent |
--silen |
--sile |
--sil)
1058 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1060 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1062 sbindir
=$ac_optarg ;;
1064 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1065 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1066 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1068 ac_prev
=sharedstatedir
;;
1069 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1070 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1071 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1073 sharedstatedir
=$ac_optarg ;;
1075 -site |
--site |
--sit)
1077 -site=* |
--site=* |
--sit=*)
1080 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1082 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1083 srcdir
=$ac_optarg ;;
1085 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1086 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1087 ac_prev
=sysconfdir
;;
1088 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1089 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1090 sysconfdir
=$ac_optarg ;;
1092 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1093 ac_prev
=target_alias
;;
1094 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1095 target_alias
=$ac_optarg ;;
1097 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1100 -version |
--version |
--versio |
--versi |
--vers |
-V)
1101 ac_init_version
=: ;;
1104 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1105 # Reject names that are not valid shell variable names.
1106 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1107 as_fn_error $?
"invalid package name: $ac_useropt"
1108 ac_useropt_orig
=$ac_useropt
1109 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1110 case $ac_user_opts in
1114 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1115 ac_unrecognized_sep
=', ';;
1117 eval with_
$ac_useropt=\
$ac_optarg ;;
1119 -without-* |
--without-*)
1120 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1121 # Reject names that are not valid shell variable names.
1122 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1123 as_fn_error $?
"invalid package name: $ac_useropt"
1124 ac_useropt_orig
=$ac_useropt
1125 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1126 case $ac_user_opts in
1130 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1131 ac_unrecognized_sep
=', ';;
1133 eval with_
$ac_useropt=no
;;
1136 # Obsolete; use --with-x.
1139 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1140 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1141 ac_prev
=x_includes
;;
1142 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1143 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1144 x_includes
=$ac_optarg ;;
1146 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1147 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1148 ac_prev
=x_libraries
;;
1149 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1150 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1151 x_libraries
=$ac_optarg ;;
1153 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1154 Try \`$0 --help' for more information"
1158 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1159 # Reject names that are not valid shell variable names.
1160 case $ac_envvar in #(
1161 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1162 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1164 eval $ac_envvar=\
$ac_optarg
1165 export $ac_envvar ;;
1168 # FIXME: should be removed in autoconf 3.0.
1169 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1170 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1171 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1172 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1178 if test -n "$ac_prev"; then
1179 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1180 as_fn_error $?
"missing argument to $ac_option"
1183 if test -n "$ac_unrecognized_opts"; then
1184 case $enable_option_checking in
1186 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1187 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1191 # Check all directory arguments for consistency.
1192 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1193 datadir sysconfdir sharedstatedir localstatedir includedir \
1194 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1195 libdir localedir mandir
1197 eval ac_val
=\$
$ac_var
1198 # Remove trailing slashes.
1201 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1202 eval $ac_var=\
$ac_val;;
1204 # Be sure to have absolute directory names.
1206 [\\/$
]* | ?
:[\\/]* ) continue;;
1207 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1209 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1212 # There might be people who depend on the old broken behavior: `$host'
1213 # used to hold the argument of --host etc.
1214 # FIXME: To remove some day.
1217 target
=$target_alias
1219 # FIXME: To remove some day.
1220 if test "x$host_alias" != x
; then
1221 if test "x$build_alias" = x
; then
1222 cross_compiling
=maybe
1223 elif test "x$build_alias" != "x$host_alias"; then
1229 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1231 test "$silent" = yes && exec 6>/dev
/null
1234 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1235 ac_ls_di
=`ls -di .` &&
1236 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1237 as_fn_error $?
"working directory cannot be determined"
1238 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1239 as_fn_error $?
"pwd does not report name of working directory"
1242 # Find the source files, if location was not specified.
1243 if test -z "$srcdir"; then
1244 ac_srcdir_defaulted
=yes
1245 # Try the directory containing this script, then the parent directory.
1246 ac_confdir
=`$as_dirname -- "$as_myself" ||
1247 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1248 X"$as_myself" : 'X\(//\)[^/]' \| \
1249 X"$as_myself" : 'X\(//\)$' \| \
1250 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1251 $as_echo X"$as_myself" |
1252 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1270 if test ! -r "$srcdir/$ac_unique_file"; then
1274 ac_srcdir_defaulted
=no
1276 if test ! -r "$srcdir/$ac_unique_file"; then
1277 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1278 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1280 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1282 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1284 # When building in place, set srcdir=.
1285 if test "$ac_abs_confdir" = "$ac_pwd"; then
1288 # Remove unnecessary trailing slashes from srcdir.
1289 # Double slashes in file names in object file debugging info
1290 # mess up M-x gdb in Emacs.
1292 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1294 for ac_var
in $ac_precious_vars; do
1295 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1296 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1297 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1298 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1302 # Report the --help message.
1304 if test "$ac_init_help" = "long"; then
1305 # Omit some internal or obsolete options to make the list less imposing.
1306 # This message is too long to be a string in the A/UX 3.1 sh.
1308 \`configure' configures this package to adapt to many kinds of systems.
1310 Usage: $0 [OPTION]... [VAR=VALUE]...
1312 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1313 VAR=VALUE. See below for descriptions of some of the useful variables.
1315 Defaults for the options are specified in brackets.
1318 -h, --help display this help and exit
1319 --help=short display options specific to this package
1320 --help=recursive display the short help of all the included packages
1321 -V, --version display version information and exit
1322 -q, --quiet, --silent do not print \`checking ...' messages
1323 --cache-file=FILE cache test results in FILE [disabled]
1324 -C, --config-cache alias for \`--cache-file=config.cache'
1325 -n, --no-create do not create output files
1326 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1328 Installation directories:
1329 --prefix=PREFIX install architecture-independent files in PREFIX
1330 [$ac_default_prefix]
1331 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1334 By default, \`make install' will install all the files in
1335 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1336 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1337 for instance \`--prefix=\$HOME'.
1339 For better control, use the options below.
1341 Fine tuning of the installation directories:
1342 --bindir=DIR user executables [EPREFIX/bin]
1343 --sbindir=DIR system admin executables [EPREFIX/sbin]
1344 --libexecdir=DIR program executables [EPREFIX/libexec]
1345 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1346 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1347 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1348 --libdir=DIR object code libraries [EPREFIX/lib]
1349 --includedir=DIR C header files [PREFIX/include]
1350 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1351 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1352 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1353 --infodir=DIR info documentation [DATAROOTDIR/info]
1354 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1355 --mandir=DIR man documentation [DATAROOTDIR/man]
1356 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1357 --htmldir=DIR html documentation [DOCDIR]
1358 --dvidir=DIR dvi documentation [DOCDIR]
1359 --pdfdir=DIR pdf documentation [DOCDIR]
1360 --psdir=DIR ps documentation [DOCDIR]
1366 --build=BUILD configure
for building on BUILD
[guessed
]
1367 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1368 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1372 if test -n "$ac_init_help"; then
1377 --disable-option-checking ignore unrecognized
--enable/--with options
1378 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1379 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1380 --disable-largefile omit support
for large files
1381 --disable-protochain disable
\"protochain
\" insn
1382 --enable-ipv6 build IPv6-capable version
[default
=yes, if
1383 getaddrinfo available
]
1384 --enable-optimizer-dbg build optimizer debugging code
1385 --enable-yydebug build parser debugging code
1386 --disable-universal don
't build universal on OS X
1387 --enable-shared build shared libraries [default=yes, if support
1389 --enable-usb enable nusb support [default=yes, if support
1391 --enable-bluetooth enable Bluetooth support [default=yes, if support
1393 --enable-dbus enable D-Bus capture support [default=yes, if
1395 --enable-packet-ring enable Linux packet ring support [default=yes]
1398 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1399 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1400 --without-gcc don't use gcc
1401 --with-sita include SITA support
1402 --with-pcap=TYPE use packet capture TYPE
1403 --without-libnl disable libnl support
[default
=yes, on Linux
, if
1405 --with-dag[=DIR
] include Endace DAG support
(located
in directory
1406 DIR
, if supplied
).
[default
=yes, if present
]
1407 --with-dag-includes=IDIR
1408 Endace DAG include directory
, if not DIR
/include
1409 --with-dag-libraries=LDIR
1410 Endace DAG library directory
, if not DIR
/lib
1411 --with-septel[=DIR
] include Septel support
(located
in directory DIR
, if
1412 supplied
).
[default
=yes, if present
]
1413 --with-snf[=DIR
] include Myricom SNF support
(located
in directory
1414 DIR
, if supplied
).
[default
=yes, if present
]
1415 --with-snf-includes=IDIR
1416 Myricom SNF include directory
, if not DIR
/include
1417 --with-snf-libraries=LDIR
1418 Myricom SNF library directory
, if not DIR
/lib
1419 --with-turbocap[=DIR
] include Riverbed TurboCap support
(located
in
1420 directory DIR
, if supplied
).
[default
=yes, if
1423 Some influential environment variables
:
1424 CC C compiler
command
1425 CFLAGS C compiler flags
1426 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1427 nonstandard directory
<lib dir
>
1428 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1429 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1430 you have headers
in a nonstandard directory
<include dir
>
1432 YACC The
`Yet Another Compiler Compiler' implementation to use.
1433 Defaults to the first program found out of: `bison
-y', `byacc',
1435 YFLAGS The list of arguments that will be passed by default to $YACC.
1436 This script will default YFLAGS to the empty string to avoid a
1437 default value of `-d' given by some make applications.
1439 Use these variables to override the choices made by `configure' or to
help
1440 it to
find libraries and programs with nonstandard names
/locations.
1442 Report bugs to the package provider.
1447 if test "$ac_init_help" = "recursive"; then
1448 # If there are subdirs, report their specific --help.
1449 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1450 test -d "$ac_dir" ||
1451 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1456 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1458 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1459 # A ".." for each directory in $ac_dir_suffix.
1460 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1461 case $ac_top_builddir_sub in
1462 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1463 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1466 ac_abs_top_builddir
=$ac_pwd
1467 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1468 # for backward compatibility:
1469 ac_top_builddir
=$ac_top_build_prefix
1472 .
) # We are building in place.
1474 ac_top_srcdir
=$ac_top_builddir_sub
1475 ac_abs_top_srcdir
=$ac_pwd ;;
1476 [\\/]* | ?
:[\\/]* ) # Absolute name.
1477 ac_srcdir
=$srcdir$ac_dir_suffix;
1478 ac_top_srcdir
=$srcdir
1479 ac_abs_top_srcdir
=$srcdir ;;
1481 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1482 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1483 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1485 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1487 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1488 # Check for guested configure.
1489 if test -f "$ac_srcdir/configure.gnu"; then
1491 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1492 elif test -f "$ac_srcdir/configure"; then
1494 $SHELL "$ac_srcdir/configure" --help=recursive
1496 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1498 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1502 test -n "$ac_init_help" && exit $ac_status
1503 if $ac_init_version; then
1506 generated by GNU Autoconf
2.69
1508 Copyright
(C
) 2012 Free Software Foundation
, Inc.
1509 This configure
script is free software
; the Free Software Foundation
1510 gives unlimited permission to copy
, distribute and modify it.
1515 ## ------------------------ ##
1516 ## Autoconf initialization. ##
1517 ## ------------------------ ##
1519 # ac_fn_c_try_compile LINENO
1520 # --------------------------
1521 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1522 ac_fn_c_try_compile
()
1524 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1525 rm -f conftest.
$ac_objext
1526 if { { ac_try
="$ac_compile"
1528 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1529 *) ac_try_echo=$ac_try;;
1531 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1532 $as_echo "$ac_try_echo"; } >&5
1533 (eval "$ac_compile") 2>conftest.err
1535 if test -s conftest.err; then
1536 grep -v '^ *+' conftest.err >conftest.er1
1537 cat conftest.er1 >&5
1538 mv -f conftest.er1 conftest.err
1540 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1541 test $ac_status = 0; } && {
1542 test -z "$ac_c_werror_flag" ||
1543 test ! -s conftest.err
1544 } && test -s conftest.$ac_objext; then :
1547 $as_echo "$as_me: failed program was:" >&5
1548 sed 's/^/| /' conftest.$ac_ext >&5
1552 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1553 as_fn_set_status $ac_retval
1555 } # ac_fn_c_try_compile
1557 # ac_fn_c_try_cpp LINENO
1558 # ----------------------
1559 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1562 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1563 if { { ac_try="$ac_cpp conftest.$ac_ext"
1565 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1566 *) ac_try_echo
=$ac_try;;
1568 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1569 $as_echo "$ac_try_echo"; } >&5
1570 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1572 if test -s conftest.err
; then
1573 grep -v '^ *+' conftest.err
>conftest.er1
1574 cat conftest.er1
>&5
1575 mv -f conftest.er1 conftest.err
1577 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1578 test $ac_status = 0; } > conftest.i
&& {
1579 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1580 test ! -s conftest.err
1584 $as_echo "$as_me: failed program was:" >&5
1585 sed 's/^/| /' conftest.
$ac_ext >&5
1589 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1590 as_fn_set_status
$ac_retval
1594 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1595 # -------------------------------------------------------
1596 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1597 # the include files in INCLUDES and setting the cache variable VAR
1599 ac_fn_c_check_header_mongrel
()
1601 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1602 if eval \
${$3+:} false
; then :
1603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1604 $as_echo_n "checking for $2... " >&6; }
1605 if eval \
${$3+:} false
; then :
1606 $as_echo_n "(cached) " >&6
1609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1610 $as_echo "$ac_res" >&6; }
1612 # Is the header compilable?
1613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1614 $as_echo_n "checking $2 usability... " >&6; }
1615 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1616 /* end confdefs.h. */
1620 if ac_fn_c_try_compile
"$LINENO"; then :
1621 ac_header_compiler
=yes
1623 ac_header_compiler
=no
1625 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1627 $as_echo "$ac_header_compiler" >&6; }
1629 # Is the header present?
1630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1631 $as_echo_n "checking $2 presence... " >&6; }
1632 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1633 /* end confdefs.h. */
1636 if ac_fn_c_try_cpp
"$LINENO"; then :
1637 ac_header_preproc
=yes
1639 ac_header_preproc
=no
1641 rm -f conftest.err conftest.i conftest.
$ac_ext
1642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1643 $as_echo "$ac_header_preproc" >&6; }
1645 # So? What about this header?
1646 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1648 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1649 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1650 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1651 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1654 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1655 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1656 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1657 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1658 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1659 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1660 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1661 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1662 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1663 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1667 $as_echo_n "checking for $2... " >&6; }
1668 if eval \
${$3+:} false
; then :
1669 $as_echo_n "(cached) " >&6
1671 eval "$3=\$ac_header_compiler"
1674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1675 $as_echo "$ac_res" >&6; }
1677 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1679 } # ac_fn_c_check_header_mongrel
1681 # ac_fn_c_try_run LINENO
1682 # ----------------------
1683 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1684 # that executables *can* be run.
1687 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1688 if { { ac_try
="$ac_link"
1690 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1691 *) ac_try_echo=$ac_try;;
1693 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1694 $as_echo "$ac_try_echo"; } >&5
1695 (eval "$ac_link") 2>&5
1697 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1698 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1699 { { case "(($ac_try" in
1700 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1701 *) ac_try_echo
=$ac_try;;
1703 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1704 $as_echo "$ac_try_echo"; } >&5
1705 (eval "$ac_try") 2>&5
1707 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1708 test $ac_status = 0; }; }; then :
1711 $as_echo "$as_me: program exited with status $ac_status" >&5
1712 $as_echo "$as_me: failed program was:" >&5
1713 sed 's/^/| /' conftest.
$ac_ext >&5
1715 ac_retval
=$ac_status
1717 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1718 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1719 as_fn_set_status
$ac_retval
1723 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1724 # -------------------------------------------------------
1725 # Tests whether HEADER exists and can be compiled using the include files in
1726 # INCLUDES, setting the cache variable VAR accordingly.
1727 ac_fn_c_check_header_compile
()
1729 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
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 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1736 /* end confdefs.h. */
1740 if ac_fn_c_try_compile
"$LINENO"; then :
1745 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1749 $as_echo "$ac_res" >&6; }
1750 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1752 } # ac_fn_c_check_header_compile
1754 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1755 # -------------------------------------------
1756 # Tests whether TYPE exists after having included INCLUDES, setting cache
1757 # variable VAR accordingly.
1758 ac_fn_c_check_type
()
1760 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1762 $as_echo_n "checking for $2... " >&6; }
1763 if eval \
${$3+:} false
; then :
1764 $as_echo_n "(cached) " >&6
1767 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1768 /* end confdefs.h. */
1779 if ac_fn_c_try_compile
"$LINENO"; then :
1780 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1781 /* end confdefs.h. */
1792 if ac_fn_c_try_compile
"$LINENO"; then :
1797 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1799 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1803 $as_echo "$ac_res" >&6; }
1804 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1806 } # ac_fn_c_check_type
1808 # ac_fn_c_try_link LINENO
1809 # -----------------------
1810 # Try to link conftest.$ac_ext, and return whether this succeeded.
1813 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1814 rm -f conftest.
$ac_objext conftest
$ac_exeext
1815 if { { ac_try
="$ac_link"
1817 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1818 *) ac_try_echo=$ac_try;;
1820 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1821 $as_echo "$ac_try_echo"; } >&5
1822 (eval "$ac_link") 2>conftest.err
1824 if test -s conftest.err; then
1825 grep -v '^ *+' conftest.err >conftest.er1
1826 cat conftest.er1 >&5
1827 mv -f conftest.er1 conftest.err
1829 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1830 test $ac_status = 0; } && {
1831 test -z "$ac_c_werror_flag" ||
1832 test ! -s conftest.err
1833 } && test -s conftest$ac_exeext && {
1834 test "$cross_compiling" = yes ||
1835 test -x conftest$ac_exeext
1839 $as_echo "$as_me: failed program was:" >&5
1840 sed 's/^/| /' conftest.$ac_ext >&5
1844 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1845 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1846 # interfere with the next link command; also delete a directory that is
1847 # left behind by Apple's compiler. We do this before executing the actions.
1848 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1849 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1850 as_fn_set_status $ac_retval
1852 } # ac_fn_c_try_link
1854 # ac_fn_c_check_func LINENO FUNC VAR
1855 # ----------------------------------
1856 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1857 ac_fn_c_check_func ()
1859 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1861 $as_echo_n "checking for $2... " >&6; }
1862 if eval \${$3+:} false; then :
1863 $as_echo_n "(cached) " >&6
1865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1866 /* end confdefs.h. */
1867 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1868 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1869 #define $2 innocuous_$2
1871 /* System header to define __stub macros and hopefully few prototypes,
1872 which can conflict with char $2 (); below.
1873 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1874 <limits.h> exists even on freestanding compilers. */
1877 # include <limits.h>
1879 # include <assert.h>
1884 /* Override any GCC internal prototype to avoid an error.
1885 Use char because int might match the return type of a GCC
1886 builtin and then its argument prototype would still apply. */
1891 /* The GNU C library defines this for functions which it implements
1892 to always fail with ENOSYS. Some functions are actually named
1893 something starting with __ and the normal name is an alias. */
1894 #if defined __stub_$2 || defined __stub___$2
1906 if ac_fn_c_try_link "$LINENO"; then :
1911 rm -f core conftest.err conftest.$ac_objext \
1912 conftest$ac_exeext conftest.$ac_ext
1915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1916 $as_echo "$ac_res" >&6; }
1917 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1919 } # ac_fn_c_check_func
1921 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1922 # ---------------------------------------------
1923 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1925 ac_fn_c_check_decl ()
1927 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1928 as_decl_name=`echo $2|
sed 's/ *(.*//'`
1929 as_decl_use=`echo $2|
sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1931 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1932 if eval \${$3+:} false; then :
1933 $as_echo_n "(cached) " >&6
1935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1936 /* end confdefs.h. */
1941 #ifndef $as_decl_name
1943 (void) $as_decl_use;
1945 (void) $as_decl_name;
1953 if ac_fn_c_try_compile "$LINENO"; then :
1958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1962 $as_echo "$ac_res" >&6; }
1963 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1965 } # ac_fn_c_check_decl
1966 cat >config.log <<_ACEOF
1967 This file contains any messages produced by compilers while
1968 running configure, to aid debugging if configure makes a mistake.
1970 It was created by $as_me, which was
1971 generated by GNU Autoconf 2.69. Invocation command line was
1983 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1984 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1985 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1986 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1987 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1989 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1990 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1992 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1993 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1994 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1995 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
1996 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1997 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1998 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2006 test -z "$as_dir" && as_dir=.
2007 $as_echo "PATH: $as_dir"
2023 # Keep a trace of the command line.
2024 # Strip out --no-create and --no-recursion so they do not pile up.
2025 # Strip out --silent because we don't want to record it for future runs.
2026 # Also quote any args containing shell meta-characters.
2027 # Make two passes to allow for proper duplicate-argument suppression.
2031 ac_must_keep_next=false
2037 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2038 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2039 | -silent | --silent | --silen | --sile | --sil)
2042 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2045 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2047 as_fn_append ac_configure_args1 " '$ac_arg'"
2048 if test $ac_must_keep_next = true; then
2049 ac_must_keep_next=false # Got value, back to normal.
2052 *=* | --config-cache | -C | -disable-* | --disable-* \
2053 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2054 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2055 | -with-* | --with-* | -without-* | --without-* | --x)
2056 case "$ac_configure_args0 " in
2057 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2060 -* ) ac_must_keep_next=true ;;
2063 as_fn_append ac_configure_args " '$ac_arg'"
2068 { ac_configure_args0=; unset ac_configure_args0;}
2069 { ac_configure_args1=; unset ac_configure_args1;}
2071 # When interrupted or exit'd, cleanup temporary files, and complete
2072 # config.log. We remove comments because anyway the quotes in there
2073 # would cause problems or look ugly.
2074 # WARNING: Use '\'' to represent an apostrophe within the trap.
2075 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2076 trap 'exit_status=$?
2077 # Save into config.log some information that might help in debugging.
2081 $as_echo "## ---------------- ##
2082 ## Cache variables. ##
2083 ## ---------------- ##"
2085 # The following way of writing the cache mishandles newlines in values,
2087 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2088 eval ac_val=\$$ac_var
2092 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2093 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2096 _ | IFS | as_nl) ;; #(
2097 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2098 *) { eval $ac_var=; unset $ac_var;} ;;
2103 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2104 *${as_nl}ac_space=\ *)
2106 "s/'\''/'\''\\\\'\'''\''/g;
2107 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2110 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2117 $as_echo "## ----------------- ##
2118 ## Output variables. ##
2119 ## ----------------- ##"
2121 for ac_var in $ac_subst_vars
2123 eval ac_val=\$$ac_var
2125 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2127 $as_echo "$ac_var='\''$ac_val'\''"
2131 if test -n "$ac_subst_files"; then
2132 $as_echo "## ------------------- ##
2133 ## File substitutions. ##
2134 ## ------------------- ##"
2136 for ac_var in $ac_subst_files
2138 eval ac_val=\$$ac_var
2140 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2142 $as_echo "$ac_var='\''$ac_val'\''"
2147 if test -s confdefs.h; then
2148 $as_echo "## ----------- ##
2155 test "$ac_signal" != 0 &&
2156 $as_echo "$as_me: caught signal $ac_signal"
2157 $as_echo "$as_me: exit $exit_status"
2159 rm -f core *.core core.conftest.* &&
2160 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2163 for ac_signal in 1 2 13 15; do
2164 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2168 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2169 rm -f -r conftest* confdefs.h
2171 $as_echo "/* confdefs.h */" > confdefs.h
2173 # Predefined preprocessor variables.
2175 cat >>confdefs.h <<_ACEOF
2176 #define PACKAGE_NAME "$PACKAGE_NAME"
2179 cat >>confdefs.h <<_ACEOF
2180 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2183 cat >>confdefs.h <<_ACEOF
2184 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2187 cat >>confdefs.h <<_ACEOF
2188 #define PACKAGE_STRING "$PACKAGE_STRING"
2191 cat >>confdefs.h <<_ACEOF
2192 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2195 cat >>confdefs.h <<_ACEOF
2196 #define PACKAGE_URL "$PACKAGE_URL"
2200 # Let the site file select an alternate cache file if it wants to.
2201 # Prefer an explicitly selected file to automatically selected ones.
2204 if test -n "$CONFIG_SITE"; then
2205 # We do not want a PATH search for config.site.
2206 case $CONFIG_SITE in #((
2207 -*) ac_site_file1=./$CONFIG_SITE;;
2208 */*) ac_site_file1=$CONFIG_SITE;;
2209 *) ac_site_file1=./$CONFIG_SITE;;
2211 elif test "x$prefix" != xNONE; then
2212 ac_site_file1=$prefix/share/config.site
2213 ac_site_file2=$prefix/etc/config.site
2215 ac_site_file1=$ac_default_prefix/share/config.site
2216 ac_site_file2=$ac_default_prefix/etc/config.site
2218 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2220 test "x$ac_site_file" = xNONE && continue
2221 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2222 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2223 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2224 sed 's/^/| /' "$ac_site_file" >&5
2226 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2227 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2228 as_fn_error $? "failed to load site
script $ac_site_file
2229 See \
`config.log' for more details" "$LINENO" 5; }
2233 if test -r "$cache_file"; then
2234 # Some versions of bash will fail to source /dev/null (special files
2235 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2236 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2237 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2238 $as_echo "$as_me: loading cache $cache_file" >&6;}
2240 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2241 *) . "./$cache_file";;
2245 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2246 $as_echo "$as_me: creating cache $cache_file" >&6;}
2250 # Check that the precious variables saved in the cache have kept the same
2252 ac_cache_corrupted=false
2253 for ac_var in $ac_precious_vars; do
2254 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2255 eval ac_new_set=\$ac_env_${ac_var}_set
2256 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2257 eval ac_new_val=\$ac_env_${ac_var}_value
2258 case $ac_old_set,$ac_new_set in
2260 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2261 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2262 ac_cache_corrupted=: ;;
2264 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2265 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2266 ac_cache_corrupted=: ;;
2269 if test "x$ac_old_val" != "x$ac_new_val"; then
2270 # differences in whitespace do not lead to failure.
2271 ac_old_val_w=`echo x
$ac_old_val`
2272 ac_new_val_w=`echo x
$ac_new_val`
2273 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2274 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2275 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2276 ac_cache_corrupted=:
2278 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2279 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2280 eval $ac_var=\$ac_old_val
2282 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2283 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2284 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2285 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2288 # Pass precious variables to config.status.
2289 if test "$ac_new_set" = set; then
2291 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2292 *) ac_arg=$ac_var=$ac_new_val ;;
2294 case " $ac_configure_args " in
2295 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2296 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2300 if $ac_cache_corrupted; then
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_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2304 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2305 as_fn_error $? "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2307 ## -------------------- ##
2308 ## Main body of script. ##
2309 ## -------------------- ##
2312 ac_cpp='$CPP $CPPFLAGS'
2313 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2314 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2315 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2320 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2321 if test -f "$ac_dir/install-sh"; then
2323 ac_install_sh="$ac_aux_dir/install-sh -c"
2325 elif test -f "$ac_dir/install.sh"; then
2327 ac_install_sh="$ac_aux_dir/install.sh -c"
2329 elif test -f "$ac_dir/shtool"; then
2331 ac_install_sh="$ac_aux_dir/shtool install -c"
2335 if test -z "$ac_aux_dir"; then
2336 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2339 # These three variables are undocumented and unsupported,
2340 # and are intended to be withdrawn in a future Autoconf release.
2341 # They can cause serious problems if a builder's source tree is in a directory
2342 # whose full name contains unusual characters.
2343 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2344 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2345 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2348 # Make sure we can run config.sub.
2349 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2350 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2353 $as_echo_n "checking build system type... " >&6; }
2354 if ${ac_cv_build+:} false; then :
2355 $as_echo_n "(cached) " >&6
2357 ac_build_alias=$build_alias
2358 test "x$ac_build_alias" = x &&
2359 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2360 test "x$ac_build_alias" = x &&
2361 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2362 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2363 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2367 $as_echo "$ac_cv_build" >&6; }
2368 case $ac_cv_build in
2370 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2373 ac_save_IFS=$IFS; IFS='-'
2379 # Remember, the first character of IFS is used to create $*,
2380 # except with old shells:
2383 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
2386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2387 $as_echo_n "checking host system type... " >&6; }
2388 if ${ac_cv_host+:} false; then :
2389 $as_echo_n "(cached) " >&6
2391 if test "x$host_alias" = x; then
2392 ac_cv_host=$ac_cv_build
2394 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2395 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2400 $as_echo "$ac_cv_host" >&6; }
2403 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2406 ac_save_IFS=$IFS; IFS='-'
2412 # Remember, the first character of IFS is used to create $*,
2413 # except with old shells:
2416 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
2419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2420 $as_echo_n "checking target system type... " >&6; }
2421 if ${ac_cv_target+:} false; then :
2422 $as_echo_n "(cached) " >&6
2424 if test "x$target_alias" = x; then
2425 ac_cv_target=$ac_cv_host
2427 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2428 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2433 $as_echo "$ac_cv_target" >&6; }
2434 case $ac_cv_target in
2436 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2438 target=$ac_cv_target
2439 ac_save_IFS=$IFS; IFS='-'
2445 # Remember, the first character of IFS is used to create $*,
2446 # except with old shells:
2449 case $target_os in *\ *) target_os=`echo "$target_os" |
sed 's/ /-/g'`;; esac
2452 # The aliases save the names the user supplied, while $host etc.
2453 # will get canonicalized.
2454 test -n "$target_alias" &&
2455 test "$program_prefix$program_suffix$program_transform_name" = \
2457 program_prefix=${target_alias}-
2466 # Check whether --with-gcc was given.
2467 if test "${with_gcc+set}" = set; then :
2472 if test "${srcdir}" != "." ; then
2473 V_CCOPT="-I\$(srcdir)"
2475 if test "${CFLAGS+set}" = set; then
2476 LBL_CFLAGS="$CFLAGS"
2478 if test -z "$CC" ; then
2482 # Extract the first word of "shlicc2", so it can be a program name with args.
2483 set dummy shlicc2; ac_word=$2
2484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2485 $as_echo_n "checking for $ac_word... " >&6; }
2486 if ${ac_cv_prog_SHLICC2+:} false; then :
2487 $as_echo_n "(cached) " >&6
2489 if test -n "$SHLICC2"; then
2490 ac_cv_prog_SHLICC2="$SHLICC2" # Let the user override the test.
2492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2496 test -z "$as_dir" && as_dir=.
2497 for ac_exec_ext in '' $ac_executable_extensions; do
2498 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2499 ac_cv_prog_SHLICC2="yes"
2500 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2507 test -z "$ac_cv_prog_SHLICC2" && ac_cv_prog_SHLICC2="no"
2510 SHLICC2=$ac_cv_prog_SHLICC2
2511 if test -n "$SHLICC2"; then
2512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHLICC2" >&5
2513 $as_echo "$SHLICC2" >&6; }
2515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2516 $as_echo "no" >&6; }
2520 if test $SHLICC2 = yes ; then
2527 if test -z "$CC" -a "$with_gcc" = no ; then
2533 ac_cpp='$CPP $CPPFLAGS'
2534 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2535 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2536 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2537 if test -n "$ac_tool_prefix"; then
2538 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2539 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2541 $as_echo_n "checking for $ac_word... " >&6; }
2542 if ${ac_cv_prog_CC+:} false; then :
2543 $as_echo_n "(cached) " >&6
2545 if test -n "$CC"; then
2546 ac_cv_prog_CC="$CC" # Let the user override the test.
2548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2552 test -z "$as_dir" && as_dir=.
2553 for ac_exec_ext in '' $ac_executable_extensions; do
2554 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2555 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2566 if test -n "$CC"; then
2567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2568 $as_echo "$CC" >&6; }
2570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2571 $as_echo "no" >&6; }
2576 if test -z "$ac_cv_prog_CC"; then
2578 # Extract the first word of "gcc", so it can be a program name with args.
2579 set dummy gcc; ac_word=$2
2580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2581 $as_echo_n "checking for $ac_word... " >&6; }
2582 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2583 $as_echo_n "(cached) " >&6
2585 if test -n "$ac_ct_CC"; then
2586 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2592 test -z "$as_dir" && as_dir=.
2593 for ac_exec_ext in '' $ac_executable_extensions; do
2594 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2595 ac_cv_prog_ac_ct_CC="gcc"
2596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2605 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2606 if test -n "$ac_ct_CC"; then
2607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2608 $as_echo "$ac_ct_CC" >&6; }
2610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2611 $as_echo "no" >&6; }
2614 if test "x$ac_ct_CC" = x; then
2617 case $cross_compiling:$ac_tool_warned in
2619 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2620 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2621 ac_tool_warned=yes ;;
2629 if test -z "$CC"; then
2630 if test -n "$ac_tool_prefix"; then
2631 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2632 set dummy ${ac_tool_prefix}cc; ac_word=$2
2633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2634 $as_echo_n "checking for $ac_word... " >&6; }
2635 if ${ac_cv_prog_CC+:} false; then :
2636 $as_echo_n "(cached) " >&6
2638 if test -n "$CC"; then
2639 ac_cv_prog_CC="$CC" # Let the user override the test.
2641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2645 test -z "$as_dir" && as_dir=.
2646 for ac_exec_ext in '' $ac_executable_extensions; do
2647 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2648 ac_cv_prog_CC="${ac_tool_prefix}cc"
2649 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2659 if test -n "$CC"; then
2660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2661 $as_echo "$CC" >&6; }
2663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2664 $as_echo "no" >&6; }
2670 if test -z "$CC"; then
2671 # Extract the first word of "cc", so it can be a program name with args.
2672 set dummy cc; ac_word=$2
2673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2674 $as_echo_n "checking for $ac_word... " >&6; }
2675 if ${ac_cv_prog_CC+:} false; then :
2676 $as_echo_n "(cached) " >&6
2678 if test -n "$CC"; then
2679 ac_cv_prog_CC="$CC" # Let the user override the test.
2682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2686 test -z "$as_dir" && as_dir=.
2687 for ac_exec_ext in '' $ac_executable_extensions; do
2688 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2689 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2690 ac_prog_rejected=yes
2694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2701 if test $ac_prog_rejected = yes; then
2702 # We found a bogon in the path, so make sure we never use it.
2703 set dummy $ac_cv_prog_CC
2705 if test $# != 0; then
2706 # We chose a different compiler from the bogus one.
2707 # However, it has the same basename, so the bogon will be chosen
2708 # first if we set CC to just the basename; use the full file name.
2710 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2716 if test -n "$CC"; then
2717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2718 $as_echo "$CC" >&6; }
2720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2721 $as_echo "no" >&6; }
2726 if test -z "$CC"; then
2727 if test -n "$ac_tool_prefix"; then
2728 for ac_prog in cl.exe
2730 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2731 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2733 $as_echo_n "checking for $ac_word... " >&6; }
2734 if ${ac_cv_prog_CC+:} false; then :
2735 $as_echo_n "(cached) " >&6
2737 if test -n "$CC"; then
2738 ac_cv_prog_CC="$CC" # Let the user override the test.
2740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2744 test -z "$as_dir" && as_dir=.
2745 for ac_exec_ext in '' $ac_executable_extensions; do
2746 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2747 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2758 if test -n "$CC"; then
2759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2760 $as_echo "$CC" >&6; }
2762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2763 $as_echo "no" >&6; }
2767 test -n "$CC" && break
2770 if test -z "$CC"; then
2772 for ac_prog in cl.exe
2774 # Extract the first word of "$ac_prog", so it can be a program name with args.
2775 set dummy $ac_prog; ac_word=$2
2776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2777 $as_echo_n "checking for $ac_word... " >&6; }
2778 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2779 $as_echo_n "(cached) " >&6
2781 if test -n "$ac_ct_CC"; then
2782 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2788 test -z "$as_dir" && as_dir=.
2789 for ac_exec_ext in '' $ac_executable_extensions; do
2790 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2791 ac_cv_prog_ac_ct_CC="$ac_prog"
2792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2801 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2802 if test -n "$ac_ct_CC"; then
2803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2804 $as_echo "$ac_ct_CC" >&6; }
2806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2807 $as_echo "no" >&6; }
2811 test -n "$ac_ct_CC" && break
2814 if test "x$ac_ct_CC" = x; then
2817 case $cross_compiling:$ac_tool_warned in
2819 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2820 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2821 ac_tool_warned=yes ;;
2830 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2831 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2832 as_fn_error $? "no acceptable C compiler found
in \
$PATH
2833 See \
`config.log' for more details" "$LINENO" 5; }
2835 # Provide some information about the compiler.
2836 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2839 for ac_option in --version -v -V -qversion; do
2840 { { ac_try="$ac_compiler $ac_option >&5"
2842 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2843 *) ac_try_echo
=$ac_try;;
2845 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2846 $as_echo "$ac_try_echo"; } >&5
2847 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2849 if test -s conftest.err
; then
2851 ... rest of stderr output deleted ...
2852 10q' conftest.err
>conftest.er1
2853 cat conftest.er1
>&5
2855 rm -f conftest.er1 conftest.err
2856 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2857 test $ac_status = 0; }
2860 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2861 /* end confdefs.h. */
2871 ac_clean_files_save
=$ac_clean_files
2872 ac_clean_files
="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2873 # Try to create an executable without -o first, disregard a.out.
2874 # It will help us diagnose broken compilers, and finding out an intuition
2876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2877 $as_echo_n "checking whether the C compiler works... " >&6; }
2878 ac_link_default
=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2880 # The possible output files:
2881 ac_files
="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2884 for ac_file
in $ac_files
2887 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
2888 * ) ac_rmfiles
="$ac_rmfiles $ac_file";;
2893 if { { ac_try
="$ac_link_default"
2895 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2896 *) ac_try_echo=$ac_try;;
2898 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2899 $as_echo "$ac_try_echo"; } >&5
2900 (eval "$ac_link_default") 2>&5
2902 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2903 test $ac_status = 0; }; then :
2904 # Autoconf-2.13 could set the ac_cv_exeext variable to `no
'.
2905 # So ignore a value of `no', otherwise this would lead to
`EXEEXT = no'
2906 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2907 # so that the user can short-circuit this test for compilers unknown to
2909 for ac_file in $ac_files ''
2911 test -f "$ac_file" || continue
2913 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2916 # We found the default executable, but exeext='' is most
2920 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2922 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2924 # We set ac_cv_exeext here because the later test for it is not
2925 # safe: cross compilers may not add the suffix if given an `-o'
2926 # argument, so we may need to know it at that point already.
2927 # Even if this section looks crufty: it has the advantage of
2934 test "$ac_cv_exeext" = no && ac_cv_exeext=
2939 if test -z "$ac_file"; then :
2940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2941 $as_echo "no" >&6; }
2942 $as_echo "$as_me: failed program was:" >&5
2943 sed 's
/^
/|
/' conftest.$ac_ext >&5
2945 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2946 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
2947 as_fn_error 77 "C compiler cannot create executables
2948 See \`config.log
' for more details" "$LINENO" 5; }
2950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2951 $as_echo "yes" >&6; }
2953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2954 $as_echo_n "checking for C compiler default output file name... " >&6; }
2955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2956 $as_echo "$ac_file" >&6; }
2957 ac_exeext=$ac_cv_exeext
2959 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2960 ac_clean_files=$ac_clean_files_save
2961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2962 $as_echo_n "checking for suffix of executables... " >&6; }
2963 if { { ac_try="$ac_link"
2965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2966 *) ac_try_echo=$ac_try;;
2968 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2969 $as_echo "$ac_try_echo"; } >&5
2970 (eval "$ac_link") 2>&5
2972 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2973 test $ac_status = 0; }; then :
2974 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
2975 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
2976 # work properly (i.e., refer to `conftest.exe
'), while it won't with
2978 for ac_file
in conftest.exe conftest conftest.
*; do
2979 test -f "$ac_file" ||
continue
2981 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
2982 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2988 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2989 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2990 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
2991 See \`config.log' for more details" "$LINENO" 5; }
2993 rm -f conftest conftest
$ac_cv_exeext
2994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2995 $as_echo "$ac_cv_exeext" >&6; }
2997 rm -f conftest.
$ac_ext
2998 EXEEXT
=$ac_cv_exeext
3000 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3001 /* end confdefs.h. */
3006 FILE *f = fopen ("conftest.out", "w");
3007 return ferror (f) || fclose (f) != 0;
3013 ac_clean_files
="$ac_clean_files conftest.out"
3014 # Check that the compiler produces executables we can run. If not, either
3015 # the compiler is broken, or we cross compile.
3016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3017 $as_echo_n "checking whether we are cross compiling... " >&6; }
3018 if test "$cross_compiling" != yes; then
3019 { { ac_try
="$ac_link"
3021 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3022 *) ac_try_echo=$ac_try;;
3024 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3025 $as_echo "$ac_try_echo"; } >&5
3026 (eval "$ac_link") 2>&5
3028 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3029 test $ac_status = 0; }
3030 if { ac_try='./conftest$ac_cv_exeext'
3031 { { case "(($ac_try" in
3032 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3033 *) ac_try_echo
=$ac_try;;
3035 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3036 $as_echo "$ac_try_echo"; } >&5
3037 (eval "$ac_try") 2>&5
3039 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3040 test $ac_status = 0; }; }; then
3043 if test "$cross_compiling" = maybe
; then
3046 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3047 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3048 as_fn_error $?
"cannot run C compiled programs.
3049 If you meant to cross compile, use \`--host'.
3050 See \`config.log' for more details" "$LINENO" 5; }
3054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3055 $as_echo "$cross_compiling" >&6; }
3057 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3058 ac_clean_files
=$ac_clean_files_save
3059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3060 $as_echo_n "checking for suffix of object files... " >&6; }
3061 if ${ac_cv_objext+:} false
; then :
3062 $as_echo_n "(cached) " >&6
3064 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3065 /* end confdefs.h. */
3075 rm -f conftest.o conftest.obj
3076 if { { ac_try
="$ac_compile"
3078 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3079 *) ac_try_echo=$ac_try;;
3081 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3082 $as_echo "$ac_try_echo"; } >&5
3083 (eval "$ac_compile") 2>&5
3085 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3086 test $ac_status = 0; }; then :
3087 for ac_file in conftest.o conftest.obj conftest.*; do
3088 test -f "$ac_file" || continue;
3090 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3091 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3096 $as_echo "$as_me: failed program was:" >&5
3097 sed 's/^/| /' conftest.$ac_ext >&5
3099 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3100 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3101 as_fn_error $? "cannot compute suffix of object files
: cannot compile
3102 See \
`config.log' for more details" "$LINENO" 5; }
3104 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3107 $as_echo "$ac_cv_objext" >&6; }
3108 OBJEXT=$ac_cv_objext
3110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3111 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3112 if ${ac_cv_c_compiler_gnu+:} false; then :
3113 $as_echo_n "(cached) " >&6
3115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3116 /* end confdefs.h. */
3129 if ac_fn_c_try_compile "$LINENO"; then :
3134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3135 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3139 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3140 if test $ac_compiler_gnu = yes; then
3145 ac_test_CFLAGS=${CFLAGS+set}
3146 ac_save_CFLAGS=$CFLAGS
3147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3148 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3149 if ${ac_cv_prog_cc_g+:} false; then :
3150 $as_echo_n "(cached) " >&6
3152 ac_save_c_werror_flag=$ac_c_werror_flag
3153 ac_c_werror_flag=yes
3156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3157 /* end confdefs.h. */
3167 if ac_fn_c_try_compile "$LINENO"; then :
3171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3172 /* end confdefs.h. */
3182 if ac_fn_c_try_compile "$LINENO"; then :
3185 ac_c_werror_flag=$ac_save_c_werror_flag
3187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3188 /* end confdefs.h. */
3198 if ac_fn_c_try_compile "$LINENO"; then :
3201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3206 ac_c_werror_flag=$ac_save_c_werror_flag
3208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3209 $as_echo "$ac_cv_prog_cc_g" >&6; }
3210 if test "$ac_test_CFLAGS" = set; then
3211 CFLAGS=$ac_save_CFLAGS
3212 elif test $ac_cv_prog_cc_g = yes; then
3213 if test "$GCC" = yes; then
3219 if test "$GCC" = yes; then
3225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3226 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3227 if ${ac_cv_prog_cc_c89+:} false; then :
3228 $as_echo_n "(cached) " >&6
3230 ac_cv_prog_cc_c89=no
3232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3233 /* end confdefs.h. */
3237 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3238 struct buf { int x; };
3239 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3240 static char *e (p, i)
3246 static char *f (char * (*g) (char **, int), char **p, ...)
3251 s = g (p, va_arg (v,int));
3256 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3257 function prototypes and stuff, but not '\xHH' hex character constants.
3258 These don't provoke an error unfortunately, instead are silently treated
3259 as 'x'. The following induces an error, until -std is added to get
3260 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3261 array size at least. It's necessary to write '\x00'==0 to get something
3262 that's true only with -std. */
3263 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3265 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3266 inside strings and character constants. */
3268 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3270 int test (int i, double x);
3271 struct s1 {int (*f) (int a);};
3272 struct s2 {int (*f) (double a);};
3273 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3279 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3284 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3285 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3287 CC="$ac_save_CC $ac_arg"
3288 if ac_fn_c_try_compile "$LINENO"; then :
3289 ac_cv_prog_cc_c89=$ac_arg
3291 rm -f core conftest.err conftest.$ac_objext
3292 test "x$ac_cv_prog_cc_c89" != "xno" && break
3294 rm -f conftest.$ac_ext
3299 case "x$ac_cv_prog_cc_c89" in
3301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3302 $as_echo "none needed" >&6; } ;;
3304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3305 $as_echo "unsupported" >&6; } ;;
3307 CC="$CC $ac_cv_prog_cc_c89"
3308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3309 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3311 if test "x$ac_cv_prog_cc_c89" != xno; then :
3316 ac_cpp='$CPP $CPPFLAGS'
3317 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3318 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3319 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3326 if test "$GCC" = yes ; then
3328 # -Werror forces warnings to be errors.
3330 ac_lbl_cc_force_warning_errors=-Werror
3333 # Try to have the compiler default to hiding symbols,
3334 # so that only symbols explicitly exported with
3335 # PCAP_API will be visible outside (shared) libraries.
3338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -fvisibility=hidden option" >&5
3339 $as_echo_n "checking whether the compiler supports the -fvisibility=hidden option... " >&6; }
3340 save_CFLAGS="$CFLAGS"
3341 if expr "x-fvisibility=hidden" : "x-W.*" >/dev/null
3343 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -fvisibility=hidden"
3344 elif expr "x-fvisibility=hidden" : "x-f.*" >/dev/null
3346 CFLAGS="$CFLAGS -Werror -fvisibility=hidden"
3347 elif expr "x-fvisibility=hidden" : "x-m.*" >/dev/null
3349 CFLAGS="$CFLAGS -Werror -fvisibility=hidden"
3351 CFLAGS="$CFLAGS -fvisibility=hidden"
3353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3354 /* end confdefs.h. */
3364 if ac_fn_c_try_compile "$LINENO"; then :
3366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3367 $as_echo "yes" >&6; }
3368 CFLAGS="$save_CFLAGS"
3369 V_CCOPT="$V_CCOPT -fvisibility=hidden"
3373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3374 $as_echo "no" >&6; }
3375 CFLAGS="$save_CFLAGS"
3378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3381 V_INCLS="$V_INCLS -I/usr/local/include"
3382 LDFLAGS="$LDFLAGS -L/usr/local/lib"
3388 # This is assumed either to be GCC or clang, both
3389 # of which use -Werror to force warnings to be errors.
3391 ac_lbl_cc_force_warning_errors=-Werror
3394 # Try to have the compiler default to hiding symbols,
3395 # so that only symbols explicitly exported with
3396 # PCAP_API will be visible outside (shared) libraries.
3399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -fvisibility=hidden option" >&5
3400 $as_echo_n "checking whether the compiler supports the -fvisibility=hidden option... " >&6; }
3401 save_CFLAGS="$CFLAGS"
3402 if expr "x-fvisibility=hidden" : "x-W.*" >/dev/null
3404 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -fvisibility=hidden"
3405 elif expr "x-fvisibility=hidden" : "x-f.*" >/dev/null
3407 CFLAGS="$CFLAGS -Werror -fvisibility=hidden"
3408 elif expr "x-fvisibility=hidden" : "x-m.*" >/dev/null
3410 CFLAGS="$CFLAGS -Werror -fvisibility=hidden"
3412 CFLAGS="$CFLAGS -fvisibility=hidden"
3414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3415 /* end confdefs.h. */
3425 if ac_fn_c_try_compile "$LINENO"; then :
3427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3428 $as_echo "yes" >&6; }
3429 CFLAGS="$save_CFLAGS"
3430 V_CCOPT="$V_CCOPT -fvisibility=hidden"
3434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3435 $as_echo "no" >&6; }
3436 CFLAGS="$save_CFLAGS"
3439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3445 # HP C, which is what we presume we're using, doesn't
3446 # exit with a non-zero exit status if we hand it an
3447 # invalid -W flag, can't be forced to do so even with
3448 # +We, and doesn't handle GCC-style -W flags, so we
3449 # don't want to try using GCC-style -W flags.
3451 ac_lbl_cc_dont_try_gcc_dashW=yes
3456 # MIPS C, which is what we presume we're using, doesn't
3457 # necessarily exit with a non-zero exit status if we
3458 # hand it an invalid -W flag, can't be forced to do
3459 # so, and doesn't handle GCC-style -W flags, so we
3460 # don't want to try using GCC-style -W flags.
3462 ac_lbl_cc_dont_try_gcc_dashW=yes
3464 # It also, apparently, defaults to "char" being
3465 # unsigned, unlike most other C implementations;
3466 # I suppose we could say "signed char" whenever
3467 # we want to guarantee a signed "char", but let's
3468 # just force signed chars.
3470 # -xansi is normally the default, but the
3471 # configure script was setting it; perhaps -cckr
3472 # was the default in the Old Days. (Then again,
3473 # that would probably be for backwards compatibility
3474 # in the days when ANSI C was Shiny and New, i.e.
3475 # 1989 and the early '90's, so maybe we can just
3476 # drop support for those compilers.)
3478 # -g is equivalent to -g2, which turns off
3479 # optimization; we choose -g3, which generates
3480 # debugging information but doesn't turn off
3481 # optimization (even if the optimization would
3482 # cause inaccuracies in debugging).
3484 V_CCOPT="$V_CCOPT -xansi -signed -g3"
3489 # Presumed to be DEC OSF/1, Digital UNIX, or
3492 # The DEC C compiler, which is what we presume we're
3493 # using, doesn't exit with a non-zero exit status if we
3494 # hand it an invalid -W flag, can't be forced to do
3495 # so, and doesn't handle GCC-style -W flags, so we
3496 # don't want to try using GCC-style -W flags.
3498 ac_lbl_cc_dont_try_gcc_dashW=yes
3500 # -g is equivalent to -g2, which turns off
3501 # optimization; we choose -g3, which generates
3502 # debugging information but doesn't turn off
3503 # optimization (even if the optimization would
3504 # cause inaccuracies in debugging).
3506 V_CCOPT="$V_CCOPT -g3"
3511 # Assumed to be Sun C, which requires -errwarn to force
3512 # warnings to be treated as errors.
3514 ac_lbl_cc_force_warning_errors=-errwarn
3517 # Try to have the compiler default to hiding symbols,
3518 # so that only symbols explicitly exported with
3519 # PCAP_API will be visible outside (shared) libraries.
3522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -xldscope=hidden option" >&5
3523 $as_echo_n "checking whether the compiler supports the -xldscope=hidden option... " >&6; }
3524 save_CFLAGS="$CFLAGS"
3525 if expr "x-xldscope=hidden" : "x-W.*" >/dev/null
3527 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -xldscope=hidden"
3528 elif expr "x-xldscope=hidden" : "x-f.*" >/dev/null
3530 CFLAGS="$CFLAGS -Werror -xldscope=hidden"
3531 elif expr "x-xldscope=hidden" : "x-m.*" >/dev/null
3533 CFLAGS="$CFLAGS -Werror -xldscope=hidden"
3535 CFLAGS="$CFLAGS -xldscope=hidden"
3537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3538 /* end confdefs.h. */
3548 if ac_fn_c_try_compile "$LINENO"; then :
3550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3551 $as_echo "yes" >&6; }
3552 CFLAGS="$save_CFLAGS"
3553 V_CCOPT="$V_CCOPT -xldscope=hidden"
3557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3558 $as_echo "no" >&6; }
3559 CFLAGS="$save_CFLAGS"
3562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that Ultrix $CC hacks const in prototypes" >&5
3568 $as_echo_n "checking that Ultrix $CC hacks const in prototypes... " >&6; }
3569 if ${ac_cv_lbl_cc_const_proto+:} false; then :
3570 $as_echo_n "(cached) " >&6
3572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3573 /* end confdefs.h. */
3574 #include <sys/types.h>
3578 struct a { int b; };
3579 void c(const struct a *)
3584 if ac_fn_c_try_compile "$LINENO"; then :
3585 ac_cv_lbl_cc_const_proto=yes
3587 ac_cv_lbl_cc_const_proto=no
3589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_cc_const_proto" >&5
3593 $as_echo "$ac_cv_lbl_cc_const_proto" >&6; }
3594 if test $ac_cv_lbl_cc_const_proto = no ; then
3596 $as_echo "#define const /**/" >>confdefs.h
3601 V_CCOPT="$V_CCOPT -O"
3605 if test "$GCC" = yes ; then
3607 # On platforms where we build a shared library:
3609 # add options to generate position-independent code,
3610 # if necessary (it's the default in AIX and Darwin/OS X);
3612 # define option to set the soname of the shared library,
3613 # if the OS supports that;
3615 # add options to specify, at link time, a directory to
3616 # add to the run-time search path, if that's necessary.
3618 V_SHLIB_CMD="\$(CC)"
3619 V_SHLIB_OPT="-shared"
3625 freebsd*|netbsd*|openbsd*|dragonfly*|linux*|osf*)
3627 # Platforms where the linker is the GNU linker
3628 # or accepts command-line arguments like
3629 # those the GNU linker accepts.
3631 # Some instruction sets require -fPIC on some
3632 # operating systems. Check for them. If you
3633 # have a combination that requires it, add it
3648 V_CCOPT="$V_CCOPT $PIC_OPT"
3649 V_SONAME_OPT="-Wl,-soname,"
3650 V_RPATH_OPT="-Wl,-rpath,"
3654 V_CCOPT="$V_CCOPT -fpic"
3656 # XXX - this assumes GCC is using the HP linker,
3657 # rather than the GNU linker, and that the "+h"
3658 # option is used on all HP-UX platforms, both .sl
3661 V_SONAME_OPT="-Wl,+h,"
3663 # By default, directories specifed with -L
3664 # are added to the run-time search path, so
3665 # we don't add them in pcap-config.
3670 V_CCOPT="$V_CCOPT -fpic"
3672 # XXX - this assumes GCC is using the Sun linker,
3673 # rather than the GNU linker.
3675 V_SONAME_OPT="-Wl,-h,"
3676 V_RPATH_OPT="-Wl,-R,"
3681 # Set the appropriate compiler flags and, on platforms
3682 # where we build a shared library:
3684 # add options to generate position-independent code,
3685 # if necessary (it's the default in Darwin/OS X);
3687 # if we generate ".so" shared libraries, define the
3688 # appropriate options for building the shared library;
3690 # add options to specify, at link time, a directory to
3691 # add to the run-time search path, if that's necessary.
3693 # Note: spaces after V_SONAME_OPT are significant; on
3694 # some platforms the soname is passed with a GCC-like
3695 # "-Wl,-soname,{soname}" option, with the soname part
3696 # of the option, while on other platforms the C compiler
3697 # driver takes it as a regular option with the soname
3698 # following the option. The same applies to V_RPATH_OPT.
3703 V_SHLIB_CMD="\$(CC)"
3704 V_SHLIB_OPT="-G -bnoentry -bexpall"
3707 freebsd*|netbsd*|openbsd*|dragonfly*|linux*)
3711 V_CCOPT="$V_CCOPT -fpic"
3712 V_SHLIB_CMD="\$(CC)"
3713 V_SHLIB_OPT="-shared"
3714 V_SONAME_OPT="-Wl,-soname,"
3715 V_RPATH_OPT="-Wl,-rpath,"
3719 V_CCOPT="$V_CCOPT +z"
3720 V_SHLIB_CMD="\$(LD)"
3724 # By default, directories specifed with -L
3725 # are added to the run-time search path, so
3726 # we don't add them in pcap-config.
3732 # Presumed to be DEC OSF/1, Digital UNIX, or
3735 V_SHLIB_CMD="\$(CC)"
3736 V_SHLIB_OPT="-shared"
3737 V_SONAME_OPT="-soname "
3738 V_RPATH_OPT="-rpath "
3742 V_CCOPT="$V_CCOPT -Kpic"
3743 V_SHLIB_CMD="\$(CC)"
3751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
3752 $as_echo_n "checking for inline... " >&6; }
3753 save_CFLAGS="$CFLAGS"
3755 if ${ac_cv_lbl_inline+:} false; then :
3756 $as_echo_n "(cached) " >&6
3761 for ac_lbl_inline in inline __inline__ __inline
3763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3764 /* end confdefs.h. */
3765 #define inline $ac_lbl_inline
3766 static inline struct iltest *foo(void);
3772 static inline struct iltest *
3775 static struct iltest xxx;
3787 if ac_fn_c_try_compile "$LINENO"; then :
3788 ac_lbl_cc_inline=yes
3790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3791 if test "$ac_lbl_cc_inline" = yes ; then
3795 if test "$ac_lbl_cc_inline" = yes ; then
3796 ac_cv_lbl_inline=$ac_lbl_inline
3800 CFLAGS="$save_CFLAGS"
3801 if test ! -z "$ac_cv_lbl_inline" ; then
3802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_inline" >&5
3803 $as_echo "$ac_cv_lbl_inline" >&6; }
3805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3806 $as_echo "no" >&6; }
3809 cat >>confdefs.h <<_ACEOF
3810 #define inline $ac_cv_lbl_inline
3814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
3815 $as_echo_n "checking for __attribute__... " >&6; }
3816 if ${ac_cv___attribute__+:} false; then :
3817 $as_echo_n "(cached) " >&6
3820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3821 /* end confdefs.h. */
3826 static void foo(void) __attribute__ ((noreturn));
3835 main(int argc, char **argv)
3841 if ac_fn_c_try_compile "$LINENO"; then :
3842 ac_cv___attribute__=yes
3844 ac_cv___attribute__=no
3846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3849 if test "$ac_cv___attribute__" = "yes"; then
3851 $as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h
3855 # We can't use __attribute__, so we can't use __attribute__((unused)),
3856 # so we define _U_ to an empty string.
3858 V_DEFS="$V_DEFS -D_U_=\"\""
3860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv___attribute__" >&5
3861 $as_echo "$ac_cv___attribute__" >&6; }
3863 if test "$ac_cv___attribute__" = "yes"; then
3865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __attribute__((unused)) can be used without warnings" >&5
3866 $as_echo_n "checking whether __attribute__((unused)) can be used without warnings... " >&6; }
3867 if ${ac_cv___attribute___unused+:} false; then :
3868 $as_echo_n "(cached) " >&6
3871 save_CFLAGS="$CFLAGS"
3872 CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors"
3873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3874 /* end confdefs.h. */
3881 main(int argc __attribute((unused)), char **argv __attribute((unused)))
3883 printf("Hello, world!\n");
3888 if ac_fn_c_try_compile "$LINENO"; then :
3889 ac_cv___attribute___unused=yes
3891 ac_cv___attribute___unused=no
3893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3896 CFLAGS="$save_CFLAGS"
3897 if test "$ac_cv___attribute___unused" = "yes"; then
3898 V_DEFS="$V_DEFS -D_U_=\"__attribute__((unused))\""
3900 V_DEFS="$V_DEFS -D_U_=\"\""
3902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv___attribute___unused" >&5
3903 $as_echo "$ac_cv___attribute___unused" >&6; }
3906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __attribute__((format)) can be used without warnings" >&5
3907 $as_echo_n "checking whether __attribute__((format)) can be used without warnings... " >&6; }
3908 if ${ac_cv___attribute___format+:} false; then :
3909 $as_echo_n "(cached) " >&6
3912 save_CFLAGS="$CFLAGS"
3913 CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors"
3914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3915 /* end confdefs.h. */
3920 extern int foo(const char *fmt, ...)
3921 __attribute__ ((format (printf, 1, 2)));
3924 main(int argc, char **argv)
3930 if ac_fn_c_try_compile "$LINENO"; then :
3931 ac_cv___attribute___format=yes
3933 ac_cv___attribute___format=no
3935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3938 CFLAGS="$save_CFLAGS"
3939 if test "$ac_cv___attribute___format" = "yes"; then
3941 $as_echo "#define __ATTRIBUTE___FORMAT_OK 1" >>confdefs.h
3944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv___attribute___format" >&5
3945 $as_echo "$ac_cv___attribute___format" >&6; }
3950 ac_cpp='$CPP $CPPFLAGS'
3951 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3952 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3953 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3955 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3956 # On Suns, sometimes $CPP names a directory.
3957 if test -n "$CPP" && test -d "$CPP"; then
3960 if test -z "$CPP"; then
3961 if ${ac_cv_prog_CPP+:} false; then :
3962 $as_echo_n "(cached) " >&6
3964 # Double quotes because CPP needs to be expanded
3965 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3968 for ac_c_preproc_warn_flag in '' yes
3970 # Use a header file that comes with gcc, so configuring glibc
3971 # with a fresh cross-compiler works.
3972 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3973 # <limits.h> exists even on freestanding compilers.
3974 # On the NeXT, cc -E runs the code through the compiler's parser,
3975 # not just through cpp. "Syntax error" is here to catch this case.
3976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3977 /* end confdefs.h. */
3979 # include <limits.h>
3981 # include <assert.h>
3985 if ac_fn_c_try_cpp "$LINENO"; then :
3988 # Broken: fails on valid input.
3991 rm -f conftest.err conftest.i conftest.$ac_ext
3993 # OK, works on sane cases. Now check whether nonexistent headers
3994 # can be detected and how.
3995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3996 /* end confdefs.h. */
3997 #include <ac_nonexistent.h>
3999 if ac_fn_c_try_cpp "$LINENO"; then :
4000 # Broken: success on invalid input.
4003 # Passes both tests.
4007 rm -f conftest.err conftest.i conftest.$ac_ext
4010 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4011 rm -f conftest.i conftest.err conftest.
$ac_ext
4012 if $ac_preproc_ok; then :
4024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4025 $as_echo "$CPP" >&6; }
4027 for ac_c_preproc_warn_flag
in '' yes
4029 # Use a header file that comes with gcc, so configuring glibc
4030 # with a fresh cross-compiler works.
4031 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4032 # <limits.h> exists even on freestanding compilers.
4033 # On the NeXT, cc -E runs the code through the compiler's parser,
4034 # not just through cpp. "Syntax error" is here to catch this case.
4035 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4036 /* end confdefs.h. */
4038 # include <limits.h>
4040 # include <assert.h>
4044 if ac_fn_c_try_cpp
"$LINENO"; then :
4047 # Broken: fails on valid input.
4050 rm -f conftest.err conftest.i conftest.
$ac_ext
4052 # OK, works on sane cases. Now check whether nonexistent headers
4053 # can be detected and how.
4054 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4055 /* end confdefs.h. */
4056 #include <ac_nonexistent.h>
4058 if ac_fn_c_try_cpp
"$LINENO"; then :
4059 # Broken: success on invalid input.
4062 # Passes both tests.
4066 rm -f conftest.err conftest.i conftest.
$ac_ext
4069 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4070 rm -f conftest.i conftest.err conftest.
$ac_ext
4071 if $ac_preproc_ok; then :
4074 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4075 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4076 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
4077 See \`config.log' for more details" "$LINENO" 5; }
4081 ac_cpp
='$CPP $CPPFLAGS'
4082 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4083 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4084 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4088 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4089 if ${ac_cv_path_GREP+:} false
; then :
4090 $as_echo_n "(cached) " >&6
4092 if test -z "$GREP"; then
4093 ac_path_GREP_found
=false
4094 # Loop through the user's path and test for each of PROGNAME-LIST
4095 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4096 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4099 test -z "$as_dir" && as_dir
=.
4100 for ac_prog
in grep ggrep
; do
4101 for ac_exec_ext
in '' $ac_executable_extensions; do
4102 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4103 as_fn_executable_p
"$ac_path_GREP" ||
continue
4104 # Check for GNU ac_path_GREP and select it if it is found.
4105 # Check for GNU $ac_path_GREP
4106 case `"$ac_path_GREP" --version 2>&1` in
4108 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4111 $as_echo_n 0123456789 >"conftest.in"
4114 cat "conftest.in" "conftest.in" >"conftest.tmp"
4115 mv "conftest.tmp" "conftest.in"
4116 cp "conftest.in" "conftest.nl"
4117 $as_echo 'GREP' >> "conftest.nl"
4118 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4119 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4120 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4121 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4122 # Best one so far, save it but keep looking for a better one
4123 ac_cv_path_GREP
="$ac_path_GREP"
4124 ac_path_GREP_max
=$ac_count
4126 # 10*(2^10) chars as input seems more than enough
4127 test $ac_count -gt 10 && break
4129 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4132 $ac_path_GREP_found && break 3
4137 if test -z "$ac_cv_path_GREP"; then
4138 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4141 ac_cv_path_GREP
=$GREP
4145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4146 $as_echo "$ac_cv_path_GREP" >&6; }
4147 GREP
="$ac_cv_path_GREP"
4150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4151 $as_echo_n "checking for egrep... " >&6; }
4152 if ${ac_cv_path_EGREP+:} false
; then :
4153 $as_echo_n "(cached) " >&6
4155 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4156 then ac_cv_path_EGREP
="$GREP -E"
4158 if test -z "$EGREP"; then
4159 ac_path_EGREP_found
=false
4160 # Loop through the user's path and test for each of PROGNAME-LIST
4161 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4162 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4165 test -z "$as_dir" && as_dir
=.
4166 for ac_prog
in egrep; do
4167 for ac_exec_ext
in '' $ac_executable_extensions; do
4168 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4169 as_fn_executable_p
"$ac_path_EGREP" ||
continue
4170 # Check for GNU ac_path_EGREP and select it if it is found.
4171 # Check for GNU $ac_path_EGREP
4172 case `"$ac_path_EGREP" --version 2>&1` in
4174 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4177 $as_echo_n 0123456789 >"conftest.in"
4180 cat "conftest.in" "conftest.in" >"conftest.tmp"
4181 mv "conftest.tmp" "conftest.in"
4182 cp "conftest.in" "conftest.nl"
4183 $as_echo 'EGREP' >> "conftest.nl"
4184 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4185 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4186 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4187 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4188 # Best one so far, save it but keep looking for a better one
4189 ac_cv_path_EGREP
="$ac_path_EGREP"
4190 ac_path_EGREP_max
=$ac_count
4192 # 10*(2^10) chars as input seems more than enough
4193 test $ac_count -gt 10 && break
4195 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4198 $ac_path_EGREP_found && break 3
4203 if test -z "$ac_cv_path_EGREP"; then
4204 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4207 ac_cv_path_EGREP
=$EGREP
4212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4213 $as_echo "$ac_cv_path_EGREP" >&6; }
4214 EGREP
="$ac_cv_path_EGREP"
4217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4218 $as_echo_n "checking for ANSI C header files... " >&6; }
4219 if ${ac_cv_header_stdc+:} false
; then :
4220 $as_echo_n "(cached) " >&6
4222 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4223 /* end confdefs.h. */
4237 if ac_fn_c_try_compile
"$LINENO"; then :
4238 ac_cv_header_stdc
=yes
4240 ac_cv_header_stdc
=no
4242 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4244 if test $ac_cv_header_stdc = yes; then
4245 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4246 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4247 /* end confdefs.h. */
4251 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4252 $EGREP "memchr" >/dev
/null
2>&1; then :
4255 ac_cv_header_stdc
=no
4261 if test $ac_cv_header_stdc = yes; then
4262 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4263 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4264 /* end confdefs.h. */
4268 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4269 $EGREP "free" >/dev
/null
2>&1; then :
4272 ac_cv_header_stdc
=no
4278 if test $ac_cv_header_stdc = yes; then
4279 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4280 if test "$cross_compiling" = yes; then :
4283 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4284 /* end confdefs.h. */
4287 #if ((' ' & 0x0FF) == 0x020)
4288 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4289 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4291 # define ISLOWER(c) \
4292 (('a' <= (c) && (c) <= 'i') \
4293 || ('j' <= (c) && (c) <= 'r') \
4294 || ('s' <= (c) && (c) <= 'z'))
4295 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4298 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4303 for (i = 0; i < 256; i++)
4304 if (XOR (islower (i), ISLOWER (i))
4305 || toupper (i) != TOUPPER (i))
4310 if ac_fn_c_try_run
"$LINENO"; then :
4313 ac_cv_header_stdc
=no
4315 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4316 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4322 $as_echo "$ac_cv_header_stdc" >&6; }
4323 if test $ac_cv_header_stdc = yes; then
4325 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4329 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4330 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4331 inttypes.h stdint.h unistd.h
4333 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4334 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4336 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
4337 cat >>confdefs.h
<<_ACEOF
4338 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4346 for ac_header
in sys
/bitypes.h
4348 ac_fn_c_check_header_mongrel
"$LINENO" "sys/bitypes.h" "ac_cv_header_sys_bitypes_h" "$ac_includes_default"
4349 if test "x$ac_cv_header_sys_bitypes_h" = xyes
; then :
4350 cat >>confdefs.h
<<_ACEOF
4351 #define HAVE_SYS_BITYPES_H 1
4359 ac_fn_c_check_type
"$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default
4360 #ifdef HAVE_SYS_BITYPES_H
4361 #include <sys/bitypes.h>
4364 if test "x$ac_cv_type_int8_t" = xyes
; then :
4368 $as_echo "#define int8_t signed char" >>confdefs.h
4372 ac_fn_c_check_type
"$LINENO" "u_int8_t" "ac_cv_type_u_int8_t" "$ac_includes_default
4373 #ifdef HAVE_SYS_BITYPES_H
4374 #include <sys/bitypes.h>
4377 if test "x$ac_cv_type_u_int8_t" = xyes
; then :
4381 $as_echo "#define u_int8_t unsigned char" >>confdefs.h
4385 ac_fn_c_check_type
"$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
4386 if test "x$ac_cv_type_int16_t" = xyes
; then :
4390 $as_echo "#define int16_t short" >>confdefs.h
4392 $ac_includes_default
4393 #ifdef HAVE_SYS_BITYPES_H
4394 #include <sys/bitypes.h>
4398 ac_fn_c_check_type
"$LINENO" "u_int16_t" "ac_cv_type_u_int16_t" "$ac_includes_default
4399 #ifdef HAVE_SYS_BITYPES_H
4400 #include <sys/bitypes.h>
4403 if test "x$ac_cv_type_u_int16_t" = xyes
; then :
4407 $as_echo "#define u_int16_t unsigned short" >>confdefs.h
4411 ac_fn_c_check_type
"$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default
4412 #ifdef HAVE_SYS_BITYPES_H
4413 #include <sys/bitypes.h>
4416 if test "x$ac_cv_type_int32_t" = xyes
; then :
4420 $as_echo "#define int32_t int" >>confdefs.h
4424 ac_fn_c_check_type
"$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "$ac_includes_default
4425 #ifdef HAVE_SYS_BITYPES_H
4426 #include <sys/bitypes.h>
4429 if test "x$ac_cv_type_u_int32_t" = xyes
; then :
4433 $as_echo "#define u_int32_t unsigned int" >>confdefs.h
4437 ac_fn_c_check_type
"$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default
4438 #ifdef HAVE_SYS_BITYPES_H
4439 #include <sys/bitypes.h>
4442 if test "x$ac_cv_type_int64_t" = xyes
; then :
4446 $as_echo "#define int64_t long long" >>confdefs.h
4450 ac_fn_c_check_type
"$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "$ac_includes_default
4451 #ifdef HAVE_SYS_BITYPES_H
4452 #include <sys/bitypes.h>
4455 if test "x$ac_cv_type_u_int64_t" = xyes
; then :
4459 $as_echo "#define u_int64_t unsigned long long" >>confdefs.h
4465 # Try to arrange for large file support.
4467 # Check whether --enable-largefile was given.
4468 if test "${enable_largefile+set}" = set; then :
4469 enableval
=$enable_largefile;
4472 if test "$enable_largefile" != no
; then
4474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4475 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4476 if ${ac_cv_sys_largefile_CC+:} false
; then :
4477 $as_echo_n "(cached) " >&6
4479 ac_cv_sys_largefile_CC
=no
4480 if test "$GCC" != yes; then
4483 # IRIX 6.2 and later do not support large files by default,
4484 # so use the C compiler's -n32 option if that helps.
4485 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4486 /* end confdefs.h. */
4487 #include <sys/types.h>
4488 /* Check that off_t can represent 2**63 - 1 correctly.
4489 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4490 since some C++ compilers masquerading as C compilers
4491 incorrectly reject 9223372036854775807. */
4492 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4493 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4494 && LARGE_OFF_T % 2147483647 == 1)
4504 if ac_fn_c_try_compile
"$LINENO"; then :
4507 rm -f core conftest.err conftest.
$ac_objext
4509 if ac_fn_c_try_compile
"$LINENO"; then :
4510 ac_cv_sys_largefile_CC
=' -n32'; break
4512 rm -f core conftest.err conftest.
$ac_objext
4516 rm -f conftest.
$ac_ext
4519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4520 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4521 if test "$ac_cv_sys_largefile_CC" != no
; then
4522 CC
=$CC$ac_cv_sys_largefile_CC
4525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4526 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4527 if ${ac_cv_sys_file_offset_bits+:} false
; then :
4528 $as_echo_n "(cached) " >&6
4531 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4532 /* end confdefs.h. */
4533 #include <sys/types.h>
4534 /* Check that off_t can represent 2**63 - 1 correctly.
4535 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4536 since some C++ compilers masquerading as C compilers
4537 incorrectly reject 9223372036854775807. */
4538 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4539 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4540 && LARGE_OFF_T % 2147483647 == 1)
4550 if ac_fn_c_try_compile
"$LINENO"; then :
4551 ac_cv_sys_file_offset_bits
=no
; break
4553 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4554 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4555 /* end confdefs.h. */
4556 #define _FILE_OFFSET_BITS 64
4557 #include <sys/types.h>
4558 /* Check that off_t can represent 2**63 - 1 correctly.
4559 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4560 since some C++ compilers masquerading as C compilers
4561 incorrectly reject 9223372036854775807. */
4562 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4563 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4564 && LARGE_OFF_T % 2147483647 == 1)
4574 if ac_fn_c_try_compile
"$LINENO"; then :
4575 ac_cv_sys_file_offset_bits
=64; break
4577 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4578 ac_cv_sys_file_offset_bits
=unknown
4582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4583 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4584 case $ac_cv_sys_file_offset_bits in #(
4587 cat >>confdefs.h
<<_ACEOF
4588 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4593 if test $ac_cv_sys_file_offset_bits = unknown
; then
4594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4595 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4596 if ${ac_cv_sys_large_files+:} false
; then :
4597 $as_echo_n "(cached) " >&6
4600 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4601 /* end confdefs.h. */
4602 #include <sys/types.h>
4603 /* Check that off_t can represent 2**63 - 1 correctly.
4604 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4605 since some C++ compilers masquerading as C compilers
4606 incorrectly reject 9223372036854775807. */
4607 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4608 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4609 && LARGE_OFF_T % 2147483647 == 1)
4619 if ac_fn_c_try_compile
"$LINENO"; then :
4620 ac_cv_sys_large_files
=no
; break
4622 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4623 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4624 /* end confdefs.h. */
4625 #define _LARGE_FILES 1
4626 #include <sys/types.h>
4627 /* Check that off_t can represent 2**63 - 1 correctly.
4628 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4629 since some C++ compilers masquerading as C compilers
4630 incorrectly reject 9223372036854775807. */
4631 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4632 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4633 && LARGE_OFF_T % 2147483647 == 1)
4643 if ac_fn_c_try_compile
"$LINENO"; then :
4644 ac_cv_sys_large_files
=1; break
4646 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4647 ac_cv_sys_large_files
=unknown
4651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4652 $as_echo "$ac_cv_sys_large_files" >&6; }
4653 case $ac_cv_sys_large_files in #(
4656 cat >>confdefs.h
<<_ACEOF
4657 #define _LARGE_FILES $ac_cv_sys_large_files
4667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
4668 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
4669 if ${ac_cv_sys_largefile_source+:} false
; then :
4670 $as_echo_n "(cached) " >&6
4673 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4674 /* end confdefs.h. */
4675 #include <sys/types.h> /* for off_t */
4680 int (*fp) (FILE *, off_t, int) = fseeko;
4681 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
4686 if ac_fn_c_try_link
"$LINENO"; then :
4687 ac_cv_sys_largefile_source
=no
; break
4689 rm -f core conftest.err conftest.
$ac_objext \
4690 conftest
$ac_exeext conftest.
$ac_ext
4691 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4692 /* end confdefs.h. */
4693 #define _LARGEFILE_SOURCE 1
4694 #include <sys/types.h> /* for off_t */
4699 int (*fp) (FILE *, off_t, int) = fseeko;
4700 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
4705 if ac_fn_c_try_link
"$LINENO"; then :
4706 ac_cv_sys_largefile_source
=1; break
4708 rm -f core conftest.err conftest.
$ac_objext \
4709 conftest
$ac_exeext conftest.
$ac_ext
4710 ac_cv_sys_largefile_source
=unknown
4714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
4715 $as_echo "$ac_cv_sys_largefile_source" >&6; }
4716 case $ac_cv_sys_largefile_source in #(
4719 cat >>confdefs.h
<<_ACEOF
4720 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
4726 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
4727 # in glibc 2.1.3, but that breaks too many other things.
4728 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
4729 if test $ac_cv_sys_largefile_source != unknown
; then
4731 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
4736 for ac_header
in sys
/ioccom.h sys
/select.h sys
/sockio.h limits.h
4738 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4739 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4740 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
4741 cat >>confdefs.h
<<_ACEOF
4742 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4749 for ac_header
in linux
/types.h
4751 ac_fn_c_check_header_mongrel
"$LINENO" "linux/types.h" "ac_cv_header_linux_types_h" "$ac_includes_default"
4752 if test "x$ac_cv_header_linux_types_h" = xyes
; then :
4753 cat >>confdefs.h
<<_ACEOF
4754 #define HAVE_LINUX_TYPES_H 1
4761 for ac_header
in linux
/if_packet.h netpacket
/packet.h netpacket
/if_packet.h
4763 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4764 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4765 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
4766 cat >>confdefs.h
<<_ACEOF
4767 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4774 for ac_header
in net
/pfvar.h
4776 ac_fn_c_check_header_compile
"$LINENO" "net/pfvar.h" "ac_cv_header_net_pfvar_h" "#include <sys/types.h>
4777 #include <sys/socket.h>
4780 if test "x$ac_cv_header_net_pfvar_h" = xyes
; then :
4781 cat >>confdefs.h
<<_ACEOF
4782 #define HAVE_NET_PFVAR_H 1
4789 if test "$ac_cv_header_net_pfvar_h" = yes; then
4791 # Check for various PF actions.
4793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether net/pfvar.h defines PF_NAT through PF_NORDR" >&5
4794 $as_echo_n "checking whether net/pfvar.h defines PF_NAT through PF_NORDR... " >&6; }
4795 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4796 /* end confdefs.h. */
4797 #include <sys/types.h>
4798 #include <sys/socket.h>
4800 #include <net/pfvar.h>
4804 return PF_NAT+PF_NONAT+PF_BINAT+PF_NOBINAT+PF_RDR+PF_NORDR;
4809 if ac_fn_c_try_compile
"$LINENO"; then :
4811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4812 $as_echo "yes" >&6; }
4814 $as_echo "#define HAVE_PF_NAT_THROUGH_PF_NORDR 1" >>confdefs.h
4818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4819 $as_echo "no" >&6; }
4821 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4823 for ac_header
in netinet
/if_ether.h
4825 ac_fn_c_check_header_compile
"$LINENO" "netinet/if_ether.h" "ac_cv_header_netinet_if_ether_h" "#include <sys/types.h>
4826 #include <sys/socket.h>
4828 if test "x$ac_cv_header_netinet_if_ether_h" = xyes
; then :
4829 cat >>confdefs.h
<<_ACEOF
4830 #define HAVE_NETINET_IF_ETHER_H 1
4837 if test "$ac_cv_header_netinet_if_ether_h" != yes; then
4839 # The simple test didn't work.
4840 # Do we need to include <net/if.h> first?
4841 # Unset ac_cv_header_netinet_if_ether_h so we don't
4842 # treat the previous failure as a cached value and
4843 # suppress the next test.
4845 { $as_echo "$as_me:${as_lineno-$LINENO}: Rechecking with some additional includes" >&5
4846 $as_echo "$as_me: Rechecking with some additional includes" >&6;}
4847 unset ac_cv_header_netinet_if_ether_h
4848 for ac_header
in netinet
/if_ether.h
4850 ac_fn_c_check_header_compile
"$LINENO" "netinet/if_ether.h" "ac_cv_header_netinet_if_ether_h" "#include <sys/types.h>
4851 #include <sys/socket.h>
4852 #include <netinet/in.h>
4857 if test "x$ac_cv_header_netinet_if_ether_h" = xyes
; then :
4858 cat >>confdefs.h
<<_ACEOF
4859 #define HAVE_NETINET_IF_ETHER_H 1
4870 for ac_header
in linux
/sockios.h linux
/if_bonding.h
4872 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4873 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "
4874 #include <sys/socket.h>
4875 #include <linux/if.h>
4878 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
4879 cat >>confdefs.h
<<_ACEOF
4880 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4890 if test "$GCC" = yes ; then
4891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI ioctl definitions" >&5
4892 $as_echo_n "checking for ANSI ioctl definitions... " >&6; }
4893 if ${ac_cv_lbl_gcc_fixincludes+:} false
; then :
4894 $as_echo_n "(cached) " >&6
4896 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4897 /* end confdefs.h. */
4899 * This generates a "duplicate case value" when fixincludes
4902 # include <sys/types.h>
4903 # include <sys/time.h>
4904 # include <sys/ioctl.h>
4905 # ifdef HAVE_SYS_IOCCOM_H
4906 # include <sys/ioccom.h>
4919 if ac_fn_c_try_compile
"$LINENO"; then :
4920 ac_cv_lbl_gcc_fixincludes
=yes
4922 ac_cv_lbl_gcc_fixincludes
=no
4924 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_gcc_fixincludes" >&5
4928 $as_echo "$ac_cv_lbl_gcc_fixincludes" >&6; }
4929 if test $ac_cv_lbl_gcc_fixincludes = no
; then
4930 # Don't cache failure
4931 unset ac_cv_lbl_gcc_fixincludes
4932 as_fn_error $?
"see the INSTALL for more info" "$LINENO" 5
4936 for ac_func
in strerror strlcpy
4938 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4939 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
4940 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
4941 cat >>confdefs.h
<<_ACEOF
4942 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4950 for ac_func
in vsnprintf snprintf
4952 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4953 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
4954 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
4955 cat >>confdefs.h
<<_ACEOF
4956 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4964 if test $needsnprintf = yes; then
4965 case " $LIBOBJS " in
4966 *" snprintf.$ac_objext "* ) ;;
4967 *) LIBOBJS
="$LIBOBJS snprintf.$ac_objext"
4974 for ac_func
in strtok_r
4976 ac_fn_c_check_func
"$LINENO" "strtok_r" "ac_cv_func_strtok_r"
4977 if test "x$ac_cv_func_strtok_r" = xyes
; then :
4978 cat >>confdefs.h
<<_ACEOF
4979 #define HAVE_STRTOK_R 1
4987 if test $needstrtok_r = yes; then
4988 case " $LIBOBJS " in
4989 *" strtok_r.$ac_objext "* ) ;;
4990 *) LIBOBJS
="$LIBOBJS strtok_r.$ac_objext"
4997 # Do this before checking for ether_hostton(), as it's a
4998 # "gethostbyname() -ish function".
5001 # Most operating systems have gethostbyname() in the default searched
5002 # libraries (i.e. libc):
5003 # Some OSes (eg. Solaris) place it in libnsl
5004 # Some strange OSes (SINIX) have it in libsocket:
5005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
5006 $as_echo_n "checking for library containing gethostbyname... " >&6; }
5007 if ${ac_cv_search_gethostbyname+:} false
; then :
5008 $as_echo_n "(cached) " >&6
5010 ac_func_search_save_LIBS
=$LIBS
5011 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5012 /* end confdefs.h. */
5014 /* Override any GCC internal prototype to avoid an error.
5015 Use char because int might match the return type of a GCC
5016 builtin and then its argument prototype would still apply. */
5020 char gethostbyname ();
5024 return gethostbyname ();
5029 for ac_lib
in '' nsl socket resolv
; do
5030 if test -z "$ac_lib"; then
5031 ac_res
="none required"
5034 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
5036 if ac_fn_c_try_link
"$LINENO"; then :
5037 ac_cv_search_gethostbyname
=$ac_res
5039 rm -f core conftest.err conftest.
$ac_objext \
5041 if ${ac_cv_search_gethostbyname+:} false
; then :
5045 if ${ac_cv_search_gethostbyname+:} false
; then :
5048 ac_cv_search_gethostbyname
=no
5051 LIBS
=$ac_func_search_save_LIBS
5053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
5054 $as_echo "$ac_cv_search_gethostbyname" >&6; }
5055 ac_res
=$ac_cv_search_gethostbyname
5056 if test "$ac_res" != no
; then :
5057 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
5061 # Unfortunately libsocket sometimes depends on libnsl and
5062 # AC_SEARCH_LIBS isn't up to the task of handling dependencies like this.
5063 if test "$ac_cv_search_gethostbyname" = "no"
5065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lsocket" >&5
5066 $as_echo_n "checking for gethostbyname in -lsocket... " >&6; }
5067 if ${ac_cv_lib_socket_gethostbyname+:} false
; then :
5068 $as_echo_n "(cached) " >&6
5070 ac_check_lib_save_LIBS
=$LIBS
5071 LIBS
="-lsocket -lnsl $LIBS"
5072 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5073 /* end confdefs.h. */
5075 /* Override any GCC internal prototype to avoid an error.
5076 Use char because int might match the return type of a GCC
5077 builtin and then its argument prototype would still apply. */
5081 char gethostbyname ();
5085 return gethostbyname ();
5090 if ac_fn_c_try_link
"$LINENO"; then :
5091 ac_cv_lib_socket_gethostbyname
=yes
5093 ac_cv_lib_socket_gethostbyname
=no
5095 rm -f core conftest.err conftest.
$ac_objext \
5096 conftest
$ac_exeext conftest.
$ac_ext
5097 LIBS
=$ac_check_lib_save_LIBS
5099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_gethostbyname" >&5
5100 $as_echo "$ac_cv_lib_socket_gethostbyname" >&6; }
5101 if test "x$ac_cv_lib_socket_gethostbyname" = xyes
; then :
5102 LIBS
="-lsocket -lnsl $LIBS"
5106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
5107 $as_echo_n "checking for library containing socket... " >&6; }
5108 if ${ac_cv_search_socket+:} false
; then :
5109 $as_echo_n "(cached) " >&6
5111 ac_func_search_save_LIBS
=$LIBS
5112 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5113 /* end confdefs.h. */
5115 /* Override any GCC internal prototype to avoid an error.
5116 Use char because int might match the return type of a GCC
5117 builtin and then its argument prototype would still apply. */
5130 for ac_lib
in '' socket
; do
5131 if test -z "$ac_lib"; then
5132 ac_res
="none required"
5135 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
5137 if ac_fn_c_try_link
"$LINENO"; then :
5138 ac_cv_search_socket
=$ac_res
5140 rm -f core conftest.err conftest.
$ac_objext \
5142 if ${ac_cv_search_socket+:} false
; then :
5146 if ${ac_cv_search_socket+:} false
; then :
5149 ac_cv_search_socket
=no
5152 LIBS
=$ac_func_search_save_LIBS
5154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
5155 $as_echo "$ac_cv_search_socket" >&6; }
5156 ac_res
=$ac_cv_search_socket
5157 if test "$ac_res" != no
; then :
5158 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
5161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
5162 $as_echo_n "checking for socket in -lsocket... " >&6; }
5163 if ${ac_cv_lib_socket_socket+:} false
; then :
5164 $as_echo_n "(cached) " >&6
5166 ac_check_lib_save_LIBS
=$LIBS
5167 LIBS
="-lsocket -lnsl $LIBS"
5168 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5169 /* end confdefs.h. */
5171 /* Override any GCC internal prototype to avoid an error.
5172 Use char because int might match the return type of a GCC
5173 builtin and then its argument prototype would still apply. */
5186 if ac_fn_c_try_link
"$LINENO"; then :
5187 ac_cv_lib_socket_socket
=yes
5189 ac_cv_lib_socket_socket
=no
5191 rm -f core conftest.err conftest.
$ac_objext \
5192 conftest
$ac_exeext conftest.
$ac_ext
5193 LIBS
=$ac_check_lib_save_LIBS
5195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
5196 $as_echo "$ac_cv_lib_socket_socket" >&6; }
5197 if test "x$ac_cv_lib_socket_socket" = xyes
; then :
5198 LIBS
="-lsocket -lnsl $LIBS"
5203 # DLPI needs putmsg under HPUX so test for -lstr while we're at it
5204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing putmsg" >&5
5205 $as_echo_n "checking for library containing putmsg... " >&6; }
5206 if ${ac_cv_search_putmsg+:} false
; then :
5207 $as_echo_n "(cached) " >&6
5209 ac_func_search_save_LIBS
=$LIBS
5210 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5211 /* end confdefs.h. */
5213 /* Override any GCC internal prototype to avoid an error.
5214 Use char because int might match the return type of a GCC
5215 builtin and then its argument prototype would still apply. */
5228 for ac_lib
in '' str
; do
5229 if test -z "$ac_lib"; then
5230 ac_res
="none required"
5233 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
5235 if ac_fn_c_try_link
"$LINENO"; then :
5236 ac_cv_search_putmsg
=$ac_res
5238 rm -f core conftest.err conftest.
$ac_objext \
5240 if ${ac_cv_search_putmsg+:} false
; then :
5244 if ${ac_cv_search_putmsg+:} false
; then :
5247 ac_cv_search_putmsg
=no
5250 LIBS
=$ac_func_search_save_LIBS
5252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_putmsg" >&5
5253 $as_echo "$ac_cv_search_putmsg" >&6; }
5254 ac_res
=$ac_cv_search_putmsg
5255 if test "$ac_res" != no
; then :
5256 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
5263 # You are in a twisty little maze of UN*Xes, all different.
5264 # Some might not have ether_hostton().
5265 # Some might have it, but not declare it in any header file.
5266 # Some might have it, but declare it in <netinet/if_ether.h>.
5267 # Some might have it, but declare it in <netinet/ether.h>
5268 # (And some might have it but document it as something declared in
5269 # <netinet/ethernet.h>, although <netinet/if_ether.h> appears to work.)
5271 # Before you is a C compiler.
5273 for ac_func
in ether_hostton
5275 ac_fn_c_check_func
"$LINENO" "ether_hostton" "ac_cv_func_ether_hostton"
5276 if test "x$ac_cv_func_ether_hostton" = xyes
; then :
5277 cat >>confdefs.h
<<_ACEOF
5278 #define HAVE_ETHER_HOSTTON 1
5284 if test "$ac_cv_func_ether_hostton" = yes; then
5286 # OK, we have ether_hostton(). Do we have <netinet/if_ether.h>?
5288 if test "$ac_cv_header_netinet_if_ether_h" = yes; then
5290 # Yes. Does it declare ether_hostton()?
5292 ac_fn_c_check_decl
"$LINENO" "ether_hostton" "ac_cv_have_decl_ether_hostton" "
5293 #include <sys/types.h>
5294 #include <sys/socket.h>
5295 #include <netinet/in.h>
5296 #include <arpa/inet.h>
5300 #include <netinet/if_ether.h>
5303 if test "x$ac_cv_have_decl_ether_hostton" = xyes
; then :
5306 $as_echo "#define NETINET_IF_ETHER_H_DECLARES_ETHER_HOSTTON /**/" >>confdefs.h
5315 if test "$ac_cv_have_decl_ether_hostton" != yes; then
5317 # No, how about <netinet/ether.h>, as on Linux?
5319 for ac_header
in netinet
/ether.h
5321 ac_fn_c_check_header_mongrel
"$LINENO" "netinet/ether.h" "ac_cv_header_netinet_ether_h" "$ac_includes_default"
5322 if test "x$ac_cv_header_netinet_ether_h" = xyes
; then :
5323 cat >>confdefs.h
<<_ACEOF
5324 #define HAVE_NETINET_ETHER_H 1
5331 if test "$ac_cv_header_netinet_ether_h" = yes; then
5333 # We have it - does it declare ether_hostton()?
5334 # Unset ac_cv_have_decl_ether_hostton so we don't
5335 # treat the previous failure as a cached value and
5336 # suppress the next test.
5338 unset ac_cv_have_decl_ether_hostton
5339 ac_fn_c_check_decl
"$LINENO" "ether_hostton" "ac_cv_have_decl_ether_hostton" "
5340 #include <netinet/ether.h>
5343 if test "x$ac_cv_have_decl_ether_hostton" = xyes
; then :
5346 $as_echo "#define NETINET_ETHER_H_DECLARES_ETHER_HOSTTON /**/" >>confdefs.h
5354 # Is ether_hostton() declared?
5356 if test "$ac_cv_have_decl_ether_hostton" != yes; then
5358 # No, we'll have to declare it ourselves.
5359 # Do we have "struct ether_addr"?
5361 ac_fn_c_check_type
"$LINENO" "struct ether_addr" "ac_cv_type_struct_ether_addr" "
5362 #include <sys/types.h>
5363 #include <sys/socket.h>
5364 #include <netinet/in.h>
5365 #include <arpa/inet.h>
5369 #include <netinet/if_ether.h>
5372 if test "x$ac_cv_type_struct_ether_addr" = xyes
; then :
5374 cat >>confdefs.h
<<_ACEOF
5375 #define HAVE_STRUCT_ETHER_ADDR 1
5382 $as_echo "#define HAVE_DECL_ETHER_HOSTTON 0" >>confdefs.h
5386 $as_echo "#define HAVE_DECL_ETHER_HOSTTON 1" >>confdefs.h
5391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if --disable-protochain option is specified" >&5
5392 $as_echo_n "checking if --disable-protochain option is specified... " >&6; }
5393 # Check whether --enable-protochain was given.
5394 if test "${enable_protochain+set}" = set; then :
5395 enableval
=$enable_protochain;
5398 case "x$enable_protochain" in
5399 xyes
) enable_protochain
=enabled
;;
5400 xno
) enable_protochain
=disabled
;;
5401 x
) enable_protochain
=enabled
;;
5404 if test "$enable_protochain" = "disabled"; then
5406 $as_echo "#define NO_PROTOCHAIN 1" >>confdefs.h
5409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_protochain}" >&5
5410 $as_echo "${enable_protochain}" >&6; }
5413 # valgrindtest directly uses the native capture mechanism, but
5414 # only tests with BPF and PF_PACKET sockets; only enable it if
5415 # we have BPF or PF_PACKET sockets.
5420 # SITA support is mutually exclusive with native capture support;
5421 # "--with-sita" selects SITA support.
5424 # Check whether --with-sita was given.
5425 if test "${with_sita+set}" = set; then :
5427 if test ! "x$withval" = "xno" ; then
5429 $as_echo "#define SITA 1" >>confdefs.h
5431 { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling SITA ACN support" >&5
5432 $as_echo "$as_me: Enabling SITA ACN support" >&6;}
5438 if test -z "$with_pcap" && test "$cross_compiling" = yes; then
5439 as_fn_error $?
"pcap type not determined when cross-compiling; use --with-pcap=..." "$LINENO" 5
5442 # Check whether --with-pcap was given.
5443 if test "${with_pcap+set}" = set; then :
5447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking packet capture type" >&5
5448 $as_echo_n "checking packet capture type... " >&6; }
5449 if test ! -z "$with_pcap" ; then
5451 elif test -r /dev
/bpf
-o -h /dev
/bpf
; then
5453 # Cloning BPF device.
5457 $as_echo "#define HAVE_CLONING_BPF 1" >>confdefs.h
5461 # We have BPF, so build valgrindtest with "make test".
5463 VALGRINDTEST
=valgrindtest
5464 elif test -r /dev
/bpf0
; then
5468 # We have BPF, so build valgrindtest with "make test".
5470 VALGRINDTEST
=valgrindtest
5471 elif test -r /usr
/include
/net
/pfilt.h
; then
5473 elif test -r /dev
/enet
; then
5475 elif test -r /dev
/nit
; then
5477 elif test -r /usr
/include
/sys
/net
/nit.h
; then
5479 elif test -r /usr
/include
/linux
/socket.h
; then
5483 # XXX - this won't work with older kernels that have SOCK_PACKET
5484 # sockets but not PF_PACKET sockets.
5486 VALGRINDTEST
=valgrindtest
5487 elif test -r /usr
/include
/net
/raw.h
; then
5489 elif test -r /usr
/include
/odmi.h
; then
5491 # On AIX, the BPF devices might not yet be present - they're
5492 # created the first time libpcap runs after booting.
5493 # We check for odmi.h instead.
5496 elif test -c /dev
/bpf0
; then # check again in case not readable
5500 # We have BPF, so build valgrindtest with "make test".
5502 VALGRINDTEST
=valgrindtest
5503 elif test -r /usr
/include
/sys
/dlpi.h
; then
5505 elif test -c /dev
/enet
; then # check again in case not readable
5507 elif test -c /dev
/nit
; then # check again in case not readable
5512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $V_PCAP" >&5
5513 $as_echo "$V_PCAP" >&6; }
5517 # Do capture-mechanism-dependent tests.
5522 # Needed for common functions used by pcap-[dlpi,libdlpi].c
5527 # Checks for some header files.
5529 for ac_header
in sys
/bufmod.h sys
/dlpi_ext.h
5531 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5532 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5533 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
5534 cat >>confdefs.h
<<_ACEOF
5535 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5544 # Checks to see if Solaris has the public libdlpi(3LIB) library.
5545 # Note: The existence of /usr/include/libdlpi.h does not mean it is the
5546 # public libdlpi(3LIB) version. Before libdlpi was made public, a
5547 # private version also existed, which did not have the same APIs.
5548 # Due to a gcc bug, the default search path for 32-bit libraries does
5549 # not include /lib, we add it explicitly here.
5550 # [http://bugs.opensolaris.org/view_bug.do?bug_id=6619485].
5551 # Also, due to the bug above applications that link to libpcap with
5552 # libdlpi will have to add "-L/lib" option to "configure".
5554 saved_ldflags
=$LDFLAGS
5555 LDFLAGS
="$LIBS -L/lib"
5556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlpi_walk in -ldlpi" >&5
5557 $as_echo_n "checking for dlpi_walk in -ldlpi... " >&6; }
5558 if ${ac_cv_lib_dlpi_dlpi_walk+:} false
; then :
5559 $as_echo_n "(cached) " >&6
5561 ac_check_lib_save_LIBS
=$LIBS
5563 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5564 /* end confdefs.h. */
5566 /* Override any GCC internal prototype to avoid an error.
5567 Use char because int might match the return type of a GCC
5568 builtin and then its argument prototype would still apply. */
5576 return dlpi_walk ();
5581 if ac_fn_c_try_link
"$LINENO"; then :
5582 ac_cv_lib_dlpi_dlpi_walk
=yes
5584 ac_cv_lib_dlpi_dlpi_walk
=no
5586 rm -f core conftest.err conftest.
$ac_objext \
5587 conftest
$ac_exeext conftest.
$ac_ext
5588 LIBS
=$ac_check_lib_save_LIBS
5590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dlpi_dlpi_walk" >&5
5591 $as_echo "$ac_cv_lib_dlpi_dlpi_walk" >&6; }
5592 if test "x$ac_cv_lib_dlpi_dlpi_walk" = xyes
; then :
5597 $as_echo "#define HAVE_LIBDLPI 1" >>confdefs.h
5604 LDFLAGS
=$saved_ldflags
5607 # Checks whether <sys/dlpi.h> is usable, to catch weird SCO
5610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/dlpi.h> is usable" >&5
5611 $as_echo_n "checking whether <sys/dlpi.h> is usable... " >&6; }
5612 if ${ac_cv_sys_dlpi_usable+:} false
; then :
5613 $as_echo_n "(cached) " >&6
5615 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5616 /* end confdefs.h. */
5618 #include <sys/types.h>
5619 #include <sys/time.h>
5620 #include <sys/dlpi.h>
5625 int i = DL_PROMISC_PHYS;
5630 if ac_fn_c_try_compile
"$LINENO"; then :
5631 ac_cv_sys_dlpi_usable
=yes
5633 ac_cv_sys_dlpi_usable
=no
5635 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_dlpi_usable" >&5
5639 $as_echo "$ac_cv_sys_dlpi_usable" >&6; }
5640 if test $ac_cv_sys_dlpi_usable = no
; then
5641 as_fn_error $?
"<sys/dlpi.h> is not usable on this system; it probably has a non-standard DLPI" "$LINENO" 5
5645 # Check whether we have a /dev/dlpi device or have multiple devices.
5647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/dlpi device" >&5
5648 $as_echo_n "checking for /dev/dlpi device... " >&6; }
5649 if test -c /dev
/dlpi
; then
5650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5651 $as_echo "yes" >&6; }
5653 $as_echo "#define HAVE_DEV_DLPI 1" >>confdefs.h
5656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5657 $as_echo "no" >&6; }
5659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $dir directory" >&5
5660 $as_echo_n "checking for $dir directory... " >&6; }
5661 if test -d $dir ; then
5662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5663 $as_echo "yes" >&6; }
5665 cat >>confdefs.h
<<_ACEOF
5666 #define PCAP_DEV_PREFIX "$dir"
5670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5671 $as_echo "no" >&6; }
5676 # This check is for Solaris with DLPI support for passive modes.
5677 # See dlpi(7P) for more details.
5679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if dl_passive_req_t struct exists" >&5
5680 $as_echo_n "checking if dl_passive_req_t struct exists... " >&6; }
5681 if ${ac_cv_lbl_has_dl_passive_req_t+:} false
; then :
5682 $as_echo_n "(cached) " >&6
5684 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5685 /* end confdefs.h. */
5687 # include <sys/types.h>
5688 # include <sys/dlpi.h>
5692 u_int i = sizeof(dl_passive_req_t)
5697 if ac_fn_c_try_compile
"$LINENO"; then :
5698 ac_cv_lbl_has_dl_passive_req_t
=yes
5700 ac_cv_lbl_has_dl_passive_req_t
=no
5702 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_has_dl_passive_req_t" >&5
5706 $as_echo "$ac_cv_lbl_has_dl_passive_req_t" >&6; }
5707 if test $ac_cv_lbl_has_dl_passive_req_t = yes ; then
5709 $as_echo "#define HAVE_DLPI_PASSIVE 1" >>confdefs.h
5716 # Do we have the wireless extensions?
5718 for ac_header
in linux
/wireless.h
5720 ac_fn_c_check_header_compile
"$LINENO" "linux/wireless.h" "ac_cv_header_linux_wireless_h" "
5721 #include <sys/socket.h>
5722 #include <linux/if.h>
5723 #include <linux/types.h>
5726 if test "x$ac_cv_header_linux_wireless_h" = xyes
; then :
5727 cat >>confdefs.h
<<_ACEOF
5728 #define HAVE_LINUX_WIRELESS_H 1
5740 # Check whether --with-libnl was given.
5741 if test "${with_libnl+set}" = set; then :
5742 withval
=$with_libnl; with_libnl
=$withval
5746 if test x
$with_libnl != xno
; then
5749 incdir
=-I/usr
/include
/libnl3
5751 if test x
$withval != x
; then
5752 libnldir
=-L${withval}/lib
/.libs
5753 incdir
=-I${withval}/include
5757 # Try libnl 3.x first.
5759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_socket_alloc in -lnl-3" >&5
5760 $as_echo_n "checking for nl_socket_alloc in -lnl-3... " >&6; }
5761 if ${ac_cv_lib_nl_3_nl_socket_alloc+:} false
; then :
5762 $as_echo_n "(cached) " >&6
5764 ac_check_lib_save_LIBS
=$LIBS
5765 LIBS
="-lnl-3 ${incdir} ${libnldir} -lnl-genl-3 -lnl-3 $LIBS"
5766 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5767 /* end confdefs.h. */
5769 /* Override any GCC internal prototype to avoid an error.
5770 Use char because int might match the return type of a GCC
5771 builtin and then its argument prototype would still apply. */
5775 char nl_socket_alloc ();
5779 return nl_socket_alloc ();
5784 if ac_fn_c_try_link
"$LINENO"; then :
5785 ac_cv_lib_nl_3_nl_socket_alloc
=yes
5787 ac_cv_lib_nl_3_nl_socket_alloc
=no
5789 rm -f core conftest.err conftest.
$ac_objext \
5790 conftest
$ac_exeext conftest.
$ac_ext
5791 LIBS
=$ac_check_lib_save_LIBS
5793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nl_3_nl_socket_alloc" >&5
5794 $as_echo "$ac_cv_lib_nl_3_nl_socket_alloc" >&6; }
5795 if test "x$ac_cv_lib_nl_3_nl_socket_alloc" = xyes
; then :
5798 # Yes, we have libnl 3.x.
5800 LIBS
="${libnldir} -lnl-genl-3 -lnl-3 $LIBS"
5802 $as_echo "#define HAVE_LIBNL 1" >>confdefs.h
5805 $as_echo "#define HAVE_LIBNL_3_x 1" >>confdefs.h
5808 $as_echo "#define HAVE_LIBNL_NLE 1" >>confdefs.h
5811 $as_echo "#define HAVE_LIBNL_SOCKETS 1" >>confdefs.h
5813 V_INCLS
="$V_INCLS ${incdir}"
5819 if test x
$have_any_nl = xno
; then
5823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_socket_alloc in -lnl" >&5
5824 $as_echo_n "checking for nl_socket_alloc in -lnl... " >&6; }
5825 if ${ac_cv_lib_nl_nl_socket_alloc+:} false
; then :
5826 $as_echo_n "(cached) " >&6
5828 ac_check_lib_save_LIBS
=$LIBS
5830 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5831 /* end confdefs.h. */
5833 /* Override any GCC internal prototype to avoid an error.
5834 Use char because int might match the return type of a GCC
5835 builtin and then its argument prototype would still apply. */
5839 char nl_socket_alloc ();
5843 return nl_socket_alloc ();
5848 if ac_fn_c_try_link
"$LINENO"; then :
5849 ac_cv_lib_nl_nl_socket_alloc
=yes
5851 ac_cv_lib_nl_nl_socket_alloc
=no
5853 rm -f core conftest.err conftest.
$ac_objext \
5854 conftest
$ac_exeext conftest.
$ac_ext
5855 LIBS
=$ac_check_lib_save_LIBS
5857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nl_nl_socket_alloc" >&5
5858 $as_echo "$ac_cv_lib_nl_nl_socket_alloc" >&6; }
5859 if test "x$ac_cv_lib_nl_nl_socket_alloc" = xyes
; then :
5862 # Yes, we have libnl 2.x.
5864 LIBS
="${libnldir} -lnl-genl -lnl $LIBS"
5866 $as_echo "#define HAVE_LIBNL 1" >>confdefs.h
5869 $as_echo "#define HAVE_LIBNL_2_x 1" >>confdefs.h
5872 $as_echo "#define HAVE_LIBNL_NLE 1" >>confdefs.h
5875 $as_echo "#define HAVE_LIBNL_SOCKETS 1" >>confdefs.h
5883 if test x
$have_any_nl = xno
; then
5885 # No, we don't; do we have libnl 1.x?
5887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_handle_alloc in -lnl" >&5
5888 $as_echo_n "checking for nl_handle_alloc in -lnl... " >&6; }
5889 if ${ac_cv_lib_nl_nl_handle_alloc+:} false
; then :
5890 $as_echo_n "(cached) " >&6
5892 ac_check_lib_save_LIBS
=$LIBS
5894 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5895 /* end confdefs.h. */
5897 /* Override any GCC internal prototype to avoid an error.
5898 Use char because int might match the return type of a GCC
5899 builtin and then its argument prototype would still apply. */
5903 char nl_handle_alloc ();
5907 return nl_handle_alloc ();
5912 if ac_fn_c_try_link
"$LINENO"; then :
5913 ac_cv_lib_nl_nl_handle_alloc
=yes
5915 ac_cv_lib_nl_nl_handle_alloc
=no
5917 rm -f core conftest.err conftest.
$ac_objext \
5918 conftest
$ac_exeext conftest.
$ac_ext
5919 LIBS
=$ac_check_lib_save_LIBS
5921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nl_nl_handle_alloc" >&5
5922 $as_echo "$ac_cv_lib_nl_nl_handle_alloc" >&6; }
5923 if test "x$ac_cv_lib_nl_nl_handle_alloc" = xyes
; then :
5928 LIBS
="${libnldir} -lnl $LIBS"
5930 $as_echo "#define HAVE_LIBNL 1" >>confdefs.h
5938 if test x
$have_any_nl = xno
; then
5940 # No, we don't have libnl at all.
5942 if test x
$with_libnl = xyes
; then
5943 as_fn_error $?
"libnl support requested but libnl not found" "$LINENO" 5
5948 for ac_header
in linux
/ethtool.h
5950 ac_fn_c_check_header_compile
"$LINENO" "linux/ethtool.h" "ac_cv_header_linux_ethtool_h" "
5951 $ac_includes_default
5952 #include <linux/types.h>
5955 if test "x$ac_cv_header_linux_ethtool_h" = xyes
; then :
5956 cat >>confdefs.h
<<_ACEOF
5957 #define HAVE_LINUX_ETHTOOL_H 1
5964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if if_packet.h has tpacket_stats defined" >&5
5965 $as_echo_n "checking if if_packet.h has tpacket_stats defined... " >&6; }
5966 if ${ac_cv_lbl_tpacket_stats+:} false
; then :
5967 $as_echo_n "(cached) " >&6
5969 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5970 /* end confdefs.h. */
5972 # include <linux/if_packet.h>
5976 struct tpacket_stats stats
5981 if ac_fn_c_try_compile
"$LINENO"; then :
5982 ac_cv_lbl_tpacket_stats
=yes
5984 ac_cv_lbl_tpacket_stats
=no
5986 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_tpacket_stats" >&5
5990 $as_echo "$ac_cv_lbl_tpacket_stats" >&6; }
5991 if test $ac_cv_lbl_tpacket_stats = yes; then
5993 $as_echo "#define HAVE_TPACKET_STATS 1" >>confdefs.h
5996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if tpacket_auxdata struct has tp_vlan_tci member" >&5
5997 $as_echo_n "checking if tpacket_auxdata struct has tp_vlan_tci member... " >&6; }
5998 if ${ac_cv_lbl_linux_tpacket_auxdata_tp_vlan_tci+:} false
; then :
5999 $as_echo_n "(cached) " >&6
6001 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6002 /* end confdefs.h. */
6004 # include <sys/types.h>
6005 # include <linux/if_packet.h>
6009 u_int i = sizeof(((struct tpacket_auxdata *)0)->tp_vlan_tci)
6014 if ac_fn_c_try_compile
"$LINENO"; then :
6015 ac_cv_lbl_linux_tpacket_auxdata_tp_vlan_tci
=yes
6017 ac_cv_lbl_linux_tpacket_auxdata_tp_vlan_tci
=no
6019 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_linux_tpacket_auxdata_tp_vlan_tci" >&5
6023 $as_echo "$ac_cv_lbl_linux_tpacket_auxdata_tp_vlan_tci" >&6; }
6024 if test $ac_cv_lbl_linux_tpacket_auxdata_tp_vlan_tci = yes ; then
6025 HAVE_LINUX_TPACKET_AUXDATA
=tp_vlan_tci
6028 $as_echo "#define HAVE_LINUX_TPACKET_AUXDATA_TP_VLAN_TCI 1" >>confdefs.h
6035 # Check whether we have the *BSD-style ioctls.
6037 for ac_header
in net
/if_media.h
6039 ac_fn_c_check_header_mongrel
"$LINENO" "net/if_media.h" "ac_cv_header_net_if_media_h" "$ac_includes_default"
6040 if test "x$ac_cv_header_net_if_media_h" = xyes
; then :
6041 cat >>confdefs.h
<<_ACEOF
6042 #define HAVE_NET_IF_MEDIA_H 1
6050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the system supports zerocopy BPF" >&5
6051 $as_echo_n "checking whether the system supports zerocopy BPF... " >&6; }
6052 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6053 /* end confdefs.h. */
6054 #include <sys/socket.h>
6055 #include <sys/ioctl.h>
6057 #include <net/bpf.h>
6061 return (BIOCROTZBUF + BPF_BUFMODE_ZBUF);
6066 if ac_fn_c_try_compile
"$LINENO"; then :
6068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6069 $as_echo "yes" >&6; }
6071 $as_echo "#define HAVE_ZEROCOPY_BPF 1" >>confdefs.h
6075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6076 $as_echo "no" >&6; }
6078 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6081 # Check whether we have struct BPF_TIMEVAL.
6083 ac_fn_c_check_type
"$LINENO" "struct BPF_TIMEVAL" "ac_cv_type_struct_BPF_TIMEVAL" "
6084 #include <sys/types.h>
6085 #include <sys/ioctl.h>
6086 #ifdef HAVE_SYS_IOCCOM_H
6087 #include <sys/ioccom.h>
6089 #include <net/bpf.h>
6092 if test "x$ac_cv_type_struct_BPF_TIMEVAL" = xyes
; then :
6094 cat >>confdefs.h
<<_ACEOF
6095 #define HAVE_STRUCT_BPF_TIMEVAL 1
6105 # --with-pcap=dag is the only way to get here, and it means
6106 # "DAG support but nothing else"
6108 V_DEFS
="$V_DEFS -DDAG_ONLY"
6114 # --with-pcap=septel is the only way to get here, and it means
6115 # "Septel support but nothing else"
6117 V_DEFS
="$V_DEFS -DSEPTEL_ONLY"
6123 # --with-pcap=snf is the only way to get here, and it means
6124 # "SNF support but nothing else"
6126 V_DEFS
="$V_DEFS -DSNF_ONLY"
6131 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine packet capture interface" >&5
6132 $as_echo "$as_me: WARNING: cannot determine packet capture interface" >&2;}
6133 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: (see the INSTALL doc for more info)" >&5
6134 $as_echo "$as_me: WARNING: (see the INSTALL doc for more info)" >&2;}
6138 as_fn_error $?
"$V_PCAP is not a valid pcap type" "$LINENO" 5
6142 if test "$V_PCAP" != null
6144 ac_fn_c_check_func
"$LINENO" "getifaddrs" "ac_cv_func_getifaddrs"
6145 if test "x$ac_cv_func_getifaddrs" = xyes
; then :
6148 # We have "getifaddrs()"; make sure we have <ifaddrs.h>
6149 # as well, just in case some platform is really weird.
6151 ac_fn_c_check_header_mongrel
"$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "$ac_includes_default"
6152 if test "x$ac_cv_header_ifaddrs_h" = xyes
; then :
6155 # We have the header, so we use "getifaddrs()" to
6156 # get the list of interfaces.
6158 V_FINDALLDEVS
=fad-getad.c
6163 # We don't have the header - give up.
6164 # XXX - we could also fall back on some other
6165 # mechanism, but, for now, this'll catch this
6166 # problem so that we can at least try to figure
6167 # out something to do on systems with "getifaddrs()"
6168 # but without "ifaddrs.h", if there is something
6169 # we can do on those systems.
6171 as_fn_error $?
"Your system has getifaddrs() but doesn't have a usable <ifaddrs.h>." "$LINENO" 5
6180 # Well, we don't have "getifaddrs()", so we have to use
6181 # some other mechanism; determine what that mechanism is.
6183 # The first thing we use is the type of capture mechanism,
6184 # which is somewhat of a proxy for the OS we're using.
6190 # This might be Solaris 8 or later, with
6191 # SIOCGLIFCONF, or it might be some other OS
6192 # or some older version of Solaris, with
6195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have SIOCGLIFCONF" >&5
6196 $as_echo_n "checking whether we have SIOCGLIFCONF... " >&6; }
6197 if ${ac_cv_lbl_have_siocglifconf+:} false
; then :
6198 $as_echo_n "(cached) " >&6
6200 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6201 /* end confdefs.h. */
6202 #include <sys/param.h>
6203 #include <sys/file.h>
6204 #include <sys/ioctl.h>
6205 #include <sys/socket.h>
6206 #include <sys/sockio.h>
6210 ioctl(0, SIOCGLIFCONF, (char *)0);
6215 if ac_fn_c_try_compile
"$LINENO"; then :
6216 ac_cv_lbl_have_siocglifconf
=yes
6218 ac_cv_lbl_have_siocglifconf
=no
6220 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_have_siocglifconf" >&5
6224 $as_echo "$ac_cv_lbl_have_siocglifconf" >&6; }
6225 if test $ac_cv_lbl_have_siocglifconf = yes ; then
6226 V_FINDALLDEVS
=fad-glifc.c
6228 V_FINDALLDEVS
=fad-gifc.c
6234 # Assume we just have SIOCGIFCONF.
6235 # (XXX - on at least later Linux kernels, there's
6236 # another mechanism, and we should be using that
6239 V_FINDALLDEVS
=fad-gifc.c
6249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
6250 $as_echo_n "checking for socklen_t... " >&6; }
6251 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6252 /* end confdefs.h. */
6254 #include <sys/types.h>
6255 #include <sys/socket.h>
6265 if ac_fn_c_try_compile
"$LINENO"; then :
6270 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6271 if test "x$have_socklen_t" = "xyes"; then
6273 $as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h
6276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_socklen_t" >&5
6277 $as_echo "$have_socklen_t" >&6; }
6279 # Check whether --enable-ipv6 was given.
6280 if test "${enable_ipv6+set}" = set; then :
6281 enableval
=$enable_ipv6;
6283 enable_ipv6
=ifavailable
6286 if test "$enable_ipv6" != "no"; then
6287 ac_fn_c_check_func
"$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
6288 if test "x$ac_cv_func_getaddrinfo" = xyes
; then :
6291 $as_echo "#define INET6 1" >>confdefs.h
6296 if test "$enable_ipv6" != "ifavailable"; then
6297 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6298 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6299 as_fn_error $?
"--enable-ipv6 was given, but getaddrinfo isn't available
6300 See \`config.log' for more details" "$LINENO" 5; }
6307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build optimizer debugging code" >&5
6308 $as_echo_n "checking whether to build optimizer debugging code... " >&6; }
6309 # Check whether --enable-optimizer-dbg was given.
6310 if test "${enable_optimizer_dbg+set}" = set; then :
6311 enableval
=$enable_optimizer_dbg;
6314 if test "$enable_optimizer_dbg" = "yes"; then
6316 $as_echo "#define BDEBUG 1" >>confdefs.h
6319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_optimizer_dbg-no}" >&5
6320 $as_echo "${enable_optimizer_dbg-no}" >&6; }
6322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build parser debugging code" >&5
6323 $as_echo_n "checking whether to build parser debugging code... " >&6; }
6324 # Check whether --enable-yydebug was given.
6325 if test "${enable_yydebug+set}" = set; then :
6326 enableval
=$enable_yydebug;
6329 if test "$enable_yydebug" = "yes"; then
6331 $as_echo "#define YYDEBUG 1" >>confdefs.h
6334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_yydebug-no}" >&5
6335 $as_echo "${enable_yydebug-no}" >&6; }
6337 # Check for Endace DAG card support.
6339 # Check whether --with-dag was given.
6340 if test "${with_dag+set}" = set; then :
6342 if test "$withval" = no
6344 # User doesn't want DAG support.
6346 elif test "$withval" = yes
6348 # User wants DAG support but hasn't specified a directory.
6351 # User wants DAG support and has specified a directory, so use the provided value.
6358 if test "$V_PCAP" = dag
; then
6359 # User requested DAG-only libpcap, so we'd better have
6362 elif test "xxx_only" = yes; then
6363 # User requested something-else-only pcap, so they don't
6368 # Use DAG API if present, otherwise don't
6377 # Check whether --with-dag-includes was given.
6378 if test "${with_dag_includes+set}" = set; then :
6379 withval
=$with_dag_includes;
6380 # User wants DAG support and has specified a header directory, so use the provided value.
6382 dag_include_dir
=$withval
6388 # Check whether --with-dag-libraries was given.
6389 if test "${with_dag_libraries+set}" = set; then :
6390 withval
=$with_dag_libraries;
6391 # User wants DAG support and has specified a library directory, so use the provided value.
6393 dag_lib_dir
=$withval
6398 ac_cv_lbl_dag_api
=no
6399 if test "$want_dag" != no
; then
6401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have DAG API headers" >&5
6402 $as_echo_n "checking whether we have DAG API headers... " >&6; }
6404 # If necessary, set default paths for DAG API headers and libraries.
6405 if test -z "$dag_root"; then
6409 if test -z "$dag_include_dir"; then
6410 dag_include_dir
="$dag_root/include"
6413 if test -z "$dag_lib_dir"; then
6414 dag_lib_dir
="$dag_root/lib"
6417 if test -z "$dag_tools_dir"; then
6418 dag_tools_dir
="$dag_root/tools"
6421 if test -r $dag_include_dir/dagapi.h
; then
6422 ac_cv_lbl_dag_api
=yes
6425 if test "$ac_cv_lbl_dag_api" = yes; then
6426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($dag_include_dir)" >&5
6427 $as_echo "yes ($dag_include_dir)" >&6; }
6429 V_INCLS
="$V_INCLS -I$dag_include_dir"
6431 if test $V_PCAP != dag
; then
6432 SSRC
="$SSRC pcap-dag.c"
6435 # See if we can find a general version string.
6436 # Don't need to save and restore LIBS to prevent -ldag being
6437 # included if there's a found-action (arg 3).
6438 saved_ldflags
=$LDFLAGS
6439 LDFLAGS
="-L$dag_lib_dir"
6440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dag_attach_stream in -ldag" >&5
6441 $as_echo_n "checking for dag_attach_stream in -ldag... " >&6; }
6442 if ${ac_cv_lib_dag_dag_attach_stream+:} false
; then :
6443 $as_echo_n "(cached) " >&6
6445 ac_check_lib_save_LIBS
=$LIBS
6447 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6448 /* end confdefs.h. */
6450 /* Override any GCC internal prototype to avoid an error.
6451 Use char because int might match the return type of a GCC
6452 builtin and then its argument prototype would still apply. */
6456 char dag_attach_stream ();
6460 return dag_attach_stream ();
6465 if ac_fn_c_try_link
"$LINENO"; then :
6466 ac_cv_lib_dag_dag_attach_stream
=yes
6468 ac_cv_lib_dag_dag_attach_stream
=no
6470 rm -f core conftest.err conftest.
$ac_objext \
6471 conftest
$ac_exeext conftest.
$ac_ext
6472 LIBS
=$ac_check_lib_save_LIBS
6474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dag_dag_attach_stream" >&5
6475 $as_echo "$ac_cv_lib_dag_dag_attach_stream" >&6; }
6476 if test "x$ac_cv_lib_dag_dag_attach_stream" = xyes
; then :
6482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dag_get_erf_types in -ldag" >&5
6483 $as_echo_n "checking for dag_get_erf_types in -ldag... " >&6; }
6484 if ${ac_cv_lib_dag_dag_get_erf_types+:} false
; then :
6485 $as_echo_n "(cached) " >&6
6487 ac_check_lib_save_LIBS
=$LIBS
6489 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6490 /* end confdefs.h. */
6492 /* Override any GCC internal prototype to avoid an error.
6493 Use char because int might match the return type of a GCC
6494 builtin and then its argument prototype would still apply. */
6498 char dag_get_erf_types ();
6502 return dag_get_erf_types ();
6507 if ac_fn_c_try_link
"$LINENO"; then :
6508 ac_cv_lib_dag_dag_get_erf_types
=yes
6510 ac_cv_lib_dag_dag_get_erf_types
=no
6512 rm -f core conftest.err conftest.
$ac_objext \
6513 conftest
$ac_exeext conftest.
$ac_ext
6514 LIBS
=$ac_check_lib_save_LIBS
6516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dag_dag_get_erf_types" >&5
6517 $as_echo "$ac_cv_lib_dag_dag_get_erf_types" >&6; }
6518 if test "x$ac_cv_lib_dag_dag_get_erf_types" = xyes
; then :
6521 $as_echo "#define HAVE_DAG_GET_ERF_TYPES 1" >>confdefs.h
6525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dag_get_stream_erf_types in -ldag" >&5
6526 $as_echo_n "checking for dag_get_stream_erf_types in -ldag... " >&6; }
6527 if ${ac_cv_lib_dag_dag_get_stream_erf_types+:} false
; then :
6528 $as_echo_n "(cached) " >&6
6530 ac_check_lib_save_LIBS
=$LIBS
6532 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6533 /* end confdefs.h. */
6535 /* Override any GCC internal prototype to avoid an error.
6536 Use char because int might match the return type of a GCC
6537 builtin and then its argument prototype would still apply. */
6541 char dag_get_stream_erf_types ();
6545 return dag_get_stream_erf_types ();
6550 if ac_fn_c_try_link
"$LINENO"; then :
6551 ac_cv_lib_dag_dag_get_stream_erf_types
=yes
6553 ac_cv_lib_dag_dag_get_stream_erf_types
=no
6555 rm -f core conftest.err conftest.
$ac_objext \
6556 conftest
$ac_exeext conftest.
$ac_ext
6557 LIBS
=$ac_check_lib_save_LIBS
6559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dag_dag_get_stream_erf_types" >&5
6560 $as_echo "$ac_cv_lib_dag_dag_get_stream_erf_types" >&6; }
6561 if test "x$ac_cv_lib_dag_dag_get_stream_erf_types" = xyes
; then :
6564 $as_echo "#define HAVE_DAG_GET_STREAM_ERF_TYPES 1" >>confdefs.h
6569 LDFLAGS
=$saved_ldflags
6571 if test "$dag_streams" = 1; then
6573 $as_echo "#define HAVE_DAG_STREAMS_API 1" >>confdefs.h
6576 LDFLAGS
="$LDFLAGS -L$dag_lib_dir"
6578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for vdag_set_device_info in -lvdag" >&5
6579 $as_echo_n "checking for vdag_set_device_info in -lvdag... " >&6; }
6580 if ${ac_cv_lib_vdag_vdag_set_device_info+:} false
; then :
6581 $as_echo_n "(cached) " >&6
6583 ac_check_lib_save_LIBS
=$LIBS
6585 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6586 /* end confdefs.h. */
6588 /* Override any GCC internal prototype to avoid an error.
6589 Use char because int might match the return type of a GCC
6590 builtin and then its argument prototype would still apply. */
6594 char vdag_set_device_info ();
6598 return vdag_set_device_info ();
6603 if ac_fn_c_try_link
"$LINENO"; then :
6604 ac_cv_lib_vdag_vdag_set_device_info
=yes
6606 ac_cv_lib_vdag_vdag_set_device_info
=no
6608 rm -f core conftest.err conftest.
$ac_objext \
6609 conftest
$ac_exeext conftest.
$ac_ext
6610 LIBS
=$ac_check_lib_save_LIBS
6612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_vdag_vdag_set_device_info" >&5
6613 $as_echo "$ac_cv_lib_vdag_vdag_set_device_info" >&6; }
6614 if test "x$ac_cv_lib_vdag_vdag_set_device_info" = xyes
; then :
6615 ac_dag_have_vdag
="1"
6617 ac_dag_have_vdag
="0"
6620 if test "$ac_dag_have_vdag" = 1; then
6622 $as_echo "#define HAVE_DAG_VDAG 1" >>confdefs.h
6624 LIBS
="$LIBS -lpthread"
6629 $as_echo "#define HAVE_DAG_API 1" >>confdefs.h
6632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6633 $as_echo "no" >&6; }
6635 if test "$V_PCAP" = dag
; then
6636 # User requested "dag" capture type but we couldn't
6637 # find the DAG API support.
6638 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
6641 if test "$want_dag" = yes; then
6642 # User wanted DAG support but we couldn't find it.
6643 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
6649 # Check whether --with-septel was given.
6650 if test "${with_septel+set}" = set; then :
6651 withval
=$with_septel;
6652 if test "$withval" = no
6655 elif test "$withval" = yes
6661 septel_root
=$withval
6666 if test "$V_PCAP" = septel
; then
6667 # User requested Septel-only libpcap, so we'd better have
6670 elif test "xxx_only" = yes; then
6671 # User requested something-else-only pcap, so they don't
6672 # want Septel support.
6676 # Use Septel API if present, otherwise don't
6678 want_septel
=ifpresent
6684 ac_cv_lbl_septel_api
=no
6685 if test "$with_septel" != no
; then
6687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have Septel API headers" >&5
6688 $as_echo_n "checking whether we have Septel API headers... " >&6; }
6690 # If necessary, set default paths for Septel API headers and libraries.
6691 if test -z "$septel_root"; then
6692 septel_root
=$srcdir/..
/septel
6695 septel_tools_dir
="$septel_root"
6696 septel_include_dir
="$septel_root/INC"
6698 if test -r "$septel_include_dir/msg.h"; then
6699 ac_cv_lbl_septel_api
=yes
6702 if test "$ac_cv_lbl_septel_api" = yes; then
6703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($septel_include_dir)" >&5
6704 $as_echo "yes ($septel_include_dir)" >&6; }
6706 V_INCLS
="$V_INCLS -I$septel_include_dir"
6707 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"
6708 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"
6710 if test "$V_PCAP" != septel
; then
6711 SSRC
="$SSRC pcap-septel.c"
6715 $as_echo "#define HAVE_SEPTEL_API 1" >>confdefs.h
6718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6719 $as_echo "no" >&6; }
6721 if test "$V_PCAP" = septel
; then
6722 # User requested "septel" capture type but
6723 # we couldn't find the Septel API support.
6724 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
6727 if test "$want_septel" = yes; then
6728 # User wanted Septel support but we couldn't find it.
6729 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
6734 # Check for Myricom SNF support.
6736 # Check whether --with-snf was given.
6737 if test "${with_snf+set}" = set; then :
6739 if test "$withval" = no
6741 # User explicitly doesn't want SNF
6743 elif test "$withval" = yes
6745 # User wants SNF support but hasn't specified a directory.
6748 # User wants SNF support with a specified directory.
6755 if test "$V_PCAP" = snf
; then
6756 # User requested Sniffer-only libpcap, so we'd better have
6759 elif test "xxx_only" = yes; then
6760 # User requested something-else-only pcap, so they don't
6765 # Use Sniffer API if present, otherwise don't
6774 # Check whether --with-snf-includes was given.
6775 if test "${with_snf_includes+set}" = set; then :
6776 withval
=$with_snf_includes;
6777 # User wants SNF with specific header directory
6779 snf_include_dir
=$withval
6785 # Check whether --with-snf-libraries was given.
6786 if test "${with_snf_libraries+set}" = set; then :
6787 withval
=$with_snf_libraries;
6788 # User wants SNF with specific lib directory
6790 snf_lib_dir
=$withval
6795 ac_cv_lbl_snf_api
=no
6796 if test "$with_snf" != no
; then
6798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have Myricom Sniffer API" >&5
6799 $as_echo_n "checking whether we have Myricom Sniffer API... " >&6; }
6801 # If necessary, set default paths for Sniffer headers and libraries.
6802 if test -z "$snf_root"; then
6806 if test -z "$snf_include_dir"; then
6807 snf_include_dir
="$snf_root/include"
6810 if test -z "$snf_lib_dir"; then
6811 snf_lib_dir
="$snf_root/lib"
6814 if test -f "$snf_include_dir/snf.h"; then
6815 # We found a header; make sure we can link with the library
6816 saved_ldflags
=$LDFLAGS
6817 LDFLAGS
="$LDFLAGS -L$snf_lib_dir"
6818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snf_init in -lsnf" >&5
6819 $as_echo_n "checking for snf_init in -lsnf... " >&6; }
6820 if ${ac_cv_lib_snf_snf_init+:} false
; then :
6821 $as_echo_n "(cached) " >&6
6823 ac_check_lib_save_LIBS
=$LIBS
6825 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6826 /* end confdefs.h. */
6828 /* Override any GCC internal prototype to avoid an error.
6829 Use char because int might match the return type of a GCC
6830 builtin and then its argument prototype would still apply. */
6843 if ac_fn_c_try_link
"$LINENO"; then :
6844 ac_cv_lib_snf_snf_init
=yes
6846 ac_cv_lib_snf_snf_init
=no
6848 rm -f core conftest.err conftest.
$ac_objext \
6849 conftest
$ac_exeext conftest.
$ac_ext
6850 LIBS
=$ac_check_lib_save_LIBS
6852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_snf_snf_init" >&5
6853 $as_echo "$ac_cv_lib_snf_snf_init" >&6; }
6854 if test "x$ac_cv_lib_snf_snf_init" = xyes
; then :
6855 ac_cv_lbl_snf_api
="yes"
6858 LDFLAGS
="$saved_ldflags"
6859 if test "$ac_cv_lbl_snf_api" = no
; then
6860 as_fn_error $?
"SNF API cannot correctly be linked; check config.log" "$LINENO" 5
6864 if test "$ac_cv_lbl_snf_api" = yes; then
6865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($snf_root)" >&5
6866 $as_echo "yes ($snf_root)" >&6; }
6868 V_INCLS
="$V_INCLS -I$snf_include_dir"
6870 LDFLAGS
="$LDFLAGS -L$snf_lib_dir"
6872 if test "$V_PCAP" != snf
; then
6873 SSRC
="$SSRC pcap-snf.c"
6877 $as_echo "#define HAVE_SNF_API 1" >>confdefs.h
6880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6881 $as_echo "no" >&6; }
6883 if test "$want_snf" = yes; then
6884 # User requested "snf" capture type but
6885 # we couldn't find the Sniffer API support.
6886 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
6889 if test "$want_snf" = yes; then
6890 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
6895 # Check for Riverbed TurboCap support.
6897 # Check whether --with-turbocap was given.
6898 if test "${with_turbocap+set}" = set; then :
6899 withval
=$with_turbocap;
6900 if test "$withval" = no
6902 # User explicitly doesn't want TurboCap
6904 elif test "$withval" = yes
6906 # User wants TurboCap support but hasn't specified a directory.
6909 # User wants TurboCap support with a specified directory.
6911 turbocap_root
=$withval
6916 if test "xxx_only" = yes; then
6917 # User requested something-else-only pcap, so they don't
6918 # want TurboCap support.
6922 # Use TurboCap API if present, otherwise don't
6924 want_turbocap
=ifpresent
6930 ac_cv_lbl_turbocap_api
=no
6931 if test "$want_turbocap" != no
; then
6933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether TurboCap is supported" >&5
6934 $as_echo_n "checking whether TurboCap is supported... " >&6; }
6936 save_CFLAGS
="$CFLAGS"
6938 if test ! -z "$turbocap_root"; then
6939 TURBOCAP_CFLAGS
="-I$turbocap_root/include"
6940 TURBOCAP_LIBS
="-L$turbocap_root/lib"
6941 CFLAGS
="$CFLAGS $TURBOCAP_CFLAGS"
6944 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6945 /* end confdefs.h. */
6953 TC_INSTANCE a; TC_PORT b; TC_BOARD c;
6955 (void)TcInstanceCreateByName("foo", &i);
6961 if ac_fn_c_try_compile
"$LINENO"; then :
6962 ac_cv_lbl_turbocap_api
=yes
6964 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6966 CFLAGS
="$save_CFLAGS"
6967 if test $ac_cv_lbl_turbocap_api = yes; then
6968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6969 $as_echo "yes" >&6; }
6971 SSRC
="$SSRC pcap-tc.c"
6972 V_INCLS
="$V_INCLS $TURBOCAP_CFLAGS"
6973 LIBS
="$LIBS $TURBOCAP_LIBS -lTcApi -lpthread -lstdc++"
6976 $as_echo "#define HAVE_TC_API 1" >>confdefs.h
6979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6980 $as_echo "no" >&6; }
6982 if test "$want_turbocap" = yes; then
6983 # User wanted Turbo support but we couldn't find it.
6984 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
6992 for ac_prog
in flex
lex
6994 # Extract the first word of "$ac_prog", so it can be a program name with args.
6995 set dummy
$ac_prog; ac_word
=$2
6996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6997 $as_echo_n "checking for $ac_word... " >&6; }
6998 if ${ac_cv_prog_LEX+:} false
; then :
6999 $as_echo_n "(cached) " >&6
7001 if test -n "$LEX"; then
7002 ac_cv_prog_LEX
="$LEX" # Let the user override the test.
7004 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7008 test -z "$as_dir" && as_dir
=.
7009 for ac_exec_ext
in '' $ac_executable_extensions; do
7010 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7011 ac_cv_prog_LEX
="$ac_prog"
7012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7022 if test -n "$LEX"; then
7023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
7024 $as_echo "$LEX" >&6; }
7026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7027 $as_echo "no" >&6; }
7031 test -n "$LEX" && break
7033 test -n "$LEX" || LEX
=":"
7035 if test "x$LEX" != "x:"; then
7036 cat >conftest.l
<<_ACEOF
7042 e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
7043 yyless ((input () != 0)); }
7044 f { unput (yytext[0]); }
7045 . { BEGIN INITIAL; }
7047 #ifdef YYTEXT_POINTER
7048 extern char *yytext;
7053 return ! yylex () + ! yywrap ();
7056 { { ac_try
="$LEX conftest.l"
7058 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7059 *) ac_try_echo=$ac_try;;
7061 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7062 $as_echo "$ac_try_echo"; } >&5
7063 (eval "$LEX conftest.l") 2>&5
7065 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7066 test $ac_status = 0; }
7067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
7068 $as_echo_n "checking lex output file root... " >&6; }
7069 if ${ac_cv_prog_lex_root+:} false; then :
7070 $as_echo_n "(cached) " >&6
7073 if test -f lex.yy.c; then
7074 ac_cv_prog_lex_root=lex.yy
7075 elif test -f lexyy.c; then
7076 ac_cv_prog_lex_root=lexyy
7078 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
7081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
7082 $as_echo "$ac_cv_prog_lex_root" >&6; }
7083 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
7085 if test -z "${LEXLIB+set}"; then
7086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
7087 $as_echo_n "checking lex library... " >&6; }
7088 if ${ac_cv_lib_lex+:} false; then :
7089 $as_echo_n "(cached) " >&6
7093 ac_cv_lib_lex='none needed'
7094 for ac_lib in '' -lfl -ll; do
7095 LIBS="$ac_lib $ac_save_LIBS"
7096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7097 /* end confdefs.h. */
7098 `cat $LEX_OUTPUT_ROOT.c
`
7100 if ac_fn_c_try_link "$LINENO"; then :
7101 ac_cv_lib_lex=$ac_lib
7103 rm -f core conftest.err conftest.$ac_objext \
7104 conftest$ac_exeext conftest.$ac_ext
7105 test "$ac_cv_lib_lex" != 'none needed' && break
7110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
7111 $as_echo "$ac_cv_lib_lex" >&6; }
7112 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
7116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
7117 $as_echo_n "checking whether yytext is a pointer... " >&6; }
7118 if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
7119 $as_echo_n "(cached) " >&6
7121 # POSIX says lex can declare yytext either as a pointer or an array; the
7122 # default is implementation-dependent. Figure out which it is, since
7123 # not all implementations provide the %pointer and %array declarations.
7124 ac_cv_prog_lex_yytext_pointer=no
7126 LIBS="$LEXLIB $ac_save_LIBS"
7127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7128 /* end confdefs.h. */
7130 #define YYTEXT_POINTER 1
7131 `cat $LEX_OUTPUT_ROOT.c
`
7133 if ac_fn_c_try_link "$LINENO"; then :
7134 ac_cv_prog_lex_yytext_pointer=yes
7136 rm -f core conftest.err conftest.$ac_objext \
7137 conftest$ac_exeext conftest.$ac_ext
7141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
7142 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
7143 if test $ac_cv_prog_lex_yytext_pointer = yes; then
7145 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
7148 rm -f conftest.l $LEX_OUTPUT_ROOT.c
7151 if test "$LEX" = ":"; then
7152 as_fn_error $? "Neither flex nor lex was found." "$LINENO" 5
7156 # Make sure {f}lex supports the -P, --header-file, and --nounput flags
7157 # and supports processing our scanner.l.
7159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for capable lex" >&5
7160 $as_echo_n "checking for capable lex... " >&6; }
7161 if ${tcpdump_cv_capable_lex+:} false; then :
7162 $as_echo_n "(cached) " >&6
7164 if $LEX -P pcap_ --header-file=/dev/null --nounput -t $srcdir/scanner.l > /dev/null 2>&1; then
7165 tcpdump_cv_capable_lex=yes
7167 tcpdump_cv_capable_lex=insufficient
7170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcpdump_cv_capable_lex" >&5
7171 $as_echo "$tcpdump_cv_capable_lex" >&6; }
7172 if test $tcpdump_cv_capable_lex = insufficient ; then
7173 as_fn_error $? "$LEX is insufficient to compile libpcap.
7174 libpcap requires Flex 2.5.31 or later, or a compatible version of lex." "$LINENO" 5
7178 # Look for yacc/bison/byacc.
7180 for ac_prog in 'bison -y' byacc
7182 # Extract the first word of "$ac_prog", so it can be a program name with args.
7183 set dummy $ac_prog; ac_word=$2
7184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7185 $as_echo_n "checking for $ac_word... " >&6; }
7186 if ${ac_cv_prog_YACC+:} false; then :
7187 $as_echo_n "(cached) " >&6
7189 if test -n "$YACC"; then
7190 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7196 test -z "$as_dir" && as_dir=.
7197 for ac_exec_ext in '' $ac_executable_extensions; do
7198 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7199 ac_cv_prog_YACC="$ac_prog"
7200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7209 YACC=$ac_cv_prog_YACC
7210 if test -n "$YACC"; then
7211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7212 $as_echo "$YACC" >&6; }
7214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7215 $as_echo "no" >&6; }
7219 test -n "$YACC" && break
7221 test -n "$YACC" || YACC="yacc"
7225 # Make sure it supports the -p flag and supports processing our
7228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for capable yacc/bison" >&5
7229 $as_echo_n "checking for capable yacc/bison... " >&6; }
7230 if ${tcpdump_cv_capable_yacc+:} false; then :
7231 $as_echo_n "(cached) " >&6
7233 if $YACC -p pcap_ -o /dev/null $srcdir/grammar.y >/dev/null 2>&1; then
7234 tcpdump_cv_capable_yacc=yes
7236 tcpdump_cv_capable_yacc=insufficient
7239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcpdump_cv_capable_yacc" >&5
7240 $as_echo "$tcpdump_cv_capable_yacc" >&6; }
7241 if test $tcpdump_cv_capable_yacc = insufficient ; then
7242 as_fn_error $? "$YACC is insufficient to compile libpcap.
7243 libpcap requires Bison, Berkeley YACC, or another YACC compatible with them." "$LINENO" 5
7247 # Assume, by default, no support for shared libraries and V7/BSD convention
7248 # for man pages (file formats in section 5, miscellaneous info in section 7).
7249 # Individual cases can override this.
7254 MAN_USERMOD_SECTION=1M
7255 MAN_ETHERS_SECTION=3N
7260 $as_echo "#define _SUN 1" >>confdefs.h
7264 # AIX makes it fun to build shared and static libraries,
7265 # because they're *both* ".a" archive libraries. We
7266 # build the static library for the benefit of the traditional
7267 # scheme of building libpcap and tcpdump in subdirectories of
7268 # the same directory, with tcpdump statically linked with the
7269 # libpcap in question, but we also build a shared library as
7270 # "libpcap.shareda" and install *it*, rather than the static
7271 # library, as "libpcap.a".
7279 # If we're using DLPI, applications will need to
7280 # use /lib/pse.exp if present, as we use the
7283 pseexe="/lib/pse.exp"
7284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $pseexe" >&5
7285 $as_echo_n "checking for $pseexe... " >&6; }
7286 if test -f $pseexe ; then
7287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7288 $as_echo "yes" >&6; }
7295 # If we're using BPF, we need "-lodm" and "-lcfg", as
7296 # we use them to load the BPF module.
7305 V_CCOPT="$V_CCOPT -fno-common"
7306 # Check whether --enable-universal was given.
7307 if test "${enable_universal+set}" = set; then :
7308 enableval=$enable_universal;
7311 if test "$enable_universal" != "no"; then
7316 # Pre-Tiger. Build only for 32-bit PowerPC; no
7317 # need for any special compiler or linker flags.
7323 # Tiger, prior to Intel support. Build for 32-bit
7324 # PowerPC and 64-bit PowerPC, with 32-bit PowerPC
7325 # first. (I'm guessing that's what Apple does.)
7327 V_CCOPT="$V_CCOPT -arch ppc -arch ppc64"
7328 LDFLAGS="$LDFLAGS -arch ppc -arch ppc64"
7333 # Tiger, subsequent to Intel support but prior to
7334 # x86-64 support. Build for 32-bit PowerPC, 64-bit
7335 # PowerPC, and x86, with 32-bit PowerPC first.
7336 # (I'm guessing that's what Apple does.)
7338 V_CCOPT="$V_CCOPT -arch ppc -arch ppc64 -arch i386"
7339 LDFLAGS="$LDFLAGS -arch ppc -arch ppc64 -arch i386"
7344 # All other Tiger, so subsequent to x86-64
7345 # support. Build for 32-bit PowerPC, 64-bit
7346 # PowerPC, x86, and x86-64, and with 32-bit PowerPC
7347 # first. (I'm guessing that's what Apple does.)
7349 V_CCOPT="$V_CCOPT -arch ppc -arch ppc64 -arch i386 -arch x86_64"
7350 LDFLAGS="$LDFLAGS -arch ppc -arch ppc64 -arch i386 -arch x86_64"
7355 # Leopard. Build for 32-bit PowerPC, 64-bit
7356 # PowerPC, x86, and x86-64, with 32-bit PowerPC
7357 # first. (That's what Apple does.)
7359 V_CCOPT="$V_CCOPT -arch ppc -arch ppc64 -arch i386 -arch x86_64"
7360 LDFLAGS="$LDFLAGS -arch ppc -arch ppc64 -arch i386 -arch x86_64"
7365 # Snow Leopard. Build for x86-64, x86, and
7366 # 32-bit PowerPC, with x86-64 first. (That's
7367 # what Apple does, even though Snow Leopard
7368 # doesn't run on PPC, so PPC libpcap runs under
7369 # Rosetta, and Rosetta doesn't support BPF
7370 # ioctls, so PPC programs can't do live
7373 V_CCOPT="$V_CCOPT -arch x86_64 -arch i386 -arch ppc"
7374 LDFLAGS="$LDFLAGS -arch x86_64 -arch i386 -arch ppc"
7379 # Post-Snow Leopard. Build for x86-64 and
7380 # x86, with x86-64 first. (That's probably what
7381 # Apple does, given that Rosetta is gone.)
7382 # XXX - update if and when Apple drops support
7383 # for 32-bit x86 code.
7385 V_CCOPT="$V_CCOPT -arch x86_64 -arch i386"
7386 LDFLAGS="$LDFLAGS -arch x86_64 -arch i386"
7394 $as_echo "#define HAVE_HPUX9 1" >>confdefs.h
7398 # Use System V conventions for man pages.
7407 # Use System V conventions for man pages.
7416 # Use System V conventions for man pages.
7424 $as_echo "#define HAVE_HPUX10_20_OR_LATER 1" >>confdefs.h
7426 if test "`uname
-m`" = "ia64"; then
7433 # "-b" builds a shared library; "+h" sets the soname.
7439 # Use System V conventions for man pages.
7447 # Use System V conventions for man pages.
7453 linux*|freebsd*|netbsd*|openbsd*|dragonfly*|kfreebsd*|gnu*)
7457 # Compiler assumed to be GCC; run-time linker may require a -R
7460 if test "$libdir" != "/usr/lib"; then
7461 V_RFLAGS=-Wl,-R$libdir
7469 # Use System V conventions for man pages.
7476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if SINIX compiler defines sinix" >&5
7477 $as_echo_n "checking if SINIX compiler defines sinix... " >&6; }
7478 if ${ac_cv_cc_sinix_defined+:} false; then :
7479 $as_echo_n "(cached) " >&6
7481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7482 /* end confdefs.h. */
7492 if ac_fn_c_try_compile "$LINENO"; then :
7493 ac_cv_cc_sinix_defined=yes
7495 ac_cv_cc_sinix_defined=no
7497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_sinix_defined" >&5
7501 $as_echo "$ac_cv_cc_sinix_defined" >&6; }
7502 if test $ac_cv_cc_sinix_defined = no ; then
7504 $as_echo "#define sinix 1" >>confdefs.h
7511 $as_echo "#define HAVE_SOLARIS 1" >>confdefs.h
7514 case "`uname
-r`" in
7516 MAN_USERMOD_SECTION=8
7517 MAN_ETHERS_SECTION=5
7523 # Use System V conventions for man pages.
7526 MAN_USERMOD_SECTION=1m
7527 MAN_ETHERS_SECTION=4
7536 # Check whether --enable-shared was given.
7537 if test "${enable_shared+set}" = set; then :
7538 enableval=$enable_shared;
7541 test "x$enable_shared" = "xno" && DYEXT="none"
7543 if test -n "$ac_tool_prefix"; then
7544 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7545 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7547 $as_echo_n "checking for $ac_word... " >&6; }
7548 if ${ac_cv_prog_RANLIB+:} false; then :
7549 $as_echo_n "(cached) " >&6
7551 if test -n "$RANLIB"; then
7552 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7558 test -z "$as_dir" && as_dir=.
7559 for ac_exec_ext in '' $ac_executable_extensions; do
7560 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7561 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7571 RANLIB=$ac_cv_prog_RANLIB
7572 if test -n "$RANLIB"; then
7573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7574 $as_echo "$RANLIB" >&6; }
7576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7577 $as_echo "no" >&6; }
7582 if test -z "$ac_cv_prog_RANLIB"; then
7583 ac_ct_RANLIB=$RANLIB
7584 # Extract the first word of "ranlib", so it can be a program name with args.
7585 set dummy ranlib; ac_word=$2
7586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7587 $as_echo_n "checking for $ac_word... " >&6; }
7588 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7589 $as_echo_n "(cached) " >&6
7591 if test -n "$ac_ct_RANLIB"; then
7592 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7598 test -z "$as_dir" && as_dir=.
7599 for ac_exec_ext in '' $ac_executable_extensions; do
7600 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7601 ac_cv_prog_ac_ct_RANLIB="ranlib"
7602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7611 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7612 if test -n "$ac_ct_RANLIB"; then
7613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7614 $as_echo "$ac_ct_RANLIB" >&6; }
7616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7617 $as_echo "no" >&6; }
7620 if test "x$ac_ct_RANLIB" = x; then
7623 case $cross_compiling:$ac_tool_warned in
7625 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7626 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7627 ac_tool_warned=yes ;;
7629 RANLIB=$ac_ct_RANLIB
7632 RANLIB="$ac_cv_prog_RANLIB"
7635 if test -n "$ac_tool_prefix"; then
7636 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7637 set dummy ${ac_tool_prefix}ar; ac_word=$2
7638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7639 $as_echo_n "checking for $ac_word... " >&6; }
7640 if ${ac_cv_prog_AR+:} false; then :
7641 $as_echo_n "(cached) " >&6
7643 if test -n "$AR"; then
7644 ac_cv_prog_AR="$AR" # Let the user override the test.
7646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7650 test -z "$as_dir" && as_dir=.
7651 for ac_exec_ext in '' $ac_executable_extensions; do
7652 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7653 ac_cv_prog_AR="${ac_tool_prefix}ar"
7654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7664 if test -n "$AR"; then
7665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7666 $as_echo "$AR" >&6; }
7668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7669 $as_echo "no" >&6; }
7674 if test -z "$ac_cv_prog_AR"; then
7676 # Extract the first word of "ar", so it can be a program name with args.
7677 set dummy ar; ac_word=$2
7678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7679 $as_echo_n "checking for $ac_word... " >&6; }
7680 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7681 $as_echo_n "(cached) " >&6
7683 if test -n "$ac_ct_AR"; then
7684 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7690 test -z "$as_dir" && as_dir=.
7691 for ac_exec_ext in '' $ac_executable_extensions; do
7692 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7693 ac_cv_prog_ac_ct_AR="ar"
7694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7703 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7704 if test -n "$ac_ct_AR"; then
7705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7706 $as_echo "$ac_ct_AR" >&6; }
7708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7709 $as_echo "no" >&6; }
7712 if test "x$ac_ct_AR" = x; then
7715 case $cross_compiling:$ac_tool_warned in
7717 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7718 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7719 ac_tool_warned=yes ;;
7728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7729 $as_echo_n "checking whether ln -s works... " >&6; }
7731 if test "$LN_S" = "ln -s"; then
7732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7733 $as_echo "yes" >&6; }
7735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7736 $as_echo "no, using $LN_S" >&6; }
7742 if test "${LBL_CFLAGS+set}" = set; then
7743 V_CCOPT="$V_CCOPT ${LBL_CFLAGS}"
7745 if test -f .devel ; then
7747 # Skip all the warning option stuff on some compilers.
7749 if test "$ac_lbl_cc_dont_try_gcc_dashW" != yes; then
7751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler fails when given an unknown warning option" >&5
7752 $as_echo_n "checking whether the compiler fails when given an unknown warning option... " >&6; }
7753 save_CFLAGS="$CFLAGS"
7754 CFLAGS="$CFLAGS -Wxyzzy-this-will-never-succeed-xyzzy"
7755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7756 /* end confdefs.h. */
7766 if ac_fn_c_try_compile "$LINENO"; then :
7768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7769 $as_echo "no" >&6; }
7771 # We're assuming this is clang, where
7772 # -Werror=unknown-warning-option is the appropriate
7773 # option to force the compiler to fail.
7775 ac_lbl_unknown_warning_option_error="-Werror=unknown-warning-option"
7779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7780 $as_echo "yes" >&6; }
7783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7784 CFLAGS="$save_CFLAGS"
7787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wall option" >&5
7788 $as_echo_n "checking whether the compiler supports the -Wall option... " >&6; }
7789 save_CFLAGS="$CFLAGS"
7790 if expr "x-Wall" : "x-W.*" >/dev/null
7792 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wall"
7793 elif expr "x-Wall" : "x-f.*" >/dev/null
7795 CFLAGS="$CFLAGS -Werror -Wall"
7796 elif expr "x-Wall" : "x-m.*" >/dev/null
7798 CFLAGS="$CFLAGS -Werror -Wall"
7800 CFLAGS="$CFLAGS -Wall"
7802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7803 /* end confdefs.h. */
7813 if ac_fn_c_try_compile "$LINENO"; then :
7815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7816 $as_echo "yes" >&6; }
7817 CFLAGS="$save_CFLAGS"
7818 V_CCOPT="$V_CCOPT -Wall"
7822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7823 $as_echo "no" >&6; }
7824 CFLAGS="$save_CFLAGS"
7827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wsign-compare option" >&5
7831 $as_echo_n "checking whether the compiler supports the -Wsign-compare option... " >&6; }
7832 save_CFLAGS="$CFLAGS"
7833 if expr "x-Wsign-compare" : "x-W.*" >/dev/null
7835 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wsign-compare"
7836 elif expr "x-Wsign-compare" : "x-f.*" >/dev/null
7838 CFLAGS="$CFLAGS -Werror -Wsign-compare"
7839 elif expr "x-Wsign-compare" : "x-m.*" >/dev/null
7841 CFLAGS="$CFLAGS -Werror -Wsign-compare"
7843 CFLAGS="$CFLAGS -Wsign-compare"
7845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7846 /* end confdefs.h. */
7856 if ac_fn_c_try_compile "$LINENO"; then :
7858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7859 $as_echo "yes" >&6; }
7860 CFLAGS="$save_CFLAGS"
7861 V_CCOPT="$V_CCOPT -Wsign-compare"
7865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7866 $as_echo "no" >&6; }
7867 CFLAGS="$save_CFLAGS"
7870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wmissing-prototypes option" >&5
7874 $as_echo_n "checking whether the compiler supports the -Wmissing-prototypes option... " >&6; }
7875 save_CFLAGS="$CFLAGS"
7876 if expr "x-Wmissing-prototypes" : "x-W.*" >/dev/null
7878 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wmissing-prototypes"
7879 elif expr "x-Wmissing-prototypes" : "x-f.*" >/dev/null
7881 CFLAGS="$CFLAGS -Werror -Wmissing-prototypes"
7882 elif expr "x-Wmissing-prototypes" : "x-m.*" >/dev/null
7884 CFLAGS="$CFLAGS -Werror -Wmissing-prototypes"
7886 CFLAGS="$CFLAGS -Wmissing-prototypes"
7888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7889 /* end confdefs.h. */
7899 if ac_fn_c_try_compile "$LINENO"; then :
7901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7902 $as_echo "yes" >&6; }
7903 CFLAGS="$save_CFLAGS"
7904 V_CCOPT="$V_CCOPT -Wmissing-prototypes"
7908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7909 $as_echo "no" >&6; }
7910 CFLAGS="$save_CFLAGS"
7913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wstrict-prototypes option" >&5
7917 $as_echo_n "checking whether the compiler supports the -Wstrict-prototypes option... " >&6; }
7918 save_CFLAGS="$CFLAGS"
7919 if expr "x-Wstrict-prototypes" : "x-W.*" >/dev/null
7921 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wstrict-prototypes"
7922 elif expr "x-Wstrict-prototypes" : "x-f.*" >/dev/null
7924 CFLAGS="$CFLAGS -Werror -Wstrict-prototypes"
7925 elif expr "x-Wstrict-prototypes" : "x-m.*" >/dev/null
7927 CFLAGS="$CFLAGS -Werror -Wstrict-prototypes"
7929 CFLAGS="$CFLAGS -Wstrict-prototypes"
7931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7932 /* end confdefs.h. */
7942 if ac_fn_c_try_compile "$LINENO"; then :
7944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7945 $as_echo "yes" >&6; }
7946 CFLAGS="$save_CFLAGS"
7947 V_CCOPT="$V_CCOPT -Wstrict-prototypes"
7951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7952 $as_echo "no" >&6; }
7953 CFLAGS="$save_CFLAGS"
7956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wshadow option" >&5
7960 $as_echo_n "checking whether the compiler supports the -Wshadow option... " >&6; }
7961 save_CFLAGS="$CFLAGS"
7962 if expr "x-Wshadow" : "x-W.*" >/dev/null
7964 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wshadow"
7965 elif expr "x-Wshadow" : "x-f.*" >/dev/null
7967 CFLAGS="$CFLAGS -Werror -Wshadow"
7968 elif expr "x-Wshadow" : "x-m.*" >/dev/null
7970 CFLAGS="$CFLAGS -Werror -Wshadow"
7972 CFLAGS="$CFLAGS -Wshadow"
7974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7975 /* end confdefs.h. */
7985 if ac_fn_c_try_compile "$LINENO"; then :
7987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7988 $as_echo "yes" >&6; }
7989 CFLAGS="$save_CFLAGS"
7990 V_CCOPT="$V_CCOPT -Wshadow"
7994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7995 $as_echo "no" >&6; }
7996 CFLAGS="$save_CFLAGS"
7999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wdeclaration-after-statement option" >&5
8003 $as_echo_n "checking whether the compiler supports the -Wdeclaration-after-statement option... " >&6; }
8004 save_CFLAGS="$CFLAGS"
8005 if expr "x-Wdeclaration-after-statement" : "x-W.*" >/dev/null
8007 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wdeclaration-after-statement"
8008 elif expr "x-Wdeclaration-after-statement" : "x-f.*" >/dev/null
8010 CFLAGS="$CFLAGS -Werror -Wdeclaration-after-statement"
8011 elif expr "x-Wdeclaration-after-statement" : "x-m.*" >/dev/null
8013 CFLAGS="$CFLAGS -Werror -Wdeclaration-after-statement"
8015 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
8017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8018 /* end confdefs.h. */
8028 if ac_fn_c_try_compile "$LINENO"; then :
8030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8031 $as_echo "yes" >&6; }
8032 CFLAGS="$save_CFLAGS"
8033 V_CCOPT="$V_CCOPT -Wdeclaration-after-statement"
8037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8038 $as_echo "no" >&6; }
8039 CFLAGS="$save_CFLAGS"
8042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wused-but-marked-unused option" >&5
8046 $as_echo_n "checking whether the compiler supports the -Wused-but-marked-unused option... " >&6; }
8047 save_CFLAGS="$CFLAGS"
8048 if expr "x-Wused-but-marked-unused" : "x-W.*" >/dev/null
8050 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wused-but-marked-unused"
8051 elif expr "x-Wused-but-marked-unused" : "x-f.*" >/dev/null
8053 CFLAGS="$CFLAGS -Werror -Wused-but-marked-unused"
8054 elif expr "x-Wused-but-marked-unused" : "x-m.*" >/dev/null
8056 CFLAGS="$CFLAGS -Werror -Wused-but-marked-unused"
8058 CFLAGS="$CFLAGS -Wused-but-marked-unused"
8060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8061 /* end confdefs.h. */
8071 if ac_fn_c_try_compile "$LINENO"; then :
8073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8074 $as_echo "yes" >&6; }
8075 CFLAGS="$save_CFLAGS"
8076 V_CCOPT="$V_CCOPT -Wused-but-marked-unused"
8080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8081 $as_echo "no" >&6; }
8082 CFLAGS="$save_CFLAGS"
8085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports generating dependencies" >&5
8090 $as_echo_n "checking whether the compiler supports generating dependencies... " >&6; }
8091 if test "$GCC" = yes ; then
8093 # GCC, or a compiler deemed to be GCC by AC_PROG_CC (even
8094 # though it's not); we assume that, in this case, the flag
8097 ac_lbl_dependency_flag="-M"
8100 # Not GCC or a compiler deemed to be GCC; what platform is
8101 # this? (We're assuming that if the compiler isn't GCC
8102 # it's the compiler from the vendor of the OS; that won't
8103 # necessarily be true for x86 platforms, where it might be
8104 # the Intel C compiler.)
8110 # MIPS C for IRIX, DEC C, and clang all use -M.
8112 ac_lbl_dependency_flag="-M"
8119 ac_lbl_dependency_flag="-xM"
8124 # HP's older C compilers don't support this.
8125 # HP's newer C compilers support this with
8126 # either +M or +Make; the older compilers
8127 # interpret +M as something completely
8128 # different, so we use +Make so we don't
8129 # think it works with the older compilers.
8131 ac_lbl_dependency_flag="+Make"
8136 # Not one of the above; assume no support for
8137 # generating dependencies.
8139 ac_lbl_dependency_flag=""
8145 # Is ac_lbl_dependency_flag defined and, if so, does the compiler
8146 # complain about it?
8148 # Note: clang doesn't seem to exit with an error status when handed
8149 # an unknown non-warning error, even if you pass it
8150 # -Werror=unknown-warning-option. However, it always supports
8151 # -M, so the fact that this test always succeeds with clang
8154 if test ! -z "$ac_lbl_dependency_flag"; then
8155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8156 /* end confdefs.h. */
8157 int main(void) { return 0; }
8159 echo "$CC" $ac_lbl_dependency_flag conftest.c >&5
8160 if "$CC" $ac_lbl_dependency_flag conftest.c >/dev/null 2>&1; then
8161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, with $ac_lbl_dependency_flag" >&5
8162 $as_echo "yes, with $ac_lbl_dependency_flag" >&6; }
8163 DEPENDENCY_CFLAG="$ac_lbl_dependency_flag"
8164 MKDEP='${srcdir}/mkdep'
8166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8167 $as_echo "no" >&6; }
8169 # We can't run mkdep, so have "make depend" do
8176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8177 $as_echo "no" >&6; }
8179 # We can't run mkdep, so have "make depend" do
8188 # We used to set -n32 for IRIX 6 when not using GCC (presumed
8189 # to mean that we're using MIPS C or MIPSpro C); it specified
8190 # the "new" faster 32-bit ABI, introduced in IRIX 6.2. I'm
8191 # not sure why that would be something to do *only* with a
8192 # .devel file; why should the ABI for which we produce code
8195 os=`echo $host_os |
sed -e 's/\([0-9][0-9]*\)[^0-9].*$/\1/'`
8197 if test -f $name ; then
8198 ln -s $name os-proto.h
8200 $as_echo "#define HAVE_OS_PROTO_H 1" >>confdefs.h
8203 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: can't find $name" >&5
8204 $as_echo "$as_me: WARNING: can't find $name" >&2;}
8208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sockaddr struct has the sa_len member" >&5
8209 $as_echo_n "checking if sockaddr struct has the sa_len member... " >&6; }
8210 if ${ac_cv_lbl_sockaddr_has_sa_len+:} false; then :
8211 $as_echo_n "(cached) " >&6
8213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8214 /* end confdefs.h. */
8216 # include <sys/types.h>
8217 # include <sys/socket.h>
8221 u_int i = sizeof(((struct sockaddr *)0)->sa_len)
8226 if ac_fn_c_try_compile "$LINENO"; then :
8227 ac_cv_lbl_sockaddr_has_sa_len=yes
8229 ac_cv_lbl_sockaddr_has_sa_len=no
8231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_sockaddr_has_sa_len" >&5
8235 $as_echo "$ac_cv_lbl_sockaddr_has_sa_len" >&6; }
8236 if test $ac_cv_lbl_sockaddr_has_sa_len = yes ; then
8238 $as_echo "#define HAVE_SOCKADDR_SA_LEN 1" >>confdefs.h
8242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sockaddr_storage struct exists" >&5
8243 $as_echo_n "checking if sockaddr_storage struct exists... " >&6; }
8244 if ${ac_cv_lbl_has_sockaddr_storage+:} false; then :
8245 $as_echo_n "(cached) " >&6
8247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8248 /* end confdefs.h. */
8250 # include <sys/types.h>
8251 # include <sys/socket.h>
8255 u_int i = sizeof (struct sockaddr_storage)
8260 if ac_fn_c_try_compile "$LINENO"; then :
8261 ac_cv_lbl_has_sockaddr_storage=yes
8263 ac_cv_lbl_has_sockaddr_storage=no
8265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_has_sockaddr_storage" >&5
8269 $as_echo "$ac_cv_lbl_has_sockaddr_storage" >&6; }
8270 if test $ac_cv_lbl_has_sockaddr_storage = yes ; then
8272 $as_echo "#define HAVE_SOCKADDR_STORAGE 1" >>confdefs.h
8276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if dl_hp_ppa_info_t struct has dl_module_id_1 member" >&5
8277 $as_echo_n "checking if dl_hp_ppa_info_t struct has dl_module_id_1 member... " >&6; }
8278 if ${ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1+:} false; then :
8279 $as_echo_n "(cached) " >&6
8281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8282 /* end confdefs.h. */
8284 # include <sys/types.h>
8285 # include <sys/dlpi.h>
8286 # include <sys/dlpi_ext.h>
8290 u_int i = sizeof(((dl_hp_ppa_info_t *)0)->dl_module_id_1)
8295 if ac_fn_c_try_compile "$LINENO"; then :
8296 ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1=yes
8298 ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1=no
8300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1" >&5
8304 $as_echo "$ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1" >&6; }
8305 if test $ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1 = yes ; then
8307 $as_echo "#define HAVE_HP_PPA_INFO_T_DL_MODULE_ID_1 1" >>confdefs.h
8311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if unaligned accesses fail" >&5
8312 $as_echo_n "checking if unaligned accesses fail... " >&6; }
8313 if ${ac_cv_lbl_unaligned_fail+:} false; then :
8314 $as_echo_n "(cached) " >&6
8319 # These are CPU types where:
8321 # the CPU faults on an unaligned access, but at least some
8322 # OSes that support that CPU catch the fault and simulate
8323 # the unaligned access (e.g., Alpha/{Digital,Tru64} UNIX) -
8324 # the simulation is slow, so we don't want to use it;
8326 # the CPU, I infer (from the old
8328 # XXX: should also check that they don't do weird things (like on arm)
8330 # comment) doesn't fault on unaligned accesses, but doesn't
8331 # do a normal unaligned fetch, either (e.g., presumably, ARM);
8333 # for whatever reason, the test program doesn't work
8334 # (this has been claimed to be the case for several of those
8335 # CPUs - I don't know what the problem is; the problem
8336 # was reported as "the test program dumps core" for SuperH,
8337 # but that's what the test program is *supposed* to do -
8338 # it dumps core before it writes anything, so the test
8339 # for an empty output file should find an empty output
8340 # file and conclude that unaligned accesses don't work).
8342 # This run-time test won't work if you're cross-compiling, so
8343 # in order to support cross-compiling for a particular CPU,
8344 # we have to wire in the list of CPU types anyway, as far as
8345 # I know, so perhaps we should just have a set of CPUs on
8346 # which we know it doesn't work, a set of CPUs on which we
8347 # know it does work, and have the script just fail on other
8348 # cpu types and update it when such a failure occurs.
8350 alpha*|arm*|bfin*|hp*|mips*|sh*|sparc*|ia64|nv1)
8351 ac_cv_lbl_unaligned_fail=yes
8355 cat >conftest.c <<EOF
8356 # include <sys/types.h>
8357 # include <sys/wait.h>
8359 unsigned char a[5] = { 1, 2, 3, 4, 5 };
8364 /* avoid "core dumped" message */
8370 pid = waitpid(pid, &status, 0);
8373 exit(!WIFEXITED(status));
8376 i = *(unsigned int *)&a[1];
8381 ${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS \
8382 conftest.c $LIBS >/dev/null 2>&1
8383 if test ! -x conftest ; then
8384 ac_cv_lbl_unaligned_fail=yes
8386 ./conftest >conftest.out
8387 if test ! -s conftest.out ; then
8388 ac_cv_lbl_unaligned_fail=yes
8390 ac_cv_lbl_unaligned_fail=no
8393 rm -f -r conftest* core core.conftest
8398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_unaligned_fail" >&5
8399 $as_echo "$ac_cv_lbl_unaligned_fail" >&6; }
8400 if test $ac_cv_lbl_unaligned_fail = yes ; then
8402 $as_echo "#define LBL_ALIGN 1" >>confdefs.h
8407 ln -s ${srcdir}/bpf/net net
8429 # Check whether --enable-usb was given.
8430 if test "${enable_usb+set}" = set; then :
8431 enableval=$enable_usb;
8437 if test "xxx_only" = yes; then
8438 # User requested something-else-only pcap, so they don't
8443 if test "x$enable_usb" != "xno" ; then
8444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for USB sniffing support" >&5
8445 $as_echo_n "checking for USB sniffing support... " >&6; }
8449 $as_echo "#define PCAP_SUPPORT_USB 1" >>confdefs.h
8451 USB_SRC=pcap-usb-linux.c
8452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8453 $as_echo "yes" >&6; }
8454 ac_usb_dev_name=`udevinfo
-q name
-p /sys
/class
/usb_device
/usbmon
2>/dev
/null
`
8455 if test $? -ne 0 ; then
8456 ac_usb_dev_name="usbmon"
8459 cat >>confdefs.h <<_ACEOF
8460 #define LINUX_USB_MON_DEV "/dev/$ac_usb_dev_name"
8463 { $as_echo "$as_me:${as_lineno-$LINENO}: Device for USB sniffing is /dev/$ac_usb_dev_name" >&5
8464 $as_echo "$as_me: Device for USB sniffing is /dev/$ac_usb_dev_name" >&6;}
8466 # Do we have a version of <linux/compiler.h> available?
8467 # If so, we might need it for <linux/usbdevice_fs.h>.
8469 for ac_header in linux/compiler.h
8471 ac_fn_c_check_header_mongrel "$LINENO" "linux/compiler.h" "ac_cv_header_linux_compiler_h" "$ac_includes_default"
8472 if test "x$ac_cv_header_linux_compiler_h" = xyes; then :
8473 cat >>confdefs.h <<_ACEOF
8474 #define HAVE_LINUX_COMPILER_H 1
8481 if test "$ac_cv_header_linux_compiler_h" = yes; then
8483 # Yes - include it when testing for <linux/usbdevice_fs.h>.
8485 for ac_header in linux/usbdevice_fs.h
8487 ac_fn_c_check_header_compile "$LINENO" "linux/usbdevice_fs.h" "ac_cv_header_linux_usbdevice_fs_h" "#include <linux/compiler.h>
8489 if test "x$ac_cv_header_linux_usbdevice_fs_h" = xyes; then :
8490 cat >>confdefs.h <<_ACEOF
8491 #define HAVE_LINUX_USBDEVICE_FS_H 1
8499 for ac_header in linux/usbdevice_fs.h
8501 ac_fn_c_check_header_mongrel "$LINENO" "linux/usbdevice_fs.h" "ac_cv_header_linux_usbdevice_fs_h" "$ac_includes_default"
8502 if test "x$ac_cv_header_linux_usbdevice_fs_h" = xyes; then :
8503 cat >>confdefs.h <<_ACEOF
8504 #define HAVE_LINUX_USBDEVICE_FS_H 1
8512 if test "$ac_cv_header_linux_usbdevice_fs_h" = yes; then
8514 # OK, does it define bRequestType? Older versions of the kernel
8515 # define fields with names like "requesttype, "request", and
8516 # "value", rather than "bRequestType", "bRequest", and
8519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if usbdevfs_ctrltransfer struct has bRequestType member" >&5
8520 $as_echo_n "checking if usbdevfs_ctrltransfer struct has bRequestType member... " >&6; }
8521 if ${ac_cv_usbdevfs_ctrltransfer_has_bRequestType+:} false; then :
8522 $as_echo_n "(cached) " >&6
8524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8525 /* end confdefs.h. */
8527 $ac_includes_default
8528 #ifdef HAVE_SYS_BITYPES_H
8529 #include <sys/bitypes.h>
8531 #ifdef HAVE_LINUX_COMPILER_H
8532 #include <linux/compiler.h>
8534 #include <linux/usbdevice_fs.h>
8538 u_int i = sizeof(((struct usbdevfs_ctrltransfer *)0)->bRequestType)
8543 if ac_fn_c_try_compile "$LINENO"; then :
8544 ac_cv_usbdevfs_ctrltransfer_has_bRequestType=yes
8546 ac_cv_usbdevfs_ctrltransfer_has_bRequestType=no
8548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_usbdevfs_ctrltransfer_has_bRequestType" >&5
8552 $as_echo "$ac_cv_usbdevfs_ctrltransfer_has_bRequestType" >&6; }
8553 if test $ac_cv_usbdevfs_ctrltransfer_has_bRequestType = yes ; then
8555 $as_echo "#define HAVE_USBDEVFS_CTRLTRANSFER_BREQUESTTYPE 1" >>confdefs.h
8562 # This just uses BPF in FreeBSD 8.4 and later; we don't need
8563 # to check for anything special for capturing.
8565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in FreeBSD 8.4 and later" >&5
8566 $as_echo "yes, in FreeBSD 8.4 and later" >&6; }
8570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8571 $as_echo "no" >&6; }
8578 if test "xxx_only" != yes; then
8579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the platform could support netfilter sniffing" >&5
8580 $as_echo_n "checking whether the platform could support netfilter sniffing... " >&6; }
8583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8584 $as_echo "yes" >&6; }
8586 # Life's too short to deal with trying to get this to compile
8587 # if you don't get the right types defined with
8588 # __KERNEL_STRICT_NAMES getting defined by some other include.
8590 # Check whether the includes Just Work. If not, don't turn on
8591 # netfilter support.
8593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can compile the netfilter support" >&5
8594 $as_echo_n "checking whether we can compile the netfilter support... " >&6; }
8595 if ${ac_cv_netfilter_can_compile+:} false; then :
8596 $as_echo_n "(cached) " >&6
8598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8599 /* end confdefs.h. */
8601 $ac_includes_default
8602 #include <sys/socket.h>
8603 #include <netinet/in.h>
8604 #include <linux/types.h>
8606 #include <linux/netlink.h>
8607 #include <linux/netfilter.h>
8608 #include <linux/netfilter/nfnetlink.h>
8609 #include <linux/netfilter/nfnetlink_log.h>
8610 #include <linux/netfilter/nfnetlink_queue.h>
8619 if ac_fn_c_try_compile "$LINENO"; then :
8620 ac_cv_netfilter_can_compile=yes
8622 ac_cv_netfilter_can_compile=no
8624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_netfilter_can_compile" >&5
8628 $as_echo "$ac_cv_netfilter_can_compile" >&6; }
8629 if test $ac_cv_netfilter_can_compile = yes ; then
8631 $as_echo "#define PCAP_SUPPORT_NETFILTER 1" >>confdefs.h
8633 NETFILTER_SRC=pcap-netfilter-linux.c
8637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8638 $as_echo "no" >&6; }
8645 # Check whether --enable-bluetooth was given.
8646 if test "${enable_bluetooth+set}" = set; then :
8647 enableval=$enable_bluetooth;
8649 enable_bluetooth=ifsupportavailable
8653 if test "xxx_only" = yes; then
8654 # User requested something-else-only pcap, so they don't
8655 # want Bluetooth support.
8659 if test "x$enable_bluetooth" != "xno" ; then
8662 ac_fn_c_check_header_mongrel "$LINENO" "bluetooth/bluetooth.h" "ac_cv_header_bluetooth_bluetooth_h" "$ac_includes_default"
8663 if test "x$ac_cv_header_bluetooth_bluetooth_h" = xyes; then :
8666 $as_echo "#define PCAP_SUPPORT_BT 1" >>confdefs.h
8668 BT_SRC=pcap-bt-linux.c
8669 { $as_echo "$as_me:${as_lineno-$LINENO}: Bluetooth sniffing is supported" >&5
8670 $as_echo "$as_me: Bluetooth sniffing is supported" >&6;}
8673 # OK, does struct sockaddr_hci have an hci_channel
8676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if struct sockaddr_hci has hci_channel member" >&5
8677 $as_echo_n "checking if struct sockaddr_hci has hci_channel member... " >&6; }
8678 if ${ac_cv_lbl_sockaddr_hci_has_hci_channel+:} false; then :
8679 $as_echo_n "(cached) " >&6
8681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8682 /* end confdefs.h. */
8684 #include <bluetooth/bluetooth.h>
8685 #include <bluetooth/hci.h>
8690 u_int i = sizeof(((struct sockaddr_hci *)0)->hci_channel)
8695 if ac_fn_c_try_compile "$LINENO"; then :
8696 ac_cv_lbl_sockaddr_hci_has_hci_channel=yes
8698 ac_cv_lbl_sockaddr_hci_has_hci_channel=no
8700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_sockaddr_hci_has_hci_channel" >&5
8704 $as_echo "$ac_cv_lbl_sockaddr_hci_has_hci_channel" >&6; }
8705 if test $ac_cv_lbl_sockaddr_hci_has_hci_channel = yes ; then
8707 $as_echo "#define SOCKADDR_HCI_HAS_HCI_CHANNEL /**/" >>confdefs.h
8711 # OK, is HCI_CHANNEL_MONITOR defined?
8713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if HCI_CHANNEL_MONITOR is defined" >&5
8714 $as_echo_n "checking if HCI_CHANNEL_MONITOR is defined... " >&6; }
8715 if ${ac_cv_lbl_hci_channel_monitor_is_defined+:} false; then :
8716 $as_echo_n "(cached) " >&6
8718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8719 /* end confdefs.h. */
8721 #include <bluetooth/bluetooth.h>
8722 #include <bluetooth/hci.h>
8727 u_int i = HCI_CHANNEL_MONITOR
8732 if ac_fn_c_try_compile "$LINENO"; then :
8733 ac_cv_lbl_hci_channel_monitor_is_defined=yes
8735 ac_cv_lbl_hci_channel_monitor_is_defined=no
8737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_hci_channel_monitor_is_defined" >&5
8741 $as_echo "$ac_cv_lbl_hci_channel_monitor_is_defined" >&6; }
8742 if test $ac_cv_lbl_hci_channel_monitor_is_defined = yes ; then
8744 $as_echo "#define PCAP_SUPPORT_BT_MONITOR /**/" >>confdefs.h
8746 BT_MONITOR_SRC=pcap-bt-monitor-linux.c
8749 ac_lbl_bluetooth_available=yes
8752 ac_lbl_bluetooth_available=no
8757 if test "x$ac_lbl_bluetooth_available" == "xno" ; then
8758 if test "x$enable_bluetooth" = "xyes" ; then
8759 as_fn_error $? "Bluetooth sniffing is not supported; install bluez-lib devel to enable it" "$LINENO" 5
8761 { $as_echo "$as_me:${as_lineno-$LINENO}: Bluetooth sniffing is not supported; install bluez-lib devel to enable it" >&5
8762 $as_echo "$as_me: Bluetooth sniffing is not supported; install bluez-lib devel to enable it" >&6;}
8767 if test "x$enable_bluetooth" = "xyes" ; then
8768 as_fn_error $? "no Bluetooth sniffing support implemented for $host_os" "$LINENO" 5
8770 { $as_echo "$as_me:${as_lineno-$LINENO}: no Bluetooth sniffing support implemented for $host_os" >&5
8771 $as_echo "$as_me: no Bluetooth sniffing support implemented for $host_os" >&6;}
8780 # Check whether --enable-dbus was given.
8781 if test "${enable_dbus+set}" = set; then :
8782 enableval=$enable_dbus;
8784 enable_dbus=ifavailable
8788 if test "xxx_only" = yes; then
8789 # User requested something-else-only pcap, so they don't
8790 # want D-Bus support.
8794 if test "x$enable_dbus" != "xno"; then
8795 if test "x$enable_dbus" = "xyes"; then
8800 # We don't support D-Bus sniffing on OS X; see
8802 # https://bugs.freedesktop.org/show_bug.cgi?id=74029
8804 # The user requested it, so fail.
8806 as_fn_error $? "Due to freedesktop.org bug 74029, D-Bus capture support is not available on OS X" "$LINENO" 5
8813 # We don't support D-Bus sniffing on OS X; see
8815 # https://bugs.freedesktop.org/show_bug.cgi?id=74029
8817 # The user dind't explicitly request it, so just
8818 # silently refuse to enable it.
8826 if test "x$enable_dbus" != "xno"; then
8827 # Extract the first word of "pkg-config", so it can be a program name with args.
8828 set dummy pkg-config; ac_word=$2
8829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8830 $as_echo_n "checking for $ac_word... " >&6; }
8831 if ${ac_cv_prog_PKGCONFIG+:} false; then :
8832 $as_echo_n "(cached) " >&6
8834 if test -n "$PKGCONFIG"; then
8835 ac_cv_prog_PKGCONFIG="$PKGCONFIG" # Let the user override the test.
8837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8841 test -z "$as_dir" && as_dir=.
8842 for ac_exec_ext in '' $ac_executable_extensions; do
8843 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8844 ac_cv_prog_PKGCONFIG="pkg-config"
8845 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8852 test -z "$ac_cv_prog_PKGCONFIG" && ac_cv_prog_PKGCONFIG="no"
8855 PKGCONFIG=$ac_cv_prog_PKGCONFIG
8856 if test -n "$PKGCONFIG"; then
8857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
8858 $as_echo "$PKGCONFIG" >&6; }
8860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8861 $as_echo "no" >&6; }
8865 if test "x$PKGCONFIG" != "xno"; then
8866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for D-Bus" >&5
8867 $as_echo_n "checking for D-Bus... " >&6; }
8868 if "$PKGCONFIG" dbus-1; then
8869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8870 $as_echo "yes" >&6; }
8871 DBUS_CFLAGS=`"$PKGCONFIG" --cflags dbus-1
`
8872 DBUS_LIBS=`"$PKGCONFIG" --libs dbus-1
`
8873 save_CFLAGS="$CFLAGS"
8875 CFLAGS="$CFLAGS $DBUS_CFLAGS"
8876 LIBS="$LIBS $DBUS_LIBS"
8877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the D-Bus library defines dbus_connection_read_write" >&5
8878 $as_echo_n "checking whether the D-Bus library defines dbus_connection_read_write... " >&6; }
8879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8880 /* end confdefs.h. */
8884 #include <sys/time.h>
8886 #include <dbus/dbus.h>
8890 return dbus_connection_read_write(NULL, 0);
8895 if ac_fn_c_try_link "$LINENO"; then :
8897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8898 $as_echo "yes" >&6; }
8900 $as_echo "#define PCAP_SUPPORT_DBUS 1" >>confdefs.h
8902 DBUS_SRC=pcap-dbus.c
8903 V_INCLS="$V_INCLS $DBUS_CFLAGS"
8907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8908 $as_echo "no" >&6; }
8909 if test "x$enable_dbus" = "xyes"; then
8910 as_fn_error $? "--enable-dbus was given, but the D-Bus library doesn't define dbus_connection_read_write()" "$LINENO" 5
8915 rm -f core conftest.err conftest.$ac_objext \
8916 conftest$ac_exeext conftest.$ac_ext
8917 CFLAGS="$save_CFLAGS"
8919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8920 $as_echo "no" >&6; }
8921 if test "x$enable_dbus" = "xyes"; then
8922 as_fn_error $? "--enable-dbus was given, but the dbus-1 package is not installed" "$LINENO" 5
8932 for ac_header in linux/net_tstamp.h
8934 ac_fn_c_check_header_mongrel "$LINENO" "linux/net_tstamp.h" "ac_cv_header_linux_net_tstamp_h" "$ac_includes_default"
8935 if test "x$ac_cv_header_linux_net_tstamp_h" = xyes; then :
8936 cat >>confdefs.h <<_ACEOF
8937 #define HAVE_LINUX_NET_TSTAMP_H 1
8946 { $as_echo "$as_me:${as_lineno-$LINENO}: no hardware timestamp support implemented for $host_os" >&5
8947 $as_echo "$as_me: no hardware timestamp support implemented for $host_os" >&6;}
8951 # Check whether --enable-packet-ring was given.
8952 if test "${enable_packet_ring+set}" = set; then :
8953 enableval=$enable_packet_ring;
8955 enable_packet_ring=yes
8959 if test "x$enable_packet_ring" != "xno" ; then
8961 $as_echo "#define PCAP_SUPPORT_PACKET_RING 1" >>confdefs.h
8966 # Find a good install program. We prefer a C program (faster),
8967 # so one script is as good as another. But avoid the broken or
8968 # incompatible versions:
8969 # SysV /etc/install, /usr/sbin/install
8970 # SunOS /usr/etc/install
8971 # IRIX /sbin/install
8973 # AmigaOS /C/install, which installs bootblocks on floppy discs
8974 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8975 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8976 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8977 # OS/2's system install, which has a completely different semantic
8978 # ./install, which can be erroneously created by make from ./install.sh.
8979 # Reject install programs that cannot install multiple files.
8980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
8981 $as_echo_n "checking for a BSD-compatible install... " >&6; }
8982 if test -z "$INSTALL"; then
8983 if ${ac_cv_path_install+:} false; then :
8984 $as_echo_n "(cached) " >&6
8986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8990 test -z "$as_dir" && as_dir=.
8991 # Account for people who put trailing slashes in PATH elements.
8992 case $as_dir/ in #((
8993 ./ | .// | /[cC]/* | \
8994 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
8995 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
8998 # OSF1 and SCO ODT 3.0 have their own names for install.
8999 # Don't use installbsd from OSF since it installs stuff as root
9001 for ac_prog in ginstall scoinst install; do
9002 for ac_exec_ext in '' $ac_executable_extensions; do
9003 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
9004 if test $ac_prog = install &&
9005 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
9006 # AIX install. It has an incompatible calling convention.
9008 elif test $ac_prog = install &&
9009 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
9010 # program-specific install script used by HP pwplus--don't use.
9013 rm -rf conftest.one conftest.two conftest.dir
9014 echo one > conftest.one
9015 echo two > conftest.two
9017 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
9018 test -s conftest.one && test -s conftest.two &&
9019 test -s conftest.dir/conftest.one &&
9020 test -s conftest.dir/conftest.two
9022 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
9035 rm -rf conftest.one conftest.two conftest.dir
9038 if test "${ac_cv_path_install+set}" = set; then
9039 INSTALL=$ac_cv_path_install
9041 # As a last resort, use the slow shell script. Don't cache a
9042 # value for INSTALL within a source directory, because that will
9043 # break other packages using the cache if that directory is
9044 # removed, or if the value is a relative name.
9045 INSTALL=$ac_install_sh
9048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
9049 $as_echo "$INSTALL" >&6; }
9051 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
9052 # It thinks the first close brace ends the variable substitution.
9053 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
9055 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
9057 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
9060 ac_config_headers="$ac_config_headers config.h"
9063 ac_config_commands="$ac_config_commands default-1"
9065 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"
9067 cat >confcache <<\_ACEOF
9068 # This file is a shell script that caches the results of configure
9069 # tests run on this system so they can be shared between configure
9070 # scripts and configure runs, see configure's option --config-cache.
9071 # It is not useful on other systems. If it contains results you don't
9072 # want to keep, you may remove or edit it.
9074 # config.status only pays attention to the cache file if you give it
9075 # the --recheck option to rerun configure.
9077 # `ac_cv_env_foo
' variables (set or unset) will be overridden when
9078 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9083 # The following way of writing the cache mishandles newlines in values,
9084 # but we know of no workaround that is simple, portable, and efficient.
9085 # So, we kill variables containing newlines.
9086 # Ultrix sh set writes to stderr and can't be redirected directly,
9087 # and sets the high bit in the cache file unless we assign to the vars.
9089 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
9090 eval ac_val
=\$
$ac_var
9094 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
9095 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
9098 _ | IFS | as_nl
) ;; #(
9099 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
9100 *) { eval $ac_var=; unset $ac_var;} ;;
9106 case $as_nl`(ac_space=' '; set) 2>&1` in #(
9107 *${as_nl}ac_space
=\
*)
9108 # `set' does not quote correctly, so add quotes: double-quote
9109 # substitution turns \\\\ into \\, and sed turns \\ into \.
9112 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9115 # `set' quotes correctly as required by POSIX, so do not add quotes.
9116 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
9125 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9127 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9129 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
9130 if test -w "$cache_file"; then
9131 if test "x$cache_file" != "x/dev/null"; then
9132 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
9133 $as_echo "$as_me: updating cache $cache_file" >&6;}
9134 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
9135 cat confcache
>"$cache_file"
9137 case $cache_file in #(
9139 mv -f confcache
"$cache_file"$$
&&
9140 mv -f "$cache_file"$$
"$cache_file" ;; #(
9142 mv -f confcache
"$cache_file" ;;
9147 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
9148 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
9153 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
9154 # Let make expand exec_prefix.
9155 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
9157 DEFS
=-DHAVE_CONFIG_H
9162 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
9163 # 1. Remove the extension, and $U if already installed.
9164 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
9165 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
9166 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
9167 # will be set to the directory where LIBOBJS objects are built.
9168 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
9169 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
9173 LTLIBOBJS
=$ac_ltlibobjs
9177 : "${CONFIG_STATUS=./config.status}"
9179 ac_clean_files_save
=$ac_clean_files
9180 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
9181 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
9182 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
9184 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
9186 # Generated by $as_me.
9187 # Run this file to recreate the current configuration.
9188 # Compiler output produced by configure, useful for debugging
9189 # configure, is in config.log if it exists.
9195 SHELL=\${CONFIG_SHELL-$SHELL}
9198 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
9199 ## -------------------- ##
9200 ## M4sh Initialization. ##
9201 ## -------------------- ##
9203 # Be more Bourne compatible
9204 DUALCASE
=1; export DUALCASE
# for MKS sh
9205 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
9208 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
9209 # is contrary to our usage. Disable this feature.
9210 alias -g '${1+"$@"}'='"$@"'
9211 setopt NO_GLOB_SUBST
9213 case `(set -o) 2>/dev/null` in #(
9225 # Printing a long string crashes Solaris 7 /usr/bin/printf.
9226 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
9227 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
9228 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
9229 # Prefer a ksh shell builtin over an external printf program on Solaris,
9230 # but without wasting forks for bash or zsh.
9231 if test -z "$BASH_VERSION$ZSH_VERSION" \
9232 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
9233 as_echo='print
-r --'
9234 as_echo_n='print
-rn --'
9235 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
9236 as_echo='printf %s
\n'
9237 as_echo_n='printf %s
'
9239 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
9240 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
9241 as_echo_n='/usr
/ucb
/echo -n'
9243 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
9244 as_echo_n_body='eval
9248 expr "X$arg" : "X\\(.*\\)$as_nl";
9249 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
9251 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
9253 export as_echo_n_body
9254 as_echo_n='sh
-c $as_echo_n_body as_echo
'
9257 as_echo='sh
-c $as_echo_body as_echo
'
9260 # The user is always right.
9261 if test "${PATH_SEPARATOR+set}" != set; then
9263 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
9264 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
9271 # We need space, tab and new line, in precisely that order. Quoting is
9272 # there to prevent editors from complaining about space-tab.
9273 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
9274 # splitting by setting IFS to empty value.)
9277 # Find who we are. Look in the path if we contain no directory separator.
9280 *[\\/]* ) as_myself=$0 ;;
9281 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9285 test -z "$as_dir" && as_dir=.
9286 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9292 # We did not find ourselves, most probably we were run as `sh COMMAND'
9293 # in which case we are not to be found in the path.
9294 if test "x$as_myself" = x
; then
9297 if test ! -f "$as_myself"; then
9298 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
9302 # Unset variables that we do not need and which cause bugs (e.g. in
9303 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
9304 # suppresses any "Segmentation fault" message there. '((' could
9305 # trigger a bug in pdksh 5.2.14.
9306 for as_var
in BASH_ENV ENV MAIL MAILPATH
9307 do eval test x\
${$as_var+set} = xset \
9308 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
9321 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
9324 # as_fn_error STATUS ERROR [LINENO LOG_FD]
9325 # ----------------------------------------
9326 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
9327 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
9328 # script with STATUS, using 1 if that was 0.
9331 as_status
=$1; test $as_status -eq 0 && as_status
=1
9333 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
9334 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
9336 $as_echo "$as_me: error: $2" >&2
9337 as_fn_exit
$as_status
9341 # as_fn_set_status STATUS
9342 # -----------------------
9343 # Set $? to STATUS, without forking.
9347 } # as_fn_set_status
9351 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
9361 # Portably unset VAR.
9364 { eval $1=; unset $1;}
9366 as_unset
=as_fn_unset
9367 # as_fn_append VAR VALUE
9368 # ----------------------
9369 # Append the text in VALUE to the end of the definition contained in VAR. Take
9370 # advantage of any shell optimizations that allow amortized linear growth over
9371 # repeated appends, instead of the typical quadratic growth present in naive
9373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
9374 eval 'as_fn_append ()
9385 # as_fn_arith ARG...
9386 # ------------------
9387 # Perform arithmetic evaluation on the ARGs, and store the result in the
9388 # global $as_val. Take advantage of shells that can avoid forks. The arguments
9389 # must be portable across $(()) and expr.
9390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
9391 eval 'as_fn_arith ()
9398 as_val
=`expr "$@" || test $? -eq 1`
9403 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
9404 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
9410 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
9411 as_basename
=basename
9416 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
9422 as_me
=`$as_basename -- "$0" ||
9423 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9424 X"$0" : 'X\(//\)$' \| \
9425 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
9427 sed '/^.*\/\([^/][^/]*\)\/*$/{
9441 # Avoid depending upon Character Ranges.
9442 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
9443 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9444 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
9445 as_cr_digits
='0123456789'
9446 as_cr_alnum
=$as_cr_Letters$as_cr_digits
9448 ECHO_C
= ECHO_N
= ECHO_T
=
9449 case `echo -n x` in #(((((
9451 case `echo 'xy\c'` in
9452 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
9454 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
9461 rm -f conf$$ conf$$.exe conf$$.
file
9462 if test -d conf$$.dir
; then
9463 rm -f conf$$.dir
/conf$$.
file
9466 mkdir conf$$.dir
2>/dev
/null
9468 if (echo >conf$$.
file) 2>/dev
/null
; then
9469 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
9471 # ... but there are two gotchas:
9472 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
9473 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
9474 # In both cases, we have to default to `cp -pR'.
9475 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
9477 elif ln conf$$.
file conf$$
2>/dev
/null
; then
9485 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
9486 rmdir conf$$.dir
2>/dev
/null
9491 # Create "$as_dir" as a directory, including parents if necessary.
9496 -*) as_dir
=.
/$as_dir;;
9498 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
9502 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
9503 *) as_qdir
=$as_dir;;
9505 as_dirs
="'$as_qdir' $as_dirs"
9506 as_dir
=`$as_dirname -- "$as_dir" ||
9507 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9508 X"$as_dir" : 'X\(//\)[^/]' \| \
9509 X"$as_dir" : 'X\(//\)$' \| \
9510 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
9511 $as_echo X"$as_dir" |
9512 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9529 test -d "$as_dir" && break
9531 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
9532 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
9536 if mkdir
-p .
2>/dev
/null
; then
9537 as_mkdir_p
='mkdir -p "$as_dir"'
9539 test -d .
/-p && rmdir .
/-p
9544 # as_fn_executable_p FILE
9545 # -----------------------
9546 # Test if FILE is an executable regular file.
9547 as_fn_executable_p
()
9549 test -f "$1" && test -x "$1"
9550 } # as_fn_executable_p
9552 as_executable_p
=as_fn_executable_p
9554 # Sed expression to map a string onto a valid CPP name.
9555 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9557 # Sed expression to map a string onto a valid variable name.
9558 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9562 ## ----------------------------------- ##
9563 ## Main body of $CONFIG_STATUS script. ##
9564 ## ----------------------------------- ##
9566 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
9568 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
9569 # Save the log message, to keep $0 and so on meaningful, and to
9570 # report actual input values of CONFIG_FILES etc. instead of their
9571 # values after options handling.
9573 This file was extended by $as_me, which was
9574 generated by GNU Autoconf 2.69. Invocation command line was
9576 CONFIG_FILES = $CONFIG_FILES
9577 CONFIG_HEADERS = $CONFIG_HEADERS
9578 CONFIG_LINKS = $CONFIG_LINKS
9579 CONFIG_COMMANDS = $CONFIG_COMMANDS
9582 on `(hostname || uname -n) 2>/dev/null | sed 1q`
9587 case $ac_config_files in *"
9588 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
9591 case $ac_config_headers in *"
9592 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
9596 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9597 # Files that config.status was made for.
9598 config_files="$ac_config_files"
9599 config_headers="$ac_config_headers"
9600 config_commands="$ac_config_commands"
9604 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
9606 \`$as_me' instantiates files and other configuration actions
9607 from templates according to the current configuration. Unless the files
9608 and actions are specified as TAGs, all are instantiated by default.
9610 Usage: $0 [OPTION]... [TAG]...
9612 -h, --help print this help, then exit
9613 -V, --version print version number and configuration settings, then exit
9614 --config print configuration, then exit
9615 -q, --quiet, --silent
9616 do not print progress messages
9617 -d, --debug don't remove temporary files
9618 --recheck update $as_me by reconfiguring in the same conditions
9619 --file=FILE[:TEMPLATE]
9620 instantiate the configuration file FILE
9621 --header=FILE[:TEMPLATE]
9622 instantiate the configuration header FILE
9624 Configuration files:
9627 Configuration headers:
9630 Configuration commands:
9633 Report bugs to the package provider."
9636 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9637 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
9640 configured by $0, generated by GNU Autoconf 2.69,
9641 with options \\"\$ac_cs_config\\"
9643 Copyright (C) 2012 Free Software Foundation, Inc.
9644 This config.status script is free software; the Free Software Foundation
9645 gives unlimited permission to copy, distribute and modify it."
9650 test -n "\$AWK" || AWK=awk
9653 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
9654 # The default lists apply if the user does not specify any file.
9660 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
9661 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
9665 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
9677 # Handling of the options.
9678 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
9680 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
9681 $as_echo "$ac_cs_version"; exit ;;
9682 --config |
--confi |
--conf |
--con |
--co |
--c )
9683 $as_echo "$ac_cs_config"; exit ;;
9684 --debug |
--debu |
--deb |
--de |
--d |
-d )
9686 --file |
--fil |
--fi |
--f )
9689 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9690 '') as_fn_error $?
"missing file argument" ;;
9692 as_fn_append CONFIG_FILES
" '$ac_optarg'"
9693 ac_need_defaults
=false
;;
9694 --header |
--heade |
--head |
--hea )
9697 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9699 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
9700 ac_need_defaults
=false
;;
9702 # Conflict between --help and --header
9703 as_fn_error $?
"ambiguous option: \`$1'
9704 Try \`$0 --help' for more information.";;
9705 --help |
--hel |
-h )
9706 $as_echo "$ac_cs_usage"; exit ;;
9707 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
9708 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
9712 -*) as_fn_error $?
"unrecognized option: \`$1'
9713 Try \`$0 --help' for more information." ;;
9715 *) as_fn_append ac_config_targets
" $1"
9716 ac_need_defaults
=false
;;
9722 ac_configure_extra_args
=
9724 if $ac_cs_silent; then
9726 ac_configure_extra_args
="$ac_configure_extra_args --silent"
9730 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9731 if \$ac_cs_recheck; then
9732 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9734 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
9735 CONFIG_SHELL='$SHELL'
9741 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
9745 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9746 ## Running $as_me. ##
9752 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9760 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
9762 # Handling of arguments.
9763 for ac_config_target
in $ac_config_targets
9765 case $ac_config_target in
9766 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
9767 "default-1") CONFIG_COMMANDS
="$CONFIG_COMMANDS default-1" ;;
9768 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
9769 "pcap-filter.manmisc") CONFIG_FILES
="$CONFIG_FILES pcap-filter.manmisc" ;;
9770 "pcap-linktype.manmisc") CONFIG_FILES
="$CONFIG_FILES pcap-linktype.manmisc" ;;
9771 "pcap-tstamp.manmisc") CONFIG_FILES
="$CONFIG_FILES pcap-tstamp.manmisc" ;;
9772 "pcap-savefile.manfile") CONFIG_FILES
="$CONFIG_FILES pcap-savefile.manfile" ;;
9773 "pcap.3pcap") CONFIG_FILES
="$CONFIG_FILES pcap.3pcap" ;;
9774 "pcap_compile.3pcap") CONFIG_FILES
="$CONFIG_FILES pcap_compile.3pcap" ;;
9775 "pcap_datalink.3pcap") CONFIG_FILES
="$CONFIG_FILES pcap_datalink.3pcap" ;;
9776 "pcap_dump_open.3pcap") CONFIG_FILES
="$CONFIG_FILES pcap_dump_open.3pcap" ;;
9777 "pcap_get_tstamp_precision.3pcap") CONFIG_FILES
="$CONFIG_FILES pcap_get_tstamp_precision.3pcap" ;;
9778 "pcap_list_datalinks.3pcap") CONFIG_FILES
="$CONFIG_FILES pcap_list_datalinks.3pcap" ;;
9779 "pcap_list_tstamp_types.3pcap") CONFIG_FILES
="$CONFIG_FILES pcap_list_tstamp_types.3pcap" ;;
9780 "pcap_open_dead.3pcap") CONFIG_FILES
="$CONFIG_FILES pcap_open_dead.3pcap" ;;
9781 "pcap_open_offline.3pcap") CONFIG_FILES
="$CONFIG_FILES pcap_open_offline.3pcap" ;;
9782 "pcap_set_tstamp_precision.3pcap") CONFIG_FILES
="$CONFIG_FILES pcap_set_tstamp_precision.3pcap" ;;
9783 "pcap_set_tstamp_type.3pcap") CONFIG_FILES
="$CONFIG_FILES pcap_set_tstamp_type.3pcap" ;;
9785 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
9790 # If the user did not use the arguments to specify the items to instantiate,
9791 # then the envvar interface is used. Set only those that are not.
9792 # We use the long form for the default assignment because of an extremely
9793 # bizarre bug on SunOS 4.1.3.
9794 if $ac_need_defaults; then
9795 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
9796 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
9797 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
9800 # Have a temporary directory for convenience. Make it in the build tree
9801 # simply because there is no reason against having it here, and in addition,
9802 # creating and moving files from /tmp can sometimes cause problems.
9803 # Hook for its removal unless debugging.
9804 # Note that there is a small window in which the directory will not be cleaned:
9805 # after its creation but before its name has been assigned to `$tmp'.
9809 trap 'exit_status=$?
9811 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
9813 trap 'as_fn_exit 1' 1 2 13 15
9815 # Create a (secure) tmp directory for tmp files.
9818 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
9822 tmp
=.
/conf$$
-$RANDOM
9823 (umask 077 && mkdir
"$tmp")
9824 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
9827 # Set up the scripts for CONFIG_FILES section.
9828 # No need to generate them if there are no CONFIG_FILES.
9829 # This happens for instance with `./config.status config.h'.
9830 if test -n "$CONFIG_FILES"; then
9833 ac_cr
=`echo X | tr X '\015'`
9834 # On cygwin, bash can eat \r inside `` if the user requested igncr.
9835 # But we know of no other shell where ac_cr would be empty at this
9836 # point, so we can use a bashism as a fallback.
9837 if test "x$ac_cr" = x
; then
9838 eval ac_cr
=\$
\'\\r
\'
9840 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
9841 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
9847 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
9852 echo "cat >conf$$subs.awk <<_ACEOF" &&
9853 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
9856 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
9857 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
9859 for ac_last_try in false false false false false :; do
9860 . ./conf$$subs.sh ||
9861 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
9863 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
9864 if test $ac_delim_n = $ac_delim_num; then
9866 elif $ac_last_try; then
9867 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
9869 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
9874 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9875 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
9879 s/^/S["/; s
/!.
*/"]=/
9889 s/\(.\{148\}\)..*/\1/
9891 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
9896 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
9903 s/\(.\{148\}\)..*/\1/
9905 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
9909 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
9914 ' <conf$$subs.awk | sed '
9919 ' >>$CONFIG_STATUS || ac_write_fail=1
9920 rm -f conf$$subs.awk
9921 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9923 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
9924 for (key in S) S_is_set[key] = 1
9930 nfields = split(line, field, "@
")
9932 len = length(field[1])
9933 for (i = 2; i < nfields; i++) {
9935 keylen = length(key)
9936 if (S_is_set[key]) {
9938 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
9939 len += length(value) + length(field[++i])
9950 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9951 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
9952 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
9955 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
9956 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
9959 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
9960 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
9961 # trailing colons and then remove the whole line if VPATH becomes empty
9962 # (actually we leave an empty line to preserve line numbers).
9963 if test "x
$srcdir" = x.; then
9964 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
9982 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9983 fi # test -n "$CONFIG_FILES"
9985 # Set up the scripts for CONFIG_HEADERS section.
9986 # No need to generate them if there are no CONFIG_HEADERS.
9987 # This happens for instance with `./config.status Makefile'.
9988 if test -n "$CONFIG_HEADERS"; then
9989 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
9993 # Transform confdefs.h into an awk script `defines.awk', embedded as
9994 # here-document in config.status, that substitutes the proper values into
9995 # config.h.in to produce config.h.
9997 # Create a delimiter string that does not exist in confdefs.h, to ease
9998 # handling of long lines.
10000 for ac_last_try in false false :; do
10001 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
10002 if test -z "$ac_tt"; then
10004 elif $ac_last_try; then
10005 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
10007 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
10011 # For the awk script, D is an array of macro values keyed by name,
10012 # likewise P contains macro parameters if any. Preserve backslash
10013 # newline sequences.
10015 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
10017 s/.\{148\}/&'"$ac_delim"'/g
10020 s/^[ ]*#[ ]*define[ ][ ]*/ /
10027 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
10029 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
10033 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
10034 D["\
1"]=" \
3\\\\\\n
"\\/p
10036 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
10041 s/.\{148\}/&'"$ac_delim"'/g
10046 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
10049 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
10051 ' <confdefs.h | sed '
10052 s/'"$ac_delim"'/"\\\
10053 "/g' >>$CONFIG_STATUS || ac_write_fail=1
10055 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10056 for (key in D) D_is_set[key] = 1
10059 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
10061 split(line, arg, " ")
10062 if (arg[1] == "#") {
10066 defundef
= substr
(arg
[1], 2)
10069 split(mac1
, mac2
, "(") #)
10071 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
10072 if (D_is_set
[macro
]) {
10073 # Preserve the white space surrounding the "#".
10074 print prefix
"define", macro P
[macro
] D
[macro
]
10077 # Replace #undef with comments. This is necessary, for example,
10078 # in the case of _POSIX_SOURCE, which is predefined and required
10079 # on some systems where configure will not decide to define it.
10080 if (defundef
== "undef") {
10081 print
"/*", prefix defundef
, macro
, "*/"
10089 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
10090 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
10091 fi # test -n "$CONFIG_HEADERS"
10094 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
10099 :[FHLC
]) ac_mode
=$ac_tag; continue;;
10101 case $ac_mode$ac_tag in
10103 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
10104 :[FH
]-) ac_tag
=-:-;;
10105 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
10122 -) ac_f
="$ac_tmp/stdin";;
10123 *) # Look for the file first in the build tree, then in the source tree
10124 # (if the path is not absolute). The absolute path cannot be DOS-style,
10125 # because $ac_f cannot contain `:'.
10129 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
10131 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
10133 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
10134 as_fn_append ac_file_inputs
" '$ac_f'"
10137 # Let's still pretend it is `configure' which instantiates (i.e., don't
10138 # use $as_me), people would be surprised to read:
10139 # /* config.h. Generated by config.status. */
10140 configure_input
='Generated from '`
10141 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
10143 if test x
"$ac_file" != x-
; then
10144 configure_input
="$ac_file. $configure_input"
10145 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
10146 $as_echo "$as_me: creating $ac_file" >&6;}
10148 # Neutralize special characters interpreted by sed in replacement strings.
10149 case $configure_input in #(
10150 *\
&* |
*\|
* |
*\\* )
10151 ac_sed_conf_input
=`$as_echo "$configure_input" |
10152 sed 's/[\\\\&|]/\\\\&/g'`;; #(
10153 *) ac_sed_conf_input
=$configure_input;;
10157 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
10158 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
10163 ac_dir
=`$as_dirname -- "$ac_file" ||
10164 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10165 X"$ac_file" : 'X\(//\)[^/]' \| \
10166 X"$ac_file" : 'X\(//\)$' \| \
10167 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
10168 $as_echo X"$ac_file" |
10169 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10173 /^X\(\/\/\)[^/].*/{
10186 as_dir
="$ac_dir"; as_fn_mkdir_p
10190 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
10192 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
10193 # A ".." for each directory in $ac_dir_suffix.
10194 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
10195 case $ac_top_builddir_sub in
10196 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
10197 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
10200 ac_abs_top_builddir
=$ac_pwd
10201 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
10202 # for backward compatibility:
10203 ac_top_builddir
=$ac_top_build_prefix
10206 .
) # We are building in place.
10208 ac_top_srcdir
=$ac_top_builddir_sub
10209 ac_abs_top_srcdir
=$ac_pwd ;;
10210 [\\/]* | ?
:[\\/]* ) # Absolute name.
10211 ac_srcdir
=$srcdir$ac_dir_suffix;
10212 ac_top_srcdir
=$srcdir
10213 ac_abs_top_srcdir
=$srcdir ;;
10214 *) # Relative name.
10215 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
10216 ac_top_srcdir
=$ac_top_build_prefix$srcdir
10217 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
10219 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
10229 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
10230 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
10234 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
10235 # If the template does not know about datarootdir, expand it.
10236 # FIXME: This hack should be removed a few years after 2.60.
10237 ac_datarootdir_hack
=; ac_datarootdir_seen
=
10248 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
10249 *datarootdir
*) ac_datarootdir_seen
=yes;;
10250 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
10251 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
10252 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
10254 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10255 ac_datarootdir_hack='
10256 s&@datadir@&$datadir&g
10257 s&@docdir@&$docdir&g
10258 s&@infodir@&$infodir&g
10259 s&@localedir@&$localedir&g
10260 s&@mandir@&$mandir&g
10261 s&\\\${datarootdir}&$datarootdir&g' ;;
10265 # Neutralize VPATH when `$srcdir' = `.'.
10266 # Shell code in configure.ac might set extrasub.
10267 # FIXME: do we really want to maintain this feature?
10268 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10269 ac_sed_extra="$ac_vpsub
10272 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
10274 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
10275 s|@configure_input@|
$ac_sed_conf_input|
;t t
10276 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
10277 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
10278 s
&@srcdir@
&$ac_srcdir&;t t
10279 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
10280 s
&@top_srcdir@
&$ac_top_srcdir&;t t
10281 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
10282 s
&@builddir@
&$ac_builddir&;t t
10283 s
&@abs_builddir@
&$ac_abs_builddir&;t t
10284 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
10285 s
&@INSTALL@
&$ac_INSTALL&;t t
10286 $ac_datarootdir_hack
10288 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
10289 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
10291 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
10292 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
10293 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
10294 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
10295 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
10296 which seems to be undefined. Please make sure it is defined" >&5
10297 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
10298 which seems to be undefined. Please make sure it is defined" >&2;}
10300 rm -f "$ac_tmp/stdin"
10302 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
10303 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
10305 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10311 if test x"$ac_file" != x-; then
10313 $as_echo "/* $configure_input */" \
10314 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
10315 } >"$ac_tmp/config.h" \
10316 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10317 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
10318 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
10319 $as_echo "$as_me: $ac_file is unchanged" >&6;}
10322 mv "$ac_tmp/config.h" "$ac_file" \
10323 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10326 $as_echo "/* $configure_input */" \
10327 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
10328 || as_fn_error $? "could not create -" "$LINENO" 5
10332 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
10333 $as_echo "$as_me: executing $ac_file commands" >&6;}
10338 case $ac_file$ac_mode in
10339 "default-1":C) if test -f .devel; then
10340 echo timestamp > stamp-h
10341 cat Makefile-devel-adds >> Makefile
10351 ac_clean_files=$ac_clean_files_save
10353 test $ac_write_fail = 0 ||
10354 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
10357 # configure is writing to config.log, and then calls config.status.
10358 # config.status does its own redirection, appending to config.log.
10359 # Unfortunately, on DOS this fails, as config.log is still kept open
10360 # by configure, so config.status won't be able to
write to it
; its
10361 # output is simply discarded. So we exec the FD to /dev/null,
10362 # effectively closing config.log, so it can be properly (re)opened and
10363 # appended to by config.status. When coming back to configure, we
10364 # need to make the FD available again.
10365 if test "$no_create" != yes; then
10367 ac_config_status_args
=
10368 test "$silent" = yes &&
10369 ac_config_status_args
="$ac_config_status_args --quiet"
10371 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
10373 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10374 # would make configure fail if this is the last instruction.
10375 $ac_cs_success || as_fn_exit
1
10377 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
10378 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
10379 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}